@univerjs-pro/mcp-ui 0.10.14-nightly.202511070640 → 0.10.14-nightly.202511080715
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 _0x3e22ba=_0x4786;(function(_0x5e2f66,_0x12a28b){const _0x310576=_0x4786,_0x1b7d03=_0x5e2f66();while(!![]){try{const _0x17b76a=parseInt(_0x310576(0x182))/0x1+parseInt(_0x310576(0x120))/0x2+-parseInt(_0x310576(0xb7))/0x3*(-parseInt(_0x310576(0xd1))/0x4)+-parseInt(_0x310576(0x1c4))/0x5+parseInt(_0x310576(0x169))/0x6+-parseInt(_0x310576(0xdf))/0x7+-parseInt(_0x310576(0x10e))/0x8;if(_0x17b76a===_0x12a28b)break;else _0x1b7d03['push'](_0x1b7d03['shift']());}catch(_0x431ca8){_0x1b7d03['push'](_0x1b7d03['shift']());}}}(_0x2777,0x4d1d0));var ae=Object[_0x3e22ba(0xf2)],le=(_0x5e4664,_0x54e66d,_0x163c6d)=>_0x54e66d in _0x5e4664?ae(_0x5e4664,_0x54e66d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x163c6d}):_0x5e4664[_0x54e66d]=_0x163c6d,I=(_0x54fc85,_0x238df9,_0x588c20)=>le(_0x54fc85,typeof _0x238df9!=_0x3e22ba(0x1f2)?_0x238df9+'':_0x238df9,_0x588c20);Object[_0x3e22ba(0xf2)](exports,Symbol[_0x3e22ba(0x91)],{'value':_0x3e22ba(0x1d8)});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:_0x59d6de,..._0x233b66}){const _0x4b8f70=_0x3e22ba,{icon:_0x2a8494,id:_0x233959,className:_0x1ca0cb,extend:_0x316219,..._0xa52b19}=_0x233b66,_0xb4a43c=(_0x4b8f70(0x14d)+_0x233959+'\x20'+(_0x1ca0cb||''))[_0x4b8f70(0x1c9)](),_0x3555a3=d['useRef']('_'+de());return G(_0x2a8494,''+_0x233959,{'defIds':_0x2a8494[_0x4b8f70(0x186)],'idSuffix':_0x3555a3[_0x4b8f70(0x121)]},{'ref':_0x59d6de,'className':_0xb4a43c,..._0xa52b19},_0x316219);}function G(_0x30bd96,_0x32c4bb,_0x2664f9,_0x77725f,_0x3cc4e0){const _0x5bbd02=_0x3e22ba;return d[_0x5bbd02(0x1e3)](_0x30bd96[_0x5bbd02(0xe1)],{'key':_0x32c4bb,...ue(_0x30bd96,_0x2664f9,_0x3cc4e0),..._0x77725f},(ve(_0x30bd96,_0x2664f9)['children']||[])['map']((_0x6b0fe8,_0x211964)=>G(_0x6b0fe8,_0x32c4bb+'-'+_0x30bd96[_0x5bbd02(0xe1)]+'-'+_0x211964,_0x2664f9,void 0x0,_0x3cc4e0)));}function ue(_0x4f5660,_0x2f7e74,_0x400713){const _0x3878a5=_0x3e22ba,_0xf9c935={..._0x4f5660[_0x3878a5(0xd5)]};_0x400713!=null&&_0x400713['colorChannel1']&&_0xf9c935[_0x3878a5(0x78)]===_0x3878a5(0xf0)&&(_0xf9c935[_0x3878a5(0x78)]=_0x400713['colorChannel1']),_0x4f5660[_0x3878a5(0xe1)]===_0x3878a5(0x177)&&_0xf9c935['id']&&(_0xf9c935['id']=_0xf9c935['id']+_0x2f7e74[_0x3878a5(0x133)]),Object[_0x3878a5(0x79)](_0xf9c935)[_0x3878a5(0x84)](([_0x37702f,_0x14f4bc])=>{const _0x4f0f8b=_0x3878a5;_0x37702f===_0x4f0f8b(0x177)&&typeof _0x14f4bc==_0x4f0f8b(0x168)&&(_0xf9c935[_0x37702f]=_0x14f4bc[_0x4f0f8b(0x13f)](/url\(#(.*)\)/,_0x4f0f8b(0x165)+_0x2f7e74[_0x4f0f8b(0x133)]+')'));});const {defIds:_0x17ca17}=_0x2f7e74;return!_0x17ca17||_0x17ca17['length']===0x0||(_0x4f5660['tag']===_0x3878a5(0x1d5)&&_0xf9c935[_0x3878a5(0x9e)]&&(_0xf9c935[_0x3878a5(0x9e)]=_0xf9c935[_0x3878a5(0x9e)]+_0x2f7e74[_0x3878a5(0x133)]),Object['entries'](_0xf9c935)[_0x3878a5(0x84)](([_0x3b1844,_0xe4915c])=>{const _0x59aa3e=_0x3878a5;typeof _0xe4915c==_0x59aa3e(0x168)&&(_0xf9c935[_0x3b1844]=_0xe4915c[_0x59aa3e(0x13f)](/url\(#(.*)\)/,_0x59aa3e(0x165)+_0x2f7e74[_0x59aa3e(0x133)]+')'));})),_0xf9c935;}function ve(_0x9769e2,_0x1d093a){const _0x16c44b=_0x3e22ba;var _0x545d0c;const {defIds:_0x466b3c}=_0x1d093a;return!_0x466b3c||_0x466b3c[_0x16c44b(0xfe)]===0x0?_0x9769e2:_0x9769e2[_0x16c44b(0xe1)]==='defs'&&((_0x545d0c=_0x9769e2[_0x16c44b(0x1f6)])!=null&&_0x545d0c[_0x16c44b(0xfe)])?{..._0x9769e2,'children':_0x9769e2['children'][_0x16c44b(0x17a)](_0x5978ab=>typeof _0x5978ab[_0x16c44b(0xd5)]['id']==_0x16c44b(0x168)&&_0x466b3c&&_0x466b3c['includes'](_0x5978ab[_0x16c44b(0xd5)]['id'])?{..._0x5978ab,'attrs':{..._0x5978ab[_0x16c44b(0xd5)],'id':_0x5978ab[_0x16c44b(0xd5)]['id']+_0x1d093a[_0x16c44b(0x133)]}}:_0x5978ab)}:_0x9769e2;}function de(){const _0x4bf764=_0x3e22ba;return Math[_0x4bf764(0xce)]()[_0x4bf764(0x1b3)](0x24)[_0x4bf764(0x13c)](0x2,0x8);}_[_0x3e22ba(0xb5)]=_0x3e22ba(0x1b9);const Ce={'tag':_0x3e22ba(0x1a4),'attrs':{'xmlns':_0x3e22ba(0x17f),'fill':_0x3e22ba(0x1a5),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x3e22ba(0x8d)},'children':[{'tag':'path','attrs':{'fill':_0x3e22ba(0x1fc),'d':_0x3e22ba(0x183),'fillRule':_0x3e22ba(0x15d),'clipRule':_0x3e22ba(0x15d)}}]},H=d[_0x3e22ba(0x125)](function(_0x200eb1,_0x4d531b){const _0xf991a3=_0x3e22ba;return d[_0xf991a3(0x1e3)](_,Object[_0xf991a3(0x1df)]({},_0x200eb1,{'id':_0xf991a3(0xe0),'ref':_0x4d531b,'icon':Ce}));});H[_0x3e22ba(0xb5)]=_0x3e22ba(0x1f3);const ge={'tag':'svg','attrs':{'xmlns':_0x3e22ba(0x17f),'fill':_0x3e22ba(0x1a5),'viewBox':_0x3e22ba(0x1b6),'width':'1em','height':_0x3e22ba(0x8d)},'children':[{'tag':'path','attrs':{'fill':_0x3e22ba(0x1fc),'d':_0x3e22ba(0xa8)}}]},B=d['forwardRef'](function(_0x2fe92e,_0x81040f){const _0x398828=_0x3e22ba;return d['createElement'](_,Object[_0x398828(0x1df)]({},_0x2fe92e,{'id':_0x398828(0x19b),'ref':_0x81040f,'icon':ge}));});B[_0x3e22ba(0xb5)]=_0x3e22ba(0x144);const fe={'tag':_0x3e22ba(0x1a4),'attrs':{'xmlns':_0x3e22ba(0x17f),'fill':'none','viewBox':_0x3e22ba(0x1b6),'width':'1em','height':_0x3e22ba(0x8d)},'children':[{'tag':_0x3e22ba(0x13b),'attrs':{'fill':_0x3e22ba(0x1fc),'d':_0x3e22ba(0xea)}},{'tag':'path','attrs':{'fill':_0x3e22ba(0x1fc),'d':_0x3e22ba(0x8a)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x3e22ba(0x114),'fillRule':_0x3e22ba(0x15d),'clipRule':_0x3e22ba(0x15d)}}]},F=d['forwardRef'](function(_0x5f252e,_0x1e28c9){const _0x354058=_0x3e22ba;return d[_0x354058(0x1e3)](_,Object['assign']({},_0x5f252e,{'id':_0x354058(0x108),'ref':_0x1e28c9,'icon':fe}));});F[_0x3e22ba(0xb5)]=_0x3e22ba(0x10b);const pe={'tag':'svg','attrs':{'xmlns':_0x3e22ba(0x17f),'fill':_0x3e22ba(0x1a5),'viewBox':_0x3e22ba(0x1b6),'width':_0x3e22ba(0x8d),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x3e22ba(0xeb),'strokeLinecap':'round','strokeLinejoin':_0x3e22ba(0x193),'strokeWidth':1.2}}]},{'tag':_0x3e22ba(0xba),'attrs':{},'children':[{'tag':_0x3e22ba(0x9d),'attrs':{'id':_0x3e22ba(0x7c)},'children':[{'tag':_0x3e22ba(0x13b),'attrs':{'fill':_0x3e22ba(0x145),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Y=d[_0x3e22ba(0x125)](function(_0x28fbc7,_0x40cef1){const _0x302b6d=_0x3e22ba;return d[_0x302b6d(0x1e3)](_,Object[_0x302b6d(0x1df)]({},_0x28fbc7,{'id':_0x302b6d(0x176),'ref':_0x40cef1,'icon':pe}));});Y[_0x3e22ba(0xb5)]=_0x3e22ba(0x19c);const he={'tag':_0x3e22ba(0x1a4),'attrs':{'xmlns':_0x3e22ba(0x17f),'fill':_0x3e22ba(0x1a5),'viewBox':_0x3e22ba(0x1ac),'width':_0x3e22ba(0x8d),'height':_0x3e22ba(0x8d)},'children':[{'tag':'g','attrs':{'clipPath':_0x3e22ba(0x134)},'children':[{'tag':_0x3e22ba(0x13b),'attrs':{'stroke':_0x3e22ba(0x1fc),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x3e22ba(0x193),'strokeLinejoin':_0x3e22ba(0x193),'strokeWidth':1.2}}]},{'tag':_0x3e22ba(0xba),'attrs':{},'children':[{'tag':_0x3e22ba(0x9d),'attrs':{'id':_0x3e22ba(0x19d)},'children':[{'tag':_0x3e22ba(0x13b),'attrs':{'fill':_0x3e22ba(0x145),'d':_0x3e22ba(0x184),'transform':_0x3e22ba(0x1e1)}}]}]}],'defIds':[_0x3e22ba(0x19d)]},q=d[_0x3e22ba(0x125)](function(_0x39662e,_0x446a86){const _0x5de831=_0x3e22ba;return d['createElement'](_,Object[_0x5de831(0x1df)]({},_0x39662e,{'id':_0x5de831(0x16f),'ref':_0x446a86,'icon':he}));});q[_0x3e22ba(0xb5)]=_0x3e22ba(0x192);function V(_0x222b84){const _0xaa3071=_0x3e22ba;var _0x2ca5f5,_0x29cbaa;const {mcpCoreConfig:_0x476e67,onSave:_0x31a21b,loading:_0x34f5e5=!0x1,config:_0x162459,connectionStatus$:_0x73c85d,connectionError$:_0x537c03,currentApiKey$:_0x14758c,currentSessionId$:_0x3b7519}=_0x222b84,_0x1fc6d8=v[_0xaa3071(0xcc)](u[_0xaa3071(0x123)]),_0x33115c=v[_0xaa3071(0xdd)](_0x73c85d,s[_0xaa3071(0x1e7)][_0xaa3071(0x1cf)]),_0x957fd3=v[_0xaa3071(0xdd)](_0x537c03,s[_0xaa3071(0x161)][_0xaa3071(0x1dc)]),_0x275168=v[_0xaa3071(0xdd)](_0x3b7519,''),_0x4cac6d=v[_0xaa3071(0xdd)](_0x14758c,''),[_0xed5849,_0x364d3f]=d[_0xaa3071(0x130)](_0x4cac6d||''),_0xefa42d=!0x0,_0x10ff06=_0x162459[_0xaa3071(0x96)]&&_0x476e67[_0xaa3071(0x1c3)]&&(_0x476e67['mcpServerUrl'][_0xaa3071(0x1d6)](_0xaa3071(0x82))||_0x476e67[_0xaa3071(0x1c3)][_0xaa3071(0x1d6)](_0xaa3071(0x181))),_0x4742aa=(_0x2ca5f5=_0x476e67['mcpServerUrl'])==null?void 0x0:_0x2ca5f5['includes'](_0xaa3071(0x82)),_0x5be0e6=(_0x29cbaa=_0x476e67[_0xaa3071(0x1c3)])==null?void 0x0:_0x29cbaa[_0xaa3071(0x1d6)](_0xaa3071(0x181)),_0x57c3dc=_0x4742aa?'https://console.univer.plus':_0xaa3071(0x132),_0x40fd8d=_0x162459[_0xaa3071(0x96)]&&(_0x4742aa||_0x5be0e6),[_0x45367f,_0x2ad99c]=d[_0xaa3071(0x130)](!_0xed5849['trim']()),_0x44556a=(_0x7f1ad1,_0x1ff894)=>{const _0x5a9d=_0xaa3071;if(_0x1ff894===s['MCPConnectionError'][_0x5a9d(0x1e4)])return _0x5a9d(0x1dd);switch(_0x7f1ad1){case s[_0x5a9d(0x1e7)][_0x5a9d(0x1ae)]:return _0x5a9d(0x173);case s[_0x5a9d(0x1e7)]['CONNECTING']:case s[_0x5a9d(0x1e7)]['RETRYING']:return _0x5a9d(0x113);case s[_0x5a9d(0x1e7)][_0x5a9d(0x75)]:return _0x5a9d(0x1dd);default:return _0x5a9d(0x131);}},_0x314ce6=(_0x2e9081,_0x3a987c)=>{const _0x52d94b=_0xaa3071;if(_0x3a987c===s['MCPConnectionError'][_0x52d94b(0x1e4)])return _0x52d94b(0xfa);switch(_0x2e9081){case s[_0x52d94b(0x1e7)]['CONNECTED']:return _0x52d94b(0x1f1);case s[_0x52d94b(0x1e7)]['CONNECTING']:case s['MCPConnectionStatus'][_0x52d94b(0x1e2)]:return _0x52d94b(0x180);case s[_0x52d94b(0x1e7)]['FAILED']:return _0x52d94b(0xfa);default:return'univer-bg-gray-500';}},_0x41444b=_0x44634c=>{const _0x315d56=_0xaa3071;switch(_0x44634c){case s[_0x315d56(0x1e7)][_0x315d56(0x1ae)]:return _0x1fc6d8['t'](_0x315d56(0x1d2));case s['MCPConnectionStatus'][_0x315d56(0xf6)]:return _0x1fc6d8['t'](_0x315d56(0x1b4));case s['MCPConnectionStatus']['FAILED']:return _0x1fc6d8['t'](_0x315d56(0xe3));case s[_0x315d56(0x1e7)]['RETRYING']:return _0x1fc6d8['t'](_0x315d56(0x175));default:return _0x1fc6d8['t'](_0x315d56(0x1d0));}},_0x31d84a=_0xde007d=>{const _0x15db34=_0xaa3071;switch(_0xde007d){case s['MCPConnectionError'][_0x15db34(0x1e4)]:return _0x1fc6d8['t']('mcpConfig.connectionError.unauthorized');case s['MCPConnectionError'][_0x15db34(0xc6)]:return _0x1fc6d8['t'](_0x15db34(0x70));case s[_0x15db34(0x161)]['NETWORK_ERROR']:return _0x1fc6d8['t'](_0x15db34(0x107));case s['MCPConnectionError'][_0x15db34(0xc9)]:return _0x1fc6d8['t'](_0x15db34(0x89));default:return'';}},_0x1638e7=d[_0xaa3071(0x12d)](()=>{const _0x301809={..._0x476e67,'apiKey':_0xed5849['trim'](),'enableAuth':_0xefa42d};_0x31a21b(_0x301809);},[_0x476e67,_0xed5849,_0xefa42d,_0x31a21b]),_0x39867d=_0xed5849['trim']()[_0xaa3071(0xfe)]>0x0;return i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':_0xaa3071(0xa4),'children':[i[_0xaa3071(0xde)]('div',{'className':_0xaa3071(0x1b7),'children':i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[i['jsx'](_0xaa3071(0xe6),{'className':_0xaa3071(0xc0),'children':i[_0xaa3071(0xde)]('span',{'className':_0xaa3071(0x17b),'children':'⚙'})}),i['jsx'](_0xaa3071(0xe6),{'children':i[_0xaa3071(0xde)]('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x1fc6d8['t'](_0xaa3071(0xb0))})})]})}),i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':_0xaa3071(0x1a0),'children':[i['jsx'](_0xaa3071(0xe6),{'className':f[_0xaa3071(0x87)](_0xaa3071(0x11a),_0x44556a(_0x33115c,_0x957fd3)),'children':i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0xaa3071(0xde)](_0xaa3071(0xe6),{'className':f[_0xaa3071(0x87)](_0xaa3071(0x1ea),_0x314ce6(_0x33115c,_0x957fd3))}),i[_0xaa3071(0xde)](_0xaa3071(0x1ef),{'className':_0xaa3071(0xd0),'children':_0x41444b(_0x33115c)})]})}),_0x957fd3!==s['MCPConnectionError'][_0xaa3071(0x1dc)]&&(_0x33115c===s[_0xaa3071(0x1e7)][_0xaa3071(0x75)]||_0x957fd3===s['MCPConnectionError']['UNAUTHORIZED'])&&i[_0xaa3071(0xde)]('div',{'className':_0xaa3071(0x73),'children':i[_0xaa3071(0x1eb)]('div',{'className':_0xaa3071(0xa0),'children':[i[_0xaa3071(0xde)](_0xaa3071(0x1ef),{'className':_0xaa3071(0x128),'children':'⚠️'}),i[_0xaa3071(0xde)]('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x31d84a(_0x957fd3)})]})})]}),i['jsx'](_0xaa3071(0xe6),{'className':_0xaa3071(0x115),'children':i['jsxs']('div',{'className':'univer-space-y-5','children':[i[_0xaa3071(0x1eb)]('div',{'className':_0xaa3071(0x122),'children':[i[_0xaa3071(0x1eb)](_0xaa3071(0x1d3),{'className':_0xaa3071(0x171),'children':[i['jsx'](_0xaa3071(0x1ef),{'children':'🔑'}),'\x20',_0x1fc6d8['t'](_0xaa3071(0x1a9)),i[_0xaa3071(0xde)](_0xaa3071(0x1ef),{'className':_0xaa3071(0x146),'children':'*'}),_0x10ff06&&i[_0xaa3071(0xde)]('a',{'className':_0xaa3071(0xc2),'title':_0x1fc6d8['t']('mcpConfig.apiApplyInfo.title'),'role':_0xaa3071(0xfb),'onClick':()=>_0x2ad99c(!0x0),'children':i['jsx'](F,{})})]}),i[_0xaa3071(0xde)](f[_0xaa3071(0x137)],{'type':_0xaa3071(0x172),'placeholder':_0x1fc6d8['t'](_0xaa3071(0x90)),'value':_0xed5849,'disabled':_0x34f5e5,'autoComplete':_0xaa3071(0x1c6),'onChange':_0x364d3f}),i[_0xaa3071(0xde)]('p',{'className':_0xaa3071(0x16e),'children':_0x1fc6d8['t']('mcpConfig.apiKeyHint')})]}),_0x10ff06&&_0x45367f&&i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':_0xaa3071(0xc1),'children':[i['jsx']('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':_0xaa3071(0xfb),'onClick':()=>_0x2ad99c(!0x1),'children':i[_0xaa3071(0xde)](B,{'className':_0xaa3071(0xf8)})}),i[_0xaa3071(0x1eb)]('div',{'className':_0xaa3071(0x10f),'children':[i[_0xaa3071(0xde)](_0xaa3071(0xe6),{'className':_0xaa3071(0xe2),'children':i[_0xaa3071(0xde)]('span',{'className':'univer-text-blue-600','children':'🚀'})}),i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':_0xaa3071(0x112),'children':[i['jsx']('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x1fc6d8['t']('mcpConfig.apiApplyInfo.title')}),i[_0xaa3071(0xde)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x1fc6d8['t'](_0xaa3071(0xac))}),i[_0xaa3071(0xde)](_0xaa3071(0xe6),{'className':_0xaa3071(0x1e8),'children':_0x40fd8d&&i[_0xaa3071(0x1eb)]('a',{'className':_0xaa3071(0x19a),'href':_0x57c3dc,'target':_0xaa3071(0x170),'rel':_0xaa3071(0x11b),'children':[i[_0xaa3071(0xde)](_0xaa3071(0x1ef),{'children':'🤖'}),_0x1fc6d8['t'](_0xaa3071(0xa9)),i['jsx'](_0xaa3071(0x1ef),{'className':'univer-text-gray-400','children':'↗'})]})}),i['jsxs'](_0xaa3071(0xe6),{'className':_0xaa3071(0x158),'children':['✨','\x20',_0x1fc6d8['t'](_0xaa3071(0x1e5))]})]})]})]}),_0x162459[_0xaa3071(0x96)]&&i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[i[_0xaa3071(0x1eb)]('h4',{'className':_0xaa3071(0x1f9),'children':[i[_0xaa3071(0xde)](_0xaa3071(0x1ef),{'children':'🔗'}),'\x20',_0x1fc6d8['t'](_0xaa3071(0xe8))]}),i[_0xaa3071(0x1eb)]('div',{'className':_0xaa3071(0x1f0),'children':[i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':_0xaa3071(0xca),'children':[i[_0xaa3071(0xde)]('p',{'className':_0xaa3071(0x11f),'children':_0x1fc6d8['t'](_0xaa3071(0x1ad))}),i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':_0xaa3071(0x122),'children':[i['jsx'](_0xaa3071(0xe6),{'className':_0xaa3071(0xbd),'children':_0x1fc6d8['t'](_0xaa3071(0x129))}),i[_0xaa3071(0x1eb)]('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':_0xaa3071(0x18a),'children':[i[_0xaa3071(0xde)](_0xaa3071(0x1ef),{'className':_0xaa3071(0xa6),'children':'1'}),_0x1fc6d8['t']('mcpConfig.configStep1')]}),i['jsxs']('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i['jsx']('span',{'className':_0xaa3071(0xa6),'children':'2'}),_0x1fc6d8['t'](_0xaa3071(0x14e))]}),i['jsxs'](_0xaa3071(0xe6),{'className':_0xaa3071(0x18a),'children':[i['jsx'](_0xaa3071(0x1ef),{'className':_0xaa3071(0xa6),'children':'3'}),_0x1fc6d8['t'](_0xaa3071(0x1a3))]})]})]})]}),i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':_0xaa3071(0x122),'children':[i[_0xaa3071(0xde)](_0xaa3071(0xe6),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0xaa3071(0x1b1)}),i[_0xaa3071(0xde)](_0xaa3071(0xe6),{'className':_0xaa3071(0xe5),'children':i[_0xaa3071(0xde)](_0xaa3071(0x163),{'className':_0xaa3071(0xa2),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0xaa3071(0xa3)+(_0x275168||_0xaa3071(0xe7)),'type':_0xaa3071(0x8c),'headers':{'Authorization':'Bearer\x20'+(_0xed5849||_0xaa3071(0x104))}}}},null,0x2)})})]}),i[_0xaa3071(0x1eb)]('div',{'className':_0xaa3071(0xca),'children':[i[_0xaa3071(0xde)]('div',{'className':_0xaa3071(0xbd),'children':_0x1fc6d8['t']('mcpConfig.configParameters')}),i['jsxs'](_0xaa3071(0xe6),{'className':_0xaa3071(0x122),'children':[i['jsxs']('div',{'className':_0xaa3071(0xd3),'children':[i['jsx'](_0xaa3071(0xe6),{'className':_0xaa3071(0x196)}),i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':_0xaa3071(0x179),'children':[i[_0xaa3071(0xde)](_0xaa3071(0xe6),{'className':_0xaa3071(0x12f),'children':_0xaa3071(0x1db)}),i[_0xaa3071(0xde)](_0xaa3071(0xe6),{'className':_0xaa3071(0x16e),'children':_0x1fc6d8['t'](_0xaa3071(0x1b0))})]})]}),i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':_0xaa3071(0xd3),'children':[i[_0xaa3071(0xde)]('div',{'className':_0xaa3071(0x196)}),i[_0xaa3071(0x1eb)]('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[i[_0xaa3071(0xde)](_0xaa3071(0xe6),{'className':_0xaa3071(0x12f),'children':_0xaa3071(0xab)}),i[_0xaa3071(0xde)](_0xaa3071(0xe6),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x1fc6d8['t'](_0xaa3071(0x126))})]})]})]})]})]})]}),i[_0xaa3071(0xde)](f['Button'],{'onClick':_0x1638e7,'disabled':!_0x39867d||_0x34f5e5,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x34f5e5?i['jsxs'](_0xaa3071(0x1ef),{'className':_0xaa3071(0x18a),'children':[i[_0xaa3071(0xde)](_0xaa3071(0x1ef),{'children':'⟲'}),_0x1fc6d8['t']('mcpConfig.saving')]}):i[_0xaa3071(0x1eb)](_0xaa3071(0x1ef),{'className':_0xaa3071(0x18a),'children':[i[_0xaa3071(0xde)](H,{}),_0x1fc6d8['t'](_0xaa3071(0x88))]})}),i['jsx'](_0xaa3071(0xe6),{'className':_0xaa3071(0x109),'children':i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':'univer-flex\x20univer-gap-3','children':[i['jsx'](_0xaa3071(0x1ef),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),i['jsxs'](_0xaa3071(0xe6),{'className':_0xaa3071(0xbf),'children':[i['jsx'](_0xaa3071(0xe6),{'className':_0xaa3071(0x153),'children':_0xaa3071(0x7a)}),i['jsxs'](_0xaa3071(0xe6),{'children':['•',_0x1fc6d8['t'](_0xaa3071(0x106))]}),i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'children':['•',_0x1fc6d8['t'](_0xaa3071(0xda))]})]})]})})]})})]});}function _0x2777(){const _0x56997e=['mcpConfig.configSaved','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','权限验证失败,请检查您的\x20API\x20密钥','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','close-icon','OffLineIcon','on-line-icon_clip0_910_349','push','mcpStatus.clickToConnect','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','保存配置','API\x20密钥不能为空','mcpConfig.configStep3','svg','none','_initializeCommands','配置保存成功','Get\x20your\x20API\x20key\x20in\x20seconds','mcpConfig.apiKey','您的\x20API\x20密钥将在此浏览器中本地存储','ISocketService','0\x200\x2017\x2016','mcpConfig.configInstructions','CONNECTED','subscribeConfigValue$','mcpConfig.sessionIdDescription','MCP\x20Configuration','API\x20Key','toString','mcpConfig.connectionStatus.connecting','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','0\x200\x2016\x2016','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','IUIPartsService','UniverIcon','连接失败','MCP\x20Retrying...','IMessageService','Bearer\x20','您的\x20API\x20密钥安全存储在本地存储中','warn','validateApiKey','mcpStatus.failed','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcpServerUrl','1179725IijZdQ','ComponentManager','off','已连接','BuiltInUIPart','trim','MCPConfigPanel','\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','Invalid\x20configuration','将以下配置添加到您的\x20MCP\x20客户端设置中:','Save\x20Configuration','DISCONNECTED','mcpConfig.connectionStatus.disconnected','MCP\x20状态未知','mcpConfig.connectionStatus.connected','label','disposeWithMe','use','includes','__setCustomHeaders','Module','mcpConfig.title','get','univer_session_id:','NONE','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mergeMenu','assign','_initStatusComponent','translate(.97)','RETRYING','createElement','UNAUTHORIZED','mcpConfig.apiApplyInfo.getStarted','IDialogService','MCPConnectionStatus','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20Connection\x20Failed','univer-size-2\x20univer-rounded-full','jsxs','mcpStatus.maxRetriesExceeded','univer-flex\x20univer-items-center','Max\x20Retries','span','univer-space-y-4','univer-bg-green-500','symbol','CheckMarkIcon','Tooltip','_initializeMenus','children','value','重连中...','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_handleConfigSave','connectInjector','currentColor','MCP:\x20Unauthorized','mcpConfig.connectionError.sessionOccupied','connectionError$','_initAutoConnect','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','\x20-\x20','FAILED','MCP:\x20未授权','showConfigPanel','fill','entries','Configuration\x20Notes:','Saving...','off-line-icon_clip0_910_343','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20已断开','_connectionController','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','getConfig','univer.plus','UniverMCPUIPlugin','forEach','BUTTON','MCP\x20Connected','clsx','mcpConfig.save','mcpConfig.connectionError.maxRetriesExceeded','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','MCP\x20客户端配置','http','1em','mcpStatus.connecting','show','mcpConfig.apiKeyPlaceholder','toStringTag','_componentManager','mcp-config-dialog','_initConfigSync','Enable\x20authentication\x20for\x20secure\x20connections','showDeveloperTools','MCPConnectionUIController','Error','MCP_UI_PLUGIN','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','ILocalStorageService','MenuIcon','clipPath','xlink:href','mcpConfig.validation.invalidApiKey','univer-flex\x20univer-items-start\x20univer-gap-2','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','https://mcp.univer.ai/mcp/?univer_session_id=','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','enUS','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','apiKey','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','mcpConfig.apiApplyInfo.univerAiLabel','_config$','Authorization:','mcpConfig.apiApplyInfo.description','mcpConfig.configError','配置参数:','onStarting','mcpConfig.description','MCP:\x20会话\x20ID\x20已被占用','_mcpConnectionController','connectionStatus$','MCPUIMenuController','displayName','removeItem','78198cVRfCy','_menuManagerService','_createConfigPanelComponent','defs','API\x20密钥无效,请检查密钥是否正确','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','_injector','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','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','API\x20key\x20is\x20required','API\x20密钥长度至少需要\x2010\x20位','WebSocketService','SESSION_ID_OCCUPIED','MCP:\x20超出最大重试次数','What\x20is\x20API\x20Key?','MAX_RETRIES_EXCEEDED','univer-space-y-3','register','useDependency','Copy\x20the\x20JSON\x20configuration\x20below','random','mcpConfig.validation.invalidConfig','univer-text-sm\x20univer-font-medium','36kvYihQ','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-flex\x20univer-items-start\x20univer-gap-3','_uiPartsService','attrs','MCP:\x20Network\x20Error','_validateConfig','errorMessage','配置更改将立即生效','mcpConfig.note2','UniverMCPPlugin','点击配置\x20MCP','useObservable','jsx','3065573dXOLLa','check-mark-icon','tag','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcpConfig.connectionStatus.failed','_loadStoredApiKey','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','div','<SESSION_ID>','mcpConfig.connectionInfo','请输入您的\x20API\x20密钥','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','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','什么是\x20API\x20密钥?','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Injector','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','colorChannel1','_mcpCoreConfig$','defineProperty','close','sessionId$','IMenuManagerService','CONNECTING','启用身份验证','univer-size-4','MCP:\x20网络错误','univer-bg-red-500','button','_handleConfigure','mcpStatus.sessionOccupied','length','univer-text-gray-500','点击连接\x20MCP','IConfigService','getOwnPropertyDescriptor','_dialogService','<API_KEY>','mcp-ui.command.openConfigPanel','mcpConfig.note1','mcpConfig.connectionError.networkError','help-icon','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','_commandService','HelpIcon','保存中...','_localStorageService','7342592UnAOLU','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','registerCommand','MCP\x20连接失败','univer-flex-1','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','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','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP_PLUGIN_CONFIG_KEY','mcpStatus.clickToConfigure','MCP\x20连接中...','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','noopener\x20noreferrer','API\x20密钥','Click\x20to\x20configure\x20MCP','_configService','univer-text-xs\x20univer-text-gray-600','1243690zfLhxX','current','univer-space-y-2','LocaleService','mcp-ui.config','forwardRef','mcpConfig.authorizationDescription','add','univer-shrink-0\x20univer-text-red-500','mcpConfig.configStepTitle','_config','Click\x20to\x20connect\x20MCP','_apiKey$','useCallback','MCP\x20重连中...','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','useState','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','https://console.univer.ai','idSuffix','url(#on-line-icon_clip0_910_349)','HEADER_MENU','MCP\x20Connecting...','Input','网络连接错误,请检查您的网络连接','MCPConnectionController','Configuration\x20Parameters:','path','substring','MCP:\x20Session\x20ID\x20Occupied','Enable\x20Authentication','replace','Univer\x20AI\x20控制台','_registerComponent','Session\x20ID','has','CloseIcon','white','univer-text-red-500','OTHERS','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MessageType','将配置添加到您的\x20MCP\x20客户端设置文件中','setItem','merge','univerjs-icon\x20univerjs-icon-','mcpConfig.configStep2','MCPConfigUIController','配置步骤:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Success','univer-font-medium','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','_messageService','next','重启您的\x20MCP\x20客户端以使配置生效','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','MCP\x20已连接','连接中...','复制以下\x20JSON\x20配置','Disposable','evenodd','mcpStatus.disconnected','setConfig','Connection\x20Failed','MCPConnectionError','mcpStatus.unauthorized','pre','ILogService','url(#$1','mcp.apiKey','_localeService','string','2910144ZmOcRv','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','会话ID','Configuration\x20Steps:','subscribe','univer-text-xs\x20univer-text-gray-500','on-line-icon','_blank','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','text','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','未连接','mcpConfig.connectionStatus.retrying','off-line-icon','mask','ICommandService','univer-min-w-0\x20univer-flex-1','map','univer-text-white','BehaviorSubject','NETWORK_ERROR','_logService','http://www.w3.org/2000/svg','univer-bg-blue-500','univer.ai','566101EgJfUp','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','M0\x200H16V16H0z','Enter\x20your\x20API\x20key','defIds','mcpConfig.validation.apiKeyTooShort','mcpConfig.validation.apiKeyRequired','showStatus','univer-flex\x20univer-items-center\x20univer-gap-2','Inject','MCPStatusDisplay','error','Retrying...','OpenMCPConfigPanelCommand','会话\x20ID\x20已被占用,请稍后再试','_loading$','OnLineIcon','round','univer-text-green-500','open','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'];_0x2777=function(){return _0x56997e;};return _0x2777();}function _0x4786(_0x3a8455,_0x385e7b){const _0x277710=_0x2777();return _0x4786=function(_0x4786ad,_0x5f74a0){_0x4786ad=_0x4786ad-0x6f;let _0x4605b9=_0x277710[_0x4786ad];return _0x4605b9;},_0x4786(_0x3a8455,_0x385e7b);}const P=_0x3e22ba(0x124),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x3e22ba(0x102)],xe=(_0x50c368,_0x16204a,_0x245428,_0x16acd2)=>{const _0x1f2fca=_0x3e22ba;for(var _0xb29cf9=_0x16acd2>0x1?void 0x0:_0x16acd2?me(_0x16204a,_0x245428):_0x16204a,_0x86504b=_0x50c368[_0x1f2fca(0xfe)]-0x1,_0x3ef15b;_0x86504b>=0x0;_0x86504b--)(_0x3ef15b=_0x50c368[_0x86504b])&&(_0xb29cf9=_0x3ef15b(_0xb29cf9)||_0xb29cf9);return _0xb29cf9;},g=(_0x78a215,_0x4461c9)=>(_0x35435b,_0x47c922)=>_0x4461c9(_0x35435b,_0x47c922,_0x78a215);const O=_0x3e22ba(0x166),D=_0x3e22ba(0x93);exports[_0x3e22ba(0x14f)]=class extends u[_0x3e22ba(0x15c)]{constructor(_0x28efba,_0x1087c2,_0x3f15bc,_0x307158,_0x928df6,_0x23b908,_0x435b5d,_0xdf1208,_0x458da7,_0x2a53a4){const _0x499ff4=_0x3e22ba;super(),I(this,_0x499ff4(0x191),new M[(_0x499ff4(0x17c))](!0x1)),I(this,_0x499ff4(0xf1),new M['BehaviorSubject']({})),I(this,'_config$',new M['BehaviorSubject']({})),I(this,_0x499ff4(0x12c),new M[(_0x499ff4(0x17c))]('')),I(this,_0x499ff4(0x1fa),async _0x40d971=>{const _0x282871=_0x499ff4;var _0x49adce,_0x324254;this[_0x282871(0x191)][_0x282871(0x156)](!0x0);try{const _0x20298c=await this[_0x282871(0xd7)](_0x40d971);if(!_0x20298c['isValid']){this[_0x282871(0x155)][_0x282871(0x8f)]({'type':f[_0x282871(0x149)]['Error'],'content':_0x20298c[_0x282871(0xd8)]||this[_0x282871(0x167)]['t'](_0x282871(0xcf))});return;}_0x40d971[_0x282871(0xa7)]?await this['_localStorageService'][_0x282871(0x14b)](O,_0x40d971[_0x282871(0xa7)]['trim']()):await this[_0x282871(0x10d)][_0x282871(0xb6)](O),this['_apiKey$'][_0x282871(0x156)](((_0x49adce=_0x40d971[_0x282871(0xa7)])==null?void 0x0:_0x49adce[_0x282871(0x1c9)]())||''),this[_0x282871(0xb2)][_0x282871(0x1d7)]({'Authorization':_0x282871(0x1bd)+((_0x324254=_0x40d971[_0x282871(0xa7)])==null?void 0x0:_0x324254['trim']())}),this['_messageService'][_0x282871(0x8f)]({'type':f[_0x282871(0x149)][_0x282871(0x152)],'content':this[_0x282871(0x167)]['t'](_0x282871(0x197))}),setTimeout(()=>{const _0x2df985=_0x282871;this[_0x2df985(0x103)][_0x2df985(0xf3)](D);},0x320);}catch(_0x52f612){this[_0x282871(0x17e)][_0x282871(0x18d)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x52f612),this['_messageService'][_0x282871(0x8f)]({'type':f[_0x282871(0x149)][_0x282871(0x98)],'content':this[_0x282871(0x167)]['t'](_0x282871(0xad))});}finally{this[_0x282871(0x191)]['next'](!0x1);}}),(this[_0x499ff4(0xbe)]=_0x28efba,this['_uiPartsService']=_0x1087c2,this[_0x499ff4(0x11e)]=_0x3f15bc,this['_localStorageService']=_0x307158,this[_0x499ff4(0x103)]=_0x928df6,this['_messageService']=_0x23b908,this[_0x499ff4(0x92)]=_0x435b5d,this['_localeService']=_0xdf1208,this[_0x499ff4(0x17e)]=_0x458da7,this[_0x499ff4(0xb2)]=_0x2a53a4,this['_initConfigSync'](),this[_0x499ff4(0xe4)](),this[_0x499ff4(0x141)]());}[_0x3e22ba(0x77)](){const _0x126842=_0x3e22ba,_0x66c4d6=this[_0x126842(0x11e)][_0x126842(0x81)](P);_0x66c4d6!=null&&_0x66c4d6[_0x126842(0x96)]&&this[_0x126842(0x103)][_0x126842(0x195)]({'id':D,'title':{'title':this[_0x126842(0x167)]['t'](_0x126842(0x1d9))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x3a5e70=_0x126842;this['_dialogService'][_0x3a5e70(0xf3)](D);}});}['getCurrentConfig'](){const _0x5ee4dd=_0x3e22ba;return this[_0x5ee4dd(0xf1)][_0x5ee4dd(0x1f7)];}['_registerComponent'](){const _0x3b3ccd=_0x3e22ba;this[_0x3b3ccd(0x1d4)](this[_0x3b3ccd(0x92)][_0x3b3ccd(0xcb)](_0x3b3ccd(0x1ca),this[_0x3b3ccd(0xb9)]()));}[_0x3e22ba(0xb9)](){const _0x368a26=_0x3e22ba;return v[_0x368a26(0x1fb)](()=>{const _0x560827=_0x368a26;var _0x533e23,_0x404c9,_0x390ebe;return i[_0x560827(0xde)](V,{'config':this[_0x560827(0xaa)][_0x560827(0x1f7)],'mcpCoreConfig':this[_0x560827(0xf1)]['value'],'currentApiKey$':this[_0x560827(0x12c)],'onSave':this[_0x560827(0x1fa)],'loading':this[_0x560827(0x191)][_0x560827(0x1f7)],'connectionStatus$':(_0x533e23=this[_0x560827(0xb2)])==null?void 0x0:_0x533e23['connectionStatus$'],'connectionError$':(_0x404c9=this[_0x560827(0xb2)])==null?void 0x0:_0x404c9[_0x560827(0x71)],'currentSessionId$':(_0x390ebe=this[_0x560827(0xb2)])==null?void 0x0:_0x390ebe[_0x560827(0xf4)]});},this[_0x368a26(0xbe)]);}[_0x3e22ba(0x94)](){const _0x229e86=_0x3e22ba;this[_0x229e86(0x1d4)](this['_configService'][_0x229e86(0x1af)](s['MCP_PLUGIN_CONFIG_KEY'])[_0x229e86(0x16d)](_0x29db14=>{const _0x31d1c7=_0x229e86;this[_0x31d1c7(0xf1)]['next'](_0x29db14||{});}));const _0x14c217=this[_0x229e86(0x11e)][_0x229e86(0x81)](s[_0x229e86(0x117)]);this[_0x229e86(0xf1)]['next'](_0x14c217||{}),this['disposeWithMe'](this['_configService'][_0x229e86(0x1af)](P)[_0x229e86(0x16d)](_0x374935=>{const _0xb6b998=_0x229e86;this['_config$'][_0xb6b998(0x156)](_0x374935||{});}));const _0x365e76=this[_0x229e86(0x11e)][_0x229e86(0x81)](P);this[_0x229e86(0xaa)][_0x229e86(0x156)](_0x365e76||{});}async[_0x3e22ba(0xe4)](){const _0x4e9310=_0x3e22ba,_0x1191f8=this[_0x4e9310(0x11e)][_0x4e9310(0x81)](P);if(!(_0x1191f8!=null&&_0x1191f8['showDeveloperTools']))return;const _0x9bee8b=await this[_0x4e9310(0x10d)]['getItem'](O);_0x9bee8b&&(this[_0x4e9310(0xb2)][_0x4e9310(0x1d7)]({'Authorization':'Bearer\x20'+_0x9bee8b}),this[_0x4e9310(0x12c)][_0x4e9310(0x156)](_0x9bee8b));}async[_0x3e22ba(0xd7)](_0x3b1579){const _0x983402=_0x3e22ba;if(!_0x3b1579[_0x983402(0xa7)]||_0x3b1579[_0x983402(0xa7)][_0x983402(0x1c9)]()[_0x983402(0xfe)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x983402(0x167)]['t'](_0x983402(0x188))};if(_0x3b1579['apiKey'][_0x983402(0x1c9)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x983402(0x167)]['t'](_0x983402(0x187))};try{const _0x434ade=await this[_0x983402(0xbe)][_0x983402(0x1da)](s[_0x983402(0x139)])[_0x983402(0x1c0)](_0x3b1579[_0x983402(0xa7)][_0x983402(0x1c9)]());return _0x434ade['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x434ade['error']||this['_localeService']['t'](_0x983402(0x9f))};}catch(_0x1e7a98){return console[_0x983402(0x1bf)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x1e7a98),{'isValid':!0x0};}}},exports[_0x3e22ba(0x14f)]=xe([g(0x0,u['Inject'](u[_0x3e22ba(0xee)])),g(0x1,v[_0x3e22ba(0x1b8)]),g(0x2,u[_0x3e22ba(0x101)]),g(0x3,u[_0x3e22ba(0x9b)]),g(0x4,v[_0x3e22ba(0x1e6)]),g(0x5,v[_0x3e22ba(0x1bc)]),g(0x6,u[_0x3e22ba(0x18b)](v[_0x3e22ba(0x1c5)])),g(0x7,u['Inject'](u[_0x3e22ba(0x123)])),g(0x8,u[_0x3e22ba(0x164)]),g(0x9,u[_0x3e22ba(0x18b)](s[_0x3e22ba(0x139)]))],exports['MCPConfigUIController']);const b={'id':_0x3e22ba(0x105),'type':u['CommandType']['COMMAND'],'handler':async(_0x4d5325,_0x5a0ec9)=>(_0x4d5325['get'](exports[_0x3e22ba(0x14f)])[_0x3e22ba(0x77)](),!0x0)};function Z(_0x35072a,_0x1f013a){const _0x3f71ba=_0x3e22ba;switch(_0x35072a){case s['MCPConnectionStatus'][_0x3f71ba(0x1cf)]:return _0x3f71ba(0x15e);case s['MCPConnectionStatus']['CONNECTING']:return _0x3f71ba(0x8e);case s[_0x3f71ba(0x1e7)][_0x3f71ba(0x1ae)]:return'mcpStatus.connected';case s[_0x3f71ba(0x1e7)][_0x3f71ba(0x75)]:switch(_0x1f013a){case s['MCPConnectionError'][_0x3f71ba(0x1e4)]:return _0x3f71ba(0x162);case s[_0x3f71ba(0x161)][_0x3f71ba(0xc6)]:return _0x3f71ba(0xfd);case s[_0x3f71ba(0x161)][_0x3f71ba(0x17d)]:return'mcpStatus.networkError';case s[_0x3f71ba(0x161)][_0x3f71ba(0xc9)]:return _0x3f71ba(0x1ec);default:return _0x3f71ba(0x1c1);}case s['MCPConnectionStatus'][_0x3f71ba(0x1e2)]:return'mcpStatus.retrying';default:return'mcpStatus.unknown';}}function Se(_0x8b7389,_0x1e030b,_0x3f9ba2,_0xc47446=!0x0){const _0x42b841=_0x3e22ba,_0x2e699d=Z(_0x8b7389,_0x1e030b),_0x258ca5=_0x3f9ba2['t'](_0x2e699d);return _0xc47446?_0x8b7389===s[_0x42b841(0x1e7)]['DISCONNECTED']&&_0x1e030b===s['MCPConnectionError'][_0x42b841(0x1e4)]?_0x258ca5+_0x42b841(0x74)+_0x3f9ba2['t'](_0x42b841(0x118)):_0x8b7389===s[_0x42b841(0x1e7)][_0x42b841(0x1ae)]?''+_0x258ca5:_0x8b7389===s['MCPConnectionStatus']['DISCONNECTED']||_0x8b7389===s['MCPConnectionStatus']['FAILED']?_0x258ca5+'\x20-\x20'+_0x3f9ba2['t'](_0x42b841(0x19f)):_0x258ca5:_0x258ca5;}function Pe(_0x32b33d){const _0x24a13c=_0x3e22ba;switch(_0x32b33d){case s['MCPConnectionStatus'][_0x24a13c(0x1ae)]:return _0x24a13c(0x194);case s[_0x24a13c(0x1e7)]['CONNECTING']:case s[_0x24a13c(0x1e7)]['RETRYING']:return'univer-text-yellow-500';case s[_0x24a13c(0x1e7)][_0x24a13c(0x75)]:case s[_0x24a13c(0x1e7)]['DISCONNECTED']:return _0x24a13c(0x146);default:return _0x24a13c(0xff);}}function W(_0x50f7b6){const _0x46710f=_0x3e22ba,{status$:_0x5e975c,error$:_0x50c4b6,onConfigure:_0xa97682,showClickable:_0x5c6527=!0x0}=_0x50f7b6,_0x68ef8d=v['useObservable'](_0x5e975c,s[_0x46710f(0x1e7)][_0x46710f(0x1cf)]),_0x1dbcb5=v[_0x46710f(0xdd)](_0x50c4b6,s[_0x46710f(0x161)][_0x46710f(0x1dc)]),_0x55897e=v[_0x46710f(0xcc)](u[_0x46710f(0x123)]),_0x1dfafa=_0x68ef8d===s[_0x46710f(0x1e7)][_0x46710f(0x1ae)];_0x68ef8d===s['MCPConnectionStatus'][_0x46710f(0xf6)]||s[_0x46710f(0x1e7)]['RETRYING'];const _0x20e7bd=_0x55897e['t'](Z(_0x68ef8d,_0x1dbcb5)),_0x151cf3=Se(_0x68ef8d,_0x1dbcb5,_0x55897e,_0x5c6527),_0x21c02d=Pe(_0x68ef8d),_0x1b7185=_0x1dfafa?i[_0x46710f(0xde)](q,{}):i[_0x46710f(0xde)](Y,{}),_0x13d68b=d[_0x46710f(0x12d)](()=>{_0x5c6527&&_0xa97682&&_0xa97682();},[_0x5c6527,_0xa97682]);function _0x5e5a90(){const _0x3ca040=_0x46710f;return i[_0x3ca040(0x1eb)](_0x3ca040(0xe6),{'className':f[_0x3ca040(0x87)](_0x3ca040(0x1ed),_0x5c6527&&_0xa97682&&_0x3ca040(0x1cb)),'role':'button','onClick':_0x5c6527&&_0xa97682?_0x13d68b:void 0x0,'children':[i[_0x3ca040(0xde)](_0x3ca040(0xe6),{'className':f['clsx']('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x21c02d),'children':_0x1b7185}),i['jsx'](_0x3ca040(0xe6),{'className':_0x3ca040(0xef),'children':_0x20e7bd})]});}return i['jsx'](f[_0x46710f(0x1f4)],{'title':_0x151cf3,'placement':'bottom','children':_0x5e5a90()});}var Ie=Object[_0x3e22ba(0x102)],_e=(_0x3711f0,_0x1739e1,_0x4e29dd,_0x59abd3)=>{const _0x38114b=_0x3e22ba;for(var _0x4f49bd=_0x59abd3>0x1?void 0x0:_0x59abd3?Ie(_0x1739e1,_0x4e29dd):_0x1739e1,_0x21bc9b=_0x3711f0[_0x38114b(0xfe)]-0x1,_0x4b91cc;_0x21bc9b>=0x0;_0x21bc9b--)(_0x4b91cc=_0x3711f0[_0x21bc9b])&&(_0x4f49bd=_0x4b91cc(_0x4f49bd)||_0x4f49bd);return _0x4f49bd;},N=(_0x320b57,_0x1c8303)=>(_0x1d3dc0,_0x45ceae)=>_0x1c8303(_0x1d3dc0,_0x45ceae,_0x320b57);exports[_0x3e22ba(0x97)]=class extends u[_0x3e22ba(0x15c)]{constructor(_0x224e73,_0x4ac728,_0x56e16f,_0x25103b){const _0x2c1128=_0x3e22ba;super(),this[_0x2c1128(0xbe)]=_0x224e73,this[_0x2c1128(0x7f)]=_0x4ac728,this[_0x2c1128(0xd4)]=_0x56e16f,this[_0x2c1128(0x11e)]=_0x25103b,this[_0x2c1128(0x72)](),this[_0x2c1128(0x1e0)]();}['_initAutoConnect'](){const _0x4dc356=_0x3e22ba,_0x1a48c3=this[_0x4dc356(0x11e)][_0x4dc356(0x81)](P);_0x1a48c3!=null&&_0x1a48c3[_0x4dc356(0x96)]&&(this[_0x4dc356(0x7f)]['enableAutoConnect']=!0x1);}[_0x3e22ba(0x1e0)](){const _0xf72eca=_0x3e22ba,_0x449eef=this[_0xf72eca(0x11e)][_0xf72eca(0x81)](P);(_0x449eef==null?void 0x0:_0x449eef[_0xf72eca(0x189)])!==!0x1&&this[_0xf72eca(0x1d4)](this[_0xf72eca(0xd4)]['registerComponent'](v[_0xf72eca(0x1c8)][_0xf72eca(0x135)],()=>{const _0x4ba6e2=_0xf72eca;var _0x328c4c;return v[_0x4ba6e2(0x1fb)](ye({'status$':this[_0x4ba6e2(0x7f)][_0x4ba6e2(0xb3)],'error$':this[_0x4ba6e2(0x7f)][_0x4ba6e2(0x71)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x328c4c=_0x449eef==null?void 0x0:_0x449eef['showDeveloperTools'])!=null?_0x328c4c:!0x1}),this[_0x4ba6e2(0xbe)]);}));}[_0x3e22ba(0xfc)](){const _0x58b606=_0x3e22ba;this[_0x58b606(0xbe)][_0x58b606(0x1da)](exports[_0x58b606(0x14f)])[_0x58b606(0x77)]();}},exports[_0x3e22ba(0x97)]=_e([N(0x0,u[_0x3e22ba(0x18b)](u['Injector'])),N(0x1,u['Inject'](s[_0x3e22ba(0x139)])),N(0x2,v[_0x3e22ba(0x1b8)]),N(0x3,u[_0x3e22ba(0x101)])],exports['MCPConnectionUIController']);function ye(_0x50f398){const {status$:_0x12830a,error$:_0x3472e4,onConfigure:_0x16370e,showClickable:_0x59ea4b}=_0x50f398;return function(){const _0x4f106a=_0x4786;return i[_0x4f106a(0xde)](W,{'status$':_0x12830a,'error$':_0x3472e4,'onConfigure':_0x16370e,'showClickable':_0x59ea4b});};}function Me(_0x12ceac){const _0x361836=_0x3e22ba;return{'id':b['id'],'type':v['MenuItemType'][_0x361836(0x85)],'icon':_0x361836(0x9c),'title':'mcpConfig.title','tooltip':_0x361836(0x1d9)};}const Ne={[v['RibbonStartGroup'][_0x3e22ba(0x147)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x3e22ba(0x102)],je=(_0x5dc66c,_0x36d669,_0x21634e,_0x4129c4)=>{for(var _0x5e239a=_0x4129c4>0x1?void 0x0:_0x4129c4?be(_0x36d669,_0x21634e):_0x36d669,_0x3ac7a6=_0x5dc66c['length']-0x1,_0x1c84af;_0x3ac7a6>=0x0;_0x3ac7a6--)(_0x1c84af=_0x5dc66c[_0x3ac7a6])&&(_0x5e239a=_0x1c84af(_0x5e239a)||_0x5e239a);return _0x5e239a;},z=(_0x8b783,_0x57b1cd)=>(_0x4b8b9d,_0x4daf05)=>_0x57b1cd(_0x4b8b9d,_0x4daf05,_0x8b783);exports[_0x3e22ba(0xb4)]=class extends u['Disposable']{constructor(_0xa48a30,_0x355d60){const _0x28861b=_0x3e22ba;super(),this[_0x28861b(0x10a)]=_0xa48a30,this[_0x28861b(0xb8)]=_0x355d60,this['_initializeCommands'](),this['_initializeMenus']();}[_0x3e22ba(0x1a6)](){const _0x1c66fa=_0x3e22ba;[b][_0x1c66fa(0x84)](_0x27ba55=>{const _0x4e116f=_0x1c66fa;this['disposeWithMe'](this[_0x4e116f(0x10a)][_0x4e116f(0x110)](_0x27ba55));});}[_0x3e22ba(0x1f5)](){const _0x5f2970=_0x3e22ba;this[_0x5f2970(0xb8)][_0x5f2970(0x1de)](Ne);}},exports['MCPUIMenuController']=je([z(0x0,u[_0x3e22ba(0x178)]),z(0x1,v[_0x3e22ba(0xf5)])],exports[_0x3e22ba(0xb4)]);const Ee={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x3e22ba(0x136),'connected':_0x3e22ba(0x86),'failed':_0x3e22ba(0x1e9),'retrying':_0x3e22ba(0x1bb),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x3e22ba(0x6f),'sessionOccupied':_0x3e22ba(0x13d),'networkError':_0x3e22ba(0xd6),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x3e22ba(0x12b),'clickToConfigure':_0x3e22ba(0x11d)},'mcpConfig':{'title':_0x3e22ba(0x1b1),'description':_0x3e22ba(0xed),'apiKey':_0x3e22ba(0x1b2),'apiKeyPlaceholder':_0x3e22ba(0x185),'apiKeyHint':_0x3e22ba(0x148),'enableAuth':_0x3e22ba(0x13e),'enableAuthHint':_0x3e22ba(0x95),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x3e22ba(0x1b5),'configStepTitle':_0x3e22ba(0x16c),'configStep1':_0x3e22ba(0xcd),'configStep2':_0x3e22ba(0x16a),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x3e22ba(0x142),'sessionIdDescription':_0x3e22ba(0x151),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x3e22ba(0x13a),'maxRetries':_0x3e22ba(0x1ee),'save':_0x3e22ba(0x1ce),'saving':_0x3e22ba(0x7b),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x3e22ba(0x7d),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x3e22ba(0xc8),'description':_0x3e22ba(0x80),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x3e22ba(0x1a8)},'validation':{'apiKeyRequired':_0x3e22ba(0xc3),'apiKeyTooShort':_0x3e22ba(0x116),'invalidConfig':_0x3e22ba(0x1cc),'invalidApiKey':_0x3e22ba(0xd2)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':_0x3e22ba(0x160),'retrying':_0x3e22ba(0x18e)},'connectionError':{'unauthorized':_0x3e22ba(0x154),'sessionOccupied':_0x3e22ba(0x1c2),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},we={'mcpStatus':{'disconnected':_0x3e22ba(0x7e),'connecting':_0x3e22ba(0x119),'connected':_0x3e22ba(0x159),'failed':_0x3e22ba(0x111),'retrying':_0x3e22ba(0x12e),'unknown':_0x3e22ba(0x1d1),'unauthorized':_0x3e22ba(0x76),'sessionOccupied':_0x3e22ba(0xb1),'networkError':_0x3e22ba(0xf9),'maxRetriesExceeded':_0x3e22ba(0xc7),'clickToConnect':_0x3e22ba(0x100),'clickToConfigure':_0x3e22ba(0xdc)},'mcpConfig':{'title':'MCP\x20配置','description':_0x3e22ba(0xbc),'apiKey':_0x3e22ba(0x11c),'apiKeyPlaceholder':_0x3e22ba(0xe9),'apiKeyHint':_0x3e22ba(0x1aa),'enableAuth':_0x3e22ba(0xf7),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x3e22ba(0x8b),'mcpClientConfig':_0x3e22ba(0x8b),'configInstructions':_0x3e22ba(0x1cd),'configStepTitle':_0x3e22ba(0x150),'configStep1':_0x3e22ba(0x15b),'configStep2':_0x3e22ba(0x14a),'configStep3':_0x3e22ba(0x157),'sessionId':_0x3e22ba(0x16b),'sessionIdDescription':_0x3e22ba(0x198),'authorizationDescription':_0x3e22ba(0xa1),'configParameters':_0x3e22ba(0xae),'maxRetries':'最大重试次数','save':_0x3e22ba(0x1a1),'saving':_0x3e22ba(0x10c),'note1':_0x3e22ba(0xd9),'note2':_0x3e22ba(0x1be),'configSaved':_0x3e22ba(0x1a7),'configError':'配置保存失败','apiApplyInfo':{'title':_0x3e22ba(0xec),'description':_0x3e22ba(0x9a),'univerAiLabel':_0x3e22ba(0x140),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x3e22ba(0x1a2),'apiKeyTooShort':_0x3e22ba(0xc4),'invalidConfig':'配置无效','invalidApiKey':_0x3e22ba(0xbb)},'connectionStatus':{'disconnected':_0x3e22ba(0x174),'connecting':_0x3e22ba(0x15a),'connected':_0x3e22ba(0x1c7),'failed':_0x3e22ba(0x1ba),'retrying':_0x3e22ba(0x1f8)},'connectionError':{'unauthorized':_0x3e22ba(0x199),'sessionOccupied':_0x3e22ba(0x190),'networkError':_0x3e22ba(0x138),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var Ae=Object[_0x3e22ba(0xf2)],Oe=Object[_0x3e22ba(0x102)],De=(_0x3f139f,_0x2a7881,_0x4c265a)=>_0x2a7881 in _0x3f139f?Ae(_0x3f139f,_0x2a7881,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c265a}):_0x3f139f[_0x2a7881]=_0x4c265a,Ue=(_0x299049,_0x4e68ed,_0x57cd54,_0x53a07d)=>{for(var _0x486be4=_0x53a07d>0x1?void 0x0:_0x53a07d?Oe(_0x4e68ed,_0x57cd54):_0x4e68ed,_0x4c831d=_0x299049['length']-0x1,_0x4e7d04;_0x4c831d>=0x0;_0x4c831d--)(_0x4e7d04=_0x299049[_0x4c831d])&&(_0x486be4=_0x4e7d04(_0x486be4)||_0x486be4);return _0x486be4;},y=(_0x332f61,_0x2f3e8f)=>(_0x32690a,_0x5ef908)=>_0x2f3e8f(_0x32690a,_0x5ef908,_0x332f61),$e=(_0x36bb1c,_0x2205f9,_0x5db23f)=>De(_0x36bb1c,_0x2205f9+'',_0x5db23f);exports['UniverMCPUIPlugin']=class extends u['Plugin']{constructor(_0x41c0cc=L,_0x14d7b5,_0x2b7e81,_0x19aad6,_0x58c57d,_0x2d7384){const _0x21111b=_0x3e22ba;super(),this[_0x21111b(0x12a)]=_0x41c0cc,this[_0x21111b(0xbe)]=_0x14d7b5,this['_configService']=_0x2b7e81,this['_uiPartsService']=_0x19aad6,this[_0x21111b(0x10d)]=_0x58c57d,this[_0x21111b(0x167)]=_0x2d7384;const {..._0x1082ce}=u[_0x21111b(0x14c)]({},L,this[_0x21111b(0x12a)]);this['_configService'][_0x21111b(0x15f)](P,_0x1082ce);}async[_0x3e22ba(0xaf)](){const _0x5d2d77=_0x3e22ba,_0x196e2b=[[exports[_0x5d2d77(0x97)]],[exports[_0x5d2d77(0x14f)]],[exports['MCPUIMenuController']]];this[_0x5d2d77(0xbe)][_0x5d2d77(0x143)](A[_0x5d2d77(0x1ab)])||_0x196e2b[_0x5d2d77(0x19e)]([A['ISocketService'],{'useClass':A[_0x5d2d77(0xc5)]}]),_0x196e2b[_0x5d2d77(0x84)](_0x2051b3=>this[_0x5d2d77(0xbe)][_0x5d2d77(0x127)](_0x2051b3)),this[_0x5d2d77(0xbe)][_0x5d2d77(0x1da)](exports[_0x5d2d77(0x97)]),this[_0x5d2d77(0xbe)][_0x5d2d77(0x1da)](exports[_0x5d2d77(0x14f)]),this[_0x5d2d77(0xbe)][_0x5d2d77(0x1da)](exports[_0x5d2d77(0xb4)]);}},$e(exports[_0x3e22ba(0x83)],'pluginName',_0x3e22ba(0x99)),exports[_0x3e22ba(0x83)]=Ue([u['DependentOn'](s[_0x3e22ba(0xdb)]),y(0x1,u['Inject'](u[_0x3e22ba(0xee)])),y(0x2,u[_0x3e22ba(0x101)]),y(0x3,v['IUIPartsService']),y(0x4,u[_0x3e22ba(0x9b)]),y(0x5,u[_0x3e22ba(0x18b)](u['LocaleService']))],exports[_0x3e22ba(0x83)]),exports['MCPConfigPanel']=V,exports[_0x3e22ba(0x18c)]=W,exports[_0x3e22ba(0x18f)]=b,exports[_0x3e22ba(0xa5)]=Ee,exports['zhCN']=we;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1bde50=_0xc5b3;function _0xc5b3(_0x10a515,_0x3bc19c){const _0x2ed462=_0x2ed4();return _0xc5b3=function(_0xc5b3f2,_0x446977){_0xc5b3f2=_0xc5b3f2-0x175;let _0x138fef=_0x2ed462[_0xc5b3f2];return _0x138fef;},_0xc5b3(_0x10a515,_0x3bc19c);}(function(_0x1cf284,_0x31f993){const _0x4e197c=_0xc5b3,_0x1f6abc=_0x1cf284();while(!![]){try{const _0x578b26=-parseInt(_0x4e197c(0x195))/0x1+-parseInt(_0x4e197c(0x18b))/0x2*(parseInt(_0x4e197c(0x1a6))/0x3)+parseInt(_0x4e197c(0x182))/0x4*(parseInt(_0x4e197c(0x179))/0x5)+-parseInt(_0x4e197c(0x18e))/0x6*(parseInt(_0x4e197c(0x1a0))/0x7)+-parseInt(_0x4e197c(0x1a3))/0x8+parseInt(_0x4e197c(0x191))/0x9*(-parseInt(_0x4e197c(0x1a7))/0xa)+-parseInt(_0x4e197c(0x1a8))/0xb*(-parseInt(_0x4e197c(0x17d))/0xc);if(_0x578b26===_0x31f993)break;else _0x1f6abc['push'](_0x1f6abc['shift']());}catch(_0x1ab4f2){_0x1f6abc['push'](_0x1f6abc['shift']());}}}(_0x2ed4,0xc9367));const e={'mcpStatus':{'disconnected':_0x1bde50(0x178),'connecting':_0x1bde50(0x175),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x1bde50(0x19f),'unauthorized':_0x1bde50(0x183),'sessionOccupied':_0x1bde50(0x18f),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x1bde50(0x17a),'clickToConnect':_0x1bde50(0x197),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x1bde50(0x18d),'description':_0x1bde50(0x17c),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x1bde50(0x189),'apiKeyHint':_0x1bde50(0x19b),'enableAuth':_0x1bde50(0x187),'enableAuthHint':_0x1bde50(0x17f),'connectionInfo':_0x1bde50(0x19e),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x1bde50(0x198),'configStepTitle':_0x1bde50(0x196),'configStep1':_0x1bde50(0x188),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x1bde50(0x186),'sessionIdDescription':_0x1bde50(0x199),'authorizationDescription':_0x1bde50(0x17e),'configParameters':_0x1bde50(0x180),'maxRetries':_0x1bde50(0x17b),'save':_0x1bde50(0x18a),'saving':_0x1bde50(0x190),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x1bde50(0x184),'configSaved':_0x1bde50(0x181),'configError':_0x1bde50(0x19a),'apiApplyInfo':{'title':_0x1bde50(0x1a4),'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':_0x1bde50(0x185),'getStarted':_0x1bde50(0x194)},'validation':{'apiKeyRequired':_0x1bde50(0x192),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x1bde50(0x1a1)},'connectionStatus':{'disconnected':_0x1bde50(0x1a9),'connecting':_0x1bde50(0x1a5),'connected':_0x1bde50(0x1a2),'failed':_0x1bde50(0x19d),'retrying':_0x1bde50(0x19c)},'connectionError':{'unauthorized':_0x1bde50(0x193),'sessionOccupied':_0x1bde50(0x177),'networkError':_0x1bde50(0x18c),'maxRetriesExceeded':_0x1bde50(0x176)}}},n=e;function _0x2ed4(){const _0x339572=['MCP\x20Client\x20Configuration','MCP\x20Unknown\x20Status','7PvAvDT','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connected','10905912vTFJVS','What\x20is\x20API\x20Key?','Connecting...','129bPnqnE','10UFbJvv','19679mMrXwr','Disconnected','MCP\x20Connecting...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Disconnected','25lCQJwG','MCP:\x20Max\x20Retries\x20Exceeded','Max\x20Retries','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','35268ATmixV','API\x20key\x20with\x20Bearer\x20prefix.','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20Parameters:','Configuration\x20saved\x20successfully','548276pYZgYf','MCP:\x20Unauthorized','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Univer\x20AI\x20Console','Session\x20ID','Enable\x20Authentication','Copy\x20the\x20JSON\x20configuration\x20below','Enter\x20your\x20API\x20key','Save\x20Configuration','75778cXWlNN','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Configuration','5568150lUxYnP','MCP:\x20Session\x20ID\x20Occupied','Saving...','3341304TBnzwi','API\x20key\x20is\x20required','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds','827302xvFbgK','Configuration\x20Steps:','Click\x20to\x20connect\x20MCP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Retrying...','Connection\x20Failed'];_0x2ed4=function(){return _0x339572;};return _0x2ed4();}module['exports']=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x142167=_0x45f1;(function(_0x22214f,_0x41e77a){const _0xdf97bb=_0x45f1,_0x1f24bc=_0x22214f();while(!![]){try{const _0x9d6481=parseInt(_0xdf97bb(0x95))/0x1*(parseInt(_0xdf97bb(0x94))/0x2)+-parseInt(_0xdf97bb(0xb5))/0x3+-parseInt(_0xdf97bb(0x83))/0x4+-parseInt(_0xdf97bb(0x8e))/0x5+parseInt(_0xdf97bb(0x9a))/0x6*(parseInt(_0xdf97bb(0xa3))/0x7)+parseInt(_0xdf97bb(0x91))/0x8*(parseInt(_0xdf97bb(0xb3))/0x9)+-parseInt(_0xdf97bb(0xaf))/0xa*(parseInt(_0xdf97bb(0x8d))/0xb);if(_0x9d6481===_0x41e77a)break;else _0x1f24bc['push'](_0x1f24bc['shift']());}catch(_0x5c3ab6){_0x1f24bc['push'](_0x1f24bc['shift']());}}}(_0x514b,0x5ca39));function _0x45f1(_0x35b691,_0xe3879c){const _0x514bab=_0x514b();return _0x45f1=function(_0x45f16e,_0x2e98e0){_0x45f16e=_0x45f16e-0x83;let _0xe9613f=_0x514bab[_0x45f16e];return _0xe9613f;},_0x45f1(_0x35b691,_0xe3879c);}function _0x514b(){const _0x2d464b=['MCP\x20Connection\x20Failed','MCP\x20Retrying...','API\x20key\x20with\x20Bearer\x20prefix.','Session\x20ID','28nwQtkE','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','exports','Disconnected','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20configure\x20MCP','1500570kpGuhO','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','2448Tvcjuw','MCP\x20Configuration','1079190EhHWeg','1780164zmaOAT','MCP:\x20Max\x20Retries\x20Exceeded','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Client\x20Configuration','Retrying...','Enter\x20your\x20API\x20key','Click\x20to\x20connect\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Unauthorized','Connecting...','11SVCCaO','2053290XkqegU','Univer\x20AI\x20Console','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','16488jmGAHi','Copy\x20the\x20JSON\x20configuration\x20below','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','42RFOIHW','28043MtuhLF','Configuration\x20saved\x20successfully','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connecting...','API\x20key\x20is\x20required','893160iTlPiM','MCP:\x20Session\x20ID\x20Occupied','Save\x20Configuration','MCP:\x20Network\x20Error','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.'];_0x514b=function(){return _0x2d464b;};return _0x514b();}const e={'mcpStatus':{'disconnected':_0x142167(0xb1),'connecting':_0x142167(0x98),'connected':_0x142167(0xa7),'failed':_0x142167(0x9f),'retrying':_0x142167(0xa0),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x142167(0x8b),'sessionOccupied':_0x142167(0x9b),'networkError':_0x142167(0x9d),'maxRetriesExceeded':_0x142167(0x84),'clickToConnect':_0x142167(0x89),'clickToConfigure':_0x142167(0xae)},'mcpConfig':{'title':_0x142167(0xb4),'description':_0x142167(0x8a),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x142167(0x88),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x142167(0xac),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x142167(0x86),'configInstructions':_0x142167(0x97),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x142167(0x92),'configStep2':_0x142167(0xa8),'configStep3':_0x142167(0xa6),'sessionId':_0x142167(0xa2),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x142167(0xa1),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x142167(0x9c),'saving':'Saving...','note1':_0x142167(0xa4),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x142167(0x96),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x142167(0x9e),'univerAiLabel':_0x142167(0x8f),'getStarted':_0x142167(0xb2)},'validation':{'apiKeyRequired':_0x142167(0x99),'apiKeyTooShort':_0x142167(0x90),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x142167(0xad)},'connectionStatus':{'disconnected':_0x142167(0xab),'connecting':_0x142167(0x8c),'connected':_0x142167(0xa5),'failed':'Connection\x20Failed','retrying':_0x142167(0x87)},'connectionError':{'unauthorized':_0x142167(0xa9),'sessionOccupied':_0x142167(0x85),'networkError':_0x142167(0x93),'maxRetriesExceeded':_0x142167(0xb0)}}};module[_0x142167(0xaa)]=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x553b73=_0x372b;function _0x53a6(){const _0x988914=['exports','Saving...','MCP\x20Unknown\x20Status','181593gKugXV','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','2476twdpVs','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','66pXYnPs','80367BxZCtz','MCP\x20Client\x20Configuration','API\x20Key','MCP:\x20Network\x20Error','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Max\x20Retries\x20Exceeded','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Disconnected','Invalid\x20configuration','629hqiYmn','MCP\x20Connection\x20Failed','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20is\x20required','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Configuration','Univer\x20AI\x20Console','Enable\x20Authentication','Disconnected','Save\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connected','Configuration\x20Steps:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20connect\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Retrying...','MCP:\x20Unauthorized','Click\x20to\x20configure\x20MCP','Configuration\x20saved\x20successfully','Configuration\x20Parameters:','1036299HOZjBB','Connected','Copy\x20the\x20JSON\x20configuration\x20below','128zEswlV','5095yQqWyB','1642ALbJgw','3413616MNmOed','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','189570lhkYla','What\x20is\x20API\x20Key?'];_0x53a6=function(){return _0x988914;};return _0x53a6();}(function(_0x287b31,_0x15859d){const _0x3da5a2=_0x372b,_0x37b30d=_0x287b31();while(!![]){try{const _0x5572f8=parseInt(_0x3da5a2(0xb9))/0x1*(parseInt(_0x3da5a2(0xa3))/0x2)+-parseInt(_0x3da5a2(0xd1))/0x3+-parseInt(_0x3da5a2(0xad))/0x4*(parseInt(_0x3da5a2(0xa2))/0x5)+parseInt(_0x3da5a2(0xa4))/0x6+parseInt(_0x3da5a2(0xb0))/0x7+-parseInt(_0x3da5a2(0xd4))/0x8*(-parseInt(_0x3da5a2(0xab))/0x9)+parseInt(_0x3da5a2(0xa6))/0xa*(-parseInt(_0x3da5a2(0xaf))/0xb);if(_0x5572f8===_0x15859d)break;else _0x37b30d['push'](_0x37b30d['shift']());}catch(_0x18b53c){_0x37b30d['push'](_0x37b30d['shift']());}}}(_0x53a6,0x507fa));function _0x372b(_0x518ef3,_0x3d7a1f){const _0x53a604=_0x53a6();return _0x372b=function(_0x372ba5,_0x5539ff){_0x372ba5=_0x372ba5-0xa2;let _0x4b7472=_0x53a604[_0x372ba5];return _0x4b7472;},_0x372b(_0x518ef3,_0x3d7a1f);}const e={'mcpStatus':{'disconnected':_0x553b73(0xb7),'connecting':'MCP\x20Connecting...','connected':_0x553b73(0xc5),'failed':_0x553b73(0xba),'retrying':_0x553b73(0xcc),'unknown':_0x553b73(0xaa),'unauthorized':_0x553b73(0xcd),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x553b73(0xb3),'maxRetriesExceeded':_0x553b73(0xb5),'clickToConnect':_0x553b73(0xc9),'clickToConfigure':_0x553b73(0xce)},'mcpConfig':{'title':_0x553b73(0xbe),'description':_0x553b73(0xc7),'apiKey':_0x553b73(0xb2),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x553b73(0xbd),'enableAuth':_0x553b73(0xc0),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x553b73(0xb1),'mcpClientConfig':_0x553b73(0xb1),'configInstructions':_0x553b73(0xcb),'configStepTitle':_0x553b73(0xc6),'configStep1':_0x553b73(0xd3),'configStep2':_0x553b73(0xb4),'configStep3':_0x553b73(0xc3),'sessionId':'Session\x20ID','sessionIdDescription':_0x553b73(0xa5),'authorizationDescription':_0x553b73(0xc8),'configParameters':_0x553b73(0xd0),'maxRetries':'Max\x20Retries','save':_0x553b73(0xc2),'saving':_0x553b73(0xa9),'note1':_0x553b73(0xc4),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x553b73(0xcf),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x553b73(0xa7),'description':_0x553b73(0xbb),'univerAiLabel':_0x553b73(0xbf),'getStarted':_0x553b73(0xb6)},'validation':{'apiKeyRequired':_0x553b73(0xbc),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x553b73(0xb8),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x553b73(0xc1),'connecting':'Connecting...','connected':_0x553b73(0xd2),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x553b73(0xac),'sessionOccupied':_0x553b73(0xca),'networkError':_0x553b73(0xae),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x553b73(0xa8)]=n;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x208fb6=_0x22a6;(function(_0x3fcffb,_0x49d8f7){const _0x111b1f=_0x22a6,_0x132a03=_0x3fcffb();while(!![]){try{const _0x5a98c4=parseInt(_0x111b1f(0x78))/0x1+-parseInt(_0x111b1f(0x8a))/0x2*(-parseInt(_0x111b1f(0x77))/0x3)+-parseInt(_0x111b1f(0x96))/0x4+-parseInt(_0x111b1f(0x68))/0x5+parseInt(_0x111b1f(0x97))/0x6*(-parseInt(_0x111b1f(0x85))/0x7)+parseInt(_0x111b1f(0x75))/0x8*(-parseInt(_0x111b1f(0x94))/0x9)+-parseInt(_0x111b1f(0x7b))/0xa*(-parseInt(_0x111b1f(0x7a))/0xb);if(_0x5a98c4===_0x49d8f7)break;else _0x132a03['push'](_0x132a03['shift']());}catch(_0x229576){_0x132a03['push'](_0x132a03['shift']());}}}(_0x5e1e,0x217d3));function _0x5e1e(){const _0x540e70=['MCP\x20Connecting...','15911AJgGnd','Copy\x20the\x20JSON\x20configuration\x20below','Enter\x20your\x20API\x20key','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','10eJbzkF','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Invalid\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Session\x20ID\x20Occupied','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20key\x20is\x20required','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Configuration','MCP\x20Retrying...','171pTQAiD','API\x20Key','937008kDTaad','654kJgUEt','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Failed\x20to\x20save\x20configuration','Enable\x20Authentication','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Parameters:','Session\x20ID','MCP:\x20Unauthorized','835920fCvxLC','exports','Retrying...','MCP:\x20Network\x20Error','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connected','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connection\x20Failed','Get\x20your\x20API\x20key\x20in\x20seconds','Disconnected','Save\x20Configuration','MCP\x20Unknown\x20Status','Connecting...','95776wnIdZK','What\x20is\x20API\x20Key?','86919umAhxj','16688aRaVdl','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','3125023xcvmfS','30JlGTjD','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Univer\x20AI\x20Console','Click\x20to\x20connect\x20MCP','Click\x20to\x20configure\x20MCP','Configuration\x20Steps:','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.','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.'];_0x5e1e=function(){return _0x540e70;};return _0x5e1e();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x208fb6(0x84),'connected':_0x208fb6(0x6d),'failed':_0x208fb6(0x6f),'retrying':_0x208fb6(0x93),'unknown':_0x208fb6(0x73),'unauthorized':_0x208fb6(0x67),'sessionOccupied':_0x208fb6(0x8e),'networkError':_0x208fb6(0x6b),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x208fb6(0x7e),'clickToConfigure':_0x208fb6(0x7f)},'mcpConfig':{'title':_0x208fb6(0x92),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x208fb6(0x95),'apiKeyPlaceholder':_0x208fb6(0x87),'apiKeyHint':_0x208fb6(0x89),'enableAuth':_0x208fb6(0x9a),'enableAuthHint':_0x208fb6(0x6e),'connectionInfo':_0x208fb6(0x81),'mcpClientConfig':_0x208fb6(0x81),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x208fb6(0x80),'configStep1':_0x208fb6(0x86),'configStep2':_0x208fb6(0x7c),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x208fb6(0x66),'sessionIdDescription':_0x208fb6(0x83),'authorizationDescription':_0x208fb6(0x6c),'configParameters':_0x208fb6(0x65),'maxRetries':'Max\x20Retries','save':_0x208fb6(0x72),'saving':'Saving...','note1':_0x208fb6(0x98),'note2':_0x208fb6(0x8b),'configSaved':_0x208fb6(0x88),'configError':_0x208fb6(0x99),'apiApplyInfo':{'title':_0x208fb6(0x76),'description':_0x208fb6(0x82),'univerAiLabel':_0x208fb6(0x7d),'getStarted':_0x208fb6(0x70)},'validation':{'apiKeyRequired':_0x208fb6(0x90),'apiKeyTooShort':_0x208fb6(0x79),'invalidConfig':_0x208fb6(0x8c),'invalidApiKey':_0x208fb6(0x91)},'connectionStatus':{'disconnected':_0x208fb6(0x71),'connecting':_0x208fb6(0x74),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x208fb6(0x6a)},'connectionError':{'unauthorized':_0x208fb6(0x8d),'sessionOccupied':_0x208fb6(0x8f),'networkError':_0x208fb6(0x9b),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x22a6(_0x197905,_0x116640){const _0x5e1eef=_0x5e1e();return _0x22a6=function(_0x22a679,_0x9614f7){_0x22a679=_0x22a679-0x65;let _0x2273ce=_0x5e1eef[_0x22a679];return _0x2273ce;},_0x22a6(_0x197905,_0x116640);}module[_0x208fb6(0x69)]=n;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x9cc372=_0x58ee;(function(_0x2f2357,_0x4ce798){const _0x532f29=_0x58ee,_0x38a9f0=_0x2f2357();while(!![]){try{const _0x254939=parseInt(_0x532f29(0xad))/0x1*(parseInt(_0x532f29(0xbe))/0x2)+-parseInt(_0x532f29(0x9f))/0x3*(parseInt(_0x532f29(0xaa))/0x4)+-parseInt(_0x532f29(0xaf))/0x5+-parseInt(_0x532f29(0xac))/0x6*(parseInt(_0x532f29(0xb8))/0x7)+parseInt(_0x532f29(0xb2))/0x8*(parseInt(_0x532f29(0xa2))/0x9)+-parseInt(_0x532f29(0xb1))/0xa+parseInt(_0x532f29(0xba))/0xb;if(_0x254939===_0x4ce798)break;else _0x38a9f0['push'](_0x38a9f0['shift']());}catch(_0x5eb1de){_0x38a9f0['push'](_0x38a9f0['shift']());}}}(_0x5a30,0x96b22));const e={'mcpStatus':{'disconnected':_0x9cc372(0xc2),'connecting':_0x9cc372(0xc7),'connected':_0x9cc372(0xbd),'failed':_0x9cc372(0x9d),'retrying':_0x9cc372(0xbf),'unknown':_0x9cc372(0xa3),'unauthorized':_0x9cc372(0xc9),'sessionOccupied':_0x9cc372(0x9a),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x9cc372(0x9e),'clickToConfigure':_0x9cc372(0xc0)},'mcpConfig':{'title':_0x9cc372(0xbb),'description':_0x9cc372(0xa1),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x9cc372(0xb0),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x9cc372(0xb3),'connectionInfo':_0x9cc372(0xc5),'mcpClientConfig':_0x9cc372(0xc5),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x9cc372(0xa4),'configStep1':_0x9cc372(0xab),'configStep2':_0x9cc372(0xc8),'configStep3':_0x9cc372(0xa0),'sessionId':_0x9cc372(0xca),'sessionIdDescription':_0x9cc372(0x99),'authorizationDescription':_0x9cc372(0xb4),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x9cc372(0xb6),'save':'Save\x20Configuration','saving':_0x9cc372(0x9b),'note1':_0x9cc372(0xc3),'note2':_0x9cc372(0xb9),'configSaved':_0x9cc372(0xc6),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x9cc372(0xb7),'description':_0x9cc372(0x9c),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x9cc372(0xa9)},'validation':{'apiKeyRequired':_0x9cc372(0xc4),'apiKeyTooShort':_0x9cc372(0xb5),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x9cc372(0xa8),'failed':_0x9cc372(0xae),'retrying':_0x9cc372(0xc1)},'connectionError':{'unauthorized':_0x9cc372(0xa5),'sessionOccupied':_0x9cc372(0xa6),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x9cc372(0xa7)}}},n=e;function _0x5a30(){const _0x3a7d22=['8fhCmmp','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20with\x20Bearer\x20prefix.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Max\x20Retries','What\x20is\x20API\x20Key?','7onMDkc','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','11880737kYAJcv','MCP\x20Configuration','exports','MCP\x20Connected','1694036FHQzGs','MCP\x20Retrying...','Click\x20to\x20configure\x20MCP','Retrying...','MCP\x20Disconnected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20is\x20required','MCP\x20Client\x20Configuration','Configuration\x20saved\x20successfully','MCP\x20Connecting...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Unauthorized','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:\x20Session\x20ID\x20Occupied','Saving...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Connection\x20Failed','Click\x20to\x20connect\x20MCP','384417rAEiaw','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','7532937uWNDNA','MCP\x20Unknown\x20Status','Configuration\x20Steps:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connected','Get\x20your\x20API\x20key\x20in\x20seconds','28VgWNcW','Copy\x20the\x20JSON\x20configuration\x20below','776868ZTGksF','1dkADXC','Connection\x20Failed','420770nfcNfC','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','10362230TZwNnH'];_0x5a30=function(){return _0x3a7d22;};return _0x5a30();}function _0x58ee(_0x5a8b18,_0x109369){const _0x5a3095=_0x5a30();return _0x58ee=function(_0x58eea2,_0x5d4ebe){_0x58eea2=_0x58eea2-0x99;let _0x4330d6=_0x5a3095[_0x58eea2];return _0x4330d6;},_0x58ee(_0x5a8b18,_0x109369);}module[_0x9cc372(0xbc)]=n;
|
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x1c8986=_0x5963;function _0x5963(_0x41a23a,_0x84ff){const _0x21f94d=_0x21f9();return _0x5963=function(_0x596332,_0x47502b){_0x596332=_0x596332-0x126;let _0x3df650=_0x21f94d[_0x596332];return _0x3df650;},_0x5963(_0x41a23a,_0x84ff);}function _0x21f9(){const _0x5da05b=['What\x20is\x20API\x20Key?','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','15743904wBwLof','Univer\x20AI\x20Console','1022pVGJvV','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20saved\x20successfully','API\x20key\x20is\x20required','4lafHiI','Connecting...','Save\x20Configuration','Configuration\x20Steps:','MCP:\x20Network\x20Error','Retrying...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connected','Copy\x20the\x20JSON\x20configuration\x20below','Failed\x20to\x20save\x20configuration','API\x20Key','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','138IqPnhl','Click\x20to\x20configure\x20MCP','Max\x20Retries','808509dhjdvt','Configuration\x20Parameters:','Click\x20to\x20connect\x20MCP','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enter\x20your\x20API\x20key','Enable\x20Authentication','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Saving...','2353676kRFnOF','Session\x20ID','61990MRDhnn','Disconnected','MCP\x20Unknown\x20Status','MCP\x20Configuration','6273220fFrHeF','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connection\x20Failed','Connected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','35024qtBSGi','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','1926018GCWNye','1JawVeN','MCP\x20Client\x20Configuration','MCP:\x20Session\x20ID\x20Occupied'];_0x21f9=function(){return _0x5da05b;};return _0x21f9();}(function(_0x5550b5,_0x28438a){const _0x5a4415=_0x5963,_0x98576a=_0x5550b5();while(!![]){try{const _0x401668=parseInt(_0x5a4415(0x13b))/0x1*(-parseInt(_0x5a4415(0x12d))/0x2)+parseInt(_0x5a4415(0x159))/0x3*(-parseInt(_0x5a4415(0x148))/0x4)+parseInt(_0x5a4415(0x12f))/0x5*(-parseInt(_0x5a4415(0x156))/0x6)+parseInt(_0x5a4415(0x143))/0x7*(parseInt(_0x5a4415(0x138))/0x8)+-parseInt(_0x5a4415(0x13a))/0x9+parseInt(_0x5a4415(0x133))/0xa+parseInt(_0x5a4415(0x141))/0xb;if(_0x401668===_0x28438a)break;else _0x98576a['push'](_0x98576a['shift']());}catch(_0x1d7f9d){_0x98576a['push'](_0x98576a['shift']());}}}(_0x21f9,0xb7a95));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x1c8986(0x150),'failed':_0x1c8986(0x135),'retrying':'MCP\x20Retrying...','unknown':_0x1c8986(0x131),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x1c8986(0x13d),'networkError':_0x1c8986(0x14c),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x1c8986(0x15b),'clickToConfigure':_0x1c8986(0x157)},'mcpConfig':{'title':_0x1c8986(0x132),'description':_0x1c8986(0x145),'apiKey':_0x1c8986(0x153),'apiKeyPlaceholder':_0x1c8986(0x129),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x1c8986(0x12a),'enableAuthHint':_0x1c8986(0x15c),'connectionInfo':_0x1c8986(0x13c),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x1c8986(0x128),'configStepTitle':_0x1c8986(0x14b),'configStep1':_0x1c8986(0x151),'configStep2':_0x1c8986(0x134),'configStep3':_0x1c8986(0x154),'sessionId':_0x1c8986(0x12e),'sessionIdDescription':_0x1c8986(0x14e),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x1c8986(0x15a),'maxRetries':_0x1c8986(0x158),'save':_0x1c8986(0x14a),'saving':_0x1c8986(0x12c),'note1':_0x1c8986(0x137),'note2':_0x1c8986(0x12b),'configSaved':_0x1c8986(0x146),'configError':_0x1c8986(0x152),'apiApplyInfo':{'title':_0x1c8986(0x13e),'description':_0x1c8986(0x140),'univerAiLabel':_0x1c8986(0x142),'getStarted':_0x1c8986(0x14f)},'validation':{'apiKeyRequired':_0x1c8986(0x147),'apiKeyTooShort':_0x1c8986(0x126),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x1c8986(0x127)},'connectionStatus':{'disconnected':_0x1c8986(0x130),'connecting':_0x1c8986(0x149),'connected':_0x1c8986(0x136),'failed':'Connection\x20Failed','retrying':_0x1c8986(0x14d)},'connectionError':{'unauthorized':_0x1c8986(0x155),'sessionOccupied':_0x1c8986(0x139),'networkError':_0x1c8986(0x13f),'maxRetriesExceeded':_0x1c8986(0x144)}}},n=e;module['exports']=n;
|