@univerjs-pro/mcp-ui 0.10.14 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x4c9222=_0x19e5;(function(_0x451e97,_0x292f02){const _0x111ab6=_0x19e5,_0x12ff30=_0x451e97();while(!![]){try{const _0x1f0207=parseInt(_0x111ab6(0x18f))/0x1*(parseInt(_0x111ab6(0x14a))/0x2)+parseInt(_0x111ab6(0x169))/0x3+-parseInt(_0x111ab6(0x1c3))/0x4+parseInt(_0x111ab6(0x13a))/0x5*(parseInt(_0x111ab6(0x23b))/0x6)+parseInt(_0x111ab6(0x1c6))/0x7+-parseInt(_0x111ab6(0x1a2))/0x8+-parseInt(_0x111ab6(0x13d))/0x9;if(_0x1f0207===_0x292f02)break;else _0x12ff30['push'](_0x12ff30['shift']());}catch(_0x3502ea){_0x12ff30['push'](_0x12ff30['shift']());}}}(_0x3c2c,0x43d1d));var ae=Object['defineProperty'],le=(_0x1038c,_0x52e135,_0x341da2)=>_0x52e135 in _0x1038c?ae(_0x1038c,_0x52e135,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x341da2}):_0x1038c[_0x52e135]=_0x341da2,I=(_0x30753c,_0x177616,_0x3e665d)=>le(_0x30753c,typeof _0x177616!=_0x4c9222(0x22a)?_0x177616+'':_0x177616,_0x3e665d);Object[_0x4c9222(0x1eb)](exports,Symbol[_0x4c9222(0x1cf)],{'value':_0x4c9222(0x297)});function _0x19e5(_0x285fb0,_0x566a9b){const _0x3c2cee=_0x3c2c();return _0x19e5=function(_0x19e567,_0x2e9ce2){_0x19e567=_0x19e567-0x130;let _0x2a2f92=_0x3c2cee[_0x19e567];return _0x2a2f92;},_0x19e5(_0x285fb0,_0x566a9b);}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:_0x435fc3,..._0xac525d}){const _0x4966a1=_0x4c9222,{icon:_0x1dafdb,id:_0x1ee7e7,className:_0x4cd9fd,extend:_0x520af6,..._0x5564d7}=_0xac525d,_0x2bd360=(_0x4966a1(0x285)+_0x1ee7e7+'\x20'+(_0x4cd9fd||''))[_0x4966a1(0x25c)](),_0x168677=d[_0x4966a1(0x219)]('_'+de());return G(_0x1dafdb,''+_0x1ee7e7,{'defIds':_0x1dafdb['defIds'],'idSuffix':_0x168677[_0x4966a1(0x203)]},{'ref':_0x435fc3,'className':_0x2bd360,..._0x5564d7},_0x520af6);}function G(_0x2571c7,_0x2b225b,_0x322c27,_0x3cc458,_0x19ba34){const _0x590146=_0x4c9222;return d[_0x590146(0x1ac)](_0x2571c7['tag'],{'key':_0x2b225b,...ue(_0x2571c7,_0x322c27,_0x19ba34),..._0x3cc458},(ve(_0x2571c7,_0x322c27)['children']||[])[_0x590146(0x24a)]((_0x490b26,_0x1b342d)=>G(_0x490b26,_0x2b225b+'-'+_0x2571c7[_0x590146(0x20a)]+'-'+_0x1b342d,_0x322c27,void 0x0,_0x19ba34)));}function ue(_0x2d3eb4,_0xe5218c,_0x5e58ea){const _0x3f8f2b=_0x4c9222,_0x5f4a80={..._0x2d3eb4['attrs']};_0x5e58ea!=null&&_0x5e58ea[_0x3f8f2b(0x1fd)]&&_0x5f4a80[_0x3f8f2b(0x25d)]===_0x3f8f2b(0x1fd)&&(_0x5f4a80['fill']=_0x5e58ea['colorChannel1']),_0x2d3eb4[_0x3f8f2b(0x20a)]==='mask'&&_0x5f4a80['id']&&(_0x5f4a80['id']=_0x5f4a80['id']+_0xe5218c[_0x3f8f2b(0x2a2)]),Object[_0x3f8f2b(0x174)](_0x5f4a80)['forEach'](([_0x20c2df,_0x61308d])=>{const _0x2630ff=_0x3f8f2b;_0x20c2df===_0x2630ff(0x16c)&&typeof _0x61308d==_0x2630ff(0x147)&&(_0x5f4a80[_0x20c2df]=_0x61308d[_0x2630ff(0x273)](/url\(#(.*)\)/,_0x2630ff(0x235)+_0xe5218c[_0x2630ff(0x2a2)]+')'));});const {defIds:_0x4a6b2b}=_0xe5218c;return!_0x4a6b2b||_0x4a6b2b[_0x3f8f2b(0x1d9)]===0x0||(_0x2d3eb4[_0x3f8f2b(0x20a)]==='use'&&_0x5f4a80[_0x3f8f2b(0x1b3)]&&(_0x5f4a80['xlink:href']=_0x5f4a80[_0x3f8f2b(0x1b3)]+_0xe5218c['idSuffix']),Object['entries'](_0x5f4a80)[_0x3f8f2b(0x1c2)](([_0x4133a2,_0x4fa9e1])=>{const _0x1b40b1=_0x3f8f2b;typeof _0x4fa9e1==_0x1b40b1(0x147)&&(_0x5f4a80[_0x4133a2]=_0x4fa9e1['replace'](/url\(#(.*)\)/,_0x1b40b1(0x235)+_0xe5218c[_0x1b40b1(0x2a2)]+')'));})),_0x5f4a80;}function ve(_0x34ead7,_0x26c0d4){const _0x1c4738=_0x4c9222;var _0x4cdc23;const {defIds:_0x42a8d9}=_0x26c0d4;return!_0x42a8d9||_0x42a8d9[_0x1c4738(0x1d9)]===0x0?_0x34ead7:_0x34ead7['tag']===_0x1c4738(0x14e)&&((_0x4cdc23=_0x34ead7[_0x1c4738(0x230)])!=null&&_0x4cdc23[_0x1c4738(0x1d9)])?{..._0x34ead7,'children':_0x34ead7[_0x1c4738(0x230)][_0x1c4738(0x24a)](_0xd13163=>typeof _0xd13163[_0x1c4738(0x29b)]['id']=='string'&&_0x42a8d9&&_0x42a8d9[_0x1c4738(0x29a)](_0xd13163[_0x1c4738(0x29b)]['id'])?{..._0xd13163,'attrs':{..._0xd13163['attrs'],'id':_0xd13163[_0x1c4738(0x29b)]['id']+_0x26c0d4[_0x1c4738(0x2a2)]}}:_0xd13163)}:_0x34ead7;}function de(){const _0x58e809=_0x4c9222;return Math[_0x58e809(0x22f)]()['toString'](0x24)[_0x58e809(0x167)](0x2,0x8);}_[_0x4c9222(0x2a6)]=_0x4c9222(0x24d);const Ce={'tag':_0x4c9222(0x16a),'attrs':{'xmlns':_0x4c9222(0x185),'fill':_0x4c9222(0x208),'viewBox':_0x4c9222(0x256),'width':_0x4c9222(0x139),'height':_0x4c9222(0x139)},'children':[{'tag':_0x4c9222(0x26b),'attrs':{'fill':_0x4c9222(0x1d6),'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':_0x4c9222(0x210),'clipRule':_0x4c9222(0x210)}}]},H=d[_0x4c9222(0x1f5)](function(_0x50e0ef,_0x237228){const _0xc10c8a=_0x4c9222;return d[_0xc10c8a(0x1ac)](_,Object[_0xc10c8a(0x1a3)]({},_0x50e0ef,{'id':'check-mark-icon','ref':_0x237228,'icon':Ce}));});H[_0x4c9222(0x2a6)]=_0x4c9222(0x2aa);const ge={'tag':_0x4c9222(0x16a),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4c9222(0x208),'viewBox':_0x4c9222(0x256),'width':'1em','height':_0x4c9222(0x139)},'children':[{'tag':_0x4c9222(0x26b),'attrs':{'fill':_0x4c9222(0x1d6),'d':_0x4c9222(0x172)}}]},B=d['forwardRef'](function(_0x19eba3,_0x334564){const _0x53c8f9=_0x4c9222;return d[_0x53c8f9(0x1ac)](_,Object[_0x53c8f9(0x1a3)]({},_0x19eba3,{'id':_0x53c8f9(0x260),'ref':_0x334564,'icon':ge}));});B['displayName']=_0x4c9222(0x268);const fe={'tag':'svg','attrs':{'xmlns':_0x4c9222(0x185),'fill':_0x4c9222(0x208),'viewBox':'0\x200\x2016\x2016','width':_0x4c9222(0x139),'height':'1em'},'children':[{'tag':_0x4c9222(0x26b),'attrs':{'fill':_0x4c9222(0x1d6),'d':_0x4c9222(0x187)}},{'tag':_0x4c9222(0x26b),'attrs':{'fill':_0x4c9222(0x1d6),'d':_0x4c9222(0x1fa)}},{'tag':_0x4c9222(0x26b),'attrs':{'fill':_0x4c9222(0x1d6),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x4c9222(0x210),'clipRule':'evenodd'}}]},F=d[_0x4c9222(0x1f5)](function(_0x34fa29,_0x41487f){const _0x2bc5c9=_0x4c9222;return d[_0x2bc5c9(0x1ac)](_,Object[_0x2bc5c9(0x1a3)]({},_0x34fa29,{'id':'help-icon','ref':_0x41487f,'icon':fe}));});F[_0x4c9222(0x2a6)]=_0x4c9222(0x266);const pe={'tag':_0x4c9222(0x16a),'attrs':{'xmlns':_0x4c9222(0x185),'fill':_0x4c9222(0x208),'viewBox':_0x4c9222(0x256),'width':_0x4c9222(0x139),'height':_0x4c9222(0x139)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x4c9222(0x26b),'attrs':{'stroke':_0x4c9222(0x1d6),'d':_0x4c9222(0x14d),'strokeLinecap':_0x4c9222(0x254),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4c9222(0x14e),'attrs':{},'children':[{'tag':_0x4c9222(0x1ff),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x4c9222(0x26b),'attrs':{'fill':_0x4c9222(0x226),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x4c9222(0x192)]},Y=d[_0x4c9222(0x1f5)](function(_0x5bba72,_0x361587){const _0x2147df=_0x4c9222;return d[_0x2147df(0x1ac)](_,Object[_0x2147df(0x1a3)]({},_0x5bba72,{'id':_0x2147df(0x28c),'ref':_0x361587,'icon':pe}));});Y['displayName']=_0x4c9222(0x1e0);const he={'tag':_0x4c9222(0x16a),'attrs':{'xmlns':_0x4c9222(0x185),'fill':_0x4c9222(0x208),'viewBox':_0x4c9222(0x290),'width':'1em','height':_0x4c9222(0x139)},'children':[{'tag':'g','attrs':{'clipPath':_0x4c9222(0x1fc)},'children':[{'tag':_0x4c9222(0x26b),'attrs':{'stroke':_0x4c9222(0x1d6),'d':_0x4c9222(0x137),'strokeLinecap':_0x4c9222(0x254),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4c9222(0x14e),'attrs':{},'children':[{'tag':_0x4c9222(0x1ff),'attrs':{'id':_0x4c9222(0x173)},'children':[{'tag':_0x4c9222(0x26b),'attrs':{'fill':_0x4c9222(0x226),'d':_0x4c9222(0x233),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-icon_clip0_910_349']},q=d[_0x4c9222(0x1f5)](function(_0x3615e1,_0x4b2713){const _0x5c7e8e=_0x4c9222;return d[_0x5c7e8e(0x1ac)](_,Object['assign']({},_0x3615e1,{'id':'on-line-icon','ref':_0x4b2713,'icon':he}));});q['displayName']=_0x4c9222(0x1b4);function V(_0x2115c0){const _0x35e0f7=_0x4c9222;var _0x4a94f6,_0x1e3798;const {mcpCoreConfig:_0x467e77,onSave:_0xc9447b,loading:_0x1bd7f5=!0x1,config:_0x21df77,connectionStatus$:_0x3f8ff1,connectionError$:_0x184b6a,currentApiKey$:_0xe6aabf,currentSessionId$:_0xe254ef}=_0x2115c0,_0x45337a=v[_0x35e0f7(0x26f)](u[_0x35e0f7(0x277)]),_0x2e53af=v[_0x35e0f7(0x17d)](_0x3f8ff1,s[_0x35e0f7(0x1e2)]['DISCONNECTED']),_0x37c65f=v[_0x35e0f7(0x17d)](_0x184b6a,s[_0x35e0f7(0x166)]['NONE']),_0x40b636=v[_0x35e0f7(0x17d)](_0xe254ef,''),_0x23361a=v[_0x35e0f7(0x17d)](_0xe6aabf,''),[_0x4799b2,_0x3dc26a]=d[_0x35e0f7(0x1d3)](_0x23361a||''),_0x3ad125=!0x0,_0x308fb5=_0x21df77[_0x35e0f7(0x206)]&&_0x467e77[_0x35e0f7(0x240)]&&(_0x467e77[_0x35e0f7(0x240)]['includes'](_0x35e0f7(0x1d5))||_0x467e77[_0x35e0f7(0x240)][_0x35e0f7(0x29a)]('univer.ai')),_0x528915=(_0x4a94f6=_0x467e77[_0x35e0f7(0x240)])==null?void 0x0:_0x4a94f6[_0x35e0f7(0x29a)](_0x35e0f7(0x1d5)),_0x44b0f7=(_0x1e3798=_0x467e77[_0x35e0f7(0x240)])==null?void 0x0:_0x1e3798[_0x35e0f7(0x29a)]('univer.ai'),_0x3b93b3=_0x528915?_0x35e0f7(0x1a7):'https://console.univer.ai',_0x22173f=_0x21df77[_0x35e0f7(0x206)]&&(_0x528915||_0x44b0f7),[_0x48fd94,_0x40129e]=d[_0x35e0f7(0x1d3)](!_0x4799b2[_0x35e0f7(0x25c)]()),_0x3491eb=(_0x445643,_0x5013de)=>{const _0x124a14=_0x35e0f7;if(_0x5013de===s[_0x124a14(0x166)][_0x124a14(0x281)])return _0x124a14(0x1ce);switch(_0x445643){case s[_0x124a14(0x1e2)][_0x124a14(0x191)]:return _0x124a14(0x20d);case s[_0x124a14(0x1e2)][_0x124a14(0x207)]:case s[_0x124a14(0x1e2)][_0x124a14(0x1f0)]:return _0x124a14(0x280);case s[_0x124a14(0x1e2)][_0x124a14(0x1e7)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x59ff73=(_0x5024c9,_0x2dace4)=>{const _0x211164=_0x35e0f7;if(_0x2dace4===s[_0x211164(0x166)][_0x211164(0x281)])return _0x211164(0x1e9);switch(_0x5024c9){case s[_0x211164(0x1e2)]['CONNECTED']:return _0x211164(0x135);case s[_0x211164(0x1e2)]['CONNECTING']:case s[_0x211164(0x1e2)][_0x211164(0x1f0)]:return'univer-bg-blue-500';case s['MCPConnectionStatus'][_0x211164(0x1e7)]:return _0x211164(0x1e9);default:return'univer-bg-gray-500';}},_0x145470=_0x466e8a=>{const _0x580e94=_0x35e0f7;switch(_0x466e8a){case s['MCPConnectionStatus'][_0x580e94(0x191)]:return _0x45337a['t']('mcpConfig.connectionStatus.connected');case s[_0x580e94(0x1e2)][_0x580e94(0x207)]:return _0x45337a['t'](_0x580e94(0x152));case s[_0x580e94(0x1e2)][_0x580e94(0x1e7)]:return _0x45337a['t']('mcpConfig.connectionStatus.failed');case s[_0x580e94(0x1e2)][_0x580e94(0x1f0)]:return _0x45337a['t'](_0x580e94(0x267));default:return _0x45337a['t']('mcpConfig.connectionStatus.disconnected');}},_0x4fba44=_0x161263=>{const _0x5b5065=_0x35e0f7;switch(_0x161263){case s[_0x5b5065(0x166)][_0x5b5065(0x281)]:return _0x45337a['t'](_0x5b5065(0x19a));case s[_0x5b5065(0x166)]['SESSION_ID_OCCUPIED']:return _0x45337a['t']('mcpConfig.connectionError.sessionOccupied');case s[_0x5b5065(0x166)][_0x5b5065(0x1a9)]:return _0x45337a['t'](_0x5b5065(0x132));case s[_0x5b5065(0x166)][_0x5b5065(0x145)]:return _0x45337a['t'](_0x5b5065(0x258));default:return'';}},_0x38999d=d[_0x35e0f7(0x232)](()=>{const _0x4468c9=_0x35e0f7,_0x3fbc35={..._0x467e77,'apiKey':_0x4799b2[_0x4468c9(0x25c)](),'enableAuth':_0x3ad125};_0xc9447b(_0x3fbc35);},[_0x467e77,_0x4799b2,_0x3ad125,_0xc9447b]),_0x55194b=_0x4799b2[_0x35e0f7(0x25c)]()[_0x35e0f7(0x1d9)]>0x0;return i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[i['jsx']('div',{'className':_0x35e0f7(0x179),'children':i['jsxs'](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x29d),'children':[i['jsx'](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x270),'children':i[_0x35e0f7(0x294)](_0x35e0f7(0x248),{'className':_0x35e0f7(0x2a1),'children':'⚙'})}),i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'children':i[_0x35e0f7(0x294)]('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x45337a['t'](_0x35e0f7(0x136))})})]})}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x193),'children':[i[_0x35e0f7(0x294)]('div',{'className':f[_0x35e0f7(0x194)](_0x35e0f7(0x16d),_0x3491eb(_0x2e53af,_0x37c65f)),'children':i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x1bc),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':f[_0x35e0f7(0x194)]('univer-size-2\x20univer-rounded-full',_0x59ff73(_0x2e53af,_0x37c65f))}),i[_0x35e0f7(0x294)](_0x35e0f7(0x248),{'className':_0x35e0f7(0x262),'children':_0x145470(_0x2e53af)})]})}),_0x37c65f!==s[_0x35e0f7(0x166)][_0x35e0f7(0x1f7)]&&(_0x2e53af===s[_0x35e0f7(0x1e2)][_0x35e0f7(0x1e7)]||_0x37c65f===s[_0x35e0f7(0x166)][_0x35e0f7(0x281)])&&i['jsx'](_0x35e0f7(0x1f6),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':i[_0x35e0f7(0x23a)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[i['jsx'](_0x35e0f7(0x248),{'className':_0x35e0f7(0x1af),'children':'⚠️'}),i[_0x35e0f7(0x294)]('p',{'className':_0x35e0f7(0x17c),'children':_0x4fba44(_0x37c65f)})]})})]}),i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x24f),'children':i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x1be),'children':[i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x154),'children':[i[_0x35e0f7(0x23a)](_0x35e0f7(0x1cc),{'className':_0x35e0f7(0x1f9),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x248),{'children':'🔑'}),'\x20',_0x45337a['t'](_0x35e0f7(0x180)),i[_0x35e0f7(0x294)](_0x35e0f7(0x248),{'className':_0x35e0f7(0x162),'children':'*'}),_0x308fb5&&i['jsx']('a',{'className':_0x35e0f7(0x16f),'title':_0x45337a['t'](_0x35e0f7(0x238)),'role':'button','onClick':()=>_0x40129e(!0x0),'children':i[_0x35e0f7(0x294)](F,{})})]}),i[_0x35e0f7(0x294)](f[_0x35e0f7(0x26e)],{'type':'text','placeholder':_0x45337a['t'](_0x35e0f7(0x2a9)),'value':_0x4799b2,'disabled':_0x1bd7f5,'autoComplete':_0x35e0f7(0x251),'onChange':_0x3dc26a}),i[_0x35e0f7(0x294)]('p',{'className':_0x35e0f7(0x176),'children':_0x45337a['t']('mcpConfig.apiKeyHint')})]}),_0x308fb5&&_0x48fd94&&i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x217),'children':[i[_0x35e0f7(0x294)]('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':_0x35e0f7(0x1a4),'onClick':()=>_0x40129e(!0x1),'children':i[_0x35e0f7(0x294)](B,{'className':_0x35e0f7(0x282)})}),i[_0x35e0f7(0x23a)]('div',{'className':_0x35e0f7(0x1e1),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x2ae),'children':i[_0x35e0f7(0x294)]('span',{'className':_0x35e0f7(0x1b1),'children':'🚀'})}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x202),'children':[i[_0x35e0f7(0x294)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x45337a['t']('mcpConfig.apiApplyInfo.title')}),i[_0x35e0f7(0x294)]('p',{'className':_0x35e0f7(0x1ab),'children':_0x45337a['t'](_0x35e0f7(0x27e))}),i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x22173f&&i['jsxs']('a',{'className':_0x35e0f7(0x1aa),'href':_0x3b93b3,'target':'_blank','rel':_0x35e0f7(0x197),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x248),{'children':'🤖'}),_0x45337a['t'](_0x35e0f7(0x1da)),i['jsx'](_0x35e0f7(0x248),{'className':_0x35e0f7(0x168),'children':'↗'})]})}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x45337a['t'](_0x35e0f7(0x13e))]})]})]})]}),_0x21df77['showDeveloperTools']&&i[_0x35e0f7(0x23a)]('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[i['jsxs']('h4',{'className':_0x35e0f7(0x1e8),'children':[i['jsx'](_0x35e0f7(0x248),{'children':'🔗'}),'\x20',_0x45337a['t']('mcpConfig.connectionInfo')]}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':'univer-space-y-4','children':[i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x196),'children':[i[_0x35e0f7(0x294)]('p',{'className':_0x35e0f7(0x1ec),'children':_0x45337a['t'](_0x35e0f7(0x1c4))}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x154),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x21d),'children':_0x45337a['t'](_0x35e0f7(0x27c))}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[i[_0x35e0f7(0x23a)]('div',{'className':_0x35e0f7(0x1bc),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x248),{'className':_0x35e0f7(0x225),'children':'1'}),_0x45337a['t'](_0x35e0f7(0x276))]}),i['jsxs'](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x1bc),'children':[i[_0x35e0f7(0x294)]('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x45337a['t'](_0x35e0f7(0x1a5))]}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i['jsx'](_0x35e0f7(0x248),{'className':_0x35e0f7(0x225),'children':'3'}),_0x45337a['t'](_0x35e0f7(0x274))]})]})]})]}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x154),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':'MCP\x20Configuration'}),i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':i['jsx'](_0x35e0f7(0x271),{'className':_0x35e0f7(0x138),'children':JSON[_0x35e0f7(0x141)]({'mcpServers':{'univer':{'url':_0x35e0f7(0x218)+(_0x40b636||_0x35e0f7(0x23c)),'type':'http','headers':{'Authorization':_0x35e0f7(0x1dd)+(_0x4799b2||_0x35e0f7(0x1d0))}}}},null,0x2)})})]}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x196),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x21d),'children':_0x45337a['t'](_0x35e0f7(0x25b))}),i['jsxs'](_0x35e0f7(0x1f6),{'className':'univer-space-y-2','children':[i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x13b),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x249),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x28e),'children':_0x35e0f7(0x1e4)}),i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x176),'children':_0x45337a['t'](_0x35e0f7(0x1ba))})]})]}),i[_0x35e0f7(0x23a)]('div',{'className':_0x35e0f7(0x13b),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x298)}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x249),'children':[i['jsx'](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x28e),'children':'Authorization:'}),i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x176),'children':_0x45337a['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),i[_0x35e0f7(0x294)](f[_0x35e0f7(0x186)],{'onClick':_0x38999d,'disabled':!_0x55194b||_0x1bd7f5,'className':_0x35e0f7(0x15b),'children':_0x1bd7f5?i[_0x35e0f7(0x23a)](_0x35e0f7(0x248),{'className':_0x35e0f7(0x1bc),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x248),{'children':'⟲'}),_0x45337a['t'](_0x35e0f7(0x16e))]}):i['jsxs'](_0x35e0f7(0x248),{'className':_0x35e0f7(0x1bc),'children':[i['jsx'](H,{}),_0x45337a['t']('mcpConfig.save')]})}),i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x216),'children':i[_0x35e0f7(0x23a)]('div',{'className':_0x35e0f7(0x130),'children':[i[_0x35e0f7(0x294)]('span',{'className':_0x35e0f7(0x1b0),'children':'💡'}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x250),'children':[i['jsx']('div',{'className':_0x35e0f7(0x2a8),'children':'Configuration\x20Notes:'}),i['jsxs']('div',{'children':['•',_0x45337a['t']('mcpConfig.note1')]}),i['jsxs'](_0x35e0f7(0x1f6),{'children':['•',_0x45337a['t'](_0x35e0f7(0x1c7))]})]})]})})]})})]});}const P='mcp-ui.config',L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x4c9222(0x247)],xe=(_0x3e7dee,_0x1347a7,_0x723229,_0xb1f9bf)=>{const _0x40cc04=_0x4c9222;for(var _0x1d4550=_0xb1f9bf>0x1?void 0x0:_0xb1f9bf?me(_0x1347a7,_0x723229):_0x1347a7,_0x4bae5e=_0x3e7dee[_0x40cc04(0x1d9)]-0x1,_0x55eef0;_0x4bae5e>=0x0;_0x4bae5e--)(_0x55eef0=_0x3e7dee[_0x4bae5e])&&(_0x1d4550=_0x55eef0(_0x1d4550)||_0x1d4550);return _0x1d4550;},g=(_0x56900c,_0x451a10)=>(_0x451346,_0x464f74)=>_0x451a10(_0x451346,_0x464f74,_0x56900c);const O=_0x4c9222(0x27b),D=_0x4c9222(0x244);exports[_0x4c9222(0x18e)]=class extends u[_0x4c9222(0x299)]{constructor(_0x142097,_0x270ca2,_0x37979f,_0x5a5646,_0x183cde,_0xb40c36,_0x37d14c,_0x53d96f,_0x398a4a,_0x51c86a){const _0x51c27a=_0x4c9222;super(),I(this,_0x51c27a(0x272),new M['BehaviorSubject'](!0x1)),I(this,_0x51c27a(0x131),new M[(_0x51c27a(0x278))]({})),I(this,_0x51c27a(0x1d4),new M['BehaviorSubject']({})),I(this,_0x51c27a(0x19f),new M[(_0x51c27a(0x278))]('')),I(this,'_handleConfigSave',async _0x199d7c=>{const _0x1fa7c7=_0x51c27a;var _0x24acbc,_0x541e5d;this[_0x1fa7c7(0x272)][_0x1fa7c7(0x1c0)](!0x0);try{const _0x436a23=await this[_0x1fa7c7(0x2ad)](_0x199d7c);if(!_0x436a23['isValid']){this['_messageService'][_0x1fa7c7(0x146)]({'type':f[_0x1fa7c7(0x28d)][_0x1fa7c7(0x134)],'content':_0x436a23[_0x1fa7c7(0x222)]||this['_localeService']['t'](_0x1fa7c7(0x21c))});return;}_0x199d7c['apiKey']?await this[_0x1fa7c7(0x1b8)][_0x1fa7c7(0x263)](O,_0x199d7c[_0x1fa7c7(0x19c)]['trim']()):await this[_0x1fa7c7(0x1b8)][_0x1fa7c7(0x1f3)](O),this[_0x1fa7c7(0x19f)][_0x1fa7c7(0x1c0)](((_0x24acbc=_0x199d7c[_0x1fa7c7(0x19c)])==null?void 0x0:_0x24acbc['trim']())||''),this['_mcpConnectionController'][_0x1fa7c7(0x284)]({'Authorization':_0x1fa7c7(0x1dd)+((_0x541e5d=_0x199d7c[_0x1fa7c7(0x19c)])==null?void 0x0:_0x541e5d[_0x1fa7c7(0x25c)]())}),this[_0x1fa7c7(0x1c9)][_0x1fa7c7(0x146)]({'type':f[_0x1fa7c7(0x28d)]['Success'],'content':this[_0x1fa7c7(0x28b)]['t'](_0x1fa7c7(0x255))}),setTimeout(()=>{const _0x22e07d=_0x1fa7c7;this['_dialogService'][_0x22e07d(0x292)](D);},0x320);}catch(_0x2ffa41){this[_0x1fa7c7(0x1ee)]['error'](_0x1fa7c7(0x1e6),_0x2ffa41),this[_0x1fa7c7(0x1c9)]['show']({'type':f[_0x1fa7c7(0x28d)][_0x1fa7c7(0x134)],'content':this[_0x1fa7c7(0x28b)]['t']('mcpConfig.configError')});}finally{this['_loading$'][_0x1fa7c7(0x1c0)](!0x1);}}),(this[_0x51c27a(0x291)]=_0x142097,this[_0x51c27a(0x17a)]=_0x270ca2,this[_0x51c27a(0x1f4)]=_0x37979f,this['_localStorageService']=_0x5a5646,this[_0x51c27a(0x279)]=_0x183cde,this['_messageService']=_0xb40c36,this[_0x51c27a(0x1a8)]=_0x37d14c,this[_0x51c27a(0x28b)]=_0x53d96f,this[_0x51c27a(0x1ee)]=_0x398a4a,this[_0x51c27a(0x175)]=_0x51c86a,this[_0x51c27a(0x150)](),this['_loadStoredApiKey'](),this[_0x51c27a(0x1db)]());}[_0x4c9222(0x283)](){const _0xcf5ff3=_0x4c9222,_0x38a936=this[_0xcf5ff3(0x1f4)][_0xcf5ff3(0x19e)](P);_0x38a936!=null&&_0x38a936['showDeveloperTools']&&this['_dialogService'][_0xcf5ff3(0x1bd)]({'id':D,'title':{'title':this[_0xcf5ff3(0x28b)]['t'](_0xcf5ff3(0x189))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x21c7cb=_0xcf5ff3;this['_dialogService'][_0x21c7cb(0x292)](D);}});}[_0x4c9222(0x2a3)](){const _0x34df15=_0x4c9222;return this[_0x34df15(0x131)][_0x34df15(0x22d)];}['_registerComponent'](){const _0x5c76e8=_0x4c9222;this['disposeWithMe'](this[_0x5c76e8(0x1a8)][_0x5c76e8(0x25e)](_0x5c76e8(0x22b),this['_createConfigPanelComponent']()));}['_createConfigPanelComponent'](){return v['connectInjector'](()=>{const _0x11392d=_0x19e5;var _0x5b573f,_0x147578,_0x5d3ee3;return i[_0x11392d(0x294)](V,{'config':this[_0x11392d(0x1d4)]['value'],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x11392d(0x22d)],'currentApiKey$':this[_0x11392d(0x19f)],'onSave':this['_handleConfigSave'],'loading':this[_0x11392d(0x272)]['value'],'connectionStatus$':(_0x5b573f=this[_0x11392d(0x175)])==null?void 0x0:_0x5b573f[_0x11392d(0x1ae)],'connectionError$':(_0x147578=this[_0x11392d(0x175)])==null?void 0x0:_0x147578[_0x11392d(0x25a)],'currentSessionId$':(_0x5d3ee3=this[_0x11392d(0x175)])==null?void 0x0:_0x5d3ee3[_0x11392d(0x2a5)]});},this['_injector']);}[_0x4c9222(0x150)](){const _0xb11288=_0x4c9222;this[_0xb11288(0x2a0)](this[_0xb11288(0x1f4)]['subscribeConfigValue$'](s['MCP_PLUGIN_CONFIG_KEY'])[_0xb11288(0x246)](_0x5b5424=>{const _0x413e2d=_0xb11288;this[_0x413e2d(0x131)][_0x413e2d(0x1c0)](_0x5b5424||{});}));const _0x1f1ba4=this[_0xb11288(0x1f4)]['getConfig'](s[_0xb11288(0x171)]);this[_0xb11288(0x131)][_0xb11288(0x1c0)](_0x1f1ba4||{}),this['disposeWithMe'](this[_0xb11288(0x1f4)]['subscribeConfigValue$'](P)[_0xb11288(0x246)](_0x5530f2=>{const _0x2e1a0c=_0xb11288;this[_0x2e1a0c(0x1d4)]['next'](_0x5530f2||{});}));const _0x3760c2=this['_configService'][_0xb11288(0x19e)](P);this[_0xb11288(0x1d4)][_0xb11288(0x1c0)](_0x3760c2||{});}async['_loadStoredApiKey'](){const _0x5d8895=_0x4c9222,_0x445347=this[_0x5d8895(0x1f4)][_0x5d8895(0x19e)](P);if(!(_0x445347!=null&&_0x445347[_0x5d8895(0x206)]))return;const _0x3c6f03=await this[_0x5d8895(0x1b8)]['getItem'](O);_0x3c6f03&&(this['_mcpConnectionController'][_0x5d8895(0x284)]({'Authorization':'Bearer\x20'+_0x3c6f03}),this[_0x5d8895(0x19f)][_0x5d8895(0x1c0)](_0x3c6f03));}async[_0x4c9222(0x2ad)](_0x4127be){const _0x3f37ef=_0x4c9222;if(!_0x4127be[_0x3f37ef(0x19c)]||_0x4127be['apiKey'][_0x3f37ef(0x25c)]()[_0x3f37ef(0x1d9)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x3f37ef(0x28b)]['t'](_0x3f37ef(0x21f))};if(_0x4127be['apiKey'][_0x3f37ef(0x25c)]()[_0x3f37ef(0x1d9)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x3f37ef(0x28b)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x16584e=await this[_0x3f37ef(0x291)][_0x3f37ef(0x149)](s['MCPConnectionController'])[_0x3f37ef(0x1ca)](_0x4127be[_0x3f37ef(0x19c)][_0x3f37ef(0x25c)]());return _0x16584e['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x16584e['error']||this[_0x3f37ef(0x28b)]['t'](_0x3f37ef(0x21b))};}catch(_0x286848){return console['warn'](_0x3f37ef(0x170),_0x286848),{'isValid':!0x0};}}},exports[_0x4c9222(0x18e)]=xe([g(0x0,u['Inject'](u[_0x4c9222(0x159)])),g(0x1,v['IUIPartsService']),g(0x2,u[_0x4c9222(0x2ac)]),g(0x3,u['ILocalStorageService']),g(0x4,v[_0x4c9222(0x183)]),g(0x5,v['IMessageService']),g(0x6,u[_0x4c9222(0x287)](v[_0x4c9222(0x264)])),g(0x7,u[_0x4c9222(0x287)](u['LocaleService'])),g(0x8,u['ILogService']),g(0x9,u[_0x4c9222(0x287)](s[_0x4c9222(0x1fe)]))],exports[_0x4c9222(0x18e)]);const b={'id':_0x4c9222(0x1e5),'type':u[_0x4c9222(0x1a0)]['COMMAND'],'handler':async(_0x46fd81,_0x4c2732)=>(_0x46fd81[_0x4c9222(0x149)](exports[_0x4c9222(0x18e)])['showConfigPanel'](),!0x0)};function Z(_0x403598,_0x4f097a){const _0xabf7ab=_0x4c9222;switch(_0x403598){case s[_0xabf7ab(0x1e2)][_0xabf7ab(0x1ef)]:return _0xabf7ab(0x21a);case s[_0xabf7ab(0x1e2)]['CONNECTING']:return _0xabf7ab(0x1d8);case s['MCPConnectionStatus'][_0xabf7ab(0x191)]:return _0xabf7ab(0x1f1);case s['MCPConnectionStatus'][_0xabf7ab(0x1e7)]:switch(_0x4f097a){case s[_0xabf7ab(0x166)][_0xabf7ab(0x281)]:return _0xabf7ab(0x14b);case s[_0xabf7ab(0x166)][_0xabf7ab(0x1cd)]:return _0xabf7ab(0x1dc);case s[_0xabf7ab(0x166)]['NETWORK_ERROR']:return _0xabf7ab(0x223);case s[_0xabf7ab(0x166)][_0xabf7ab(0x145)]:return'mcpStatus.maxRetriesExceeded';default:return _0xabf7ab(0x212);}case s[_0xabf7ab(0x1e2)][_0xabf7ab(0x1f0)]:return _0xabf7ab(0x13c);default:return _0xabf7ab(0x140);}}function Se(_0x1990bb,_0x43a7ae,_0x39103b,_0x1fb8fd=!0x0){const _0xa2eecd=_0x4c9222,_0xae247e=Z(_0x1990bb,_0x43a7ae),_0x31d814=_0x39103b['t'](_0xae247e);return _0x1fb8fd?_0x1990bb===s[_0xa2eecd(0x1e2)]['DISCONNECTED']&&_0x43a7ae===s[_0xa2eecd(0x166)][_0xa2eecd(0x281)]?_0x31d814+_0xa2eecd(0x234)+_0x39103b['t'](_0xa2eecd(0x13f)):_0x1990bb===s[_0xa2eecd(0x1e2)][_0xa2eecd(0x191)]?''+_0x31d814:_0x1990bb===s[_0xa2eecd(0x1e2)]['DISCONNECTED']||_0x1990bb===s[_0xa2eecd(0x1e2)]['FAILED']?_0x31d814+_0xa2eecd(0x234)+_0x39103b['t'](_0xa2eecd(0x20e)):_0x31d814:_0x31d814;}function Pe(_0x5c80c3){const _0x5eda7b=_0x4c9222;switch(_0x5c80c3){case s[_0x5eda7b(0x1e2)][_0x5eda7b(0x191)]:return'univer-text-green-500';case s[_0x5eda7b(0x1e2)]['CONNECTING']:case s[_0x5eda7b(0x1e2)][_0x5eda7b(0x1f0)]:return'univer-text-yellow-500';case s[_0x5eda7b(0x1e2)][_0x5eda7b(0x1e7)]:case s[_0x5eda7b(0x1e2)][_0x5eda7b(0x1ef)]:return'univer-text-red-500';default:return _0x5eda7b(0x153);}}function W(_0x48697b){const _0x9e8d5=_0x4c9222,{status$:_0x33f1d2,error$:_0x5bc281,onConfigure:_0x369655,showClickable:_0x4bc9b8=!0x0}=_0x48697b,_0x558ff8=v['useObservable'](_0x33f1d2,s[_0x9e8d5(0x1e2)]['DISCONNECTED']),_0xc685af=v[_0x9e8d5(0x17d)](_0x5bc281,s[_0x9e8d5(0x166)]['NONE']),_0x116823=v[_0x9e8d5(0x26f)](u[_0x9e8d5(0x277)]),_0x16df0c=_0x558ff8===s[_0x9e8d5(0x1e2)][_0x9e8d5(0x191)];_0x558ff8===s[_0x9e8d5(0x1e2)][_0x9e8d5(0x207)]||s[_0x9e8d5(0x1e2)][_0x9e8d5(0x1f0)];const _0x1b2583=_0x116823['t'](Z(_0x558ff8,_0xc685af)),_0x43f41d=Se(_0x558ff8,_0xc685af,_0x116823,_0x4bc9b8),_0x548e43=Pe(_0x558ff8),_0x45161c=_0x16df0c?i['jsx'](q,{}):i['jsx'](Y,{}),_0x24961d=d[_0x9e8d5(0x232)](()=>{_0x4bc9b8&&_0x369655&&_0x369655();},[_0x4bc9b8,_0x369655]);function _0x2befae(){const _0xc31d29=_0x9e8d5;return i[_0xc31d29(0x23a)](_0xc31d29(0x1f6),{'className':f['clsx'](_0xc31d29(0x239),_0x4bc9b8&&_0x369655&&_0xc31d29(0x224)),'role':_0xc31d29(0x1a4),'onClick':_0x4bc9b8&&_0x369655?_0x24961d:void 0x0,'children':[i[_0xc31d29(0x294)](_0xc31d29(0x1f6),{'className':f['clsx'](_0xc31d29(0x1b6),_0x548e43),'children':_0x45161c}),i[_0xc31d29(0x294)](_0xc31d29(0x1f6),{'className':_0xc31d29(0x25f),'children':_0x1b2583})]});}return i[_0x9e8d5(0x294)](f['Tooltip'],{'title':_0x43f41d,'placement':_0x9e8d5(0x195),'children':_0x2befae()});}var Ie=Object['getOwnPropertyDescriptor'],_e=(_0x18be46,_0x42f0d8,_0x350713,_0x3e91cc)=>{const _0xeacb01=_0x4c9222;for(var _0x4b2c70=_0x3e91cc>0x1?void 0x0:_0x3e91cc?Ie(_0x42f0d8,_0x350713):_0x42f0d8,_0x5ccbf3=_0x18be46[_0xeacb01(0x1d9)]-0x1,_0xd68587;_0x5ccbf3>=0x0;_0x5ccbf3--)(_0xd68587=_0x18be46[_0x5ccbf3])&&(_0x4b2c70=_0xd68587(_0x4b2c70)||_0x4b2c70);return _0x4b2c70;},N=(_0x3cfaf9,_0x4c4bef)=>(_0x136042,_0x55389b)=>_0x4c4bef(_0x136042,_0x55389b,_0x3cfaf9);exports[_0x4c9222(0x1d1)]=class extends u[_0x4c9222(0x299)]{constructor(_0xd02072,_0x149bfb,_0x267d4e,_0x3f975e){const _0x4096ee=_0x4c9222;super(),this[_0x4096ee(0x291)]=_0xd02072,this['_connectionController']=_0x149bfb,this['_uiPartsService']=_0x267d4e,this['_configService']=_0x3f975e,this['_initAutoConnect'](),this[_0x4096ee(0x29e)]();}[_0x4c9222(0x201)](){const _0x22b916=_0x4c9222,_0x6e344b=this['_configService']['getConfig'](P);_0x6e344b!=null&&_0x6e344b[_0x22b916(0x206)]&&(this[_0x22b916(0x257)]['enableAutoConnect']=!0x1);}[_0x4c9222(0x29e)](){const _0x59f6ef=_0x4c9222,_0x2af691=this[_0x59f6ef(0x1f4)]['getConfig'](P);(_0x2af691==null?void 0x0:_0x2af691[_0x59f6ef(0x236)])!==!0x1&&this['disposeWithMe'](this[_0x59f6ef(0x17a)][_0x59f6ef(0x215)](v[_0x59f6ef(0x155)][_0x59f6ef(0x29f)],()=>{const _0x1e0529=_0x59f6ef;var _0x18722d;return v[_0x1e0529(0x1a1)](ye({'status$':this['_connectionController'][_0x1e0529(0x1ae)],'error$':this['_connectionController'][_0x1e0529(0x25a)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x18722d=_0x2af691==null?void 0x0:_0x2af691['showDeveloperTools'])!=null?_0x18722d:!0x1}),this['_injector']);}));}[_0x4c9222(0x22c)](){const _0xbc9ee0=_0x4c9222;this[_0xbc9ee0(0x291)][_0xbc9ee0(0x149)](exports[_0xbc9ee0(0x18e)])[_0xbc9ee0(0x283)]();}},exports['MCPConnectionUIController']=_e([N(0x0,u[_0x4c9222(0x287)](u[_0x4c9222(0x159)])),N(0x1,u['Inject'](s['MCPConnectionController'])),N(0x2,v[_0x4c9222(0x27a)]),N(0x3,u[_0x4c9222(0x2ac)])],exports['MCPConnectionUIController']);function ye(_0x26730c){const {status$:_0x395610,error$:_0x43dc35,onConfigure:_0x49950a,showClickable:_0x4729f0}=_0x26730c;return function(){return i['jsx'](W,{'status$':_0x395610,'error$':_0x43dc35,'onConfigure':_0x49950a,'showClickable':_0x4729f0});};}function Me(_0x2e5806){const _0x111a65=_0x4c9222;return{'id':b['id'],'type':v['MenuItemType']['BUTTON'],'icon':_0x111a65(0x29c),'title':_0x111a65(0x189),'tooltip':_0x111a65(0x189)};}const Ne={[v[_0x4c9222(0x1ad)]['OTHERS']]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};function _0x3c2c(){const _0x24c26d=['registerComponent','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','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','https://mcp.univer.ai/mcp/?univer_session_id=','useRef','mcpStatus.disconnected','mcpConfig.validation.invalidApiKey','mcpConfig.validation.invalidConfig','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','_initializeMenus','mcpConfig.validation.apiKeyRequired','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20密钥无效,请检查密钥是否正确','errorMessage','mcpStatus.networkError','\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','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','white','MCP\x20连接失败','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Retrying...','symbol','MCPConfigPanel','_handleConfigure','value','将以下配置添加到您的\x20MCP\x20客户端设置中:','random','children','MCP\x20状态未知','useCallback','M0\x200H16V16H0z','\x20-\x20','url(#$1','showStatus','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcpConfig.apiApplyInfo.title','univer-flex\x20univer-items-center','jsxs','198618bUnkKK','<SESSION_ID>','权限验证失败,请检查您的\x20API\x20密钥','Plugin','重启您的\x20MCP\x20客户端以使配置生效','mcpServerUrl','MCPStatusDisplay','MCP:\x20Unauthorized','Configuration\x20Steps:','mcp-config-dialog','mergeMenu','subscribe','getOwnPropertyDescriptor','span','univer-min-w-0\x20univer-flex-1','map','_menuManagerService','配置\x20MCP\x20使用\x20AI\x20操作电子表格','UniverIcon','MCP\x20已断开','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','off','MCP\x20客户端配置','已连接','round','mcpConfig.configSaved','0\x200\x2016\x2016','_connectionController','mcpConfig.connectionError.maxRetriesExceeded','API\x20Key','connectionError$','mcpConfig.configParameters','trim','fill','register','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','close-icon','配置参数:','univer-text-sm\x20univer-font-medium','setItem','ComponentManager','has','HelpIcon','mcpConfig.connectionStatus.retrying','CloseIcon','MCP:\x20Session\x20ID\x20Occupied','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','path','MCP_UI_PLUGIN','Click\x20to\x20connect\x20MCP','Input','useDependency','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','pre','_loading$','replace','mcpConfig.configStep3','API\x20密钥不能为空','mcpConfig.configStep1','LocaleService','BehaviorSubject','_dialogService','IUIPartsService','mcp.apiKey','mcpConfig.configStepTitle','Session\x20ID','mcpConfig.apiApplyInfo.description','Enable\x20authentication\x20for\x20secure\x20connections','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','UNAUTHORIZED','univer-size-4','showConfigPanel','__setCustomHeaders','univerjs-icon\x20univerjs-icon-','您的\x20API\x20密钥将在此浏览器中本地存储','Inject','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','会话ID','MCP:\x20会话\x20ID\x20已被占用','_localeService','off-line-icon','MessageType','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','ICommandService','0\x200\x2017\x2016','_injector','close','_initializeCommands','jsx','Click\x20to\x20configure\x20MCP','DependentOn','Module','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Disposable','includes','attrs','MenuIcon','univer-flex\x20univer-items-center\x20univer-gap-3','_initStatusComponent','HEADER_MENU','disposeWithMe','univer-text-white','idSuffix','getCurrentConfig','MCP\x20已连接','sessionId$','displayName','MCP\x20Retrying...','univer-font-medium','mcpConfig.apiKeyPlaceholder','CheckMarkIcon','What\x20is\x20API\x20Key?','IConfigService','_validateConfig','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-flex\x20univer-gap-3','_mcpCoreConfig$','mcpConfig.connectionError.networkError','push','Error','univer-bg-green-500','mcpConfig.description','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','1em','15UmnpzW','univer-flex\x20univer-items-start\x20univer-gap-3','mcpStatus.retrying','4845294yfnwGG','mcpConfig.apiApplyInfo.getStarted','mcpStatus.clickToConfigure','mcpStatus.unknown','stringify','Disconnected','registerCommand','API\x20密钥长度至少需要\x2010\x20位','MAX_RETRIES_EXCEEDED','show','string','Connected','get','2hguNgj','mcpStatus.unauthorized','zhCN','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','defs','点击连接\x20MCP','_initConfigSync','将配置添加到您的\x20MCP\x20客户端设置文件中','mcpConfig.connectionStatus.connecting','univer-text-gray-500','univer-space-y-2','BuiltInUIPart','保存配置','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20配置','Injector','配置保存成功','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','几秒钟内获取您的\x20API\x20密钥','UniverMCPPlugin','setConfig','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connecting...','Enter\x20your\x20API\x20key','univer-text-red-500','IMenuManagerService','MCPUIMenuController','未连接','MCPConnectionError','substring','univer-text-gray-400','1287543abHjJx','svg','Get\x20your\x20API\x20key\x20in\x20seconds','mask','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','mcpConfig.saving','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','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','MCP_PLUGIN_CONFIG_KEY','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','on-line-icon_clip0_910_349','entries','_mcpConnectionController','univer-text-xs\x20univer-text-gray-500','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Failed\x20to\x20save\x20configuration','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','_uiPartsService','Invalid\x20configuration','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','useObservable','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20未授权','mcpConfig.apiKey','会话\x20ID\x20已被占用,请稍后再试','启用身份验证','IDialogService','请输入您的\x20API\x20密钥','http://www.w3.org/2000/svg','Button','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','ISocketService','mcpConfig.title','enUS','MCP:\x20网络错误','_config','MCP\x20重连中...','MCPConfigUIController','207634XbDLfU','pluginName','CONNECTED','off-line-icon_clip0_910_343','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','clsx','bottom','univer-space-y-3','noopener\x20noreferrer','Save\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','mcpConfig.connectionError.unauthorized','Configuration\x20saved\x20successfully','apiKey','WebSocketService','getConfig','_apiKey$','CommandType','connectInjector','760VNMfhu','assign','button','mcpConfig.configStep2','配置保存失败','https://console.univer.plus','_componentManager','NETWORK_ERROR','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-text-xs\x20univer-text-gray-600','createElement','RibbonStartGroup','connectionStatus$','univer-shrink-0\x20univer-text-red-500','univer-shrink-0\x20univer-text-blue-500','univer-text-blue-600','API\x20key\x20is\x20required','xlink:href','OnLineIcon','MCP\x20Connecting...','univer-mr-2\x20univer-flex\x20univer-text-xl','MCP:\x20Network\x20Error','_localStorageService','连接中...','mcpConfig.sessionIdDescription','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','univer-flex\x20univer-items-center\x20univer-gap-2','open','univer-space-y-5','API\x20密钥','next','复制以下\x20JSON\x20配置','forEach','488300ByKhmm','mcpConfig.configInstructions','重连中...','1415407QRMMpZ','mcpConfig.note2','add','_messageService','validateApiKey','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','label','SESSION_ID_OCCUPIED','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','toStringTag','<API_KEY>','MCPConnectionUIController','Enable\x20Authentication','useState','_config$','univer.plus','currentColor','MCP\x20Connection\x20Failed','mcpStatus.connecting','length','mcpConfig.apiApplyInfo.univerAiLabel','_registerComponent','mcpStatus.sessionOccupied','Bearer\x20','保存中...','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','OffLineIcon','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','MCPConnectionStatus','最大重试次数','univer_session_id:','mcp-ui.command.openConfigPanel','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','FAILED','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-bg-red-500','MCP:\x20Max\x20Retries\x20Exceeded','defineProperty','univer-text-xs\x20univer-text-gray-600','UniverMCPUIPlugin','_logService','DISCONNECTED','RETRYING','mcpStatus.connected','点击配置\x20MCP','removeItem','_configService','forwardRef','div','NONE','启用身份验证以获得安全连接','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','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','Copy\x20the\x20JSON\x20configuration\x20below','url(#on-line-icon_clip0_910_349)','colorChannel1','MCPConnectionController','clipPath','MCP:\x20超出最大重试次数','_initAutoConnect','univer-flex-1','current','MCP\x20Connected','Configuration\x20Parameters:','showDeveloperTools','CONNECTING','none','配置步骤:','tag','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20Unknown\x20Status','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mcpStatus.clickToConnect','_commandService','evenodd','Max\x20Retries','mcpStatus.failed','配置更改将立即生效','ILocalStorageService'];_0x3c2c=function(){return _0x24c26d;};return _0x3c2c();}var be=Object[_0x4c9222(0x247)],je=(_0x2e5ab2,_0x345b26,_0x53f8ad,_0x439e91)=>{const _0x304d97=_0x4c9222;for(var _0x450602=_0x439e91>0x1?void 0x0:_0x439e91?be(_0x345b26,_0x53f8ad):_0x345b26,_0x61d6d2=_0x2e5ab2[_0x304d97(0x1d9)]-0x1,_0x5aff6b;_0x61d6d2>=0x0;_0x61d6d2--)(_0x5aff6b=_0x2e5ab2[_0x61d6d2])&&(_0x450602=_0x5aff6b(_0x450602)||_0x450602);return _0x450602;},z=(_0x2fc5b9,_0x123481)=>(_0x4011ce,_0x24c252)=>_0x123481(_0x4011ce,_0x24c252,_0x2fc5b9);exports[_0x4c9222(0x164)]=class extends u[_0x4c9222(0x299)]{constructor(_0x13b995,_0x443171){const _0x538d39=_0x4c9222;super(),this[_0x538d39(0x20f)]=_0x13b995,this[_0x538d39(0x24b)]=_0x443171,this[_0x538d39(0x293)](),this[_0x538d39(0x21e)]();}[_0x4c9222(0x293)](){const _0x5d261c=_0x4c9222;[b][_0x5d261c(0x1c2)](_0x3c0f56=>{const _0x4a1c59=_0x5d261c;this[_0x4a1c59(0x2a0)](this[_0x4a1c59(0x20f)][_0x4a1c59(0x143)](_0x3c0f56));});}[_0x4c9222(0x21e)](){const _0x171f13=_0x4c9222;this['_menuManagerService'][_0x171f13(0x245)](Ne);}},exports[_0x4c9222(0x164)]=je([z(0x0,u[_0x4c9222(0x28f)]),z(0x1,v[_0x4c9222(0x163)])],exports[_0x4c9222(0x164)]);const Ee={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x4c9222(0x1b5),'connected':_0x4c9222(0x204),'failed':_0x4c9222(0x1d7),'retrying':_0x4c9222(0x2a7),'unknown':_0x4c9222(0x20c),'unauthorized':_0x4c9222(0x242),'sessionOccupied':_0x4c9222(0x269),'networkError':_0x4c9222(0x1b7),'maxRetriesExceeded':_0x4c9222(0x1ea),'clickToConnect':_0x4c9222(0x26d),'clickToConfigure':_0x4c9222(0x295)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x4c9222(0x177),'apiKey':_0x4c9222(0x259),'apiKeyPlaceholder':_0x4c9222(0x161),'apiKeyHint':_0x4c9222(0x288),'enableAuth':_0x4c9222(0x1d2),'enableAuthHint':_0x4c9222(0x27f),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4c9222(0x26a),'configStepTitle':_0x4c9222(0x243),'configStep1':_0x4c9222(0x1fb),'configStep2':_0x4c9222(0x1cb),'configStep3':_0x4c9222(0x199),'sessionId':_0x4c9222(0x27d),'sessionIdDescription':_0x4c9222(0x220),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x4c9222(0x205),'maxRetries':_0x4c9222(0x211),'save':_0x4c9222(0x198),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x4c9222(0x17e),'configSaved':_0x4c9222(0x19b),'configError':_0x4c9222(0x178),'apiApplyInfo':{'title':_0x4c9222(0x2ab),'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':_0x4c9222(0x16b)},'validation':{'apiKeyRequired':_0x4c9222(0x1b2),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x4c9222(0x17b),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x4c9222(0x142),'connecting':_0x4c9222(0x160),'connected':_0x4c9222(0x148),'failed':'Connection\x20Failed','retrying':_0x4c9222(0x229)},'connectionError':{'unauthorized':_0x4c9222(0x157),'sessionOccupied':_0x4c9222(0x1bb),'networkError':_0x4c9222(0x228),'maxRetriesExceeded':_0x4c9222(0x15f)}}},we={'mcpStatus':{'disconnected':_0x4c9222(0x24e),'connecting':'MCP\x20连接中...','connected':_0x4c9222(0x2a4),'failed':_0x4c9222(0x227),'retrying':_0x4c9222(0x18d),'unknown':_0x4c9222(0x231),'unauthorized':_0x4c9222(0x17f),'sessionOccupied':_0x4c9222(0x28a),'networkError':_0x4c9222(0x18b),'maxRetriesExceeded':_0x4c9222(0x200),'clickToConnect':_0x4c9222(0x14f),'clickToConfigure':_0x4c9222(0x1f2)},'mcpConfig':{'title':_0x4c9222(0x158),'description':_0x4c9222(0x24c),'apiKey':_0x4c9222(0x1bf),'apiKeyPlaceholder':_0x4c9222(0x184),'apiKeyHint':_0x4c9222(0x286),'enableAuth':_0x4c9222(0x182),'enableAuthHint':_0x4c9222(0x1f8),'connectionInfo':_0x4c9222(0x252),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x4c9222(0x22e),'configStepTitle':_0x4c9222(0x209),'configStep1':_0x4c9222(0x1c1),'configStep2':_0x4c9222(0x151),'configStep3':_0x4c9222(0x23f),'sessionId':_0x4c9222(0x289),'sessionIdDescription':_0x4c9222(0x1df),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x4c9222(0x261),'maxRetries':_0x4c9222(0x1e3),'save':_0x4c9222(0x156),'saving':_0x4c9222(0x1de),'note1':_0x4c9222(0x213),'note2':_0x4c9222(0x20b),'configSaved':_0x4c9222(0x15a),'configError':_0x4c9222(0x1a6),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x4c9222(0x237),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x4c9222(0x15c)},'validation':{'apiKeyRequired':_0x4c9222(0x275),'apiKeyTooShort':_0x4c9222(0x144),'invalidConfig':'配置无效','invalidApiKey':_0x4c9222(0x221)},'connectionStatus':{'disconnected':_0x4c9222(0x165),'connecting':_0x4c9222(0x1b9),'connected':_0x4c9222(0x253),'failed':'连接失败','retrying':_0x4c9222(0x1c5)},'connectionError':{'unauthorized':_0x4c9222(0x23d),'sessionOccupied':_0x4c9222(0x181),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var Ae=Object[_0x4c9222(0x1eb)],Oe=Object[_0x4c9222(0x247)],De=(_0xe110a2,_0x90eba1,_0x590fa3)=>_0x90eba1 in _0xe110a2?Ae(_0xe110a2,_0x90eba1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x590fa3}):_0xe110a2[_0x90eba1]=_0x590fa3,Ue=(_0x31c550,_0x4fff59,_0x26d801,_0x10f593)=>{const _0x413e1a=_0x4c9222;for(var _0x5b73b6=_0x10f593>0x1?void 0x0:_0x10f593?Oe(_0x4fff59,_0x26d801):_0x4fff59,_0x13a932=_0x31c550[_0x413e1a(0x1d9)]-0x1,_0x37b669;_0x13a932>=0x0;_0x13a932--)(_0x37b669=_0x31c550[_0x13a932])&&(_0x5b73b6=_0x37b669(_0x5b73b6)||_0x5b73b6);return _0x5b73b6;},y=(_0x50c3f3,_0x2a9f4e)=>(_0x160a8e,_0x16755a)=>_0x2a9f4e(_0x160a8e,_0x16755a,_0x50c3f3),$e=(_0x4551f5,_0x432bc2,_0x3e1468)=>De(_0x4551f5,_0x432bc2+'',_0x3e1468);exports['UniverMCPUIPlugin']=class extends u[_0x4c9222(0x23e)]{constructor(_0x3d7ecc=L,_0xa6adb3,_0x527c7a,_0x469acc,_0x3ea5b4,_0x30fd14){const _0x434982=_0x4c9222;super(),this[_0x434982(0x18c)]=_0x3d7ecc,this[_0x434982(0x291)]=_0xa6adb3,this[_0x434982(0x1f4)]=_0x527c7a,this[_0x434982(0x17a)]=_0x469acc,this['_localStorageService']=_0x3ea5b4,this[_0x434982(0x28b)]=_0x30fd14;const {..._0x293730}=u['merge']({},L,this[_0x434982(0x18c)]);this[_0x434982(0x1f4)][_0x434982(0x15e)](P,_0x293730);}async['onStarting'](){const _0x2d6d72=_0x4c9222,_0x40e557=[[exports[_0x2d6d72(0x1d1)]],[exports[_0x2d6d72(0x18e)]],[exports[_0x2d6d72(0x164)]]];this['_injector'][_0x2d6d72(0x265)](A[_0x2d6d72(0x188)])||_0x40e557[_0x2d6d72(0x133)]([A[_0x2d6d72(0x188)],{'useClass':A[_0x2d6d72(0x19d)]}]),_0x40e557[_0x2d6d72(0x1c2)](_0x3d9084=>this['_injector'][_0x2d6d72(0x1c8)](_0x3d9084)),this[_0x2d6d72(0x291)]['get'](exports['MCPConnectionUIController']),this[_0x2d6d72(0x291)][_0x2d6d72(0x149)](exports[_0x2d6d72(0x18e)]),this[_0x2d6d72(0x291)][_0x2d6d72(0x149)](exports[_0x2d6d72(0x164)]);}},$e(exports[_0x4c9222(0x1ed)],_0x4c9222(0x190),_0x4c9222(0x26c)),exports[_0x4c9222(0x1ed)]=Ue([u[_0x4c9222(0x296)](s[_0x4c9222(0x15d)]),y(0x1,u[_0x4c9222(0x287)](u[_0x4c9222(0x159)])),y(0x2,u['IConfigService']),y(0x3,v['IUIPartsService']),y(0x4,u[_0x4c9222(0x214)]),y(0x5,u[_0x4c9222(0x287)](u[_0x4c9222(0x277)]))],exports[_0x4c9222(0x1ed)]),exports[_0x4c9222(0x22b)]=V,exports[_0x4c9222(0x241)]=W,exports['OpenMCPConfigPanelCommand']=b,exports[_0x4c9222(0x18a)]=Ee,exports[_0x4c9222(0x14c)]=we;
|
|
1
|
+
'use strict';const _0x17225c=_0x71a7;(function(_0x5c13c6,_0x10e07d){const _0x59e045=_0x71a7,_0x315495=_0x5c13c6();while(!![]){try{const _0x296a23=parseInt(_0x59e045(0x293))/0x1+parseInt(_0x59e045(0x200))/0x2+-parseInt(_0x59e045(0x239))/0x3+-parseInt(_0x59e045(0x23e))/0x4*(-parseInt(_0x59e045(0x282))/0x5)+parseInt(_0x59e045(0x16a))/0x6+parseInt(_0x59e045(0x26d))/0x7+-parseInt(_0x59e045(0x2c0))/0x8;if(_0x296a23===_0x10e07d)break;else _0x315495['push'](_0x315495['shift']());}catch(_0x5c3634){_0x315495['push'](_0x315495['shift']());}}}(_0x48fd,0xef4ae));var ae=Object[_0x17225c(0x1ca)],le=(_0x3430d9,_0x30ec40,_0xe53aaa)=>_0x30ec40 in _0x3430d9?ae(_0x3430d9,_0x30ec40,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe53aaa}):_0x3430d9[_0x30ec40]=_0xe53aaa,I=(_0x368a5a,_0x415220,_0x4da0a4)=>le(_0x368a5a,typeof _0x415220!=_0x17225c(0x236)?_0x415220+'':_0x415220,_0x4da0a4);Object[_0x17225c(0x1ca)](exports,Symbol[_0x17225c(0x15c)],{'value':_0x17225c(0x284)});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:_0xb21ad4,..._0x8f0860}){const _0x2edd40=_0x17225c,{icon:_0x26e0dd,id:_0x4aa278,className:_0x1be2d8,extend:_0x27e1ee,..._0x664d8e}=_0x8f0860,_0x29f656=(_0x2edd40(0x27f)+_0x4aa278+'\x20'+(_0x1be2d8||''))['trim'](),_0x13290=d[_0x2edd40(0x1da)]('_'+de());return G(_0x26e0dd,''+_0x4aa278,{'defIds':_0x26e0dd[_0x2edd40(0x285)],'idSuffix':_0x13290[_0x2edd40(0x1cc)]},{'ref':_0xb21ad4,'className':_0x29f656,..._0x664d8e},_0x27e1ee);}function G(_0x21bd60,_0x15c703,_0x202bc7,_0x50950b,_0xff66e7){const _0xcbf080=_0x17225c;return d[_0xcbf080(0x143)](_0x21bd60['tag'],{'key':_0x15c703,...ue(_0x21bd60,_0x202bc7,_0xff66e7),..._0x50950b},(ve(_0x21bd60,_0x202bc7)[_0xcbf080(0x1b9)]||[])[_0xcbf080(0x147)]((_0x1d9933,_0x388c98)=>G(_0x1d9933,_0x15c703+'-'+_0x21bd60[_0xcbf080(0x17f)]+'-'+_0x388c98,_0x202bc7,void 0x0,_0xff66e7)));}function ue(_0x57408d,_0x45c1c5,_0x11e172){const _0x198413=_0x17225c,_0x216725={..._0x57408d['attrs']};_0x11e172!=null&&_0x11e172[_0x198413(0x19e)]&&_0x216725[_0x198413(0x24f)]===_0x198413(0x19e)&&(_0x216725[_0x198413(0x24f)]=_0x11e172[_0x198413(0x19e)]),_0x57408d[_0x198413(0x17f)]===_0x198413(0x254)&&_0x216725['id']&&(_0x216725['id']=_0x216725['id']+_0x45c1c5['idSuffix']),Object[_0x198413(0x19f)](_0x216725)[_0x198413(0x175)](([_0x54963c,_0x261c4a])=>{const _0x2af1e1=_0x198413;_0x54963c===_0x2af1e1(0x254)&&typeof _0x261c4a=='string'&&(_0x216725[_0x54963c]=_0x261c4a['replace'](/url\(#(.*)\)/,_0x2af1e1(0x16d)+_0x45c1c5[_0x2af1e1(0x260)]+')'));});const {defIds:_0x523c62}=_0x45c1c5;return!_0x523c62||_0x523c62['length']===0x0||(_0x57408d['tag']===_0x198413(0x1fe)&&_0x216725[_0x198413(0x1de)]&&(_0x216725['xlink:href']=_0x216725[_0x198413(0x1de)]+_0x45c1c5[_0x198413(0x260)]),Object[_0x198413(0x19f)](_0x216725)[_0x198413(0x175)](([_0xf6a80c,_0x4b1fb7])=>{const _0x3d17ed=_0x198413;typeof _0x4b1fb7==_0x3d17ed(0x26f)&&(_0x216725[_0xf6a80c]=_0x4b1fb7[_0x3d17ed(0x227)](/url\(#(.*)\)/,_0x3d17ed(0x16d)+_0x45c1c5[_0x3d17ed(0x260)]+')'));})),_0x216725;}function ve(_0x268d1d,_0x21af66){const _0x8b2d9f=_0x17225c;var _0x5046fe;const {defIds:_0x183af7}=_0x21af66;return!_0x183af7||_0x183af7[_0x8b2d9f(0x22a)]===0x0?_0x268d1d:_0x268d1d[_0x8b2d9f(0x17f)]===_0x8b2d9f(0x1be)&&((_0x5046fe=_0x268d1d[_0x8b2d9f(0x1b9)])!=null&&_0x5046fe[_0x8b2d9f(0x22a)])?{..._0x268d1d,'children':_0x268d1d[_0x8b2d9f(0x1b9)][_0x8b2d9f(0x147)](_0x582787=>typeof _0x582787[_0x8b2d9f(0x297)]['id']==_0x8b2d9f(0x26f)&&_0x183af7&&_0x183af7[_0x8b2d9f(0x2c9)](_0x582787[_0x8b2d9f(0x297)]['id'])?{..._0x582787,'attrs':{..._0x582787[_0x8b2d9f(0x297)],'id':_0x582787[_0x8b2d9f(0x297)]['id']+_0x21af66[_0x8b2d9f(0x260)]}}:_0x582787)}:_0x268d1d;}function de(){const _0x1f616e=_0x17225c;return Math[_0x1f616e(0x1e1)]()[_0x1f616e(0x1db)](0x24)[_0x1f616e(0x1c3)](0x2,0x8);}_['displayName']=_0x17225c(0x1a6);const Ce={'tag':_0x17225c(0x28d),'attrs':{'xmlns':_0x17225c(0x1e6),'fill':'none','viewBox':_0x17225c(0x205),'width':'1em','height':_0x17225c(0x2ba)},'children':[{'tag':_0x17225c(0x1c0),'attrs':{'fill':_0x17225c(0x295),'d':_0x17225c(0x1e2),'fillRule':_0x17225c(0x160),'clipRule':'evenodd'}}]},H=d[_0x17225c(0x179)](function(_0x3cb519,_0x266de7){const _0x1d7630=_0x17225c;return d[_0x1d7630(0x143)](_,Object[_0x1d7630(0x24b)]({},_0x3cb519,{'id':_0x1d7630(0x2ae),'ref':_0x266de7,'icon':Ce}));});H['displayName']='CheckMarkIcon';const ge={'tag':_0x17225c(0x28d),'attrs':{'xmlns':_0x17225c(0x1e6),'fill':_0x17225c(0x2ca),'viewBox':'0\x200\x2016\x2016','width':_0x17225c(0x2ba),'height':_0x17225c(0x2ba)},'children':[{'tag':_0x17225c(0x1c0),'attrs':{'fill':_0x17225c(0x295),'d':_0x17225c(0x2bd)}}]},B=d[_0x17225c(0x179)](function(_0x112997,_0x32e124){const _0x24782b=_0x17225c;return d[_0x24782b(0x143)](_,Object[_0x24782b(0x24b)]({},_0x112997,{'id':'close-icon','ref':_0x32e124,'icon':ge}));});B[_0x17225c(0x1b3)]=_0x17225c(0x171);const fe={'tag':_0x17225c(0x28d),'attrs':{'xmlns':_0x17225c(0x1e6),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x17225c(0x2ba),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x17225c(0x295),'d':_0x17225c(0x15a)}},{'tag':_0x17225c(0x1c0),'attrs':{'fill':_0x17225c(0x295),'d':_0x17225c(0x195)}},{'tag':_0x17225c(0x1c0),'attrs':{'fill':_0x17225c(0x295),'d':_0x17225c(0x19c),'fillRule':'evenodd','clipRule':'evenodd'}}]},F=d[_0x17225c(0x179)](function(_0xbac26,_0x3f445e){const _0x5d6185=_0x17225c;return d[_0x5d6185(0x143)](_,Object[_0x5d6185(0x24b)]({},_0xbac26,{'id':_0x5d6185(0x149),'ref':_0x3f445e,'icon':fe}));});F['displayName']=_0x17225c(0x2ac);const pe={'tag':_0x17225c(0x28d),'attrs':{'xmlns':_0x17225c(0x1e6),'fill':_0x17225c(0x2ca),'viewBox':_0x17225c(0x205),'width':'1em','height':_0x17225c(0x2ba)},'children':[{'tag':'g','attrs':{'clipPath':_0x17225c(0x210)},'children':[{'tag':'path','attrs':{'stroke':_0x17225c(0x295),'d':_0x17225c(0x189),'strokeLinecap':'round','strokeLinejoin':_0x17225c(0x262),'strokeWidth':1.2}}]},{'tag':_0x17225c(0x1be),'attrs':{},'children':[{'tag':_0x17225c(0x20a),'attrs':{'id':_0x17225c(0x2b1)},'children':[{'tag':_0x17225c(0x1c0),'attrs':{'fill':_0x17225c(0x2b3),'d':_0x17225c(0x1cf)}}]}]}],'defIds':[_0x17225c(0x2b1)]},Y=d[_0x17225c(0x179)](function(_0x38e37a,_0x49513a){const _0x14a1b7=_0x17225c;return d[_0x14a1b7(0x143)](_,Object['assign']({},_0x38e37a,{'id':'off-line-icon','ref':_0x49513a,'icon':pe}));});Y[_0x17225c(0x1b3)]='OffLineIcon';const he={'tag':_0x17225c(0x28d),'attrs':{'xmlns':_0x17225c(0x1e6),'fill':_0x17225c(0x2ca),'viewBox':_0x17225c(0x156),'width':_0x17225c(0x2ba),'height':_0x17225c(0x2ba)},'children':[{'tag':'g','attrs':{'clipPath':_0x17225c(0x191)},'children':[{'tag':_0x17225c(0x1c0),'attrs':{'stroke':_0x17225c(0x295),'d':_0x17225c(0x1eb),'strokeLinecap':_0x17225c(0x262),'strokeLinejoin':_0x17225c(0x262),'strokeWidth':1.2}}]},{'tag':_0x17225c(0x1be),'attrs':{},'children':[{'tag':_0x17225c(0x20a),'attrs':{'id':_0x17225c(0x2a4)},'children':[{'tag':_0x17225c(0x1c0),'attrs':{'fill':_0x17225c(0x2b3),'d':_0x17225c(0x1cf),'transform':_0x17225c(0x1a3)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},q=d[_0x17225c(0x179)](function(_0xe1bb6e,_0x2f713e){const _0x36eaa=_0x17225c;return d[_0x36eaa(0x143)](_,Object[_0x36eaa(0x24b)]({},_0xe1bb6e,{'id':_0x36eaa(0x29a),'ref':_0x2f713e,'icon':he}));});q[_0x17225c(0x1b3)]='OnLineIcon';function V(_0x5c7e9b){const _0x3bc983=_0x17225c;var _0x1e04fd,_0x597fad;const {mcpCoreConfig:_0xbf7547,onSave:_0x5f0bd4,loading:_0x543676=!0x1,config:_0x34eeb9,connectionStatus$:_0x31d030,connectionError$:_0x24005f,currentApiKey$:_0x17cde2,currentSessionId$:_0x2475fd}=_0x5c7e9b,_0x10d280=v[_0x3bc983(0x144)](u[_0x3bc983(0x214)]),_0xf9c74f=v['useObservable'](_0x31d030,s[_0x3bc983(0x193)][_0x3bc983(0x2c6)]),_0x46a97d=v[_0x3bc983(0x291)](_0x24005f,s[_0x3bc983(0x2a3)][_0x3bc983(0x2b8)]),_0x2282e0=v[_0x3bc983(0x291)](_0x2475fd,''),_0x549679=v[_0x3bc983(0x291)](_0x17cde2,''),[_0x510f23,_0x59f459]=d['useState'](_0x549679||''),_0x55f456=!0x0,_0x589d7a=_0x34eeb9[_0x3bc983(0x14a)]&&_0xbf7547['mcpServerUrl']&&(_0xbf7547[_0x3bc983(0x1ad)][_0x3bc983(0x2c9)](_0x3bc983(0x1aa))||_0xbf7547['mcpServerUrl'][_0x3bc983(0x2c9)](_0x3bc983(0x201))),_0x35c84a=(_0x1e04fd=_0xbf7547[_0x3bc983(0x1ad)])==null?void 0x0:_0x1e04fd['includes'](_0x3bc983(0x1aa)),_0x28c6fa=(_0x597fad=_0xbf7547[_0x3bc983(0x1ad)])==null?void 0x0:_0x597fad[_0x3bc983(0x2c9)]('univer.ai'),_0x1f3ead=_0x35c84a?_0x3bc983(0x277):_0x3bc983(0x268),_0x311c4e=_0x34eeb9['showDeveloperTools']&&(_0x35c84a||_0x28c6fa),[_0x257ef2,_0x5cc1d0]=d[_0x3bc983(0x29d)](!_0x510f23['trim']()),_0x4f8849=(_0x3a1559,_0x1e7241)=>{const _0x2ff011=_0x3bc983;if(_0x1e7241===s['MCPConnectionError'][_0x2ff011(0x1a2)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x3a1559){case s[_0x2ff011(0x193)]['CONNECTED']:return _0x2ff011(0x157);case s[_0x2ff011(0x193)]['CONNECTING']:case s[_0x2ff011(0x193)]['RETRYING']:return _0x2ff011(0x18b);case s['MCPConnectionStatus'][_0x2ff011(0x27d)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0xb168f5=(_0x559d2d,_0x262c4f)=>{const _0x41108a=_0x3bc983;if(_0x262c4f===s[_0x41108a(0x2a3)][_0x41108a(0x1a2)])return _0x41108a(0x216);switch(_0x559d2d){case s[_0x41108a(0x193)]['CONNECTED']:return _0x41108a(0x29f);case s['MCPConnectionStatus'][_0x41108a(0x2a6)]:case s[_0x41108a(0x193)][_0x41108a(0x152)]:return _0x41108a(0x1c5);case s[_0x41108a(0x193)][_0x41108a(0x27d)]:return _0x41108a(0x216);default:return _0x41108a(0x165);}},_0xa9d666=_0xad373c=>{const _0x44808c=_0x3bc983;switch(_0xad373c){case s[_0x44808c(0x193)][_0x44808c(0x2c5)]:return _0x10d280['t'](_0x44808c(0x151));case s['MCPConnectionStatus'][_0x44808c(0x2a6)]:return _0x10d280['t'](_0x44808c(0x26c));case s[_0x44808c(0x193)][_0x44808c(0x27d)]:return _0x10d280['t'](_0x44808c(0x1b6));case s[_0x44808c(0x193)]['RETRYING']:return _0x10d280['t']('mcpConfig.connectionStatus.retrying');default:return _0x10d280['t']('mcpConfig.connectionStatus.disconnected');}},_0x2c5e9b=_0x7cd953=>{const _0x2197e0=_0x3bc983;switch(_0x7cd953){case s['MCPConnectionError'][_0x2197e0(0x1a2)]:return _0x10d280['t'](_0x2197e0(0x14f));case s[_0x2197e0(0x2a3)]['SESSION_ID_OCCUPIED']:return _0x10d280['t'](_0x2197e0(0x1ea));case s[_0x2197e0(0x2a3)][_0x2197e0(0x14c)]:return _0x10d280['t']('mcpConfig.connectionError.networkError');case s[_0x2197e0(0x2a3)]['MAX_RETRIES_EXCEEDED']:return _0x10d280['t'](_0x2197e0(0x276));default:return'';}},_0x5cdbc6=d[_0x3bc983(0x243)](()=>{const _0x3bef6e=_0x3bc983,_0x467d21={..._0xbf7547,'apiKey':_0x510f23[_0x3bef6e(0x2b2)](),'enableAuth':_0x55f456};_0x5f0bd4(_0x467d21);},[_0xbf7547,_0x510f23,_0x55f456,_0x5f0bd4]),_0x35bb98=_0x510f23[_0x3bc983(0x2b2)]()[_0x3bc983(0x22a)]>0x0;return i[_0x3bc983(0x215)](_0x3bc983(0x1d0),{'className':_0x3bc983(0x272),'children':[i['jsx'](_0x3bc983(0x1d0),{'className':_0x3bc983(0x246),'children':i[_0x3bc983(0x215)](_0x3bc983(0x1d0),{'className':_0x3bc983(0x17a),'children':[i[_0x3bc983(0x1f4)](_0x3bc983(0x1d0),{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':i[_0x3bc983(0x1f4)](_0x3bc983(0x248),{'className':_0x3bc983(0x174),'children':'⚙'})}),i['jsx']('div',{'children':i['jsx']('p',{'className':_0x3bc983(0x292),'children':_0x10d280['t'](_0x3bc983(0x187))})})]})}),i[_0x3bc983(0x215)]('div',{'className':_0x3bc983(0x1d9),'children':[i[_0x3bc983(0x1f4)](_0x3bc983(0x1d0),{'className':f[_0x3bc983(0x213)](_0x3bc983(0x23f),_0x4f8849(_0xf9c74f,_0x46a97d)),'children':i[_0x3bc983(0x215)](_0x3bc983(0x1d0),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i['jsx'](_0x3bc983(0x1d0),{'className':f[_0x3bc983(0x213)](_0x3bc983(0x20f),_0xb168f5(_0xf9c74f,_0x46a97d))}),i[_0x3bc983(0x1f4)](_0x3bc983(0x248),{'className':'univer-text-sm\x20univer-font-medium','children':_0xa9d666(_0xf9c74f)})]})}),_0x46a97d!==s[_0x3bc983(0x2a3)][_0x3bc983(0x2b8)]&&(_0xf9c74f===s[_0x3bc983(0x193)]['FAILED']||_0x46a97d===s[_0x3bc983(0x2a3)][_0x3bc983(0x1a2)])&&i[_0x3bc983(0x1f4)]('div',{'className':_0x3bc983(0x162),'children':i['jsxs'](_0x3bc983(0x1d0),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[i[_0x3bc983(0x1f4)](_0x3bc983(0x248),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),i[_0x3bc983(0x1f4)]('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x2c5e9b(_0x46a97d)})]})})]}),i[_0x3bc983(0x1f4)](_0x3bc983(0x1d0),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':i[_0x3bc983(0x215)]('div',{'className':'univer-space-y-5','children':[i['jsxs'](_0x3bc983(0x1d0),{'className':_0x3bc983(0x2aa),'children':[i['jsxs'](_0x3bc983(0x218),{'className':_0x3bc983(0x1a4),'children':[i[_0x3bc983(0x1f4)]('span',{'children':'🔑'}),'\x20',_0x10d280['t'](_0x3bc983(0x271)),i['jsx'](_0x3bc983(0x248),{'className':_0x3bc983(0x265),'children':'*'}),_0x589d7a&&i[_0x3bc983(0x1f4)]('a',{'className':_0x3bc983(0x1dc),'title':_0x10d280['t'](_0x3bc983(0x224)),'role':_0x3bc983(0x208),'onClick':()=>_0x5cc1d0(!0x0),'children':i[_0x3bc983(0x1f4)](F,{})})]}),i[_0x3bc983(0x1f4)](f['Input'],{'type':_0x3bc983(0x294),'placeholder':_0x10d280['t'](_0x3bc983(0x1e0)),'value':_0x510f23,'disabled':_0x543676,'autoComplete':'off','onChange':_0x59f459}),i[_0x3bc983(0x1f4)]('p',{'className':_0x3bc983(0x211),'children':_0x10d280['t'](_0x3bc983(0x20c))})]}),_0x589d7a&&_0x257ef2&&i[_0x3bc983(0x215)](_0x3bc983(0x1d0),{'className':_0x3bc983(0x18f),'children':[i[_0x3bc983(0x1f4)]('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':_0x3bc983(0x208),'onClick':()=>_0x5cc1d0(!0x1),'children':i[_0x3bc983(0x1f4)](B,{'className':_0x3bc983(0x19a)})}),i[_0x3bc983(0x215)]('div',{'className':_0x3bc983(0x1f9),'children':[i[_0x3bc983(0x1f4)]('div',{'className':_0x3bc983(0x238),'children':i[_0x3bc983(0x1f4)]('span',{'className':'univer-text-blue-600','children':'🚀'})}),i[_0x3bc983(0x215)](_0x3bc983(0x1d0),{'className':'univer-flex-1','children':[i[_0x3bc983(0x1f4)]('h4',{'className':_0x3bc983(0x2c4),'children':_0x10d280['t'](_0x3bc983(0x224))}),i[_0x3bc983(0x1f4)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x10d280['t'](_0x3bc983(0x2ad))}),i['jsx']('div',{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x311c4e&&i[_0x3bc983(0x215)]('a',{'className':_0x3bc983(0x1b8),'href':_0x1f3ead,'target':_0x3bc983(0x1bf),'rel':_0x3bc983(0x1c4),'children':[i[_0x3bc983(0x1f4)](_0x3bc983(0x248),{'children':'🤖'}),_0x10d280['t'](_0x3bc983(0x166)),i[_0x3bc983(0x1f4)](_0x3bc983(0x248),{'className':_0x3bc983(0x1c1),'children':'↗'})]})}),i['jsxs'](_0x3bc983(0x1d0),{'className':_0x3bc983(0x219),'children':['✨','\x20',_0x10d280['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x34eeb9[_0x3bc983(0x14a)]&&i['jsxs'](_0x3bc983(0x1d0),{'className':_0x3bc983(0x185),'children':[i['jsxs']('h4',{'className':_0x3bc983(0x2c8),'children':[i[_0x3bc983(0x1f4)]('span',{'children':'🔗'}),'\x20',_0x10d280['t'](_0x3bc983(0x186))]}),i['jsxs'](_0x3bc983(0x1d0),{'className':_0x3bc983(0x146),'children':[i['jsxs'](_0x3bc983(0x1d0),{'className':_0x3bc983(0x270),'children':[i[_0x3bc983(0x1f4)]('p',{'className':_0x3bc983(0x1ee),'children':_0x10d280['t'](_0x3bc983(0x1b1))}),i[_0x3bc983(0x215)](_0x3bc983(0x1d0),{'className':_0x3bc983(0x2aa),'children':[i['jsx'](_0x3bc983(0x1d0),{'className':_0x3bc983(0x1bd),'children':_0x10d280['t'](_0x3bc983(0x23c))}),i[_0x3bc983(0x215)](_0x3bc983(0x1d0),{'className':_0x3bc983(0x21c),'children':[i[_0x3bc983(0x215)](_0x3bc983(0x1d0),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x3bc983(0x1f4)](_0x3bc983(0x248),{'className':_0x3bc983(0x1ec),'children':'1'}),_0x10d280['t'](_0x3bc983(0x249))]}),i[_0x3bc983(0x215)](_0x3bc983(0x1d0),{'className':_0x3bc983(0x203),'children':[i['jsx'](_0x3bc983(0x248),{'className':_0x3bc983(0x1ec),'children':'2'}),_0x10d280['t'](_0x3bc983(0x1cd))]}),i[_0x3bc983(0x215)](_0x3bc983(0x1d0),{'className':_0x3bc983(0x203),'children':[i[_0x3bc983(0x1f4)](_0x3bc983(0x248),{'className':_0x3bc983(0x1ec),'children':'3'}),_0x10d280['t'](_0x3bc983(0x2b6))]})]})]})]}),i[_0x3bc983(0x215)](_0x3bc983(0x1d0),{'className':_0x3bc983(0x2aa),'children':[i[_0x3bc983(0x1f4)](_0x3bc983(0x1d0),{'className':_0x3bc983(0x1bd),'children':'MCP\x20Configuration'}),i['jsx'](_0x3bc983(0x1d0),{'className':_0x3bc983(0x1c9),'children':i[_0x3bc983(0x1f4)](_0x3bc983(0x25e),{'className':_0x3bc983(0x2af),'children':JSON[_0x3bc983(0x1af)]({'mcpServers':{'univer':{'url':_0x3bc983(0x25b)+(_0x2282e0||_0x3bc983(0x16c)),'type':_0x3bc983(0x261),'headers':{'Authorization':_0x3bc983(0x17c)+(_0x510f23||_0x3bc983(0x29e))}}}},null,0x2)})})]}),i[_0x3bc983(0x215)](_0x3bc983(0x1d0),{'className':_0x3bc983(0x270),'children':[i['jsx']('div',{'className':_0x3bc983(0x1bd),'children':_0x10d280['t']('mcpConfig.configParameters')}),i['jsxs'](_0x3bc983(0x1d0),{'className':_0x3bc983(0x2aa),'children':[i[_0x3bc983(0x215)](_0x3bc983(0x1d0),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i['jsx'](_0x3bc983(0x1d0),{'className':_0x3bc983(0x255)}),i[_0x3bc983(0x215)](_0x3bc983(0x1d0),{'className':_0x3bc983(0x264),'children':[i[_0x3bc983(0x1f4)](_0x3bc983(0x1d0),{'className':_0x3bc983(0x1fa),'children':_0x3bc983(0x1d7)}),i[_0x3bc983(0x1f4)](_0x3bc983(0x1d0),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x10d280['t'](_0x3bc983(0x1c6))})]})]}),i['jsxs']('div',{'className':_0x3bc983(0x2b5),'children':[i[_0x3bc983(0x1f4)](_0x3bc983(0x1d0),{'className':_0x3bc983(0x255)}),i['jsxs'](_0x3bc983(0x1d0),{'className':_0x3bc983(0x264),'children':[i[_0x3bc983(0x1f4)](_0x3bc983(0x1d0),{'className':_0x3bc983(0x1fa),'children':_0x3bc983(0x2bb)}),i['jsx'](_0x3bc983(0x1d0),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x10d280['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),i[_0x3bc983(0x1f4)](f['Button'],{'onClick':_0x5cdbc6,'disabled':!_0x35bb98||_0x543676,'className':_0x3bc983(0x15e),'children':_0x543676?i[_0x3bc983(0x215)](_0x3bc983(0x248),{'className':_0x3bc983(0x203),'children':[i['jsx'](_0x3bc983(0x248),{'children':'⟲'}),_0x10d280['t'](_0x3bc983(0x233))]}):i[_0x3bc983(0x215)](_0x3bc983(0x248),{'className':_0x3bc983(0x203),'children':[i[_0x3bc983(0x1f4)](H,{}),_0x10d280['t'](_0x3bc983(0x1d4))]})}),i['jsx'](_0x3bc983(0x1d0),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':i[_0x3bc983(0x215)](_0x3bc983(0x1d0),{'className':_0x3bc983(0x290),'children':[i['jsx']('span',{'className':_0x3bc983(0x240),'children':'💡'}),i[_0x3bc983(0x215)](_0x3bc983(0x1d0),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[i['jsx'](_0x3bc983(0x1d0),{'className':'univer-font-medium','children':'Configuration\x20Notes:'}),i[_0x3bc983(0x215)](_0x3bc983(0x1d0),{'children':['•',_0x10d280['t']('mcpConfig.note1')]}),i[_0x3bc983(0x215)]('div',{'children':['•',_0x10d280['t']('mcpConfig.note2')]})]})]})})]})})]});}const P=_0x17225c(0x24c),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x17225c(0x26b)],xe=(_0x1879b6,_0x259538,_0x507072,_0x1ac41c)=>{const _0x330c59=_0x17225c;for(var _0x50f2bb=_0x1ac41c>0x1?void 0x0:_0x1ac41c?me(_0x259538,_0x507072):_0x259538,_0x2c7964=_0x1879b6[_0x330c59(0x22a)]-0x1,_0x483b6f;_0x2c7964>=0x0;_0x2c7964--)(_0x483b6f=_0x1879b6[_0x2c7964])&&(_0x50f2bb=_0x483b6f(_0x50f2bb)||_0x50f2bb);return _0x50f2bb;},g=(_0x39d67a,_0xc8fb17)=>(_0x439983,_0x15c7be)=>_0xc8fb17(_0x439983,_0x15c7be,_0x39d67a);const O=_0x17225c(0x278),D=_0x17225c(0x17b);exports[_0x17225c(0x1ab)]=class extends u[_0x17225c(0x192)]{constructor(_0x73253e,_0x420f71,_0x7de4c0,_0x2a054c,_0x55937a,_0x54bf5a,_0x2c68d8,_0x22537a,_0x5247c9,_0x2675e0){const _0x7652ac=_0x17225c;super(),I(this,_0x7652ac(0x263),new M[(_0x7652ac(0x1df))](!0x1)),I(this,_0x7652ac(0x164),new M['BehaviorSubject']({})),I(this,_0x7652ac(0x1f6),new M[(_0x7652ac(0x1df))]({})),I(this,_0x7652ac(0x1f2),new M[(_0x7652ac(0x1df))]('')),I(this,'_handleConfigSave',async _0x525c0d=>{const _0x14b88d=_0x7652ac;var _0x5a95fd,_0x8464b7;this['_loading$'][_0x14b88d(0x279)](!0x0);try{const _0x258a6e=await this[_0x14b88d(0x169)](_0x525c0d);if(!_0x258a6e[_0x14b88d(0x2b9)]){this[_0x14b88d(0x28f)][_0x14b88d(0x244)]({'type':f[_0x14b88d(0x266)][_0x14b88d(0x154)],'content':_0x258a6e[_0x14b88d(0x2be)]||this[_0x14b88d(0x2b0)]['t'](_0x14b88d(0x26a))});return;}_0x525c0d[_0x14b88d(0x1a8)]?await this['_localStorageService'][_0x14b88d(0x1d2)](O,_0x525c0d['apiKey'][_0x14b88d(0x2b2)]()):await this[_0x14b88d(0x1fb)][_0x14b88d(0x2b7)](O),this['_apiKey$'][_0x14b88d(0x279)](((_0x5a95fd=_0x525c0d[_0x14b88d(0x1a8)])==null?void 0x0:_0x5a95fd['trim']())||''),this[_0x14b88d(0x28a)][_0x14b88d(0x199)]({'Authorization':'Bearer\x20'+((_0x8464b7=_0x525c0d[_0x14b88d(0x1a8)])==null?void 0x0:_0x8464b7[_0x14b88d(0x2b2)]())}),this[_0x14b88d(0x28f)][_0x14b88d(0x244)]({'type':f[_0x14b88d(0x266)][_0x14b88d(0x1ff)],'content':this['_localeService']['t'](_0x14b88d(0x202))}),setTimeout(()=>{const _0x5d4303=_0x14b88d;this[_0x5d4303(0x153)][_0x5d4303(0x177)](D);},0x320);}catch(_0x1cad74){this[_0x14b88d(0x1fc)][_0x14b88d(0x1c8)](_0x14b88d(0x197),_0x1cad74),this[_0x14b88d(0x28f)][_0x14b88d(0x244)]({'type':f[_0x14b88d(0x266)][_0x14b88d(0x154)],'content':this[_0x14b88d(0x2b0)]['t']('mcpConfig.configError')});}finally{this[_0x14b88d(0x263)]['next'](!0x1);}}),(this['_injector']=_0x73253e,this[_0x7652ac(0x229)]=_0x420f71,this['_configService']=_0x7de4c0,this[_0x7652ac(0x1fb)]=_0x2a054c,this[_0x7652ac(0x153)]=_0x55937a,this[_0x7652ac(0x28f)]=_0x54bf5a,this['_componentManager']=_0x2c68d8,this[_0x7652ac(0x2b0)]=_0x22537a,this['_logService']=_0x5247c9,this[_0x7652ac(0x28a)]=_0x2675e0,this[_0x7652ac(0x19b)](),this[_0x7652ac(0x269)](),this[_0x7652ac(0x15d)]());}[_0x17225c(0x184)](){const _0x4b83bd=_0x17225c,_0x4b78df=this[_0x4b83bd(0x20d)]['getConfig'](P);_0x4b78df!=null&&_0x4b78df[_0x4b83bd(0x14a)]&&this[_0x4b83bd(0x153)][_0x4b83bd(0x170)]({'id':D,'title':{'title':this[_0x4b83bd(0x2b0)]['t'](_0x4b83bd(0x258))},'children':{'label':_0x4b83bd(0x1f8)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x1e4ac1=_0x4b83bd;this[_0x1e4ac1(0x153)][_0x1e4ac1(0x177)](D);}});}[_0x17225c(0x20e)](){const _0x411c27=_0x17225c;return this[_0x411c27(0x164)][_0x411c27(0x26e)];}[_0x17225c(0x15d)](){const _0xf6b32b=_0x17225c;this['disposeWithMe'](this[_0xf6b32b(0x167)][_0xf6b32b(0x25a)](_0xf6b32b(0x1f8),this[_0xf6b32b(0x2a7)]()));}[_0x17225c(0x2a7)](){const _0x3dad0c=_0x17225c;return v[_0x3dad0c(0x1f5)](()=>{const _0x4f0306=_0x3dad0c;var _0x5e1dcc,_0x4ea1f9,_0x1619e2;return i['jsx'](V,{'config':this[_0x4f0306(0x1f6)][_0x4f0306(0x26e)],'mcpCoreConfig':this[_0x4f0306(0x164)]['value'],'currentApiKey$':this[_0x4f0306(0x1f2)],'onSave':this[_0x4f0306(0x1dd)],'loading':this[_0x4f0306(0x263)]['value'],'connectionStatus$':(_0x5e1dcc=this[_0x4f0306(0x28a)])==null?void 0x0:_0x5e1dcc[_0x4f0306(0x16e)],'connectionError$':(_0x4ea1f9=this['_mcpConnectionController'])==null?void 0x0:_0x4ea1f9[_0x4f0306(0x228)],'currentSessionId$':(_0x1619e2=this[_0x4f0306(0x28a)])==null?void 0x0:_0x1619e2['sessionId$']});},this[_0x3dad0c(0x1bc)]);}['_initConfigSync'](){const _0x1fdb1c=_0x17225c;this[_0x1fdb1c(0x29b)](this[_0x1fdb1c(0x20d)][_0x1fdb1c(0x2a1)](s[_0x1fdb1c(0x1e5)])[_0x1fdb1c(0x221)](_0x3be598=>{const _0x23c87d=_0x1fdb1c;this[_0x23c87d(0x164)][_0x23c87d(0x279)](_0x3be598||{});}));const _0x2936f8=this[_0x1fdb1c(0x20d)][_0x1fdb1c(0x25c)](s[_0x1fdb1c(0x1e5)]);this[_0x1fdb1c(0x164)][_0x1fdb1c(0x279)](_0x2936f8||{}),this['disposeWithMe'](this['_configService']['subscribeConfigValue$'](P)[_0x1fdb1c(0x221)](_0x263800=>{const _0x1eb95c=_0x1fdb1c;this[_0x1eb95c(0x1f6)][_0x1eb95c(0x279)](_0x263800||{});}));const _0x33022f=this['_configService']['getConfig'](P);this[_0x1fdb1c(0x1f6)][_0x1fdb1c(0x279)](_0x33022f||{});}async[_0x17225c(0x269)](){const _0x2c6f87=_0x17225c,_0x5887b7=this['_configService'][_0x2c6f87(0x25c)](P);if(!(_0x5887b7!=null&&_0x5887b7['showDeveloperTools']))return;const _0x377545=await this[_0x2c6f87(0x1fb)]['getItem'](O);_0x377545&&(this[_0x2c6f87(0x28a)][_0x2c6f87(0x199)]({'Authorization':_0x2c6f87(0x17c)+_0x377545}),this[_0x2c6f87(0x1f2)]['next'](_0x377545));}async[_0x17225c(0x169)](_0xf23b58){const _0x5b0506=_0x17225c;if(!_0xf23b58['apiKey']||_0xf23b58['apiKey']['trim']()[_0x5b0506(0x22a)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x5b0506(0x2b0)]['t'](_0x5b0506(0x1ed))};if(_0xf23b58[_0x5b0506(0x1a8)][_0x5b0506(0x2b2)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x5b0506(0x2b0)]['t'](_0x5b0506(0x183))};try{const _0x1c857d=await this[_0x5b0506(0x1bc)][_0x5b0506(0x27a)](s['MCPConnectionController'])['validateApiKey'](_0xf23b58[_0x5b0506(0x1a8)][_0x5b0506(0x2b2)]());return _0x1c857d[_0x5b0506(0x2b9)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x1c857d[_0x5b0506(0x1c8)]||this['_localeService']['t'](_0x5b0506(0x289))};}catch(_0x160f6f){return console[_0x5b0506(0x267)](_0x5b0506(0x1f1),_0x160f6f),{'isValid':!0x0};}}},exports[_0x17225c(0x1ab)]=xe([g(0x0,u[_0x17225c(0x17e)](u[_0x17225c(0x24e)])),g(0x1,v['IUIPartsService']),g(0x2,u[_0x17225c(0x28c)]),g(0x3,u['ILocalStorageService']),g(0x4,v[_0x17225c(0x225)]),g(0x5,v[_0x17225c(0x1a9)]),g(0x6,u[_0x17225c(0x17e)](v[_0x17225c(0x247)])),g(0x7,u[_0x17225c(0x17e)](u[_0x17225c(0x214)])),g(0x8,u[_0x17225c(0x173)]),g(0x9,u[_0x17225c(0x17e)](s[_0x17225c(0x198)]))],exports[_0x17225c(0x1ab)]);const b={'id':'mcp-ui.command.openConfigPanel','type':u[_0x17225c(0x1a0)][_0x17225c(0x1d8)],'handler':async(_0x47258b,_0x5ac8d7)=>(_0x47258b[_0x17225c(0x27a)](exports['MCPConfigUIController'])['showConfigPanel'](),!0x0)};function Z(_0x124d94,_0x344e24){const _0x5b16f7=_0x17225c;switch(_0x124d94){case s[_0x5b16f7(0x193)][_0x5b16f7(0x2c6)]:return _0x5b16f7(0x231);case s[_0x5b16f7(0x193)]['CONNECTING']:return'mcpStatus.connecting';case s[_0x5b16f7(0x193)][_0x5b16f7(0x2c5)]:return _0x5b16f7(0x150);case s[_0x5b16f7(0x193)][_0x5b16f7(0x27d)]:switch(_0x344e24){case s[_0x5b16f7(0x2a3)]['UNAUTHORIZED']:return _0x5b16f7(0x1a5);case s[_0x5b16f7(0x2a3)][_0x5b16f7(0x28e)]:return _0x5b16f7(0x1c2);case s[_0x5b16f7(0x2a3)]['NETWORK_ERROR']:return _0x5b16f7(0x237);case s[_0x5b16f7(0x2a3)][_0x5b16f7(0x1e3)]:return'mcpStatus.maxRetriesExceeded';default:return _0x5b16f7(0x22d);}case s['MCPConnectionStatus'][_0x5b16f7(0x152)]:return _0x5b16f7(0x14b);default:return'mcpStatus.unknown';}}function Se(_0x53f4eb,_0x346048,_0x30b45a,_0x5eebd5=!0x0){const _0x5a6ea8=_0x17225c,_0x5d1fa4=Z(_0x53f4eb,_0x346048),_0x3e6df2=_0x30b45a['t'](_0x5d1fa4);return _0x5eebd5?_0x53f4eb===s[_0x5a6ea8(0x193)][_0x5a6ea8(0x2c6)]&&_0x346048===s[_0x5a6ea8(0x2a3)][_0x5a6ea8(0x1a2)]?_0x3e6df2+'\x20-\x20'+_0x30b45a['t'](_0x5a6ea8(0x28b)):_0x53f4eb===s[_0x5a6ea8(0x193)]['CONNECTED']?''+_0x3e6df2:_0x53f4eb===s['MCPConnectionStatus'][_0x5a6ea8(0x2c6)]||_0x53f4eb===s[_0x5a6ea8(0x193)]['FAILED']?_0x3e6df2+_0x5a6ea8(0x24a)+_0x30b45a['t'](_0x5a6ea8(0x1d3)):_0x3e6df2:_0x3e6df2;}function Pe(_0x2ce0a0){const _0x879e29=_0x17225c;switch(_0x2ce0a0){case s[_0x879e29(0x193)][_0x879e29(0x2c5)]:return _0x879e29(0x1b0);case s[_0x879e29(0x193)][_0x879e29(0x2a6)]:case s[_0x879e29(0x193)][_0x879e29(0x152)]:return _0x879e29(0x1a7);case s['MCPConnectionStatus'][_0x879e29(0x27d)]:case s['MCPConnectionStatus'][_0x879e29(0x2c6)]:return'univer-text-red-500';default:return _0x879e29(0x207);}}function W(_0x1f1ab7){const _0x31ba59=_0x17225c,{status$:_0x5e7e20,error$:_0x4e804a,onConfigure:_0x38fa88,showClickable:_0x151564=!0x0}=_0x1f1ab7,_0x599a29=v['useObservable'](_0x5e7e20,s['MCPConnectionStatus'][_0x31ba59(0x2c6)]),_0x1d454e=v[_0x31ba59(0x291)](_0x4e804a,s[_0x31ba59(0x2a3)]['NONE']),_0x16fc82=v[_0x31ba59(0x144)](u[_0x31ba59(0x214)]),_0x2bea83=_0x599a29===s[_0x31ba59(0x193)][_0x31ba59(0x2c5)];_0x599a29===s[_0x31ba59(0x193)][_0x31ba59(0x2a6)]||s['MCPConnectionStatus'][_0x31ba59(0x152)];const _0x2b799d=_0x16fc82['t'](Z(_0x599a29,_0x1d454e)),_0x1808f8=Se(_0x599a29,_0x1d454e,_0x16fc82,_0x151564),_0x64781e=Pe(_0x599a29),_0x41ce6b=_0x2bea83?i['jsx'](q,{}):i[_0x31ba59(0x1f4)](Y,{}),_0x4cac2e=d[_0x31ba59(0x243)](()=>{_0x151564&&_0x38fa88&&_0x38fa88();},[_0x151564,_0x38fa88]);function _0x39a891(){const _0x50ea7c=_0x31ba59;return i['jsxs']('div',{'className':f[_0x50ea7c(0x213)]('univer-flex\x20univer-items-center',_0x151564&&_0x38fa88&&_0x50ea7c(0x2a2)),'role':_0x50ea7c(0x208),'onClick':_0x151564&&_0x38fa88?_0x4cac2e:void 0x0,'children':[i[_0x50ea7c(0x1f4)](_0x50ea7c(0x1d0),{'className':f[_0x50ea7c(0x213)](_0x50ea7c(0x1b7),_0x64781e),'children':_0x41ce6b}),i[_0x50ea7c(0x1f4)](_0x50ea7c(0x1d0),{'className':_0x50ea7c(0x232),'children':_0x2b799d})]});}return i['jsx'](f[_0x31ba59(0x1ac)],{'title':_0x1808f8,'placement':'bottom','children':_0x39a891()});}var Ie=Object['getOwnPropertyDescriptor'],_e=(_0x3e0d0c,_0x31454e,_0x43cf44,_0x4e4e9b)=>{const _0x404e2b=_0x17225c;for(var _0x23f45c=_0x4e4e9b>0x1?void 0x0:_0x4e4e9b?Ie(_0x31454e,_0x43cf44):_0x31454e,_0x1bddb7=_0x3e0d0c[_0x404e2b(0x22a)]-0x1,_0x268098;_0x1bddb7>=0x0;_0x1bddb7--)(_0x268098=_0x3e0d0c[_0x1bddb7])&&(_0x23f45c=_0x268098(_0x23f45c)||_0x23f45c);return _0x23f45c;},N=(_0x17c2ee,_0x512afd)=>(_0x35bc90,_0x1d77fd)=>_0x512afd(_0x35bc90,_0x1d77fd,_0x17c2ee);exports[_0x17225c(0x27c)]=class extends u['Disposable']{constructor(_0x3a2a7c,_0x1ab159,_0x34dc25,_0x1dbc52){const _0x26b6e1=_0x17225c;super(),this[_0x26b6e1(0x1bc)]=_0x3a2a7c,this[_0x26b6e1(0x21d)]=_0x1ab159,this['_uiPartsService']=_0x34dc25,this[_0x26b6e1(0x20d)]=_0x1dbc52,this[_0x26b6e1(0x2ab)](),this[_0x26b6e1(0x252)]();}[_0x17225c(0x2ab)](){const _0x2d431d=_0x17225c,_0x14b939=this[_0x2d431d(0x20d)][_0x2d431d(0x25c)](P);_0x14b939!=null&&_0x14b939[_0x2d431d(0x14a)]&&(this[_0x2d431d(0x21d)]['enableAutoConnect']=!0x1);}[_0x17225c(0x252)](){const _0x235268=_0x17225c,_0x5f4c9d=this[_0x235268(0x20d)][_0x235268(0x25c)](P);(_0x5f4c9d==null?void 0x0:_0x5f4c9d[_0x235268(0x145)])!==!0x1&&this['disposeWithMe'](this[_0x235268(0x229)][_0x235268(0x22c)](v[_0x235268(0x206)][_0x235268(0x188)],()=>{const _0x41a143=_0x235268;var _0x2ad8f3;return v[_0x41a143(0x1f5)](ye({'status$':this['_connectionController']['connectionStatus$'],'error$':this[_0x41a143(0x21d)]['connectionError$'],'onConfigure':()=>this[_0x41a143(0x274)](),'showClickable':(_0x2ad8f3=_0x5f4c9d==null?void 0x0:_0x5f4c9d[_0x41a143(0x14a)])!=null?_0x2ad8f3:!0x1}),this[_0x41a143(0x1bc)]);}));}[_0x17225c(0x274)](){const _0x487c0e=_0x17225c;this[_0x487c0e(0x1bc)][_0x487c0e(0x27a)](exports[_0x487c0e(0x1ab)])[_0x487c0e(0x184)]();}},exports[_0x17225c(0x27c)]=_e([N(0x0,u['Inject'](u[_0x17225c(0x24e)])),N(0x1,u[_0x17225c(0x17e)](s[_0x17225c(0x198)])),N(0x2,v[_0x17225c(0x2a0)]),N(0x3,u[_0x17225c(0x28c)])],exports[_0x17225c(0x27c)]);function ye(_0x23f75b){const {status$:_0x5b4069,error$:_0x1dfe52,onConfigure:_0x9a65c,showClickable:_0x1d9f7f}=_0x23f75b;return function(){const _0xd26515=_0x71a7;return i[_0xd26515(0x1f4)](W,{'status$':_0x5b4069,'error$':_0x1dfe52,'onConfigure':_0x9a65c,'showClickable':_0x1d9f7f});};}function Me(_0x3d91d3){const _0x5a801b=_0x17225c;return{'id':b['id'],'type':v[_0x5a801b(0x1e4)]['BUTTON'],'icon':_0x5a801b(0x281),'title':'mcpConfig.title','tooltip':_0x5a801b(0x258)};}const Ne={[v[_0x17225c(0x21a)][_0x17225c(0x14e)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object['getOwnPropertyDescriptor'],je=(_0x15f7c7,_0x17adef,_0x4051d1,_0x3bb8dd)=>{const _0x128764=_0x17225c;for(var _0x4de8c1=_0x3bb8dd>0x1?void 0x0:_0x3bb8dd?be(_0x17adef,_0x4051d1):_0x17adef,_0x64efa8=_0x15f7c7[_0x128764(0x22a)]-0x1,_0x308ca3;_0x64efa8>=0x0;_0x64efa8--)(_0x308ca3=_0x15f7c7[_0x64efa8])&&(_0x4de8c1=_0x308ca3(_0x4de8c1)||_0x4de8c1);return _0x4de8c1;},z=(_0x5a7bdb,_0x1dc727)=>(_0x4b9af8,_0x501fcc)=>_0x1dc727(_0x4b9af8,_0x501fcc,_0x5a7bdb);exports[_0x17225c(0x1f3)]=class extends u[_0x17225c(0x192)]{constructor(_0x3a8890,_0x2a474e){const _0x42fd0b=_0x17225c;super(),this[_0x42fd0b(0x234)]=_0x3a8890,this[_0x42fd0b(0x2bc)]=_0x2a474e,this[_0x42fd0b(0x159)](),this[_0x42fd0b(0x242)]();}[_0x17225c(0x159)](){const _0x5d96fb=_0x17225c;[b][_0x5d96fb(0x175)](_0x2cb954=>{const _0x45543f=_0x5d96fb;this[_0x45543f(0x29b)](this[_0x45543f(0x234)][_0x45543f(0x190)](_0x2cb954));});}[_0x17225c(0x242)](){const _0x3cb948=_0x17225c;this[_0x3cb948(0x2bc)][_0x3cb948(0x288)](Ne);}},exports[_0x17225c(0x1f3)]=je([z(0x0,u['ICommandService']),z(0x1,v[_0x17225c(0x196)])],exports['MCPUIMenuController']);const Ee={'mcpStatus':{'disconnected':_0x17225c(0x25f),'connecting':_0x17225c(0x1b4),'connected':_0x17225c(0x27e),'failed':_0x17225c(0x275),'retrying':_0x17225c(0x1d6),'unknown':_0x17225c(0x235),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x17225c(0x251),'maxRetriesExceeded':_0x17225c(0x2c1),'clickToConnect':_0x17225c(0x16b),'clickToConfigure':_0x17225c(0x273)},'mcpConfig':{'title':_0x17225c(0x2a9),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x17225c(0x15f),'apiKeyPlaceholder':_0x17225c(0x18d),'apiKeyHint':_0x17225c(0x230),'enableAuth':_0x17225c(0x158),'enableAuthHint':_0x17225c(0x2a8),'connectionInfo':_0x17225c(0x16f),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x17225c(0x20b),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x17225c(0x148),'configStep2':_0x17225c(0x1e9),'configStep3':_0x17225c(0x299),'sessionId':_0x17225c(0x172),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x17225c(0x17d),'configParameters':_0x17225c(0x256),'maxRetries':'Max\x20Retries','save':_0x17225c(0x217),'saving':_0x17225c(0x2b4),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x17225c(0x1d1),'configSaved':_0x17225c(0x1ba),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x17225c(0x1e8),'univerAiLabel':_0x17225c(0x25d),'getStarted':_0x17225c(0x24d)},'validation':{'apiKeyRequired':_0x17225c(0x163),'apiKeyTooShort':_0x17225c(0x257),'invalidConfig':_0x17225c(0x1ce),'invalidApiKey':_0x17225c(0x181)},'connectionStatus':{'disconnected':_0x17225c(0x176),'connecting':_0x17225c(0x1a1),'connected':_0x17225c(0x21f),'failed':'Connection\x20Failed','retrying':_0x17225c(0x204)},'connectionError':{'unauthorized':_0x17225c(0x23a),'sessionOccupied':_0x17225c(0x1bb),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x17225c(0x168)}}},we={'mcpStatus':{'disconnected':_0x17225c(0x19d),'connecting':_0x17225c(0x161),'connected':_0x17225c(0x1e7),'failed':_0x17225c(0x223),'retrying':_0x17225c(0x1d5),'unknown':_0x17225c(0x286),'unauthorized':_0x17225c(0x2c7),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x17225c(0x1ae),'maxRetriesExceeded':_0x17225c(0x250),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x17225c(0x245)},'mcpConfig':{'title':'MCP\x20配置','description':_0x17225c(0x22e),'apiKey':_0x17225c(0x194),'apiKeyPlaceholder':_0x17225c(0x209),'apiKeyHint':_0x17225c(0x298),'enableAuth':_0x17225c(0x283),'enableAuthHint':_0x17225c(0x1b5),'connectionInfo':_0x17225c(0x1f0),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x17225c(0x1f7),'configStep1':_0x17225c(0x22b),'configStep2':_0x17225c(0x22f),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':'会话ID','sessionIdDescription':_0x17225c(0x14d),'authorizationDescription':_0x17225c(0x253),'configParameters':_0x17225c(0x21b),'maxRetries':_0x17225c(0x2c3),'save':_0x17225c(0x18a),'saving':_0x17225c(0x241),'note1':_0x17225c(0x2bf),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':'配置保存成功','configError':_0x17225c(0x155),'apiApplyInfo':{'title':_0x17225c(0x222),'description':_0x17225c(0x180),'univerAiLabel':_0x17225c(0x1c7),'getStarted':_0x17225c(0x287)},'validation':{'apiKeyRequired':_0x17225c(0x1ef),'apiKeyTooShort':_0x17225c(0x182),'invalidConfig':_0x17225c(0x23b),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x17225c(0x296),'connecting':_0x17225c(0x212),'connected':_0x17225c(0x178),'failed':_0x17225c(0x226),'retrying':_0x17225c(0x15b)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x17225c(0x280),'networkError':_0x17225c(0x220),'maxRetriesExceeded':_0x17225c(0x29c)}}};function _0x48fd(){const _0x1b9b1b=['CloseIcon','Session\x20ID','ILogService','univer-text-white','forEach','Disconnected','close','已连接','forwardRef','univer-flex\x20univer-items-center\x20univer-gap-3','mcp-config-dialog','Bearer\x20','API\x20key\x20with\x20Bearer\x20prefix.','Inject','tag','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20密钥长度至少需要\x2010\x20位','mcpConfig.validation.apiKeyTooShort','showConfigPanel','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','mcpConfig.connectionInfo','mcpConfig.description','HEADER_MENU','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-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','pluginName','Enter\x20your\x20API\x20key','DependentOn','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','registerCommand','url(#on-line-icon_clip0_910_349)','Disposable','MCPConnectionStatus','API\x20密钥','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','IMenuManagerService','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','MCPConnectionController','__setCustomHeaders','univer-size-4','_initConfigSync','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','MCP\x20已断开','colorChannel1','entries','CommandType','Connecting...','UNAUTHORIZED','translate(.97)','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','mcpStatus.unauthorized','UniverIcon','univer-text-yellow-500','apiKey','IMessageService','univer.plus','MCPConfigUIController','Tooltip','mcpServerUrl','MCP:\x20网络错误','stringify','univer-text-green-500','mcpConfig.configInstructions','ILocalStorageService','displayName','MCP\x20Connecting...','启用身份验证以获得安全连接','mcpConfig.connectionStatus.failed','univer-mr-2\x20univer-flex\x20univer-text-xl','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','children','Configuration\x20saved\x20successfully','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','_injector','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','defs','_blank','path','univer-text-gray-400','mcpStatus.sessionOccupied','substring','noopener\x20noreferrer','univer-bg-blue-500','mcpConfig.sessionIdDescription','Univer\x20AI\x20控制台','error','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','defineProperty','push','current','mcpConfig.configStep2','Invalid\x20configuration','M0\x200H16V16H0z','div','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','setItem','mcpStatus.clickToConnect','mcpConfig.save','MCP\x20重连中...','MCP\x20Retrying...','univer_session_id:','COMMAND','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','useRef','toString','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','_handleConfigSave','xlink:href','BehaviorSubject','mcpConfig.apiKeyPlaceholder','random','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','MAX_RETRIES_EXCEEDED','MenuItemType','MCP_PLUGIN_CONFIG_KEY','http://www.w3.org/2000/svg','MCP\x20已连接','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','mcpConfig.connectionError.sessionOccupied','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer-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','mcpConfig.validation.apiKeyRequired','univer-text-xs\x20univer-text-gray-600','API\x20密钥不能为空','MCP\x20客户端配置','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','_apiKey$','MCPUIMenuController','jsx','connectInjector','_config$','配置步骤:','MCPConfigPanel','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_localStorageService','_logService','add','use','Success','1331714JyDEjm','univer.ai','mcpConfig.configSaved','univer-flex\x20univer-items-center\x20univer-gap-2','Retrying...','0\x200\x2016\x2016','BuiltInUIPart','univer-text-gray-500','button','请输入您的\x20API\x20密钥','clipPath','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','mcpConfig.apiKeyHint','_configService','getCurrentConfig','univer-size-2\x20univer-rounded-full','url(#off-line-icon_clip0_910_343)','univer-text-xs\x20univer-text-gray-500','连接中...','clsx','LocaleService','jsxs','univer-bg-red-500','Save\x20Configuration','label','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','RibbonStartGroup','配置参数:','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','_connectionController','ISocketService','Connected','网络连接错误,请检查您的网络连接','subscribe','什么是\x20API\x20密钥?','MCP\x20连接失败','mcpConfig.apiApplyInfo.title','IDialogService','连接失败','replace','connectionError$','_uiPartsService','length','复制以下\x20JSON\x20配置','registerComponent','mcpStatus.failed','配置\x20MCP\x20使用\x20AI\x20操作电子表格','将配置添加到您的\x20MCP\x20客户端设置文件中','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcpStatus.disconnected','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpConfig.saving','_commandService','MCP\x20Unknown\x20Status','symbol','mcpStatus.networkError','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','4807590LInEie','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','配置无效','mcpConfig.configStepTitle','WebSocketService','12004eRhTIE','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-shrink-0\x20univer-text-blue-500','保存中...','_initializeMenus','useCallback','show','点击配置\x20MCP','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','ComponentManager','span','mcpConfig.configStep1','\x20-\x20','assign','mcp-ui.config','Get\x20your\x20API\x20key\x20in\x20seconds','Injector','fill','MCP:\x20超出最大重试次数','MCP:\x20Network\x20Error','_initStatusComponent','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mask','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Configuration\x20Parameters:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpConfig.title','MCPStatusDisplay','register','https://mcp.univer.ai/mcp/?univer_session_id=','getConfig','Univer\x20AI\x20Console','pre','MCP\x20Disconnected','idSuffix','http','round','_loading$','univer-min-w-0\x20univer-flex-1','univer-text-red-500','MessageType','warn','https://console.univer.ai','_loadStoredApiKey','mcpConfig.validation.invalidConfig','getOwnPropertyDescriptor','mcpConfig.connectionStatus.connecting','8700321xhoHIO','value','string','univer-space-y-3','mcpConfig.apiKey','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','Click\x20to\x20configure\x20MCP','_handleConfigure','MCP\x20Connection\x20Failed','mcpConfig.connectionError.maxRetriesExceeded','https://console.univer.plus','mcp.apiKey','next','get','zhCN','MCPConnectionUIController','FAILED','MCP\x20Connected','univerjs-icon\x20univerjs-icon-','会话\x20ID\x20已被占用,请稍后再试','MenuIcon','1215DqBKRh','启用身份验证','Module','defIds','MCP\x20状态未知','几秒钟内获取您的\x20API\x20密钥','mergeMenu','mcpConfig.validation.invalidApiKey','_mcpConnectionController','mcpStatus.clickToConfigure','IConfigService','svg','SESSION_ID_OCCUPIED','_messageService','univer-flex\x20univer-gap-3','useObservable','univer-text-sm\x20univer-text-gray-500','933728dmoPLH','text','currentColor','未连接','attrs','您的\x20API\x20密钥将在此浏览器中本地存储','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','on-line-icon','disposeWithMe','超出最大重试次数,请稍后再试','useState','<API_KEY>','univer-bg-green-500','IUIPartsService','subscribeConfigValue$','\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','MCPConnectionError','on-line-icon_clip0_910_349','UniverMCPPlugin','CONNECTING','_createConfigPanelComponent','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Configuration','univer-space-y-2','_initAutoConnect','HelpIcon','mcpConfig.apiApplyInfo.description','check-mark-icon','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','_localeService','off-line-icon_clip0_910_343','trim','white','Saving...','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.configStep3','removeItem','NONE','isValid','1em','Authorization:','_menuManagerService','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','errorMessage','配置更改将立即生效','8939224JEwEgc','MCP:\x20Max\x20Retries\x20Exceeded','onStarting','最大重试次数','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','CONNECTED','DISCONNECTED','MCP:\x20未授权','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','includes','none','UniverMCPUIPlugin','createElement','useDependency','showStatus','univer-space-y-4','map','Copy\x20the\x20JSON\x20configuration\x20below','help-icon','showDeveloperTools','mcpStatus.retrying','NETWORK_ERROR','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','OTHERS','mcpConfig.connectionError.unauthorized','mcpStatus.connected','mcpConfig.connectionStatus.connected','RETRYING','_dialogService','Error','配置保存失败','0\x200\x2017\x2016','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','Enable\x20Authentication','_initializeCommands','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','重连中...','toStringTag','_registerComponent','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','API\x20Key','evenodd','MCP\x20连接中...','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','API\x20key\x20is\x20required','_mcpCoreConfig$','univer-bg-gray-500','mcpConfig.apiApplyInfo.univerAiLabel','_componentManager','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','_validateConfig','770064uVwPtv','Click\x20to\x20connect\x20MCP','<SESSION_ID>','url(#$1','connectionStatus$','MCP\x20Client\x20Configuration','open'];_0x48fd=function(){return _0x1b9b1b;};return _0x48fd();}function _0x71a7(_0x3c9acd,_0x583ee2){const _0x48fd02=_0x48fd();return _0x71a7=function(_0x71a757,_0x42d966){_0x71a757=_0x71a757-0x143;let _0x2a441f=_0x48fd02[_0x71a757];return _0x2a441f;},_0x71a7(_0x3c9acd,_0x583ee2);}var Ae=Object[_0x17225c(0x1ca)],Oe=Object[_0x17225c(0x26b)],De=(_0x11db44,_0x19dcd8,_0x628a03)=>_0x19dcd8 in _0x11db44?Ae(_0x11db44,_0x19dcd8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x628a03}):_0x11db44[_0x19dcd8]=_0x628a03,Ue=(_0x46dd0b,_0x4ab3e5,_0xf3a950,_0x19b01f)=>{const _0x2038df=_0x17225c;for(var _0xf3df72=_0x19b01f>0x1?void 0x0:_0x19b01f?Oe(_0x4ab3e5,_0xf3a950):_0x4ab3e5,_0x372532=_0x46dd0b[_0x2038df(0x22a)]-0x1,_0x52484b;_0x372532>=0x0;_0x372532--)(_0x52484b=_0x46dd0b[_0x372532])&&(_0xf3df72=_0x52484b(_0xf3df72)||_0xf3df72);return _0xf3df72;},y=(_0x446626,_0x223dc0)=>(_0x444426,_0x2341e5)=>_0x223dc0(_0x444426,_0x2341e5,_0x446626),$e=(_0x33339e,_0x5e8b41,_0x4d520b)=>De(_0x33339e,_0x5e8b41+'',_0x4d520b);exports['UniverMCPUIPlugin']=class extends u['Plugin']{constructor(_0x26d5ae=L,_0xd974ed,_0x3d3617,_0x3c5556,_0x1b2b8c,_0x4f0a26){const _0x5070e2=_0x17225c;super(),this['_config']=_0x26d5ae,this[_0x5070e2(0x1bc)]=_0xd974ed,this['_configService']=_0x3d3617,this['_uiPartsService']=_0x3c5556,this[_0x5070e2(0x1fb)]=_0x1b2b8c,this[_0x5070e2(0x2b0)]=_0x4f0a26;const {..._0x15cea0}=u['merge']({},L,this['_config']);this[_0x5070e2(0x20d)]['setConfig'](P,_0x15cea0);}async[_0x17225c(0x2c2)](){const _0x385e66=_0x17225c,_0x5c8ce6=[[exports['MCPConnectionUIController']],[exports[_0x385e66(0x1ab)]],[exports['MCPUIMenuController']]];this['_injector']['has'](A[_0x385e66(0x21e)])||_0x5c8ce6[_0x385e66(0x1cb)]([A[_0x385e66(0x21e)],{'useClass':A[_0x385e66(0x23d)]}]),_0x5c8ce6[_0x385e66(0x175)](_0x4e0205=>this[_0x385e66(0x1bc)][_0x385e66(0x1fd)](_0x4e0205)),this[_0x385e66(0x1bc)]['get'](exports[_0x385e66(0x27c)]),this[_0x385e66(0x1bc)][_0x385e66(0x27a)](exports[_0x385e66(0x1ab)]),this[_0x385e66(0x1bc)][_0x385e66(0x27a)](exports['MCPUIMenuController']);}},$e(exports[_0x17225c(0x2cb)],_0x17225c(0x18c),'MCP_UI_PLUGIN'),exports['UniverMCPUIPlugin']=Ue([u[_0x17225c(0x18e)](s[_0x17225c(0x2a5)]),y(0x1,u[_0x17225c(0x17e)](u[_0x17225c(0x24e)])),y(0x2,u[_0x17225c(0x28c)]),y(0x3,v[_0x17225c(0x2a0)]),y(0x4,u[_0x17225c(0x1b2)]),y(0x5,u[_0x17225c(0x17e)](u[_0x17225c(0x214)]))],exports[_0x17225c(0x2cb)]),exports[_0x17225c(0x1f8)]=V,exports[_0x17225c(0x259)]=W,exports['OpenMCPConfigPanelCommand']=b,exports['enUS']=Ee,exports[_0x17225c(0x27b)]=we;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4954ac=_0x4b6c;(function(_0x467318,_0x34f1e6){const _0x10a676=_0x4b6c,_0x502792=_0x467318();while(!![]){try{const _0x1bb482=parseInt(_0x10a676(0xe8))/0x1*(parseInt(_0x10a676(0xf0))/0x2)+-parseInt(_0x10a676(0xef))/0x3*(parseInt(_0x10a676(0x10a))/0x4)+-parseInt(_0x10a676(0xeb))/0x5*(-parseInt(_0x10a676(0xf8))/0x6)+-parseInt(_0x10a676(0xee))/0x7+parseInt(_0x10a676(0x114))/0x8*(parseInt(_0x10a676(0x100))/0x9)+-parseInt(_0x10a676(0xe3))/0xa+-parseInt(_0x10a676(0xf4))/0xb;if(_0x1bb482===_0x34f1e6)break;else _0x502792['push'](_0x502792['shift']());}catch(_0x5b2d0e){_0x502792['push'](_0x502792['shift']());}}}(_0x43a9,0xd3723));function _0x4b6c(_0x25465c,_0x5cb5ed){const _0x43a9a0=_0x43a9();return _0x4b6c=function(_0x4b6c4c,_0x11f6cc){_0x4b6c4c=_0x4b6c4c-0xe2;let _0x508bb2=_0x43a9a0[_0x4b6c4c];return _0x508bb2;},_0x4b6c(_0x25465c,_0x5cb5ed);}function _0x43a9(){const _0x1b4118=['Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','185211aSEYoC','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Invalid\x20configuration','670735qjsAFK','Disconnected','Connecting...','1397942HtJFHn','6gWecIk','2FsyIWK','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Retrying...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','4144657RnItwU','MCP\x20Disconnected','Session\x20ID','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','36qEyLhu','MCP\x20Connected','Save\x20Configuration','MCP:\x20Network\x20Error','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Client\x20Configuration','Enter\x20your\x20API\x20key','Univer\x20AI\x20Console','7761753ZElqyZ','Configuration\x20Steps:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Saving...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Enable\x20authentication\x20for\x20secure\x20connections','exports','MCP\x20Unknown\x20Status','Max\x20Retries','1503952tsHVUV','MCP:\x20Unauthorized','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20saved\x20successfully','API\x20Key','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Configuration','MCP\x20Connecting...','Configuration\x20Parameters:','16objvgh','API\x20key\x20with\x20Bearer\x20prefix.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20key\x20is\x20required','5203750fMJdeV','Failed\x20to\x20save\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enable\x20Authentication'];_0x43a9=function(){return _0x1b4118;};return _0x43a9();}const e={'mcpStatus':{'disconnected':_0x4954ac(0xf5),'connecting':_0x4954ac(0x112),'connected':_0x4954ac(0xf9),'failed':'MCP\x20Connection\x20Failed','retrying':_0x4954ac(0xf2),'unknown':_0x4954ac(0x108),'unauthorized':_0x4954ac(0x10b),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x4954ac(0xfb),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x4954ac(0x111),'description':_0x4954ac(0x10d),'apiKey':_0x4954ac(0x10f),'apiKeyPlaceholder':_0x4954ac(0xfe),'apiKeyHint':_0x4954ac(0xf3),'enableAuth':_0x4954ac(0xe6),'enableAuthHint':_0x4954ac(0x106),'connectionInfo':_0x4954ac(0xfd),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4954ac(0xf7),'configStepTitle':_0x4954ac(0x101),'configStep1':_0x4954ac(0x110),'configStep2':_0x4954ac(0xe9),'configStep3':_0x4954ac(0x103),'sessionId':_0x4954ac(0xf6),'sessionIdDescription':_0x4954ac(0xf1),'authorizationDescription':_0x4954ac(0x115),'configParameters':_0x4954ac(0x113),'maxRetries':_0x4954ac(0x109),'save':_0x4954ac(0xfa),'saving':_0x4954ac(0x104),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x4954ac(0xe7),'configSaved':_0x4954ac(0x10e),'configError':_0x4954ac(0xe4),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x4954ac(0x105),'univerAiLabel':_0x4954ac(0xff),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4954ac(0xe2),'apiKeyTooShort':_0x4954ac(0x116),'invalidConfig':_0x4954ac(0xea),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x4954ac(0xec),'connecting':_0x4954ac(0xed),'connected':'Connected','failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x4954ac(0x102),'sessionOccupied':_0x4954ac(0x10c),'networkError':_0x4954ac(0xfc),'maxRetriesExceeded':_0x4954ac(0xe5)}}},n=e;module[_0x4954ac(0x107)]=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x2f5c(_0x3d3565,_0x3e805a){const _0x3e2895=_0x3e28();return _0x2f5c=function(_0x2f5cc6,_0x5ca442){_0x2f5cc6=_0x2f5cc6-0x1ef;let _0x139314=_0x3e2895[_0x2f5cc6];return _0x139314;},_0x2f5c(_0x3d3565,_0x3e805a);}function _0x3e28(){const _0x19ad19=['MCP\x20Configuration','MCP\x20Disconnected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','1vUXadp','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...','450872LiXTva','261Tcjlkz','Session\x20ID','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20Key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','3KpfItO','What\x20is\x20API\x20Key?','Configuration\x20Steps:','6200970fLQVwv','771782CCYoFi','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','9433690GszEgM','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Client\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20saved\x20successfully','Univer\x20AI\x20Console','MCP\x20Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','3292144HMOBaD','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Save\x20Configuration','125811YfzdFM','Retrying...','MCP\x20Connecting...','MCP\x20Unknown\x20Status','Invalid\x20configuration','Enable\x20Authentication','Click\x20to\x20connect\x20MCP','426anYLOJ','24631112fWcefQ','Connected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection'];_0x3e28=function(){return _0x19ad19;};return _0x3e28();}const _0x4c8230=_0x2f5c;(function(_0x49b8d7,_0x1f6b5c){const _0x566fce=_0x2f5c,_0x35e6bc=_0x49b8d7();while(!![]){try{const _0xfe7b8a=parseInt(_0x566fce(0x1f4))/0x1*(parseInt(_0x566fce(0x201))/0x2)+parseInt(_0x566fce(0x1fd))/0x3*(parseInt(_0x566fce(0x210))/0x4)+-parseInt(_0x566fce(0x200))/0x5+-parseInt(_0x566fce(0x21b))/0x6*(-parseInt(_0x566fce(0x214))/0x7)+parseInt(_0x566fce(0x1f7))/0x8*(-parseInt(_0x566fce(0x1f8))/0x9)+-parseInt(_0x566fce(0x205))/0xa+parseInt(_0x566fce(0x21c))/0xb;if(_0xfe7b8a===_0x1f6b5c)break;else _0x35e6bc['push'](_0x35e6bc['shift']());}catch(_0xf42f67){_0x35e6bc['push'](_0x35e6bc['shift']());}}}(_0x3e28,0xdd3f4));const e={'mcpStatus':{'disconnected':_0x4c8230(0x1f2),'connecting':_0x4c8230(0x216),'connected':_0x4c8230(0x20e),'failed':_0x4c8230(0x20c),'retrying':'MCP\x20Retrying...','unknown':_0x4c8230(0x217),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x4c8230(0x21a),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x4c8230(0x1f1),'description':_0x4c8230(0x1fc),'apiKey':_0x4c8230(0x1fb),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x4c8230(0x1ef),'enableAuth':_0x4c8230(0x219),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x4c8230(0x207),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4c8230(0x1f3),'configStepTitle':_0x4c8230(0x1ff),'configStep1':_0x4c8230(0x206),'configStep2':_0x4c8230(0x202),'configStep3':_0x4c8230(0x20d),'sessionId':_0x4c8230(0x1f9),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x4c8230(0x211),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x4c8230(0x213),'saving':'Saving...','note1':_0x4c8230(0x212),'note2':_0x4c8230(0x209),'configSaved':_0x4c8230(0x20a),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x4c8230(0x1fe),'description':_0x4c8230(0x1f5),'univerAiLabel':_0x4c8230(0x20b),'getStarted':_0x4c8230(0x208)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x4c8230(0x203),'invalidConfig':_0x4c8230(0x218),'invalidApiKey':_0x4c8230(0x20f)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x4c8230(0x1f6),'connected':_0x4c8230(0x21d),'failed':'Connection\x20Failed','retrying':_0x4c8230(0x215)},'connectionError':{'unauthorized':_0x4c8230(0x204),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4c8230(0x1f0),'maxRetriesExceeded':_0x4c8230(0x1fa)}}};module['exports']=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x5c3baa=_0x3085;function _0x3085(_0x4ed104,_0x2e77f4){const _0x1c5b35=_0x1c5b();return _0x3085=function(_0x30859e,_0x2d5679){_0x30859e=_0x30859e-0x14b;let _0x6a3534=_0x1c5b35[_0x30859e];return _0x6a3534;},_0x3085(_0x4ed104,_0x2e77f4);}(function(_0x2f4a5e,_0x256007){const _0x2c5d55=_0x3085,_0x46574c=_0x2f4a5e();while(!![]){try{const _0x553fa8=parseInt(_0x2c5d55(0x178))/0x1+-parseInt(_0x2c5d55(0x154))/0x2+-parseInt(_0x2c5d55(0x151))/0x3+-parseInt(_0x2c5d55(0x150))/0x4*(parseInt(_0x2c5d55(0x15a))/0x5)+parseInt(_0x2c5d55(0x14b))/0x6*(-parseInt(_0x2c5d55(0x17c))/0x7)+parseInt(_0x2c5d55(0x174))/0x8*(-parseInt(_0x2c5d55(0x17a))/0x9)+-parseInt(_0x2c5d55(0x15d))/0xa*(-parseInt(_0x2c5d55(0x170))/0xb);if(_0x553fa8===_0x256007)break;else _0x46574c['push'](_0x46574c['shift']());}catch(_0x411f98){_0x46574c['push'](_0x46574c['shift']());}}}(_0x1c5b,0xf1b13));function _0x1c5b(){const _0x37f1b2=['Enable\x20authentication\x20for\x20secure\x20connections','634614IMQPno','MCP\x20Connected','What\x20is\x20API\x20Key?','Enable\x20Authentication','Failed\x20to\x20save\x20configuration','4792332XZEQcW','5426862UyHtgA','Disconnected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','1132756ULmzvU','MCP:\x20Network\x20Error','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Univer\x20AI\x20Console','MCP\x20Connecting...','MCP\x20Unknown\x20Status','5BfdmiE','MCP:\x20Max\x20Retries\x20Exceeded','Session\x20ID','280HQIeps','MCP\x20Client\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enter\x20your\x20API\x20key','MCP\x20Retrying...','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20configure\x20MCP','API\x20Key','Connection\x20Failed','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Unauthorized','API\x20key\x20is\x20required','MCP\x20Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Max\x20Retries','Saving...','Get\x20your\x20API\x20key\x20in\x20seconds','2093597bQPIUN','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','256DLXbGB','Connecting...','Invalid\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','1533383pemKxX','Retrying...','378909DHbbTJ','Configuration\x20Parameters:','63PnVvYu','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connection\x20Failed','exports','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser'];_0x1c5b=function(){return _0x37f1b2;};return _0x1c5b();}const e={'mcpStatus':{'disconnected':_0x5c3baa(0x16a),'connecting':_0x5c3baa(0x158),'connected':_0x5c3baa(0x14c),'failed':_0x5c3baa(0x17e),'retrying':_0x5c3baa(0x161),'unknown':_0x5c3baa(0x159),'unauthorized':_0x5c3baa(0x168),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x5c3baa(0x155),'maxRetriesExceeded':_0x5c3baa(0x15b),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x5c3baa(0x164)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x5c3baa(0x165),'apiKeyPlaceholder':_0x5c3baa(0x160),'apiKeyHint':_0x5c3baa(0x180),'enableAuth':_0x5c3baa(0x14e),'enableAuthHint':_0x5c3baa(0x181),'connectionInfo':_0x5c3baa(0x15e),'mcpClientConfig':_0x5c3baa(0x15e),'configInstructions':_0x5c3baa(0x15f),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x5c3baa(0x17d),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x5c3baa(0x15c),'sessionIdDescription':_0x5c3baa(0x171),'authorizationDescription':_0x5c3baa(0x162),'configParameters':_0x5c3baa(0x17b),'maxRetries':_0x5c3baa(0x16d),'save':'Save\x20Configuration','saving':_0x5c3baa(0x16e),'note1':_0x5c3baa(0x163),'note2':_0x5c3baa(0x16b),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x5c3baa(0x14f),'apiApplyInfo':{'title':_0x5c3baa(0x14d),'description':_0x5c3baa(0x16c),'univerAiLabel':_0x5c3baa(0x157),'getStarted':_0x5c3baa(0x16f)},'validation':{'apiKeyRequired':_0x5c3baa(0x169),'apiKeyTooShort':_0x5c3baa(0x177),'invalidConfig':_0x5c3baa(0x176),'invalidApiKey':_0x5c3baa(0x153)},'connectionStatus':{'disconnected':_0x5c3baa(0x152),'connecting':_0x5c3baa(0x175),'connected':'Connected','failed':_0x5c3baa(0x166),'retrying':_0x5c3baa(0x179)},'connectionError':{'unauthorized':_0x5c3baa(0x156),'sessionOccupied':_0x5c3baa(0x172),'networkError':_0x5c3baa(0x167),'maxRetriesExceeded':_0x5c3baa(0x173)}}},n=e;module[_0x5c3baa(0x17f)]=n;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x47f416=_0x39fa;(function(_0x26e050,_0x1729c7){const _0x1593b7=_0x39fa,_0x34a49b=_0x26e050();while(!![]){try{const _0x185c9a=-parseInt(_0x1593b7(0xb5))/0x1*(-parseInt(_0x1593b7(0x9a))/0x2)+parseInt(_0x1593b7(0x90))/0x3*(-parseInt(_0x1593b7(0xb0))/0x4)+-parseInt(_0x1593b7(0xb9))/0x5*(parseInt(_0x1593b7(0x8f))/0x6)+parseInt(_0x1593b7(0x9b))/0x7+-parseInt(_0x1593b7(0x88))/0x8*(-parseInt(_0x1593b7(0xb6))/0x9)+parseInt(_0x1593b7(0x93))/0xa*(parseInt(_0x1593b7(0x9f))/0xb)+-parseInt(_0x1593b7(0xa4))/0xc;if(_0x185c9a===_0x1729c7)break;else _0x34a49b['push'](_0x34a49b['shift']());}catch(_0x424cf9){_0x34a49b['push'](_0x34a49b['shift']());}}}(_0x36aa,0x217d1));function _0x36aa(){const _0x43030f=['Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20Authentication','MCP\x20Client\x20Configuration','Retrying...','Connecting...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','1572YbYrCl','638575CQCkrw','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','MCP\x20Unknown\x20Status','583dxiatj','MCP:\x20Unauthorized','Configuration\x20saved\x20successfully','Connection\x20Failed','API\x20key\x20is\x20required','3941196vMdtKA','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Disconnected','MCP\x20Configuration','Configuration\x20Parameters:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Max\x20Retries','MCP\x20Connecting...','Invalid\x20configuration','Click\x20to\x20configure\x20MCP','8tYqjmD','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20Steps:','exports','Click\x20to\x20connect\x20MCP','236PayrOj','1211922dSPXWs','Session\x20ID','Enter\x20your\x20API\x20key','270vKcOYj','MCP:\x20Network\x20Error','Connected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','8ydtNkJ','MCP\x20Retrying...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Max\x20Retries\x20Exceeded','7098uZSofd','171927ogDQBd','API\x20key\x20with\x20Bearer\x20prefix.','Enable\x20authentication\x20for\x20secure\x20connections','43910PhsiJb'];_0x36aa=function(){return _0x43030f;};return _0x36aa();}function _0x39fa(_0x15643e,_0x1e148c){const _0x36aa7e=_0x36aa();return _0x39fa=function(_0x39fa22,_0x31cf3c){_0x39fa22=_0x39fa22-0x87;let _0x2f3a9a=_0x36aa7e[_0x39fa22];return _0x2f3a9a;},_0x39fa(_0x15643e,_0x1e148c);}const e={'mcpStatus':{'disconnected':_0x47f416(0xa6),'connecting':_0x47f416(0xad),'connected':'MCP\x20Connected','failed':_0x47f416(0x9d),'retrying':_0x47f416(0x89),'unknown':_0x47f416(0x9e),'unauthorized':_0x47f416(0xa0),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x47f416(0xba),'maxRetriesExceeded':_0x47f416(0x8e),'clickToConnect':_0x47f416(0xb4),'clickToConfigure':_0x47f416(0xaf)},'mcpConfig':{'title':_0x47f416(0xa7),'description':_0x47f416(0xb1),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x47f416(0xb8),'apiKeyHint':_0x47f416(0x87),'enableAuth':_0x47f416(0x95),'enableAuthHint':_0x47f416(0x92),'connectionInfo':_0x47f416(0x96),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x47f416(0xb2),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x47f416(0x8a),'configStep3':_0x47f416(0x94),'sessionId':_0x47f416(0xb7),'sessionIdDescription':_0x47f416(0x8c),'authorizationDescription':_0x47f416(0x91),'configParameters':_0x47f416(0xa8),'maxRetries':_0x47f416(0xac),'save':'Save\x20Configuration','saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x47f416(0xaa),'configSaved':_0x47f416(0xa1),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x47f416(0x99),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x47f416(0xa3),'apiKeyTooShort':_0x47f416(0xa9),'invalidConfig':_0x47f416(0xae),'invalidApiKey':_0x47f416(0xa5)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x47f416(0x98),'connected':_0x47f416(0xbb),'failed':_0x47f416(0xa2),'retrying':_0x47f416(0x97)},'connectionError':{'unauthorized':_0x47f416(0x8d),'sessionOccupied':_0x47f416(0x9c),'networkError':_0x47f416(0xab),'maxRetriesExceeded':_0x47f416(0x8b)}}},n=e;module[_0x47f416(0xb3)]=n;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x3b9f77=_0x17d9;function _0x17d9(_0x377228,_0x1d086c){const _0x5a2db5=_0x5a2d();return _0x17d9=function(_0x17d975,_0x3040a9){_0x17d975=_0x17d975-0x83;let _0x481135=_0x5a2db5[_0x17d975];return _0x481135;},_0x17d9(_0x377228,_0x1d086c);}(function(_0x46d354,_0x552807){const _0x4cd6cb=_0x17d9,_0xd8fac4=_0x46d354();while(!![]){try{const _0x217885=parseInt(_0x4cd6cb(0xb5))/0x1*(-parseInt(_0x4cd6cb(0x96))/0x2)+-parseInt(_0x4cd6cb(0xaa))/0x3*(-parseInt(_0x4cd6cb(0x86))/0x4)+-parseInt(_0x4cd6cb(0xae))/0x5*(parseInt(_0x4cd6cb(0x83))/0x6)+-parseInt(_0x4cd6cb(0x9d))/0x7+parseInt(_0x4cd6cb(0xb6))/0x8*(-parseInt(_0x4cd6cb(0x88))/0x9)+parseInt(_0x4cd6cb(0xb4))/0xa*(parseInt(_0x4cd6cb(0x9e))/0xb)+parseInt(_0x4cd6cb(0x8a))/0xc;if(_0x217885===_0x552807)break;else _0xd8fac4['push'](_0xd8fac4['shift']());}catch(_0x56c733){_0xd8fac4['push'](_0xd8fac4['shift']());}}}(_0x5a2d,0xe15f9));function _0x5a2d(){const _0x4e3c85=['Enter\x20your\x20API\x20key','Saving...','6876569bdivqr','7843BRhPIa','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Connecting...','Enable\x20Authentication','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20Parameters:','Click\x20to\x20connect\x20MCP','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20saved\x20successfully','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enable\x20authentication\x20for\x20secure\x20connections','3YAeMFx','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Steps:','10aUlQQV','MCP\x20Configuration','Save\x20Configuration','exports','MCP\x20Connected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','21830fvsFMY','67Vgtohv','970264dZXHAW','Session\x20ID','MCP\x20Unknown\x20Status','2877042SmVQvB','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Failed\x20to\x20save\x20configuration','6214516ROEXLs','Invalid\x20configuration','81kDlxSN','MCP\x20Connection\x20Failed','30084960YXEqMA','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20key\x20is\x20required','Connection\x20Failed','Click\x20to\x20configure\x20MCP','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20Key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Client\x20Configuration','Max\x20Retries','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','49586rHpiUR','Disconnected','Connected','Copy\x20the\x20JSON\x20configuration\x20below','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets'];_0x5a2d=function(){return _0x4e3c85;};return _0x5a2d();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x3b9f77(0xb2),'failed':_0x3b9f77(0x89),'retrying':'MCP\x20Retrying...','unknown':_0x3b9f77(0xb8),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x3b9f77(0xac),'clickToConnect':_0x3b9f77(0xa4),'clickToConfigure':_0x3b9f77(0x8e)},'mcpConfig':{'title':_0x3b9f77(0xaf),'description':_0x3b9f77(0x9a),'apiKey':_0x3b9f77(0x91),'apiKeyPlaceholder':_0x3b9f77(0x9b),'apiKeyHint':_0x3b9f77(0xa8),'enableAuth':_0x3b9f77(0xa1),'enableAuthHint':_0x3b9f77(0xa9),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x3b9f77(0x93),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x3b9f77(0xad),'configStep1':_0x3b9f77(0x99),'configStep2':_0x3b9f77(0x92),'configStep3':_0x3b9f77(0xa7),'sessionId':_0x3b9f77(0xb7),'sessionIdDescription':_0x3b9f77(0x9f),'authorizationDescription':_0x3b9f77(0xa2),'configParameters':_0x3b9f77(0xa3),'maxRetries':_0x3b9f77(0x94),'save':_0x3b9f77(0xb0),'saving':_0x3b9f77(0x9c),'note1':_0x3b9f77(0x95),'note2':_0x3b9f77(0xb3),'configSaved':_0x3b9f77(0xa6),'configError':_0x3b9f77(0x85),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x3b9f77(0x84),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x3b9f77(0x8c),'apiKeyTooShort':_0x3b9f77(0x8f),'invalidConfig':_0x3b9f77(0x87),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x3b9f77(0x97),'connecting':_0x3b9f77(0xa0),'connected':_0x3b9f77(0x98),'failed':_0x3b9f77(0x8d),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x3b9f77(0xab),'sessionOccupied':_0x3b9f77(0x8b),'networkError':_0x3b9f77(0xa5),'maxRetriesExceeded':_0x3b9f77(0x90)}}},n=e;module[_0x3b9f77(0xb1)]=n;
|