@univerjs-pro/mcp-ui 0.15.0-insiders.20260106-79b11f9 → 0.15.0-insiders.20260107-3d1cfdf
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +6 -6
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x2c79bd=_0x4c22;(function(_0x188ed0,_0x4c8110){const _0x5b9fb1=_0x4c22,_0x1829fa=_0x188ed0();while(!![]){try{const _0x5ebdbc=-parseInt(_0x5b9fb1(0x364))/0x1+parseInt(_0x5b9fb1(0x341))/0x2+-parseInt(_0x5b9fb1(0x2a3))/0x3+parseInt(_0x5b9fb1(0x23c))/0x4+parseInt(_0x5b9fb1(0x29a))/0x5+-parseInt(_0x5b9fb1(0x2a7))/0x6*(-parseInt(_0x5b9fb1(0x2b5))/0x7)+-parseInt(_0x5b9fb1(0x235))/0x8;if(_0x5ebdbc===_0x4c8110)break;else _0x1829fa['push'](_0x1829fa['shift']());}catch(_0x55e94f){_0x1829fa['push'](_0x1829fa['shift']());}}}(_0x3047,0x5be83));var ae=Object['defineProperty'],le=(_0x29b339,_0x50c923,_0x5939df)=>_0x50c923 in _0x29b339?ae(_0x29b339,_0x50c923,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5939df}):_0x29b339[_0x50c923]=_0x5939df,I=(_0x5d4b96,_0x5e6df5,_0x34d165)=>le(_0x5d4b96,typeof _0x5e6df5!=_0x2c79bd(0x288)?_0x5e6df5+'':_0x5e6df5,_0x34d165);Object['defineProperty'](exports,Symbol[_0x2c79bd(0x252)],{'value':_0x2c79bd(0x2a4)});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:_0x58895c,..._0x3da91a}){const _0xa7007e=_0x2c79bd,{icon:_0x4948a7,id:_0x452d03,className:_0x5364fa,extend:_0x563144,..._0x10c644}=_0x3da91a,_0x53c105=(_0xa7007e(0x28f)+_0x452d03+'\x20'+(_0x5364fa||''))[_0xa7007e(0x26d)](),_0x5bda7b=d[_0xa7007e(0x1f1)]('_'+de());return G(_0x4948a7,''+_0x452d03,{'defIds':_0x4948a7[_0xa7007e(0x209)],'idSuffix':_0x5bda7b[_0xa7007e(0x360)]},{'ref':_0x58895c,'className':_0x53c105,..._0x10c644},_0x563144);}function G(_0x205938,_0x4e13ed,_0x2a65c5,_0x28e778,_0x5cc86a){const _0x55a23b=_0x2c79bd;return d[_0x55a23b(0x216)](_0x205938['tag'],{'key':_0x4e13ed,...ue(_0x205938,_0x2a65c5,_0x5cc86a),..._0x28e778},(ve(_0x205938,_0x2a65c5)[_0x55a23b(0x31d)]||[])[_0x55a23b(0x2fd)]((_0x5a1694,_0x31acc6)=>G(_0x5a1694,_0x4e13ed+'-'+_0x205938['tag']+'-'+_0x31acc6,_0x2a65c5,void 0x0,_0x5cc86a)));}function ue(_0x3164c7,_0x366eb4,_0x585e73){const _0x4e1d23=_0x2c79bd,_0x677a47={..._0x3164c7[_0x4e1d23(0x26a)]};_0x585e73!=null&&_0x585e73[_0x4e1d23(0x2ab)]&&_0x677a47[_0x4e1d23(0x2ae)]===_0x4e1d23(0x2ab)&&(_0x677a47['fill']=_0x585e73['colorChannel1']),_0x3164c7['tag']===_0x4e1d23(0x253)&&_0x677a47['id']&&(_0x677a47['id']=_0x677a47['id']+_0x366eb4[_0x4e1d23(0x35f)]),Object['entries'](_0x677a47)['forEach'](([_0x2f9d18,_0x1fd940])=>{const _0x43d25c=_0x4e1d23;_0x2f9d18==='mask'&&typeof _0x1fd940==_0x43d25c(0x2fa)&&(_0x677a47[_0x2f9d18]=_0x1fd940[_0x43d25c(0x238)](/url\(#(.*)\)/,'url(#$1'+_0x366eb4[_0x43d25c(0x35f)]+')'));});const {defIds:_0x16e654}=_0x366eb4;return!_0x16e654||_0x16e654['length']===0x0||(_0x3164c7['tag']===_0x4e1d23(0x321)&&_0x677a47[_0x4e1d23(0x2a6)]&&(_0x677a47[_0x4e1d23(0x2a6)]=_0x677a47[_0x4e1d23(0x2a6)]+_0x366eb4['idSuffix']),Object[_0x4e1d23(0x2f5)](_0x677a47)[_0x4e1d23(0x2d8)](([_0x5bd44e,_0x3e0280])=>{const _0x37ad1c=_0x4e1d23;typeof _0x3e0280==_0x37ad1c(0x2fa)&&(_0x677a47[_0x5bd44e]=_0x3e0280['replace'](/url\(#(.*)\)/,_0x37ad1c(0x22c)+_0x366eb4[_0x37ad1c(0x35f)]+')'));})),_0x677a47;}function ve(_0x5754d1,_0xb7025d){const _0x1ddf59=_0x2c79bd;var _0x5ccc3d;const {defIds:_0x35056}=_0xb7025d;return!_0x35056||_0x35056[_0x1ddf59(0x205)]===0x0?_0x5754d1:_0x5754d1[_0x1ddf59(0x256)]===_0x1ddf59(0x23d)&&((_0x5ccc3d=_0x5754d1[_0x1ddf59(0x31d)])!=null&&_0x5ccc3d[_0x1ddf59(0x205)])?{..._0x5754d1,'children':_0x5754d1[_0x1ddf59(0x31d)][_0x1ddf59(0x2fd)](_0x1c02da=>typeof _0x1c02da[_0x1ddf59(0x26a)]['id']==_0x1ddf59(0x2fa)&&_0x35056&&_0x35056[_0x1ddf59(0x337)](_0x1c02da[_0x1ddf59(0x26a)]['id'])?{..._0x1c02da,'attrs':{..._0x1c02da[_0x1ddf59(0x26a)],'id':_0x1c02da[_0x1ddf59(0x26a)]['id']+_0xb7025d[_0x1ddf59(0x35f)]}}:_0x1c02da)}:_0x5754d1;}function de(){const _0x546748=_0x2c79bd;return Math[_0x546748(0x2f0)]()['toString'](0x24)[_0x546748(0x29e)](0x2,0x8);}_[_0x2c79bd(0x2c2)]=_0x2c79bd(0x25b);const Ce={'tag':_0x2c79bd(0x2c1),'attrs':{'xmlns':_0x2c79bd(0x367),'fill':_0x2c79bd(0x2e1),'viewBox':_0x2c79bd(0x272),'width':_0x2c79bd(0x281),'height':_0x2c79bd(0x281)},'children':[{'tag':_0x2c79bd(0x344),'attrs':{'fill':_0x2c79bd(0x349),'d':_0x2c79bd(0x324),'fillRule':'evenodd','clipRule':_0x2c79bd(0x24c)}}]},H=d['forwardRef'](function(_0x410fbb,_0x1efb2a){const _0x179a91=_0x2c79bd;return d['createElement'](_,Object['assign']({},_0x410fbb,{'id':_0x179a91(0x25e),'ref':_0x1efb2a,'icon':Ce}));});H['displayName']=_0x2c79bd(0x2e0);const ge={'tag':_0x2c79bd(0x2c1),'attrs':{'xmlns':_0x2c79bd(0x367),'fill':_0x2c79bd(0x2e1),'viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':_0x2c79bd(0x344),'attrs':{'fill':_0x2c79bd(0x349),'d':_0x2c79bd(0x25d)}}]},B=d[_0x2c79bd(0x22e)](function(_0x28ff6c,_0x182cf8){const _0x1099cf=_0x2c79bd;return d[_0x1099cf(0x216)](_,Object[_0x1099cf(0x2c8)]({},_0x28ff6c,{'id':_0x1099cf(0x2a9),'ref':_0x182cf8,'icon':ge}));});B['displayName']='CloseIcon';const fe={'tag':_0x2c79bd(0x2c1),'attrs':{'xmlns':_0x2c79bd(0x367),'fill':_0x2c79bd(0x2e1),'viewBox':_0x2c79bd(0x272),'width':'1em','height':_0x2c79bd(0x281)},'children':[{'tag':'path','attrs':{'fill':_0x2c79bd(0x349),'d':_0x2c79bd(0x2a1)}},{'tag':_0x2c79bd(0x344),'attrs':{'fill':_0x2c79bd(0x349),'d':_0x2c79bd(0x2bb)}},{'tag':'path','attrs':{'fill':_0x2c79bd(0x349),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x2c79bd(0x24c),'clipRule':_0x2c79bd(0x24c)}}]},F=d[_0x2c79bd(0x22e)](function(_0x2d108d,_0x23d00f){const _0x3980fe=_0x2c79bd;return d['createElement'](_,Object['assign']({},_0x2d108d,{'id':_0x3980fe(0x34f),'ref':_0x23d00f,'icon':fe}));});F[_0x2c79bd(0x2c2)]=_0x2c79bd(0x358);const pe={'tag':'svg','attrs':{'xmlns':_0x2c79bd(0x367),'fill':_0x2c79bd(0x2e1),'viewBox':_0x2c79bd(0x272),'width':'1em','height':_0x2c79bd(0x281)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x2c79bd(0x349),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x2c79bd(0x1fd),'strokeLinejoin':_0x2c79bd(0x1fd),'strokeWidth':1.2}}]},{'tag':_0x2c79bd(0x23d),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2c79bd(0x33f)},'children':[{'tag':_0x2c79bd(0x344),'attrs':{'fill':_0x2c79bd(0x291),'d':_0x2c79bd(0x1f9)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Y=d[_0x2c79bd(0x22e)](function(_0x23a10d,_0x2c69cb){const _0x29c1eb=_0x2c79bd;return d[_0x29c1eb(0x216)](_,Object[_0x29c1eb(0x2c8)]({},_0x23a10d,{'id':_0x29c1eb(0x2d3),'ref':_0x2c69cb,'icon':pe}));});Y[_0x2c79bd(0x2c2)]=_0x2c79bd(0x314);const he={'tag':_0x2c79bd(0x2c1),'attrs':{'xmlns':_0x2c79bd(0x367),'fill':'none','viewBox':_0x2c79bd(0x301),'width':_0x2c79bd(0x281),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x2c79bd(0x244)},'children':[{'tag':_0x2c79bd(0x344),'attrs':{'stroke':_0x2c79bd(0x349),'d':_0x2c79bd(0x1f3),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2c79bd(0x346),'attrs':{'id':_0x2c79bd(0x23f)},'children':[{'tag':_0x2c79bd(0x344),'attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':_0x2c79bd(0x343)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},q=d['forwardRef'](function(_0x4e4f09,_0x37dc0a){const _0x102c00=_0x2c79bd;return d[_0x102c00(0x216)](_,Object[_0x102c00(0x2c8)]({},_0x4e4f09,{'id':_0x102c00(0x356),'ref':_0x37dc0a,'icon':he}));});q[_0x2c79bd(0x2c2)]=_0x2c79bd(0x2eb);function V(_0x4b385d){const _0x5390c6=_0x2c79bd;var _0x1f89a6,_0x4338b8;const {mcpCoreConfig:_0x571350,onSave:_0x24d2f8,loading:_0x38c1af=!0x1,config:_0x31cff9,connectionStatus$:_0x2e7b67,connectionError$:_0x30336d,currentApiKey$:_0x1d71fb,currentSessionId$:_0x304df0}=_0x4b385d,_0x4b6d7b=v['useDependency'](u[_0x5390c6(0x21c)]),_0x2ce695=v[_0x5390c6(0x294)](_0x2e7b67,s[_0x5390c6(0x2b8)][_0x5390c6(0x2a5)]),_0x3b01cc=v[_0x5390c6(0x294)](_0x30336d,s[_0x5390c6(0x2d1)][_0x5390c6(0x245)]),_0x367fae=v[_0x5390c6(0x294)](_0x304df0,''),_0x3de4ee=v[_0x5390c6(0x294)](_0x1d71fb,''),[_0x4f776a,_0x41820e]=d[_0x5390c6(0x243)](_0x3de4ee||''),_0x30110b=!0x0,_0x17808b=_0x31cff9[_0x5390c6(0x30d)]&&_0x571350[_0x5390c6(0x254)]&&(_0x571350['mcpServerUrl'][_0x5390c6(0x337)]('univer.plus')||_0x571350['mcpServerUrl']['includes'](_0x5390c6(0x274))),_0xa77b7b=(_0x1f89a6=_0x571350[_0x5390c6(0x254)])==null?void 0x0:_0x1f89a6[_0x5390c6(0x337)](_0x5390c6(0x290)),_0x23dee2=(_0x4338b8=_0x571350[_0x5390c6(0x254)])==null?void 0x0:_0x4338b8[_0x5390c6(0x337)](_0x5390c6(0x274)),_0x6b0c01=_0xa77b7b?'https://console.univer.plus':_0x5390c6(0x27d),_0x421d7a=_0x31cff9[_0x5390c6(0x30d)]&&(_0xa77b7b||_0x23dee2),[_0x1206a4,_0x270861]=d['useState'](!_0x4f776a[_0x5390c6(0x26d)]()),_0x5c679d=(_0x1a747d,_0x24c93e)=>{const _0x1a11c2=_0x5390c6;if(_0x24c93e===s[_0x1a11c2(0x2d1)][_0x1a11c2(0x2b4)])return _0x1a11c2(0x35e);switch(_0x1a747d){case s[_0x1a11c2(0x2b8)][_0x1a11c2(0x217)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case s['MCPConnectionStatus'][_0x1a11c2(0x24e)]:case s['MCPConnectionStatus']['RETRYING']:return _0x1a11c2(0x259);case s[_0x1a11c2(0x2b8)]['FAILED']:return _0x1a11c2(0x35e);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x3e71cf=(_0xe6f050,_0x4f8551)=>{const _0x1f9af1=_0x5390c6;if(_0x4f8551===s[_0x1f9af1(0x2d1)][_0x1f9af1(0x2b4)])return _0x1f9af1(0x224);switch(_0xe6f050){case s[_0x1f9af1(0x2b8)][_0x1f9af1(0x217)]:return _0x1f9af1(0x2b9);case s[_0x1f9af1(0x2b8)]['CONNECTING']:case s[_0x1f9af1(0x2b8)][_0x1f9af1(0x26b)]:return _0x1f9af1(0x35b);case s[_0x1f9af1(0x2b8)]['FAILED']:return _0x1f9af1(0x224);default:return _0x1f9af1(0x20f);}},_0x1d62dd=_0x208bb1=>{const _0x1a0e22=_0x5390c6;switch(_0x208bb1){case s[_0x1a0e22(0x2b8)]['CONNECTED']:return _0x4b6d7b['t'](_0x1a0e22(0x25c));case s[_0x1a0e22(0x2b8)][_0x1a0e22(0x24e)]:return _0x4b6d7b['t'](_0x1a0e22(0x278));case s[_0x1a0e22(0x2b8)]['FAILED']:return _0x4b6d7b['t'](_0x1a0e22(0x225));case s['MCPConnectionStatus'][_0x1a0e22(0x26b)]:return _0x4b6d7b['t'](_0x1a0e22(0x318));default:return _0x4b6d7b['t'](_0x1a0e22(0x32e));}},_0x4a624f=_0x1ee944=>{const _0x13b4da=_0x5390c6;switch(_0x1ee944){case s[_0x13b4da(0x2d1)][_0x13b4da(0x2b4)]:return _0x4b6d7b['t'](_0x13b4da(0x339));case s['MCPConnectionError'][_0x13b4da(0x307)]:return _0x4b6d7b['t'](_0x13b4da(0x204));case s[_0x13b4da(0x2d1)]['NETWORK_ERROR']:return _0x4b6d7b['t'](_0x13b4da(0x2b3));case s['MCPConnectionError'][_0x13b4da(0x31f)]:return _0x4b6d7b['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0xb7b4d=d[_0x5390c6(0x2de)](()=>{const _0x13b449=_0x5390c6,_0x42b90d={..._0x571350,'apiKey':_0x4f776a[_0x13b449(0x26d)](),'enableAuth':_0x30110b};_0x24d2f8(_0x42b90d);},[_0x571350,_0x4f776a,_0x30110b,_0x24d2f8]),_0x52eb75=_0x4f776a['trim']()[_0x5390c6(0x205)]>0x0;return i['jsxs'](_0x5390c6(0x25f),{'className':_0x5390c6(0x320),'children':[i[_0x5390c6(0x219)]('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':i['jsxs'](_0x5390c6(0x25f),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[i[_0x5390c6(0x219)](_0x5390c6(0x25f),{'className':_0x5390c6(0x222),'children':i[_0x5390c6(0x219)](_0x5390c6(0x362),{'className':_0x5390c6(0x231),'children':'⚙'})}),i[_0x5390c6(0x219)](_0x5390c6(0x25f),{'children':i[_0x5390c6(0x219)]('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x4b6d7b['t'](_0x5390c6(0x34e))})})]})}),i[_0x5390c6(0x330)](_0x5390c6(0x25f),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[i['jsx'](_0x5390c6(0x25f),{'className':f['clsx'](_0x5390c6(0x26f),_0x5c679d(_0x2ce695,_0x3b01cc)),'children':i[_0x5390c6(0x330)](_0x5390c6(0x25f),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x5390c6(0x219)]('div',{'className':f[_0x5390c6(0x312)]('univer-size-2\x20univer-rounded-full',_0x3e71cf(_0x2ce695,_0x3b01cc))}),i[_0x5390c6(0x219)](_0x5390c6(0x362),{'className':_0x5390c6(0x203),'children':_0x1d62dd(_0x2ce695)})]})}),_0x3b01cc!==s[_0x5390c6(0x2d1)][_0x5390c6(0x245)]&&(_0x2ce695===s['MCPConnectionStatus'][_0x5390c6(0x2e3)]||_0x3b01cc===s['MCPConnectionError'][_0x5390c6(0x2b4)])&&i[_0x5390c6(0x219)](_0x5390c6(0x25f),{'className':_0x5390c6(0x36e),'children':i[_0x5390c6(0x330)](_0x5390c6(0x25f),{'className':_0x5390c6(0x2e2),'children':[i[_0x5390c6(0x219)]('span',{'className':_0x5390c6(0x2ea),'children':'⚠️'}),i['jsx']('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x4a624f(_0x3b01cc)})]})})]}),i[_0x5390c6(0x219)](_0x5390c6(0x25f),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':i[_0x5390c6(0x330)](_0x5390c6(0x25f),{'className':_0x5390c6(0x36d),'children':[i[_0x5390c6(0x330)]('div',{'className':_0x5390c6(0x211),'children':[i[_0x5390c6(0x330)](_0x5390c6(0x351),{'className':_0x5390c6(0x31a),'children':[i[_0x5390c6(0x219)](_0x5390c6(0x362),{'children':'🔑'}),'\x20',_0x4b6d7b['t'](_0x5390c6(0x2f8)),i[_0x5390c6(0x219)](_0x5390c6(0x362),{'className':_0x5390c6(0x315),'children':'*'}),_0x17808b&&i['jsx']('a',{'className':_0x5390c6(0x1f5),'title':_0x4b6d7b['t'](_0x5390c6(0x357)),'role':_0x5390c6(0x246),'onClick':()=>_0x270861(!0x0),'children':i[_0x5390c6(0x219)](F,{})})]}),i[_0x5390c6(0x219)](f[_0x5390c6(0x263)],{'type':_0x5390c6(0x2aa),'placeholder':_0x4b6d7b['t'](_0x5390c6(0x31c)),'value':_0x4f776a,'disabled':_0x38c1af,'autoComplete':_0x5390c6(0x232),'onChange':_0x41820e}),i[_0x5390c6(0x219)]('p',{'className':_0x5390c6(0x2cb),'children':_0x4b6d7b['t'](_0x5390c6(0x262))})]}),_0x17808b&&_0x1206a4&&i[_0x5390c6(0x330)](_0x5390c6(0x25f),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[i[_0x5390c6(0x219)]('a',{'className':_0x5390c6(0x338),'role':_0x5390c6(0x246),'onClick':()=>_0x270861(!0x1),'children':i['jsx'](B,{'className':_0x5390c6(0x33b)})}),i[_0x5390c6(0x330)](_0x5390c6(0x25f),{'className':_0x5390c6(0x28c),'children':[i['jsx']('div',{'className':_0x5390c6(0x2e9),'children':i[_0x5390c6(0x219)](_0x5390c6(0x362),{'className':_0x5390c6(0x297),'children':'🚀'})}),i[_0x5390c6(0x330)]('div',{'className':_0x5390c6(0x306),'children':[i['jsx']('h4',{'className':_0x5390c6(0x2f7),'children':_0x4b6d7b['t'](_0x5390c6(0x357))}),i[_0x5390c6(0x219)]('p',{'className':_0x5390c6(0x23e),'children':_0x4b6d7b['t']('mcpConfig.apiApplyInfo.description')}),i[_0x5390c6(0x219)](_0x5390c6(0x25f),{'className':_0x5390c6(0x347),'children':_0x421d7a&&i[_0x5390c6(0x330)]('a',{'className':_0x5390c6(0x325),'href':_0x6b0c01,'target':_0x5390c6(0x240),'rel':_0x5390c6(0x30e),'children':[i[_0x5390c6(0x219)](_0x5390c6(0x362),{'children':'🤖'}),_0x4b6d7b['t'](_0x5390c6(0x2d6)),i[_0x5390c6(0x219)](_0x5390c6(0x362),{'className':_0x5390c6(0x2b0),'children':'↗'})]})}),i[_0x5390c6(0x330)](_0x5390c6(0x25f),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x4b6d7b['t'](_0x5390c6(0x236))]})]})]})]}),_0x31cff9['showDeveloperTools']&&i[_0x5390c6(0x330)](_0x5390c6(0x25f),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[i[_0x5390c6(0x330)]('h4',{'className':_0x5390c6(0x237),'children':[i[_0x5390c6(0x219)](_0x5390c6(0x362),{'children':'🔗'}),'\x20',_0x4b6d7b['t']('mcpConfig.connectionInfo')]}),i[_0x5390c6(0x330)]('div',{'className':_0x5390c6(0x269),'children':[i['jsxs'](_0x5390c6(0x25f),{'className':'univer-space-y-3','children':[i[_0x5390c6(0x219)]('p',{'className':_0x5390c6(0x323),'children':_0x4b6d7b['t'](_0x5390c6(0x221))}),i[_0x5390c6(0x330)](_0x5390c6(0x25f),{'className':_0x5390c6(0x211),'children':[i[_0x5390c6(0x219)](_0x5390c6(0x25f),{'className':_0x5390c6(0x241),'children':_0x4b6d7b['t'](_0x5390c6(0x214))}),i[_0x5390c6(0x330)]('div',{'className':_0x5390c6(0x24b),'children':[i['jsxs'](_0x5390c6(0x25f),{'className':_0x5390c6(0x233),'children':[i['jsx'](_0x5390c6(0x362),{'className':_0x5390c6(0x371),'children':'1'}),_0x4b6d7b['t']('mcpConfig.configStep1')]}),i[_0x5390c6(0x330)](_0x5390c6(0x25f),{'className':_0x5390c6(0x233),'children':[i[_0x5390c6(0x219)](_0x5390c6(0x362),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x4b6d7b['t'](_0x5390c6(0x266))]}),i['jsxs'](_0x5390c6(0x25f),{'className':_0x5390c6(0x233),'children':[i[_0x5390c6(0x219)]('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x4b6d7b['t'](_0x5390c6(0x30a))]})]})]})]}),i[_0x5390c6(0x330)](_0x5390c6(0x25f),{'className':_0x5390c6(0x211),'children':[i[_0x5390c6(0x219)](_0x5390c6(0x25f),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x5390c6(0x1fa)}),i[_0x5390c6(0x219)](_0x5390c6(0x25f),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':i[_0x5390c6(0x219)]('pre',{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x5390c6(0x33a)+(_0x367fae||'<SESSION_ID>'),'type':_0x5390c6(0x310),'headers':{'Authorization':_0x5390c6(0x355)+(_0x4f776a||'<API_KEY>')}}}},null,0x2)})})]}),i[_0x5390c6(0x330)](_0x5390c6(0x25f),{'className':_0x5390c6(0x2f2),'children':[i[_0x5390c6(0x219)]('div',{'className':_0x5390c6(0x241),'children':_0x4b6d7b['t']('mcpConfig.configParameters')}),i[_0x5390c6(0x330)](_0x5390c6(0x25f),{'className':_0x5390c6(0x211),'children':[i[_0x5390c6(0x330)](_0x5390c6(0x25f),{'className':_0x5390c6(0x2e6),'children':[i[_0x5390c6(0x219)](_0x5390c6(0x25f),{'className':_0x5390c6(0x21b)}),i[_0x5390c6(0x330)](_0x5390c6(0x25f),{'className':_0x5390c6(0x20a),'children':[i[_0x5390c6(0x219)](_0x5390c6(0x25f),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x5390c6(0x206)}),i[_0x5390c6(0x219)]('div',{'className':_0x5390c6(0x2cb),'children':_0x4b6d7b['t'](_0x5390c6(0x2a0))})]})]}),i['jsxs']('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i[_0x5390c6(0x219)]('div',{'className':_0x5390c6(0x21b)}),i[_0x5390c6(0x330)](_0x5390c6(0x25f),{'className':_0x5390c6(0x20a),'children':[i[_0x5390c6(0x219)]('div',{'className':_0x5390c6(0x34a),'children':_0x5390c6(0x2d9)}),i['jsx'](_0x5390c6(0x25f),{'className':_0x5390c6(0x2cb),'children':_0x4b6d7b['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),i[_0x5390c6(0x219)](f[_0x5390c6(0x303)],{'onClick':_0xb7b4d,'disabled':!_0x52eb75||_0x38c1af,'className':_0x5390c6(0x27b),'children':_0x38c1af?i['jsxs']('span',{'className':_0x5390c6(0x233),'children':[i[_0x5390c6(0x219)]('span',{'children':'⟲'}),_0x4b6d7b['t'](_0x5390c6(0x2dc))]}):i[_0x5390c6(0x330)](_0x5390c6(0x362),{'className':_0x5390c6(0x233),'children':[i['jsx'](H,{}),_0x4b6d7b['t'](_0x5390c6(0x342))]})}),i[_0x5390c6(0x219)](_0x5390c6(0x25f),{'className':_0x5390c6(0x2a8),'children':i[_0x5390c6(0x330)]('div',{'className':_0x5390c6(0x1fe),'children':[i[_0x5390c6(0x219)](_0x5390c6(0x362),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),i[_0x5390c6(0x330)](_0x5390c6(0x25f),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[i[_0x5390c6(0x219)](_0x5390c6(0x25f),{'className':'univer-font-medium','children':_0x5390c6(0x33d)}),i[_0x5390c6(0x330)](_0x5390c6(0x25f),{'children':['•',_0x4b6d7b['t'](_0x5390c6(0x271))]}),i[_0x5390c6(0x330)](_0x5390c6(0x25f),{'children':['•',_0x4b6d7b['t']('mcpConfig.note2')]})]})]})})]})})]});}const P=_0x2c79bd(0x257),L={'showDeveloperTools':!0x1,'showStatus':!0x0};function _0x4c22(_0x34b9a0,_0x11b13d){_0x34b9a0=_0x34b9a0-0x1f1;const _0x304740=_0x3047();let _0x4c2241=_0x304740[_0x34b9a0];return _0x4c2241;}var me=Object['getOwnPropertyDescriptor'],xe=(_0x2d2cd8,_0x3ba109,_0x19dcc3,_0x5c9b08)=>{const _0xa972a=_0x2c79bd;for(var _0x3ce198=_0x5c9b08>0x1?void 0x0:_0x5c9b08?me(_0x3ba109,_0x19dcc3):_0x3ba109,_0x57d4cc=_0x2d2cd8[_0xa972a(0x205)]-0x1,_0x1f00a2;_0x57d4cc>=0x0;_0x57d4cc--)(_0x1f00a2=_0x2d2cd8[_0x57d4cc])&&(_0x3ce198=_0x1f00a2(_0x3ce198)||_0x3ce198);return _0x3ce198;},g=(_0xd2e488,_0xbadafd)=>(_0x73cd17,_0x5d0f85)=>_0xbadafd(_0x73cd17,_0x5d0f85,_0xd2e488);const O=_0x2c79bd(0x316),D=_0x2c79bd(0x215);exports['MCPConfigUIController']=class extends u['Disposable']{constructor(_0xa65abb,_0x4b8807,_0x554977,_0xa3c1ae,_0x1d1f31,_0x14ec7e,_0x119baf,_0x1432b3,_0x32f167,_0x4ce4f7){const _0x74a5ee=_0x2c79bd;super(),I(this,_0x74a5ee(0x304),new M['BehaviorSubject'](!0x1)),I(this,_0x74a5ee(0x2c4),new M[(_0x74a5ee(0x34d))]({})),I(this,'_config$',new M[(_0x74a5ee(0x34d))]({})),I(this,_0x74a5ee(0x348),new M['BehaviorSubject']('')),I(this,_0x74a5ee(0x313),async _0x50d23a=>{const _0x3bafe5=_0x74a5ee;var _0x5d5e9c,_0x1199cc;this['_loading$'][_0x3bafe5(0x2ed)](!0x0);try{const _0x4e7861=await this[_0x3bafe5(0x293)](_0x50d23a);if(!_0x4e7861[_0x3bafe5(0x32c)]){this[_0x3bafe5(0x2b2)][_0x3bafe5(0x28a)]({'type':f[_0x3bafe5(0x28b)][_0x3bafe5(0x22b)],'content':_0x4e7861['errorMessage']||this[_0x3bafe5(0x282)]['t'](_0x3bafe5(0x200))});return;}_0x50d23a[_0x3bafe5(0x2d5)]?await this[_0x3bafe5(0x258)]['setItem'](O,_0x50d23a[_0x3bafe5(0x2d5)][_0x3bafe5(0x26d)]()):await this[_0x3bafe5(0x258)]['removeItem'](O),this[_0x3bafe5(0x348)]['next'](((_0x5d5e9c=_0x50d23a[_0x3bafe5(0x2d5)])==null?void 0x0:_0x5d5e9c[_0x3bafe5(0x26d)]())||''),this[_0x3bafe5(0x2c9)][_0x3bafe5(0x331)]({'Authorization':_0x3bafe5(0x355)+((_0x1199cc=_0x50d23a[_0x3bafe5(0x2d5)])==null?void 0x0:_0x1199cc['trim']())}),this[_0x3bafe5(0x2b2)]['show']({'type':f[_0x3bafe5(0x28b)][_0x3bafe5(0x34b)],'content':this[_0x3bafe5(0x282)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x7c69d1=_0x3bafe5;this[_0x7c69d1(0x279)][_0x7c69d1(0x210)](D);},0x320);}catch(_0x41d4b3){this['_logService'][_0x3bafe5(0x20b)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x41d4b3),this[_0x3bafe5(0x2b2)][_0x3bafe5(0x28a)]({'type':f[_0x3bafe5(0x28b)][_0x3bafe5(0x22b)],'content':this[_0x3bafe5(0x282)]['t'](_0x3bafe5(0x326))});}finally{this[_0x3bafe5(0x304)]['next'](!0x1);}}),(this['_injector']=_0xa65abb,this[_0x74a5ee(0x276)]=_0x4b8807,this['_configService']=_0x554977,this['_localStorageService']=_0xa3c1ae,this['_dialogService']=_0x1d1f31,this[_0x74a5ee(0x2b2)]=_0x14ec7e,this[_0x74a5ee(0x36f)]=_0x119baf,this[_0x74a5ee(0x282)]=_0x1432b3,this[_0x74a5ee(0x2d4)]=_0x32f167,this[_0x74a5ee(0x2c9)]=_0x4ce4f7,this[_0x74a5ee(0x284)](),this['_loadStoredApiKey'](),this[_0x74a5ee(0x242)]());}[_0x2c79bd(0x265)](){const _0x5239ac=_0x2c79bd,_0x558f1c=this['_configService'][_0x5239ac(0x2fe)](P);_0x558f1c!=null&&_0x558f1c['showDeveloperTools']&&this['_dialogService'][_0x5239ac(0x218)]({'id':D,'title':{'title':this[_0x5239ac(0x282)]['t']('mcpConfig.title')},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{this['_dialogService']['close'](D);}});}[_0x2c79bd(0x2c6)](){const _0x251a50=_0x2c79bd;return this['_mcpCoreConfig$'][_0x251a50(0x365)];}[_0x2c79bd(0x242)](){const _0x4fccb0=_0x2c79bd;this['disposeWithMe'](this[_0x4fccb0(0x36f)]['register'](_0x4fccb0(0x2d7),this[_0x4fccb0(0x2a2)]()));}[_0x2c79bd(0x2a2)](){const _0x24dff3=_0x2c79bd;return v['connectInjector'](()=>{const _0x789dfb=_0x4c22;var _0x51dd32,_0x177a20,_0x182c9e;return i[_0x789dfb(0x219)](V,{'config':this['_config$'][_0x789dfb(0x365)],'mcpCoreConfig':this[_0x789dfb(0x2c4)][_0x789dfb(0x365)],'currentApiKey$':this[_0x789dfb(0x348)],'onSave':this[_0x789dfb(0x313)],'loading':this[_0x789dfb(0x304)][_0x789dfb(0x365)],'connectionStatus$':(_0x51dd32=this[_0x789dfb(0x2c9)])==null?void 0x0:_0x51dd32['connectionStatus$'],'connectionError$':(_0x177a20=this[_0x789dfb(0x2c9)])==null?void 0x0:_0x177a20[_0x789dfb(0x36b)],'currentSessionId$':(_0x182c9e=this['_mcpConnectionController'])==null?void 0x0:_0x182c9e['sessionId$']});},this[_0x24dff3(0x311)]);}[_0x2c79bd(0x284)](){const _0xcd8535=_0x2c79bd;this[_0xcd8535(0x2df)](this[_0xcd8535(0x336)][_0xcd8535(0x227)](s[_0xcd8535(0x285)])[_0xcd8535(0x286)](_0xbde7d1=>{const _0x2723d2=_0xcd8535;this['_mcpCoreConfig$'][_0x2723d2(0x2ed)](_0xbde7d1||{});}));const _0x59f037=this[_0xcd8535(0x336)][_0xcd8535(0x2fe)](s['MCP_PLUGIN_CONFIG_KEY']);this[_0xcd8535(0x2c4)][_0xcd8535(0x2ed)](_0x59f037||{}),this[_0xcd8535(0x2df)](this['_configService'][_0xcd8535(0x227)](P)['subscribe'](_0x3b1228=>{const _0x43d028=_0xcd8535;this['_config$'][_0x43d028(0x2ed)](_0x3b1228||{});}));const _0x328615=this[_0xcd8535(0x336)][_0xcd8535(0x2fe)](P);this['_config$'][_0xcd8535(0x2ed)](_0x328615||{});}async['_loadStoredApiKey'](){const _0x488aa6=_0x2c79bd,_0x346558=this[_0x488aa6(0x336)][_0x488aa6(0x2fe)](P);if(!(_0x346558!=null&&_0x346558[_0x488aa6(0x30d)]))return;const _0x1ceb68=await this['_localStorageService'][_0x488aa6(0x2db)](O);_0x1ceb68&&(this[_0x488aa6(0x2c9)]['__setCustomHeaders']({'Authorization':_0x488aa6(0x355)+_0x1ceb68}),this[_0x488aa6(0x348)][_0x488aa6(0x2ed)](_0x1ceb68));}async[_0x2c79bd(0x293)](_0x2b57dc){const _0xeb0a7a=_0x2c79bd;if(!_0x2b57dc['apiKey']||_0x2b57dc[_0xeb0a7a(0x2d5)]['trim']()[_0xeb0a7a(0x205)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0xeb0a7a(0x282)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x2b57dc[_0xeb0a7a(0x2d5)][_0xeb0a7a(0x26d)]()[_0xeb0a7a(0x205)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x46a11c=await this[_0xeb0a7a(0x311)][_0xeb0a7a(0x29c)](s[_0xeb0a7a(0x226)])[_0xeb0a7a(0x24d)](_0x2b57dc[_0xeb0a7a(0x2d5)]['trim']());return _0x46a11c[_0xeb0a7a(0x32c)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x46a11c[_0xeb0a7a(0x20b)]||this[_0xeb0a7a(0x282)]['t'](_0xeb0a7a(0x2f1))};}catch(_0x5f2ffd){return console[_0xeb0a7a(0x255)](_0xeb0a7a(0x1f7),_0x5f2ffd),{'isValid':!0x0};}}},exports[_0x2c79bd(0x35c)]=xe([g(0x0,u[_0x2c79bd(0x2be)](u[_0x2c79bd(0x333)])),g(0x1,v[_0x2c79bd(0x201)]),g(0x2,u[_0x2c79bd(0x32b)]),g(0x3,u[_0x2c79bd(0x352)]),g(0x4,v[_0x2c79bd(0x20d)]),g(0x5,v[_0x2c79bd(0x207)]),g(0x6,u['Inject'](v[_0x2c79bd(0x308)])),g(0x7,u['Inject'](u['LocaleService'])),g(0x8,u[_0x2c79bd(0x296)]),g(0x9,u['Inject'](s[_0x2c79bd(0x226)]))],exports[_0x2c79bd(0x35c)]);const b={'id':'mcp-ui.command.openConfigPanel','type':u['CommandType'][_0x2c79bd(0x2c3)],'handler':async(_0x4133a3,_0x4b551e)=>(_0x4133a3['get'](exports[_0x2c79bd(0x35c)])[_0x2c79bd(0x265)](),!0x0)};function Z(_0x15039a,_0x570c1d){const _0x3dde14=_0x2c79bd;switch(_0x15039a){case s[_0x3dde14(0x2b8)][_0x3dde14(0x2a5)]:return'mcpStatus.disconnected';case s[_0x3dde14(0x2b8)]['CONNECTING']:return'mcpStatus.connecting';case s[_0x3dde14(0x2b8)][_0x3dde14(0x217)]:return'mcpStatus.connected';case s['MCPConnectionStatus']['FAILED']:switch(_0x570c1d){case s[_0x3dde14(0x2d1)][_0x3dde14(0x2b4)]:return _0x3dde14(0x328);case s[_0x3dde14(0x2d1)][_0x3dde14(0x307)]:return _0x3dde14(0x2bd);case s[_0x3dde14(0x2d1)][_0x3dde14(0x345)]:return _0x3dde14(0x223);case s[_0x3dde14(0x2d1)][_0x3dde14(0x31f)]:return'mcpStatus.maxRetriesExceeded';default:return _0x3dde14(0x32d);}case s[_0x3dde14(0x2b8)][_0x3dde14(0x26b)]:return _0x3dde14(0x2c0);default:return'mcpStatus.unknown';}}function Se(_0x3f87f4,_0x35de30,_0x55a9ef,_0x3bf6be=!0x0){const _0x5e8a3c=_0x2c79bd,_0x23e90b=Z(_0x3f87f4,_0x35de30),_0x430944=_0x55a9ef['t'](_0x23e90b);return _0x3bf6be?_0x3f87f4===s[_0x5e8a3c(0x2b8)][_0x5e8a3c(0x2a5)]&&_0x35de30===s['MCPConnectionError']['UNAUTHORIZED']?_0x430944+_0x5e8a3c(0x28d)+_0x55a9ef['t']('mcpStatus.clickToConfigure'):_0x3f87f4===s[_0x5e8a3c(0x2b8)][_0x5e8a3c(0x217)]?''+_0x430944:_0x3f87f4===s[_0x5e8a3c(0x2b8)]['DISCONNECTED']||_0x3f87f4===s[_0x5e8a3c(0x2b8)][_0x5e8a3c(0x2e3)]?_0x430944+_0x5e8a3c(0x28d)+_0x55a9ef['t'](_0x5e8a3c(0x2ca)):_0x430944:_0x430944;}function Pe(_0xb09c2e){const _0x311536=_0x2c79bd;switch(_0xb09c2e){case s['MCPConnectionStatus']['CONNECTED']:return _0x311536(0x234);case s['MCPConnectionStatus'][_0x311536(0x24e)]:case s[_0x311536(0x2b8)][_0x311536(0x26b)]:return'univer-text-yellow-500';case s[_0x311536(0x2b8)][_0x311536(0x2e3)]:case s[_0x311536(0x2b8)][_0x311536(0x2a5)]:return'univer-text-red-500';default:return _0x311536(0x228);}}function W(_0x2beebb){const _0x1b4262=_0x2c79bd,{status$:_0x3974c3,error$:_0xa3ec03,onConfigure:_0x4592b4,showClickable:_0x2ded2f=!0x0}=_0x2beebb,_0x145bc6=v[_0x1b4262(0x294)](_0x3974c3,s['MCPConnectionStatus'][_0x1b4262(0x2a5)]),_0x18690c=v[_0x1b4262(0x294)](_0xa3ec03,s['MCPConnectionError']['NONE']),_0x235fc5=v[_0x1b4262(0x202)](u['LocaleService']),_0x2f0ab2=_0x145bc6===s[_0x1b4262(0x2b8)][_0x1b4262(0x217)];_0x145bc6===s[_0x1b4262(0x2b8)][_0x1b4262(0x24e)]||s['MCPConnectionStatus'][_0x1b4262(0x26b)];const _0x1be300=_0x235fc5['t'](Z(_0x145bc6,_0x18690c)),_0x16aaee=Se(_0x145bc6,_0x18690c,_0x235fc5,_0x2ded2f),_0x158b08=Pe(_0x145bc6),_0x2bbd53=_0x2f0ab2?i[_0x1b4262(0x219)](q,{}):i[_0x1b4262(0x219)](Y,{}),_0x3e3d71=d[_0x1b4262(0x2de)](()=>{_0x2ded2f&&_0x4592b4&&_0x4592b4();},[_0x2ded2f,_0x4592b4]);function _0x1dd18d(){const _0x32e7fd=_0x1b4262;return i[_0x32e7fd(0x330)](_0x32e7fd(0x25f),{'className':f[_0x32e7fd(0x312)](_0x32e7fd(0x289),_0x2ded2f&&_0x4592b4&&'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),'role':_0x32e7fd(0x246),'onClick':_0x2ded2f&&_0x4592b4?_0x3e3d71:void 0x0,'children':[i[_0x32e7fd(0x219)](_0x32e7fd(0x25f),{'className':f[_0x32e7fd(0x312)](_0x32e7fd(0x302),_0x158b08),'children':_0x2bbd53}),i[_0x32e7fd(0x219)]('div',{'className':_0x32e7fd(0x2bf),'children':_0x1be300})]});}return i['jsx'](f[_0x1b4262(0x2b6)],{'title':_0x16aaee,'placement':'bottom','children':_0x1dd18d()});}function _0x3047(){const _0x5759cb=['CONNECTING','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20密钥长度至少需要\x2010\x20位','Connected','toStringTag','mask','mcpServerUrl','warn','tag','mcp-ui.config','_localStorageService','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','connectInjector','UniverIcon','mcpConfig.connectionStatus.connected','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','check-mark-icon','div','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','会话\x20ID\x20已被占用,请稍后再试','mcpConfig.apiKeyHint','Input','MCPConnectionUIController','showConfigPanel','mcpConfig.configStep2','registerCommand','_connectionController','univer-space-y-4','attrs','RETRYING','MCP:\x20网络错误','trim','Univer\x20AI\x20Console','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','ISocketService','mcpConfig.note1','0\x200\x2016\x2016','网络连接错误,请检查您的网络连接','univer.ai','Enable\x20authentication\x20for\x20secure\x20connections','_uiPartsService','MCP\x20状态未知','mcpConfig.connectionStatus.connecting','_dialogService','连接失败','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','MCP_UI_PLUGIN','https://console.univer.ai','什么是\x20API\x20密钥?','MCP:\x20Unauthorized','Enable\x20Authentication','1em','_localeService','Univer\x20AI\x20控制台','_initConfigSync','MCP_PLUGIN_CONFIG_KEY','subscribe','MCP\x20Connected','symbol','univer-flex\x20univer-items-center','show','MessageType','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','\x20-\x20','MCP\x20客户端配置','univerjs-icon\x20univerjs-icon-','univer.plus','white','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','_validateConfig','useObservable','MenuItemType','ILogService','univer-text-blue-600','UniverMCPUIPlugin','MCP:\x20Max\x20Retries\x20Exceeded','1230195TChosc','Enter\x20your\x20API\x20key','get','_initAutoConnect','substring','_config','mcpConfig.sessionIdDescription','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','_createConfigPanelComponent','391440lWtTTz','Module','DISCONNECTED','xlink:href','212964TFMFtV','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','close-icon','text','colorChannel1','enUS','MCP:\x20会话\x20ID\x20已被占用','fill','RibbonStartGroup','univer-text-gray-400','onStarting','_messageService','mcpConfig.connectionError.networkError','UNAUTHORIZED','28MjCErb','Tooltip','push','MCPConnectionStatus','univer-bg-green-500','配置更改将立即生效','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','保存中...','mcpStatus.sessionOccupied','Inject','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpStatus.retrying','svg','displayName','COMMAND','_mcpCoreConfig$','Disconnected','getCurrentConfig','MCP\x20Client\x20Configuration','assign','_mcpConnectionController','mcpStatus.clickToConnect','univer-text-xs\x20univer-text-gray-500','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20密钥','Click\x20to\x20connect\x20MCP','MCP\x20已断开','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCPConnectionError','_menuManagerService','off-line-icon','_logService','apiKey','mcpConfig.apiApplyInfo.univerAiLabel','MCPConfigPanel','forEach','Authorization:','MCP\x20Retrying...','getItem','mcpConfig.saving','MCP\x20Unknown\x20Status','useCallback','disposeWithMe','CheckMarkIcon','none','univer-flex\x20univer-items-start\x20univer-gap-2','FAILED','API\x20密钥无效,请检查密钥是否正确','最大重试次数','univer-flex\x20univer-items-start\x20univer-gap-3','带有\x20Bearer\x20前缀的\x20API\x20密钥。','API\x20Key','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-shrink-0\x20univer-text-red-500','OnLineIcon','Connection\x20Failed','next','配置保存成功','Configuration\x20saved\x20successfully','random','mcpConfig.validation.invalidApiKey','univer-space-y-3','启用身份验证以获得安全连接','ICommandService','entries','setConfig','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.apiKey','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','string','MCP\x20Connecting...','WebSocketService','map','getConfig','API\x20密钥不能为空','Disposable','0\x200\x2017\x2016','univer-mr-2\x20univer-flex\x20univer-text-xl','Button','_loading$','BUTTON','univer-flex-1','SESSION_ID_OCCUPIED','ComponentManager','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpConfig.configStep3','配置无效','add','showDeveloperTools','noopener\x20noreferrer','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','http','_injector','clsx','_handleConfigSave','OffLineIcon','univer-text-red-500','mcp.apiKey','IMenuManagerService','mcpConfig.connectionStatus.retrying','defineProperty','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','_initStatusComponent','mcpConfig.apiKeyPlaceholder','children','Saving...','MAX_RETRIES_EXCEEDED','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','use','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-text-xs\x20univer-text-gray-600','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','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','mcpConfig.configError','几秒钟内获取您的\x20API\x20密钥','mcpStatus.unauthorized','配置\x20MCP\x20使用\x20AI\x20操作电子表格','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','IConfigService','isValid','mcpStatus.failed','mcpConfig.connectionStatus.disconnected','点击连接\x20MCP','jsxs','__setCustomHeaders','OTHERS','Injector','OpenMCPConfigPanelCommand','getOwnPropertyDescriptor','_configService','includes','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','mcpConfig.connectionError.unauthorized','https://mcp.univer.ai/mcp/?univer_session_id=','univer-size-4','merge','Configuration\x20Notes:','保存配置','off-line-icon_clip0_910_343','Plugin','1291712zStuIp','mcpConfig.save','translate(.97)','path','NETWORK_ERROR','clipPath','univer-flex\x20univer-flex-wrap\x20univer-gap-2','_apiKey$','currentColor','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','Success','_commandService','BehaviorSubject','mcpConfig.description','help-icon','点击配置\x20MCP','label','ILocalStorageService','zhCN','Get\x20your\x20API\x20key\x20in\x20seconds','Bearer\x20','on-line-icon','mcpConfig.apiApplyInfo.title','HelpIcon','Connecting...','registerComponent','univer-bg-blue-500','MCPConfigUIController','超出最大重试次数,请稍后再试','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','idSuffix','current','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','span','DependentOn','465388FHIdLq','value','MCP\x20连接中...','http://www.w3.org/2000/svg','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','已连接','启用身份验证','connectionError$','has','univer-space-y-5','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_componentManager','_initializeCommands','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','useRef','_handleConfigure','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','API\x20key\x20with\x20Bearer\x20prefix.','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','MCP:\x20Session\x20ID\x20Occupied','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','What\x20is\x20API\x20Key?','M0\x200H16V16H0z','MCP\x20Configuration','连接中...','MCP\x20Disconnected','round','univer-flex\x20univer-gap-3','MenuIcon','mcpConfig.validation.invalidConfig','IUIPartsService','useDependency','univer-text-sm\x20univer-font-medium','mcpConfig.connectionError.sessionOccupied','length','univer_session_id:','IMessageService','MCP\x20重连中...','defIds','univer-min-w-0\x20univer-flex-1','error','BuiltInUIPart','IDialogService','未连接','univer-bg-gray-500','close','univer-space-y-2','MCPUIMenuController','showStatus','mcpConfig.configStepTitle','mcp-config-dialog','createElement','CONNECTED','open','jsx','复制以下\x20JSON\x20配置','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','LocaleService','Failed\x20to\x20save\x20configuration','_initializeMenus','MCPStatusDisplay','请输入您的\x20API\x20密钥','mcpConfig.configInstructions','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpStatus.networkError','univer-bg-red-500','mcpConfig.connectionStatus.failed','MCPConnectionController','subscribeConfigValue$','univer-text-gray-500','API\x20key\x20is\x20required','mergeMenu','Error','url(#$1','mcpConfig.title','forwardRef','您的\x20API\x20密钥将在此浏览器中本地存储','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','univer-text-white','off','univer-flex\x20univer-items-center\x20univer-gap-2','univer-text-green-500','3568232uZqsjS','mcpConfig.apiApplyInfo.getStarted','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','replace','enableAutoConnect','HEADER_MENU','Invalid\x20configuration','1537908bLZwUV','defs','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','on-line-icon_clip0_910_349','_blank','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','_registerComponent','useState','url(#on-line-icon_clip0_910_349)','NONE','button','UniverMCPPlugin','MCP\x20连接失败','将配置添加到您的\x20MCP\x20客户端设置文件中','权限验证失败,请检查您的\x20API\x20密钥','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','evenodd','validateApiKey'];_0x3047=function(){return _0x5759cb;};return _0x3047();}var Ie=Object[_0x2c79bd(0x335)],_e=(_0x335e08,_0x1f3aa9,_0x9a0f92,_0x2139f6)=>{const _0x432ca2=_0x2c79bd;for(var _0x260e76=_0x2139f6>0x1?void 0x0:_0x2139f6?Ie(_0x1f3aa9,_0x9a0f92):_0x1f3aa9,_0x1aadfa=_0x335e08[_0x432ca2(0x205)]-0x1,_0x1cf0a9;_0x1aadfa>=0x0;_0x1aadfa--)(_0x1cf0a9=_0x335e08[_0x1aadfa])&&(_0x260e76=_0x1cf0a9(_0x260e76)||_0x260e76);return _0x260e76;},N=(_0x51adae,_0x5a55fe)=>(_0xc0aae6,_0x87e8e3)=>_0x5a55fe(_0xc0aae6,_0x87e8e3,_0x51adae);exports['MCPConnectionUIController']=class extends u[_0x2c79bd(0x300)]{constructor(_0x4747b5,_0x804aa2,_0x5dd596,_0x4ea213){const _0x21209f=_0x2c79bd;super(),this[_0x21209f(0x311)]=_0x4747b5,this[_0x21209f(0x268)]=_0x804aa2,this[_0x21209f(0x276)]=_0x5dd596,this[_0x21209f(0x336)]=_0x4ea213,this[_0x21209f(0x29d)](),this[_0x21209f(0x31b)]();}[_0x2c79bd(0x29d)](){const _0x1dcc78=_0x2c79bd,_0xbfe5c8=this[_0x1dcc78(0x336)]['getConfig'](P);_0xbfe5c8!=null&&_0xbfe5c8[_0x1dcc78(0x30d)]&&(this[_0x1dcc78(0x268)][_0x1dcc78(0x239)]=!0x1);}['_initStatusComponent'](){const _0x35ae32=_0x2c79bd,_0xc1e927=this[_0x35ae32(0x336)]['getConfig'](P);(_0xc1e927==null?void 0x0:_0xc1e927[_0x35ae32(0x213)])!==!0x1&&this[_0x35ae32(0x2df)](this[_0x35ae32(0x276)][_0x35ae32(0x35a)](v[_0x35ae32(0x20c)][_0x35ae32(0x23a)],()=>{const _0x2756c1=_0x35ae32;var _0x3b19e4;return v[_0x2756c1(0x25a)](ye({'status$':this[_0x2756c1(0x268)]['connectionStatus$'],'error$':this[_0x2756c1(0x268)][_0x2756c1(0x36b)],'onConfigure':()=>this[_0x2756c1(0x1f2)](),'showClickable':(_0x3b19e4=_0xc1e927==null?void 0x0:_0xc1e927[_0x2756c1(0x30d)])!=null?_0x3b19e4:!0x1}),this[_0x2756c1(0x311)]);}));}[_0x2c79bd(0x1f2)](){const _0x1c638a=_0x2c79bd;this[_0x1c638a(0x311)][_0x1c638a(0x29c)](exports['MCPConfigUIController'])[_0x1c638a(0x265)]();}},exports[_0x2c79bd(0x264)]=_e([N(0x0,u[_0x2c79bd(0x2be)](u['Injector'])),N(0x1,u['Inject'](s[_0x2c79bd(0x226)])),N(0x2,v[_0x2c79bd(0x201)]),N(0x3,u[_0x2c79bd(0x32b)])],exports[_0x2c79bd(0x264)]);function ye(_0x199f46){const {status$:_0x32f95c,error$:_0x5e2e23,onConfigure:_0x367e4d,showClickable:_0x45299b}=_0x199f46;return function(){const _0x3741f7=_0x4c22;return i[_0x3741f7(0x219)](W,{'status$':_0x32f95c,'error$':_0x5e2e23,'onConfigure':_0x367e4d,'showClickable':_0x45299b});};}function Me(_0x1bac83){const _0x17924a=_0x2c79bd;return{'id':b['id'],'type':v[_0x17924a(0x295)][_0x17924a(0x305)],'icon':_0x17924a(0x1ff),'title':_0x17924a(0x22d),'tooltip':_0x17924a(0x22d)};}const Ne={[v[_0x2c79bd(0x2af)][_0x2c79bd(0x332)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x2c79bd(0x335)],je=(_0x48e1f5,_0x1275e3,_0x5d1199,_0x39c09f)=>{for(var _0x4b6358=_0x39c09f>0x1?void 0x0:_0x39c09f?be(_0x1275e3,_0x5d1199):_0x1275e3,_0x28750b=_0x48e1f5['length']-0x1,_0x5481b0;_0x28750b>=0x0;_0x28750b--)(_0x5481b0=_0x48e1f5[_0x28750b])&&(_0x4b6358=_0x5481b0(_0x4b6358)||_0x4b6358);return _0x4b6358;},z=(_0xcce253,_0x98ea40)=>(_0x2bf180,_0x3e7547)=>_0x98ea40(_0x2bf180,_0x3e7547,_0xcce253);exports[_0x2c79bd(0x212)]=class extends u['Disposable']{constructor(_0x5e945e,_0x5509b4){const _0x5c6619=_0x2c79bd;super(),this[_0x5c6619(0x34c)]=_0x5e945e,this['_menuManagerService']=_0x5509b4,this[_0x5c6619(0x370)](),this[_0x5c6619(0x21e)]();}[_0x2c79bd(0x370)](){const _0x16120f=_0x2c79bd;[b][_0x16120f(0x2d8)](_0x6fba70=>{const _0x2b8d32=_0x16120f;this['disposeWithMe'](this[_0x2b8d32(0x34c)][_0x2b8d32(0x267)](_0x6fba70));});}[_0x2c79bd(0x21e)](){const _0x9854aa=_0x2c79bd;this[_0x9854aa(0x2d2)][_0x9854aa(0x22a)](Ne);}},exports[_0x2c79bd(0x212)]=je([z(0x0,u[_0x2c79bd(0x2f4)]),z(0x1,v[_0x2c79bd(0x317)])],exports[_0x2c79bd(0x212)]);const Ee={'mcpStatus':{'disconnected':_0x2c79bd(0x1fc),'connecting':_0x2c79bd(0x2fb),'connected':_0x2c79bd(0x287),'failed':'MCP\x20Connection\x20Failed','retrying':_0x2c79bd(0x2da),'unknown':_0x2c79bd(0x2dd),'unauthorized':_0x2c79bd(0x27f),'sessionOccupied':_0x2c79bd(0x1f6),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x2c79bd(0x299),'clickToConnect':_0x2c79bd(0x2ce),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x2c79bd(0x1fa),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x2c79bd(0x2e8),'apiKeyPlaceholder':_0x2c79bd(0x29b),'apiKeyHint':_0x2c79bd(0x2d0),'enableAuth':_0x2c79bd(0x280),'enableAuthHint':_0x2c79bd(0x275),'connectionInfo':_0x2c79bd(0x2c7),'mcpClientConfig':_0x2c79bd(0x2c7),'configInstructions':_0x2c79bd(0x32a),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x2c79bd(0x361),'configStep3':_0x2c79bd(0x230),'sessionId':'Session\x20ID','sessionIdDescription':_0x2c79bd(0x24f),'authorizationDescription':_0x2c79bd(0x1f4),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x2c79bd(0x31e),'note1':_0x2c79bd(0x292),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x2c79bd(0x2ef),'configError':_0x2c79bd(0x21d),'apiApplyInfo':{'title':_0x2c79bd(0x1f8),'description':_0x2c79bd(0x30f),'univerAiLabel':_0x2c79bd(0x26e),'getStarted':_0x2c79bd(0x354)},'validation':{'apiKeyRequired':_0x2c79bd(0x229),'apiKeyTooShort':_0x2c79bd(0x322),'invalidConfig':_0x2c79bd(0x23b),'invalidApiKey':_0x2c79bd(0x2f9)},'connectionStatus':{'disconnected':_0x2c79bd(0x2c5),'connecting':_0x2c79bd(0x359),'connected':_0x2c79bd(0x251),'failed':_0x2c79bd(0x2ec),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x2c79bd(0x2cc),'maxRetriesExceeded':_0x2c79bd(0x309)}}},we={'mcpStatus':{'disconnected':_0x2c79bd(0x2cf),'connecting':_0x2c79bd(0x366),'connected':'MCP\x20已连接','failed':_0x2c79bd(0x248),'retrying':_0x2c79bd(0x208),'unknown':_0x2c79bd(0x277),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x2c79bd(0x2ad),'networkError':_0x2c79bd(0x26c),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x2c79bd(0x32f),'clickToConfigure':_0x2c79bd(0x350)},'mcpConfig':{'title':'MCP\x20配置','description':_0x2c79bd(0x329),'apiKey':_0x2c79bd(0x2cd),'apiKeyPlaceholder':_0x2c79bd(0x220),'apiKeyHint':_0x2c79bd(0x22f),'enableAuth':_0x2c79bd(0x36a),'enableAuthHint':_0x2c79bd(0x2f3),'connectionInfo':_0x2c79bd(0x28e),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':'配置步骤:','configStep1':_0x2c79bd(0x21a),'configStep2':_0x2c79bd(0x249),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':'会话ID','sessionIdDescription':_0x2c79bd(0x260),'authorizationDescription':_0x2c79bd(0x2e7),'configParameters':'配置参数:','maxRetries':_0x2c79bd(0x2e5),'save':_0x2c79bd(0x33e),'saving':_0x2c79bd(0x2bc),'note1':_0x2c79bd(0x2ba),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x2c79bd(0x2ee),'configError':'配置保存失败','apiApplyInfo':{'title':_0x2c79bd(0x27e),'description':_0x2c79bd(0x368),'univerAiLabel':_0x2c79bd(0x283),'getStarted':_0x2c79bd(0x327)},'validation':{'apiKeyRequired':_0x2c79bd(0x2ff),'apiKeyTooShort':_0x2c79bd(0x250),'invalidConfig':_0x2c79bd(0x30b),'invalidApiKey':_0x2c79bd(0x2e4)},'connectionStatus':{'disconnected':_0x2c79bd(0x20e),'connecting':_0x2c79bd(0x1fb),'connected':_0x2c79bd(0x369),'failed':_0x2c79bd(0x27a),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x2c79bd(0x24a),'sessionOccupied':_0x2c79bd(0x261),'networkError':_0x2c79bd(0x273),'maxRetriesExceeded':_0x2c79bd(0x35d)}}};var Ae=Object[_0x2c79bd(0x319)],Oe=Object[_0x2c79bd(0x335)],De=(_0x412664,_0x39a7d7,_0x5c5885)=>_0x39a7d7 in _0x412664?Ae(_0x412664,_0x39a7d7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c5885}):_0x412664[_0x39a7d7]=_0x5c5885,Ue=(_0x4de974,_0xa5f08c,_0x5c19a1,_0x55b9db)=>{const _0x546d3a=_0x2c79bd;for(var _0x2b9e8d=_0x55b9db>0x1?void 0x0:_0x55b9db?Oe(_0xa5f08c,_0x5c19a1):_0xa5f08c,_0x18549c=_0x4de974[_0x546d3a(0x205)]-0x1,_0xcf553d;_0x18549c>=0x0;_0x18549c--)(_0xcf553d=_0x4de974[_0x18549c])&&(_0x2b9e8d=_0xcf553d(_0x2b9e8d)||_0x2b9e8d);return _0x2b9e8d;},y=(_0x412b43,_0x144668)=>(_0x2a3c32,_0x37aa99)=>_0x144668(_0x2a3c32,_0x37aa99,_0x412b43),$e=(_0x3144a3,_0x3b643b,_0x4ca97b)=>De(_0x3144a3,_0x3b643b+'',_0x4ca97b);exports[_0x2c79bd(0x298)]=class extends u[_0x2c79bd(0x340)]{constructor(_0x96251=L,_0x2565d1,_0x5b40a4,_0x2bee84,_0x4a53b6,_0xb1b6ef){const _0x5e53d8=_0x2c79bd;super(),this[_0x5e53d8(0x29f)]=_0x96251,this[_0x5e53d8(0x311)]=_0x2565d1,this[_0x5e53d8(0x336)]=_0x5b40a4,this[_0x5e53d8(0x276)]=_0x2bee84,this[_0x5e53d8(0x258)]=_0x4a53b6,this['_localeService']=_0xb1b6ef;const {..._0x27882b}=u[_0x5e53d8(0x33c)]({},L,this[_0x5e53d8(0x29f)]);this[_0x5e53d8(0x336)][_0x5e53d8(0x2f6)](P,_0x27882b);}async[_0x2c79bd(0x2b1)](){const _0x471741=_0x2c79bd,_0x3ad1e4=[[exports[_0x471741(0x264)]],[exports[_0x471741(0x35c)]],[exports['MCPUIMenuController']]];this['_injector'][_0x471741(0x36c)](A[_0x471741(0x270)])||_0x3ad1e4[_0x471741(0x2b7)]([A[_0x471741(0x270)],{'useClass':A[_0x471741(0x2fc)]}]),_0x3ad1e4[_0x471741(0x2d8)](_0x237d39=>this[_0x471741(0x311)][_0x471741(0x30c)](_0x237d39)),this[_0x471741(0x311)][_0x471741(0x29c)](exports[_0x471741(0x264)]),this[_0x471741(0x311)][_0x471741(0x29c)](exports[_0x471741(0x35c)]),this[_0x471741(0x311)][_0x471741(0x29c)](exports[_0x471741(0x212)]);}},$e(exports[_0x2c79bd(0x298)],'pluginName',_0x2c79bd(0x27c)),exports[_0x2c79bd(0x298)]=Ue([u[_0x2c79bd(0x363)](s[_0x2c79bd(0x247)]),y(0x1,u['Inject'](u['Injector'])),y(0x2,u[_0x2c79bd(0x32b)]),y(0x3,v[_0x2c79bd(0x201)]),y(0x4,u[_0x2c79bd(0x352)]),y(0x5,u[_0x2c79bd(0x2be)](u[_0x2c79bd(0x21c)]))],exports['UniverMCPUIPlugin']),exports[_0x2c79bd(0x2d7)]=V,exports[_0x2c79bd(0x21f)]=W,exports[_0x2c79bd(0x334)]=b,exports[_0x2c79bd(0x2ac)]=Ee,exports[_0x2c79bd(0x353)]=we;
|
|
1
|
+
'use strict';function _0x167a(_0x3c2209,_0xe6e87d){_0x3c2209=_0x3c2209-0x181;const _0x3782d4=_0x3782();let _0x167a93=_0x3782d4[_0x3c2209];return _0x167a93;}const _0x298dc7=_0x167a;(function(_0x45f58b,_0x454b91){const _0x36291d=_0x167a,_0x3ff1f4=_0x45f58b();while(!![]){try{const _0x3fb507=-parseInt(_0x36291d(0x1cb))/0x1+parseInt(_0x36291d(0x1e6))/0x2*(-parseInt(_0x36291d(0x1ac))/0x3)+parseInt(_0x36291d(0x1d1))/0x4+-parseInt(_0x36291d(0x212))/0x5+-parseInt(_0x36291d(0x2d2))/0x6+-parseInt(_0x36291d(0x216))/0x7*(-parseInt(_0x36291d(0x2d1))/0x8)+-parseInt(_0x36291d(0x2af))/0x9*(-parseInt(_0x36291d(0x2c1))/0xa);if(_0x3fb507===_0x454b91)break;else _0x3ff1f4['push'](_0x3ff1f4['shift']());}catch(_0x49833a){_0x3ff1f4['push'](_0x3ff1f4['shift']());}}}(_0x3782,0x1a5a3));var ae=Object[_0x298dc7(0x2a3)],le=(_0x3eda2d,_0x538528,_0x4161f0)=>_0x538528 in _0x3eda2d?ae(_0x3eda2d,_0x538528,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4161f0}):_0x3eda2d[_0x538528]=_0x4161f0,I=(_0x115bc2,_0x35acfc,_0x1071c9)=>le(_0x115bc2,typeof _0x35acfc!=_0x298dc7(0x23a)?_0x35acfc+'':_0x35acfc,_0x1071c9);Object[_0x298dc7(0x2a3)](exports,Symbol['toStringTag'],{'value':_0x298dc7(0x29e)});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:_0x473c65,..._0x16ac7b}){const _0x30473f=_0x298dc7,{icon:_0x4db402,id:_0x2e49ef,className:_0x37737c,extend:_0x10a5c8,..._0x48f311}=_0x16ac7b,_0xf81f64=(_0x30473f(0x22b)+_0x2e49ef+'\x20'+(_0x37737c||''))[_0x30473f(0x202)](),_0x4a52fa=d[_0x30473f(0x1e0)]('_'+de());return G(_0x4db402,''+_0x2e49ef,{'defIds':_0x4db402[_0x30473f(0x21e)],'idSuffix':_0x4a52fa['current']},{'ref':_0x473c65,'className':_0xf81f64,..._0x48f311},_0x10a5c8);}function G(_0x1f9d31,_0x66081d,_0x46e79d,_0x275985,_0x42d527){const _0x44b14f=_0x298dc7;return d[_0x44b14f(0x1f0)](_0x1f9d31[_0x44b14f(0x306)],{'key':_0x66081d,...ue(_0x1f9d31,_0x46e79d,_0x42d527),..._0x275985},(ve(_0x1f9d31,_0x46e79d)['children']||[])[_0x44b14f(0x239)]((_0x48ea80,_0x5d42f8)=>G(_0x48ea80,_0x66081d+'-'+_0x1f9d31[_0x44b14f(0x306)]+'-'+_0x5d42f8,_0x46e79d,void 0x0,_0x42d527)));}function ue(_0x40e625,_0xcf192d,_0x40eaa1){const _0x1ab18c=_0x298dc7,_0x1abbbe={..._0x40e625[_0x1ab18c(0x185)]};_0x40eaa1!=null&&_0x40eaa1[_0x1ab18c(0x1b1)]&&_0x1abbbe[_0x1ab18c(0x225)]==='colorChannel1'&&(_0x1abbbe['fill']=_0x40eaa1[_0x1ab18c(0x1b1)]),_0x40e625[_0x1ab18c(0x306)]===_0x1ab18c(0x2c2)&&_0x1abbbe['id']&&(_0x1abbbe['id']=_0x1abbbe['id']+_0xcf192d['idSuffix']),Object[_0x1ab18c(0x1cd)](_0x1abbbe)[_0x1ab18c(0x1de)](([_0x2b779e,_0xa56556])=>{const _0x24fb04=_0x1ab18c;_0x2b779e===_0x24fb04(0x2c2)&&typeof _0xa56556==_0x24fb04(0x2d4)&&(_0x1abbbe[_0x2b779e]=_0xa56556['replace'](/url\(#(.*)\)/,'url(#$1'+_0xcf192d[_0x24fb04(0x2f8)]+')'));});const {defIds:_0x1828a5}=_0xcf192d;return!_0x1828a5||_0x1828a5['length']===0x0||(_0x40e625[_0x1ab18c(0x306)]===_0x1ab18c(0x2cd)&&_0x1abbbe[_0x1ab18c(0x249)]&&(_0x1abbbe[_0x1ab18c(0x249)]=_0x1abbbe[_0x1ab18c(0x249)]+_0xcf192d[_0x1ab18c(0x2f8)]),Object[_0x1ab18c(0x1cd)](_0x1abbbe)[_0x1ab18c(0x1de)](([_0x198862,_0x20a9ee])=>{const _0x45115d=_0x1ab18c;typeof _0x20a9ee==_0x45115d(0x2d4)&&(_0x1abbbe[_0x198862]=_0x20a9ee[_0x45115d(0x228)](/url\(#(.*)\)/,_0x45115d(0x29a)+_0xcf192d['idSuffix']+')'));})),_0x1abbbe;}function ve(_0x5ef003,_0x20e5f9){const _0x31efb8=_0x298dc7;var _0x50efa7;const {defIds:_0x3bb91f}=_0x20e5f9;return!_0x3bb91f||_0x3bb91f[_0x31efb8(0x2c5)]===0x0?_0x5ef003:_0x5ef003[_0x31efb8(0x306)]==='defs'&&((_0x50efa7=_0x5ef003[_0x31efb8(0x295)])!=null&&_0x50efa7['length'])?{..._0x5ef003,'children':_0x5ef003[_0x31efb8(0x295)]['map'](_0x18799e=>typeof _0x18799e[_0x31efb8(0x185)]['id']==_0x31efb8(0x2d4)&&_0x3bb91f&&_0x3bb91f[_0x31efb8(0x19e)](_0x18799e[_0x31efb8(0x185)]['id'])?{..._0x18799e,'attrs':{..._0x18799e[_0x31efb8(0x185)],'id':_0x18799e[_0x31efb8(0x185)]['id']+_0x20e5f9['idSuffix']}}:_0x18799e)}:_0x5ef003;}function de(){const _0x3b47ed=_0x298dc7;return Math['random']()[_0x3b47ed(0x29c)](0x24)[_0x3b47ed(0x19d)](0x2,0x8);}_[_0x298dc7(0x2dd)]=_0x298dc7(0x2ed);const Ce={'tag':_0x298dc7(0x22f),'attrs':{'xmlns':_0x298dc7(0x190),'fill':_0x298dc7(0x1b2),'viewBox':_0x298dc7(0x29b),'width':'1em','height':_0x298dc7(0x211)},'children':[{'tag':_0x298dc7(0x25f),'attrs':{'fill':_0x298dc7(0x22a),'d':_0x298dc7(0x2f2),'fillRule':_0x298dc7(0x282),'clipRule':_0x298dc7(0x282)}}]},H=d[_0x298dc7(0x2bc)](function(_0x56501c,_0x4b85ae){const _0x17f06d=_0x298dc7;return d['createElement'](_,Object['assign']({},_0x56501c,{'id':_0x17f06d(0x1d3),'ref':_0x4b85ae,'icon':Ce}));});H[_0x298dc7(0x2dd)]=_0x298dc7(0x214);const ge={'tag':'svg','attrs':{'xmlns':_0x298dc7(0x190),'fill':'none','viewBox':_0x298dc7(0x29b),'width':_0x298dc7(0x211),'height':_0x298dc7(0x211)},'children':[{'tag':_0x298dc7(0x25f),'attrs':{'fill':_0x298dc7(0x22a),'d':_0x298dc7(0x1e4)}}]},B=d[_0x298dc7(0x2bc)](function(_0x1bf932,_0xd24c12){const _0x4378cf=_0x298dc7;return d[_0x4378cf(0x1f0)](_,Object[_0x4378cf(0x2ec)]({},_0x1bf932,{'id':'close-icon','ref':_0xd24c12,'icon':ge}));});B['displayName']=_0x298dc7(0x2ab);const fe={'tag':_0x298dc7(0x22f),'attrs':{'xmlns':_0x298dc7(0x190),'fill':'none','viewBox':_0x298dc7(0x29b),'width':_0x298dc7(0x211),'height':_0x298dc7(0x211)},'children':[{'tag':'path','attrs':{'fill':_0x298dc7(0x22a),'d':_0x298dc7(0x277)}},{'tag':_0x298dc7(0x25f),'attrs':{'fill':_0x298dc7(0x22a),'d':_0x298dc7(0x210)}},{'tag':_0x298dc7(0x25f),'attrs':{'fill':_0x298dc7(0x22a),'d':_0x298dc7(0x2ff),'fillRule':_0x298dc7(0x282),'clipRule':_0x298dc7(0x282)}}]},F=d[_0x298dc7(0x2bc)](function(_0x47e387,_0x5a81b6){const _0x267ae9=_0x298dc7;return d[_0x267ae9(0x1f0)](_,Object[_0x267ae9(0x2ec)]({},_0x47e387,{'id':_0x267ae9(0x291),'ref':_0x5a81b6,'icon':fe}));});F[_0x298dc7(0x2dd)]=_0x298dc7(0x1dc);const pe={'tag':_0x298dc7(0x22f),'attrs':{'xmlns':_0x298dc7(0x190),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x298dc7(0x211),'height':_0x298dc7(0x211)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x298dc7(0x25f),'attrs':{'stroke':_0x298dc7(0x22a),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x298dc7(0x2e1),'strokeLinejoin':_0x298dc7(0x2e1),'strokeWidth':1.2}}]},{'tag':_0x298dc7(0x2c3),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x298dc7(0x26f)},'children':[{'tag':'path','attrs':{'fill':_0x298dc7(0x1e3),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x298dc7(0x26f)]},Y=d['forwardRef'](function(_0x3029ad,_0x4f2e7a){const _0x80372b=_0x298dc7;return d[_0x80372b(0x1f0)](_,Object[_0x80372b(0x2ec)]({},_0x3029ad,{'id':_0x80372b(0x1f7),'ref':_0x4f2e7a,'icon':pe}));});Y['displayName']=_0x298dc7(0x2cc);const he={'tag':_0x298dc7(0x22f),'attrs':{'xmlns':_0x298dc7(0x190),'fill':_0x298dc7(0x1b2),'viewBox':_0x298dc7(0x1e1),'width':_0x298dc7(0x211),'height':_0x298dc7(0x211)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x298dc7(0x25f),'attrs':{'stroke':_0x298dc7(0x22a),'d':_0x298dc7(0x241),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x298dc7(0x2c3),'attrs':{},'children':[{'tag':_0x298dc7(0x18c),'attrs':{'id':_0x298dc7(0x227)},'children':[{'tag':_0x298dc7(0x25f),'attrs':{'fill':_0x298dc7(0x1e3),'d':_0x298dc7(0x2a1),'transform':'translate(.97)'}}]}]}],'defIds':[_0x298dc7(0x227)]},q=d[_0x298dc7(0x2bc)](function(_0x1ccf10,_0x1899a0){const _0x5d4a6a=_0x298dc7;return d[_0x5d4a6a(0x1f0)](_,Object[_0x5d4a6a(0x2ec)]({},_0x1ccf10,{'id':_0x5d4a6a(0x1a2),'ref':_0x1899a0,'icon':he}));});q[_0x298dc7(0x2dd)]=_0x298dc7(0x285);function V(_0x4fad08){const _0x59a62e=_0x298dc7;var _0x589b56,_0x5553d0;const {mcpCoreConfig:_0x4bfcca,onSave:_0x5e38fb,loading:_0xd37673=!0x1,config:_0x137a79,connectionStatus$:_0x187e24,connectionError$:_0x2716b1,currentApiKey$:_0x18a1fa,currentSessionId$:_0x5a528e}=_0x4fad08,_0x1cb584=v['useDependency'](u[_0x59a62e(0x27f)]),_0x387704=v['useObservable'](_0x187e24,s[_0x59a62e(0x2f6)][_0x59a62e(0x20d)]),_0x7361f1=v[_0x59a62e(0x236)](_0x2716b1,s[_0x59a62e(0x219)][_0x59a62e(0x247)]),_0x1a0cb3=v[_0x59a62e(0x236)](_0x5a528e,''),_0x1197f7=v[_0x59a62e(0x236)](_0x18a1fa,''),[_0x27f62,_0x1024e3]=d[_0x59a62e(0x21f)](_0x1197f7||''),_0x529855=!0x0,_0x4f2c1d=_0x137a79[_0x59a62e(0x2dc)]&&_0x4bfcca[_0x59a62e(0x2b9)]&&(_0x4bfcca['mcpServerUrl'][_0x59a62e(0x19e)](_0x59a62e(0x2df))||_0x4bfcca[_0x59a62e(0x2b9)][_0x59a62e(0x19e)](_0x59a62e(0x26e))),_0x1e1b93=(_0x589b56=_0x4bfcca[_0x59a62e(0x2b9)])==null?void 0x0:_0x589b56['includes'](_0x59a62e(0x2df)),_0x3c46f6=(_0x5553d0=_0x4bfcca['mcpServerUrl'])==null?void 0x0:_0x5553d0[_0x59a62e(0x19e)](_0x59a62e(0x26e)),_0x5373ae=_0x1e1b93?_0x59a62e(0x2f5):_0x59a62e(0x208),_0x22c93b=_0x137a79[_0x59a62e(0x2dc)]&&(_0x1e1b93||_0x3c46f6),[_0x4bde24,_0x5b8f33]=d[_0x59a62e(0x21f)](!_0x27f62['trim']()),_0x2e29b7=(_0x588c98,_0xd687c7)=>{const _0x4e2d5f=_0x59a62e;if(_0xd687c7===s[_0x4e2d5f(0x219)]['UNAUTHORIZED'])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x588c98){case s[_0x4e2d5f(0x2f6)][_0x4e2d5f(0x28a)]:return _0x4e2d5f(0x204);case s[_0x4e2d5f(0x2f6)][_0x4e2d5f(0x296)]:case s[_0x4e2d5f(0x2f6)][_0x4e2d5f(0x259)]:return _0x4e2d5f(0x232);case s[_0x4e2d5f(0x2f6)][_0x4e2d5f(0x193)]:return _0x4e2d5f(0x293);default:return _0x4e2d5f(0x1c5);}},_0x3edd95=(_0xbf9d81,_0x2b1d04)=>{const _0x5817b9=_0x59a62e;if(_0x2b1d04===s[_0x5817b9(0x219)][_0x5817b9(0x1ba)])return'univer-bg-red-500';switch(_0xbf9d81){case s[_0x5817b9(0x2f6)]['CONNECTED']:return'univer-bg-green-500';case s[_0x5817b9(0x2f6)][_0x5817b9(0x296)]:case s[_0x5817b9(0x2f6)][_0x5817b9(0x259)]:return _0x5817b9(0x21d);case s[_0x5817b9(0x2f6)][_0x5817b9(0x193)]:return _0x5817b9(0x2fc);default:return _0x5817b9(0x183);}},_0x38e9bb=_0x5ebb18=>{const _0x1255ad=_0x59a62e;switch(_0x5ebb18){case s['MCPConnectionStatus']['CONNECTED']:return _0x1cb584['t']('mcpConfig.connectionStatus.connected');case s[_0x1255ad(0x2f6)][_0x1255ad(0x296)]:return _0x1cb584['t'](_0x1255ad(0x2e9));case s['MCPConnectionStatus'][_0x1255ad(0x193)]:return _0x1cb584['t'](_0x1255ad(0x223));case s[_0x1255ad(0x2f6)][_0x1255ad(0x259)]:return _0x1cb584['t']('mcpConfig.connectionStatus.retrying');default:return _0x1cb584['t'](_0x1255ad(0x221));}},_0x173c62=_0x58a1de=>{const _0x592607=_0x59a62e;switch(_0x58a1de){case s[_0x592607(0x219)][_0x592607(0x1ba)]:return _0x1cb584['t'](_0x592607(0x25a));case s[_0x592607(0x219)][_0x592607(0x2f9)]:return _0x1cb584['t'](_0x592607(0x1ee));case s[_0x592607(0x219)]['NETWORK_ERROR']:return _0x1cb584['t'](_0x592607(0x2de));case s[_0x592607(0x219)][_0x592607(0x2e5)]:return _0x1cb584['t'](_0x592607(0x2a0));default:return'';}},_0x8e522d=d[_0x59a62e(0x301)](()=>{const _0x29bdf4=_0x59a62e,_0x181ad6={..._0x4bfcca,'apiKey':_0x27f62[_0x29bdf4(0x202)](),'enableAuth':_0x529855};_0x5e38fb(_0x181ad6);},[_0x4bfcca,_0x27f62,_0x529855,_0x5e38fb]),_0x24d4f8=_0x27f62[_0x59a62e(0x202)]()[_0x59a62e(0x2c5)]>0x0;return i[_0x59a62e(0x20a)](_0x59a62e(0x26a),{'className':_0x59a62e(0x2da),'children':[i[_0x59a62e(0x263)](_0x59a62e(0x26a),{'className':_0x59a62e(0x297),'children':i[_0x59a62e(0x20a)](_0x59a62e(0x26a),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[i[_0x59a62e(0x263)](_0x59a62e(0x26a),{'className':_0x59a62e(0x28c),'children':i[_0x59a62e(0x263)](_0x59a62e(0x203),{'className':_0x59a62e(0x1fb),'children':'⚙'})}),i['jsx']('div',{'children':i[_0x59a62e(0x263)]('p',{'className':_0x59a62e(0x299),'children':_0x1cb584['t'](_0x59a62e(0x1bb))})})]})}),i['jsxs'](_0x59a62e(0x26a),{'className':_0x59a62e(0x2ad),'children':[i[_0x59a62e(0x263)](_0x59a62e(0x26a),{'className':f[_0x59a62e(0x2eb)]('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x2e29b7(_0x387704,_0x7361f1)),'children':i[_0x59a62e(0x20a)](_0x59a62e(0x26a),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i['jsx'](_0x59a62e(0x26a),{'className':f[_0x59a62e(0x2eb)](_0x59a62e(0x29d),_0x3edd95(_0x387704,_0x7361f1))}),i[_0x59a62e(0x263)](_0x59a62e(0x203),{'className':_0x59a62e(0x1dd),'children':_0x38e9bb(_0x387704)})]})}),_0x7361f1!==s[_0x59a62e(0x219)][_0x59a62e(0x247)]&&(_0x387704===s[_0x59a62e(0x2f6)][_0x59a62e(0x193)]||_0x7361f1===s[_0x59a62e(0x219)][_0x59a62e(0x1ba)])&&i[_0x59a62e(0x263)](_0x59a62e(0x26a),{'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[_0x59a62e(0x20a)](_0x59a62e(0x26a),{'className':_0x59a62e(0x230),'children':[i[_0x59a62e(0x263)](_0x59a62e(0x203),{'className':_0x59a62e(0x27a),'children':'⚠️'}),i['jsx']('p',{'className':_0x59a62e(0x243),'children':_0x173c62(_0x7361f1)})]})})]}),i['jsx'](_0x59a62e(0x26a),{'className':_0x59a62e(0x2b0),'children':i['jsxs']('div',{'className':_0x59a62e(0x1f3),'children':[i[_0x59a62e(0x20a)](_0x59a62e(0x26a),{'className':_0x59a62e(0x1c2),'children':[i[_0x59a62e(0x20a)](_0x59a62e(0x255),{'className':_0x59a62e(0x1bc),'children':[i[_0x59a62e(0x263)](_0x59a62e(0x203),{'children':'🔑'}),'\x20',_0x1cb584['t']('mcpConfig.apiKey'),i['jsx']('span',{'className':_0x59a62e(0x276),'children':'*'}),_0x4f2c1d&&i['jsx']('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x1cb584['t'](_0x59a62e(0x2d9)),'role':_0x59a62e(0x2b4),'onClick':()=>_0x5b8f33(!0x0),'children':i[_0x59a62e(0x263)](F,{})})]}),i[_0x59a62e(0x263)](f[_0x59a62e(0x25c)],{'type':_0x59a62e(0x278),'placeholder':_0x1cb584['t'](_0x59a62e(0x1f6)),'value':_0x27f62,'disabled':_0xd37673,'autoComplete':_0x59a62e(0x1b7),'onChange':_0x1024e3}),i[_0x59a62e(0x263)]('p',{'className':_0x59a62e(0x198),'children':_0x1cb584['t'](_0x59a62e(0x25d))})]}),_0x4f2c1d&&_0x4bde24&&i[_0x59a62e(0x20a)](_0x59a62e(0x26a),{'className':_0x59a62e(0x1df),'children':[i[_0x59a62e(0x263)]('a',{'className':_0x59a62e(0x286),'role':_0x59a62e(0x2b4),'onClick':()=>_0x5b8f33(!0x1),'children':i[_0x59a62e(0x263)](B,{'className':_0x59a62e(0x268)})}),i[_0x59a62e(0x20a)](_0x59a62e(0x26a),{'className':_0x59a62e(0x1c0),'children':[i[_0x59a62e(0x263)](_0x59a62e(0x26a),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':i['jsx'](_0x59a62e(0x203),{'className':_0x59a62e(0x1a5),'children':'🚀'})}),i[_0x59a62e(0x20a)](_0x59a62e(0x26a),{'className':_0x59a62e(0x1d9),'children':[i['jsx']('h4',{'className':_0x59a62e(0x229),'children':_0x1cb584['t'](_0x59a62e(0x2d9))}),i[_0x59a62e(0x263)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x1cb584['t'](_0x59a62e(0x19f))}),i['jsx']('div',{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x22c93b&&i['jsxs']('a',{'className':_0x59a62e(0x1a6),'href':_0x5373ae,'target':_0x59a62e(0x1cf),'rel':'noopener\x20noreferrer','children':[i[_0x59a62e(0x263)](_0x59a62e(0x203),{'children':'🤖'}),_0x1cb584['t'](_0x59a62e(0x260)),i[_0x59a62e(0x263)](_0x59a62e(0x203),{'className':_0x59a62e(0x2f7),'children':'↗'})]})}),i[_0x59a62e(0x20a)]('div',{'className':_0x59a62e(0x2e2),'children':['✨','\x20',_0x1cb584['t'](_0x59a62e(0x18d))]})]})]})]}),_0x137a79[_0x59a62e(0x2dc)]&&i['jsxs']('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[i[_0x59a62e(0x20a)]('h4',{'className':_0x59a62e(0x234),'children':[i[_0x59a62e(0x263)](_0x59a62e(0x203),{'children':'🔗'}),'\x20',_0x1cb584['t']('mcpConfig.connectionInfo')]}),i[_0x59a62e(0x20a)](_0x59a62e(0x26a),{'className':_0x59a62e(0x261),'children':[i[_0x59a62e(0x20a)](_0x59a62e(0x26a),{'className':_0x59a62e(0x274),'children':[i['jsx']('p',{'className':_0x59a62e(0x22d),'children':_0x1cb584['t'](_0x59a62e(0x2b5))}),i[_0x59a62e(0x20a)](_0x59a62e(0x26a),{'className':_0x59a62e(0x1c2),'children':[i[_0x59a62e(0x263)](_0x59a62e(0x26a),{'className':_0x59a62e(0x19b),'children':_0x1cb584['t'](_0x59a62e(0x1a8))}),i[_0x59a62e(0x20a)]('div',{'className':_0x59a62e(0x2c9),'children':[i[_0x59a62e(0x20a)](_0x59a62e(0x26a),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x59a62e(0x263)](_0x59a62e(0x203),{'className':_0x59a62e(0x2a4),'children':'1'}),_0x1cb584['t'](_0x59a62e(0x23f))]}),i[_0x59a62e(0x20a)](_0x59a62e(0x26a),{'className':_0x59a62e(0x2fa),'children':[i[_0x59a62e(0x263)]('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x1cb584['t'](_0x59a62e(0x23b))]}),i[_0x59a62e(0x20a)](_0x59a62e(0x26a),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x59a62e(0x263)](_0x59a62e(0x203),{'className':_0x59a62e(0x2a4),'children':'3'}),_0x1cb584['t'](_0x59a62e(0x266))]})]})]})]}),i['jsxs']('div',{'className':_0x59a62e(0x1c2),'children':[i['jsx'](_0x59a62e(0x26a),{'className':_0x59a62e(0x19b),'children':'MCP\x20Configuration'}),i[_0x59a62e(0x263)](_0x59a62e(0x26a),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':i[_0x59a62e(0x263)](_0x59a62e(0x26b),{'className':_0x59a62e(0x24c),'children':JSON[_0x59a62e(0x26c)]({'mcpServers':{'univer':{'url':_0x59a62e(0x2c0)+(_0x1a0cb3||_0x59a62e(0x1a1)),'type':_0x59a62e(0x2d5),'headers':{'Authorization':_0x59a62e(0x2f0)+(_0x27f62||_0x59a62e(0x1b0))}}}},null,0x2)})})]}),i[_0x59a62e(0x20a)]('div',{'className':_0x59a62e(0x274),'children':[i[_0x59a62e(0x263)](_0x59a62e(0x26a),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x1cb584['t'](_0x59a62e(0x18a))}),i[_0x59a62e(0x20a)](_0x59a62e(0x26a),{'className':'univer-space-y-2','children':[i[_0x59a62e(0x20a)](_0x59a62e(0x26a),{'className':_0x59a62e(0x303),'children':[i[_0x59a62e(0x263)](_0x59a62e(0x26a),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i[_0x59a62e(0x20a)](_0x59a62e(0x26a),{'className':_0x59a62e(0x235),'children':[i[_0x59a62e(0x263)](_0x59a62e(0x26a),{'className':_0x59a62e(0x1d5),'children':'univer_session_id:'}),i[_0x59a62e(0x263)](_0x59a62e(0x26a),{'className':_0x59a62e(0x198),'children':_0x1cb584['t'](_0x59a62e(0x298))})]})]}),i[_0x59a62e(0x20a)](_0x59a62e(0x26a),{'className':_0x59a62e(0x303),'children':[i['jsx'](_0x59a62e(0x26a),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i[_0x59a62e(0x20a)](_0x59a62e(0x26a),{'className':_0x59a62e(0x235),'children':[i[_0x59a62e(0x263)](_0x59a62e(0x26a),{'className':_0x59a62e(0x1d5),'children':_0x59a62e(0x22e)}),i[_0x59a62e(0x263)](_0x59a62e(0x26a),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x1cb584['t'](_0x59a62e(0x28e))})]})]})]})]})]})]}),i[_0x59a62e(0x263)](f[_0x59a62e(0x2a2)],{'onClick':_0x8e522d,'disabled':!_0x24d4f8||_0xd37673,'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':_0xd37673?i[_0x59a62e(0x20a)](_0x59a62e(0x203),{'className':_0x59a62e(0x2fa),'children':[i['jsx'](_0x59a62e(0x203),{'children':'⟲'}),_0x1cb584['t'](_0x59a62e(0x2bd))]}):i[_0x59a62e(0x20a)]('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x59a62e(0x263)](H,{}),_0x1cb584['t'](_0x59a62e(0x1ed))]})}),i[_0x59a62e(0x263)](_0x59a62e(0x26a),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':i['jsxs']('div',{'className':'univer-flex\x20univer-gap-3','children':[i[_0x59a62e(0x263)](_0x59a62e(0x203),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),i['jsxs']('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[i[_0x59a62e(0x263)](_0x59a62e(0x26a),{'className':'univer-font-medium','children':_0x59a62e(0x1c7)}),i['jsxs'](_0x59a62e(0x26a),{'children':['•',_0x1cb584['t'](_0x59a62e(0x2fb))]}),i[_0x59a62e(0x20a)](_0x59a62e(0x26a),{'children':['•',_0x1cb584['t'](_0x59a62e(0x23d))]})]})]})})]})})]});}const P=_0x298dc7(0x2e3),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object['getOwnPropertyDescriptor'],xe=(_0x14c6ef,_0x5688ae,_0x40225a,_0x3763da)=>{const _0x371af7=_0x298dc7;for(var _0x359db8=_0x3763da>0x1?void 0x0:_0x3763da?me(_0x5688ae,_0x40225a):_0x5688ae,_0x4ad253=_0x14c6ef[_0x371af7(0x2c5)]-0x1,_0x157e78;_0x4ad253>=0x0;_0x4ad253--)(_0x157e78=_0x14c6ef[_0x4ad253])&&(_0x359db8=_0x157e78(_0x359db8)||_0x359db8);return _0x359db8;},g=(_0x433982,_0x218cdb)=>(_0x4ae0a6,_0x4ddf51)=>_0x218cdb(_0x4ae0a6,_0x4ddf51,_0x433982);const O='mcp.apiKey',D=_0x298dc7(0x1d4);exports[_0x298dc7(0x272)]=class extends u[_0x298dc7(0x1d2)]{constructor(_0x1fc12b,_0x34297e,_0x2c36ff,_0x17da6d,_0x52d868,_0x472d1a,_0x48a8f2,_0xf07fb2,_0x1cb3c9,_0x270597){const _0x36b887=_0x298dc7;super(),I(this,_0x36b887(0x2e4),new M[(_0x36b887(0x2ce))](!0x1)),I(this,_0x36b887(0x199),new M[(_0x36b887(0x2ce))]({})),I(this,_0x36b887(0x24b),new M[(_0x36b887(0x2ce))]({})),I(this,_0x36b887(0x1db),new M[(_0x36b887(0x2ce))]('')),I(this,_0x36b887(0x2d0),async _0x4e531e=>{const _0x779269=_0x36b887;var _0x83bfaa,_0x33128d;this[_0x779269(0x2e4)][_0x779269(0x1da)](!0x0);try{const _0x58db60=await this['_validateConfig'](_0x4e531e);if(!_0x58db60[_0x779269(0x2ae)]){this[_0x779269(0x1fc)][_0x779269(0x1a3)]({'type':f['MessageType']['Error'],'content':_0x58db60[_0x779269(0x1ce)]||this[_0x779269(0x1ff)]['t'](_0x779269(0x1f1))});return;}_0x4e531e[_0x779269(0x1e8)]?await this[_0x779269(0x1aa)][_0x779269(0x21a)](O,_0x4e531e[_0x779269(0x1e8)][_0x779269(0x202)]()):await this['_localStorageService'][_0x779269(0x304)](O),this[_0x779269(0x1db)][_0x779269(0x1da)](((_0x83bfaa=_0x4e531e[_0x779269(0x1e8)])==null?void 0x0:_0x83bfaa[_0x779269(0x202)]())||''),this[_0x779269(0x1a4)]['__setCustomHeaders']({'Authorization':'Bearer\x20'+((_0x33128d=_0x4e531e[_0x779269(0x1e8)])==null?void 0x0:_0x33128d[_0x779269(0x202)]())}),this[_0x779269(0x1fc)][_0x779269(0x1a3)]({'type':f['MessageType'][_0x779269(0x209)],'content':this[_0x779269(0x1ff)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x30e7a5=_0x779269;this['_dialogService'][_0x30e7a5(0x240)](D);},0x320);}catch(_0x32201a){this['_logService'][_0x779269(0x24a)](_0x779269(0x257),_0x32201a),this[_0x779269(0x1fc)]['show']({'type':f[_0x779269(0x21c)][_0x779269(0x24e)],'content':this[_0x779269(0x1ff)]['t'](_0x779269(0x281))});}finally{this[_0x779269(0x2e4)][_0x779269(0x1da)](!0x1);}}),(this[_0x36b887(0x2f4)]=_0x1fc12b,this['_uiPartsService']=_0x34297e,this[_0x36b887(0x1b8)]=_0x2c36ff,this[_0x36b887(0x1aa)]=_0x17da6d,this[_0x36b887(0x2f3)]=_0x52d868,this[_0x36b887(0x1fc)]=_0x472d1a,this[_0x36b887(0x1cc)]=_0x48a8f2,this[_0x36b887(0x1ff)]=_0xf07fb2,this[_0x36b887(0x220)]=_0x1cb3c9,this['_mcpConnectionController']=_0x270597,this[_0x36b887(0x254)](),this[_0x36b887(0x188)](),this['_registerComponent']());}[_0x298dc7(0x226)](){const _0x42d5ee=_0x298dc7,_0x17ff7c=this[_0x42d5ee(0x1b8)][_0x42d5ee(0x22c)](P);_0x17ff7c!=null&&_0x17ff7c[_0x42d5ee(0x2dc)]&&this[_0x42d5ee(0x2f3)][_0x42d5ee(0x2a9)]({'id':D,'title':{'title':this[_0x42d5ee(0x1ff)]['t'](_0x42d5ee(0x197))},'children':{'label':_0x42d5ee(0x1b4)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x3bba91=_0x42d5ee;this[_0x3bba91(0x2f3)]['close'](D);}});}[_0x298dc7(0x195)](){const _0x496421=_0x298dc7;return this['_mcpCoreConfig$'][_0x496421(0x1c9)];}['_registerComponent'](){const _0x4855a1=_0x298dc7;this['disposeWithMe'](this[_0x4855a1(0x1cc)][_0x4855a1(0x2cf)](_0x4855a1(0x1b4),this[_0x4855a1(0x231)]()));}[_0x298dc7(0x231)](){return v['connectInjector'](()=>{const _0x1ed2a8=_0x167a;var _0x1faaa6,_0x5f4813,_0x28b8a3;return i[_0x1ed2a8(0x263)](V,{'config':this[_0x1ed2a8(0x24b)][_0x1ed2a8(0x1c9)],'mcpCoreConfig':this[_0x1ed2a8(0x199)]['value'],'currentApiKey$':this['_apiKey$'],'onSave':this['_handleConfigSave'],'loading':this[_0x1ed2a8(0x2e4)][_0x1ed2a8(0x1c9)],'connectionStatus$':(_0x1faaa6=this['_mcpConnectionController'])==null?void 0x0:_0x1faaa6['connectionStatus$'],'connectionError$':(_0x5f4813=this[_0x1ed2a8(0x1a4)])==null?void 0x0:_0x5f4813[_0x1ed2a8(0x1c4)],'currentSessionId$':(_0x28b8a3=this[_0x1ed2a8(0x1a4)])==null?void 0x0:_0x28b8a3['sessionId$']});},this['_injector']);}[_0x298dc7(0x254)](){const _0x54f1c7=_0x298dc7;this[_0x54f1c7(0x218)](this[_0x54f1c7(0x1b8)][_0x54f1c7(0x1ec)](s['MCP_PLUGIN_CONFIG_KEY'])['subscribe'](_0x1a3554=>{const _0x4ae47a=_0x54f1c7;this['_mcpCoreConfig$'][_0x4ae47a(0x1da)](_0x1a3554||{});}));const _0x309d85=this[_0x54f1c7(0x1b8)][_0x54f1c7(0x22c)](s[_0x54f1c7(0x27b)]);this[_0x54f1c7(0x199)]['next'](_0x309d85||{}),this[_0x54f1c7(0x218)](this[_0x54f1c7(0x1b8)][_0x54f1c7(0x1ec)](P)[_0x54f1c7(0x26d)](_0x5210da=>{const _0x5cb924=_0x54f1c7;this[_0x5cb924(0x24b)]['next'](_0x5210da||{});}));const _0x57ef62=this['_configService'][_0x54f1c7(0x22c)](P);this[_0x54f1c7(0x24b)]['next'](_0x57ef62||{});}async[_0x298dc7(0x188)](){const _0x521459=_0x298dc7,_0x369be3=this['_configService']['getConfig'](P);if(!(_0x369be3!=null&&_0x369be3[_0x521459(0x2dc)]))return;const _0x1ff449=await this['_localStorageService'][_0x521459(0x20c)](O);_0x1ff449&&(this[_0x521459(0x1a4)][_0x521459(0x2f1)]({'Authorization':'Bearer\x20'+_0x1ff449}),this[_0x521459(0x1db)][_0x521459(0x1da)](_0x1ff449));}async['_validateConfig'](_0x41dd6b){const _0xa8c589=_0x298dc7;if(!_0x41dd6b[_0xa8c589(0x1e8)]||_0x41dd6b[_0xa8c589(0x1e8)][_0xa8c589(0x202)]()[_0xa8c589(0x2c5)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0xa8c589(0x264))};if(_0x41dd6b[_0xa8c589(0x1e8)][_0xa8c589(0x202)]()[_0xa8c589(0x2c5)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0xa8c589(0x1ff)]['t'](_0xa8c589(0x1e2))};try{const _0x1b0db6=await this['_injector'][_0xa8c589(0x28d)](s[_0xa8c589(0x300)])[_0xa8c589(0x2ef)](_0x41dd6b[_0xa8c589(0x1e8)]['trim']());return _0x1b0db6[_0xa8c589(0x2ae)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x1b0db6[_0xa8c589(0x24a)]||this[_0xa8c589(0x1ff)]['t'](_0xa8c589(0x2ac))};}catch(_0x27f2fe){return console[_0xa8c589(0x28b)](_0xa8c589(0x186),_0x27f2fe),{'isValid':!0x0};}}},exports['MCPConfigUIController']=xe([g(0x0,u[_0x298dc7(0x2e6)](u['Injector'])),g(0x1,v[_0x298dc7(0x18f)]),g(0x2,u[_0x298dc7(0x2a5)]),g(0x3,u[_0x298dc7(0x294)]),g(0x4,v['IDialogService']),g(0x5,v[_0x298dc7(0x18b)]),g(0x6,u[_0x298dc7(0x2e6)](v[_0x298dc7(0x1ad)])),g(0x7,u[_0x298dc7(0x2e6)](u['LocaleService'])),g(0x8,u['ILogService']),g(0x9,u['Inject'](s[_0x298dc7(0x300)]))],exports['MCPConfigUIController']);const b={'id':_0x298dc7(0x284),'type':u[_0x298dc7(0x271)][_0x298dc7(0x273)],'handler':async(_0x209f52,_0x467145)=>(_0x209f52[_0x298dc7(0x28d)](exports['MCPConfigUIController'])[_0x298dc7(0x226)](),!0x0)};function Z(_0x14e795,_0x371908){const _0x1d2e33=_0x298dc7;switch(_0x14e795){case s[_0x1d2e33(0x2f6)][_0x1d2e33(0x20d)]:return _0x1d2e33(0x2b6);case s[_0x1d2e33(0x2f6)]['CONNECTING']:return'mcpStatus.connecting';case s[_0x1d2e33(0x2f6)][_0x1d2e33(0x28a)]:return'mcpStatus.connected';case s['MCPConnectionStatus'][_0x1d2e33(0x193)]:switch(_0x371908){case s[_0x1d2e33(0x219)]['UNAUTHORIZED']:return _0x1d2e33(0x1eb);case s['MCPConnectionError'][_0x1d2e33(0x2f9)]:return _0x1d2e33(0x2e7);case s[_0x1d2e33(0x219)]['NETWORK_ERROR']:return _0x1d2e33(0x265);case s[_0x1d2e33(0x219)][_0x1d2e33(0x2e5)]:return _0x1d2e33(0x200);default:return'mcpStatus.failed';}case s[_0x1d2e33(0x2f6)][_0x1d2e33(0x259)]:return _0x1d2e33(0x25b);default:return _0x1d2e33(0x244);}}function Se(_0x17bb96,_0xb24c8a,_0x3a12b3,_0x5a2210=!0x0){const _0x174805=_0x298dc7,_0x108906=Z(_0x17bb96,_0xb24c8a),_0x92ad6e=_0x3a12b3['t'](_0x108906);return _0x5a2210?_0x17bb96===s[_0x174805(0x2f6)][_0x174805(0x20d)]&&_0xb24c8a===s[_0x174805(0x219)][_0x174805(0x1ba)]?_0x92ad6e+_0x174805(0x1b9)+_0x3a12b3['t'](_0x174805(0x2e0)):_0x17bb96===s[_0x174805(0x2f6)]['CONNECTED']?''+_0x92ad6e:_0x17bb96===s[_0x174805(0x2f6)][_0x174805(0x20d)]||_0x17bb96===s[_0x174805(0x2f6)][_0x174805(0x193)]?_0x92ad6e+_0x174805(0x1b9)+_0x3a12b3['t'](_0x174805(0x1b6)):_0x92ad6e:_0x92ad6e;}function Pe(_0x4a3e59){const _0x4c3e6a=_0x298dc7;switch(_0x4a3e59){case s[_0x4c3e6a(0x2f6)][_0x4c3e6a(0x28a)]:return _0x4c3e6a(0x20f);case s['MCPConnectionStatus'][_0x4c3e6a(0x296)]:case s[_0x4c3e6a(0x2f6)][_0x4c3e6a(0x259)]:return'univer-text-yellow-500';case s[_0x4c3e6a(0x2f6)]['FAILED']:case s[_0x4c3e6a(0x2f6)]['DISCONNECTED']:return _0x4c3e6a(0x276);default:return _0x4c3e6a(0x287);}}function W(_0xfea3b8){const _0x387e5c=_0x298dc7,{status$:_0x40d2ea,error$:_0x47f447,onConfigure:_0x38f689,showClickable:_0x3ee57c=!0x0}=_0xfea3b8,_0x24e310=v[_0x387e5c(0x236)](_0x40d2ea,s[_0x387e5c(0x2f6)]['DISCONNECTED']),_0x232ec5=v[_0x387e5c(0x236)](_0x47f447,s[_0x387e5c(0x219)][_0x387e5c(0x247)]),_0x5bcd89=v[_0x387e5c(0x24d)](u[_0x387e5c(0x27f)]),_0x58ca21=_0x24e310===s[_0x387e5c(0x2f6)][_0x387e5c(0x28a)];_0x24e310===s['MCPConnectionStatus'][_0x387e5c(0x296)]||s[_0x387e5c(0x2f6)][_0x387e5c(0x259)];const _0x55af8b=_0x5bcd89['t'](Z(_0x24e310,_0x232ec5)),_0x580434=Se(_0x24e310,_0x232ec5,_0x5bcd89,_0x3ee57c),_0x2761f4=Pe(_0x24e310),_0x5e2d44=_0x58ca21?i['jsx'](q,{}):i[_0x387e5c(0x263)](Y,{}),_0x517793=d[_0x387e5c(0x301)](()=>{_0x3ee57c&&_0x38f689&&_0x38f689();},[_0x3ee57c,_0x38f689]);function _0x42bd49(){const _0x4e1452=_0x387e5c;return i[_0x4e1452(0x20a)]('div',{'className':f[_0x4e1452(0x2eb)](_0x4e1452(0x1ab),_0x3ee57c&&_0x38f689&&_0x4e1452(0x1a9)),'role':'button','onClick':_0x3ee57c&&_0x38f689?_0x517793:void 0x0,'children':[i[_0x4e1452(0x263)]('div',{'className':f[_0x4e1452(0x2eb)]('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x2761f4),'children':_0x5e2d44}),i[_0x4e1452(0x263)](_0x4e1452(0x26a),{'className':_0x4e1452(0x1f5),'children':_0x55af8b})]});}return i[_0x387e5c(0x263)](f['Tooltip'],{'title':_0x580434,'placement':_0x387e5c(0x181),'children':_0x42bd49()});}var Ie=Object['getOwnPropertyDescriptor'],_e=(_0x39b469,_0x177deb,_0x2c0202,_0x396b33)=>{for(var _0x221884=_0x396b33>0x1?void 0x0:_0x396b33?Ie(_0x177deb,_0x2c0202):_0x177deb,_0x3fd752=_0x39b469['length']-0x1,_0x10f8fa;_0x3fd752>=0x0;_0x3fd752--)(_0x10f8fa=_0x39b469[_0x3fd752])&&(_0x221884=_0x10f8fa(_0x221884)||_0x221884);return _0x221884;},N=(_0x4e9246,_0x3e4cf5)=>(_0x16b733,_0x3a4760)=>_0x3e4cf5(_0x16b733,_0x3a4760,_0x4e9246);exports[_0x298dc7(0x2a8)]=class extends u[_0x298dc7(0x1d2)]{constructor(_0x4016ce,_0x5e1dc3,_0x299388,_0x2b5a17){const _0x1ef33e=_0x298dc7;super(),this['_injector']=_0x4016ce,this[_0x1ef33e(0x192)]=_0x5e1dc3,this[_0x1ef33e(0x2d8)]=_0x299388,this['_configService']=_0x2b5a17,this['_initAutoConnect'](),this[_0x1ef33e(0x1f8)]();}['_initAutoConnect'](){const _0x21c24d=_0x298dc7,_0x4c2e62=this[_0x21c24d(0x1b8)]['getConfig'](P);_0x4c2e62!=null&&_0x4c2e62[_0x21c24d(0x2dc)]&&(this[_0x21c24d(0x192)][_0x21c24d(0x283)]=!0x1);}[_0x298dc7(0x1f8)](){const _0x96c0b7=_0x298dc7,_0x45864f=this[_0x96c0b7(0x1b8)][_0x96c0b7(0x22c)](P);(_0x45864f==null?void 0x0:_0x45864f[_0x96c0b7(0x217)])!==!0x1&&this[_0x96c0b7(0x218)](this[_0x96c0b7(0x2d8)][_0x96c0b7(0x21b)](v[_0x96c0b7(0x250)]['HEADER_MENU'],()=>{const _0x154e7b=_0x96c0b7;var _0x88424d;return v[_0x154e7b(0x189)](ye({'status$':this[_0x154e7b(0x192)][_0x154e7b(0x1a0)],'error$':this[_0x154e7b(0x192)][_0x154e7b(0x1c4)],'onConfigure':()=>this[_0x154e7b(0x245)](),'showClickable':(_0x88424d=_0x45864f==null?void 0x0:_0x45864f[_0x154e7b(0x2dc)])!=null?_0x88424d:!0x1}),this[_0x154e7b(0x2f4)]);}));}['_handleConfigure'](){const _0x48ccee=_0x298dc7;this['_injector'][_0x48ccee(0x28d)](exports[_0x48ccee(0x272)])[_0x48ccee(0x226)]();}},exports['MCPConnectionUIController']=_e([N(0x0,u[_0x298dc7(0x2e6)](u[_0x298dc7(0x27d)])),N(0x1,u[_0x298dc7(0x2e6)](s[_0x298dc7(0x300)])),N(0x2,v['IUIPartsService']),N(0x3,u[_0x298dc7(0x2a5)])],exports[_0x298dc7(0x2a8)]);function ye(_0x1b6f91){const {status$:_0x78db7a,error$:_0x40aff7,onConfigure:_0x37fdcf,showClickable:_0x48c555}=_0x1b6f91;return function(){const _0x329d6c=_0x167a;return i[_0x329d6c(0x263)](W,{'status$':_0x78db7a,'error$':_0x40aff7,'onConfigure':_0x37fdcf,'showClickable':_0x48c555});};}function Me(_0x30d732){const _0xca78dc=_0x298dc7;return{'id':b['id'],'type':v[_0xca78dc(0x2d7)][_0xca78dc(0x275)],'icon':_0xca78dc(0x2b1),'title':_0xca78dc(0x197),'tooltip':_0xca78dc(0x197)};}const Ne={[v[_0x298dc7(0x187)][_0x298dc7(0x1fd)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x298dc7(0x1be)],je=(_0x31f99f,_0x50833c,_0x175a60,_0x1f054e)=>{const _0x802c5d=_0x298dc7;for(var _0x4f15c4=_0x1f054e>0x1?void 0x0:_0x1f054e?be(_0x50833c,_0x175a60):_0x50833c,_0x36f622=_0x31f99f[_0x802c5d(0x2c5)]-0x1,_0x4bdbd0;_0x36f622>=0x0;_0x36f622--)(_0x4bdbd0=_0x31f99f[_0x36f622])&&(_0x4f15c4=_0x4bdbd0(_0x4f15c4)||_0x4f15c4);return _0x4f15c4;},z=(_0x4fa585,_0x34d1fc)=>(_0x409e1a,_0x3b88ee)=>_0x34d1fc(_0x409e1a,_0x3b88ee,_0x4fa585);exports[_0x298dc7(0x1ef)]=class extends u[_0x298dc7(0x1d2)]{constructor(_0x2f4de6,_0x18e286){const _0x1c6048=_0x298dc7;super(),this[_0x1c6048(0x1e9)]=_0x2f4de6,this[_0x1c6048(0x1d8)]=_0x18e286,this[_0x1c6048(0x2aa)](),this['_initializeMenus']();}[_0x298dc7(0x2aa)](){const _0x355811=_0x298dc7;[b][_0x355811(0x1de)](_0x17a83d=>{const _0x52887d=_0x355811;this[_0x52887d(0x218)](this[_0x52887d(0x1e9)][_0x52887d(0x29f)](_0x17a83d));});}['_initializeMenus'](){const _0x3dbb45=_0x298dc7;this[_0x3dbb45(0x1d8)][_0x3dbb45(0x1af)](Ne);}},exports[_0x298dc7(0x1ef)]=je([z(0x0,u[_0x298dc7(0x1f4)]),z(0x1,v['IMenuManagerService'])],exports[_0x298dc7(0x1ef)]);const Ee={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x298dc7(0x2e8),'failed':_0x298dc7(0x2c4),'retrying':_0x298dc7(0x18e),'unknown':_0x298dc7(0x2d6),'unauthorized':_0x298dc7(0x289),'sessionOccupied':_0x298dc7(0x1e5),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x298dc7(0x1d7),'clickToConnect':_0x298dc7(0x1c6),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x298dc7(0x1c8),'description':_0x298dc7(0x2fe),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x298dc7(0x2c7),'apiKeyHint':_0x298dc7(0x302),'enableAuth':_0x298dc7(0x1d6),'enableAuthHint':_0x298dc7(0x1bd),'connectionInfo':_0x298dc7(0x224),'mcpClientConfig':_0x298dc7(0x224),'configInstructions':_0x298dc7(0x19a),'configStepTitle':_0x298dc7(0x292),'configStep1':_0x298dc7(0x2b7),'configStep2':_0x298dc7(0x19c),'configStep3':_0x298dc7(0x194),'sessionId':_0x298dc7(0x2b8),'sessionIdDescription':_0x298dc7(0x20b),'authorizationDescription':_0x298dc7(0x290),'configParameters':_0x298dc7(0x252),'maxRetries':_0x298dc7(0x270),'save':_0x298dc7(0x23c),'saving':_0x298dc7(0x222),'note1':_0x298dc7(0x2c8),'note2':_0x298dc7(0x20e),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x298dc7(0x2d3),'apiApplyInfo':{'title':_0x298dc7(0x213),'description':_0x298dc7(0x2bb),'univerAiLabel':_0x298dc7(0x1e7),'getStarted':_0x298dc7(0x27e)},'validation':{'apiKeyRequired':_0x298dc7(0x1c3),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x298dc7(0x253),'invalidApiKey':_0x298dc7(0x1fa)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x298dc7(0x262),'connected':_0x298dc7(0x206),'failed':_0x298dc7(0x24f),'retrying':_0x298dc7(0x1b5)},'connectionError':{'unauthorized':_0x298dc7(0x215),'sessionOccupied':_0x298dc7(0x191),'networkError':_0x298dc7(0x237),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},we={'mcpStatus':{'disconnected':_0x298dc7(0x1d0),'connecting':_0x298dc7(0x1bf),'connected':_0x298dc7(0x1ae),'failed':_0x298dc7(0x184),'retrying':_0x298dc7(0x238),'unknown':_0x298dc7(0x2be),'unauthorized':_0x298dc7(0x2a6),'sessionOccupied':_0x298dc7(0x23e),'networkError':_0x298dc7(0x233),'maxRetriesExceeded':_0x298dc7(0x267),'clickToConnect':_0x298dc7(0x2b2),'clickToConfigure':_0x298dc7(0x2c6)},'mcpConfig':{'title':'MCP\x20配置','description':_0x298dc7(0x25e),'apiKey':_0x298dc7(0x1ea),'apiKeyPlaceholder':_0x298dc7(0x242),'apiKeyHint':_0x298dc7(0x2cb),'enableAuth':'启用身份验证','enableAuthHint':_0x298dc7(0x1c1),'connectionInfo':_0x298dc7(0x246),'mcpClientConfig':_0x298dc7(0x246),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':'配置步骤:','configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x298dc7(0x2b3),'sessionId':'会话ID','sessionIdDescription':_0x298dc7(0x251),'authorizationDescription':_0x298dc7(0x201),'configParameters':_0x298dc7(0x2ea),'maxRetries':_0x298dc7(0x258),'save':_0x298dc7(0x196),'saving':_0x298dc7(0x2a7),'note1':_0x298dc7(0x2ee),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x298dc7(0x2ba),'configError':'配置保存失败','apiApplyInfo':{'title':_0x298dc7(0x182),'description':_0x298dc7(0x1b3),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x298dc7(0x1fe),'invalidApiKey':_0x298dc7(0x28f)},'connectionStatus':{'disconnected':'未连接','connecting':_0x298dc7(0x27c),'connected':'已连接','failed':_0x298dc7(0x2fd),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x298dc7(0x205),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var Ae=Object[_0x298dc7(0x2a3)],Oe=Object[_0x298dc7(0x1be)],De=(_0x462cab,_0x97a5c6,_0x384365)=>_0x97a5c6 in _0x462cab?Ae(_0x462cab,_0x97a5c6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x384365}):_0x462cab[_0x97a5c6]=_0x384365,Ue=(_0xa5bec8,_0x2bc98a,_0x4e0975,_0x4ee834)=>{const _0x5d175a=_0x298dc7;for(var _0x16c02a=_0x4ee834>0x1?void 0x0:_0x4ee834?Oe(_0x2bc98a,_0x4e0975):_0x2bc98a,_0x568d81=_0xa5bec8[_0x5d175a(0x2c5)]-0x1,_0x11dee9;_0x568d81>=0x0;_0x568d81--)(_0x11dee9=_0xa5bec8[_0x568d81])&&(_0x16c02a=_0x11dee9(_0x16c02a)||_0x16c02a);return _0x16c02a;},y=(_0x34660c,_0x1374e7)=>(_0x268428,_0x53469b)=>_0x1374e7(_0x268428,_0x53469b,_0x34660c),$e=(_0x38e334,_0x271951,_0x325ef5)=>De(_0x38e334,_0x271951+'',_0x325ef5);function _0x3782(){const _0x250a93=['SESSION_ID_OCCUPIED','univer-flex\x20univer-items-center\x20univer-gap-2','mcpConfig.note1','univer-bg-red-500','连接失败','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','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','MCPConnectionController','useCallback','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-flex\x20univer-items-start\x20univer-gap-3','removeItem','ISocketService','tag','bottom','什么是\x20API\x20密钥?','univer-bg-gray-500','MCP\x20连接失败','attrs','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','RibbonStartGroup','_loadStoredApiKey','connectInjector','mcpConfig.configParameters','IMessageService','clipPath','mcpConfig.apiApplyInfo.getStarted','MCP\x20Retrying...','IUIPartsService','http://www.w3.org/2000/svg','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','_connectionController','FAILED','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','getCurrentConfig','保存配置','mcpConfig.title','univer-text-xs\x20univer-text-gray-500','_mcpCoreConfig$','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','substring','includes','mcpConfig.apiApplyInfo.description','connectionStatus$','<SESSION_ID>','on-line-icon','show','_mcpConnectionController','univer-text-blue-600','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','UniverMCPUIPlugin','mcpConfig.configStepTitle','\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','_localStorageService','univer-flex\x20univer-items-center','27yRBAhq','ComponentManager','MCP\x20已连接','mergeMenu','<API_KEY>','colorChannel1','none','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCPConfigPanel','Retrying...','mcpStatus.clickToConnect','off','_configService','\x20-\x20','UNAUTHORIZED','mcpConfig.description','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','Enable\x20authentication\x20for\x20secure\x20connections','getOwnPropertyDescriptor','MCP\x20连接中...','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','启用身份验证以获得安全连接','univer-space-y-2','API\x20key\x20is\x20required','connectionError$','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','Click\x20to\x20connect\x20MCP','Configuration\x20Notes:','MCP\x20Configuration','value','pluginName','58816khsEgg','_componentManager','entries','errorMessage','_blank','MCP\x20已断开','191620GBFVje','Disposable','check-mark-icon','mcp-config-dialog','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','Enable\x20Authentication','MCP:\x20Max\x20Retries\x20Exceeded','_menuManagerService','univer-flex-1','next','_apiKey$','HelpIcon','univer-text-sm\x20univer-font-medium','forEach','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','useRef','0\x200\x2017\x2016','mcpConfig.validation.apiKeyTooShort','white','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','MCP:\x20Session\x20ID\x20Occupied','13094TBzEHS','Univer\x20AI\x20Console','apiKey','_commandService','API\x20密钥','mcpStatus.unauthorized','subscribeConfigValue$','mcpConfig.save','mcpConfig.connectionError.sessionOccupied','MCPUIMenuController','createElement','mcpConfig.validation.invalidConfig','setConfig','univer-space-y-5','ICommandService','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpConfig.apiKeyPlaceholder','off-line-icon','_initStatusComponent','has','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-text-white','_messageService','OTHERS','配置无效','_localeService','mcpStatus.maxRetriesExceeded','带有\x20Bearer\x20前缀的\x20API\x20密钥。','trim','span','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','权限验证失败,请检查您的\x20API\x20密钥','Connected','MCPStatusDisplay','https://console.univer.ai','Success','jsxs','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','getItem','DISCONNECTED','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-text-green-500','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','1em','983245TzXOFx','What\x20is\x20API\x20Key?','CheckMarkIcon','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','1561ruQYIX','showStatus','disposeWithMe','MCPConnectionError','setItem','registerComponent','MessageType','univer-bg-blue-500','defIds','useState','_logService','mcpConfig.connectionStatus.disconnected','Saving...','mcpConfig.connectionStatus.failed','MCP\x20Client\x20Configuration','fill','showConfigPanel','on-line-icon_clip0_910_349','replace','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','currentColor','univerjs-icon\x20univerjs-icon-','getConfig','univer-text-xs\x20univer-text-gray-600','Authorization:','svg','univer-flex\x20univer-items-start\x20univer-gap-2','_createConfigPanelComponent','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','MCP:\x20网络错误','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-min-w-0\x20univer-flex-1','useObservable','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20重连中...','map','symbol','mcpConfig.configStep2','Save\x20Configuration','mcpConfig.note2','MCP:\x20会话\x20ID\x20已被占用','mcpConfig.configStep1','close','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','请输入您的\x20API\x20密钥','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','mcpStatus.unknown','_handleConfigure','MCP\x20客户端配置','NONE','UniverMCPPlugin','xlink:href','error','_config$','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','useDependency','Error','Connection\x20Failed','BuiltInUIPart','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Configuration\x20Parameters:','Invalid\x20configuration','_initConfigSync','label','MCP_UI_PLUGIN','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','最大重试次数','RETRYING','mcpConfig.connectionError.unauthorized','mcpStatus.retrying','Input','mcpConfig.apiKeyHint','配置\x20MCP\x20使用\x20AI\x20操作电子表格','path','mcpConfig.apiApplyInfo.univerAiLabel','univer-space-y-4','Connecting...','jsx','mcpConfig.validation.apiKeyRequired','mcpStatus.networkError','mcpConfig.configStep3','MCP:\x20超出最大重试次数','univer-size-4','zhCN','div','pre','stringify','subscribe','univer.ai','off-line-icon_clip0_910_343','Max\x20Retries','CommandType','MCPConfigUIController','COMMAND','univer-space-y-3','BUTTON','univer-text-red-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','text','OpenMCPConfigPanelCommand','univer-shrink-0\x20univer-text-red-500','MCP_PLUGIN_CONFIG_KEY','连接中...','Injector','Get\x20your\x20API\x20key\x20in\x20seconds','LocaleService','enUS','mcpConfig.configError','evenodd','enableAutoConnect','mcp-ui.command.openConfigPanel','OnLineIcon','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','univer-text-gray-500','_config','MCP:\x20Unauthorized','CONNECTED','warn','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','get','mcpConfig.authorizationDescription','API\x20密钥无效,请检查密钥是否正确','API\x20key\x20with\x20Bearer\x20prefix.','help-icon','Configuration\x20Steps:','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','ILocalStorageService','children','CONNECTING','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpConfig.sessionIdDescription','univer-text-sm\x20univer-text-gray-500','url(#$1','0\x200\x2016\x2016','toString','univer-size-2\x20univer-rounded-full','Module','registerCommand','mcpConfig.connectionError.maxRetriesExceeded','M0\x200H16V16H0z','Button','defineProperty','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','IConfigService','MCP:\x20未授权','保存中...','MCPConnectionUIController','open','_initializeCommands','CloseIcon','mcpConfig.validation.invalidApiKey','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','isValid','54GXhoCx','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','MenuIcon','点击连接\x20MCP','重启您的\x20MCP\x20客户端以使配置生效','button','mcpConfig.configInstructions','mcpStatus.disconnected','Copy\x20the\x20JSON\x20configuration\x20below','Session\x20ID','mcpServerUrl','配置保存成功','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','forwardRef','mcpConfig.saving','MCP\x20状态未知','WebSocketService','https://mcp.univer.ai/mcp/?univer_session_id=','574730kAnrsM','mask','defs','MCP\x20Connection\x20Failed','length','点击配置\x20MCP','Enter\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','merge','您的\x20API\x20密钥将在此浏览器中本地存储','OffLineIcon','use','BehaviorSubject','register','_handleConfigSave','3904IxcvxL','475440GdAtcQ','Failed\x20to\x20save\x20configuration','string','http','MCP\x20Unknown\x20Status','MenuItemType','_uiPartsService','mcpConfig.apiApplyInfo.title','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','add','showDeveloperTools','displayName','mcpConfig.connectionError.networkError','univer.plus','mcpStatus.clickToConfigure','round','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcp-ui.config','_loading$','MAX_RETRIES_EXCEEDED','Inject','mcpStatus.sessionOccupied','MCP\x20Connected','mcpConfig.connectionStatus.connecting','配置参数:','clsx','assign','UniverIcon','配置更改将立即生效','validateApiKey','Bearer\x20','__setCustomHeaders','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','_dialogService','_injector','https://console.univer.plus','MCPConnectionStatus','univer-text-gray-400','idSuffix'];_0x3782=function(){return _0x250a93;};return _0x3782();}exports[_0x298dc7(0x1a7)]=class extends u['Plugin']{constructor(_0x5097c9=L,_0x55b741,_0xf32dbc,_0x3593a3,_0x378961,_0x44ad11){const _0x515809=_0x298dc7;super(),this[_0x515809(0x288)]=_0x5097c9,this[_0x515809(0x2f4)]=_0x55b741,this[_0x515809(0x1b8)]=_0xf32dbc,this['_uiPartsService']=_0x3593a3,this[_0x515809(0x1aa)]=_0x378961,this[_0x515809(0x1ff)]=_0x44ad11;const {..._0x48003e}=u[_0x515809(0x2ca)]({},L,this[_0x515809(0x288)]);this['_configService'][_0x515809(0x1f2)](P,_0x48003e);}async['onStarting'](){const _0x24c767=_0x298dc7,_0x47cb0c=[[exports[_0x24c767(0x2a8)]],[exports[_0x24c767(0x272)]],[exports[_0x24c767(0x1ef)]]];this[_0x24c767(0x2f4)][_0x24c767(0x1f9)](A[_0x24c767(0x305)])||_0x47cb0c['push']([A[_0x24c767(0x305)],{'useClass':A[_0x24c767(0x2bf)]}]),_0x47cb0c['forEach'](_0x271852=>this[_0x24c767(0x2f4)][_0x24c767(0x2db)](_0x271852)),this['_injector'][_0x24c767(0x28d)](exports[_0x24c767(0x2a8)]),this[_0x24c767(0x2f4)][_0x24c767(0x28d)](exports[_0x24c767(0x272)]),this[_0x24c767(0x2f4)][_0x24c767(0x28d)](exports[_0x24c767(0x1ef)]);}},$e(exports[_0x298dc7(0x1a7)],_0x298dc7(0x1ca),_0x298dc7(0x256)),exports[_0x298dc7(0x1a7)]=Ue([u['DependentOn'](s[_0x298dc7(0x248)]),y(0x1,u['Inject'](u[_0x298dc7(0x27d)])),y(0x2,u[_0x298dc7(0x2a5)]),y(0x3,v[_0x298dc7(0x18f)]),y(0x4,u[_0x298dc7(0x294)]),y(0x5,u[_0x298dc7(0x2e6)](u['LocaleService']))],exports[_0x298dc7(0x1a7)]),exports[_0x298dc7(0x1b4)]=V,exports[_0x298dc7(0x207)]=W,exports[_0x298dc7(0x279)]=b,exports[_0x298dc7(0x280)]=Ee,exports[_0x298dc7(0x269)]=we;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x51a47b=_0x1e4c;function _0x1e4c(_0x46f4dd,_0x9fcbaa){_0x46f4dd=_0x46f4dd-0x1db;const _0x177de2=_0x177d();let _0x1e4c42=_0x177de2[_0x46f4dd];return _0x1e4c42;}(function(_0x4c753a,_0xe7bdb6){const _0x426864=_0x1e4c,_0x4ef991=_0x4c753a();while(!![]){try{const _0x34c704=-parseInt(_0x426864(0x1f2))/0x1*(parseInt(_0x426864(0x201))/0x2)+parseInt(_0x426864(0x1ec))/0x3*(-parseInt(_0x426864(0x1f3))/0x4)+parseInt(_0x426864(0x1ea))/0x5+-parseInt(_0x426864(0x1f7))/0x6+-parseInt(_0x426864(0x207))/0x7*(-parseInt(_0x426864(0x1e3))/0x8)+-parseInt(_0x426864(0x20a))/0x9*(parseInt(_0x426864(0x1e0))/0xa)+parseInt(_0x426864(0x1e6))/0xb;if(_0x34c704===_0xe7bdb6)break;else _0x4ef991['push'](_0x4ef991['shift']());}catch(_0x594485){_0x4ef991['push'](_0x4ef991['shift']());}}}(_0x177d,0x8233e));function _0x177d(){const _0x32bae9=['Click\x20to\x20connect\x20MCP','exports','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Univer\x20AI\x20Console','Max\x20Retries','Configuration\x20Parameters:','150vLPgQa','MCP\x20Unknown\x20Status','Get\x20your\x20API\x20key\x20in\x20seconds','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Network\x20Error','API\x20key\x20with\x20Bearer\x20prefix.','182EhlauX','Configuration\x20Steps:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','3968532HgGlxt','Invalid\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Unauthorized','MCP\x20Client\x20Configuration','MCP\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','20NxgDXG','Save\x20Configuration','API\x20key\x20is\x20required','214040RpJdsP','Retrying...','API\x20Key','20914993olMrXA','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connection\x20Failed','What\x20is\x20API\x20Key?','3477615amCjxA','MCP:\x20Session\x20ID\x20Occupied','12jNwBeV','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','Click\x20to\x20configure\x20MCP','MCP\x20Connected','5162TyqKFr','751644nQJxnw','MCP\x20Connection\x20Failed','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','4431096aWwXwO','Disconnected','Connecting...'];_0x177d=function(){return _0x32bae9;};return _0x177d();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x51a47b(0x1f1),'failed':_0x51a47b(0x1f4),'retrying':'MCP\x20Retrying...','unknown':_0x51a47b(0x202),'unauthorized':_0x51a47b(0x1dc),'sessionOccupied':_0x51a47b(0x1eb),'networkError':_0x51a47b(0x205),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x51a47b(0x1fa),'clickToConfigure':_0x51a47b(0x1f0)},'mcpConfig':{'title':_0x51a47b(0x1de),'description':_0x51a47b(0x204),'apiKey':_0x51a47b(0x1e5),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x51a47b(0x1ef),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x51a47b(0x1dd),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x51a47b(0x208),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x51a47b(0x1df),'sessionId':'Session\x20ID','sessionIdDescription':_0x51a47b(0x1ed),'authorizationDescription':_0x51a47b(0x206),'configParameters':_0x51a47b(0x200),'maxRetries':_0x51a47b(0x1ff),'save':_0x51a47b(0x1e1),'saving':'Saving...','note1':_0x51a47b(0x1f5),'note2':_0x51a47b(0x209),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x51a47b(0x1ee),'apiApplyInfo':{'title':_0x51a47b(0x1e9),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x51a47b(0x1fe),'getStarted':_0x51a47b(0x203)},'validation':{'apiKeyRequired':_0x51a47b(0x1e2),'apiKeyTooShort':_0x51a47b(0x20c),'invalidConfig':_0x51a47b(0x20b),'invalidApiKey':_0x51a47b(0x1e7)},'connectionStatus':{'disconnected':_0x51a47b(0x1f8),'connecting':_0x51a47b(0x1f9),'connected':'Connected','failed':_0x51a47b(0x1e8),'retrying':_0x51a47b(0x1e4)},'connectionError':{'unauthorized':_0x51a47b(0x1fd),'sessionOccupied':_0x51a47b(0x1f6),'networkError':_0x51a47b(0x1fc),'maxRetriesExceeded':_0x51a47b(0x1db)}}},n=e;module[_0x51a47b(0x1fb)]=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x488eab=_0xb5dd;(function(_0x53efa9,_0x4992d8){const _0x5d5f27=_0xb5dd,_0x4883bb=_0x53efa9();while(!![]){try{const _0x48035c=parseInt(_0x5d5f27(0x1de))/0x1+parseInt(_0x5d5f27(0x1ea))/0x2*(parseInt(_0x5d5f27(0x1d3))/0x3)+parseInt(_0x5d5f27(0x1e3))/0x4*(-parseInt(_0x5d5f27(0x1cb))/0x5)+parseInt(_0x5d5f27(0x1c3))/0x6+-parseInt(_0x5d5f27(0x1bd))/0x7*(-parseInt(_0x5d5f27(0x1c9))/0x8)+parseInt(_0x5d5f27(0x1f1))/0x9+-parseInt(_0x5d5f27(0x1cc))/0xa*(parseInt(_0x5d5f27(0x1e4))/0xb);if(_0x48035c===_0x4992d8)break;else _0x4883bb['push'](_0x4883bb['shift']());}catch(_0x5c5eac){_0x4883bb['push'](_0x4883bb['shift']());}}}(_0x13a7,0xedcff));function _0xb5dd(_0x433d3e,_0x582337){_0x433d3e=_0x433d3e-0x1bb;const _0x13a70e=_0x13a7();let _0xb5dd6a=_0x13a70e[_0x433d3e];return _0xb5dd6a;}function _0x13a7(){const _0x28d7e0=['Configuration\x20changes\x20will\x20take\x20effect\x20immediately','5tdFVUh','10VStfrK','Saving...','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20Steps:','MCP\x20Disconnected','Copy\x20the\x20JSON\x20configuration\x20below','3iuaScI','Configuration\x20saved\x20successfully','MCP\x20Unknown\x20Status','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connected','Configuration\x20Parameters:','Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Retrying...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enter\x20your\x20API\x20key','1269481xtNGsV','Max\x20Retries','Univer\x20AI\x20Console','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connection\x20Failed','4692964zGriay','28115274EmTOJh','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Save\x20Configuration','MCP:\x20Unauthorized','Session\x20ID','1849830vxjoOQ','MCP\x20Client\x20Configuration','exports','MCP\x20Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','Connecting...','Click\x20to\x20configure\x20MCP','5320458qSYdzx','Failed\x20to\x20save\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','What\x20is\x20API\x20Key?','280189kmPwsd','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Enable\x20authentication\x20for\x20secure\x20connections','Click\x20to\x20connect\x20MCP','11025852ddeLMa','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connecting...','API\x20key\x20is\x20required','Invalid\x20configuration','16XOZzyp'];_0x13a7=function(){return _0x28d7e0;};return _0x13a7();}const e={'mcpStatus':{'disconnected':_0x488eab(0x1d1),'connecting':_0x488eab(0x1c6),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x488eab(0x1ed),'unknown':_0x488eab(0x1d5),'unauthorized':_0x488eab(0x1e8),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x488eab(0x1ce),'clickToConnect':_0x488eab(0x1c2),'clickToConfigure':_0x488eab(0x1f0)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x488eab(0x1dc),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x488eab(0x1dd),'apiKeyHint':_0x488eab(0x1e6),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x488eab(0x1c1),'connectionInfo':_0x488eab(0x1eb),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x488eab(0x1bb),'configStepTitle':_0x488eab(0x1d0),'configStep1':_0x488eab(0x1d2),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x488eab(0x1e1),'sessionId':_0x488eab(0x1e9),'sessionIdDescription':_0x488eab(0x1bf),'authorizationDescription':_0x488eab(0x1cf),'configParameters':_0x488eab(0x1d8),'maxRetries':_0x488eab(0x1df),'save':_0x488eab(0x1e7),'saving':_0x488eab(0x1cd),'note1':_0x488eab(0x1ca),'note2':_0x488eab(0x1c5),'configSaved':_0x488eab(0x1d4),'configError':_0x488eab(0x1f2),'apiApplyInfo':{'title':_0x488eab(0x1bc),'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':_0x488eab(0x1e0),'getStarted':_0x488eab(0x1ee)},'validation':{'apiKeyRequired':_0x488eab(0x1c7),'apiKeyTooShort':_0x488eab(0x1d6),'invalidConfig':_0x488eab(0x1c8),'invalidApiKey':_0x488eab(0x1e5)},'connectionStatus':{'disconnected':_0x488eab(0x1d9),'connecting':_0x488eab(0x1ef),'connected':_0x488eab(0x1d7),'failed':_0x488eab(0x1e2),'retrying':_0x488eab(0x1db)},'connectionError':{'unauthorized':_0x488eab(0x1c0),'sessionOccupied':_0x488eab(0x1be),'networkError':_0x488eab(0x1c4),'maxRetriesExceeded':_0x488eab(0x1da)}}};module[_0x488eab(0x1ec)]=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x2de1b5=_0x2029;(function(_0x1bbe58,_0x564c55){const _0x385a17=_0x2029,_0x343b52=_0x1bbe58();while(!![]){try{const _0x363902=-parseInt(_0x385a17(0xfc))/0x1+parseInt(_0x385a17(0xf0))/0x2*(parseInt(_0x385a17(0x10e))/0x3)+parseInt(_0x385a17(0xf4))/0x4*(-parseInt(_0x385a17(0xe6))/0x5)+-parseInt(_0x385a17(0xe1))/0x6*(-parseInt(_0x385a17(0xf9))/0x7)+-parseInt(_0x385a17(0xe5))/0x8*(parseInt(_0x385a17(0xff))/0x9)+parseInt(_0x385a17(0xfd))/0xa*(parseInt(_0x385a17(0xf3))/0xb)+parseInt(_0x385a17(0x103))/0xc;if(_0x363902===_0x564c55)break;else _0x343b52['push'](_0x343b52['shift']());}catch(_0x5dbba3){_0x343b52['push'](_0x343b52['shift']());}}}(_0x49d7,0x4722f));function _0x2029(_0x347499,_0x4f87e5){_0x347499=_0x347499-0xe1;const _0x49d7cb=_0x49d7();let _0x20290c=_0x49d7cb[_0x347499];return _0x20290c;}function _0x49d7(){const _0xe30568=['MCP:\x20Network\x20Error','Save\x20Configuration','Retrying...','213114buhxGD','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connection\x20Failed','2350408HycsiN','5NutTVc','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Copy\x20the\x20JSON\x20configuration\x20below','Univer\x20AI\x20Console','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Retrying...','Session\x20ID','exports','API\x20key\x20with\x20Bearer\x20prefix.','Failed\x20to\x20save\x20configuration','58936fqQRkp','Click\x20to\x20configure\x20MCP','MCP\x20Connection\x20Failed','22sSTmhC','204668taxTWG','MCP:\x20Unauthorized','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20Key','42hpKHSO','MCP\x20Unknown\x20Status','API\x20key\x20is\x20required','419032lrGEQb','268070xPklvF','MCP\x20Configuration','9BiAhtl','Max\x20Retries','Connected','MCP\x20Client\x20Configuration','3452292VdilRr','Configuration\x20Parameters:','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Saving...','Click\x20to\x20connect\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20saved\x20successfully','Enter\x20your\x20API\x20key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Max\x20Retries\x20Exceeded','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','51NhQyHJ','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Connecting...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Disconnected','Enable\x20Authentication','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20configuration'];_0x49d7=function(){return _0xe30568;};return _0x49d7();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2de1b5(0x110),'connected':'MCP\x20Connected','failed':_0x2de1b5(0xf2),'retrying':_0x2de1b5(0xeb),'unknown':_0x2de1b5(0xfa),'unauthorized':_0x2de1b5(0xf5),'sessionOccupied':_0x2de1b5(0x10f),'networkError':_0x2de1b5(0x116),'maxRetriesExceeded':_0x2de1b5(0x10c),'clickToConnect':_0x2de1b5(0x107),'clickToConfigure':_0x2de1b5(0xf1)},'mcpConfig':{'title':_0x2de1b5(0xfe),'description':_0x2de1b5(0xe2),'apiKey':_0x2de1b5(0xf8),'apiKeyPlaceholder':_0x2de1b5(0x10a),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x2de1b5(0x113),'enableAuthHint':_0x2de1b5(0x114),'connectionInfo':_0x2de1b5(0x102),'mcpClientConfig':_0x2de1b5(0x102),'configInstructions':_0x2de1b5(0x105),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x2de1b5(0xe8),'configStep2':_0x2de1b5(0xf7),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x2de1b5(0xec),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x2de1b5(0xee),'configParameters':_0x2de1b5(0x104),'maxRetries':_0x2de1b5(0x100),'save':_0x2de1b5(0x117),'saving':_0x2de1b5(0x106),'note1':_0x2de1b5(0x111),'note2':_0x2de1b5(0xea),'configSaved':_0x2de1b5(0x109),'configError':_0x2de1b5(0xef),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x2de1b5(0xe3),'univerAiLabel':_0x2de1b5(0xe9),'getStarted':_0x2de1b5(0x108)},'validation':{'apiKeyRequired':_0x2de1b5(0xfb),'apiKeyTooShort':_0x2de1b5(0xf6),'invalidConfig':_0x2de1b5(0x115),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x2de1b5(0x112),'connecting':'Connecting...','connected':_0x2de1b5(0x101),'failed':_0x2de1b5(0xe4),'retrying':_0x2de1b5(0x118)},'connectionError':{'unauthorized':_0x2de1b5(0xe7),'sessionOccupied':_0x2de1b5(0x10b),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x2de1b5(0x10d)}}},n=e;module[_0x2de1b5(0xed)]=n;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x1faaa6=_0xa489;(function(_0x20f9bb,_0x1fc3c9){const _0x58e474=_0xa489,_0x22e719=_0x20f9bb();while(!![]){try{const _0x4e6f81=-parseInt(_0x58e474(0x11d))/0x1+-parseInt(_0x58e474(0x141))/0x2+parseInt(_0x58e474(0x128))/0x3*(parseInt(_0x58e474(0x117))/0x4)+parseInt(_0x58e474(0x12c))/0x5*(parseInt(_0x58e474(0x130))/0x6)+-parseInt(_0x58e474(0x120))/0x7*(-parseInt(_0x58e474(0x125))/0x8)+-parseInt(_0x58e474(0x133))/0x9+parseInt(_0x58e474(0x138))/0xa;if(_0x4e6f81===_0x1fc3c9)break;else _0x22e719['push'](_0x22e719['shift']());}catch(_0x5cf43c){_0x22e719['push'](_0x22e719['shift']());}}}(_0x3a3a,0x2178e));function _0xa489(_0x39f43c,_0x1c2413){_0x39f43c=_0x39f43c-0x114;const _0x3a3a8c=_0x3a3a();let _0xa489bc=_0x3a3a8c[_0x39f43c];return _0xa489bc;}function _0x3a3a(){const _0x45dbb1=['API\x20key\x20is\x20required','Configuration\x20saved\x20successfully','2027910VjBSVU','MCP\x20Connecting...','MCP:\x20Session\x20ID\x20Occupied','Disconnected','Connected','MCP:\x20Network\x20Error','Copy\x20the\x20JSON\x20configuration\x20below','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.','322212FrnsBZ','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','4hTNmdP','Click\x20to\x20configure\x20MCP','Save\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Steps:','Retrying...','109558TFcHGu','MCP:\x20Max\x20Retries\x20Exceeded','exports','14kiPHzG','Invalid\x20configuration','MCP:\x20Unauthorized','MCP\x20Connection\x20Failed','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','1092504XRwyfL','Configuration\x20Parameters:','API\x20Key','220677HqXEao','MCP\x20Retrying...','MCP\x20Unknown\x20Status','MCP\x20Disconnected','465AlxCop','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connected','Get\x20your\x20API\x20key\x20in\x20seconds','918ntwMXq','Connecting...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1403451OCdYPE','Failed\x20to\x20save\x20configuration','Enable\x20authentication\x20for\x20secure\x20connections'];_0x3a3a=function(){return _0x45dbb1;};return _0x3a3a();}const e={'mcpStatus':{'disconnected':_0x1faaa6(0x12b),'connecting':_0x1faaa6(0x139),'connected':_0x1faaa6(0x12e),'failed':_0x1faaa6(0x123),'retrying':_0x1faaa6(0x129),'unknown':_0x1faaa6(0x12a),'unauthorized':_0x1faaa6(0x122),'sessionOccupied':_0x1faaa6(0x13a),'networkError':_0x1faaa6(0x13d),'maxRetriesExceeded':_0x1faaa6(0x11e),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x1faaa6(0x118)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x1faaa6(0x127),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x1faaa6(0x143),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x1faaa6(0x135),'connectionInfo':_0x1faaa6(0x13f),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x1faaa6(0x11b),'configStep1':_0x1faaa6(0x13e),'configStep2':_0x1faaa6(0x11a),'configStep3':_0x1faaa6(0x142),'sessionId':'Session\x20ID','sessionIdDescription':_0x1faaa6(0x132),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x1faaa6(0x126),'maxRetries':'Max\x20Retries','save':_0x1faaa6(0x119),'saving':'Saving...','note1':_0x1faaa6(0x115),'note2':_0x1faaa6(0x124),'configSaved':_0x1faaa6(0x137),'configError':_0x1faaa6(0x134),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x1faaa6(0x140),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x1faaa6(0x12f)},'validation':{'apiKeyRequired':_0x1faaa6(0x136),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x1faaa6(0x121),'invalidApiKey':_0x1faaa6(0x116)},'connectionStatus':{'disconnected':_0x1faaa6(0x13b),'connecting':_0x1faaa6(0x131),'connected':_0x1faaa6(0x13c),'failed':'Connection\x20Failed','retrying':_0x1faaa6(0x11c)},'connectionError':{'unauthorized':_0x1faaa6(0x114),'sessionOccupied':_0x1faaa6(0x12d),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x1faaa6(0x144)}}},n=e;module[_0x1faaa6(0x11f)]=n;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x5bb446=_0x499c;function _0x3850(){const _0x479d9b=['Connected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Unauthorized','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','6193306oqqHVv','Saving...','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20Parameters:','MCP\x20Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','3AUXkZg','API\x20key\x20is\x20required','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Retrying...','Enable\x20Authentication','564754EEMYCB','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','5VplfCo','Disconnected','MCP\x20Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Max\x20Retries','MCP\x20Connected','Configuration\x20Steps:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Client\x20Configuration','Configuration\x20saved\x20successfully','Connection\x20Failed','4885092SfOktJ','MCP\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Session\x20ID','Click\x20to\x20configure\x20MCP','992718QcxQIs','Click\x20to\x20connect\x20MCP','1777134RbxvAj','7590432iWSwMX','3281790DdqGYi','Connecting...','MCP:\x20Max\x20Retries\x20Exceeded','Univer\x20AI\x20Console','MCP:\x20Network\x20Error','exports'];_0x3850=function(){return _0x479d9b;};return _0x3850();}function _0x499c(_0x479493,_0x7fcb20){_0x479493=_0x479493-0x1d5;const _0x385006=_0x3850();let _0x499cc7=_0x385006[_0x479493];return _0x499cc7;}(function(_0x1517a5,_0x48a3a0){const _0x562227=_0x499c,_0x1290ec=_0x1517a5();while(!![]){try{const _0x601cd4=-parseInt(_0x562227(0x1d6))/0x1+-parseInt(_0x562227(0x1f0))/0x2*(-parseInt(_0x562227(0x202))/0x3)+parseInt(_0x562227(0x1e7))/0x4+parseInt(_0x562227(0x1db))/0x5*(parseInt(_0x562227(0x1ee))/0x6)+-parseInt(_0x562227(0x1fc))/0x7+-parseInt(_0x562227(0x1ef))/0x8+parseInt(_0x562227(0x1ec))/0x9;if(_0x601cd4===_0x48a3a0)break;else _0x1290ec['push'](_0x1290ec['shift']());}catch(_0x48feef){_0x1290ec['push'](_0x1290ec['shift']());}}}(_0x3850,0xd47c7));const e={'mcpStatus':{'disconnected':_0x5bb446(0x200),'connecting':_0x5bb446(0x1dd),'connected':_0x5bb446(0x1e0),'failed':_0x5bb446(0x1d8),'retrying':_0x5bb446(0x205),'unknown':_0x5bb446(0x1da),'unauthorized':_0x5bb446(0x1f9),'sessionOccupied':_0x5bb446(0x1fe),'networkError':_0x5bb446(0x1f4),'maxRetriesExceeded':_0x5bb446(0x1f2),'clickToConnect':_0x5bb446(0x1ed),'clickToConfigure':_0x5bb446(0x1eb)},'mcpConfig':{'title':_0x5bb446(0x1e8),'description':_0x5bb446(0x204),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x5bb446(0x1fa),'enableAuth':_0x5bb446(0x1d5),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x5bb446(0x1e4),'configInstructions':_0x5bb446(0x1d9),'configStepTitle':_0x5bb446(0x1e1),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x5bb446(0x1f8),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x5bb446(0x1ea),'sessionIdDescription':_0x5bb446(0x1e3),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x5bb446(0x1ff),'maxRetries':_0x5bb446(0x1df),'save':'Save\x20Configuration','saving':_0x5bb446(0x1fd),'note1':_0x5bb446(0x1e2),'note2':_0x5bb446(0x201),'configSaved':_0x5bb446(0x1e5),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x5bb446(0x1f3),'getStarted':_0x5bb446(0x1e9)},'validation':{'apiKeyRequired':_0x5bb446(0x203),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x5bb446(0x1f7)},'connectionStatus':{'disconnected':_0x5bb446(0x1dc),'connecting':_0x5bb446(0x1f1),'connected':_0x5bb446(0x1f6),'failed':_0x5bb446(0x1e6),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x5bb446(0x1d7),'networkError':_0x5bb446(0x1de),'maxRetriesExceeded':_0x5bb446(0x1fb)}}},n=e;module[_0x5bb446(0x1f5)]=n;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0xab2c(_0x5323c4,_0x1ff63b){_0x5323c4=_0x5323c4-0x127;const _0x304cbb=_0x304c();let _0xab2c58=_0x304cbb[_0x5323c4];return _0xab2c58;}const _0x5824d0=_0xab2c;(function(_0x3ec2d0,_0x37b7ca){const _0x2eff67=_0xab2c,_0x49d516=_0x3ec2d0();while(!![]){try{const _0x30d3e9=parseInt(_0x2eff67(0x130))/0x1+parseInt(_0x2eff67(0x12a))/0x2+-parseInt(_0x2eff67(0x14a))/0x3*(parseInt(_0x2eff67(0x13a))/0x4)+-parseInt(_0x2eff67(0x131))/0x5*(-parseInt(_0x2eff67(0x147))/0x6)+parseInt(_0x2eff67(0x140))/0x7*(parseInt(_0x2eff67(0x12b))/0x8)+parseInt(_0x2eff67(0x13e))/0x9+-parseInt(_0x2eff67(0x152))/0xa;if(_0x30d3e9===_0x37b7ca)break;else _0x49d516['push'](_0x49d516['shift']());}catch(_0x5931b2){_0x49d516['push'](_0x49d516['shift']());}}}(_0x304c,0xbbd18));const e={'mcpStatus':{'disconnected':_0x5824d0(0x143),'connecting':_0x5824d0(0x141),'connected':_0x5824d0(0x13f),'failed':'MCP\x20接続失敗','retrying':_0x5824d0(0x133),'unknown':'MCP\x20不明な状態','unauthorized':_0x5824d0(0x139),'sessionOccupied':'MCP:\x20セッションIDが使用中','networkError':'MCP:\x20ネットワークエラー','maxRetriesExceeded':_0x5824d0(0x150),'clickToConnect':_0x5824d0(0x136),'clickToConfigure':_0x5824d0(0x12d)},'mcpConfig':{'title':_0x5824d0(0x159),'description':'MCPを設定してAIでスプレッドシートを操作','apiKey':_0x5824d0(0x127),'apiKeyPlaceholder':'APIキーを入力してください','apiKeyHint':_0x5824d0(0x142),'enableAuth':_0x5824d0(0x14d),'enableAuthHint':_0x5824d0(0x151),'connectionInfo':'MCPクライアント設定','mcpClientConfig':_0x5824d0(0x153),'configInstructions':'MCPクライアントの設定に次の設定を追加してください:','configStepTitle':_0x5824d0(0x132),'configStep1':_0x5824d0(0x12c),'configStep2':_0x5824d0(0x154),'configStep3':_0x5824d0(0x13d),'sessionId':'セッションID','sessionIdDescription':_0x5824d0(0x13c),'authorizationDescription':_0x5824d0(0x137),'configParameters':_0x5824d0(0x14c),'maxRetries':_0x5824d0(0x155),'save':'設定を保存','saving':'保存中...','note1':_0x5824d0(0x145),'note2':_0x5824d0(0x14f),'configSaved':'設定が正常に保存されました','configError':_0x5824d0(0x157),'apiApplyInfo':{'title':_0x5824d0(0x148),'description':_0x5824d0(0x14b),'univerAiLabel':_0x5824d0(0x128),'getStarted':_0x5824d0(0x129)},'validation':{'apiKeyRequired':_0x5824d0(0x138),'apiKeyTooShort':_0x5824d0(0x135),'invalidConfig':_0x5824d0(0x13b),'invalidApiKey':_0x5824d0(0x12f)},'connectionStatus':{'disconnected':'未接続','connecting':_0x5824d0(0x12e),'connected':_0x5824d0(0x14e),'failed':_0x5824d0(0x134),'retrying':'再試行中...'},'connectionError':{'unauthorized':_0x5824d0(0x146),'sessionOccupied':_0x5824d0(0x144),'networkError':_0x5824d0(0x149),'maxRetriesExceeded':_0x5824d0(0x156)}}};module[_0x5824d0(0x158)]=e;function _0x304c(){const _0x1e5ad6=['MCPクライアントを再起動して設定を適用','3124908yaTjSv','MCP\x20接続済み','7ndZEWU','MCP\x20接続中...','APIキーはこのブラウザのローカルに保存されます','MCP\x20未接続','セッションIDが現在使用中です。後でもう一度お試しください','設定の変更は直ちに有効になります','認証に失敗しました。APIキーを確認してください','18dvhbea','APIキーとは?','ネットワーク接続エラー。インターネット接続を確認してください','10578fMwykR','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','設定パラメータ:','認証を有効にする','接続済み','APIキーはローカルストレージに安全に保存されます','MCP:\x20最大再試行回数を超過','セキュアな接続のために認証を有効にする','13591040sKTaEy','MCPクライアント設定','MCPクライアントの設定ファイルに設定を追加','最大再試行回数','最大再試行回数を超過しました。後でもう一度お試しください','設定の保存に失敗しました','exports','MCP設定','APIキー','Univer\x20AIコンソール','数秒でAPIキーを取得','1715506AQVSdB','8753208JXEPve','以下のJSON設定をコピー','クリックしてMCPを設定','接続中...','無効なAPIキーです。キーが正しいか確認してください','78015LkwNqA','1677555xzMUpQ','設定手順:','MCP\x20再試行中...','接続失敗','APIキーは10文字以上である必要があります','クリックしてMCPに接続','Bearerプレフィックス付きのAPIキー。','APIキーは必須です','MCP:\x20認証されていません','1424IkmGUa','無効な設定','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。'];_0x304c=function(){return _0x1e5ad6;};return _0x304c();}
|