@univerjs-pro/mcp-ui 0.12.3 → 0.12.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +9 -9
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x540136=_0x50cc;(function(_0x265d47,_0x5f6ebf){const _0x3c8d3b=_0x50cc,_0x2c16f5=_0x265d47();while(!![]){try{const _0x5f5b69=-parseInt(_0x3c8d3b(0xc3))/0x1*(parseInt(_0x3c8d3b(0xe3))/0x2)+parseInt(_0x3c8d3b(0x16a))/0x3*(-parseInt(_0x3c8d3b(0x1f0))/0x4)+parseInt(_0x3c8d3b(0x168))/0x5+parseInt(_0x3c8d3b(0x110))/0x6+parseInt(_0x3c8d3b(0x164))/0x7+parseInt(_0x3c8d3b(0x1c4))/0x8*(-parseInt(_0x3c8d3b(0x1ad))/0x9)+parseInt(_0x3c8d3b(0x108))/0xa;if(_0x5f5b69===_0x5f6ebf)break;else _0x2c16f5['push'](_0x2c16f5['shift']());}catch(_0x3bb9d9){_0x2c16f5['push'](_0x2c16f5['shift']());}}}(_0x25cb,0x5ebe9));var ae=Object[_0x540136(0x1de)],le=(_0x3ca4a2,_0x5e336d,_0x14da38)=>_0x5e336d in _0x3ca4a2?ae(_0x3ca4a2,_0x5e336d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14da38}):_0x3ca4a2[_0x5e336d]=_0x14da38,I=(_0x3e0f43,_0x536f34,_0x14b27f)=>le(_0x3e0f43,typeof _0x536f34!=_0x540136(0x116)?_0x536f34+'':_0x536f34,_0x14b27f);Object['defineProperty'](exports,Symbol[_0x540136(0x215)],{'value':_0x540136(0x150)});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:_0x39d56b,..._0x188773}){const _0x1639fb=_0x540136,{icon:_0x1d5998,id:_0x344536,className:_0x2a2731,extend:_0x3eb745,..._0x3fda4c}=_0x188773,_0x16d9d3=(_0x1639fb(0x12f)+_0x344536+'\x20'+(_0x2a2731||''))[_0x1639fb(0x113)](),_0x7960ab=d['useRef']('_'+de());return G(_0x1d5998,''+_0x344536,{'defIds':_0x1d5998[_0x1639fb(0x228)],'idSuffix':_0x7960ab[_0x1639fb(0x21b)]},{'ref':_0x39d56b,'className':_0x16d9d3,..._0x3fda4c},_0x3eb745);}function _0x50cc(_0x24864c,_0x5737d7){const _0x25cb91=_0x25cb();return _0x50cc=function(_0x50cc28,_0x4eeae1){_0x50cc28=_0x50cc28-0xaf;let _0x526773=_0x25cb91[_0x50cc28];return _0x526773;},_0x50cc(_0x24864c,_0x5737d7);}function G(_0x2b4805,_0xa04dda,_0x12b331,_0x5f8968,_0x260ecb){const _0x509ed5=_0x540136;return d['createElement'](_0x2b4805[_0x509ed5(0xc9)],{'key':_0xa04dda,...ue(_0x2b4805,_0x12b331,_0x260ecb),..._0x5f8968},(ve(_0x2b4805,_0x12b331)[_0x509ed5(0xc6)]||[])['map']((_0x207079,_0x31f605)=>G(_0x207079,_0xa04dda+'-'+_0x2b4805[_0x509ed5(0xc9)]+'-'+_0x31f605,_0x12b331,void 0x0,_0x260ecb)));}function ue(_0x5a414c,_0x2972e1,_0x3d0745){const _0x1ae589=_0x540136,_0x191219={..._0x5a414c['attrs']};_0x3d0745!=null&&_0x3d0745['colorChannel1']&&_0x191219[_0x1ae589(0x1ba)]===_0x1ae589(0x1dd)&&(_0x191219['fill']=_0x3d0745[_0x1ae589(0x1dd)]),_0x5a414c[_0x1ae589(0xc9)]===_0x1ae589(0x1c8)&&_0x191219['id']&&(_0x191219['id']=_0x191219['id']+_0x2972e1[_0x1ae589(0x222)]),Object['entries'](_0x191219)['forEach'](([_0x1cd2f9,_0x588462])=>{const _0x69c33f=_0x1ae589;_0x1cd2f9===_0x69c33f(0x1c8)&&typeof _0x588462==_0x69c33f(0x1aa)&&(_0x191219[_0x1cd2f9]=_0x588462[_0x69c33f(0x230)](/url\(#(.*)\)/,_0x69c33f(0x232)+_0x2972e1[_0x69c33f(0x222)]+')'));});const {defIds:_0x3d69ed}=_0x2972e1;return!_0x3d69ed||_0x3d69ed[_0x1ae589(0x1a0)]===0x0||(_0x5a414c[_0x1ae589(0xc9)]===_0x1ae589(0x217)&&_0x191219['xlink:href']&&(_0x191219[_0x1ae589(0x19e)]=_0x191219['xlink:href']+_0x2972e1[_0x1ae589(0x222)]),Object['entries'](_0x191219)[_0x1ae589(0x1c0)](([_0x4b362d,_0xc96eca])=>{const _0x205d42=_0x1ae589;typeof _0xc96eca==_0x205d42(0x1aa)&&(_0x191219[_0x4b362d]=_0xc96eca[_0x205d42(0x230)](/url\(#(.*)\)/,_0x205d42(0x232)+_0x2972e1['idSuffix']+')'));})),_0x191219;}function ve(_0x3cede2,_0x92e10a){const _0x493f34=_0x540136;var _0x427979;const {defIds:_0x386ff8}=_0x92e10a;return!_0x386ff8||_0x386ff8['length']===0x0?_0x3cede2:_0x3cede2[_0x493f34(0xc9)]===_0x493f34(0xe1)&&((_0x427979=_0x3cede2[_0x493f34(0xc6)])!=null&&_0x427979[_0x493f34(0x1a0)])?{..._0x3cede2,'children':_0x3cede2['children'][_0x493f34(0x22c)](_0x54298a=>typeof _0x54298a['attrs']['id']==_0x493f34(0x1aa)&&_0x386ff8&&_0x386ff8[_0x493f34(0x1db)](_0x54298a[_0x493f34(0x141)]['id'])?{..._0x54298a,'attrs':{..._0x54298a[_0x493f34(0x141)],'id':_0x54298a['attrs']['id']+_0x92e10a[_0x493f34(0x222)]}}:_0x54298a)}:_0x3cede2;}function de(){const _0x1062aa=_0x540136;return Math[_0x1062aa(0xd7)]()[_0x1062aa(0x167)](0x24)['substring'](0x2,0x8);}_[_0x540136(0x172)]='UniverIcon';const Ce={'tag':_0x540136(0x21e),'attrs':{'xmlns':_0x540136(0x22d),'fill':'none','viewBox':_0x540136(0x130),'width':_0x540136(0x1d6),'height':_0x540136(0x1d6)},'children':[{'tag':_0x540136(0x1b1),'attrs':{'fill':_0x540136(0x1cb),'d':_0x540136(0xc1),'fillRule':_0x540136(0x202),'clipRule':'evenodd'}}]},H=d[_0x540136(0x1ef)](function(_0x4ad0e5,_0x296f4c){const _0x23a1e0=_0x540136;return d[_0x23a1e0(0x19b)](_,Object[_0x23a1e0(0x199)]({},_0x4ad0e5,{'id':'check-mark-icon','ref':_0x296f4c,'icon':Ce}));});H[_0x540136(0x172)]=_0x540136(0x134);const ge={'tag':'svg','attrs':{'xmlns':_0x540136(0x22d),'fill':_0x540136(0x1c6),'viewBox':_0x540136(0x130),'width':'1em','height':_0x540136(0x1d6)},'children':[{'tag':'path','attrs':{'fill':_0x540136(0x1cb),'d':_0x540136(0x16c)}}]},B=d[_0x540136(0x1ef)](function(_0xbdfc56,_0x47a570){const _0x2566dc=_0x540136;return d[_0x2566dc(0x19b)](_,Object['assign']({},_0xbdfc56,{'id':_0x2566dc(0x185),'ref':_0x47a570,'icon':ge}));});B[_0x540136(0x172)]=_0x540136(0x1c1);const fe={'tag':_0x540136(0x21e),'attrs':{'xmlns':_0x540136(0x22d),'fill':_0x540136(0x1c6),'viewBox':_0x540136(0x130),'width':_0x540136(0x1d6),'height':_0x540136(0x1d6)},'children':[{'tag':_0x540136(0x1b1),'attrs':{'fill':_0x540136(0x1cb),'d':_0x540136(0x112)}},{'tag':_0x540136(0x1b1),'attrs':{'fill':_0x540136(0x1cb),'d':_0x540136(0xfc)}},{'tag':_0x540136(0x1b1),'attrs':{'fill':_0x540136(0x1cb),'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':_0x540136(0x202),'clipRule':_0x540136(0x202)}}]},F=d[_0x540136(0x1ef)](function(_0x2449af,_0x42d391){const _0x127c35=_0x540136;return d[_0x127c35(0x19b)](_,Object[_0x127c35(0x199)]({},_0x2449af,{'id':_0x127c35(0x107),'ref':_0x42d391,'icon':fe}));});F[_0x540136(0x172)]=_0x540136(0x1f7);const pe={'tag':_0x540136(0x21e),'attrs':{'xmlns':_0x540136(0x22d),'fill':_0x540136(0x1c6),'viewBox':_0x540136(0x130),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x540136(0x21d)},'children':[{'tag':'path','attrs':{'stroke':_0x540136(0x1cb),'d':_0x540136(0x1bd),'strokeLinecap':_0x540136(0x1fe),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x540136(0x1cc)},'children':[{'tag':'path','attrs':{'fill':_0x540136(0xc5),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x540136(0x1cc)]},Y=d[_0x540136(0x1ef)](function(_0xde70a3,_0x431f27){const _0x15922f=_0x540136;return d[_0x15922f(0x19b)](_,Object[_0x15922f(0x199)]({},_0xde70a3,{'id':_0x15922f(0xe2),'ref':_0x431f27,'icon':pe}));});Y['displayName']='OffLineIcon';const he={'tag':_0x540136(0x21e),'attrs':{'xmlns':_0x540136(0x22d),'fill':'none','viewBox':_0x540136(0x158),'width':'1em','height':_0x540136(0x1d6)},'children':[{'tag':'g','attrs':{'clipPath':_0x540136(0x204)},'children':[{'tag':_0x540136(0x1b1),'attrs':{'stroke':'currentColor','d':_0x540136(0x148),'strokeLinecap':'round','strokeLinejoin':_0x540136(0x1fe),'strokeWidth':1.2}}]},{'tag':_0x540136(0xe1),'attrs':{},'children':[{'tag':_0x540136(0x123),'attrs':{'id':_0x540136(0xef)},'children':[{'tag':'path','attrs':{'fill':_0x540136(0xc5),'d':'M0\x200H16V16H0z','transform':_0x540136(0x14b)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},q=d[_0x540136(0x1ef)](function(_0x20680d,_0x2bc242){const _0x484c34=_0x540136;return d[_0x484c34(0x19b)](_,Object['assign']({},_0x20680d,{'id':'on-line-icon','ref':_0x2bc242,'icon':he}));});q[_0x540136(0x172)]='OnLineIcon';function V(_0x4605db){const _0x2c8f56=_0x540136;var _0x512922,_0x40da34;const {mcpCoreConfig:_0x5ac77e,onSave:_0x5cdcbd,loading:_0xcb8d39=!0x1,config:_0x12ee24,connectionStatus$:_0xa9bab2,connectionError$:_0x470aeb,currentApiKey$:_0x593caa,currentSessionId$:_0x5c4088}=_0x4605db,_0x2a0ffe=v[_0x2c8f56(0x1f6)](u[_0x2c8f56(0xb5)]),_0x5e3caf=v['useObservable'](_0xa9bab2,s[_0x2c8f56(0x219)][_0x2c8f56(0x195)]),_0x3cf1a7=v[_0x2c8f56(0x1d9)](_0x470aeb,s['MCPConnectionError'][_0x2c8f56(0x120)]),_0x86e863=v[_0x2c8f56(0x1d9)](_0x5c4088,''),_0x23c157=v[_0x2c8f56(0x1d9)](_0x593caa,''),[_0x2d320b,_0x2c1ab5]=d[_0x2c8f56(0x155)](_0x23c157||''),_0x55122f=!0x0,_0x59a215=_0x12ee24['showDeveloperTools']&&_0x5ac77e[_0x2c8f56(0x11b)]&&(_0x5ac77e[_0x2c8f56(0x11b)][_0x2c8f56(0x1db)]('univer.plus')||_0x5ac77e['mcpServerUrl'][_0x2c8f56(0x1db)](_0x2c8f56(0xc7))),_0x25f46d=(_0x512922=_0x5ac77e[_0x2c8f56(0x11b)])==null?void 0x0:_0x512922[_0x2c8f56(0x1db)](_0x2c8f56(0x21c)),_0x14f658=(_0x40da34=_0x5ac77e['mcpServerUrl'])==null?void 0x0:_0x40da34[_0x2c8f56(0x1db)]('univer.ai'),_0x52c38c=_0x25f46d?_0x2c8f56(0xb7):_0x2c8f56(0x15b),_0x78a6e7=_0x12ee24[_0x2c8f56(0x12a)]&&(_0x25f46d||_0x14f658),[_0x339734,_0x3f106c]=d[_0x2c8f56(0x155)](!_0x2d320b[_0x2c8f56(0x113)]()),_0x236caa=(_0x5c16e9,_0x454d40)=>{const _0x46feb5=_0x2c8f56;if(_0x454d40===s[_0x46feb5(0x1fc)][_0x46feb5(0xfb)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x5c16e9){case s[_0x46feb5(0x219)][_0x46feb5(0x111)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case s['MCPConnectionStatus'][_0x46feb5(0x1b8)]:case s[_0x46feb5(0x219)][_0x46feb5(0x178)]:return _0x46feb5(0x136);case s['MCPConnectionStatus'][_0x46feb5(0xfe)]:return _0x46feb5(0x169);default:return _0x46feb5(0x145);}},_0xb035fd=(_0x225cf6,_0x3d583a)=>{const _0x593106=_0x2c8f56;if(_0x3d583a===s[_0x593106(0x1fc)][_0x593106(0xfb)])return _0x593106(0x22a);switch(_0x225cf6){case s[_0x593106(0x219)][_0x593106(0x111)]:return'univer-bg-green-500';case s['MCPConnectionStatus'][_0x593106(0x1b8)]:case s[_0x593106(0x219)][_0x593106(0x178)]:return'univer-bg-blue-500';case s[_0x593106(0x219)][_0x593106(0xfe)]:return _0x593106(0x22a);default:return _0x593106(0x211);}},_0x115199=_0x26b9e5=>{const _0xd65092=_0x2c8f56;switch(_0x26b9e5){case s[_0xd65092(0x219)][_0xd65092(0x111)]:return _0x2a0ffe['t'](_0xd65092(0x210));case s['MCPConnectionStatus']['CONNECTING']:return _0x2a0ffe['t'](_0xd65092(0x22f));case s[_0xd65092(0x219)]['FAILED']:return _0x2a0ffe['t'](_0xd65092(0x1f3));case s[_0xd65092(0x219)]['RETRYING']:return _0x2a0ffe['t'](_0xd65092(0x1a4));default:return _0x2a0ffe['t'](_0xd65092(0x14d));}},_0x2a74c2=_0x246c21=>{const _0x322bcc=_0x2c8f56;switch(_0x246c21){case s['MCPConnectionError'][_0x322bcc(0xfb)]:return _0x2a0ffe['t']('mcpConfig.connectionError.unauthorized');case s[_0x322bcc(0x1fc)][_0x322bcc(0x1b6)]:return _0x2a0ffe['t']('mcpConfig.connectionError.sessionOccupied');case s[_0x322bcc(0x1fc)][_0x322bcc(0x187)]:return _0x2a0ffe['t'](_0x322bcc(0x1a1));case s['MCPConnectionError'][_0x322bcc(0x1eb)]:return _0x2a0ffe['t'](_0x322bcc(0x1d5));default:return'';}},_0x2aef7e=d[_0x2c8f56(0xea)](()=>{const _0x2191b4={..._0x5ac77e,'apiKey':_0x2d320b['trim'](),'enableAuth':_0x55122f};_0x5cdcbd(_0x2191b4);},[_0x5ac77e,_0x2d320b,_0x55122f,_0x5cdcbd]),_0x4f38d8=_0x2d320b[_0x2c8f56(0x113)]()['length']>0x0;return i['jsxs']('div',{'className':_0x2c8f56(0x18e),'children':[i[_0x2c8f56(0x1e0)](_0x2c8f56(0x12e),{'className':_0x2c8f56(0x183),'children':i['jsxs'](_0x2c8f56(0x12e),{'className':_0x2c8f56(0x1d4),'children':[i[_0x2c8f56(0x1e0)](_0x2c8f56(0x12e),{'className':_0x2c8f56(0xf0),'children':i[_0x2c8f56(0x1e0)](_0x2c8f56(0x105),{'className':'univer-text-white','children':'⚙'})}),i['jsx'](_0x2c8f56(0x12e),{'children':i[_0x2c8f56(0x1e0)]('p',{'className':_0x2c8f56(0x12c),'children':_0x2a0ffe['t'](_0x2c8f56(0x1dc))})})]})}),i[_0x2c8f56(0x146)]('div',{'className':_0x2c8f56(0x12d),'children':[i[_0x2c8f56(0x1e0)](_0x2c8f56(0x12e),{'className':f['clsx'](_0x2c8f56(0x1b7),_0x236caa(_0x5e3caf,_0x3cf1a7)),'children':i['jsxs']('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x2c8f56(0x1e0)](_0x2c8f56(0x12e),{'className':f['clsx'](_0x2c8f56(0xbe),_0xb035fd(_0x5e3caf,_0x3cf1a7))}),i['jsx'](_0x2c8f56(0x105),{'className':_0x2c8f56(0xed),'children':_0x115199(_0x5e3caf)})]})}),_0x3cf1a7!==s[_0x2c8f56(0x1fc)][_0x2c8f56(0x120)]&&(_0x5e3caf===s['MCPConnectionStatus']['FAILED']||_0x3cf1a7===s[_0x2c8f56(0x1fc)][_0x2c8f56(0xfb)])&&i['jsx'](_0x2c8f56(0x12e),{'className':_0x2c8f56(0x117),'children':i[_0x2c8f56(0x146)](_0x2c8f56(0x12e),{'className':_0x2c8f56(0x201),'children':[i['jsx'](_0x2c8f56(0x105),{'className':_0x2c8f56(0x176),'children':'⚠️'}),i[_0x2c8f56(0x1e0)]('p',{'className':_0x2c8f56(0x11c),'children':_0x2a74c2(_0x3cf1a7)})]})})]}),i['jsx'](_0x2c8f56(0x12e),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':i[_0x2c8f56(0x146)]('div',{'className':_0x2c8f56(0x1c3),'children':[i[_0x2c8f56(0x146)](_0x2c8f56(0x12e),{'className':'univer-space-y-2','children':[i[_0x2c8f56(0x146)](_0x2c8f56(0xe9),{'className':_0x2c8f56(0x156),'children':[i[_0x2c8f56(0x1e0)](_0x2c8f56(0x105),{'children':'🔑'}),'\x20',_0x2a0ffe['t'](_0x2c8f56(0xbf)),i['jsx']('span',{'className':_0x2c8f56(0x129),'children':'*'}),_0x59a215&&i[_0x2c8f56(0x1e0)]('a',{'className':_0x2c8f56(0x140),'title':_0x2a0ffe['t']('mcpConfig.apiApplyInfo.title'),'role':_0x2c8f56(0x1ca),'onClick':()=>_0x3f106c(!0x0),'children':i['jsx'](F,{})})]}),i[_0x2c8f56(0x1e0)](f[_0x2c8f56(0x214)],{'type':_0x2c8f56(0x180),'placeholder':_0x2a0ffe['t'](_0x2c8f56(0xf6)),'value':_0x2d320b,'disabled':_0xcb8d39,'autoComplete':_0x2c8f56(0x175),'onChange':_0x2c1ab5}),i[_0x2c8f56(0x1e0)]('p',{'className':_0x2c8f56(0x1ea),'children':_0x2a0ffe['t'](_0x2c8f56(0x1ec))})]}),_0x59a215&&_0x339734&&i[_0x2c8f56(0x146)](_0x2c8f56(0x12e),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[i['jsx']('a',{'className':_0x2c8f56(0x166),'role':_0x2c8f56(0x1ca),'onClick':()=>_0x3f106c(!0x1),'children':i['jsx'](B,{'className':_0x2c8f56(0x20d)})}),i[_0x2c8f56(0x146)]('div',{'className':_0x2c8f56(0xbc),'children':[i[_0x2c8f56(0x1e0)]('div',{'className':_0x2c8f56(0xe7),'children':i[_0x2c8f56(0x1e0)](_0x2c8f56(0x105),{'className':_0x2c8f56(0x102),'children':'🚀'})}),i[_0x2c8f56(0x146)](_0x2c8f56(0x12e),{'className':_0x2c8f56(0x216),'children':[i[_0x2c8f56(0x1e0)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x2a0ffe['t']('mcpConfig.apiApplyInfo.title')}),i['jsx']('p',{'className':_0x2c8f56(0xcd),'children':_0x2a0ffe['t']('mcpConfig.apiApplyInfo.description')}),i[_0x2c8f56(0x1e0)](_0x2c8f56(0x12e),{'className':_0x2c8f56(0x10c),'children':_0x78a6e7&&i[_0x2c8f56(0x146)]('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x52c38c,'target':_0x2c8f56(0xdd),'rel':'noopener\x20noreferrer','children':[i[_0x2c8f56(0x1e0)](_0x2c8f56(0x105),{'children':'🤖'}),_0x2a0ffe['t'](_0x2c8f56(0xb2)),i[_0x2c8f56(0x1e0)](_0x2c8f56(0x105),{'className':_0x2c8f56(0x10a),'children':'↗'})]})}),i[_0x2c8f56(0x146)](_0x2c8f56(0x12e),{'className':_0x2c8f56(0x1d3),'children':['✨','\x20',_0x2a0ffe['t'](_0x2c8f56(0x15f))]})]})]})]}),_0x12ee24[_0x2c8f56(0x12a)]&&i[_0x2c8f56(0x146)]('div',{'className':_0x2c8f56(0x188),'children':[i[_0x2c8f56(0x146)]('h4',{'className':_0x2c8f56(0x233),'children':[i['jsx'](_0x2c8f56(0x105),{'children':'🔗'}),'\x20',_0x2a0ffe['t'](_0x2c8f56(0xf9))]}),i['jsxs'](_0x2c8f56(0x12e),{'className':_0x2c8f56(0x1d7),'children':[i[_0x2c8f56(0x146)]('div',{'className':'univer-space-y-3','children':[i[_0x2c8f56(0x1e0)]('p',{'className':_0x2c8f56(0x143),'children':_0x2a0ffe['t']('mcpConfig.configInstructions')}),i['jsxs']('div',{'className':'univer-space-y-2','children':[i[_0x2c8f56(0x1e0)](_0x2c8f56(0x12e),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x2a0ffe['t']('mcpConfig.configStepTitle')}),i['jsxs']('div',{'className':_0x2c8f56(0x1a3),'children':[i[_0x2c8f56(0x146)](_0x2c8f56(0x12e),{'className':_0x2c8f56(0x18a),'children':[i['jsx'](_0x2c8f56(0x105),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x2a0ffe['t'](_0x2c8f56(0xd9))]}),i[_0x2c8f56(0x146)](_0x2c8f56(0x12e),{'className':_0x2c8f56(0x18a),'children':[i[_0x2c8f56(0x1e0)]('span',{'className':_0x2c8f56(0x20a),'children':'2'}),_0x2a0ffe['t']('mcpConfig.configStep2')]}),i[_0x2c8f56(0x146)](_0x2c8f56(0x12e),{'className':_0x2c8f56(0x18a),'children':[i[_0x2c8f56(0x1e0)](_0x2c8f56(0x105),{'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':'3'}),_0x2a0ffe['t'](_0x2c8f56(0x149))]})]})]})]}),i[_0x2c8f56(0x146)](_0x2c8f56(0x12e),{'className':_0x2c8f56(0xcb),'children':[i[_0x2c8f56(0x1e0)](_0x2c8f56(0x12e),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x2c8f56(0xce)}),i[_0x2c8f56(0x1e0)](_0x2c8f56(0x12e),{'className':_0x2c8f56(0x147),'children':i['jsx'](_0x2c8f56(0x144),{'className':_0x2c8f56(0xeb),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x2c8f56(0x1cd)+(_0x86e863||_0x2c8f56(0x220)),'type':'http','headers':{'Authorization':_0x2c8f56(0xf8)+(_0x2d320b||_0x2c8f56(0x122))}}}},null,0x2)})})]}),i[_0x2c8f56(0x146)]('div',{'className':_0x2c8f56(0xc4),'children':[i[_0x2c8f56(0x1e0)](_0x2c8f56(0x12e),{'className':_0x2c8f56(0x15c),'children':_0x2a0ffe['t']('mcpConfig.configParameters')}),i['jsxs']('div',{'className':_0x2c8f56(0xcb),'children':[i[_0x2c8f56(0x146)](_0x2c8f56(0x12e),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i[_0x2c8f56(0x1e0)](_0x2c8f56(0x12e),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i[_0x2c8f56(0x146)]('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[i[_0x2c8f56(0x1e0)](_0x2c8f56(0x12e),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x2c8f56(0x19a)}),i[_0x2c8f56(0x1e0)](_0x2c8f56(0x12e),{'className':_0x2c8f56(0x1ea),'children':_0x2a0ffe['t'](_0x2c8f56(0x11f))})]})]}),i[_0x2c8f56(0x146)](_0x2c8f56(0x12e),{'className':_0x2c8f56(0x1e7),'children':[i['jsx']('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i[_0x2c8f56(0x146)]('div',{'className':_0x2c8f56(0x1ce),'children':[i[_0x2c8f56(0x1e0)]('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x2c8f56(0x1a6)}),i['jsx'](_0x2c8f56(0x12e),{'className':_0x2c8f56(0x1ea),'children':_0x2a0ffe['t'](_0x2c8f56(0x20b))})]})]})]})]})]})]}),i[_0x2c8f56(0x1e0)](f[_0x2c8f56(0x103)],{'onClick':_0x2aef7e,'disabled':!_0x4f38d8||_0xcb8d39,'className':_0x2c8f56(0x154),'children':_0xcb8d39?i[_0x2c8f56(0x146)](_0x2c8f56(0x105),{'className':_0x2c8f56(0x18a),'children':[i[_0x2c8f56(0x1e0)](_0x2c8f56(0x105),{'children':'⟲'}),_0x2a0ffe['t']('mcpConfig.saving')]}):i[_0x2c8f56(0x146)](_0x2c8f56(0x105),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i['jsx'](H,{}),_0x2a0ffe['t'](_0x2c8f56(0x124))]})}),i[_0x2c8f56(0x1e0)](_0x2c8f56(0x12e),{'className':_0x2c8f56(0x193),'children':i[_0x2c8f56(0x146)](_0x2c8f56(0x12e),{'className':_0x2c8f56(0xec),'children':[i[_0x2c8f56(0x1e0)](_0x2c8f56(0x105),{'className':_0x2c8f56(0x221),'children':'💡'}),i[_0x2c8f56(0x146)]('div',{'className':_0x2c8f56(0x16b),'children':[i[_0x2c8f56(0x1e0)](_0x2c8f56(0x12e),{'className':_0x2c8f56(0x208),'children':_0x2c8f56(0x200)}),i[_0x2c8f56(0x146)](_0x2c8f56(0x12e),{'children':['•',_0x2a0ffe['t'](_0x2c8f56(0x191))]}),i[_0x2c8f56(0x146)]('div',{'children':['•',_0x2a0ffe['t']('mcpConfig.note2')]})]})]})})]})})]});}const P=_0x540136(0x101),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x540136(0x22e)],xe=(_0x5e9887,_0x4855f0,_0x4ad033,_0x189482)=>{const _0x2a8493=_0x540136;for(var _0x11abb=_0x189482>0x1?void 0x0:_0x189482?me(_0x4855f0,_0x4ad033):_0x4855f0,_0x51572d=_0x5e9887[_0x2a8493(0x1a0)]-0x1,_0x3c1342;_0x51572d>=0x0;_0x51572d--)(_0x3c1342=_0x5e9887[_0x51572d])&&(_0x11abb=_0x3c1342(_0x11abb)||_0x11abb);return _0x11abb;},g=(_0x1acdff,_0x104b2e)=>(_0x4e665f,_0x55f195)=>_0x104b2e(_0x4e665f,_0x55f195,_0x1acdff);const O='mcp.apiKey',D=_0x540136(0x173);exports[_0x540136(0xd0)]=class extends u[_0x540136(0x16e)]{constructor(_0x14a385,_0x1f3dfa,_0x5496dd,_0x34851a,_0x182ee5,_0x853c89,_0x4271ba,_0x318164,_0x34ba43,_0x3011da){const _0x128be3=_0x540136;super(),I(this,_0x128be3(0x192),new M[(_0x128be3(0x1f1))](!0x1)),I(this,_0x128be3(0xf7),new M[(_0x128be3(0x1f1))]({})),I(this,_0x128be3(0x165),new M[(_0x128be3(0x1f1))]({})),I(this,_0x128be3(0x174),new M[(_0x128be3(0x1f1))]('')),I(this,_0x128be3(0x170),async _0x165399=>{const _0x53ec87=_0x128be3;var _0x33f16f,_0x3104e0;this[_0x53ec87(0x192)]['next'](!0x0);try{const _0x94528a=await this[_0x53ec87(0xd2)](_0x165399);if(!_0x94528a[_0x53ec87(0x1a8)]){this[_0x53ec87(0xcf)][_0x53ec87(0x128)]({'type':f['MessageType'][_0x53ec87(0x203)],'content':_0x94528a['errorMessage']||this['_localeService']['t']('mcpConfig.validation.invalidConfig')});return;}_0x165399[_0x53ec87(0xb8)]?await this[_0x53ec87(0xaf)][_0x53ec87(0x1d1)](O,_0x165399[_0x53ec87(0xb8)][_0x53ec87(0x113)]()):await this['_localStorageService'][_0x53ec87(0x15d)](O),this[_0x53ec87(0x174)][_0x53ec87(0x1e8)](((_0x33f16f=_0x165399[_0x53ec87(0xb8)])==null?void 0x0:_0x33f16f[_0x53ec87(0x113)]())||''),this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x53ec87(0xf8)+((_0x3104e0=_0x165399[_0x53ec87(0xb8)])==null?void 0x0:_0x3104e0[_0x53ec87(0x113)]())}),this[_0x53ec87(0xcf)]['show']({'type':f[_0x53ec87(0x139)][_0x53ec87(0xf4)],'content':this[_0x53ec87(0x189)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x35eadc=_0x53ec87;this[_0x35eadc(0x20e)][_0x35eadc(0x209)](D);},0x320);}catch(_0x13e735){this[_0x53ec87(0x177)][_0x53ec87(0x231)](_0x53ec87(0x119),_0x13e735),this[_0x53ec87(0xcf)][_0x53ec87(0x128)]({'type':f[_0x53ec87(0x139)]['Error'],'content':this[_0x53ec87(0x189)]['t']('mcpConfig.configError')});}finally{this[_0x53ec87(0x192)]['next'](!0x1);}}),(this[_0x128be3(0x1a7)]=_0x14a385,this[_0x128be3(0x1ff)]=_0x1f3dfa,this[_0x128be3(0x1c9)]=_0x5496dd,this[_0x128be3(0xaf)]=_0x34851a,this[_0x128be3(0x20e)]=_0x182ee5,this[_0x128be3(0xcf)]=_0x853c89,this[_0x128be3(0x1e6)]=_0x4271ba,this[_0x128be3(0x189)]=_0x318164,this['_logService']=_0x34ba43,this[_0x128be3(0x1e4)]=_0x3011da,this[_0x128be3(0xd3)](),this[_0x128be3(0x135)](),this[_0x128be3(0x190)]());}['showConfigPanel'](){const _0x7c54f7=_0x540136,_0x2c786c=this[_0x7c54f7(0x1c9)]['getConfig'](P);_0x2c786c!=null&&_0x2c786c[_0x7c54f7(0x12a)]&&this[_0x7c54f7(0x20e)]['open']({'id':D,'title':{'title':this[_0x7c54f7(0x189)]['t']('mcpConfig.title')},'children':{'label':_0x7c54f7(0x225)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x268c98=_0x7c54f7;this[_0x268c98(0x20e)]['close'](D);}});}[_0x540136(0xe5)](){const _0x44e7a6=_0x540136;return this[_0x44e7a6(0xf7)]['value'];}[_0x540136(0x190)](){const _0xdab72a=_0x540136;this[_0xdab72a(0x17c)](this[_0xdab72a(0x1e6)][_0xdab72a(0x1b9)](_0xdab72a(0x225),this[_0xdab72a(0x1a9)]()));}[_0x540136(0x1a9)](){const _0x13d879=_0x540136;return v[_0x13d879(0xc2)](()=>{const _0x53e706=_0x13d879;var _0x460d77,_0x51050f,_0x5028b5;return i[_0x53e706(0x1e0)](V,{'config':this[_0x53e706(0x165)][_0x53e706(0x13a)],'mcpCoreConfig':this[_0x53e706(0xf7)][_0x53e706(0x13a)],'currentApiKey$':this[_0x53e706(0x174)],'onSave':this[_0x53e706(0x170)],'loading':this['_loading$'][_0x53e706(0x13a)],'connectionStatus$':(_0x460d77=this[_0x53e706(0x1e4)])==null?void 0x0:_0x460d77[_0x53e706(0x1f9)],'connectionError$':(_0x51050f=this[_0x53e706(0x1e4)])==null?void 0x0:_0x51050f[_0x53e706(0x1d2)],'currentSessionId$':(_0x5028b5=this[_0x53e706(0x1e4)])==null?void 0x0:_0x5028b5[_0x53e706(0x234)]});},this[_0x13d879(0x1a7)]);}[_0x540136(0xd3)](){const _0x38391f=_0x540136;this[_0x38391f(0x17c)](this[_0x38391f(0x1c9)][_0x38391f(0xc0)](s[_0x38391f(0x1d8)])[_0x38391f(0x19c)](_0x13dbb6=>{const _0x37ecab=_0x38391f;this[_0x37ecab(0xf7)][_0x37ecab(0x1e8)](_0x13dbb6||{});}));const _0x5668c5=this[_0x38391f(0x1c9)]['getConfig'](s[_0x38391f(0x1d8)]);this[_0x38391f(0xf7)]['next'](_0x5668c5||{}),this[_0x38391f(0x17c)](this[_0x38391f(0x1c9)]['subscribeConfigValue$'](P)[_0x38391f(0x19c)](_0x4da3bb=>{const _0x134e1a=_0x38391f;this[_0x134e1a(0x165)]['next'](_0x4da3bb||{});}));const _0x3ed49a=this['_configService']['getConfig'](P);this[_0x38391f(0x165)]['next'](_0x3ed49a||{});}async['_loadStoredApiKey'](){const _0x52fd22=_0x540136,_0x317969=this[_0x52fd22(0x1c9)][_0x52fd22(0x1e2)](P);if(!(_0x317969!=null&&_0x317969[_0x52fd22(0x12a)]))return;const _0x4a8084=await this[_0x52fd22(0xaf)][_0x52fd22(0xda)](O);_0x4a8084&&(this[_0x52fd22(0x1e4)][_0x52fd22(0x159)]({'Authorization':_0x52fd22(0xf8)+_0x4a8084}),this['_apiKey$'][_0x52fd22(0x1e8)](_0x4a8084));}async[_0x540136(0xd2)](_0x5cb0ce){const _0xb3e9c8=_0x540136;if(!_0x5cb0ce[_0xb3e9c8(0xb8)]||_0x5cb0ce[_0xb3e9c8(0xb8)][_0xb3e9c8(0x113)]()[_0xb3e9c8(0x1a0)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0xb3e9c8(0x21a))};if(_0x5cb0ce[_0xb3e9c8(0xb8)][_0xb3e9c8(0x113)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0xb3e9c8(0xd6))};try{const _0x2d7e19=await this['_injector'][_0xb3e9c8(0xde)](s[_0xb3e9c8(0x194)])[_0xb3e9c8(0x213)](_0x5cb0ce['apiKey']['trim']());return _0x2d7e19['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2d7e19[_0xb3e9c8(0x231)]||this['_localeService']['t'](_0xb3e9c8(0x1ed))};}catch(_0x30eb4e){return console[_0xb3e9c8(0x11e)](_0xb3e9c8(0x1a2),_0x30eb4e),{'isValid':!0x0};}}},exports['MCPConfigUIController']=xe([g(0x0,u[_0x540136(0x235)](u['Injector'])),g(0x1,v['IUIPartsService']),g(0x2,u[_0x540136(0xcc)]),g(0x3,u['ILocalStorageService']),g(0x4,v[_0x540136(0x1e3)]),g(0x5,v[_0x540136(0x1c2)]),g(0x6,u[_0x540136(0x235)](v[_0x540136(0xd5)])),g(0x7,u[_0x540136(0x235)](u['LocaleService'])),g(0x8,u['ILogService']),g(0x9,u[_0x540136(0x235)](s[_0x540136(0x194)]))],exports['MCPConfigUIController']);const b={'id':_0x540136(0x1f2),'type':u[_0x540136(0x100)][_0x540136(0xdc)],'handler':async(_0x54e7d2,_0xc54a8f)=>(_0x54e7d2[_0x540136(0xde)](exports[_0x540136(0xd0)])['showConfigPanel'](),!0x0)};function Z(_0x297eb9,_0x4e3df8){const _0x28e6d0=_0x540136;switch(_0x297eb9){case s['MCPConnectionStatus']['DISCONNECTED']:return'mcpStatus.disconnected';case s[_0x28e6d0(0x219)][_0x28e6d0(0x1b8)]:return _0x28e6d0(0x13f);case s[_0x28e6d0(0x219)][_0x28e6d0(0x111)]:return _0x28e6d0(0x1f8);case s[_0x28e6d0(0x219)][_0x28e6d0(0xfe)]:switch(_0x4e3df8){case s[_0x28e6d0(0x1fc)][_0x28e6d0(0xfb)]:return _0x28e6d0(0x19d);case s[_0x28e6d0(0x1fc)]['SESSION_ID_OCCUPIED']:return'mcpStatus.sessionOccupied';case s['MCPConnectionError'][_0x28e6d0(0x187)]:return _0x28e6d0(0x153);case s['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x28e6d0(0x161);default:return'mcpStatus.failed';}case s[_0x28e6d0(0x219)][_0x28e6d0(0x178)]:return _0x28e6d0(0xb6);default:return _0x28e6d0(0x1e5);}}function Se(_0x1bcb1f,_0x2645ea,_0x3272fd,_0x1708aa=!0x0){const _0x2efa0e=_0x540136,_0x15da98=Z(_0x1bcb1f,_0x2645ea),_0x298187=_0x3272fd['t'](_0x15da98);return _0x1708aa?_0x1bcb1f===s[_0x2efa0e(0x219)]['DISCONNECTED']&&_0x2645ea===s[_0x2efa0e(0x1fc)]['UNAUTHORIZED']?_0x298187+_0x2efa0e(0x226)+_0x3272fd['t']('mcpStatus.clickToConfigure'):_0x1bcb1f===s[_0x2efa0e(0x219)][_0x2efa0e(0x111)]?''+_0x298187:_0x1bcb1f===s['MCPConnectionStatus'][_0x2efa0e(0x195)]||_0x1bcb1f===s[_0x2efa0e(0x219)]['FAILED']?_0x298187+_0x2efa0e(0x226)+_0x3272fd['t'](_0x2efa0e(0x212)):_0x298187:_0x298187;}function Pe(_0x7e7703){const _0x3ba80b=_0x540136;switch(_0x7e7703){case s['MCPConnectionStatus'][_0x3ba80b(0x111)]:return _0x3ba80b(0x152);case s['MCPConnectionStatus'][_0x3ba80b(0x1b8)]:case s['MCPConnectionStatus']['RETRYING']:return _0x3ba80b(0x1bf);case s[_0x3ba80b(0x219)][_0x3ba80b(0xfe)]:case s[_0x3ba80b(0x219)][_0x3ba80b(0x195)]:return _0x3ba80b(0x129);default:return'univer-text-gray-500';}}function W(_0x1e100a){const _0x2e74f3=_0x540136,{status$:_0x535469,error$:_0x7b0311,onConfigure:_0x119d0a,showClickable:_0x3c11d6=!0x0}=_0x1e100a,_0xa58d8d=v[_0x2e74f3(0x1d9)](_0x535469,s['MCPConnectionStatus']['DISCONNECTED']),_0xf73964=v[_0x2e74f3(0x1d9)](_0x7b0311,s['MCPConnectionError'][_0x2e74f3(0x120)]),_0x575ae6=v[_0x2e74f3(0x1f6)](u[_0x2e74f3(0xb5)]),_0x11c662=_0xa58d8d===s[_0x2e74f3(0x219)][_0x2e74f3(0x111)];_0xa58d8d===s[_0x2e74f3(0x219)][_0x2e74f3(0x1b8)]||s[_0x2e74f3(0x219)][_0x2e74f3(0x178)];const _0x5af6ec=_0x575ae6['t'](Z(_0xa58d8d,_0xf73964)),_0xd1b9b4=Se(_0xa58d8d,_0xf73964,_0x575ae6,_0x3c11d6),_0x297aab=Pe(_0xa58d8d),_0x1dae6f=_0x11c662?i['jsx'](q,{}):i[_0x2e74f3(0x1e0)](Y,{}),_0x110bff=d[_0x2e74f3(0xea)](()=>{_0x3c11d6&&_0x119d0a&&_0x119d0a();},[_0x3c11d6,_0x119d0a]);function _0x39e82e(){const _0x2794dd=_0x2e74f3;return i['jsxs'](_0x2794dd(0x12e),{'className':f[_0x2794dd(0x14c)]('univer-flex\x20univer-items-center',_0x3c11d6&&_0x119d0a&&_0x2794dd(0xb9)),'role':'button','onClick':_0x3c11d6&&_0x119d0a?_0x110bff:void 0x0,'children':[i[_0x2794dd(0x1e0)](_0x2794dd(0x12e),{'className':f[_0x2794dd(0x14c)]('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x297aab),'children':_0x1dae6f}),i[_0x2794dd(0x1e0)](_0x2794dd(0x12e),{'className':_0x2794dd(0x1e1),'children':_0x5af6ec})]});}return i[_0x2e74f3(0x1e0)](f[_0x2e74f3(0x197)],{'title':_0xd1b9b4,'placement':_0x2e74f3(0x184),'children':_0x39e82e()});}var Ie=Object[_0x540136(0x22e)],_e=(_0xce07ca,_0x93d6a2,_0xb856b,_0x124dd6)=>{const _0x4b96d0=_0x540136;for(var _0xcd740f=_0x124dd6>0x1?void 0x0:_0x124dd6?Ie(_0x93d6a2,_0xb856b):_0x93d6a2,_0x4a11fa=_0xce07ca[_0x4b96d0(0x1a0)]-0x1,_0x428581;_0x4a11fa>=0x0;_0x4a11fa--)(_0x428581=_0xce07ca[_0x4a11fa])&&(_0xcd740f=_0x428581(_0xcd740f)||_0xcd740f);return _0xcd740f;},N=(_0x4afec7,_0x2eb5ea)=>(_0x33e6b6,_0xe811f0)=>_0x2eb5ea(_0x33e6b6,_0xe811f0,_0x4afec7);exports['MCPConnectionUIController']=class extends u[_0x540136(0x16e)]{constructor(_0x7c3ec6,_0x1c70dd,_0x41611d,_0x1390df){const _0xd45596=_0x540136;super(),this[_0xd45596(0x1a7)]=_0x7c3ec6,this[_0xd45596(0x1ac)]=_0x1c70dd,this[_0xd45596(0x1ff)]=_0x41611d,this[_0xd45596(0x1c9)]=_0x1390df,this[_0xd45596(0xdb)](),this[_0xd45596(0x131)]();}['_initAutoConnect'](){const _0x3294be=_0x540136,_0x558c81=this[_0x3294be(0x1c9)]['getConfig'](P);_0x558c81!=null&&_0x558c81['showDeveloperTools']&&(this['_connectionController'][_0x3294be(0x106)]=!0x1);}['_initStatusComponent'](){const _0x18aa94=_0x540136,_0x185eaa=this[_0x18aa94(0x1c9)][_0x18aa94(0x1e2)](P);(_0x185eaa==null?void 0x0:_0x185eaa[_0x18aa94(0x1af)])!==!0x1&&this['disposeWithMe'](this[_0x18aa94(0x1ff)]['registerComponent'](v[_0x18aa94(0x1b4)][_0x18aa94(0x1d0)],()=>{const _0x5e93fe=_0x18aa94;var _0x253a49;return v[_0x5e93fe(0xc2)](ye({'status$':this[_0x5e93fe(0x1ac)][_0x5e93fe(0x1f9)],'error$':this[_0x5e93fe(0x1ac)][_0x5e93fe(0x1d2)],'onConfigure':()=>this[_0x5e93fe(0x157)](),'showClickable':(_0x253a49=_0x185eaa==null?void 0x0:_0x185eaa[_0x5e93fe(0x12a)])!=null?_0x253a49:!0x1}),this['_injector']);}));}['_handleConfigure'](){const _0xfe0e3e=_0x540136;this['_injector']['get'](exports[_0xfe0e3e(0xd0)])[_0xfe0e3e(0x186)]();}},exports['MCPConnectionUIController']=_e([N(0x0,u[_0x540136(0x235)](u['Injector'])),N(0x1,u[_0x540136(0x235)](s[_0x540136(0x194)])),N(0x2,v[_0x540136(0x17b)]),N(0x3,u['IConfigService'])],exports[_0x540136(0x13c)]);function ye(_0x559095){const {status$:_0x15ceaa,error$:_0x13308f,onConfigure:_0x1f0454,showClickable:_0x8ba76c}=_0x559095;return function(){const _0x2fcc5e=_0x50cc;return i[_0x2fcc5e(0x1e0)](W,{'status$':_0x15ceaa,'error$':_0x13308f,'onConfigure':_0x1f0454,'showClickable':_0x8ba76c});};}function Me(_0x497306){const _0x2bc3ee=_0x540136;return{'id':b['id'],'type':v['MenuItemType'][_0x2bc3ee(0x18c)],'icon':_0x2bc3ee(0x137),'title':_0x2bc3ee(0x127),'tooltip':'mcpConfig.title'};}function _0x25cb(){const _0x3f2c38=['show','univer-text-red-500','showDeveloperTools','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-text-sm\x20univer-text-gray-500','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','div','univerjs-icon\x20univerjs-icon-','0\x200\x2016\x2016','_initStatusComponent','MCP\x20连接失败','_menuManagerService','CheckMarkIcon','_loadStoredApiKey','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','MenuIcon','Connection\x20Failed','MessageType','value','_commandService','MCPConnectionUIController','MCP\x20Retrying...','API\x20key\x20with\x20Bearer\x20prefix.','mcpStatus.connecting','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','attrs','MCP:\x20网络错误','univer-text-xs\x20univer-text-gray-600','pre','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','jsxs','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','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','mcpConfig.configStep3','Retrying...','translate(.97)','clsx','mcpConfig.connectionStatus.disconnected','权限验证失败,请检查您的\x20API\x20密钥','会话ID','Module','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-text-green-500','mcpStatus.networkError','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','useState','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','_handleConfigure','0\x200\x2017\x2016','__setCustomHeaders','保存配置','https://console.univer.ai','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','removeItem','会话\x20ID\x20已被占用,请稍后再试','mcpConfig.apiApplyInfo.getStarted','mergeMenu','mcpStatus.maxRetriesExceeded','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20未授权','3827726jFvxNR','_config$','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','toString','2737010eDwIAu','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','1136031tvkmCp','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','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','WebSocketService','Disposable','Configuration\x20saved\x20successfully','_handleConfigSave','连接失败','displayName','mcp-config-dialog','_apiKey$','off','univer-shrink-0\x20univer-text-red-500','_logService','RETRYING','您的\x20API\x20密钥将在此浏览器中本地存储','ILocalStorageService','IUIPartsService','disposeWithMe','registerCommand','OpenMCPConfigPanelCommand','Enable\x20Authentication','text','Univer\x20AI\x20控制台','启用身份验证以获得安全连接','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','bottom','close-icon','showConfigPanel','NETWORK_ERROR','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','_localeService','univer-flex\x20univer-items-center\x20univer-gap-2','MCP\x20状态未知','BUTTON','Get\x20your\x20API\x20key\x20in\x20seconds','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','点击连接\x20MCP','_registerComponent','mcpConfig.note1','_loading$','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','MCPConnectionController','DISCONNECTED','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Tooltip','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','assign','univer_session_id:','createElement','subscribe','mcpStatus.unauthorized','xlink:href','配置保存失败','length','mcpConfig.connectionError.networkError','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.connectionStatus.retrying','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Authorization:','_injector','isValid','_createConfigPanelComponent','string','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','_connectionController','135117laHiNl','MCP:\x20Network\x20Error','showStatus','zhCN','path','Session\x20ID','MCPStatusDisplay','BuiltInUIPart','什么是\x20API\x20密钥?','SESSION_ID_OCCUPIED','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','CONNECTING','register','fill','Connected','几秒钟内获取您的\x20API\x20密钥','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','has','univer-text-yellow-500','forEach','CloseIcon','IMessageService','univer-space-y-5','400rhCBxt','MCP:\x20会话\x20ID\x20已被占用','none','将以下配置添加到您的\x20MCP\x20客户端设置中:','mask','_configService','button','currentColor','off-line-icon_clip0_910_343','https://mcp.univer.ai/mcp/?univer_session_id=','univer-min-w-0\x20univer-flex-1','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','HEADER_MENU','setItem','connectionError$','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univer-flex\x20univer-items-center\x20univer-gap-3','mcpConfig.connectionError.maxRetriesExceeded','1em','univer-space-y-4','MCP_PLUGIN_CONFIG_KEY','useObservable','配置保存成功','includes','mcpConfig.description','colorChannel1','defineProperty','请输入您的\x20API\x20密钥','jsx','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','getConfig','IDialogService','_mcpConnectionController','mcpStatus.unknown','_componentManager','univer-flex\x20univer-items-start\x20univer-gap-3','next','MCPUIMenuController','univer-text-xs\x20univer-text-gray-500','MAX_RETRIES_EXCEEDED','mcpConfig.apiKeyHint','mcpConfig.validation.invalidApiKey','MCP\x20Unknown\x20Status','forwardRef','4DZtLrV','BehaviorSubject','mcp-ui.command.openConfigPanel','mcpConfig.connectionStatus.failed','_initializeCommands','Save\x20Configuration','useDependency','HelpIcon','mcpStatus.connected','connectionStatus$','API\x20密钥','API\x20密钥无效,请检查密钥是否正确','MCPConnectionError','Configuration\x20Steps:','round','_uiPartsService','Configuration\x20Notes:','univer-flex\x20univer-items-start\x20univer-gap-2','evenodd','Error','url(#on-line-icon_clip0_910_349)','Univer\x20AI\x20Console','MCP\x20连接中...','MCP\x20配置','univer-font-medium','close','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.authorizationDescription','ICommandService','univer-size-4','_dialogService','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.connectionStatus.connected','univer-bg-gray-500','mcpStatus.clickToConnect','validateApiKey','Input','toStringTag','univer-flex-1','use','merge','MCPConnectionStatus','mcpConfig.validation.apiKeyRequired','current','univer.plus','url(#off-line-icon_clip0_910_343)','svg','连接中...','<SESSION_ID>','univer-shrink-0\x20univer-text-blue-500','idSuffix','ISocketService','未连接','MCPConfigPanel','\x20-\x20','最大重试次数','defIds','Invalid\x20configuration','univer-bg-red-500','MCP\x20Connection\x20Failed','map','http://www.w3.org/2000/svg','getOwnPropertyDescriptor','mcpConfig.connectionStatus.connecting','replace','error','url(#$1','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','sessionId$','Inject','_localStorageService','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','DependentOn','mcpConfig.apiApplyInfo.univerAiLabel','MCP_UI_PLUGIN','_config','LocaleService','mcpStatus.retrying','https://console.univer.plus','apiKey','\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','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','What\x20is\x20API\x20Key?','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','univer-size-2\x20univer-rounded-full','mcpConfig.apiKey','subscribeConfigValue$','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','connectInjector','335591ohSxHe','univer-space-y-3','white','children','univer.ai','MCP:\x20Session\x20ID\x20Occupied','tag','_initializeMenus','univer-space-y-2','IConfigService','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','MCP\x20Configuration','_messageService','MCPConfigUIController','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','_validateConfig','_initConfigSync','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','ComponentManager','mcpConfig.validation.apiKeyTooShort','random','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','mcpConfig.configStep1','getItem','_initAutoConnect','COMMAND','_blank','get','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','配置参数:','defs','off-line-icon','2WmKVaz','MCP\x20Connecting...','getCurrentConfig','pluginName','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','网络连接错误,请检查您的网络连接','label','useCallback','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-flex\x20univer-gap-3','univer-text-sm\x20univer-font-medium','Failed\x20to\x20save\x20configuration','on-line-icon_clip0_910_349','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','复制以下\x20JSON\x20配置','MCP\x20Client\x20Configuration','UniverMCPPlugin','Success','MCP\x20客户端配置','mcpConfig.apiKeyPlaceholder','_mcpCoreConfig$','Bearer\x20','mcpConfig.connectionInfo','MCP:\x20Unauthorized','UNAUTHORIZED','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','配置无效','FAILED','Configuration\x20Parameters:','CommandType','mcp-ui.config','univer-text-blue-600','Button','setConfig','span','enableAutoConnect','help-icon','4804590tYApsh','Injector','univer-text-gray-400','Connecting...','univer-flex\x20univer-flex-wrap\x20univer-gap-2','Max\x20Retries','MCP:\x20超出最大重试次数','UniverMCPUIPlugin','1669872mnlHRk','CONNECTED','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','trim','MCP\x20已断开','API\x20key\x20is\x20required','symbol','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','MCP\x20Disconnected','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','Click\x20to\x20configure\x20MCP','mcpServerUrl','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','Disconnected','warn','mcpConfig.sessionIdDescription','NONE','重连中...','<API_KEY>','clipPath','mcpConfig.save','超出最大重试次数,请稍后再试','配置步骤:','mcpConfig.title'];_0x25cb=function(){return _0x3f2c38;};return _0x25cb();}const Ne={[v['RibbonStartGroup']['OTHERS']]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x540136(0x22e)],je=(_0x44c269,_0x2e9fca,_0x46dbd0,_0x510609)=>{const _0x302417=_0x540136;for(var _0x271eb2=_0x510609>0x1?void 0x0:_0x510609?be(_0x2e9fca,_0x46dbd0):_0x2e9fca,_0x1f98b3=_0x44c269[_0x302417(0x1a0)]-0x1,_0x28fb6b;_0x1f98b3>=0x0;_0x1f98b3--)(_0x28fb6b=_0x44c269[_0x1f98b3])&&(_0x271eb2=_0x28fb6b(_0x271eb2)||_0x271eb2);return _0x271eb2;},z=(_0x510ff6,_0x3b833c)=>(_0x5e7e77,_0x2c799e)=>_0x3b833c(_0x5e7e77,_0x2c799e,_0x510ff6);exports['MCPUIMenuController']=class extends u[_0x540136(0x16e)]{constructor(_0xf16fb,_0x2bb6b3){const _0x541481=_0x540136;super(),this[_0x541481(0x13b)]=_0xf16fb,this[_0x541481(0x133)]=_0x2bb6b3,this[_0x541481(0x1f4)](),this['_initializeMenus']();}[_0x540136(0x1f4)](){const _0x26d50e=_0x540136;[b][_0x26d50e(0x1c0)](_0xb6dad9=>{const _0x4dd725=_0x26d50e;this['disposeWithMe'](this[_0x4dd725(0x13b)][_0x4dd725(0x17d)](_0xb6dad9));});}[_0x540136(0xca)](){const _0x2a29a1=_0x540136;this['_menuManagerService'][_0x2a29a1(0x160)](Ne);}},exports[_0x540136(0x1e9)]=je([z(0x0,u[_0x540136(0x20c)]),z(0x1,v['IMenuManagerService'])],exports[_0x540136(0x1e9)]);const Ee={'mcpStatus':{'disconnected':_0x540136(0x118),'connecting':_0x540136(0xe4),'connected':'MCP\x20Connected','failed':_0x540136(0x22b),'retrying':_0x540136(0x13d),'unknown':_0x540136(0x1ee),'unauthorized':_0x540136(0xfa),'sessionOccupied':_0x540136(0xc8),'networkError':_0x540136(0x1ae),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x540136(0x11a)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x540136(0xd1),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x540136(0xd4),'enableAuth':_0x540136(0x17f),'enableAuthHint':_0x540136(0x20f),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x540136(0xf2),'configInstructions':_0x540136(0x162),'configStepTitle':_0x540136(0x1fd),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x540136(0xb0),'sessionId':_0x540136(0x1b2),'sessionIdDescription':_0x540136(0xbd),'authorizationDescription':_0x540136(0x13e),'configParameters':_0x540136(0xff),'maxRetries':_0x540136(0x10d),'save':_0x540136(0x1f5),'saving':'Saving...','note1':_0x540136(0x1cf),'note2':_0x540136(0x196),'configSaved':_0x540136(0x16f),'configError':_0x540136(0xee),'apiApplyInfo':{'title':_0x540136(0xbb),'description':_0x540136(0x1a5),'univerAiLabel':_0x540136(0x205),'getStarted':_0x540136(0x18d)},'validation':{'apiKeyRequired':_0x540136(0x115),'apiKeyTooShort':_0x540136(0x198),'invalidConfig':_0x540136(0x229),'invalidApiKey':_0x540136(0xdf)},'connectionStatus':{'disconnected':_0x540136(0x11d),'connecting':_0x540136(0x10b),'connected':_0x540136(0x1bb),'failed':_0x540136(0x138),'retrying':_0x540136(0x14a)},'connectionError':{'unauthorized':_0x540136(0xd8),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x540136(0x1ab)}}},we={'mcpStatus':{'disconnected':_0x540136(0x114),'connecting':_0x540136(0x206),'connected':'MCP\x20已连接','failed':_0x540136(0x132),'retrying':'MCP\x20重连中...','unknown':_0x540136(0x18b),'unauthorized':_0x540136(0x163),'sessionOccupied':_0x540136(0x1c5),'networkError':_0x540136(0x142),'maxRetriesExceeded':_0x540136(0x10e),'clickToConnect':_0x540136(0x18f),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x540136(0x207),'description':_0x540136(0x151),'apiKey':_0x540136(0x1fa),'apiKeyPlaceholder':_0x540136(0x1df),'apiKeyHint':_0x540136(0x179),'enableAuth':'启用身份验证','enableAuthHint':_0x540136(0x182),'connectionInfo':_0x540136(0xf5),'mcpClientConfig':_0x540136(0xf5),'configInstructions':_0x540136(0x1c7),'configStepTitle':_0x540136(0x126),'configStep1':_0x540136(0xf1),'configStep2':_0x540136(0x12b),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x540136(0x14f),'sessionIdDescription':_0x540136(0xba),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x540136(0xe0),'maxRetries':_0x540136(0x227),'save':_0x540136(0x15a),'saving':'保存中...','note1':'配置更改将立即生效','note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x540136(0x1da),'configError':_0x540136(0x19f),'apiApplyInfo':{'title':_0x540136(0x1b5),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x540136(0x181),'getStarted':_0x540136(0x1bc)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x540136(0xfd),'invalidApiKey':_0x540136(0x1fb)},'connectionStatus':{'disconnected':_0x540136(0x224),'connecting':_0x540136(0x21f),'connected':'已连接','failed':_0x540136(0x171),'retrying':_0x540136(0x121)},'connectionError':{'unauthorized':_0x540136(0x14e),'sessionOccupied':_0x540136(0x15e),'networkError':_0x540136(0xe8),'maxRetriesExceeded':_0x540136(0x125)}}};var Ae=Object['defineProperty'],Oe=Object[_0x540136(0x22e)],De=(_0x1b147e,_0x31a389,_0x3e396a)=>_0x31a389 in _0x1b147e?Ae(_0x1b147e,_0x31a389,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e396a}):_0x1b147e[_0x31a389]=_0x3e396a,Ue=(_0x1b58bf,_0x23ca00,_0x3e2514,_0x1ca0c9)=>{const _0x27581a=_0x540136;for(var _0x28e162=_0x1ca0c9>0x1?void 0x0:_0x1ca0c9?Oe(_0x23ca00,_0x3e2514):_0x23ca00,_0x3a584b=_0x1b58bf[_0x27581a(0x1a0)]-0x1,_0x414dd1;_0x3a584b>=0x0;_0x3a584b--)(_0x414dd1=_0x1b58bf[_0x3a584b])&&(_0x28e162=_0x414dd1(_0x28e162)||_0x28e162);return _0x28e162;},y=(_0x20b2d8,_0x489cd2)=>(_0x2968c8,_0x3807a3)=>_0x489cd2(_0x2968c8,_0x3807a3,_0x20b2d8),$e=(_0x40f9ce,_0x9070b7,_0x1ac656)=>De(_0x40f9ce,_0x9070b7+'',_0x1ac656);exports[_0x540136(0x10f)]=class extends u['Plugin']{constructor(_0x5765bf=L,_0x365afd,_0x11974a,_0x7e3502,_0x7e5a0,_0x49287e){const _0x94ffed=_0x540136;super(),this[_0x94ffed(0xb4)]=_0x5765bf,this[_0x94ffed(0x1a7)]=_0x365afd,this[_0x94ffed(0x1c9)]=_0x11974a,this[_0x94ffed(0x1ff)]=_0x7e3502,this[_0x94ffed(0xaf)]=_0x7e5a0,this[_0x94ffed(0x189)]=_0x49287e;const {..._0x4af0ea}=u[_0x94ffed(0x218)]({},L,this[_0x94ffed(0xb4)]);this[_0x94ffed(0x1c9)][_0x94ffed(0x104)](P,_0x4af0ea);}async['onStarting'](){const _0x4b54de=_0x540136,_0x351016=[[exports[_0x4b54de(0x13c)]],[exports['MCPConfigUIController']],[exports['MCPUIMenuController']]];this['_injector'][_0x4b54de(0x1be)](A[_0x4b54de(0x223)])||_0x351016['push']([A[_0x4b54de(0x223)],{'useClass':A[_0x4b54de(0x16d)]}]),_0x351016[_0x4b54de(0x1c0)](_0x3d08ed=>this[_0x4b54de(0x1a7)]['add'](_0x3d08ed)),this[_0x4b54de(0x1a7)][_0x4b54de(0xde)](exports[_0x4b54de(0x13c)]),this[_0x4b54de(0x1a7)][_0x4b54de(0xde)](exports[_0x4b54de(0xd0)]),this[_0x4b54de(0x1a7)][_0x4b54de(0xde)](exports['MCPUIMenuController']);}},$e(exports[_0x540136(0x10f)],_0x540136(0xe6),_0x540136(0xb3)),exports[_0x540136(0x10f)]=Ue([u[_0x540136(0xb1)](s[_0x540136(0xf3)]),y(0x1,u[_0x540136(0x235)](u[_0x540136(0x109)])),y(0x2,u[_0x540136(0xcc)]),y(0x3,v[_0x540136(0x17b)]),y(0x4,u[_0x540136(0x17a)]),y(0x5,u['Inject'](u['LocaleService']))],exports[_0x540136(0x10f)]),exports[_0x540136(0x225)]=V,exports[_0x540136(0x1b3)]=W,exports[_0x540136(0x17e)]=b,exports['enUS']=Ee,exports[_0x540136(0x1b0)]=we;
|
|
1
|
+
'use strict';const _0x2cd3c3=_0x11b4;(function(_0x49d14d,_0x3edcfe){const _0x3c15d7=_0x11b4,_0x2913f0=_0x49d14d();while(!![]){try{const _0x13b43c=-parseInt(_0x3c15d7(0x142))/0x1+parseInt(_0x3c15d7(0x260))/0x2+-parseInt(_0x3c15d7(0x272))/0x3*(parseInt(_0x3c15d7(0x232))/0x4)+-parseInt(_0x3c15d7(0x226))/0x5+-parseInt(_0x3c15d7(0x207))/0x6*(parseInt(_0x3c15d7(0x17c))/0x7)+-parseInt(_0x3c15d7(0x298))/0x8+parseInt(_0x3c15d7(0x16f))/0x9;if(_0x13b43c===_0x3edcfe)break;else _0x2913f0['push'](_0x2913f0['shift']());}catch(_0x3682d2){_0x2913f0['push'](_0x2913f0['shift']());}}}(_0xd8bb,0x231f2));function _0x11b4(_0x2f25db,_0x249954){_0x2f25db=_0x2f25db-0x136;const _0xd8bb51=_0xd8bb();let _0x11b426=_0xd8bb51[_0x2f25db];return _0x11b426;}var ae=Object[_0x2cd3c3(0x19a)],le=(_0x484323,_0x34e44b,_0x54e74a)=>_0x34e44b in _0x484323?ae(_0x484323,_0x34e44b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54e74a}):_0x484323[_0x34e44b]=_0x54e74a,I=(_0xf17d67,_0x4390bd,_0x500ada)=>le(_0xf17d67,typeof _0x4390bd!='symbol'?_0x4390bd+'':_0x4390bd,_0x500ada);Object[_0x2cd3c3(0x19a)](exports,Symbol[_0x2cd3c3(0x194)],{'value':'Module'});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:_0x5483a9,..._0x20385a}){const _0x465a4a=_0x2cd3c3,{icon:_0xebf4be,id:_0x520bf1,className:_0x23060a,extend:_0x24ba3a,..._0x83783c}=_0x20385a,_0x24c549=('univerjs-icon\x20univerjs-icon-'+_0x520bf1+'\x20'+(_0x23060a||''))[_0x465a4a(0x189)](),_0xd74eca=d[_0x465a4a(0x1ed)]('_'+de());return G(_0xebf4be,''+_0x520bf1,{'defIds':_0xebf4be[_0x465a4a(0x168)],'idSuffix':_0xd74eca[_0x465a4a(0x1af)]},{'ref':_0x5483a9,'className':_0x24c549,..._0x83783c},_0x24ba3a);}function G(_0x572068,_0xa604cf,_0x5ab42b,_0x516f6b,_0x404164){const _0x358076=_0x2cd3c3;return d[_0x358076(0x178)](_0x572068['tag'],{'key':_0xa604cf,...ue(_0x572068,_0x5ab42b,_0x404164),..._0x516f6b},(ve(_0x572068,_0x5ab42b)[_0x358076(0x21b)]||[])['map']((_0x4ef671,_0x2b8d73)=>G(_0x4ef671,_0xa604cf+'-'+_0x572068[_0x358076(0x1d7)]+'-'+_0x2b8d73,_0x5ab42b,void 0x0,_0x404164)));}function ue(_0x562325,_0x6157f2,_0x3f108d){const _0x1be1e8=_0x2cd3c3,_0x35fe5a={..._0x562325[_0x1be1e8(0x23f)]};_0x3f108d!=null&&_0x3f108d[_0x1be1e8(0x2ab)]&&_0x35fe5a[_0x1be1e8(0x29d)]===_0x1be1e8(0x2ab)&&(_0x35fe5a[_0x1be1e8(0x29d)]=_0x3f108d[_0x1be1e8(0x2ab)]),_0x562325[_0x1be1e8(0x1d7)]===_0x1be1e8(0x265)&&_0x35fe5a['id']&&(_0x35fe5a['id']=_0x35fe5a['id']+_0x6157f2[_0x1be1e8(0x1e6)]),Object['entries'](_0x35fe5a)[_0x1be1e8(0x1fb)](([_0x430a0b,_0x256846])=>{const _0x28bc6a=_0x1be1e8;_0x430a0b===_0x28bc6a(0x265)&&typeof _0x256846==_0x28bc6a(0x1d2)&&(_0x35fe5a[_0x430a0b]=_0x256846[_0x28bc6a(0x16b)](/url\(#(.*)\)/,_0x28bc6a(0x17f)+_0x6157f2[_0x28bc6a(0x1e6)]+')'));});const {defIds:_0x54a888}=_0x6157f2;return!_0x54a888||_0x54a888[_0x1be1e8(0x2a0)]===0x0||(_0x562325[_0x1be1e8(0x1d7)]===_0x1be1e8(0x22e)&&_0x35fe5a[_0x1be1e8(0x22b)]&&(_0x35fe5a[_0x1be1e8(0x22b)]=_0x35fe5a[_0x1be1e8(0x22b)]+_0x6157f2[_0x1be1e8(0x1e6)]),Object[_0x1be1e8(0x13b)](_0x35fe5a)[_0x1be1e8(0x1fb)](([_0x5c32a4,_0x3729e7])=>{const _0x11a31b=_0x1be1e8;typeof _0x3729e7=='string'&&(_0x35fe5a[_0x5c32a4]=_0x3729e7[_0x11a31b(0x16b)](/url\(#(.*)\)/,_0x11a31b(0x17f)+_0x6157f2['idSuffix']+')'));})),_0x35fe5a;}function ve(_0xb08930,_0x38d208){const _0x353d7f=_0x2cd3c3;var _0x47204a;const {defIds:_0x508692}=_0x38d208;return!_0x508692||_0x508692[_0x353d7f(0x2a0)]===0x0?_0xb08930:_0xb08930[_0x353d7f(0x1d7)]==='defs'&&((_0x47204a=_0xb08930[_0x353d7f(0x21b)])!=null&&_0x47204a[_0x353d7f(0x2a0)])?{..._0xb08930,'children':_0xb08930['children'][_0x353d7f(0x268)](_0x51ffe5=>typeof _0x51ffe5[_0x353d7f(0x23f)]['id']==_0x353d7f(0x1d2)&&_0x508692&&_0x508692['includes'](_0x51ffe5[_0x353d7f(0x23f)]['id'])?{..._0x51ffe5,'attrs':{..._0x51ffe5['attrs'],'id':_0x51ffe5[_0x353d7f(0x23f)]['id']+_0x38d208[_0x353d7f(0x1e6)]}}:_0x51ffe5)}:_0xb08930;}function de(){const _0x32fbb7=_0x2cd3c3;return Math[_0x32fbb7(0x202)]()[_0x32fbb7(0x169)](0x24)['substring'](0x2,0x8);}_[_0x2cd3c3(0x1b6)]=_0x2cd3c3(0x220);const Ce={'tag':'svg','attrs':{'xmlns':_0x2cd3c3(0x1ba),'fill':_0x2cd3c3(0x288),'viewBox':'0\x200\x2016\x2016','width':_0x2cd3c3(0x1e1),'height':'1em'},'children':[{'tag':_0x2cd3c3(0x1e4),'attrs':{'fill':'currentColor','d':_0x2cd3c3(0x20c),'fillRule':_0x2cd3c3(0x1b4),'clipRule':_0x2cd3c3(0x1b4)}}]},H=d[_0x2cd3c3(0x289)](function(_0x4c57da,_0x40e230){const _0x54e774=_0x2cd3c3;return d['createElement'](_,Object['assign']({},_0x4c57da,{'id':_0x54e774(0x200),'ref':_0x40e230,'icon':Ce}));});H[_0x2cd3c3(0x1b6)]=_0x2cd3c3(0x228);const ge={'tag':_0x2cd3c3(0x256),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2cd3c3(0x288),'viewBox':'0\x200\x2016\x2016','width':_0x2cd3c3(0x1e1),'height':_0x2cd3c3(0x1e1)},'children':[{'tag':_0x2cd3c3(0x1e4),'attrs':{'fill':_0x2cd3c3(0x1ad),'d':_0x2cd3c3(0x1cb)}}]},B=d[_0x2cd3c3(0x289)](function(_0x4e9699,_0x137df3){const _0x10bb6b=_0x2cd3c3;return d[_0x10bb6b(0x178)](_,Object[_0x10bb6b(0x1c4)]({},_0x4e9699,{'id':'close-icon','ref':_0x137df3,'icon':ge}));});B[_0x2cd3c3(0x1b6)]=_0x2cd3c3(0x15b);const fe={'tag':_0x2cd3c3(0x256),'attrs':{'xmlns':_0x2cd3c3(0x1ba),'fill':'none','viewBox':_0x2cd3c3(0x2b6),'width':_0x2cd3c3(0x1e1),'height':_0x2cd3c3(0x1e1)},'children':[{'tag':'path','attrs':{'fill':_0x2cd3c3(0x1ad),'d':_0x2cd3c3(0x1fd)}},{'tag':_0x2cd3c3(0x1e4),'attrs':{'fill':_0x2cd3c3(0x1ad),'d':_0x2cd3c3(0x211)}},{'tag':_0x2cd3c3(0x1e4),'attrs':{'fill':'currentColor','d':_0x2cd3c3(0x166),'fillRule':_0x2cd3c3(0x1b4),'clipRule':_0x2cd3c3(0x1b4)}}]},F=d['forwardRef'](function(_0x12daf9,_0x520b0c){const _0x7f94de=_0x2cd3c3;return d[_0x7f94de(0x178)](_,Object[_0x7f94de(0x1c4)]({},_0x12daf9,{'id':_0x7f94de(0x217),'ref':_0x520b0c,'icon':fe}));});F[_0x2cd3c3(0x1b6)]=_0x2cd3c3(0x230);const pe={'tag':_0x2cd3c3(0x256),'attrs':{'xmlns':_0x2cd3c3(0x1ba),'fill':_0x2cd3c3(0x288),'viewBox':_0x2cd3c3(0x2b6),'width':_0x2cd3c3(0x1e1),'height':_0x2cd3c3(0x1e1)},'children':[{'tag':'g','attrs':{'clipPath':_0x2cd3c3(0x19d)},'children':[{'tag':_0x2cd3c3(0x1e4),'attrs':{'stroke':_0x2cd3c3(0x1ad),'d':_0x2cd3c3(0x1c6),'strokeLinecap':'round','strokeLinejoin':_0x2cd3c3(0x1ca),'strokeWidth':1.2}}]},{'tag':_0x2cd3c3(0x270),'attrs':{},'children':[{'tag':_0x2cd3c3(0x222),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x2cd3c3(0x20a)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Y=d[_0x2cd3c3(0x289)](function(_0x4b44e5,_0x2d41fd){const _0x53e1d7=_0x2cd3c3;return d[_0x53e1d7(0x178)](_,Object[_0x53e1d7(0x1c4)]({},_0x4b44e5,{'id':_0x53e1d7(0x164),'ref':_0x2d41fd,'icon':pe}));});Y[_0x2cd3c3(0x1b6)]='OffLineIcon';const he={'tag':_0x2cd3c3(0x256),'attrs':{'xmlns':_0x2cd3c3(0x1ba),'fill':'none','viewBox':_0x2cd3c3(0x28b),'width':_0x2cd3c3(0x1e1),'height':_0x2cd3c3(0x1e1)},'children':[{'tag':'g','attrs':{'clipPath':_0x2cd3c3(0x167)},'children':[{'tag':'path','attrs':{'stroke':_0x2cd3c3(0x1ad),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x2cd3c3(0x1ca),'strokeLinejoin':_0x2cd3c3(0x1ca),'strokeWidth':1.2}}]},{'tag':_0x2cd3c3(0x270),'attrs':{},'children':[{'tag':_0x2cd3c3(0x222),'attrs':{'id':_0x2cd3c3(0x269)},'children':[{'tag':_0x2cd3c3(0x1e4),'attrs':{'fill':_0x2cd3c3(0x275),'d':_0x2cd3c3(0x20a),'transform':'translate(.97)'}}]}]}],'defIds':[_0x2cd3c3(0x269)]},q=d['forwardRef'](function(_0x3be43c,_0x194757){const _0x355786=_0x2cd3c3;return d[_0x355786(0x178)](_,Object[_0x355786(0x1c4)]({},_0x3be43c,{'id':'on-line-icon','ref':_0x194757,'icon':he}));});q[_0x2cd3c3(0x1b6)]=_0x2cd3c3(0x201);function V(_0x25508d){const _0x39d9f3=_0x2cd3c3;var _0x170254,_0x25d4c8;const {mcpCoreConfig:_0x28d7f3,onSave:_0x431ab7,loading:_0x4e43da=!0x1,config:_0x5ca707,connectionStatus$:_0x566446,connectionError$:_0x3d92f9,currentApiKey$:_0x232fcb,currentSessionId$:_0x2f4331}=_0x25508d,_0x52fb18=v[_0x39d9f3(0x25c)](u[_0x39d9f3(0x27b)]),_0x5322ab=v[_0x39d9f3(0x15a)](_0x566446,s[_0x39d9f3(0x23c)]['DISCONNECTED']),_0x4d6a81=v[_0x39d9f3(0x15a)](_0x3d92f9,s[_0x39d9f3(0x1bc)]['NONE']),_0xe5d9e5=v[_0x39d9f3(0x15a)](_0x2f4331,''),_0x4baa59=v['useObservable'](_0x232fcb,''),[_0x4e4e09,_0x81b5f4]=d[_0x39d9f3(0x24f)](_0x4baa59||''),_0x353964=!0x0,_0x43f0b1=_0x5ca707[_0x39d9f3(0x1ce)]&&_0x28d7f3['mcpServerUrl']&&(_0x28d7f3['mcpServerUrl'][_0x39d9f3(0x1ae)](_0x39d9f3(0x1be))||_0x28d7f3['mcpServerUrl'][_0x39d9f3(0x1ae)](_0x39d9f3(0x176))),_0x4e36e8=(_0x170254=_0x28d7f3[_0x39d9f3(0x1d3)])==null?void 0x0:_0x170254[_0x39d9f3(0x1ae)](_0x39d9f3(0x1be)),_0x822c9c=(_0x25d4c8=_0x28d7f3[_0x39d9f3(0x1d3)])==null?void 0x0:_0x25d4c8['includes'](_0x39d9f3(0x176)),_0x3aa588=_0x4e36e8?_0x39d9f3(0x198):_0x39d9f3(0x26b),_0x3eadf0=_0x5ca707[_0x39d9f3(0x1ce)]&&(_0x4e36e8||_0x822c9c),[_0x4c5a5b,_0x1fce2f]=d[_0x39d9f3(0x24f)](!_0x4e4e09[_0x39d9f3(0x189)]()),_0x3a8625=(_0xb610d2,_0x3d1f9e)=>{const _0x1a3f21=_0x39d9f3;if(_0x3d1f9e===s['MCPConnectionError']['UNAUTHORIZED'])return _0x1a3f21(0x1b2);switch(_0xb610d2){case s['MCPConnectionStatus']['CONNECTED']:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case s['MCPConnectionStatus']['CONNECTING']:case s[_0x1a3f21(0x23c)][_0x1a3f21(0x2b2)]:return _0x1a3f21(0x158);case s[_0x1a3f21(0x23c)][_0x1a3f21(0x172)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x1a3f21(0x157);}},_0x468bce=(_0x51f45d,_0x53869f)=>{const _0x1da023=_0x39d9f3;if(_0x53869f===s['MCPConnectionError'][_0x1da023(0x153)])return _0x1da023(0x252);switch(_0x51f45d){case s[_0x1da023(0x23c)][_0x1da023(0x191)]:return _0x1da023(0x2ac);case s['MCPConnectionStatus'][_0x1da023(0x1f6)]:case s['MCPConnectionStatus'][_0x1da023(0x2b2)]:return _0x1da023(0x19c);case s[_0x1da023(0x23c)][_0x1da023(0x172)]:return _0x1da023(0x252);default:return _0x1da023(0x1bb);}},_0x5eb582=_0x138a08=>{const _0x1d1660=_0x39d9f3;switch(_0x138a08){case s[_0x1d1660(0x23c)][_0x1d1660(0x191)]:return _0x52fb18['t'](_0x1d1660(0x1a0));case s['MCPConnectionStatus'][_0x1d1660(0x1f6)]:return _0x52fb18['t'](_0x1d1660(0x1c9));case s[_0x1d1660(0x23c)][_0x1d1660(0x172)]:return _0x52fb18['t'](_0x1d1660(0x1a3));case s['MCPConnectionStatus']['RETRYING']:return _0x52fb18['t'](_0x1d1660(0x291));default:return _0x52fb18['t'](_0x1d1660(0x26c));}},_0x189170=_0x25b7f7=>{const _0x53cf04=_0x39d9f3;switch(_0x25b7f7){case s[_0x53cf04(0x1bc)][_0x53cf04(0x153)]:return _0x52fb18['t'](_0x53cf04(0x183));case s[_0x53cf04(0x1bc)][_0x53cf04(0x137)]:return _0x52fb18['t'](_0x53cf04(0x225));case s['MCPConnectionError'][_0x53cf04(0x282)]:return _0x52fb18['t'](_0x53cf04(0x199));case s['MCPConnectionError'][_0x53cf04(0x244)]:return _0x52fb18['t'](_0x53cf04(0x218));default:return'';}},_0x2bb30f=d[_0x39d9f3(0x13a)](()=>{const _0x14ef63={..._0x28d7f3,'apiKey':_0x4e4e09['trim'](),'enableAuth':_0x353964};_0x431ab7(_0x14ef63);},[_0x28d7f3,_0x4e4e09,_0x353964,_0x431ab7]),_0xc529c1=_0x4e4e09[_0x39d9f3(0x189)]()['length']>0x0;return i[_0x39d9f3(0x2a2)](_0x39d9f3(0x136),{'className':_0x39d9f3(0x139),'children':[i['jsx'](_0x39d9f3(0x136),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':i[_0x39d9f3(0x2a2)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[i[_0x39d9f3(0x13d)](_0x39d9f3(0x136),{'className':_0x39d9f3(0x2aa),'children':i[_0x39d9f3(0x13d)](_0x39d9f3(0x1f2),{'className':_0x39d9f3(0x26e),'children':'⚙'})}),i['jsx'](_0x39d9f3(0x136),{'children':i[_0x39d9f3(0x13d)]('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x52fb18['t'](_0x39d9f3(0x2a7))})})]})}),i[_0x39d9f3(0x2a2)](_0x39d9f3(0x136),{'className':_0x39d9f3(0x263),'children':[i[_0x39d9f3(0x13d)](_0x39d9f3(0x136),{'className':f[_0x39d9f3(0x180)](_0x39d9f3(0x262),_0x3a8625(_0x5322ab,_0x4d6a81)),'children':i[_0x39d9f3(0x2a2)](_0x39d9f3(0x136),{'className':_0x39d9f3(0x2b0),'children':[i[_0x39d9f3(0x13d)](_0x39d9f3(0x136),{'className':f[_0x39d9f3(0x180)]('univer-size-2\x20univer-rounded-full',_0x468bce(_0x5322ab,_0x4d6a81))}),i[_0x39d9f3(0x13d)](_0x39d9f3(0x1f2),{'className':_0x39d9f3(0x28d),'children':_0x5eb582(_0x5322ab)})]})}),_0x4d6a81!==s[_0x39d9f3(0x1bc)][_0x39d9f3(0x26d)]&&(_0x5322ab===s[_0x39d9f3(0x23c)]['FAILED']||_0x4d6a81===s[_0x39d9f3(0x1bc)][_0x39d9f3(0x153)])&&i['jsx'](_0x39d9f3(0x136),{'className':_0x39d9f3(0x1a2),'children':i['jsxs']('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[i[_0x39d9f3(0x13d)](_0x39d9f3(0x1f2),{'className':_0x39d9f3(0x25d),'children':'⚠️'}),i[_0x39d9f3(0x13d)]('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x189170(_0x4d6a81)})]})})]}),i[_0x39d9f3(0x13d)](_0x39d9f3(0x136),{'className':_0x39d9f3(0x27a),'children':i[_0x39d9f3(0x2a2)](_0x39d9f3(0x136),{'className':_0x39d9f3(0x14f),'children':[i['jsxs'](_0x39d9f3(0x136),{'className':_0x39d9f3(0x20b),'children':[i['jsxs'](_0x39d9f3(0x171),{'className':_0x39d9f3(0x1ef),'children':[i['jsx'](_0x39d9f3(0x1f2),{'children':'🔑'}),'\x20',_0x52fb18['t'](_0x39d9f3(0x15e)),i[_0x39d9f3(0x13d)](_0x39d9f3(0x1f2),{'className':_0x39d9f3(0x14c),'children':'*'}),_0x43f0b1&&i[_0x39d9f3(0x13d)]('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x52fb18['t'](_0x39d9f3(0x206)),'role':_0x39d9f3(0x16c),'onClick':()=>_0x1fce2f(!0x0),'children':i['jsx'](F,{})})]}),i[_0x39d9f3(0x13d)](f['Input'],{'type':_0x39d9f3(0x257),'placeholder':_0x52fb18['t'](_0x39d9f3(0x219)),'value':_0x4e4e09,'disabled':_0x4e43da,'autoComplete':_0x39d9f3(0x1dc),'onChange':_0x81b5f4}),i[_0x39d9f3(0x13d)]('p',{'className':_0x39d9f3(0x2a9),'children':_0x52fb18['t']('mcpConfig.apiKeyHint')})]}),_0x43f0b1&&_0x4c5a5b&&i[_0x39d9f3(0x2a2)](_0x39d9f3(0x136),{'className':_0x39d9f3(0x264),'children':[i[_0x39d9f3(0x13d)]('a',{'className':_0x39d9f3(0x1e0),'role':'button','onClick':()=>_0x1fce2f(!0x1),'children':i[_0x39d9f3(0x13d)](B,{'className':'univer-size-4'})}),i[_0x39d9f3(0x2a2)](_0x39d9f3(0x136),{'className':_0x39d9f3(0x1de),'children':[i[_0x39d9f3(0x13d)](_0x39d9f3(0x136),{'className':_0x39d9f3(0x1db),'children':i[_0x39d9f3(0x13d)](_0x39d9f3(0x1f2),{'className':_0x39d9f3(0x286),'children':'🚀'})}),i[_0x39d9f3(0x2a2)](_0x39d9f3(0x136),{'className':_0x39d9f3(0x23e),'children':[i[_0x39d9f3(0x13d)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x52fb18['t'](_0x39d9f3(0x206))}),i['jsx']('p',{'className':_0x39d9f3(0x24d),'children':_0x52fb18['t'](_0x39d9f3(0x17e))}),i[_0x39d9f3(0x13d)](_0x39d9f3(0x136),{'className':_0x39d9f3(0x278),'children':_0x3eadf0&&i[_0x39d9f3(0x2a2)]('a',{'className':_0x39d9f3(0x23a),'href':_0x3aa588,'target':_0x39d9f3(0x253),'rel':_0x39d9f3(0x19b),'children':[i[_0x39d9f3(0x13d)]('span',{'children':'🤖'}),_0x52fb18['t'](_0x39d9f3(0x1f5)),i[_0x39d9f3(0x13d)](_0x39d9f3(0x1f2),{'className':'univer-text-gray-400','children':'↗'})]})}),i[_0x39d9f3(0x2a2)]('div',{'className':_0x39d9f3(0x1b7),'children':['✨','\x20',_0x52fb18['t'](_0x39d9f3(0x297))]})]})]})]}),_0x5ca707[_0x39d9f3(0x1ce)]&&i[_0x39d9f3(0x2a2)](_0x39d9f3(0x136),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[i[_0x39d9f3(0x2a2)]('h4',{'className':_0x39d9f3(0x1b0),'children':[i[_0x39d9f3(0x13d)](_0x39d9f3(0x1f2),{'children':'🔗'}),'\x20',_0x52fb18['t'](_0x39d9f3(0x175))]}),i[_0x39d9f3(0x2a2)](_0x39d9f3(0x136),{'className':_0x39d9f3(0x188),'children':[i[_0x39d9f3(0x2a2)]('div',{'className':_0x39d9f3(0x284),'children':[i['jsx']('p',{'className':_0x39d9f3(0x293),'children':_0x52fb18['t'](_0x39d9f3(0x2af))}),i[_0x39d9f3(0x2a2)](_0x39d9f3(0x136),{'className':_0x39d9f3(0x20b),'children':[i[_0x39d9f3(0x13d)]('div',{'className':_0x39d9f3(0x16a),'children':_0x52fb18['t']('mcpConfig.configStepTitle')}),i[_0x39d9f3(0x2a2)](_0x39d9f3(0x136),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[i[_0x39d9f3(0x2a2)](_0x39d9f3(0x136),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x39d9f3(0x13d)](_0x39d9f3(0x1f2),{'className':_0x39d9f3(0x241),'children':'1'}),_0x52fb18['t']('mcpConfig.configStep1')]}),i[_0x39d9f3(0x2a2)](_0x39d9f3(0x136),{'className':_0x39d9f3(0x2b0),'children':[i[_0x39d9f3(0x13d)]('span',{'className':_0x39d9f3(0x241),'children':'2'}),_0x52fb18['t'](_0x39d9f3(0x1cf))]}),i[_0x39d9f3(0x2a2)](_0x39d9f3(0x136),{'className':_0x39d9f3(0x2b0),'children':[i['jsx'](_0x39d9f3(0x1f2),{'className':_0x39d9f3(0x241),'children':'3'}),_0x52fb18['t']('mcpConfig.configStep3')]})]})]})]}),i[_0x39d9f3(0x2a2)](_0x39d9f3(0x136),{'className':'univer-space-y-2','children':[i[_0x39d9f3(0x13d)](_0x39d9f3(0x136),{'className':_0x39d9f3(0x16a),'children':'MCP\x20Configuration'}),i[_0x39d9f3(0x13d)]('div',{'className':_0x39d9f3(0x208),'children':i['jsx'](_0x39d9f3(0x248),{'className':_0x39d9f3(0x27d),'children':JSON[_0x39d9f3(0x29a)]({'mcpServers':{'univer':{'url':_0x39d9f3(0x24c)+(_0xe5d9e5||_0x39d9f3(0x13e)),'type':'http','headers':{'Authorization':_0x39d9f3(0x15f)+(_0x4e4e09||_0x39d9f3(0x1f8))}}}},null,0x2)})})]}),i[_0x39d9f3(0x2a2)]('div',{'className':_0x39d9f3(0x284),'children':[i['jsx'](_0x39d9f3(0x136),{'className':_0x39d9f3(0x16a),'children':_0x52fb18['t'](_0x39d9f3(0x1bf))}),i[_0x39d9f3(0x2a2)](_0x39d9f3(0x136),{'className':'univer-space-y-2','children':[i[_0x39d9f3(0x2a2)](_0x39d9f3(0x136),{'className':_0x39d9f3(0x1ab),'children':[i[_0x39d9f3(0x13d)](_0x39d9f3(0x136),{'className':_0x39d9f3(0x2b7)}),i['jsxs']('div',{'className':_0x39d9f3(0x279),'children':[i[_0x39d9f3(0x13d)](_0x39d9f3(0x136),{'className':_0x39d9f3(0x216),'children':'univer_session_id:'}),i['jsx'](_0x39d9f3(0x136),{'className':_0x39d9f3(0x2a9),'children':_0x52fb18['t'](_0x39d9f3(0x20d))})]})]}),i[_0x39d9f3(0x2a2)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i[_0x39d9f3(0x13d)](_0x39d9f3(0x136),{'className':_0x39d9f3(0x2b7)}),i[_0x39d9f3(0x2a2)](_0x39d9f3(0x136),{'className':_0x39d9f3(0x279),'children':[i[_0x39d9f3(0x13d)](_0x39d9f3(0x136),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x39d9f3(0x29b)}),i[_0x39d9f3(0x13d)](_0x39d9f3(0x136),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x52fb18['t'](_0x39d9f3(0x1b9))})]})]})]})]})]})]}),i[_0x39d9f3(0x13d)](f[_0x39d9f3(0x1c1)],{'onClick':_0x2bb30f,'disabled':!_0xc529c1||_0x4e43da,'className':_0x39d9f3(0x281),'children':_0x4e43da?i[_0x39d9f3(0x2a2)](_0x39d9f3(0x1f2),{'className':_0x39d9f3(0x2b0),'children':[i[_0x39d9f3(0x13d)](_0x39d9f3(0x1f2),{'children':'⟲'}),_0x52fb18['t'](_0x39d9f3(0x1e5))]}):i[_0x39d9f3(0x2a2)]('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x39d9f3(0x13d)](H,{}),_0x52fb18['t'](_0x39d9f3(0x238))]})}),i[_0x39d9f3(0x13d)](_0x39d9f3(0x136),{'className':_0x39d9f3(0x223),'children':i['jsxs'](_0x39d9f3(0x136),{'className':'univer-flex\x20univer-gap-3','children':[i[_0x39d9f3(0x13d)](_0x39d9f3(0x1f2),{'className':_0x39d9f3(0x231),'children':'💡'}),i[_0x39d9f3(0x2a2)](_0x39d9f3(0x136),{'className':_0x39d9f3(0x1b8),'children':[i[_0x39d9f3(0x13d)](_0x39d9f3(0x136),{'className':_0x39d9f3(0x150),'children':'Configuration\x20Notes:'}),i[_0x39d9f3(0x2a2)](_0x39d9f3(0x136),{'children':['•',_0x52fb18['t']('mcpConfig.note1')]}),i[_0x39d9f3(0x2a2)](_0x39d9f3(0x136),{'children':['•',_0x52fb18['t']('mcpConfig.note2')]})]})]})})]})})]});}function _0xd8bb(){const _0x33cc92=['Plugin','什么是\x20API\x20密钥?','mcpConfig.validation.invalidConfig','https://mcp.univer.ai/mcp/?univer_session_id=','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','IConfigService','useState','MenuItemType','DISCONNECTED','univer-bg-red-500','_blank','权限验证失败,请检查您的\x20API\x20密钥','mergeMenu','svg','text','DependentOn','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','_registerComponent','mcpConfig.configSaved','useDependency','univer-shrink-0\x20univer-text-red-500','保存中...','您的\x20API\x20密钥安全存储在本地存储中','155038vcStLA','_initStatusComponent','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-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','mask','会话ID','将配置添加到您的\x20MCP\x20客户端设置文件中','map','on-line-icon_clip0_910_349','Disposable','https://console.univer.ai','mcpConfig.connectionStatus.disconnected','NONE','univer-text-white','UniverMCPPlugin','defs','show','399qNWzRI','API\x20key\x20with\x20Bearer\x20prefix.','_localStorageService','white','_initConfigSync','apiKey','univer-flex\x20univer-flex-wrap\x20univer-gap-2','univer-min-w-0\x20univer-flex-1','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','LocaleService','MenuIcon','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','\x20-\x20','pluginName','mcp.apiKey','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','NETWORK_ERROR','mcpStatus.networkError','univer-space-y-3','connectionStatus$','univer-text-blue-600','univer-text-gray-500','none','forwardRef','push','0\x200\x2017\x2016','MCP\x20Client\x20Configuration','univer-text-sm\x20univer-font-medium','API\x20密钥长度至少需要\x2010\x20位','univer-text-green-500','MCPConfigPanel','mcpConfig.connectionStatus.retrying','CommandType','univer-text-xs\x20univer-text-gray-600','MessageType','MCP\x20Disconnected','disposeWithMe','mcpConfig.apiApplyInfo.getStarted','2211600JbXyfe','register','stringify','Authorization:','配置\x20MCP\x20使用\x20AI\x20操作电子表格','fill','OTHERS','validateApiKey','length','mcpStatus.unknown','jsxs','Error','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','配置步骤:','MCP\x20连接失败','mcpConfig.description','subscribe','univer-text-xs\x20univer-text-gray-500','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','colorChannel1','univer-bg-green-500','_injector','IDialogService','mcpConfig.configInstructions','univer-flex\x20univer-items-center\x20univer-gap-2','_mcpConnectionController','RETRYING','Injector','_validateConfig','mcpStatus.disconnected','0\x200\x2016\x2016','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Univer\x20AI\x20控制台','Click\x20to\x20configure\x20MCP','MCPUIMenuController','div','SESSION_ID_OCCUPIED','isValid','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','useCallback','entries','最大重试次数','jsx','<SESSION_ID>','mcpStatus.connected','showConfigPanel','IUIPartsService','107579MSmAhq','_initializeMenus','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','MCP\x20状态未知','HEADER_MENU','subscribeConfigValue$','_componentManager','showStatus','univer-text-red-500','MCP:\x20超出最大重试次数','未连接','univer-space-y-5','univer-font-medium','_config$','MCP:\x20未授权','UNAUTHORIZED','MCP:\x20Network\x20Error','OpenMCPConfigPanelCommand','Disconnected','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','Get\x20your\x20API\x20key\x20in\x20seconds','useObservable','CloseIcon','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcpConfig.apiKey','Bearer\x20','mcpConfig.title','warn','close','_initializeCommands','off-line-icon','_messageService','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','url(#on-line-icon_clip0_910_349)','defIds','toString','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','replace','button','_mcpCoreConfig$','RibbonStartGroup','6851583iXkzkG','_handleConfigure','label','FAILED','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Connected','mcpConfig.connectionInfo','univer.ai','_loading$','createElement','MCP:\x20Max\x20Retries\x20Exceeded','MCPConnectionController','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','7lutijD','setItem','mcpConfig.apiApplyInfo.description','url(#$1','clsx','Failed\x20to\x20save\x20configuration','mcpConfig.configError','mcpConfig.connectionError.unauthorized','您的\x20API\x20密钥将在此浏览器中本地存储','UniverMCPUIPlugin','MCPConnectionUIController','MCP\x20连接中...','univer-space-y-4','trim','几秒钟内获取您的\x20API\x20密钥','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','What\x20is\x20API\x20Key?','_loadStoredApiKey','配置保存失败','MCP:\x20Session\x20ID\x20Occupied','Click\x20to\x20connect\x20MCP','CONNECTED','_uiPartsService','_menuManagerService','toStringTag','配置参数:','_localeService','_apiKey$','https://console.univer.plus','mcpConfig.connectionError.networkError','defineProperty','noopener\x20noreferrer','univer-bg-blue-500','url(#off-line-icon_clip0_910_343)','get','registerComponent','mcpConfig.connectionStatus.connected','ILogService','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mcpConfig.connectionStatus.failed','mcp-ui.command.openConfigPanel','mcp-ui.config','Connecting...','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mcpStatus.connecting','Configuration\x20Steps:','_handleConfigSave','univer-flex\x20univer-items-start\x20univer-gap-3','next','currentColor','includes','current','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_configService','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpConfig.validation.apiKeyTooShort','evenodd','_connectionController','displayName','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','mcpConfig.authorizationDescription','http://www.w3.org/2000/svg','univer-bg-gray-500','MCPConnectionError','MCP_PLUGIN_CONFIG_KEY','univer.plus','mcpConfig.configParameters','zhCN','Button','setConfig','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','assign','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','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','API\x20密钥无效,请检查密钥是否正确','mcpStatus.sessionOccupied','mcpConfig.connectionStatus.connecting','round','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','registerCommand','MCP\x20Connection\x20Failed','showDeveloperTools','mcpConfig.configStep2','MCP\x20配置','getCurrentConfig','string','mcpServerUrl','Inject','超出最大重试次数,请稍后再试','配置更改将立即生效','tag','点击连接\x20MCP','Connected','getConfig','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','off','网络连接错误,请检查您的网络连接','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','ICommandService','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','1em','mcpStatus.clickToConnect','Enable\x20authentication\x20for\x20secure\x20connections','path','mcpConfig.saving','idSuffix','removeItem','value','_createConfigPanelComponent','_config','mcp-config-dialog','Tooltip','useRef','mcpConfig.validation.invalidApiKey','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','将以下配置添加到您的\x20MCP\x20客户端设置中:','MCP\x20客户端配置','span','API\x20Key','MCPStatusDisplay','mcpConfig.apiApplyInfo.univerAiLabel','CONNECTING','重启您的\x20MCP\x20客户端以使配置生效','<API_KEY>','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','error','forEach','Max\x20Retries','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','Configuration\x20Parameters:','MCP\x20Retrying...','check-mark-icon','OnLineIcon','random','WebSocketService','ILocalStorageService','mcpStatus.maxRetriesExceeded','mcpConfig.apiApplyInfo.title','608658tneNUl','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','onStarting','M0\x200H16V16H0z','univer-space-y-2','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','mcpConfig.sessionIdDescription','MCP\x20Unknown\x20Status','has','Enable\x20Authentication','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','重连中...','mcpStatus.unauthorized','Copy\x20the\x20JSON\x20configuration\x20below','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','help-icon','mcpConfig.connectionError.maxRetriesExceeded','mcpConfig.apiKeyPlaceholder','ISocketService','children','MCP\x20Configuration','Success','connectInjector','getOwnPropertyDescriptor','UniverIcon','enableAutoConnect','clipPath','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','Session\x20ID','mcpConfig.connectionError.sessionOccupied','180885posCCA','mcpStatus.clickToConfigure','CheckMarkIcon','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','API\x20密钥不能为空','xlink:href','errorMessage','_initAutoConnect','use','_dialogService','HelpIcon','univer-shrink-0\x20univer-text-blue-500','5212wIUPSx','MCPConfigUIController','mcpStatus.retrying','BehaviorSubject','__setCustomHeaders','启用身份验证以获得安全连接','mcpConfig.save','MCP:\x20网络错误','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','sessionId$','MCPConnectionStatus','会话\x20ID\x20已被占用,请稍后再试','univer-flex-1','attrs','Configuration\x20saved\x20successfully','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','_logService','MCP_UI_PLUGIN','MAX_RETRIES_EXCEEDED','MCP:\x20会话\x20ID\x20已被占用','已连接','MCP\x20已连接','pre'];_0xd8bb=function(){return _0x33cc92;};return _0xd8bb();}const P=_0x2cd3c3(0x1a5),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x2cd3c3(0x21f)],xe=(_0x3b0a55,_0xf73b6e,_0x1d3f09,_0x45ad23)=>{const _0x38ad20=_0x2cd3c3;for(var _0x487d8e=_0x45ad23>0x1?void 0x0:_0x45ad23?me(_0xf73b6e,_0x1d3f09):_0xf73b6e,_0x2759c9=_0x3b0a55[_0x38ad20(0x2a0)]-0x1,_0x10f9ef;_0x2759c9>=0x0;_0x2759c9--)(_0x10f9ef=_0x3b0a55[_0x2759c9])&&(_0x487d8e=_0x10f9ef(_0x487d8e)||_0x487d8e);return _0x487d8e;},g=(_0xa36b5d,_0x2c36ea)=>(_0x2447c4,_0xcd4a67)=>_0x2c36ea(_0x2447c4,_0xcd4a67,_0xa36b5d);const O=_0x2cd3c3(0x280),D=_0x2cd3c3(0x1eb);exports[_0x2cd3c3(0x233)]=class extends u['Disposable']{constructor(_0x5e285d,_0x35561f,_0x14938f,_0x567c57,_0x246eb6,_0x25e187,_0x3412b8,_0x38a5b0,_0x5d1c8a,_0x127437){const _0x51ee95=_0x2cd3c3;super(),I(this,_0x51ee95(0x177),new M[(_0x51ee95(0x235))](!0x1)),I(this,_0x51ee95(0x16d),new M[(_0x51ee95(0x235))]({})),I(this,'_config$',new M[(_0x51ee95(0x235))]({})),I(this,'_apiKey$',new M['BehaviorSubject']('')),I(this,_0x51ee95(0x1aa),async _0x314508=>{const _0x8a1b68=_0x51ee95;var _0x219650,_0x1ca96e;this[_0x8a1b68(0x177)][_0x8a1b68(0x1ac)](!0x0);try{const _0x46ac68=await this['_validateConfig'](_0x314508);if(!_0x46ac68['isValid']){this['_messageService']['show']({'type':f['MessageType'][_0x8a1b68(0x2a3)],'content':_0x46ac68[_0x8a1b68(0x22c)]||this[_0x8a1b68(0x196)]['t'](_0x8a1b68(0x24b))});return;}_0x314508['apiKey']?await this['_localStorageService'][_0x8a1b68(0x17d)](O,_0x314508['apiKey']['trim']()):await this[_0x8a1b68(0x274)][_0x8a1b68(0x1e7)](O),this[_0x8a1b68(0x197)][_0x8a1b68(0x1ac)](((_0x219650=_0x314508['apiKey'])==null?void 0x0:_0x219650[_0x8a1b68(0x189)]())||''),this[_0x8a1b68(0x2b1)][_0x8a1b68(0x236)]({'Authorization':_0x8a1b68(0x15f)+((_0x1ca96e=_0x314508[_0x8a1b68(0x277)])==null?void 0x0:_0x1ca96e[_0x8a1b68(0x189)]())}),this[_0x8a1b68(0x165)][_0x8a1b68(0x271)]({'type':f[_0x8a1b68(0x294)][_0x8a1b68(0x21d)],'content':this[_0x8a1b68(0x196)]['t'](_0x8a1b68(0x25b))}),setTimeout(()=>{const _0x4502f2=_0x8a1b68;this[_0x4502f2(0x22f)]['close'](D);},0x320);}catch(_0x2d6e18){this[_0x8a1b68(0x242)][_0x8a1b68(0x1fa)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x2d6e18),this[_0x8a1b68(0x165)][_0x8a1b68(0x271)]({'type':f[_0x8a1b68(0x294)][_0x8a1b68(0x2a3)],'content':this[_0x8a1b68(0x196)]['t'](_0x8a1b68(0x182))});}finally{this[_0x8a1b68(0x177)][_0x8a1b68(0x1ac)](!0x1);}}),(this[_0x51ee95(0x2ad)]=_0x5e285d,this[_0x51ee95(0x192)]=_0x35561f,this[_0x51ee95(0x1b1)]=_0x14938f,this[_0x51ee95(0x274)]=_0x567c57,this['_dialogService']=_0x246eb6,this[_0x51ee95(0x165)]=_0x25e187,this['_componentManager']=_0x3412b8,this[_0x51ee95(0x196)]=_0x38a5b0,this[_0x51ee95(0x242)]=_0x5d1c8a,this[_0x51ee95(0x2b1)]=_0x127437,this[_0x51ee95(0x276)](),this['_loadStoredApiKey'](),this[_0x51ee95(0x25a)]());}[_0x2cd3c3(0x140)](){const _0x3ba892=_0x2cd3c3,_0x411272=this[_0x3ba892(0x1b1)][_0x3ba892(0x1da)](P);_0x411272!=null&&_0x411272[_0x3ba892(0x1ce)]&&this['_dialogService']['open']({'id':D,'title':{'title':this[_0x3ba892(0x196)]['t'](_0x3ba892(0x160))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x4b0e04=_0x3ba892;this[_0x4b0e04(0x22f)][_0x4b0e04(0x162)](D);}});}[_0x2cd3c3(0x1d1)](){const _0x4f0f78=_0x2cd3c3;return this[_0x4f0f78(0x16d)][_0x4f0f78(0x1e8)];}[_0x2cd3c3(0x25a)](){const _0x3309f0=_0x2cd3c3;this['disposeWithMe'](this[_0x3309f0(0x14a)][_0x3309f0(0x299)](_0x3309f0(0x290),this[_0x3309f0(0x1e9)]()));}['_createConfigPanelComponent'](){const _0x538ae3=_0x2cd3c3;return v[_0x538ae3(0x21e)](()=>{const _0x58ace4=_0x538ae3;var _0x4f772c,_0x4071d0,_0x49fc9b;return i[_0x58ace4(0x13d)](V,{'config':this[_0x58ace4(0x151)][_0x58ace4(0x1e8)],'mcpCoreConfig':this[_0x58ace4(0x16d)]['value'],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x58ace4(0x1aa)],'loading':this['_loading$'][_0x58ace4(0x1e8)],'connectionStatus$':(_0x4f772c=this['_mcpConnectionController'])==null?void 0x0:_0x4f772c[_0x58ace4(0x285)],'connectionError$':(_0x4071d0=this[_0x58ace4(0x2b1)])==null?void 0x0:_0x4071d0['connectionError$'],'currentSessionId$':(_0x49fc9b=this[_0x58ace4(0x2b1)])==null?void 0x0:_0x49fc9b[_0x58ace4(0x23b)]});},this[_0x538ae3(0x2ad)]);}[_0x2cd3c3(0x276)](){const _0xa0805=_0x2cd3c3;this[_0xa0805(0x296)](this[_0xa0805(0x1b1)][_0xa0805(0x149)](s['MCP_PLUGIN_CONFIG_KEY'])['subscribe'](_0x247ae6=>{const _0x1f25d6=_0xa0805;this['_mcpCoreConfig$'][_0x1f25d6(0x1ac)](_0x247ae6||{});}));const _0x368855=this[_0xa0805(0x1b1)][_0xa0805(0x1da)](s[_0xa0805(0x1bd)]);this['_mcpCoreConfig$']['next'](_0x368855||{}),this[_0xa0805(0x296)](this[_0xa0805(0x1b1)][_0xa0805(0x149)](P)[_0xa0805(0x2a8)](_0x4e7354=>{const _0x45094a=_0xa0805;this['_config$'][_0x45094a(0x1ac)](_0x4e7354||{});}));const _0x29d111=this[_0xa0805(0x1b1)][_0xa0805(0x1da)](P);this[_0xa0805(0x151)][_0xa0805(0x1ac)](_0x29d111||{});}async[_0x2cd3c3(0x18d)](){const _0x1513db=_0x2cd3c3,_0x1e02da=this[_0x1513db(0x1b1)][_0x1513db(0x1da)](P);if(!(_0x1e02da!=null&&_0x1e02da[_0x1513db(0x1ce)]))return;const _0x5a22db=await this[_0x1513db(0x274)]['getItem'](O);_0x5a22db&&(this[_0x1513db(0x2b1)]['__setCustomHeaders']({'Authorization':'Bearer\x20'+_0x5a22db}),this[_0x1513db(0x197)][_0x1513db(0x1ac)](_0x5a22db));}async[_0x2cd3c3(0x2b4)](_0x2824b6){const _0x47ebb5=_0x2cd3c3;if(!_0x2824b6[_0x47ebb5(0x277)]||_0x2824b6['apiKey'][_0x47ebb5(0x189)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x47ebb5(0x196)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x2824b6[_0x47ebb5(0x277)][_0x47ebb5(0x189)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x47ebb5(0x196)]['t'](_0x47ebb5(0x1b3))};try{const _0x1f6ca8=await this[_0x47ebb5(0x2ad)][_0x47ebb5(0x19e)](s['MCPConnectionController'])[_0x47ebb5(0x29f)](_0x2824b6[_0x47ebb5(0x277)]['trim']());return _0x1f6ca8[_0x47ebb5(0x138)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x1f6ca8[_0x47ebb5(0x1fa)]||this[_0x47ebb5(0x196)]['t'](_0x47ebb5(0x1ee))};}catch(_0x543d2f){return console[_0x47ebb5(0x161)](_0x47ebb5(0x229),_0x543d2f),{'isValid':!0x0};}}},exports[_0x2cd3c3(0x233)]=xe([g(0x0,u[_0x2cd3c3(0x1d4)](u[_0x2cd3c3(0x2b3)])),g(0x1,v[_0x2cd3c3(0x141)]),g(0x2,u[_0x2cd3c3(0x24e)]),g(0x3,u['ILocalStorageService']),g(0x4,v[_0x2cd3c3(0x2ae)]),g(0x5,v['IMessageService']),g(0x6,u[_0x2cd3c3(0x1d4)](v['ComponentManager'])),g(0x7,u[_0x2cd3c3(0x1d4)](u[_0x2cd3c3(0x27b)])),g(0x8,u[_0x2cd3c3(0x1a1)]),g(0x9,u['Inject'](s['MCPConnectionController']))],exports[_0x2cd3c3(0x233)]);const b={'id':_0x2cd3c3(0x1a4),'type':u[_0x2cd3c3(0x292)]['COMMAND'],'handler':async(_0x2b698a,_0x298df0)=>(_0x2b698a['get'](exports[_0x2cd3c3(0x233)])[_0x2cd3c3(0x140)](),!0x0)};function Z(_0x5b1a8a,_0x17bb3c){const _0xbe78f9=_0x2cd3c3;switch(_0x5b1a8a){case s['MCPConnectionStatus'][_0xbe78f9(0x251)]:return _0xbe78f9(0x2b5);case s['MCPConnectionStatus']['CONNECTING']:return _0xbe78f9(0x1a8);case s[_0xbe78f9(0x23c)]['CONNECTED']:return _0xbe78f9(0x13f);case s[_0xbe78f9(0x23c)]['FAILED']:switch(_0x17bb3c){case s[_0xbe78f9(0x1bc)]['UNAUTHORIZED']:return _0xbe78f9(0x213);case s[_0xbe78f9(0x1bc)][_0xbe78f9(0x137)]:return _0xbe78f9(0x1c8);case s[_0xbe78f9(0x1bc)][_0xbe78f9(0x282)]:return _0xbe78f9(0x283);case s[_0xbe78f9(0x1bc)][_0xbe78f9(0x244)]:return _0xbe78f9(0x205);default:return'mcpStatus.failed';}case s[_0xbe78f9(0x23c)][_0xbe78f9(0x2b2)]:return _0xbe78f9(0x234);default:return _0xbe78f9(0x2a1);}}function Se(_0x5ead7c,_0x1f58e1,_0x41a353,_0x2e7972=!0x0){const _0x106543=_0x2cd3c3,_0xbc603=Z(_0x5ead7c,_0x1f58e1),_0x578dd5=_0x41a353['t'](_0xbc603);return _0x2e7972?_0x5ead7c===s[_0x106543(0x23c)][_0x106543(0x251)]&&_0x1f58e1===s[_0x106543(0x1bc)][_0x106543(0x153)]?_0x578dd5+_0x106543(0x27e)+_0x41a353['t'](_0x106543(0x227)):_0x5ead7c===s['MCPConnectionStatus'][_0x106543(0x191)]?''+_0x578dd5:_0x5ead7c===s[_0x106543(0x23c)][_0x106543(0x251)]||_0x5ead7c===s[_0x106543(0x23c)][_0x106543(0x172)]?_0x578dd5+_0x106543(0x27e)+_0x41a353['t'](_0x106543(0x1e2)):_0x578dd5:_0x578dd5;}function Pe(_0x1fce97){const _0x572df3=_0x2cd3c3;switch(_0x1fce97){case s[_0x572df3(0x23c)]['CONNECTED']:return _0x572df3(0x28f);case s[_0x572df3(0x23c)][_0x572df3(0x1f6)]:case s['MCPConnectionStatus'][_0x572df3(0x2b2)]:return'univer-text-yellow-500';case s[_0x572df3(0x23c)]['FAILED']:case s[_0x572df3(0x23c)][_0x572df3(0x251)]:return'univer-text-red-500';default:return _0x572df3(0x287);}}function W(_0x31b200){const _0x260153=_0x2cd3c3,{status$:_0x556483,error$:_0x5e4531,onConfigure:_0x89e4a4,showClickable:_0x3160b0=!0x0}=_0x31b200,_0x3878ab=v[_0x260153(0x15a)](_0x556483,s['MCPConnectionStatus'][_0x260153(0x251)]),_0x6be767=v['useObservable'](_0x5e4531,s[_0x260153(0x1bc)][_0x260153(0x26d)]),_0x2dad3d=v['useDependency'](u[_0x260153(0x27b)]),_0x5a7caf=_0x3878ab===s[_0x260153(0x23c)][_0x260153(0x191)];_0x3878ab===s[_0x260153(0x23c)][_0x260153(0x1f6)]||s['MCPConnectionStatus'][_0x260153(0x2b2)];const _0x5e5a90=_0x2dad3d['t'](Z(_0x3878ab,_0x6be767)),_0x58d936=Se(_0x3878ab,_0x6be767,_0x2dad3d,_0x3160b0),_0x44c313=Pe(_0x3878ab),_0x2dab07=_0x5a7caf?i['jsx'](q,{}):i[_0x260153(0x13d)](Y,{}),_0x5c8519=d[_0x260153(0x13a)](()=>{_0x3160b0&&_0x89e4a4&&_0x89e4a4();},[_0x3160b0,_0x89e4a4]);function _0x531ee8(){const _0x311da4=_0x260153;return i[_0x311da4(0x2a2)](_0x311da4(0x136),{'className':f[_0x311da4(0x180)]('univer-flex\x20univer-items-center',_0x3160b0&&_0x89e4a4&&_0x311da4(0x146)),'role':_0x311da4(0x16c),'onClick':_0x3160b0&&_0x89e4a4?_0x5c8519:void 0x0,'children':[i['jsx'](_0x311da4(0x136),{'className':f[_0x311da4(0x180)](_0x311da4(0x215),_0x44c313),'children':_0x2dab07}),i['jsx'](_0x311da4(0x136),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x5e5a90})]});}return i[_0x260153(0x13d)](f[_0x260153(0x1ec)],{'title':_0x58d936,'placement':'bottom','children':_0x531ee8()});}var Ie=Object[_0x2cd3c3(0x21f)],_e=(_0x139c80,_0x21edb1,_0x546114,_0x196402)=>{const _0x4f633f=_0x2cd3c3;for(var _0x88a3a=_0x196402>0x1?void 0x0:_0x196402?Ie(_0x21edb1,_0x546114):_0x21edb1,_0x540955=_0x139c80[_0x4f633f(0x2a0)]-0x1,_0xc58370;_0x540955>=0x0;_0x540955--)(_0xc58370=_0x139c80[_0x540955])&&(_0x88a3a=_0xc58370(_0x88a3a)||_0x88a3a);return _0x88a3a;},N=(_0x199bf1,_0x40d100)=>(_0x16783f,_0x5ab20f)=>_0x40d100(_0x16783f,_0x5ab20f,_0x199bf1);exports[_0x2cd3c3(0x186)]=class extends u['Disposable']{constructor(_0x23e5de,_0x33c0f0,_0x3ddda9,_0x1e02bb){const _0x23c7a4=_0x2cd3c3;super(),this[_0x23c7a4(0x2ad)]=_0x23e5de,this[_0x23c7a4(0x1b5)]=_0x33c0f0,this[_0x23c7a4(0x192)]=_0x3ddda9,this[_0x23c7a4(0x1b1)]=_0x1e02bb,this['_initAutoConnect'](),this[_0x23c7a4(0x261)]();}[_0x2cd3c3(0x22d)](){const _0x4ae45d=_0x2cd3c3,_0x1b0896=this[_0x4ae45d(0x1b1)][_0x4ae45d(0x1da)](P);_0x1b0896!=null&&_0x1b0896[_0x4ae45d(0x1ce)]&&(this[_0x4ae45d(0x1b5)][_0x4ae45d(0x221)]=!0x1);}[_0x2cd3c3(0x261)](){const _0x3ebc2e=_0x2cd3c3,_0x575df8=this['_configService']['getConfig'](P);(_0x575df8==null?void 0x0:_0x575df8[_0x3ebc2e(0x14b)])!==!0x1&&this['disposeWithMe'](this[_0x3ebc2e(0x192)][_0x3ebc2e(0x19f)](v['BuiltInUIPart'][_0x3ebc2e(0x148)],()=>{const _0x5bc237=_0x3ebc2e;var _0x49995d;return v[_0x5bc237(0x21e)](ye({'status$':this[_0x5bc237(0x1b5)]['connectionStatus$'],'error$':this['_connectionController']['connectionError$'],'onConfigure':()=>this[_0x5bc237(0x170)](),'showClickable':(_0x49995d=_0x575df8==null?void 0x0:_0x575df8['showDeveloperTools'])!=null?_0x49995d:!0x1}),this['_injector']);}));}['_handleConfigure'](){const _0x33355c=_0x2cd3c3;this[_0x33355c(0x2ad)][_0x33355c(0x19e)](exports[_0x33355c(0x233)])['showConfigPanel']();}},exports[_0x2cd3c3(0x186)]=_e([N(0x0,u['Inject'](u[_0x2cd3c3(0x2b3)])),N(0x1,u['Inject'](s[_0x2cd3c3(0x17a)])),N(0x2,v[_0x2cd3c3(0x141)]),N(0x3,u[_0x2cd3c3(0x24e)])],exports[_0x2cd3c3(0x186)]);function ye(_0x51b75e){const {status$:_0x3691cd,error$:_0x34934b,onConfigure:_0x426e98,showClickable:_0x229749}=_0x51b75e;return function(){const _0x5e3614=_0x11b4;return i[_0x5e3614(0x13d)](W,{'status$':_0x3691cd,'error$':_0x34934b,'onConfigure':_0x426e98,'showClickable':_0x229749});};}function Me(_0x548f46){const _0x3098b3=_0x2cd3c3;return{'id':b['id'],'type':v[_0x3098b3(0x250)]['BUTTON'],'icon':_0x3098b3(0x27c),'title':_0x3098b3(0x160),'tooltip':'mcpConfig.title'};}const Ne={[v[_0x2cd3c3(0x16e)][_0x2cd3c3(0x29e)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object['getOwnPropertyDescriptor'],je=(_0x1386f1,_0x97ab3,_0xbb8a17,_0x31cf54)=>{const _0x3e6a97=_0x2cd3c3;for(var _0x528d14=_0x31cf54>0x1?void 0x0:_0x31cf54?be(_0x97ab3,_0xbb8a17):_0x97ab3,_0x4c01cb=_0x1386f1[_0x3e6a97(0x2a0)]-0x1,_0x3f2194;_0x4c01cb>=0x0;_0x4c01cb--)(_0x3f2194=_0x1386f1[_0x4c01cb])&&(_0x528d14=_0x3f2194(_0x528d14)||_0x528d14);return _0x528d14;},z=(_0x3aecc5,_0x1e8d31)=>(_0x56a1f5,_0x6914ec)=>_0x1e8d31(_0x56a1f5,_0x6914ec,_0x3aecc5);exports[_0x2cd3c3(0x2ba)]=class extends u[_0x2cd3c3(0x26a)]{constructor(_0x55126b,_0x1d31ab){const _0x5b4434=_0x2cd3c3;super(),this['_commandService']=_0x55126b,this[_0x5b4434(0x193)]=_0x1d31ab,this[_0x5b4434(0x163)](),this[_0x5b4434(0x143)]();}[_0x2cd3c3(0x163)](){[b]['forEach'](_0x463f9d=>{const _0x5c3ce3=_0x11b4;this['disposeWithMe'](this['_commandService'][_0x5c3ce3(0x1cc)](_0x463f9d));});}[_0x2cd3c3(0x143)](){const _0x2c8b9d=_0x2cd3c3;this[_0x2c8b9d(0x193)][_0x2c8b9d(0x255)](Ne);}},exports[_0x2cd3c3(0x2ba)]=je([z(0x0,u[_0x2cd3c3(0x1df)]),z(0x1,v['IMenuManagerService'])],exports[_0x2cd3c3(0x2ba)]);const Ee={'mcpStatus':{'disconnected':_0x2cd3c3(0x295),'connecting':'MCP\x20Connecting...','connected':_0x2cd3c3(0x174),'failed':_0x2cd3c3(0x1cd),'retrying':_0x2cd3c3(0x1ff),'unknown':_0x2cd3c3(0x20e),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x2cd3c3(0x18f),'networkError':_0x2cd3c3(0x154),'maxRetriesExceeded':_0x2cd3c3(0x179),'clickToConnect':_0x2cd3c3(0x190),'clickToConfigure':_0x2cd3c3(0x2b9)},'mcpConfig':{'title':_0x2cd3c3(0x21c),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x2cd3c3(0x1f3),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x2cd3c3(0x210),'enableAuthHint':_0x2cd3c3(0x1e3),'connectionInfo':_0x2cd3c3(0x28c),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x2cd3c3(0x259),'configStepTitle':_0x2cd3c3(0x1a9),'configStep1':_0x2cd3c3(0x214),'configStep2':_0x2cd3c3(0x1f9),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x2cd3c3(0x224),'sessionIdDescription':_0x2cd3c3(0x1c5),'authorizationDescription':_0x2cd3c3(0x273),'configParameters':_0x2cd3c3(0x1fe),'maxRetries':_0x2cd3c3(0x1fc),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x2cd3c3(0x17b),'note2':_0x2cd3c3(0x145),'configSaved':_0x2cd3c3(0x240),'configError':_0x2cd3c3(0x181),'apiApplyInfo':{'title':_0x2cd3c3(0x18c),'description':_0x2cd3c3(0x173),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2cd3c3(0x159)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x2cd3c3(0x2a4),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x2cd3c3(0x15d)},'connectionStatus':{'disconnected':_0x2cd3c3(0x156),'connecting':_0x2cd3c3(0x1a6),'connected':_0x2cd3c3(0x1d9),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x2cd3c3(0x15c),'sessionOccupied':_0x2cd3c3(0x1c3),'networkError':_0x2cd3c3(0x18b),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},we={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x2cd3c3(0x187),'connected':_0x2cd3c3(0x247),'failed':_0x2cd3c3(0x2a6),'retrying':'MCP\x20重连中...','unknown':_0x2cd3c3(0x147),'unauthorized':_0x2cd3c3(0x152),'sessionOccupied':_0x2cd3c3(0x245),'networkError':_0x2cd3c3(0x239),'maxRetriesExceeded':_0x2cd3c3(0x14d),'clickToConnect':_0x2cd3c3(0x1d8),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x2cd3c3(0x1d0),'description':_0x2cd3c3(0x29c),'apiKey':'API\x20密钥','apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x2cd3c3(0x184),'enableAuth':'启用身份验证','enableAuthHint':_0x2cd3c3(0x237),'connectionInfo':_0x2cd3c3(0x1f1),'mcpClientConfig':_0x2cd3c3(0x1f1),'configInstructions':_0x2cd3c3(0x1f0),'configStepTitle':_0x2cd3c3(0x2a5),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x2cd3c3(0x267),'configStep3':_0x2cd3c3(0x1f7),'sessionId':_0x2cd3c3(0x266),'sessionIdDescription':_0x2cd3c3(0x144),'authorizationDescription':_0x2cd3c3(0x1a7),'configParameters':_0x2cd3c3(0x195),'maxRetries':_0x2cd3c3(0x13c),'save':'保存配置','saving':_0x2cd3c3(0x25e),'note1':_0x2cd3c3(0x1d6),'note2':_0x2cd3c3(0x25f),'configSaved':'配置保存成功','configError':_0x2cd3c3(0x18e),'apiApplyInfo':{'title':_0x2cd3c3(0x24a),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x2cd3c3(0x2b8),'getStarted':_0x2cd3c3(0x18a)},'validation':{'apiKeyRequired':_0x2cd3c3(0x22a),'apiKeyTooShort':_0x2cd3c3(0x28e),'invalidConfig':'配置无效','invalidApiKey':_0x2cd3c3(0x1c7)},'connectionStatus':{'disconnected':_0x2cd3c3(0x14e),'connecting':'连接中...','connected':_0x2cd3c3(0x246),'failed':'连接失败','retrying':_0x2cd3c3(0x212)},'connectionError':{'unauthorized':_0x2cd3c3(0x254),'sessionOccupied':_0x2cd3c3(0x23d),'networkError':_0x2cd3c3(0x1dd),'maxRetriesExceeded':_0x2cd3c3(0x1d5)}}};var Ae=Object['defineProperty'],Oe=Object[_0x2cd3c3(0x21f)],De=(_0x5dcf4c,_0x10bd14,_0x22d7cf)=>_0x10bd14 in _0x5dcf4c?Ae(_0x5dcf4c,_0x10bd14,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22d7cf}):_0x5dcf4c[_0x10bd14]=_0x22d7cf,Ue=(_0x15796a,_0xfb1e6f,_0x5393fa,_0x47963b)=>{const _0xfe7e9e=_0x2cd3c3;for(var _0x49034f=_0x47963b>0x1?void 0x0:_0x47963b?Oe(_0xfb1e6f,_0x5393fa):_0xfb1e6f,_0x52065c=_0x15796a[_0xfe7e9e(0x2a0)]-0x1,_0x231200;_0x52065c>=0x0;_0x52065c--)(_0x231200=_0x15796a[_0x52065c])&&(_0x49034f=_0x231200(_0x49034f)||_0x49034f);return _0x49034f;},y=(_0x3c1d20,_0x5133cc)=>(_0x197f54,_0x1b72f4)=>_0x5133cc(_0x197f54,_0x1b72f4,_0x3c1d20),$e=(_0x481dee,_0x23154a,_0x123296)=>De(_0x481dee,_0x23154a+'',_0x123296);exports[_0x2cd3c3(0x185)]=class extends u[_0x2cd3c3(0x249)]{constructor(_0x300767=L,_0x5d3f00,_0x35028d,_0x516b91,_0x29b3b7,_0x29e718){const _0x368885=_0x2cd3c3;super(),this[_0x368885(0x1ea)]=_0x300767,this[_0x368885(0x2ad)]=_0x5d3f00,this[_0x368885(0x1b1)]=_0x35028d,this['_uiPartsService']=_0x516b91,this['_localStorageService']=_0x29b3b7,this[_0x368885(0x196)]=_0x29e718;const {..._0x157df1}=u['merge']({},L,this[_0x368885(0x1ea)]);this['_configService'][_0x368885(0x1c2)](P,_0x157df1);}async[_0x2cd3c3(0x209)](){const _0x49632f=_0x2cd3c3,_0x15c1cb=[[exports['MCPConnectionUIController']],[exports[_0x49632f(0x233)]],[exports['MCPUIMenuController']]];this['_injector'][_0x49632f(0x20f)](A['ISocketService'])||_0x15c1cb[_0x49632f(0x28a)]([A[_0x49632f(0x21a)],{'useClass':A[_0x49632f(0x203)]}]),_0x15c1cb[_0x49632f(0x1fb)](_0x1efba3=>this[_0x49632f(0x2ad)]['add'](_0x1efba3)),this[_0x49632f(0x2ad)][_0x49632f(0x19e)](exports[_0x49632f(0x186)]),this['_injector'][_0x49632f(0x19e)](exports[_0x49632f(0x233)]),this['_injector'][_0x49632f(0x19e)](exports[_0x49632f(0x2ba)]);}},$e(exports[_0x2cd3c3(0x185)],_0x2cd3c3(0x27f),_0x2cd3c3(0x243)),exports[_0x2cd3c3(0x185)]=Ue([u[_0x2cd3c3(0x258)](s[_0x2cd3c3(0x26f)]),y(0x1,u['Inject'](u['Injector'])),y(0x2,u['IConfigService']),y(0x3,v[_0x2cd3c3(0x141)]),y(0x4,u[_0x2cd3c3(0x204)]),y(0x5,u[_0x2cd3c3(0x1d4)](u['LocaleService']))],exports[_0x2cd3c3(0x185)]),exports[_0x2cd3c3(0x290)]=V,exports[_0x2cd3c3(0x1f4)]=W,exports[_0x2cd3c3(0x155)]=b,exports['enUS']=Ee,exports[_0x2cd3c3(0x1c0)]=we;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x219f(_0x416375,_0x43dbf1){_0x416375=_0x416375-0xc7;const _0x1a08c8=_0x1a08();let _0x219fc4=_0x1a08c8[_0x416375];return _0x219fc4;}const _0x1a43e7=_0x219f;(function(_0xfb4e56,_0x340ad){const _0x3e1bfb=_0x219f,_0x5a116e=_0xfb4e56();while(!![]){try{const _0x5296cf=-parseInt(_0x3e1bfb(0xcc))/0x1+parseInt(_0x3e1bfb(0xed))/0x2*(-parseInt(_0x3e1bfb(0xe2))/0x3)+-parseInt(_0x3e1bfb(0xdf))/0x4*(parseInt(_0x3e1bfb(0xd2))/0x5)+parseInt(_0x3e1bfb(0xcd))/0x6*(parseInt(_0x3e1bfb(0xdd))/0x7)+-parseInt(_0x3e1bfb(0xd7))/0x8*(-parseInt(_0x3e1bfb(0xd6))/0x9)+parseInt(_0x3e1bfb(0xee))/0xa*(-parseInt(_0x3e1bfb(0xf8))/0xb)+parseInt(_0x3e1bfb(0xe1))/0xc;if(_0x5296cf===_0x340ad)break;else _0x5a116e['push'](_0x5a116e['shift']());}catch(_0x3b4504){_0x5a116e['push'](_0x5a116e['shift']());}}}(_0x1a08,0x3a3dc));const e={'mcpStatus':{'disconnected':_0x1a43e7(0xf3),'connecting':_0x1a43e7(0xd4),'connected':_0x1a43e7(0xe8),'failed':'MCP\x20Connection\x20Failed','retrying':_0x1a43e7(0xe6),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x1a43e7(0xca),'sessionOccupied':_0x1a43e7(0xf4),'networkError':_0x1a43e7(0xdb),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x1a43e7(0xf7),'clickToConfigure':_0x1a43e7(0xd1)},'mcpConfig':{'title':_0x1a43e7(0xcf),'description':_0x1a43e7(0xdc),'apiKey':_0x1a43e7(0xce),'apiKeyPlaceholder':_0x1a43e7(0xd5),'apiKeyHint':_0x1a43e7(0xf0),'enableAuth':_0x1a43e7(0xd0),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x1a43e7(0xd8),'mcpClientConfig':_0x1a43e7(0xd8),'configInstructions':_0x1a43e7(0xd9),'configStepTitle':_0x1a43e7(0xef),'configStep1':_0x1a43e7(0xd3),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x1a43e7(0xe3),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x1a43e7(0xde),'configParameters':_0x1a43e7(0xea),'maxRetries':_0x1a43e7(0xe0),'save':_0x1a43e7(0xf6),'saving':_0x1a43e7(0xe7),'note1':_0x1a43e7(0xc8),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x1a43e7(0xe5),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x1a43e7(0xe9),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x1a43e7(0xc7)},'validation':{'apiKeyRequired':_0x1a43e7(0xf1),'apiKeyTooShort':_0x1a43e7(0xe4),'invalidConfig':_0x1a43e7(0xc9),'invalidApiKey':_0x1a43e7(0xcb)},'connectionStatus':{'disconnected':_0x1a43e7(0xec),'connecting':'Connecting...','connected':'Connected','failed':_0x1a43e7(0xf2),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x1a43e7(0xda),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x1a43e7(0xf5),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x1a43e7(0xeb)]=n;function _0x1a08(){const _0x1fa433=['MCP\x20Connecting...','Enter\x20your\x20API\x20key','9pACMMu','3034576apCKrV','MCP\x20Client\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Network\x20Error','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','3318LchAvv','API\x20key\x20with\x20Bearer\x20prefix.','772204rZSMfF','Max\x20Retries','11402712KwSQGR','9SsXBZV','Session\x20ID','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Failed\x20to\x20save\x20configuration','MCP\x20Retrying...','Saving...','MCP\x20Connected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20Parameters:','exports','Disconnected','117326KOflFB','20BQqunu','Configuration\x20Steps:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20is\x20required','Connection\x20Failed','MCP\x20Disconnected','MCP:\x20Session\x20ID\x20Occupied','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Save\x20Configuration','Click\x20to\x20connect\x20MCP','929544DutBpT','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20configuration','MCP:\x20Unauthorized','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','439051jwXzxg','1002QEZPvF','API\x20Key','MCP\x20Configuration','Enable\x20Authentication','Click\x20to\x20configure\x20MCP','10queTqS','Copy\x20the\x20JSON\x20configuration\x20below'];_0x1a08=function(){return _0x1fa433;};return _0x1a08();}
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x4d3c06=_0x59cf;(function(_0x1d5a2a,_0x5931df){const _0x23f921=_0x59cf,_0x28942f=_0x1d5a2a();while(!![]){try{const _0x248b74=-parseInt(_0x23f921(0x96))/0x1*(-parseInt(_0x23f921(0xb8))/0x2)+-parseInt(_0x23f921(0xa6))/0x3*(-parseInt(_0x23f921(0xac))/0x4)+parseInt(_0x23f921(0x8c))/0x5+parseInt(_0x23f921(0xa4))/0x6*(-parseInt(_0x23f921(0x9b))/0x7)+parseInt(_0x23f921(0xa3))/0x8+-parseInt(_0x23f921(0x87))/0x9*(parseInt(_0x23f921(0xb1))/0xa)+-parseInt(_0x23f921(0xa9))/0xb;if(_0x248b74===_0x5931df)break;else _0x28942f['push'](_0x28942f['shift']());}catch(_0x1c595c){_0x28942f['push'](_0x28942f['shift']());}}}(_0x1c21,0xb89a7));function _0x59cf(_0x31ad26,_0x532b0e){_0x31ad26=_0x31ad26-0x85;const _0x1c215b=_0x1c21();let _0x59cf67=_0x1c215b[_0x31ad26];return _0x59cf67;}function _0x1c21(){const _0x3d07d9=['21IQaIhR','What\x20is\x20API\x20Key?','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Max\x20Retries\x20Exceeded','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Copy\x20the\x20JSON\x20configuration\x20below','8497120jgereM','1480386saOtPe','Session\x20ID','3nPxviS','Invalid\x20configuration','MCP\x20Client\x20Configuration','29228639duMPpM','Max\x20Retries','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','5993668fJTMUL','Configuration\x20Parameters:','Save\x20Configuration','Connected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','643630iMjbVl','MCP\x20Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connecting...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Retrying...','MCP\x20Connected','2157286YrRlcf','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Unauthorized','81hLQzCY','MCP\x20Retrying...','MCP:\x20Session\x20ID\x20Occupied','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','exports','5467720sCWurG','API\x20key\x20with\x20Bearer\x20prefix.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20saved\x20successfully','Click\x20to\x20configure\x20MCP','Saving...','Click\x20to\x20connect\x20MCP','Enter\x20your\x20API\x20key','Disconnected','Configuration\x20Steps:','1YtorxY','MCP\x20Configuration','API\x20key\x20is\x20required','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Unknown\x20Status'];_0x1c21=function(){return _0x3d07d9;};return _0x1c21();}const e={'mcpStatus':{'disconnected':_0x4d3c06(0xb2),'connecting':_0x4d3c06(0xb4),'connected':_0x4d3c06(0xb7),'failed':'MCP\x20Connection\x20Failed','retrying':_0x4d3c06(0x88),'unknown':_0x4d3c06(0x9a),'unauthorized':_0x4d3c06(0x86),'sessionOccupied':_0x4d3c06(0x89),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x4d3c06(0x9f),'clickToConnect':_0x4d3c06(0x92),'clickToConfigure':_0x4d3c06(0x90)},'mcpConfig':{'title':_0x4d3c06(0x97),'description':_0x4d3c06(0x85),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x4d3c06(0x93),'apiKeyHint':_0x4d3c06(0xa1),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x4d3c06(0xa8),'mcpClientConfig':_0x4d3c06(0xa8),'configInstructions':_0x4d3c06(0x8a),'configStepTitle':_0x4d3c06(0x95),'configStep1':_0x4d3c06(0xa2),'configStep2':_0x4d3c06(0x9d),'configStep3':_0x4d3c06(0xab),'sessionId':_0x4d3c06(0xa5),'sessionIdDescription':_0x4d3c06(0xa0),'authorizationDescription':_0x4d3c06(0x8d),'configParameters':_0x4d3c06(0xad),'maxRetries':_0x4d3c06(0xaa),'save':_0x4d3c06(0xae),'saving':_0x4d3c06(0x91),'note1':_0x4d3c06(0xb0),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x4d3c06(0x8f),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x4d3c06(0x9c),'description':_0x4d3c06(0x99),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4d3c06(0x98),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x4d3c06(0xa7),'invalidApiKey':_0x4d3c06(0x8e)},'connectionStatus':{'disconnected':_0x4d3c06(0x94),'connecting':'Connecting...','connected':_0x4d3c06(0xaf),'failed':'Connection\x20Failed','retrying':_0x4d3c06(0xb6)},'connectionError':{'unauthorized':_0x4d3c06(0xb5),'sessionOccupied':_0x4d3c06(0xb3),'networkError':_0x4d3c06(0x9e),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};module[_0x4d3c06(0x8b)]=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x2d1a(){const _0x37852c=['MCP\x20Connection\x20Failed','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20Parameters:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Network\x20Error','API\x20Key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Invalid\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enter\x20your\x20API\x20key','4HYJjwl','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','2302aNphDK','Get\x20your\x20API\x20key\x20in\x20seconds','2212690VfxzUD','Enable\x20Authentication','3180nsWuhg','MCP\x20Unknown\x20Status','Max\x20Retries','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Saving...','Save\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Unauthorized','MCP\x20Client\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connected','2616WAiTIp','MCP\x20Retrying...','Connection\x20Failed','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','2212380ziqZPZ','Retrying...','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20Steps:','Session\x20ID','2725525CKtuOY','What\x20is\x20API\x20Key?','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Configuration','MCP\x20Connected','306759aekOeJ','50ZZPCLz','exports','Disconnected','MCP:\x20Session\x20ID\x20Occupied','179074bspHaB','24xuCSkX','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','184xBOdtv','Connecting...','API\x20key\x20with\x20Bearer\x20prefix.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file'];_0x2d1a=function(){return _0x37852c;};return _0x2d1a();}const _0x233f64=_0xfb48;(function(_0x1fea55,_0x10c629){const _0x39e04d=_0xfb48,_0x146d38=_0x1fea55();while(!![]){try{const _0x57dc10=parseInt(_0x39e04d(0x83))/0x1*(parseInt(_0x39e04d(0x6c))/0x2)+-parseInt(_0x39e04d(0x6b))/0x3*(-parseInt(_0x39e04d(0x81))/0x4)+-parseInt(_0x39e04d(0x87))/0x5*(-parseInt(_0x39e04d(0x93))/0x6)+parseInt(_0x39e04d(0x70))/0x7*(-parseInt(_0x39e04d(0x73))/0x8)+parseInt(_0x39e04d(0x97))/0x9+-parseInt(_0x39e04d(0x85))/0xa+-parseInt(_0x39e04d(0x9c))/0xb*(-parseInt(_0x39e04d(0x71))/0xc);if(_0x57dc10===_0x10c629)break;else _0x146d38['push'](_0x146d38['shift']());}catch(_0x12310d){_0x146d38['push'](_0x146d38['shift']());}}}(_0x2d1a,0x5a0ae));function _0xfb48(_0xbfa57d,_0x2964f6){_0xbfa57d=_0xbfa57d-0x6b;const _0x2d1aff=_0x2d1a();let _0xfb48a7=_0x2d1aff[_0xbfa57d];return _0xfb48a7;}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x233f64(0xa0),'failed':_0x233f64(0x77),'retrying':_0x233f64(0x94),'unknown':_0x233f64(0x88),'unauthorized':_0x233f64(0x8f),'sessionOccupied':_0x233f64(0x6f),'networkError':_0x233f64(0x7b),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x233f64(0x9f),'description':_0x233f64(0x72),'apiKey':_0x233f64(0x7c),'apiKeyPlaceholder':_0x233f64(0x80),'apiKeyHint':_0x233f64(0x91),'enableAuth':_0x233f64(0x86),'enableAuthHint':_0x233f64(0x99),'connectionInfo':_0x233f64(0x90),'mcpClientConfig':_0x233f64(0x90),'configInstructions':_0x233f64(0x9e),'configStepTitle':_0x233f64(0x9a),'configStep1':_0x233f64(0x8e),'configStep2':_0x233f64(0x76),'configStep3':_0x233f64(0x8d),'sessionId':_0x233f64(0x9b),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x233f64(0x75),'configParameters':_0x233f64(0x79),'maxRetries':_0x233f64(0x89),'save':_0x233f64(0x8c),'saving':_0x233f64(0x8b),'note1':_0x233f64(0x8a),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x233f64(0x9d),'description':_0x233f64(0x96),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x233f64(0x84)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x233f64(0x7e),'invalidApiKey':_0x233f64(0x82)},'connectionStatus':{'disconnected':_0x233f64(0x6e),'connecting':_0x233f64(0x74),'connected':_0x233f64(0x92),'failed':_0x233f64(0x95),'retrying':_0x233f64(0x98)},'connectionError':{'unauthorized':_0x233f64(0x78),'sessionOccupied':_0x233f64(0x7d),'networkError':_0x233f64(0x7a),'maxRetriesExceeded':_0x233f64(0x7f)}}},n=e;module[_0x233f64(0x6d)]=n;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2bfc3d=_0x466f;function _0x466f(_0x5c52d8,_0x165f3e){_0x5c52d8=_0x5c52d8-0x16a;const _0x434a3e=_0x434a();let _0x466feb=_0x434a3e[_0x5c52d8];return _0x466feb;}(function(_0x23ab0b,_0x1edea7){const _0x50a395=_0x466f,_0x3c76b3=_0x23ab0b();while(!![]){try{const _0x400a2b=-parseInt(_0x50a395(0x178))/0x1+-parseInt(_0x50a395(0x196))/0x2+parseInt(_0x50a395(0x197))/0x3+parseInt(_0x50a395(0x16e))/0x4+-parseInt(_0x50a395(0x17e))/0x5*(parseInt(_0x50a395(0x188))/0x6)+-parseInt(_0x50a395(0x17c))/0x7*(parseInt(_0x50a395(0x19b))/0x8)+parseInt(_0x50a395(0x194))/0x9*(parseInt(_0x50a395(0x16a))/0xa);if(_0x400a2b===_0x1edea7)break;else _0x3c76b3['push'](_0x3c76b3['shift']());}catch(_0x15f540){_0x3c76b3['push'](_0x3c76b3['shift']());}}}(_0x434a,0xd1001));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2bfc3d(0x198),'connected':_0x2bfc3d(0x187),'failed':_0x2bfc3d(0x16b),'retrying':_0x2bfc3d(0x184),'unknown':_0x2bfc3d(0x16f),'unauthorized':_0x2bfc3d(0x17a),'sessionOccupied':_0x2bfc3d(0x189),'networkError':_0x2bfc3d(0x18f),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2bfc3d(0x175),'clickToConfigure':_0x2bfc3d(0x176)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x2bfc3d(0x18d),'apiKey':_0x2bfc3d(0x171),'apiKeyPlaceholder':_0x2bfc3d(0x177),'apiKeyHint':_0x2bfc3d(0x19a),'enableAuth':_0x2bfc3d(0x193),'enableAuthHint':_0x2bfc3d(0x16c),'connectionInfo':_0x2bfc3d(0x192),'mcpClientConfig':_0x2bfc3d(0x192),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x2bfc3d(0x173),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x2bfc3d(0x185),'configStep3':_0x2bfc3d(0x181),'sessionId':_0x2bfc3d(0x16d),'sessionIdDescription':_0x2bfc3d(0x174),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x2bfc3d(0x19c),'maxRetries':'Max\x20Retries','save':_0x2bfc3d(0x183),'saving':_0x2bfc3d(0x18b),'note1':_0x2bfc3d(0x182),'note2':_0x2bfc3d(0x18a),'configSaved':_0x2bfc3d(0x172),'configError':_0x2bfc3d(0x17d),'apiApplyInfo':{'title':_0x2bfc3d(0x17f),'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':_0x2bfc3d(0x186)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x2bfc3d(0x195),'invalidConfig':_0x2bfc3d(0x190),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x2bfc3d(0x180),'connected':_0x2bfc3d(0x170),'failed':_0x2bfc3d(0x17b),'retrying':_0x2bfc3d(0x179)},'connectionError':{'unauthorized':_0x2bfc3d(0x18c),'sessionOccupied':_0x2bfc3d(0x191),'networkError':_0x2bfc3d(0x199),'maxRetriesExceeded':_0x2bfc3d(0x18e)}}},n=e;function _0x434a(){const _0x3e5c7a=['MCP\x20Connection\x20Failed','Enable\x20authentication\x20for\x20secure\x20connections','Session\x20ID','2140540eZlZxJ','MCP\x20Unknown\x20Status','Connected','API\x20Key','Configuration\x20saved\x20successfully','Configuration\x20Steps:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Click\x20to\x20connect\x20MCP','Click\x20to\x20configure\x20MCP','Enter\x20your\x20API\x20key','1046627cRvJBD','Retrying...','MCP:\x20Unauthorized','Connection\x20Failed','539DyCXaJ','Failed\x20to\x20save\x20configuration','985tuwGla','What\x20is\x20API\x20Key?','Connecting...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Save\x20Configuration','MCP\x20Retrying...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connected','47202YYSRTF','MCP:\x20Session\x20ID\x20Occupied','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Network\x20Error','Invalid\x20configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Client\x20Configuration','Enable\x20Authentication','99rqQLwy','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','328072EuAEcZ','3647079xIZfSo','MCP\x20Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','64656XkCxFI','Configuration\x20Parameters:','2261830BRBQzg'];_0x434a=function(){return _0x3e5c7a;};return _0x434a();}module['exports']=n;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x970a47=_0x3cc7;(function(_0x285c3d,_0x4d18d3){const _0x392c22=_0x3cc7,_0x5130a9=_0x285c3d();while(!![]){try{const _0x2aac6a=-parseInt(_0x392c22(0x176))/0x1+-parseInt(_0x392c22(0x15d))/0x2+parseInt(_0x392c22(0x151))/0x3+-parseInt(_0x392c22(0x14f))/0x4*(-parseInt(_0x392c22(0x14d))/0x5)+-parseInt(_0x392c22(0x157))/0x6+-parseInt(_0x392c22(0x150))/0x7+-parseInt(_0x392c22(0x154))/0x8*(-parseInt(_0x392c22(0x160))/0x9);if(_0x2aac6a===_0x4d18d3)break;else _0x5130a9['push'](_0x5130a9['shift']());}catch(_0x300ff1){_0x5130a9['push'](_0x5130a9['shift']());}}}(_0xa193,0x5bc7d));function _0x3cc7(_0x4aeb40,_0x12f95c){_0x4aeb40=_0x4aeb40-0x14c;const _0xa1938f=_0xa193();let _0x3cc76f=_0xa1938f[_0x4aeb40];return _0x3cc76f;}function _0xa193(){const _0x2e11c3=['API\x20key\x20is\x20required','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20Parameters:','What\x20is\x20API\x20Key?','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','exports','741078BfdRoK','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enter\x20your\x20API\x20key','Click\x20to\x20configure\x20MCP','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connection\x20Failed','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','2108290yLlVNd','MCP\x20Connecting...','4NxgGdN','5117637HiGhqr','1307301MEYgSt','Max\x20Retries','MCP\x20Connection\x20Failed','800BLYPSl','MCP\x20Retrying...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','3168432OYcNdR','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Univer\x20AI\x20Console','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Client\x20Configuration','MCP:\x20Unauthorized','26302zlgCgd','Disconnected','Copy\x20the\x20JSON\x20configuration\x20below','137871XjdaBL','Failed\x20to\x20save\x20configuration','MCP\x20Connected','MCP\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Invalid\x20configuration','Enable\x20Authentication','Session\x20ID','API\x20Key','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Network\x20Error','Connecting...','MCP\x20Unknown\x20Status','Click\x20to\x20connect\x20MCP','Configuration\x20changes\x20will\x20take\x20effect\x20immediately'];_0xa193=function(){return _0x2e11c3;};return _0xa193();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x970a47(0x14e),'connected':_0x970a47(0x162),'failed':_0x970a47(0x153),'retrying':_0x970a47(0x155),'unknown':_0x970a47(0x16c),'unauthorized':_0x970a47(0x15c),'sessionOccupied':_0x970a47(0x171),'networkError':_0x970a47(0x16a),'maxRetriesExceeded':_0x970a47(0x169),'clickToConnect':_0x970a47(0x16d),'clickToConfigure':_0x970a47(0x17a)},'mcpConfig':{'title':_0x970a47(0x163),'description':_0x970a47(0x174),'apiKey':_0x970a47(0x168),'apiKeyPlaceholder':_0x970a47(0x179),'apiKeyHint':_0x970a47(0x164),'enableAuth':_0x970a47(0x166),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x970a47(0x15b),'mcpClientConfig':_0x970a47(0x15b),'configInstructions':_0x970a47(0x156),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x970a47(0x15f),'configStep2':_0x970a47(0x178),'configStep3':_0x970a47(0x15a),'sessionId':_0x970a47(0x167),'sessionIdDescription':_0x970a47(0x177),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x970a47(0x172),'maxRetries':_0x970a47(0x152),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x970a47(0x16e),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x970a47(0x161),'apiApplyInfo':{'title':_0x970a47(0x173),'description':_0x970a47(0x17c),'univerAiLabel':_0x970a47(0x159),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x970a47(0x16f),'apiKeyTooShort':_0x970a47(0x17b),'invalidConfig':_0x970a47(0x165),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x970a47(0x15e),'connecting':_0x970a47(0x16b),'connected':'Connected','failed':_0x970a47(0x17d),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x970a47(0x158),'networkError':_0x970a47(0x14c),'maxRetriesExceeded':_0x970a47(0x170)}}},n=e;module[_0x970a47(0x175)]=n;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x431cc7=_0x34af;(function(_0xab4715,_0x3317b3){const _0x22474e=_0x34af,_0x224296=_0xab4715();while(!![]){try{const _0x67f3ab=-parseInt(_0x22474e(0x1ee))/0x1*(parseInt(_0x22474e(0x1ea))/0x2)+parseInt(_0x22474e(0x1da))/0x3*(parseInt(_0x22474e(0x1e9))/0x4)+parseInt(_0x22474e(0x1d4))/0x5*(-parseInt(_0x22474e(0x1d8))/0x6)+-parseInt(_0x22474e(0x1f9))/0x7+parseInt(_0x22474e(0x1f2))/0x8+parseInt(_0x22474e(0x1d5))/0x9+parseInt(_0x22474e(0x1df))/0xa;if(_0x67f3ab===_0x3317b3)break;else _0x224296['push'](_0x224296['shift']());}catch(_0x567c56){_0x224296['push'](_0x224296['shift']());}}}(_0x4340,0x65841));function _0x34af(_0x59461a,_0xc0d957){_0x59461a=_0x59461a-0x1ca;const _0x434059=_0x4340();let _0x34af7a=_0x434059[_0x59461a];return _0x34af7a;}const e={'mcpStatus':{'disconnected':_0x431cc7(0x1d9),'connecting':_0x431cc7(0x1ed),'connected':_0x431cc7(0x1f5),'failed':_0x431cc7(0x1d2),'retrying':'MCP\x20再試行中...','unknown':'MCP\x20不明な状態','unauthorized':_0x431cc7(0x1d1),'sessionOccupied':'MCP:\x20セッションIDが使用中','networkError':_0x431cc7(0x1fd),'maxRetriesExceeded':_0x431cc7(0x1d6),'clickToConnect':_0x431cc7(0x1fe),'clickToConfigure':'クリックしてMCPを設定'},'mcpConfig':{'title':_0x431cc7(0x1e6),'description':'MCPを設定してAIでスプレッドシートを操作','apiKey':_0x431cc7(0x1f4),'apiKeyPlaceholder':_0x431cc7(0x1e8),'apiKeyHint':_0x431cc7(0x1cb),'enableAuth':_0x431cc7(0x1dc),'enableAuthHint':_0x431cc7(0x1cd),'connectionInfo':_0x431cc7(0x1ca),'mcpClientConfig':_0x431cc7(0x1ca),'configInstructions':_0x431cc7(0x1f0),'configStepTitle':_0x431cc7(0x1dd),'configStep1':_0x431cc7(0x1e3),'configStep2':_0x431cc7(0x1d0),'configStep3':_0x431cc7(0x1e1),'sessionId':_0x431cc7(0x1d7),'sessionIdDescription':_0x431cc7(0x1ec),'authorizationDescription':_0x431cc7(0x1f3),'configParameters':_0x431cc7(0x1e7),'maxRetries':_0x431cc7(0x1e0),'save':_0x431cc7(0x1fc),'saving':_0x431cc7(0x1db),'note1':_0x431cc7(0x1e5),'note2':'APIキーはローカルストレージに安全に保存されます','configSaved':'設定が正常に保存されました','configError':_0x431cc7(0x1f8),'apiApplyInfo':{'title':_0x431cc7(0x1de),'description':_0x431cc7(0x1cf),'univerAiLabel':_0x431cc7(0x1fb),'getStarted':_0x431cc7(0x1f7)},'validation':{'apiKeyRequired':_0x431cc7(0x1d3),'apiKeyTooShort':_0x431cc7(0x1eb),'invalidConfig':_0x431cc7(0x1f6),'invalidApiKey':_0x431cc7(0x1ce)},'connectionStatus':{'disconnected':_0x431cc7(0x1e2),'connecting':_0x431cc7(0x1cc),'connected':_0x431cc7(0x1f1),'failed':_0x431cc7(0x1fa),'retrying':'再試行中...'},'connectionError':{'unauthorized':_0x431cc7(0x1e4),'sessionOccupied':'セッションIDが現在使用中です。後でもう一度お試しください','networkError':_0x431cc7(0x1ef),'maxRetriesExceeded':'最大再試行回数を超過しました。後でもう一度お試しください'}}};function _0x4340(){const _0x4c5961=['Univer\x20AIコンソール','設定を保存','MCP:\x20ネットワークエラー','クリックしてMCPに接続','MCPクライアント設定','APIキーはこのブラウザのローカルに保存されます','接続中...','セキュアな接続のために認証を有効にする','無効なAPIキーです。キーが正しいか確認してください','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','MCPクライアントの設定ファイルに設定を追加','MCP:\x20認証されていません','MCP\x20接続失敗','APIキーは必須です','95725OfkCts','5342364IXTgCW','MCP:\x20最大再試行回数を超過','セッションID','186kcGNPt','MCP\x20未接続','867BJeCfk','保存中...','認証を有効にする','設定手順:','APIキーとは?','9858130JmwvAN','最大再試行回数','MCPクライアントを再起動して設定を適用','未接続','以下のJSON設定をコピー','認証に失敗しました。APIキーを確認してください','設定の変更は直ちに有効になります','MCP設定','設定パラメータ:','APIキーを入力してください','10756YdSVsB','4TsXBzY','APIキーは10文字以上である必要があります','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','MCP\x20接続中...','414956aZhVUd','ネットワーク接続エラー。インターネット接続を確認してください','MCPクライアントの設定に次の設定を追加してください:','接続済み','1187448hHxfNf','Bearerプレフィックス付きのAPIキー。','APIキー','MCP\x20接続済み','無効な設定','数秒でAPIキーを取得','設定の保存に失敗しました','4660215bcuDCR','接続失敗'];_0x4340=function(){return _0x4c5961;};return _0x4340();}module['exports']=e;
|