@univerjs-pro/mcp-ui 0.20.1 → 0.22.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.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +11 -11
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x8849ec=_0x1a3d;(function(_0x3a1357,_0x19a455){const _0x282245=_0x1a3d,_0x1031ac=_0x3a1357();while(!![]){try{const _0x5bee67=-parseInt(_0x282245(0xd8))/0x1*(parseInt(_0x282245(0x131))/0x2)+-parseInt(_0x282245(0x186))/0x3+-parseInt(_0x282245(0x91))/0x4+parseInt(_0x282245(0x18d))/0x5*(-parseInt(_0x282245(0x173))/0x6)+-parseInt(_0x282245(0x1bd))/0x7*(-parseInt(_0x282245(0x152))/0x8)+parseInt(_0x282245(0xfd))/0x9*(parseInt(_0x282245(0x13a))/0xa)+parseInt(_0x282245(0x12d))/0xb*(parseInt(_0x282245(0x81))/0xc);if(_0x5bee67===_0x19a455)break;else _0x1031ac['push'](_0x1031ac['shift']());}catch(_0x11356d){_0x1031ac['push'](_0x1031ac['shift']());}}}(_0x1127,0xd0460),Object[_0x8849ec(0x1b4)](exports,Symbol[_0x8849ec(0xc4)],{'value':_0x8849ec(0x12f)}));let e=require(`@univerjs/core`),t=require(`@univerjs-pro/mcp`),n=require(`@univerjs/design`),r=require(`@univerjs/ui`),i=require(`rxjs`),a=require(`@univerjs/icons`),o=require(`react`),s=require(`react/jsx-runtime`),c=require(`@univerjs/network`);function l(_0x186b59){const _0x4ec51e=_0x8849ec;var _0x385eb3,_0x46003f;let {mcpCoreConfig:_0x50d355,onSave:_0x362cb4,loading:_0x40ffcd=!0x1,config:_0x1958ad,connectionStatus$:_0x5df51e,connectionError$:_0x2240eb,currentApiKey$:_0x1a3738,currentSessionId$:_0x4b6b1a}=_0x186b59,_0x137f91=(0x0,r[_0x4ec51e(0x1b2)])(e[_0x4ec51e(0x8b)]),_0x195a70=(0x0,r[_0x4ec51e(0x1ad)])(_0x5df51e,t[_0x4ec51e(0x10a)][_0x4ec51e(0x19c)]),_0x121505=(0x0,r['useObservable'])(_0x2240eb,t[_0x4ec51e(0x13c)][_0x4ec51e(0x13b)]),_0x2622f6=(0x0,r[_0x4ec51e(0x1ad)])(_0x4b6b1a,''),[_0x258c52,_0x338b91]=(0x0,o[_0x4ec51e(0xdb)])((0x0,r[_0x4ec51e(0x1ad)])(_0x1a3738,'')||''),_0xedd941=_0x1958ad[_0x4ec51e(0x15c)]&&_0x50d355[_0x4ec51e(0x168)]&&(_0x50d355[_0x4ec51e(0x168)][_0x4ec51e(0xbb)](_0x4ec51e(0x155))||_0x50d355[_0x4ec51e(0x168)][_0x4ec51e(0xbb)](_0x4ec51e(0x180))),_0x26ac22=(_0x385eb3=_0x50d355[_0x4ec51e(0x168)])==null?void 0x0:_0x385eb3[_0x4ec51e(0xbb)](_0x4ec51e(0x155)),_0x3a0167=(_0x46003f=_0x50d355[_0x4ec51e(0x168)])==null?void 0x0:_0x46003f[_0x4ec51e(0xbb)]('univer.ai'),_0x5c1904=_0x26ac22?_0x4ec51e(0x106):_0x4ec51e(0xb6),_0x5ce002=_0x1958ad['showDeveloperTools']&&(_0x26ac22||_0x3a0167),[_0x4fffef,_0x3ec940]=(0x0,o[_0x4ec51e(0xdb)])(!_0x258c52[_0x4ec51e(0xbe)]()),_0x29c992=(_0xf8d46c,_0x558102)=>{const _0x13f34b=_0x4ec51e;if(_0x558102===t[_0x13f34b(0x13c)][_0x13f34b(0x169)])return _0x13f34b(0x113);switch(_0xf8d46c){case t[_0x13f34b(0x10a)][_0x13f34b(0x1a7)]:return _0x13f34b(0x9e);case t[_0x13f34b(0x10a)]['CONNECTING']:case t['MCPConnectionStatus'][_0x13f34b(0x181)]:return _0x13f34b(0x18b);case t[_0x13f34b(0x10a)][_0x13f34b(0x179)]:return _0x13f34b(0x113);default:return _0x13f34b(0x1ae);}},_0x2714dd=(_0x563cf2,_0x57352c)=>{const _0x51560b=_0x4ec51e;if(_0x57352c===t['MCPConnectionError'][_0x51560b(0x169)])return _0x51560b(0xe5);switch(_0x563cf2){case t['MCPConnectionStatus'][_0x51560b(0x1a7)]:return _0x51560b(0xf6);case t['MCPConnectionStatus']['CONNECTING']:case t[_0x51560b(0x10a)][_0x51560b(0x181)]:return'univer-bg-blue-500';case t['MCPConnectionStatus']['FAILED']:return _0x51560b(0xe5);default:return _0x51560b(0xce);}},_0x4045ec=_0x4a3a7e=>{const _0x25a835=_0x4ec51e;switch(_0x4a3a7e){case t[_0x25a835(0x10a)][_0x25a835(0x1a7)]:return _0x137f91['t'](_0x25a835(0x118));case t['MCPConnectionStatus'][_0x25a835(0x14d)]:return _0x137f91['t'](_0x25a835(0xa0));case t['MCPConnectionStatus']['FAILED']:return _0x137f91['t']('mcpConfig.connectionStatus.failed');case t[_0x25a835(0x10a)][_0x25a835(0x181)]:return _0x137f91['t'](_0x25a835(0x8c));default:return _0x137f91['t']('mcpConfig.connectionStatus.disconnected');}},_0x23551d=_0x527d7a=>{const _0x5500f2=_0x4ec51e;switch(_0x527d7a){case t[_0x5500f2(0x13c)][_0x5500f2(0x169)]:return _0x137f91['t'](_0x5500f2(0x16f));case t[_0x5500f2(0x13c)][_0x5500f2(0xe4)]:return _0x137f91['t'](_0x5500f2(0x95));case t[_0x5500f2(0x13c)][_0x5500f2(0x19e)]:return _0x137f91['t']('mcpConfig.connectionError.networkError');case t['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x137f91['t'](_0x5500f2(0xfc));default:return'';}},_0x2f432d=(0x0,o['useCallback'])(()=>{const _0x20cb3e=_0x4ec51e;_0x362cb4({..._0x50d355,'apiKey':_0x258c52[_0x20cb3e(0xbe)](),'enableAuth':!0x0});},[_0x50d355,_0x258c52,!0x0,_0x362cb4]),_0xe47cff=_0x258c52['trim']()['length']>0x0;return(0x0,s[_0x4ec51e(0xdc)])('div',{'className':_0x4ec51e(0x11a),'children':[(0x0,s['jsx'])(_0x4ec51e(0x193),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x127),'children':[(0x0,s[_0x4ec51e(0x1c8)])('div',{'className':_0x4ec51e(0x192),'children':(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x177),{'className':_0x4ec51e(0x1b1),'children':'⚙'})}),(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'children':(0x0,s[_0x4ec51e(0x1c8)])('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x137f91['t'](_0x4ec51e(0xf5))})})]})}),(0x0,s['jsxs'])('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[(0x0,s[_0x4ec51e(0x1c8)])('div',{'className':(0x0,n['clsx'])(_0x4ec51e(0xe3),_0x29c992(_0x195a70,_0x121505)),'children':(0x0,s['jsxs'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xc2),'children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':(0x0,n['clsx'])(_0x4ec51e(0x17b),_0x2714dd(_0x195a70,_0x121505))}),(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x177),{'className':_0x4ec51e(0x1cf),'children':_0x4045ec(_0x195a70)})]})}),_0x121505!==t[_0x4ec51e(0x13c)]['NONE']&&(_0x195a70===t['MCPConnectionStatus'][_0x4ec51e(0x179)]||_0x121505===t[_0x4ec51e(0x13c)][_0x4ec51e(0x169)])&&(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xd4),'children':(0x0,s['jsxs'])('div',{'className':_0x4ec51e(0x98),'children':[(0x0,s['jsx'])(_0x4ec51e(0x177),{'className':_0x4ec51e(0x14b),'children':'⚠️'}),(0x0,s[_0x4ec51e(0x1c8)])('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x23551d(_0x121505)})]})})]}),(0x0,s[_0x4ec51e(0x1c8)])('div',{'className':_0x4ec51e(0x17f),'children':(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':'univer-space-y-5','children':[(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x162),'children':[(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x1a4),{'className':_0x4ec51e(0x187),'children':[(0x0,s['jsx'])(_0x4ec51e(0x177),{'children':'🔑'}),'\x20',_0x137f91['t'](_0x4ec51e(0xa6)),(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x177),{'className':_0x4ec51e(0x133),'children':'*'}),_0xedd941&&(0x0,s[_0x4ec51e(0x1c8)])('a',{'className':_0x4ec51e(0x17e),'title':_0x137f91['t']('mcpConfig.apiApplyInfo.title'),'role':_0x4ec51e(0x147),'onClick':()=>_0x3ec940(!0x0),'children':(0x0,s[_0x4ec51e(0x1c8)])(a['HelpIcon'],{})})]}),(0x0,s[_0x4ec51e(0x1c8)])(n['Input'],{'type':_0x4ec51e(0xf3),'placeholder':_0x137f91['t'](_0x4ec51e(0x165)),'value':_0x258c52,'disabled':_0x40ffcd,'autoComplete':'off','onChange':_0x338b91}),(0x0,s[_0x4ec51e(0x1c8)])('p',{'className':_0x4ec51e(0x1b7),'children':_0x137f91['t']('mcpConfig.apiKeyHint')})]}),_0xedd941&&_0x4fffef&&(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[(0x0,s[_0x4ec51e(0x1c8)])('a',{'className':_0x4ec51e(0xca),'role':_0x4ec51e(0x147),'onClick':()=>_0x3ec940(!0x1),'children':(0x0,s['jsx'])(a[_0x4ec51e(0x124)],{'className':_0x4ec51e(0x94)})}),(0x0,s['jsxs'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x160),'children':[(0x0,s['jsx'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xc8),'children':(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x177),{'className':'univer-text-blue-600','children':'🚀'})}),(0x0,s['jsxs'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x140),'children':[(0x0,s[_0x4ec51e(0x1c8)])('h4',{'className':_0x4ec51e(0xb9),'children':_0x137f91['t']('mcpConfig.apiApplyInfo.title')}),(0x0,s[_0x4ec51e(0x1c8)])('p',{'className':_0x4ec51e(0x184),'children':_0x137f91['t']('mcpConfig.apiApplyInfo.description')}),(0x0,s['jsx'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xb2),'children':_0x5ce002&&(0x0,s[_0x4ec51e(0xdc)])('a',{'className':_0x4ec51e(0x1b6),'href':_0x5c1904,'target':_0x4ec51e(0xa4),'rel':'noopener\x20noreferrer','children':[(0x0,s['jsx'])(_0x4ec51e(0x177),{'children':'🤖'}),_0x137f91['t'](_0x4ec51e(0x158)),(0x0,s['jsx'])('span',{'className':_0x4ec51e(0x1bb),'children':'↗'})]})}),(0x0,s['jsxs'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x90),'children':['✨','\x20',_0x137f91['t'](_0x4ec51e(0x1c7))]})]})]})]}),_0x1958ad['showDeveloperTools']&&(0x0,s['jsxs'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x1cb),'children':[(0x0,s[_0x4ec51e(0xdc)])('h4',{'className':_0x4ec51e(0x123),'children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x177),{'children':'🔗'}),'\x20',_0x137f91['t']('mcpConfig.connectionInfo')]}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x18f),'children':[(0x0,s[_0x4ec51e(0xdc)])('div',{'className':'univer-space-y-3','children':[(0x0,s[_0x4ec51e(0x1c8)])('p',{'className':_0x4ec51e(0x17a),'children':_0x137f91['t'](_0x4ec51e(0x1d1))}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':'univer-space-y-2','children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x17d),'children':_0x137f91['t'](_0x4ec51e(0xa8))}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xfa),'children':[(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,s['jsx'])('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'}),_0x137f91['t'](_0x4ec51e(0xb7))]}),(0x0,s[_0x4ec51e(0xdc)])('div',{'className':_0x4ec51e(0xc2),'children':[(0x0,s['jsx'])(_0x4ec51e(0x177),{'className':_0x4ec51e(0xcd),'children':'2'}),_0x137f91['t'](_0x4ec51e(0x174))]}),(0x0,s[_0x4ec51e(0xdc)])('div',{'className':_0x4ec51e(0xc2),'children':[(0x0,s['jsx'])(_0x4ec51e(0x177),{'className':_0x4ec51e(0xcd),'children':'3'}),_0x137f91['t'](_0x4ec51e(0x18a))]})]})]})]}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x162),'children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x4ec51e(0xea)}),(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x1aa),'children':(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x191),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x4ec51e(0x1cd)]({'mcpServers':{'univer':{'url':_0x4ec51e(0x1a9)+(_0x2622f6||_0x4ec51e(0x170)),'type':_0x4ec51e(0xde),'headers':{'Authorization':_0x4ec51e(0x11b)+(_0x258c52||_0x4ec51e(0x159))}}}},null,0x2)})})]}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x96),'children':[(0x0,s['jsx'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x17d),'children':_0x137f91['t'](_0x4ec51e(0x135))}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':'univer-space-y-2','children':[(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x13e),'children':[(0x0,s['jsx'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xb1)}),(0x0,s['jsxs'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x1b3),'children':[(0x0,s[_0x4ec51e(0x1c8)])('div',{'className':_0x4ec51e(0x164),'children':_0x4ec51e(0x1a2)}),(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x1b7),'children':_0x137f91['t']('mcpConfig.sessionIdDescription')})]})]}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x13e),'children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xb1)}),(0x0,s[_0x4ec51e(0xdc)])('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x164),'children':_0x4ec51e(0x185)}),(0x0,s['jsx'])(_0x4ec51e(0x193),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x137f91['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),(0x0,s[_0x4ec51e(0x1c8)])(n[_0x4ec51e(0x156)],{'onClick':_0x2f432d,'disabled':!_0xe47cff||_0x40ffcd,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x40ffcd?(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x177),{'className':_0x4ec51e(0xc2),'children':[(0x0,s[_0x4ec51e(0x1c8)])('span',{'children':'⟲'}),_0x137f91['t']('mcpConfig.saving')]}):(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x177),{'className':_0x4ec51e(0xc2),'children':[(0x0,s[_0x4ec51e(0x1c8)])(a[_0x4ec51e(0xae)],{}),_0x137f91['t'](_0x4ec51e(0x101))]})}),(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xd9),'children':(0x0,s[_0x4ec51e(0xdc)])('div',{'className':_0x4ec51e(0xb0),'children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x177),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x82),'children':[(0x0,s[_0x4ec51e(0x1c8)])('div',{'className':_0x4ec51e(0x132),'children':_0x4ec51e(0x18e)}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'children':['•',_0x137f91['t'](_0x4ec51e(0x128))]}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'children':['•',_0x137f91['t'](_0x4ec51e(0xf9))]})]})]})})]})})]});}const u=_0x8849ec(0xf8);Symbol(u);const d={'showDeveloperTools':!0x1,'showStatus':!0x0};function f(_0x323a7a){'@babel/helpers - typeof';const _0x787327=_0x8849ec;return f=typeof Symbol==_0x787327(0xad)&&typeof Symbol[_0x787327(0xc7)]==_0x787327(0xd3)?function(_0x5f260d){return typeof _0x5f260d;}:function(_0x2dc10b){const _0x2a7d17=_0x787327;return _0x2dc10b&&typeof Symbol==_0x2a7d17(0xad)&&_0x2dc10b[_0x2a7d17(0x14f)]===Symbol&&_0x2dc10b!==Symbol[_0x2a7d17(0x12a)]?_0x2a7d17(0xd3):typeof _0x2dc10b;},f(_0x323a7a);}function p(_0x1fa25b,_0x2a8140){const _0x576146=_0x8849ec;if(f(_0x1fa25b)!='object'||!_0x1fa25b)return _0x1fa25b;var _0x444a5b=_0x1fa25b[Symbol[_0x576146(0xe6)]];if(_0x444a5b!==void 0x0){var _0x20beec=_0x444a5b['call'](_0x1fa25b,_0x2a8140||'default');if(f(_0x20beec)!=_0x576146(0xaf))return _0x20beec;throw TypeError(_0x576146(0x1d3));}return(_0x2a8140===_0x576146(0xa1)?String:Number)(_0x1fa25b);}function m(_0x5c2a7f){const _0x14ed63=_0x8849ec;var _0x40988c=p(_0x5c2a7f,_0x14ed63(0xa1));return f(_0x40988c)==_0x14ed63(0xd3)?_0x40988c:_0x40988c+'';}function h(_0x2efc0f,_0x309882,_0x536a67){return(_0x309882=m(_0x309882))in _0x2efc0f?Object['defineProperty'](_0x2efc0f,_0x309882,{'value':_0x536a67,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2efc0f[_0x309882]=_0x536a67,_0x2efc0f;}function g(_0x35fced,_0x42cd52){return function(_0x223721,_0x3f16da){_0x42cd52(_0x223721,_0x3f16da,_0x35fced);};}function _0x1127(){const _0x54c52e=['Session\x20ID','mcp.apiKey','_initializeMenus','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','1286684EFFRlZ','MCP:\x20Session\x20ID\x20Occupied','启用身份验证以获得安全连接','univer-size-4','mcpConfig.connectionError.sessionOccupied','univer-space-y-3','mcpStatus.clickToConfigure','univer-flex\x20univer-items-start\x20univer-gap-2','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','_connectionController','MCP\x20连接失败','mcpStatus.connecting','Invalid\x20configuration','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','showStatus','mcpConfig.connectionStatus.connecting','string','将以下配置添加到您的\x20MCP\x20客户端设置中:','apiKey','_blank','getItem','mcpConfig.apiKey','MCPUIMenuController','mcpConfig.configStepTitle','errorMessage','已连接','ILocalStorageService','sessionId$','function','CheckMarkIcon','object','univer-flex\x20univer-gap-3','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20Connected','_componentManager','mcpStatus.unknown','https://console.univer.ai','mcpConfig.configStep1','push','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','MCP\x20客户端配置','includes','subscribe','_validateConfig','trim','MessageType','mcpStatus.maxRetriesExceeded','MCP\x20Disconnected','univer-flex\x20univer-items-center\x20univer-gap-2','mergeMenu','toStringTag','next','mcp-ui.command.openConfigPanel','iterator','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','API\x20密钥无效,请检查密钥是否正确','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','registerCommand','MCP_UI_PLUGIN','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-bg-gray-500','API\x20密钥长度至少需要\x2010\x20位','MCPConfigPanel','Connection\x20Failed','MCP:\x20会话\x20ID\x20已被占用','symbol','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_mcpCoreConfig$','length','Disposable','2LTKgcj','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','mcpStatus.failed','useState','jsxs','_config','http','registerComponent','_localStorageService','请输入您的\x20API\x20密钥','close','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','SESSION_ID_OCCUPIED','univer-bg-red-500','toPrimitive','clsx','Univer\x20AI\x20Console','_createConfigPanelComponent','MCP\x20Configuration','\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','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connecting...','Configuration\x20saved\x20successfully','MCP:\x20Network\x20Error','ICommandService','IDialogService','_initConfigSync','text','会话\x20ID\x20已被占用,请稍后再试','mcpConfig.description','univer-bg-green-500','setConfig','mcp-ui.config','mcpConfig.note2','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','Configuration\x20Parameters:','mcpConfig.connectionError.maxRetriesExceeded','90OvNfQn','_uiPartsService','会话ID','_loading$','mcpConfig.save','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','将配置添加到您的\x20MCP\x20客户端设置文件中','Get\x20your\x20API\x20key\x20in\x20seconds','带有\x20Bearer\x20前缀的\x20API\x20密钥。','https://console.univer.plus','MCP\x20已连接','show','enableAutoConnect','MCPConnectionStatus','getConfig','subscribeConfigValue$','Click\x20to\x20configure\x20MCP','has','MCP:\x20超出最大重试次数','disposeWithMe','getCurrentConfig','UniverMCPUIPlugin','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','Success','API\x20密钥不能为空','API\x20key\x20is\x20required','MCP\x20重连中...','mcpConfig.connectionStatus.connected','MAX_RETRIES_EXCEEDED','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','Bearer\x20','mcpStatus.disconnected','_handleConfigure','MCP\x20已断开','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','保存中...','您的\x20API\x20密钥安全存储在本地存储中','OffLineIcon','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','CloseIcon','MCPConnectionController','Error','univer-flex\x20univer-items-center\x20univer-gap-3','mcpConfig.note1','_configService','prototype','useCallback','__setCustomHeaders','231LXSZwY','ILogService','Module','IUIPartsService','328446KdJrIE','univer-font-medium','univer-text-red-500','mcpStatus.sessionOccupied','mcpConfig.configParameters','MenuIcon','_logService','Inject','\x20-\x20','764130wQTKSQ','NONE','MCPConnectionError','Retrying...','univer-flex\x20univer-items-start\x20univer-gap-3','_menuManagerService','univer-flex-1','RibbonStartGroup','IMenuManagerService','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20未授权','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Copy\x20the\x20JSON\x20configuration\x20below','button','BUTTON','pluginName','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-shrink-0\x20univer-text-red-500','ComponentManager','CONNECTING','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','constructor','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','DependentOn','760NpGeRU','Tooltip','connectInjector','univer.plus','Button','点击连接\x20MCP','mcpConfig.apiApplyInfo.univerAiLabel','<API_KEY>','connectionError$','validateApiKey','showDeveloperTools','zhCN','配置步骤:','_initStatusComponent','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','MCP\x20连接中...','univer-space-y-2','API\x20key\x20with\x20Bearer\x20prefix.','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.apiKeyPlaceholder','您的\x20API\x20密钥将在此浏览器中本地存储','OnLineIcon','mcpServerUrl','UNAUTHORIZED','bottom','_injector','_localeService','showConfigPanel','Injector','mcpConfig.connectionError.unauthorized','<SESSION_ID>','网络连接错误,请检查您的网络连接','连接失败','342hyNAgm','mcpConfig.configStep2','_mcpConnectionController','Univer\x20AI\x20控制台','span','isValid','FAILED','univer-text-xs\x20univer-text-gray-600','univer-size-2\x20univer-rounded-full','version','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','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','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer.ai','RETRYING','univer-text-green-500','复制以下\x20JSON\x20配置','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','Authorization:','729468WZJGKf','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','MCP\x20Client\x20Configuration','mcpStatus.networkError','mcpConfig.configStep3','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','_initializeCommands','72965oZaMyt','Configuration\x20Notes:','univer-space-y-4','_config$','pre','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','div','MCPConnectionUIController','warn','onStarting','MCP\x20Connection\x20Failed','Plugin','_loadStoredApiKey','WebSocketService','配置保存成功','DISCONNECTED','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','NETWORK_ERROR','MCPStatusDisplay','mcpConfig.title','mcpConfig.validation.invalidApiKey','univer_session_id:','MCP_PLUGIN_CONFIG_KEY','label','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','CONNECTED','_initAutoConnect','https://mcp.univer.ai/mcp/?univer_session_id=','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','register','mcpStatus.unauthorized','useObservable','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','配置更改将立即生效','get','univer-text-white','useDependency','univer-min-w-0\x20univer-flex-1','defineProperty','connectionStatus$','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','univer-text-xs\x20univer-text-gray-500','_handleConfigSave','value','What\x20is\x20API\x20Key?','univer-text-gray-400','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','49679xwVsIm','Failed\x20to\x20save\x20configuration','Enable\x20Authentication','add','_dialogService','mcpConfig.validation.apiKeyTooShort','mcpStatus.clickToConnect','_apiKey$','OTHERS','IMessageService','mcpConfig.apiApplyInfo.getStarted','jsx','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','MCP\x20Connecting...','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','removeItem','stringify','Max\x20Retries','univer-text-sm\x20univer-font-medium','Save\x20Configuration','mcpConfig.configInstructions','IConfigService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','decorate','HEADER_MENU','mcp-config-dialog','error','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','配置保存失败','651324CtNmlM','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','_messageService','MCP\x20配置','open','_registerComponent','forEach','权限验证失败,请检查您的\x20API\x20密钥','univer-mr-2\x20univer-flex\x20univer-text-xl','未连接','LocaleService','mcpConfig.connectionStatus.retrying'];_0x1127=function(){return _0x54c52e;};return _0x1127();}function _(_0x2159a7,_0x2fe962,_0x17a771,_0x30d7d8){const _0x187014=_0x8849ec;var _0x1e3186=arguments[_0x187014(0xd6)],_0x5adfea=_0x1e3186<0x3?_0x2fe962:_0x30d7d8===null?_0x30d7d8=Object['getOwnPropertyDescriptor'](_0x2fe962,_0x17a771):_0x30d7d8,_0x40d952;if(typeof Reflect==_0x187014(0xaf)&&typeof Reflect[_0x187014(0x1d4)]==_0x187014(0xad))_0x5adfea=Reflect[_0x187014(0x1d4)](_0x2159a7,_0x2fe962,_0x17a771,_0x30d7d8);else{for(var _0x3211b6=_0x2159a7['length']-0x1;_0x3211b6>=0x0;_0x3211b6--)(_0x40d952=_0x2159a7[_0x3211b6])&&(_0x5adfea=(_0x1e3186<0x3?_0x40d952(_0x5adfea):_0x1e3186>0x3?_0x40d952(_0x2fe962,_0x17a771,_0x5adfea):_0x40d952(_0x2fe962,_0x17a771))||_0x5adfea);}return _0x1e3186>0x3&&_0x5adfea&&Object[_0x187014(0x1b4)](_0x2fe962,_0x17a771,_0x5adfea),_0x5adfea;}const v=_0x8849ec(0x8e),y=_0x8849ec(0x1d6);let b=class extends e[_0x8849ec(0xd7)]{constructor(_0x451c2f,_0x47bd29,_0x4068e0,_0x2c9de1,_0x115793,_0x1a2a9f,_0x2e497d,_0x2224e8,_0x2f0953,_0x3ba926){const _0x4373d4=_0x8849ec;super(),this[_0x4373d4(0x16b)]=_0x451c2f,this[_0x4373d4(0xfe)]=_0x47bd29,this[_0x4373d4(0x129)]=_0x4068e0,this[_0x4373d4(0xe0)]=_0x2c9de1,this[_0x4373d4(0x1c1)]=_0x115793,this[_0x4373d4(0x83)]=_0x1a2a9f,this[_0x4373d4(0xb4)]=_0x2e497d,this['_localeService']=_0x2224e8,this[_0x4373d4(0x137)]=_0x2f0953,this[_0x4373d4(0x175)]=_0x3ba926,h(this,_0x4373d4(0x100),new i['BehaviorSubject'](!0x1)),h(this,_0x4373d4(0xd5),new i['BehaviorSubject']({})),h(this,_0x4373d4(0x190),new i['BehaviorSubject']({})),h(this,_0x4373d4(0x1c4),new i['BehaviorSubject']('')),h(this,_0x4373d4(0x1b8),async _0xbae031=>{const _0x19f4e1=_0x4373d4;this['_loading$']['next'](!0x0);try{var _0x5e1d20,_0x553f27;let _0x32d3d8=await this[_0x19f4e1(0xbd)](_0xbae031);if(!_0x32d3d8[_0x19f4e1(0x178)]){this[_0x19f4e1(0x83)][_0x19f4e1(0x108)]({'type':n['MessageType'][_0x19f4e1(0x126)],'content':_0x32d3d8[_0x19f4e1(0xa9)]||this[_0x19f4e1(0x16c)]['t']('mcpConfig.validation.invalidConfig')});return;}_0xbae031['apiKey']?await this[_0x19f4e1(0xe0)]['setItem'](v,_0xbae031[_0x19f4e1(0xa3)][_0x19f4e1(0xbe)]()):await this[_0x19f4e1(0xe0)][_0x19f4e1(0x1cc)](v),this[_0x19f4e1(0x1c4)][_0x19f4e1(0xc5)](((_0x5e1d20=_0xbae031[_0x19f4e1(0xa3)])==null?void 0x0:_0x5e1d20[_0x19f4e1(0xbe)]())||''),this[_0x19f4e1(0x175)][_0x19f4e1(0x12c)]({'Authorization':_0x19f4e1(0x11b)+((_0x553f27=_0xbae031[_0x19f4e1(0xa3)])==null?void 0x0:_0x553f27[_0x19f4e1(0xbe)]())}),this[_0x19f4e1(0x83)][_0x19f4e1(0x108)]({'type':n[_0x19f4e1(0xbf)][_0x19f4e1(0x114)],'content':this[_0x19f4e1(0x16c)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x2bbfac=_0x19f4e1;this[_0x2bbfac(0x1c1)][_0x2bbfac(0xe2)](y);},0x320);}catch(_0x569317){this[_0x19f4e1(0x137)][_0x19f4e1(0x1d7)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x569317),this[_0x19f4e1(0x83)]['show']({'type':n[_0x19f4e1(0xbf)]['Error'],'content':this[_0x19f4e1(0x16c)]['t']('mcpConfig.configError')});}finally{this['_loading$']['next'](!0x1);}}),this[_0x4373d4(0xf2)](),this[_0x4373d4(0x199)](),this[_0x4373d4(0x86)]();}[_0x8849ec(0x16d)](){const _0x364cfe=_0x8849ec;let _0x3a1b41=this[_0x364cfe(0x129)][_0x364cfe(0x10b)](u);_0x3a1b41!=null&&_0x3a1b41['showDeveloperTools']&&this[_0x364cfe(0x1c1)][_0x364cfe(0x85)]({'id':y,'title':{'title':this['_localeService']['t'](_0x364cfe(0x1a0))},'children':{'label':_0x364cfe(0xd0)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x3fcf26=_0x364cfe;this[_0x3fcf26(0x1c1)][_0x3fcf26(0xe2)](y);}});}[_0x8849ec(0x111)](){const _0x1ff2ed=_0x8849ec;return this[_0x1ff2ed(0xd5)][_0x1ff2ed(0x1b9)];}[_0x8849ec(0x86)](){const _0x420adf=_0x8849ec;this[_0x420adf(0x110)](this['_componentManager'][_0x420adf(0x1ab)](_0x420adf(0xd0),this[_0x420adf(0xe9)]()));}['_createConfigPanelComponent'](){const _0x252657=_0x8849ec;return(0x0,r[_0x252657(0x154)])(()=>{const _0x4801c6=_0x252657;var _0x37fe35,_0x5e6357,_0x43bf5a;return(0x0,s[_0x4801c6(0x1c8)])(l,{'config':this[_0x4801c6(0x190)]['value'],'mcpCoreConfig':this[_0x4801c6(0xd5)][_0x4801c6(0x1b9)],'currentApiKey$':this[_0x4801c6(0x1c4)],'onSave':this['_handleConfigSave'],'loading':this[_0x4801c6(0x100)][_0x4801c6(0x1b9)],'connectionStatus$':(_0x37fe35=this[_0x4801c6(0x175)])==null?void 0x0:_0x37fe35[_0x4801c6(0x1b5)],'connectionError$':(_0x5e6357=this[_0x4801c6(0x175)])==null?void 0x0:_0x5e6357['connectionError$'],'currentSessionId$':(_0x43bf5a=this[_0x4801c6(0x175)])==null?void 0x0:_0x43bf5a[_0x4801c6(0xac)]});},this[_0x252657(0x16b)]);}[_0x8849ec(0xf2)](){const _0x5a6b88=_0x8849ec;this[_0x5a6b88(0x110)](this[_0x5a6b88(0x129)][_0x5a6b88(0x10c)](t[_0x5a6b88(0x1a3)])[_0x5a6b88(0xbc)](_0x5f72f=>{const _0x4bbee4=_0x5a6b88;this[_0x4bbee4(0xd5)][_0x4bbee4(0xc5)](_0x5f72f||{});}));let _0x1b5932=this[_0x5a6b88(0x129)][_0x5a6b88(0x10b)](t[_0x5a6b88(0x1a3)]);this[_0x5a6b88(0xd5)][_0x5a6b88(0xc5)](_0x1b5932||{}),this[_0x5a6b88(0x110)](this[_0x5a6b88(0x129)][_0x5a6b88(0x10c)](u)['subscribe'](_0x5aa774=>{const _0x1b3e15=_0x5a6b88;this[_0x1b3e15(0x190)]['next'](_0x5aa774||{});}));let _0x4e266f=this['_configService'][_0x5a6b88(0x10b)](u);this[_0x5a6b88(0x190)]['next'](_0x4e266f||{});}async['_loadStoredApiKey'](){const _0x266657=_0x8849ec;let _0x40b799=this['_configService'][_0x266657(0x10b)](u);if(!(_0x40b799!=null&&_0x40b799['showDeveloperTools']))return;let _0x3eb80a=await this[_0x266657(0xe0)][_0x266657(0xa5)](v);_0x3eb80a&&(this[_0x266657(0x175)][_0x266657(0x12c)]({'Authorization':'Bearer\x20'+_0x3eb80a}),this[_0x266657(0x1c4)]['next'](_0x3eb80a));}async['_validateConfig'](_0x3a37a8){const _0x9d3c5b=_0x8849ec;if(!_0x3a37a8[_0x9d3c5b(0xa3)]||_0x3a37a8['apiKey'][_0x9d3c5b(0xbe)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyRequired')};if(_0x3a37a8[_0x9d3c5b(0xa3)][_0x9d3c5b(0xbe)]()[_0x9d3c5b(0xd6)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x9d3c5b(0x1c2))};try{let _0x2c8eea=await this['_injector']['get'](t[_0x9d3c5b(0x125)])[_0x9d3c5b(0x15b)](_0x3a37a8[_0x9d3c5b(0xa3)][_0x9d3c5b(0xbe)]());return _0x2c8eea[_0x9d3c5b(0x178)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2c8eea[_0x9d3c5b(0x1d7)]||this[_0x9d3c5b(0x16c)]['t'](_0x9d3c5b(0x1a1))};}catch(_0x5017d7){return console[_0x9d3c5b(0x195)](_0x9d3c5b(0x1d8),_0x5017d7),{'isValid':!0x0};}}};b=_([g(0x0,(0x0,e[_0x8849ec(0x138)])(e[_0x8849ec(0x16e)])),g(0x1,r['IUIPartsService']),g(0x2,e['IConfigService']),g(0x3,e[_0x8849ec(0xab)]),g(0x4,r[_0x8849ec(0xf1)]),g(0x5,r[_0x8849ec(0x1c6)]),g(0x6,(0x0,e[_0x8849ec(0x138)])(r[_0x8849ec(0x14c)])),g(0x7,(0x0,e[_0x8849ec(0x138)])(e[_0x8849ec(0x8b)])),g(0x8,e[_0x8849ec(0x12e)]),g(0x9,(0x0,e[_0x8849ec(0x138)])(t['MCPConnectionController']))],b);const x={'id':_0x8849ec(0xc6),'type':e['CommandType']['COMMAND'],'handler':async(_0x542d1c,_0x431748)=>(_0x542d1c['get'](b)[_0x8849ec(0x16d)](),!0x0)};function S(_0x5424ec,_0x288bf0){const _0xca7345=_0x8849ec;switch(_0x5424ec){case t['MCPConnectionStatus'][_0xca7345(0x19c)]:return _0xca7345(0x11c);case t['MCPConnectionStatus'][_0xca7345(0x14d)]:return _0xca7345(0x9c);case t['MCPConnectionStatus'][_0xca7345(0x1a7)]:return'mcpStatus.connected';case t[_0xca7345(0x10a)]['FAILED']:switch(_0x288bf0){case t['MCPConnectionError']['UNAUTHORIZED']:return _0xca7345(0x1ac);case t[_0xca7345(0x13c)]['SESSION_ID_OCCUPIED']:return _0xca7345(0x134);case t['MCPConnectionError'][_0xca7345(0x19e)]:return _0xca7345(0x189);case t['MCPConnectionError'][_0xca7345(0x119)]:return _0xca7345(0xc0);default:return _0xca7345(0xda);}case t[_0xca7345(0x10a)][_0xca7345(0x181)]:return'mcpStatus.retrying';default:return _0xca7345(0xb5);}}function _0x1a3d(_0x34f5e8,_0x30b4d8){_0x34f5e8=_0x34f5e8-0x80;const _0x112709=_0x1127();let _0x1a3da2=_0x112709[_0x34f5e8];return _0x1a3da2;}function C(_0x33001b,_0x4c1344,_0x5b7053,_0x4a7f2d=!0x0){const _0x183667=_0x8849ec;let _0x563079=S(_0x33001b,_0x4c1344),_0x5948c8=_0x5b7053['t'](_0x563079);return _0x4a7f2d?_0x33001b===t[_0x183667(0x10a)][_0x183667(0x19c)]&&_0x4c1344===t['MCPConnectionError'][_0x183667(0x169)]?_0x5948c8+'\x20-\x20'+_0x5b7053['t'](_0x183667(0x97)):_0x33001b===t[_0x183667(0x10a)]['CONNECTED']?''+_0x5948c8:_0x33001b===t[_0x183667(0x10a)][_0x183667(0x19c)]||_0x33001b===t[_0x183667(0x10a)][_0x183667(0x179)]?_0x5948c8+_0x183667(0x139)+_0x5b7053['t'](_0x183667(0x1c3)):_0x5948c8:_0x5948c8;}function w(_0x35ecc5){const _0x338329=_0x8849ec;switch(_0x35ecc5){case t['MCPConnectionStatus'][_0x338329(0x1a7)]:return _0x338329(0x182);case t['MCPConnectionStatus'][_0x338329(0x14d)]:case t[_0x338329(0x10a)]['RETRYING']:return'univer-text-yellow-500';case t[_0x338329(0x10a)][_0x338329(0x179)]:case t[_0x338329(0x10a)][_0x338329(0x19c)]:return'univer-text-red-500';default:return'univer-text-gray-500';}}function T(_0x52b3a4){const _0xa77edc=_0x8849ec;let {status$:_0x72f62b,error$:_0x43c856,onConfigure:_0x330c5e,showClickable:_0x48a0fe=!0x0}=_0x52b3a4,_0x5ac735=(0x0,r[_0xa77edc(0x1ad)])(_0x72f62b,t['MCPConnectionStatus'][_0xa77edc(0x19c)]),_0x3473df=(0x0,r['useObservable'])(_0x43c856,t['MCPConnectionError']['NONE']),_0x480bb8=(0x0,r[_0xa77edc(0x1b2)])(e[_0xa77edc(0x8b)]),_0x591b7f=_0x5ac735===t[_0xa77edc(0x10a)][_0xa77edc(0x1a7)];_0x5ac735===t[_0xa77edc(0x10a)][_0xa77edc(0x14d)]||t[_0xa77edc(0x10a)][_0xa77edc(0x181)];let _0x31b31d=_0x480bb8['t'](S(_0x5ac735,_0x3473df)),_0x57f9a8=C(_0x5ac735,_0x3473df,_0x480bb8,_0x48a0fe),_0x1a8b4b=w(_0x5ac735),_0x47831d=_0x591b7f?(0x0,s['jsx'])(a[_0xa77edc(0x167)],{}):(0x0,s[_0xa77edc(0x1c8)])(a[_0xa77edc(0x122)],{}),_0x433236=(0x0,o[_0xa77edc(0x12b)])(()=>{_0x48a0fe&&_0x330c5e&&_0x330c5e();},[_0x48a0fe,_0x330c5e]);function _0x309be3(){const _0x1407d8=_0xa77edc;return(0x0,s['jsxs'])(_0x1407d8(0x193),{'className':(0x0,n[_0x1407d8(0xe7)])('univer-flex\x20univer-items-center',_0x48a0fe&&_0x330c5e&&_0x1407d8(0xeb)),'role':_0x1407d8(0x147),'onClick':_0x48a0fe&&_0x330c5e?_0x433236:void 0x0,'children':[(0x0,s[_0x1407d8(0x1c8)])(_0x1407d8(0x193),{'className':(0x0,n['clsx'])(_0x1407d8(0x89),_0x1a8b4b),'children':_0x47831d}),(0x0,s[_0x1407d8(0x1c8)])(_0x1407d8(0x193),{'className':_0x1407d8(0x1c9),'children':_0x31b31d})]});}return(0x0,s[_0xa77edc(0x1c8)])(n[_0xa77edc(0x153)],{'title':_0x57f9a8,'placement':_0xa77edc(0x16a),'children':_0x309be3()});}let E=class extends e['Disposable']{constructor(_0x5270dc,_0xc80bf6,_0x327008,_0x2cae46){const _0x31a952=_0x8849ec;super(),this['_injector']=_0x5270dc,this['_connectionController']=_0xc80bf6,this[_0x31a952(0xfe)]=_0x327008,this[_0x31a952(0x129)]=_0x2cae46,this[_0x31a952(0x1a8)](),this[_0x31a952(0x15f)]();}[_0x8849ec(0x1a8)](){const _0x292973=_0x8849ec;let _0x195ed0=this[_0x292973(0x129)][_0x292973(0x10b)](u);_0x195ed0!=null&&_0x195ed0['showDeveloperTools']&&(this[_0x292973(0x9a)][_0x292973(0x109)]=!0x1);}[_0x8849ec(0x15f)](){const _0x4493a0=_0x8849ec;let _0x369fa0=this[_0x4493a0(0x129)][_0x4493a0(0x10b)](u);(_0x369fa0==null?void 0x0:_0x369fa0[_0x4493a0(0x9f)])!==!0x1&&this[_0x4493a0(0x110)](this[_0x4493a0(0xfe)][_0x4493a0(0xdf)](r['BuiltInUIPart'][_0x4493a0(0x1d5)],()=>{const _0x1b389c=_0x4493a0;var _0x23d744;return(0x0,r[_0x1b389c(0x154)])(D({'status$':this[_0x1b389c(0x9a)][_0x1b389c(0x1b5)],'error$':this[_0x1b389c(0x9a)][_0x1b389c(0x15a)],'onConfigure':()=>this[_0x1b389c(0x11d)](),'showClickable':(_0x23d744=_0x369fa0==null?void 0x0:_0x369fa0[_0x1b389c(0x15c)])==null?!0x1:_0x23d744}),this['_injector']);}));}[_0x8849ec(0x11d)](){const _0x2b4579=_0x8849ec;this[_0x2b4579(0x16b)][_0x2b4579(0x1b0)](b)['showConfigPanel']();}};E=_([g(0x0,(0x0,e[_0x8849ec(0x138)])(e[_0x8849ec(0x16e)])),g(0x1,(0x0,e[_0x8849ec(0x138)])(t[_0x8849ec(0x125)])),g(0x2,r[_0x8849ec(0x130)]),g(0x3,e[_0x8849ec(0x1d2)])],E);function D(_0x250dc9){let {status$:_0x33c394,error$:_0x1e0018,onConfigure:_0x6fa27d,showClickable:_0x2f7fa5}=_0x250dc9;return function(){const _0x21fdb1=_0x1a3d;return(0x0,s[_0x21fdb1(0x1c8)])(T,{'status$':_0x33c394,'error$':_0x1e0018,'onConfigure':_0x6fa27d,'showClickable':_0x2f7fa5});};}function O(_0x248a55){const _0x3c21af=_0x8849ec;return{'id':x['id'],'type':r['MenuItemType'][_0x3c21af(0x148)],'icon':_0x3c21af(0x136),'title':'mcpConfig.title','tooltip':_0x3c21af(0x1a0)};}const k={[r[_0x8849ec(0x141)][_0x8849ec(0x1c5)]]:{[x['id']]:{'order':0xa,'menuItemFactory':O}}};let A=class extends e[_0x8849ec(0xd7)]{constructor(_0x161f5f,_0x1fa3ca){const _0x17dca6=_0x8849ec;super(),this['_commandService']=_0x161f5f,this[_0x17dca6(0x13f)]=_0x1fa3ca,this[_0x17dca6(0x18c)](),this[_0x17dca6(0x8f)]();}[_0x8849ec(0x18c)](){const _0x128ed7=_0x8849ec;[x][_0x128ed7(0x87)](_0x26ae4c=>{const _0x5494bd=_0x128ed7;this[_0x5494bd(0x110)](this['_commandService'][_0x5494bd(0xcb)](_0x26ae4c));});}['_initializeMenus'](){const _0x5c2c1f=_0x8849ec;this[_0x5c2c1f(0x13f)][_0x5c2c1f(0xc3)](k);}};A=_([g(0x0,e[_0x8849ec(0xf0)]),g(0x1,r[_0x8849ec(0x142)])],A);const j={'mcpStatus':{'disconnected':_0x8849ec(0xc1),'connecting':_0x8849ec(0x1ca),'connected':_0x8849ec(0xb3),'failed':_0x8849ec(0x197),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x8849ec(0x92),'networkError':_0x8849ec(0xef),'maxRetriesExceeded':_0x8849ec(0x143),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x8849ec(0x10d)},'mcpConfig':{'title':_0x8849ec(0xea),'description':_0x8849ec(0x11f),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x8849ec(0x1bf),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x8849ec(0x188),'mcpClientConfig':_0x8849ec(0x188),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x8849ec(0x146),'configStep2':_0x8849ec(0xec),'configStep3':_0x8849ec(0x14e),'sessionId':_0x8849ec(0x8d),'sessionIdDescription':_0x8849ec(0x150),'authorizationDescription':_0x8849ec(0x163),'configParameters':_0x8849ec(0xfb),'maxRetries':_0x8849ec(0x1ce),'save':_0x8849ec(0x1d0),'saving':_0x8849ec(0x1a5),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x8849ec(0xee),'configError':_0x8849ec(0x1be),'apiApplyInfo':{'title':_0x8849ec(0x1ba),'description':_0x8849ec(0x1bc),'univerAiLabel':_0x8849ec(0xe8),'getStarted':_0x8849ec(0x104)},'validation':{'apiKeyRequired':_0x8849ec(0x116),'apiKeyTooShort':_0x8849ec(0x14a),'invalidConfig':_0x8849ec(0x9d),'invalidApiKey':_0x8849ec(0x102)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x8849ec(0xed),'connected':'Connected','failed':_0x8849ec(0xd1),'retrying':_0x8849ec(0x13d)},'connectionError':{'unauthorized':_0x8849ec(0x1a6),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x8849ec(0x99)}}},M={'mcpStatus':{'disconnected':_0x8849ec(0x11e),'connecting':_0x8849ec(0x161),'connected':_0x8849ec(0x107),'failed':_0x8849ec(0x9b),'retrying':_0x8849ec(0x117),'unknown':'MCP\x20状态未知','unauthorized':_0x8849ec(0x144),'sessionOccupied':_0x8849ec(0xd2),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x8849ec(0x10f),'clickToConnect':_0x8849ec(0x157),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x8849ec(0x84),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':_0x8849ec(0xe1),'apiKeyHint':_0x8849ec(0x166),'enableAuth':'启用身份验证','enableAuthHint':_0x8849ec(0x93),'connectionInfo':_0x8849ec(0xba),'mcpClientConfig':_0x8849ec(0xba),'configInstructions':_0x8849ec(0xa2),'configStepTitle':_0x8849ec(0x15e),'configStep1':_0x8849ec(0x183),'configStep2':_0x8849ec(0x103),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x8849ec(0xff),'sessionIdDescription':_0x8849ec(0x145),'authorizationDescription':_0x8849ec(0x105),'configParameters':'配置参数:','maxRetries':'最大重试次数','save':'保存配置','saving':_0x8849ec(0x120),'note1':_0x8849ec(0x1af),'note2':_0x8849ec(0x121),'configSaved':_0x8849ec(0x19b),'configError':_0x8849ec(0x80),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x8849ec(0x19d),'univerAiLabel':_0x8849ec(0x176),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x8849ec(0x115),'apiKeyTooShort':_0x8849ec(0xcf),'invalidConfig':'配置无效','invalidApiKey':_0x8849ec(0xc9)},'connectionStatus':{'disconnected':_0x8849ec(0x8a),'connecting':'连接中...','connected':_0x8849ec(0xaa),'failed':_0x8849ec(0x172),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x8849ec(0x88),'sessionOccupied':_0x8849ec(0xf4),'networkError':_0x8849ec(0x171),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var N='@univerjs-pro/mcp-ui',P='0.20.1';let F=class extends e[_0x8849ec(0x198)]{constructor(_0xa61f51=d,_0x584c75,_0x39c547,_0x2b9256,_0x157f64,_0xf61ef1){const _0x443c84=_0x8849ec;super(),this[_0x443c84(0xdd)]=_0xa61f51,this['_injector']=_0x584c75,this[_0x443c84(0x129)]=_0x39c547,this['_uiPartsService']=_0x2b9256,this[_0x443c84(0xe0)]=_0x157f64,this[_0x443c84(0x16c)]=_0xf61ef1;let {..._0x21bc31}=(0x0,e['merge'])({},d,this[_0x443c84(0xdd)]);this[_0x443c84(0x129)][_0x443c84(0xf7)](u,_0x21bc31);}async[_0x8849ec(0x196)](){const _0x4175de=_0x8849ec;let _0x5bace6=[[E],[b],[A]];this[_0x4175de(0x16b)][_0x4175de(0x10e)](c['ISocketService'])||_0x5bace6[_0x4175de(0xb8)]([c['ISocketService'],{'useClass':c[_0x4175de(0x19a)]}]),_0x5bace6[_0x4175de(0x87)](_0xb5af6c=>this['_injector'][_0x4175de(0x1c0)](_0xb5af6c)),this[_0x4175de(0x16b)][_0x4175de(0x1b0)](E),this['_injector'][_0x4175de(0x1b0)](b),this[_0x4175de(0x16b)][_0x4175de(0x1b0)](A);}};h(F,_0x8849ec(0x149),_0x8849ec(0xcc)),h(F,'packageName',N),h(F,_0x8849ec(0x17c),P),F=_([(0x0,e[_0x8849ec(0x151)])(t['UniverMCPPlugin']),g(0x1,(0x0,e[_0x8849ec(0x138)])(e['Injector'])),g(0x2,e['IConfigService']),g(0x3,r[_0x8849ec(0x130)]),g(0x4,e['ILocalStorageService']),g(0x5,(0x0,e['Inject'])(e[_0x8849ec(0x8b)]))],F),exports[_0x8849ec(0xd0)]=l,Object[_0x8849ec(0x1b4)](exports,'MCPConfigUIController',{'enumerable':!0x0,'get':function(){return b;}}),Object['defineProperty'](exports,_0x8849ec(0x194),{'enumerable':!0x0,'get':function(){return E;}}),exports[_0x8849ec(0x19f)]=T,Object['defineProperty'](exports,_0x8849ec(0xa7),{'enumerable':!0x0,'get':function(){return A;}}),exports['OpenMCPConfigPanelCommand']=x,Object['defineProperty'](exports,_0x8849ec(0x112),{'enumerable':!0x0,'get':function(){return F;}}),exports['enUS']=j,exports[_0x8849ec(0x15d)]=M;
|
|
1
|
+
const _0xa52f92=_0x20c4;(function(_0x346db0,_0x138889){const _0x3e2c12=_0x20c4,_0x4d1509=_0x346db0();while(!![]){try{const _0x58f1c7=-parseInt(_0x3e2c12(0x215))/0x1*(-parseInt(_0x3e2c12(0x19c))/0x2)+parseInt(_0x3e2c12(0x223))/0x3*(-parseInt(_0x3e2c12(0x1ed))/0x4)+-parseInt(_0x3e2c12(0x1f7))/0x5*(parseInt(_0x3e2c12(0x1b3))/0x6)+parseInt(_0x3e2c12(0xff))/0x7+parseInt(_0x3e2c12(0x144))/0x8*(parseInt(_0x3e2c12(0x1bb))/0x9)+-parseInt(_0x3e2c12(0x1fe))/0xa*(parseInt(_0x3e2c12(0x10f))/0xb)+parseInt(_0x3e2c12(0x201))/0xc;if(_0x58f1c7===_0x138889)break;else _0x4d1509['push'](_0x4d1509['shift']());}catch(_0x67f1b9){_0x4d1509['push'](_0x4d1509['shift']());}}}(_0x2260,0xd2bdb),Object[_0xa52f92(0x1d7)](exports,Symbol[_0xa52f92(0x1f4)],{'value':'Module'}));let _univerjs_core=require('@univerjs/core'),_univerjs_pro_mcp=require('@univerjs-pro/mcp'),_univerjs_design=require('@univerjs/design'),_univerjs_ui=require('@univerjs/ui'),rxjs=require('rxjs'),_univerjs_icons=require('@univerjs/icons'),react=require('react'),react_jsx_runtime=require('react/jsx-runtime'),_univerjs_network=require('@univerjs/network');function MCPConfigPanel(_0x3c3a43){const _0x145b98=_0xa52f92;var _0xed7b3b,_0x1d6d96;const {mcpCoreConfig:_0x528fd2,onSave:_0x3a75b0,loading:loading=![],config:_0x430ae2,connectionStatus$:_0x4093fe,connectionError$:_0x2cdfa1,currentApiKey$:_0x5dce80,currentSessionId$:_0x21e3c6}=_0x3c3a43,_0x462583=(0x0,_univerjs_ui[_0x145b98(0x21a)])(_univerjs_core[_0x145b98(0x189)]),_0x538cc6=(0x0,_univerjs_ui['useObservable'])(_0x4093fe,_univerjs_pro_mcp[_0x145b98(0x180)][_0x145b98(0x235)]),_0x55053e=(0x0,_univerjs_ui['useObservable'])(_0x2cdfa1,_univerjs_pro_mcp['MCPConnectionError'][_0x145b98(0x1dd)]),_0x4f0735=(0x0,_univerjs_ui[_0x145b98(0x17f)])(_0x21e3c6,''),[_0x417b8b,_0x5e8ff7]=(0x0,react[_0x145b98(0x1d6)])((0x0,_univerjs_ui[_0x145b98(0x17f)])(_0x5dce80,'')||''),_0x37dc29=!![],_0x33b04a=_0x430ae2[_0x145b98(0x1eb)]&&_0x528fd2['mcpServerUrl']&&(_0x528fd2['mcpServerUrl'][_0x145b98(0x162)](_0x145b98(0x18a))||_0x528fd2[_0x145b98(0x1b4)][_0x145b98(0x162)](_0x145b98(0x1c9))),_0x20f437=(_0xed7b3b=_0x528fd2['mcpServerUrl'])===null||_0xed7b3b===void 0x0?void 0x0:_0xed7b3b['includes'](_0x145b98(0x18a)),_0x476984=(_0x1d6d96=_0x528fd2[_0x145b98(0x1b4)])===null||_0x1d6d96===void 0x0?void 0x0:_0x1d6d96[_0x145b98(0x162)](_0x145b98(0x1c9)),_0x572676=_0x20f437?'https://console.univer.plus':'https://console.univer.ai',_0x27c954=_0x430ae2[_0x145b98(0x1eb)]&&(_0x20f437||_0x476984),[_0x18be27,_0x477a20]=(0x0,react[_0x145b98(0x1d6)])(!_0x417b8b[_0x145b98(0x18f)]()),_0x2a154e=(_0x27fb19,_0x1c4ec8)=>{const _0x4aa3d2=_0x145b98;if(_0x1c4ec8===_univerjs_pro_mcp[_0x4aa3d2(0x139)][_0x4aa3d2(0x1f2)])return _0x4aa3d2(0x1cd);switch(_0x27fb19){case _univerjs_pro_mcp['MCPConnectionStatus']['CONNECTED']:return _0x4aa3d2(0x200);case _univerjs_pro_mcp[_0x4aa3d2(0x180)][_0x4aa3d2(0xf2)]:case _univerjs_pro_mcp[_0x4aa3d2(0x180)][_0x4aa3d2(0x10b)]:return _0x4aa3d2(0x16d);case _univerjs_pro_mcp[_0x4aa3d2(0x180)][_0x4aa3d2(0x20d)]:return _0x4aa3d2(0x1cd);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x50033c=(_0xdfa631,_0x5eb48c)=>{const _0x536758=_0x145b98;if(_0x5eb48c===_univerjs_pro_mcp[_0x536758(0x139)][_0x536758(0x1f2)])return _0x536758(0x199);switch(_0xdfa631){case _univerjs_pro_mcp[_0x536758(0x180)][_0x536758(0x156)]:return _0x536758(0x1c1);case _univerjs_pro_mcp['MCPConnectionStatus']['CONNECTING']:case _univerjs_pro_mcp['MCPConnectionStatus'][_0x536758(0x10b)]:return'univer-bg-blue-500';case _univerjs_pro_mcp[_0x536758(0x180)][_0x536758(0x20d)]:return _0x536758(0x199);default:return _0x536758(0x23e);}},_0x1a9bb9=_0x4e4568=>{const _0x536fe3=_0x145b98;switch(_0x4e4568){case _univerjs_pro_mcp[_0x536fe3(0x180)][_0x536fe3(0x156)]:return _0x462583['t'](_0x536fe3(0x242));case _univerjs_pro_mcp[_0x536fe3(0x180)][_0x536fe3(0xf2)]:return _0x462583['t']('mcpConfig.connectionStatus.connecting');case _univerjs_pro_mcp[_0x536fe3(0x180)][_0x536fe3(0x20d)]:return _0x462583['t'](_0x536fe3(0x243));case _univerjs_pro_mcp[_0x536fe3(0x180)][_0x536fe3(0x10b)]:return _0x462583['t']('mcpConfig.connectionStatus.retrying');default:return _0x462583['t']('mcpConfig.connectionStatus.disconnected');}},_0xf374eb=_0x50490b=>{const _0x321d49=_0x145b98;switch(_0x50490b){case _univerjs_pro_mcp[_0x321d49(0x139)][_0x321d49(0x1f2)]:return _0x462583['t'](_0x321d49(0x1be));case _univerjs_pro_mcp[_0x321d49(0x139)][_0x321d49(0x121)]:return _0x462583['t'](_0x321d49(0x19a));case _univerjs_pro_mcp['MCPConnectionError']['NETWORK_ERROR']:return _0x462583['t']('mcpConfig.connectionError.networkError');case _univerjs_pro_mcp[_0x321d49(0x139)]['MAX_RETRIES_EXCEEDED']:return _0x462583['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x2d50ed=(0x0,react['useCallback'])(()=>{const _0x50562e=_0x145b98;_0x3a75b0({..._0x528fd2,'apiKey':_0x417b8b[_0x50562e(0x18f)](),'enableAuth':_0x37dc29});},[_0x528fd2,_0x417b8b,_0x37dc29,_0x3a75b0]),_0xf780f2=_0x417b8b[_0x145b98(0x18f)]()['length']>0x0;return(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x1aa),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':(0x0,react_jsx_runtime['jsxs'])(_0x145b98(0x233),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':_0x145b98(0x1a7),'children':(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x176),{'className':_0x145b98(0x1c3),'children':'⚙'})}),(0x0,react_jsx_runtime['jsx'])('div',{'children':(0x0,react_jsx_runtime['jsx'])('p',{'className':_0x145b98(0x14e),'children':_0x462583['t'](_0x145b98(0x1a9))})})]})}),(0x0,react_jsx_runtime['jsxs'])(_0x145b98(0x233),{'className':_0x145b98(0x1f5),'children':[(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x233),{'className':(0x0,_univerjs_design[_0x145b98(0x1e3)])(_0x145b98(0x178),_0x2a154e(_0x538cc6,_0x55053e)),'children':(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x236),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])('div',{'className':(0x0,_univerjs_design[_0x145b98(0x1e3)])(_0x145b98(0x171),_0x50033c(_0x538cc6,_0x55053e))}),(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x176),{'className':_0x145b98(0x17d),'children':_0x1a9bb9(_0x538cc6)})]})}),_0x55053e!==_univerjs_pro_mcp[_0x145b98(0x139)]['NONE']&&(_0x538cc6===_univerjs_pro_mcp[_0x145b98(0x180)]['FAILED']||_0x55053e===_univerjs_pro_mcp[_0x145b98(0x139)]['UNAUTHORIZED'])&&(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':_0x145b98(0x1a4),'children':(0x0,react_jsx_runtime['jsxs'])(_0x145b98(0x233),{'className':_0x145b98(0x149),'children':[(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x176),{'className':_0x145b98(0x1a2),'children':'⚠️'}),(0x0,react_jsx_runtime[_0x145b98(0x100)])('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0xf374eb(_0x55053e)})]})})]}),(0x0,react_jsx_runtime[_0x145b98(0x100)])('div',{'className':_0x145b98(0x112),'children':(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x145),'children':[(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x245),'children':[(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x151),{'className':_0x145b98(0x20f),'children':[(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x176),{'children':'🔑'}),'\x20',_0x462583['t'](_0x145b98(0x173)),(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x176),{'className':_0x145b98(0x14c),'children':'*'}),_0x33b04a&&(0x0,react_jsx_runtime[_0x145b98(0x100)])('a',{'className':_0x145b98(0xf8),'title':_0x462583['t'](_0x145b98(0x13a)),'role':_0x145b98(0x1a1),'onClick':()=>_0x477a20(!![]),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_icons['HelpIcon'],{})})]}),(0x0,react_jsx_runtime[_0x145b98(0x100)])(_univerjs_design['Input'],{'type':'text','placeholder':_0x462583['t'](_0x145b98(0x1af)),'value':_0x417b8b,'disabled':loading,'autoComplete':_0x145b98(0x131),'onChange':_0x5e8ff7}),(0x0,react_jsx_runtime[_0x145b98(0x100)])('p',{'className':_0x145b98(0x225),'children':_0x462583['t'](_0x145b98(0x22d))})]}),_0x33b04a&&_0x18be27&&(0x0,react_jsx_runtime['jsxs'])(_0x145b98(0x233),{'className':_0x145b98(0x1d2),'children':[(0x0,react_jsx_runtime['jsx'])('a',{'className':_0x145b98(0x1a8),'role':_0x145b98(0x1a1),'onClick':()=>_0x477a20(![]),'children':(0x0,react_jsx_runtime[_0x145b98(0x100)])(_univerjs_icons[_0x145b98(0x20a)],{'className':_0x145b98(0x154)})}),(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0x145b98(0x219),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':_0x145b98(0x15c),'children':(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x176),{'className':'univer-text-blue-600','children':'🚀'})}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':'univer-flex-1','children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])('h4',{'className':_0x145b98(0x1ea),'children':_0x462583['t'](_0x145b98(0x13a))}),(0x0,react_jsx_runtime[_0x145b98(0x100)])('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x462583['t'](_0x145b98(0x1f9))}),(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':_0x145b98(0x1b2),'children':_0x27c954&&(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('a',{'className':_0x145b98(0x217),'href':_0x572676,'target':_0x145b98(0x118),'rel':_0x145b98(0x125),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x176),{'children':'🤖'}),_0x462583['t'](_0x145b98(0x160)),(0x0,react_jsx_runtime['jsx'])('span',{'className':_0x145b98(0x12b),'children':'↗'})]})}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x462583['t'](_0x145b98(0xf6))]})]})]})]}),_0x430ae2[_0x145b98(0x1eb)]&&(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0xf4),'children':[(0x0,react_jsx_runtime['jsxs'])('h4',{'className':_0x145b98(0x240),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x176),{'children':'🔗'}),'\x20',_0x462583['t'](_0x145b98(0x1f1))]}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x1f6),'children':[(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x15f),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])('p',{'className':_0x145b98(0x210),'children':_0x462583['t'](_0x145b98(0x16f))}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('div',{'className':_0x145b98(0x245),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x462583['t'](_0x145b98(0x205))}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x132),'children':[(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x236),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x176),{'className':_0x145b98(0x21b),'children':'1'}),_0x462583['t'](_0x145b98(0x204))]}),(0x0,react_jsx_runtime['jsxs'])(_0x145b98(0x233),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])('span',{'className':_0x145b98(0x21b),'children':'2'}),_0x462583['t'](_0x145b98(0x1fb))]}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('div',{'className':_0x145b98(0x236),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x462583['t'](_0x145b98(0x164))]})]})]})]}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('div',{'className':'univer-space-y-2','children':[(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x233),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x145b98(0x117)}),(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x233),{'className':_0x145b98(0x12d),'children':(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x1cf),{'className':_0x145b98(0x198),'children':JSON[_0x145b98(0x22f)]({'mcpServers':{'univer':{'url':_0x145b98(0x1b0)+(_0x4f0735||_0x145b98(0x12f)),'type':_0x145b98(0x227),'headers':{'Authorization':'Bearer\x20'+(_0x417b8b||_0x145b98(0x109))}}}},null,0x2)})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x145b98(0x233),{'className':_0x145b98(0x15f),'children':[(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x233),{'className':_0x145b98(0x15a),'children':_0x462583['t'](_0x145b98(0x1f8))}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x245),'children':[(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('div',{'className':_0x145b98(0x206),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':_0x145b98(0x1ec)}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])('div',{'className':_0x145b98(0x238),'children':_0x145b98(0x13d)}),(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':_0x145b98(0x225),'children':_0x462583['t'](_0x145b98(0x21d))})]})]}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x233),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':'univer-min-w-0\x20univer-flex-1','children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':_0x145b98(0x238),'children':_0x145b98(0x14f)}),(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':_0x145b98(0x225),'children':_0x462583['t'](_0x145b98(0x213))})]})]})]})]})]})]}),(0x0,react_jsx_runtime[_0x145b98(0x100)])(_univerjs_design['Button'],{'onClick':_0x2d50ed,'disabled':!_0xf780f2||loading,'className':_0x145b98(0x16a),'children':loading?(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('span',{'className':_0x145b98(0x236),'children':[(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x176),{'children':'⟲'}),_0x462583['t']('mcpConfig.saving')]}):(0x0,react_jsx_runtime['jsxs'])(_0x145b98(0x176),{'className':_0x145b98(0x236),'children':[(0x0,react_jsx_runtime['jsx'])(_univerjs_icons[_0x145b98(0x18d)],{}),_0x462583['t'](_0x145b98(0x1bf))]})}),(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x233),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':'univer-flex\x20univer-gap-3','children':[(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x176),{'className':_0x145b98(0x1f0),'children':'💡'}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('div',{'className':_0x145b98(0x248),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])('div',{'className':_0x145b98(0x168),'children':_0x145b98(0x16c)}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'children':['•',_0x462583['t'](_0x145b98(0x20c))]}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'children':['•',_0x462583['t'](_0x145b98(0x104))]})]})]})})]})})]});}const MCP_UI_PLUGIN_CONFIG_KEY='mcp-ui.config',configSymbol=Symbol(MCP_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={'showDeveloperTools':![],'showStatus':!![]};function _typeof(_0x4367a9){'@babel/helpers - typeof';const _0x117c2c=_0xa52f92;return _typeof=_0x117c2c(0x11d)==typeof Symbol&&'symbol'==typeof Symbol[_0x117c2c(0x161)]?function(_0x1deee6){return typeof _0x1deee6;}:function(_0x2d9619){const _0x391f68=_0x117c2c;return _0x2d9619&&_0x391f68(0x11d)==typeof Symbol&&_0x2d9619[_0x391f68(0x174)]===Symbol&&_0x2d9619!==Symbol[_0x391f68(0x239)]?_0x391f68(0x157):typeof _0x2d9619;},_typeof(_0x4367a9);}function toPrimitive(_0x4491ce,_0x30ba4e){const _0xaa7ffd=_0xa52f92;if(_0xaa7ffd(0x23c)!=_typeof(_0x4491ce)||!_0x4491ce)return _0x4491ce;var _0x5abe88=_0x4491ce[Symbol[_0xaa7ffd(0x20e)]];if(void 0x0!==_0x5abe88){var _0x34d980=_0x5abe88['call'](_0x4491ce,_0x30ba4e||_0xaa7ffd(0x218));if(_0xaa7ffd(0x23c)!=_typeof(_0x34d980))return _0x34d980;throw new TypeError(_0xaa7ffd(0x185));}return(_0xaa7ffd(0x1d9)===_0x30ba4e?String:Number)(_0x4491ce);}function toPropertyKey(_0xd89510){const _0x566a08=_0xa52f92;var _0x1307e5=toPrimitive(_0xd89510,_0x566a08(0x1d9));return _0x566a08(0x157)==_typeof(_0x1307e5)?_0x1307e5:_0x1307e5+'';}function _defineProperty(_0x12dad6,_0x5bd2d9,_0x20e8f6){return(_0x5bd2d9=toPropertyKey(_0x5bd2d9))in _0x12dad6?Object['defineProperty'](_0x12dad6,_0x5bd2d9,{'value':_0x20e8f6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x12dad6[_0x5bd2d9]=_0x20e8f6,_0x12dad6;}function __decorateParam(_0x11e639,_0x79879f){return function(_0x4215dd,_0x5d8b1e){_0x79879f(_0x4215dd,_0x5d8b1e,_0x11e639);};}function __decorate(_0x4c00e3,_0x2169bd,_0x502f0c,_0x268051){const _0xc2015d=_0xa52f92;var _0x2546d0=arguments[_0xc2015d(0x1d3)],_0xb54c64=_0x2546d0<0x3?_0x2169bd:_0x268051===null?_0x268051=Object[_0xc2015d(0x14b)](_0x2169bd,_0x502f0c):_0x268051,_0x3ae5ff;if(typeof Reflect===_0xc2015d(0x23c)&&typeof Reflect['decorate']===_0xc2015d(0x11d))_0xb54c64=Reflect[_0xc2015d(0x13e)](_0x4c00e3,_0x2169bd,_0x502f0c,_0x268051);else{for(var _0x2725a6=_0x4c00e3[_0xc2015d(0x1d3)]-0x1;_0x2725a6>=0x0;_0x2725a6--)if(_0x3ae5ff=_0x4c00e3[_0x2725a6])_0xb54c64=(_0x2546d0<0x3?_0x3ae5ff(_0xb54c64):_0x2546d0>0x3?_0x3ae5ff(_0x2169bd,_0x502f0c,_0xb54c64):_0x3ae5ff(_0x2169bd,_0x502f0c))||_0xb54c64;}return _0x2546d0>0x3&&_0xb54c64&&Object[_0xc2015d(0x1d7)](_0x2169bd,_0x502f0c,_0xb54c64),_0xb54c64;}const MCP_API_KEY_STORAGE_KEY=_0xa52f92(0x1ae),MCP_CONFIG_DIALOG_ID='mcp-config-dialog';let MCPConfigUIController=class MCPConfigUIController extends _univerjs_core['Disposable']{constructor(_0x41450c,_0x557790,_0x2e811c,_0x291b69,_0x4062fc,_0x253517,_0x4b1c65,_0x36e01f,_0x5e32c9,_0x16f859){const _0x939fe8=_0xa52f92;super(),this[_0x939fe8(0x111)]=_0x41450c,this[_0x939fe8(0x123)]=_0x557790,this['_configService']=_0x2e811c,this[_0x939fe8(0x1ab)]=_0x291b69,this[_0x939fe8(0x105)]=_0x4062fc,this[_0x939fe8(0x195)]=_0x253517,this[_0x939fe8(0x113)]=_0x4b1c65,this['_localeService']=_0x36e01f,this[_0x939fe8(0x202)]=_0x5e32c9,this[_0x939fe8(0x158)]=_0x16f859,_defineProperty(this,'_loading$',new rxjs[(_0x939fe8(0x119))](![])),_defineProperty(this,_0x939fe8(0x1d1),new rxjs[(_0x939fe8(0x119))]({})),_defineProperty(this,_0x939fe8(0x18c),new rxjs[(_0x939fe8(0x119))]({})),_defineProperty(this,_0x939fe8(0x17c),new rxjs[(_0x939fe8(0x119))]('')),_defineProperty(this,_0x939fe8(0x106),async _0x51064=>{const _0x44bba2=_0x939fe8;this[_0x44bba2(0x1ca)][_0x44bba2(0x1dc)](!![]);try{var _0x5f144e,_0x5eb4cb;const _0x49b87e=await this[_0x44bba2(0x1e9)](_0x51064);if(!_0x49b87e[_0x44bba2(0x230)]){this['_messageService'][_0x44bba2(0x221)]({'type':_univerjs_design['MessageType'][_0x44bba2(0x129)],'content':_0x49b87e['errorMessage']||this[_0x44bba2(0x22c)]['t']('mcpConfig.validation.invalidConfig')});return;}if(_0x51064[_0x44bba2(0x170)])await this[_0x44bba2(0x1ab)][_0x44bba2(0x163)](MCP_API_KEY_STORAGE_KEY,_0x51064[_0x44bba2(0x170)][_0x44bba2(0x18f)]());else await this[_0x44bba2(0x1ab)][_0x44bba2(0x234)](MCP_API_KEY_STORAGE_KEY);this[_0x44bba2(0x17c)]['next'](((_0x5f144e=_0x51064[_0x44bba2(0x170)])===null||_0x5f144e===void 0x0?void 0x0:_0x5f144e[_0x44bba2(0x18f)]())||''),this[_0x44bba2(0x158)][_0x44bba2(0x14a)]({'Authorization':_0x44bba2(0x1ce)+((_0x5eb4cb=_0x51064[_0x44bba2(0x170)])===null||_0x5eb4cb===void 0x0?void 0x0:_0x5eb4cb['trim']())}),this[_0x44bba2(0x195)][_0x44bba2(0x221)]({'type':_univerjs_design['MessageType'][_0x44bba2(0x188)],'content':this[_0x44bba2(0x22c)]['t'](_0x44bba2(0x142))}),setTimeout(()=>{const _0x1bdd93=_0x44bba2;this[_0x1bdd93(0x105)][_0x1bdd93(0x15d)](MCP_CONFIG_DIALOG_ID);},0x320);}catch(_0x4249c4){this[_0x44bba2(0x202)][_0x44bba2(0x228)](_0x44bba2(0x246),_0x4249c4),this['_messageService'][_0x44bba2(0x221)]({'type':_univerjs_design[_0x44bba2(0x103)][_0x44bba2(0x129)],'content':this[_0x44bba2(0x22c)]['t'](_0x44bba2(0x138))});}finally{this[_0x44bba2(0x1ca)]['next'](![]);}}),this['_initConfigSync'](),this[_0x939fe8(0x1a6)](),this[_0x939fe8(0x184)]();}[_0xa52f92(0x16e)](){const _0x29be11=_0xa52f92,_0x5373e7=this[_0x29be11(0x10e)][_0x29be11(0x229)](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x5373e7===null||_0x5373e7===void 0x0?void 0x0:_0x5373e7[_0x29be11(0x1eb)])this[_0x29be11(0x105)][_0x29be11(0x220)]({'id':MCP_CONFIG_DIALOG_ID,'title':{'title':this[_0x29be11(0x22c)]['t'](_0x29be11(0x222))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!![],'destroyOnClose':!![],'onClose':()=>{const _0x396702=_0x29be11;this[_0x396702(0x105)]['close'](MCP_CONFIG_DIALOG_ID);}});}[_0xa52f92(0x22e)](){const _0x3a7bad=_0xa52f92;return this[_0x3a7bad(0x1d1)][_0x3a7bad(0x11f)];}[_0xa52f92(0x184)](){const _0x303a16=_0xa52f92;this[_0x303a16(0x190)](this[_0x303a16(0x113)][_0x303a16(0x126)](_0x303a16(0x194),this[_0x303a16(0x212)]()));}[_0xa52f92(0x212)](){return(0x0,_univerjs_ui['connectInjector'])(()=>{const _0x5d134d=_0x20c4;var _0x5b97cd,_0x26ce39,_0x125a78;return(0x0,react_jsx_runtime['jsx'])(MCPConfigPanel,{'config':this['_config$'][_0x5d134d(0x11f)],'mcpCoreConfig':this[_0x5d134d(0x1d1)]['value'],'currentApiKey$':this[_0x5d134d(0x17c)],'onSave':this[_0x5d134d(0x106)],'loading':this['_loading$'][_0x5d134d(0x11f)],'connectionStatus$':(_0x5b97cd=this[_0x5d134d(0x158)])===null||_0x5b97cd===void 0x0?void 0x0:_0x5b97cd['connectionStatus$'],'connectionError$':(_0x26ce39=this[_0x5d134d(0x158)])===null||_0x26ce39===void 0x0?void 0x0:_0x26ce39[_0x5d134d(0x12c)],'currentSessionId$':(_0x125a78=this[_0x5d134d(0x158)])===null||_0x125a78===void 0x0?void 0x0:_0x125a78[_0x5d134d(0x1bc)]});},this['_injector']);}[_0xa52f92(0xfb)](){const _0x15e829=_0xa52f92;this[_0x15e829(0x190)](this[_0x15e829(0x10e)][_0x15e829(0x147)](_univerjs_pro_mcp[_0x15e829(0x146)])['subscribe'](_0x1af17b=>{this['_mcpCoreConfig$']['next'](_0x1af17b||{});}));const _0x2d5dc8=this[_0x15e829(0x10e)][_0x15e829(0x229)](_univerjs_pro_mcp[_0x15e829(0x146)]);this['_mcpCoreConfig$']['next'](_0x2d5dc8||{}),this[_0x15e829(0x190)](this[_0x15e829(0x10e)][_0x15e829(0x147)](MCP_UI_PLUGIN_CONFIG_KEY)[_0x15e829(0x150)](_0x3bda78=>{const _0xecb17f=_0x15e829;this[_0xecb17f(0x18c)][_0xecb17f(0x1dc)](_0x3bda78||{});}));const _0x352cc6=this[_0x15e829(0x10e)][_0x15e829(0x229)](MCP_UI_PLUGIN_CONFIG_KEY);this[_0x15e829(0x18c)][_0x15e829(0x1dc)](_0x352cc6||{});}async['_loadStoredApiKey'](){const _0xec0bdf=_0xa52f92,_0x49ad5c=this['_configService'][_0xec0bdf(0x229)](MCP_UI_PLUGIN_CONFIG_KEY);if(!(_0x49ad5c===null||_0x49ad5c===void 0x0?void 0x0:_0x49ad5c[_0xec0bdf(0x1eb)]))return;const _0x264aee=await this['_localStorageService']['getItem'](MCP_API_KEY_STORAGE_KEY);_0x264aee&&(this[_0xec0bdf(0x158)][_0xec0bdf(0x14a)]({'Authorization':_0xec0bdf(0x1ce)+_0x264aee}),this['_apiKey$'][_0xec0bdf(0x1dc)](_0x264aee));}async[_0xa52f92(0x1e9)](_0x2be4bf){const _0x5979d0=_0xa52f92;if(!_0x2be4bf[_0x5979d0(0x170)]||_0x2be4bf['apiKey']['trim']()[_0x5979d0(0x1d3)]===0x0)return{'isValid':![],'errorMessage':this[_0x5979d0(0x22c)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x2be4bf[_0x5979d0(0x170)][_0x5979d0(0x18f)]()[_0x5979d0(0x1d3)]<0xa)return{'isValid':![],'errorMessage':this[_0x5979d0(0x22c)]['t'](_0x5979d0(0x110))};try{const _0x3a21b7=await this[_0x5979d0(0x111)][_0x5979d0(0x1ff)](_univerjs_pro_mcp[_0x5979d0(0x134)])['validateApiKey'](_0x2be4bf['apiKey'][_0x5979d0(0x18f)]());if(!_0x3a21b7[_0x5979d0(0x230)])return{'isValid':![],'errorMessage':_0x3a21b7[_0x5979d0(0x228)]||this[_0x5979d0(0x22c)]['t'](_0x5979d0(0x165))};return{'isValid':!![]};}catch(_0x168402){return console[_0x5979d0(0x18b)](_0x5979d0(0x196),_0x168402),{'isValid':!![]};}}};MCPConfigUIController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0xa52f92(0x1c6)])),__decorateParam(0x1,_univerjs_ui['IUIPartsService']),__decorateParam(0x2,_univerjs_core[_0xa52f92(0x124)]),__decorateParam(0x3,_univerjs_core['ILocalStorageService']),__decorateParam(0x4,_univerjs_ui['IDialogService']),__decorateParam(0x5,_univerjs_ui[_0xa52f92(0x1ad)]),__decorateParam(0x6,(0x0,_univerjs_core[_0xa52f92(0x19b)])(_univerjs_ui[_0xa52f92(0x1d4)])),__decorateParam(0x7,(0x0,_univerjs_core[_0xa52f92(0x19b)])(_univerjs_core[_0xa52f92(0x189)])),__decorateParam(0x8,_univerjs_core[_0xa52f92(0x143)]),__decorateParam(0x9,(0x0,_univerjs_core[_0xa52f92(0x19b)])(_univerjs_pro_mcp[_0xa52f92(0x134)]))],MCPConfigUIController);const OpenMCPConfigPanelCommand={'id':_0xa52f92(0x1db),'type':_univerjs_core[_0xa52f92(0x115)][_0xa52f92(0x10a)],'handler':async(_0x3b23ab,_0x4eea57)=>{const _0x2ba677=_0xa52f92;return _0x3b23ab[_0x2ba677(0x1ff)](MCPConfigUIController)[_0x2ba677(0x16e)](),!![];}};function mapStatusToI18NKey(_0x2bbad5,_0x343457){const _0x229db4=_0xa52f92;switch(_0x2bbad5){case _univerjs_pro_mcp[_0x229db4(0x180)][_0x229db4(0x235)]:return _0x229db4(0x14d);case _univerjs_pro_mcp['MCPConnectionStatus'][_0x229db4(0xf2)]:return _0x229db4(0x177);case _univerjs_pro_mcp['MCPConnectionStatus'][_0x229db4(0x156)]:return _0x229db4(0x191);case _univerjs_pro_mcp[_0x229db4(0x180)]['FAILED']:switch(_0x343457){case _univerjs_pro_mcp['MCPConnectionError'][_0x229db4(0x1f2)]:return _0x229db4(0x1ef);case _univerjs_pro_mcp[_0x229db4(0x139)][_0x229db4(0x121)]:return _0x229db4(0x148);case _univerjs_pro_mcp[_0x229db4(0x139)]['NETWORK_ERROR']:return _0x229db4(0x155);case _univerjs_pro_mcp[_0x229db4(0x139)][_0x229db4(0xfe)]:return _0x229db4(0x102);default:return'mcpStatus.failed';}case _univerjs_pro_mcp[_0x229db4(0x180)][_0x229db4(0x10b)]:return _0x229db4(0x1b8);default:return'mcpStatus.unknown';}}function getTooltipText(_0x1aca41,_0x52698a,_0x4b02d8,_0x3469a9=!![]){const _0x2b486d=_0xa52f92,_0x45e4d0=mapStatusToI18NKey(_0x1aca41,_0x52698a),_0xc94abc=_0x4b02d8['t'](_0x45e4d0);if(!_0x3469a9)return _0xc94abc;if(_0x1aca41===_univerjs_pro_mcp['MCPConnectionStatus']['DISCONNECTED']&&_0x52698a===_univerjs_pro_mcp['MCPConnectionError'][_0x2b486d(0x1f2)])return _0xc94abc+_0x2b486d(0x107)+_0x4b02d8['t'](_0x2b486d(0x153));else{if(_0x1aca41===_univerjs_pro_mcp[_0x2b486d(0x180)][_0x2b486d(0x156)])return''+_0xc94abc;else{if(_0x1aca41===_univerjs_pro_mcp[_0x2b486d(0x180)][_0x2b486d(0x235)]||_0x1aca41===_univerjs_pro_mcp[_0x2b486d(0x180)][_0x2b486d(0x20d)])return _0xc94abc+_0x2b486d(0x107)+_0x4b02d8['t'](_0x2b486d(0x1b7));}}return _0xc94abc;}function getStatusColor(_0x27a292){const _0x454d7f=_0xa52f92;switch(_0x27a292){case _univerjs_pro_mcp[_0x454d7f(0x180)]['CONNECTED']:return _0x454d7f(0x1da);case _univerjs_pro_mcp['MCPConnectionStatus'][_0x454d7f(0xf2)]:case _univerjs_pro_mcp[_0x454d7f(0x180)][_0x454d7f(0x10b)]:return'univer-text-yellow-500';case _univerjs_pro_mcp['MCPConnectionStatus'][_0x454d7f(0x20d)]:case _univerjs_pro_mcp[_0x454d7f(0x180)]['DISCONNECTED']:return _0x454d7f(0x14c);default:return _0x454d7f(0x114);}}function MCPStatusDisplay(_0x1e6e2b){const _0x4b8118=_0xa52f92,{status$:_0x2275d0,error$:_0x23b66,onConfigure:_0x3832ce,showClickable:showClickable=!![]}=_0x1e6e2b,_0x29b9e2=(0x0,_univerjs_ui['useObservable'])(_0x2275d0,_univerjs_pro_mcp[_0x4b8118(0x180)][_0x4b8118(0x235)]),_0x35c6aa=(0x0,_univerjs_ui[_0x4b8118(0x17f)])(_0x23b66,_univerjs_pro_mcp[_0x4b8118(0x139)][_0x4b8118(0x1dd)]),_0xa2912c=(0x0,_univerjs_ui[_0x4b8118(0x21a)])(_univerjs_core[_0x4b8118(0x189)]),_0x4bc5d2=_0x29b9e2===_univerjs_pro_mcp[_0x4b8118(0x180)]['CONNECTED'];_0x29b9e2===_univerjs_pro_mcp[_0x4b8118(0x180)][_0x4b8118(0xf2)]||_univerjs_pro_mcp['MCPConnectionStatus'][_0x4b8118(0x10b)];const _0x338423=_0xa2912c['t'](mapStatusToI18NKey(_0x29b9e2,_0x35c6aa)),_0x4b4723=getTooltipText(_0x29b9e2,_0x35c6aa,_0xa2912c,showClickable),_0xe176a9=getStatusColor(_0x29b9e2),_0x1dbcaa=_0x4bc5d2?(0x0,react_jsx_runtime['jsx'])(_univerjs_icons[_0x4b8118(0x1e0)],{}):(0x0,react_jsx_runtime[_0x4b8118(0x100)])(_univerjs_icons[_0x4b8118(0x187)],{}),_0x3a6cdf=(0x0,react[_0x4b8118(0x193)])(()=>{if(showClickable&&_0x3832ce)_0x3832ce();},[showClickable,_0x3832ce]);function _0x2ccc76(){const _0x3b7c68=_0x4b8118;return(0x0,react_jsx_runtime[_0x3b7c68(0x1cb)])(_0x3b7c68(0x233),{'className':(0x0,_univerjs_design[_0x3b7c68(0x1e3)])(_0x3b7c68(0x1b1),showClickable&&_0x3832ce&&_0x3b7c68(0x1e2)),'role':_0x3b7c68(0x1a1),'onClick':showClickable&&_0x3832ce?_0x3a6cdf:void 0x0,'children':[(0x0,react_jsx_runtime[_0x3b7c68(0x100)])(_0x3b7c68(0x233),{'className':(0x0,_univerjs_design[_0x3b7c68(0x1e3)])('univer-mr-2\x20univer-flex\x20univer-text-xl',_0xe176a9),'children':_0x1dbcaa}),(0x0,react_jsx_runtime[_0x3b7c68(0x100)])('div',{'className':_0x3b7c68(0x1e1),'children':_0x338423})]});}return(0x0,react_jsx_runtime[_0x4b8118(0x100)])(_univerjs_design[_0x4b8118(0x127)],{'title':_0x4b4723,'placement':_0x4b8118(0x21c),'children':_0x2ccc76()});}function _0x2260(){const _0x660881=['mcpStatus.clickToConfigure','univer-size-4','mcpStatus.networkError','CONNECTED','symbol','_mcpConnectionController','Disconnected','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','MCP:\x20Max\x20Retries\x20Exceeded','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','close','Click\x20to\x20configure\x20MCP','univer-space-y-3','mcpConfig.apiApplyInfo.univerAiLabel','iterator','includes','setItem','mcpConfig.configStep3','mcpConfig.validation.invalidApiKey','enableAutoConnect','DependentOn','univer-font-medium','Plugin','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','权限验证失败,请检查您的\x20API\x20密钥','Configuration\x20Notes:','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','showConfigPanel','mcpConfig.configInstructions','apiKey','univer-size-2\x20univer-rounded-full','enUS','mcpConfig.apiKey','constructor','配置步骤:','span','mcpStatus.connecting','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','MCP\x20已断开','setConfig','将以下配置添加到您的\x20MCP\x20客户端设置中:','_apiKey$','univer-text-sm\x20univer-font-medium','MCP\x20Unknown\x20Status','useObservable','MCPConnectionStatus','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','packageName','MCP\x20Client\x20Configuration','_registerComponent','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','What\x20is\x20API\x20Key?','OffLineIcon','Success','LocaleService','univer.plus','warn','_config$','CheckMarkIcon','MCP\x20配置','trim','disposeWithMe','mcpStatus.connected','MCP\x20客户端配置','useCallback','MCPConfigPanel','_messageService','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','_config','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-bg-red-500','mcpConfig.connectionError.sessionOccupied','Inject','2mTPKEk','Max\x20Retries','Get\x20your\x20API\x20key\x20in\x20seconds','_menuManagerService','MCP:\x20超出最大重试次数','button','univer-shrink-0\x20univer-text-red-500','什么是\x20API\x20密钥?','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','pluginName','_loadStoredApiKey','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','mcpConfig.description','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','_localStorageService','Saving...','IMessageService','mcp.apiKey','mcpConfig.apiKeyPlaceholder','https://mcp.univer.ai/mcp/?univer_session_id=','univer-flex\x20univer-items-center','univer-flex\x20univer-flex-wrap\x20univer-gap-2','5130YzqtCU','mcpServerUrl','0.22.0','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcpStatus.clickToConnect','mcpStatus.retrying','网络连接错误,请检查您的网络连接','API\x20Key','1539zQMKoK','sessionId$','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcpConfig.connectionError.unauthorized','mcpConfig.save','Invalid\x20configuration','univer-bg-green-500','MCPStatusDisplay','univer-text-white','MCP\x20Connected','配置保存失败','Injector','Enable\x20Authentication','MCP\x20连接中...','univer.ai','_loading$','jsxs','超出最大重试次数,请稍后再试','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','Bearer\x20','pre','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','_mcpCoreConfig$','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','length','ComponentManager','IUIPartsService','useState','defineProperty','Configuration\x20Parameters:','string','univer-text-green-500','mcp-ui.command.openConfigPanel','next','NONE','重启您的\x20MCP\x20客户端以使配置生效','带有\x20Bearer\x20前缀的\x20API\x20密钥。','OnLineIcon','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','\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','clsx','MCP:\x20Unauthorized','MCPConfigUIController','将配置添加到您的\x20MCP\x20客户端设置文件中','会话ID','Univer\x20AI\x20Console','_validateConfig','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','showDeveloperTools','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','130796epkBIm','_handleConfigure','mcpStatus.unauthorized','univer-shrink-0\x20univer-text-blue-500','mcpConfig.connectionInfo','UNAUTHORIZED','ICommandService','toStringTag','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-space-y-4','3805MzubWR','mcpConfig.configParameters','mcpConfig.apiApplyInfo.description','最大重试次数','mcpConfig.configStep2','MCP:\x20会话\x20ID\x20已被占用','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','8002310EcMMMH','get','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','19933680PbVVHH','_logService','Connected','mcpConfig.configStep1','mcpConfig.configStepTitle','univer-flex\x20univer-items-start\x20univer-gap-3','配置更改将立即生效','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20未授权','CloseIcon','MCP_UI_PLUGIN','mcpConfig.note1','FAILED','toPrimitive','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-text-xs\x20univer-text-gray-600','Copy\x20the\x20JSON\x20configuration\x20below','_createConfigPanelComponent','mcpConfig.authorizationDescription','Failed\x20to\x20save\x20configuration','417311KQwfUO','Save\x20Configuration','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','default','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','useDependency','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','bottom','mcpConfig.sessionIdDescription','点击配置\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','open','show','mcpConfig.title','57jgpLSM','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-text-xs\x20univer-text-gray-500','connectInjector','http','error','getConfig','_commandService','几秒钟内获取您的\x20API\x20密钥','_localeService','mcpConfig.apiKeyHint','getCurrentConfig','stringify','isValid','_initializeCommands','mergeMenu','div','removeItem','DISCONNECTED','univer-flex\x20univer-items-center\x20univer-gap-2','registerCommand','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','prototype','_connectionController','Enter\x20your\x20API\x20key','object','HEADER_MENU','univer-bg-gray-500','merge','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','重连中...','mcpConfig.connectionStatus.connected','mcpConfig.connectionStatus.failed','has','univer-space-y-2','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','_initializeMenus','ISocketService','CONNECTING','会话\x20ID\x20已被占用,请稍后再试','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','MCP\x20Retrying...','mcpConfig.apiApplyInfo.getStarted','connectionStatus$','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','RibbonStartGroup','MCP\x20连接失败','_initConfigSync','API\x20密钥','OpenMCPConfigPanelCommand','MAX_RETRIES_EXCEEDED','5622519DCBczR','jsx','MCP\x20已连接','mcpStatus.maxRetriesExceeded','MessageType','mcpConfig.note2','_dialogService','_handleConfigSave','\x20-\x20','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','<API_KEY>','COMMAND','RETRYING','API\x20key\x20with\x20Bearer\x20prefix.','_initAutoConnect','_configService','11oGYpJA','mcpConfig.validation.apiKeyTooShort','_injector','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','_componentManager','univer-text-gray-500','CommandType','请输入您的\x20API\x20密钥','MCP\x20Configuration','_blank','BehaviorSubject','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','add','未连接','function','连接中...','value','BUTTON','SESSION_ID_OCCUPIED','配置\x20MCP\x20使用\x20AI\x20操作电子表格','_uiPartsService','IConfigService','noopener\x20noreferrer','register','Tooltip','连接失败','Error','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-text-gray-400','connectionError$','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','API\x20密钥不能为空','<SESSION_ID>','API\x20密钥长度至少需要\x2010\x20位','off','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','复制以下\x20JSON\x20配置','MCPConnectionController','Click\x20to\x20connect\x20MCP','OTHERS','Connecting...','mcpConfig.configError','MCPConnectionError','mcpConfig.apiApplyInfo.title','启用身份验证以获得安全连接','MCP\x20Connection\x20Failed','univer_session_id:','decorate','WebSocketService','BuiltInUIPart','MCP:\x20网络错误','mcpConfig.configSaved','ILogService','2512tvCfWq','univer-space-y-5','MCP_PLUGIN_CONFIG_KEY','subscribeConfigValue$','mcpStatus.sessionOccupied','univer-flex\x20univer-items-start\x20univer-gap-2','__setCustomHeaders','getOwnPropertyDescriptor','univer-text-red-500','mcpStatus.disconnected','univer-text-sm\x20univer-text-gray-500','Authorization:','subscribe','label','registerComponent'];_0x2260=function(){return _0x660881;};return _0x2260();}let MCPConnectionUIController=class MCPConnectionUIController extends _univerjs_core['Disposable']{constructor(_0x270cc4,_0x2a943b,_0x15025f,_0x2b8474){const _0x1e8891=_0xa52f92;super(),this[_0x1e8891(0x111)]=_0x270cc4,this[_0x1e8891(0x23a)]=_0x2a943b,this[_0x1e8891(0x123)]=_0x15025f,this[_0x1e8891(0x10e)]=_0x2b8474,this[_0x1e8891(0x10d)](),this['_initStatusComponent']();}['_initAutoConnect'](){const _0x1b84c6=_0xa52f92,_0x5984f6=this[_0x1b84c6(0x10e)][_0x1b84c6(0x229)](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x5984f6===null||_0x5984f6===void 0x0?void 0x0:_0x5984f6[_0x1b84c6(0x1eb)])this['_connectionController'][_0x1b84c6(0x166)]=![];}['_initStatusComponent'](){const _0x48e830=_0xa52f92,_0x307760=this[_0x48e830(0x10e)][_0x48e830(0x229)](MCP_UI_PLUGIN_CONFIG_KEY);if((_0x307760===null||_0x307760===void 0x0?void 0x0:_0x307760['showStatus'])!==![])this[_0x48e830(0x190)](this['_uiPartsService'][_0x48e830(0x152)](_univerjs_ui[_0x48e830(0x140)][_0x48e830(0x23d)],()=>{const _0x168cdd=_0x48e830;var _0x5529b8;return(0x0,_univerjs_ui[_0x168cdd(0x226)])(passProps({'status$':this[_0x168cdd(0x23a)][_0x168cdd(0xf7)],'error$':this[_0x168cdd(0x23a)][_0x168cdd(0x12c)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x5529b8=_0x307760===null||_0x307760===void 0x0?void 0x0:_0x307760[_0x168cdd(0x1eb)])!==null&&_0x5529b8!==void 0x0?_0x5529b8:![]}),this['_injector']);}));}[_0xa52f92(0x1ee)](){const _0x3e1e42=_0xa52f92;this[_0x3e1e42(0x111)][_0x3e1e42(0x1ff)](MCPConfigUIController)[_0x3e1e42(0x16e)]();}};MCPConnectionUIController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0xa52f92(0x1c6)])),__decorateParam(0x1,(0x0,_univerjs_core[_0xa52f92(0x19b)])(_univerjs_pro_mcp['MCPConnectionController'])),__decorateParam(0x2,_univerjs_ui['IUIPartsService']),__decorateParam(0x3,_univerjs_core[_0xa52f92(0x124)])],MCPConnectionUIController);function passProps(_0x39e5ca){const {status$:_0x3f223f,error$:_0x1b747e,onConfigure:_0x59cb9c,showClickable:_0x295952}=_0x39e5ca;return function _0x506e22(){const _0x10a61c=_0x20c4;return(0x0,react_jsx_runtime[_0x10a61c(0x100)])(MCPStatusDisplay,{'status$':_0x3f223f,'error$':_0x1b747e,'onConfigure':_0x59cb9c,'showClickable':_0x295952});};}function MCPConfigMenuItemFactory(_0xbc56f){const _0x52f091=_0xa52f92;return{'id':OpenMCPConfigPanelCommand['id'],'type':_univerjs_ui['MenuItemType'][_0x52f091(0x120)],'icon':'MenuIcon','title':_0x52f091(0x222),'tooltip':_0x52f091(0x222)};}const menuSchema={[_univerjs_ui[_0xa52f92(0xf9)][_0xa52f92(0x136)]]:{[OpenMCPConfigPanelCommand['id']]:{'order':0xa,'menuItemFactory':MCPConfigMenuItemFactory}}};let MCPUIMenuController=class MCPUIMenuController extends _univerjs_core['Disposable']{constructor(_0x34f006,_0x1d56f1){const _0x474ac2=_0xa52f92;super(),this[_0x474ac2(0x22a)]=_0x34f006,this[_0x474ac2(0x19f)]=_0x1d56f1,this[_0x474ac2(0x231)](),this[_0x474ac2(0xf0)]();}['_initializeCommands'](){[OpenMCPConfigPanelCommand]['forEach'](_0x3290e5=>{const _0x52ddfd=_0x20c4;this[_0x52ddfd(0x190)](this[_0x52ddfd(0x22a)][_0x52ddfd(0x237)](_0x3290e5));});}[_0xa52f92(0xf0)](){const _0x5c2d94=_0xa52f92;this[_0x5c2d94(0x19f)][_0x5c2d94(0x232)](menuSchema);}};MCPUIMenuController=__decorate([__decorateParam(0x0,_univerjs_core[_0xa52f92(0x1f3)]),__decorateParam(0x1,_univerjs_ui['IMenuManagerService'])],MCPUIMenuController);const locale={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0xa52f92(0x1c4),'failed':_0xa52f92(0x13c),'retrying':_0xa52f92(0xf5),'unknown':_0xa52f92(0x17e),'unauthorized':_0xa52f92(0x1e4),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0xa52f92(0x15b),'clickToConnect':_0xa52f92(0x135),'clickToConfigure':_0xa52f92(0x15e)},'mcpConfig':{'title':_0xa52f92(0x117),'description':_0xa52f92(0x21f),'apiKey':_0xa52f92(0x1ba),'apiKeyPlaceholder':_0xa52f92(0x23b),'apiKeyHint':_0xa52f92(0x224),'enableAuth':_0xa52f92(0x1c7),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0xa52f92(0x183),'mcpClientConfig':_0xa52f92(0x183),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0xa52f92(0x211),'configStep2':_0xa52f92(0x11a),'configStep3':_0xa52f92(0x1fd),'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':_0xa52f92(0x10c),'configParameters':_0xa52f92(0x1d8),'maxRetries':_0xa52f92(0x19d),'save':_0xa52f92(0x216),'saving':_0xa52f92(0x1ac),'note1':_0xa52f92(0x247),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0xa52f92(0x214),'apiApplyInfo':{'title':_0xa52f92(0x186),'description':_0xa52f92(0x181),'univerAiLabel':_0xa52f92(0x1e8),'getStarted':_0xa52f92(0x19e)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0xa52f92(0x208),'invalidConfig':_0xa52f92(0x1c0),'invalidApiKey':_0xa52f92(0x1d0)},'connectionStatus':{'disconnected':_0xa52f92(0x159),'connecting':_0xa52f92(0x137),'connected':_0xa52f92(0x203),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0xa52f92(0x12a),'sessionOccupied':_0xa52f92(0x1b6),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0xa52f92(0x108)}}},locale$1={'mcpStatus':{'disconnected':_0xa52f92(0x179),'connecting':_0xa52f92(0x1c8),'connected':_0xa52f92(0x101),'failed':_0xa52f92(0xfa),'retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','unauthorized':_0xa52f92(0x209),'sessionOccupied':_0xa52f92(0x1fc),'networkError':_0xa52f92(0x141),'maxRetriesExceeded':_0xa52f92(0x1a0),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0xa52f92(0x21e)},'mcpConfig':{'title':_0xa52f92(0x18e),'description':_0xa52f92(0x122),'apiKey':_0xa52f92(0xfc),'apiKeyPlaceholder':_0xa52f92(0x116),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':'启用身份验证','enableAuthHint':_0xa52f92(0x13b),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0xa52f92(0x192),'configInstructions':_0xa52f92(0x17b),'configStepTitle':_0xa52f92(0x175),'configStep1':_0xa52f92(0x133),'configStep2':_0xa52f92(0x1e6),'configStep3':_0xa52f92(0x1de),'sessionId':_0xa52f92(0x1e7),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0xa52f92(0x1df),'configParameters':'配置参数:','maxRetries':_0xa52f92(0x1fa),'save':'保存配置','saving':'保存中...','note1':_0xa52f92(0x207),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':'配置保存成功','configError':_0xa52f92(0x1c5),'apiApplyInfo':{'title':_0xa52f92(0x1a3),'description':_0xa52f92(0x1bd),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0xa52f92(0x22b)},'validation':{'apiKeyRequired':_0xa52f92(0x12e),'apiKeyTooShort':_0xa52f92(0x130),'invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0xa52f92(0x11c),'connecting':_0xa52f92(0x11e),'connected':'已连接','failed':_0xa52f92(0x128),'retrying':_0xa52f92(0x241)},'connectionError':{'unauthorized':_0xa52f92(0x16b),'sessionOccupied':_0xa52f92(0xf3),'networkError':_0xa52f92(0x1b9),'maxRetriesExceeded':_0xa52f92(0x1cc)}}};function _0x20c4(_0x313461,_0x453c03){_0x313461=_0x313461-0xf0;const _0x226029=_0x2260();let _0x20c449=_0x226029[_0x313461];return _0x20c449;}var name='@univerjs-pro/mcp-ui',version=_0xa52f92(0x1b5);let UniverMCPUIPlugin=class UniverMCPUIPlugin extends _univerjs_core[_0xa52f92(0x169)]{constructor(_0x59fa88=defaultPluginConfig,_0x6daa76,_0x5359ff,_0x482003,_0x4863f6,_0x419aac){const _0x30c121=_0xa52f92;super(),this['_config']=_0x59fa88,this['_injector']=_0x6daa76,this[_0x30c121(0x10e)]=_0x5359ff,this['_uiPartsService']=_0x482003,this[_0x30c121(0x1ab)]=_0x4863f6,this['_localeService']=_0x419aac;const {..._0x5b5dc1}=(0x0,_univerjs_core[_0x30c121(0x23f)])({},defaultPluginConfig,this[_0x30c121(0x197)]);this[_0x30c121(0x10e)][_0x30c121(0x17a)](MCP_UI_PLUGIN_CONFIG_KEY,_0x5b5dc1);}async['onStarting'](){const _0x3222ee=_0xa52f92,_0x4a995b=[[MCPConnectionUIController],[MCPConfigUIController],[MCPUIMenuController]];if(!this['_injector'][_0x3222ee(0x244)](_univerjs_network[_0x3222ee(0xf1)]))_0x4a995b['push']([_univerjs_network[_0x3222ee(0xf1)],{'useClass':_univerjs_network[_0x3222ee(0x13f)]}]);_0x4a995b['forEach'](_0x2a6210=>this[_0x3222ee(0x111)][_0x3222ee(0x11b)](_0x2a6210)),this['_injector'][_0x3222ee(0x1ff)](MCPConnectionUIController),this[_0x3222ee(0x111)][_0x3222ee(0x1ff)](MCPConfigUIController),this[_0x3222ee(0x111)]['get'](MCPUIMenuController);}};_defineProperty(UniverMCPUIPlugin,_0xa52f92(0x1a5),_0xa52f92(0x20b)),_defineProperty(UniverMCPUIPlugin,_0xa52f92(0x182),name),_defineProperty(UniverMCPUIPlugin,'version',version),UniverMCPUIPlugin=__decorate([(0x0,_univerjs_core[_0xa52f92(0x167)])(_univerjs_pro_mcp['UniverMCPPlugin']),__decorateParam(0x1,(0x0,_univerjs_core[_0xa52f92(0x19b)])(_univerjs_core[_0xa52f92(0x1c6)])),__decorateParam(0x2,_univerjs_core['IConfigService']),__decorateParam(0x3,_univerjs_ui[_0xa52f92(0x1d5)]),__decorateParam(0x4,_univerjs_core['ILocalStorageService']),__decorateParam(0x5,(0x0,_univerjs_core[_0xa52f92(0x19b)])(_univerjs_core[_0xa52f92(0x189)]))],UniverMCPUIPlugin),exports['MCPConfigPanel']=MCPConfigPanel,Object[_0xa52f92(0x1d7)](exports,_0xa52f92(0x1e5),{'enumerable':!![],'get':function(){return MCPConfigUIController;}}),Object[_0xa52f92(0x1d7)](exports,'MCPConnectionUIController',{'enumerable':!![],'get':function(){return MCPConnectionUIController;}}),exports[_0xa52f92(0x1c2)]=MCPStatusDisplay,Object['defineProperty'](exports,'MCPUIMenuController',{'enumerable':!![],'get':function(){return MCPUIMenuController;}}),exports[_0xa52f92(0xfd)]=OpenMCPConfigPanelCommand,Object['defineProperty'](exports,'UniverMCPUIPlugin',{'enumerable':!![],'get':function(){return UniverMCPUIPlugin;}}),exports[_0xa52f92(0x172)]=locale,exports['zhCN']=locale$1;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0xd9bbb=_0x5a2b;(function(_0x2e5de5,_0x5c5580){const _0x2a1d4f=_0x5a2b,_0x1a5bbe=_0x2e5de5();while(!![]){try{const _0x9abfb3=parseInt(_0x2a1d4f(0x151))/0x1*(-parseInt(_0x2a1d4f(0x138))/0x2)+-parseInt(_0x2a1d4f(0x12b))/0x3+-parseInt(_0x2a1d4f(0x149))/0x4*(parseInt(_0x2a1d4f(0x13b))/0x5)+parseInt(_0x2a1d4f(0x14a))/0x6*(-parseInt(_0x2a1d4f(0x133))/0x7)+parseInt(_0x2a1d4f(0x13c))/0x8*(-parseInt(_0x2a1d4f(0x146))/0x9)+-parseInt(_0x2a1d4f(0x14c))/0xa+parseInt(_0x2a1d4f(0x156))/0xb;if(_0x9abfb3===_0x5c5580)break;else _0x1a5bbe['push'](_0x1a5bbe['shift']());}catch(_0x45024f){_0x1a5bbe['push'](_0x1a5bbe['shift']());}}}(_0x112e,0x6acaa));const locale$1={'mcpStatus':{'disconnected':_0xd9bbb(0x152),'connecting':_0xd9bbb(0x136),'connected':'MCP\x20Connected','failed':_0xd9bbb(0x12c),'retrying':_0xd9bbb(0x157),'unknown':_0xd9bbb(0x158),'unauthorized':_0xd9bbb(0x13a),'sessionOccupied':_0xd9bbb(0x13d),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0xd9bbb(0x12f),'clickToConnect':_0xd9bbb(0x143),'clickToConfigure':_0xd9bbb(0x12e)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0xd9bbb(0x131),'apiKey':'API\x20Key','apiKeyPlaceholder':_0xd9bbb(0x14b),'apiKeyHint':_0xd9bbb(0x132),'enableAuth':_0xd9bbb(0x140),'enableAuthHint':_0xd9bbb(0x14f),'connectionInfo':_0xd9bbb(0x12d),'mcpClientConfig':_0xd9bbb(0x12d),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0xd9bbb(0x155),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0xd9bbb(0x135),'authorizationDescription':_0xd9bbb(0x150),'configParameters':_0xd9bbb(0x130),'maxRetries':_0xd9bbb(0x154),'save':_0xd9bbb(0x134),'saving':'Saving...','note1':_0xd9bbb(0x13f),'note2':_0xd9bbb(0x145),'configSaved':'Configuration\x20saved\x20successfully','configError':_0xd9bbb(0x141),'apiApplyInfo':{'title':_0xd9bbb(0x14e),'description':_0xd9bbb(0x153),'univerAiLabel':_0xd9bbb(0x137),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0xd9bbb(0x14d),'invalidConfig':_0xd9bbb(0x148),'invalidApiKey':_0xd9bbb(0x139)},'connectionStatus':{'disconnected':_0xd9bbb(0x142),'connecting':'Connecting...','connected':_0xd9bbb(0x144),'failed':'Connection\x20Failed','retrying':_0xd9bbb(0x12a)},'connectionError':{'unauthorized':_0xd9bbb(0x13e),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0xd9bbb(0x129),'maxRetriesExceeded':_0xd9bbb(0x147)}}},locale=locale$1;function _0x112e(){const _0x3a439c=['Configuration\x20Parameters:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','39669TYcBkD','Save\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Connecting...','Univer\x20AI\x20Console','2oJjkJI','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Unauthorized','293050wSnRWR','8RuvyGw','MCP:\x20Session\x20ID\x20Occupied','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enable\x20Authentication','Failed\x20to\x20save\x20configuration','Disconnected','Click\x20to\x20connect\x20MCP','Connected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','7753959uBBngH','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Invalid\x20configuration','28kelTJk','582QiYwEn','Enter\x20your\x20API\x20key','100830gxJHuJ','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','What\x20is\x20API\x20Key?','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20with\x20Bearer\x20prefix.','678367TQpGyS','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.','Max\x20Retries','Configuration\x20Steps:','38042246EKJLiE','MCP\x20Retrying...','MCP\x20Unknown\x20Status','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Retrying...','1532994oFIxSl','MCP\x20Connection\x20Failed','MCP\x20Client\x20Configuration','Click\x20to\x20configure\x20MCP','MCP:\x20Max\x20Retries\x20Exceeded'];_0x112e=function(){return _0x3a439c;};return _0x112e();}function _0x5a2b(_0x3b1193,_0xc708c5){_0x3b1193=_0x3b1193-0x129;const _0x112e30=_0x112e();let _0x5a2b91=_0x112e30[_0x3b1193];return _0x5a2b91;}module['exports']=locale;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x232450=_0x5af7;(function(_0x3d2429,_0x453373){const _0xd30941=_0x5af7,_0x43d7bc=_0x3d2429();while(!![]){try{const _0x548718=parseInt(_0xd30941(0x11b))/0x1+parseInt(_0xd30941(0x137))/0x2+parseInt(_0xd30941(0x11c))/0x3*(-parseInt(_0xd30941(0x123))/0x4)+parseInt(_0xd30941(0x130))/0x5+parseInt(_0xd30941(0x148))/0x6*(parseInt(_0xd30941(0x126))/0x7)+-parseInt(_0xd30941(0x144))/0x8+-parseInt(_0xd30941(0x13f))/0x9*(-parseInt(_0xd30941(0x138))/0xa);if(_0x548718===_0x453373)break;else _0x43d7bc['push'](_0x43d7bc['shift']());}catch(_0x2167af){_0x43d7bc['push'](_0x43d7bc['shift']());}}}(_0x19cf,0x6eff5));function _0x19cf(){const _0x3d4348=['4379215qVhCUS','Copy\x20the\x20JSON\x20configuration\x20below','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Network\x20Error','What\x20is\x20API\x20Key?','Enable\x20Authentication','621136lexavj','3816350ETURct','API\x20key\x20with\x20Bearer\x20prefix.','API\x20Key','Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Click\x20to\x20connect\x20MCP','MCP\x20Configuration','9sBxMzE','MCP\x20Client\x20Configuration','Configuration\x20Steps:','Session\x20ID','Configuration\x20saved\x20successfully','6978216HpyJuV','MCP\x20Unknown\x20Status','Get\x20your\x20API\x20key\x20in\x20seconds','Enter\x20your\x20API\x20key','240qULKfi','API\x20key\x20is\x20required','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enable\x20authentication\x20for\x20secure\x20connections','Connected','85670lWoaoP','1632822JxllLi','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Saving...','Save\x20Configuration','Univer\x20AI\x20Console','MCP\x20Connected','Max\x20Retries','4qgEEmP','MCP\x20Retrying...','Invalid\x20configuration','38059evIrwQ','MCP:\x20Unauthorized','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Retrying...','MCP\x20Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connection\x20Failed','Connecting...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage'];_0x19cf=function(){return _0x3d4348;};return _0x19cf();}function _0x5af7(_0x16ddd9,_0x19bb41){_0x16ddd9=_0x16ddd9-0x11a;const _0x19cf6e=_0x19cf();let _0x5af747=_0x19cf6e[_0x16ddd9];return _0x5af747;}const locale={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x232450(0x12b),'connected':_0x232450(0x121),'failed':_0x232450(0x12d),'retrying':_0x232450(0x124),'unknown':_0x232450(0x145),'unauthorized':_0x232450(0x127),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x232450(0x134),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x232450(0x13d),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x232450(0x13e),'description':_0x232450(0x12c),'apiKey':_0x232450(0x13a),'apiKeyPlaceholder':_0x232450(0x147),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x232450(0x136),'enableAuthHint':_0x232450(0x14b),'connectionInfo':_0x232450(0x140),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x232450(0x14a),'configStepTitle':_0x232450(0x141),'configStep1':_0x232450(0x131),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x232450(0x11d),'sessionId':_0x232450(0x142),'sessionIdDescription':_0x232450(0x132),'authorizationDescription':_0x232450(0x139),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x232450(0x122),'save':_0x232450(0x11f),'saving':_0x232450(0x11e),'note1':_0x232450(0x133),'note2':_0x232450(0x12f),'configSaved':_0x232450(0x143),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x232450(0x135),'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':_0x232450(0x120),'getStarted':_0x232450(0x146)},'validation':{'apiKeyRequired':_0x232450(0x149),'apiKeyTooShort':_0x232450(0x13c),'invalidConfig':_0x232450(0x125),'invalidApiKey':_0x232450(0x129)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x232450(0x12e),'connected':_0x232450(0x11a),'failed':_0x232450(0x13b),'retrying':_0x232450(0x12a)},'connectionError':{'unauthorized':_0x232450(0x128),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};module['exports']=locale;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x2c4af0=_0x20c4;(function(_0x43efbb,_0x248723){const _0x3629da=_0x20c4,_0x4d54d8=_0x43efbb();while(!![]){try{const _0x15448a=-parseInt(_0x3629da(0x108))/0x1+parseInt(_0x3629da(0x109))/0x2+-parseInt(_0x3629da(0xe5))/0x3*(-parseInt(_0x3629da(0xf6))/0x4)+-parseInt(_0x3629da(0xd8))/0x5*(parseInt(_0x3629da(0xe1))/0x6)+-parseInt(_0x3629da(0xdd))/0x7+-parseInt(_0x3629da(0xef))/0x8+-parseInt(_0x3629da(0xf3))/0x9*(-parseInt(_0x3629da(0xd9))/0xa);if(_0x15448a===_0x248723)break;else _0x4d54d8['push'](_0x4d54d8['shift']());}catch(_0x24b12f){_0x4d54d8['push'](_0x4d54d8['shift']());}}}(_0x3822,0xa5195));const locale$1={'mcpStatus':{'disconnected':_0x2c4af0(0xfa),'connecting':_0x2c4af0(0xec),'connected':_0x2c4af0(0xfe),'failed':_0x2c4af0(0x10a),'retrying':_0x2c4af0(0xe3),'unknown':_0x2c4af0(0xeb),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x2c4af0(0x101),'networkError':_0x2c4af0(0xe6),'maxRetriesExceeded':_0x2c4af0(0xdc),'clickToConnect':_0x2c4af0(0xfb),'clickToConfigure':_0x2c4af0(0xdf)},'mcpConfig':{'title':_0x2c4af0(0xf7),'description':_0x2c4af0(0x10e),'apiKey':_0x2c4af0(0x104),'apiKeyPlaceholder':_0x2c4af0(0x102),'apiKeyHint':_0x2c4af0(0xde),'enableAuth':_0x2c4af0(0xf9),'enableAuthHint':_0x2c4af0(0xdb),'connectionInfo':_0x2c4af0(0xe4),'mcpClientConfig':_0x2c4af0(0xe4),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x2c4af0(0x10b),'sessionId':_0x2c4af0(0xea),'sessionIdDescription':_0x2c4af0(0xf8),'authorizationDescription':_0x2c4af0(0xff),'configParameters':_0x2c4af0(0xf1),'maxRetries':_0x2c4af0(0x105),'save':_0x2c4af0(0x106),'saving':_0x2c4af0(0xee),'note1':_0x2c4af0(0xe8),'note2':_0x2c4af0(0x107),'configSaved':_0x2c4af0(0xf2),'configError':_0x2c4af0(0x10c),'apiApplyInfo':{'title':_0x2c4af0(0x103),'description':_0x2c4af0(0xe9),'univerAiLabel':_0x2c4af0(0xd7),'getStarted':_0x2c4af0(0xfc)},'validation':{'apiKeyRequired':_0x2c4af0(0xda),'apiKeyTooShort':_0x2c4af0(0x100),'invalidConfig':_0x2c4af0(0xf4),'invalidApiKey':_0x2c4af0(0xed)},'connectionStatus':{'disconnected':_0x2c4af0(0xf5),'connecting':_0x2c4af0(0xfd),'connected':_0x2c4af0(0x10d),'failed':'Connection\x20Failed','retrying':_0x2c4af0(0xf0)},'connectionError':{'unauthorized':_0x2c4af0(0xe7),'sessionOccupied':_0x2c4af0(0xe2),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},locale=locale$1;function _0x3822(){const _0x20a9c7=['Retrying...','Configuration\x20Parameters:','Configuration\x20saved\x20successfully','877356lyCUeN','Invalid\x20configuration','Disconnected','4cGfKTI','MCP\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enable\x20Authentication','MCP\x20Disconnected','Click\x20to\x20connect\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds','Connecting...','MCP\x20Connected','API\x20key\x20with\x20Bearer\x20prefix.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Session\x20ID\x20Occupied','Enter\x20your\x20API\x20key','What\x20is\x20API\x20Key?','API\x20Key','Max\x20Retries','Save\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','630026jxLJwH','1100512BlLqhE','MCP\x20Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Failed\x20to\x20save\x20configuration','Connected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Univer\x20AI\x20Console','5ybuQcE','20OxCkWu','API\x20key\x20is\x20required','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Max\x20Retries\x20Exceeded','1807729GfLHxp','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20configure\x20MCP','exports','1066542CVGHHR','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Retrying...','MCP\x20Client\x20Configuration','3497421vjtIKl','MCP:\x20Network\x20Error','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','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','MCP\x20Unknown\x20Status','MCP\x20Connecting...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Saving...','1350048zPWhon'];_0x3822=function(){return _0x20a9c7;};return _0x3822();}function _0x20c4(_0x17c3ff,_0x28ae6d){_0x17c3ff=_0x17c3ff-0xd7;const _0x38226b=_0x3822();let _0x20c4a1=_0x38226b[_0x17c3ff];return _0x20c4a1;}module[_0x2c4af0(0xe0)]=locale;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2afa(_0x2a6e3,_0x17e733){_0x2a6e3=_0x2a6e3-0x182;const _0x30bde1=_0x30bd();let _0x2afa88=_0x30bde1[_0x2a6e3];return _0x2afa88;}const _0x20d243=_0x2afa;(function(_0x591972,_0x496485){const _0x4c8a3e=_0x2afa,_0x27bc6d=_0x591972();while(!![]){try{const _0x351a6c=-parseInt(_0x4c8a3e(0x1a3))/0x1+-parseInt(_0x4c8a3e(0x19b))/0x2+-parseInt(_0x4c8a3e(0x1a8))/0x3+-parseInt(_0x4c8a3e(0x1ab))/0x4+parseInt(_0x4c8a3e(0x191))/0x5*(parseInt(_0x4c8a3e(0x1a0))/0x6)+parseInt(_0x4c8a3e(0x185))/0x7*(parseInt(_0x4c8a3e(0x188))/0x8)+parseInt(_0x4c8a3e(0x1ac))/0x9;if(_0x351a6c===_0x496485)break;else _0x27bc6d['push'](_0x27bc6d['shift']());}catch(_0xed5a2f){_0x27bc6d['push'](_0x27bc6d['shift']());}}}(_0x30bd,0x80ca6));const locale$1={'mcpStatus':{'disconnected':_0x20d243(0x197),'connecting':'MCP\x20Connecting...','connected':_0x20d243(0x1ae),'failed':'MCP\x20Connection\x20Failed','retrying':_0x20d243(0x1b3),'unknown':_0x20d243(0x1a4),'unauthorized':_0x20d243(0x192),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x20d243(0x182),'maxRetriesExceeded':_0x20d243(0x198),'clickToConnect':_0x20d243(0x1a9),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x20d243(0x196),'description':_0x20d243(0x1b1),'apiKey':_0x20d243(0x186),'apiKeyPlaceholder':_0x20d243(0x19e),'apiKeyHint':_0x20d243(0x194),'enableAuth':_0x20d243(0x18f),'enableAuthHint':_0x20d243(0x19a),'connectionInfo':_0x20d243(0x1b0),'mcpClientConfig':_0x20d243(0x1b0),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x20d243(0x1af),'configStep2':_0x20d243(0x1aa),'configStep3':_0x20d243(0x183),'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':_0x20d243(0x195),'configParameters':_0x20d243(0x18c),'maxRetries':_0x20d243(0x189),'save':_0x20d243(0x1a2),'saving':'Saving...','note1':_0x20d243(0x18b),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x20d243(0x184),'configError':_0x20d243(0x1a5),'apiApplyInfo':{'title':_0x20d243(0x18a),'description':_0x20d243(0x1b2),'univerAiLabel':_0x20d243(0x193),'getStarted':_0x20d243(0x1a7)},'validation':{'apiKeyRequired':_0x20d243(0x19d),'apiKeyTooShort':_0x20d243(0x1a1),'invalidConfig':_0x20d243(0x190),'invalidApiKey':_0x20d243(0x18d)},'connectionStatus':{'disconnected':_0x20d243(0x18e),'connecting':'Connecting...','connected':_0x20d243(0x199),'failed':_0x20d243(0x187),'retrying':_0x20d243(0x19c)},'connectionError':{'unauthorized':_0x20d243(0x1ad),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x20d243(0x19f),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},locale=locale$1;module[_0x20d243(0x1a6)]=locale;function _0x30bd(){const _0x1966c7=['API\x20Key','Connection\x20Failed','72SdZABy','Max\x20Retries','What\x20is\x20API\x20Key?','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20Parameters:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Disconnected','Enable\x20Authentication','Invalid\x20configuration','37945gFtYiZ','MCP:\x20Unauthorized','Univer\x20AI\x20Console','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Configuration','MCP\x20Disconnected','MCP:\x20Max\x20Retries\x20Exceeded','Connected','Enable\x20authentication\x20for\x20secure\x20connections','251172hKDzCR','Retrying...','API\x20key\x20is\x20required','Enter\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','804WrOZYB','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Save\x20Configuration','7387QgQUOX','MCP\x20Unknown\x20Status','Failed\x20to\x20save\x20configuration','exports','Get\x20your\x20API\x20key\x20in\x20seconds','2322096MGUzcU','Click\x20to\x20connect\x20MCP','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','576412jIXDlN','163458hSacms','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connected','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Client\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Retrying...','MCP:\x20Network\x20Error','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20saved\x20successfully','422758puKWHQ'];_0x30bd=function(){return _0x1966c7;};return _0x30bd();}
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1510(_0x2268ae,_0x5c3a0f){_0x2268ae=_0x2268ae-0xbf;const _0x10c97f=_0x10c9();let _0x15100f=_0x10c97f[_0x2268ae];return _0x15100f;}const _0x599fcb=_0x1510;(function(_0x215562,_0x445771){const _0x367eb2=_0x1510,_0xc5bbb9=_0x215562();while(!![]){try{const _0x12a6a9=parseInt(_0x367eb2(0xd4))/0x1*(-parseInt(_0x367eb2(0xe1))/0x2)+parseInt(_0x367eb2(0xda))/0x3+parseInt(_0x367eb2(0xd8))/0x4*(-parseInt(_0x367eb2(0xdf))/0x5)+-parseInt(_0x367eb2(0xd0))/0x6+parseInt(_0x367eb2(0xc8))/0x7+parseInt(_0x367eb2(0xdc))/0x8+-parseInt(_0x367eb2(0xd5))/0x9;if(_0x12a6a9===_0x445771)break;else _0xc5bbb9['push'](_0xc5bbb9['shift']());}catch(_0x1f1bb9){_0xc5bbb9['push'](_0xc5bbb9['shift']());}}}(_0x10c9,0x4df38));const locale$1={'mcpStatus':{'disconnected':_0x599fcb(0xcd),'connecting':_0x599fcb(0xe0),'connected':_0x599fcb(0xe2),'failed':'MCP\x20Connection\x20Failed','retrying':_0x599fcb(0xd7),'unknown':_0x599fcb(0xdb),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x599fcb(0xe3),'networkError':_0x599fcb(0xcb),'maxRetriesExceeded':_0x599fcb(0xdd),'clickToConnect':_0x599fcb(0xec),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x599fcb(0xc9),'apiKey':_0x599fcb(0xc7),'apiKeyPlaceholder':_0x599fcb(0xc4),'apiKeyHint':_0x599fcb(0xd3),'enableAuth':_0x599fcb(0xd1),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x599fcb(0xe5),'mcpClientConfig':_0x599fcb(0xe5),'configInstructions':_0x599fcb(0xcf),'configStepTitle':_0x599fcb(0xf3),'configStep1':_0x599fcb(0xeb),'configStep2':_0x599fcb(0xc3),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x599fcb(0xee),'authorizationDescription':_0x599fcb(0xf2),'configParameters':_0x599fcb(0xbf),'maxRetries':_0x599fcb(0xf4),'save':_0x599fcb(0xef),'saving':_0x599fcb(0xe4),'note1':_0x599fcb(0xd2),'note2':_0x599fcb(0xc0),'configSaved':_0x599fcb(0xd6),'configError':_0x599fcb(0xc6),'apiApplyInfo':{'title':_0x599fcb(0xca),'description':_0x599fcb(0xde),'univerAiLabel':_0x599fcb(0xe7),'getStarted':_0x599fcb(0xe8)},'validation':{'apiKeyRequired':_0x599fcb(0xd9),'apiKeyTooShort':_0x599fcb(0xe9),'invalidConfig':_0x599fcb(0xf0),'invalidApiKey':_0x599fcb(0xe6)},'connectionStatus':{'disconnected':_0x599fcb(0xc1),'connecting':'Connecting...','connected':_0x599fcb(0xc5),'failed':_0x599fcb(0xea),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x599fcb(0xcc),'sessionOccupied':_0x599fcb(0xed),'networkError':_0x599fcb(0xc2),'maxRetriesExceeded':_0x599fcb(0xf1)}}},locale=locale$1;module[_0x599fcb(0xce)]=locale;function _0x10c9(){const _0x1f38cb=['Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','What\x20is\x20API\x20Key?','MCP:\x20Network\x20Error','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Disconnected','exports','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','669054qIhiax','Enable\x20Authentication','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','14RwKjwd','3286359tWwsRh','Configuration\x20saved\x20successfully','MCP\x20Retrying...','2732gVyobb','API\x20key\x20is\x20required','1097787RmDBWe','MCP\x20Unknown\x20Status','4775240Fksbzm','MCP:\x20Max\x20Retries\x20Exceeded','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','3010aGlcLh','MCP\x20Connecting...','17878ROoUvi','MCP\x20Connected','MCP:\x20Session\x20ID\x20Occupied','Saving...','MCP\x20Client\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Univer\x20AI\x20Console','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','Click\x20to\x20connect\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Save\x20Configuration','Invalid\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20Steps:','Max\x20Retries','Configuration\x20Parameters:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Disconnected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enter\x20your\x20API\x20key','Connected','Failed\x20to\x20save\x20configuration','API\x20Key','2585982nJAZnA'];_0x10c9=function(){return _0x1f38cb;};return _0x10c9();}
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x29d839=_0xd16a;function _0xd16a(_0x393f7e,_0x46e07a){_0x393f7e=_0x393f7e-0x19a;const _0x51e8bd=_0x51e8();let _0xd16a9=_0x51e8bd[_0x393f7e];return _0xd16a9;}(function(_0x3a250f,_0x2a8a53){const _0x326868=_0xd16a,_0x1f14d3=_0x3a250f();while(!![]){try{const _0x44b9f3=-parseInt(_0x326868(0x1b4))/0x1+parseInt(_0x326868(0x1a1))/0x2*(-parseInt(_0x326868(0x1b7))/0x3)+parseInt(_0x326868(0x1c6))/0x4+-parseInt(_0x326868(0x1a4))/0x5+-parseInt(_0x326868(0x1c0))/0x6*(parseInt(_0x326868(0x1cd))/0x7)+-parseInt(_0x326868(0x1bb))/0x8*(-parseInt(_0x326868(0x19a))/0x9)+parseInt(_0x326868(0x1cc))/0xa;if(_0x44b9f3===_0x2a8a53)break;else _0x1f14d3['push'](_0x1f14d3['shift']());}catch(_0x3ae1f6){_0x1f14d3['push'](_0x1f14d3['shift']());}}}(_0x51e8,0x72488));function _0x51e8(){const _0x15fd04=['MCP:\x20最大再試行回数を超過','MCPクライアントの設定に次の設定を追加してください:','APIキーを入力してください','再試行中...','無効な設定','認証に失敗しました。APIキーを確認してください','設定パラメータ:','881743CPuCvm','設定の変更は直ちに有効になります','数秒でAPIキーを取得','3mmhkKc','セキュアな接続のために認証を有効にする','未接続','セッションID','488SwoAXC','MCPクライアント設定','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','APIキーとは?','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','1794720QLukft','設定手順:','接続失敗','接続中...','MCP\x20接続済み','APIキーはこのブラウザのローカルに保存されます','297984HqvBSW','設定を保存','MCP:\x20ネットワークエラー','MCPを設定してAIでスプレッドシートを操作','最大再試行回数','最大再試行回数を超過しました。後でもう一度お試しください','29599830dBANht','7SYBQwb','17379emNfqm','セッションIDが現在使用中です。後でもう一度お試しください','無効なAPIキーです。キーが正しいか確認してください','MCP\x20不明な状態','MCPクライアントの設定ファイルに設定を追加','接続済み','設定の保存に失敗しました','1459826ZhiFuV','保存中...','設定が正常に保存されました','3866950CWpRpV','MCP\x20再試行中...','MCP設定','MCP\x20接続失敗','MCPクライアントを再起動して設定を適用','APIキー','クリックしてMCPを設定','Univer\x20AIコンソール','認証を有効にする'];_0x51e8=function(){return _0x15fd04;};return _0x51e8();}const locale={'mcpStatus':{'disconnected':'MCP\x20未接続','connecting':'MCP\x20接続中...','connected':_0x29d839(0x1c4),'failed':_0x29d839(0x1a7),'retrying':_0x29d839(0x1a5),'unknown':_0x29d839(0x19d),'unauthorized':'MCP:\x20認証されていません','sessionOccupied':'MCP:\x20セッションIDが使用中','networkError':_0x29d839(0x1c8),'maxRetriesExceeded':_0x29d839(0x1ad),'clickToConnect':'クリックしてMCPに接続','clickToConfigure':_0x29d839(0x1aa)},'mcpConfig':{'title':_0x29d839(0x1a6),'description':_0x29d839(0x1c9),'apiKey':_0x29d839(0x1a9),'apiKeyPlaceholder':_0x29d839(0x1af),'apiKeyHint':_0x29d839(0x1c5),'enableAuth':_0x29d839(0x1ac),'enableAuthHint':_0x29d839(0x1b8),'connectionInfo':_0x29d839(0x1bc),'mcpClientConfig':_0x29d839(0x1bc),'configInstructions':_0x29d839(0x1ae),'configStepTitle':_0x29d839(0x1c1),'configStep1':'以下のJSON設定をコピー','configStep2':_0x29d839(0x19e),'configStep3':_0x29d839(0x1a8),'sessionId':_0x29d839(0x1ba),'sessionIdDescription':_0x29d839(0x1bf),'authorizationDescription':'Bearerプレフィックス付きのAPIキー。','configParameters':_0x29d839(0x1b3),'maxRetries':_0x29d839(0x1ca),'save':_0x29d839(0x1c7),'saving':_0x29d839(0x1a2),'note1':_0x29d839(0x1b5),'note2':'APIキーはローカルストレージに安全に保存されます','configSaved':_0x29d839(0x1a3),'configError':_0x29d839(0x1a0),'apiApplyInfo':{'title':_0x29d839(0x1be),'description':_0x29d839(0x1bd),'univerAiLabel':_0x29d839(0x1ab),'getStarted':_0x29d839(0x1b6)},'validation':{'apiKeyRequired':'APIキーは必須です','apiKeyTooShort':'APIキーは10文字以上である必要があります','invalidConfig':_0x29d839(0x1b1),'invalidApiKey':_0x29d839(0x19c)},'connectionStatus':{'disconnected':_0x29d839(0x1b9),'connecting':_0x29d839(0x1c3),'connected':_0x29d839(0x19f),'failed':_0x29d839(0x1c2),'retrying':_0x29d839(0x1b0)},'connectionError':{'unauthorized':_0x29d839(0x1b2),'sessionOccupied':_0x29d839(0x19b),'networkError':'ネットワーク接続エラー。インターネット接続を確認してください','maxRetriesExceeded':_0x29d839(0x1cb)}}};module['exports']=locale;
|
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x5c219b=_0x399d;(function(_0x4b0e42,_0x3813b7){const _0x29257f=_0x399d,_0x192b23=_0x4b0e42();while(!![]){try{const _0x55b394=parseInt(_0x29257f(0xd4))/0x1*(parseInt(_0x29257f(0xb7))/0x2)+-parseInt(_0x29257f(0xdc))/0x3*(-parseInt(_0x29257f(0xbe))/0x4)+-parseInt(_0x29257f(0xe8))/0x5*(-parseInt(_0x29257f(0xb5))/0x6)+parseInt(_0x29257f(0xe3))/0x7+parseInt(_0x29257f(0xe7))/0x8+parseInt(_0x29257f(0xce))/0x9*(-parseInt(_0x29257f(0xd9))/0xa)+-parseInt(_0x29257f(0xd2))/0xb;if(_0x55b394===_0x3813b7)break;else _0x192b23['push'](_0x192b23['shift']());}catch(_0x411de0){_0x192b23['push'](_0x192b23['shift']());}}}(_0x2141,0xd51ef));const locale={'mcpStatus':{'disconnected':_0x5c219b(0xd7),'connecting':_0x5c219b(0xc4),'connected':'MCP\x20연결됨','failed':_0x5c219b(0xd3),'retrying':_0x5c219b(0xd5),'unknown':'MCP\x20알\x20수\x20없는\x20상태','unauthorized':_0x5c219b(0xca),'sessionOccupied':'MCP:\x20세션\x20ID\x20사용\x20중','networkError':_0x5c219b(0xb8),'maxRetriesExceeded':_0x5c219b(0xd1),'clickToConnect':_0x5c219b(0xda),'clickToConfigure':_0x5c219b(0xcc)},'mcpConfig':{'title':_0x5c219b(0xe4),'description':_0x5c219b(0xb6),'apiKey':'API\x20키','apiKeyPlaceholder':'API\x20키를\x20입력하세요','apiKeyHint':_0x5c219b(0xbb),'enableAuth':_0x5c219b(0xcd),'enableAuthHint':_0x5c219b(0xcb),'connectionInfo':_0x5c219b(0xc3),'mcpClientConfig':_0x5c219b(0xc3),'configInstructions':_0x5c219b(0xdf),'configStepTitle':_0x5c219b(0xc5),'configStep1':_0x5c219b(0xc8),'configStep2':_0x5c219b(0xbc),'configStep3':'MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','sessionId':_0x5c219b(0xd0),'sessionIdDescription':_0x5c219b(0xbf),'authorizationDescription':_0x5c219b(0xc7),'configParameters':'설정\x20매개변수:','maxRetries':_0x5c219b(0xb4),'save':'설정\x20저장','saving':_0x5c219b(0xe0),'note1':_0x5c219b(0xdd),'note2':'API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','configSaved':'설정이\x20성공적으로\x20저장되었습니다','configError':_0x5c219b(0xba),'apiApplyInfo':{'title':_0x5c219b(0xdb),'description':_0x5c219b(0xbd),'univerAiLabel':'Univer\x20AI\x20콘솔','getStarted':_0x5c219b(0xc6)},'validation':{'apiKeyRequired':_0x5c219b(0xd8),'apiKeyTooShort':_0x5c219b(0xe2),'invalidConfig':_0x5c219b(0xc1),'invalidApiKey':_0x5c219b(0xc2)},'connectionStatus':{'disconnected':_0x5c219b(0xc9),'connecting':_0x5c219b(0xe1),'connected':'연결됨','failed':_0x5c219b(0xe5),'retrying':_0x5c219b(0xcf)},'connectionError':{'unauthorized':_0x5c219b(0xe6),'sessionOccupied':_0x5c219b(0xb9),'networkError':_0x5c219b(0xc0),'maxRetriesExceeded':_0x5c219b(0xd6)}}};function _0x399d(_0x1e78a0,_0x3c2e64){_0x1e78a0=_0x1e78a0-0xb4;const _0x21412c=_0x2141();let _0x399d1b=_0x21412c[_0x1e78a0];return _0x399d1b;}function _0x2141(){const _0x185f8b=['MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','저장\x20중...','연결\x20중...','API\x20키는\x2010자\x20이상이어야\x20합니다','7011802pmWjxH','MCP\x20설정','연결\x20실패','인증\x20실패.\x20API\x20키를\x20확인하세요','5351808NRrqQq','5WqKYhx','최대\x20재시도\x20횟수','2841036tqtZGw','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','3164srVcmY','MCP:\x20네트워크\x20오류','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','설정\x20저장\x20실패','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','296wAUKmr','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','유효하지\x20않은\x20설정','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','MCP\x20클라이언트\x20설정','MCP\x20연결\x20중...','설정\x20단계:','몇\x20초\x20만에\x20API\x20키\x20발급받기','Bearer\x20접두사가\x20있는\x20API\x20키.','아래\x20JSON\x20설정\x20복사','연결\x20끊김','MCP:\x20인증되지\x20않음','보안\x20연결을\x20위해\x20인증\x20활성화','클릭하여\x20MCP\x20설정','인증\x20활성화','865422sZSmPo','재시도\x20중...','세션\x20ID','MCP:\x20최대\x20재시도\x20횟수\x20초과','25056405CYHTqT','MCP\x20연결\x20실패','382IhsWtI','MCP\x20재시도\x20중...','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','MCP\x20연결\x20끊김','API\x20키는\x20필수입니다','10nESotJ','클릭하여\x20MCP\x20연결','API\x20키란\x20무엇인가요?','20208AtNIEt','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','exports'];_0x2141=function(){return _0x185f8b;};return _0x2141();}module[_0x5c219b(0xde)]=locale;
|