@univerjs-pro/mcp-ui 0.10.14-nightly.202511070640 → 0.10.14-nightly.202511070939
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +6 -6
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x417fc1=_0x4d62;(function(_0x23ccba,_0x430cc4){const _0x4adc08=_0x4d62,_0x5b156e=_0x23ccba();while(!![]){try{const _0x4f7e8c=-parseInt(_0x4adc08(0x1ac))/0x1+parseInt(_0x4adc08(0x13f))/0x2*(parseInt(_0x4adc08(0x13d))/0x3)+-parseInt(_0x4adc08(0x15a))/0x4*(parseInt(_0x4adc08(0xfa))/0x5)+-parseInt(_0x4adc08(0x139))/0x6+parseInt(_0x4adc08(0x237))/0x7*(-parseInt(_0x4adc08(0x27f))/0x8)+-parseInt(_0x4adc08(0x1f6))/0x9*(-parseInt(_0x4adc08(0x148))/0xa)+parseInt(_0x4adc08(0x20f))/0xb;if(_0x4f7e8c===_0x430cc4)break;else _0x5b156e['push'](_0x5b156e['shift']());}catch(_0x120d39){_0x5b156e['push'](_0x5b156e['shift']());}}}(_0x1944,0x60a9d));var ae=Object[_0x417fc1(0x101)],le=(_0x1f1c87,_0xe66d1e,_0x456e6c)=>_0xe66d1e in _0x1f1c87?ae(_0x1f1c87,_0xe66d1e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x456e6c}):_0x1f1c87[_0xe66d1e]=_0x456e6c,I=(_0x1d0f3c,_0x53f741,_0x1f5bb3)=>le(_0x1d0f3c,typeof _0x53f741!=_0x417fc1(0x25c)?_0x53f741+'':_0x53f741,_0x1f5bb3);Object[_0x417fc1(0x101)](exports,Symbol[_0x417fc1(0x22e)],{'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:_0x2e0e94,..._0x4cd645}){const _0x530024=_0x417fc1,{icon:_0x5c8f4c,id:_0x578549,className:_0x9bbbe2,extend:_0xb463e6,..._0xd6307}=_0x4cd645,_0x548ca3=(_0x530024(0x15e)+_0x578549+'\x20'+(_0x9bbbe2||''))[_0x530024(0x120)](),_0x3f4e27=d[_0x530024(0x150)]('_'+de());return G(_0x5c8f4c,''+_0x578549,{'defIds':_0x5c8f4c[_0x530024(0x266)],'idSuffix':_0x3f4e27[_0x530024(0x196)]},{'ref':_0x2e0e94,'className':_0x548ca3,..._0xd6307},_0xb463e6);}function G(_0x5de7a5,_0x3c6f5a,_0x1a6229,_0x37ea57,_0x24fc49){const _0xd56654=_0x417fc1;return d[_0xd56654(0x184)](_0x5de7a5['tag'],{'key':_0x3c6f5a,...ue(_0x5de7a5,_0x1a6229,_0x24fc49),..._0x37ea57},(ve(_0x5de7a5,_0x1a6229)[_0xd56654(0x103)]||[])['map']((_0x5a1969,_0x3b7673)=>G(_0x5a1969,_0x3c6f5a+'-'+_0x5de7a5[_0xd56654(0x1b1)]+'-'+_0x3b7673,_0x1a6229,void 0x0,_0x24fc49)));}function ue(_0x248634,_0x5c7f91,_0x4f32aa){const _0xd9c418=_0x417fc1,_0x372e31={..._0x248634[_0xd9c418(0x163)]};_0x4f32aa!=null&&_0x4f32aa[_0xd9c418(0x25a)]&&_0x372e31[_0xd9c418(0x13c)]===_0xd9c418(0x25a)&&(_0x372e31[_0xd9c418(0x13c)]=_0x4f32aa[_0xd9c418(0x25a)]),_0x248634[_0xd9c418(0x1b1)]===_0xd9c418(0x1d7)&&_0x372e31['id']&&(_0x372e31['id']=_0x372e31['id']+_0x5c7f91[_0xd9c418(0x1e3)]),Object['entries'](_0x372e31)[_0xd9c418(0x12e)](([_0x2769dc,_0x7e96de])=>{const _0x410150=_0xd9c418;_0x2769dc===_0x410150(0x1d7)&&typeof _0x7e96de==_0x410150(0x136)&&(_0x372e31[_0x2769dc]=_0x7e96de[_0x410150(0x1cc)](/url\(#(.*)\)/,_0x410150(0x1c7)+_0x5c7f91[_0x410150(0x1e3)]+')'));});const {defIds:_0x54cd4b}=_0x5c7f91;return!_0x54cd4b||_0x54cd4b['length']===0x0||(_0x248634[_0xd9c418(0x1b1)]==='use'&&_0x372e31[_0xd9c418(0x15b)]&&(_0x372e31[_0xd9c418(0x15b)]=_0x372e31[_0xd9c418(0x15b)]+_0x5c7f91[_0xd9c418(0x1e3)]),Object[_0xd9c418(0x198)](_0x372e31)[_0xd9c418(0x12e)](([_0x512ba0,_0x3c8dba])=>{const _0x18ec94=_0xd9c418;typeof _0x3c8dba=='string'&&(_0x372e31[_0x512ba0]=_0x3c8dba[_0x18ec94(0x1cc)](/url\(#(.*)\)/,_0x18ec94(0x1c7)+_0x5c7f91['idSuffix']+')'));})),_0x372e31;}function ve(_0x5d3384,_0x28d528){const _0x5bc89a=_0x417fc1;var _0x2d3ffb;const {defIds:_0x566290}=_0x28d528;return!_0x566290||_0x566290['length']===0x0?_0x5d3384:_0x5d3384['tag']===_0x5bc89a(0x1d0)&&((_0x2d3ffb=_0x5d3384[_0x5bc89a(0x103)])!=null&&_0x2d3ffb[_0x5bc89a(0x109)])?{..._0x5d3384,'children':_0x5d3384[_0x5bc89a(0x103)][_0x5bc89a(0x13a)](_0x512b2e=>typeof _0x512b2e[_0x5bc89a(0x163)]['id']=='string'&&_0x566290&&_0x566290['includes'](_0x512b2e[_0x5bc89a(0x163)]['id'])?{..._0x512b2e,'attrs':{..._0x512b2e['attrs'],'id':_0x512b2e[_0x5bc89a(0x163)]['id']+_0x28d528[_0x5bc89a(0x1e3)]}}:_0x512b2e)}:_0x5d3384;}function de(){const _0x29fa68=_0x417fc1;return Math[_0x29fa68(0x1e2)]()[_0x29fa68(0x210)](0x24)[_0x29fa68(0x1c4)](0x2,0x8);}_[_0x417fc1(0x130)]='UniverIcon';const Ce={'tag':_0x417fc1(0x253),'attrs':{'xmlns':_0x417fc1(0x164),'fill':_0x417fc1(0x28a),'viewBox':_0x417fc1(0x269),'width':_0x417fc1(0x169),'height':'1em'},'children':[{'tag':_0x417fc1(0x203),'attrs':{'fill':_0x417fc1(0x274),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':_0x417fc1(0x1e5),'clipRule':_0x417fc1(0x1e5)}}]},H=d[_0x417fc1(0x122)](function(_0x1844bc,_0x1c9b95){const _0x1af580=_0x417fc1;return d[_0x1af580(0x184)](_,Object[_0x1af580(0x243)]({},_0x1844bc,{'id':'check-mark-icon','ref':_0x1c9b95,'icon':Ce}));});H[_0x417fc1(0x130)]=_0x417fc1(0x21c);const ge={'tag':_0x417fc1(0x253),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x417fc1(0x28a),'viewBox':_0x417fc1(0x269),'width':_0x417fc1(0x169),'height':_0x417fc1(0x169)},'children':[{'tag':'path','attrs':{'fill':_0x417fc1(0x274),'d':_0x417fc1(0x1af)}}]},B=d['forwardRef'](function(_0x198efc,_0x2b0a7e){const _0x229d3d=_0x417fc1;return d[_0x229d3d(0x184)](_,Object['assign']({},_0x198efc,{'id':_0x229d3d(0x15d),'ref':_0x2b0a7e,'icon':ge}));});B[_0x417fc1(0x130)]=_0x417fc1(0x1fa);const fe={'tag':'svg','attrs':{'xmlns':_0x417fc1(0x164),'fill':_0x417fc1(0x28a),'viewBox':_0x417fc1(0x269),'width':_0x417fc1(0x169),'height':_0x417fc1(0x169)},'children':[{'tag':_0x417fc1(0x203),'attrs':{'fill':'currentColor','d':_0x417fc1(0x23f)}},{'tag':_0x417fc1(0x203),'attrs':{'fill':'currentColor','d':_0x417fc1(0x160)}},{'tag':_0x417fc1(0x203),'attrs':{'fill':'currentColor','d':_0x417fc1(0x107),'fillRule':_0x417fc1(0x1e5),'clipRule':_0x417fc1(0x1e5)}}]},F=d['forwardRef'](function(_0x5b0182,_0x1692b5){const _0x28e32c=_0x417fc1;return d[_0x28e32c(0x184)](_,Object[_0x28e32c(0x243)]({},_0x5b0182,{'id':'help-icon','ref':_0x1692b5,'icon':fe}));});F[_0x417fc1(0x130)]=_0x417fc1(0x142);function _0x4d62(_0x37c416,_0x5b8b9f){const _0x194456=_0x1944();return _0x4d62=function(_0x4d6243,_0x5497e0){_0x4d6243=_0x4d6243-0xf5;let _0x1dfe49=_0x194456[_0x4d6243];return _0x1dfe49;},_0x4d62(_0x37c416,_0x5b8b9f);}const pe={'tag':_0x417fc1(0x253),'attrs':{'xmlns':_0x417fc1(0x164),'fill':_0x417fc1(0x28a),'viewBox':'0\x200\x2016\x2016','width':_0x417fc1(0x169),'height':_0x417fc1(0x169)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x417fc1(0x203),'attrs':{'stroke':_0x417fc1(0x274),'d':_0x417fc1(0x156),'strokeLinecap':'round','strokeLinejoin':_0x417fc1(0xfb),'strokeWidth':1.2}}]},{'tag':_0x417fc1(0x1d0),'attrs':{},'children':[{'tag':_0x417fc1(0x1a4),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x417fc1(0x203),'attrs':{'fill':_0x417fc1(0x1f2),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x417fc1(0x1ff)]},Y=d[_0x417fc1(0x122)](function(_0x39bd97,_0x1f8a60){const _0x415ad1=_0x417fc1;return d[_0x415ad1(0x184)](_,Object[_0x415ad1(0x243)]({},_0x39bd97,{'id':_0x415ad1(0x1ca),'ref':_0x1f8a60,'icon':pe}));});Y[_0x417fc1(0x130)]=_0x417fc1(0x153);const he={'tag':_0x417fc1(0x253),'attrs':{'xmlns':_0x417fc1(0x164),'fill':_0x417fc1(0x28a),'viewBox':_0x417fc1(0x1f1),'width':_0x417fc1(0x169),'height':_0x417fc1(0x169)},'children':[{'tag':'g','attrs':{'clipPath':_0x417fc1(0x1da)},'children':[{'tag':_0x417fc1(0x203),'attrs':{'stroke':_0x417fc1(0x274),'d':_0x417fc1(0x229),'strokeLinecap':_0x417fc1(0xfb),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x417fc1(0x1d0),'attrs':{},'children':[{'tag':_0x417fc1(0x1a4),'attrs':{'id':_0x417fc1(0x186)},'children':[{'tag':_0x417fc1(0x203),'attrs':{'fill':_0x417fc1(0x1f2),'d':_0x417fc1(0x1d1),'transform':_0x417fc1(0x18f)}}]}]}],'defIds':[_0x417fc1(0x186)]},q=d['forwardRef'](function(_0x35a7c8,_0x22ea9c){const _0x239967=_0x417fc1;return d['createElement'](_,Object[_0x239967(0x243)]({},_0x35a7c8,{'id':_0x239967(0x129),'ref':_0x22ea9c,'icon':he}));});q[_0x417fc1(0x130)]=_0x417fc1(0x1fb);function V(_0x7d4398){const _0x1916ce=_0x417fc1;var _0x308bfd,_0x128652;const {mcpCoreConfig:_0x18c041,onSave:_0x4afed8,loading:_0x38b628=!0x1,config:_0x1f5ff4,connectionStatus$:_0x3ab1ad,connectionError$:_0x13fb14,currentApiKey$:_0x5235ab,currentSessionId$:_0x1c7e61}=_0x7d4398,_0x22ea9e=v[_0x1916ce(0x21e)](u[_0x1916ce(0x10a)]),_0x45de82=v[_0x1916ce(0x10f)](_0x3ab1ad,s[_0x1916ce(0x11e)][_0x1916ce(0x24d)]),_0xca95a8=v[_0x1916ce(0x10f)](_0x13fb14,s[_0x1916ce(0x131)][_0x1916ce(0x1a6)]),_0x4cf841=v[_0x1916ce(0x10f)](_0x1c7e61,''),_0x4b6f47=v[_0x1916ce(0x10f)](_0x5235ab,''),[_0x49c2c8,_0x472ce9]=d['useState'](_0x4b6f47||''),_0x3e7c55=!0x0,_0x352e50=_0x1f5ff4['showDeveloperTools']&&_0x18c041[_0x1916ce(0x1c3)]&&(_0x18c041['mcpServerUrl'][_0x1916ce(0x25e)](_0x1916ce(0x19a))||_0x18c041[_0x1916ce(0x1c3)][_0x1916ce(0x25e)](_0x1916ce(0x16b))),_0x5211ed=(_0x308bfd=_0x18c041[_0x1916ce(0x1c3)])==null?void 0x0:_0x308bfd[_0x1916ce(0x25e)]('univer.plus'),_0x297372=(_0x128652=_0x18c041[_0x1916ce(0x1c3)])==null?void 0x0:_0x128652[_0x1916ce(0x25e)](_0x1916ce(0x16b)),_0x1a75bf=_0x5211ed?_0x1916ce(0x27d):_0x1916ce(0x290),_0x3f70c7=_0x1f5ff4[_0x1916ce(0x251)]&&(_0x5211ed||_0x297372),[_0x2d8e04,_0x5c1d2a]=d['useState'](!_0x49c2c8[_0x1916ce(0x120)]()),_0x44f01c=(_0x40fcc7,_0x20267c)=>{const _0x7fc9ba=_0x1916ce;if(_0x20267c===s[_0x7fc9ba(0x131)][_0x7fc9ba(0x102)])return _0x7fc9ba(0x141);switch(_0x40fcc7){case s['MCPConnectionStatus'][_0x7fc9ba(0x193)]:return _0x7fc9ba(0x10d);case s[_0x7fc9ba(0x11e)][_0x7fc9ba(0x1d8)]:case s[_0x7fc9ba(0x11e)][_0x7fc9ba(0x168)]:return _0x7fc9ba(0x254);case s[_0x7fc9ba(0x11e)]['FAILED']:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x7fc9ba(0x26f);}},_0x24fd50=(_0x40df51,_0x216a48)=>{const _0x3736a6=_0x1916ce;if(_0x216a48===s[_0x3736a6(0x131)][_0x3736a6(0x102)])return'univer-bg-red-500';switch(_0x40df51){case s[_0x3736a6(0x11e)]['CONNECTED']:return _0x3736a6(0x1c6);case s[_0x3736a6(0x11e)][_0x3736a6(0x1d8)]:case s[_0x3736a6(0x11e)][_0x3736a6(0x168)]:return _0x3736a6(0x218);case s['MCPConnectionStatus']['FAILED']:return _0x3736a6(0xfe);default:return _0x3736a6(0x1ee);}},_0x4cedf3=_0x335811=>{const _0x33f6b8=_0x1916ce;switch(_0x335811){case s[_0x33f6b8(0x11e)]['CONNECTED']:return _0x22ea9e['t'](_0x33f6b8(0x100));case s['MCPConnectionStatus']['CONNECTING']:return _0x22ea9e['t'](_0x33f6b8(0x1bc));case s[_0x33f6b8(0x11e)][_0x33f6b8(0x236)]:return _0x22ea9e['t'](_0x33f6b8(0x11d));case s[_0x33f6b8(0x11e)]['RETRYING']:return _0x22ea9e['t'](_0x33f6b8(0x11b));default:return _0x22ea9e['t'](_0x33f6b8(0x151));}},_0x416186=_0x34069c=>{const _0x30d4ab=_0x1916ce;switch(_0x34069c){case s[_0x30d4ab(0x131)][_0x30d4ab(0x102)]:return _0x22ea9e['t'](_0x30d4ab(0x1a1));case s[_0x30d4ab(0x131)][_0x30d4ab(0xf5)]:return _0x22ea9e['t'](_0x30d4ab(0x1c1));case s[_0x30d4ab(0x131)]['NETWORK_ERROR']:return _0x22ea9e['t'](_0x30d4ab(0x19b));case s[_0x30d4ab(0x131)]['MAX_RETRIES_EXCEEDED']:return _0x22ea9e['t'](_0x30d4ab(0x258));default:return'';}},_0x249ef7=d[_0x1916ce(0x1b2)](()=>{const _0x1bd053=_0x1916ce,_0x1c90ca={..._0x18c041,'apiKey':_0x49c2c8[_0x1bd053(0x120)](),'enableAuth':_0x3e7c55};_0x4afed8(_0x1c90ca);},[_0x18c041,_0x49c2c8,_0x3e7c55,_0x4afed8]),_0xef685=_0x49c2c8['trim']()[_0x1916ce(0x109)]>0x0;return i['jsxs'](_0x1916ce(0x12f),{'className':_0x1916ce(0x166),'children':[i[_0x1916ce(0x213)]('div',{'className':_0x1916ce(0x27c),'children':i[_0x1916ce(0x197)]('div',{'className':_0x1916ce(0x171),'children':[i['jsx']('div',{'className':_0x1916ce(0x1ba),'children':i[_0x1916ce(0x213)](_0x1916ce(0x24c),{'className':_0x1916ce(0x1b6),'children':'⚙'})}),i['jsx'](_0x1916ce(0x12f),{'children':i[_0x1916ce(0x213)]('p',{'className':_0x1916ce(0xf6),'children':_0x22ea9e['t']('mcpConfig.description')})})]})}),i[_0x1916ce(0x197)](_0x1916ce(0x12f),{'className':_0x1916ce(0x265),'children':[i[_0x1916ce(0x213)]('div',{'className':f[_0x1916ce(0x147)](_0x1916ce(0xfd),_0x44f01c(_0x45de82,_0xca95a8)),'children':i[_0x1916ce(0x197)]('div',{'className':_0x1916ce(0x1ea),'children':[i['jsx'](_0x1916ce(0x12f),{'className':f[_0x1916ce(0x147)](_0x1916ce(0x1a8),_0x24fd50(_0x45de82,_0xca95a8))}),i['jsx'](_0x1916ce(0x24c),{'className':_0x1916ce(0x222),'children':_0x4cedf3(_0x45de82)})]})}),_0xca95a8!==s[_0x1916ce(0x131)][_0x1916ce(0x1a6)]&&(_0x45de82===s['MCPConnectionStatus'][_0x1916ce(0x236)]||_0xca95a8===s['MCPConnectionError'][_0x1916ce(0x102)])&&i['jsx'](_0x1916ce(0x12f),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':i['jsxs'](_0x1916ce(0x12f),{'className':_0x1916ce(0x135),'children':[i[_0x1916ce(0x213)](_0x1916ce(0x24c),{'className':_0x1916ce(0x110),'children':'⚠️'}),i[_0x1916ce(0x213)]('p',{'className':_0x1916ce(0x247),'children':_0x416186(_0xca95a8)})]})})]}),i[_0x1916ce(0x213)](_0x1916ce(0x12f),{'className':_0x1916ce(0x220),'children':i[_0x1916ce(0x197)](_0x1916ce(0x12f),{'className':_0x1916ce(0x165),'children':[i[_0x1916ce(0x197)](_0x1916ce(0x12f),{'className':_0x1916ce(0x205),'children':[i[_0x1916ce(0x197)]('label',{'className':_0x1916ce(0x273),'children':[i[_0x1916ce(0x213)](_0x1916ce(0x24c),{'children':'🔑'}),'\x20',_0x22ea9e['t'](_0x1916ce(0x182)),i['jsx']('span',{'className':_0x1916ce(0x167),'children':'*'}),_0x352e50&&i[_0x1916ce(0x213)]('a',{'className':_0x1916ce(0x16e),'title':_0x22ea9e['t']('mcpConfig.apiApplyInfo.title'),'role':_0x1916ce(0x1df),'onClick':()=>_0x5c1d2a(!0x0),'children':i['jsx'](F,{})})]}),i[_0x1916ce(0x213)](f[_0x1916ce(0x260)],{'type':_0x1916ce(0x16a),'placeholder':_0x22ea9e['t'](_0x1916ce(0x225)),'value':_0x49c2c8,'disabled':_0x38b628,'autoComplete':_0x1916ce(0x26e),'onChange':_0x472ce9}),i[_0x1916ce(0x213)]('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x22ea9e['t']('mcpConfig.apiKeyHint')})]}),_0x352e50&&_0x2d8e04&&i['jsxs']('div',{'className':_0x1916ce(0x24f),'children':[i['jsx']('a',{'className':_0x1916ce(0x155),'role':_0x1916ce(0x1df),'onClick':()=>_0x5c1d2a(!0x1),'children':i['jsx'](B,{'className':_0x1916ce(0x1b3)})}),i[_0x1916ce(0x197)](_0x1916ce(0x12f),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[i['jsx']('div',{'className':_0x1916ce(0x17a),'children':i[_0x1916ce(0x213)](_0x1916ce(0x24c),{'className':_0x1916ce(0x143),'children':'🚀'})}),i['jsxs'](_0x1916ce(0x12f),{'className':_0x1916ce(0x1f4),'children':[i[_0x1916ce(0x213)]('h4',{'className':_0x1916ce(0x280),'children':_0x22ea9e['t'](_0x1916ce(0x246))}),i['jsx']('p',{'className':_0x1916ce(0x25d),'children':_0x22ea9e['t']('mcpConfig.apiApplyInfo.description')}),i[_0x1916ce(0x213)](_0x1916ce(0x12f),{'className':_0x1916ce(0x1ad),'children':_0x3f70c7&&i[_0x1916ce(0x197)]('a',{'className':_0x1916ce(0x259),'href':_0x1a75bf,'target':'_blank','rel':_0x1916ce(0x281),'children':[i[_0x1916ce(0x213)](_0x1916ce(0x24c),{'children':'🤖'}),_0x22ea9e['t'](_0x1916ce(0x1e1)),i['jsx']('span',{'className':_0x1916ce(0x140),'children':'↗'})]})}),i[_0x1916ce(0x197)](_0x1916ce(0x12f),{'className':_0x1916ce(0x289),'children':['✨','\x20',_0x22ea9e['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x1f5ff4[_0x1916ce(0x251)]&&i[_0x1916ce(0x197)]('div',{'className':_0x1916ce(0x268),'children':[i[_0x1916ce(0x197)]('h4',{'className':_0x1916ce(0x233),'children':[i[_0x1916ce(0x213)](_0x1916ce(0x24c),{'children':'🔗'}),'\x20',_0x22ea9e['t'](_0x1916ce(0x245))]}),i['jsxs'](_0x1916ce(0x12f),{'className':_0x1916ce(0x272),'children':[i[_0x1916ce(0x197)]('div',{'className':_0x1916ce(0x188),'children':[i[_0x1916ce(0x213)]('p',{'className':_0x1916ce(0x1a9),'children':_0x22ea9e['t'](_0x1916ce(0x209))}),i[_0x1916ce(0x197)](_0x1916ce(0x12f),{'className':'univer-space-y-2','children':[i[_0x1916ce(0x213)](_0x1916ce(0x12f),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x22ea9e['t'](_0x1916ce(0xf9))}),i[_0x1916ce(0x197)](_0x1916ce(0x12f),{'className':_0x1916ce(0x12d),'children':[i[_0x1916ce(0x197)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x1916ce(0x213)](_0x1916ce(0x24c),{'className':_0x1916ce(0x1a2),'children':'1'}),_0x22ea9e['t'](_0x1916ce(0x21f))]}),i['jsxs'](_0x1916ce(0x12f),{'className':_0x1916ce(0x1ea),'children':[i['jsx'](_0x1916ce(0x24c),{'className':_0x1916ce(0x1a2),'children':'2'}),_0x22ea9e['t']('mcpConfig.configStep2')]}),i[_0x1916ce(0x197)]('div',{'className':_0x1916ce(0x1ea),'children':[i[_0x1916ce(0x213)]('span',{'className':_0x1916ce(0x1a2),'children':'3'}),_0x22ea9e['t'](_0x1916ce(0x22a))]})]})]})]}),i['jsxs'](_0x1916ce(0x12f),{'className':_0x1916ce(0x205),'children':[i[_0x1916ce(0x213)]('div',{'className':_0x1916ce(0x12a),'children':_0x1916ce(0x1ed)}),i['jsx'](_0x1916ce(0x12f),{'className':_0x1916ce(0x17e),'children':i['jsx']('pre',{'className':_0x1916ce(0x1f5),'children':JSON[_0x1916ce(0x1bb)]({'mcpServers':{'univer':{'url':_0x1916ce(0x138)+(_0x4cf841||_0x1916ce(0x235)),'type':_0x1916ce(0x117),'headers':{'Authorization':_0x1916ce(0x21b)+(_0x49c2c8||_0x1916ce(0x114))}}}},null,0x2)})})]}),i[_0x1916ce(0x197)](_0x1916ce(0x12f),{'className':_0x1916ce(0x188),'children':[i[_0x1916ce(0x213)](_0x1916ce(0x12f),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x22ea9e['t'](_0x1916ce(0x1e0))}),i[_0x1916ce(0x197)](_0x1916ce(0x12f),{'className':_0x1916ce(0x205),'children':[i['jsxs'](_0x1916ce(0x12f),{'className':_0x1916ce(0x14f),'children':[i[_0x1916ce(0x213)](_0x1916ce(0x12f),{'className':_0x1916ce(0x23e)}),i[_0x1916ce(0x197)](_0x1916ce(0x12f),{'className':_0x1916ce(0x223),'children':[i[_0x1916ce(0x213)](_0x1916ce(0x12f),{'className':_0x1916ce(0x15f),'children':'univer_session_id:'}),i[_0x1916ce(0x213)]('div',{'className':_0x1916ce(0x15c),'children':_0x22ea9e['t']('mcpConfig.sessionIdDescription')})]})]}),i[_0x1916ce(0x197)](_0x1916ce(0x12f),{'className':_0x1916ce(0x14f),'children':[i[_0x1916ce(0x213)](_0x1916ce(0x12f),{'className':_0x1916ce(0x23e)}),i[_0x1916ce(0x197)](_0x1916ce(0x12f),{'className':_0x1916ce(0x223),'children':[i['jsx'](_0x1916ce(0x12f),{'className':_0x1916ce(0x15f),'children':_0x1916ce(0x277)}),i[_0x1916ce(0x213)](_0x1916ce(0x12f),{'className':_0x1916ce(0x15c),'children':_0x22ea9e['t'](_0x1916ce(0x231))})]})]})]})]})]})]}),i[_0x1916ce(0x213)](f[_0x1916ce(0x19f)],{'onClick':_0x249ef7,'disabled':!_0xef685||_0x38b628,'className':_0x1916ce(0x159),'children':_0x38b628?i['jsxs'](_0x1916ce(0x24c),{'className':_0x1916ce(0x1ea),'children':[i[_0x1916ce(0x213)](_0x1916ce(0x24c),{'children':'⟲'}),_0x22ea9e['t'](_0x1916ce(0x14b))]}):i['jsxs'](_0x1916ce(0x24c),{'className':_0x1916ce(0x1ea),'children':[i[_0x1916ce(0x213)](H,{}),_0x22ea9e['t']('mcpConfig.save')]})}),i['jsx'](_0x1916ce(0x12f),{'className':_0x1916ce(0x267),'children':i['jsxs'](_0x1916ce(0x12f),{'className':_0x1916ce(0x221),'children':[i[_0x1916ce(0x213)](_0x1916ce(0x24c),{'className':_0x1916ce(0x146),'children':'💡'}),i[_0x1916ce(0x197)](_0x1916ce(0x12f),{'className':_0x1916ce(0x1dc),'children':[i[_0x1916ce(0x213)](_0x1916ce(0x12f),{'className':_0x1916ce(0x27a),'children':_0x1916ce(0x111)}),i[_0x1916ce(0x197)]('div',{'children':['•',_0x22ea9e['t'](_0x1916ce(0x14c))]}),i['jsxs'](_0x1916ce(0x12f),{'children':['•',_0x22ea9e['t'](_0x1916ce(0x189))]})]})]})})]})})]});}const P=_0x417fc1(0x154),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x417fc1(0x25f)],xe=(_0xf1099,_0xa1fb3e,_0x316f94,_0x3cf651)=>{const _0x535da7=_0x417fc1;for(var _0x6334f9=_0x3cf651>0x1?void 0x0:_0x3cf651?me(_0xa1fb3e,_0x316f94):_0xa1fb3e,_0xae48f0=_0xf1099[_0x535da7(0x109)]-0x1,_0x41a57c;_0xae48f0>=0x0;_0xae48f0--)(_0x41a57c=_0xf1099[_0xae48f0])&&(_0x6334f9=_0x41a57c(_0x6334f9)||_0x6334f9);return _0x6334f9;},g=(_0x22d667,_0x1a7076)=>(_0xcaade6,_0x3b6fdc)=>_0x1a7076(_0xcaade6,_0x3b6fdc,_0x22d667);const O=_0x417fc1(0x1aa),D=_0x417fc1(0x219);exports['MCPConfigUIController']=class extends u[_0x417fc1(0x19e)]{constructor(_0x1ec713,_0x584d6c,_0x1e2df0,_0x1eb3b3,_0x305607,_0x1d700e,_0x66c788,_0x1fa3fa,_0x3a9f38,_0x48de1b){const _0x246737=_0x417fc1;super(),I(this,_0x246737(0x248),new M['BehaviorSubject'](!0x1)),I(this,_0x246737(0x173),new M[(_0x246737(0x152))]({})),I(this,_0x246737(0x1d6),new M[(_0x246737(0x152))]({})),I(this,_0x246737(0x116),new M[(_0x246737(0x152))]('')),I(this,_0x246737(0x137),async _0x190f8d=>{const _0x35199d=_0x246737;var _0x275961,_0x4f438b;this['_loading$'][_0x35199d(0x1ce)](!0x0);try{const _0x439747=await this['_validateConfig'](_0x190f8d);if(!_0x439747[_0x35199d(0x252)]){this[_0x35199d(0x124)][_0x35199d(0x199)]({'type':f[_0x35199d(0x149)][_0x35199d(0x1be)],'content':_0x439747[_0x35199d(0x14a)]||this[_0x35199d(0x216)]['t'](_0x35199d(0x191))});return;}_0x190f8d['apiKey']?await this[_0x35199d(0x1bf)]['setItem'](O,_0x190f8d[_0x35199d(0x1cb)][_0x35199d(0x120)]()):await this[_0x35199d(0x1bf)][_0x35199d(0x211)](O),this[_0x35199d(0x116)][_0x35199d(0x1ce)](((_0x275961=_0x190f8d['apiKey'])==null?void 0x0:_0x275961['trim']())||''),this['_mcpConnectionController'][_0x35199d(0x104)]({'Authorization':_0x35199d(0x21b)+((_0x4f438b=_0x190f8d['apiKey'])==null?void 0x0:_0x4f438b[_0x35199d(0x120)]())}),this[_0x35199d(0x124)][_0x35199d(0x199)]({'type':f[_0x35199d(0x149)]['Success'],'content':this[_0x35199d(0x216)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x456084=_0x35199d;this['_dialogService'][_0x456084(0x1a7)](D);},0x320);}catch(_0x224386){this[_0x35199d(0x113)]['error'](_0x35199d(0x118),_0x224386),this['_messageService']['show']({'type':f[_0x35199d(0x149)][_0x35199d(0x1be)],'content':this[_0x35199d(0x216)]['t'](_0x35199d(0x1e4))});}finally{this[_0x35199d(0x248)][_0x35199d(0x1ce)](!0x1);}}),(this[_0x246737(0x23c)]=_0x1ec713,this[_0x246737(0x204)]=_0x584d6c,this[_0x246737(0x158)]=_0x1e2df0,this[_0x246737(0x1bf)]=_0x1eb3b3,this['_dialogService']=_0x305607,this[_0x246737(0x124)]=_0x1d700e,this[_0x246737(0x1cd)]=_0x66c788,this[_0x246737(0x216)]=_0x1fa3fa,this[_0x246737(0x113)]=_0x3a9f38,this['_mcpConnectionController']=_0x48de1b,this['_initConfigSync'](),this[_0x246737(0x1f7)](),this['_registerComponent']());}['showConfigPanel'](){const _0x1f2598=_0x417fc1,_0x219900=this[_0x1f2598(0x158)][_0x1f2598(0x1d2)](P);_0x219900!=null&&_0x219900[_0x1f2598(0x251)]&&this[_0x1f2598(0x20c)][_0x1f2598(0x22c)]({'id':D,'title':{'title':this[_0x1f2598(0x216)]['t'](_0x1f2598(0x178))},'children':{'label':_0x1f2598(0x279)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x59663b=_0x1f2598;this[_0x59663b(0x20c)][_0x59663b(0x1a7)](D);}});}[_0x417fc1(0x112)](){const _0x4067f0=_0x417fc1;return this['_mcpCoreConfig$'][_0x4067f0(0x284)];}[_0x417fc1(0x28c)](){const _0x4e4247=_0x417fc1;this[_0x4e4247(0x28f)](this['_componentManager'][_0x4e4247(0x20d)](_0x4e4247(0x279),this[_0x4e4247(0x234)]()));}['_createConfigPanelComponent'](){const _0x356d4b=_0x417fc1;return v[_0x356d4b(0x1b0)](()=>{const _0x4935a6=_0x356d4b;var _0x4915f5,_0x4680a2,_0x58a10a;return i[_0x4935a6(0x213)](V,{'config':this[_0x4935a6(0x1d6)]['value'],'mcpCoreConfig':this[_0x4935a6(0x173)][_0x4935a6(0x284)],'currentApiKey$':this[_0x4935a6(0x116)],'onSave':this[_0x4935a6(0x137)],'loading':this[_0x4935a6(0x248)][_0x4935a6(0x284)],'connectionStatus$':(_0x4915f5=this[_0x4935a6(0x144)])==null?void 0x0:_0x4915f5[_0x4935a6(0x1ef)],'connectionError$':(_0x4680a2=this['_mcpConnectionController'])==null?void 0x0:_0x4680a2[_0x4935a6(0x1ec)],'currentSessionId$':(_0x58a10a=this['_mcpConnectionController'])==null?void 0x0:_0x58a10a['sessionId$']});},this[_0x356d4b(0x23c)]);}[_0x417fc1(0x1a5)](){const _0x4cd5a4=_0x417fc1;this[_0x4cd5a4(0x28f)](this[_0x4cd5a4(0x158)][_0x4cd5a4(0x1b8)](s[_0x4cd5a4(0x22d)])['subscribe'](_0x2fa26d=>{const _0x1f9083=_0x4cd5a4;this[_0x1f9083(0x173)][_0x1f9083(0x1ce)](_0x2fa26d||{});}));const _0xf8754b=this[_0x4cd5a4(0x158)][_0x4cd5a4(0x1d2)](s[_0x4cd5a4(0x22d)]);this[_0x4cd5a4(0x173)][_0x4cd5a4(0x1ce)](_0xf8754b||{}),this[_0x4cd5a4(0x28f)](this[_0x4cd5a4(0x158)][_0x4cd5a4(0x1b8)](P)['subscribe'](_0x192f11=>{const _0x769a7e=_0x4cd5a4;this[_0x769a7e(0x1d6)][_0x769a7e(0x1ce)](_0x192f11||{});}));const _0x41f62e=this[_0x4cd5a4(0x158)][_0x4cd5a4(0x1d2)](P);this[_0x4cd5a4(0x1d6)][_0x4cd5a4(0x1ce)](_0x41f62e||{});}async[_0x417fc1(0x1f7)](){const _0x6f4c34=_0x417fc1,_0x2367e2=this[_0x6f4c34(0x158)][_0x6f4c34(0x1d2)](P);if(!(_0x2367e2!=null&&_0x2367e2[_0x6f4c34(0x251)]))return;const _0x358b76=await this['_localStorageService'][_0x6f4c34(0x1fd)](O);_0x358b76&&(this[_0x6f4c34(0x144)][_0x6f4c34(0x104)]({'Authorization':_0x6f4c34(0x21b)+_0x358b76}),this[_0x6f4c34(0x116)][_0x6f4c34(0x1ce)](_0x358b76));}async['_validateConfig'](_0x30b216){const _0x38aa87=_0x417fc1;if(!_0x30b216[_0x38aa87(0x1cb)]||_0x30b216[_0x38aa87(0x1cb)][_0x38aa87(0x120)]()[_0x38aa87(0x109)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x38aa87(0x216)]['t'](_0x38aa87(0x132))};if(_0x30b216[_0x38aa87(0x1cb)][_0x38aa87(0x120)]()[_0x38aa87(0x109)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x38aa87(0x232))};try{const _0x4deb15=await this[_0x38aa87(0x23c)]['get'](s[_0x38aa87(0x28b)])[_0x38aa87(0x1fc)](_0x30b216[_0x38aa87(0x1cb)][_0x38aa87(0x120)]());return _0x4deb15[_0x38aa87(0x252)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x4deb15[_0x38aa87(0x1b4)]||this[_0x38aa87(0x216)]['t'](_0x38aa87(0x286))};}catch(_0x47639d){return console[_0x38aa87(0x26b)](_0x38aa87(0x1e8),_0x47639d),{'isValid':!0x0};}}},exports[_0x417fc1(0x17b)]=xe([g(0x0,u[_0x417fc1(0x157)](u['Injector'])),g(0x1,v[_0x417fc1(0x183)]),g(0x2,u[_0x417fc1(0x16f)]),g(0x3,u[_0x417fc1(0x1b9)]),g(0x4,v['IDialogService']),g(0x5,v['IMessageService']),g(0x6,u[_0x417fc1(0x157)](v[_0x417fc1(0x127)])),g(0x7,u[_0x417fc1(0x157)](u['LocaleService'])),g(0x8,u['ILogService']),g(0x9,u[_0x417fc1(0x157)](s[_0x417fc1(0x28b)]))],exports['MCPConfigUIController']);const b={'id':_0x417fc1(0x192),'type':u['CommandType'][_0x417fc1(0x207)],'handler':async(_0x1dbc98,_0x51463c)=>(_0x1dbc98[_0x417fc1(0x26d)](exports['MCPConfigUIController'])[_0x417fc1(0x1d5)](),!0x0)};function Z(_0x191014,_0x19da5a){const _0x7b51dc=_0x417fc1;switch(_0x191014){case s[_0x7b51dc(0x11e)][_0x7b51dc(0x24d)]:return _0x7b51dc(0x190);case s[_0x7b51dc(0x11e)][_0x7b51dc(0x1d8)]:return _0x7b51dc(0x194);case s[_0x7b51dc(0x11e)][_0x7b51dc(0x193)]:return _0x7b51dc(0x121);case s[_0x7b51dc(0x11e)][_0x7b51dc(0x236)]:switch(_0x19da5a){case s[_0x7b51dc(0x131)][_0x7b51dc(0x102)]:return _0x7b51dc(0x201);case s['MCPConnectionError'][_0x7b51dc(0xf5)]:return _0x7b51dc(0x23d);case s[_0x7b51dc(0x131)][_0x7b51dc(0x16d)]:return _0x7b51dc(0x16c);case s[_0x7b51dc(0x131)][_0x7b51dc(0x1f3)]:return _0x7b51dc(0x11f);default:return'mcpStatus.failed';}case s[_0x7b51dc(0x11e)][_0x7b51dc(0x168)]:return _0x7b51dc(0x26a);default:return _0x7b51dc(0x18c);}}function Se(_0x584b2b,_0x300fd6,_0x3a3062,_0x1b46b7=!0x0){const _0x2c95d4=_0x417fc1,_0x40a3b1=Z(_0x584b2b,_0x300fd6),_0x4d9fc6=_0x3a3062['t'](_0x40a3b1);return _0x1b46b7?_0x584b2b===s[_0x2c95d4(0x11e)][_0x2c95d4(0x24d)]&&_0x300fd6===s[_0x2c95d4(0x131)][_0x2c95d4(0x102)]?_0x4d9fc6+_0x2c95d4(0x202)+_0x3a3062['t'](_0x2c95d4(0x119)):_0x584b2b===s[_0x2c95d4(0x11e)]['CONNECTED']?''+_0x4d9fc6:_0x584b2b===s[_0x2c95d4(0x11e)][_0x2c95d4(0x24d)]||_0x584b2b===s['MCPConnectionStatus'][_0x2c95d4(0x236)]?_0x4d9fc6+_0x2c95d4(0x202)+_0x3a3062['t']('mcpStatus.clickToConnect'):_0x4d9fc6:_0x4d9fc6;}function Pe(_0x5db2a8){const _0x467f6=_0x417fc1;switch(_0x5db2a8){case s[_0x467f6(0x11e)][_0x467f6(0x193)]:return'univer-text-green-500';case s[_0x467f6(0x11e)][_0x467f6(0x1d8)]:case s[_0x467f6(0x11e)]['RETRYING']:return _0x467f6(0x1b5);case s[_0x467f6(0x11e)][_0x467f6(0x236)]:case s[_0x467f6(0x11e)][_0x467f6(0x24d)]:return _0x467f6(0x167);default:return _0x467f6(0x172);}}function W(_0xb6ef54){const _0xa8d942=_0x417fc1,{status$:_0xe8f422,error$:_0x5731af,onConfigure:_0x18dc7f,showClickable:_0x61b49b=!0x0}=_0xb6ef54,_0x23172a=v[_0xa8d942(0x10f)](_0xe8f422,s[_0xa8d942(0x11e)][_0xa8d942(0x24d)]),_0x6de7a8=v[_0xa8d942(0x10f)](_0x5731af,s[_0xa8d942(0x131)][_0xa8d942(0x1a6)]),_0x36d978=v[_0xa8d942(0x21e)](u[_0xa8d942(0x10a)]),_0xecb09d=_0x23172a===s[_0xa8d942(0x11e)][_0xa8d942(0x193)];_0x23172a===s[_0xa8d942(0x11e)][_0xa8d942(0x1d8)]||s[_0xa8d942(0x11e)][_0xa8d942(0x168)];const _0x4f9347=_0x36d978['t'](Z(_0x23172a,_0x6de7a8)),_0x5b4b79=Se(_0x23172a,_0x6de7a8,_0x36d978,_0x61b49b),_0x484634=Pe(_0x23172a),_0x15343f=_0xecb09d?i[_0xa8d942(0x213)](q,{}):i[_0xa8d942(0x213)](Y,{}),_0xb2a03b=d['useCallback'](()=>{_0x61b49b&&_0x18dc7f&&_0x18dc7f();},[_0x61b49b,_0x18dc7f]);function _0x34a1dd(){const _0x55abcf=_0xa8d942;return i[_0x55abcf(0x197)](_0x55abcf(0x12f),{'className':f['clsx']('univer-flex\x20univer-items-center',_0x61b49b&&_0x18dc7f&&_0x55abcf(0x18a)),'role':_0x55abcf(0x1df),'onClick':_0x61b49b&&_0x18dc7f?_0xb2a03b:void 0x0,'children':[i[_0x55abcf(0x213)](_0x55abcf(0x12f),{'className':f['clsx'](_0x55abcf(0x249),_0x484634),'children':_0x15343f}),i[_0x55abcf(0x213)]('div',{'className':_0x55abcf(0x1c8),'children':_0x4f9347})]});}return i[_0xa8d942(0x213)](f['Tooltip'],{'title':_0x5b4b79,'placement':_0xa8d942(0x176),'children':_0x34a1dd()});}var Ie=Object[_0x417fc1(0x25f)],_e=(_0x33b041,_0x3a36c2,_0x3d9c95,_0x275f88)=>{for(var _0x294e5b=_0x275f88>0x1?void 0x0:_0x275f88?Ie(_0x3a36c2,_0x3d9c95):_0x3a36c2,_0x187f56=_0x33b041['length']-0x1,_0x53fe52;_0x187f56>=0x0;_0x187f56--)(_0x53fe52=_0x33b041[_0x187f56])&&(_0x294e5b=_0x53fe52(_0x294e5b)||_0x294e5b);return _0x294e5b;},N=(_0x352e98,_0x297528)=>(_0xa57618,_0x45f540)=>_0x297528(_0xa57618,_0x45f540,_0x352e98);exports[_0x417fc1(0x174)]=class extends u[_0x417fc1(0x19e)]{constructor(_0x1a73e7,_0x40ebfa,_0x39eac,_0x128738){const _0x1c3435=_0x417fc1;super(),this[_0x1c3435(0x23c)]=_0x1a73e7,this[_0x1c3435(0x1a0)]=_0x40ebfa,this['_uiPartsService']=_0x39eac,this[_0x1c3435(0x158)]=_0x128738,this['_initAutoConnect'](),this['_initStatusComponent']();}[_0x417fc1(0x24a)](){const _0x512988=_0x417fc1,_0x17b82e=this[_0x512988(0x158)][_0x512988(0x1d2)](P);_0x17b82e!=null&&_0x17b82e[_0x512988(0x251)]&&(this[_0x512988(0x1a0)][_0x512988(0x11a)]=!0x1);}[_0x417fc1(0x262)](){const _0x54d50a=_0x417fc1,_0xa7c557=this[_0x54d50a(0x158)][_0x54d50a(0x1d2)](P);(_0xa7c557==null?void 0x0:_0xa7c557[_0x54d50a(0x1d4)])!==!0x1&&this[_0x54d50a(0x28f)](this[_0x54d50a(0x204)]['registerComponent'](v[_0x54d50a(0x1ae)][_0x54d50a(0x242)],()=>{const _0x160fa2=_0x54d50a;var _0x55bc60;return v[_0x160fa2(0x1b0)](ye({'status$':this[_0x160fa2(0x1a0)][_0x160fa2(0x1ef)],'error$':this[_0x160fa2(0x1a0)][_0x160fa2(0x1ec)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x55bc60=_0xa7c557==null?void 0x0:_0xa7c557[_0x160fa2(0x251)])!=null?_0x55bc60:!0x1}),this[_0x160fa2(0x23c)]);}));}['_handleConfigure'](){const _0x1d868=_0x417fc1;this[_0x1d868(0x23c)][_0x1d868(0x26d)](exports['MCPConfigUIController'])[_0x1d868(0x1d5)]();}},exports['MCPConnectionUIController']=_e([N(0x0,u['Inject'](u[_0x417fc1(0x1ab)])),N(0x1,u[_0x417fc1(0x157)](s[_0x417fc1(0x28b)])),N(0x2,v[_0x417fc1(0x183)]),N(0x3,u[_0x417fc1(0x16f)])],exports[_0x417fc1(0x174)]);function ye(_0x54ac48){const {status$:_0x3917ea,error$:_0x250b30,onConfigure:_0x577ed3,showClickable:_0x57bdef}=_0x54ac48;return function(){const _0x500dfd=_0x4d62;return i[_0x500dfd(0x213)](W,{'status$':_0x3917ea,'error$':_0x250b30,'onConfigure':_0x577ed3,'showClickable':_0x57bdef});};}function Me(_0x2f5d6){const _0x23ff19=_0x417fc1;return{'id':b['id'],'type':v[_0x23ff19(0x1f8)][_0x23ff19(0x162)],'icon':'MenuIcon','title':_0x23ff19(0x178),'tooltip':_0x23ff19(0x178)};}const Ne={[v[_0x417fc1(0x180)][_0x417fc1(0x241)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object['getOwnPropertyDescriptor'],je=(_0x268e11,_0x52a6bc,_0x59c7cf,_0x16a66d)=>{const _0x149506=_0x417fc1;for(var _0x5bb0c0=_0x16a66d>0x1?void 0x0:_0x16a66d?be(_0x52a6bc,_0x59c7cf):_0x52a6bc,_0x5a145e=_0x268e11[_0x149506(0x109)]-0x1,_0x47140a;_0x5a145e>=0x0;_0x5a145e--)(_0x47140a=_0x268e11[_0x5a145e])&&(_0x5bb0c0=_0x47140a(_0x5bb0c0)||_0x5bb0c0);return _0x5bb0c0;},z=(_0x275c7a,_0x2a1e5b)=>(_0xa6c2d4,_0x4cba0d)=>_0x2a1e5b(_0xa6c2d4,_0x4cba0d,_0x275c7a);exports[_0x417fc1(0x226)]=class extends u[_0x417fc1(0x19e)]{constructor(_0x5d2d9e,_0x103517){const _0x1a2b55=_0x417fc1;super(),this['_commandService']=_0x5d2d9e,this[_0x1a2b55(0x278)]=_0x103517,this[_0x1a2b55(0x1de)](),this[_0x1a2b55(0x115)]();}[_0x417fc1(0x1de)](){const _0x5eb351=_0x417fc1;[b][_0x5eb351(0x12e)](_0x29477d=>{const _0x44ab55=_0x5eb351;this[_0x44ab55(0x28f)](this['_commandService'][_0x44ab55(0x23a)](_0x29477d));});}[_0x417fc1(0x115)](){const _0xa5827f=_0x417fc1;this[_0xa5827f(0x278)][_0xa5827f(0x22f)](Ne);}},exports[_0x417fc1(0x226)]=je([z(0x0,u[_0x417fc1(0x1c2)]),z(0x1,v[_0x417fc1(0x17d)])],exports[_0x417fc1(0x226)]);function _0x1944(){const _0x292fce=['MCP:\x20会话\x20ID\x20已被占用','0\x200\x2017\x2016','white','MAX_RETRIES_EXCEEDED','univer-flex-1','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','3640941NOJBxE','_loadStoredApiKey','MenuItemType','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','CloseIcon','OnLineIcon','validateApiKey','getItem','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','off-line-icon_clip0_910_343','Disconnected','mcpStatus.unauthorized','\x20-\x20','path','_uiPartsService','univer-space-y-2','WebSocketService','COMMAND','Enter\x20your\x20API\x20key','mcpConfig.configInstructions','_config','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','_dialogService','register','Univer\x20AI\x20控制台','5796043STaQIq','toString','removeItem','Session\x20ID','jsx','UniverMCPUIPlugin','保存配置','_localeService','UniverMCPPlugin','univer-bg-blue-500','mcp-config-dialog','最大重试次数','Bearer\x20','CheckMarkIcon','什么是\x20API\x20密钥?','useDependency','mcpConfig.configStep1','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-flex\x20univer-gap-3','univer-text-sm\x20univer-font-medium','univer-min-w-0\x20univer-flex-1','MCP\x20Connected','mcpConfig.apiKeyPlaceholder','MCPUIMenuController','点击配置\x20MCP','MCP:\x20Network\x20Error','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','Get\x20your\x20API\x20key\x20in\x20seconds','open','MCP_PLUGIN_CONFIG_KEY','toStringTag','mergeMenu','setConfig','mcpConfig.authorizationDescription','mcpConfig.validation.apiKeyTooShort','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_createConfigPanelComponent','<SESSION_ID>','FAILED','7MgtYfS','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','会话ID','registerCommand','配置参数:','_injector','mcpStatus.sessionOccupied','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','merge','OTHERS','HEADER_MENU','assign','API\x20Key','mcpConfig.connectionInfo','mcpConfig.apiApplyInfo.title','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_loading$','univer-mr-2\x20univer-flex\x20univer-text-xl','_initAutoConnect','DependentOn','span','DISCONNECTED','复制以下\x20JSON\x20配置','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','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','showDeveloperTools','isValid','svg','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','MCP\x20连接失败','MCP\x20已断开','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpConfig.connectionError.maxRetriesExceeded','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','colorChannel1','启用身份验证以获得安全连接','symbol','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','includes','getOwnPropertyDescriptor','Input','Enable\x20authentication\x20for\x20secure\x20connections','_initStatusComponent','MCP\x20Connection\x20Failed','权限验证失败,请检查您的\x20API\x20密钥','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','defIds','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','0\x200\x2016\x2016','mcpStatus.retrying','warn','Invalid\x20configuration','get','off','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','MCP\x20Client\x20Configuration','重启您的\x20MCP\x20客户端以使配置生效','univer-space-y-4','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','currentColor','Failed\x20to\x20save\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Authorization:','_menuManagerService','MCPConfigPanel','univer-font-medium','请输入您的\x20API\x20密钥','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','https://console.univer.plus','OpenMCPConfigPanelCommand','488280ctpbhF','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','noopener\x20noreferrer','保存中...','配置步骤:','value','What\x20is\x20API\x20Key?','mcpConfig.validation.invalidApiKey','点击连接\x20MCP','MCP:\x20网络错误','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','none','MCPConnectionController','_registerComponent','重连中...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','disposeWithMe','https://console.univer.ai','SESSION_ID_OCCUPIED','univer-text-sm\x20univer-text-gray-500','MCP_UI_PLUGIN','API\x20key\x20with\x20Bearer\x20prefix.','mcpConfig.configStepTitle','270HpglUo','round','Retrying...','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-bg-red-500','Connecting...','mcpConfig.connectionStatus.connected','defineProperty','UNAUTHORIZED','children','__setCustomHeaders','您的\x20API\x20密钥将在此浏览器中本地存储','API\x20密钥不能为空','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','length','LocaleService','MCP\x20配置','Save\x20Configuration','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','Configuration\x20Steps:','useObservable','univer-shrink-0\x20univer-text-red-500','Configuration\x20Notes:','getCurrentConfig','_logService','<API_KEY>','_initializeMenus','_apiKey$','http','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','mcpStatus.clickToConfigure','enableAutoConnect','mcpConfig.connectionStatus.retrying','Plugin','mcpConfig.connectionStatus.failed','MCPConnectionStatus','mcpStatus.maxRetriesExceeded','trim','mcpStatus.connected','forwardRef','将以下配置添加到您的\x20MCP\x20客户端设置中:','_messageService','带有\x20Bearer\x20前缀的\x20API\x20密钥。','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','ComponentManager','MCP\x20客户端配置','on-line-icon','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','ISocketService','Enable\x20Authentication','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','forEach','div','displayName','MCPConnectionError','mcpConfig.validation.apiKeyRequired','未连接','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-flex\x20univer-items-start\x20univer-gap-2','string','_handleConfigSave','https://mcp.univer.ai/mcp/?univer_session_id=','4516698tZVtsp','map','MCP:\x20Session\x20ID\x20Occupied','fill','45645XHjwPo','MCP\x20重连中...','92inJTKC','univer-text-gray-400','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','HelpIcon','univer-text-blue-600','_mcpConnectionController','enUS','univer-shrink-0\x20univer-text-blue-500','clsx','10BUVRSq','MessageType','errorMessage','mcpConfig.saving','mcpConfig.note1','连接中...','MCP:\x20超出最大重试次数','univer-flex\x20univer-items-start\x20univer-gap-3','useRef','mcpConfig.connectionStatus.disconnected','BehaviorSubject','OffLineIcon','mcp-ui.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','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','Inject','_configService','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','9808eRWgPC','xlink:href','univer-text-xs\x20univer-text-gray-500','close-icon','univerjs-icon\x20univerjs-icon-','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','Copy\x20the\x20JSON\x20configuration\x20below','BUTTON','attrs','http://www.w3.org/2000/svg','univer-space-y-5','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','univer-text-red-500','RETRYING','1em','text','univer.ai','mcpStatus.networkError','NETWORK_ERROR','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','IConfigService','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-flex\x20univer-items-center\x20univer-gap-3','univer-text-gray-500','_mcpCoreConfig$','MCPConnectionUIController','MCP\x20Disconnected','bottom','配置保存成功','mcpConfig.title','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','MCPConfigUIController','Configuration\x20Parameters:','IMenuManagerService','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','has','RibbonStartGroup','MCP\x20Unknown\x20Status','mcpConfig.apiKey','IUIPartsService','createElement','onStarting','on-line-icon_clip0_910_349','zhCN','univer-space-y-3','mcpConfig.note2','\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','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpStatus.unknown','API\x20密钥无效,请检查密钥是否正确','Click\x20to\x20connect\x20MCP','translate(.97)','mcpStatus.disconnected','mcpConfig.validation.invalidConfig','mcp-ui.command.openConfigPanel','CONNECTED','mcpStatus.connecting','pluginName','current','jsxs','entries','show','univer.plus','mcpConfig.connectionError.networkError','API\x20密钥长度至少需要\x2010\x20位','MCP\x20Retrying...','Disposable','Button','_connectionController','mcpConfig.connectionError.unauthorized','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','Max\x20Retries','clipPath','_initConfigSync','NONE','close','univer-size-2\x20univer-rounded-full','univer-text-xs\x20univer-text-gray-600','mcp.apiKey','Injector','289193ePBHBV','univer-flex\x20univer-flex-wrap\x20univer-gap-2','BuiltInUIPart','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','connectInjector','tag','useCallback','univer-size-4','error','univer-text-yellow-500','univer-text-white','会话\x20ID\x20已被占用,请稍后再试','subscribeConfigValue$','ILocalStorageService','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','stringify','mcpConfig.connectionStatus.connecting','Click\x20to\x20configure\x20MCP','Error','_localStorageService','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcpConfig.connectionError.sessionOccupied','ICommandService','mcpServerUrl','substring','超出最大重试次数,请稍后再试','univer-bg-green-500','url(#$1','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','连接失败','off-line-icon','apiKey','replace','_componentManager','next','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','defs','M0\x200H16V16H0z','getConfig','网络连接错误,请检查您的网络连接','showStatus','showConfigPanel','_config$','mask','CONNECTING','MCP\x20状态未知','url(#on-line-icon_clip0_910_349)','Configuration\x20saved\x20successfully','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','push','_initializeCommands','button','mcpConfig.configParameters','mcpConfig.apiApplyInfo.univerAiLabel','random','idSuffix','mcpConfig.configError','evenodd','add','MCP:\x20Max\x20Retries\x20Exceeded','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','启用身份验证','univer-flex\x20univer-items-center\x20univer-gap-2','MCP:\x20Unauthorized','connectionError$','MCP\x20Configuration','univer-bg-gray-500','connectionStatus$'];_0x1944=function(){return _0x292fce;};return _0x1944();}const Ee={'mcpStatus':{'disconnected':_0x417fc1(0x175),'connecting':'MCP\x20Connecting...','connected':_0x417fc1(0x224),'failed':_0x417fc1(0x263),'retrying':_0x417fc1(0x19d),'unknown':_0x417fc1(0x181),'unauthorized':_0x417fc1(0x1eb),'sessionOccupied':_0x417fc1(0x13b),'networkError':_0x417fc1(0x228),'maxRetriesExceeded':_0x417fc1(0x1e7),'clickToConnect':_0x417fc1(0x18e),'clickToConfigure':_0x417fc1(0x1bd)},'mcpConfig':{'title':_0x417fc1(0x1ed),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x417fc1(0x244),'apiKeyPlaceholder':_0x417fc1(0x208),'apiKeyHint':_0x417fc1(0x108),'enableAuth':_0x417fc1(0x12c),'enableAuthHint':_0x417fc1(0x261),'connectionInfo':_0x417fc1(0x270),'mcpClientConfig':_0x417fc1(0x270),'configInstructions':_0x417fc1(0x1fe),'configStepTitle':_0x417fc1(0x10e),'configStep1':_0x417fc1(0x161),'configStep2':_0x417fc1(0x179),'configStep3':_0x417fc1(0x238),'sessionId':_0x417fc1(0x212),'sessionIdDescription':_0x417fc1(0x257),'authorizationDescription':_0x417fc1(0xf8),'configParameters':_0x417fc1(0x17c),'maxRetries':_0x417fc1(0x1a3),'save':_0x417fc1(0x10c),'saving':'Saving...','note1':_0x417fc1(0x1f9),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x417fc1(0x1db),'configError':_0x417fc1(0x275),'apiApplyInfo':{'title':_0x417fc1(0x285),'description':_0x417fc1(0x126),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x417fc1(0x22b)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x417fc1(0x276),'invalidConfig':_0x417fc1(0x26c),'invalidApiKey':_0x417fc1(0x1c0)},'connectionStatus':{'disconnected':_0x417fc1(0x200),'connecting':_0x417fc1(0xff),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x417fc1(0xfc)},'connectionError':{'unauthorized':_0x417fc1(0x28e),'sessionOccupied':_0x417fc1(0x20b),'networkError':_0x417fc1(0x1cf),'maxRetriesExceeded':_0x417fc1(0x18b)}}},we={'mcpStatus':{'disconnected':_0x417fc1(0x256),'connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':_0x417fc1(0x255),'retrying':_0x417fc1(0x13e),'unknown':_0x417fc1(0x1d9),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x417fc1(0x1f0),'networkError':_0x417fc1(0x288),'maxRetriesExceeded':_0x417fc1(0x14e),'clickToConnect':_0x417fc1(0x287),'clickToConfigure':_0x417fc1(0x227)},'mcpConfig':{'title':_0x417fc1(0x10b),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':_0x417fc1(0x27b),'apiKeyHint':_0x417fc1(0x105),'enableAuth':_0x417fc1(0x1e9),'enableAuthHint':_0x417fc1(0x25b),'connectionInfo':_0x417fc1(0x128),'mcpClientConfig':_0x417fc1(0x128),'configInstructions':_0x417fc1(0x123),'configStepTitle':_0x417fc1(0x283),'configStep1':_0x417fc1(0x24e),'configStep2':_0x417fc1(0x170),'configStep3':_0x417fc1(0x271),'sessionId':_0x417fc1(0x239),'sessionIdDescription':_0x417fc1(0x134),'authorizationDescription':_0x417fc1(0x125),'configParameters':_0x417fc1(0x23b),'maxRetries':_0x417fc1(0x21a),'save':_0x417fc1(0x215),'saving':_0x417fc1(0x282),'note1':'配置更改将立即生效','note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x417fc1(0x177),'configError':'配置保存失败','apiApplyInfo':{'title':_0x417fc1(0x21d),'description':_0x417fc1(0x250),'univerAiLabel':_0x417fc1(0x20e),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x417fc1(0x106),'apiKeyTooShort':_0x417fc1(0x19c),'invalidConfig':'配置无效','invalidApiKey':_0x417fc1(0x18d)},'connectionStatus':{'disconnected':_0x417fc1(0x133),'connecting':_0x417fc1(0x14d),'connected':'已连接','failed':_0x417fc1(0x1c9),'retrying':_0x417fc1(0x28d)},'connectionError':{'unauthorized':_0x417fc1(0x264),'sessionOccupied':_0x417fc1(0x1b7),'networkError':_0x417fc1(0x1d3),'maxRetriesExceeded':_0x417fc1(0x1c5)}}};var Ae=Object['defineProperty'],Oe=Object[_0x417fc1(0x25f)],De=(_0x38df2e,_0x3f18e6,_0xbcef0f)=>_0x3f18e6 in _0x38df2e?Ae(_0x38df2e,_0x3f18e6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xbcef0f}):_0x38df2e[_0x3f18e6]=_0xbcef0f,Ue=(_0x104edd,_0x54686b,_0x2280ea,_0x5f09b5)=>{const _0x379a70=_0x417fc1;for(var _0x1e09fe=_0x5f09b5>0x1?void 0x0:_0x5f09b5?Oe(_0x54686b,_0x2280ea):_0x54686b,_0x4c1b7b=_0x104edd[_0x379a70(0x109)]-0x1,_0x529b62;_0x4c1b7b>=0x0;_0x4c1b7b--)(_0x529b62=_0x104edd[_0x4c1b7b])&&(_0x1e09fe=_0x529b62(_0x1e09fe)||_0x1e09fe);return _0x1e09fe;},y=(_0x1fa5eb,_0x274c7f)=>(_0x5223b2,_0x361dad)=>_0x274c7f(_0x5223b2,_0x361dad,_0x1fa5eb),$e=(_0x469396,_0x10a69b,_0x35777d)=>De(_0x469396,_0x10a69b+'',_0x35777d);exports['UniverMCPUIPlugin']=class extends u[_0x417fc1(0x11c)]{constructor(_0x5b00c6=L,_0x5349b4,_0x121a19,_0xbfa7f8,_0x3d0c4f,_0x224700){const _0x4f5e0e=_0x417fc1;super(),this[_0x4f5e0e(0x20a)]=_0x5b00c6,this[_0x4f5e0e(0x23c)]=_0x5349b4,this[_0x4f5e0e(0x158)]=_0x121a19,this['_uiPartsService']=_0xbfa7f8,this['_localStorageService']=_0x3d0c4f,this[_0x4f5e0e(0x216)]=_0x224700;const {..._0x171bad}=u[_0x4f5e0e(0x240)]({},L,this[_0x4f5e0e(0x20a)]);this[_0x4f5e0e(0x158)][_0x4f5e0e(0x230)](P,_0x171bad);}async[_0x417fc1(0x185)](){const _0x2ff84e=_0x417fc1,_0xccb46c=[[exports[_0x2ff84e(0x174)]],[exports[_0x2ff84e(0x17b)]],[exports[_0x2ff84e(0x226)]]];this[_0x2ff84e(0x23c)][_0x2ff84e(0x17f)](A['ISocketService'])||_0xccb46c[_0x2ff84e(0x1dd)]([A[_0x2ff84e(0x12b)],{'useClass':A[_0x2ff84e(0x206)]}]),_0xccb46c[_0x2ff84e(0x12e)](_0x2e2145=>this[_0x2ff84e(0x23c)][_0x2ff84e(0x1e6)](_0x2e2145)),this[_0x2ff84e(0x23c)][_0x2ff84e(0x26d)](exports[_0x2ff84e(0x174)]),this['_injector']['get'](exports[_0x2ff84e(0x17b)]),this[_0x2ff84e(0x23c)][_0x2ff84e(0x26d)](exports['MCPUIMenuController']);}},$e(exports[_0x417fc1(0x214)],_0x417fc1(0x195),_0x417fc1(0xf7)),exports[_0x417fc1(0x214)]=Ue([u[_0x417fc1(0x24b)](s[_0x417fc1(0x217)]),y(0x1,u[_0x417fc1(0x157)](u[_0x417fc1(0x1ab)])),y(0x2,u['IConfigService']),y(0x3,v[_0x417fc1(0x183)]),y(0x4,u[_0x417fc1(0x1b9)]),y(0x5,u[_0x417fc1(0x157)](u[_0x417fc1(0x10a)]))],exports['UniverMCPUIPlugin']),exports[_0x417fc1(0x279)]=V,exports['MCPStatusDisplay']=W,exports[_0x417fc1(0x27e)]=b,exports[_0x417fc1(0x145)]=Ee,exports[_0x417fc1(0x187)]=we;
|
|
1
|
+
'use strict';const _0x311d04=_0xbd22;(function(_0x17f199,_0x4dbe13){const _0x478d32=_0xbd22,_0x2cadf6=_0x17f199();while(!![]){try{const _0x44f0c7=parseInt(_0x478d32(0x11b))/0x1*(-parseInt(_0x478d32(0x133))/0x2)+-parseInt(_0x478d32(0x25f))/0x3*(parseInt(_0x478d32(0x207))/0x4)+-parseInt(_0x478d32(0x177))/0x5+parseInt(_0x478d32(0x251))/0x6+parseInt(_0x478d32(0x161))/0x7*(-parseInt(_0x478d32(0x22a))/0x8)+-parseInt(_0x478d32(0x25e))/0x9+parseInt(_0x478d32(0x11a))/0xa;if(_0x44f0c7===_0x4dbe13)break;else _0x2cadf6['push'](_0x2cadf6['shift']());}catch(_0x209521){_0x2cadf6['push'](_0x2cadf6['shift']());}}}(_0xd4c2,0xcec73));var ae=Object[_0x311d04(0x14e)],le=(_0x2bb281,_0x22f9c5,_0x5efb46)=>_0x22f9c5 in _0x2bb281?ae(_0x2bb281,_0x22f9c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5efb46}):_0x2bb281[_0x22f9c5]=_0x5efb46,I=(_0x11e826,_0x5422e3,_0x6a8341)=>le(_0x11e826,typeof _0x5422e3!='symbol'?_0x5422e3+'':_0x5422e3,_0x6a8341);Object[_0x311d04(0x14e)](exports,Symbol['toStringTag'],{'value':_0x311d04(0x123)});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:_0x57f488,..._0x753b9e}){const _0x45e182=_0x311d04,{icon:_0x219c11,id:_0x53316b,className:_0x2ef8d2,extend:_0x3d3af2,..._0x58f665}=_0x753b9e,_0x21a011=('univerjs-icon\x20univerjs-icon-'+_0x53316b+'\x20'+(_0x2ef8d2||''))['trim'](),_0x247ae=d[_0x45e182(0x24f)]('_'+de());return G(_0x219c11,''+_0x53316b,{'defIds':_0x219c11['defIds'],'idSuffix':_0x247ae[_0x45e182(0x194)]},{'ref':_0x57f488,'className':_0x21a011,..._0x58f665},_0x3d3af2);}function _0xd4c2(){const _0x4ca0d5=['univer-flex\x20univer-items-center\x20univer-gap-2','trim','mergeMenu','jsxs','mcpStatus.clickToConfigure','_config$','Get\x20your\x20API\x20key\x20in\x20seconds','OpenMCPConfigPanelCommand','NETWORK_ERROR','BehaviorSubject','https://console.univer.ai','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpStatus.clickToConnect','29311110okKORO','7TrStRO','univer-flex\x20univer-flex-wrap\x20univer-gap-2','evenodd','_initializeMenus','univer-text-xs\x20univer-text-gray-600','CONNECTING','MCP\x20重连中...','ISocketService','Module','white','_localStorageService','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','配置保存失败','univer-text-red-500','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','getOwnPropertyDescriptor','MCP\x20Configuration','配置更改将立即生效','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','ComponentManager','Retrying...','forEach','DISCONNECTED','mcpConfig.configError','360482KTWVkl','1em','mcpConfig.connectionError.unauthorized','_dialogService','IUIPartsService','registerComponent','MCP\x20状态未知','网络连接错误,请检查您的网络连接','Error','您的\x20API\x20密钥将在此浏览器中本地存储','defs','ILogService','connectionStatus$','MCP:\x20Network\x20Error','MCPConnectionError','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','mcpConfig.connectionStatus.disconnected','univer.ai','mcpStatus.sessionOccupied','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.validation.apiKeyTooShort','COMMAND','mcpConfig.apiKeyPlaceholder','RETRYING','API\x20key\x20with\x20Bearer\x20prefix.','div','最大重试次数','defineProperty','_handleConfigSave','univer-text-sm\x20univer-text-gray-500','univer-flex-1','univer-text-white','mcpConfig.apiApplyInfo.getStarted','univer-text-blue-600','_componentManager','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','重启您的\x20MCP\x20客户端以使配置生效','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','url(#$1','复制以下\x20JSON\x20配置','mcp-ui.config','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','currentColor','button','MCP\x20Connected','univer-text-gray-400','68453hbwVbF','MAX_RETRIES_EXCEEDED','_createConfigPanelComponent','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','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','_messageService','mask','round','MCPConnectionController','Connected','配置参数:','MCP\x20Connection\x20Failed','clipPath','请输入您的\x20API\x20密钥','MCPConnectionUIController','MCPStatusDisplay','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','mcpServerUrl','_registerComponent','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','_initConfigSync','Enter\x20your\x20API\x20key','508275yuLhuJ','mcpStatus.networkError','重连中...','mcpConfig.configInstructions','DependentOn','MCPConfigUIController','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','MCP\x20Client\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','url(#on-line-icon_clip0_910_349)','_mcpConnectionController','配置保存成功','stringify','clsx','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','会话ID','_apiKey$','_loadStoredApiKey','span','univer-space-y-2','_initStatusComponent','svg','mcpConfig.note2','univer-flex\x20univer-items-start\x20univer-gap-3','超出最大重试次数,请稍后再试','univer-text-gray-500','API\x20密钥无效,请检查密钥是否正确','Max\x20Retries','mcp.apiKey','current','push','univer-text-xs\x20univer-text-gray-500','setConfig','LocaleService','OnLineIcon','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','MCP:\x20Unauthorized','enUS','MCPUIMenuController','OffLineIcon','Input','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','close','mcpConfig.apiApplyInfo.description','MCP\x20配置','random','univer-bg-green-500','_loading$','点击配置\x20MCP','Plugin','MessageType','RibbonStartGroup','0\x200\x2016\x2016','您的\x20API\x20密钥安全存储在本地存储中','mcpStatus.failed','error','M0\x200H16V16H0z','string','univer-flex\x20univer-items-center\x20univer-gap-3','MenuItemType','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','univer-shrink-0\x20univer-text-blue-500','_menuManagerService','\x20-\x20','univer-text-yellow-500','none','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','MCP:\x20未授权','mcpConfig.configStep1','univer-text-sm\x20univer-font-medium','on-line-icon_clip0_910_349','univer-flex\x20univer-items-start\x20univer-gap-2','includes','mcp-ui.command.openConfigPanel','权限验证失败,请检查您的\x20API\x20密钥','replace','ILocalStorageService','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','API\x20Key','Save\x20Configuration','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.save','MCP:\x20会话\x20ID\x20已被占用','mcpConfig.apiApplyInfo.univerAiLabel','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','merge','univer-space-y-4','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcpStatus.unauthorized','https://console.univer.plus','assign','Success','entries','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','HelpIcon','Invalid\x20configuration','use','forwardRef','CloseIcon','MCP:\x20超出最大重试次数','add','__setCustomHeaders','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','_initializeCommands','univer-flex\x20univer-items-center','mcpConfig.connectionError.sessionOccupied','_uiPartsService','showDeveloperTools','NONE','_validateConfig','MCP\x20Retrying...','mcpConfig.validation.invalidApiKey','univer-space-y-3','API\x20密钥','_commandService','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','url(#off-line-icon_clip0_910_343)','off-line-icon_clip0_910_343','mcpConfig.apiApplyInfo.title','mcpConfig.configStep2','validateApiKey','http','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','mcpConfig.description','connectInjector','mcpConfig.configStep3','MCP\x20Unknown\x20Status','UniverMCPUIPlugin','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','启用身份验证以获得安全连接','<API_KEY>','toString','CheckMarkIcon','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','_configService','IDialogService','几秒钟内获取您的\x20API\x20密钥','getCurrentConfig','MCP\x20Connecting...','Configuration\x20saved\x20successfully','attrs','apiKey','已连接','What\x20is\x20API\x20Key?','111116IflcwU','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','Inject','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','getItem','_logService','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','xlink:href','idSuffix','MCP\x20客户端配置','map','univer-bg-red-500','MCP:\x20Max\x20Retries\x20Exceeded','_connectionController','IConfigService','label','open','useObservable','BUTTON','colorChannel1','useState','univer-flex\x20univer-gap-3','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','isValid','mcpConfig.authorizationDescription','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','mcp-config-dialog','onStarting','path','Bearer\x20','mcpConfig.note1','Disposable','getConfig','get','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','104iChNtv','useDependency','help-icon','registerCommand','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','subscribeConfigValue$','MCP:\x20Session\x20ID\x20Occupied','univer-bg-blue-500','subscribe','next','HEADER_MENU','CONNECTED','text','配置步骤:','OTHERS','http://www.w3.org/2000/svg','Click\x20to\x20configure\x20MCP','FAILED','disposeWithMe','Click\x20to\x20connect\x20MCP','API\x20密钥不能为空','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','UniverIcon','children','Connecting...','univer.plus','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','UNAUTHORIZED','createElement','jsx','mcpConfig.apiKey','Button','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP_PLUGIN_CONFIG_KEY','zhCN','tag','useRef','univer-shrink-0\x20univer-text-red-500','9192474OcyoSO','MCPConnectionStatus','MenuIcon','_injector','showConfigPanel','on-line-icon','sessionId$','_handleConfigure','Configuration\x20Parameters:','Authorization:','mcpStatus.connecting','connectionError$','close-icon','5881239mTTvTd','159igPSJx','MCP_UI_PLUGIN','noopener\x20noreferrer','useCallback','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','_config','mcpStatus.retrying','mcpConfig.connectionStatus.retrying','会话\x20ID\x20已被占用,请稍后再试','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','off-line-icon','_localeService','_mcpCoreConfig$','IMessageService','_initAutoConnect','mcpStatus.connected','<SESSION_ID>','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','mcpStatus.disconnected','univer-font-medium','mcpStatus.unknown','length','value','mcpConfig.configSaved','show','displayName','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','fill','mcpConfig.title'];_0xd4c2=function(){return _0x4ca0d5;};return _0xd4c2();}function G(_0x531a02,_0x18c1e2,_0x5bda1e,_0x35428c,_0x4ee69c){const _0x133ca2=_0x311d04;return d[_0x133ca2(0x246)](_0x531a02['tag'],{'key':_0x18c1e2,...ue(_0x531a02,_0x5bda1e,_0x4ee69c),..._0x35428c},(ve(_0x531a02,_0x5bda1e)[_0x133ca2(0x241)]||[])[_0x133ca2(0x211)]((_0x4e0130,_0x484eed)=>G(_0x4e0130,_0x18c1e2+'-'+_0x531a02[_0x133ca2(0x24e)]+'-'+_0x484eed,_0x5bda1e,void 0x0,_0x4ee69c)));}function ue(_0x24e4e7,_0x4bf91f,_0xeea7dd){const _0x321272=_0x311d04,_0x5e4d96={..._0x24e4e7['attrs']};_0xeea7dd!=null&&_0xeea7dd['colorChannel1']&&_0x5e4d96['fill']==='colorChannel1'&&(_0x5e4d96[_0x321272(0x10b)]=_0xeea7dd[_0x321272(0x21a)]),_0x24e4e7[_0x321272(0x24e)]===_0x321272(0x167)&&_0x5e4d96['id']&&(_0x5e4d96['id']=_0x5e4d96['id']+_0x4bf91f[_0x321272(0x20f)]),Object[_0x321272(0x1d3)](_0x5e4d96)[_0x321272(0x130)](([_0xa15666,_0xa345b4])=>{const _0x3ccf1a=_0x321272;_0xa15666==='mask'&&typeof _0xa345b4==_0x3ccf1a(0x1b0)&&(_0x5e4d96[_0xa15666]=_0xa345b4[_0x3ccf1a(0x1c2)](/url\(#(.*)\)/,_0x3ccf1a(0x159)+_0x4bf91f[_0x3ccf1a(0x20f)]+')'));});const {defIds:_0x5ee18f}=_0x4bf91f;return!_0x5ee18f||_0x5ee18f['length']===0x0||(_0x24e4e7[_0x321272(0x24e)]===_0x321272(0x1d7)&&_0x5e4d96[_0x321272(0x20e)]&&(_0x5e4d96['xlink:href']=_0x5e4d96[_0x321272(0x20e)]+_0x4bf91f['idSuffix']),Object[_0x321272(0x1d3)](_0x5e4d96)[_0x321272(0x130)](([_0x4241e2,_0x5f34d0])=>{const _0x46e156=_0x321272;typeof _0x5f34d0=='string'&&(_0x5e4d96[_0x4241e2]=_0x5f34d0[_0x46e156(0x1c2)](/url\(#(.*)\)/,_0x46e156(0x159)+_0x4bf91f[_0x46e156(0x20f)]+')'));})),_0x5e4d96;}function ve(_0x1c36b4,_0x5070f4){const _0x59f6f1=_0x311d04;var _0x100116;const {defIds:_0x32f116}=_0x5070f4;return!_0x32f116||_0x32f116['length']===0x0?_0x1c36b4:_0x1c36b4[_0x59f6f1(0x24e)]===_0x59f6f1(0x13d)&&((_0x100116=_0x1c36b4[_0x59f6f1(0x241)])!=null&&_0x100116[_0x59f6f1(0x105)])?{..._0x1c36b4,'children':_0x1c36b4['children'][_0x59f6f1(0x211)](_0x7331d4=>typeof _0x7331d4['attrs']['id']==_0x59f6f1(0x1b0)&&_0x32f116&&_0x32f116[_0x59f6f1(0x1bf)](_0x7331d4[_0x59f6f1(0x203)]['id'])?{..._0x7331d4,'attrs':{..._0x7331d4[_0x59f6f1(0x203)],'id':_0x7331d4['attrs']['id']+_0x5070f4['idSuffix']}}:_0x7331d4)}:_0x1c36b4;}function de(){const _0x52c735=_0x311d04;return Math[_0x52c735(0x1a4)]()[_0x52c735(0x1fa)](0x24)['substring'](0x2,0x8);}_[_0x311d04(0x109)]=_0x311d04(0x240);const Ce={'tag':_0x311d04(0x18c),'attrs':{'xmlns':_0x311d04(0x239),'fill':_0x311d04(0x1b8),'viewBox':_0x311d04(0x1ab),'width':_0x311d04(0x134),'height':'1em'},'children':[{'tag':_0x311d04(0x223),'attrs':{'fill':_0x311d04(0x15d),'d':_0x311d04(0x1c7),'fillRule':_0x311d04(0x11d),'clipRule':_0x311d04(0x11d)}}]},H=d[_0x311d04(0x1d8)](function(_0x2e5654,_0x37207d){const _0x5950f1=_0x311d04;return d[_0x5950f1(0x246)](_,Object[_0x5950f1(0x1d1)]({},_0x2e5654,{'id':'check-mark-icon','ref':_0x37207d,'icon':Ce}));});H['displayName']=_0x311d04(0x1fb);function _0xbd22(_0x221890,_0x1c073b){const _0xd4c201=_0xd4c2();return _0xbd22=function(_0xbd22f4,_0x474d8f){_0xbd22f4=_0xbd22f4-0x100;let _0x1bc642=_0xd4c201[_0xbd22f4];return _0x1bc642;},_0xbd22(_0x221890,_0x1c073b);}const ge={'tag':_0x311d04(0x18c),'attrs':{'xmlns':_0x311d04(0x239),'fill':'none','viewBox':_0x311d04(0x1ab),'width':_0x311d04(0x134),'height':_0x311d04(0x134)},'children':[{'tag':_0x311d04(0x223),'attrs':{'fill':_0x311d04(0x15d),'d':_0x311d04(0x158)}}]},B=d[_0x311d04(0x1d8)](function(_0x3a8fa1,_0x2afaef){const _0x9056ec=_0x311d04;return d['createElement'](_,Object[_0x9056ec(0x1d1)]({},_0x3a8fa1,{'id':_0x9056ec(0x25d),'ref':_0x2afaef,'icon':ge}));});B[_0x311d04(0x109)]=_0x311d04(0x1d9);const fe={'tag':_0x311d04(0x18c),'attrs':{'xmlns':_0x311d04(0x239),'fill':_0x311d04(0x1b8),'viewBox':_0x311d04(0x1ab),'width':_0x311d04(0x134),'height':_0x311d04(0x134)},'children':[{'tag':_0x311d04(0x223),'attrs':{'fill':'currentColor','d':_0x311d04(0x1f1)}},{'tag':_0x311d04(0x223),'attrs':{'fill':_0x311d04(0x15d),'d':_0x311d04(0x165)}},{'tag':_0x311d04(0x223),'attrs':{'fill':'currentColor','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':_0x311d04(0x11d),'clipRule':_0x311d04(0x11d)}}]},F=d[_0x311d04(0x1d8)](function(_0x1a2ec1,_0x54d579){const _0x760842=_0x311d04;return d[_0x760842(0x246)](_,Object['assign']({},_0x1a2ec1,{'id':_0x760842(0x22c),'ref':_0x54d579,'icon':fe}));});F[_0x311d04(0x109)]=_0x311d04(0x1d5);const pe={'tag':_0x311d04(0x18c),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x311d04(0x1b8),'viewBox':_0x311d04(0x1ab),'width':'1em','height':_0x311d04(0x134)},'children':[{'tag':'g','attrs':{'clipPath':_0x311d04(0x1eb)},'children':[{'tag':_0x311d04(0x223),'attrs':{'stroke':_0x311d04(0x15d),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x311d04(0x168),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x311d04(0x13d),'attrs':{},'children':[{'tag':_0x311d04(0x16d),'attrs':{'id':_0x311d04(0x1ec)},'children':[{'tag':_0x311d04(0x223),'attrs':{'fill':_0x311d04(0x124),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x311d04(0x1ec)]},Y=d[_0x311d04(0x1d8)](function(_0x20f32d,_0x4fcd21){const _0x323a40=_0x311d04;return d[_0x323a40(0x246)](_,Object[_0x323a40(0x1d1)]({},_0x20f32d,{'id':_0x323a40(0x269),'ref':_0x4fcd21,'icon':pe}));});Y['displayName']=_0x311d04(0x19e);const he={'tag':'svg','attrs':{'xmlns':_0x311d04(0x239),'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x311d04(0x134),'height':_0x311d04(0x134)},'children':[{'tag':'g','attrs':{'clipPath':_0x311d04(0x180)},'children':[{'tag':_0x311d04(0x223),'attrs':{'stroke':_0x311d04(0x15d),'d':_0x311d04(0x174),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x311d04(0x13d),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x311d04(0x1bd)},'children':[{'tag':_0x311d04(0x223),'attrs':{'fill':_0x311d04(0x124),'d':_0x311d04(0x1af),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-icon_clip0_910_349']},q=d[_0x311d04(0x1d8)](function(_0x5f1738,_0x5964c8){const _0x209f73=_0x311d04;return d[_0x209f73(0x246)](_,Object[_0x209f73(0x1d1)]({},_0x5f1738,{'id':_0x209f73(0x256),'ref':_0x5964c8,'icon':he}));});q[_0x311d04(0x109)]=_0x311d04(0x199);function V(_0x3895d7){const _0x54480d=_0x311d04;var _0x5b4373,_0x4c9bf0;const {mcpCoreConfig:_0x3e58b6,onSave:_0x236ab3,loading:_0x12dbcd=!0x1,config:_0x167b8a,connectionStatus$:_0x196a81,connectionError$:_0x4e7ed3,currentApiKey$:_0xcbaf7d,currentSessionId$:_0x127820}=_0x3895d7,_0x4a4ba6=v[_0x54480d(0x22b)](u[_0x54480d(0x198)]),_0x11c9ce=v['useObservable'](_0x196a81,s[_0x54480d(0x252)]['DISCONNECTED']),_0x4c3e2a=v[_0x54480d(0x218)](_0x4e7ed3,s[_0x54480d(0x141)]['NONE']),_0x5c0df2=v[_0x54480d(0x218)](_0x127820,''),_0x528417=v[_0x54480d(0x218)](_0xcbaf7d,''),[_0x16a358,_0x366ef6]=d[_0x54480d(0x21b)](_0x528417||''),_0x581134=!0x0,_0x37b51c=_0x167b8a[_0x54480d(0x1e2)]&&_0x3e58b6[_0x54480d(0x172)]&&(_0x3e58b6['mcpServerUrl'][_0x54480d(0x1bf)](_0x54480d(0x243))||_0x3e58b6['mcpServerUrl'][_0x54480d(0x1bf)](_0x54480d(0x144))),_0x5e68a0=(_0x5b4373=_0x3e58b6[_0x54480d(0x172)])==null?void 0x0:_0x5b4373[_0x54480d(0x1bf)](_0x54480d(0x243)),_0x2cd5e2=(_0x4c9bf0=_0x3e58b6[_0x54480d(0x172)])==null?void 0x0:_0x4c9bf0['includes'](_0x54480d(0x144)),_0x4c53b5=_0x5e68a0?_0x54480d(0x1d0):_0x54480d(0x117),_0x1bd1cd=_0x167b8a['showDeveloperTools']&&(_0x5e68a0||_0x2cd5e2),[_0x13671e,_0x37bb02]=d[_0x54480d(0x21b)](!_0x16a358['trim']()),_0xeaed1a=(_0x1f763f,_0x467267)=>{const _0x4aafc9=_0x54480d;if(_0x467267===s[_0x4aafc9(0x141)][_0x4aafc9(0x245)])return _0x4aafc9(0x208);switch(_0x1f763f){case s['MCPConnectionStatus'][_0x4aafc9(0x235)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case s[_0x4aafc9(0x252)][_0x4aafc9(0x120)]:case s[_0x4aafc9(0x252)][_0x4aafc9(0x14a)]:return _0x4aafc9(0x164);case s[_0x4aafc9(0x252)][_0x4aafc9(0x23b)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x579ac5=(_0x1e86f0,_0x3840c7)=>{const _0x4faf67=_0x54480d;if(_0x3840c7===s[_0x4faf67(0x141)][_0x4faf67(0x245)])return'univer-bg-red-500';switch(_0x1e86f0){case s[_0x4faf67(0x252)]['CONNECTED']:return _0x4faf67(0x1a5);case s[_0x4faf67(0x252)][_0x4faf67(0x120)]:case s[_0x4faf67(0x252)]['RETRYING']:return _0x4faf67(0x231);case s[_0x4faf67(0x252)]['FAILED']:return _0x4faf67(0x212);default:return'univer-bg-gray-500';}},_0x344696=_0x5e42cb=>{const _0x28a3e0=_0x54480d;switch(_0x5e42cb){case s['MCPConnectionStatus'][_0x28a3e0(0x235)]:return _0x4a4ba6['t']('mcpConfig.connectionStatus.connected');case s['MCPConnectionStatus'][_0x28a3e0(0x120)]:return _0x4a4ba6['t']('mcpConfig.connectionStatus.connecting');case s[_0x28a3e0(0x252)][_0x28a3e0(0x23b)]:return _0x4a4ba6['t']('mcpConfig.connectionStatus.failed');case s[_0x28a3e0(0x252)][_0x28a3e0(0x14a)]:return _0x4a4ba6['t'](_0x28a3e0(0x266));default:return _0x4a4ba6['t'](_0x28a3e0(0x143));}},_0x3ec470=_0x571fa6=>{const _0xdf3d43=_0x54480d;switch(_0x571fa6){case s[_0xdf3d43(0x141)][_0xdf3d43(0x245)]:return _0x4a4ba6['t'](_0xdf3d43(0x135));case s[_0xdf3d43(0x141)]['SESSION_ID_OCCUPIED']:return _0x4a4ba6['t'](_0xdf3d43(0x1e0));case s['MCPConnectionError']['NETWORK_ERROR']:return _0x4a4ba6['t']('mcpConfig.connectionError.networkError');case s[_0xdf3d43(0x141)][_0xdf3d43(0x162)]:return _0x4a4ba6['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x57f0e7=d[_0x54480d(0x262)](()=>{const _0x30be7f={..._0x3e58b6,'apiKey':_0x16a358['trim'](),'enableAuth':_0x581134};_0x236ab3(_0x30be7f);},[_0x3e58b6,_0x16a358,_0x581134,_0x236ab3]),_0x5e99fe=_0x16a358[_0x54480d(0x10e)]()[_0x54480d(0x105)]>0x0;return i[_0x54480d(0x110)](_0x54480d(0x14c),{'className':_0x54480d(0x126),'children':[i[_0x54480d(0x247)](_0x54480d(0x14c),{'className':_0x54480d(0x1fc),'children':i[_0x54480d(0x110)]('div',{'className':_0x54480d(0x1b1),'children':[i['jsx'](_0x54480d(0x14c),{'className':_0x54480d(0x229),'children':i['jsx'](_0x54480d(0x189),{'className':_0x54480d(0x152),'children':'⚙'})}),i[_0x54480d(0x247)](_0x54480d(0x14c),{'children':i[_0x54480d(0x247)]('p',{'className':_0x54480d(0x150),'children':_0x4a4ba6['t'](_0x54480d(0x1f2))})})]})}),i[_0x54480d(0x110)](_0x54480d(0x14c),{'className':_0x54480d(0x10a),'children':[i['jsx']('div',{'className':f[_0x54480d(0x184)](_0x54480d(0x1cb),_0xeaed1a(_0x11c9ce,_0x4c3e2a)),'children':i['jsxs'](_0x54480d(0x14c),{'className':_0x54480d(0x10d),'children':[i['jsx'](_0x54480d(0x14c),{'className':f[_0x54480d(0x184)]('univer-size-2\x20univer-rounded-full',_0x579ac5(_0x11c9ce,_0x4c3e2a))}),i[_0x54480d(0x247)](_0x54480d(0x189),{'className':_0x54480d(0x1bc),'children':_0x344696(_0x11c9ce)})]})}),_0x4c3e2a!==s['MCPConnectionError'][_0x54480d(0x1e3)]&&(_0x11c9ce===s[_0x54480d(0x252)]['FAILED']||_0x4c3e2a===s[_0x54480d(0x141)][_0x54480d(0x245)])&&i[_0x54480d(0x247)](_0x54480d(0x14c),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':i[_0x54480d(0x110)](_0x54480d(0x14c),{'className':_0x54480d(0x1be),'children':[i[_0x54480d(0x247)](_0x54480d(0x189),{'className':_0x54480d(0x250),'children':'⚠️'}),i[_0x54480d(0x247)]('p',{'className':_0x54480d(0x20a),'children':_0x3ec470(_0x4c3e2a)})]})})]}),i[_0x54480d(0x247)](_0x54480d(0x14c),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':i[_0x54480d(0x110)](_0x54480d(0x14c),{'className':'univer-space-y-5','children':[i[_0x54480d(0x110)](_0x54480d(0x14c),{'className':_0x54480d(0x18a),'children':[i[_0x54480d(0x110)](_0x54480d(0x216),{'className':_0x54480d(0x19a),'children':[i[_0x54480d(0x247)](_0x54480d(0x189),{'children':'🔑'}),'\x20',_0x4a4ba6['t'](_0x54480d(0x248)),i[_0x54480d(0x247)]('span',{'className':_0x54480d(0x128),'children':'*'}),_0x37b51c&&i[_0x54480d(0x247)]('a',{'className':_0x54480d(0x1ea),'title':_0x4a4ba6['t'](_0x54480d(0x1ed)),'role':_0x54480d(0x15e),'onClick':()=>_0x37bb02(!0x0),'children':i[_0x54480d(0x247)](F,{})})]}),i[_0x54480d(0x247)](f[_0x54480d(0x19f)],{'type':_0x54480d(0x236),'placeholder':_0x4a4ba6['t'](_0x54480d(0x149)),'value':_0x16a358,'disabled':_0x12dbcd,'autoComplete':'off','onChange':_0x366ef6}),i[_0x54480d(0x247)]('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4a4ba6['t']('mcpConfig.apiKeyHint')})]}),_0x37b51c&&_0x13671e&&i[_0x54480d(0x110)](_0x54480d(0x14c),{'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[_0x54480d(0x247)]('a',{'className':_0x54480d(0x22e),'role':_0x54480d(0x15e),'onClick':()=>_0x37bb02(!0x1),'children':i[_0x54480d(0x247)](B,{'className':'univer-size-4'})}),i[_0x54480d(0x110)]('div',{'className':_0x54480d(0x12d),'children':[i[_0x54480d(0x247)](_0x54480d(0x14c),{'className':_0x54480d(0x1ce),'children':i['jsx']('span',{'className':_0x54480d(0x154),'children':'🚀'})}),i[_0x54480d(0x110)](_0x54480d(0x14c),{'className':_0x54480d(0x151),'children':[i[_0x54480d(0x247)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x4a4ba6['t']('mcpConfig.apiApplyInfo.title')}),i[_0x54480d(0x247)]('p',{'className':_0x54480d(0x156),'children':_0x4a4ba6['t'](_0x54480d(0x1a2))}),i['jsx']('div',{'className':_0x54480d(0x11c),'children':_0x1bd1cd&&i['jsxs']('a',{'className':_0x54480d(0x101),'href':_0x4c53b5,'target':'_blank','rel':_0x54480d(0x261),'children':[i['jsx'](_0x54480d(0x189),{'children':'🤖'}),_0x4a4ba6['t'](_0x54480d(0x1ca)),i[_0x54480d(0x247)](_0x54480d(0x189),{'className':_0x54480d(0x160),'children':'↗'})]})}),i[_0x54480d(0x110)](_0x54480d(0x14c),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x4a4ba6['t'](_0x54480d(0x153))]})]})]})]}),_0x167b8a[_0x54480d(0x1e2)]&&i['jsxs']('div',{'className':_0x54480d(0x142),'children':[i['jsxs']('h4',{'className':_0x54480d(0x20d),'children':[i[_0x54480d(0x247)](_0x54480d(0x189),{'children':'🔗'}),'\x20',_0x4a4ba6['t']('mcpConfig.connectionInfo')]}),i[_0x54480d(0x110)]('div',{'className':_0x54480d(0x1cd),'children':[i[_0x54480d(0x110)](_0x54480d(0x14c),{'className':'univer-space-y-3','children':[i[_0x54480d(0x247)]('p',{'className':_0x54480d(0x11f),'children':_0x4a4ba6['t'](_0x54480d(0x17a))}),i[_0x54480d(0x110)]('div',{'className':'univer-space-y-2','children':[i['jsx'](_0x54480d(0x14c),{'className':_0x54480d(0x1f7),'children':_0x4a4ba6['t']('mcpConfig.configStepTitle')}),i[_0x54480d(0x110)](_0x54480d(0x14c),{'className':_0x54480d(0x1b9),'children':[i[_0x54480d(0x110)](_0x54480d(0x14c),{'className':_0x54480d(0x10d),'children':[i['jsx'](_0x54480d(0x189),{'className':_0x54480d(0x220),'children':'1'}),_0x4a4ba6['t'](_0x54480d(0x1bb))]}),i[_0x54480d(0x110)](_0x54480d(0x14c),{'className':_0x54480d(0x10d),'children':[i[_0x54480d(0x247)](_0x54480d(0x189),{'className':_0x54480d(0x220),'children':'2'}),_0x4a4ba6['t'](_0x54480d(0x1ee))]}),i[_0x54480d(0x110)](_0x54480d(0x14c),{'className':_0x54480d(0x10d),'children':[i[_0x54480d(0x247)](_0x54480d(0x189),{'className':_0x54480d(0x220),'children':'3'}),_0x4a4ba6['t'](_0x54480d(0x1f4))]})]})]})]}),i[_0x54480d(0x110)](_0x54480d(0x14c),{'className':_0x54480d(0x18a),'children':[i[_0x54480d(0x247)](_0x54480d(0x14c),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x54480d(0x12b)}),i['jsx']('div',{'className':_0x54480d(0x17d),'children':i[_0x54480d(0x247)]('pre',{'className':_0x54480d(0x1a0),'children':JSON[_0x54480d(0x183)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x5c0df2||_0x54480d(0x100)),'type':_0x54480d(0x1f0),'headers':{'Authorization':_0x54480d(0x224)+(_0x16a358||_0x54480d(0x1f9))}}}},null,0x2)})})]}),i[_0x54480d(0x110)](_0x54480d(0x14c),{'className':_0x54480d(0x1e7),'children':[i[_0x54480d(0x247)](_0x54480d(0x14c),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x4a4ba6['t']('mcpConfig.configParameters')}),i[_0x54480d(0x110)]('div',{'className':_0x54480d(0x18a),'children':[i[_0x54480d(0x110)](_0x54480d(0x14c),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i['jsx'](_0x54480d(0x14c),{'className':_0x54480d(0x23f)}),i[_0x54480d(0x110)](_0x54480d(0x14c),{'className':'univer-min-w-0\x20univer-flex-1','children':[i[_0x54480d(0x247)]('div',{'className':_0x54480d(0x244),'children':'univer_session_id:'}),i[_0x54480d(0x247)](_0x54480d(0x14c),{'className':_0x54480d(0x196),'children':_0x4a4ba6['t']('mcpConfig.sessionIdDescription')})]})]}),i['jsxs'](_0x54480d(0x14c),{'className':_0x54480d(0x18e),'children':[i[_0x54480d(0x247)](_0x54480d(0x14c),{'className':_0x54480d(0x23f)}),i[_0x54480d(0x110)](_0x54480d(0x14c),{'className':'univer-min-w-0\x20univer-flex-1','children':[i[_0x54480d(0x247)](_0x54480d(0x14c),{'className':_0x54480d(0x244),'children':_0x54480d(0x25a)}),i[_0x54480d(0x247)](_0x54480d(0x14c),{'className':_0x54480d(0x196),'children':_0x4a4ba6['t'](_0x54480d(0x21f))})]})]})]})]})]})]}),i[_0x54480d(0x247)](f[_0x54480d(0x249)],{'onClick':_0x57f0e7,'disabled':!_0x5e99fe||_0x12dbcd,'className':_0x54480d(0x185),'children':_0x12dbcd?i[_0x54480d(0x110)](_0x54480d(0x189),{'className':_0x54480d(0x10d),'children':[i[_0x54480d(0x247)](_0x54480d(0x189),{'children':'⟲'}),_0x4a4ba6['t']('mcpConfig.saving')]}):i[_0x54480d(0x110)](_0x54480d(0x189),{'className':_0x54480d(0x10d),'children':[i[_0x54480d(0x247)](H,{}),_0x4a4ba6['t'](_0x54480d(0x1c8))]})}),i[_0x54480d(0x247)](_0x54480d(0x14c),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':i['jsxs'](_0x54480d(0x14c),{'className':_0x54480d(0x21c),'children':[i[_0x54480d(0x247)]('span',{'className':_0x54480d(0x1b4),'children':'💡'}),i['jsxs'](_0x54480d(0x14c),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[i[_0x54480d(0x247)](_0x54480d(0x14c),{'className':_0x54480d(0x103),'children':'Configuration\x20Notes:'}),i[_0x54480d(0x110)](_0x54480d(0x14c),{'children':['•',_0x4a4ba6['t'](_0x54480d(0x225))]}),i['jsxs'](_0x54480d(0x14c),{'children':['•',_0x4a4ba6['t'](_0x54480d(0x18d))]})]})]})})]})})]});}const P=_0x311d04(0x15b),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x311d04(0x12a)],xe=(_0x2b204b,_0x838d75,_0x5b277e,_0x5444f8)=>{const _0x1f41e5=_0x311d04;for(var _0x1ea938=_0x5444f8>0x1?void 0x0:_0x5444f8?me(_0x838d75,_0x5b277e):_0x838d75,_0x932ecd=_0x2b204b[_0x1f41e5(0x105)]-0x1,_0x520161;_0x932ecd>=0x0;_0x932ecd--)(_0x520161=_0x2b204b[_0x932ecd])&&(_0x1ea938=_0x520161(_0x1ea938)||_0x1ea938);return _0x1ea938;},g=(_0x30fddd,_0x1bfec6)=>(_0x164de2,_0x2e3a28)=>_0x1bfec6(_0x164de2,_0x2e3a28,_0x30fddd);const O=_0x311d04(0x193),D=_0x311d04(0x221);exports[_0x311d04(0x17c)]=class extends u[_0x311d04(0x226)]{constructor(_0x5469a8,_0x24e563,_0x3e697a,_0x1fd8ea,_0x39b7ba,_0x272d88,_0x10bfba,_0x3af0b7,_0xf948b3,_0x5eb551){const _0x1d9b2e=_0x311d04;super(),I(this,_0x1d9b2e(0x1a6),new M[(_0x1d9b2e(0x116))](!0x1)),I(this,_0x1d9b2e(0x26b),new M[(_0x1d9b2e(0x116))]({})),I(this,'_config$',new M[(_0x1d9b2e(0x116))]({})),I(this,'_apiKey$',new M[(_0x1d9b2e(0x116))]('')),I(this,_0x1d9b2e(0x14f),async _0x42f43b=>{const _0x4bace5=_0x1d9b2e;var _0x394718,_0x129a8b;this[_0x4bace5(0x1a6)]['next'](!0x0);try{const _0x55e3d9=await this[_0x4bace5(0x1e4)](_0x42f43b);if(!_0x55e3d9['isValid']){this[_0x4bace5(0x166)][_0x4bace5(0x108)]({'type':f[_0x4bace5(0x1a9)][_0x4bace5(0x13b)],'content':_0x55e3d9['errorMessage']||this[_0x4bace5(0x26a)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x42f43b[_0x4bace5(0x204)]?await this[_0x4bace5(0x125)]['setItem'](O,_0x42f43b[_0x4bace5(0x204)][_0x4bace5(0x10e)]()):await this['_localStorageService']['removeItem'](O),this['_apiKey$'][_0x4bace5(0x233)](((_0x394718=_0x42f43b[_0x4bace5(0x204)])==null?void 0x0:_0x394718[_0x4bace5(0x10e)]())||''),this['_mcpConnectionController'][_0x4bace5(0x1dc)]({'Authorization':_0x4bace5(0x224)+((_0x129a8b=_0x42f43b['apiKey'])==null?void 0x0:_0x129a8b[_0x4bace5(0x10e)]())}),this[_0x4bace5(0x166)]['show']({'type':f['MessageType'][_0x4bace5(0x1d2)],'content':this[_0x4bace5(0x26a)]['t'](_0x4bace5(0x107))}),setTimeout(()=>{const _0x17ebb2=_0x4bace5;this['_dialogService'][_0x17ebb2(0x1a1)](D);},0x320);}catch(_0x57d314){this[_0x4bace5(0x20c)][_0x4bace5(0x1ae)](_0x4bace5(0x15c),_0x57d314),this[_0x4bace5(0x166)][_0x4bace5(0x108)]({'type':f[_0x4bace5(0x1a9)][_0x4bace5(0x13b)],'content':this[_0x4bace5(0x26a)]['t'](_0x4bace5(0x132))});}finally{this[_0x4bace5(0x1a6)][_0x4bace5(0x233)](!0x1);}}),(this['_injector']=_0x5469a8,this['_uiPartsService']=_0x24e563,this[_0x1d9b2e(0x1fd)]=_0x3e697a,this[_0x1d9b2e(0x125)]=_0x1fd8ea,this[_0x1d9b2e(0x136)]=_0x39b7ba,this['_messageService']=_0x272d88,this['_componentManager']=_0x10bfba,this[_0x1d9b2e(0x26a)]=_0x3af0b7,this[_0x1d9b2e(0x20c)]=_0xf948b3,this[_0x1d9b2e(0x181)]=_0x5eb551,this[_0x1d9b2e(0x175)](),this['_loadStoredApiKey'](),this[_0x1d9b2e(0x173)]());}[_0x311d04(0x255)](){const _0x4098a1=_0x311d04,_0x5cc184=this[_0x4098a1(0x1fd)][_0x4098a1(0x227)](P);_0x5cc184!=null&&_0x5cc184['showDeveloperTools']&&this[_0x4098a1(0x136)][_0x4098a1(0x217)]({'id':D,'title':{'title':this['_localeService']['t'](_0x4098a1(0x10c))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x4a6f06=_0x4098a1;this[_0x4a6f06(0x136)][_0x4a6f06(0x1a1)](D);}});}[_0x311d04(0x200)](){const _0x59fcff=_0x311d04;return this[_0x59fcff(0x26b)][_0x59fcff(0x106)];}['_registerComponent'](){const _0x5bb7af=_0x311d04;this[_0x5bb7af(0x23c)](this[_0x5bb7af(0x155)]['register']('MCPConfigPanel',this[_0x5bb7af(0x163)]()));}[_0x311d04(0x163)](){const _0x22d886=_0x311d04;return v[_0x22d886(0x1f3)](()=>{const _0x53d35b=_0x22d886;var _0x252129,_0x30b6b1,_0x12d117;return i[_0x53d35b(0x247)](V,{'config':this[_0x53d35b(0x112)][_0x53d35b(0x106)],'mcpCoreConfig':this[_0x53d35b(0x26b)][_0x53d35b(0x106)],'currentApiKey$':this[_0x53d35b(0x187)],'onSave':this[_0x53d35b(0x14f)],'loading':this[_0x53d35b(0x1a6)][_0x53d35b(0x106)],'connectionStatus$':(_0x252129=this[_0x53d35b(0x181)])==null?void 0x0:_0x252129[_0x53d35b(0x13f)],'connectionError$':(_0x30b6b1=this['_mcpConnectionController'])==null?void 0x0:_0x30b6b1['connectionError$'],'currentSessionId$':(_0x12d117=this[_0x53d35b(0x181)])==null?void 0x0:_0x12d117[_0x53d35b(0x257)]});},this[_0x22d886(0x254)]);}['_initConfigSync'](){const _0x287157=_0x311d04;this[_0x287157(0x23c)](this['_configService'][_0x287157(0x22f)](s[_0x287157(0x24c)])[_0x287157(0x232)](_0xf70b2c=>{const _0x3d05a3=_0x287157;this[_0x3d05a3(0x26b)][_0x3d05a3(0x233)](_0xf70b2c||{});}));const _0x5475f3=this[_0x287157(0x1fd)][_0x287157(0x227)](s[_0x287157(0x24c)]);this[_0x287157(0x26b)][_0x287157(0x233)](_0x5475f3||{}),this[_0x287157(0x23c)](this[_0x287157(0x1fd)][_0x287157(0x22f)](P)[_0x287157(0x232)](_0x2d6bb7=>{const _0x1507d4=_0x287157;this[_0x1507d4(0x112)][_0x1507d4(0x233)](_0x2d6bb7||{});}));const _0xbf630=this['_configService']['getConfig'](P);this[_0x287157(0x112)][_0x287157(0x233)](_0xbf630||{});}async[_0x311d04(0x188)](){const _0x5cae1c=_0x311d04,_0x5a12e=this['_configService'][_0x5cae1c(0x227)](P);if(!(_0x5a12e!=null&&_0x5a12e[_0x5cae1c(0x1e2)]))return;const _0x1809db=await this[_0x5cae1c(0x125)][_0x5cae1c(0x20b)](O);_0x1809db&&(this[_0x5cae1c(0x181)][_0x5cae1c(0x1dc)]({'Authorization':_0x5cae1c(0x224)+_0x1809db}),this[_0x5cae1c(0x187)][_0x5cae1c(0x233)](_0x1809db));}async[_0x311d04(0x1e4)](_0x484adc){const _0xd2f8de=_0x311d04;if(!_0x484adc['apiKey']||_0x484adc[_0xd2f8de(0x204)][_0xd2f8de(0x10e)]()[_0xd2f8de(0x105)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0xd2f8de(0x26a)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x484adc[_0xd2f8de(0x204)][_0xd2f8de(0x10e)]()[_0xd2f8de(0x105)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0xd2f8de(0x26a)]['t'](_0xd2f8de(0x147))};try{const _0x254f88=await this[_0xd2f8de(0x254)][_0xd2f8de(0x228)](s['MCPConnectionController'])[_0xd2f8de(0x1ef)](_0x484adc[_0xd2f8de(0x204)]['trim']());return _0x254f88[_0xd2f8de(0x21e)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x254f88['error']||this[_0xd2f8de(0x26a)]['t'](_0xd2f8de(0x1e6))};}catch(_0x5846fd){return console['warn']('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x5846fd),{'isValid':!0x0};}}},exports[_0x311d04(0x17c)]=xe([g(0x0,u[_0x311d04(0x209)](u['Injector'])),g(0x1,v['IUIPartsService']),g(0x2,u['IConfigService']),g(0x3,u[_0x311d04(0x1c3)]),g(0x4,v[_0x311d04(0x1fe)]),g(0x5,v[_0x311d04(0x26c)]),g(0x6,u[_0x311d04(0x209)](v[_0x311d04(0x12e)])),g(0x7,u['Inject'](u['LocaleService'])),g(0x8,u[_0x311d04(0x13e)]),g(0x9,u[_0x311d04(0x209)](s[_0x311d04(0x169)]))],exports[_0x311d04(0x17c)]);const b={'id':_0x311d04(0x1c0),'type':u['CommandType'][_0x311d04(0x148)],'handler':async(_0x3ce9f8,_0x37cb4a)=>(_0x3ce9f8[_0x311d04(0x228)](exports[_0x311d04(0x17c)])[_0x311d04(0x255)](),!0x0)};function Z(_0x1c711d,_0x47717b){const _0x3871fc=_0x311d04;switch(_0x1c711d){case s['MCPConnectionStatus'][_0x3871fc(0x131)]:return _0x3871fc(0x102);case s[_0x3871fc(0x252)][_0x3871fc(0x120)]:return _0x3871fc(0x25b);case s[_0x3871fc(0x252)][_0x3871fc(0x235)]:return _0x3871fc(0x26e);case s[_0x3871fc(0x252)][_0x3871fc(0x23b)]:switch(_0x47717b){case s[_0x3871fc(0x141)][_0x3871fc(0x245)]:return _0x3871fc(0x1cf);case s[_0x3871fc(0x141)]['SESSION_ID_OCCUPIED']:return _0x3871fc(0x145);case s[_0x3871fc(0x141)][_0x3871fc(0x115)]:return _0x3871fc(0x178);case s[_0x3871fc(0x141)][_0x3871fc(0x162)]:return'mcpStatus.maxRetriesExceeded';default:return _0x3871fc(0x1ad);}case s[_0x3871fc(0x252)][_0x3871fc(0x14a)]:return _0x3871fc(0x265);default:return _0x3871fc(0x104);}}function Se(_0x23198,_0x953cb4,_0x51466d,_0x4b87a1=!0x0){const _0x54248d=_0x311d04,_0x3b013a=Z(_0x23198,_0x953cb4),_0x585fcb=_0x51466d['t'](_0x3b013a);return _0x4b87a1?_0x23198===s['MCPConnectionStatus'][_0x54248d(0x131)]&&_0x953cb4===s[_0x54248d(0x141)][_0x54248d(0x245)]?_0x585fcb+_0x54248d(0x1b6)+_0x51466d['t'](_0x54248d(0x111)):_0x23198===s[_0x54248d(0x252)]['CONNECTED']?''+_0x585fcb:_0x23198===s[_0x54248d(0x252)][_0x54248d(0x131)]||_0x23198===s[_0x54248d(0x252)][_0x54248d(0x23b)]?_0x585fcb+'\x20-\x20'+_0x51466d['t'](_0x54248d(0x119)):_0x585fcb:_0x585fcb;}function Pe(_0x810a40){const _0x5603d1=_0x311d04;switch(_0x810a40){case s[_0x5603d1(0x252)][_0x5603d1(0x235)]:return'univer-text-green-500';case s[_0x5603d1(0x252)][_0x5603d1(0x120)]:case s[_0x5603d1(0x252)][_0x5603d1(0x14a)]:return _0x5603d1(0x1b7);case s[_0x5603d1(0x252)][_0x5603d1(0x23b)]:case s['MCPConnectionStatus']['DISCONNECTED']:return _0x5603d1(0x128);default:return _0x5603d1(0x190);}}function W(_0x4d39f0){const _0x55d996=_0x311d04,{status$:_0x530252,error$:_0x1c428f,onConfigure:_0x96af72,showClickable:_0x284d6f=!0x0}=_0x4d39f0,_0x33e047=v[_0x55d996(0x218)](_0x530252,s[_0x55d996(0x252)][_0x55d996(0x131)]),_0x1c6683=v['useObservable'](_0x1c428f,s['MCPConnectionError'][_0x55d996(0x1e3)]),_0x1832d6=v[_0x55d996(0x22b)](u[_0x55d996(0x198)]),_0x5da671=_0x33e047===s[_0x55d996(0x252)][_0x55d996(0x235)];_0x33e047===s[_0x55d996(0x252)][_0x55d996(0x120)]||s[_0x55d996(0x252)][_0x55d996(0x14a)];const _0xc98ef0=_0x1832d6['t'](Z(_0x33e047,_0x1c6683)),_0x55979a=Se(_0x33e047,_0x1c6683,_0x1832d6,_0x284d6f),_0x4ebdd6=Pe(_0x33e047),_0x3f19bf=_0x5da671?i[_0x55d996(0x247)](q,{}):i[_0x55d996(0x247)](Y,{}),_0xfc07ec=d[_0x55d996(0x262)](()=>{_0x284d6f&&_0x96af72&&_0x96af72();},[_0x284d6f,_0x96af72]);function _0x8c213d(){const _0x33f2be=_0x55d996;return i[_0x33f2be(0x110)](_0x33f2be(0x14c),{'className':f[_0x33f2be(0x184)](_0x33f2be(0x1df),_0x284d6f&&_0x96af72&&'\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'),'role':'button','onClick':_0x284d6f&&_0x96af72?_0xfc07ec:void 0x0,'children':[i[_0x33f2be(0x247)]('div',{'className':f[_0x33f2be(0x184)]('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x4ebdd6),'children':_0x3f19bf}),i['jsx']('div',{'className':_0x33f2be(0x1c4),'children':_0xc98ef0})]});}return i[_0x55d996(0x247)](f['Tooltip'],{'title':_0x55979a,'placement':'bottom','children':_0x8c213d()});}var Ie=Object['getOwnPropertyDescriptor'],_e=(_0x2c7824,_0x5ca375,_0x18336f,_0x3e7df2)=>{const _0x1d2dc8=_0x311d04;for(var _0x206fc9=_0x3e7df2>0x1?void 0x0:_0x3e7df2?Ie(_0x5ca375,_0x18336f):_0x5ca375,_0x4f5c1c=_0x2c7824[_0x1d2dc8(0x105)]-0x1,_0x2fb1e2;_0x4f5c1c>=0x0;_0x4f5c1c--)(_0x2fb1e2=_0x2c7824[_0x4f5c1c])&&(_0x206fc9=_0x2fb1e2(_0x206fc9)||_0x206fc9);return _0x206fc9;},N=(_0x75c6b3,_0x3a95ab)=>(_0x190f84,_0x38c46)=>_0x3a95ab(_0x190f84,_0x38c46,_0x75c6b3);exports[_0x311d04(0x16f)]=class extends u[_0x311d04(0x226)]{constructor(_0x5c08b9,_0x35563a,_0x526ff3,_0x336630){const _0x274561=_0x311d04;super(),this[_0x274561(0x254)]=_0x5c08b9,this[_0x274561(0x214)]=_0x35563a,this[_0x274561(0x1e1)]=_0x526ff3,this['_configService']=_0x336630,this[_0x274561(0x26d)](),this[_0x274561(0x18b)]();}[_0x311d04(0x26d)](){const _0x231c12=_0x311d04,_0x3ff2eb=this[_0x231c12(0x1fd)][_0x231c12(0x227)](P);_0x3ff2eb!=null&&_0x3ff2eb[_0x231c12(0x1e2)]&&(this[_0x231c12(0x214)]['enableAutoConnect']=!0x1);}[_0x311d04(0x18b)](){const _0xf1ae36=_0x311d04,_0x4a0a37=this['_configService'][_0xf1ae36(0x227)](P);(_0x4a0a37==null?void 0x0:_0x4a0a37['showStatus'])!==!0x1&&this['disposeWithMe'](this[_0xf1ae36(0x1e1)][_0xf1ae36(0x138)](v['BuiltInUIPart'][_0xf1ae36(0x234)],()=>{const _0x57fc32=_0xf1ae36;var _0x189000;return v[_0x57fc32(0x1f3)](ye({'status$':this['_connectionController'][_0x57fc32(0x13f)],'error$':this[_0x57fc32(0x214)][_0x57fc32(0x25c)],'onConfigure':()=>this[_0x57fc32(0x258)](),'showClickable':(_0x189000=_0x4a0a37==null?void 0x0:_0x4a0a37[_0x57fc32(0x1e2)])!=null?_0x189000:!0x1}),this[_0x57fc32(0x254)]);}));}[_0x311d04(0x258)](){const _0x1f259d=_0x311d04;this[_0x1f259d(0x254)]['get'](exports[_0x1f259d(0x17c)])[_0x1f259d(0x255)]();}},exports[_0x311d04(0x16f)]=_e([N(0x0,u[_0x311d04(0x209)](u['Injector'])),N(0x1,u[_0x311d04(0x209)](s[_0x311d04(0x169)])),N(0x2,v[_0x311d04(0x137)]),N(0x3,u[_0x311d04(0x215)])],exports['MCPConnectionUIController']);function ye(_0x343143){const {status$:_0x154741,error$:_0x4325f6,onConfigure:_0x5227ce,showClickable:_0xfdefb8}=_0x343143;return function(){return i['jsx'](W,{'status$':_0x154741,'error$':_0x4325f6,'onConfigure':_0x5227ce,'showClickable':_0xfdefb8});};}function Me(_0x4d51a9){const _0x21042b=_0x311d04;return{'id':b['id'],'type':v[_0x21042b(0x1b2)][_0x21042b(0x219)],'icon':_0x21042b(0x253),'title':_0x21042b(0x10c),'tooltip':_0x21042b(0x10c)};}const Ne={[v[_0x311d04(0x1aa)][_0x311d04(0x238)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x311d04(0x12a)],je=(_0x483cd8,_0x195b5c,_0x126f8c,_0x300af4)=>{const _0x202dd1=_0x311d04;for(var _0x11038c=_0x300af4>0x1?void 0x0:_0x300af4?be(_0x195b5c,_0x126f8c):_0x195b5c,_0x17a3cc=_0x483cd8[_0x202dd1(0x105)]-0x1,_0x16014d;_0x17a3cc>=0x0;_0x17a3cc--)(_0x16014d=_0x483cd8[_0x17a3cc])&&(_0x11038c=_0x16014d(_0x11038c)||_0x11038c);return _0x11038c;},z=(_0x30e30c,_0x2ff15b)=>(_0x37797c,_0x48deab)=>_0x2ff15b(_0x37797c,_0x48deab,_0x30e30c);exports[_0x311d04(0x19d)]=class extends u[_0x311d04(0x226)]{constructor(_0x197c4f,_0x16b628){const _0x430d46=_0x311d04;super(),this[_0x430d46(0x1e9)]=_0x197c4f,this[_0x430d46(0x1b5)]=_0x16b628,this[_0x430d46(0x1de)](),this[_0x430d46(0x11e)]();}['_initializeCommands'](){const _0x429fc5=_0x311d04;[b][_0x429fc5(0x130)](_0x3ba176=>{const _0x4ea9fb=_0x429fc5;this['disposeWithMe'](this[_0x4ea9fb(0x1e9)][_0x4ea9fb(0x22d)](_0x3ba176));});}[_0x311d04(0x11e)](){const _0x33ecab=_0x311d04;this[_0x33ecab(0x1b5)][_0x33ecab(0x10f)](Ne);}},exports[_0x311d04(0x19d)]=je([z(0x0,u['ICommandService']),z(0x1,v['IMenuManagerService'])],exports[_0x311d04(0x19d)]);const Ee={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x311d04(0x201),'connected':_0x311d04(0x15f),'failed':_0x311d04(0x16c),'retrying':_0x311d04(0x1e5),'unknown':_0x311d04(0x1f5),'unauthorized':_0x311d04(0x19b),'sessionOccupied':_0x311d04(0x230),'networkError':_0x311d04(0x140),'maxRetriesExceeded':_0x311d04(0x213),'clickToConnect':_0x311d04(0x23d),'clickToConfigure':_0x311d04(0x23a)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x311d04(0x1c5),'apiKeyPlaceholder':_0x311d04(0x176),'apiKeyHint':_0x311d04(0x1dd),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x311d04(0x146),'connectionInfo':_0x311d04(0x17e),'mcpClientConfig':_0x311d04(0x17e),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x311d04(0x17f),'configStep2':_0x311d04(0x171),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x311d04(0x1b3),'authorizationDescription':_0x311d04(0x14b),'configParameters':_0x311d04(0x259),'maxRetries':_0x311d04(0x192),'save':_0x311d04(0x1c6),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x311d04(0x202),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x311d04(0x206),'description':_0x311d04(0x1d4),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x311d04(0x113)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x311d04(0x24a),'invalidConfig':_0x311d04(0x1d6),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x311d04(0x242),'connected':_0x311d04(0x16a),'failed':'Connection\x20Failed','retrying':_0x311d04(0x12f)},'connectionError':{'unauthorized':_0x311d04(0x263),'sessionOccupied':_0x311d04(0x21d),'networkError':_0x311d04(0x129),'maxRetriesExceeded':_0x311d04(0x118)}}},we={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':'MCP\x20连接失败','retrying':_0x311d04(0x121),'unknown':_0x311d04(0x139),'unauthorized':_0x311d04(0x1ba),'sessionOccupied':_0x311d04(0x1c9),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x311d04(0x1da),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x311d04(0x1a7)},'mcpConfig':{'title':_0x311d04(0x1a3),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x311d04(0x1e8),'apiKeyPlaceholder':_0x311d04(0x16e),'apiKeyHint':_0x311d04(0x13c),'enableAuth':'启用身份验证','enableAuthHint':_0x311d04(0x1f8),'connectionInfo':_0x311d04(0x210),'mcpClientConfig':_0x311d04(0x210),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x311d04(0x237),'configStep1':_0x311d04(0x15a),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x311d04(0x157),'sessionId':_0x311d04(0x186),'sessionIdDescription':_0x311d04(0x24b),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x311d04(0x16b),'maxRetries':_0x311d04(0x14d),'save':'保存配置','saving':'保存中...','note1':_0x311d04(0x12c),'note2':_0x311d04(0x1ac),'configSaved':_0x311d04(0x182),'configError':_0x311d04(0x127),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x311d04(0x268),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x311d04(0x1ff)},'validation':{'apiKeyRequired':_0x311d04(0x23e),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':_0x311d04(0x191)},'connectionStatus':{'disconnected':'未连接','connecting':'连接中...','connected':_0x311d04(0x205),'failed':'连接失败','retrying':_0x311d04(0x179)},'connectionError':{'unauthorized':_0x311d04(0x1c1),'sessionOccupied':_0x311d04(0x267),'networkError':_0x311d04(0x13a),'maxRetriesExceeded':_0x311d04(0x18f)}}};var Ae=Object[_0x311d04(0x14e)],Oe=Object[_0x311d04(0x12a)],De=(_0x5bc1bc,_0x15a4eb,_0x51c442)=>_0x15a4eb in _0x5bc1bc?Ae(_0x5bc1bc,_0x15a4eb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51c442}):_0x5bc1bc[_0x15a4eb]=_0x51c442,Ue=(_0x4787a8,_0x5e5c48,_0xa5a4a9,_0x3534d9)=>{const _0x37f473=_0x311d04;for(var _0x2bf771=_0x3534d9>0x1?void 0x0:_0x3534d9?Oe(_0x5e5c48,_0xa5a4a9):_0x5e5c48,_0x200ba2=_0x4787a8[_0x37f473(0x105)]-0x1,_0x34417b;_0x200ba2>=0x0;_0x200ba2--)(_0x34417b=_0x4787a8[_0x200ba2])&&(_0x2bf771=_0x34417b(_0x2bf771)||_0x2bf771);return _0x2bf771;},y=(_0x49e5f2,_0x3a462c)=>(_0x3f78c5,_0xa853a)=>_0x3a462c(_0x3f78c5,_0xa853a,_0x49e5f2),$e=(_0x20cb17,_0x6dc36f,_0x145d41)=>De(_0x20cb17,_0x6dc36f+'',_0x145d41);exports[_0x311d04(0x1f6)]=class extends u[_0x311d04(0x1a8)]{constructor(_0x41d4b5=L,_0x8f8af4,_0x59ea78,_0x14ca94,_0x2c5d30,_0x56bdbc){const _0x4a0ace=_0x311d04;super(),this[_0x4a0ace(0x264)]=_0x41d4b5,this[_0x4a0ace(0x254)]=_0x8f8af4,this[_0x4a0ace(0x1fd)]=_0x59ea78,this[_0x4a0ace(0x1e1)]=_0x14ca94,this[_0x4a0ace(0x125)]=_0x2c5d30,this[_0x4a0ace(0x26a)]=_0x56bdbc;const {..._0x1e2b89}=u[_0x4a0ace(0x1cc)]({},L,this[_0x4a0ace(0x264)]);this['_configService'][_0x4a0ace(0x197)](P,_0x1e2b89);}async[_0x311d04(0x222)](){const _0x3cc1f6=_0x311d04,_0x239003=[[exports['MCPConnectionUIController']],[exports[_0x3cc1f6(0x17c)]],[exports['MCPUIMenuController']]];this[_0x3cc1f6(0x254)]['has'](A['ISocketService'])||_0x239003[_0x3cc1f6(0x195)]([A[_0x3cc1f6(0x122)],{'useClass':A['WebSocketService']}]),_0x239003[_0x3cc1f6(0x130)](_0x1e6383=>this[_0x3cc1f6(0x254)][_0x3cc1f6(0x1db)](_0x1e6383)),this[_0x3cc1f6(0x254)][_0x3cc1f6(0x228)](exports['MCPConnectionUIController']),this[_0x3cc1f6(0x254)][_0x3cc1f6(0x228)](exports[_0x3cc1f6(0x17c)]),this[_0x3cc1f6(0x254)][_0x3cc1f6(0x228)](exports[_0x3cc1f6(0x19d)]);}},$e(exports[_0x311d04(0x1f6)],'pluginName',_0x311d04(0x260)),exports[_0x311d04(0x1f6)]=Ue([u[_0x311d04(0x17b)](s['UniverMCPPlugin']),y(0x1,u[_0x311d04(0x209)](u['Injector'])),y(0x2,u[_0x311d04(0x215)]),y(0x3,v[_0x311d04(0x137)]),y(0x4,u[_0x311d04(0x1c3)]),y(0x5,u['Inject'](u[_0x311d04(0x198)]))],exports['UniverMCPUIPlugin']),exports['MCPConfigPanel']=V,exports[_0x311d04(0x170)]=W,exports[_0x311d04(0x114)]=b,exports[_0x311d04(0x19c)]=Ee,exports[_0x311d04(0x24d)]=we;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x571a(){const _0x3d3a1b=['602065UFhuaL','MCP\x20Disconnected','12eXLonk','MCP\x20Client\x20Configuration','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','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','9383154VwHfLU','4tjFniI','MCP:\x20Network\x20Error','2JIUVyf','Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','10RnMVjq','API\x20Key','API\x20key\x20is\x20required','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Click\x20to\x20configure\x20MCP','Max\x20Retries','Copy\x20the\x20JSON\x20configuration\x20below','Invalid\x20configuration','Retrying...','2496216MImjFd','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Unknown\x20Status','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20Parameters:','What\x20is\x20API\x20Key?','Configuration\x20Steps:','Enable\x20authentication\x20for\x20secure\x20connections','1601115IXtfEG','Failed\x20to\x20save\x20configuration','MCP\x20Connection\x20Failed','7654544bQeShT','Disconnected','13796667XxnUQr','Get\x20your\x20API\x20key\x20in\x20seconds','Enable\x20Authentication','MCP:\x20Session\x20ID\x20Occupied','Session\x20ID','MCP\x20Connected','Connected','6343246hHhtfo','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Configuration','Saving...'];_0x571a=function(){return _0x3d3a1b;};return _0x571a();}const _0x5199fb=_0x597e;function _0x597e(_0x573c4d,_0x4446f6){const _0x571a1e=_0x571a();return _0x597e=function(_0x597ee1,_0x482163){_0x597ee1=_0x597ee1-0x188;let _0x33361b=_0x571a1e[_0x597ee1];return _0x33361b;},_0x597e(_0x573c4d,_0x4446f6);}(function(_0x465a48,_0x173cf9){const _0x2f7844=_0x597e,_0x39cd98=_0x465a48();while(!![]){try{const _0x34fdaf=parseInt(_0x2f7844(0x1a0))/0x1*(parseInt(_0x2f7844(0x1aa))/0x2)+-parseInt(_0x2f7844(0x1b7))/0x3*(parseInt(_0x2f7844(0x1a8))/0x4)+parseInt(_0x2f7844(0x190))/0x5*(parseInt(_0x2f7844(0x1a2))/0x6)+-parseInt(_0x2f7844(0x19c))/0x7+-parseInt(_0x2f7844(0x193))/0x8+-parseInt(_0x2f7844(0x195))/0x9*(-parseInt(_0x2f7844(0x1ad))/0xa)+parseInt(_0x2f7844(0x1a7))/0xb;if(_0x34fdaf===_0x173cf9)break;else _0x39cd98['push'](_0x39cd98['shift']());}catch(_0x34e037){_0x39cd98['push'](_0x39cd98['shift']());}}}(_0x571a,0xe3e2c));const e={'mcpStatus':{'disconnected':_0x5199fb(0x1a1),'connecting':'MCP\x20Connecting...','connected':_0x5199fb(0x19a),'failed':_0x5199fb(0x192),'retrying':'MCP\x20Retrying...','unknown':_0x5199fb(0x188),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x5199fb(0x198),'networkError':_0x5199fb(0x1a9),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x5199fb(0x1b2)},'mcpConfig':{'title':_0x5199fb(0x19e),'description':_0x5199fb(0x1ac),'apiKey':_0x5199fb(0x1ae),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x5199fb(0x197),'enableAuthHint':_0x5199fb(0x18f),'connectionInfo':_0x5199fb(0x1a3),'mcpClientConfig':_0x5199fb(0x1a3),'configInstructions':_0x5199fb(0x189),'configStepTitle':_0x5199fb(0x18e),'configStep1':_0x5199fb(0x1b4),'configStep2':_0x5199fb(0x1a5),'configStep3':_0x5199fb(0x19d),'sessionId':_0x5199fb(0x199),'sessionIdDescription':_0x5199fb(0x1a4),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x5199fb(0x18c),'maxRetries':_0x5199fb(0x1b3),'save':'Save\x20Configuration','saving':_0x5199fb(0x19f),'note1':_0x5199fb(0x1b0),'note2':_0x5199fb(0x18b),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x5199fb(0x191),'apiApplyInfo':{'title':_0x5199fb(0x18d),'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':_0x5199fb(0x196)},'validation':{'apiKeyRequired':_0x5199fb(0x1af),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x5199fb(0x1b5),'invalidApiKey':_0x5199fb(0x18a)},'connectionStatus':{'disconnected':_0x5199fb(0x194),'connecting':_0x5199fb(0x1ab),'connected':_0x5199fb(0x19b),'failed':'Connection\x20Failed','retrying':_0x5199fb(0x1b6)},'connectionError':{'unauthorized':_0x5199fb(0x1b8),'sessionOccupied':_0x5199fb(0x1b1),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x5199fb(0x1a6)}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4cc0da=_0x5560;(function(_0x142f0f,_0x350275){const _0xf8f16b=_0x5560,_0x1d55bb=_0x142f0f();while(!![]){try{const _0x4eab93=-parseInt(_0xf8f16b(0x1c3))/0x1+-parseInt(_0xf8f16b(0x1b7))/0x2+parseInt(_0xf8f16b(0x1d0))/0x3*(parseInt(_0xf8f16b(0x1b5))/0x4)+parseInt(_0xf8f16b(0x1b6))/0x5*(-parseInt(_0xf8f16b(0x1c5))/0x6)+-parseInt(_0xf8f16b(0x1de))/0x7+parseInt(_0xf8f16b(0x1cd))/0x8*(parseInt(_0xf8f16b(0x1e1))/0x9)+parseInt(_0xf8f16b(0x1e0))/0xa;if(_0x4eab93===_0x350275)break;else _0x1d55bb['push'](_0x1d55bb['shift']());}catch(_0x293395){_0x1d55bb['push'](_0x1d55bb['shift']());}}}(_0x78f0,0xe3b48));function _0x5560(_0x5d54c4,_0x548ea7){const _0x78f05f=_0x78f0();return _0x5560=function(_0x556050,_0x272fb8){_0x556050=_0x556050-0x1b0;let _0x2f1884=_0x78f05f[_0x556050];return _0x2f1884;},_0x5560(_0x5d54c4,_0x548ea7);}const e={'mcpStatus':{'disconnected':_0x4cc0da(0x1b0),'connecting':'MCP\x20Connecting...','connected':_0x4cc0da(0x1c7),'failed':_0x4cc0da(0x1cf),'retrying':_0x4cc0da(0x1d7),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x4cc0da(0x1ce),'sessionOccupied':_0x4cc0da(0x1d9),'networkError':_0x4cc0da(0x1d4),'maxRetriesExceeded':_0x4cc0da(0x1c0),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x4cc0da(0x1b9)},'mcpConfig':{'title':_0x4cc0da(0x1b1),'description':_0x4cc0da(0x1bb),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x4cc0da(0x1ba),'apiKeyHint':_0x4cc0da(0x1b2),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x4cc0da(0x1d8),'connectionInfo':_0x4cc0da(0x1ca),'mcpClientConfig':_0x4cc0da(0x1ca),'configInstructions':_0x4cc0da(0x1be),'configStepTitle':_0x4cc0da(0x1d2),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x4cc0da(0x1d6),'configStep3':_0x4cc0da(0x1db),'sessionId':_0x4cc0da(0x1c8),'sessionIdDescription':_0x4cc0da(0x1c9),'authorizationDescription':_0x4cc0da(0x1b8),'configParameters':_0x4cc0da(0x1e4),'maxRetries':_0x4cc0da(0x1dc),'save':_0x4cc0da(0x1e2),'saving':'Saving...','note1':_0x4cc0da(0x1bd),'note2':_0x4cc0da(0x1c4),'configSaved':_0x4cc0da(0x1b4),'configError':_0x4cc0da(0x1d1),'apiApplyInfo':{'title':_0x4cc0da(0x1c1),'description':_0x4cc0da(0x1cb),'univerAiLabel':_0x4cc0da(0x1d5),'getStarted':_0x4cc0da(0x1bf)},'validation':{'apiKeyRequired':_0x4cc0da(0x1b3),'apiKeyTooShort':_0x4cc0da(0x1dd),'invalidConfig':_0x4cc0da(0x1bc),'invalidApiKey':_0x4cc0da(0x1df)},'connectionStatus':{'disconnected':_0x4cc0da(0x1d3),'connecting':_0x4cc0da(0x1c6),'connected':'Connected','failed':_0x4cc0da(0x1e3),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x4cc0da(0x1da),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4cc0da(0x1cc),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};function _0x78f0(){const _0x2463e1=['128mfPFJK','MCP:\x20Unauthorized','MCP\x20Connection\x20Failed','6tThUkZ','Failed\x20to\x20save\x20configuration','Configuration\x20Steps:','Disconnected','MCP:\x20Network\x20Error','Univer\x20AI\x20Console','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Retrying...','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Session\x20ID\x20Occupied','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Max\x20Retries','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','6629504GubeIV','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','20817410JVoUep','701910OqiMmS','Save\x20Configuration','Connection\x20Failed','Configuration\x20Parameters:','MCP\x20Disconnected','MCP\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20is\x20required','Configuration\x20saved\x20successfully','192016jKUhSD','155zeawqD','297510MiBlKn','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20configure\x20MCP','Enter\x20your\x20API\x20key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Invalid\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Max\x20Retries\x20Exceeded','What\x20is\x20API\x20Key?','exports','1377676BuRRCO','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','3756UUXVRm','Connecting...','MCP\x20Connected','Session\x20ID','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Client\x20Configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection'];_0x78f0=function(){return _0x2463e1;};return _0x78f0();}module[_0x4cc0da(0x1c2)]=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x96ea48=_0x1bad;(function(_0x23c606,_0x43ab55){const _0x5e967f=_0x1bad,_0x270b80=_0x23c606();while(!![]){try{const _0x20ad98=-parseInt(_0x5e967f(0xd0))/0x1*(parseInt(_0x5e967f(0x9a))/0x2)+-parseInt(_0x5e967f(0xcd))/0x3*(parseInt(_0x5e967f(0xa8))/0x4)+parseInt(_0x5e967f(0xa9))/0x5*(parseInt(_0x5e967f(0xbc))/0x6)+-parseInt(_0x5e967f(0x9b))/0x7*(parseInt(_0x5e967f(0xc7))/0x8)+-parseInt(_0x5e967f(0x9e))/0x9*(parseInt(_0x5e967f(0xbf))/0xa)+parseInt(_0x5e967f(0x9d))/0xb+-parseInt(_0x5e967f(0xa1))/0xc*(parseInt(_0x5e967f(0xaa))/0xd);if(_0x20ad98===_0x43ab55)break;else _0x270b80['push'](_0x270b80['shift']());}catch(_0x128e5){_0x270b80['push'](_0x270b80['shift']());}}}(_0x41b7,0xf004e));function _0x41b7(){const _0x338a4f=['MCP\x20Connecting...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Retrying...','API\x20Key','Univer\x20AI\x20Console','6fddxSa','Failed\x20to\x20save\x20configuration','MCP\x20Disconnected','10jYztSf','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Network\x20Error','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connection\x20Failed','MCP:\x20Unauthorized','32MuLoWg','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','41133JDwQDh','Enable\x20Authentication','Saving...','398gVbjri','3474pWUWbp','228921PfSoEQ','API\x20key\x20is\x20required','13885553HhEHUF','3212874VJNjdU','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','2988juCIvE','Connection\x20Failed','MCP\x20Unknown\x20Status','Max\x20Retries','exports','Enable\x20authentication\x20for\x20secure\x20connections','Get\x20your\x20API\x20key\x20in\x20seconds','128didFGv','9534445SPfOyP','29666evwzno','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20Parameters:','Connecting...','Click\x20to\x20connect\x20MCP','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','What\x20is\x20API\x20Key?','Save\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Session\x20ID','MCP\x20Client\x20Configuration','Enter\x20your\x20API\x20key'];_0x41b7=function(){return _0x338a4f;};return _0x41b7();}const e={'mcpStatus':{'disconnected':_0x96ea48(0xbe),'connecting':_0x96ea48(0xb6),'connected':'MCP\x20Connected','failed':_0x96ea48(0xc5),'retrying':_0x96ea48(0xb9),'unknown':_0x96ea48(0xa3),'unauthorized':_0x96ea48(0xc6),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x96ea48(0xc2),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x96ea48(0xae),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x96ea48(0xc9),'apiKey':_0x96ea48(0xba),'apiKeyPlaceholder':_0x96ea48(0xb5),'apiKeyHint':_0x96ea48(0xab),'enableAuth':_0x96ea48(0xce),'enableAuthHint':_0x96ea48(0xa6),'connectionInfo':_0x96ea48(0xb4),'mcpClientConfig':_0x96ea48(0xb4),'configInstructions':_0x96ea48(0x9f),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x96ea48(0xb8),'configStep2':_0x96ea48(0xc8),'configStep3':_0x96ea48(0xcc),'sessionId':_0x96ea48(0xb3),'sessionIdDescription':_0x96ea48(0xca),'authorizationDescription':_0x96ea48(0xc4),'configParameters':_0x96ea48(0xac),'maxRetries':_0x96ea48(0xa4),'save':_0x96ea48(0xb1),'saving':_0x96ea48(0xcf),'note1':_0x96ea48(0xa0),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x96ea48(0xbd),'apiApplyInfo':{'title':_0x96ea48(0xb0),'description':_0x96ea48(0xb7),'univerAiLabel':_0x96ea48(0xbb),'getStarted':_0x96ea48(0xa7)},'validation':{'apiKeyRequired':_0x96ea48(0x9c),'apiKeyTooShort':_0x96ea48(0xc1),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x96ea48(0xb2)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x96ea48(0xad),'connected':'Connected','failed':_0x96ea48(0xa2),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x96ea48(0xaf),'sessionOccupied':_0x96ea48(0xcb),'networkError':_0x96ea48(0xc3),'maxRetriesExceeded':_0x96ea48(0xc0)}}},n=e;function _0x1bad(_0x9cf4d,_0xaff25b){const _0x41b7c8=_0x41b7();return _0x1bad=function(_0x1bad0c,_0x2a6b78){_0x1bad0c=_0x1bad0c-0x9a;let _0x3f45a2=_0x41b7c8[_0x1bad0c];return _0x3f45a2;},_0x1bad(_0x9cf4d,_0xaff25b);}module[_0x96ea48(0xa5)]=n;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x465a53=_0x14c7;(function(_0x12e631,_0x571319){const _0x23ed59=_0x14c7,_0x1b3391=_0x12e631();while(!![]){try{const _0x37b200=-parseInt(_0x23ed59(0x1ab))/0x1*(parseInt(_0x23ed59(0x18d))/0x2)+-parseInt(_0x23ed59(0x1a5))/0x3+-parseInt(_0x23ed59(0x196))/0x4+-parseInt(_0x23ed59(0x1b3))/0x5+parseInt(_0x23ed59(0x198))/0x6+parseInt(_0x23ed59(0x1a0))/0x7*(-parseInt(_0x23ed59(0x18a))/0x8)+-parseInt(_0x23ed59(0x19d))/0x9*(-parseInt(_0x23ed59(0x1b0))/0xa);if(_0x37b200===_0x571319)break;else _0x1b3391['push'](_0x1b3391['shift']());}catch(_0x1ce53f){_0x1b3391['push'](_0x1b3391['shift']());}}}(_0x200e,0x68935));function _0x200e(){const _0x597eaa=['MCP\x20Client\x20Configuration','3132884vEeWEF','Click\x20to\x20connect\x20MCP','569706cDsPQS','MCP:\x20Session\x20ID\x20Occupied','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Session\x20ID','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','2043981QQEMdL','API\x20Key','API\x20key\x20with\x20Bearer\x20prefix.','20993ICcgnc','Connecting...','Univer\x20AI\x20Console','MCP\x20Unknown\x20Status','MCP\x20Configuration','2272974xSvCqW','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Retrying...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','271grqSjr','API\x20key\x20is\x20required','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','What\x20is\x20API\x20Key?','MCP\x20Connecting...','150YVpWOh','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Unauthorized','2602375TUbstK','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connection\x20Failed','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20saved\x20successfully','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connected','MCP\x20Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','592UEjHhq','Enter\x20your\x20API\x20key','Click\x20to\x20configure\x20MCP','5830dgyYhL','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Save\x20Configuration','Invalid\x20configuration','exports','Enable\x20Authentication','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Saving...'];_0x200e=function(){return _0x597eaa;};return _0x200e();}function _0x14c7(_0x52ad7f,_0x427f28){const _0x200e31=_0x200e();return _0x14c7=function(_0x14c70c,_0x490d01){_0x14c70c=_0x14c70c-0x187;let _0x41a5b2=_0x200e31[_0x14c70c];return _0x41a5b2;},_0x14c7(_0x52ad7f,_0x427f28);}const e={'mcpStatus':{'disconnected':_0x465a53(0x188),'connecting':_0x465a53(0x1af),'connected':_0x465a53(0x187),'failed':_0x465a53(0x1b6),'retrying':_0x465a53(0x1a9),'unknown':_0x465a53(0x1a3),'unauthorized':_0x465a53(0x1b2),'sessionOccupied':_0x465a53(0x199),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x465a53(0x197),'clickToConfigure':_0x465a53(0x18c)},'mcpConfig':{'title':_0x465a53(0x1a4),'description':_0x465a53(0x1a6),'apiKey':_0x465a53(0x19e),'apiKeyPlaceholder':_0x465a53(0x18b),'apiKeyHint':_0x465a53(0x1a8),'enableAuth':_0x465a53(0x192),'enableAuthHint':_0x465a53(0x1b5),'connectionInfo':_0x465a53(0x195),'mcpClientConfig':_0x465a53(0x195),'configInstructions':_0x465a53(0x19a),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x465a53(0x1ad),'configStep3':_0x465a53(0x19c),'sessionId':_0x465a53(0x19b),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x465a53(0x19f),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x465a53(0x18f),'saving':_0x465a53(0x194),'note1':_0x465a53(0x1b9),'note2':_0x465a53(0x18e),'configSaved':_0x465a53(0x1b8),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x465a53(0x1ae),'description':_0x465a53(0x193),'univerAiLabel':_0x465a53(0x1a2),'getStarted':_0x465a53(0x1aa)},'validation':{'apiKeyRequired':_0x465a53(0x1ac),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x465a53(0x190),'invalidApiKey':_0x465a53(0x1b7)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x465a53(0x1a1),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x465a53(0x1a7)},'connectionError':{'unauthorized':_0x465a53(0x1b4),'sessionOccupied':_0x465a53(0x189),'networkError':_0x465a53(0x1b1),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x465a53(0x191)]=n;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0xd946a3=_0x357a;(function(_0xd85687,_0x447d50){const _0x3a124d=_0x357a,_0xff3714=_0xd85687();while(!![]){try{const _0x3904f3=parseInt(_0x3a124d(0x20c))/0x1*(-parseInt(_0x3a124d(0x1ec))/0x2)+-parseInt(_0x3a124d(0x1f0))/0x3+-parseInt(_0x3a124d(0x201))/0x4+-parseInt(_0x3a124d(0x1e5))/0x5*(-parseInt(_0x3a124d(0x1ff))/0x6)+parseInt(_0x3a124d(0x200))/0x7+-parseInt(_0x3a124d(0x20b))/0x8+-parseInt(_0x3a124d(0x1e0))/0x9*(-parseInt(_0x3a124d(0x1e8))/0xa);if(_0x3904f3===_0x447d50)break;else _0xff3714['push'](_0xff3714['shift']());}catch(_0x3f054e){_0xff3714['push'](_0xff3714['shift']());}}}(_0x1d31,0x7a528));function _0x357a(_0xe150bf,_0x2e1bd2){const _0x1d3120=_0x1d31();return _0x357a=function(_0x357a63,_0x554e33){_0x357a63=_0x357a63-0x1d7;let _0xf6eb20=_0x1d3120[_0x357a63];return _0xf6eb20;},_0x357a(_0xe150bf,_0x2e1bd2);}function _0x1d31(){const _0x2a435a=['820117tWdqmi','Connecting...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Save\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Session\x20ID','Invalid\x20configuration','API\x20Key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20with\x20Bearer\x20prefix.','19179haPFmi','MCP:\x20Network\x20Error','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Univer\x20AI\x20Console','110WSGDGm','Click\x20to\x20connect\x20MCP','MCP:\x20Session\x20ID\x20Occupied','8790oQuamg','What\x20is\x20API\x20Key?','Failed\x20to\x20save\x20configuration','API\x20key\x20is\x20required','2qNohlq','MCP\x20Retrying...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20Steps:','2694456jGqWKT','MCP\x20Configuration','Disconnected','Max\x20Retries','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Client\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20Parameters:','Connected','MCP\x20Connected','Click\x20to\x20configure\x20MCP','MCP\x20Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connecting...','103182toNXes','5829124UDipyi','2494536jQznln','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Max\x20Retries\x20Exceeded','Enable\x20Authentication','Enter\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Retrying...','exports','Connection\x20Failed','1930240cApdny'];_0x1d31=function(){return _0x2a435a;};return _0x1d31();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0xd946a3(0x1fe),'connected':_0xd946a3(0x1fa),'failed':_0xd946a3(0x1fc),'retrying':_0xd946a3(0x1ed),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0xd946a3(0x1e7),'networkError':_0xd946a3(0x1e1),'maxRetriesExceeded':_0xd946a3(0x204),'clickToConnect':_0xd946a3(0x1e6),'clickToConfigure':_0xd946a3(0x1fb)},'mcpConfig':{'title':_0xd946a3(0x1f1),'description':_0xd946a3(0x1e3),'apiKey':_0xd946a3(0x1dd),'apiKeyPlaceholder':_0xd946a3(0x206),'apiKeyHint':_0xd946a3(0x1f7),'enableAuth':_0xd946a3(0x205),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0xd946a3(0x1f6),'mcpClientConfig':_0xd946a3(0x1f6),'configInstructions':_0xd946a3(0x1f5),'configStepTitle':_0xd946a3(0x1ef),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0xd946a3(0x202),'configStep3':_0xd946a3(0x1fd),'sessionId':_0xd946a3(0x1db),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0xd946a3(0x1df),'configParameters':_0xd946a3(0x1f8),'maxRetries':_0xd946a3(0x1f3),'save':_0xd946a3(0x1d9),'saving':'Saving...','note1':_0xd946a3(0x207),'note2':_0xd946a3(0x1e2),'configSaved':'Configuration\x20saved\x20successfully','configError':_0xd946a3(0x1ea),'apiApplyInfo':{'title':_0xd946a3(0x1e9),'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':_0xd946a3(0x1e4),'getStarted':_0xd946a3(0x203)},'validation':{'apiKeyRequired':_0xd946a3(0x1eb),'apiKeyTooShort':_0xd946a3(0x1d8),'invalidConfig':_0xd946a3(0x1dc),'invalidApiKey':_0xd946a3(0x1da)},'connectionStatus':{'disconnected':_0xd946a3(0x1f2),'connecting':_0xd946a3(0x1d7),'connected':_0xd946a3(0x1f9),'failed':_0xd946a3(0x20a),'retrying':_0xd946a3(0x208)},'connectionError':{'unauthorized':_0xd946a3(0x1ee),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0xd946a3(0x1de),'maxRetriesExceeded':_0xd946a3(0x1f4)}}},n=e;module[_0xd946a3(0x209)]=n;
|
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x216c6c=_0x29e8;(function(_0x374c3c,_0x32c3d3){const _0x21e90b=_0x29e8,_0x54c506=_0x374c3c();while(!![]){try{const _0x2c91ad=-parseInt(_0x21e90b(0x130))/0x1*(parseInt(_0x21e90b(0x135))/0x2)+-parseInt(_0x21e90b(0x139))/0x3+-parseInt(_0x21e90b(0x148))/0x4+parseInt(_0x21e90b(0x15d))/0x5+parseInt(_0x21e90b(0x13b))/0x6*(-parseInt(_0x21e90b(0x13e))/0x7)+parseInt(_0x21e90b(0x146))/0x8*(-parseInt(_0x21e90b(0x154))/0x9)+-parseInt(_0x21e90b(0x13d))/0xa*(-parseInt(_0x21e90b(0x15e))/0xb);if(_0x2c91ad===_0x32c3d3)break;else _0x54c506['push'](_0x54c506['shift']());}catch(_0x14df11){_0x54c506['push'](_0x54c506['shift']());}}}(_0x436c,0x77893));function _0x29e8(_0x4e8a5c,_0xb3dc0b){const _0x436c96=_0x436c();return _0x29e8=function(_0x29e8ef,_0x2bb535){_0x29e8ef=_0x29e8ef-0x130;let _0x2492c8=_0x436c96[_0x29e8ef];return _0x2492c8;},_0x29e8(_0x4e8a5c,_0xb3dc0b);}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x216c6c(0x153),'connected':_0x216c6c(0x151),'failed':_0x216c6c(0x150),'retrying':_0x216c6c(0x156),'unknown':_0x216c6c(0x14a),'unauthorized':_0x216c6c(0x136),'sessionOccupied':_0x216c6c(0x14f),'networkError':_0x216c6c(0x142),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x216c6c(0x149),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x216c6c(0x138),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x216c6c(0x134),'apiKeyPlaceholder':_0x216c6c(0x132),'apiKeyHint':_0x216c6c(0x155),'enableAuth':_0x216c6c(0x143),'enableAuthHint':_0x216c6c(0x13f),'connectionInfo':_0x216c6c(0x141),'mcpClientConfig':_0x216c6c(0x141),'configInstructions':_0x216c6c(0x159),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x216c6c(0x131),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x216c6c(0x13c),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x216c6c(0x15c),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x216c6c(0x15f),'saving':_0x216c6c(0x152),'note1':_0x216c6c(0x140),'note2':_0x216c6c(0x14b),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x216c6c(0x137),'apiApplyInfo':{'title':_0x216c6c(0x133),'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':_0x216c6c(0x158),'getStarted':_0x216c6c(0x147)},'validation':{'apiKeyRequired':_0x216c6c(0x14d),'apiKeyTooShort':_0x216c6c(0x13a),'invalidConfig':_0x216c6c(0x157),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x216c6c(0x14c),'connecting':_0x216c6c(0x14e),'connected':'Connected','failed':_0x216c6c(0x15a),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x216c6c(0x15b),'sessionOccupied':_0x216c6c(0x145),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x216c6c(0x144)]=n;function _0x436c(){const _0x93b80=['Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enter\x20your\x20API\x20key','What\x20is\x20API\x20Key?','API\x20Key','1925474eeRGqI','MCP:\x20Unauthorized','Failed\x20to\x20save\x20configuration','MCP\x20Configuration','563598iWxthZ','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','1879788zHoMLx','Session\x20ID','100jciSRD','14AetXJd','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Client\x20Configuration','MCP:\x20Network\x20Error','Enable\x20Authentication','exports','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','11848wnxvgm','Get\x20your\x20API\x20key\x20in\x20seconds','2155284dLMvsT','Click\x20to\x20connect\x20MCP','MCP\x20Unknown\x20Status','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Disconnected','API\x20key\x20is\x20required','Connecting...','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Connection\x20Failed','MCP\x20Connected','Saving...','MCP\x20Connecting...','171aREGFO','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Retrying...','Invalid\x20configuration','Univer\x20AI\x20Console','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Connection\x20Failed','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20with\x20Bearer\x20prefix.','1160040PCGfKW','2861947ujbZRC','Save\x20Configuration','1MYjEtV'];_0x436c=function(){return _0x93b80;};return _0x436c();}
|