@univerjs-pro/mcp-ui 0.10.14-nightly.202511070640 → 0.10.14-nightly.202511080715

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ko-KR.js +1 -1
  8. package/lib/cjs/locale/ru-RU.js +1 -1
  9. package/lib/cjs/locale/vi-VN.js +1 -1
  10. package/lib/cjs/locale/zh-CN.js +1 -1
  11. package/lib/cjs/locale/zh-TW.js +1 -1
  12. package/lib/es/index.js +1 -1
  13. package/lib/es/locale/ca-ES.js +1 -1
  14. package/lib/es/locale/en-US.js +1 -1
  15. package/lib/es/locale/es-ES.js +1 -1
  16. package/lib/es/locale/fa-IR.js +1 -1
  17. package/lib/es/locale/fr-FR.js +1 -1
  18. package/lib/es/locale/ko-KR.js +1 -1
  19. package/lib/es/locale/ru-RU.js +1 -1
  20. package/lib/es/locale/vi-VN.js +1 -1
  21. package/lib/es/locale/zh-CN.js +1 -1
  22. package/lib/es/locale/zh-TW.js +1 -1
  23. package/lib/index.js +1 -1
  24. package/lib/locale/ca-ES.js +1 -1
  25. package/lib/locale/en-US.js +1 -1
  26. package/lib/locale/es-ES.js +1 -1
  27. package/lib/locale/fa-IR.js +1 -1
  28. package/lib/locale/fr-FR.js +1 -1
  29. package/lib/locale/ko-KR.js +1 -1
  30. package/lib/locale/ru-RU.js +1 -1
  31. package/lib/locale/vi-VN.js +1 -1
  32. package/lib/locale/zh-CN.js +1 -1
  33. package/lib/locale/zh-TW.js +1 -1
  34. package/lib/umd/index.js +1 -1
  35. package/lib/umd/locale/ca-ES.js +1 -1
  36. package/lib/umd/locale/en-US.js +1 -1
  37. package/lib/umd/locale/es-ES.js +1 -1
  38. package/lib/umd/locale/fa-IR.js +1 -1
  39. package/lib/umd/locale/fr-FR.js +1 -1
  40. package/lib/umd/locale/ko-KR.js +1 -1
  41. package/lib/umd/locale/ru-RU.js +1 -1
  42. package/lib/umd/locale/vi-VN.js +1 -1
  43. package/lib/umd/locale/zh-CN.js +1 -1
  44. package/lib/umd/locale/zh-TW.js +1 -1
  45. package/package.json +6 -6
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1529b5=_0x5e29;(function(_0x56812f,_0x14e2e1){const _0x3ca683=_0x5e29,_0x23f27a=_0x56812f();while(!![]){try{const _0x5121f6=-parseInt(_0x3ca683(0x1fd))/0x1+-parseInt(_0x3ca683(0x1b5))/0x2*(-parseInt(_0x3ca683(0xfb))/0x3)+parseInt(_0x3ca683(0x135))/0x4*(parseInt(_0x3ca683(0x16a))/0x5)+-parseInt(_0x3ca683(0x182))/0x6*(-parseInt(_0x3ca683(0xb5))/0x7)+-parseInt(_0x3ca683(0x17c))/0x8+-parseInt(_0x3ca683(0x115))/0x9+parseInt(_0x3ca683(0x1fe))/0xa*(parseInt(_0x3ca683(0x1b7))/0xb);if(_0x5121f6===_0x14e2e1)break;else _0x23f27a['push'](_0x23f27a['shift']());}catch(_0x56e73a){_0x23f27a['push'](_0x23f27a['shift']());}}}(_0x2f92,0xa820a));var Pe=Object[_0x1529b5(0xcb)],Ee=(_0x5b98d1,_0x1123a9,_0x3ae829)=>_0x1123a9 in _0x5b98d1?Pe(_0x5b98d1,_0x1123a9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ae829}):_0x5b98d1[_0x1123a9]=_0x3ae829,x=(_0x351b73,_0x5469e1,_0x6436e8)=>Ee(_0x351b73,typeof _0x5469e1!=_0x1529b5(0x179)?_0x5469e1+'':_0x5469e1,_0x6436e8);import{LocaleService as _0x2c192b,Inject as _0x3196b9,Injector as _0x772e7d,IConfigService as _0x4468c3,ILocalStorageService as _0x4818bf,ILogService as _0x284570,Disposable as _0x48bc64,CommandType as _0x998629,ICommandService as _0x4f2ba8,DependentOn as _0x51f2fd,Plugin as _0x4b4398,merge as _0x403799}from'@univerjs/core';import{jsxs as _0x4d2172,jsx as _0xc335bf}from'react/jsx-runtime';import{MCPConnectionStatus as _0x3b09c9,MCPConnectionError as _0x7682eb,MCPConnectionController as _0x178875,MCP_PLUGIN_CONFIG_KEY as _0x31e1de,UniverMCPPlugin as _0x238564}from'@univerjs-pro/mcp';import{clsx as _0x2f53ef,Input as _0x1ac5f8,Button as _0x1fafdf,MessageType as _0x24b36a,Tooltip as _0x1897b9}from'@univerjs/design';import{useDependency as _0x2a13c4,useObservable as _0x4d8a12,IUIPartsService as _0x6c712,IDialogService as _0xec1ea1,IMessageService as _0x2b1721,ComponentManager as _0x429ef9,connectInjector as _0x514257,BuiltInUIPart as _0xae7773,MenuItemType as _0x381790,RibbonStartGroup as _0x2d214b,IMenuManagerService as _0x5b13d9}from'@univerjs/ui';function _0x5e29(_0x4edb59,_0x552181){const _0x2f9246=_0x2f92();return _0x5e29=function(_0x5e29bb,_0x484aac){_0x5e29bb=_0x5e29bb-0xaa;let _0x26deb3=_0x2f9246[_0x5e29bb];return _0x26deb3;},_0x5e29(_0x4edb59,_0x552181);}import{BehaviorSubject as _0x4803e4}from'rxjs';import{useRef as _0x12dc6f,createElement as _0x49c93c,forwardRef as _0x40ffa6,useState as _0x6b1ac8,useCallback as _0x2180bb}from'react';import{ISocketService as _0x490fbe,WebSocketService as _0x56fc21}from'@univerjs/network';function b({ref:_0x3dec7d,..._0x582ea5}){const _0x3aae1b=_0x1529b5,{icon:_0x1ef128,id:_0xe7c7ca,className:_0x12af87,extend:_0x1bf5ac,..._0x3bcdc6}=_0x582ea5,_0x3d70f4=('univerjs-icon\x20univerjs-icon-'+_0xe7c7ca+'\x20'+(_0x12af87||''))[_0x3aae1b(0x1e1)](),_0x425c52=_0x12dc6f('_'+We());return ae(_0x1ef128,''+_0xe7c7ca,{'defIds':_0x1ef128[_0x3aae1b(0x188)],'idSuffix':_0x425c52['current']},{'ref':_0x3dec7d,'className':_0x3d70f4,..._0x3bcdc6},_0x1bf5ac);}function ae(_0x1571d2,_0x453086,_0x2aa62b,_0x9cbcc6,_0x221097){const _0x12e9be=_0x1529b5;return _0x49c93c(_0x1571d2[_0x12e9be(0x1a0)],{'key':_0x453086,...Ye(_0x1571d2,_0x2aa62b,_0x221097),..._0x9cbcc6},(Ze(_0x1571d2,_0x2aa62b)[_0x12e9be(0x155)]||[])[_0x12e9be(0x1ec)]((_0x10c5c1,_0x17f6af)=>ae(_0x10c5c1,_0x453086+'-'+_0x1571d2[_0x12e9be(0x1a0)]+'-'+_0x17f6af,_0x2aa62b,void 0x0,_0x221097)));}function Ye(_0x4eda4c,_0x11d6c3,_0x46e793){const _0x3438bf=_0x1529b5,_0x148108={..._0x4eda4c[_0x3438bf(0x102)]};_0x46e793!=null&&_0x46e793[_0x3438bf(0x112)]&&_0x148108[_0x3438bf(0xdb)]===_0x3438bf(0x112)&&(_0x148108[_0x3438bf(0xdb)]=_0x46e793[_0x3438bf(0x112)]),_0x4eda4c[_0x3438bf(0x1a0)]===_0x3438bf(0x1b3)&&_0x148108['id']&&(_0x148108['id']=_0x148108['id']+_0x11d6c3[_0x3438bf(0x143)]),Object[_0x3438bf(0x122)](_0x148108)[_0x3438bf(0x1f1)](([_0x5b6708,_0x4a252b])=>{const _0x3c3055=_0x3438bf;_0x5b6708===_0x3c3055(0x1b3)&&typeof _0x4a252b=='string'&&(_0x148108[_0x5b6708]=_0x4a252b['replace'](/url\(#(.*)\)/,_0x3c3055(0xd9)+_0x11d6c3[_0x3c3055(0x143)]+')'));});const {defIds:_0x337025}=_0x11d6c3;return!_0x337025||_0x337025[_0x3438bf(0x10d)]===0x0||(_0x4eda4c['tag']===_0x3438bf(0xf4)&&_0x148108[_0x3438bf(0x134)]&&(_0x148108[_0x3438bf(0x134)]=_0x148108[_0x3438bf(0x134)]+_0x11d6c3[_0x3438bf(0x143)]),Object[_0x3438bf(0x122)](_0x148108)['forEach'](([_0xb903b0,_0xaebcaa])=>{const _0x3178a9=_0x3438bf;typeof _0xaebcaa==_0x3178a9(0x12d)&&(_0x148108[_0xb903b0]=_0xaebcaa[_0x3178a9(0x18c)](/url\(#(.*)\)/,_0x3178a9(0xd9)+_0x11d6c3[_0x3178a9(0x143)]+')'));})),_0x148108;}function Ze(_0x3701cc,_0x1c4d9e){const _0x2a9ac8=_0x1529b5;var _0x2e5314;const {defIds:_0x2d3766}=_0x1c4d9e;return!_0x2d3766||_0x2d3766[_0x2a9ac8(0x10d)]===0x0?_0x3701cc:_0x3701cc['tag']===_0x2a9ac8(0x11b)&&((_0x2e5314=_0x3701cc['children'])!=null&&_0x2e5314[_0x2a9ac8(0x10d)])?{..._0x3701cc,'children':_0x3701cc[_0x2a9ac8(0x155)]['map'](_0xdc241d=>typeof _0xdc241d['attrs']['id']=='string'&&_0x2d3766&&_0x2d3766[_0x2a9ac8(0x11f)](_0xdc241d[_0x2a9ac8(0x102)]['id'])?{..._0xdc241d,'attrs':{..._0xdc241d['attrs'],'id':_0xdc241d['attrs']['id']+_0x1c4d9e[_0x2a9ac8(0x143)]}}:_0xdc241d)}:_0x3701cc;}function We(){const _0x4904b0=_0x1529b5;return Math[_0x4904b0(0xe0)]()[_0x4904b0(0xaa)](0x24)[_0x4904b0(0xe5)](0x2,0x8);}b['displayName']=_0x1529b5(0x11d);const qe={'tag':_0x1529b5(0x1c7),'attrs':{'xmlns':_0x1529b5(0x139),'fill':_0x1529b5(0x1af),'viewBox':_0x1529b5(0x1c6),'width':_0x1529b5(0xfd),'height':_0x1529b5(0xfd)},'children':[{'tag':_0x1529b5(0xe9),'attrs':{'fill':_0x1529b5(0x147),'d':_0x1529b5(0xb9),'fillRule':_0x1529b5(0xc7),'clipRule':'evenodd'}}]},le=_0x40ffa6(function(_0x545fdd,_0x5ee626){const _0x1fba3f=_0x1529b5;return _0x49c93c(b,Object[_0x1fba3f(0x1e9)]({},_0x545fdd,{'id':_0x1fba3f(0x1f0),'ref':_0x5ee626,'icon':qe}));});le[_0x1529b5(0x1b1)]='CheckMarkIcon';const Xe={'tag':'svg','attrs':{'xmlns':_0x1529b5(0x139),'fill':_0x1529b5(0x1af),'viewBox':_0x1529b5(0x1c6),'width':_0x1529b5(0xfd),'height':'1em'},'children':[{'tag':_0x1529b5(0xe9),'attrs':{'fill':'currentColor','d':_0x1529b5(0x196)}}]},ue=_0x40ffa6(function(_0x3a7fcd,_0x2b0184){const _0x5d4035=_0x1529b5;return _0x49c93c(b,Object[_0x5d4035(0x1e9)]({},_0x3a7fcd,{'id':_0x5d4035(0xc3),'ref':_0x2b0184,'icon':Xe}));});ue['displayName']='CloseIcon';const Je={'tag':'svg','attrs':{'xmlns':_0x1529b5(0x139),'fill':_0x1529b5(0x1af),'viewBox':_0x1529b5(0x1c6),'width':'1em','height':'1em'},'children':[{'tag':_0x1529b5(0xe9),'attrs':{'fill':_0x1529b5(0x147),'d':'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'}},{'tag':_0x1529b5(0xe9),'attrs':{'fill':_0x1529b5(0x147),'d':_0x1529b5(0x178)}},{'tag':'path','attrs':{'fill':_0x1529b5(0x147),'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':_0x1529b5(0xc7),'clipRule':_0x1529b5(0xc7)}}]},ve=_0x40ffa6(function(_0x6fed5f,_0x583c62){const _0x28646f=_0x1529b5;return _0x49c93c(b,Object['assign']({},_0x6fed5f,{'id':_0x28646f(0x1a1),'ref':_0x583c62,'icon':Je}));});ve['displayName']='HelpIcon';const Qe={'tag':_0x1529b5(0x1c7),'attrs':{'xmlns':_0x1529b5(0x139),'fill':_0x1529b5(0x1af),'viewBox':_0x1529b5(0x1c6),'width':_0x1529b5(0xfd),'height':_0x1529b5(0xfd)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x1529b5(0xe9),'attrs':{'stroke':'currentColor','d':_0x1529b5(0x167),'strokeLinecap':'round','strokeLinejoin':_0x1529b5(0x13e),'strokeWidth':1.2}}]},{'tag':_0x1529b5(0x11b),'attrs':{},'children':[{'tag':_0x1529b5(0x118),'attrs':{'id':_0x1529b5(0x198)},'children':[{'tag':_0x1529b5(0xe9),'attrs':{'fill':_0x1529b5(0x1c2),'d':_0x1529b5(0x128)}}]}]}],'defIds':[_0x1529b5(0x198)]},de=_0x40ffa6(function(_0x486bea,_0xd960e7){const _0x323efc=_0x1529b5;return _0x49c93c(b,Object[_0x323efc(0x1e9)]({},_0x486bea,{'id':_0x323efc(0x1cb),'ref':_0xd960e7,'icon':Qe}));});de[_0x1529b5(0x1b1)]=_0x1529b5(0x173);const en={'tag':_0x1529b5(0x1c7),'attrs':{'xmlns':_0x1529b5(0x139),'fill':'none','viewBox':_0x1529b5(0xde),'width':'1em','height':_0x1529b5(0xfd)},'children':[{'tag':'g','attrs':{'clipPath':_0x1529b5(0x1e3)},'children':[{'tag':_0x1529b5(0xe9),'attrs':{'stroke':'currentColor','d':_0x1529b5(0x1e2),'strokeLinecap':_0x1529b5(0x13e),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1529b5(0x11b),'attrs':{},'children':[{'tag':_0x1529b5(0x118),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x1529b5(0xe9),'attrs':{'fill':_0x1529b5(0x1c2),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x1529b5(0x195)]},ge=_0x40ffa6(function(_0x406104,_0x1ebe2f){return _0x49c93c(b,Object['assign']({},_0x406104,{'id':'on-line-icon','ref':_0x1ebe2f,'icon':en}));});ge[_0x1529b5(0x1b1)]='OnLineIcon';function nn(_0x1877d5){const _0x152bf3=_0x1529b5;var _0x5c114f,_0x3bbb43;const {mcpCoreConfig:_0x9c02c1,onSave:_0x4dcb30,loading:_0x549b52=!0x1,config:_0x332d9c,connectionStatus$:_0x2732b0,connectionError$:_0x2af1d8,currentApiKey$:_0x41467b,currentSessionId$:_0x49688a}=_0x1877d5,_0x4c30ea=_0x2a13c4(_0x2c192b),_0x1c1f9d=_0x4d8a12(_0x2732b0,_0x3b09c9[_0x152bf3(0x10c)]),_0x47cd33=_0x4d8a12(_0x2af1d8,_0x7682eb[_0x152bf3(0x184)]),_0x24b298=_0x4d8a12(_0x49688a,''),_0x9848f6=_0x4d8a12(_0x41467b,''),[_0xe35b76,_0xb1f494]=_0x6b1ac8(_0x9848f6||''),_0x539a5e=!0x0,_0x1751c5=_0x332d9c['showDeveloperTools']&&_0x9c02c1[_0x152bf3(0x17d)]&&(_0x9c02c1[_0x152bf3(0x17d)]['includes']('univer.plus')||_0x9c02c1[_0x152bf3(0x17d)]['includes'](_0x152bf3(0xb3))),_0x5302e5=(_0x5c114f=_0x9c02c1['mcpServerUrl'])==null?void 0x0:_0x5c114f['includes'](_0x152bf3(0x1a3)),_0x109441=(_0x3bbb43=_0x9c02c1['mcpServerUrl'])==null?void 0x0:_0x3bbb43[_0x152bf3(0x11f)]('univer.ai'),_0x1a2d7e=_0x5302e5?_0x152bf3(0x111):_0x152bf3(0x19a),_0x4d68e3=_0x332d9c[_0x152bf3(0x1dd)]&&(_0x5302e5||_0x109441),[_0x3a9ea8,_0x35ee25]=_0x6b1ac8(!_0xe35b76[_0x152bf3(0x1e1)]()),_0x461d08=(_0x54df3d,_0x48757c)=>{const _0x53ba64=_0x152bf3;if(_0x48757c===_0x7682eb['UNAUTHORIZED'])return _0x53ba64(0x1ae);switch(_0x54df3d){case _0x3b09c9[_0x53ba64(0x1a8)]:return _0x53ba64(0x10a);case _0x3b09c9[_0x53ba64(0x15b)]:case _0x3b09c9['RETRYING']:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x3b09c9[_0x53ba64(0x1a2)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x53ba64(0x126);}},_0x4fcb7d=(_0x4abce8,_0x150f2e)=>{const _0x9afc2e=_0x152bf3;if(_0x150f2e===_0x7682eb[_0x9afc2e(0x13c)])return _0x9afc2e(0x1c8);switch(_0x4abce8){case _0x3b09c9[_0x9afc2e(0x1a8)]:return _0x9afc2e(0x190);case _0x3b09c9[_0x9afc2e(0x15b)]:case _0x3b09c9['RETRYING']:return _0x9afc2e(0x15f);case _0x3b09c9[_0x9afc2e(0x1a2)]:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x361fca=_0x269d99=>{const _0x3daae3=_0x152bf3;switch(_0x269d99){case _0x3b09c9[_0x3daae3(0x1a8)]:return _0x4c30ea['t']('mcpConfig.connectionStatus.connected');case _0x3b09c9['CONNECTING']:return _0x4c30ea['t'](_0x3daae3(0x164));case _0x3b09c9[_0x3daae3(0x1a2)]:return _0x4c30ea['t'](_0x3daae3(0xfc));case _0x3b09c9[_0x3daae3(0xee)]:return _0x4c30ea['t'](_0x3daae3(0x130));default:return _0x4c30ea['t']('mcpConfig.connectionStatus.disconnected');}},_0x14b1e5=_0x4eead2=>{const _0x56dcba=_0x152bf3;switch(_0x4eead2){case _0x7682eb[_0x56dcba(0x13c)]:return _0x4c30ea['t']('mcpConfig.connectionError.unauthorized');case _0x7682eb[_0x56dcba(0xf1)]:return _0x4c30ea['t']('mcpConfig.connectionError.sessionOccupied');case _0x7682eb['NETWORK_ERROR']:return _0x4c30ea['t'](_0x56dcba(0x19e));case _0x7682eb[_0x56dcba(0x117)]:return _0x4c30ea['t'](_0x56dcba(0x1a5));default:return'';}},_0x42d6d9=_0x2180bb(()=>{const _0x59740b=_0x152bf3,_0x48957a={..._0x9c02c1,'apiKey':_0xe35b76[_0x59740b(0x1e1)](),'enableAuth':_0x539a5e};_0x4dcb30(_0x48957a);},[_0x9c02c1,_0xe35b76,_0x539a5e,_0x4dcb30]),_0x54c502=_0xe35b76[_0x152bf3(0x1e1)]()[_0x152bf3(0x10d)]>0x0;return _0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x129),'children':[_0xc335bf('div',{'className':_0x152bf3(0x1f9),'children':_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x1cd),'children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0x11a),'children':_0xc335bf(_0x152bf3(0x1fb),{'className':'univer-text-white','children':'⚙'})}),_0xc335bf('div',{'children':_0xc335bf('p',{'className':_0x152bf3(0x161),'children':_0x4c30ea['t'](_0x152bf3(0x193))})})]})}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0xda),'children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x2f53ef(_0x152bf3(0x150),_0x461d08(_0x1c1f9d,_0x47cd33)),'children':_0x4d2172(_0x152bf3(0x140),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x2f53ef('univer-size-2\x20univer-rounded-full',_0x4fcb7d(_0x1c1f9d,_0x47cd33))}),_0xc335bf(_0x152bf3(0x1fb),{'className':_0x152bf3(0x19d),'children':_0x361fca(_0x1c1f9d)})]})}),_0x47cd33!==_0x7682eb['NONE']&&(_0x1c1f9d===_0x3b09c9['FAILED']||_0x47cd33===_0x7682eb[_0x152bf3(0x13c)])&&_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0xf0),'children':_0x4d2172('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0xc335bf(_0x152bf3(0x1fb),{'className':_0x152bf3(0x191),'children':'⚠️'}),_0xc335bf('p',{'className':_0x152bf3(0xf6),'children':_0x14b1e5(_0x47cd33)})]})})]}),_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0xc0),'children':_0x4d2172('div',{'className':_0x152bf3(0x137),'children':[_0x4d2172(_0x152bf3(0x140),{'className':'univer-space-y-2','children':[_0x4d2172('label',{'className':_0x152bf3(0x1ab),'children':[_0xc335bf(_0x152bf3(0x1fb),{'children':'🔑'}),'\x20',_0x4c30ea['t']('mcpConfig.apiKey'),_0xc335bf(_0x152bf3(0x1fb),{'className':_0x152bf3(0x121),'children':'*'}),_0x1751c5&&_0xc335bf('a',{'className':_0x152bf3(0x1d8),'title':_0x4c30ea['t'](_0x152bf3(0x1f7)),'role':_0x152bf3(0x1ce),'onClick':()=>_0x35ee25(!0x0),'children':_0xc335bf(ve,{})})]}),_0xc335bf(_0x1ac5f8,{'type':_0x152bf3(0x107),'placeholder':_0x4c30ea['t']('mcpConfig.apiKeyPlaceholder'),'value':_0xe35b76,'disabled':_0x549b52,'autoComplete':_0x152bf3(0x1f4),'onChange':_0xb1f494}),_0xc335bf('p',{'className':_0x152bf3(0xb2),'children':_0x4c30ea['t']('mcpConfig.apiKeyHint')})]}),_0x1751c5&&_0x3a9ea8&&_0x4d2172('div',{'className':_0x152bf3(0x103),'children':[_0xc335bf('a',{'className':_0x152bf3(0x1e5),'role':_0x152bf3(0x1ce),'onClick':()=>_0x35ee25(!0x1),'children':_0xc335bf(ue,{'className':_0x152bf3(0x10b)})}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x11c),'children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0xdc),'children':_0xc335bf(_0x152bf3(0x1fb),{'className':_0x152bf3(0x163),'children':'🚀'})}),_0x4d2172(_0x152bf3(0x140),{'className':'univer-flex-1','children':[_0xc335bf('h4',{'className':_0x152bf3(0x1ef),'children':_0x4c30ea['t']('mcpConfig.apiApplyInfo.title')}),_0xc335bf('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x4c30ea['t']('mcpConfig.apiApplyInfo.description')}),_0xc335bf('div',{'className':_0x152bf3(0x1f2),'children':_0x4d68e3&&_0x4d2172('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x1a2d7e,'target':_0x152bf3(0x1ca),'rel':_0x152bf3(0x109),'children':[_0xc335bf(_0x152bf3(0x1fb),{'children':'🤖'}),_0x4c30ea['t'](_0x152bf3(0x1a4)),_0xc335bf(_0x152bf3(0x1fb),{'className':_0x152bf3(0x17e),'children':'↗'})]})}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0xe3),'children':['✨','\x20',_0x4c30ea['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x332d9c[_0x152bf3(0x1dd)]&&_0x4d2172('div',{'className':_0x152bf3(0xfa),'children':[_0x4d2172('h4',{'className':_0x152bf3(0xc9),'children':[_0xc335bf(_0x152bf3(0x1fb),{'children':'🔗'}),'\x20',_0x4c30ea['t'](_0x152bf3(0x18b))]}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x16d),'children':[_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x14c),'children':[_0xc335bf('p',{'className':_0x152bf3(0x1d4),'children':_0x4c30ea['t'](_0x152bf3(0xd1))}),_0x4d2172(_0x152bf3(0x140),{'className':'univer-space-y-2','children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0xb7),'children':_0x4c30ea['t'](_0x152bf3(0x1c3))}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x1bc),'children':[_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x1eb),'children':[_0xc335bf(_0x152bf3(0x1fb),{'className':_0x152bf3(0xe6),'children':'1'}),_0x4c30ea['t'](_0x152bf3(0x1c5))]}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x1eb),'children':[_0xc335bf(_0x152bf3(0x1fb),{'className':_0x152bf3(0xe6),'children':'2'}),_0x4c30ea['t']('mcpConfig.configStep2')]}),_0x4d2172('div',{'className':_0x152bf3(0x1eb),'children':[_0xc335bf(_0x152bf3(0x1fb),{'className':_0x152bf3(0xe6),'children':'3'}),_0x4c30ea['t'](_0x152bf3(0x159))]})]})]})]}),_0x4d2172(_0x152bf3(0x140),{'className':'univer-space-y-2','children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0xb7),'children':_0x152bf3(0x100)}),_0xc335bf(_0x152bf3(0x140),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0xc335bf(_0x152bf3(0x1cf),{'className':_0x152bf3(0x160),'children':JSON[_0x152bf3(0x13b)]({'mcpServers':{'univer':{'url':_0x152bf3(0x1c4)+(_0x24b298||'<SESSION_ID>'),'type':_0x152bf3(0x174),'headers':{'Authorization':_0x152bf3(0x106)+(_0xe35b76||_0x152bf3(0x14f))}}}},null,0x2)})})]}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x14c),'children':[_0xc335bf('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x4c30ea['t'](_0x152bf3(0xd3))}),_0x4d2172('div',{'className':_0x152bf3(0x15d),'children':[_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x158),'children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0x19b)}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x133),'children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0xb8),'children':_0x152bf3(0x18e)}),_0xc335bf(_0x152bf3(0x140),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4c30ea['t']('mcpConfig.sessionIdDescription')})]})]}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x158),'children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0x19b)}),_0x4d2172('div',{'className':_0x152bf3(0x133),'children':[_0xc335bf('div',{'className':_0x152bf3(0xb8),'children':'Authorization:'}),_0xc335bf(_0x152bf3(0x140),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4c30ea['t'](_0x152bf3(0x165))})]})]})]})]})]})]}),_0xc335bf(_0x1fafdf,{'onClick':_0x42d6d9,'disabled':!_0x54c502||_0x549b52,'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':_0x549b52?_0x4d2172('span',{'className':_0x152bf3(0x1eb),'children':[_0xc335bf(_0x152bf3(0x1fb),{'children':'⟲'}),_0x4c30ea['t'](_0x152bf3(0xcd))]}):_0x4d2172(_0x152bf3(0x1fb),{'className':_0x152bf3(0x1eb),'children':[_0xc335bf(le,{}),_0x4c30ea['t'](_0x152bf3(0xc8))]})}),_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0xcf),'children':_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x176),'children':[_0xc335bf('span',{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x1be),'children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0xef),'children':_0x152bf3(0x148)}),_0x4d2172(_0x152bf3(0x140),{'children':['•',_0x4c30ea['t'](_0x152bf3(0x1e0))]}),_0x4d2172('div',{'children':['•',_0x4c30ea['t']('mcpConfig.note2')]})]})]})})]})})]});}const y=_0x1529b5(0x13a),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x1529b5(0x185)],tn=(_0x39a3b0,_0x492111,_0x3d20e1,_0x3a667e)=>{const _0x36216a=_0x1529b5;for(var _0x322fa4=_0x3a667e>0x1?void 0x0:_0x3a667e?rn(_0x492111,_0x3d20e1):_0x492111,_0x8eaf4b=_0x39a3b0[_0x36216a(0x10d)]-0x1,_0x12d444;_0x8eaf4b>=0x0;_0x8eaf4b--)(_0x12d444=_0x39a3b0[_0x8eaf4b])&&(_0x322fa4=_0x12d444(_0x322fa4)||_0x322fa4);return _0x322fa4;},d=(_0x6065e,_0x5a5e37)=>(_0x28115c,_0x3d83f0)=>_0x5a5e37(_0x28115c,_0x3d83f0,_0x6065e);const U=_0x1529b5(0x166),L='mcp-config-dialog';let I=class extends _0x48bc64{constructor(_0x581023,_0x5d86a7,_0x16f3e0,_0x1285de,_0x4e8d0,_0x596685,_0x4dcb50,_0x51b8ec,_0x195603,_0x4bc62f){const _0x1571a5=_0x1529b5;super(),x(this,_0x1571a5(0xca),new _0x4803e4(!0x1)),x(this,_0x1571a5(0x1ed),new _0x4803e4({})),x(this,_0x1571a5(0x114),new _0x4803e4({})),x(this,'_apiKey$',new _0x4803e4('')),x(this,_0x1571a5(0x104),async _0x371d5c=>{const _0x46ec10=_0x1571a5;var _0x250f61,_0x2a2d92;this[_0x46ec10(0xca)]['next'](!0x0);try{const _0x381470=await this[_0x46ec10(0xd6)](_0x371d5c);if(!_0x381470[_0x46ec10(0xf8)]){this['_messageService'][_0x46ec10(0x1ff)]({'type':_0x24b36a[_0x46ec10(0xeb)],'content':_0x381470['errorMessage']||this[_0x46ec10(0x1bb)]['t'](_0x46ec10(0x1b9))});return;}_0x371d5c[_0x46ec10(0xdf)]?await this[_0x46ec10(0xe2)][_0x46ec10(0x1a9)](U,_0x371d5c[_0x46ec10(0xdf)][_0x46ec10(0x1e1)]()):await this['_localStorageService'][_0x46ec10(0x1a7)](U),this[_0x46ec10(0x168)][_0x46ec10(0x124)](((_0x250f61=_0x371d5c[_0x46ec10(0xdf)])==null?void 0x0:_0x250f61[_0x46ec10(0x1e1)]())||''),this[_0x46ec10(0x14e)]['__setCustomHeaders']({'Authorization':_0x46ec10(0x106)+((_0x2a2d92=_0x371d5c[_0x46ec10(0xdf)])==null?void 0x0:_0x2a2d92[_0x46ec10(0x1e1)]())}),this[_0x46ec10(0x110)][_0x46ec10(0x1ff)]({'type':_0x24b36a['Success'],'content':this[_0x46ec10(0x1bb)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x1aea90=_0x46ec10;this[_0x1aea90(0xbc)][_0x1aea90(0x1f6)](L);},0x320);}catch(_0x2a5fec){this[_0x46ec10(0x108)]['error'](_0x46ec10(0x1cc),_0x2a5fec),this['_messageService'][_0x46ec10(0x1ff)]({'type':_0x24b36a[_0x46ec10(0xeb)],'content':this[_0x46ec10(0x1bb)]['t'](_0x46ec10(0x156))});}finally{this['_loading$']['next'](!0x1);}}),(this[_0x1571a5(0x15c)]=_0x581023,this[_0x1571a5(0xfe)]=_0x5d86a7,this[_0x1571a5(0x169)]=_0x16f3e0,this[_0x1571a5(0xe2)]=_0x1285de,this['_dialogService']=_0x4e8d0,this['_messageService']=_0x596685,this[_0x1571a5(0x1aa)]=_0x4dcb50,this[_0x1571a5(0x1bb)]=_0x51b8ec,this[_0x1571a5(0x108)]=_0x195603,this[_0x1571a5(0x14e)]=_0x4bc62f,this[_0x1571a5(0xdd)](),this[_0x1571a5(0xd5)](),this[_0x1571a5(0x16c)]());}[_0x1529b5(0x153)](){const _0x35289c=_0x1529b5,_0x16a5cf=this[_0x35289c(0x169)][_0x35289c(0xb0)](y);_0x16a5cf!=null&&_0x16a5cf[_0x35289c(0x1dd)]&&this[_0x35289c(0xbc)][_0x35289c(0x145)]({'id':L,'title':{'title':this[_0x35289c(0x1bb)]['t']('mcpConfig.title')},'children':{'label':_0x35289c(0x1bf)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x453fc1=_0x35289c;this[_0x453fc1(0xbc)]['close'](L);}});}['getCurrentConfig'](){return this['_mcpCoreConfig$']['value'];}[_0x1529b5(0x16c)](){const _0x1e21c6=_0x1529b5;this[_0x1e21c6(0x162)](this['_componentManager'][_0x1e21c6(0xbf)]('MCPConfigPanel',this[_0x1e21c6(0x149)]()));}[_0x1529b5(0x149)](){const _0x4a2fcb=_0x1529b5;return _0x514257(()=>{const _0x30ac1a=_0x5e29;var _0x2ce485,_0x39e114,_0x2f7244;return _0xc335bf(nn,{'config':this[_0x30ac1a(0x114)][_0x30ac1a(0x1f3)],'mcpCoreConfig':this[_0x30ac1a(0x1ed)][_0x30ac1a(0x1f3)],'currentApiKey$':this[_0x30ac1a(0x168)],'onSave':this[_0x30ac1a(0x104)],'loading':this[_0x30ac1a(0xca)][_0x30ac1a(0x1f3)],'connectionStatus$':(_0x2ce485=this[_0x30ac1a(0x14e)])==null?void 0x0:_0x2ce485[_0x30ac1a(0x1b8)],'connectionError$':(_0x39e114=this[_0x30ac1a(0x14e)])==null?void 0x0:_0x39e114[_0x30ac1a(0x154)],'currentSessionId$':(_0x2f7244=this[_0x30ac1a(0x14e)])==null?void 0x0:_0x2f7244[_0x30ac1a(0xd8)]});},this[_0x4a2fcb(0x15c)]);}[_0x1529b5(0xdd)](){const _0x3f5638=_0x1529b5;this[_0x3f5638(0x162)](this[_0x3f5638(0x169)]['subscribeConfigValue$'](_0x31e1de)[_0x3f5638(0xec)](_0x4608f7=>{const _0x421553=_0x3f5638;this['_mcpCoreConfig$'][_0x421553(0x124)](_0x4608f7||{});}));const _0x14da4c=this[_0x3f5638(0x169)][_0x3f5638(0xb0)](_0x31e1de);this['_mcpCoreConfig$'][_0x3f5638(0x124)](_0x14da4c||{}),this[_0x3f5638(0x162)](this['_configService'][_0x3f5638(0x1ad)](y)[_0x3f5638(0xec)](_0x3d3b15=>{const _0x49dbf8=_0x3f5638;this[_0x49dbf8(0x114)][_0x49dbf8(0x124)](_0x3d3b15||{});}));const _0x1ea04b=this[_0x3f5638(0x169)]['getConfig'](y);this[_0x3f5638(0x114)]['next'](_0x1ea04b||{});}async[_0x1529b5(0xd5)](){const _0x4e2d9a=_0x1529b5,_0x23a3c2=this[_0x4e2d9a(0x169)][_0x4e2d9a(0xb0)](y);if(!(_0x23a3c2!=null&&_0x23a3c2['showDeveloperTools']))return;const _0x3dd642=await this[_0x4e2d9a(0xe2)][_0x4e2d9a(0x132)](U);_0x3dd642&&(this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x4e2d9a(0x106)+_0x3dd642}),this[_0x4e2d9a(0x168)][_0x4e2d9a(0x124)](_0x3dd642));}async[_0x1529b5(0xd6)](_0x285663){const _0x4ddeb1=_0x1529b5;if(!_0x285663['apiKey']||_0x285663['apiKey'][_0x4ddeb1(0x1e1)]()[_0x4ddeb1(0x10d)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x4ddeb1(0x1bb)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x285663[_0x4ddeb1(0xdf)][_0x4ddeb1(0x1e1)]()[_0x4ddeb1(0x10d)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4ddeb1(0x1bb)]['t'](_0x4ddeb1(0x1d0))};try{const _0x23a43e=await this[_0x4ddeb1(0x15c)][_0x4ddeb1(0x1d5)](_0x178875)[_0x4ddeb1(0xe1)](_0x285663[_0x4ddeb1(0xdf)]['trim']());return _0x23a43e[_0x4ddeb1(0xf8)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x23a43e['error']||this[_0x4ddeb1(0x1bb)]['t'](_0x4ddeb1(0x116))};}catch(_0x18d563){return console['warn']('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x18d563),{'isValid':!0x0};}}};I=tn([d(0x0,_0x3196b9(_0x772e7d)),d(0x1,_0x6c712),d(0x2,_0x4468c3),d(0x3,_0x4818bf),d(0x4,_0xec1ea1),d(0x5,_0x2b1721),d(0x6,_0x3196b9(_0x429ef9)),d(0x7,_0x3196b9(_0x2c192b)),d(0x8,_0x284570),d(0x9,_0x3196b9(_0x178875))],I);const V={'id':_0x1529b5(0x1df),'type':_0x998629['COMMAND'],'handler':async(_0x483473,_0x4a6781)=>(_0x483473[_0x1529b5(0x1d5)](I)[_0x1529b5(0x153)](),!0x0)};function pe(_0x4149ea,_0x20dcb9){const _0x5cce1a=_0x1529b5;switch(_0x4149ea){case _0x3b09c9['DISCONNECTED']:return'mcpStatus.disconnected';case _0x3b09c9[_0x5cce1a(0x15b)]:return _0x5cce1a(0xad);case _0x3b09c9[_0x5cce1a(0x1a8)]:return _0x5cce1a(0x14b);case _0x3b09c9['FAILED']:switch(_0x20dcb9){case _0x7682eb[_0x5cce1a(0x13c)]:return'mcpStatus.unauthorized';case _0x7682eb[_0x5cce1a(0xf1)]:return _0x5cce1a(0xf7);case _0x7682eb[_0x5cce1a(0x197)]:return _0x5cce1a(0xc1);case _0x7682eb[_0x5cce1a(0x117)]:return _0x5cce1a(0x175);default:return _0x5cce1a(0x1e7);}case _0x3b09c9[_0x5cce1a(0xee)]:return _0x5cce1a(0xba);default:return _0x5cce1a(0x172);}}function on(_0x13e5d2,_0x2b08cf,_0x5a1c49,_0x4536bd=!0x0){const _0x4b44db=_0x1529b5,_0x32abce=pe(_0x13e5d2,_0x2b08cf),_0x16ab34=_0x5a1c49['t'](_0x32abce);return _0x4536bd?_0x13e5d2===_0x3b09c9['DISCONNECTED']&&_0x2b08cf===_0x7682eb[_0x4b44db(0x13c)]?_0x16ab34+_0x4b44db(0x13f)+_0x5a1c49['t'](_0x4b44db(0x16b)):_0x13e5d2===_0x3b09c9['CONNECTED']?''+_0x16ab34:_0x13e5d2===_0x3b09c9[_0x4b44db(0x10c)]||_0x13e5d2===_0x3b09c9[_0x4b44db(0x1a2)]?_0x16ab34+'\x20-\x20'+_0x5a1c49['t']('mcpStatus.clickToConnect'):_0x16ab34:_0x16ab34;}function sn(_0x4b7a74){const _0x54df5c=_0x1529b5;switch(_0x4b7a74){case _0x3b09c9['CONNECTED']:return _0x54df5c(0xff);case _0x3b09c9['CONNECTING']:case _0x3b09c9[_0x54df5c(0xee)]:return _0x54df5c(0x17b);case _0x3b09c9[_0x54df5c(0x1a2)]:case _0x3b09c9['DISCONNECTED']:return _0x54df5c(0x121);default:return'univer-text-gray-500';}}function cn(_0x402c8b){const _0x5691ca=_0x1529b5,{status$:_0x29abc1,error$:_0x4cc70e,onConfigure:_0x38f157,showClickable:_0x2a275d=!0x0}=_0x402c8b,_0x4d140c=_0x4d8a12(_0x29abc1,_0x3b09c9[_0x5691ca(0x10c)]),_0x1b5bab=_0x4d8a12(_0x4cc70e,_0x7682eb['NONE']),_0x4c1112=_0x2a13c4(_0x2c192b),_0x40ffb7=_0x4d140c===_0x3b09c9[_0x5691ca(0x1a8)];_0x4d140c===_0x3b09c9['CONNECTING']||_0x3b09c9['RETRYING'];const _0x577a29=_0x4c1112['t'](pe(_0x4d140c,_0x1b5bab)),_0x3d374f=on(_0x4d140c,_0x1b5bab,_0x4c1112,_0x2a275d),_0x4073f6=sn(_0x4d140c),_0x5cc639=_0x40ffb7?_0xc335bf(ge,{}):_0xc335bf(de,{}),_0x314a21=_0x2180bb(()=>{_0x2a275d&&_0x38f157&&_0x38f157();},[_0x2a275d,_0x38f157]);function _0x2966a3(){const _0x52edb1=_0x5691ca;return _0x4d2172(_0x52edb1(0x140),{'className':_0x2f53ef(_0x52edb1(0xb1),_0x2a275d&&_0x38f157&&_0x52edb1(0x1de)),'role':_0x52edb1(0x1ce),'onClick':_0x2a275d&&_0x38f157?_0x314a21:void 0x0,'children':[_0xc335bf(_0x52edb1(0x140),{'className':_0x2f53ef(_0x52edb1(0xed),_0x4073f6),'children':_0x5cc639}),_0xc335bf(_0x52edb1(0x140),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x577a29})]});}return _0xc335bf(_0x1897b9,{'title':_0x3d374f,'placement':_0x5691ca(0x186),'children':_0x2966a3()});}function _0x2f92(){const _0x100d1b=['您的\x20API\x20密钥将在此浏览器中本地存储','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','MCPConfigPanel','已连接','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','white','mcpConfig.configStepTitle','https://mcp.univer.ai/mcp/?univer_session_id=','mcpConfig.configStep1','0\x200\x2016\x2016','svg','univer-bg-red-500','Connected','_blank','off-line-icon','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-flex\x20univer-items-center\x20univer-gap-3','button','pre','mcpConfig.validation.apiKeyTooShort','启用身份验证以获得安全连接','MCP:\x20超出最大重试次数','配置无效','univer-text-xs\x20univer-text-gray-600','get','Click\x20to\x20connect\x20MCP','Save\x20Configuration','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','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','_initAutoConnect','配置保存成功','几秒钟内获取您的\x20API\x20密钥','showDeveloperTools','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','mcp-ui.command.openConfigPanel','mcpConfig.note1','trim','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','url(#on-line-icon_clip0_910_349)','MCP\x20Connection\x20Failed','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','MCP\x20Retrying...','mcpStatus.failed','registerCommand','assign','MCP\x20客户端配置','univer-flex\x20univer-items-center\x20univer-gap-2','map','_mcpCoreConfig$','API\x20密钥','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','check-mark-icon','forEach','univer-flex\x20univer-flex-wrap\x20univer-gap-2','value','off','MCP_UI_PLUGIN','close','mcpConfig.apiApplyInfo.title','What\x20is\x20API\x20Key?','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','_commandService','span','API\x20key\x20is\x20required','706898TUultF','1166120JsKNOP','show','toString','MCP:\x20网络错误','什么是\x20API\x20密钥?','mcpStatus.connecting','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20saved\x20successfully','getConfig','univer-flex\x20univer-items-center','univer-text-xs\x20univer-text-gray-500','univer.ai','push','7648123USBvil','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-text-xs\x20univer-font-medium\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','mcpStatus.retrying','将以下配置添加到您的\x20MCP\x20客户端设置中:','_dialogService','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20连接失败','register','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpStatus.networkError','重连中...','close-icon','配置更改将立即生效','onStarting','_initializeCommands','evenodd','mcpConfig.save','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_loading$','defineProperty','_handleConfigure','mcpConfig.saving','MenuIcon','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','MCP\x20Connected','mcpConfig.configInstructions','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcpConfig.configParameters','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','_loadStoredApiKey','_validateConfig','Enable\x20authentication\x20for\x20secure\x20connections','sessionId$','url(#$1','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','fill','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','_initConfigSync','0\x200\x2017\x2016','apiKey','random','validateApiKey','_localStorageService','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mergeMenu','substring','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','mcpConfig.title','registerComponent','path','MCP:\x20Unauthorized','Error','subscribe','univer-mr-2\x20univer-flex\x20univer-text-xl','RETRYING','univer-font-medium','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','SESSION_ID_OCCUPIED','MCP\x20Client\x20Configuration','HEADER_MENU','use','连接中...','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','mcpStatus.sessionOccupied','isValid','_connectionController','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','3zsjrCW','mcpConfig.connectionStatus.failed','1em','_uiPartsService','univer-text-green-500','MCP\x20Configuration','_config','attrs','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','_handleConfigSave','BUTTON','Bearer\x20','text','_logService','noopener\x20noreferrer','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','univer-size-4','DISCONNECTED','length','API\x20密钥不能为空','Enable\x20Authentication','_messageService','https://console.univer.plus','colorChannel1','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','_config$','7064991LDAOoD','mcpConfig.validation.invalidApiKey','MAX_RETRIES_EXCEEDED','clipPath','setConfig','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','defs','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','UniverIcon','Connection\x20Failed','includes','Disconnected','univer-text-red-500','entries','网络连接错误,请检查您的网络连接','next','_menuManagerService','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','API\x20key\x20with\x20Bearer\x20prefix.','M0\x200H16V16H0z','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','MCP\x20状态未知','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connecting...','string','MCP:\x20未授权','MCP:\x20会话\x20ID\x20已被占用','mcpConfig.connectionStatus.retrying','您的\x20API\x20密钥安全存储在本地存储中','getItem','univer-min-w-0\x20univer-flex-1','xlink:href','88aufbdK','pluginName','univer-space-y-5','会话ID','http://www.w3.org/2000/svg','mcp-ui.config','stringify','UNAUTHORIZED','Failed\x20to\x20save\x20configuration','round','\x20-\x20','div','复制以下\x20JSON\x20配置','配置保存失败','idSuffix','带有\x20Bearer\x20前缀的\x20API\x20密钥。','open','MCP\x20重连中...','currentColor','Configuration\x20Notes:','_createConfigPanelComponent','Univer\x20AI\x20Console','mcpStatus.connected','univer-space-y-3','点击连接\x20MCP','_mcpConnectionController','<API_KEY>','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','Configuration\x20Parameters:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','showConfigPanel','connectionError$','children','mcpConfig.configError','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.configStep3','API\x20密钥无效,请检查密钥是否正确','CONNECTING','_injector','univer-space-y-2','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-bg-blue-500','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-text-sm\x20univer-text-gray-500','disposeWithMe','univer-text-blue-600','mcpConfig.connectionStatus.connecting','mcpConfig.authorizationDescription','mcp.apiKey','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','_apiKey$','_configService','271090ujerfj','mcpStatus.clickToConfigure','_registerComponent','univer-space-y-4','MCP:\x20Session\x20ID\x20Occupied','add','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAutoConnect','mcpStatus.unknown','OffLineIcon','http','mcpStatus.maxRetriesExceeded','univer-flex\x20univer-gap-3','MCP:\x20Network\x20Error','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','symbol','API\x20Key','univer-text-yellow-500','6304584QklmIV','mcpServerUrl','univer-text-gray-400','_initializeMenus','重启您的\x20MCP\x20客户端以使配置生效','Retrying...','6puqKFg','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','NONE','getOwnPropertyDescriptor','bottom','会话\x20ID\x20已被占用,请稍后再试','defIds','Univer\x20AI\x20控制台','请输入您的\x20API\x20密钥','mcpConfig.connectionInfo','replace','MCP\x20Unknown\x20Status','univer_session_id:','Saving...','univer-bg-green-500','univer-shrink-0\x20univer-text-red-500','_initStatusComponent','mcpConfig.description','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','on-line-icon_clip0_910_349','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','NETWORK_ERROR','off-line-icon_clip0_910_343','保存中...','https://console.univer.ai','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Enter\x20your\x20API\x20key','univer-text-sm\x20univer-font-medium','mcpConfig.connectionError.networkError','API\x20密钥长度至少需要\x2010\x20位','tag','help-icon','FAILED','univer.plus','mcpConfig.apiApplyInfo.univerAiLabel','mcpConfig.connectionError.maxRetriesExceeded','Invalid\x20configuration','removeItem','CONNECTED','setItem','_componentManager','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','配置参数:','subscribeConfigValue$','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','none','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','displayName','MCP\x20Connecting...','mask','Copy\x20the\x20JSON\x20configuration\x20below','1133246wukVly','点击配置\x20MCP','11tlbbIy','connectionStatus$','mcpConfig.validation.invalidConfig','保存配置','_localeService','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600'];_0x2f92=function(){return _0x100d1b;};return _0x2f92();}var an=Object[_0x1529b5(0x185)],ln=(_0x3a4762,_0x4572d2,_0x32e885,_0x34f6b3)=>{const _0x3da19a=_0x1529b5;for(var _0xa090ad=_0x34f6b3>0x1?void 0x0:_0x34f6b3?an(_0x4572d2,_0x32e885):_0x4572d2,_0x38f076=_0x3a4762[_0x3da19a(0x10d)]-0x1,_0x537f4d;_0x38f076>=0x0;_0x38f076--)(_0x537f4d=_0x3a4762[_0x38f076])&&(_0xa090ad=_0x537f4d(_0xa090ad)||_0xa090ad);return _0xa090ad;},M=(_0x303be2,_0x2b9b2c)=>(_0x432280,_0x2e2816)=>_0x2b9b2c(_0x432280,_0x2e2816,_0x303be2);let O=class extends _0x48bc64{constructor(_0x545be7,_0x22985a,_0x47d837,_0x31550e){const _0xb2a929=_0x1529b5;super(),this['_injector']=_0x545be7,this[_0xb2a929(0xf9)]=_0x22985a,this[_0xb2a929(0xfe)]=_0x47d837,this['_configService']=_0x31550e,this[_0xb2a929(0x1da)](),this[_0xb2a929(0x192)]();}['_initAutoConnect'](){const _0xca72e4=_0x1529b5,_0x4e8811=this[_0xca72e4(0x169)][_0xca72e4(0xb0)](y);_0x4e8811!=null&&_0x4e8811[_0xca72e4(0x1dd)]&&(this['_connectionController'][_0xca72e4(0x171)]=!0x1);}[_0x1529b5(0x192)](){const _0x2a7cae=_0x1529b5,_0x551277=this[_0x2a7cae(0x169)][_0x2a7cae(0xb0)](y);(_0x551277==null?void 0x0:_0x551277['showStatus'])!==!0x1&&this[_0x2a7cae(0x162)](this[_0x2a7cae(0xfe)][_0x2a7cae(0xe8)](_0xae7773[_0x2a7cae(0xf3)],()=>{const _0x2481a7=_0x2a7cae;var _0x28523e;return _0x514257(un({'status$':this[_0x2481a7(0xf9)][_0x2481a7(0x1b8)],'error$':this[_0x2481a7(0xf9)][_0x2481a7(0x154)],'onConfigure':()=>this[_0x2481a7(0xcc)](),'showClickable':(_0x28523e=_0x551277==null?void 0x0:_0x551277[_0x2481a7(0x1dd)])!=null?_0x28523e:!0x1}),this[_0x2481a7(0x15c)]);}));}[_0x1529b5(0xcc)](){const _0x5bb6b7=_0x1529b5;this['_injector'][_0x5bb6b7(0x1d5)](I)[_0x5bb6b7(0x153)]();}};O=ln([M(0x0,_0x3196b9(_0x772e7d)),M(0x1,_0x3196b9(_0x178875)),M(0x2,_0x6c712),M(0x3,_0x4468c3)],O);function un(_0x18de36){const {status$:_0x58e728,error$:_0x4934b1,onConfigure:_0x2e2fb2,showClickable:_0x53bb48}=_0x18de36;return function(){return _0xc335bf(cn,{'status$':_0x58e728,'error$':_0x4934b1,'onConfigure':_0x2e2fb2,'showClickable':_0x53bb48});};}function vn(_0x35a978){const _0x2cf859=_0x1529b5;return{'id':V['id'],'type':_0x381790[_0x2cf859(0x105)],'icon':_0x2cf859(0xce),'title':_0x2cf859(0xe7),'tooltip':_0x2cf859(0xe7)};}const dn={[_0x2d214b['OTHERS']]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object['getOwnPropertyDescriptor'],pn=(_0x1e2f71,_0x56e5fb,_0x3d9f18,_0x5478a1)=>{const _0x5a964a=_0x1529b5;for(var _0x3b286f=_0x5478a1>0x1?void 0x0:_0x5478a1?gn(_0x56e5fb,_0x3d9f18):_0x56e5fb,_0x146df1=_0x1e2f71[_0x5a964a(0x10d)]-0x1,_0x5661f0;_0x146df1>=0x0;_0x146df1--)(_0x5661f0=_0x1e2f71[_0x146df1])&&(_0x3b286f=_0x5661f0(_0x3b286f)||_0x3b286f);return _0x3b286f;},re=(_0x44f95e,_0x3aa49a)=>(_0x4efc2b,_0x297e62)=>_0x3aa49a(_0x4efc2b,_0x297e62,_0x44f95e);let D=class extends _0x48bc64{constructor(_0x27838d,_0x184983){const _0x1fe1c1=_0x1529b5;super(),this['_commandService']=_0x27838d,this[_0x1fe1c1(0x125)]=_0x184983,this['_initializeCommands'](),this[_0x1fe1c1(0x17f)]();}[_0x1529b5(0xc6)](){const _0x27f4f5=_0x1529b5;[V][_0x27f4f5(0x1f1)](_0x23d180=>{const _0x5acf9d=_0x27f4f5;this[_0x5acf9d(0x162)](this[_0x5acf9d(0x1fa)][_0x5acf9d(0x1e8)](_0x23d180));});}[_0x1529b5(0x17f)](){const _0x1a3af2=_0x1529b5;this[_0x1a3af2(0x125)][_0x1a3af2(0xe4)](dn);}};D=pn([re(0x0,_0x4f2ba8),re(0x1,_0x5b13d9)],D);const Mn={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x1529b5(0x1b2),'connected':_0x1529b5(0xd0),'failed':_0x1529b5(0x1e4),'retrying':_0x1529b5(0x1e6),'unknown':_0x1529b5(0x18d),'unauthorized':_0x1529b5(0xea),'sessionOccupied':_0x1529b5(0x16e),'networkError':_0x1529b5(0x177),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x1529b5(0x1d6),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x1529b5(0x100),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x1529b5(0x17a),'apiKeyPlaceholder':_0x1529b5(0x19c),'apiKeyHint':_0x1529b5(0x170),'enableAuth':_0x1529b5(0x10f),'enableAuthHint':_0x1529b5(0xd7),'connectionInfo':_0x1529b5(0xf2),'mcpClientConfig':_0x1529b5(0xf2),'configInstructions':_0x1529b5(0x113),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x1529b5(0x1b4),'configStep2':_0x1529b5(0xae),'configStep3':_0x1529b5(0x1d9),'sessionId':'Session\x20ID','sessionIdDescription':_0x1529b5(0x183),'authorizationDescription':_0x1529b5(0x127),'configParameters':_0x1529b5(0x151),'maxRetries':'Max\x20Retries','save':_0x1529b5(0x1d7),'saving':_0x1529b5(0x18f),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x1529b5(0x157),'configSaved':_0x1529b5(0xaf),'configError':_0x1529b5(0x13d),'apiApplyInfo':{'title':_0x1529b5(0x1f8),'description':_0x1529b5(0x152),'univerAiLabel':_0x1529b5(0x14a),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x1529b5(0x1fc),'apiKeyTooShort':_0x1529b5(0x194),'invalidConfig':_0x1529b5(0x1a6),'invalidApiKey':_0x1529b5(0xd4)},'connectionStatus':{'disconnected':_0x1529b5(0x120),'connecting':_0x1529b5(0x12c),'connected':_0x1529b5(0x1c9),'failed':_0x1529b5(0x11e),'retrying':_0x1529b5(0x181)},'connectionError':{'unauthorized':_0x1529b5(0xb6),'sessionOccupied':_0x1529b5(0xbd),'networkError':_0x1529b5(0x12b),'maxRetriesExceeded':_0x1529b5(0x1c1)}}},An={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':_0x1529b5(0xbe),'retrying':_0x1529b5(0x146),'unknown':_0x1529b5(0x12a),'unauthorized':_0x1529b5(0x12e),'sessionOccupied':_0x1529b5(0x12f),'networkError':_0x1529b5(0xab),'maxRetriesExceeded':_0x1529b5(0x1d2),'clickToConnect':_0x1529b5(0x14d),'clickToConfigure':_0x1529b5(0x1b6)},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x1529b5(0x1ee),'apiKeyPlaceholder':_0x1529b5(0x18a),'apiKeyHint':_0x1529b5(0x1bd),'enableAuth':'启用身份验证','enableAuthHint':_0x1529b5(0x1d1),'connectionInfo':_0x1529b5(0x1ea),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x1529b5(0xbb),'configStepTitle':'配置步骤:','configStep1':_0x1529b5(0x141),'configStep2':_0x1529b5(0x15e),'configStep3':_0x1529b5(0x180),'sessionId':_0x1529b5(0x138),'sessionIdDescription':_0x1529b5(0x1b0),'authorizationDescription':_0x1529b5(0x144),'configParameters':_0x1529b5(0x1ac),'maxRetries':'最大重试次数','save':_0x1529b5(0x1ba),'saving':_0x1529b5(0x199),'note1':_0x1529b5(0xc4),'note2':_0x1529b5(0x131),'configSaved':_0x1529b5(0x1db),'configError':_0x1529b5(0x142),'apiApplyInfo':{'title':_0x1529b5(0xac),'description':_0x1529b5(0xd2),'univerAiLabel':_0x1529b5(0x189),'getStarted':_0x1529b5(0x1dc)},'validation':{'apiKeyRequired':_0x1529b5(0x10e),'apiKeyTooShort':_0x1529b5(0x19f),'invalidConfig':_0x1529b5(0x1d3),'invalidApiKey':_0x1529b5(0x15a)},'connectionStatus':{'disconnected':'未连接','connecting':_0x1529b5(0xf5),'connected':_0x1529b5(0x1c0),'failed':'连接失败','retrying':_0x1529b5(0xc2)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x1529b5(0x187),'networkError':_0x1529b5(0x123),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var fn=Object[_0x1529b5(0xcb)],hn=Object['getOwnPropertyDescriptor'],Cn=(_0xe64e11,_0x1a2c9c,_0x472817)=>_0x1a2c9c in _0xe64e11?fn(_0xe64e11,_0x1a2c9c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x472817}):_0xe64e11[_0x1a2c9c]=_0x472817,mn=(_0x1837ea,_0x3d5db4,_0x11727f,_0x5064ec)=>{for(var _0x1dd328=_0x5064ec>0x1?void 0x0:_0x5064ec?hn(_0x3d5db4,_0x11727f):_0x3d5db4,_0x44d5a2=_0x1837ea['length']-0x1,_0x23c8d5;_0x44d5a2>=0x0;_0x44d5a2--)(_0x23c8d5=_0x1837ea[_0x44d5a2])&&(_0x1dd328=_0x23c8d5(_0x1dd328)||_0x1dd328);return _0x1dd328;},P=(_0x44af86,_0x5b0c11)=>(_0x3da71e,_0x34cf77)=>_0x5b0c11(_0x3da71e,_0x34cf77,_0x44af86),_n=(_0x165d73,_0x2b7970,_0x56a1f5)=>Cn(_0x165d73,_0x2b7970+'',_0x56a1f5);let j=class extends _0x4b4398{constructor(_0x4da6aa=ie,_0x4ac114,_0x5cacd9,_0x1104dc,_0x57d601,_0x5a23fe){const _0x2b0c25=_0x1529b5;super(),this[_0x2b0c25(0x101)]=_0x4da6aa,this[_0x2b0c25(0x15c)]=_0x4ac114,this[_0x2b0c25(0x169)]=_0x5cacd9,this[_0x2b0c25(0xfe)]=_0x1104dc,this[_0x2b0c25(0xe2)]=_0x57d601,this[_0x2b0c25(0x1bb)]=_0x5a23fe;const {..._0x52019f}=_0x403799({},ie,this[_0x2b0c25(0x101)]);this['_configService'][_0x2b0c25(0x119)](y,_0x52019f);}async[_0x1529b5(0xc5)](){const _0x3e7306=_0x1529b5,_0x3f3ca9=[[O],[I],[D]];this[_0x3e7306(0x15c)]['has'](_0x490fbe)||_0x3f3ca9[_0x3e7306(0xb4)]([_0x490fbe,{'useClass':_0x56fc21}]),_0x3f3ca9['forEach'](_0x2fb8d3=>this[_0x3e7306(0x15c)][_0x3e7306(0x16f)](_0x2fb8d3)),this[_0x3e7306(0x15c)][_0x3e7306(0x1d5)](O),this[_0x3e7306(0x15c)][_0x3e7306(0x1d5)](I),this[_0x3e7306(0x15c)][_0x3e7306(0x1d5)](D);}};_n(j,_0x1529b5(0x136),_0x1529b5(0x1f5)),j=mn([_0x51f2fd(_0x238564),P(0x1,_0x3196b9(_0x772e7d)),P(0x2,_0x4468c3),P(0x3,_0x6c712),P(0x4,_0x4818bf),P(0x5,_0x3196b9(_0x2c192b))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
1
+ const _0x4bd18a=_0x2234;(function(_0x3b7cd3,_0x52f7fc){const _0x4a3073=_0x2234,_0x49fbc8=_0x3b7cd3();while(!![]){try{const _0x2f55af=parseInt(_0x4a3073(0x9b))/0x1*(-parseInt(_0x4a3073(0x1b8))/0x2)+parseInt(_0x4a3073(0x184))/0x3+-parseInt(_0x4a3073(0x8f))/0x4+-parseInt(_0x4a3073(0x175))/0x5+-parseInt(_0x4a3073(0x198))/0x6*(parseInt(_0x4a3073(0x1c9))/0x7)+-parseInt(_0x4a3073(0xa5))/0x8+parseInt(_0x4a3073(0xff))/0x9*(parseInt(_0x4a3073(0xc7))/0xa);if(_0x2f55af===_0x52f7fc)break;else _0x49fbc8['push'](_0x49fbc8['shift']());}catch(_0x53a12a){_0x49fbc8['push'](_0x49fbc8['shift']());}}}(_0x5c13,0xc0991));var Pe=Object[_0x4bd18a(0x108)],Ee=(_0x40bf28,_0x3d15d8,_0x554750)=>_0x3d15d8 in _0x40bf28?Pe(_0x40bf28,_0x3d15d8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x554750}):_0x40bf28[_0x3d15d8]=_0x554750,x=(_0x2b393d,_0x5134a8,_0x105aaa)=>Ee(_0x2b393d,typeof _0x5134a8!='symbol'?_0x5134a8+'':_0x5134a8,_0x105aaa);import{LocaleService as _0x18be6e,Inject as _0x161217,Injector as _0x6b968d,IConfigService as _0x5bff8a,ILocalStorageService as _0x54681b,ILogService as _0x42d532,Disposable as _0x14bc90,CommandType as _0x56be3f,ICommandService as _0x2ae9d3,DependentOn as _0x23f8e4,Plugin as _0x459eef,merge as _0x469321}from'@univerjs/core';import{jsxs as _0x27facf,jsx as _0x384df3}from'react/jsx-runtime';import{MCPConnectionStatus as _0x541dee,MCPConnectionError as _0xda36e4,MCPConnectionController as _0x3d1ecc,MCP_PLUGIN_CONFIG_KEY as _0x28f147,UniverMCPPlugin as _0x32d088}from'@univerjs-pro/mcp';import{clsx as _0x5b5d55,Input as _0x1df360,Button as _0x1698d4,MessageType as _0x3c6573,Tooltip as _0x4852fd}from'@univerjs/design';import{useDependency as _0x5e811c,useObservable as _0x2e1530,IUIPartsService as _0x26147f,IDialogService as _0x13bce1,IMessageService as _0x5a97f8,ComponentManager as _0x5543a6,connectInjector as _0x51e6a9,BuiltInUIPart as _0x21b956,MenuItemType as _0x47c19c,RibbonStartGroup as _0x329ade,IMenuManagerService as _0x1665ba}from'@univerjs/ui';function _0x2234(_0x1149bf,_0x94c17a){const _0x5c13c7=_0x5c13();return _0x2234=function(_0x2234ab,_0x379e18){_0x2234ab=_0x2234ab-0x76;let _0x142587=_0x5c13c7[_0x2234ab];return _0x142587;},_0x2234(_0x1149bf,_0x94c17a);}import{BehaviorSubject as _0x14f9cb}from'rxjs';import{useRef as _0x1c4ef6,createElement as _0x597461,forwardRef as _0xbf84ac,useState as _0x51d8fe,useCallback as _0x2c492f}from'react';import{ISocketService as _0x491725,WebSocketService as _0xfbf0ff}from'@univerjs/network';function b({ref:_0x1b77ef,..._0x61f9e8}){const _0x15a960=_0x4bd18a,{icon:_0x1aebba,id:_0x46b468,className:_0x2e19e9,extend:_0x16061b,..._0x342016}=_0x61f9e8,_0x231679=(_0x15a960(0x159)+_0x46b468+'\x20'+(_0x2e19e9||''))[_0x15a960(0xb8)](),_0xe3b9ee=_0x1c4ef6('_'+We());return ae(_0x1aebba,''+_0x46b468,{'defIds':_0x1aebba[_0x15a960(0xeb)],'idSuffix':_0xe3b9ee[_0x15a960(0x1bd)]},{'ref':_0x1b77ef,'className':_0x231679,..._0x342016},_0x16061b);}function ae(_0x338982,_0x2854ec,_0x51e72b,_0x43ce83,_0x4a27d9){const _0x33bc4a=_0x4bd18a;return _0x597461(_0x338982[_0x33bc4a(0xfb)],{'key':_0x2854ec,...Ye(_0x338982,_0x51e72b,_0x4a27d9),..._0x43ce83},(Ze(_0x338982,_0x51e72b)[_0x33bc4a(0x121)]||[])[_0x33bc4a(0x14e)]((_0x54af24,_0x54ce1a)=>ae(_0x54af24,_0x2854ec+'-'+_0x338982[_0x33bc4a(0xfb)]+'-'+_0x54ce1a,_0x51e72b,void 0x0,_0x4a27d9)));}function Ye(_0x260f05,_0x4bd231,_0x2fc99c){const _0x4382c2=_0x4bd18a,_0x409f70={..._0x260f05[_0x4382c2(0x103)]};_0x2fc99c!=null&&_0x2fc99c['colorChannel1']&&_0x409f70['fill']===_0x4382c2(0x181)&&(_0x409f70[_0x4382c2(0x141)]=_0x2fc99c[_0x4382c2(0x181)]),_0x260f05[_0x4382c2(0xfb)]==='mask'&&_0x409f70['id']&&(_0x409f70['id']=_0x409f70['id']+_0x4bd231[_0x4382c2(0x199)]),Object[_0x4382c2(0xd6)](_0x409f70)[_0x4382c2(0x9d)](([_0x18b550,_0x381528])=>{const _0x9eafde=_0x4382c2;_0x18b550==='mask'&&typeof _0x381528=='string'&&(_0x409f70[_0x18b550]=_0x381528[_0x9eafde(0x8e)](/url\(#(.*)\)/,_0x9eafde(0x92)+_0x4bd231[_0x9eafde(0x199)]+')'));});const {defIds:_0x4d3b54}=_0x4bd231;return!_0x4d3b54||_0x4d3b54[_0x4382c2(0xaa)]===0x0||(_0x260f05[_0x4382c2(0xfb)]==='use'&&_0x409f70[_0x4382c2(0xb2)]&&(_0x409f70[_0x4382c2(0xb2)]=_0x409f70[_0x4382c2(0xb2)]+_0x4bd231['idSuffix']),Object[_0x4382c2(0xd6)](_0x409f70)[_0x4382c2(0x9d)](([_0x1de4e8,_0x5105dc])=>{const _0x75cbb9=_0x4382c2;typeof _0x5105dc=='string'&&(_0x409f70[_0x1de4e8]=_0x5105dc[_0x75cbb9(0x8e)](/url\(#(.*)\)/,_0x75cbb9(0x92)+_0x4bd231['idSuffix']+')'));})),_0x409f70;}function Ze(_0x1fe9b6,_0x539929){const _0x106c9e=_0x4bd18a;var _0x1bc35e;const {defIds:_0x3dfe4f}=_0x539929;return!_0x3dfe4f||_0x3dfe4f[_0x106c9e(0xaa)]===0x0?_0x1fe9b6:_0x1fe9b6['tag']==='defs'&&((_0x1bc35e=_0x1fe9b6[_0x106c9e(0x121)])!=null&&_0x1bc35e[_0x106c9e(0xaa)])?{..._0x1fe9b6,'children':_0x1fe9b6['children'][_0x106c9e(0x14e)](_0x3bc8ca=>typeof _0x3bc8ca['attrs']['id']==_0x106c9e(0xde)&&_0x3dfe4f&&_0x3dfe4f[_0x106c9e(0xa9)](_0x3bc8ca[_0x106c9e(0x103)]['id'])?{..._0x3bc8ca,'attrs':{..._0x3bc8ca[_0x106c9e(0x103)],'id':_0x3bc8ca['attrs']['id']+_0x539929[_0x106c9e(0x199)]}}:_0x3bc8ca)}:_0x1fe9b6;}function We(){const _0x33a6f1=_0x4bd18a;return Math[_0x33a6f1(0x12a)]()[_0x33a6f1(0xa1)](0x24)[_0x33a6f1(0x10a)](0x2,0x8);}b[_0x4bd18a(0x114)]=_0x4bd18a(0xa0);const qe={'tag':'svg','attrs':{'xmlns':_0x4bd18a(0x152),'fill':_0x4bd18a(0x1bc),'viewBox':_0x4bd18a(0x15a),'width':_0x4bd18a(0x15f),'height':_0x4bd18a(0x15f)},'children':[{'tag':_0x4bd18a(0x78),'attrs':{'fill':'currentColor','d':_0x4bd18a(0x1af),'fillRule':_0x4bd18a(0x1b9),'clipRule':'evenodd'}}]},le=_0xbf84ac(function(_0x569f63,_0x1a4f41){const _0x13abf7=_0x4bd18a;return _0x597461(b,Object[_0x13abf7(0xdb)]({},_0x569f63,{'id':_0x13abf7(0xc5),'ref':_0x1a4f41,'icon':qe}));});le[_0x4bd18a(0x114)]=_0x4bd18a(0xe9);const Xe={'tag':_0x4bd18a(0x166),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x4bd18a(0x15f),'height':_0x4bd18a(0x15f)},'children':[{'tag':_0x4bd18a(0x78),'attrs':{'fill':_0x4bd18a(0x11b),'d':_0x4bd18a(0x170)}}]},ue=_0xbf84ac(function(_0x5c593c,_0x2f5009){const _0x4fc69e=_0x4bd18a;return _0x597461(b,Object['assign']({},_0x5c593c,{'id':_0x4fc69e(0x97),'ref':_0x2f5009,'icon':Xe}));});ue[_0x4bd18a(0x114)]='CloseIcon';const Je={'tag':_0x4bd18a(0x166),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4bd18a(0x1bc),'viewBox':'0\x200\x2016\x2016','width':_0x4bd18a(0x15f),'height':_0x4bd18a(0x15f)},'children':[{'tag':_0x4bd18a(0x78),'attrs':{'fill':_0x4bd18a(0x11b),'d':_0x4bd18a(0xcf)}},{'tag':_0x4bd18a(0x78),'attrs':{'fill':_0x4bd18a(0x11b),'d':_0x4bd18a(0xa3)}},{'tag':_0x4bd18a(0x78),'attrs':{'fill':_0x4bd18a(0x11b),'d':_0x4bd18a(0x17e),'fillRule':_0x4bd18a(0x1b9),'clipRule':_0x4bd18a(0x1b9)}}]},ve=_0xbf84ac(function(_0x29caf9,_0x2db50f){const _0xa124a=_0x4bd18a;return _0x597461(b,Object[_0xa124a(0xdb)]({},_0x29caf9,{'id':'help-icon','ref':_0x2db50f,'icon':Je}));});ve['displayName']=_0x4bd18a(0x162);const Qe={'tag':_0x4bd18a(0x166),'attrs':{'xmlns':_0x4bd18a(0x152),'fill':_0x4bd18a(0x1bc),'viewBox':_0x4bd18a(0x15a),'width':_0x4bd18a(0x15f),'height':_0x4bd18a(0x15f)},'children':[{'tag':'g','attrs':{'clipPath':_0x4bd18a(0x154)},'children':[{'tag':_0x4bd18a(0x78),'attrs':{'stroke':'currentColor','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':_0x4bd18a(0xf3),'strokeLinejoin':_0x4bd18a(0xf3),'strokeWidth':1.2}}]},{'tag':_0x4bd18a(0x171),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4bd18a(0xf9)},'children':[{'tag':'path','attrs':{'fill':_0x4bd18a(0x76),'d':_0x4bd18a(0x1b4)}}]}]}],'defIds':[_0x4bd18a(0xf9)]},de=_0xbf84ac(function(_0x2dc578,_0x2a2a38){const _0x4cc2fa=_0x4bd18a;return _0x597461(b,Object['assign']({},_0x2dc578,{'id':_0x4cc2fa(0x80),'ref':_0x2a2a38,'icon':Qe}));});de[_0x4bd18a(0x114)]=_0x4bd18a(0x15b);function _0x5c13(){const _0x24163f=['mcpStatus.unknown','0\x200\x2017\x2016','_menuManagerService','enableAutoConnect','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','mcpConfig.configSaved','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','mcpConfig.connectionError.maxRetriesExceeded','M0\x200H16V16H0z','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','mcpConfig.apiKeyHint','error','554nfECjT','evenodd','Session\x20ID','MCP\x20Configuration','none','current','mcpConfig.configError','Bearer\x20','univer-shrink-0\x20univer-text-blue-500','MCP\x20Connected','几秒钟内获取您的\x20API\x20密钥','_localeService','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Click\x20to\x20connect\x20MCP','Failed\x20to\x20save\x20configuration','push','univer-text-white','29484qBJOjy','white','API\x20密钥长度至少需要\x2010\x20位','path','mcpConfig.connectionError.networkError','mergeMenu','mcpConfig.authorizationDescription','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','value','会话ID','univer-text-red-500','off-line-icon','https://console.univer.ai','Configuration\x20Steps:','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','label','API\x20Key','UNAUTHORIZED','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','has','启用身份验证以获得安全连接','register','translate(.97)','Connection\x20Failed','replace','4173612EUTGdp','div','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','url(#$1','网络连接错误,请检查您的网络连接','univer-space-y-4','univer-text-yellow-500','http','close-icon','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.apiApplyInfo.univerAiLabel','warn','1858RbqhCB','mcpConfig.note2','forEach','_initializeCommands','MCP:\x20Unauthorized','UniverIcon','toString','_messageService','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','setItem','10555432ZovYds','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','API\x20key\x20is\x20required','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','includes','length','univer-flex\x20univer-items-start\x20univer-gap-2','mcpStatus.sessionOccupied','disposeWithMe','mcp-ui.command.openConfigPanel','univer-shrink-0\x20univer-text-red-500','MCP\x20状态未知','NONE','xlink:href','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','add','mcp.apiKey','univer.ai','mcpConfig.configStep2','trim','启用身份验证','_registerComponent','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-text-xs\x20univer-text-gray-600','Connected','mcpConfig.apiKey','Invalid\x20configuration','会话\x20ID\x20已被占用,请稍后再试','_dialogService','show','API\x20密钥不能为空','mcpConfig.apiApplyInfo.getStarted','check-mark-icon','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','30YIAgWY','registerComponent','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcpConfig.connectionStatus.retrying','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','Get\x20your\x20API\x20key\x20in\x20seconds','__setCustomHeaders','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','API\x20密钥','_componentManager','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.connectionInfo','MCP:\x20超出最大重试次数','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','entries','Enter\x20your\x20API\x20key','MCPConfigPanel','getItem','apiKey','assign','HEADER_MENU','univer-text-sm\x20univer-text-gray-500','string','_handleConfigure','MCP\x20配置','SESSION_ID_OCCUPIED','open','univer-space-y-2','getOwnPropertyDescriptor','最大重试次数','setConfig','showStatus','close','CheckMarkIcon','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','defIds','Univer\x20AI\x20Console','univer-space-y-5','off','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','CONNECTING','clipPath','round','univer-text-gray-500','onStarting','NETWORK_ERROR','Disconnected','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','off-line-icon_clip0_910_343','mcpServerUrl','tag','未连接','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','15185565EcXmiK','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','RETRYING','mcpConfig.apiApplyInfo.title','attrs','univer-bg-red-500','on-line-icon','_commandService','<API_KEY>','defineProperty','BUTTON','substring','MCP\x20Client\x20Configuration','COMMAND','mcpConfig.connectionStatus.connecting','mcpConfig.connectionError.sessionOccupied','配置保存成功','mcpConfig.validation.invalidApiKey','get','mcpConfig.saving','Authorization:','displayName','您的\x20API\x20密钥安全存储在本地存储中','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','_initAutoConnect','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpConfig.sessionIdDescription','currentColor','点击配置\x20MCP','Save\x20Configuration','mcpConfig.validation.apiKeyRequired','_configService','mcpConfig.connectionStatus.disconnected','children','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','保存配置','_config','MCP\x20Connection\x20Failed','配置参数:','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpStatus.retrying','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','random','_config$','_uiPartsService','registerCommand','connectionStatus$','mcp-config-dialog','\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','mcpStatus.connected','_initializeMenus','mcpConfig.configInstructions','mcpConfig.connectionStatus.connected','univer-text-green-500','_localStorageService','univer-flex\x20univer-items-center','MCP\x20Unknown\x20Status','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','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','_loading$','next','_validateConfig','_initStatusComponent','MAX_RETRIES_EXCEEDED','FAILED','fill','mcpStatus.clickToConfigure','mcpConfig.connectionError.unauthorized','Configuration\x20saved\x20successfully','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.title','_createConfigPanelComponent','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','button','_handleConfigSave','univer-flex\x20univer-items-start\x20univer-gap-3','getConfig','Click\x20to\x20configure\x20MCP','map','MCP:\x20Max\x20Retries\x20Exceeded','将配置添加到您的\x20MCP\x20客户端设置文件中','Univer\x20AI\x20控制台','http://www.w3.org/2000/svg','span','url(#off-line-icon_clip0_910_343)','MCP:\x20Session\x20ID\x20Occupied','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','_loadStoredApiKey','Enable\x20Authentication','univerjs-icon\x20univerjs-icon-','0\x200\x2016\x2016','OffLineIcon','text','univer-flex\x20univer-gap-3','复制以下\x20JSON\x20配置','1em','univer-flex\x20univer-items-center\x20univer-gap-2','univer-bg-blue-500','HelpIcon','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','bottom','univer-bg-gray-500','svg','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','_initConfigSync','<SESSION_ID>','_connectionController','配置保存失败','univer-size-4','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-text-blue-600','API\x20key\x20with\x20Bearer\x20prefix.','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','defs','subscribeConfigValue$','API\x20密钥无效,请检查密钥是否正确','univer-flex\x20univer-items-center\x20univer-gap-3','5543435uyOwCT','removeItem','mcpConfig.apiKeyPlaceholder','showConfigPanel','univer-text-xs\x20univer-text-gray-500','Error','MenuIcon','点击连接\x20MCP','mcpStatus.connecting','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','mcpStatus.clickToConnect','配置更改将立即生效','colorChannel1','mcpConfig.note1','配置无效','251601aqoBou','权限验证失败,请检查您的\x20API\x20密钥','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpStatus.disconnected','Connecting...','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','connectionError$','重启您的\x20MCP\x20客户端以使配置生效','isValid','univer-min-w-0\x20univer-flex-1','univer-bg-green-500','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','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','DISCONNECTED','MCP:\x20网络错误','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','OTHERS','MCP\x20连接失败','_logService','_injector','528zBnxfB','idSuffix','univer.plus','MCP\x20Retrying...','您的\x20API\x20密钥将在此浏览器中本地存储','mcpStatus.failed','连接中...','showDeveloperTools','univer-text-gray-400','pluginName','CONNECTED','_blank','Retrying...','MCP\x20客户端配置','_mcpCoreConfig$','请输入您的\x20API\x20密钥','_apiKey$','_mcpConnectionController'];_0x5c13=function(){return _0x24163f;};return _0x5c13();}const en={'tag':_0x4bd18a(0x166),'attrs':{'xmlns':_0x4bd18a(0x152),'fill':_0x4bd18a(0x1bc),'viewBox':_0x4bd18a(0x1ab),'width':_0x4bd18a(0x15f),'height':_0x4bd18a(0x15f)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x4bd18a(0x129),'strokeLinecap':_0x4bd18a(0xf3),'strokeLinejoin':_0x4bd18a(0xf3),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4bd18a(0xf2),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x4bd18a(0x78),'attrs':{'fill':_0x4bd18a(0x76),'d':_0x4bd18a(0x1b4),'transform':_0x4bd18a(0x8c)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},ge=_0xbf84ac(function(_0x3eeea9,_0x90dd2a){const _0x2511db=_0x4bd18a;return _0x597461(b,Object[_0x2511db(0xdb)]({},_0x3eeea9,{'id':_0x2511db(0x105),'ref':_0x90dd2a,'icon':en}));});ge[_0x4bd18a(0x114)]='OnLineIcon';function nn(_0x4e2241){const _0x9798de=_0x4bd18a;var _0x4ff708,_0x336a2a;const {mcpCoreConfig:_0x25f0aa,onSave:_0x4277d6,loading:_0x5c0fe8=!0x1,config:_0x5f3d38,connectionStatus$:_0x2943c4,connectionError$:_0x2d8c3c,currentApiKey$:_0x38778d,currentSessionId$:_0x465831}=_0x4e2241,_0x51d72b=_0x5e811c(_0x18be6e),_0x406579=_0x2e1530(_0x2943c4,_0x541dee[_0x9798de(0x191)]),_0x13cbbc=_0x2e1530(_0x2d8c3c,_0xda36e4[_0x9798de(0xb1)]),_0x1fc1d6=_0x2e1530(_0x465831,''),_0x13ca39=_0x2e1530(_0x38778d,''),[_0x2ffa96,_0x446ba8]=_0x51d8fe(_0x13ca39||''),_0x5bb6c1=!0x0,_0xd2d9de=_0x5f3d38[_0x9798de(0x19f)]&&_0x25f0aa[_0x9798de(0xfa)]&&(_0x25f0aa[_0x9798de(0xfa)][_0x9798de(0xa9)](_0x9798de(0x19a))||_0x25f0aa['mcpServerUrl']['includes']('univer.ai')),_0x48583b=(_0x4ff708=_0x25f0aa['mcpServerUrl'])==null?void 0x0:_0x4ff708['includes'](_0x9798de(0x19a)),_0x44fe87=(_0x336a2a=_0x25f0aa['mcpServerUrl'])==null?void 0x0:_0x336a2a['includes'](_0x9798de(0xb6)),_0xca16aa=_0x48583b?'https://console.univer.plus':_0x9798de(0x81),_0x3c8d3b=_0x5f3d38[_0x9798de(0x19f)]&&(_0x48583b||_0x44fe87),[_0x45ed23,_0x4296f3]=_0x51d8fe(!_0x2ffa96[_0x9798de(0xb8)]()),_0x3311b0=(_0x135870,_0x13a3ba)=>{const _0x202602=_0x9798de;if(_0x13a3ba===_0xda36e4[_0x202602(0x87)])return _0x202602(0xcc);switch(_0x135870){case _0x541dee[_0x202602(0x1a2)]:return _0x202602(0xf0);case _0x541dee[_0x202602(0xf1)]:case _0x541dee[_0x202602(0x101)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x541dee[_0x202602(0x140)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x202602(0x91);}},_0x3a7c43=(_0x1f8c2a,_0x28c1a3)=>{const _0x270808=_0x9798de;if(_0x28c1a3===_0xda36e4[_0x270808(0x87)])return _0x270808(0x104);switch(_0x1f8c2a){case _0x541dee[_0x270808(0x1a2)]:return _0x270808(0x18e);case _0x541dee[_0x270808(0xf1)]:case _0x541dee[_0x270808(0x101)]:return _0x270808(0x161);case _0x541dee[_0x270808(0x140)]:return _0x270808(0x104);default:return _0x270808(0x165);}},_0xf96692=_0x32a2c0=>{const _0x409472=_0x9798de;switch(_0x32a2c0){case _0x541dee[_0x409472(0x1a2)]:return _0x51d72b['t'](_0x409472(0x134));case _0x541dee[_0x409472(0xf1)]:return _0x51d72b['t'](_0x409472(0x10d));case _0x541dee[_0x409472(0x140)]:return _0x51d72b['t']('mcpConfig.connectionStatus.failed');case _0x541dee['RETRYING']:return _0x51d72b['t'](_0x409472(0xca));default:return _0x51d72b['t'](_0x409472(0x120));}},_0x107b99=_0x185ac0=>{const _0x2e5a27=_0x9798de;switch(_0x185ac0){case _0xda36e4[_0x2e5a27(0x87)]:return _0x51d72b['t'](_0x2e5a27(0x143));case _0xda36e4['SESSION_ID_OCCUPIED']:return _0x51d72b['t'](_0x2e5a27(0x10e));case _0xda36e4[_0x2e5a27(0xf6)]:return _0x51d72b['t'](_0x2e5a27(0x79));case _0xda36e4[_0x2e5a27(0x13f)]:return _0x51d72b['t'](_0x2e5a27(0x1b3));default:return'';}},_0x4c29da=_0x2c492f(()=>{const _0x3693dd=_0x9798de,_0x1ccdb8={..._0x25f0aa,'apiKey':_0x2ffa96[_0x3693dd(0xb8)](),'enableAuth':_0x5bb6c1};_0x4277d6(_0x1ccdb8);},[_0x25f0aa,_0x2ffa96,_0x5bb6c1,_0x4277d6]),_0x3a6daa=_0x2ffa96[_0x9798de(0xb8)]()['length']>0x0;return _0x27facf(_0x9798de(0x90),{'className':_0x9798de(0x163),'children':[_0x384df3(_0x9798de(0x90),{'className':_0x9798de(0xcb),'children':_0x27facf('div',{'className':_0x9798de(0x174),'children':[_0x384df3(_0x9798de(0x90),{'className':_0x9798de(0x186),'children':_0x384df3(_0x9798de(0x153),{'className':_0x9798de(0x1c8),'children':'⚙'})}),_0x384df3(_0x9798de(0x90),{'children':_0x384df3('p',{'className':_0x9798de(0xdd),'children':_0x51d72b['t']('mcpConfig.description')})})]})}),_0x27facf(_0x9798de(0x90),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x384df3(_0x9798de(0x90),{'className':_0x5b5d55(_0x9798de(0x117),_0x3311b0(_0x406579,_0x13cbbc)),'children':_0x27facf(_0x9798de(0x90),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x384df3('div',{'className':_0x5b5d55('univer-size-2\x20univer-rounded-full',_0x3a7c43(_0x406579,_0x13cbbc))}),_0x384df3('span',{'className':'univer-text-sm\x20univer-font-medium','children':_0xf96692(_0x406579)})]})}),_0x13cbbc!==_0xda36e4[_0x9798de(0xb1)]&&(_0x406579===_0x541dee['FAILED']||_0x13cbbc===_0xda36e4[_0x9798de(0x87)])&&_0x384df3(_0x9798de(0x90),{'className':_0x9798de(0x189),'children':_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0xab),'children':[_0x384df3(_0x9798de(0x153),{'className':_0x9798de(0xaf),'children':'⚠️'}),_0x384df3('p',{'className':_0x9798de(0x1b2),'children':_0x107b99(_0x13cbbc)})]})})]}),_0x384df3(_0x9798de(0x90),{'className':_0x9798de(0x119),'children':_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0xed),'children':[_0x27facf(_0x9798de(0x90),{'className':'univer-space-y-2','children':[_0x27facf(_0x9798de(0x85),{'className':_0x9798de(0xd5),'children':[_0x384df3(_0x9798de(0x153),{'children':'🔑'}),'\x20',_0x51d72b['t'](_0x9798de(0xbe)),_0x384df3(_0x9798de(0x153),{'className':_0x9798de(0x7f),'children':'*'}),_0xd2d9de&&_0x384df3('a',{'className':_0x9798de(0x1b5),'title':_0x51d72b['t'](_0x9798de(0x102)),'role':'button','onClick':()=>_0x4296f3(!0x0),'children':_0x384df3(ve,{})})]}),_0x384df3(_0x1df360,{'type':_0x9798de(0x15c),'placeholder':_0x51d72b['t'](_0x9798de(0x177)),'value':_0x2ffa96,'disabled':_0x5c0fe8,'autoComplete':_0x9798de(0xee),'onChange':_0x446ba8}),_0x384df3('p',{'className':_0x9798de(0x179),'children':_0x51d72b['t'](_0x9798de(0x1b6))})]}),_0xd2d9de&&_0x45ed23&&_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0x167),'children':[_0x384df3('a',{'className':_0x9798de(0x190),'role':'button','onClick':()=>_0x4296f3(!0x1),'children':_0x384df3(ue,{'className':_0x9798de(0x16c)})}),_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0x116),'children':[_0x384df3(_0x9798de(0x90),{'className':_0x9798de(0x1ae),'children':_0x384df3(_0x9798de(0x153),{'className':_0x9798de(0x16e),'children':'🚀'})}),_0x27facf('div',{'className':'univer-flex-1','children':[_0x384df3('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x51d72b['t'](_0x9798de(0x102))}),_0x384df3('p',{'className':_0x9798de(0xd2),'children':_0x51d72b['t']('mcpConfig.apiApplyInfo.description')}),_0x384df3(_0x9798de(0x90),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x3c8d3b&&_0x27facf('a',{'className':_0x9798de(0x156),'href':_0xca16aa,'target':_0x9798de(0x1a3),'rel':'noopener\x20noreferrer','children':[_0x384df3(_0x9798de(0x153),{'children':'🤖'}),_0x51d72b['t'](_0x9798de(0x99)),_0x384df3(_0x9798de(0x153),{'className':_0x9798de(0x1a0),'children':'↗'})]})}),_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0xfe),'children':['✨','\x20',_0x51d72b['t'](_0x9798de(0xc4))]})]})]})]}),_0x5f3d38[_0x9798de(0x19f)]&&_0x27facf(_0x9798de(0x90),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x27facf('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x384df3(_0x9798de(0x153),{'children':'🔗'}),'\x20',_0x51d72b['t'](_0x9798de(0xd3))]}),_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0x94),'children':[_0x27facf('div',{'className':'univer-space-y-3','children':[_0x384df3('p',{'className':_0x9798de(0xbc),'children':_0x51d72b['t'](_0x9798de(0x133))}),_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0xe3),'children':[_0x384df3(_0x9798de(0x90),{'className':_0x9798de(0x193),'children':_0x51d72b['t']('mcpConfig.configStepTitle')}),_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0x1b1),'children':[_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0x160),'children':[_0x384df3(_0x9798de(0x153),{'className':_0x9798de(0xb3),'children':'1'}),_0x51d72b['t']('mcpConfig.configStep1')]}),_0x27facf('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x384df3('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'}),_0x51d72b['t'](_0x9798de(0xb7))]}),_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0x160),'children':[_0x384df3(_0x9798de(0x153),{'className':_0x9798de(0xb3),'children':'3'}),_0x51d72b['t']('mcpConfig.configStep3')]})]})]})]}),_0x27facf('div',{'className':'univer-space-y-2','children':[_0x384df3('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x9798de(0x1bb)}),_0x384df3(_0x9798de(0x90),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x384df3('pre',{'className':_0x9798de(0xa6),'children':JSON['stringify']({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x1fc1d6||_0x9798de(0x169)),'type':_0x9798de(0x96),'headers':{'Authorization':_0x9798de(0x1bf)+(_0x2ffa96||_0x9798de(0x107))}}}},null,0x2)})})]}),_0x27facf('div',{'className':'univer-space-y-3','children':[_0x384df3(_0x9798de(0x90),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x51d72b['t']('mcpConfig.configParameters')}),_0x27facf('div',{'className':_0x9798de(0xe3),'children':[_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0x14b),'children':[_0x384df3(_0x9798de(0x90),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0x18d),'children':[_0x384df3('div',{'className':_0x9798de(0x127),'children':'univer_session_id:'}),_0x384df3(_0x9798de(0x90),{'className':_0x9798de(0x179),'children':_0x51d72b['t'](_0x9798de(0x11a))})]})]}),_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0x14b),'children':[_0x384df3('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0x18d),'children':[_0x384df3(_0x9798de(0x90),{'className':_0x9798de(0x127),'children':_0x9798de(0x113)}),_0x384df3(_0x9798de(0x90),{'className':_0x9798de(0x179),'children':_0x51d72b['t'](_0x9798de(0x7b))})]})]})]})]})]})]}),_0x384df3(_0x1698d4,{'onClick':_0x4c29da,'disabled':!_0x3a6daa||_0x5c0fe8,'className':_0x9798de(0x13a),'children':_0x5c0fe8?_0x27facf('span',{'className':_0x9798de(0x160),'children':[_0x384df3(_0x9798de(0x153),{'children':'⟲'}),_0x51d72b['t'](_0x9798de(0x112))]}):_0x27facf(_0x9798de(0x153),{'className':_0x9798de(0x160),'children':[_0x384df3(le,{}),_0x51d72b['t']('mcpConfig.save')]})}),_0x384df3(_0x9798de(0x90),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0x15d),'children':[_0x384df3(_0x9798de(0x153),{'className':_0x9798de(0x1c0),'children':'💡'}),_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0xa8),'children':[_0x384df3('div',{'className':'univer-font-medium','children':'Configuration\x20Notes:'}),_0x27facf('div',{'children':['•',_0x51d72b['t'](_0x9798de(0x182))]}),_0x27facf('div',{'children':['•',_0x51d72b['t'](_0x9798de(0x9c))]})]})]})})]})})]});}const y='mcp-ui.config',ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x4bd18a(0xe4)],tn=(_0x31efed,_0x1c8eaf,_0x7f5bae,_0x3505ac)=>{const _0x139746=_0x4bd18a;for(var _0x23c5a4=_0x3505ac>0x1?void 0x0:_0x3505ac?rn(_0x1c8eaf,_0x7f5bae):_0x1c8eaf,_0x4ad675=_0x31efed[_0x139746(0xaa)]-0x1,_0xf79345;_0x4ad675>=0x0;_0x4ad675--)(_0xf79345=_0x31efed[_0x4ad675])&&(_0x23c5a4=_0xf79345(_0x23c5a4)||_0x23c5a4);return _0x23c5a4;},d=(_0x538d5f,_0x3ef724)=>(_0x4e01af,_0x4bb551)=>_0x3ef724(_0x4e01af,_0x4bb551,_0x538d5f);const U=_0x4bd18a(0xb5),L=_0x4bd18a(0x12f);let I=class extends _0x14bc90{constructor(_0xfe228a,_0x5655a8,_0x19fb64,_0x5c985c,_0x71c569,_0x1fda11,_0x2851c6,_0x4ef8c2,_0x4e0dd5,_0x23361b){const _0x3253b4=_0x4bd18a;super(),x(this,_0x3253b4(0x13b),new _0x14f9cb(!0x1)),x(this,_0x3253b4(0x1a6),new _0x14f9cb({})),x(this,_0x3253b4(0x12b),new _0x14f9cb({})),x(this,_0x3253b4(0x1a8),new _0x14f9cb('')),x(this,_0x3253b4(0x14a),async _0x5ce006=>{const _0x3ed97d=_0x3253b4;var _0x5715da,_0x57fddb;this[_0x3ed97d(0x13b)][_0x3ed97d(0x13c)](!0x0);try{const _0x1bc3d=await this[_0x3ed97d(0x13d)](_0x5ce006);if(!_0x1bc3d[_0x3ed97d(0x18c)]){this[_0x3ed97d(0xa2)][_0x3ed97d(0xc2)]({'type':_0x3c6573['Error'],'content':_0x1bc3d['errorMessage']||this[_0x3ed97d(0x1c3)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x5ce006[_0x3ed97d(0xda)]?await this[_0x3ed97d(0x136)][_0x3ed97d(0xa4)](U,_0x5ce006[_0x3ed97d(0xda)]['trim']()):await this[_0x3ed97d(0x136)][_0x3ed97d(0x176)](U),this['_apiKey$'][_0x3ed97d(0x13c)](((_0x5715da=_0x5ce006['apiKey'])==null?void 0x0:_0x5715da[_0x3ed97d(0xb8)]())||''),this[_0x3ed97d(0x1a9)]['__setCustomHeaders']({'Authorization':_0x3ed97d(0x1bf)+((_0x57fddb=_0x5ce006['apiKey'])==null?void 0x0:_0x57fddb['trim']())}),this['_messageService'][_0x3ed97d(0xc2)]({'type':_0x3c6573['Success'],'content':this[_0x3ed97d(0x1c3)]['t'](_0x3ed97d(0x1b0))}),setTimeout(()=>{const _0x29c753=_0x3ed97d;this[_0x29c753(0xc1)][_0x29c753(0xe8)](L);},0x320);}catch(_0x459507){this[_0x3ed97d(0x196)][_0x3ed97d(0x1b7)](_0x3ed97d(0xbb),_0x459507),this['_messageService'][_0x3ed97d(0xc2)]({'type':_0x3c6573[_0x3ed97d(0x17a)],'content':this[_0x3ed97d(0x1c3)]['t'](_0x3ed97d(0x1be))});}finally{this[_0x3ed97d(0x13b)][_0x3ed97d(0x13c)](!0x1);}}),(this['_injector']=_0xfe228a,this[_0x3253b4(0x12c)]=_0x5655a8,this[_0x3253b4(0x11f)]=_0x19fb64,this['_localStorageService']=_0x5c985c,this[_0x3253b4(0xc1)]=_0x71c569,this[_0x3253b4(0xa2)]=_0x1fda11,this[_0x3253b4(0xd1)]=_0x2851c6,this[_0x3253b4(0x1c3)]=_0x4ef8c2,this[_0x3253b4(0x196)]=_0x4e0dd5,this[_0x3253b4(0x1a9)]=_0x23361b,this[_0x3253b4(0x168)](),this['_loadStoredApiKey'](),this[_0x3253b4(0xba)]());}[_0x4bd18a(0x178)](){const _0x91f06=_0x4bd18a,_0x2b6c25=this[_0x91f06(0x11f)][_0x91f06(0x14c)](y);_0x2b6c25!=null&&_0x2b6c25[_0x91f06(0x19f)]&&this[_0x91f06(0xc1)][_0x91f06(0xe2)]({'id':L,'title':{'title':this[_0x91f06(0x1c3)]['t']('mcpConfig.title')},'children':{'label':_0x91f06(0xd8)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x2c41ab=_0x91f06;this[_0x2c41ab(0xc1)][_0x2c41ab(0xe8)](L);}});}['getCurrentConfig'](){const _0x462dcc=_0x4bd18a;return this[_0x462dcc(0x1a6)][_0x462dcc(0x7d)];}[_0x4bd18a(0xba)](){const _0xae5b8c=_0x4bd18a;this['disposeWithMe'](this[_0xae5b8c(0xd1)][_0xae5b8c(0x8b)](_0xae5b8c(0xd8),this[_0xae5b8c(0x147)]()));}['_createConfigPanelComponent'](){const _0x2f9ac3=_0x4bd18a;return _0x51e6a9(()=>{const _0x407073=_0x2234;var _0x56dd92,_0x23c506,_0x1d4c51;return _0x384df3(nn,{'config':this[_0x407073(0x12b)][_0x407073(0x7d)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x407073(0x7d)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x407073(0x14a)],'loading':this['_loading$'][_0x407073(0x7d)],'connectionStatus$':(_0x56dd92=this['_mcpConnectionController'])==null?void 0x0:_0x56dd92[_0x407073(0x12e)],'connectionError$':(_0x23c506=this[_0x407073(0x1a9)])==null?void 0x0:_0x23c506['connectionError$'],'currentSessionId$':(_0x1d4c51=this[_0x407073(0x1a9)])==null?void 0x0:_0x1d4c51['sessionId$']});},this[_0x2f9ac3(0x197)]);}['_initConfigSync'](){const _0x20af5e=_0x4bd18a;this['disposeWithMe'](this[_0x20af5e(0x11f)][_0x20af5e(0x172)](_0x28f147)['subscribe'](_0x395af2=>{const _0x2c24f8=_0x20af5e;this[_0x2c24f8(0x1a6)][_0x2c24f8(0x13c)](_0x395af2||{});}));const _0x42bf9b=this['_configService']['getConfig'](_0x28f147);this[_0x20af5e(0x1a6)][_0x20af5e(0x13c)](_0x42bf9b||{}),this[_0x20af5e(0xad)](this['_configService'][_0x20af5e(0x172)](y)['subscribe'](_0x35780b=>{this['_config$']['next'](_0x35780b||{});}));const _0x574a4c=this[_0x20af5e(0x11f)]['getConfig'](y);this['_config$'][_0x20af5e(0x13c)](_0x574a4c||{});}async[_0x4bd18a(0x157)](){const _0x468e0b=_0x4bd18a,_0x412e44=this[_0x468e0b(0x11f)][_0x468e0b(0x14c)](y);if(!(_0x412e44!=null&&_0x412e44['showDeveloperTools']))return;const _0x294105=await this[_0x468e0b(0x136)][_0x468e0b(0xd9)](U);_0x294105&&(this[_0x468e0b(0x1a9)][_0x468e0b(0xce)]({'Authorization':_0x468e0b(0x1bf)+_0x294105}),this[_0x468e0b(0x1a8)][_0x468e0b(0x13c)](_0x294105));}async[_0x4bd18a(0x13d)](_0x1a62af){const _0x21a4d7=_0x4bd18a;if(!_0x1a62af[_0x21a4d7(0xda)]||_0x1a62af['apiKey'][_0x21a4d7(0xb8)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x21a4d7(0x1c3)]['t'](_0x21a4d7(0x11e))};if(_0x1a62af['apiKey'][_0x21a4d7(0xb8)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x588f4d=await this[_0x21a4d7(0x197)][_0x21a4d7(0x111)](_0x3d1ecc)['validateApiKey'](_0x1a62af[_0x21a4d7(0xda)]['trim']());return _0x588f4d[_0x21a4d7(0x18c)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x588f4d[_0x21a4d7(0x1b7)]||this[_0x21a4d7(0x1c3)]['t'](_0x21a4d7(0x110))};}catch(_0x373072){return console[_0x21a4d7(0x9a)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x373072),{'isValid':!0x0};}}};I=tn([d(0x0,_0x161217(_0x6b968d)),d(0x1,_0x26147f),d(0x2,_0x5bff8a),d(0x3,_0x54681b),d(0x4,_0x13bce1),d(0x5,_0x5a97f8),d(0x6,_0x161217(_0x5543a6)),d(0x7,_0x161217(_0x18be6e)),d(0x8,_0x42d532),d(0x9,_0x161217(_0x3d1ecc))],I);const V={'id':_0x4bd18a(0xae),'type':_0x56be3f[_0x4bd18a(0x10c)],'handler':async(_0x22878d,_0x5892f0)=>(_0x22878d[_0x4bd18a(0x111)](I)[_0x4bd18a(0x178)](),!0x0)};function pe(_0x5cc449,_0x5335b3){const _0x55c863=_0x4bd18a;switch(_0x5cc449){case _0x541dee[_0x55c863(0x191)]:return _0x55c863(0x187);case _0x541dee['CONNECTING']:return _0x55c863(0x17d);case _0x541dee[_0x55c863(0x1a2)]:return _0x55c863(0x131);case _0x541dee['FAILED']:switch(_0x5335b3){case _0xda36e4[_0x55c863(0x87)]:return'mcpStatus.unauthorized';case _0xda36e4[_0x55c863(0xe1)]:return _0x55c863(0xac);case _0xda36e4[_0x55c863(0xf6)]:return'mcpStatus.networkError';case _0xda36e4[_0x55c863(0x13f)]:return'mcpStatus.maxRetriesExceeded';default:return _0x55c863(0x19d);}case _0x541dee[_0x55c863(0x101)]:return _0x55c863(0x128);default:return _0x55c863(0x1aa);}}function on(_0x322af2,_0x3d4626,_0x2d342e,_0x42d9c2=!0x0){const _0x1e13dd=_0x4bd18a,_0x1c10a7=pe(_0x322af2,_0x3d4626),_0x538621=_0x2d342e['t'](_0x1c10a7);return _0x42d9c2?_0x322af2===_0x541dee[_0x1e13dd(0x191)]&&_0x3d4626===_0xda36e4['UNAUTHORIZED']?_0x538621+'\x20-\x20'+_0x2d342e['t'](_0x1e13dd(0x142)):_0x322af2===_0x541dee[_0x1e13dd(0x1a2)]?''+_0x538621:_0x322af2===_0x541dee['DISCONNECTED']||_0x322af2===_0x541dee[_0x1e13dd(0x140)]?_0x538621+'\x20-\x20'+_0x2d342e['t'](_0x1e13dd(0x17f)):_0x538621:_0x538621;}function sn(_0x4e63ec){const _0x3e5270=_0x4bd18a;switch(_0x4e63ec){case _0x541dee[_0x3e5270(0x1a2)]:return _0x3e5270(0x135);case _0x541dee[_0x3e5270(0xf1)]:case _0x541dee['RETRYING']:return _0x3e5270(0x95);case _0x541dee[_0x3e5270(0x140)]:case _0x541dee['DISCONNECTED']:return _0x3e5270(0x7f);default:return _0x3e5270(0xf4);}}function cn(_0x2fefe5){const _0x424ed9=_0x4bd18a,{status$:_0xd79267,error$:_0x13a8a0,onConfigure:_0x5b75be,showClickable:_0x34c42f=!0x0}=_0x2fefe5,_0x3e5fa0=_0x2e1530(_0xd79267,_0x541dee['DISCONNECTED']),_0x26538f=_0x2e1530(_0x13a8a0,_0xda36e4[_0x424ed9(0xb1)]),_0x29ef1c=_0x5e811c(_0x18be6e),_0x1168f2=_0x3e5fa0===_0x541dee['CONNECTED'];_0x3e5fa0===_0x541dee[_0x424ed9(0xf1)]||_0x541dee['RETRYING'];const _0x2566ee=_0x29ef1c['t'](pe(_0x3e5fa0,_0x26538f)),_0x591bc3=on(_0x3e5fa0,_0x26538f,_0x29ef1c,_0x34c42f),_0x23c7d0=sn(_0x3e5fa0),_0x441fec=_0x1168f2?_0x384df3(ge,{}):_0x384df3(de,{}),_0x7c6e58=_0x2c492f(()=>{_0x34c42f&&_0x5b75be&&_0x5b75be();},[_0x34c42f,_0x5b75be]);function _0x50a9bc(){const _0x45d737=_0x424ed9;return _0x27facf(_0x45d737(0x90),{'className':_0x5b5d55(_0x45d737(0x137),_0x34c42f&&_0x5b75be&&_0x45d737(0x130)),'role':_0x45d737(0x149),'onClick':_0x34c42f&&_0x5b75be?_0x7c6e58:void 0x0,'children':[_0x384df3(_0x45d737(0x90),{'className':_0x5b5d55('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x23c7d0),'children':_0x441fec}),_0x384df3('div',{'className':_0x45d737(0xc6),'children':_0x2566ee})]});}return _0x384df3(_0x4852fd,{'title':_0x591bc3,'placement':_0x424ed9(0x164),'children':_0x50a9bc()});}var an=Object[_0x4bd18a(0xe4)],ln=(_0x344899,_0x2f6b09,_0x4ebe16,_0x48404b)=>{const _0x26672a=_0x4bd18a;for(var _0x499c54=_0x48404b>0x1?void 0x0:_0x48404b?an(_0x2f6b09,_0x4ebe16):_0x2f6b09,_0xc75a29=_0x344899[_0x26672a(0xaa)]-0x1,_0x3ba6d6;_0xc75a29>=0x0;_0xc75a29--)(_0x3ba6d6=_0x344899[_0xc75a29])&&(_0x499c54=_0x3ba6d6(_0x499c54)||_0x499c54);return _0x499c54;},M=(_0x3d9065,_0x381da6)=>(_0x13b55b,_0x3f3ed8)=>_0x381da6(_0x13b55b,_0x3f3ed8,_0x3d9065);let O=class extends _0x14bc90{constructor(_0x5ead67,_0x509c21,_0x1ea982,_0x3a5669){const _0x4a7a28=_0x4bd18a;super(),this[_0x4a7a28(0x197)]=_0x5ead67,this[_0x4a7a28(0x16a)]=_0x509c21,this[_0x4a7a28(0x12c)]=_0x1ea982,this[_0x4a7a28(0x11f)]=_0x3a5669,this[_0x4a7a28(0x118)](),this['_initStatusComponent']();}[_0x4bd18a(0x118)](){const _0x298f78=_0x4bd18a,_0x5dd41e=this['_configService'][_0x298f78(0x14c)](y);_0x5dd41e!=null&&_0x5dd41e[_0x298f78(0x19f)]&&(this[_0x298f78(0x16a)][_0x298f78(0x1ad)]=!0x1);}[_0x4bd18a(0x13e)](){const _0x37801e=_0x4bd18a,_0x3f5a02=this['_configService']['getConfig'](y);(_0x3f5a02==null?void 0x0:_0x3f5a02[_0x37801e(0xe7)])!==!0x1&&this[_0x37801e(0xad)](this[_0x37801e(0x12c)][_0x37801e(0xc8)](_0x21b956[_0x37801e(0xdc)],()=>{const _0x5cedf3=_0x37801e;var _0x490b0d;return _0x51e6a9(un({'status$':this[_0x5cedf3(0x16a)][_0x5cedf3(0x12e)],'error$':this['_connectionController'][_0x5cedf3(0x18a)],'onConfigure':()=>this[_0x5cedf3(0xdf)](),'showClickable':(_0x490b0d=_0x3f5a02==null?void 0x0:_0x3f5a02[_0x5cedf3(0x19f)])!=null?_0x490b0d:!0x1}),this['_injector']);}));}[_0x4bd18a(0xdf)](){const _0x519fce=_0x4bd18a;this[_0x519fce(0x197)][_0x519fce(0x111)](I)[_0x519fce(0x178)]();}};O=ln([M(0x0,_0x161217(_0x6b968d)),M(0x1,_0x161217(_0x3d1ecc)),M(0x2,_0x26147f),M(0x3,_0x5bff8a)],O);function un(_0x50d534){const {status$:_0x4ae8a7,error$:_0x2e6c47,onConfigure:_0x344dcb,showClickable:_0x43b2b3}=_0x50d534;return function(){return _0x384df3(cn,{'status$':_0x4ae8a7,'error$':_0x2e6c47,'onConfigure':_0x344dcb,'showClickable':_0x43b2b3});};}function vn(_0x9c38a3){const _0x2c2aad=_0x4bd18a;return{'id':V['id'],'type':_0x47c19c[_0x2c2aad(0x109)],'icon':_0x2c2aad(0x17b),'title':_0x2c2aad(0x146),'tooltip':_0x2c2aad(0x146)};}const dn={[_0x329ade[_0x4bd18a(0x194)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object['getOwnPropertyDescriptor'],pn=(_0x574807,_0xf37602,_0x1bb20c,_0x112524)=>{for(var _0x3223cd=_0x112524>0x1?void 0x0:_0x112524?gn(_0xf37602,_0x1bb20c):_0xf37602,_0x25bec4=_0x574807['length']-0x1,_0x2a8e0e;_0x25bec4>=0x0;_0x25bec4--)(_0x2a8e0e=_0x574807[_0x25bec4])&&(_0x3223cd=_0x2a8e0e(_0x3223cd)||_0x3223cd);return _0x3223cd;},re=(_0x1ac08c,_0x442fa7)=>(_0x591071,_0x4ce69a)=>_0x442fa7(_0x591071,_0x4ce69a,_0x1ac08c);let D=class extends _0x14bc90{constructor(_0x58e912,_0xdff59e){const _0x3314b1=_0x4bd18a;super(),this[_0x3314b1(0x106)]=_0x58e912,this['_menuManagerService']=_0xdff59e,this[_0x3314b1(0x9e)](),this[_0x3314b1(0x132)]();}[_0x4bd18a(0x9e)](){[V]['forEach'](_0x3041e3=>{const _0x188d9c=_0x2234;this['disposeWithMe'](this[_0x188d9c(0x106)][_0x188d9c(0x12d)](_0x3041e3));});}[_0x4bd18a(0x132)](){const _0x17bc37=_0x4bd18a;this[_0x17bc37(0x1ac)][_0x17bc37(0x7a)](dn);}};D=pn([re(0x0,_0x2ae9d3),re(0x1,_0x1665ba)],D);const Mn={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x4bd18a(0x1c1),'failed':_0x4bd18a(0x125),'retrying':_0x4bd18a(0x19b),'unknown':_0x4bd18a(0x138),'unauthorized':_0x4bd18a(0x9f),'sessionOccupied':_0x4bd18a(0x155),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x4bd18a(0x14f),'clickToConnect':_0x4bd18a(0x1c5),'clickToConfigure':_0x4bd18a(0x14d)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x4bd18a(0x122),'apiKey':_0x4bd18a(0x86),'apiKeyPlaceholder':_0x4bd18a(0xd7),'apiKeyHint':_0x4bd18a(0x16d),'enableAuth':_0x4bd18a(0x158),'enableAuthHint':_0x4bd18a(0x98),'connectionInfo':_0x4bd18a(0x10b),'mcpClientConfig':_0x4bd18a(0x10b),'configInstructions':_0x4bd18a(0x83),'configStepTitle':_0x4bd18a(0x82),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x4bd18a(0x1c4),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x4bd18a(0x1ba),'sessionIdDescription':_0x4bd18a(0x139),'authorizationDescription':_0x4bd18a(0x16f),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x4bd18a(0x11d),'saving':'Saving...','note1':_0x4bd18a(0x145),'note2':_0x4bd18a(0x88),'configSaved':_0x4bd18a(0x144),'configError':_0x4bd18a(0x1c6),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x4bd18a(0x148),'univerAiLabel':_0x4bd18a(0xec),'getStarted':_0x4bd18a(0xcd)},'validation':{'apiKeyRequired':_0x4bd18a(0xa7),'apiKeyTooShort':_0x4bd18a(0x18f),'invalidConfig':_0x4bd18a(0xbf),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x4bd18a(0xf7),'connecting':_0x4bd18a(0x188),'connected':_0x4bd18a(0xbd),'failed':_0x4bd18a(0x8d),'retrying':_0x4bd18a(0x1a4)},'connectionError':{'unauthorized':_0x4bd18a(0xfd),'sessionOccupied':_0x4bd18a(0x84),'networkError':_0x4bd18a(0x7c),'maxRetriesExceeded':_0x4bd18a(0xea)}}},An={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':_0x4bd18a(0x195),'retrying':'MCP\x20重连中...','unknown':_0x4bd18a(0xb0),'unauthorized':'MCP:\x20未授权','sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x4bd18a(0x192),'maxRetriesExceeded':_0x4bd18a(0xd4),'clickToConnect':_0x4bd18a(0x17c),'clickToConfigure':_0x4bd18a(0x11c)},'mcpConfig':{'title':_0x4bd18a(0xe0),'description':_0x4bd18a(0xc9),'apiKey':_0x4bd18a(0xd0),'apiKeyPlaceholder':_0x4bd18a(0x1a7),'apiKeyHint':_0x4bd18a(0x19c),'enableAuth':_0x4bd18a(0xb9),'enableAuthHint':_0x4bd18a(0x8a),'connectionInfo':_0x4bd18a(0x1a5),'mcpClientConfig':_0x4bd18a(0x1a5),'configInstructions':_0x4bd18a(0xef),'configStepTitle':'配置步骤:','configStep1':_0x4bd18a(0x15e),'configStep2':_0x4bd18a(0x150),'configStep3':_0x4bd18a(0x18b),'sessionId':_0x4bd18a(0x7e),'sessionIdDescription':_0x4bd18a(0xf8),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x4bd18a(0x126),'maxRetries':_0x4bd18a(0xe5),'save':_0x4bd18a(0x123),'saving':'保存中...','note1':_0x4bd18a(0x180),'note2':_0x4bd18a(0x115),'configSaved':_0x4bd18a(0x10f),'configError':_0x4bd18a(0x16b),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x4bd18a(0x100),'univerAiLabel':_0x4bd18a(0x151),'getStarted':_0x4bd18a(0x1c2)},'validation':{'apiKeyRequired':_0x4bd18a(0xc3),'apiKeyTooShort':_0x4bd18a(0x77),'invalidConfig':_0x4bd18a(0x183),'invalidApiKey':_0x4bd18a(0x173)},'connectionStatus':{'disconnected':_0x4bd18a(0xfc),'connecting':_0x4bd18a(0x19e),'connected':'已连接','failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':_0x4bd18a(0x185),'sessionOccupied':_0x4bd18a(0xc0),'networkError':_0x4bd18a(0x93),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var fn=Object[_0x4bd18a(0x108)],hn=Object[_0x4bd18a(0xe4)],Cn=(_0x4d4061,_0xf55171,_0x1e4982)=>_0xf55171 in _0x4d4061?fn(_0x4d4061,_0xf55171,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e4982}):_0x4d4061[_0xf55171]=_0x1e4982,mn=(_0x37ec46,_0x288a20,_0x242cd8,_0x296392)=>{const _0x4e0681=_0x4bd18a;for(var _0x9da4f2=_0x296392>0x1?void 0x0:_0x296392?hn(_0x288a20,_0x242cd8):_0x288a20,_0x47c4c9=_0x37ec46[_0x4e0681(0xaa)]-0x1,_0x40366d;_0x47c4c9>=0x0;_0x47c4c9--)(_0x40366d=_0x37ec46[_0x47c4c9])&&(_0x9da4f2=_0x40366d(_0x9da4f2)||_0x9da4f2);return _0x9da4f2;},P=(_0x49df4e,_0x45a07c)=>(_0x35d357,_0x500fc8)=>_0x45a07c(_0x35d357,_0x500fc8,_0x49df4e),_n=(_0x223b1f,_0x4815d9,_0x11a372)=>Cn(_0x223b1f,_0x4815d9+'',_0x11a372);let j=class extends _0x459eef{constructor(_0x1a9d5f=ie,_0xf7d255,_0x50c4bf,_0x18642a,_0x3da1fd,_0x1cded){const _0xd08198=_0x4bd18a;super(),this[_0xd08198(0x124)]=_0x1a9d5f,this[_0xd08198(0x197)]=_0xf7d255,this[_0xd08198(0x11f)]=_0x50c4bf,this[_0xd08198(0x12c)]=_0x18642a,this[_0xd08198(0x136)]=_0x3da1fd,this['_localeService']=_0x1cded;const {..._0x14bc53}=_0x469321({},ie,this[_0xd08198(0x124)]);this[_0xd08198(0x11f)][_0xd08198(0xe6)](y,_0x14bc53);}async[_0x4bd18a(0xf5)](){const _0x2e86a0=_0x4bd18a,_0x1c6f66=[[O],[I],[D]];this[_0x2e86a0(0x197)][_0x2e86a0(0x89)](_0x491725)||_0x1c6f66[_0x2e86a0(0x1c7)]([_0x491725,{'useClass':_0xfbf0ff}]),_0x1c6f66['forEach'](_0x2acdb0=>this['_injector'][_0x2e86a0(0xb4)](_0x2acdb0)),this['_injector'][_0x2e86a0(0x111)](O),this[_0x2e86a0(0x197)][_0x2e86a0(0x111)](I),this[_0x2e86a0(0x197)][_0x2e86a0(0x111)](D);}};_n(j,_0x4bd18a(0x1a1),'MCP_UI_PLUGIN'),j=mn([_0x23f8e4(_0x32d088),P(0x1,_0x161217(_0x6b968d)),P(0x2,_0x5bff8a),P(0x3,_0x26147f),P(0x4,_0x54681b),P(0x5,_0x161217(_0x18be6e))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
@@ -1 +1 @@
1
- function _0x5e55(_0x27a45f,_0x570d77){const _0x23d989=_0x23d9();return _0x5e55=function(_0x5e552e,_0x3ebfe9){_0x5e552e=_0x5e552e-0x1e7;let _0x4575d3=_0x23d989[_0x5e552e];return _0x4575d3;},_0x5e55(_0x27a45f,_0x570d77);}const _0x54c4ea=_0x5e55;function _0x23d9(){const _0x3b1ae7=['150prQoQL','Enter\x20your\x20API\x20key','API\x20key\x20with\x20Bearer\x20prefix.','3554YzWWNg','Invalid\x20configuration','856764GcKRxP','MCP:\x20Unauthorized','Configuration\x20Steps:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connection\x20Failed','MCP\x20Client\x20Configuration','Configuration\x20Parameters:','50795DRteED','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connection\x20Failed','317568jnXVAt','MCP\x20Connected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Network\x20Error','2219238RQopGi','Configuration\x20saved\x20successfully','MCP\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Save\x20Configuration','1797120lPbZXT','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connecting...','5094369IzttPL','Disconnected','Connected','API\x20Key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Max\x20Retries','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enable\x20authentication\x20for\x20secure\x20connections','264AralRl','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Session\x20ID','Click\x20to\x20configure\x20MCP','Failed\x20to\x20save\x20configuration','Univer\x20AI\x20Console','MCP\x20Disconnected','Retrying...','Enable\x20Authentication'];_0x23d9=function(){return _0x3b1ae7;};return _0x23d9();}(function(_0xfb73c5,_0x426980){const _0x457862=_0x5e55,_0x4a12f0=_0xfb73c5();while(!![]){try{const _0x18669b=-parseInt(_0x457862(0x20d))/0x1*(-parseInt(_0x457862(0x20a))/0x2)+-parseInt(_0x457862(0x20f))/0x3+parseInt(_0x457862(0x1f4))/0x4+parseInt(_0x457862(0x1e7))/0x5*(-parseInt(_0x457862(0x200))/0x6)+-parseInt(_0x457862(0x1ef))/0x7+parseInt(_0x457862(0x1ea))/0x8+parseInt(_0x457862(0x1f7))/0x9;if(_0x18669b===_0x426980)break;else _0x4a12f0['push'](_0x4a12f0['shift']());}catch(_0x169335){_0x4a12f0['push'](_0x4a12f0['shift']());}}}(_0x23d9,0x4264d));const e={'mcpStatus':{'disconnected':_0x54c4ea(0x207),'connecting':_0x54c4ea(0x1f6),'connected':_0x54c4ea(0x1eb),'failed':_0x54c4ea(0x213),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x54c4ea(0x210),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x54c4ea(0x1ee),'maxRetriesExceeded':_0x54c4ea(0x1f5),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x54c4ea(0x204)},'mcpConfig':{'title':_0x54c4ea(0x1f1),'description':_0x54c4ea(0x1e8),'apiKey':_0x54c4ea(0x1fa),'apiKeyPlaceholder':_0x54c4ea(0x20b),'apiKeyHint':_0x54c4ea(0x1fc),'enableAuth':_0x54c4ea(0x209),'enableAuthHint':_0x54c4ea(0x1ff),'connectionInfo':_0x54c4ea(0x214),'mcpClientConfig':_0x54c4ea(0x214),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x54c4ea(0x211),'configStep1':_0x54c4ea(0x1ed),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x54c4ea(0x203),'sessionIdDescription':_0x54c4ea(0x1fe),'authorizationDescription':_0x54c4ea(0x20c),'configParameters':_0x54c4ea(0x215),'maxRetries':_0x54c4ea(0x1fd),'save':_0x54c4ea(0x1f3),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x54c4ea(0x1ec),'configSaved':_0x54c4ea(0x1f0),'configError':_0x54c4ea(0x205),'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':_0x54c4ea(0x206),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x54c4ea(0x212),'invalidConfig':_0x54c4ea(0x20e),'invalidApiKey':_0x54c4ea(0x1fb)},'connectionStatus':{'disconnected':_0x54c4ea(0x1f8),'connecting':'Connecting...','connected':_0x54c4ea(0x1f9),'failed':_0x54c4ea(0x1e9),'retrying':_0x54c4ea(0x208)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x54c4ea(0x1f2),'networkError':_0x54c4ea(0x201),'maxRetriesExceeded':_0x54c4ea(0x202)}}},n=e;export{n as default};
1
+ const _0x34b905=_0x5460;(function(_0x2295aa,_0x1ab9d6){const _0x108b3a=_0x5460,_0x42db03=_0x2295aa();while(!![]){try{const _0x4c672b=-parseInt(_0x108b3a(0x116))/0x1*(parseInt(_0x108b3a(0x10a))/0x2)+parseInt(_0x108b3a(0x103))/0x3*(-parseInt(_0x108b3a(0x117))/0x4)+-parseInt(_0x108b3a(0x100))/0x5*(-parseInt(_0x108b3a(0x111))/0x6)+-parseInt(_0x108b3a(0xfb))/0x7+-parseInt(_0x108b3a(0xff))/0x8*(-parseInt(_0x108b3a(0xf3))/0x9)+-parseInt(_0x108b3a(0x113))/0xa+parseInt(_0x108b3a(0x108))/0xb;if(_0x4c672b===_0x1ab9d6)break;else _0x42db03['push'](_0x42db03['shift']());}catch(_0x5a703f){_0x42db03['push'](_0x42db03['shift']());}}}(_0x4552,0x6305b));const e={'mcpStatus':{'disconnected':_0x34b905(0xec),'connecting':_0x34b905(0x10f),'connected':'MCP\x20Connected','failed':_0x34b905(0x10d),'retrying':_0x34b905(0xe9),'unknown':_0x34b905(0x112),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x34b905(0xef),'networkError':_0x34b905(0xf6),'maxRetriesExceeded':_0x34b905(0xf7),'clickToConnect':_0x34b905(0xed),'clickToConfigure':_0x34b905(0x10e)},'mcpConfig':{'title':_0x34b905(0xf8),'description':_0x34b905(0x118),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x34b905(0x114),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x34b905(0xf5),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x34b905(0x10b),'mcpClientConfig':_0x34b905(0x10b),'configInstructions':_0x34b905(0x119),'configStepTitle':_0x34b905(0xf1),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x34b905(0xf2),'configStep3':_0x34b905(0xee),'sessionId':'Session\x20ID','sessionIdDescription':_0x34b905(0xfc),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x34b905(0x115),'maxRetries':_0x34b905(0xfa),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x34b905(0x109),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x34b905(0xeb),'configError':_0x34b905(0xfd),'apiApplyInfo':{'title':_0x34b905(0x10c),'description':_0x34b905(0x11a),'univerAiLabel':_0x34b905(0x104),'getStarted':_0x34b905(0x101)},'validation':{'apiKeyRequired':_0x34b905(0x102),'apiKeyTooShort':_0x34b905(0x107),'invalidConfig':_0x34b905(0xf9),'invalidApiKey':_0x34b905(0xf4)},'connectionStatus':{'disconnected':_0x34b905(0xfe),'connecting':_0x34b905(0xf0),'connected':_0x34b905(0x110),'failed':'Connection\x20Failed','retrying':_0x34b905(0xea)},'connectionError':{'unauthorized':_0x34b905(0xe8),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x34b905(0x105),'maxRetriesExceeded':_0x34b905(0x106)}}},n=e;function _0x4552(){const _0x20da13=['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','Disconnected','34120fuuYhd','5sEvuaS','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20is\x20required','30aoLQCo','Univer\x20AI\x20Console','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','21911021ePWyYy','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','22130cPQeWi','MCP\x20Client\x20Configuration','What\x20is\x20API\x20Key?','MCP\x20Connection\x20Failed','Click\x20to\x20configure\x20MCP','MCP\x20Connecting...','Connected','2482518KnIzNu','MCP\x20Unknown\x20Status','2215320sgIwaw','Enter\x20your\x20API\x20key','Configuration\x20Parameters:','73kwlBYN','164016RhLpUa','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Retrying...','Retrying...','Configuration\x20saved\x20successfully','MCP\x20Disconnected','Click\x20to\x20connect\x20MCP','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Session\x20ID\x20Occupied','Connecting...','Configuration\x20Steps:','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','9FJEvhx','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20Authentication','MCP:\x20Network\x20Error','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Configuration','Invalid\x20configuration','Max\x20Retries','3955119mLbkGH'];_0x4552=function(){return _0x20da13;};return _0x4552();}function _0x5460(_0x39d493,_0x48e200){const _0x455234=_0x4552();return _0x5460=function(_0x546037,_0x2bdb26){_0x546037=_0x546037-0xe8;let _0x3dcea5=_0x455234[_0x546037];return _0x3dcea5;},_0x5460(_0x39d493,_0x48e200);}export{n as default};
@@ -1 +1 @@
1
- function _0xbd66(_0xe60e74,_0x26a54d){const _0x283d1f=_0x283d();return _0xbd66=function(_0xbd66c1,_0x414fa4){_0xbd66c1=_0xbd66c1-0x12d;let _0xec1ce7=_0x283d1f[_0xbd66c1];return _0xec1ce7;},_0xbd66(_0xe60e74,_0x26a54d);}const _0x45a8ad=_0xbd66;(function(_0x1b1399,_0x1324b4){const _0x5c33c5=_0xbd66,_0x122ca5=_0x1b1399();while(!![]){try{const _0x35d0a3=parseInt(_0x5c33c5(0x133))/0x1+-parseInt(_0x5c33c5(0x138))/0x2+-parseInt(_0x5c33c5(0x142))/0x3*(-parseInt(_0x5c33c5(0x139))/0x4)+parseInt(_0x5c33c5(0x145))/0x5+parseInt(_0x5c33c5(0x147))/0x6+parseInt(_0x5c33c5(0x150))/0x7+-parseInt(_0x5c33c5(0x14e))/0x8;if(_0x35d0a3===_0x1324b4)break;else _0x122ca5['push'](_0x122ca5['shift']());}catch(_0x1c9c98){_0x122ca5['push'](_0x122ca5['shift']());}}}(_0x283d,0xa9fa1));const e={'mcpStatus':{'disconnected':_0x45a8ad(0x14c),'connecting':_0x45a8ad(0x140),'connected':_0x45a8ad(0x155),'failed':'MCP\x20Connection\x20Failed','retrying':_0x45a8ad(0x13e),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x45a8ad(0x14d),'sessionOccupied':_0x45a8ad(0x12f),'networkError':_0x45a8ad(0x14f),'maxRetriesExceeded':_0x45a8ad(0x13d),'clickToConnect':_0x45a8ad(0x14a),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x45a8ad(0x151),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x45a8ad(0x148),'apiKeyHint':_0x45a8ad(0x152),'enableAuth':_0x45a8ad(0x136),'enableAuthHint':_0x45a8ad(0x157),'connectionInfo':_0x45a8ad(0x143),'mcpClientConfig':_0x45a8ad(0x143),'configInstructions':_0x45a8ad(0x132),'configStepTitle':_0x45a8ad(0x137),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x45a8ad(0x144),'sessionId':'Session\x20ID','sessionIdDescription':_0x45a8ad(0x130),'authorizationDescription':_0x45a8ad(0x146),'configParameters':_0x45a8ad(0x13a),'maxRetries':'Max\x20Retries','save':_0x45a8ad(0x135),'saving':_0x45a8ad(0x13b),'note1':_0x45a8ad(0x156),'note2':_0x45a8ad(0x141),'configSaved':_0x45a8ad(0x134),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x45a8ad(0x158),'description':_0x45a8ad(0x149),'univerAiLabel':_0x45a8ad(0x154),'getStarted':_0x45a8ad(0x153)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x45a8ad(0x13f),'invalidApiKey':_0x45a8ad(0x159)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':'Connection\x20Failed','retrying':_0x45a8ad(0x12e)},'connectionError':{'unauthorized':_0x45a8ad(0x13c),'sessionOccupied':_0x45a8ad(0x131),'networkError':_0x45a8ad(0x14b),'maxRetriesExceeded':_0x45a8ad(0x12d)}}};function _0x283d(){const _0x4ff12c=['Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','283850xEcieh','Configuration\x20saved\x20successfully','Save\x20Configuration','Enable\x20Authentication','Configuration\x20Steps:','2696426ZshjnW','2714792IxFrOA','Configuration\x20Parameters:','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Retrying...','Invalid\x20configuration','MCP\x20Connecting...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','3itAzQY','MCP\x20Client\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','6293780IpcAEE','API\x20key\x20with\x20Bearer\x20prefix.','1583214uIOYuR','Enter\x20your\x20API\x20key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Click\x20to\x20connect\x20MCP','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Disconnected','MCP:\x20Unauthorized','4070560QsYoFs','MCP:\x20Network\x20Error','476595OmLcVw','MCP\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Get\x20your\x20API\x20key\x20in\x20seconds','Univer\x20AI\x20Console','MCP\x20Connected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enable\x20authentication\x20for\x20secure\x20connections','What\x20is\x20API\x20Key?','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Retrying...','MCP:\x20Session\x20ID\x20Occupied','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later'];_0x283d=function(){return _0x4ff12c;};return _0x283d();}export{e as default};
1
+ function _0x243f(_0x4c1a00,_0xb559e4){const _0x1b4a8b=_0x1b4a();return _0x243f=function(_0x243fd1,_0x308283){_0x243fd1=_0x243fd1-0x134;let _0x3b0b6a=_0x1b4a8b[_0x243fd1];return _0x3b0b6a;},_0x243f(_0x4c1a00,_0xb559e4);}const _0x23a0a7=_0x243f;(function(_0x359c12,_0x1011ac){const _0x55891e=_0x243f,_0x172cc9=_0x359c12();while(!![]){try{const _0x4be9a6=-parseInt(_0x55891e(0x135))/0x1+parseInt(_0x55891e(0x140))/0x2*(parseInt(_0x55891e(0x151))/0x3)+parseInt(_0x55891e(0x14f))/0x4*(parseInt(_0x55891e(0x150))/0x5)+parseInt(_0x55891e(0x153))/0x6+parseInt(_0x55891e(0x14e))/0x7*(parseInt(_0x55891e(0x141))/0x8)+parseInt(_0x55891e(0x145))/0x9+-parseInt(_0x55891e(0x155))/0xa;if(_0x4be9a6===_0x1011ac)break;else _0x172cc9['push'](_0x172cc9['shift']());}catch(_0x34edcf){_0x172cc9['push'](_0x172cc9['shift']());}}}(_0x1b4a,0x72ac1));const e={'mcpStatus':{'disconnected':_0x23a0a7(0x15f),'connecting':_0x23a0a7(0x142),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x23a0a7(0x13f),'unknown':_0x23a0a7(0x139),'unauthorized':_0x23a0a7(0x146),'sessionOccupied':_0x23a0a7(0x14b),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x23a0a7(0x13b),'clickToConfigure':_0x23a0a7(0x137)},'mcpConfig':{'title':_0x23a0a7(0x156),'description':_0x23a0a7(0x157),'apiKey':_0x23a0a7(0x14a),'apiKeyPlaceholder':_0x23a0a7(0x158),'apiKeyHint':_0x23a0a7(0x13e),'enableAuth':_0x23a0a7(0x136),'enableAuthHint':_0x23a0a7(0x138),'connectionInfo':_0x23a0a7(0x160),'mcpClientConfig':_0x23a0a7(0x160),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x23a0a7(0x13c),'configStep1':_0x23a0a7(0x15e),'configStep2':_0x23a0a7(0x161),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x23a0a7(0x15b),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x23a0a7(0x14c),'maxRetries':_0x23a0a7(0x13d),'save':_0x23a0a7(0x149),'saving':'Saving...','note1':_0x23a0a7(0x152),'note2':_0x23a0a7(0x143),'configSaved':_0x23a0a7(0x15a),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x23a0a7(0x14d),'description':_0x23a0a7(0x154),'univerAiLabel':_0x23a0a7(0x144),'getStarted':_0x23a0a7(0x13a)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x23a0a7(0x15c),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x23a0a7(0x159)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x23a0a7(0x147),'connected':_0x23a0a7(0x15d),'failed':_0x23a0a7(0x148),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x23a0a7(0x134)}}};function _0x1b4a(){const _0x4a00d0=['Click\x20to\x20connect\x20MCP','Configuration\x20Steps:','Max\x20Retries','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Retrying...','1165078gBIPsz','192ApSWDA','MCP\x20Connecting...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Univer\x20AI\x20Console','6339159GNkgZu','MCP:\x20Unauthorized','Connecting...','Connection\x20Failed','Save\x20Configuration','API\x20Key','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20Parameters:','What\x20is\x20API\x20Key?','208173OVIvzn','52WgdHoG','188485mFLqoO','3lbeoIs','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','560034LDpdQc','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','19437420sjzQad','MCP\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enter\x20your\x20API\x20key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20saved\x20successfully','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connected','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Disconnected','MCP\x20Client\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','170587bEJRBo','Enable\x20Authentication','Click\x20to\x20configure\x20MCP','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Unknown\x20Status','Get\x20your\x20API\x20key\x20in\x20seconds'];_0x1b4a=function(){return _0x4a00d0;};return _0x1b4a();}export{e as default};
@@ -1 +1 @@
1
- function _0x448b(){const _0x212ce4=['Session\x20ID','Invalid\x20configuration','162804YhzcVz','Get\x20your\x20API\x20key\x20in\x20seconds','Saving...','Retrying...','225CMIwfZ','Connecting...','Enable\x20Authentication','MCP:\x20Session\x20ID\x20Occupied','1ICtAke','MCP:\x20Unauthorized','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Failed\x20to\x20save\x20configuration','MCP\x20Connected','Univer\x20AI\x20Console','API\x20key\x20with\x20Bearer\x20prefix.','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Click\x20to\x20connect\x20MCP','Click\x20to\x20configure\x20MCP','15Gedhic','Max\x20Retries','288134wfTEER','Configuration\x20saved\x20successfully','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connection\x20Failed','14529936zMtxFQ','MCP\x20Connecting...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','1591658UfmZPD','11mmPKpK','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20Parameters:','MCP\x20Unknown\x20Status','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Network\x20Error','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','4399254GuHRYw','MCP\x20Client\x20Configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','What\x20is\x20API\x20Key?','271760LZajOE','MCP\x20Retrying...','API\x20key\x20is\x20required','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','24uNksBW','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connected','120930WUiVVz','API\x20Key'];_0x448b=function(){return _0x212ce4;};return _0x448b();}function _0x1504(_0x4f672c,_0xb598fa){const _0x448b8f=_0x448b();return _0x1504=function(_0x1504cc,_0x5583ef){_0x1504cc=_0x1504cc-0xda;let _0x521e5c=_0x448b8f[_0x1504cc];return _0x521e5c;},_0x1504(_0x4f672c,_0xb598fa);}const _0x57fd42=_0x1504;(function(_0x427451,_0x4c2158){const _0x15609f=_0x1504,_0x278234=_0x427451();while(!![]){try{const _0x434a8e=-parseInt(_0x15609f(0x108))/0x1*(-parseInt(_0x15609f(0xe6))/0x2)+-parseInt(_0x15609f(0xdc))/0x3*(parseInt(_0x15609f(0x100))/0x4)+-parseInt(_0x15609f(0xfc))/0x5+-parseInt(_0x15609f(0xee))/0x6+-parseInt(_0x15609f(0xde))/0x7*(-parseInt(_0x15609f(0xf7))/0x8)+-parseInt(_0x15609f(0x104))/0x9*(parseInt(_0x15609f(0xf3))/0xa)+parseInt(_0x15609f(0xe7))/0xb*(parseInt(_0x15609f(0xe3))/0xc);if(_0x434a8e===_0x4c2158)break;else _0x278234['push'](_0x278234['shift']());}catch(_0x2fa13e){_0x278234['push'](_0x278234['shift']());}}}(_0x448b,0x77973));const e={'mcpStatus':{'disconnected':_0x57fd42(0xf9),'connecting':_0x57fd42(0xe4),'connected':_0x57fd42(0x10c),'failed':_0x57fd42(0xe2),'retrying':_0x57fd42(0xf4),'unknown':_0x57fd42(0xea),'unauthorized':_0x57fd42(0x109),'sessionOccupied':_0x57fd42(0x107),'networkError':_0x57fd42(0xec),'maxRetriesExceeded':_0x57fd42(0xe1),'clickToConnect':_0x57fd42(0xda),'clickToConfigure':_0x57fd42(0xdb)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x57fd42(0xe8),'apiKey':_0x57fd42(0xfd),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x57fd42(0xe5),'enableAuth':_0x57fd42(0x106),'enableAuthHint':_0x57fd42(0xf8),'connectionInfo':_0x57fd42(0xef),'mcpClientConfig':_0x57fd42(0xef),'configInstructions':_0x57fd42(0xf1),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x57fd42(0x10a),'sessionId':_0x57fd42(0xfe),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x57fd42(0x10e),'configParameters':_0x57fd42(0xe9),'maxRetries':_0x57fd42(0xdd),'save':'Save\x20Configuration','saving':_0x57fd42(0x102),'note1':_0x57fd42(0xe0),'note2':_0x57fd42(0xfa),'configSaved':_0x57fd42(0xdf),'configError':_0x57fd42(0x10b),'apiApplyInfo':{'title':_0x57fd42(0xf2),'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':_0x57fd42(0x10d),'getStarted':_0x57fd42(0x101)},'validation':{'apiKeyRequired':_0x57fd42(0xf5),'apiKeyTooShort':_0x57fd42(0xeb),'invalidConfig':_0x57fd42(0xff),'invalidApiKey':_0x57fd42(0xed)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x57fd42(0x105),'connected':_0x57fd42(0xfb),'failed':'Connection\x20Failed','retrying':_0x57fd42(0x103)},'connectionError':{'unauthorized':_0x57fd42(0xf0),'sessionOccupied':_0x57fd42(0x10f),'networkError':_0x57fd42(0xf6),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
1
+ function _0x4cea(){const _0x598dcf=['Configuration\x20Steps:','MCP:\x20Session\x20ID\x20Occupied','Click\x20to\x20configure\x20MCP','10470GLNUCZ','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enter\x20your\x20API\x20key','API\x20key\x20with\x20Bearer\x20prefix.','2UsUSco','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Get\x20your\x20API\x20key\x20in\x20seconds','Copy\x20the\x20JSON\x20configuration\x20below','8qHjzBU','9HzVKYF','Disconnected','903858bRIBqu','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','MCP:\x20Max\x20Retries\x20Exceeded','31489AjkToQ','Configuration\x20Parameters:','2761100XPhIZQ','MCP\x20Connection\x20Failed','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Save\x20Configuration','API\x20key\x20is\x20required','MCP:\x20Network\x20Error','16uMYhMS','MCP\x20Configuration','Retrying...','Max\x20Retries','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Retrying...','MCP\x20Connecting...','Click\x20to\x20connect\x20MCP','MCP\x20Unknown\x20Status','1008196wGVDSc','30984xFtTjY','Saving...','8833488CJXsni','Invalid\x20configuration','API\x20Key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Connected','Univer\x20AI\x20Console','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','11UIeKop','Connection\x20Failed','MCP:\x20Unauthorized','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connecting...','MCP\x20Disconnected'];_0x4cea=function(){return _0x598dcf;};return _0x4cea();}const _0x56d9a8=_0x5162;function _0x5162(_0x1b0732,_0x14c384){const _0x4ceaa7=_0x4cea();return _0x5162=function(_0x516266,_0x27f3e2){_0x516266=_0x516266-0x1dd;let _0x5e48d5=_0x4ceaa7[_0x516266];return _0x5e48d5;},_0x5162(_0x1b0732,_0x14c384);}(function(_0x15f266,_0x3aeb22){const _0x39b474=_0x5162,_0x27d4ef=_0x15f266();while(!![]){try{const _0x4cc788=parseInt(_0x39b474(0x20b))/0x1*(parseInt(_0x39b474(0x1ff))/0x2)+parseInt(_0x39b474(0x207))/0x3+parseInt(_0x39b474(0x204))/0x4*(-parseInt(_0x39b474(0x1fb))/0x5)+parseInt(_0x39b474(0x1e8))/0x6+-parseInt(_0x39b474(0x1e7))/0x7*(-parseInt(_0x39b474(0x1de))/0x8)+parseInt(_0x39b474(0x205))/0x9*(parseInt(_0x39b474(0x20d))/0xa)+-parseInt(_0x39b474(0x1f1))/0xb*(parseInt(_0x39b474(0x1ea))/0xc);if(_0x4cc788===_0x3aeb22)break;else _0x27d4ef['push'](_0x27d4ef['shift']());}catch(_0x35758c){_0x27d4ef['push'](_0x27d4ef['shift']());}}}(_0x4cea,0x27801));const e={'mcpStatus':{'disconnected':_0x56d9a8(0x1f7),'connecting':_0x56d9a8(0x1e4),'connected':_0x56d9a8(0x1ee),'failed':_0x56d9a8(0x20e),'retrying':_0x56d9a8(0x1e3),'unknown':_0x56d9a8(0x1e6),'unauthorized':_0x56d9a8(0x1f3),'sessionOccupied':_0x56d9a8(0x1f9),'networkError':_0x56d9a8(0x1dd),'maxRetriesExceeded':_0x56d9a8(0x20a),'clickToConnect':_0x56d9a8(0x1e5),'clickToConfigure':_0x56d9a8(0x1fa)},'mcpConfig':{'title':_0x56d9a8(0x1df),'description':_0x56d9a8(0x1fc),'apiKey':_0x56d9a8(0x1ec),'apiKeyPlaceholder':_0x56d9a8(0x1fd),'apiKeyHint':_0x56d9a8(0x200),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x56d9a8(0x1e2),'connectionInfo':_0x56d9a8(0x209),'mcpClientConfig':_0x56d9a8(0x209),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x56d9a8(0x1f8),'configStep1':_0x56d9a8(0x203),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x56d9a8(0x1f5),'sessionId':'Session\x20ID','sessionIdDescription':_0x56d9a8(0x208),'authorizationDescription':_0x56d9a8(0x1fe),'configParameters':_0x56d9a8(0x20c),'maxRetries':_0x56d9a8(0x1e1),'save':_0x56d9a8(0x210),'saving':_0x56d9a8(0x1e9),'note1':_0x56d9a8(0x201),'note2':_0x56d9a8(0x20f),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x56d9a8(0x1ed),'univerAiLabel':_0x56d9a8(0x1ef),'getStarted':_0x56d9a8(0x202)},'validation':{'apiKeyRequired':_0x56d9a8(0x211),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x56d9a8(0x1eb),'invalidApiKey':_0x56d9a8(0x1f4)},'connectionStatus':{'disconnected':_0x56d9a8(0x206),'connecting':_0x56d9a8(0x1f6),'connected':'Connected','failed':_0x56d9a8(0x1f2),'retrying':_0x56d9a8(0x1e0)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x56d9a8(0x1f0),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
@@ -1 +1 @@
1
- const _0x58f7b8=_0x1189;function _0x40b7(){const _0x421ea2=['Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20Parameters:','69420WmoMTY','MCP\x20Connected','Save\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20Steps:','What\x20is\x20API\x20Key?','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Disconnected','325gocQNy','153203PFTDPS','MCP\x20Connecting...','API\x20key\x20with\x20Bearer\x20prefix.','API\x20key\x20is\x20required','Enable\x20Authentication','2403JgakeT','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','4168vQlylF','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Network\x20Error','2OfteaW','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enter\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Saving...','Invalid\x20configuration','Connected','818721uouQQs','Retrying...','Failed\x20to\x20save\x20configuration','MCP\x20Client\x20Configuration','MCP\x20Unknown\x20Status','1184498btVMRH','1333608YgqqOx','10372ulnhOG','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Click\x20to\x20configure\x20MCP','MCP\x20Retrying...','MCP\x20Connection\x20Failed','Connection\x20Failed'];_0x40b7=function(){return _0x421ea2;};return _0x40b7();}(function(_0x2786c2,_0x442702){const _0x1ab552=_0x1189,_0xa22ab1=_0x2786c2();while(!![]){try{const _0x182e85=-parseInt(_0x1ab552(0x188))/0x1+parseInt(_0x1ab552(0x196))/0x2*(parseInt(_0x1ab552(0x16b))/0x3)+parseInt(_0x1ab552(0x172))/0x4*(-parseInt(_0x1ab552(0x187))/0x5)+parseInt(_0x1ab552(0x171))/0x6+-parseInt(_0x1ab552(0x170))/0x7+-parseInt(_0x1ab552(0x190))/0x8*(-parseInt(_0x1ab552(0x18d))/0x9)+parseInt(_0x1ab552(0x17b))/0xa;if(_0x182e85===_0x442702)break;else _0xa22ab1['push'](_0xa22ab1['shift']());}catch(_0x10ff77){_0xa22ab1['push'](_0xa22ab1['shift']());}}}(_0x40b7,0x24af6));const e={'mcpStatus':{'disconnected':_0x58f7b8(0x186),'connecting':_0x58f7b8(0x189),'connected':_0x58f7b8(0x17c),'failed':_0x58f7b8(0x176),'retrying':_0x58f7b8(0x175),'unknown':_0x58f7b8(0x16f),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x58f7b8(0x179),'networkError':_0x58f7b8(0x195),'maxRetriesExceeded':_0x58f7b8(0x18e),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x58f7b8(0x174)},'mcpConfig':{'title':_0x58f7b8(0x192),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x58f7b8(0x198),'apiKeyHint':_0x58f7b8(0x17f),'enableAuth':_0x58f7b8(0x18c),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x58f7b8(0x16e),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x58f7b8(0x182),'configStepTitle':_0x58f7b8(0x180),'configStep1':_0x58f7b8(0x178),'configStep2':_0x58f7b8(0x184),'configStep3':_0x58f7b8(0x197),'sessionId':'Session\x20ID','sessionIdDescription':_0x58f7b8(0x17e),'authorizationDescription':_0x58f7b8(0x18a),'configParameters':_0x58f7b8(0x17a),'maxRetries':'Max\x20Retries','save':_0x58f7b8(0x17d),'saving':_0x58f7b8(0x19a),'note1':_0x58f7b8(0x18f),'note2':_0x58f7b8(0x173),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x58f7b8(0x16d),'apiApplyInfo':{'title':_0x58f7b8(0x181),'description':_0x58f7b8(0x183),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x58f7b8(0x18b),'apiKeyTooShort':_0x58f7b8(0x194),'invalidConfig':_0x58f7b8(0x19b),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x58f7b8(0x16a),'failed':_0x58f7b8(0x177),'retrying':_0x58f7b8(0x16c)},'connectionError':{'unauthorized':_0x58f7b8(0x193),'sessionOccupied':_0x58f7b8(0x191),'networkError':_0x58f7b8(0x199),'maxRetriesExceeded':_0x58f7b8(0x185)}}},n=e;function _0x1189(_0x42fb15,_0x4d476b){const _0x40b732=_0x40b7();return _0x1189=function(_0x1189ee,_0x56dd9e){_0x1189ee=_0x1189ee-0x16a;let _0x495ad1=_0x40b732[_0x1189ee];return _0x495ad1;},_0x1189(_0x42fb15,_0x4d476b);}export{n as default};
1
+ function _0x204f(){const _0x1d42d3=['Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Session\x20ID\x20Occupied','API\x20Key','MCP\x20Client\x20Configuration','6423CrcbiD','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enter\x20your\x20API\x20key','Configuration\x20Parameters:','Click\x20to\x20configure\x20MCP','24XXiilH','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Max\x20Retries\x20Exceeded','Failed\x20to\x20save\x20configuration','Save\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.','765665xwXljy','3455124MgzarL','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','614qiuqCs','MCP\x20Disconnected','1096HCgJmH','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20Steps:','3224474cgobTE','MCP\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Max\x20Retries','MCP\x20Connection\x20Failed','MCP\x20Retrying...','Enable\x20authentication\x20for\x20secure\x20connections','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Get\x20your\x20API\x20key\x20in\x20seconds','Saving...','Configuration\x20saved\x20successfully','Disconnected','90yvtyEl','47509PdVXZl','Connecting...','What\x20is\x20API\x20Key?','874937SWGniV','Retrying...','Copy\x20the\x20JSON\x20configuration\x20below','Connection\x20Failed','Invalid\x20configuration','8735724ILAZKi','Connected'];_0x204f=function(){return _0x1d42d3;};return _0x204f();}const _0x3c0c8b=_0x2b4b;(function(_0xaf890f,_0x338c43){const _0x43d844=_0x2b4b,_0x304f53=_0xaf890f();while(!![]){try{const _0x5c16b2=-parseInt(_0x43d844(0x1d0))/0x1+-parseInt(_0x43d844(0x1b8))/0x2*(-parseInt(_0x43d844(0x1a6))/0x3)+-parseInt(_0x43d844(0x1ad))/0x4*(-parseInt(_0x43d844(0x1b4))/0x5)+parseInt(_0x43d844(0x1b5))/0x6+-parseInt(_0x43d844(0x1cd))/0x7*(-parseInt(_0x43d844(0x1ba))/0x8)+parseInt(_0x43d844(0x1a0))/0x9+-parseInt(_0x43d844(0x1cc))/0xa*(parseInt(_0x43d844(0x1bf))/0xb);if(_0x5c16b2===_0x338c43)break;else _0x304f53['push'](_0x304f53['shift']());}catch(_0x37d145){_0x304f53['push'](_0x304f53['shift']());}}}(_0x204f,0x83a73));const e={'mcpStatus':{'disconnected':_0x3c0c8b(0x1b9),'connecting':'MCP\x20Connecting...','connected':_0x3c0c8b(0x1a8),'failed':_0x3c0c8b(0x1c3),'retrying':_0x3c0c8b(0x1c4),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x3c0c8b(0x1a3),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x3c0c8b(0x1b0),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x3c0c8b(0x1ac)},'mcpConfig':{'title':_0x3c0c8b(0x1c0),'description':_0x3c0c8b(0x1a9),'apiKey':_0x3c0c8b(0x1a4),'apiKeyPlaceholder':_0x3c0c8b(0x1aa),'apiKeyHint':_0x3c0c8b(0x1c7),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x3c0c8b(0x1c5),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x3c0c8b(0x1a5),'configInstructions':_0x3c0c8b(0x1c1),'configStepTitle':_0x3c0c8b(0x1be),'configStep1':_0x3c0c8b(0x19d),'configStep2':_0x3c0c8b(0x1a7),'configStep3':_0x3c0c8b(0x1b7),'sessionId':'Session\x20ID','sessionIdDescription':_0x3c0c8b(0x1c6),'authorizationDescription':_0x3c0c8b(0x1bd),'configParameters':_0x3c0c8b(0x1ab),'maxRetries':_0x3c0c8b(0x1c2),'save':_0x3c0c8b(0x1b2),'saving':_0x3c0c8b(0x1c9),'note1':_0x3c0c8b(0x1bb),'note2':_0x3c0c8b(0x1ae),'configSaved':_0x3c0c8b(0x1ca),'configError':_0x3c0c8b(0x1b1),'apiApplyInfo':{'title':_0x3c0c8b(0x1cf),'description':_0x3c0c8b(0x1b3),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x3c0c8b(0x1c8)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x3c0c8b(0x1af),'invalidConfig':_0x3c0c8b(0x19f),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x3c0c8b(0x1cb),'connecting':_0x3c0c8b(0x1ce),'connected':_0x3c0c8b(0x1a1),'failed':_0x3c0c8b(0x19e),'retrying':_0x3c0c8b(0x19c)},'connectionError':{'unauthorized':_0x3c0c8b(0x1bc),'sessionOccupied':_0x3c0c8b(0x1a2),'networkError':_0x3c0c8b(0x1b6),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x2b4b(_0x53e728,_0x66a022){const _0x204fc1=_0x204f();return _0x2b4b=function(_0x2b4b97,_0x54e15e){_0x2b4b97=_0x2b4b97-0x19c;let _0x59481e=_0x204fc1[_0x2b4b97];return _0x59481e;},_0x2b4b(_0x53e728,_0x66a022);}export{n as default};
@@ -1 +1 @@
1
- function _0x3c9d(){const _0x557e1d=['Enable\x20authentication\x20for\x20secure\x20connections','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','984yoDnGm','Connection\x20Failed','API\x20key\x20is\x20required','Invalid\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Retrying...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connection\x20Failed','Disconnected','Max\x20Retries','Configuration\x20saved\x20successfully','MCP\x20Client\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','58716iPfHkh','18yeNZmq','12020uuuwOW','Copy\x20the\x20JSON\x20configuration\x20below','7932EiCsCB','Configuration\x20Parameters:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Univer\x20AI\x20Console','API\x20key\x20with\x20Bearer\x20prefix.','77664sgKago','Click\x20to\x20connect\x20MCP','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','3GpLyyT','Session\x20ID','MCP:\x20Network\x20Error','Configuration\x20Steps:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enable\x20Authentication','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Failed\x20to\x20save\x20configuration','MCP\x20Configuration','MCP\x20Disconnected','Click\x20to\x20configure\x20MCP','Connecting...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Saving...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connected','8624iqdQeb','MCP\x20Connecting...','7OAKsgy','Save\x20Configuration','1594464LwKzaX','MCP\x20Unknown\x20Status','Retrying...','328AXEvlj','API\x20Key','Enter\x20your\x20API\x20key','MCP\x20Connected','MCP:\x20Unauthorized','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','19610jFzOTl'];_0x3c9d=function(){return _0x557e1d;};return _0x3c9d();}const _0x143cfd=_0x5425;(function(_0x55acd9,_0x1de87b){const _0x58379b=_0x5425,_0x4a7c40=_0x55acd9();while(!![]){try{const _0x50995b=parseInt(_0x58379b(0x1ce))/0x1*(parseInt(_0x58379b(0x1c6))/0x2)+parseInt(_0x58379b(0x1cb))/0x3+parseInt(_0x58379b(0x1e6))/0x4*(-parseInt(_0x58379b(0x1c4))/0x5)+parseInt(_0x58379b(0x1fd))/0x6*(parseInt(_0x58379b(0x1e1))/0x7)+parseInt(_0x58379b(0x1e3))/0x8+-parseInt(_0x58379b(0x1c3))/0x9*(parseInt(_0x58379b(0x1ec))/0xa)+-parseInt(_0x58379b(0x1df))/0xb*(-parseInt(_0x58379b(0x1ef))/0xc);if(_0x50995b===_0x1de87b)break;else _0x4a7c40['push'](_0x4a7c40['shift']());}catch(_0x1287ca){_0x4a7c40['push'](_0x4a7c40['shift']());}}}(_0x3c9d,0x1ae26));const e={'mcpStatus':{'disconnected':_0x143cfd(0x1d8),'connecting':_0x143cfd(0x1e0),'connected':_0x143cfd(0x1e9),'failed':_0x143cfd(0x1f7),'retrying':_0x143cfd(0x1f5),'unknown':_0x143cfd(0x1e4),'unauthorized':_0x143cfd(0x1ea),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x143cfd(0x1d0),'maxRetriesExceeded':_0x143cfd(0x1f4),'clickToConnect':_0x143cfd(0x1cc),'clickToConfigure':_0x143cfd(0x1d9)},'mcpConfig':{'title':_0x143cfd(0x1d7),'description':_0x143cfd(0x1dd),'apiKey':_0x143cfd(0x1e7),'apiKeyPlaceholder':_0x143cfd(0x1e8),'apiKeyHint':_0x143cfd(0x1cd),'enableAuth':_0x143cfd(0x1d3),'enableAuthHint':_0x143cfd(0x1ed),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x143cfd(0x1fb),'configInstructions':_0x143cfd(0x1ee),'configStepTitle':_0x143cfd(0x1d1),'configStep1':_0x143cfd(0x1c5),'configStep2':_0x143cfd(0x1db),'configStep3':_0x143cfd(0x1d4),'sessionId':_0x143cfd(0x1cf),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x143cfd(0x1ca),'configParameters':_0x143cfd(0x1c7),'maxRetries':_0x143cfd(0x1f9),'save':_0x143cfd(0x1e2),'saving':_0x143cfd(0x1dc),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x143cfd(0x1c8),'configSaved':_0x143cfd(0x1fa),'configError':_0x143cfd(0x1d6),'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':_0x143cfd(0x1c9),'getStarted':_0x143cfd(0x1fc)},'validation':{'apiKeyRequired':_0x143cfd(0x1f1),'apiKeyTooShort':_0x143cfd(0x1f3),'invalidConfig':_0x143cfd(0x1f2),'invalidApiKey':_0x143cfd(0x1eb)},'connectionStatus':{'disconnected':_0x143cfd(0x1f8),'connecting':_0x143cfd(0x1da),'connected':_0x143cfd(0x1de),'failed':_0x143cfd(0x1f0),'retrying':_0x143cfd(0x1e5)},'connectionError':{'unauthorized':_0x143cfd(0x1f6),'sessionOccupied':_0x143cfd(0x1d2),'networkError':_0x143cfd(0x1d5),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x5425(_0x2d4945,_0xd354bd){const _0x3c9db5=_0x3c9d();return _0x5425=function(_0x54259a,_0x2dd8b6){_0x54259a=_0x54259a-0x1c3;let _0x4310eb=_0x3c9db5[_0x54259a];return _0x4310eb;},_0x5425(_0x2d4945,_0xd354bd);}export{n as default};
1
+ const _0x4ca90e=_0x3e05;function _0x3e05(_0x1a833b,_0x25a19d){const _0xfeb82a=_0xfeb8();return _0x3e05=function(_0x3e05c5,_0x47b119){_0x3e05c5=_0x3e05c5-0xb8;let _0x48110c=_0xfeb82a[_0x3e05c5];return _0x48110c;},_0x3e05(_0x1a833b,_0x25a19d);}function _0xfeb8(){const _0x1beff4=['Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connection\x20Failed','Univer\x20AI\x20Console','Configuration\x20Steps:','What\x20is\x20API\x20Key?','196097AotfMk','12dnRbZg','238807JSnAVl','MCP\x20Client\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','6012BPKIBY','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20configuration','Failed\x20to\x20save\x20configuration','Max\x20Retries','Disconnected','Configuration\x20Parameters:','Session\x20ID','Configuration\x20saved\x20successfully','24973dRXloU','Copy\x20the\x20JSON\x20configuration\x20below','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enable\x20Authentication','MCP\x20Retrying...','MCP:\x20Unauthorized','API\x20key\x20is\x20required','204NxpdIN','196336zNOOCz','Connected','Get\x20your\x20API\x20key\x20in\x20seconds','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Unknown\x20Status','5890FEDIFL','MCP\x20Disconnected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1025276rWUtQp','401416Wljeja','MCP\x20Connected','MCP:\x20Session\x20ID\x20Occupied','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enter\x20your\x20API\x20key','MCP\x20Connecting...','5tQQynG','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','40MxFcyr','Retrying...','18Xgczae','Click\x20to\x20configure\x20MCP','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'];_0xfeb8=function(){return _0x1beff4;};return _0xfeb8();}(function(_0xff8837,_0x606fe9){const _0x359836=_0x3e05,_0x3e7802=_0xff8837();while(!![]){try{const _0x23e557=-parseInt(_0x359836(0xe7))/0x1+parseInt(_0x359836(0xcc))/0x2*(-parseInt(_0x359836(0xc6))/0x3)+-parseInt(_0x359836(0xcf))/0x4*(parseInt(_0x359836(0xd6))/0x5)+-parseInt(_0x359836(0xe6))/0x6*(-parseInt(_0x359836(0xc7))/0x7)+parseInt(_0x359836(0xd0))/0x8*(-parseInt(_0x359836(0xdc))/0x9)+-parseInt(_0x359836(0xda))/0xa*(parseInt(_0x359836(0xe5))/0xb)+parseInt(_0x359836(0xea))/0xc*(parseInt(_0x359836(0xbf))/0xd);if(_0x23e557===_0x606fe9)break;else _0x3e7802['push'](_0x3e7802['shift']());}catch(_0x5329e2){_0x3e7802['push'](_0x3e7802['shift']());}}}(_0xfeb8,0x24fad));const e={'mcpStatus':{'disconnected':_0x4ca90e(0xcd),'connecting':_0x4ca90e(0xd5),'connected':_0x4ca90e(0xd1),'failed':'MCP\x20Connection\x20Failed','retrying':_0x4ca90e(0xc3),'unknown':_0x4ca90e(0xcb),'unauthorized':_0x4ca90e(0xc4),'sessionOccupied':_0x4ca90e(0xd2),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x4ca90e(0xdd)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x4ca90e(0xca),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x4ca90e(0xd4),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x4ca90e(0xc2),'enableAuthHint':_0x4ca90e(0xec),'connectionInfo':_0x4ca90e(0xe8),'mcpClientConfig':_0x4ca90e(0xe8),'configInstructions':_0x4ca90e(0xc1),'configStepTitle':_0x4ca90e(0xe3),'configStep1':_0x4ca90e(0xc0),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4ca90e(0xd8),'sessionId':_0x4ca90e(0xbd),'sessionIdDescription':_0x4ca90e(0xce),'authorizationDescription':_0x4ca90e(0xe9),'configParameters':_0x4ca90e(0xbc),'maxRetries':_0x4ca90e(0xba),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x4ca90e(0xeb),'note2':_0x4ca90e(0xd3),'configSaved':_0x4ca90e(0xbe),'configError':_0x4ca90e(0xb9),'apiApplyInfo':{'title':_0x4ca90e(0xe4),'description':_0x4ca90e(0xd7),'univerAiLabel':_0x4ca90e(0xe2),'getStarted':_0x4ca90e(0xc9)},'validation':{'apiKeyRequired':_0x4ca90e(0xc5),'apiKeyTooShort':_0x4ca90e(0xde),'invalidConfig':_0x4ca90e(0xb8),'invalidApiKey':_0x4ca90e(0xd9)},'connectionStatus':{'disconnected':_0x4ca90e(0xbb),'connecting':'Connecting...','connected':_0x4ca90e(0xc8),'failed':_0x4ca90e(0xe1),'retrying':_0x4ca90e(0xdb)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4ca90e(0xe0),'maxRetriesExceeded':_0x4ca90e(0xdf)}}},n=e;export{n as default};
@@ -1 +1 @@
1
- const _0x51e68b=_0x55b8;(function(_0xac14a2,_0x52b815){const _0x1bf878=_0x55b8,_0x305d29=_0xac14a2();while(!![]){try{const _0x407ce9=parseInt(_0x1bf878(0x8e))/0x1+-parseInt(_0x1bf878(0x7b))/0x2+-parseInt(_0x1bf878(0x89))/0x3+parseInt(_0x1bf878(0x93))/0x4*(-parseInt(_0x1bf878(0x90))/0x5)+-parseInt(_0x1bf878(0x72))/0x6+parseInt(_0x1bf878(0x95))/0x7*(parseInt(_0x1bf878(0x71))/0x8)+parseInt(_0x1bf878(0x7d))/0x9*(parseInt(_0x1bf878(0x94))/0xa);if(_0x407ce9===_0x52b815)break;else _0x305d29['push'](_0x305d29['shift']());}catch(_0x6cf9e){_0x305d29['push'](_0x305d29['shift']());}}}(_0x209b,0x5d7c1));function _0x55b8(_0x10de95,_0x45ceac){const _0x209bed=_0x209b();return _0x55b8=function(_0x55b8bb,_0x1a6e38){_0x55b8bb=_0x55b8bb-0x67;let _0x447060=_0x209bed[_0x55b8bb];return _0x447060;},_0x55b8(_0x10de95,_0x45ceac);}const e={'mcpStatus':{'disconnected':_0x51e68b(0x97),'connecting':_0x51e68b(0x8d),'connected':'MCP\x20Connected','failed':_0x51e68b(0x67),'retrying':_0x51e68b(0x6f),'unknown':_0x51e68b(0x88),'unauthorized':_0x51e68b(0x68),'sessionOccupied':_0x51e68b(0x7c),'networkError':_0x51e68b(0x91),'maxRetriesExceeded':_0x51e68b(0x7e),'clickToConnect':_0x51e68b(0x8a),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x51e68b(0x92),'apiKey':_0x51e68b(0x82),'apiKeyPlaceholder':_0x51e68b(0x6b),'apiKeyHint':_0x51e68b(0x9a),'enableAuth':_0x51e68b(0x86),'enableAuthHint':_0x51e68b(0x7a),'connectionInfo':_0x51e68b(0x84),'mcpClientConfig':_0x51e68b(0x84),'configInstructions':_0x51e68b(0x8b),'configStepTitle':_0x51e68b(0x80),'configStep1':_0x51e68b(0x70),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x51e68b(0x99),'sessionId':_0x51e68b(0x98),'sessionIdDescription':_0x51e68b(0x7f),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x51e68b(0x76),'save':_0x51e68b(0x69),'saving':'Saving...','note1':_0x51e68b(0x74),'note2':_0x51e68b(0x8f),'configSaved':_0x51e68b(0x87),'configError':_0x51e68b(0x73),'apiApplyInfo':{'title':_0x51e68b(0x81),'description':_0x51e68b(0x78),'univerAiLabel':_0x51e68b(0x79),'getStarted':_0x51e68b(0x96)},'validation':{'apiKeyRequired':_0x51e68b(0x6a),'apiKeyTooShort':_0x51e68b(0x85),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x51e68b(0x77),'connecting':'Connecting...','connected':_0x51e68b(0x6c),'failed':_0x51e68b(0x6e),'retrying':_0x51e68b(0x8c)},'connectionError':{'unauthorized':_0x51e68b(0x6d),'sessionOccupied':_0x51e68b(0x83),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x51e68b(0x75)}}},n=e;export{n as default};function _0x209b(){const _0x4f1b72=['Copy\x20the\x20JSON\x20configuration\x20below','64suEXVn','3500280ddayDd','Failed\x20to\x20save\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Max\x20Retries','Disconnected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Univer\x20AI\x20Console','Enable\x20authentication\x20for\x20secure\x20connections','1177372lLHbrx','MCP:\x20Session\x20ID\x20Occupied','333lnlCnY','MCP:\x20Max\x20Retries\x20Exceeded','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Steps:','What\x20is\x20API\x20Key?','API\x20Key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Client\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enable\x20Authentication','Configuration\x20saved\x20successfully','MCP\x20Unknown\x20Status','439908tkCTuc','Click\x20to\x20connect\x20MCP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Retrying...','MCP\x20Connecting...','616629RnhLKy','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','85eTORZt','MCP:\x20Network\x20Error','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','29732eSRTTI','181590uJFmcl','472031AsJQPe','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Disconnected','Session\x20ID','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connection\x20Failed','MCP:\x20Unauthorized','Save\x20Configuration','API\x20key\x20is\x20required','Enter\x20your\x20API\x20key','Connected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connection\x20Failed','MCP\x20Retrying...'];_0x209b=function(){return _0x4f1b72;};return _0x209b();}
1
+ function _0x23a5(_0x5838f3,_0x1d768e){const _0x4d5356=_0x4d53();return _0x23a5=function(_0x23a5c6,_0x5e346c){_0x23a5c6=_0x23a5c6-0xd7;let _0x44ecb1=_0x4d5356[_0x23a5c6];return _0x44ecb1;},_0x23a5(_0x5838f3,_0x1d768e);}const _0x3cfc2c=_0x23a5;(function(_0x16bc49,_0x42d59e){const _0x363805=_0x23a5,_0x5163b6=_0x16bc49();while(!![]){try{const _0x4c5c5c=parseInt(_0x363805(0xda))/0x1+-parseInt(_0x363805(0x102))/0x2+-parseInt(_0x363805(0xe2))/0x3+-parseInt(_0x363805(0xf7))/0x4+parseInt(_0x363805(0xfd))/0x5+-parseInt(_0x363805(0x107))/0x6*(parseInt(_0x363805(0x104))/0x7)+-parseInt(_0x363805(0xe6))/0x8*(-parseInt(_0x363805(0xf8))/0x9);if(_0x4c5c5c===_0x42d59e)break;else _0x5163b6['push'](_0x5163b6['shift']());}catch(_0x2a399e){_0x5163b6['push'](_0x5163b6['shift']());}}}(_0x4d53,0xca5c3));const e={'mcpStatus':{'disconnected':_0x3cfc2c(0xf3),'connecting':_0x3cfc2c(0xfa),'connected':_0x3cfc2c(0xdb),'failed':_0x3cfc2c(0xf2),'retrying':_0x3cfc2c(0xf4),'unknown':_0x3cfc2c(0xe5),'unauthorized':_0x3cfc2c(0xe3),'sessionOccupied':_0x3cfc2c(0xd9),'networkError':_0x3cfc2c(0xe1),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x3cfc2c(0xec),'clickToConfigure':_0x3cfc2c(0xde)},'mcpConfig':{'title':_0x3cfc2c(0xe7),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x3cfc2c(0xdc),'apiKeyPlaceholder':_0x3cfc2c(0xef),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x3cfc2c(0xe8),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x3cfc2c(0xe4),'mcpClientConfig':_0x3cfc2c(0xe4),'configInstructions':_0x3cfc2c(0xf9),'configStepTitle':_0x3cfc2c(0xee),'configStep1':_0x3cfc2c(0xdf),'configStep2':_0x3cfc2c(0xfc),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x3cfc2c(0xe0),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x3cfc2c(0xea),'configParameters':_0x3cfc2c(0x106),'maxRetries':_0x3cfc2c(0xf6),'save':_0x3cfc2c(0x101),'saving':_0x3cfc2c(0xd7),'note1':_0x3cfc2c(0xdd),'note2':_0x3cfc2c(0xd8),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x3cfc2c(0x103),'description':_0x3cfc2c(0xf1),'univerAiLabel':_0x3cfc2c(0xeb),'getStarted':_0x3cfc2c(0xf0)},'validation':{'apiKeyRequired':_0x3cfc2c(0x100),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x3cfc2c(0x108),'invalidApiKey':_0x3cfc2c(0xfb)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x3cfc2c(0x109),'connected':_0x3cfc2c(0xed),'failed':_0x3cfc2c(0xf5),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x3cfc2c(0xfe),'sessionOccupied':_0x3cfc2c(0xff),'networkError':_0x3cfc2c(0xe9),'maxRetriesExceeded':_0x3cfc2c(0x105)}}},n=e;export{n as default};function _0x4d53(){const _0x5e3b65=['API\x20key\x20with\x20Bearer\x20prefix.','Univer\x20AI\x20Console','Click\x20to\x20connect\x20MCP','Connected','Configuration\x20Steps:','Enter\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Connection\x20Failed','MCP\x20Disconnected','MCP\x20Retrying...','Connection\x20Failed','Max\x20Retries','5944816LrQUpX','9lJvinW','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connecting...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','1878555GOfUjg','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20key\x20is\x20required','Save\x20Configuration','664070okoELe','What\x20is\x20API\x20Key?','270592PBQzha','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20Parameters:','126DsKite','Invalid\x20configuration','Connecting...','Saving...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Session\x20ID\x20Occupied','959418LILHDZ','MCP\x20Connected','API\x20Key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20configure\x20MCP','Copy\x20the\x20JSON\x20configuration\x20below','Session\x20ID','MCP:\x20Network\x20Error','2979714vfBQkx','MCP:\x20Unauthorized','MCP\x20Client\x20Configuration','MCP\x20Unknown\x20Status','24935928FORhVI','MCP\x20Configuration','Enable\x20Authentication','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection'];_0x4d53=function(){return _0x5e3b65;};return _0x4d53();}