@univerjs-pro/mcp-ui 0.17.0 → 0.19.0

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 (70) 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/ja-JP.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/sk-SK.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ja-JP.js +1 -1
  21. package/lib/es/locale/ko-KR.js +1 -1
  22. package/lib/es/locale/ru-RU.js +1 -1
  23. package/lib/es/locale/sk-SK.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/index.css +537 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/sk-SK.js +1 -1
  38. package/lib/locale/vi-VN.js +1 -1
  39. package/lib/locale/zh-CN.js +1 -1
  40. package/lib/locale/zh-TW.js +1 -1
  41. package/lib/types/commands/mcp-config.command.d.ts +1 -1
  42. package/lib/types/controllers/menu.d.ts +2 -2
  43. package/lib/types/controllers/menu.schema.d.ts +1 -1
  44. package/lib/types/locale/ca-ES.d.ts +1 -1
  45. package/lib/types/locale/es-ES.d.ts +1 -1
  46. package/lib/types/locale/fa-IR.d.ts +1 -1
  47. package/lib/types/locale/fr-FR.d.ts +1 -1
  48. package/lib/types/locale/ja-JP.d.ts +1 -1
  49. package/lib/types/locale/ko-KR.d.ts +1 -1
  50. package/lib/types/locale/ru-RU.d.ts +1 -1
  51. package/lib/types/locale/sk-SK.d.ts +1 -1
  52. package/lib/types/locale/vi-VN.d.ts +1 -1
  53. package/lib/types/locale/zh-TW.d.ts +1 -1
  54. package/lib/types/plugin.d.ts +1 -1
  55. package/lib/types/views/components/mcp-config.d.ts +4 -3
  56. package/lib/types/views/components/mcp-status.d.ts +1 -1
  57. package/lib/umd/index.js +1 -1
  58. package/lib/umd/locale/ca-ES.js +1 -1
  59. package/lib/umd/locale/en-US.js +1 -1
  60. package/lib/umd/locale/es-ES.js +1 -1
  61. package/lib/umd/locale/fa-IR.js +1 -1
  62. package/lib/umd/locale/fr-FR.js +1 -1
  63. package/lib/umd/locale/ja-JP.js +1 -1
  64. package/lib/umd/locale/ko-KR.js +1 -1
  65. package/lib/umd/locale/ru-RU.js +1 -1
  66. package/lib/umd/locale/sk-SK.js +1 -1
  67. package/lib/umd/locale/vi-VN.js +1 -1
  68. package/lib/umd/locale/zh-CN.js +1 -1
  69. package/lib/umd/locale/zh-TW.js +1 -1
  70. package/package.json +12 -11
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x15fc16=_0x284b;(function(_0x2a92ef,_0x2c0c92){const _0x23bb95=_0x284b,_0x34889d=_0x2a92ef();while(!![]){try{const _0x27a455=-parseInt(_0x23bb95(0x1a1))/0x1*(-parseInt(_0x23bb95(0x2d8))/0x2)+-parseInt(_0x23bb95(0x2c6))/0x3+-parseInt(_0x23bb95(0x262))/0x4*(parseInt(_0x23bb95(0x22e))/0x5)+parseInt(_0x23bb95(0x2f3))/0x6*(-parseInt(_0x23bb95(0x216))/0x7)+-parseInt(_0x23bb95(0x256))/0x8+parseInt(_0x23bb95(0x1cf))/0x9+-parseInt(_0x23bb95(0x240))/0xa*(-parseInt(_0x23bb95(0x1f7))/0xb);if(_0x27a455===_0x2c0c92)break;else _0x34889d['push'](_0x34889d['shift']());}catch(_0x1e5cd7){_0x34889d['push'](_0x34889d['shift']());}}}(_0x2247,0x24369));var we=Object[_0x15fc16(0x23d)],Me=(_0x5ab51e,_0x26bf30,_0x1dbe4f)=>_0x26bf30 in _0x5ab51e?we(_0x5ab51e,_0x26bf30,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1dbe4f}):_0x5ab51e[_0x26bf30]=_0x1dbe4f,x=(_0x3ccb69,_0x3e00e2,_0xab6787)=>Me(_0x3ccb69,typeof _0x3e00e2!=_0x15fc16(0x26f)?_0x3e00e2+'':_0x3e00e2,_0xab6787);import{LocaleService as _0x1e9f5a,Inject as _0x471848,Injector as _0x15522a,Disposable as _0x1c6c21,IConfigService as _0x52408d,ILocalStorageService as _0x5d40f4,ILogService as _0x4beaaa,CommandType as _0x57a0ca,ICommandService as _0x18085c,DependentOn as _0x15fc36,Plugin as _0x3af9e7,merge as _0x5812fc}from'@univerjs/core';import{jsxs as _0x5ee6dc,jsx as _0x65800d}from'react/jsx-runtime';import{MCPConnectionStatus as _0x30d051,MCPConnectionError as _0x200070,MCPConnectionController as _0x32df26,MCP_PLUGIN_CONFIG_KEY as _0x27b73d,UniverMCPPlugin as _0x572af9}from'@univerjs-pro/mcp';import{clsx as _0x2fa6b6,Input as _0x5e47d7,Button as _0x45d97f,MessageType as _0x3eb8c4,Tooltip as _0x4e1646}from'@univerjs/design';import{useDependency as _0x18ba69,useObservable as _0x145691,ComponentManager as _0x32f1d7,connectInjector as _0x50031f,IUIPartsService as _0xceceef,IDialogService as _0x269bcb,IMessageService as _0x14979b,BuiltInUIPart as _0x176d1f,MenuItemType as _0x2d6f6c,RibbonStartGroup as _0x496f11,IMenuManagerService as _0x4b1e5b}from'@univerjs/ui';import{BehaviorSubject as _0x4d6428}from'rxjs';import{useRef as _0x1711a8,createElement as _0x5bcd8a,forwardRef as _0x2ecc1a,useState as _0x1579b3,useCallback as _0x51c7c8}from'react';import{ISocketService as _0x291f6e,WebSocketService as _0x262918}from'@univerjs/network';function b({ref:_0x5065c8,..._0x5694c4}){const _0x1c73ec=_0x15fc16,{icon:_0x5962f0,id:_0x4fee0e,className:_0x854cfe,extend:_0xf13c44,..._0x5273a5}=_0x5694c4,_0x3b2bfd=('univerjs-icon\x20univerjs-icon-'+_0x4fee0e+'\x20'+(_0x854cfe||''))[_0x1c73ec(0x273)](),_0x32d32c=_0x1711a8('_'+Xe());return le(_0x5962f0,''+_0x4fee0e,{'defIds':_0x5962f0[_0x1c73ec(0x227)],'idSuffix':_0x32d32c[_0x1c73ec(0x259)]},{'ref':_0x5065c8,'className':_0x3b2bfd,..._0x5273a5},_0xf13c44);}function le(_0x239af8,_0xaaff7b,_0x4e54fa,_0x108640,_0x243868){const _0x460888=_0x15fc16;return _0x5bcd8a(_0x239af8[_0x460888(0x25c)],{'key':_0xaaff7b,...We(_0x239af8,_0x4e54fa,_0x243868),..._0x108640},(qe(_0x239af8,_0x4e54fa)[_0x460888(0x2dc)]||[])[_0x460888(0x1b2)]((_0x3affbe,_0x3d7aa1)=>le(_0x3affbe,_0xaaff7b+'-'+_0x239af8[_0x460888(0x25c)]+'-'+_0x3d7aa1,_0x4e54fa,void 0x0,_0x243868)));}function We(_0x423ab4,_0x40942a,_0x99e43f){const _0x19971f=_0x15fc16,_0x1da73b={..._0x423ab4['attrs']};_0x99e43f!=null&&_0x99e43f[_0x19971f(0x221)]&&_0x1da73b['fill']===_0x19971f(0x221)&&(_0x1da73b[_0x19971f(0x1c6)]=_0x99e43f[_0x19971f(0x221)]),_0x423ab4['tag']==='mask'&&_0x1da73b['id']&&(_0x1da73b['id']=_0x1da73b['id']+_0x40942a[_0x19971f(0x22f)]),Object[_0x19971f(0x1fb)](_0x1da73b)[_0x19971f(0x21f)](([_0x49fc49,_0x67fbe2])=>{const _0x33137b=_0x19971f;_0x49fc49===_0x33137b(0x19f)&&typeof _0x67fbe2==_0x33137b(0x29e)&&(_0x1da73b[_0x49fc49]=_0x67fbe2[_0x33137b(0x2c2)](/url\(#(.*)\)/,'url(#$1'+_0x40942a['idSuffix']+')'));});const {defIds:_0x1044d3}=_0x40942a;return!_0x1044d3||_0x1044d3[_0x19971f(0x1b0)]===0x0||(_0x423ab4[_0x19971f(0x25c)]==='use'&&_0x1da73b[_0x19971f(0x1d2)]&&(_0x1da73b['xlink:href']=_0x1da73b[_0x19971f(0x1d2)]+_0x40942a[_0x19971f(0x22f)]),Object['entries'](_0x1da73b)[_0x19971f(0x21f)](([_0x3ad417,_0x2ca346])=>{const _0x12078f=_0x19971f;typeof _0x2ca346==_0x12078f(0x29e)&&(_0x1da73b[_0x3ad417]=_0x2ca346['replace'](/url\(#(.*)\)/,_0x12078f(0x29b)+_0x40942a[_0x12078f(0x22f)]+')'));})),_0x1da73b;}function qe(_0x387928,_0xfe8f26){const _0x31f968=_0x15fc16;var _0x1eca99;const {defIds:_0x43206c}=_0xfe8f26;return!_0x43206c||_0x43206c[_0x31f968(0x1b0)]===0x0?_0x387928:_0x387928[_0x31f968(0x25c)]===_0x31f968(0x2d3)&&((_0x1eca99=_0x387928[_0x31f968(0x2dc)])!=null&&_0x1eca99['length'])?{..._0x387928,'children':_0x387928['children'][_0x31f968(0x1b2)](_0x60133d=>typeof _0x60133d[_0x31f968(0x2ad)]['id']=='string'&&_0x43206c&&_0x43206c['includes'](_0x60133d[_0x31f968(0x2ad)]['id'])?{..._0x60133d,'attrs':{..._0x60133d[_0x31f968(0x2ad)],'id':_0x60133d['attrs']['id']+_0xfe8f26[_0x31f968(0x22f)]}}:_0x60133d)}:_0x387928;}function Xe(){const _0x2b527b=_0x15fc16;return Math[_0x2b527b(0x1c1)]()[_0x2b527b(0x1f9)](0x24)[_0x2b527b(0x1e3)](0x2,0x8);}b[_0x15fc16(0x2c9)]=_0x15fc16(0x2a7);const Je={'tag':_0x15fc16(0x2a4),'attrs':{'xmlns':_0x15fc16(0x284),'fill':_0x15fc16(0x1ea),'viewBox':_0x15fc16(0x200),'width':_0x15fc16(0x2b3),'height':_0x15fc16(0x2b3)},'children':[{'tag':_0x15fc16(0x296),'attrs':{'fill':_0x15fc16(0x26c),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':_0x15fc16(0x2e2),'clipRule':_0x15fc16(0x2e2)}}]},ue=_0x2ecc1a(function(_0x1d0bb3,_0x39c147){const _0x2af7e6=_0x15fc16;return _0x5bcd8a(b,Object['assign']({},_0x1d0bb3,{'id':_0x2af7e6(0x217),'ref':_0x39c147,'icon':Je}));});ue[_0x15fc16(0x2c9)]=_0x15fc16(0x290);const Qe={'tag':'svg','attrs':{'xmlns':_0x15fc16(0x284),'fill':_0x15fc16(0x1ea),'viewBox':_0x15fc16(0x200),'width':_0x15fc16(0x2b3),'height':_0x15fc16(0x2b3)},'children':[{'tag':_0x15fc16(0x296),'attrs':{'fill':_0x15fc16(0x26c),'d':'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'}}]},ve=_0x2ecc1a(function(_0xdaff31,_0x54b635){const _0x427532=_0x15fc16;return _0x5bcd8a(b,Object[_0x427532(0x1a4)]({},_0xdaff31,{'id':'close-icon','ref':_0x54b635,'icon':Qe}));});ve[_0x15fc16(0x2c9)]=_0x15fc16(0x27d);const en={'tag':_0x15fc16(0x2a4),'attrs':{'xmlns':_0x15fc16(0x284),'fill':'none','viewBox':_0x15fc16(0x200),'width':'1em','height':_0x15fc16(0x2b3)},'children':[{'tag':_0x15fc16(0x296),'attrs':{'fill':_0x15fc16(0x26c),'d':_0x15fc16(0x203)}},{'tag':'path','attrs':{'fill':_0x15fc16(0x26c),'d':'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'}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x15fc16(0x278),'fillRule':'evenodd','clipRule':_0x15fc16(0x2e2)}}]},de=_0x2ecc1a(function(_0x372010,_0xd0a2da){const _0x535fb2=_0x15fc16;return _0x5bcd8a(b,Object[_0x535fb2(0x1a4)]({},_0x372010,{'id':_0x535fb2(0x1cd),'ref':_0xd0a2da,'icon':en}));});de[_0x15fc16(0x2c9)]=_0x15fc16(0x2d6);const nn={'tag':_0x15fc16(0x2a4),'attrs':{'xmlns':_0x15fc16(0x284),'fill':_0x15fc16(0x1ea),'viewBox':'0\x200\x2016\x2016','width':_0x15fc16(0x2b3),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x15fc16(0x1c7)},'children':[{'tag':_0x15fc16(0x296),'attrs':{'stroke':_0x15fc16(0x26c),'d':_0x15fc16(0x2ce),'strokeLinecap':'round','strokeLinejoin':_0x15fc16(0x2cd),'strokeWidth':1.2}}]},{'tag':_0x15fc16(0x2d3),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x15fc16(0x1bf)},'children':[{'tag':_0x15fc16(0x296),'attrs':{'fill':'white','d':_0x15fc16(0x2a2)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},ge=_0x2ecc1a(function(_0x1ca5ae,_0x5ad1f0){const _0x4cf2d2=_0x15fc16;return _0x5bcd8a(b,Object['assign']({},_0x1ca5ae,{'id':_0x4cf2d2(0x228),'ref':_0x5ad1f0,'icon':nn}));});ge[_0x15fc16(0x2c9)]=_0x15fc16(0x28d);const rn={'tag':_0x15fc16(0x2a4),'attrs':{'xmlns':_0x15fc16(0x284),'fill':'none','viewBox':_0x15fc16(0x246),'width':_0x15fc16(0x2b3),'height':_0x15fc16(0x2b3)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x15fc16(0x26c),'d':_0x15fc16(0x29d),'strokeLinecap':_0x15fc16(0x2cd),'strokeLinejoin':_0x15fc16(0x2cd),'strokeWidth':1.2}}]},{'tag':_0x15fc16(0x2d3),'attrs':{},'children':[{'tag':_0x15fc16(0x235),'attrs':{'id':_0x15fc16(0x2be)},'children':[{'tag':_0x15fc16(0x296),'attrs':{'fill':_0x15fc16(0x1ad),'d':'M0\x200H16V16H0z','transform':_0x15fc16(0x25e)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},pe=_0x2ecc1a(function(_0x4d968e,_0x584602){return _0x5bcd8a(b,Object['assign']({},_0x4d968e,{'id':'on-line-icon','ref':_0x584602,'icon':rn}));});pe[_0x15fc16(0x2c9)]=_0x15fc16(0x2dd);function tn(_0x10d31a){const _0x1a3b52=_0x15fc16;var _0x441ecf,_0x50b272;const {mcpCoreConfig:_0x465c29,onSave:_0x53706c,loading:_0x26395a=!0x1,config:_0x502413,connectionStatus$:_0x362a6e,connectionError$:_0x76d250,currentApiKey$:_0x59295a,currentSessionId$:_0x5f3af5}=_0x10d31a,_0x46456f=_0x18ba69(_0x1e9f5a),_0x4c0a2f=_0x145691(_0x362a6e,_0x30d051[_0x1a3b52(0x24f)]),_0x491a70=_0x145691(_0x76d250,_0x200070[_0x1a3b52(0x1a2)]),_0x2f654b=_0x145691(_0x5f3af5,''),_0x394e5d=_0x145691(_0x59295a,''),[_0x394cee,_0x557c3f]=_0x1579b3(_0x394e5d||''),_0x22fbb5=!0x0,_0xfcc00a=_0x502413[_0x1a3b52(0x1ee)]&&_0x465c29[_0x1a3b52(0x254)]&&(_0x465c29['mcpServerUrl'][_0x1a3b52(0x207)](_0x1a3b52(0x222))||_0x465c29['mcpServerUrl']['includes'](_0x1a3b52(0x295))),_0x52f5be=(_0x441ecf=_0x465c29[_0x1a3b52(0x254)])==null?void 0x0:_0x441ecf[_0x1a3b52(0x207)]('univer.plus'),_0x359f0b=(_0x50b272=_0x465c29[_0x1a3b52(0x254)])==null?void 0x0:_0x50b272['includes'](_0x1a3b52(0x295)),_0x51f668=_0x52f5be?_0x1a3b52(0x2b1):_0x1a3b52(0x23f),_0x19c9a0=_0x502413[_0x1a3b52(0x1ee)]&&(_0x52f5be||_0x359f0b),[_0x3ab6ae,_0xdda4c7]=_0x1579b3(!_0x394cee[_0x1a3b52(0x273)]()),_0x52584d=(_0x4a66e4,_0x7b029c)=>{const _0x2bd2da=_0x1a3b52;if(_0x7b029c===_0x200070[_0x2bd2da(0x257)])return _0x2bd2da(0x2cb);switch(_0x4a66e4){case _0x30d051['CONNECTED']:return _0x2bd2da(0x2d7);case _0x30d051[_0x2bd2da(0x1b9)]:case _0x30d051[_0x2bd2da(0x219)]:return _0x2bd2da(0x2a1);case _0x30d051['FAILED']:return _0x2bd2da(0x2cb);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x49e8de=(_0x2cd724,_0x47dac)=>{const _0x463004=_0x1a3b52;if(_0x47dac===_0x200070[_0x463004(0x257)])return _0x463004(0x21a);switch(_0x2cd724){case _0x30d051['CONNECTED']:return _0x463004(0x271);case _0x30d051[_0x463004(0x1b9)]:case _0x30d051[_0x463004(0x219)]:return _0x463004(0x279);case _0x30d051[_0x463004(0x251)]:return'univer-bg-red-500';default:return _0x463004(0x1b7);}},_0x134cb8=_0x5a133f=>{const _0x1ed77b=_0x1a3b52;switch(_0x5a133f){case _0x30d051[_0x1ed77b(0x1c4)]:return _0x46456f['t'](_0x1ed77b(0x24b));case _0x30d051[_0x1ed77b(0x1b9)]:return _0x46456f['t'](_0x1ed77b(0x292));case _0x30d051[_0x1ed77b(0x251)]:return _0x46456f['t'](_0x1ed77b(0x1e5));case _0x30d051[_0x1ed77b(0x219)]:return _0x46456f['t'](_0x1ed77b(0x2e6));default:return _0x46456f['t'](_0x1ed77b(0x20e));}},_0x35097a=_0x49f1a3=>{const _0x1fd91d=_0x1a3b52;switch(_0x49f1a3){case _0x200070[_0x1fd91d(0x257)]:return _0x46456f['t']('mcpConfig.connectionError.unauthorized');case _0x200070['SESSION_ID_OCCUPIED']:return _0x46456f['t'](_0x1fd91d(0x234));case _0x200070[_0x1fd91d(0x1f8)]:return _0x46456f['t']('mcpConfig.connectionError.networkError');case _0x200070[_0x1fd91d(0x22b)]:return _0x46456f['t'](_0x1fd91d(0x1fe));default:return'';}},_0xfd5466=_0x51c7c8(()=>{const _0x5482de=_0x1a3b52,_0x40cf00={..._0x465c29,'apiKey':_0x394cee[_0x5482de(0x273)](),'enableAuth':_0x22fbb5};_0x53706c(_0x40cf00);},[_0x465c29,_0x394cee,_0x22fbb5,_0x53706c]),_0x207322=_0x394cee[_0x1a3b52(0x273)]()['length']>0x0;return _0x5ee6dc('div',{'className':_0x1a3b52(0x2c4),'children':[_0x65800d(_0x1a3b52(0x1aa),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x5ee6dc(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x289),'children':[_0x65800d(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x229),'children':_0x65800d(_0x1a3b52(0x1f5),{'className':_0x1a3b52(0x239),'children':'⚙'})}),_0x65800d(_0x1a3b52(0x1aa),{'children':_0x65800d('p',{'className':_0x1a3b52(0x277),'children':_0x46456f['t'](_0x1a3b52(0x2ee))})})]})}),_0x5ee6dc(_0x1a3b52(0x1aa),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x65800d(_0x1a3b52(0x1aa),{'className':_0x2fa6b6(_0x1a3b52(0x20d),_0x52584d(_0x4c0a2f,_0x491a70)),'children':_0x5ee6dc(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x1a7),'children':[_0x65800d(_0x1a3b52(0x1aa),{'className':_0x2fa6b6('univer-size-2\x20univer-rounded-full',_0x49e8de(_0x4c0a2f,_0x491a70))}),_0x65800d(_0x1a3b52(0x1f5),{'className':'univer-text-sm\x20univer-font-medium','children':_0x134cb8(_0x4c0a2f)})]})}),_0x491a70!==_0x200070[_0x1a3b52(0x1a2)]&&(_0x4c0a2f===_0x30d051[_0x1a3b52(0x251)]||_0x491a70===_0x200070[_0x1a3b52(0x257)])&&_0x65800d(_0x1a3b52(0x1aa),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x5ee6dc('div',{'className':_0x1a3b52(0x1c0),'children':[_0x65800d(_0x1a3b52(0x1f5),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x65800d('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x35097a(_0x491a70)})]})})]}),_0x65800d(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x1c8),'children':_0x5ee6dc(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x1f6),'children':[_0x5ee6dc(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x1be),'children':[_0x5ee6dc(_0x1a3b52(0x2c1),{'className':_0x1a3b52(0x205),'children':[_0x65800d(_0x1a3b52(0x1f5),{'children':'🔑'}),'\x20',_0x46456f['t'](_0x1a3b52(0x299)),_0x65800d(_0x1a3b52(0x1f5),{'className':'univer-text-red-500','children':'*'}),_0xfcc00a&&_0x65800d('a',{'className':_0x1a3b52(0x21e),'title':_0x46456f['t'](_0x1a3b52(0x29a)),'role':_0x1a3b52(0x1dd),'onClick':()=>_0xdda4c7(!0x0),'children':_0x65800d(de,{})})]}),_0x65800d(_0x5e47d7,{'type':_0x1a3b52(0x22d),'placeholder':_0x46456f['t'](_0x1a3b52(0x293)),'value':_0x394cee,'disabled':_0x26395a,'autoComplete':_0x1a3b52(0x1f4),'onChange':_0x557c3f}),_0x65800d('p',{'className':_0x1a3b52(0x247),'children':_0x46456f['t'](_0x1a3b52(0x1f1))})]}),_0xfcc00a&&_0x3ab6ae&&_0x5ee6dc(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x294),'children':[_0x65800d('a',{'className':_0x1a3b52(0x249),'role':'button','onClick':()=>_0xdda4c7(!0x1),'children':_0x65800d(ve,{'className':_0x1a3b52(0x24d)})}),_0x5ee6dc('div',{'className':_0x1a3b52(0x223),'children':[_0x65800d(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x2e0),'children':_0x65800d(_0x1a3b52(0x1f5),{'className':_0x1a3b52(0x25a),'children':'🚀'})}),_0x5ee6dc(_0x1a3b52(0x1aa),{'className':'univer-flex-1','children':[_0x65800d('h4',{'className':_0x1a3b52(0x1a0),'children':_0x46456f['t']('mcpConfig.apiApplyInfo.title')}),_0x65800d('p',{'className':_0x1a3b52(0x243),'children':_0x46456f['t'](_0x1a3b52(0x272))}),_0x65800d(_0x1a3b52(0x1aa),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x19c9a0&&_0x5ee6dc('a',{'className':_0x1a3b52(0x29f),'href':_0x51f668,'target':_0x1a3b52(0x214),'rel':_0x1a3b52(0x28c),'children':[_0x65800d(_0x1a3b52(0x1f5),{'children':'🤖'}),_0x46456f['t'](_0x1a3b52(0x26e)),_0x65800d(_0x1a3b52(0x1f5),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x5ee6dc(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x1ba),'children':['✨','\x20',_0x46456f['t'](_0x1a3b52(0x1dc))]})]})]})]}),_0x502413[_0x1a3b52(0x1ee)]&&_0x5ee6dc(_0x1a3b52(0x1aa),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x5ee6dc('h4',{'className':_0x1a3b52(0x1b6),'children':[_0x65800d(_0x1a3b52(0x1f5),{'children':'🔗'}),'\x20',_0x46456f['t'](_0x1a3b52(0x237))]}),_0x5ee6dc('div',{'className':_0x1a3b52(0x2bd),'children':[_0x5ee6dc(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x1cb),'children':[_0x65800d('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x46456f['t']('mcpConfig.configInstructions')}),_0x5ee6dc(_0x1a3b52(0x1aa),{'className':'univer-space-y-2','children':[_0x65800d(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x250),'children':_0x46456f['t'](_0x1a3b52(0x24c))}),_0x5ee6dc(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x280),'children':[_0x5ee6dc(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x1a7),'children':[_0x65800d('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':'1'}),_0x46456f['t'](_0x1a3b52(0x208))]}),_0x5ee6dc(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x1a7),'children':[_0x65800d(_0x1a3b52(0x1f5),{'className':_0x1a3b52(0x28a),'children':'2'}),_0x46456f['t'](_0x1a3b52(0x1ec))]}),_0x5ee6dc(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x1a7),'children':[_0x65800d('span',{'className':_0x1a3b52(0x28a),'children':'3'}),_0x46456f['t'](_0x1a3b52(0x2b6))]})]})]})]}),_0x5ee6dc(_0x1a3b52(0x1aa),{'className':'univer-space-y-2','children':[_0x65800d('div',{'className':_0x1a3b52(0x250),'children':_0x1a3b52(0x1d9)}),_0x65800d(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x28e),'children':_0x65800d(_0x1a3b52(0x27b),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x1a3b52(0x21d)+(_0x2f654b||_0x1a3b52(0x2a9)),'type':_0x1a3b52(0x1c5),'headers':{'Authorization':_0x1a3b52(0x2e1)+(_0x394cee||_0x1a3b52(0x213))}}}},null,0x2)})})]}),_0x5ee6dc(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x1cb),'children':[_0x65800d(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x250),'children':_0x46456f['t']('mcpConfig.configParameters')}),_0x5ee6dc(_0x1a3b52(0x1aa),{'className':'univer-space-y-2','children':[_0x5ee6dc('div',{'className':_0x1a3b52(0x2b4),'children':[_0x65800d('div',{'className':_0x1a3b52(0x1a9)}),_0x5ee6dc('div',{'className':_0x1a3b52(0x1f0),'children':[_0x65800d(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x24e),'children':_0x1a3b52(0x2b5)}),_0x65800d(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x247),'children':_0x46456f['t'](_0x1a3b52(0x267))})]})]}),_0x5ee6dc(_0x1a3b52(0x1aa),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x65800d('div',{'className':_0x1a3b52(0x1a9)}),_0x5ee6dc('div',{'className':_0x1a3b52(0x1f0),'children':[_0x65800d(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x24e),'children':_0x1a3b52(0x264)}),_0x65800d(_0x1a3b52(0x1aa),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x46456f['t'](_0x1a3b52(0x20c))})]})]})]})]})]})]}),_0x65800d(_0x45d97f,{'onClick':_0xfd5466,'disabled':!_0x207322||_0x26395a,'className':_0x1a3b52(0x1d8),'children':_0x26395a?_0x5ee6dc(_0x1a3b52(0x1f5),{'className':_0x1a3b52(0x1a7),'children':[_0x65800d(_0x1a3b52(0x1f5),{'children':'⟲'}),_0x46456f['t'](_0x1a3b52(0x260))]}):_0x5ee6dc(_0x1a3b52(0x1f5),{'className':_0x1a3b52(0x1a7),'children':[_0x65800d(ue,{}),_0x46456f['t'](_0x1a3b52(0x1b8))]})}),_0x65800d(_0x1a3b52(0x1aa),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x5ee6dc(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x1e9),'children':[_0x65800d(_0x1a3b52(0x1f5),{'className':_0x1a3b52(0x1d5),'children':'💡'}),_0x5ee6dc(_0x1a3b52(0x1aa),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x65800d(_0x1a3b52(0x1aa),{'className':'univer-font-medium','children':_0x1a3b52(0x2db)}),_0x5ee6dc(_0x1a3b52(0x1aa),{'children':['•',_0x46456f['t'](_0x1a3b52(0x233))]}),_0x5ee6dc(_0x1a3b52(0x1aa),{'children':['•',_0x46456f['t'](_0x1a3b52(0x242))]})]})]})})]})})]});}const y=_0x15fc16(0x1a3),re={'showDeveloperTools':!0x1,'showStatus':!0x0};var on=Object['getOwnPropertyDescriptor'],sn=(_0x413cb0,_0x6d5bc0,_0x245848,_0x9d6b2d)=>{const _0x2f50b5=_0x15fc16;for(var _0x2d1cae=_0x9d6b2d>0x1?void 0x0:_0x9d6b2d?on(_0x6d5bc0,_0x245848):_0x6d5bc0,_0x5e742d=_0x413cb0[_0x2f50b5(0x1b0)]-0x1,_0x57f4b0;_0x5e742d>=0x0;_0x5e742d--)(_0x57f4b0=_0x413cb0[_0x5e742d])&&(_0x2d1cae=_0x57f4b0(_0x2d1cae)||_0x2d1cae);return _0x2d1cae;},d=(_0x4cba2f,_0x28376d)=>(_0xfefa0c,_0x31ef86)=>_0x28376d(_0xfefa0c,_0x31ef86,_0x4cba2f);const L=_0x15fc16(0x2ac),j='mcp-config-dialog';let I=class extends _0x1c6c21{constructor(_0x1757f0,_0x57f819,_0x36794f,_0x13738c,_0x34a289,_0x9e2c22,_0x25118f,_0x35ee54,_0x511565,_0x5d5bee){const _0x3f8ef6=_0x15fc16;super(),x(this,_0x3f8ef6(0x202),new _0x4d6428(!0x1)),x(this,'_mcpCoreConfig$',new _0x4d6428({})),x(this,_0x3f8ef6(0x1ae),new _0x4d6428({})),x(this,_0x3f8ef6(0x27e),new _0x4d6428('')),x(this,_0x3f8ef6(0x26d),async _0x4208fd=>{const _0x57708a=_0x3f8ef6;var _0x56f2af,_0x13638e;this['_loading$'][_0x57708a(0x26a)](!0x0);try{const _0x492eb8=await this[_0x57708a(0x2de)](_0x4208fd);if(!_0x492eb8['isValid']){this[_0x57708a(0x1eb)][_0x57708a(0x29c)]({'type':_0x3eb8c4[_0x57708a(0x2c3)],'content':_0x492eb8[_0x57708a(0x1fa)]||this['_localeService']['t'](_0x57708a(0x1e2))});return;}_0x4208fd['apiKey']?await this[_0x57708a(0x286)][_0x57708a(0x1cc)](L,_0x4208fd[_0x57708a(0x28f)][_0x57708a(0x273)]()):await this[_0x57708a(0x286)][_0x57708a(0x2bb)](L),this[_0x57708a(0x27e)]['next'](((_0x56f2af=_0x4208fd[_0x57708a(0x28f)])==null?void 0x0:_0x56f2af[_0x57708a(0x273)]())||''),this[_0x57708a(0x1a8)][_0x57708a(0x287)]({'Authorization':_0x57708a(0x2e1)+((_0x13638e=_0x4208fd[_0x57708a(0x28f)])==null?void 0x0:_0x13638e[_0x57708a(0x273)]())}),this[_0x57708a(0x1eb)]['show']({'type':_0x3eb8c4['Success'],'content':this[_0x57708a(0x2af)]['t'](_0x57708a(0x241))}),setTimeout(()=>{this['_dialogService']['close'](j);},0x320);}catch(_0x27637e){this[_0x57708a(0x268)][_0x57708a(0x2e3)](_0x57708a(0x25b),_0x27637e),this[_0x57708a(0x1eb)][_0x57708a(0x29c)]({'type':_0x3eb8c4[_0x57708a(0x2c3)],'content':this[_0x57708a(0x2af)]['t'](_0x57708a(0x2e7))});}finally{this['_loading$'][_0x57708a(0x26a)](!0x1);}}),(this[_0x3f8ef6(0x2b9)]=_0x1757f0,this[_0x3f8ef6(0x1c3)]=_0x57f819,this[_0x3f8ef6(0x2f7)]=_0x36794f,this['_localStorageService']=_0x13738c,this[_0x3f8ef6(0x248)]=_0x34a289,this[_0x3f8ef6(0x1eb)]=_0x9e2c22,this[_0x3f8ef6(0x2ec)]=_0x25118f,this['_localeService']=_0x35ee54,this['_logService']=_0x511565,this[_0x3f8ef6(0x1a8)]=_0x5d5bee,this['_initConfigSync'](),this[_0x3f8ef6(0x21c)](),this['_registerComponent']());}[_0x15fc16(0x2b0)](){const _0x2c906d=_0x15fc16,_0x393fbf=this['_configService'][_0x2c906d(0x274)](y);_0x393fbf!=null&&_0x393fbf['showDeveloperTools']&&this[_0x2c906d(0x248)][_0x2c906d(0x275)]({'id':j,'title':{'title':this[_0x2c906d(0x2af)]['t'](_0x2c906d(0x201))},'children':{'label':_0x2c906d(0x297)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x1da864=_0x2c906d;this[_0x1da864(0x248)][_0x1da864(0x1e1)](j);}});}[_0x15fc16(0x258)](){const _0xe53445=_0x15fc16;return this[_0xe53445(0x245)][_0xe53445(0x2f2)];}['_registerComponent'](){const _0x8d73a=_0x15fc16;this[_0x8d73a(0x1bd)](this['_componentManager'][_0x8d73a(0x2bc)](_0x8d73a(0x297),this['_createConfigPanelComponent']()));}[_0x15fc16(0x2ef)](){const _0x4863a6=_0x15fc16;return _0x50031f(()=>{const _0x510d2f=_0x284b;var _0x261a18,_0x112d40,_0x289976;return _0x65800d(tn,{'config':this[_0x510d2f(0x1ae)]['value'],'mcpCoreConfig':this[_0x510d2f(0x245)]['value'],'currentApiKey$':this[_0x510d2f(0x27e)],'onSave':this[_0x510d2f(0x26d)],'loading':this[_0x510d2f(0x202)][_0x510d2f(0x2f2)],'connectionStatus$':(_0x261a18=this[_0x510d2f(0x1a8)])==null?void 0x0:_0x261a18[_0x510d2f(0x1e0)],'connectionError$':(_0x112d40=this[_0x510d2f(0x1a8)])==null?void 0x0:_0x112d40[_0x510d2f(0x23e)],'currentSessionId$':(_0x289976=this[_0x510d2f(0x1a8)])==null?void 0x0:_0x289976[_0x510d2f(0x24a)]});},this[_0x4863a6(0x2b9)]);}[_0x15fc16(0x263)](){const _0x425aac=_0x15fc16;this[_0x425aac(0x1bd)](this['_configService']['subscribeConfigValue$'](_0x27b73d)['subscribe'](_0x4876e5=>{const _0x565fa9=_0x425aac;this[_0x565fa9(0x245)][_0x565fa9(0x26a)](_0x4876e5||{});}));const _0x3cb494=this[_0x425aac(0x2f7)][_0x425aac(0x274)](_0x27b73d);this[_0x425aac(0x245)][_0x425aac(0x26a)](_0x3cb494||{}),this['disposeWithMe'](this[_0x425aac(0x2f7)][_0x425aac(0x1e6)](y)[_0x425aac(0x2ca)](_0x2dc844=>{const _0x5b1827=_0x425aac;this[_0x5b1827(0x1ae)][_0x5b1827(0x26a)](_0x2dc844||{});}));const _0x398ae1=this[_0x425aac(0x2f7)][_0x425aac(0x274)](y);this[_0x425aac(0x1ae)][_0x425aac(0x26a)](_0x398ae1||{});}async['_loadStoredApiKey'](){const _0x4cc713=_0x15fc16,_0x9abdc4=this[_0x4cc713(0x2f7)][_0x4cc713(0x274)](y);if(!(_0x9abdc4!=null&&_0x9abdc4[_0x4cc713(0x1ee)]))return;const _0x2fda7a=await this['_localStorageService'][_0x4cc713(0x218)](L);_0x2fda7a&&(this[_0x4cc713(0x1a8)][_0x4cc713(0x287)]({'Authorization':_0x4cc713(0x2e1)+_0x2fda7a}),this['_apiKey$'][_0x4cc713(0x26a)](_0x2fda7a));}async['_validateConfig'](_0x3bb2a0){const _0x39f60a=_0x15fc16;if(!_0x3bb2a0['apiKey']||_0x3bb2a0[_0x39f60a(0x28f)][_0x39f60a(0x273)]()[_0x39f60a(0x1b0)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x39f60a(0x2af)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x3bb2a0['apiKey'][_0x39f60a(0x273)]()[_0x39f60a(0x1b0)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x39f60a(0x2af)]['t'](_0x39f60a(0x2ed))};try{const _0x27d567=await this[_0x39f60a(0x2b9)][_0x39f60a(0x1ef)](_0x32df26)[_0x39f60a(0x23c)](_0x3bb2a0[_0x39f60a(0x28f)][_0x39f60a(0x273)]());return _0x27d567['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x27d567[_0x39f60a(0x2e3)]||this[_0x39f60a(0x2af)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x57a2be){return console[_0x39f60a(0x232)](_0x39f60a(0x236),_0x57a2be),{'isValid':!0x0};}}};I=sn([d(0x0,_0x471848(_0x15522a)),d(0x1,_0xceceef),d(0x2,_0x52408d),d(0x3,_0x5d40f4),d(0x4,_0x269bcb),d(0x5,_0x14979b),d(0x6,_0x471848(_0x32f1d7)),d(0x7,_0x471848(_0x1e9f5a)),d(0x8,_0x4beaaa),d(0x9,_0x471848(_0x32df26))],I);const V={'id':_0x15fc16(0x2f6),'type':_0x57a0ca[_0x15fc16(0x220)],'handler':async(_0x18e6ad,_0x1c1d58)=>(_0x18e6ad[_0x15fc16(0x1ef)](I)[_0x15fc16(0x2b0)](),!0x0)};function fe(_0x193f5b,_0x418bd3){const _0x21b123=_0x15fc16;switch(_0x193f5b){case _0x30d051[_0x21b123(0x24f)]:return _0x21b123(0x261);case _0x30d051[_0x21b123(0x1b9)]:return'mcpStatus.connecting';case _0x30d051[_0x21b123(0x1c4)]:return _0x21b123(0x20f);case _0x30d051[_0x21b123(0x251)]:switch(_0x418bd3){case _0x200070[_0x21b123(0x257)]:return _0x21b123(0x276);case _0x200070['SESSION_ID_OCCUPIED']:return _0x21b123(0x1ca);case _0x200070['NETWORK_ERROR']:return _0x21b123(0x2cf);case _0x200070['MAX_RETRIES_EXCEEDED']:return'mcpStatus.maxRetriesExceeded';default:return'mcpStatus.failed';}case _0x30d051[_0x21b123(0x219)]:return _0x21b123(0x1f2);default:return _0x21b123(0x2cc);}}function cn(_0x4ae206,_0x4b09f5,_0x510c97,_0x3079a5=!0x0){const _0x1c66d6=_0x15fc16,_0x3e6e89=fe(_0x4ae206,_0x4b09f5),_0x3dedbe=_0x510c97['t'](_0x3e6e89);return _0x3079a5?_0x4ae206===_0x30d051[_0x1c66d6(0x24f)]&&_0x4b09f5===_0x200070[_0x1c66d6(0x257)]?_0x3dedbe+'\x20-\x20'+_0x510c97['t'](_0x1c66d6(0x25f)):_0x4ae206===_0x30d051[_0x1c66d6(0x1c4)]?''+_0x3dedbe:_0x4ae206===_0x30d051[_0x1c66d6(0x24f)]||_0x4ae206===_0x30d051[_0x1c66d6(0x251)]?_0x3dedbe+'\x20-\x20'+_0x510c97['t']('mcpStatus.clickToConnect'):_0x3dedbe:_0x3dedbe;}function an(_0x514806){const _0x205986=_0x15fc16;switch(_0x514806){case _0x30d051['CONNECTED']:return'univer-text-green-500';case _0x30d051['CONNECTING']:case _0x30d051[_0x205986(0x219)]:return _0x205986(0x1b4);case _0x30d051['FAILED']:case _0x30d051['DISCONNECTED']:return _0x205986(0x23a);default:return'univer-text-gray-500';}}function ln(_0x551d53){const _0x2dcd99=_0x15fc16,{status$:_0x3b5d75,error$:_0x307372,onConfigure:_0xa16fdc,showClickable:_0x24970e=!0x0}=_0x551d53,_0x5dff05=_0x145691(_0x3b5d75,_0x30d051[_0x2dcd99(0x24f)]),_0x162fbb=_0x145691(_0x307372,_0x200070['NONE']),_0x57cac0=_0x18ba69(_0x1e9f5a),_0x164e9d=_0x5dff05===_0x30d051[_0x2dcd99(0x1c4)];_0x5dff05===_0x30d051[_0x2dcd99(0x1b9)]||_0x30d051[_0x2dcd99(0x219)];const _0x2eaa81=_0x57cac0['t'](fe(_0x5dff05,_0x162fbb)),_0x5d4c82=cn(_0x5dff05,_0x162fbb,_0x57cac0,_0x24970e),_0x2be93c=an(_0x5dff05),_0x2dee59=_0x164e9d?_0x65800d(pe,{}):_0x65800d(ge,{}),_0x2c4124=_0x51c7c8(()=>{_0x24970e&&_0xa16fdc&&_0xa16fdc();},[_0x24970e,_0xa16fdc]);function _0x60896d(){const _0x31d981=_0x2dcd99;return _0x5ee6dc(_0x31d981(0x1aa),{'className':_0x2fa6b6('univer-flex\x20univer-items-center',_0x24970e&&_0xa16fdc&&_0x31d981(0x2b7)),'role':_0x31d981(0x1dd),'onClick':_0x24970e&&_0xa16fdc?_0x2c4124:void 0x0,'children':[_0x65800d(_0x31d981(0x1aa),{'className':_0x2fa6b6(_0x31d981(0x28b),_0x2be93c),'children':_0x2dee59}),_0x65800d(_0x31d981(0x1aa),{'className':_0x31d981(0x27a),'children':_0x2eaa81})]});}return _0x65800d(_0x4e1646,{'title':_0x5d4c82,'placement':_0x2dcd99(0x206),'children':_0x60896d()});}var un=Object[_0x15fc16(0x2d2)],vn=(_0x2b8979,_0x2f1351,_0x573810,_0x3a6596)=>{for(var _0x5dd071=_0x3a6596>0x1?void 0x0:_0x3a6596?un(_0x2f1351,_0x573810):_0x2f1351,_0x413969=_0x2b8979['length']-0x1,_0x19b4ea;_0x413969>=0x0;_0x413969--)(_0x19b4ea=_0x2b8979[_0x413969])&&(_0x5dd071=_0x19b4ea(_0x5dd071)||_0x5dd071);return _0x5dd071;},A=(_0x1af426,_0x58a4da)=>(_0x5e0f34,_0x232d4e)=>_0x58a4da(_0x5e0f34,_0x232d4e,_0x1af426);let D=class extends _0x1c6c21{constructor(_0x1de66f,_0x27e2a8,_0x43e83e,_0x45a8d1){const _0x133623=_0x15fc16;super(),this[_0x133623(0x2b9)]=_0x1de66f,this[_0x133623(0x1b1)]=_0x27e2a8,this[_0x133623(0x1c3)]=_0x43e83e,this[_0x133623(0x2f7)]=_0x45a8d1,this[_0x133623(0x2e9)](),this['_initStatusComponent']();}[_0x15fc16(0x2e9)](){const _0x42b0ac=_0x15fc16,_0x25f032=this[_0x42b0ac(0x2f7)]['getConfig'](y);_0x25f032!=null&&_0x25f032[_0x42b0ac(0x1ee)]&&(this[_0x42b0ac(0x1b1)][_0x42b0ac(0x2d5)]=!0x1);}['_initStatusComponent'](){const _0x232ab4=_0x15fc16,_0x332a1f=this['_configService']['getConfig'](y);(_0x332a1f==null?void 0x0:_0x332a1f['showStatus'])!==!0x1&&this[_0x232ab4(0x1bd)](this[_0x232ab4(0x1c3)][_0x232ab4(0x2ba)](_0x176d1f[_0x232ab4(0x2f5)],()=>{const _0x142a0f=_0x232ab4;var _0x470f6a;return _0x50031f(dn({'status$':this['_connectionController'][_0x142a0f(0x1e0)],'error$':this[_0x142a0f(0x1b1)]['connectionError$'],'onConfigure':()=>this[_0x142a0f(0x281)](),'showClickable':(_0x470f6a=_0x332a1f==null?void 0x0:_0x332a1f[_0x142a0f(0x1ee)])!=null?_0x470f6a:!0x1}),this[_0x142a0f(0x2b9)]);}));}[_0x15fc16(0x281)](){const _0x2d4eeb=_0x15fc16;this[_0x2d4eeb(0x2b9)][_0x2d4eeb(0x1ef)](I)[_0x2d4eeb(0x2b0)]();}};D=vn([A(0x0,_0x471848(_0x15522a)),A(0x1,_0x471848(_0x32df26)),A(0x2,_0xceceef),A(0x3,_0x52408d)],D);function dn(_0x4e5a0c){const {status$:_0x4ba357,error$:_0x1f7a73,onConfigure:_0xfdc95d,showClickable:_0x44ad28}=_0x4e5a0c;return function(){return _0x65800d(ln,{'status$':_0x4ba357,'error$':_0x1f7a73,'onConfigure':_0xfdc95d,'showClickable':_0x44ad28});};}function gn(_0x318a39){const _0x74ee34=_0x15fc16;return{'id':V['id'],'type':_0x2d6f6c[_0x74ee34(0x2c8)],'icon':_0x74ee34(0x288),'title':'mcpConfig.title','tooltip':_0x74ee34(0x201)};}const pn={[_0x496f11['OTHERS']]:{[V['id']]:{'order':0xa,'menuItemFactory':gn}}};var fn=Object[_0x15fc16(0x2d2)],hn=(_0x1d3532,_0x1e067d,_0x446b7a,_0x5ab133)=>{for(var _0x197593=_0x5ab133>0x1?void 0x0:_0x5ab133?fn(_0x1e067d,_0x446b7a):_0x1e067d,_0x32cc97=_0x1d3532['length']-0x1,_0x2f42b5;_0x32cc97>=0x0;_0x32cc97--)(_0x2f42b5=_0x1d3532[_0x32cc97])&&(_0x197593=_0x2f42b5(_0x197593)||_0x197593);return _0x197593;},te=(_0x28d74c,_0x27fc37)=>(_0x146284,_0x1b4898)=>_0x27fc37(_0x146284,_0x1b4898,_0x28d74c);let $=class extends _0x1c6c21{constructor(_0x26d9c6,_0x939d8d){const _0x42be22=_0x15fc16;super(),this['_commandService']=_0x26d9c6,this[_0x42be22(0x2ab)]=_0x939d8d,this[_0x42be22(0x2f4)](),this[_0x42be22(0x22a)]();}[_0x15fc16(0x2f4)](){const _0xecbc97=_0x15fc16;[V][_0xecbc97(0x21f)](_0x2b7467=>{const _0x20fbfb=_0xecbc97;this[_0x20fbfb(0x1bd)](this[_0x20fbfb(0x1bb)][_0x20fbfb(0x27c)](_0x2b7467));});}[_0x15fc16(0x22a)](){this['_menuManagerService']['mergeMenu'](pn);}};function _0x284b(_0x29a5e9,_0x4f0db6){_0x29a5e9=_0x29a5e9-0x19f;const _0x224731=_0x2247();let _0x284ba7=_0x224731[_0x29a5e9];return _0x284ba7;}$=hn([te(0x0,_0x18085c),te(0x1,_0x4b1e5b)],$);function _0x2247(){const _0x56fabb=['http://www.w3.org/2000/svg','Click\x20to\x20connect\x20MCP','_localStorageService','__setCustomHeaders','MenuIcon','univer-flex\x20univer-items-center\x20univer-gap-3','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','univer-mr-2\x20univer-flex\x20univer-text-xl','noopener\x20noreferrer','OffLineIcon','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','apiKey','CheckMarkIcon','API\x20Key','mcpConfig.connectionStatus.connecting','mcpConfig.apiKeyPlaceholder','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','univer.ai','path','MCPConfigPanel','MCP\x20配置','mcpConfig.apiKey','mcpConfig.apiApplyInfo.title','url(#$1','show','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','string','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','Get\x20your\x20API\x20key\x20in\x20seconds','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','M0\x200H16V16H0z','将以下配置添加到您的\x20MCP\x20客户端设置中:','svg','MCP\x20Unknown\x20Status','启用身份验证','UniverIcon','配置步骤:','<SESSION_ID>','网络连接错误,请检查您的网络连接','_menuManagerService','mcp.apiKey','attrs','配置\x20MCP\x20使用\x20AI\x20操作电子表格','_localeService','showConfigPanel','https://console.univer.plus','API\x20密钥','1em','univer-flex\x20univer-items-start\x20univer-gap-3','univer_session_id:','mcpConfig.configStep3','\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','连接失败','_injector','registerComponent','removeItem','register','univer-space-y-4','on-line-icon_clip0_910_349','会话\x20ID\x20已被占用,请稍后再试','MCP:\x20Network\x20Error','label','replace','Error','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','Click\x20to\x20configure\x20MCP','482211NlxVtA','pluginName','BUTTON','displayName','subscribe','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpStatus.unknown','round','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','mcpStatus.networkError','Univer\x20AI\x20Console','Univer\x20AI\x20控制台','getOwnPropertyDescriptor','defs','将配置添加到您的\x20MCP\x20客户端设置文件中','enableAutoConnect','HelpIcon','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','2Cfyaww','MCP\x20Retrying...','配置保存失败','Configuration\x20Notes:','children','OnLineIcon','_validateConfig','API\x20key\x20is\x20required','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','Bearer\x20','evenodd','error','最大重试次数','Max\x20Retries','mcpConfig.connectionStatus.retrying','mcpConfig.configError','MCP\x20Connecting...','_initAutoConnect','MCP\x20连接失败','您的\x20API\x20密钥安全存储在本地存储中','_componentManager','mcpConfig.validation.apiKeyTooShort','mcpConfig.description','_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.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','value','138702QDKRon','_initializeCommands','HEADER_MENU','mcp-ui.command.openConfigPanel','_configService','mask','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','264723cDidVv','NONE','mcp-ui.config','assign','重连中...','Connection\x20Failed','univer-flex\x20univer-items-center\x20univer-gap-2','_mcpConnectionController','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','div','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Copy\x20the\x20JSON\x20configuration\x20below','white','_config$','配置无效','length','_connectionController','map','Save\x20Configuration','univer-text-yellow-500','MCP\x20Connection\x20Failed','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-bg-gray-500','mcpConfig.save','CONNECTING','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','_commandService','Invalid\x20configuration','disposeWithMe','univer-space-y-2','off-line-icon_clip0_910_343','univer-flex\x20univer-items-start\x20univer-gap-2','random','几秒钟内获取您的\x20API\x20密钥','_uiPartsService','CONNECTED','http','fill','url(#off-line-icon_clip0_910_343)','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','MCP\x20状态未知','mcpStatus.sessionOccupied','univer-space-y-3','setItem','help-icon','保存配置','975177OtPyoD','配置参数:','MCP\x20Client\x20Configuration','xlink:href','超出最大重试次数,请稍后再试','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-shrink-0\x20univer-text-blue-500','API\x20密钥不能为空','API\x20密钥无效,请检查密钥是否正确','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','MCP\x20Configuration','点击配置\x20MCP','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpConfig.apiApplyInfo.getStarted','button','已连接','带有\x20Bearer\x20前缀的\x20API\x20密钥。','connectionStatus$','close','mcpConfig.validation.invalidConfig','substring','name','mcpConfig.connectionStatus.failed','subscribeConfigValue$','配置保存成功','Session\x20ID','univer-flex\x20univer-gap-3','none','_messageService','mcpConfig.configStep2','会话ID','showDeveloperTools','get','univer-min-w-0\x20univer-flex-1','mcpConfig.apiKeyHint','mcpStatus.retrying','什么是\x20API\x20密钥?','off','span','univer-space-y-5','261910kFUYqN','NETWORK_ERROR','toString','errorMessage','entries','Retrying...','What\x20is\x20API\x20Key?','mcpConfig.connectionError.maxRetriesExceeded','MCP\x20已断开','0\x200\x2016\x2016','mcpConfig.title','_loading$','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','has','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','bottom','includes','mcpConfig.configStep1','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','未连接','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.authorizationDescription','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','mcpConfig.connectionStatus.disconnected','mcpStatus.connected','请输入您的\x20API\x20密钥','Connected','保存中...','<API_KEY>','_blank','Enter\x20your\x20API\x20key','49JbrhkF','check-mark-icon','getItem','RETRYING','univer-bg-red-500','Saving...','_loadStoredApiKey','https://mcp.univer.ai/mcp/?univer_session_id=','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','forEach','COMMAND','colorChannel1','univer.plus','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','MCP:\x20Unauthorized','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','@univerjs-pro/mcp-ui','defIds','off-line-icon','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','_initializeMenus','MAX_RETRIES_EXCEEDED','启用身份验证以获得安全连接','text','15pmidxl','idSuffix','MCP:\x20未授权','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','warn','mcpConfig.note1','mcpConfig.connectionError.sessionOccupied','clipPath','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','mcpConfig.connectionInfo','MCP:\x20超出最大重试次数','univer-text-white','univer-text-red-500','_config','validateApiKey','defineProperty','connectionError$','https://console.univer.ai','80OfUtVM','mcpConfig.configSaved','mcpConfig.note2','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','配置更改将立即生效','_mcpCoreConfig$','0\x200\x2017\x2016','univer-text-xs\x20univer-text-gray-500','_dialogService','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','sessionId$','mcpConfig.connectionStatus.connected','mcpConfig.configStepTitle','univer-size-4','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','DISCONNECTED','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','FAILED','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','push','mcpServerUrl','Configuration\x20saved\x20successfully','142496oXhoEA','UNAUTHORIZED','getCurrentConfig','current','univer-text-blue-600','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','tag','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','translate(.97)','mcpStatus.clickToConfigure','mcpConfig.saving','mcpStatus.disconnected','99812WdJHDA','_initConfigSync','Authorization:','onStarting','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcpConfig.sessionIdDescription','_logService','Configuration\x20Steps:','next','MCP\x20客户端配置','currentColor','_handleConfigSave','mcpConfig.apiApplyInfo.univerAiLabel','symbol','API\x20密钥长度至少需要\x2010\x20位','univer-bg-green-500','mcpConfig.apiApplyInfo.description','trim','getConfig','open','mcpStatus.unauthorized','univer-text-sm\x20univer-text-gray-500','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','univer-bg-blue-500','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','pre','registerCommand','CloseIcon','_apiKey$','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','_handleConfigure','0.17.0','setConfig'];_0x2247=function(){return _0x56fabb;};return _0x2247();}const Dn={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x15fc16(0x2e8),'connected':'MCP\x20Connected','failed':_0x15fc16(0x1b5),'retrying':_0x15fc16(0x2d9),'unknown':_0x15fc16(0x2a5),'unauthorized':_0x15fc16(0x224),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x15fc16(0x2c0),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x15fc16(0x285),'clickToConfigure':_0x15fc16(0x2c5)},'mcpConfig':{'title':_0x15fc16(0x1d9),'description':_0x15fc16(0x252),'apiKey':_0x15fc16(0x291),'apiKeyPlaceholder':_0x15fc16(0x215),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x15fc16(0x20b),'connectionInfo':_0x15fc16(0x1d1),'mcpClientConfig':_0x15fc16(0x1d1),'configInstructions':_0x15fc16(0x225),'configStepTitle':_0x15fc16(0x269),'configStep1':_0x15fc16(0x1ac),'configStep2':_0x15fc16(0x2f1),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x15fc16(0x1e8),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x15fc16(0x2e5),'save':_0x15fc16(0x1b3),'saving':_0x15fc16(0x21b),'note1':_0x15fc16(0x231),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x15fc16(0x255),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x15fc16(0x1fd),'description':_0x15fc16(0x2f0),'univerAiLabel':_0x15fc16(0x2d0),'getStarted':_0x15fc16(0x2a0)},'validation':{'apiKeyRequired':_0x15fc16(0x2df),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x15fc16(0x1bc),'invalidApiKey':_0x15fc16(0x266)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x15fc16(0x211),'failed':_0x15fc16(0x1a6),'retrying':_0x15fc16(0x1fc)},'connectionError':{'unauthorized':_0x15fc16(0x27f),'sessionOccupied':_0x15fc16(0x209),'networkError':_0x15fc16(0x1ab),'maxRetriesExceeded':_0x15fc16(0x1db)}}},$n={'mcpStatus':{'disconnected':_0x15fc16(0x1ff),'connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':_0x15fc16(0x2ea),'retrying':'MCP\x20重连中...','unknown':_0x15fc16(0x1c9),'unauthorized':_0x15fc16(0x230),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x15fc16(0x238),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x15fc16(0x1da)},'mcpConfig':{'title':_0x15fc16(0x298),'description':_0x15fc16(0x2ae),'apiKey':_0x15fc16(0x2b2),'apiKeyPlaceholder':_0x15fc16(0x210),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x15fc16(0x2a6),'enableAuthHint':_0x15fc16(0x22c),'connectionInfo':_0x15fc16(0x26b),'mcpClientConfig':_0x15fc16(0x26b),'configInstructions':_0x15fc16(0x2a3),'configStepTitle':_0x15fc16(0x2a8),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x15fc16(0x2d4),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x15fc16(0x1ed),'sessionIdDescription':_0x15fc16(0x1d4),'authorizationDescription':_0x15fc16(0x1df),'configParameters':_0x15fc16(0x1d0),'maxRetries':_0x15fc16(0x2e4),'save':_0x15fc16(0x1ce),'saving':_0x15fc16(0x212),'note1':_0x15fc16(0x244),'note2':_0x15fc16(0x2eb),'configSaved':_0x15fc16(0x1e7),'configError':_0x15fc16(0x2da),'apiApplyInfo':{'title':_0x15fc16(0x1f3),'description':_0x15fc16(0x25d),'univerAiLabel':_0x15fc16(0x2d1),'getStarted':_0x15fc16(0x1c2)},'validation':{'apiKeyRequired':_0x15fc16(0x1d6),'apiKeyTooShort':_0x15fc16(0x270),'invalidConfig':_0x15fc16(0x1af),'invalidApiKey':_0x15fc16(0x1d7)},'connectionStatus':{'disconnected':_0x15fc16(0x20a),'connecting':'连接中...','connected':_0x15fc16(0x1de),'failed':_0x15fc16(0x2b8),'retrying':_0x15fc16(0x1a5)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x15fc16(0x2bf),'networkError':_0x15fc16(0x2aa),'maxRetriesExceeded':_0x15fc16(0x1d3)}}},mn=_0x15fc16(0x226),Cn=_0x15fc16(0x282),he={'name':mn,'version':Cn};var _n=Object[_0x15fc16(0x23d)],yn=Object['getOwnPropertyDescriptor'],xn=(_0x9dc5bd,_0x46a818,_0x44c306)=>_0x46a818 in _0x9dc5bd?_n(_0x9dc5bd,_0x46a818,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44c306}):_0x9dc5bd[_0x46a818]=_0x44c306,Sn=(_0x5b3ee0,_0x1b3252,_0x353205,_0x305dc9)=>{const _0x26930a=_0x15fc16;for(var _0x4e91aa=_0x305dc9>0x1?void 0x0:_0x305dc9?yn(_0x1b3252,_0x353205):_0x1b3252,_0xc5dd2a=_0x5b3ee0[_0x26930a(0x1b0)]-0x1,_0x7ff401;_0xc5dd2a>=0x0;_0xc5dd2a--)(_0x7ff401=_0x5b3ee0[_0xc5dd2a])&&(_0x4e91aa=_0x7ff401(_0x4e91aa)||_0x4e91aa);return _0x4e91aa;},P=(_0x27bbc3,_0x2e35cc)=>(_0x4cd154,_0x21cb66)=>_0x2e35cc(_0x4cd154,_0x21cb66,_0x27bbc3),Y=(_0x40810d,_0x5b9623,_0x298795)=>xn(_0x40810d,typeof _0x5b9623!=_0x15fc16(0x26f)?_0x5b9623+'':_0x5b9623,_0x298795);let E=class extends _0x3af9e7{constructor(_0x299762=re,_0x1208dc,_0x46a8d8,_0x279d06,_0x1b14dc,_0x271579){const _0x52adb9=_0x15fc16;super(),this[_0x52adb9(0x23b)]=_0x299762,this[_0x52adb9(0x2b9)]=_0x1208dc,this[_0x52adb9(0x2f7)]=_0x46a8d8,this[_0x52adb9(0x1c3)]=_0x279d06,this[_0x52adb9(0x286)]=_0x1b14dc,this['_localeService']=_0x271579;const {..._0x26a064}=_0x5812fc({},re,this[_0x52adb9(0x23b)]);this[_0x52adb9(0x2f7)][_0x52adb9(0x283)](y,_0x26a064);}async[_0x15fc16(0x265)](){const _0x44eb93=_0x15fc16,_0x47cfcd=[[D],[I],[$]];this['_injector'][_0x44eb93(0x204)](_0x291f6e)||_0x47cfcd[_0x44eb93(0x253)]([_0x291f6e,{'useClass':_0x262918}]),_0x47cfcd['forEach'](_0x22ccc4=>this[_0x44eb93(0x2b9)]['add'](_0x22ccc4)),this[_0x44eb93(0x2b9)][_0x44eb93(0x1ef)](D),this[_0x44eb93(0x2b9)][_0x44eb93(0x1ef)](I),this[_0x44eb93(0x2b9)][_0x44eb93(0x1ef)]($);}};Y(E,_0x15fc16(0x2c7),'MCP_UI_PLUGIN'),Y(E,'packageName',he[_0x15fc16(0x1e4)]),Y(E,'version',he['version']),E=Sn([_0x15fc36(_0x572af9),P(0x1,_0x471848(_0x15522a)),P(0x2,_0x52408d),P(0x3,_0xceceef),P(0x4,_0x5d40f4),P(0x5,_0x471848(_0x1e9f5a))],E);export{tn as MCPConfigPanel,I as MCPConfigUIController,D as MCPConnectionUIController,ln as MCPStatusDisplay,$ as MCPUIMenuController,V as OpenMCPConfigPanelCommand,E as UniverMCPUIPlugin,Dn as enUS,$n as zhCN};
1
+ const _0x35218a=_0x1fe8;(function(_0x22902e,_0x2348cf){const _0x40e54f=_0x1fe8,_0x56eb0b=_0x22902e();while(!![]){try{const _0x56ddaa=parseInt(_0x40e54f(0xe1))/0x1*(parseInt(_0x40e54f(0x186))/0x2)+-parseInt(_0x40e54f(0x106))/0x3+-parseInt(_0x40e54f(0xeb))/0x4*(-parseInt(_0x40e54f(0xce))/0x5)+-parseInt(_0x40e54f(0x154))/0x6+-parseInt(_0x40e54f(0x103))/0x7*(-parseInt(_0x40e54f(0xef))/0x8)+parseInt(_0x40e54f(0x184))/0x9+parseInt(_0x40e54f(0x139))/0xa;if(_0x56ddaa===_0x2348cf)break;else _0x56eb0b['push'](_0x56eb0b['shift']());}catch(_0x275823){_0x56eb0b['push'](_0x56eb0b['shift']());}}}(_0xd608,0xb546e));import{CommandType as _0x8c6f3b,DependentOn as _0x32a5f5,Disposable as _0x634fb7,ICommandService as _0x14b703,IConfigService as _0x2220a,ILocalStorageService as _0x3ab6f4,ILogService as _0x3a67db,Inject as _0x519d4f,Injector as _0x97e35a,LocaleService as _0x485d48,Plugin as _0x2c7e0b,merge as _0xd6e0f4}from'@univerjs/core';import{MCPConnectionController as _0x192377,MCPConnectionError as _0x576943,MCPConnectionStatus as _0x2cb78f,MCP_PLUGIN_CONFIG_KEY as _0x562266,UniverMCPPlugin as _0x2af01b}from'@univerjs-pro/mcp';import{Button as _0x52edc6,Input as _0x2013d7,MessageType as _0x11c1e6,Tooltip as _0x26f1ea,clsx as _0x4ba5b3}from'@univerjs/design';import{BuiltInUIPart as _0x14998e,ComponentManager as _0xcc080b,IDialogService as _0x40024d,IMenuManagerService as _0x246c7e,IMessageService as _0x4e8535,IUIPartsService as _0x1f23b3,MenuItemType as _0x347f6f,RibbonStartGroup as _0x2fd2cb,connectInjector as _0x4d5475,useDependency as _0x1cd4cf,useObservable as _0x554e27}from'@univerjs/ui';import{BehaviorSubject as _0x4bdada}from'rxjs';import{CheckMarkIcon as _0x2a0f59,CloseIcon as _0x59556c,HelpIcon as _0x40bc06,OffLineIcon as _0x5a6443,OnLineIcon as _0x4e3349}from'@univerjs/icons';import{useCallback as _0x4fd27b,useState as _0x5dba73}from'react';import{jsx as _0x288c52,jsxs as _0x410c89}from'react/jsx-runtime';import{ISocketService as _0x4e295d,WebSocketService as _0x5e9f21}from'@univerjs/network';function _0x1fe8(_0x540678,_0x328c51){_0x540678=_0x540678-0xbc;const _0xd608b8=_0xd608();let _0x1fe8f4=_0xd608b8[_0x540678];return _0x1fe8f4;}function z(_0x2bd6ae){const _0x45c13e=_0x1fe8;var _0x19726e,_0x51fa1d;let {mcpCoreConfig:_0x39cffa,onSave:_0x30c1d6,loading:_0x1635b1=!0x1,config:_0x2a4a8b,connectionStatus$:_0x16c0ba,connectionError$:_0x50ddc7,currentApiKey$:_0x536ca1,currentSessionId$:_0x5da0a4}=_0x2bd6ae,_0x5982f=_0x1cd4cf(_0x485d48),_0xb9a533=_0x554e27(_0x16c0ba,_0x2cb78f[_0x45c13e(0xbe)]),_0x10d7f3=_0x554e27(_0x50ddc7,_0x576943['NONE']),_0x3ec105=_0x554e27(_0x5da0a4,''),[_0x33dcdc,_0x223890]=_0x5dba73(_0x554e27(_0x536ca1,'')||''),_0xdab73d=_0x2a4a8b[_0x45c13e(0x18f)]&&_0x39cffa['mcpServerUrl']&&(_0x39cffa[_0x45c13e(0x11f)][_0x45c13e(0xdd)](_0x45c13e(0x104))||_0x39cffa['mcpServerUrl']['includes']('univer.ai')),_0x448d4d=(_0x19726e=_0x39cffa[_0x45c13e(0x11f)])==null?void 0x0:_0x19726e[_0x45c13e(0xdd)](_0x45c13e(0x104)),_0x481ec3=(_0x51fa1d=_0x39cffa[_0x45c13e(0x11f)])==null?void 0x0:_0x51fa1d[_0x45c13e(0xdd)]('univer.ai'),_0x2ffb3e=_0x448d4d?_0x45c13e(0x1d5):_0x45c13e(0x1c4),_0x394370=_0x2a4a8b[_0x45c13e(0x18f)]&&(_0x448d4d||_0x481ec3),[_0x128f39,_0x2bd2b4]=_0x5dba73(!_0x33dcdc[_0x45c13e(0xf5)]()),_0xa90ea4=(_0x8f20f6,_0x32e48a)=>{const _0x3baff6=_0x45c13e;if(_0x32e48a===_0x576943[_0x3baff6(0x14f)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x8f20f6){case _0x2cb78f[_0x3baff6(0x182)]:return _0x3baff6(0x105);case _0x2cb78f[_0x3baff6(0x129)]:case _0x2cb78f['RETRYING']:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x2cb78f['FAILED']:return _0x3baff6(0x1cc);default:return _0x3baff6(0xe8);}},_0x3b0edf=(_0x10de66,_0x1f3601)=>{const _0x1457d7=_0x45c13e;if(_0x1f3601===_0x576943[_0x1457d7(0x14f)])return _0x1457d7(0x108);switch(_0x10de66){case _0x2cb78f[_0x1457d7(0x182)]:return _0x1457d7(0x15f);case _0x2cb78f[_0x1457d7(0x129)]:case _0x2cb78f['RETRYING']:return _0x1457d7(0x122);case _0x2cb78f['FAILED']:return _0x1457d7(0x108);default:return _0x1457d7(0x168);}},_0x1a4bff=_0x925b39=>{const _0x7534e=_0x45c13e;switch(_0x925b39){case _0x2cb78f[_0x7534e(0x182)]:return _0x5982f['t'](_0x7534e(0x14a));case _0x2cb78f[_0x7534e(0x129)]:return _0x5982f['t']('mcpConfig.connectionStatus.connecting');case _0x2cb78f[_0x7534e(0x175)]:return _0x5982f['t'](_0x7534e(0x19d));case _0x2cb78f[_0x7534e(0xe9)]:return _0x5982f['t'](_0x7534e(0x158));default:return _0x5982f['t']('mcpConfig.connectionStatus.disconnected');}},_0x27eb5d=_0x21328e=>{const _0x12e658=_0x45c13e;switch(_0x21328e){case _0x576943[_0x12e658(0x14f)]:return _0x5982f['t']('mcpConfig.connectionError.unauthorized');case _0x576943[_0x12e658(0x157)]:return _0x5982f['t'](_0x12e658(0x14d));case _0x576943[_0x12e658(0x101)]:return _0x5982f['t'](_0x12e658(0x172));case _0x576943[_0x12e658(0x1da)]:return _0x5982f['t'](_0x12e658(0x163));default:return'';}},_0xb7294b=_0x4fd27b(()=>{_0x30c1d6({..._0x39cffa,'apiKey':_0x33dcdc['trim'](),'enableAuth':!0x0});},[_0x39cffa,_0x33dcdc,!0x0,_0x30c1d6]),_0x2c65a6=_0x33dcdc['trim']()[_0x45c13e(0xfe)]>0x0;return _0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x1e5),'children':[_0x288c52(_0x45c13e(0x11a),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x153),'children':[_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x15b),'children':_0x288c52(_0x45c13e(0x161),{'className':_0x45c13e(0x14c),'children':'⚙'})}),_0x288c52(_0x45c13e(0x11a),{'children':_0x288c52('p',{'className':_0x45c13e(0x166),'children':_0x5982f['t'](_0x45c13e(0x1c1))})})]})}),_0x410c89(_0x45c13e(0x11a),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x288c52(_0x45c13e(0x11a),{'className':_0x4ba5b3(_0x45c13e(0x1d2),_0xa90ea4(_0xb9a533,_0x10d7f3)),'children':_0x410c89('div',{'className':_0x45c13e(0x17c),'children':[_0x288c52(_0x45c13e(0x11a),{'className':_0x4ba5b3(_0x45c13e(0x1d8),_0x3b0edf(_0xb9a533,_0x10d7f3))}),_0x288c52('span',{'className':_0x45c13e(0x1a4),'children':_0x1a4bff(_0xb9a533)})]})}),_0x10d7f3!==_0x576943[_0x45c13e(0x1a7)]&&(_0xb9a533===_0x2cb78f[_0x45c13e(0x175)]||_0x10d7f3===_0x576943[_0x45c13e(0x14f)])&&_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x16a),'children':_0x410c89(_0x45c13e(0x11a),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x288c52(_0x45c13e(0x161),{'className':_0x45c13e(0x1c7),'children':'⚠️'}),_0x288c52('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x27eb5d(_0x10d7f3)})]})})]}),_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x18a),'children':_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x13b),'children':[_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x1d1),'children':[_0x410c89(_0x45c13e(0x177),{'className':_0x45c13e(0x189),'children':[_0x288c52(_0x45c13e(0x161),{'children':'🔑'}),'\x20',_0x5982f['t'](_0x45c13e(0x1c9)),_0x288c52(_0x45c13e(0x161),{'className':_0x45c13e(0x1d6),'children':'*'}),_0xdab73d&&_0x288c52('a',{'className':_0x45c13e(0x1b3),'title':_0x5982f['t']('mcpConfig.apiApplyInfo.title'),'role':_0x45c13e(0x178),'onClick':()=>_0x2bd2b4(!0x0),'children':_0x288c52(_0x40bc06,{})})]}),_0x288c52(_0x2013d7,{'type':_0x45c13e(0x151),'placeholder':_0x5982f['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x33dcdc,'disabled':_0x1635b1,'autoComplete':_0x45c13e(0x188),'onChange':_0x223890}),_0x288c52('p',{'className':_0x45c13e(0x19e),'children':_0x5982f['t'](_0x45c13e(0x1ac))})]}),_0xdab73d&&_0x128f39&&_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x18b),'children':[_0x288c52('a',{'className':_0x45c13e(0x190),'role':_0x45c13e(0x178),'onClick':()=>_0x2bd2b4(!0x1),'children':_0x288c52(_0x59556c,{'className':_0x45c13e(0x196)})}),_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0xed),'children':[_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x10b),'children':_0x288c52(_0x45c13e(0x161),{'className':'univer-text-blue-600','children':'🚀'})}),_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x1bd),'children':[_0x288c52('h4',{'className':_0x45c13e(0x19c),'children':_0x5982f['t'](_0x45c13e(0xfa))}),_0x288c52('p',{'className':_0x45c13e(0x1b1),'children':_0x5982f['t'](_0x45c13e(0xee))}),_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x1e1),'children':_0x394370&&_0x410c89('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':_0x2ffb3e,'target':'_blank','rel':'noopener\x20noreferrer','children':[_0x288c52('span',{'children':'🤖'}),_0x5982f['t'](_0x45c13e(0x128)),_0x288c52(_0x45c13e(0x161),{'className':_0x45c13e(0x13d),'children':'↗'})]})}),_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0xf4),'children':['✨','\x20',_0x5982f['t'](_0x45c13e(0x12f))]})]})]})]}),_0x2a4a8b['showDeveloperTools']&&_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x13f),'children':[_0x410c89('h4',{'className':_0x45c13e(0x10a),'children':[_0x288c52(_0x45c13e(0x161),{'children':'🔗'}),'\x20',_0x5982f['t']('mcpConfig.connectionInfo')]}),_0x410c89('div',{'className':_0x45c13e(0xd9),'children':[_0x410c89('div',{'className':_0x45c13e(0x1b8),'children':[_0x288c52('p',{'className':_0x45c13e(0x147),'children':_0x5982f['t'](_0x45c13e(0xf1))}),_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x1d1),'children':[_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x1c6),'children':_0x5982f['t']('mcpConfig.configStepTitle')}),_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x132),'children':[_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x17c),'children':[_0x288c52(_0x45c13e(0x161),{'className':_0x45c13e(0xc6),'children':'1'}),_0x5982f['t']('mcpConfig.configStep1')]}),_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x17c),'children':[_0x288c52(_0x45c13e(0x161),{'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'}),_0x5982f['t']('mcpConfig.configStep2')]}),_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x17c),'children':[_0x288c52(_0x45c13e(0x161),{'className':_0x45c13e(0xc6),'children':'3'}),_0x5982f['t'](_0x45c13e(0x1b2))]})]})]})]}),_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x1d1),'children':[_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x1c6),'children':_0x45c13e(0x1ba)}),_0x288c52(_0x45c13e(0x11a),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x288c52(_0x45c13e(0x1d4),{'className':_0x45c13e(0x1b7),'children':JSON[_0x45c13e(0x1c2)]({'mcpServers':{'univer':{'url':_0x45c13e(0x1e6)+(_0x3ec105||'<SESSION_ID>'),'type':_0x45c13e(0x12a),'headers':{'Authorization':_0x45c13e(0x1d0)+(_0x33dcdc||_0x45c13e(0x1e3))}}}},null,0x2)})})]}),_0x410c89(_0x45c13e(0x11a),{'className':'univer-space-y-3','children':[_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x1c6),'children':_0x5982f['t'](_0x45c13e(0x1ca))}),_0x410c89(_0x45c13e(0x11a),{'className':'univer-space-y-2','children':[_0x410c89('div',{'className':_0x45c13e(0x165),'children':[_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x16b)}),_0x410c89('div',{'className':_0x45c13e(0xf7),'children':[_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x127),'children':_0x45c13e(0x1e4)}),_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x19e),'children':_0x5982f['t'](_0x45c13e(0x1a9))})]})]}),_0x410c89(_0x45c13e(0x11a),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x288c52(_0x45c13e(0x11a),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0xf7),'children':[_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x127),'children':_0x45c13e(0xbd)}),_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x19e),'children':_0x5982f['t'](_0x45c13e(0x19f))})]})]})]})]})]})]}),_0x288c52(_0x52edc6,{'onClick':_0xb7294b,'disabled':!_0x2c65a6||_0x1635b1,'className':_0x45c13e(0x14b),'children':_0x1635b1?_0x410c89(_0x45c13e(0x161),{'className':_0x45c13e(0x17c),'children':[_0x288c52(_0x45c13e(0x161),{'children':'⟲'}),_0x5982f['t'](_0x45c13e(0x126))]}):_0x410c89(_0x45c13e(0x161),{'className':_0x45c13e(0x17c),'children':[_0x288c52(_0x2a0f59,{}),_0x5982f['t'](_0x45c13e(0x1ae))]})}),_0x288c52('div',{'className':_0x45c13e(0x117),'children':_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x145),'children':[_0x288c52(_0x45c13e(0x161),{'className':_0x45c13e(0x1be),'children':'💡'}),_0x410c89(_0x45c13e(0x11a),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x1aa),'children':_0x45c13e(0x13c)}),_0x410c89('div',{'children':['•',_0x5982f['t'](_0x45c13e(0x1a2))]}),_0x410c89(_0x45c13e(0x11a),{'children':['•',_0x5982f['t'](_0x45c13e(0xc5))]})]})]})})]})})]});}const B=_0x35218a(0xf2);Symbol(B);const V={'showDeveloperTools':!0x1,'showStatus':!0x0};function H(_0x183dbb){'@babel/helpers - typeof';const _0x59d5a5=_0x35218a;return H=typeof Symbol==_0x59d5a5(0x160)&&typeof Symbol[_0x59d5a5(0x150)]==_0x59d5a5(0xdc)?function(_0x4aec74){return typeof _0x4aec74;}:function(_0x13fddc){const _0x223719=_0x59d5a5;return _0x13fddc&&typeof Symbol==_0x223719(0x160)&&_0x13fddc[_0x223719(0x134)]===Symbol&&_0x13fddc!==Symbol[_0x223719(0x142)]?_0x223719(0xdc):typeof _0x13fddc;},H(_0x183dbb);}function oe(_0x576180,_0x1fdc64){const _0x305546=_0x35218a;if(H(_0x576180)!='object'||!_0x576180)return _0x576180;var _0x2a421f=_0x576180[Symbol['toPrimitive']];if(_0x2a421f!==void 0x0){var _0x2f0457=_0x2a421f[_0x305546(0xf9)](_0x576180,_0x1fdc64||_0x305546(0xc9));if(H(_0x2f0457)!=_0x305546(0x148))return _0x2f0457;throw TypeError(_0x305546(0x1b9));}return(_0x1fdc64==='string'?String:Number)(_0x576180);}function se(_0x4b4dd4){const _0x136df6=_0x35218a;var _0x2b9506=oe(_0x4b4dd4,'string');return H(_0x2b9506)==_0x136df6(0xdc)?_0x2b9506:_0x2b9506+'';}function _0xd608(){const _0x362e87=['univer-flex\x20univer-items-center\x20univer-gap-2','mcp-ui.command.openConfigPanel','show','MenuIcon','MCP:\x20会话\x20ID\x20已被占用','validateApiKey','CONNECTED','_createConfigPanelComponent','351873VZAaEm','MCP\x20Disconnected','69122cQvlbX','_configService','off','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','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','mcpConfig.title','API\x20key\x20with\x20Bearer\x20prefix.','push','showDeveloperTools','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','mcpStatus.retrying','_connectionController','Failed\x20to\x20save\x20configuration','mcpStatus.connected','配置步骤:','univer-size-4','Invalid\x20configuration','MCP:\x20网络错误','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','_config','_commandService','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.connectionStatus.failed','univer-text-xs\x20univer-text-gray-500','mcpConfig.authorizationDescription','Session\x20ID','MCP:\x20超出最大重试次数','mcpConfig.note1','_validateConfig','univer-text-sm\x20univer-font-medium','next','Connected','NONE','Enable\x20Authentication','mcpConfig.sessionIdDescription','univer-font-medium','Configuration\x20Steps:','mcpConfig.apiKeyHint','sessionId$','mcpConfig.save','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.configStep3','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','API\x20密钥无效,请检查密钥是否正确','registerComponent','error','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-space-y-3','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','MCP\x20Configuration','mcp-config-dialog','_initStatusComponent','univer-flex-1','univer-shrink-0\x20univer-text-blue-500','_localStorageService','mcpConfig.validation.invalidApiKey','mcpConfig.description','stringify','MCP\x20状态未知','https://console.univer.ai','_handleConfigSave','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-shrink-0\x20univer-text-red-500','_registerComponent','mcpConfig.apiKey','mcpConfig.configParameters','version','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','getConfig','Success','registerCommand','Bearer\x20','univer-space-y-2','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','connectionError$','pre','https://console.univer.plus','univer-text-red-500','univer-flex\x20univer-items-center','univer-size-2\x20univer-rounded-full','您的\x20API\x20密钥将在此浏览器中本地存储','MAX_RETRIES_EXCEEDED','_mcpCoreConfig$','setConfig','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','_loadStoredApiKey','packageName','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-flex\x20univer-flex-wrap\x20univer-gap-2','isValid','<API_KEY>','univer_session_id:','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','https://mcp.univer.ai/mcp/?univer_session_id=','MCPConfigPanel','Authorization:','DISCONNECTED','MCP\x20Client\x20Configuration','decorate','启用身份验证以获得安全连接','几秒钟内获取您的\x20API\x20密钥','配置保存成功','连接失败','mcpConfig.note2','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','重启您的\x20MCP\x20客户端以使配置生效','close','default','defineProperty','Click\x20to\x20configure\x20MCP','What\x20is\x20API\x20Key?','未连接','25KJSALF','API\x20密钥','_localeService','Configuration\x20Parameters:','请输入您的\x20API\x20密钥','univer-text-yellow-500','showConfigPanel','mcpStatus.connecting','Enable\x20authentication\x20for\x20secure\x20connections','mcpStatus.failed','_loading$','univer-space-y-4','has','_menuManagerService','symbol','includes','权限验证失败,请检查您的\x20API\x20密钥','Retrying...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','39MBAWmF','_initConfigSync','配置参数:','\x20-\x20','MCP\x20已连接','Save\x20Configuration','Enter\x20your\x20API\x20key','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','RETRYING','MCP\x20Connected','905628qAtFus','removeItem','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','mcpConfig.apiApplyInfo.description','26072TAbehZ','pluginName','mcpConfig.configInstructions','mcp-ui.config','配置保存失败','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','trim','onStarting','univer-min-w-0\x20univer-flex-1','_dialogService','call','mcpConfig.apiApplyInfo.title','最大重试次数','mcpConfig.configSaved','什么是\x20API\x20密钥?','length','Connecting...','Univer\x20AI\x20Console','NETWORK_ERROR','Configuration\x20saved\x20successfully','182lcYaxv','univer.plus','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','3804309KtkcQA','__setCustomHeaders','univer-bg-red-500','会话\x20ID\x20已被占用,请稍后再试','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','Error','disposeWithMe','_messageService','forEach','API\x20密钥不能为空','点击连接\x20MCP','MCP\x20连接失败','get','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','showStatus','_config$','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','启用身份验证','errorMessage','div','mergeMenu','API\x20密钥长度至少需要\x2010\x20位','MCP:\x20未授权','apiKey','mcpServerUrl','重连中...','_initializeCommands','univer-bg-blue-500','配置\x20MCP\x20使用\x20AI\x20操作电子表格','Saving...','mcpConfig.validation.apiKeyRequired','mcpConfig.saving','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.apiApplyInfo.univerAiLabel','CONNECTING','http','_uiPartsService','COMMAND','保存配置','warn','mcpConfig.apiApplyInfo.getStarted','Get\x20your\x20API\x20key\x20in\x20seconds','Click\x20to\x20connect\x20MCP','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','constructor','您的\x20API\x20密钥安全存储在本地存储中','_logService','将配置添加到您的\x20MCP\x20客户端设置文件中','MCP\x20配置','2907340iAljAD','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-space-y-5','Configuration\x20Notes:','univer-text-gray-400','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','网络连接错误,请检查您的网络连接','subscribe','prototype','register','_initializeMenus','univer-flex\x20univer-gap-3','mcpConfig.validation.invalidConfig','univer-text-xs\x20univer-text-gray-600','object','_injector','mcpConfig.connectionStatus.connected','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','univer-text-white','mcpConfig.connectionError.sessionOccupied','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','UNAUTHORIZED','iterator','text','value','univer-flex\x20univer-items-center\x20univer-gap-3','5303196LPLqBI','getOwnPropertyDescriptor','Disconnected','SESSION_ID_OCCUPIED','mcpConfig.connectionStatus.retrying','subscribeConfigValue$','API\x20Key','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','_apiKey$','mcpStatus.networkError','univer-bg-green-500','function','span','MCP\x20客户端配置','mcpConfig.connectionError.maxRetriesExceeded','OTHERS','univer-flex\x20univer-items-start\x20univer-gap-3','univer-text-sm\x20univer-text-gray-500','@univerjs-pro/mcp-ui','univer-bg-gray-500','add','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','connectionStatus$','_componentManager','_initAutoConnect','_mcpConnectionController','\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\x20Retrying...','mcpConfig.connectionError.networkError','MCP\x20重连中...','open','FAILED','mcpStatus.sessionOccupied','label','button','mcpStatus.unauthorized','MCP\x20Unknown\x20Status','MCP\x20已断开'];_0xd608=function(){return _0x362e87;};return _0xd608();}function U(_0x4a9b8a,_0x13360d,_0x235e8e){const _0x364cf3=_0x35218a;return(_0x13360d=se(_0x13360d))in _0x4a9b8a?Object[_0x364cf3(0xca)](_0x4a9b8a,_0x13360d,{'value':_0x235e8e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4a9b8a[_0x13360d]=_0x235e8e,_0x4a9b8a;}function W(_0x4463ac,_0x388c89){return function(_0x5cb407,_0x354f4b){_0x388c89(_0x5cb407,_0x354f4b,_0x4463ac);};}function G(_0x5e8e11,_0x53b0de,_0x1a34b2,_0x1d4a48){const _0x45ef68=_0x35218a;var _0x2e28ef=arguments[_0x45ef68(0xfe)],_0x92e26f=_0x2e28ef<0x3?_0x53b0de:_0x1d4a48===null?_0x1d4a48=Object[_0x45ef68(0x155)](_0x53b0de,_0x1a34b2):_0x1d4a48,_0x9fe07c;if(typeof Reflect==_0x45ef68(0x148)&&typeof Reflect[_0x45ef68(0xc0)]==_0x45ef68(0x160))_0x92e26f=Reflect[_0x45ef68(0xc0)](_0x5e8e11,_0x53b0de,_0x1a34b2,_0x1d4a48);else{for(var _0x684eb9=_0x5e8e11[_0x45ef68(0xfe)]-0x1;_0x684eb9>=0x0;_0x684eb9--)(_0x9fe07c=_0x5e8e11[_0x684eb9])&&(_0x92e26f=(_0x2e28ef<0x3?_0x9fe07c(_0x92e26f):_0x2e28ef>0x3?_0x9fe07c(_0x53b0de,_0x1a34b2,_0x92e26f):_0x9fe07c(_0x53b0de,_0x1a34b2))||_0x92e26f);}return _0x2e28ef>0x3&&_0x92e26f&&Object[_0x45ef68(0xca)](_0x53b0de,_0x1a34b2,_0x92e26f),_0x92e26f;}const K='mcp.apiKey',q=_0x35218a(0x1bb);let J=class extends _0x634fb7{constructor(_0x534bec,_0x43ae91,_0x265bc9,_0x21b800,_0x5db6df,_0x30df1b,_0x4e5893,_0x5db90e,_0x2dd989,_0x47e800){const _0x223c26=_0x35218a;super(),this[_0x223c26(0x149)]=_0x534bec,this['_uiPartsService']=_0x43ae91,this[_0x223c26(0x187)]=_0x265bc9,this[_0x223c26(0x1bf)]=_0x21b800,this[_0x223c26(0xf8)]=_0x5db6df,this[_0x223c26(0x10e)]=_0x30df1b,this[_0x223c26(0x16d)]=_0x4e5893,this['_localeService']=_0x5db90e,this['_logService']=_0x2dd989,this[_0x223c26(0x16f)]=_0x47e800,U(this,'_loading$',new _0x4bdada(!0x1)),U(this,'_mcpCoreConfig$',new _0x4bdada({})),U(this,_0x223c26(0x116),new _0x4bdada({})),U(this,_0x223c26(0x15d),new _0x4bdada('')),U(this,_0x223c26(0x1c5),async _0x677a5=>{const _0x1ac7ee=_0x223c26;this['_loading$'][_0x1ac7ee(0x1a5)](!0x0);try{var _0x110674,_0x3a65e6;let _0x3b63c3=await this[_0x1ac7ee(0x1a3)](_0x677a5);if(!_0x3b63c3[_0x1ac7ee(0x1e2)]){this[_0x1ac7ee(0x10e)][_0x1ac7ee(0x17e)]({'type':_0x11c1e6[_0x1ac7ee(0x10c)],'content':_0x3b63c3[_0x1ac7ee(0x119)]||this['_localeService']['t'](_0x1ac7ee(0x146))});return;}_0x677a5['apiKey']?await this['_localStorageService']['setItem'](K,_0x677a5['apiKey']['trim']()):await this['_localStorageService'][_0x1ac7ee(0xec)](K),this[_0x1ac7ee(0x15d)]['next'](((_0x110674=_0x677a5[_0x1ac7ee(0x11e)])==null?void 0x0:_0x110674[_0x1ac7ee(0xf5)]())||''),this[_0x1ac7ee(0x16f)][_0x1ac7ee(0x107)]({'Authorization':_0x1ac7ee(0x1d0)+((_0x3a65e6=_0x677a5['apiKey'])==null?void 0x0:_0x3a65e6['trim']())}),this[_0x1ac7ee(0x10e)][_0x1ac7ee(0x17e)]({'type':_0x11c1e6[_0x1ac7ee(0x1ce)],'content':this['_localeService']['t'](_0x1ac7ee(0xfc))}),setTimeout(()=>{const _0x3688ce=_0x1ac7ee;this[_0x3688ce(0xf8)][_0x3688ce(0xc8)](q);},0x320);}catch(_0x363d8f){this[_0x1ac7ee(0x136)][_0x1ac7ee(0x1b6)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x363d8f),this[_0x1ac7ee(0x10e)][_0x1ac7ee(0x17e)]({'type':_0x11c1e6[_0x1ac7ee(0x10c)],'content':this[_0x1ac7ee(0xd0)]['t']('mcpConfig.configError')});}finally{this[_0x1ac7ee(0xd8)][_0x1ac7ee(0x1a5)](!0x1);}}),this[_0x223c26(0xe2)](),this[_0x223c26(0x1de)](),this[_0x223c26(0x1c8)]();}[_0x35218a(0xd4)](){const _0x4d0738=_0x35218a;let _0x811683=this[_0x4d0738(0x187)][_0x4d0738(0x1cd)](B);_0x811683!=null&&_0x811683[_0x4d0738(0x18f)]&&this['_dialogService'][_0x4d0738(0x174)]({'id':q,'title':{'title':this['_localeService']['t']('mcpConfig.title')},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x324d3d=_0x4d0738;this[_0x324d3d(0xf8)]['close'](q);}});}['getCurrentConfig'](){return this['_mcpCoreConfig$']['value'];}[_0x35218a(0x1c8)](){const _0x308c08=_0x35218a;this['disposeWithMe'](this[_0x308c08(0x16d)][_0x308c08(0x143)](_0x308c08(0xbc),this[_0x308c08(0x183)]()));}[_0x35218a(0x183)](){const _0x4b16a0=_0x35218a;return _0x4d5475(()=>{const _0x5f56f8=_0x1fe8;var _0x10a872,_0x10f279,_0x2033ad;return _0x288c52(z,{'config':this[_0x5f56f8(0x116)]['value'],'mcpCoreConfig':this[_0x5f56f8(0x1db)]['value'],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x5f56f8(0x1c5)],'loading':this[_0x5f56f8(0xd8)][_0x5f56f8(0x152)],'connectionStatus$':(_0x10a872=this[_0x5f56f8(0x16f)])==null?void 0x0:_0x10a872[_0x5f56f8(0x16c)],'connectionError$':(_0x10f279=this[_0x5f56f8(0x16f)])==null?void 0x0:_0x10f279['connectionError$'],'currentSessionId$':(_0x2033ad=this[_0x5f56f8(0x16f)])==null?void 0x0:_0x2033ad[_0x5f56f8(0x1ad)]});},this[_0x4b16a0(0x149)]);}['_initConfigSync'](){const _0x195729=_0x35218a;this[_0x195729(0x10d)](this[_0x195729(0x187)][_0x195729(0x159)](_0x562266)[_0x195729(0x141)](_0x16a6df=>{this['_mcpCoreConfig$']['next'](_0x16a6df||{});}));let _0x4f8e64=this[_0x195729(0x187)][_0x195729(0x1cd)](_0x562266);this[_0x195729(0x1db)][_0x195729(0x1a5)](_0x4f8e64||{}),this['disposeWithMe'](this[_0x195729(0x187)][_0x195729(0x159)](B)[_0x195729(0x141)](_0x445e96=>{const _0xdbd4f5=_0x195729;this[_0xdbd4f5(0x116)][_0xdbd4f5(0x1a5)](_0x445e96||{});}));let _0x46b2b4=this[_0x195729(0x187)][_0x195729(0x1cd)](B);this[_0x195729(0x116)]['next'](_0x46b2b4||{});}async[_0x35218a(0x1de)](){const _0x284815=_0x35218a;let _0x21a905=this['_configService'][_0x284815(0x1cd)](B);if(!(_0x21a905!=null&&_0x21a905[_0x284815(0x18f)]))return;let _0x31efc1=await this[_0x284815(0x1bf)]['getItem'](K);_0x31efc1&&(this['_mcpConnectionController'][_0x284815(0x107)]({'Authorization':_0x284815(0x1d0)+_0x31efc1}),this[_0x284815(0x15d)][_0x284815(0x1a5)](_0x31efc1));}async[_0x35218a(0x1a3)](_0x2c13f6){const _0x37b91e=_0x35218a;if(!_0x2c13f6[_0x37b91e(0x11e)]||_0x2c13f6['apiKey']['trim']()[_0x37b91e(0xfe)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x37b91e(0x125))};if(_0x2c13f6['apiKey']['trim']()[_0x37b91e(0xfe)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x37b91e(0xd0)]['t']('mcpConfig.validation.apiKeyTooShort')};try{let _0x29a87a=await this['_injector']['get'](_0x192377)[_0x37b91e(0x181)](_0x2c13f6[_0x37b91e(0x11e)][_0x37b91e(0xf5)]());return _0x29a87a[_0x37b91e(0x1e2)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x29a87a['error']||this['_localeService']['t'](_0x37b91e(0x1c0))};}catch(_0xa27477){return console[_0x37b91e(0x12e)](_0x37b91e(0x199),_0xa27477),{'isValid':!0x0};}}};J=G([W(0x0,_0x519d4f(_0x97e35a)),W(0x1,_0x1f23b3),W(0x2,_0x2220a),W(0x3,_0x3ab6f4),W(0x4,_0x40024d),W(0x5,_0x4e8535),W(0x6,_0x519d4f(_0xcc080b)),W(0x7,_0x519d4f(_0x485d48)),W(0x8,_0x3a67db),W(0x9,_0x519d4f(_0x192377))],J);const Y={'id':_0x35218a(0x17d),'type':_0x8c6f3b[_0x35218a(0x12c)],'handler':async(_0x1ff962,_0x1d7de8)=>(_0x1ff962[_0x35218a(0x113)](J)[_0x35218a(0xd4)](),!0x0)};function X(_0x4afa02,_0x17d825){const _0xc684c0=_0x35218a;switch(_0x4afa02){case _0x2cb78f[_0xc684c0(0xbe)]:return'mcpStatus.disconnected';case _0x2cb78f[_0xc684c0(0x129)]:return _0xc684c0(0xd5);case _0x2cb78f[_0xc684c0(0x182)]:return _0xc684c0(0x194);case _0x2cb78f[_0xc684c0(0x175)]:switch(_0x17d825){case _0x576943[_0xc684c0(0x14f)]:return _0xc684c0(0x179);case _0x576943[_0xc684c0(0x157)]:return _0xc684c0(0x176);case _0x576943[_0xc684c0(0x101)]:return _0xc684c0(0x15e);case _0x576943[_0xc684c0(0x1da)]:return'mcpStatus.maxRetriesExceeded';default:return _0xc684c0(0xd7);}case _0x2cb78f[_0xc684c0(0xe9)]:return _0xc684c0(0x191);default:return'mcpStatus.unknown';}}function ce(_0x15211c,_0x3302ac,_0x8e9a22,_0x17666b=!0x0){const _0x42429b=_0x35218a;let _0x107492=X(_0x15211c,_0x3302ac),_0x5445a8=_0x8e9a22['t'](_0x107492);return _0x17666b?_0x15211c===_0x2cb78f[_0x42429b(0xbe)]&&_0x3302ac===_0x576943[_0x42429b(0x14f)]?_0x5445a8+'\x20-\x20'+_0x8e9a22['t']('mcpStatus.clickToConfigure'):_0x15211c===_0x2cb78f[_0x42429b(0x182)]?''+_0x5445a8:_0x15211c===_0x2cb78f[_0x42429b(0xbe)]||_0x15211c===_0x2cb78f[_0x42429b(0x175)]?_0x5445a8+_0x42429b(0xe4)+_0x8e9a22['t']('mcpStatus.clickToConnect'):_0x5445a8:_0x5445a8;}function le(_0x214883){const _0x45c6ed=_0x35218a;switch(_0x214883){case _0x2cb78f['CONNECTED']:return'univer-text-green-500';case _0x2cb78f[_0x45c6ed(0x129)]:case _0x2cb78f[_0x45c6ed(0xe9)]:return _0x45c6ed(0xd3);case _0x2cb78f[_0x45c6ed(0x175)]:case _0x2cb78f[_0x45c6ed(0xbe)]:return'univer-text-red-500';default:return'univer-text-gray-500';}}function ue(_0x75eb89){const _0x56792c=_0x35218a;let {status$:_0x1c4ec8,error$:_0xc4d625,onConfigure:_0x4843bc,showClickable:_0x2ed030=!0x0}=_0x75eb89,_0x5acfa8=_0x554e27(_0x1c4ec8,_0x2cb78f[_0x56792c(0xbe)]),_0x176ab6=_0x554e27(_0xc4d625,_0x576943[_0x56792c(0x1a7)]),_0x2a8369=_0x1cd4cf(_0x485d48),_0x5720f3=_0x5acfa8===_0x2cb78f['CONNECTED'];_0x5acfa8===_0x2cb78f[_0x56792c(0x129)]||_0x2cb78f[_0x56792c(0xe9)];let _0xbcc97=_0x2a8369['t'](X(_0x5acfa8,_0x176ab6)),_0x2deedd=ce(_0x5acfa8,_0x176ab6,_0x2a8369,_0x2ed030),_0x2f84d3=le(_0x5acfa8),_0x305ab6=_0x288c52(_0x5720f3?_0x4e3349:_0x5a6443,{}),_0xc66e5b=_0x4fd27b(()=>{_0x2ed030&&_0x4843bc&&_0x4843bc();},[_0x2ed030,_0x4843bc]);function _0xe2c505(){const _0x3fb1e4=_0x56792c;return _0x410c89(_0x3fb1e4(0x11a),{'className':_0x4ba5b3(_0x3fb1e4(0x1d7),_0x2ed030&&_0x4843bc&&_0x3fb1e4(0x170)),'role':_0x3fb1e4(0x178),'onClick':_0x2ed030&&_0x4843bc?_0xc66e5b:void 0x0,'children':[_0x288c52(_0x3fb1e4(0x11a),{'className':_0x4ba5b3(_0x3fb1e4(0x1e0),_0x2f84d3),'children':_0x305ab6}),_0x288c52(_0x3fb1e4(0x11a),{'className':_0x3fb1e4(0x114),'children':_0xbcc97})]});}return _0x288c52(_0x26f1ea,{'title':_0x2deedd,'placement':'bottom','children':_0xe2c505()});}let Z=class extends _0x634fb7{constructor(_0x25ca90,_0x51df4f,_0x1b9050,_0x12e6b8){const _0x302b3f=_0x35218a;super(),this['_injector']=_0x25ca90,this[_0x302b3f(0x192)]=_0x51df4f,this[_0x302b3f(0x12b)]=_0x1b9050,this['_configService']=_0x12e6b8,this[_0x302b3f(0x16e)](),this[_0x302b3f(0x1bc)]();}[_0x35218a(0x16e)](){const _0x4b14d9=_0x35218a;let _0x1b0da6=this[_0x4b14d9(0x187)][_0x4b14d9(0x1cd)](B);_0x1b0da6!=null&&_0x1b0da6[_0x4b14d9(0x18f)]&&(this[_0x4b14d9(0x192)]['enableAutoConnect']=!0x1);}[_0x35218a(0x1bc)](){const _0x3a6d5c=_0x35218a;let _0x492c4e=this[_0x3a6d5c(0x187)][_0x3a6d5c(0x1cd)](B);(_0x492c4e==null?void 0x0:_0x492c4e[_0x3a6d5c(0x115)])!==!0x1&&this[_0x3a6d5c(0x10d)](this[_0x3a6d5c(0x12b)][_0x3a6d5c(0x1b5)](_0x14998e['HEADER_MENU'],()=>{const _0x21c077=_0x3a6d5c;var _0x4e9394;return _0x4d5475(de({'status$':this[_0x21c077(0x192)]['connectionStatus$'],'error$':this[_0x21c077(0x192)][_0x21c077(0x1d3)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x4e9394=_0x492c4e==null?void 0x0:_0x492c4e[_0x21c077(0x18f)])==null?!0x1:_0x4e9394}),this[_0x21c077(0x149)]);}));}['_handleConfigure'](){const _0x1bf46a=_0x35218a;this['_injector'][_0x1bf46a(0x113)](J)['showConfigPanel']();}};Z=G([W(0x0,_0x519d4f(_0x97e35a)),W(0x1,_0x519d4f(_0x192377)),W(0x2,_0x1f23b3),W(0x3,_0x2220a)],Z);function de(_0x2414f5){let {status$:_0xf15e72,error$:_0x767cc4,onConfigure:_0x44d2c5,showClickable:_0x60d610}=_0x2414f5;return function(){return _0x288c52(ue,{'status$':_0xf15e72,'error$':_0x767cc4,'onConfigure':_0x44d2c5,'showClickable':_0x60d610});};}function fe(_0x4dad6f){const _0x9e2fc1=_0x35218a;return{'id':Y['id'],'type':_0x347f6f['BUTTON'],'icon':_0x9e2fc1(0x17f),'title':_0x9e2fc1(0x18c),'tooltip':_0x9e2fc1(0x18c)};}const pe={[_0x2fd2cb[_0x35218a(0x164)]]:{[Y['id']]:{'order':0xa,'menuItemFactory':fe}}};let Q=class extends _0x634fb7{constructor(_0xfc571f,_0xb8095d){const _0x255ebc=_0x35218a;super(),this[_0x255ebc(0x19b)]=_0xfc571f,this[_0x255ebc(0xdb)]=_0xb8095d,this[_0x255ebc(0x121)](),this[_0x255ebc(0x144)]();}[_0x35218a(0x121)](){const _0x22a53e=_0x35218a;[Y][_0x22a53e(0x10f)](_0x698b8d=>{const _0x41d2f4=_0x22a53e;this[_0x41d2f4(0x10d)](this[_0x41d2f4(0x19b)][_0x41d2f4(0x1cf)](_0x698b8d));});}['_initializeMenus'](){const _0x10b388=_0x35218a;this['_menuManagerService'][_0x10b388(0x11b)](pe);}};Q=G([W(0x0,_0x14b703),W(0x1,_0x246c7e)],Q);const me={'mcpStatus':{'disconnected':_0x35218a(0x185),'connecting':'MCP\x20Connecting...','connected':_0x35218a(0xea),'failed':'MCP\x20Connection\x20Failed','retrying':_0x35218a(0x171),'unknown':_0x35218a(0x17a),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x35218a(0x131),'clickToConfigure':_0x35218a(0xcb)},'mcpConfig':{'title':_0x35218a(0x1ba),'description':_0x35218a(0x1dd),'apiKey':_0x35218a(0x15a),'apiKeyPlaceholder':_0x35218a(0xe7),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x35218a(0x1a8),'enableAuthHint':_0x35218a(0xd6),'connectionInfo':_0x35218a(0xbf),'mcpClientConfig':_0x35218a(0xbf),'configInstructions':_0x35218a(0xe0),'configStepTitle':_0x35218a(0x1ab),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x35218a(0x133),'sessionId':_0x35218a(0x1a0),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x35218a(0x18d),'configParameters':_0x35218a(0xd1),'maxRetries':'Max\x20Retries','save':_0x35218a(0xe6),'saving':_0x35218a(0x124),'note1':_0x35218a(0x1b0),'note2':_0x35218a(0x1af),'configSaved':_0x35218a(0x102),'configError':_0x35218a(0x193),'apiApplyInfo':{'title':_0x35218a(0xcc),'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':_0x35218a(0x100),'getStarted':_0x35218a(0x130)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x35218a(0x197),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x35218a(0x156),'connecting':_0x35218a(0xff),'connected':_0x35218a(0x1a6),'failed':'Connection\x20Failed','retrying':_0x35218a(0xdf)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x35218a(0x14e),'networkError':_0x35218a(0x13e),'maxRetriesExceeded':_0x35218a(0x15c)}}},he={'mcpStatus':{'disconnected':_0x35218a(0x17b),'connecting':'MCP\x20连接中...','connected':_0x35218a(0xe5),'failed':_0x35218a(0x112),'retrying':_0x35218a(0x173),'unknown':_0x35218a(0x1c3),'unauthorized':_0x35218a(0x11d),'sessionOccupied':_0x35218a(0x180),'networkError':_0x35218a(0x198),'maxRetriesExceeded':_0x35218a(0x1a1),'clickToConnect':_0x35218a(0x111),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x35218a(0x138),'description':_0x35218a(0x123),'apiKey':_0x35218a(0xcf),'apiKeyPlaceholder':_0x35218a(0xd2),'apiKeyHint':_0x35218a(0x1d9),'enableAuth':_0x35218a(0x118),'enableAuthHint':_0x35218a(0xc1),'connectionInfo':_0x35218a(0x162),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x35218a(0x195),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x35218a(0x137),'configStep3':_0x35218a(0xc7),'sessionId':'会话ID','sessionIdDescription':_0x35218a(0x13a),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x35218a(0xe3),'maxRetries':_0x35218a(0xfb),'save':_0x35218a(0x12d),'saving':'保存中...','note1':'配置更改将立即生效','note2':_0x35218a(0x135),'configSaved':_0x35218a(0xc3),'configError':_0x35218a(0xf3),'apiApplyInfo':{'title':_0x35218a(0xfd),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x35218a(0xc2)},'validation':{'apiKeyRequired':_0x35218a(0x110),'apiKeyTooShort':_0x35218a(0x11c),'invalidConfig':'配置无效','invalidApiKey':_0x35218a(0x1b4)},'connectionStatus':{'disconnected':_0x35218a(0xcd),'connecting':'连接中...','connected':'已连接','failed':_0x35218a(0xc4),'retrying':_0x35218a(0x120)},'connectionError':{'unauthorized':_0x35218a(0xde),'sessionOccupied':_0x35218a(0x109),'networkError':_0x35218a(0x140),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var ge=_0x35218a(0x167),_e='0.19.0';let $=class extends _0x2c7e0b{constructor(_0x2bbc5a=V,_0x1e5d7a,_0x32c33f,_0x2c7022,_0x38d901,_0xbf5fd){const _0x38e2d2=_0x35218a;super(),this[_0x38e2d2(0x19a)]=_0x2bbc5a,this[_0x38e2d2(0x149)]=_0x1e5d7a,this[_0x38e2d2(0x187)]=_0x32c33f,this['_uiPartsService']=_0x2c7022,this[_0x38e2d2(0x1bf)]=_0x38d901,this[_0x38e2d2(0xd0)]=_0xbf5fd;let {..._0x272741}=_0xd6e0f4({},V,this[_0x38e2d2(0x19a)]);this[_0x38e2d2(0x187)][_0x38e2d2(0x1dc)](B,_0x272741);}async[_0x35218a(0xf6)](){const _0x4e7f13=_0x35218a;let _0x1458be=[[Z],[J],[Q]];this[_0x4e7f13(0x149)][_0x4e7f13(0xda)](_0x4e295d)||_0x1458be[_0x4e7f13(0x18e)]([_0x4e295d,{'useClass':_0x5e9f21}]),_0x1458be['forEach'](_0x11d1e7=>this[_0x4e7f13(0x149)][_0x4e7f13(0x169)](_0x11d1e7)),this['_injector']['get'](Z),this['_injector']['get'](J),this[_0x4e7f13(0x149)][_0x4e7f13(0x113)](Q);}};U($,_0x35218a(0xf0),'MCP_UI_PLUGIN'),U($,_0x35218a(0x1df),ge),U($,_0x35218a(0x1cb),_e),$=G([_0x32a5f5(_0x2af01b),W(0x1,_0x519d4f(_0x97e35a)),W(0x2,_0x2220a),W(0x3,_0x1f23b3),W(0x4,_0x3ab6f4),W(0x5,_0x519d4f(_0x485d48))],$);export{z as MCPConfigPanel,J as MCPConfigUIController,Z as MCPConnectionUIController,ue as MCPStatusDisplay,Q as MCPUIMenuController,Y as OpenMCPConfigPanelCommand,$ as UniverMCPUIPlugin,me as enUS,he as zhCN};
@@ -1 +1 @@
1
- function _0x59a8(){const _0xf24a37=['18XpmsSG','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Invalid\x20configuration','MCP:\x20Unauthorized','Enable\x20authentication\x20for\x20secure\x20connections','Click\x20to\x20configure\x20MCP','209512iotjAH','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connection\x20Failed','Univer\x20AI\x20Console','252112JIGvQy','API\x20Key','API\x20key\x20is\x20required','Failed\x20to\x20save\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Max\x20Retries','Enter\x20your\x20API\x20key','825454FpSVNl','MCP:\x20Max\x20Retries\x20Exceeded','Enable\x20Authentication','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Network\x20Error','Session\x20ID','6649360QkrEuN','1UkMdMv','346659HepROV','MCP\x20Client\x20Configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Saving...','62044IuoSrb','55ERbcnI','Click\x20to\x20connect\x20MCP','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','33276RbSucU','What\x20is\x20API\x20Key?','API\x20key\x20with\x20Bearer\x20prefix.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connecting...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','42wuriWn','MCP\x20Configuration','2838plIbJl','Configuration\x20Steps:','MCP\x20Unknown\x20Status','Configuration\x20saved\x20successfully','Save\x20Configuration','Connection\x20Failed','Configuration\x20Parameters:'];_0x59a8=function(){return _0xf24a37;};return _0x59a8();}const _0x4d238b=_0x5d81;function _0x5d81(_0x112f4d,_0x6519c2){_0x112f4d=_0x112f4d-0xd7;const _0x59a81a=_0x59a8();let _0x5d8138=_0x59a81a[_0x112f4d];return _0x5d8138;}(function(_0x154d4b,_0x37c703){const _0x3b97a8=_0x5d81,_0xb3a695=_0x154d4b();while(!![]){try{const _0xdbe31e=parseInt(_0x3b97a8(0xdc))/0x1*(parseInt(_0x3b97a8(0x108))/0x2)+parseInt(_0x3b97a8(0xdd))/0x3+parseInt(_0x3b97a8(0xe1))/0x4*(parseInt(_0x3b97a8(0xe2))/0x5)+-parseInt(_0x3b97a8(0xeb))/0x6*(parseInt(_0x3b97a8(0x100))/0x7)+parseInt(_0x3b97a8(0xfb))/0x8*(-parseInt(_0x3b97a8(0xf4))/0x9)+parseInt(_0x3b97a8(0xdb))/0xa+-parseInt(_0x3b97a8(0xed))/0xb*(parseInt(_0x3b97a8(0xe5))/0xc);if(_0xdbe31e===_0x37c703)break;else _0xb3a695['push'](_0xb3a695['shift']());}catch(_0xdcd66a){_0xb3a695['push'](_0xb3a695['shift']());}}}(_0x59a8,0x53f69));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x4d238b(0xe9),'connected':'MCP\x20Connected','failed':_0x4d238b(0xfe),'retrying':'MCP\x20Retrying...','unknown':_0x4d238b(0xef),'unauthorized':_0x4d238b(0xf8),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x4d238b(0xd9),'maxRetriesExceeded':_0x4d238b(0x109),'clickToConnect':_0x4d238b(0xe3),'clickToConfigure':_0x4d238b(0xfa)},'mcpConfig':{'title':_0x4d238b(0xec),'description':_0x4d238b(0x105),'apiKey':_0x4d238b(0x101),'apiKeyPlaceholder':_0x4d238b(0x107),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x4d238b(0xd7),'enableAuthHint':_0x4d238b(0xf9),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x4d238b(0xde),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x4d238b(0xee),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x4d238b(0xea),'configStep3':_0x4d238b(0xe4),'sessionId':_0x4d238b(0xda),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x4d238b(0xe7),'configParameters':_0x4d238b(0xf3),'maxRetries':_0x4d238b(0x106),'save':_0x4d238b(0xf1),'saving':_0x4d238b(0xe0),'note1':_0x4d238b(0xfd),'note2':_0x4d238b(0xf6),'configSaved':_0x4d238b(0xf0),'configError':_0x4d238b(0x103),'apiApplyInfo':{'title':_0x4d238b(0xe6),'description':_0x4d238b(0xdf),'univerAiLabel':_0x4d238b(0xff),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4d238b(0x102),'apiKeyTooShort':_0x4d238b(0xe8),'invalidConfig':_0x4d238b(0xf7),'invalidApiKey':_0x4d238b(0x104)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':_0x4d238b(0xf2),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x4d238b(0xfc),'sessionOccupied':_0x4d238b(0xf5),'networkError':_0x4d238b(0xd8),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
1
+ const _0x2ff0b3=_0x1f96;function _0x1f96(_0x3fafcd,_0x37f6b4){_0x3fafcd=_0x3fafcd-0x121;const _0x2002c0=_0x2002();let _0x1f9616=_0x2002c0[_0x3fafcd];return _0x1f9616;}(function(_0x301bea,_0x24bea0){const _0x433b4d=_0x1f96,_0x14a21e=_0x301bea();while(!![]){try{const _0x43bcf0=parseInt(_0x433b4d(0x131))/0x1+parseInt(_0x433b4d(0x151))/0x2+-parseInt(_0x433b4d(0x153))/0x3*(-parseInt(_0x433b4d(0x12c))/0x4)+parseInt(_0x433b4d(0x125))/0x5*(-parseInt(_0x433b4d(0x12e))/0x6)+parseInt(_0x433b4d(0x13a))/0x7*(-parseInt(_0x433b4d(0x140))/0x8)+-parseInt(_0x433b4d(0x12a))/0x9+-parseInt(_0x433b4d(0x13d))/0xa*(-parseInt(_0x433b4d(0x128))/0xb);if(_0x43bcf0===_0x24bea0)break;else _0x14a21e['push'](_0x14a21e['shift']());}catch(_0x2a3676){_0x14a21e['push'](_0x14a21e['shift']());}}}(_0x2002,0xe8ef7));function _0x2002(){const _0x283732=['MCP\x20Unknown\x20Status','13188VrNgnF','Invalid\x20configuration','Enable\x20authentication\x20for\x20secure\x20connections','50tBKnck','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Failed\x20to\x20save\x20configuration','4712pxTqst','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connection\x20Failed','MCP\x20Client\x20Configuration','Configuration\x20Steps:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20Key','What\x20is\x20API\x20Key?','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Retrying...','Saving...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','2612326IdkeZk','Configuration\x20Parameters:','2887671TbOuId','Click\x20to\x20configure\x20MCP','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Network\x20Error','MCP:\x20Session\x20ID\x20Occupied','Univer\x20AI\x20Console','MCP\x20Retrying...','78145nbUDPR','MCP\x20Disconnected','Max\x20Retries','472285PcmpGq','Enable\x20Authentication','6094602JHzzhr','Configuration\x20saved\x20successfully','4aJWnyb','API\x20key\x20is\x20required','24IQmmUg','MCP\x20Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','320078DNLArs','Disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Session\x20ID','Click\x20to\x20connect\x20MCP','MCP\x20Connected'];_0x2002=function(){return _0x283732;};return _0x2002();}const e={'mcpStatus':{'disconnected':_0x2ff0b3(0x126),'connecting':_0x2ff0b3(0x12f),'connected':_0x2ff0b3(0x138),'failed':'MCP\x20Connection\x20Failed','retrying':_0x2ff0b3(0x124),'unknown':_0x2ff0b3(0x139),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x2ff0b3(0x122),'networkError':_0x2ff0b3(0x121),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2ff0b3(0x137),'clickToConfigure':_0x2ff0b3(0x154)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x2ff0b3(0x130),'apiKey':_0x2ff0b3(0x147),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x2ff0b3(0x146),'enableAuth':_0x2ff0b3(0x129),'enableAuthHint':_0x2ff0b3(0x13c),'connectionInfo':_0x2ff0b3(0x143),'mcpClientConfig':_0x2ff0b3(0x143),'configInstructions':_0x2ff0b3(0x149),'configStepTitle':_0x2ff0b3(0x144),'configStep1':_0x2ff0b3(0x14c),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x2ff0b3(0x14b),'sessionId':_0x2ff0b3(0x136),'sessionIdDescription':_0x2ff0b3(0x155),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x2ff0b3(0x152),'maxRetries':_0x2ff0b3(0x127),'save':'Save\x20Configuration','saving':_0x2ff0b3(0x14f),'note1':_0x2ff0b3(0x13e),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x2ff0b3(0x12b),'configError':_0x2ff0b3(0x13f),'apiApplyInfo':{'title':_0x2ff0b3(0x148),'description':_0x2ff0b3(0x150),'univerAiLabel':_0x2ff0b3(0x123),'getStarted':_0x2ff0b3(0x133)},'validation':{'apiKeyRequired':_0x2ff0b3(0x12d),'apiKeyTooShort':_0x2ff0b3(0x14d),'invalidConfig':_0x2ff0b3(0x13b),'invalidApiKey':_0x2ff0b3(0x14a)},'connectionStatus':{'disconnected':_0x2ff0b3(0x132),'connecting':'Connecting...','connected':'Connected','failed':_0x2ff0b3(0x142),'retrying':_0x2ff0b3(0x14e)},'connectionError':{'unauthorized':_0x2ff0b3(0x134),'sessionOccupied':_0x2ff0b3(0x135),'networkError':_0x2ff0b3(0x145),'maxRetriesExceeded':_0x2ff0b3(0x141)}}};export{e as default};
@@ -1 +1 @@
1
- const _0x324c6a=_0x54f4;(function(_0x47e7e2,_0x3282d8){const _0x437df0=_0x54f4,_0x4ddab3=_0x47e7e2();while(!![]){try{const _0x39b2be=parseInt(_0x437df0(0xca))/0x1*(parseInt(_0x437df0(0xcc))/0x2)+-parseInt(_0x437df0(0xd1))/0x3*(parseInt(_0x437df0(0xc9))/0x4)+-parseInt(_0x437df0(0xc4))/0x5+-parseInt(_0x437df0(0xa7))/0x6*(-parseInt(_0x437df0(0xaa))/0x7)+parseInt(_0x437df0(0xae))/0x8*(parseInt(_0x437df0(0xba))/0x9)+-parseInt(_0x437df0(0xc2))/0xa*(parseInt(_0x437df0(0xcf))/0xb)+parseInt(_0x437df0(0xa9))/0xc*(parseInt(_0x437df0(0xb6))/0xd);if(_0x39b2be===_0x3282d8)break;else _0x4ddab3['push'](_0x4ddab3['shift']());}catch(_0x561920){_0x4ddab3['push'](_0x4ddab3['shift']());}}}(_0x20af,0x63c66));function _0x20af(){const _0x29ea2f=['256440PyXuhm','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Click\x20to\x20configure\x20MCP','MCP\x20Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Network\x20Error','Connected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','1224bsMaqb','Connecting...','470568ytQoaO','1106noHHSM','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Parameters:','API\x20key\x20is\x20required','1304fPPAuM','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20configuration','MCP\x20Disconnected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Max\x20Retries','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Disconnected','273kSSZlC','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','8874aLggwa','Univer\x20AI\x20Console','Saving...','Click\x20to\x20connect\x20MCP','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Save\x20Configuration','MCP\x20Client\x20Configuration','MCP:\x20Session\x20ID\x20Occupied','6651980dJNnsh','Failed\x20to\x20save\x20configuration','2179760lCouMy','API\x20Key','API\x20key\x20with\x20Bearer\x20prefix.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20saved\x20successfully','12hxwOwd','464KccvUg','What\x20is\x20API\x20Key?','3232VhCwxH','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connection\x20Failed','11QtawMC','MCP\x20Configuration'];_0x20af=function(){return _0x29ea2f;};return _0x20af();}function _0x54f4(_0x2661c9,_0x158389){_0x2661c9=_0x2661c9-0xa1;const _0x20afdf=_0x20af();let _0x54f462=_0x20afdf[_0x2661c9];return _0x54f462;}const e={'mcpStatus':{'disconnected':_0x324c6a(0xb1),'connecting':_0x324c6a(0xa1),'connected':'MCP\x20Connected','failed':_0x324c6a(0xb8),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x324c6a(0xc1),'networkError':_0x324c6a(0xa4),'maxRetriesExceeded':_0x324c6a(0xab),'clickToConnect':_0x324c6a(0xbd),'clickToConfigure':_0x324c6a(0xd3)},'mcpConfig':{'title':_0x324c6a(0xd0),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x324c6a(0xc5),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x324c6a(0xb9),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x324c6a(0xa3),'connectionInfo':_0x324c6a(0xc0),'mcpClientConfig':_0x324c6a(0xc0),'configInstructions':_0x324c6a(0xb4),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x324c6a(0xa2),'configStep2':_0x324c6a(0xb2),'configStep3':_0x324c6a(0xd2),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x324c6a(0xc6),'configParameters':_0x324c6a(0xac),'maxRetries':_0x324c6a(0xb3),'save':_0x324c6a(0xbf),'saving':_0x324c6a(0xbc),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x324c6a(0xc8),'configError':_0x324c6a(0xc3),'apiApplyInfo':{'title':_0x324c6a(0xcb),'description':_0x324c6a(0xaf),'univerAiLabel':_0x324c6a(0xbb),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x324c6a(0xad),'apiKeyTooShort':_0x324c6a(0xcd),'invalidConfig':_0x324c6a(0xb0),'invalidApiKey':_0x324c6a(0xa6)},'connectionStatus':{'disconnected':_0x324c6a(0xb5),'connecting':_0x324c6a(0xa8),'connected':_0x324c6a(0xa5),'failed':_0x324c6a(0xce),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x324c6a(0xb7),'networkError':_0x324c6a(0xc7),'maxRetriesExceeded':_0x324c6a(0xbe)}}};export{e as default};
1
+ const _0x260f58=_0x5c20;(function(_0x156447,_0x154e0f){const _0x53b8c1=_0x5c20,_0x2b31b3=_0x156447();while(!![]){try{const _0x39c983=-parseInt(_0x53b8c1(0x8f))/0x1*(parseInt(_0x53b8c1(0x86))/0x2)+parseInt(_0x53b8c1(0xad))/0x3*(parseInt(_0x53b8c1(0xb2))/0x4)+parseInt(_0x53b8c1(0xb0))/0x5+parseInt(_0x53b8c1(0xaf))/0x6+-parseInt(_0x53b8c1(0x91))/0x7*(-parseInt(_0x53b8c1(0xa1))/0x8)+-parseInt(_0x53b8c1(0x8c))/0x9*(parseInt(_0x53b8c1(0x97))/0xa)+-parseInt(_0x53b8c1(0xa8))/0xb*(parseInt(_0x53b8c1(0x8e))/0xc);if(_0x39c983===_0x154e0f)break;else _0x2b31b3['push'](_0x2b31b3['shift']());}catch(_0x2a536b){_0x2b31b3['push'](_0x2b31b3['shift']());}}}(_0xfeab,0xd76a6));const e={'mcpStatus':{'disconnected':_0x260f58(0x89),'connecting':_0x260f58(0x83),'connected':_0x260f58(0x9e),'failed':_0x260f58(0x8d),'retrying':_0x260f58(0x84),'unknown':_0x260f58(0xa2),'unauthorized':_0x260f58(0xa9),'sessionOccupied':_0x260f58(0x8a),'networkError':_0x260f58(0x96),'maxRetriesExceeded':_0x260f58(0xb4),'clickToConnect':_0x260f58(0x9a),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x260f58(0xa3),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x260f58(0xa7),'apiKeyHint':_0x260f58(0x90),'enableAuth':_0x260f58(0xb1),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x260f58(0xaa),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x260f58(0x9f),'configStepTitle':_0x260f58(0xb7),'configStep1':_0x260f58(0x98),'configStep2':_0x260f58(0x85),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x260f58(0x9c),'sessionIdDescription':_0x260f58(0xa5),'authorizationDescription':_0x260f58(0x9d),'configParameters':_0x260f58(0xa0),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':'Saving...','note1':_0x260f58(0x94),'note2':_0x260f58(0xb3),'configSaved':_0x260f58(0xae),'configError':_0x260f58(0xa4),'apiApplyInfo':{'title':_0x260f58(0xb5),'description':_0x260f58(0xb6),'univerAiLabel':_0x260f58(0x87),'getStarted':_0x260f58(0x88)},'validation':{'apiKeyRequired':_0x260f58(0x8b),'apiKeyTooShort':_0x260f58(0x93),'invalidConfig':_0x260f58(0xb8),'invalidApiKey':_0x260f58(0x92)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x260f58(0x95),'connected':_0x260f58(0x9b),'failed':_0x260f58(0x99),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x260f58(0xa6),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x260f58(0xac),'maxRetriesExceeded':_0x260f58(0xab)}}};function _0x5c20(_0x37d25d,_0x5300c9){_0x37d25d=_0x37d25d-0x83;const _0xfeab4b=_0xfeab();let _0x5c207d=_0xfeab4b[_0x37d25d];return _0x5c207d;}export{e as default};function _0xfeab(){const _0x2f61b2=['1505529TrhwxY','Configuration\x20saved\x20successfully','8686464mxLpev','2184310xakNgb','Enable\x20Authentication','12RPEclL','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Max\x20Retries\x20Exceeded','What\x20is\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.','Configuration\x20Steps:','Invalid\x20configuration','MCP\x20Connecting...','MCP\x20Retrying...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','10NflnBu','Univer\x20AI\x20Console','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Disconnected','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20is\x20required','108pgfNUl','MCP\x20Connection\x20Failed','5027304TIXdzh','321166tGCAvH','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','7FXDmNc','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connecting...','MCP:\x20Network\x20Error','527210Tluijw','Copy\x20the\x20JSON\x20configuration\x20below','Connection\x20Failed','Click\x20to\x20connect\x20MCP','Connected','Session\x20ID','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20Parameters:','7900120gYCCmM','MCP\x20Unknown\x20Status','MCP\x20Configuration','Failed\x20to\x20save\x20configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Enter\x20your\x20API\x20key','33arjuTA','MCP:\x20Unauthorized','MCP\x20Client\x20Configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection'];_0xfeab=function(){return _0x2f61b2;};return _0xfeab();}
@@ -1 +1 @@
1
- const _0x4e4194=_0x2a2c;function _0x636f(){const _0x552b91=['MCP:\x20Network\x20Error','MCP:\x20Session\x20ID\x20Occupied','Connecting...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20is\x20required','10gzXTES','Invalid\x20configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Session\x20ID','Max\x20Retries','Click\x20to\x20connect\x20MCP','MCP\x20Client\x20Configuration','Univer\x20AI\x20Console','663taDgFQ','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20Key','What\x20is\x20API\x20Key?','Connection\x20Failed','MCP\x20Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Save\x20Configuration','MCP\x20Retrying...','Configuration\x20Parameters:','3230240WPThVc','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','10951722nOyFLN','1137492lCzYpI','Failed\x20to\x20save\x20configuration','Enable\x20Authentication','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Disconnected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','336746AhrCWx','MCP:\x20Max\x20Retries\x20Exceeded','1318fFNyvs','Configuration\x20Steps:','1039437NuVodo','Disconnected','MCP\x20Connecting...','Click\x20to\x20configure\x20MCP','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','1149330cOsfxd','Connected','MCP\x20Unknown\x20Status','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Saving...','Retrying...','Enter\x20your\x20API\x20key'];_0x636f=function(){return _0x552b91;};return _0x636f();}(function(_0x54d67f,_0x468bc8){const _0x5c17a5=_0x2a2c,_0xc22a45=_0x54d67f();while(!![]){try{const _0xfcf0c0=parseInt(_0x5c17a5(0x216))/0x1+-parseInt(_0x5c17a5(0x218))/0x2*(-parseInt(_0x5c17a5(0x201))/0x3)+parseInt(_0x5c17a5(0x20f))/0x4+parseInt(_0x5c17a5(0x1f9))/0x5*(parseInt(_0x5c17a5(0x21f))/0x6)+parseInt(_0x5c17a5(0x21a))/0x7+parseInt(_0x5c17a5(0x20c))/0x8+-parseInt(_0x5c17a5(0x20e))/0x9;if(_0xfcf0c0===_0x468bc8)break;else _0xc22a45['push'](_0xc22a45['shift']());}catch(_0x326a3f){_0xc22a45['push'](_0xc22a45['shift']());}}}(_0x636f,0x767a1));function _0x2a2c(_0x23e203,_0x59baaa){_0x23e203=_0x23e203-0x1f4;const _0x636fe=_0x636f();let _0x2a2ca9=_0x636fe[_0x23e203];return _0x2a2ca9;}const e={'mcpStatus':{'disconnected':_0x4e4194(0x214),'connecting':_0x4e4194(0x21c),'connected':'MCP\x20Connected','failed':_0x4e4194(0x206),'retrying':_0x4e4194(0x20a),'unknown':_0x4e4194(0x221),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x4e4194(0x1f5),'networkError':_0x4e4194(0x1f4),'maxRetriesExceeded':_0x4e4194(0x217),'clickToConnect':_0x4e4194(0x1fe),'clickToConfigure':_0x4e4194(0x21d)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x4e4194(0x203),'apiKeyPlaceholder':_0x4e4194(0x225),'apiKeyHint':_0x4e4194(0x1f7),'enableAuth':_0x4e4194(0x211),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x4e4194(0x1ff),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x4e4194(0x219),'configStep1':_0x4e4194(0x213),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4e4194(0x207),'sessionId':_0x4e4194(0x1fc),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x4e4194(0x20b),'maxRetries':_0x4e4194(0x1fd),'save':_0x4e4194(0x209),'saving':_0x4e4194(0x223),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x4e4194(0x222),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x4e4194(0x210),'apiApplyInfo':{'title':_0x4e4194(0x204),'description':_0x4e4194(0x215),'univerAiLabel':_0x4e4194(0x200),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4e4194(0x1f8),'apiKeyTooShort':_0x4e4194(0x208),'invalidConfig':_0x4e4194(0x1fa),'invalidApiKey':_0x4e4194(0x202)},'connectionStatus':{'disconnected':_0x4e4194(0x21b),'connecting':_0x4e4194(0x1f6),'connected':_0x4e4194(0x220),'failed':_0x4e4194(0x205),'retrying':_0x4e4194(0x224)},'connectionError':{'unauthorized':_0x4e4194(0x20d),'sessionOccupied':_0x4e4194(0x1fb),'networkError':_0x4e4194(0x212),'maxRetriesExceeded':_0x4e4194(0x21e)}}},n=e;export{n as default};
1
+ const _0x274553=_0x3f00;function _0x3f00(_0x23acfa,_0x27c8c4){_0x23acfa=_0x23acfa-0x1f4;const _0x54b39b=_0x54b3();let _0x3f0018=_0x54b39b[_0x23acfa];return _0x3f0018;}(function(_0x235d2c,_0x31c04a){const _0x559898=_0x3f00,_0x5dca75=_0x235d2c();while(!![]){try{const _0x3bf4de=parseInt(_0x559898(0x1f5))/0x1*(parseInt(_0x559898(0x1fb))/0x2)+-parseInt(_0x559898(0x222))/0x3*(-parseInt(_0x559898(0x219))/0x4)+-parseInt(_0x559898(0x225))/0x5+parseInt(_0x559898(0x1f8))/0x6+-parseInt(_0x559898(0x218))/0x7+-parseInt(_0x559898(0x216))/0x8+parseInt(_0x559898(0x20f))/0x9*(parseInt(_0x559898(0x1f4))/0xa);if(_0x3bf4de===_0x31c04a)break;else _0x5dca75['push'](_0x5dca75['shift']());}catch(_0x5c7d3c){_0x5dca75['push'](_0x5dca75['shift']());}}}(_0x54b3,0xaa699));const e={'mcpStatus':{'disconnected':_0x274553(0x21d),'connecting':_0x274553(0x20b),'connected':_0x274553(0x212),'failed':_0x274553(0x223),'retrying':_0x274553(0x20e),'unknown':_0x274553(0x224),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x274553(0x208),'networkError':_0x274553(0x203),'maxRetriesExceeded':_0x274553(0x20a),'clickToConnect':_0x274553(0x211),'clickToConfigure':_0x274553(0x206)},'mcpConfig':{'title':_0x274553(0x21f),'description':_0x274553(0x210),'apiKey':_0x274553(0x200),'apiKeyPlaceholder':_0x274553(0x21a),'apiKeyHint':_0x274553(0x201),'enableAuth':_0x274553(0x221),'enableAuthHint':_0x274553(0x228),'connectionInfo':_0x274553(0x1f9),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x274553(0x226),'configStepTitle':_0x274553(0x227),'configStep1':_0x274553(0x1fe),'configStep2':_0x274553(0x213),'configStep3':_0x274553(0x21e),'sessionId':_0x274553(0x205),'sessionIdDescription':_0x274553(0x21c),'authorizationDescription':_0x274553(0x209),'configParameters':_0x274553(0x20c),'maxRetries':'Max\x20Retries','save':_0x274553(0x1f6),'saving':_0x274553(0x1fa),'note1':_0x274553(0x220),'note2':_0x274553(0x202),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x274553(0x214),'apiApplyInfo':{'title':_0x274553(0x217),'description':_0x274553(0x1f7),'univerAiLabel':_0x274553(0x207),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x274553(0x204),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x274553(0x1fd)},'connectionStatus':{'disconnected':_0x274553(0x1fc),'connecting':'Connecting...','connected':_0x274553(0x1ff),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x274553(0x215),'networkError':_0x274553(0x20d),'maxRetriesExceeded':_0x274553(0x21b)}}};function _0x54b3(){const _0x243a90=['Univer\x20AI\x20Console','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connecting...','Configuration\x20Parameters:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Retrying...','108873KLsusK','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Click\x20to\x20connect\x20MCP','MCP\x20Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Failed\x20to\x20save\x20configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','1179608BUPsgS','What\x20is\x20API\x20Key?','5767475JdQTSO','30148sHwNbR','Enter\x20your\x20API\x20key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Disconnected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enable\x20Authentication','201suNeIt','MCP\x20Connection\x20Failed','MCP\x20Unknown\x20Status','2031240cARkpO','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20Steps:','Enable\x20authentication\x20for\x20secure\x20connections','640AdEsss','27rARtIa','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.','2979180PqbGzH','MCP\x20Client\x20Configuration','Saving...','22216rjlGeq','Disconnected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Copy\x20the\x20JSON\x20configuration\x20below','Connected','API\x20Key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Network\x20Error','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Session\x20ID','Click\x20to\x20configure\x20MCP'];_0x54b3=function(){return _0x243a90;};return _0x54b3();}export{e as default};
@@ -1 +1 @@
1
- const _0x77b16=_0x1beb;(function(_0x5964ea,_0x266a0d){const _0x44d1ee=_0x1beb,_0xfc5afd=_0x5964ea();while(!![]){try{const _0x300dcb=parseInt(_0x44d1ee(0x137))/0x1+parseInt(_0x44d1ee(0x11c))/0x2*(-parseInt(_0x44d1ee(0x11f))/0x3)+-parseInt(_0x44d1ee(0x131))/0x4*(-parseInt(_0x44d1ee(0x12e))/0x5)+-parseInt(_0x44d1ee(0x111))/0x6*(parseInt(_0x44d1ee(0x136))/0x7)+-parseInt(_0x44d1ee(0x132))/0x8+parseInt(_0x44d1ee(0x13c))/0x9*(-parseInt(_0x44d1ee(0x12f))/0xa)+parseInt(_0x44d1ee(0x113))/0xb*(parseInt(_0x44d1ee(0x11b))/0xc);if(_0x300dcb===_0x266a0d)break;else _0xfc5afd['push'](_0xfc5afd['shift']());}catch(_0x3d3319){_0xfc5afd['push'](_0xfc5afd['shift']());}}}(_0x3328,0xe4739));const e={'mcpStatus':{'disconnected':_0x77b16(0x126),'connecting':_0x77b16(0x134),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x77b16(0x12a),'unknown':_0x77b16(0x141),'unauthorized':_0x77b16(0x129),'sessionOccupied':_0x77b16(0x118),'networkError':_0x77b16(0x123),'maxRetriesExceeded':_0x77b16(0x139),'clickToConnect':_0x77b16(0x120),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x77b16(0x12b),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x77b16(0x143),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x77b16(0x122),'enableAuth':_0x77b16(0x12d),'enableAuthHint':_0x77b16(0x140),'connectionInfo':_0x77b16(0x127),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x77b16(0x116),'configStepTitle':_0x77b16(0x128),'configStep1':_0x77b16(0x119),'configStep2':_0x77b16(0x13d),'configStep3':_0x77b16(0x117),'sessionId':_0x77b16(0x13a),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x77b16(0x142),'save':_0x77b16(0x114),'saving':_0x77b16(0x115),'note1':_0x77b16(0x112),'note2':_0x77b16(0x13b),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x77b16(0x12c),'apiApplyInfo':{'title':_0x77b16(0x138),'description':_0x77b16(0x121),'univerAiLabel':_0x77b16(0x133),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x77b16(0x130),'apiKeyTooShort':_0x77b16(0x13e),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x77b16(0x13f)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x77b16(0x11a),'connected':_0x77b16(0x135),'failed':_0x77b16(0x11d),'retrying':_0x77b16(0x125)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x77b16(0x11e),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x77b16(0x124)}}},n=e;function _0x1beb(_0x57ed2e,_0x2f87be){_0x57ed2e=_0x57ed2e-0x111;const _0x332898=_0x3328();let _0x1beb7e=_0x332898[_0x57ed2e];return _0x1beb7e;}function _0x3328(){const _0x25e711=['Connection\x20Failed','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','873744vWlQIX','Click\x20to\x20connect\x20MCP','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Network\x20Error','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Retrying...','MCP\x20Disconnected','MCP\x20Client\x20Configuration','Configuration\x20Steps:','MCP:\x20Unauthorized','MCP\x20Retrying...','MCP\x20Configuration','Failed\x20to\x20save\x20configuration','Enable\x20Authentication','20WEoAlO','590540XBAiNR','API\x20key\x20is\x20required','538436MRkkOE','9002208fnHdBS','Univer\x20AI\x20Console','MCP\x20Connecting...','Connected','497beoDqi','1499075FmmExF','What\x20is\x20API\x20Key?','MCP:\x20Max\x20Retries\x20Exceeded','Session\x20ID','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','99nPznbK','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Unknown\x20Status','Max\x20Retries','API\x20Key','55038KauoCY','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','27383081RBFboK','Save\x20Configuration','Saving...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Session\x20ID\x20Occupied','Copy\x20the\x20JSON\x20configuration\x20below','Connecting...','12TfhPpP','8LsXCCq'];_0x3328=function(){return _0x25e711;};return _0x3328();}export{n as default};
1
+ const _0xee9c34=_0x3f8a;(function(_0x53c3ef,_0x52d274){const _0x4f9e3f=_0x3f8a,_0x59b582=_0x53c3ef();while(!![]){try{const _0x4df6ad=-parseInt(_0x4f9e3f(0x193))/0x1+-parseInt(_0x4f9e3f(0x19a))/0x2*(-parseInt(_0x4f9e3f(0x182))/0x3)+parseInt(_0x4f9e3f(0x175))/0x4*(parseInt(_0x4f9e3f(0x16e))/0x5)+-parseInt(_0x4f9e3f(0x176))/0x6*(parseInt(_0x4f9e3f(0x199))/0x7)+-parseInt(_0x4f9e3f(0x179))/0x8+parseInt(_0x4f9e3f(0x187))/0x9+-parseInt(_0x4f9e3f(0x18f))/0xa*(-parseInt(_0x4f9e3f(0x19e))/0xb);if(_0x4df6ad===_0x52d274)break;else _0x59b582['push'](_0x59b582['shift']());}catch(_0x2ae6a5){_0x59b582['push'](_0x59b582['shift']());}}}(_0xc73e,0x7ae18));function _0xc73e(){const _0x45cd85=['Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','1909915QQRZAv','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Unknown\x20Status','MCP\x20Disconnected','MCP\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Copy\x20the\x20JSON\x20configuration\x20below','4dYiTRY','17718euJYts','Invalid\x20configuration','MCP\x20Connection\x20Failed','457456IGusUi','Click\x20to\x20connect\x20MCP','Disconnected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20configure\x20MCP','Enable\x20authentication\x20for\x20secure\x20connections','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Max\x20Retries','API\x20key\x20is\x20required','30wPiqBg','What\x20is\x20API\x20Key?','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20Parameters:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','1984896rkFEQz','Connection\x20Failed','Retrying...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key','MCP\x20Client\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','40TLNbHm','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connecting...','Enter\x20your\x20API\x20key','65808eASbeA','MCP:\x20Max\x20Retries\x20Exceeded','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Network\x20Error','MCP:\x20Session\x20ID\x20Occupied','889OGkKLr','30974Veafbc','Saving...','MCP\x20Retrying...','Configuration\x20saved\x20successfully','670846uBXjVh','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Session\x20ID','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connected'];_0xc73e=function(){return _0x45cd85;};return _0xc73e();}function _0x3f8a(_0x29ca93,_0x8e971e){_0x29ca93=_0x29ca93-0x16b;const _0xc73e5b=_0xc73e();let _0x3f8a90=_0xc73e5b[_0x29ca93];return _0x3f8a90;}const e={'mcpStatus':{'disconnected':_0xee9c34(0x171),'connecting':_0xee9c34(0x191),'connected':'MCP\x20Connected','failed':_0xee9c34(0x178),'retrying':_0xee9c34(0x19c),'unknown':_0xee9c34(0x170),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0xee9c34(0x198),'networkError':_0xee9c34(0x197),'maxRetriesExceeded':_0xee9c34(0x194),'clickToConnect':_0xee9c34(0x17a),'clickToConfigure':_0xee9c34(0x17d)},'mcpConfig':{'title':_0xee9c34(0x172),'description':_0xee9c34(0x18b),'apiKey':_0xee9c34(0x18c),'apiKeyPlaceholder':_0xee9c34(0x192),'apiKeyHint':_0xee9c34(0x17c),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0xee9c34(0x17e),'connectionInfo':_0xee9c34(0x18d),'mcpClientConfig':_0xee9c34(0x18d),'configInstructions':_0xee9c34(0x184),'configStepTitle':'Configuration\x20Steps:','configStep1':_0xee9c34(0x174),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0xee9c34(0x196),'sessionId':_0xee9c34(0x1a0),'sessionIdDescription':_0xee9c34(0x18e),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0xee9c34(0x185),'maxRetries':_0xee9c34(0x180),'save':'Save\x20Configuration','saving':_0xee9c34(0x19b),'note1':_0xee9c34(0x186),'note2':_0xee9c34(0x17f),'configSaved':_0xee9c34(0x19d),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0xee9c34(0x183),'description':_0xee9c34(0x19f),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0xee9c34(0x190)},'validation':{'apiKeyRequired':_0xee9c34(0x181),'apiKeyTooShort':_0xee9c34(0x173),'invalidConfig':_0xee9c34(0x177),'invalidApiKey':_0xee9c34(0x18a)},'connectionStatus':{'disconnected':_0xee9c34(0x17b),'connecting':'Connecting...','connected':_0xee9c34(0x16c),'failed':_0xee9c34(0x188),'retrying':_0xee9c34(0x189)},'connectionError':{'unauthorized':_0xee9c34(0x16f),'sessionOccupied':_0xee9c34(0x195),'networkError':_0xee9c34(0x16b),'maxRetriesExceeded':_0xee9c34(0x16d)}}};export{e as default};
@@ -1 +1 @@
1
- function _0x12f7(){const _0x1f7e65=['MCP:\x20Unauthorized','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20Key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connection\x20Failed','Session\x20ID','3054okFDOj','What\x20is\x20API\x20Key?','Failed\x20to\x20save\x20configuration','10003iYdXoK','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','3186648ssKnpv','Configuration\x20Parameters:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enable\x20authentication\x20for\x20secure\x20connections','4030930ADeErs','10eNejfh','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Invalid\x20configuration','3035792oGOvlD','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20Steps:','1882863HnMYtm','Click\x20to\x20configure\x20MCP','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Disconnected','Configuration\x20saved\x20successfully','Connected','5707584YwxJzQ','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Retrying...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connection\x20Failed','MCP\x20Client\x20Configuration','Enable\x20Authentication','Univer\x20AI\x20Console','Copy\x20the\x20JSON\x20configuration\x20below','Max\x20Retries','107711RUqvUB','Retrying...','Connecting...'];_0x12f7=function(){return _0x1f7e65;};return _0x12f7();}const _0x46d176=_0x6e0c;(function(_0x778927,_0x4ddb95){const _0x392680=_0x6e0c,_0x34b810=_0x778927();while(!![]){try{const _0x4b8384=parseInt(_0x392680(0x14d))/0x1*(parseInt(_0x392680(0x160))/0x2)+-parseInt(_0x392680(0x16a))/0x3+parseInt(_0x392680(0x163))/0x4+parseInt(_0x392680(0x15f))/0x5+parseInt(_0x392680(0x156))/0x6*(-parseInt(_0x392680(0x159))/0x7)+parseInt(_0x392680(0x15b))/0x8+-parseInt(_0x392680(0x141))/0x9;if(_0x4b8384===_0x4ddb95)break;else _0x34b810['push'](_0x34b810['shift']());}catch(_0x57d791){_0x34b810['push'](_0x34b810['shift']());}}}(_0x12f7,0x7d35e));function _0x6e0c(_0x46ed95,_0x45466b){_0x46ed95=_0x46ed95-0x13f;const _0x12f71c=_0x12f7();let _0x6e0cd1=_0x12f71c[_0x46ed95];return _0x6e0cd1;}const e={'mcpStatus':{'disconnected':_0x46d176(0x165),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x46d176(0x154),'retrying':_0x46d176(0x144),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x46d176(0x150),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x46d176(0x16b)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x46d176(0x146),'apiKey':_0x46d176(0x152),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x46d176(0x145),'enableAuth':_0x46d176(0x149),'enableAuthHint':_0x46d176(0x15e),'connectionInfo':_0x46d176(0x148),'mcpClientConfig':_0x46d176(0x148),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x46d176(0x169),'configStep1':_0x46d176(0x14b),'configStep2':_0x46d176(0x143),'configStep3':_0x46d176(0x161),'sessionId':_0x46d176(0x155),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x46d176(0x15c),'maxRetries':_0x46d176(0x14c),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x46d176(0x153),'note2':_0x46d176(0x15d),'configSaved':_0x46d176(0x13f),'configError':_0x46d176(0x158),'apiApplyInfo':{'title':_0x46d176(0x157),'description':_0x46d176(0x15a),'univerAiLabel':_0x46d176(0x14a),'getStarted':_0x46d176(0x164)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x46d176(0x168),'invalidConfig':_0x46d176(0x162),'invalidApiKey':_0x46d176(0x167)},'connectionStatus':{'disconnected':_0x46d176(0x16d),'connecting':_0x46d176(0x14f),'connected':_0x46d176(0x140),'failed':_0x46d176(0x147),'retrying':_0x46d176(0x14e)},'connectionError':{'unauthorized':_0x46d176(0x16c),'sessionOccupied':_0x46d176(0x166),'networkError':_0x46d176(0x142),'maxRetriesExceeded':_0x46d176(0x151)}}},n=e;export{n as default};
1
+ const _0x5ba1c5=_0x2b2c;(function(_0x47069f,_0x3cf46b){const _0x230020=_0x2b2c,_0x6bf816=_0x47069f();while(!![]){try{const _0x9a398a=parseInt(_0x230020(0x1b5))/0x1*(-parseInt(_0x230020(0x19c))/0x2)+parseInt(_0x230020(0x1a8))/0x3*(-parseInt(_0x230020(0x1bc))/0x4)+parseInt(_0x230020(0x1aa))/0x5*(-parseInt(_0x230020(0x198))/0x6)+parseInt(_0x230020(0x1a2))/0x7+parseInt(_0x230020(0x1c2))/0x8+-parseInt(_0x230020(0x1ca))/0x9*(parseInt(_0x230020(0x1a4))/0xa)+-parseInt(_0x230020(0x19a))/0xb*(-parseInt(_0x230020(0x1a9))/0xc);if(_0x9a398a===_0x3cf46b)break;else _0x6bf816['push'](_0x6bf816['shift']());}catch(_0x20467d){_0x6bf816['push'](_0x6bf816['shift']());}}}(_0x1b99,0x1d995));function _0x2b2c(_0xf0f865,_0xa57acd){_0xf0f865=_0xf0f865-0x198;const _0x1b9984=_0x1b99();let _0x2b2c9b=_0x1b9984[_0xf0f865];return _0x2b2c9b;}function _0x1b99(){const _0x426923=['Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','2519vwziQf','Connected','32AHHOfR','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connecting...','API\x20Key','Saving...','MCP\x20Connecting...','225974nLUVXY','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','596860mrxJyh','Save\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20Steps:','3pxonMv','33720uZoKQB','325pwPRIE','Enter\x20your\x20API\x20key','API\x20key\x20is\x20required','MCP\x20Unknown\x20Status','Univer\x20AI\x20Console','Connection\x20Failed','Enable\x20Authentication','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Unauthorized','What\x20is\x20API\x20Key?','Click\x20to\x20configure\x20MCP','9544GXpRxM','Click\x20to\x20connect\x20MCP','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20with\x20Bearer\x20prefix.','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20saved\x20successfully','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','635924JRFAkX','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connection\x20Failed','Configuration\x20Parameters:','MCP\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','249512PbwXrL','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','Failed\x20to\x20save\x20configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Retrying...','36zhndKq','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','MCP\x20Client\x20Configuration','Invalid\x20configuration','3258LyIcOV'];_0x1b99=function(){return _0x426923;};return _0x1b99();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x5ba1c5(0x1a1),'connected':_0x5ba1c5(0x1cc),'failed':_0x5ba1c5(0x1be),'retrying':_0x5ba1c5(0x1c9),'unknown':_0x5ba1c5(0x1ad),'unauthorized':_0x5ba1c5(0x1b2),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x5ba1c5(0x1b7),'clickToConnect':_0x5ba1c5(0x1b6),'clickToConfigure':_0x5ba1c5(0x1b4)},'mcpConfig':{'title':_0x5ba1c5(0x1c0),'description':_0x5ba1c5(0x1a3),'apiKey':_0x5ba1c5(0x19f),'apiKeyPlaceholder':_0x5ba1c5(0x1ab),'apiKeyHint':_0x5ba1c5(0x1b1),'enableAuth':_0x5ba1c5(0x1b0),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x5ba1c5(0x1cd),'mcpClientConfig':_0x5ba1c5(0x1cd),'configInstructions':_0x5ba1c5(0x199),'configStepTitle':_0x5ba1c5(0x1a7),'configStep1':_0x5ba1c5(0x1c1),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x5ba1c5(0x1bb),'sessionId':'Session\x20ID','sessionIdDescription':_0x5ba1c5(0x1b9),'authorizationDescription':_0x5ba1c5(0x1b8),'configParameters':_0x5ba1c5(0x1bf),'maxRetries':'Max\x20Retries','save':_0x5ba1c5(0x1a5),'saving':_0x5ba1c5(0x1a0),'note1':_0x5ba1c5(0x1bd),'note2':_0x5ba1c5(0x1a6),'configSaved':_0x5ba1c5(0x1ba),'configError':_0x5ba1c5(0x1c7),'apiApplyInfo':{'title':_0x5ba1c5(0x1b3),'description':_0x5ba1c5(0x1cb),'univerAiLabel':_0x5ba1c5(0x1ae),'getStarted':_0x5ba1c5(0x1c6)},'validation':{'apiKeyRequired':_0x5ba1c5(0x1ac),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x5ba1c5(0x1ce),'invalidApiKey':_0x5ba1c5(0x1c4)},'connectionStatus':{'disconnected':_0x5ba1c5(0x1c5),'connecting':_0x5ba1c5(0x19e),'connected':_0x5ba1c5(0x19b),'failed':_0x5ba1c5(0x1af),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x5ba1c5(0x1c8),'networkError':_0x5ba1c5(0x1c3),'maxRetriesExceeded':_0x5ba1c5(0x19d)}}};export{e as default};
@@ -1 +1 @@
1
- const _0x43d881=_0x4960;(function(_0x442dcb,_0x5e82b5){const _0x2dd4bb=_0x4960,_0x10478a=_0x442dcb();while(!![]){try{const _0x4064b0=parseInt(_0x2dd4bb(0xe8))/0x1+-parseInt(_0x2dd4bb(0xd2))/0x2+-parseInt(_0x2dd4bb(0xf2))/0x3*(-parseInt(_0x2dd4bb(0xf4))/0x4)+parseInt(_0x2dd4bb(0xcb))/0x5+-parseInt(_0x2dd4bb(0xd1))/0x6+parseInt(_0x2dd4bb(0xe1))/0x7*(parseInt(_0x2dd4bb(0xd0))/0x8)+-parseInt(_0x2dd4bb(0xdd))/0x9;if(_0x4064b0===_0x5e82b5)break;else _0x10478a['push'](_0x10478a['shift']());}catch(_0x4e7b3f){_0x10478a['push'](_0x10478a['shift']());}}}(_0x531e,0xe2a50));function _0x531e(){const _0x500a78=['MCP\x20接続中...','セッションIDが現在使用中です。後でもう一度お試しください','1920wPFhiX','APIキー','4328HnTzOd','接続中...','セッションID','設定パラメータ:','MCPクライアントの設定ファイルに設定を追加','設定の変更は直ちに有効になります','保存中...','5991855jjaIEx','数秒でAPIキーを取得','Bearerプレフィックス付きのAPIキー。','MCP設定','APIキーを入力してください','8ZqOJBT','2844888dlSNlj','2562392MkAocK','MCP:\x20ネットワークエラー','MCP\x20不明な状態','APIキーはこのブラウザのローカルに保存されます','MCP:\x20認証されていません','設定が正常に保存されました','接続失敗','APIキーは必須です','APIキーはローカルストレージに安全に保存されます','MCPクライアントを再起動して設定を適用','Univer\x20AIコンソール','14214150aMjMon','設定手順:','未接続','MCPクライアント設定','6271321cRoqTj','MCPを設定してAIでスプレッドシートを操作','APIキーは10文字以上である必要があります','クリックしてMCPに接続','APIキーとは?','最大再試行回数を超過しました。後でもう一度お試しください','再試行中...','1476276nJbgae','最大再試行回数','MCP\x20接続失敗','MCP:\x20セッションIDが使用中','MCPクライアントの設定に次の設定を追加してください:','MCP\x20再試行中...','クリックしてMCPを設定','セキュアな接続のために認証を有効にする'];_0x531e=function(){return _0x500a78;};return _0x531e();}const e={'mcpStatus':{'disconnected':'MCP\x20未接続','connecting':_0x43d881(0xf0),'connected':'MCP\x20接続済み','failed':_0x43d881(0xea),'retrying':_0x43d881(0xed),'unknown':_0x43d881(0xd4),'unauthorized':_0x43d881(0xd6),'sessionOccupied':_0x43d881(0xeb),'networkError':_0x43d881(0xd3),'maxRetriesExceeded':'MCP:\x20最大再試行回数を超過','clickToConnect':_0x43d881(0xe4),'clickToConfigure':_0x43d881(0xee)},'mcpConfig':{'title':_0x43d881(0xce),'description':_0x43d881(0xe2),'apiKey':_0x43d881(0xf3),'apiKeyPlaceholder':_0x43d881(0xcf),'apiKeyHint':_0x43d881(0xd5),'enableAuth':'認証を有効にする','enableAuthHint':_0x43d881(0xef),'connectionInfo':_0x43d881(0xe0),'mcpClientConfig':_0x43d881(0xe0),'configInstructions':_0x43d881(0xec),'configStepTitle':_0x43d881(0xde),'configStep1':'以下のJSON設定をコピー','configStep2':_0x43d881(0xc8),'configStep3':_0x43d881(0xdb),'sessionId':_0x43d881(0xc6),'sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':_0x43d881(0xcd),'configParameters':_0x43d881(0xc7),'maxRetries':_0x43d881(0xe9),'save':'設定を保存','saving':_0x43d881(0xca),'note1':_0x43d881(0xc9),'note2':_0x43d881(0xda),'configSaved':_0x43d881(0xd7),'configError':'設定の保存に失敗しました','apiApplyInfo':{'title':_0x43d881(0xe5),'description':'APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','univerAiLabel':_0x43d881(0xdc),'getStarted':_0x43d881(0xcc)},'validation':{'apiKeyRequired':_0x43d881(0xd9),'apiKeyTooShort':_0x43d881(0xe3),'invalidConfig':'無効な設定','invalidApiKey':'無効なAPIキーです。キーが正しいか確認してください'},'connectionStatus':{'disconnected':_0x43d881(0xdf),'connecting':_0x43d881(0xc5),'connected':'接続済み','failed':_0x43d881(0xd8),'retrying':_0x43d881(0xe7)},'connectionError':{'unauthorized':'認証に失敗しました。APIキーを確認してください','sessionOccupied':_0x43d881(0xf1),'networkError':'ネットワーク接続エラー。インターネット接続を確認してください','maxRetriesExceeded':_0x43d881(0xe6)}}};function _0x4960(_0x4b46c2,_0x4330ca){_0x4b46c2=_0x4b46c2-0xc5;const _0x531e16=_0x531e();let _0x4960a0=_0x531e16[_0x4b46c2];return _0x4960a0;}export{e as default};
1
+ const _0x1aaa94=_0x208a;(function(_0x372216,_0x5dbab3){const _0x20389f=_0x208a,_0x25eaa9=_0x372216();while(!![]){try{const _0x39d06e=parseInt(_0x20389f(0x1f8))/0x1*(-parseInt(_0x20389f(0x1e6))/0x2)+-parseInt(_0x20389f(0x208))/0x3*(-parseInt(_0x20389f(0x209))/0x4)+-parseInt(_0x20389f(0x1f7))/0x5+-parseInt(_0x20389f(0x1df))/0x6*(parseInt(_0x20389f(0x1fb))/0x7)+parseInt(_0x20389f(0x1f1))/0x8*(parseInt(_0x20389f(0x1ef))/0x9)+-parseInt(_0x20389f(0x207))/0xa*(-parseInt(_0x20389f(0x204))/0xb)+-parseInt(_0x20389f(0x1e3))/0xc;if(_0x39d06e===_0x5dbab3)break;else _0x25eaa9['push'](_0x25eaa9['shift']());}catch(_0x382557){_0x25eaa9['push'](_0x25eaa9['shift']());}}}(_0x3818,0x8ccd0));const e={'mcpStatus':{'disconnected':_0x1aaa94(0x201),'connecting':_0x1aaa94(0x1f0),'connected':_0x1aaa94(0x1dc),'failed':_0x1aaa94(0x1e9),'retrying':_0x1aaa94(0x1e0),'unknown':_0x1aaa94(0x1f9),'unauthorized':_0x1aaa94(0x1ec),'sessionOccupied':_0x1aaa94(0x20d),'networkError':'MCP:\x20ネットワークエラー','maxRetriesExceeded':_0x1aaa94(0x212),'clickToConnect':_0x1aaa94(0x1fd),'clickToConfigure':_0x1aaa94(0x1ed)},'mcpConfig':{'title':_0x1aaa94(0x1e2),'description':_0x1aaa94(0x20a),'apiKey':'APIキー','apiKeyPlaceholder':_0x1aaa94(0x1ee),'apiKeyHint':_0x1aaa94(0x200),'enableAuth':'認証を有効にする','enableAuthHint':'セキュアな接続のために認証を有効にする','connectionInfo':_0x1aaa94(0x1f6),'mcpClientConfig':_0x1aaa94(0x1f6),'configInstructions':_0x1aaa94(0x1fc),'configStepTitle':_0x1aaa94(0x1f3),'configStep1':_0x1aaa94(0x1f4),'configStep2':_0x1aaa94(0x206),'configStep3':'MCPクライアントを再起動して設定を適用','sessionId':'セッションID','sessionIdDescription':_0x1aaa94(0x1fe),'authorizationDescription':_0x1aaa94(0x1eb),'configParameters':'設定パラメータ:','maxRetries':_0x1aaa94(0x202),'save':_0x1aaa94(0x20b),'saving':_0x1aaa94(0x211),'note1':_0x1aaa94(0x1dd),'note2':_0x1aaa94(0x1e7),'configSaved':_0x1aaa94(0x203),'configError':_0x1aaa94(0x20c),'apiApplyInfo':{'title':_0x1aaa94(0x1e1),'description':_0x1aaa94(0x1e5),'univerAiLabel':'Univer\x20AIコンソール','getStarted':_0x1aaa94(0x1fa)},'validation':{'apiKeyRequired':_0x1aaa94(0x1de),'apiKeyTooShort':_0x1aaa94(0x1e4),'invalidConfig':_0x1aaa94(0x20f),'invalidApiKey':_0x1aaa94(0x1ea)},'connectionStatus':{'disconnected':'未接続','connecting':_0x1aaa94(0x20e),'connected':_0x1aaa94(0x1f2),'failed':'接続失敗','retrying':_0x1aaa94(0x1f5)},'connectionError':{'unauthorized':_0x1aaa94(0x1e8),'sessionOccupied':_0x1aaa94(0x210),'networkError':_0x1aaa94(0x205),'maxRetriesExceeded':_0x1aaa94(0x1ff)}}};function _0x208a(_0x52221b,_0x47a1d8){_0x52221b=_0x52221b-0x1dc;const _0x381880=_0x3818();let _0x208a11=_0x381880[_0x52221b];return _0x208a11;}function _0x3818(){const _0x13e633=['認証に失敗しました。APIキーを確認してください','MCP\x20接続失敗','無効なAPIキーです。キーが正しいか確認してください','Bearerプレフィックス付きのAPIキー。','MCP:\x20認証されていません','クリックしてMCPを設定','APIキーを入力してください','72uwSFpS','MCP\x20接続中...','1003256BFZaGx','接続済み','設定手順:','以下のJSON設定をコピー','再試行中...','MCPクライアント設定','3193605GTXQZE','158990CmmWFB','MCP\x20不明な状態','数秒でAPIキーを取得','7KoRhlE','MCPクライアントの設定に次の設定を追加してください:','クリックしてMCPに接続','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','最大再試行回数を超過しました。後でもう一度お試しください','APIキーはこのブラウザのローカルに保存されます','MCP\x20未接続','最大再試行回数','設定が正常に保存されました','132merbBE','ネットワーク接続エラー。インターネット接続を確認してください','MCPクライアントの設定ファイルに設定を追加','917450ODAfMu','3wbnzYu','2892084wxgsqS','MCPを設定してAIでスプレッドシートを操作','設定を保存','設定の保存に失敗しました','MCP:\x20セッションIDが使用中','接続中...','無効な設定','セッションIDが現在使用中です。後でもう一度お試しください','保存中...','MCP:\x20最大再試行回数を超過','MCP\x20接続済み','設定の変更は直ちに有効になります','APIキーは必須です','1753854JrPtYd','MCP\x20再試行中...','APIキーとは?','MCP設定','2478444srppDT','APIキーは10文字以上である必要があります','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','14atsEnF','APIキーはローカルストレージに安全に保存されます'];_0x3818=function(){return _0x13e633;};return _0x3818();}export{e as default};
@@ -1 +1 @@
1
- function _0x8231(_0x55a648,_0x496063){_0x55a648=_0x55a648-0x168;const _0x233b98=_0x233b();let _0x823184=_0x233b98[_0x55a648];return _0x823184;}const _0x5083be=_0x8231;(function(_0x171cb2,_0x117975){const _0xdbf60b=_0x8231,_0x106ae7=_0x171cb2();while(!![]){try{const _0x708c95=-parseInt(_0xdbf60b(0x16d))/0x1+-parseInt(_0xdbf60b(0x187))/0x2+-parseInt(_0xdbf60b(0x18c))/0x3+parseInt(_0xdbf60b(0x16c))/0x4*(parseInt(_0xdbf60b(0x17b))/0x5)+parseInt(_0xdbf60b(0x169))/0x6+parseInt(_0xdbf60b(0x178))/0x7+parseInt(_0xdbf60b(0x18a))/0x8;if(_0x708c95===_0x117975)break;else _0x106ae7['push'](_0x106ae7['shift']());}catch(_0x3e7b72){_0x106ae7['push'](_0x106ae7['shift']());}}}(_0x233b,0xaed82));function _0x233b(){const _0x1682f4=['MCP\x20재시도\x20중...','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','몇\x20초\x20만에\x20API\x20키\x20발급받기','인증\x20활성화','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','6184776eMZnfi','아래\x20JSON\x20설정\x20복사','재시도\x20중...','4ptWSxg','959607KswmsZ','API\x20키','클릭하여\x20MCP\x20연결','설정\x20저장\x20실패','MCP\x20설정','연결됨','연결\x20중...','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','MCP:\x20최대\x20재시도\x20횟수\x20초과','MCP\x20연결\x20실패','MCP\x20클라이언트\x20설정','5752131eRcNdG','API\x20키는\x20필수입니다','연결\x20실패','5352695YopLWo','설정이\x20성공적으로\x20저장되었습니다','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','설정\x20단계:','MCP:\x20네트워크\x20오류','최대\x20재시도\x20횟수','Univer\x20AI\x20콘솔','설정\x20저장','MCP\x20연결\x20끊김','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','2089162ugDozL','클릭하여\x20MCP\x20설정','연결\x20끊김','9411312mJLrVS','API\x20키는\x2010자\x20이상이어야\x20합니다','4137396PzWFwR','세션\x20ID','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','API\x20키란\x20무엇인가요?','MCP\x20연결됨','MCP\x20연결\x20중...'];_0x233b=function(){return _0x1682f4;};return _0x233b();}const e={'mcpStatus':{'disconnected':_0x5083be(0x183),'connecting':_0x5083be(0x192),'connected':_0x5083be(0x191),'failed':_0x5083be(0x176),'retrying':_0x5083be(0x193),'unknown':'MCP\x20알\x20수\x20없는\x20상태','unauthorized':'MCP:\x20인증되지\x20않음','sessionOccupied':'MCP:\x20세션\x20ID\x20사용\x20중','networkError':_0x5083be(0x17f),'maxRetriesExceeded':_0x5083be(0x175),'clickToConnect':_0x5083be(0x16f),'clickToConfigure':_0x5083be(0x188)},'mcpConfig':{'title':_0x5083be(0x171),'description':_0x5083be(0x186),'apiKey':_0x5083be(0x16e),'apiKeyPlaceholder':'API\x20키를\x20입력하세요','apiKeyHint':_0x5083be(0x185),'enableAuth':_0x5083be(0x196),'enableAuthHint':'보안\x20연결을\x20위해\x20인증\x20활성화','connectionInfo':_0x5083be(0x177),'mcpClientConfig':_0x5083be(0x177),'configInstructions':'MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','configStepTitle':_0x5083be(0x17e),'configStep1':_0x5083be(0x16a),'configStep2':_0x5083be(0x18f),'configStep3':'MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','sessionId':_0x5083be(0x18d),'sessionIdDescription':_0x5083be(0x17d),'authorizationDescription':'Bearer\x20접두사가\x20있는\x20API\x20키.','configParameters':'설정\x20매개변수:','maxRetries':_0x5083be(0x180),'save':_0x5083be(0x182),'saving':'저장\x20중...','note1':_0x5083be(0x18e),'note2':'API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','configSaved':_0x5083be(0x17c),'configError':_0x5083be(0x170),'apiApplyInfo':{'title':_0x5083be(0x190),'description':_0x5083be(0x168),'univerAiLabel':_0x5083be(0x181),'getStarted':_0x5083be(0x195)},'validation':{'apiKeyRequired':_0x5083be(0x179),'apiKeyTooShort':_0x5083be(0x18b),'invalidConfig':'유효하지\x20않은\x20설정','invalidApiKey':'유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요'},'connectionStatus':{'disconnected':_0x5083be(0x189),'connecting':_0x5083be(0x173),'connected':_0x5083be(0x172),'failed':_0x5083be(0x17a),'retrying':_0x5083be(0x16b)},'connectionError':{'unauthorized':'인증\x20실패.\x20API\x20키를\x20확인하세요','sessionOccupied':_0x5083be(0x194),'networkError':_0x5083be(0x184),'maxRetriesExceeded':_0x5083be(0x174)}}};export{e as default};
1
+ function _0x48ce(_0x427dbc,_0x55ac0c){_0x427dbc=_0x427dbc-0x19f;const _0x57a594=_0x57a5();let _0x48ce05=_0x57a594[_0x427dbc];return _0x48ce05;}const _0x8d7d05=_0x48ce;(function(_0x599c69,_0x5292a7){const _0x3f60f5=_0x48ce,_0xca245d=_0x599c69();while(!![]){try{const _0x44d8cb=parseInt(_0x3f60f5(0x1b6))/0x1+parseInt(_0x3f60f5(0x1bf))/0x2+-parseInt(_0x3f60f5(0x1c3))/0x3+parseInt(_0x3f60f5(0x1cc))/0x4+parseInt(_0x3f60f5(0x1c7))/0x5*(-parseInt(_0x3f60f5(0x1b1))/0x6)+-parseInt(_0x3f60f5(0x1a9))/0x7+parseInt(_0x3f60f5(0x1cb))/0x8*(parseInt(_0x3f60f5(0x1b9))/0x9);if(_0x44d8cb===_0x5292a7)break;else _0xca245d['push'](_0xca245d['shift']());}catch(_0x233f69){_0xca245d['push'](_0xca245d['shift']());}}}(_0x57a5,0x5cc42));const e={'mcpStatus':{'disconnected':_0x8d7d05(0x1d1),'connecting':'MCP\x20연결\x20중...','connected':'MCP\x20연결됨','failed':_0x8d7d05(0x1c4),'retrying':_0x8d7d05(0x1ba),'unknown':_0x8d7d05(0x1d2),'unauthorized':_0x8d7d05(0x1cd),'sessionOccupied':_0x8d7d05(0x1a3),'networkError':_0x8d7d05(0x1cf),'maxRetriesExceeded':_0x8d7d05(0x1ce),'clickToConnect':_0x8d7d05(0x1be),'clickToConfigure':_0x8d7d05(0x1a1)},'mcpConfig':{'title':_0x8d7d05(0x1c1),'description':'AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','apiKey':'API\x20','apiKeyPlaceholder':_0x8d7d05(0x1d4),'apiKeyHint':'API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','enableAuth':_0x8d7d05(0x1a6),'enableAuthHint':_0x8d7d05(0x1a2),'connectionInfo':_0x8d7d05(0x1c5),'mcpClientConfig':_0x8d7d05(0x1c5),'configInstructions':_0x8d7d05(0x1c8),'configStepTitle':_0x8d7d05(0x1bd),'configStep1':_0x8d7d05(0x1d0),'configStep2':_0x8d7d05(0x1b5),'configStep3':_0x8d7d05(0x1c6),'sessionId':_0x8d7d05(0x1c9),'sessionIdDescription':_0x8d7d05(0x19f),'authorizationDescription':'Bearer\x20접두사가\x20있는\x20API\x20키.','configParameters':_0x8d7d05(0x1d5),'maxRetries':_0x8d7d05(0x1b7),'save':_0x8d7d05(0x1b0),'saving':_0x8d7d05(0x1aa),'note1':_0x8d7d05(0x1b2),'note2':_0x8d7d05(0x1af),'configSaved':_0x8d7d05(0x1a5),'configError':_0x8d7d05(0x1bc),'apiApplyInfo':{'title':_0x8d7d05(0x1a7),'description':'API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','univerAiLabel':_0x8d7d05(0x1c0),'getStarted':_0x8d7d05(0x1a0)},'validation':{'apiKeyRequired':_0x8d7d05(0x1bb),'apiKeyTooShort':_0x8d7d05(0x1c2),'invalidConfig':_0x8d7d05(0x1ad),'invalidApiKey':_0x8d7d05(0x1b8)},'connectionStatus':{'disconnected':_0x8d7d05(0x1ac),'connecting':_0x8d7d05(0x1ae),'connected':_0x8d7d05(0x1a4),'failed':_0x8d7d05(0x1b4),'retrying':_0x8d7d05(0x1a8)},'connectionError':{'unauthorized':_0x8d7d05(0x1b3),'sessionOccupied':_0x8d7d05(0x1ab),'networkError':_0x8d7d05(0x1d3),'maxRetriesExceeded':_0x8d7d05(0x1ca)}}};export{e as default};function _0x57a5(){const _0x4d9431=['40eExbFp','485272XFkRwc','MCP:\x20인증되지\x20않음','MCP:\x20최대\x20재시도\x20횟수\x20초과','MCP:\x20네트워크\x20오류','아래\x20JSON\x20설정\x20복사','MCP\x20연결\x20끊김','MCP\x20알\x20수\x20없는\x20상태','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','API\x20키를\x20입력하세요','설정\x20매개변수:','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','몇\x20초\x20만에\x20API\x20키\x20발급받기','클릭하여\x20MCP\x20설정','보안\x20연결을\x20위해\x20인증\x20활성화','MCP:\x20세션\x20ID\x20사용\x20중','연결됨','설정이\x20성공적으로\x20저장되었습니다','인증\x20활성화','API\x20키란\x20무엇인가요?','재시도\x20중...','354242UDjsvF','저장\x20중...','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','연결\x20끊김','유효하지\x20않은\x20설정','연결\x20중...','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','설정\x20저장','290112TMbHFY','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','인증\x20실패.\x20API\x20키를\x20확인하세요','연결\x20실패','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','402372SefXAE','최대\x20재시도\x20횟수','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','2083365VpaAeB','MCP\x20재시도\x20중...','API\x20키는\x20필수입니다','설정\x20저장\x20실패','설정\x20단계:','클릭하여\x20MCP\x20연결','239962PYclyY','Univer\x20AI\x20콘솔','MCP\x20설정','API\x20키는\x2010자\x20이상이어야\x20합니다','2225832qSIqdG','MCP\x20연결\x20실패','MCP\x20클라이언트\x20설정','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','65tvHSMC','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','세션\x20ID','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요'];_0x57a5=function(){return _0x4d9431;};return _0x57a5();}