@univerjs-pro/mcp-ui 1.0.0-alpha.0 → 1.0.0-alpha.2
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 +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x312fe2=_0x3324;(function(_0x34492b,_0x289b9c){const _0x1ac666=_0x3324,_0x14f562=_0x34492b();while(!![]){try{const _0x414209=parseInt(_0x1ac666(0x245))/0x1+parseInt(_0x1ac666(0x202))/0x2*(-parseInt(_0x1ac666(0x24c))/0x3)+parseInt(_0x1ac666(0x224))/0x4*(parseInt(_0x1ac666(0x173))/0x5)+parseInt(_0x1ac666(0x1a2))/0x6+-parseInt(_0x1ac666(0x162))/0x7*(parseInt(_0x1ac666(0x189))/0x8)+parseInt(_0x1ac666(0x1f2))/0x9*(parseInt(_0x1ac666(0x1c6))/0xa)+parseInt(_0x1ac666(0x21e))/0xb*(-parseInt(_0x1ac666(0x1eb))/0xc);if(_0x414209===_0x289b9c)break;else _0x14f562['push'](_0x14f562['shift']());}catch(_0xb14026){_0x14f562['push'](_0x14f562['shift']());}}}(_0x3530,0x18c16),Object[_0x312fe2(0x1a7)](exports,Symbol[_0x312fe2(0x1d4)],{'value':_0x312fe2(0x1fd)}));const e=require('./locale/en-US.js'),t=require('./locale/zh-CN.js');let n=require('@univerjs/core'),r=require('@univerjs-pro/mcp'),i=require('@univerjs/design'),a=require('@univerjs/ui'),o=require('rxjs'),s=require('@univerjs/icons'),c=require('react'),l=require('react/jsx-runtime'),u=require('@univerjs/network');function d(_0x313220){const _0x5f50e7=_0x312fe2;var _0x483900,_0x27dd3c;let {mcpCoreConfig:_0x11fcc1,onSave:_0x48021f,loading:_0x157336=!0x1,config:_0x1efc06,connectionStatus$:_0x39345e,connectionError$:_0x3d96ae,currentApiKey$:_0x40202e,currentSessionId$:_0x16c628}=_0x313220,_0x393ff7=(0x0,a[_0x5f50e7(0x194)])(n['LocaleService']),_0x4905ca=(0x0,a[_0x5f50e7(0x198)])(_0x39345e,r[_0x5f50e7(0x1f1)][_0x5f50e7(0x1a1)]),_0x35421a=(0x0,a[_0x5f50e7(0x198)])(_0x3d96ae,r[_0x5f50e7(0x1d0)][_0x5f50e7(0x1ba)]),_0x21e84b=(0x0,a[_0x5f50e7(0x198)])(_0x16c628,''),[_0x5e252,_0x26c86a]=(0x0,c[_0x5f50e7(0x1b5)])((0x0,a[_0x5f50e7(0x198)])(_0x40202e,'')||''),_0x3cf35d=_0x1efc06[_0x5f50e7(0x1aa)]&&_0x11fcc1['mcpServerUrl']&&(_0x11fcc1[_0x5f50e7(0x1bb)][_0x5f50e7(0x215)](_0x5f50e7(0x235))||_0x11fcc1[_0x5f50e7(0x1bb)]['includes'](_0x5f50e7(0x251))),_0xa6d40=(_0x483900=_0x11fcc1[_0x5f50e7(0x1bb)])==null?void 0x0:_0x483900['includes'](_0x5f50e7(0x235)),_0x4f095e=(_0x27dd3c=_0x11fcc1[_0x5f50e7(0x1bb)])==null?void 0x0:_0x27dd3c[_0x5f50e7(0x215)](_0x5f50e7(0x251)),_0x55e420=_0xa6d40?_0x5f50e7(0x22b):_0x5f50e7(0x195),_0x4f9285=_0x1efc06['showDeveloperTools']&&(_0xa6d40||_0x4f095e),[_0x6a0e4a,_0x4c0ad0]=(0x0,c[_0x5f50e7(0x1b5)])(!_0x5e252[_0x5f50e7(0x216)]()),_0x1d6975=(_0x612197,_0x230892)=>{const _0x176384=_0x5f50e7;if(_0x230892===r[_0x176384(0x1d0)]['UNAUTHORIZED'])return _0x176384(0x19a);switch(_0x612197){case r[_0x176384(0x1f1)]['CONNECTED']:return _0x176384(0x244);case r['MCPConnectionStatus'][_0x176384(0x1e4)]:case r[_0x176384(0x1f1)]['RETRYING']:return _0x176384(0x14a);case r[_0x176384(0x1f1)][_0x176384(0x18a)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x57f1b4=(_0x4699d8,_0x1dfc14)=>{const _0x432fa3=_0x5f50e7;if(_0x1dfc14===r['MCPConnectionError']['UNAUTHORIZED'])return _0x432fa3(0x18d);switch(_0x4699d8){case r[_0x432fa3(0x1f1)]['CONNECTED']:return _0x432fa3(0x197);case r[_0x432fa3(0x1f1)][_0x432fa3(0x1e4)]:case r['MCPConnectionStatus'][_0x432fa3(0x174)]:return _0x432fa3(0x24f);case r['MCPConnectionStatus']['FAILED']:return _0x432fa3(0x18d);default:return _0x432fa3(0x161);}},_0x283f10=_0x57ed42=>{const _0x38aa7c=_0x5f50e7;switch(_0x57ed42){case r[_0x38aa7c(0x1f1)][_0x38aa7c(0x16b)]:return _0x393ff7['t'](_0x38aa7c(0x1e3));case r[_0x38aa7c(0x1f1)][_0x38aa7c(0x1e4)]:return _0x393ff7['t'](_0x38aa7c(0x1cc));case r[_0x38aa7c(0x1f1)][_0x38aa7c(0x18a)]:return _0x393ff7['t'](_0x38aa7c(0x15a));case r[_0x38aa7c(0x1f1)]['RETRYING']:return _0x393ff7['t']('mcpConfig.connectionStatus.retrying');default:return _0x393ff7['t'](_0x38aa7c(0x15f));}},_0x4ba446=_0x351baa=>{const _0x4c22d5=_0x5f50e7;switch(_0x351baa){case r[_0x4c22d5(0x1d0)][_0x4c22d5(0x16c)]:return _0x393ff7['t']('mcpConfig.connectionError.unauthorized');case r['MCPConnectionError'][_0x4c22d5(0x1bc)]:return _0x393ff7['t'](_0x4c22d5(0x1dd));case r[_0x4c22d5(0x1d0)][_0x4c22d5(0x157)]:return _0x393ff7['t'](_0x4c22d5(0x1ce));case r[_0x4c22d5(0x1d0)][_0x4c22d5(0x1c3)]:return _0x393ff7['t'](_0x4c22d5(0x1c1));default:return'';}},_0x434a96=(0x0,c[_0x5f50e7(0x207)])(()=>{const _0x2819ac=_0x5f50e7;_0x48021f({..._0x11fcc1,'apiKey':_0x5e252[_0x2819ac(0x216)](),'enableAuth':!0x0});},[_0x11fcc1,_0x5e252,!0x0,_0x48021f]),_0x4a0ba8=_0x5e252['trim']()[_0x5f50e7(0x1be)]>0x0;return(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x22c),'children':[(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x1b3),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x1e9),'children':[(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x241),'children':(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x179),{'className':'univer-text-white','children':'⚙'})}),(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x1b3),{'children':(0x0,l[_0x5f50e7(0x208)])('p',{'className':_0x5f50e7(0x193),'children':_0x393ff7['t']('mcpConfig.description')})})]})}),(0x0,l['jsxs'])('div',{'className':_0x5f50e7(0x1c5),'children':[(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x1b3),{'className':(0x0,i['clsx'])(_0x5f50e7(0x14e),_0x1d6975(_0x4905ca,_0x35421a)),'children':(0x0,l['jsxs'])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x23c),'children':[(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x1b3),{'className':(0x0,i[_0x5f50e7(0x1df)])(_0x5f50e7(0x164),_0x57f1b4(_0x4905ca,_0x35421a))}),(0x0,l[_0x5f50e7(0x208)])('span',{'className':_0x5f50e7(0x1fa),'children':_0x283f10(_0x4905ca)})]})}),_0x35421a!==r[_0x5f50e7(0x1d0)][_0x5f50e7(0x1ba)]&&(_0x4905ca===r[_0x5f50e7(0x1f1)]['FAILED']||_0x35421a===r[_0x5f50e7(0x1d0)][_0x5f50e7(0x16c)])&&(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x1fe),'children':(0x0,l[_0x5f50e7(0x1b0)])('div',{'className':_0x5f50e7(0x1c2),'children':[(0x0,l['jsx'])('span',{'className':_0x5f50e7(0x1bf),'children':'⚠️'}),(0x0,l[_0x5f50e7(0x208)])('p',{'className':_0x5f50e7(0x221),'children':_0x4ba446(_0x35421a)})]})})]}),(0x0,l['jsx'])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x238),'children':(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x200),'children':[(0x0,l[_0x5f50e7(0x1b0)])('div',{'className':_0x5f50e7(0x240),'children':[(0x0,l['jsxs'])(_0x5f50e7(0x1e8),{'className':_0x5f50e7(0x1b6),'children':[(0x0,l['jsx'])(_0x5f50e7(0x179),{'children':'🔑'}),'\x20',_0x393ff7['t'](_0x5f50e7(0x175)),(0x0,l['jsx'])('span',{'className':'univer-text-red-500','children':'*'}),_0x3cf35d&&(0x0,l[_0x5f50e7(0x208)])('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x393ff7['t']('mcpConfig.apiApplyInfo.title'),'role':'button','onClick':()=>_0x4c0ad0(!0x0),'children':(0x0,l[_0x5f50e7(0x208)])(s['HelpIcon'],{})})]}),(0x0,l[_0x5f50e7(0x208)])(i[_0x5f50e7(0x22f)],{'type':'text','placeholder':_0x393ff7['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x5e252,'disabled':_0x157336,'autoComplete':_0x5f50e7(0x1dc),'onChange':_0x26c86a}),(0x0,l[_0x5f50e7(0x208)])('p',{'className':_0x5f50e7(0x18f),'children':_0x393ff7['t']('mcpConfig.apiKeyHint')})]}),_0x3cf35d&&_0x6a0e4a&&(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'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,l[_0x5f50e7(0x208)])('a',{'className':_0x5f50e7(0x166),'role':_0x5f50e7(0x1ec),'onClick':()=>_0x4c0ad0(!0x1),'children':(0x0,l[_0x5f50e7(0x208)])(s[_0x5f50e7(0x1ad)],{'className':'univer-size-4'})}),(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x165),'children':[(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x1b3),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x179),{'className':_0x5f50e7(0x1d6),'children':'🚀'})}),(0x0,l['jsxs'])(_0x5f50e7(0x1b3),{'className':'univer-flex-1','children':[(0x0,l[_0x5f50e7(0x208)])('h4',{'className':_0x5f50e7(0x1c9),'children':_0x393ff7['t']('mcpConfig.apiApplyInfo.title')}),(0x0,l[_0x5f50e7(0x208)])('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x393ff7['t'](_0x5f50e7(0x186))}),(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x219),'children':_0x4f9285&&(0x0,l[_0x5f50e7(0x1b0)])('a',{'className':_0x5f50e7(0x152),'href':_0x55e420,'target':_0x5f50e7(0x1d2),'rel':_0x5f50e7(0x149),'children':[(0x0,l['jsx'])(_0x5f50e7(0x179),{'children':'🤖'}),_0x393ff7['t'](_0x5f50e7(0x1d1)),(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x179),{'className':_0x5f50e7(0x24d),'children':'↗'})]})}),(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x18e),'children':['✨','\x20',_0x393ff7['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x1efc06[_0x5f50e7(0x1aa)]&&(0x0,l['jsxs'])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x153),'children':[(0x0,l[_0x5f50e7(0x1b0)])('h4',{'className':_0x5f50e7(0x252),'children':[(0x0,l[_0x5f50e7(0x208)])('span',{'children':'🔗'}),'\x20',_0x393ff7['t'](_0x5f50e7(0x18c))]}),(0x0,l[_0x5f50e7(0x1b0)])('div',{'className':_0x5f50e7(0x1ff),'children':[(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x196),'children':[(0x0,l[_0x5f50e7(0x208)])('p',{'className':_0x5f50e7(0x20e),'children':_0x393ff7['t']('mcpConfig.configInstructions')}),(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':'univer-space-y-2','children':[(0x0,l[_0x5f50e7(0x208)])('div',{'className':_0x5f50e7(0x160),'children':_0x393ff7['t'](_0x5f50e7(0x1f5))}),(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x17f),'children':[(0x0,l[_0x5f50e7(0x1b0)])('div',{'className':_0x5f50e7(0x23c),'children':[(0x0,l['jsx'])(_0x5f50e7(0x179),{'className':_0x5f50e7(0x1a8),'children':'1'}),_0x393ff7['t']('mcpConfig.configStep1')]}),(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x23c),'children':[(0x0,l[_0x5f50e7(0x208)])('span',{'className':_0x5f50e7(0x1a8),'children':'2'}),_0x393ff7['t'](_0x5f50e7(0x1ae))]}),(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x23c),'children':[(0x0,l['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':'3'}),_0x393ff7['t'](_0x5f50e7(0x17b))]})]})]})]}),(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':'univer-space-y-2','children':[(0x0,l[_0x5f50e7(0x208)])('div',{'className':_0x5f50e7(0x160),'children':'MCP\x20Configuration'}),(0x0,l['jsx'])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x1cb),'children':(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x14f),{'className':_0x5f50e7(0x21f),'children':JSON['stringify']({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x21e84b||_0x5f50e7(0x250)),'type':_0x5f50e7(0x192),'headers':{'Authorization':_0x5f50e7(0x243)+(_0x5e252||'<API_KEY>')}}}},null,0x2)})})]}),(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x196),'children':[(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x160),'children':_0x393ff7['t'](_0x5f50e7(0x1a5))}),(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x240),'children':[(0x0,l['jsxs'])(_0x5f50e7(0x1b3),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[(0x0,l['jsx'])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x1a4)}),(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x1d9),'children':[(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x1d7),'children':_0x5f50e7(0x172)}),(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x18f),'children':_0x393ff7['t'](_0x5f50e7(0x14b))})]})]}),(0x0,l['jsxs'])('div',{'className':_0x5f50e7(0x206),'children':[(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x1b3),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),(0x0,l[_0x5f50e7(0x1b0)])('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[(0x0,l['jsx'])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x1d7),'children':_0x5f50e7(0x1ab)}),(0x0,l[_0x5f50e7(0x208)])('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x393ff7['t'](_0x5f50e7(0x20b))})]})]})]})]})]})]}),(0x0,l[_0x5f50e7(0x208)])(i[_0x5f50e7(0x199)],{'onClick':_0x434a96,'disabled':!_0x4a0ba8||_0x157336,'className':_0x5f50e7(0x16d),'children':_0x157336?(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x179),{'className':_0x5f50e7(0x23c),'children':[(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x179),{'children':'⟲'}),_0x393ff7['t'](_0x5f50e7(0x1cf))]}):(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x179),{'className':_0x5f50e7(0x23c),'children':[(0x0,l[_0x5f50e7(0x208)])(s[_0x5f50e7(0x24a)],{}),_0x393ff7['t'](_0x5f50e7(0x155))]})}),(0x0,l[_0x5f50e7(0x208)])('div',{'className':_0x5f50e7(0x184),'children':(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x17c),'children':[(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x179),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[(0x0,l['jsx'])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x16f),'children':'Configuration\x20Notes:'}),(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'children':['•',_0x393ff7['t'](_0x5f50e7(0x1e2))]}),(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'children':['•',_0x393ff7['t']('mcpConfig.note2')]})]})]})})]})})]});}const f=_0x312fe2(0x24e),p={'showDeveloperTools':!0x1,'showStatus':!0x0};function m(_0x29b338){'@babel/helpers - typeof';const _0x45719d=_0x312fe2;return m=typeof Symbol==_0x45719d(0x1e7)&&typeof Symbol[_0x45719d(0x176)]==_0x45719d(0x1fc)?function(_0x1dacf9){return typeof _0x1dacf9;}:function(_0x4a2f4c){const _0x3ba652=_0x45719d;return _0x4a2f4c&&typeof Symbol==_0x3ba652(0x1e7)&&_0x4a2f4c[_0x3ba652(0x20c)]===Symbol&&_0x4a2f4c!==Symbol['prototype']?_0x3ba652(0x1fc):typeof _0x4a2f4c;},m(_0x29b338);}function h(_0x5c534d,_0x35e82d){const _0x1355fe=_0x312fe2;if(m(_0x5c534d)!=_0x1355fe(0x16a)||!_0x5c534d)return _0x5c534d;var _0x5d1f28=_0x5c534d[Symbol[_0x1355fe(0x22a)]];if(_0x5d1f28!==void 0x0){var _0x34a533=_0x5d1f28['call'](_0x5c534d,_0x35e82d||_0x1355fe(0x1da));if(m(_0x34a533)!=_0x1355fe(0x16a))return _0x34a533;throw TypeError(_0x1355fe(0x1b7));}return(_0x35e82d==='string'?String:Number)(_0x5c534d);}function g(_0x2043e4){const _0x2b333b=_0x312fe2;var _0x2c5740=h(_0x2043e4,_0x2b333b(0x222));return m(_0x2c5740)==_0x2b333b(0x1fc)?_0x2c5740:_0x2c5740+'';}function _(_0x29e487,_0x34dfa2,_0xd938d6){const _0x502ada=_0x312fe2;return(_0x34dfa2=g(_0x34dfa2))in _0x29e487?Object[_0x502ada(0x1a7)](_0x29e487,_0x34dfa2,{'value':_0xd938d6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x29e487[_0x34dfa2]=_0xd938d6,_0x29e487;}function v(_0x21c113,_0x1685f6){return function(_0x48c068,_0x5320b5){_0x1685f6(_0x48c068,_0x5320b5,_0x21c113);};}function y(_0x309e1b,_0x266f5a,_0x3cc9b5,_0x2d9339){const _0xcd26ee=_0x312fe2;var _0x3fa2e6=arguments[_0xcd26ee(0x1be)],_0x37c042=_0x3fa2e6<0x3?_0x266f5a:_0x2d9339===null?_0x2d9339=Object['getOwnPropertyDescriptor'](_0x266f5a,_0x3cc9b5):_0x2d9339,_0x41ad44;if(typeof Reflect==_0xcd26ee(0x16a)&&typeof Reflect[_0xcd26ee(0x1af)]==_0xcd26ee(0x1e7))_0x37c042=Reflect[_0xcd26ee(0x1af)](_0x309e1b,_0x266f5a,_0x3cc9b5,_0x2d9339);else{for(var _0xd0ce1c=_0x309e1b[_0xcd26ee(0x1be)]-0x1;_0xd0ce1c>=0x0;_0xd0ce1c--)(_0x41ad44=_0x309e1b[_0xd0ce1c])&&(_0x37c042=(_0x3fa2e6<0x3?_0x41ad44(_0x37c042):_0x3fa2e6>0x3?_0x41ad44(_0x266f5a,_0x3cc9b5,_0x37c042):_0x41ad44(_0x266f5a,_0x3cc9b5))||_0x37c042);}return _0x3fa2e6>0x3&&_0x37c042&&Object[_0xcd26ee(0x1a7)](_0x266f5a,_0x3cc9b5,_0x37c042),_0x37c042;}const b=_0x312fe2(0x156),x=_0x312fe2(0x1a3);let S=class extends n[_0x312fe2(0x1f7)]{constructor(_0x1b13c4,_0x1100ff,_0x5e8b3a,_0x3ae8a1,_0x5e8d43,_0x449f53,_0x180cbb,_0x28a353,_0x481fbb,_0x179db4){const _0x4f4d86=_0x312fe2;super(),this['_injector']=_0x1b13c4,this['_uiPartsService']=_0x1100ff,this[_0x4f4d86(0x23b)]=_0x5e8b3a,this['_localStorageService']=_0x3ae8a1,this[_0x4f4d86(0x187)]=_0x5e8d43,this[_0x4f4d86(0x1c8)]=_0x449f53,this[_0x4f4d86(0x171)]=_0x180cbb,this[_0x4f4d86(0x1d8)]=_0x28a353,this[_0x4f4d86(0x236)]=_0x481fbb,this[_0x4f4d86(0x233)]=_0x179db4,_(this,_0x4f4d86(0x180),new o[(_0x4f4d86(0x21a))](!0x1)),_(this,'_mcpCoreConfig$',new o[(_0x4f4d86(0x21a))]({})),_(this,_0x4f4d86(0x14d),new o[(_0x4f4d86(0x21a))]({})),_(this,_0x4f4d86(0x1d5),new o['BehaviorSubject']('')),_(this,_0x4f4d86(0x1f4),async _0xeed9a8=>{const _0x29ca4f=_0x4f4d86;this[_0x29ca4f(0x180)]['next'](!0x0);try{var _0x38e1e9,_0x2a34d8;let _0x44c4bd=await this[_0x29ca4f(0x1fb)](_0xeed9a8);if(!_0x44c4bd['isValid']){this[_0x29ca4f(0x1c8)][_0x29ca4f(0x1f8)]({'type':i[_0x29ca4f(0x150)][_0x29ca4f(0x170)],'content':_0x44c4bd[_0x29ca4f(0x22d)]||this[_0x29ca4f(0x1d8)]['t'](_0x29ca4f(0x204))});return;}_0xeed9a8[_0x29ca4f(0x226)]?await this[_0x29ca4f(0x15c)][_0x29ca4f(0x201)](b,_0xeed9a8[_0x29ca4f(0x226)][_0x29ca4f(0x216)]()):await this[_0x29ca4f(0x15c)]['removeItem'](b),this[_0x29ca4f(0x1d5)][_0x29ca4f(0x1f3)](((_0x38e1e9=_0xeed9a8[_0x29ca4f(0x226)])==null?void 0x0:_0x38e1e9[_0x29ca4f(0x216)]())||''),this[_0x29ca4f(0x233)]['__setCustomHeaders']({'Authorization':_0x29ca4f(0x243)+((_0x2a34d8=_0xeed9a8[_0x29ca4f(0x226)])==null?void 0x0:_0x2a34d8[_0x29ca4f(0x216)]())}),this['_messageService']['show']({'type':i['MessageType']['Success'],'content':this[_0x29ca4f(0x1d8)]['t'](_0x29ca4f(0x19f))}),setTimeout(()=>{const _0x144472=_0x29ca4f;this[_0x144472(0x187)]['close'](x);},0x320);}catch(_0x49c48f){this['_logService'][_0x29ca4f(0x1e5)](_0x29ca4f(0x1ea),_0x49c48f),this[_0x29ca4f(0x1c8)][_0x29ca4f(0x1f8)]({'type':i[_0x29ca4f(0x150)][_0x29ca4f(0x170)],'content':this[_0x29ca4f(0x1d8)]['t'](_0x29ca4f(0x168))});}finally{this[_0x29ca4f(0x180)][_0x29ca4f(0x1f3)](!0x1);}}),this[_0x4f4d86(0x167)](),this[_0x4f4d86(0x20f)](),this['_registerComponent']();}[_0x312fe2(0x1f9)](){const _0x178c3f=_0x312fe2;let _0xb89859=this['_configService'][_0x178c3f(0x14c)](f);_0xb89859!=null&&_0xb89859['showDeveloperTools']&&this[_0x178c3f(0x187)][_0x178c3f(0x217)]({'id':x,'title':{'title':this[_0x178c3f(0x1d8)]['t'](_0x178c3f(0x191))},'children':{'label':_0x178c3f(0x21b)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x55ce4c=_0x178c3f;this[_0x55ce4c(0x187)][_0x55ce4c(0x1c4)](x);}});}[_0x312fe2(0x220)](){const _0x16a349=_0x312fe2;return this[_0x16a349(0x183)][_0x16a349(0x242)];}[_0x312fe2(0x1de)](){const _0xbf4b70=_0x312fe2;this['disposeWithMe'](this[_0xbf4b70(0x171)][_0xbf4b70(0x1a0)](_0xbf4b70(0x21b),this[_0xbf4b70(0x1b1)]()));}[_0x312fe2(0x1b1)](){const _0x47404f=_0x312fe2;return(0x0,a[_0x47404f(0x1ca)])(()=>{const _0x39a5bb=_0x47404f;var _0x427aae,_0x54e495,_0x4779a5;return(0x0,l['jsx'])(d,{'config':this[_0x39a5bb(0x14d)][_0x39a5bb(0x242)],'mcpCoreConfig':this[_0x39a5bb(0x183)][_0x39a5bb(0x242)],'currentApiKey$':this[_0x39a5bb(0x1d5)],'onSave':this['_handleConfigSave'],'loading':this[_0x39a5bb(0x180)][_0x39a5bb(0x242)],'connectionStatus$':(_0x427aae=this[_0x39a5bb(0x233)])==null?void 0x0:_0x427aae[_0x39a5bb(0x1e1)],'connectionError$':(_0x54e495=this[_0x39a5bb(0x233)])==null?void 0x0:_0x54e495[_0x39a5bb(0x22e)],'currentSessionId$':(_0x4779a5=this[_0x39a5bb(0x233)])==null?void 0x0:_0x4779a5['sessionId$']});},this[_0x47404f(0x1c0)]);}['_initConfigSync'](){const _0x37f3ef=_0x312fe2;this[_0x37f3ef(0x19e)](this[_0x37f3ef(0x23b)][_0x37f3ef(0x1ee)](r[_0x37f3ef(0x229)])[_0x37f3ef(0x159)](_0x4c948f=>{const _0x649b83=_0x37f3ef;this[_0x649b83(0x183)][_0x649b83(0x1f3)](_0x4c948f||{});}));let _0x3f1ddc=this[_0x37f3ef(0x23b)]['getConfig'](r[_0x37f3ef(0x229)]);this['_mcpCoreConfig$'][_0x37f3ef(0x1f3)](_0x3f1ddc||{}),this['disposeWithMe'](this[_0x37f3ef(0x23b)][_0x37f3ef(0x1ee)](f)[_0x37f3ef(0x159)](_0x28deb0=>{const _0x42cb21=_0x37f3ef;this[_0x42cb21(0x14d)][_0x42cb21(0x1f3)](_0x28deb0||{});}));let _0x59e542=this[_0x37f3ef(0x23b)][_0x37f3ef(0x14c)](f);this[_0x37f3ef(0x14d)]['next'](_0x59e542||{});}async[_0x312fe2(0x20f)](){const _0x215b11=_0x312fe2;let _0x283024=this[_0x215b11(0x23b)]['getConfig'](f);if(!(_0x283024!=null&&_0x283024[_0x215b11(0x1aa)]))return;let _0x277a05=await this[_0x215b11(0x15c)][_0x215b11(0x1db)](b);_0x277a05&&(this[_0x215b11(0x233)]['__setCustomHeaders']({'Authorization':_0x215b11(0x243)+_0x277a05}),this[_0x215b11(0x1d5)][_0x215b11(0x1f3)](_0x277a05));}async[_0x312fe2(0x1fb)](_0x136032){const _0x51fce3=_0x312fe2;if(!_0x136032[_0x51fce3(0x226)]||_0x136032['apiKey'][_0x51fce3(0x216)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x51fce3(0x1d8)]['t'](_0x51fce3(0x212))};if(_0x136032['apiKey'][_0x51fce3(0x216)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x51fce3(0x1d8)]['t'](_0x51fce3(0x211))};try{let _0x3e0662=await this[_0x51fce3(0x1c0)][_0x51fce3(0x158)](r[_0x51fce3(0x1a6)])['validateApiKey'](_0x136032[_0x51fce3(0x226)][_0x51fce3(0x216)]());return _0x3e0662[_0x51fce3(0x209)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x3e0662[_0x51fce3(0x1e5)]||this[_0x51fce3(0x1d8)]['t'](_0x51fce3(0x223))};}catch(_0x4f1ce5){return console[_0x51fce3(0x16e)](_0x51fce3(0x1b9),_0x4f1ce5),{'isValid':!0x0};}}};S=y([v(0x0,(0x0,n[_0x312fe2(0x231)])(n[_0x312fe2(0x228)])),v(0x1,a[_0x312fe2(0x15e)]),v(0x2,n['IConfigService']),v(0x3,n[_0x312fe2(0x1d3)]),v(0x4,a['IDialogService']),v(0x5,a['IMessageService']),v(0x6,(0x0,n['Inject'])(a[_0x312fe2(0x23a)])),v(0x7,(0x0,n[_0x312fe2(0x231)])(n[_0x312fe2(0x1e6)])),v(0x8,n['ILogService']),v(0x9,(0x0,n['Inject'])(r[_0x312fe2(0x1a6)]))],S);const C={'id':_0x312fe2(0x248),'type':n['CommandType']['COMMAND'],'handler':async(_0x454573,_0x3608b0)=>(_0x454573[_0x312fe2(0x158)](S)['showConfigPanel'](),!0x0)};function w(_0x1d8bb3,_0xa5d501){const _0x30811d=_0x312fe2;switch(_0x1d8bb3){case r[_0x30811d(0x1f1)][_0x30811d(0x1a1)]:return _0x30811d(0x20d);case r[_0x30811d(0x1f1)][_0x30811d(0x1e4)]:return _0x30811d(0x19c);case r['MCPConnectionStatus'][_0x30811d(0x16b)]:return _0x30811d(0x151);case r[_0x30811d(0x1f1)][_0x30811d(0x18a)]:switch(_0xa5d501){case r[_0x30811d(0x1d0)]['UNAUTHORIZED']:return _0x30811d(0x24b);case r[_0x30811d(0x1d0)][_0x30811d(0x1bc)]:return'mcpStatus.sessionOccupied';case r[_0x30811d(0x1d0)][_0x30811d(0x157)]:return _0x30811d(0x17e);case r['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return'mcpStatus.maxRetriesExceeded';default:return'mcpStatus.failed';}case r[_0x30811d(0x1f1)]['RETRYING']:return _0x30811d(0x17d);default:return _0x30811d(0x23e);}}function T(_0x2f968d,_0x37fb7e,_0x4ce698,_0x43e69b=!0x0){const _0x6370ac=_0x312fe2;let _0x15f7ad=w(_0x2f968d,_0x37fb7e),_0x28dffc=_0x4ce698['t'](_0x15f7ad);return _0x43e69b?_0x2f968d===r[_0x6370ac(0x1f1)][_0x6370ac(0x1a1)]&&_0x37fb7e===r['MCPConnectionError'][_0x6370ac(0x16c)]?_0x28dffc+_0x6370ac(0x227)+_0x4ce698['t'](_0x6370ac(0x19d)):_0x2f968d===r['MCPConnectionStatus'][_0x6370ac(0x16b)]?''+_0x28dffc:_0x2f968d===r[_0x6370ac(0x1f1)]['DISCONNECTED']||_0x2f968d===r[_0x6370ac(0x1f1)]['FAILED']?_0x28dffc+'\x20-\x20'+_0x4ce698['t'](_0x6370ac(0x1b2)):_0x28dffc:_0x28dffc;}function E(_0x570b0c){const _0x166754=_0x312fe2;switch(_0x570b0c){case r[_0x166754(0x1f1)][_0x166754(0x16b)]:return _0x166754(0x218);case r[_0x166754(0x1f1)][_0x166754(0x1e4)]:case r['MCPConnectionStatus'][_0x166754(0x174)]:return _0x166754(0x1ed);case r[_0x166754(0x1f1)][_0x166754(0x18a)]:case r[_0x166754(0x1f1)][_0x166754(0x1a1)]:return'univer-text-red-500';default:return _0x166754(0x214);}}function D(_0x58a405){const _0x27b38c=_0x312fe2;let {status$:_0x242114,error$:_0xc3b89f,onConfigure:_0x1bb896,showClickable:_0x74a67a=!0x0}=_0x58a405,_0x33eaad=(0x0,a[_0x27b38c(0x198)])(_0x242114,r[_0x27b38c(0x1f1)][_0x27b38c(0x1a1)]),_0x4fc9a2=(0x0,a[_0x27b38c(0x198)])(_0xc3b89f,r['MCPConnectionError'][_0x27b38c(0x1ba)]),_0x77c197=(0x0,a['useDependency'])(n[_0x27b38c(0x1e6)]),_0x543622=_0x33eaad===r[_0x27b38c(0x1f1)][_0x27b38c(0x16b)];_0x33eaad===r[_0x27b38c(0x1f1)][_0x27b38c(0x1e4)]||r['MCPConnectionStatus'][_0x27b38c(0x174)];let _0x53a839=_0x77c197['t'](w(_0x33eaad,_0x4fc9a2)),_0x2b09d2=T(_0x33eaad,_0x4fc9a2,_0x77c197,_0x74a67a),_0x254239=E(_0x33eaad),_0x15679f=_0x543622?(0x0,l[_0x27b38c(0x208)])(s[_0x27b38c(0x230)],{}):(0x0,l['jsx'])(s[_0x27b38c(0x18b)],{}),_0x121a2b=(0x0,c[_0x27b38c(0x207)])(()=>{_0x74a67a&&_0x1bb896&&_0x1bb896();},[_0x74a67a,_0x1bb896]);function _0x1dc4cf(){const _0x31b0ad=_0x27b38c;return(0x0,l[_0x31b0ad(0x1b0)])(_0x31b0ad(0x1b3),{'className':(0x0,i[_0x31b0ad(0x1df)])(_0x31b0ad(0x1ef),_0x74a67a&&_0x1bb896&&_0x31b0ad(0x23f)),'role':_0x31b0ad(0x1ec),'onClick':_0x74a67a&&_0x1bb896?_0x121a2b:void 0x0,'children':[(0x0,l[_0x31b0ad(0x208)])(_0x31b0ad(0x1b3),{'className':(0x0,i[_0x31b0ad(0x1df)])('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x254239),'children':_0x15679f}),(0x0,l['jsx'])('div',{'className':_0x31b0ad(0x1ac),'children':_0x53a839})]});}return(0x0,l[_0x27b38c(0x208)])(i[_0x27b38c(0x1cd)],{'title':_0x2b09d2,'placement':_0x27b38c(0x249),'children':_0x1dc4cf()});}function _0x3530(){const _0x1a0621=['mcpConfig.configStepTitle','_initAutoConnect','Disposable','show','showConfigPanel','univer-text-sm\x20univer-font-medium','_validateConfig','symbol','Module','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-space-y-4','univer-space-y-5','setItem','60748lpVULD','ISocketService','mcpConfig.validation.invalidConfig','WebSocketService','univer-flex\x20univer-items-start\x20univer-gap-3','useCallback','jsx','isValid','showStatus','mcpConfig.authorizationDescription','constructor','mcpStatus.disconnected','univer-text-xs\x20univer-text-gray-600','_loadStoredApiKey','BuiltInUIPart','mcpConfig.validation.apiKeyTooShort','mcpConfig.validation.apiKeyRequired','_initializeCommands','univer-text-gray-500','includes','trim','open','univer-text-green-500','univer-flex\x20univer-flex-wrap\x20univer-gap-2','BehaviorSubject','MCPConfigPanel','MCP_UI_PLUGIN','push','3008445xgkutP','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','getCurrentConfig','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','string','mcpConfig.validation.invalidApiKey','12FHjVjE','_initializeMenus','apiKey','\x20-\x20','Injector','MCP_PLUGIN_CONFIG_KEY','toPrimitive','https://console.univer.plus','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','errorMessage','connectionError$','Input','OnLineIcon','Inject','MenuIcon','_mcpConnectionController','_uiPartsService','univer.plus','_logService','HEADER_MENU','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','OTHERS','ComponentManager','_configService','univer-flex\x20univer-items-center\x20univer-gap-2','IMenuManagerService','mcpStatus.unknown','univer-cursor-pointer\x20hover:univer-opacity-80','univer-space-y-2','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','value','Bearer\x20','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','98185Qvcgec','OpenMCPConfigPanelCommand','add','mcp-ui.command.openConfigPanel','bottom','CheckMarkIcon','mcpStatus.unauthorized','12LQWMjU','univer-text-gray-400','mcp-ui.config','univer-bg-blue-500','<SESSION_ID>','univer.ai','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','zhCN','noopener\x20noreferrer','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','mcpConfig.sessionIdDescription','getConfig','_config$','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','pre','MessageType','mcpStatus.connected','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-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','_commandService','mcpConfig.save','mcp.apiKey','NETWORK_ERROR','get','subscribe','mcpConfig.connectionStatus.failed','setConfig','_localStorageService','UniverMCPUIPlugin','IUIPartsService','mcpConfig.connectionStatus.disconnected','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-bg-gray-500','12341aCJTHn','IConfigService','univer-size-2\x20univer-rounded-full','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','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','_initConfigSync','mcpConfig.configError','BUTTON','object','CONNECTED','UNAUTHORIZED','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','warn','univer-font-medium','Error','_componentManager','univer_session_id:','291725sLNwOi','RETRYING','mcpConfig.apiKey','iterator','packageName','_connectionController','span','enUS','mcpConfig.configStep3','univer-flex\x20univer-gap-3','mcpStatus.retrying','mcpStatus.networkError','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','_loading$','@univerjs-pro/mcp-ui','RibbonStartGroup','_mcpCoreConfig$','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','Plugin','mcpConfig.apiApplyInfo.description','_dialogService','MCPConnectionUIController','48rvgBPd','FAILED','OffLineIcon','mcpConfig.connectionInfo','univer-bg-red-500','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univer-text-xs\x20univer-text-gray-500','_initStatusComponent','mcpConfig.title','http','univer-text-sm\x20univer-text-gray-500','useDependency','https://console.univer.ai','univer-space-y-3','univer-bg-green-500','useObservable','Button','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','merge','mcpStatus.connecting','mcpStatus.clickToConfigure','disposeWithMe','mcpConfig.configSaved','register','DISCONNECTED','900492KwfLhM','mcp-config-dialog','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.configParameters','MCPConnectionController','defineProperty','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','_menuManagerService','showDeveloperTools','Authorization:','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','CloseIcon','mcpConfig.configStep2','decorate','jsxs','_createConfigPanelComponent','mcpStatus.clickToConnect','div','ICommandService','useState','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','enableAutoConnect','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','NONE','mcpServerUrl','SESSION_ID_OCCUPIED','1.0.0-alpha.0','length','univer-shrink-0\x20univer-text-red-500','_injector','mcpConfig.connectionError.maxRetriesExceeded','univer-flex\x20univer-items-start\x20univer-gap-2','MAX_RETRIES_EXCEEDED','close','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','167330kxBdAB','forEach','_messageService','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','connectInjector','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','mcpConfig.connectionStatus.connecting','Tooltip','mcpConfig.connectionError.networkError','mcpConfig.saving','MCPConnectionError','mcpConfig.apiApplyInfo.univerAiLabel','_blank','ILocalStorageService','toStringTag','_apiKey$','univer-text-blue-600','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_localeService','univer-min-w-0\x20univer-flex-1','default','getItem','off','mcpConfig.connectionError.sessionOccupied','_registerComponent','clsx','DependentOn','connectionStatus$','mcpConfig.note1','mcpConfig.connectionStatus.connected','CONNECTING','error','LocaleService','function','label','univer-flex\x20univer-items-center\x20univer-gap-3','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','12uQQzmk','button','univer-text-yellow-500','subscribeConfigValue$','univer-flex\x20univer-items-center','_handleConfigure','MCPConnectionStatus','45ZXfRtR','next','_handleConfigSave'];_0x3530=function(){return _0x1a0621;};return _0x3530();}let O=class extends n[_0x312fe2(0x1f7)]{constructor(_0x4058e2,_0x38b306,_0x550bf7,_0x3f1820){const _0x3073cd=_0x312fe2;super(),this['_injector']=_0x4058e2,this[_0x3073cd(0x178)]=_0x38b306,this[_0x3073cd(0x234)]=_0x550bf7,this[_0x3073cd(0x23b)]=_0x3f1820,this[_0x3073cd(0x1f6)](),this['_initStatusComponent']();}['_initAutoConnect'](){const _0x3f9a91=_0x312fe2;let _0x36b190=this[_0x3f9a91(0x23b)][_0x3f9a91(0x14c)](f);_0x36b190!=null&&_0x36b190[_0x3f9a91(0x1aa)]&&(this['_connectionController'][_0x3f9a91(0x1b8)]=!0x1);}[_0x312fe2(0x190)](){const _0x17286b=_0x312fe2;let _0x22728a=this['_configService']['getConfig'](f);(_0x22728a==null?void 0x0:_0x22728a[_0x17286b(0x20a)])!==!0x1&&this['disposeWithMe'](this[_0x17286b(0x234)]['registerComponent'](a[_0x17286b(0x210)][_0x17286b(0x237)],()=>{const _0x2adc39=_0x17286b;var _0x434971;return(0x0,a[_0x2adc39(0x1ca)])(k({'status$':this[_0x2adc39(0x178)]['connectionStatus$'],'error$':this[_0x2adc39(0x178)]['connectionError$'],'onConfigure':()=>this[_0x2adc39(0x1f0)](),'showClickable':(_0x434971=_0x22728a==null?void 0x0:_0x22728a[_0x2adc39(0x1aa)])==null?!0x1:_0x434971}),this[_0x2adc39(0x1c0)]);}));}[_0x312fe2(0x1f0)](){const _0x12212b=_0x312fe2;this[_0x12212b(0x1c0)][_0x12212b(0x158)](S)[_0x12212b(0x1f9)]();}};O=y([v(0x0,(0x0,n[_0x312fe2(0x231)])(n['Injector'])),v(0x1,(0x0,n[_0x312fe2(0x231)])(r[_0x312fe2(0x1a6)])),v(0x2,a[_0x312fe2(0x15e)]),v(0x3,n['IConfigService'])],O);function k(_0xf18723){let {status$:_0x4574f3,error$:_0x2aa0e7,onConfigure:_0x5613aa,showClickable:_0x5cecc3}=_0xf18723;return function(){const _0x180754=_0x3324;return(0x0,l[_0x180754(0x208)])(D,{'status$':_0x4574f3,'error$':_0x2aa0e7,'onConfigure':_0x5613aa,'showClickable':_0x5cecc3});};}function A(_0x59ebb1){const _0x2b6e91=_0x312fe2;return{'id':C['id'],'type':a['MenuItemType'][_0x2b6e91(0x169)],'icon':_0x2b6e91(0x232),'title':'mcpConfig.title','tooltip':_0x2b6e91(0x191)};}const j={[a[_0x312fe2(0x182)][_0x312fe2(0x239)]]:{[C['id']]:{'order':0xa,'menuItemFactory':A}}};let M=class extends n[_0x312fe2(0x1f7)]{constructor(_0x2281d1,_0x5f2fc1){const _0x5d261c=_0x312fe2;super(),this[_0x5d261c(0x154)]=_0x2281d1,this['_menuManagerService']=_0x5f2fc1,this[_0x5d261c(0x213)](),this[_0x5d261c(0x225)]();}[_0x312fe2(0x213)](){const _0x334f33=_0x312fe2;[C][_0x334f33(0x1c7)](_0x4a1d94=>{const _0x15413a=_0x334f33;this[_0x15413a(0x19e)](this['_commandService']['registerCommand'](_0x4a1d94));});}['_initializeMenus'](){const _0x44f4de=_0x312fe2;this[_0x44f4de(0x1a9)]['mergeMenu'](j);}};function _0x3324(_0x54b3f1,_0x12656e){_0x54b3f1=_0x54b3f1-0x148;const _0x35303d=_0x3530();let _0x332431=_0x35303d[_0x54b3f1];return _0x332431;}M=y([v(0x0,n[_0x312fe2(0x1b4)]),v(0x1,a[_0x312fe2(0x23d)])],M);var N=_0x312fe2(0x181),P=_0x312fe2(0x1bd);let F=class extends n[_0x312fe2(0x185)]{constructor(_0x4677c3=p,_0x311a29,_0x31a238,_0x49e531,_0x527a26,_0x5f4cb1){const _0x5f08bd=_0x312fe2;super(),this['_config']=_0x4677c3,this[_0x5f08bd(0x1c0)]=_0x311a29,this['_configService']=_0x31a238,this[_0x5f08bd(0x234)]=_0x49e531,this[_0x5f08bd(0x15c)]=_0x527a26,this[_0x5f08bd(0x1d8)]=_0x5f4cb1;let {..._0x3821e8}=(0x0,n[_0x5f08bd(0x19b)])({},p,this['_config']);this[_0x5f08bd(0x23b)][_0x5f08bd(0x15b)](f,_0x3821e8);}async['onStarting'](){const _0x2831cc=_0x312fe2;let _0x26af94=[[O],[S],[M]];this[_0x2831cc(0x1c0)]['has'](u['ISocketService'])||_0x26af94[_0x2831cc(0x21d)]([u[_0x2831cc(0x203)],{'useClass':u[_0x2831cc(0x205)]}]),_0x26af94[_0x2831cc(0x1c7)](_0x3dddc4=>this['_injector'][_0x2831cc(0x247)](_0x3dddc4)),this['_injector'][_0x2831cc(0x158)](O),this[_0x2831cc(0x1c0)][_0x2831cc(0x158)](S),this[_0x2831cc(0x1c0)][_0x2831cc(0x158)](M);}};_(F,'pluginName',_0x312fe2(0x21c)),_(F,_0x312fe2(0x177),N),_(F,'version',P),F=y([(0x0,n[_0x312fe2(0x1e0)])(r['UniverMCPPlugin']),v(0x1,(0x0,n[_0x312fe2(0x231)])(n[_0x312fe2(0x228)])),v(0x2,n[_0x312fe2(0x163)]),v(0x3,a[_0x312fe2(0x15e)]),v(0x4,n['ILocalStorageService']),v(0x5,(0x0,n[_0x312fe2(0x231)])(n['LocaleService']))],F),exports[_0x312fe2(0x21b)]=d,Object[_0x312fe2(0x1a7)](exports,'MCPConfigUIController',{'enumerable':!0x0,'get':function(){return S;}}),Object[_0x312fe2(0x1a7)](exports,_0x312fe2(0x188),{'enumerable':!0x0,'get':function(){return O;}}),exports['MCPStatusDisplay']=D,Object['defineProperty'](exports,'MCPUIMenuController',{'enumerable':!0x0,'get':function(){return M;}}),exports[_0x312fe2(0x246)]=C,Object[_0x312fe2(0x1a7)](exports,_0x312fe2(0x15d),{'enumerable':!0x0,'get':function(){return F;}}),exports[_0x312fe2(0x17a)]=e,exports[_0x312fe2(0x148)]=t;
|
|
1
|
+
const _0x138e5e=_0x455a;(function(_0x145ad9,_0x39201f){const _0x5bb0b3=_0x455a,_0x51c5be=_0x145ad9();while(!![]){try{const _0x102e56=parseInt(_0x5bb0b3(0x145))/0x1+-parseInt(_0x5bb0b3(0x1b4))/0x2*(parseInt(_0x5bb0b3(0x117))/0x3)+-parseInt(_0x5bb0b3(0x17e))/0x4+parseInt(_0x5bb0b3(0x1d1))/0x5+parseInt(_0x5bb0b3(0x196))/0x6+parseInt(_0x5bb0b3(0x17a))/0x7*(parseInt(_0x5bb0b3(0x1ec))/0x8)+-parseInt(_0x5bb0b3(0x130))/0x9;if(_0x102e56===_0x39201f)break;else _0x51c5be['push'](_0x51c5be['shift']());}catch(_0x21621a){_0x51c5be['push'](_0x51c5be['shift']());}}}(_0xc702,0xe6ff2),Object[_0x138e5e(0x16a)](exports,Symbol['toStringTag'],{'value':_0x138e5e(0x1c4)}));const e=require('./locale/en-US.js'),t=require('./locale/zh-CN.js');let n=require('@univerjs/core'),r=require('@univerjs-pro/mcp'),i=require('@univerjs/design'),a=require('@univerjs/ui'),o=require('rxjs'),s=require('@univerjs/icons'),c=require('react'),l=require('react/jsx-runtime'),u=require('@univerjs/network');function d(_0xbdc80e){const _0x2ccf62=_0x138e5e;var _0x8e39c4,_0x1d9436;let {mcpCoreConfig:_0x44c6f6,onSave:_0x141112,loading:_0x5b2ed0=!0x1,config:_0x3f6eac,connectionStatus$:_0xedd980,connectionError$:_0x5b19c9,currentApiKey$:_0x22ac79,currentSessionId$:_0x1685b3}=_0xbdc80e,_0x2211ab=(0x0,a['useDependency'])(n[_0x2ccf62(0x155)]),_0x548cd3=(0x0,a[_0x2ccf62(0x140)])(_0xedd980,r[_0x2ccf62(0x1ef)][_0x2ccf62(0x1be)]),_0x5ac024=(0x0,a['useObservable'])(_0x5b19c9,r[_0x2ccf62(0x1a2)][_0x2ccf62(0x194)]),_0x41a797=(0x0,a[_0x2ccf62(0x140)])(_0x1685b3,''),[_0x39e287,_0x16a77b]=(0x0,c['useState'])((0x0,a[_0x2ccf62(0x140)])(_0x22ac79,'')||''),_0x869418=_0x3f6eac[_0x2ccf62(0x134)]&&_0x44c6f6['mcpServerUrl']&&(_0x44c6f6[_0x2ccf62(0x1f8)]['includes'](_0x2ccf62(0x1f0))||_0x44c6f6[_0x2ccf62(0x1f8)][_0x2ccf62(0x178)](_0x2ccf62(0x13e))),_0x57c0bb=(_0x8e39c4=_0x44c6f6[_0x2ccf62(0x1f8)])==null?void 0x0:_0x8e39c4[_0x2ccf62(0x178)](_0x2ccf62(0x1f0)),_0x1b9d90=(_0x1d9436=_0x44c6f6[_0x2ccf62(0x1f8)])==null?void 0x0:_0x1d9436[_0x2ccf62(0x178)](_0x2ccf62(0x13e)),_0x3303b3=_0x57c0bb?'https://console.univer.plus':_0x2ccf62(0x163),_0x1ad318=_0x3f6eac[_0x2ccf62(0x134)]&&(_0x57c0bb||_0x1b9d90),[_0x1f96e2,_0x741c28]=(0x0,c['useState'])(!_0x39e287[_0x2ccf62(0x1c6)]()),_0x6c36ea=(_0x40e8b9,_0x307184)=>{const _0x5a6c39=_0x2ccf62;if(_0x307184===r[_0x5a6c39(0x1a2)][_0x5a6c39(0x132)])return _0x5a6c39(0x14e);switch(_0x40e8b9){case r['MCPConnectionStatus'][_0x5a6c39(0x191)]:return _0x5a6c39(0x193);case r['MCPConnectionStatus'][_0x5a6c39(0x133)]:case r['MCPConnectionStatus'][_0x5a6c39(0x1c5)]:return _0x5a6c39(0x18a);case r[_0x5a6c39(0x1ef)][_0x5a6c39(0x199)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x25248f=(_0x450a37,_0x48bc50)=>{const _0x3770a3=_0x2ccf62;if(_0x48bc50===r[_0x3770a3(0x1a2)]['UNAUTHORIZED'])return _0x3770a3(0x1d7);switch(_0x450a37){case r['MCPConnectionStatus']['CONNECTED']:return _0x3770a3(0x1de);case r[_0x3770a3(0x1ef)][_0x3770a3(0x133)]:case r['MCPConnectionStatus']['RETRYING']:return'univer-bg-blue-500';case r[_0x3770a3(0x1ef)][_0x3770a3(0x199)]:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x5b1870=_0x48c30d=>{const _0x21762b=_0x2ccf62;switch(_0x48c30d){case r[_0x21762b(0x1ef)][_0x21762b(0x191)]:return _0x2211ab['t'](_0x21762b(0x1ac));case r[_0x21762b(0x1ef)][_0x21762b(0x133)]:return _0x2211ab['t'](_0x21762b(0x137));case r[_0x21762b(0x1ef)][_0x21762b(0x199)]:return _0x2211ab['t'](_0x21762b(0x1fa));case r['MCPConnectionStatus'][_0x21762b(0x1c5)]:return _0x2211ab['t'](_0x21762b(0x141));default:return _0x2211ab['t'](_0x21762b(0x18e));}},_0x309a61=_0x1ea322=>{const _0x408d51=_0x2ccf62;switch(_0x1ea322){case r[_0x408d51(0x1a2)][_0x408d51(0x132)]:return _0x2211ab['t'](_0x408d51(0x1ce));case r[_0x408d51(0x1a2)][_0x408d51(0x1a8)]:return _0x2211ab['t'](_0x408d51(0x17c));case r[_0x408d51(0x1a2)][_0x408d51(0x12a)]:return _0x2211ab['t'](_0x408d51(0x166));case r[_0x408d51(0x1a2)][_0x408d51(0x165)]:return _0x2211ab['t'](_0x408d51(0x136));default:return'';}},_0x583410=(0x0,c[_0x2ccf62(0x1d9)])(()=>{_0x141112({..._0x44c6f6,'apiKey':_0x39e287['trim'](),'enableAuth':!0x0});},[_0x44c6f6,_0x39e287,!0x0,_0x141112]),_0x5c1a0a=_0x39e287[_0x2ccf62(0x1c6)]()['length']>0x0;return(0x0,l[_0x2ccf62(0x198)])('div',{'className':_0x2ccf62(0x1a6),'children':[(0x0,l[_0x2ccf62(0x15b)])(_0x2ccf62(0x1bb),{'className':_0x2ccf62(0x1ae),'children':(0x0,l[_0x2ccf62(0x198)])('div',{'className':_0x2ccf62(0x15f),'children':[(0x0,l[_0x2ccf62(0x15b)])(_0x2ccf62(0x1bb),{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':(0x0,l['jsx'])(_0x2ccf62(0x164),{'className':'univer-text-white','children':'⚙'})}),(0x0,l[_0x2ccf62(0x15b)])(_0x2ccf62(0x1bb),{'children':(0x0,l[_0x2ccf62(0x15b)])('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x2211ab['t'](_0x2ccf62(0x1f9))})})]})}),(0x0,l[_0x2ccf62(0x198)])(_0x2ccf62(0x1bb),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[(0x0,l[_0x2ccf62(0x15b)])(_0x2ccf62(0x1bb),{'className':(0x0,i[_0x2ccf62(0x210)])('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x6c36ea(_0x548cd3,_0x5ac024)),'children':(0x0,l[_0x2ccf62(0x198)])(_0x2ccf62(0x1bb),{'className':_0x2ccf62(0x12e),'children':[(0x0,l[_0x2ccf62(0x15b)])('div',{'className':(0x0,i[_0x2ccf62(0x210)])('univer-size-2\x20univer-rounded-full',_0x25248f(_0x548cd3,_0x5ac024))}),(0x0,l[_0x2ccf62(0x15b)])(_0x2ccf62(0x164),{'className':_0x2ccf62(0x212),'children':_0x5b1870(_0x548cd3)})]})}),_0x5ac024!==r['MCPConnectionError'][_0x2ccf62(0x194)]&&(_0x548cd3===r[_0x2ccf62(0x1ef)]['FAILED']||_0x5ac024===r[_0x2ccf62(0x1a2)]['UNAUTHORIZED'])&&(0x0,l[_0x2ccf62(0x15b)])(_0x2ccf62(0x1bb),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':(0x0,l['jsxs'])(_0x2ccf62(0x1bb),{'className':_0x2ccf62(0x17f),'children':[(0x0,l['jsx'])(_0x2ccf62(0x164),{'className':_0x2ccf62(0x201),'children':'⚠️'}),(0x0,l[_0x2ccf62(0x15b)])('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x309a61(_0x5ac024)})]})})]}),(0x0,l[_0x2ccf62(0x15b)])(_0x2ccf62(0x1bb),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':(0x0,l[_0x2ccf62(0x198)])(_0x2ccf62(0x1bb),{'className':_0x2ccf62(0x16d),'children':[(0x0,l[_0x2ccf62(0x198)])(_0x2ccf62(0x1bb),{'className':_0x2ccf62(0x1d6),'children':[(0x0,l[_0x2ccf62(0x198)])(_0x2ccf62(0x1a4),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[(0x0,l['jsx'])('span',{'children':'🔑'}),'\x20',_0x2211ab['t']('mcpConfig.apiKey'),(0x0,l['jsx'])(_0x2ccf62(0x164),{'className':_0x2ccf62(0x192),'children':'*'}),_0x869418&&(0x0,l[_0x2ccf62(0x15b)])('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x2211ab['t']('mcpConfig.apiApplyInfo.title'),'role':'button','onClick':()=>_0x741c28(!0x0),'children':(0x0,l['jsx'])(s['HelpIcon'],{})})]}),(0x0,l[_0x2ccf62(0x15b)])(i[_0x2ccf62(0x187)],{'type':_0x2ccf62(0x123),'placeholder':_0x2211ab['t'](_0x2ccf62(0x147)),'value':_0x39e287,'disabled':_0x5b2ed0,'autoComplete':'off','onChange':_0x16a77b}),(0x0,l[_0x2ccf62(0x15b)])('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x2211ab['t']('mcpConfig.apiKeyHint')})]}),_0x869418&&_0x1f96e2&&(0x0,l[_0x2ccf62(0x198)])('div',{'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,l[_0x2ccf62(0x15b)])('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':'button','onClick':()=>_0x741c28(!0x1),'children':(0x0,l['jsx'])(s[_0x2ccf62(0x1f4)],{'className':_0x2ccf62(0x1da)})}),(0x0,l[_0x2ccf62(0x198)])(_0x2ccf62(0x1bb),{'className':_0x2ccf62(0x1c1),'children':[(0x0,l[_0x2ccf62(0x15b)])(_0x2ccf62(0x1bb),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':(0x0,l[_0x2ccf62(0x15b)])(_0x2ccf62(0x164),{'className':_0x2ccf62(0x11a),'children':'🚀'})}),(0x0,l[_0x2ccf62(0x198)])('div',{'className':_0x2ccf62(0x1e9),'children':[(0x0,l[_0x2ccf62(0x15b)])('h4',{'className':_0x2ccf62(0x11d),'children':_0x2211ab['t'](_0x2ccf62(0x1e1))}),(0x0,l[_0x2ccf62(0x15b)])('p',{'className':_0x2ccf62(0x195),'children':_0x2211ab['t'](_0x2ccf62(0x11b))}),(0x0,l[_0x2ccf62(0x15b)])(_0x2ccf62(0x1bb),{'className':_0x2ccf62(0x16e),'children':_0x1ad318&&(0x0,l[_0x2ccf62(0x198)])('a',{'className':_0x2ccf62(0x1ab),'href':_0x3303b3,'target':_0x2ccf62(0x14d),'rel':_0x2ccf62(0x120),'children':[(0x0,l[_0x2ccf62(0x15b)])(_0x2ccf62(0x164),{'children':'🤖'}),_0x2211ab['t'](_0x2ccf62(0x1b2)),(0x0,l[_0x2ccf62(0x15b)])(_0x2ccf62(0x164),{'className':_0x2ccf62(0x18f),'children':'↗'})]})}),(0x0,l[_0x2ccf62(0x198)])(_0x2ccf62(0x1bb),{'className':_0x2ccf62(0x158),'children':['✨','\x20',_0x2211ab['t'](_0x2ccf62(0x1cf))]})]})]})]}),_0x3f6eac[_0x2ccf62(0x134)]&&(0x0,l[_0x2ccf62(0x198)])('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[(0x0,l[_0x2ccf62(0x198)])('h4',{'className':_0x2ccf62(0x1cb),'children':[(0x0,l['jsx'])(_0x2ccf62(0x164),{'children':'🔗'}),'\x20',_0x2211ab['t']('mcpConfig.connectionInfo')]}),(0x0,l['jsxs'])('div',{'className':'univer-space-y-4','children':[(0x0,l[_0x2ccf62(0x198)])(_0x2ccf62(0x1bb),{'className':_0x2ccf62(0x138),'children':[(0x0,l['jsx'])('p',{'className':_0x2ccf62(0x15d),'children':_0x2211ab['t'](_0x2ccf62(0x1ba))}),(0x0,l['jsxs'])(_0x2ccf62(0x1bb),{'className':_0x2ccf62(0x1d6),'children':[(0x0,l[_0x2ccf62(0x15b)])(_0x2ccf62(0x1bb),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x2211ab['t'](_0x2ccf62(0x167))}),(0x0,l[_0x2ccf62(0x198)])(_0x2ccf62(0x1bb),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[(0x0,l[_0x2ccf62(0x198)])('div',{'className':_0x2ccf62(0x12e),'children':[(0x0,l[_0x2ccf62(0x15b)])(_0x2ccf62(0x164),{'className':_0x2ccf62(0x19b),'children':'1'}),_0x2211ab['t'](_0x2ccf62(0x1b1))]}),(0x0,l['jsxs'])('div',{'className':_0x2ccf62(0x12e),'children':[(0x0,l[_0x2ccf62(0x15b)])(_0x2ccf62(0x164),{'className':_0x2ccf62(0x19b),'children':'2'}),_0x2211ab['t'](_0x2ccf62(0x1a1))]}),(0x0,l[_0x2ccf62(0x198)])(_0x2ccf62(0x1bb),{'className':_0x2ccf62(0x12e),'children':[(0x0,l[_0x2ccf62(0x15b)])(_0x2ccf62(0x164),{'className':_0x2ccf62(0x19b),'children':'3'}),_0x2211ab['t'](_0x2ccf62(0x19a))]})]})]})]}),(0x0,l['jsxs'])(_0x2ccf62(0x1bb),{'className':'univer-space-y-2','children':[(0x0,l[_0x2ccf62(0x15b)])(_0x2ccf62(0x1bb),{'className':_0x2ccf62(0x19d),'children':_0x2ccf62(0x16c)}),(0x0,l[_0x2ccf62(0x15b)])('div',{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':(0x0,l[_0x2ccf62(0x15b)])(_0x2ccf62(0x204),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x2ccf62(0x179)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x41a797||_0x2ccf62(0x1a0)),'type':_0x2ccf62(0x181),'headers':{'Authorization':_0x2ccf62(0x13c)+(_0x39e287||_0x2ccf62(0x131))}}}},null,0x2)})})]}),(0x0,l[_0x2ccf62(0x198)])(_0x2ccf62(0x1bb),{'className':'univer-space-y-3','children':[(0x0,l[_0x2ccf62(0x15b)])('div',{'className':_0x2ccf62(0x19d),'children':_0x2211ab['t']('mcpConfig.configParameters')}),(0x0,l[_0x2ccf62(0x198)])(_0x2ccf62(0x1bb),{'className':_0x2ccf62(0x1d6),'children':[(0x0,l['jsxs'])(_0x2ccf62(0x1bb),{'className':_0x2ccf62(0x159),'children':[(0x0,l['jsx'])(_0x2ccf62(0x1bb),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),(0x0,l[_0x2ccf62(0x198)])('div',{'className':_0x2ccf62(0x1fb),'children':[(0x0,l[_0x2ccf62(0x15b)])('div',{'className':_0x2ccf62(0x1ad),'children':_0x2ccf62(0x15e)}),(0x0,l[_0x2ccf62(0x15b)])(_0x2ccf62(0x1bb),{'className':_0x2ccf62(0x14a),'children':_0x2211ab['t']('mcpConfig.sessionIdDescription')})]})]}),(0x0,l['jsxs'])(_0x2ccf62(0x1bb),{'className':_0x2ccf62(0x159),'children':[(0x0,l[_0x2ccf62(0x15b)])(_0x2ccf62(0x1bb),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),(0x0,l[_0x2ccf62(0x198)])(_0x2ccf62(0x1bb),{'className':_0x2ccf62(0x1fb),'children':[(0x0,l['jsx'])(_0x2ccf62(0x1bb),{'className':_0x2ccf62(0x1ad),'children':_0x2ccf62(0x208)}),(0x0,l[_0x2ccf62(0x15b)])(_0x2ccf62(0x1bb),{'className':_0x2ccf62(0x14a),'children':_0x2211ab['t'](_0x2ccf62(0x177))})]})]})]})]})]})]}),(0x0,l[_0x2ccf62(0x15b)])(i[_0x2ccf62(0x19c)],{'onClick':_0x583410,'disabled':!_0x5c1a0a||_0x5b2ed0,'className':_0x2ccf62(0x118),'children':_0x5b2ed0?(0x0,l[_0x2ccf62(0x198)])(_0x2ccf62(0x164),{'className':_0x2ccf62(0x12e),'children':[(0x0,l[_0x2ccf62(0x15b)])(_0x2ccf62(0x164),{'children':'⟲'}),_0x2211ab['t']('mcpConfig.saving')]}):(0x0,l[_0x2ccf62(0x198)])('span',{'className':_0x2ccf62(0x12e),'children':[(0x0,l['jsx'])(s[_0x2ccf62(0x1d4)],{}),_0x2211ab['t']('mcpConfig.save')]})}),(0x0,l['jsx'])('div',{'className':_0x2ccf62(0x128),'children':(0x0,l['jsxs'])(_0x2ccf62(0x1bb),{'className':_0x2ccf62(0x1e2),'children':[(0x0,l['jsx'])(_0x2ccf62(0x164),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),(0x0,l['jsxs'])(_0x2ccf62(0x1bb),{'className':_0x2ccf62(0x205),'children':[(0x0,l[_0x2ccf62(0x15b)])(_0x2ccf62(0x1bb),{'className':_0x2ccf62(0x189),'children':'Configuration\x20Notes:'}),(0x0,l[_0x2ccf62(0x198)])(_0x2ccf62(0x1bb),{'children':['•',_0x2211ab['t'](_0x2ccf62(0x1ee))]}),(0x0,l[_0x2ccf62(0x198)])('div',{'children':['•',_0x2211ab['t'](_0x2ccf62(0x203))]})]})]})})]})})]});}const f=_0x138e5e(0x1bf),p={'showDeveloperTools':!0x1,'showStatus':!0x0};function m(_0x6513d){'@babel/helpers - typeof';const _0x5a875b=_0x138e5e;return m=typeof Symbol==_0x5a875b(0x1a7)&&typeof Symbol['iterator']==_0x5a875b(0x14b)?function(_0x1f881d){return typeof _0x1f881d;}:function(_0x4a57f4){const _0x5b7b0d=_0x5a875b;return _0x4a57f4&&typeof Symbol=='function'&&_0x4a57f4['constructor']===Symbol&&_0x4a57f4!==Symbol[_0x5b7b0d(0x1bc)]?_0x5b7b0d(0x14b):typeof _0x4a57f4;},m(_0x6513d);}function h(_0xe5a9c5,_0xd6123c){const _0xb5ce31=_0x138e5e;if(m(_0xe5a9c5)!='object'||!_0xe5a9c5)return _0xe5a9c5;var _0x3e2559=_0xe5a9c5[Symbol[_0xb5ce31(0x1b6)]];if(_0x3e2559!==void 0x0){var _0x343a3c=_0x3e2559['call'](_0xe5a9c5,_0xd6123c||_0xb5ce31(0x20b));if(m(_0x343a3c)!='object')return _0x343a3c;throw TypeError(_0xb5ce31(0x1e5));}return(_0xd6123c===_0xb5ce31(0x20e)?String:Number)(_0xe5a9c5);}function g(_0x1a2369){const _0x479da3=_0x138e5e;var _0x1c1cae=h(_0x1a2369,_0x479da3(0x20e));return m(_0x1c1cae)=='symbol'?_0x1c1cae:_0x1c1cae+'';}function _(_0x39cb25,_0x5d655e,_0x536b71){return(_0x5d655e=g(_0x5d655e))in _0x39cb25?Object['defineProperty'](_0x39cb25,_0x5d655e,{'value':_0x536b71,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x39cb25[_0x5d655e]=_0x536b71,_0x39cb25;}function v(_0xf03e1c,_0xe348b5){return function(_0x26574c,_0x4bbb89){_0xe348b5(_0x26574c,_0x4bbb89,_0xf03e1c);};}function y(_0x3fc3bd,_0x55f337,_0x5f2f1e,_0x54483d){const _0x2a78f9=_0x138e5e;var _0x512e84=arguments[_0x2a78f9(0x183)],_0x275e50=_0x512e84<0x3?_0x55f337:_0x54483d===null?_0x54483d=Object[_0x2a78f9(0x19f)](_0x55f337,_0x5f2f1e):_0x54483d,_0x4895f7;if(typeof Reflect==_0x2a78f9(0x1bd)&&typeof Reflect[_0x2a78f9(0x206)]==_0x2a78f9(0x1a7))_0x275e50=Reflect[_0x2a78f9(0x206)](_0x3fc3bd,_0x55f337,_0x5f2f1e,_0x54483d);else{for(var _0x1481ac=_0x3fc3bd['length']-0x1;_0x1481ac>=0x0;_0x1481ac--)(_0x4895f7=_0x3fc3bd[_0x1481ac])&&(_0x275e50=(_0x512e84<0x3?_0x4895f7(_0x275e50):_0x512e84>0x3?_0x4895f7(_0x55f337,_0x5f2f1e,_0x275e50):_0x4895f7(_0x55f337,_0x5f2f1e))||_0x275e50);}return _0x512e84>0x3&&_0x275e50&&Object[_0x2a78f9(0x16a)](_0x55f337,_0x5f2f1e,_0x275e50),_0x275e50;}const b=_0x138e5e(0x1fd),x=_0x138e5e(0x1a9);let S=class extends n[_0x138e5e(0x11e)]{constructor(_0x126409,_0x19b779,_0x321022,_0x32a314,_0x83ebd5,_0x5d415c,_0x1b71ef,_0x25a2a4,_0x748030,_0x209600){const _0x40ae63=_0x138e5e;super(),this[_0x40ae63(0x200)]=_0x126409,this[_0x40ae63(0x1eb)]=_0x19b779,this[_0x40ae63(0x1c3)]=_0x321022,this[_0x40ae63(0x13b)]=_0x32a314,this[_0x40ae63(0x1f7)]=_0x83ebd5,this[_0x40ae63(0x1b9)]=_0x5d415c,this[_0x40ae63(0x1b7)]=_0x1b71ef,this[_0x40ae63(0x1d0)]=_0x25a2a4,this['_logService']=_0x748030,this[_0x40ae63(0x1b3)]=_0x209600,_(this,'_loading$',new o['BehaviorSubject'](!0x1)),_(this,'_mcpCoreConfig$',new o[(_0x40ae63(0x18d))]({})),_(this,_0x40ae63(0x1dd),new o[(_0x40ae63(0x18d))]({})),_(this,'_apiKey$',new o[(_0x40ae63(0x18d))]('')),_(this,_0x40ae63(0x1a3),async _0x118efd=>{const _0x3ebc68=_0x40ae63;this[_0x3ebc68(0x190)]['next'](!0x0);try{var _0x94abe9,_0x2bad33;let _0x1dd7c1=await this[_0x3ebc68(0x1f2)](_0x118efd);if(!_0x1dd7c1[_0x3ebc68(0x144)]){this[_0x3ebc68(0x1b9)][_0x3ebc68(0x188)]({'type':i[_0x3ebc68(0x20d)][_0x3ebc68(0x135)],'content':_0x1dd7c1[_0x3ebc68(0x1f3)]||this[_0x3ebc68(0x1d0)]['t'](_0x3ebc68(0x209))});return;}_0x118efd[_0x3ebc68(0x1f1)]?await this['_localStorageService'][_0x3ebc68(0x1c7)](b,_0x118efd[_0x3ebc68(0x1f1)]['trim']()):await this[_0x3ebc68(0x13b)]['removeItem'](b),this[_0x3ebc68(0x1e3)]['next'](((_0x94abe9=_0x118efd['apiKey'])==null?void 0x0:_0x94abe9[_0x3ebc68(0x1c6)]())||''),this[_0x3ebc68(0x1b3)]['__setCustomHeaders']({'Authorization':_0x3ebc68(0x13c)+((_0x2bad33=_0x118efd['apiKey'])==null?void 0x0:_0x2bad33[_0x3ebc68(0x1c6)]())}),this[_0x3ebc68(0x1b9)][_0x3ebc68(0x188)]({'type':i[_0x3ebc68(0x20d)]['Success'],'content':this[_0x3ebc68(0x1d0)]['t'](_0x3ebc68(0x1fc))}),setTimeout(()=>{const _0x300b2b=_0x3ebc68;this[_0x300b2b(0x1f7)][_0x300b2b(0x12f)](x);},0x320);}catch(_0x1b69b4){this['_logService'][_0x3ebc68(0x13d)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x1b69b4),this[_0x3ebc68(0x1b9)][_0x3ebc68(0x188)]({'type':i[_0x3ebc68(0x20d)]['Error'],'content':this['_localeService']['t']('mcpConfig.configError')});}finally{this[_0x3ebc68(0x190)][_0x3ebc68(0x119)](!0x1);}}),this[_0x40ae63(0x173)](),this[_0x40ae63(0x149)](),this['_registerComponent']();}[_0x138e5e(0x156)](){const _0xded1c=_0x138e5e;let _0x577953=this[_0xded1c(0x1c3)]['getConfig'](f);_0x577953!=null&&_0x577953[_0xded1c(0x134)]&&this[_0xded1c(0x1f7)][_0xded1c(0x11f)]({'id':x,'title':{'title':this['_localeService']['t'](_0xded1c(0x12c))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x596b40=_0xded1c;this[_0x596b40(0x1f7)][_0x596b40(0x12f)](x);}});}['getCurrentConfig'](){const _0xed2ebc=_0x138e5e;return this[_0xed2ebc(0x1c2)][_0xed2ebc(0x15c)];}['_registerComponent'](){const _0x1b3318=_0x138e5e;this[_0x1b3318(0x1db)](this['_componentManager'][_0x1b3318(0x1e0)]('MCPConfigPanel',this[_0x1b3318(0x19e)]()));}[_0x138e5e(0x19e)](){const _0x4f871b=_0x138e5e;return(0x0,a[_0x4f871b(0x146)])(()=>{const _0x162d1c=_0x4f871b;var _0x43fedb,_0x5809c1,_0x5693cc;return(0x0,l['jsx'])(d,{'config':this['_config$'][_0x162d1c(0x15c)],'mcpCoreConfig':this[_0x162d1c(0x1c2)]['value'],'currentApiKey$':this[_0x162d1c(0x1e3)],'onSave':this[_0x162d1c(0x1a3)],'loading':this[_0x162d1c(0x190)]['value'],'connectionStatus$':(_0x43fedb=this[_0x162d1c(0x1b3)])==null?void 0x0:_0x43fedb[_0x162d1c(0x16f)],'connectionError$':(_0x5809c1=this[_0x162d1c(0x1b3)])==null?void 0x0:_0x5809c1[_0x162d1c(0x143)],'currentSessionId$':(_0x5693cc=this['_mcpConnectionController'])==null?void 0x0:_0x5693cc[_0x162d1c(0x1ca)]});},this[_0x4f871b(0x200)]);}[_0x138e5e(0x173)](){const _0x53c179=_0x138e5e;this['disposeWithMe'](this['_configService'][_0x53c179(0x1c8)](r[_0x53c179(0x1ff)])[_0x53c179(0x20a)](_0x1440c9=>{const _0x209abe=_0x53c179;this['_mcpCoreConfig$'][_0x209abe(0x119)](_0x1440c9||{});}));let _0xdb52b3=this[_0x53c179(0x1c3)][_0x53c179(0x1ed)](r['MCP_PLUGIN_CONFIG_KEY']);this[_0x53c179(0x1c2)][_0x53c179(0x119)](_0xdb52b3||{}),this['disposeWithMe'](this['_configService'][_0x53c179(0x1c8)](f)['subscribe'](_0x3c947f=>{const _0x101b47=_0x53c179;this[_0x101b47(0x1dd)]['next'](_0x3c947f||{});}));let _0x4d739e=this[_0x53c179(0x1c3)][_0x53c179(0x1ed)](f);this['_config$'][_0x53c179(0x119)](_0x4d739e||{});}async['_loadStoredApiKey'](){const _0x4cf47d=_0x138e5e;let _0x1363b1=this[_0x4cf47d(0x1c3)][_0x4cf47d(0x1ed)](f);if(!(_0x1363b1!=null&&_0x1363b1[_0x4cf47d(0x134)]))return;let _0x14f40d=await this['_localStorageService'][_0x4cf47d(0x1cc)](b);_0x14f40d&&(this[_0x4cf47d(0x1b3)][_0x4cf47d(0x1d3)]({'Authorization':'Bearer\x20'+_0x14f40d}),this[_0x4cf47d(0x1e3)][_0x4cf47d(0x119)](_0x14f40d));}async[_0x138e5e(0x1f2)](_0x458acc){const _0x56d64c=_0x138e5e;if(!_0x458acc[_0x56d64c(0x1f1)]||_0x458acc[_0x56d64c(0x1f1)][_0x56d64c(0x1c6)]()[_0x56d64c(0x183)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x56d64c(0x1d0)]['t'](_0x56d64c(0x13a))};if(_0x458acc[_0x56d64c(0x1f1)][_0x56d64c(0x1c6)]()[_0x56d64c(0x183)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x56d64c(0x1d0)]['t'](_0x56d64c(0x17d))};try{let _0x1e0423=await this[_0x56d64c(0x200)][_0x56d64c(0x1a5)](r['MCPConnectionController'])['validateApiKey'](_0x458acc[_0x56d64c(0x1f1)]['trim']());return _0x1e0423['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x1e0423[_0x56d64c(0x13d)]||this[_0x56d64c(0x1d0)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x37e96a){return console[_0x56d64c(0x1af)](_0x56d64c(0x185),_0x37e96a),{'isValid':!0x0};}}};S=y([v(0x0,(0x0,n[_0x138e5e(0x202)])(n[_0x138e5e(0x1df)])),v(0x1,a[_0x138e5e(0x1cd)]),v(0x2,n[_0x138e5e(0x160)]),v(0x3,n[_0x138e5e(0x12d)]),v(0x4,a[_0x138e5e(0x1c0)]),v(0x5,a[_0x138e5e(0x170)]),v(0x6,(0x0,n[_0x138e5e(0x202)])(a[_0x138e5e(0x182)])),v(0x7,(0x0,n[_0x138e5e(0x202)])(n['LocaleService'])),v(0x8,n[_0x138e5e(0x197)]),v(0x9,(0x0,n[_0x138e5e(0x202)])(r[_0x138e5e(0x125)]))],S);const C={'id':_0x138e5e(0x184),'type':n[_0x138e5e(0x116)][_0x138e5e(0x1c9)],'handler':async(_0x450ddb,_0x1a6c65)=>(_0x450ddb[_0x138e5e(0x1a5)](S)[_0x138e5e(0x156)](),!0x0)};function w(_0x3010a0,_0xfd54ac){const _0x362bbf=_0x138e5e;switch(_0x3010a0){case r[_0x362bbf(0x1ef)][_0x362bbf(0x1be)]:return _0x362bbf(0x127);case r[_0x362bbf(0x1ef)][_0x362bbf(0x133)]:return'mcpStatus.connecting';case r[_0x362bbf(0x1ef)][_0x362bbf(0x191)]:return _0x362bbf(0x211);case r[_0x362bbf(0x1ef)]['FAILED']:switch(_0xfd54ac){case r[_0x362bbf(0x1a2)][_0x362bbf(0x132)]:return _0x362bbf(0x152);case r[_0x362bbf(0x1a2)][_0x362bbf(0x1a8)]:return'mcpStatus.sessionOccupied';case r[_0x362bbf(0x1a2)][_0x362bbf(0x12a)]:return _0x362bbf(0x115);case r['MCPConnectionError'][_0x362bbf(0x165)]:return'mcpStatus.maxRetriesExceeded';default:return'mcpStatus.failed';}case r['MCPConnectionStatus'][_0x362bbf(0x1c5)]:return _0x362bbf(0x207);default:return _0x362bbf(0x1aa);}}function T(_0x22d205,_0xcaf80e,_0x1d1849,_0x256e6e=!0x0){const _0x658453=_0x138e5e;let _0x3f2219=w(_0x22d205,_0xcaf80e),_0x1c3b6a=_0x1d1849['t'](_0x3f2219);return _0x256e6e?_0x22d205===r[_0x658453(0x1ef)][_0x658453(0x1be)]&&_0xcaf80e===r['MCPConnectionError'][_0x658453(0x132)]?_0x1c3b6a+_0x658453(0x20f)+_0x1d1849['t']('mcpStatus.clickToConfigure'):_0x22d205===r['MCPConnectionStatus'][_0x658453(0x191)]?''+_0x1c3b6a:_0x22d205===r[_0x658453(0x1ef)][_0x658453(0x1be)]||_0x22d205===r[_0x658453(0x1ef)][_0x658453(0x199)]?_0x1c3b6a+_0x658453(0x20f)+_0x1d1849['t'](_0x658453(0x150)):_0x1c3b6a:_0x1c3b6a;}function E(_0xcaacf5){const _0x6fd318=_0x138e5e;switch(_0xcaacf5){case r[_0x6fd318(0x1ef)][_0x6fd318(0x191)]:return _0x6fd318(0x1b5);case r[_0x6fd318(0x1ef)][_0x6fd318(0x133)]:case r[_0x6fd318(0x1ef)][_0x6fd318(0x1c5)]:return _0x6fd318(0x161);case r[_0x6fd318(0x1ef)][_0x6fd318(0x199)]:case r[_0x6fd318(0x1ef)][_0x6fd318(0x1be)]:return _0x6fd318(0x192);default:return'univer-text-gray-500';}}function D(_0x1a3205){const _0x23ead0=_0x138e5e;let {status$:_0x1e5f25,error$:_0x406af5,onConfigure:_0x4ec9a5,showClickable:_0x1a0516=!0x0}=_0x1a3205,_0x6e02b8=(0x0,a[_0x23ead0(0x140)])(_0x1e5f25,r[_0x23ead0(0x1ef)][_0x23ead0(0x1be)]),_0xc04457=(0x0,a[_0x23ead0(0x140)])(_0x406af5,r[_0x23ead0(0x1a2)][_0x23ead0(0x194)]),_0x499457=(0x0,a['useDependency'])(n[_0x23ead0(0x155)]),_0x33c62b=_0x6e02b8===r[_0x23ead0(0x1ef)][_0x23ead0(0x191)];_0x6e02b8===r['MCPConnectionStatus'][_0x23ead0(0x133)]||r[_0x23ead0(0x1ef)][_0x23ead0(0x1c5)];let _0x2c6844=_0x499457['t'](w(_0x6e02b8,_0xc04457)),_0x123ae8=T(_0x6e02b8,_0xc04457,_0x499457,_0x1a0516),_0x1ebb43=E(_0x6e02b8),_0x5e1aae=_0x33c62b?(0x0,l[_0x23ead0(0x15b)])(s[_0x23ead0(0x13f)],{}):(0x0,l[_0x23ead0(0x15b)])(s['OffLineIcon'],{}),_0x5a1ef0=(0x0,c[_0x23ead0(0x1d9)])(()=>{_0x1a0516&&_0x4ec9a5&&_0x4ec9a5();},[_0x1a0516,_0x4ec9a5]);function _0x23f8e9(){const _0x5185db=_0x23ead0;return(0x0,l['jsxs'])(_0x5185db(0x1bb),{'className':(0x0,i[_0x5185db(0x210)])('univer-flex\x20univer-items-center',_0x1a0516&&_0x4ec9a5&&'univer-cursor-pointer\x20hover:univer-opacity-80'),'role':_0x5185db(0x1d5),'onClick':_0x1a0516&&_0x4ec9a5?_0x5a1ef0:void 0x0,'children':[(0x0,l[_0x5185db(0x15b)])(_0x5185db(0x1bb),{'className':(0x0,i[_0x5185db(0x210)])('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x1ebb43),'children':_0x5e1aae}),(0x0,l[_0x5185db(0x15b)])(_0x5185db(0x1bb),{'className':_0x5185db(0x14f),'children':_0x2c6844})]});}return(0x0,l[_0x23ead0(0x15b)])(i[_0x23ead0(0x1d8)],{'title':_0x123ae8,'placement':_0x23ead0(0x162),'children':_0x23f8e9()});}function _0xc702(){const _0x1cd84a=['connectInjector','mcpConfig.apiKeyPlaceholder','HEADER_MENU','_loadStoredApiKey','univer-text-xs\x20univer-text-gray-500','symbol','version','_blank','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpStatus.clickToConnect','ICommandService','mcpStatus.unauthorized','_handleConfigure','mergeMenu','LocaleService','showConfigPanel','Plugin','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univer-flex\x20univer-items-start\x20univer-gap-3','_initAutoConnect','jsx','value','univer-text-xs\x20univer-text-gray-600','univer_session_id:','univer-flex\x20univer-items-center\x20univer-gap-3','IConfigService','univer-text-yellow-500','bottom','https://console.univer.ai','span','MAX_RETRIES_EXCEEDED','mcpConfig.connectionError.networkError','mcpConfig.configStepTitle','_initializeCommands','MCP_UI_PLUGIN','defineProperty','MenuIcon','MCP\x20Configuration','univer-space-y-5','univer-flex\x20univer-flex-wrap\x20univer-gap-2','connectionStatus$','IMessageService','MCPStatusDisplay','UniverMCPUIPlugin','_initConfigSync','_initializeMenus','_menuManagerService','enableAutoConnect','mcpConfig.authorizationDescription','includes','stringify','7gmKJme','registerCommand','mcpConfig.connectionError.sessionOccupied','mcpConfig.validation.apiKeyTooShort','5332176uxNWeM','univer-flex\x20univer-items-start\x20univer-gap-2','MCPUIMenuController','http','ComponentManager','length','mcp-ui.command.openConfigPanel','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','forEach','Input','show','univer-font-medium','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','OTHERS','BUTTON','BehaviorSubject','mcpConfig.connectionStatus.disconnected','univer-text-gray-400','_loading$','CONNECTED','univer-text-red-500','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','NONE','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','9597840djeuZP','ILogService','jsxs','FAILED','mcpConfig.configStep3','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','Button','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','_createConfigPanelComponent','getOwnPropertyDescriptor','<SESSION_ID>','mcpConfig.configStep2','MCPConnectionError','_handleConfigSave','label','get','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','function','SESSION_ID_OCCUPIED','mcp-config-dialog','mcpStatus.unknown','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','mcpConfig.connectionStatus.connected','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','warn','merge','mcpConfig.configStep1','mcpConfig.apiApplyInfo.univerAiLabel','_mcpConnectionController','43714PEszKy','univer-text-green-500','toPrimitive','_componentManager','ISocketService','_messageService','mcpConfig.configInstructions','div','prototype','object','DISCONNECTED','mcp-ui.config','IDialogService','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','_mcpCoreConfig$','_configService','Module','RETRYING','trim','setItem','subscribeConfigValue$','COMMAND','sessionId$','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','getItem','IUIPartsService','mcpConfig.connectionError.unauthorized','mcpConfig.apiApplyInfo.getStarted','_localeService','6065970ysxlJp','WebSocketService','__setCustomHeaders','CheckMarkIcon','button','univer-space-y-2','univer-bg-red-500','Tooltip','useCallback','univer-size-4','disposeWithMe','MCPConfigUIController','_config$','univer-bg-green-500','Injector','register','mcpConfig.apiApplyInfo.title','univer-flex\x20univer-gap-3','_apiKey$','zhCN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','MCPConfigPanel','1.0.0-alpha.2','BuiltInUIPart','univer-flex-1','_config','_uiPartsService','12084664mDYFSu','getConfig','mcpConfig.note1','MCPConnectionStatus','univer.plus','apiKey','_validateConfig','errorMessage','CloseIcon','@univerjs-pro/mcp-ui','setConfig','_dialogService','mcpServerUrl','mcpConfig.description','mcpConfig.connectionStatus.failed','univer-min-w-0\x20univer-flex-1','mcpConfig.configSaved','mcp.apiKey','has','MCP_PLUGIN_CONFIG_KEY','_injector','univer-shrink-0\x20univer-text-red-500','Inject','mcpConfig.note2','pre','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','decorate','mcpStatus.retrying','Authorization:','mcpConfig.validation.invalidConfig','subscribe','default','_connectionController','MessageType','string','\x20-\x20','clsx','mcpStatus.connected','univer-text-sm\x20univer-font-medium','_commandService','registerComponent','mcpStatus.networkError','CommandType','99vbHQCC','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','next','univer-text-blue-600','mcpConfig.apiApplyInfo.description','DependentOn','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Disposable','open','noopener\x20noreferrer','showStatus','MenuItemType','text','onStarting','MCPConnectionController','push','mcpStatus.disconnected','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','pluginName','NETWORK_ERROR','_initStatusComponent','mcpConfig.title','ILocalStorageService','univer-flex\x20univer-items-center\x20univer-gap-2','close','25508115vqJutN','<API_KEY>','UNAUTHORIZED','CONNECTING','showDeveloperTools','Error','mcpConfig.connectionError.maxRetriesExceeded','mcpConfig.connectionStatus.connecting','univer-space-y-3','MCPConnectionUIController','mcpConfig.validation.apiKeyRequired','_localStorageService','Bearer\x20','error','univer.ai','OnLineIcon','useObservable','mcpConfig.connectionStatus.retrying','enUS','connectionError$','isValid','1511305ecZcJE'];_0xc702=function(){return _0x1cd84a;};return _0xc702();}let O=class extends n[_0x138e5e(0x11e)]{constructor(_0x4b8076,_0x5183af,_0x2cb2bc,_0x4382c6){const _0x5045a2=_0x138e5e;super(),this[_0x5045a2(0x200)]=_0x4b8076,this[_0x5045a2(0x20c)]=_0x5183af,this['_uiPartsService']=_0x2cb2bc,this['_configService']=_0x4382c6,this['_initAutoConnect'](),this['_initStatusComponent']();}[_0x138e5e(0x15a)](){const _0x508461=_0x138e5e;let _0x19ac26=this[_0x508461(0x1c3)][_0x508461(0x1ed)](f);_0x19ac26!=null&&_0x19ac26[_0x508461(0x134)]&&(this['_connectionController'][_0x508461(0x176)]=!0x1);}[_0x138e5e(0x12b)](){const _0x4c4551=_0x138e5e;let _0x60aee2=this[_0x4c4551(0x1c3)]['getConfig'](f);(_0x60aee2==null?void 0x0:_0x60aee2[_0x4c4551(0x121)])!==!0x1&&this[_0x4c4551(0x1db)](this[_0x4c4551(0x1eb)][_0x4c4551(0x114)](a[_0x4c4551(0x1e8)][_0x4c4551(0x148)],()=>{const _0x4b1791=_0x4c4551;var _0x418784;return(0x0,a[_0x4b1791(0x146)])(k({'status$':this['_connectionController']['connectionStatus$'],'error$':this[_0x4b1791(0x20c)][_0x4b1791(0x143)],'onConfigure':()=>this[_0x4b1791(0x153)](),'showClickable':(_0x418784=_0x60aee2==null?void 0x0:_0x60aee2[_0x4b1791(0x134)])==null?!0x1:_0x418784}),this[_0x4b1791(0x200)]);}));}[_0x138e5e(0x153)](){const _0xd14be4=_0x138e5e;this[_0xd14be4(0x200)][_0xd14be4(0x1a5)](S)[_0xd14be4(0x156)]();}};O=y([v(0x0,(0x0,n['Inject'])(n[_0x138e5e(0x1df)])),v(0x1,(0x0,n[_0x138e5e(0x202)])(r[_0x138e5e(0x125)])),v(0x2,a['IUIPartsService']),v(0x3,n[_0x138e5e(0x160)])],O);function _0x455a(_0x369736,_0x1b68ba){_0x369736=_0x369736-0x114;const _0xc70233=_0xc702();let _0x455a6b=_0xc70233[_0x369736];return _0x455a6b;}function k(_0x4c313f){let {status$:_0x19db1c,error$:_0x433440,onConfigure:_0x2e14a3,showClickable:_0x277950}=_0x4c313f;return function(){const _0x5da6c1=_0x455a;return(0x0,l[_0x5da6c1(0x15b)])(D,{'status$':_0x19db1c,'error$':_0x433440,'onConfigure':_0x2e14a3,'showClickable':_0x277950});};}function A(_0x2af830){const _0x1e437a=_0x138e5e;return{'id':C['id'],'type':a[_0x1e437a(0x122)][_0x1e437a(0x18c)],'icon':_0x1e437a(0x16b),'title':_0x1e437a(0x12c),'tooltip':_0x1e437a(0x12c)};}const j={[a['RibbonStartGroup'][_0x138e5e(0x18b)]]:{[C['id']]:{'order':0xa,'menuItemFactory':A}}};let M=class extends n['Disposable']{constructor(_0x2db9c5,_0x4436e2){const _0x4a034d=_0x138e5e;super(),this[_0x4a034d(0x213)]=_0x2db9c5,this[_0x4a034d(0x175)]=_0x4436e2,this[_0x4a034d(0x168)](),this[_0x4a034d(0x174)]();}[_0x138e5e(0x168)](){const _0x3633f4=_0x138e5e;[C][_0x3633f4(0x186)](_0xcc0c22=>{const _0x92ccfd=_0x3633f4;this['disposeWithMe'](this[_0x92ccfd(0x213)][_0x92ccfd(0x17b)](_0xcc0c22));});}[_0x138e5e(0x174)](){const _0x5822d8=_0x138e5e;this['_menuManagerService'][_0x5822d8(0x154)](j);}};M=y([v(0x0,n[_0x138e5e(0x151)]),v(0x1,a['IMenuManagerService'])],M);var N=_0x138e5e(0x1f5),P=_0x138e5e(0x1e7);let F=class extends n[_0x138e5e(0x157)]{constructor(_0x28b7d8=p,_0x9f724c,_0x309446,_0x9039c8,_0x54c48c,_0x13702b){const _0x2070ed=_0x138e5e;super(),this[_0x2070ed(0x1ea)]=_0x28b7d8,this[_0x2070ed(0x200)]=_0x9f724c,this[_0x2070ed(0x1c3)]=_0x309446,this[_0x2070ed(0x1eb)]=_0x9039c8,this[_0x2070ed(0x13b)]=_0x54c48c,this[_0x2070ed(0x1d0)]=_0x13702b;let {..._0x1e5155}=(0x0,n[_0x2070ed(0x1b0)])({},p,this[_0x2070ed(0x1ea)]);this[_0x2070ed(0x1c3)][_0x2070ed(0x1f6)](f,_0x1e5155);}async[_0x138e5e(0x124)](){const _0x49e3c9=_0x138e5e;let _0x22b0e0=[[O],[S],[M]];this[_0x49e3c9(0x200)][_0x49e3c9(0x1fe)](u[_0x49e3c9(0x1b8)])||_0x22b0e0[_0x49e3c9(0x126)]([u['ISocketService'],{'useClass':u[_0x49e3c9(0x1d2)]}]),_0x22b0e0['forEach'](_0x77e1f0=>this[_0x49e3c9(0x200)]['add'](_0x77e1f0)),this[_0x49e3c9(0x200)][_0x49e3c9(0x1a5)](O),this['_injector']['get'](S),this['_injector'][_0x49e3c9(0x1a5)](M);}};_(F,_0x138e5e(0x129),_0x138e5e(0x169)),_(F,'packageName',N),_(F,_0x138e5e(0x14c),P),F=y([(0x0,n[_0x138e5e(0x11c)])(r['UniverMCPPlugin']),v(0x1,(0x0,n['Inject'])(n[_0x138e5e(0x1df)])),v(0x2,n['IConfigService']),v(0x3,a['IUIPartsService']),v(0x4,n[_0x138e5e(0x12d)]),v(0x5,(0x0,n[_0x138e5e(0x202)])(n[_0x138e5e(0x155)]))],F),exports[_0x138e5e(0x1e6)]=d,Object[_0x138e5e(0x16a)](exports,_0x138e5e(0x1dc),{'enumerable':!0x0,'get':function(){return S;}}),Object[_0x138e5e(0x16a)](exports,_0x138e5e(0x139),{'enumerable':!0x0,'get':function(){return O;}}),exports[_0x138e5e(0x171)]=D,Object['defineProperty'](exports,_0x138e5e(0x180),{'enumerable':!0x0,'get':function(){return M;}}),exports['OpenMCPConfigPanelCommand']=C,Object[_0x138e5e(0x16a)](exports,_0x138e5e(0x172),{'enumerable':!0x0,'get':function(){return F;}}),exports[_0x138e5e(0x142)]=e,exports[_0x138e5e(0x1e4)]=t;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x2bfd(_0x20fc3f,_0x3cc65d){_0x20fc3f=_0x20fc3f-0x14a;const _0x1f0651=_0x1f06();let _0x2bfd73=_0x1f0651[_0x20fc3f];return _0x2bfd73;}const _0x31e7f3=_0x2bfd;(function(_0x2f478e,_0xd33e74){const _0xbd53fe=_0x2bfd,_0x3e34f5=_0x2f478e();while(!![]){try{const _0x338157=-parseInt(_0xbd53fe(0x154))/0x1*(parseInt(_0xbd53fe(0x14b))/0x2)+-parseInt(_0xbd53fe(0x14d))/0x3+-parseInt(_0xbd53fe(0x14f))/0x4+-parseInt(_0xbd53fe(0x152))/0x5*(-parseInt(_0xbd53fe(0x153))/0x6)+parseInt(_0xbd53fe(0x150))/0x7+-parseInt(_0xbd53fe(0x151))/0x8*(-parseInt(_0xbd53fe(0x14e))/0x9)+parseInt(_0xbd53fe(0x14c))/0xa;if(_0x338157===_0xd33e74)break;else _0x3e34f5['push'](_0x3e34f5['shift']());}catch(_0x1331e1){_0x3e34f5['push'](_0x3e34f5['shift']());}}}(_0x1f06,0xbeff0));const e=require('./en-US.js');module[_0x31e7f3(0x14a)]=e;function _0x1f06(){const _0x17cc6f=['16001730YvbpbB','966582BkYThG','1447911xyEaLf','4351820CFMMho','2939440SXvthX','8EXQkWv','6396245CvTPxJ','6ZevSdj','316938OJeCMq','exports','8NLtRRK'];_0x1f06=function(){return _0x17cc6f;};return _0x1f06();}
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x54a5(){const _0x4eb0e0=['Connection\x20Failed','Configuration\x20Steps:','Max\x20Retries','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Connecting...','Saving...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Session\x20ID','433434mNOpge','Configuration\x20saved\x20successfully','7jpXcbW','47735jPipRk','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','What\x20is\x20API\x20Key?','MCP\x20Configuration','Configuration\x20Parameters:','Click\x20to\x20connect\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Retrying...','Connecting...','Univer\x20AI\x20Console','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','74188fCoKmT','Copy\x20the\x20JSON\x20configuration\x20below','Save\x20Configuration','Invalid\x20configuration','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.','Failed\x20to\x20save\x20configuration','1901310FDMMes','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20is\x20required','API\x20Key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enter\x20your\x20API\x20key','MCP\x20Unknown\x20Status','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','117441tqkiSU','Click\x20to\x20configure\x20MCP','1926824gLwOdf','MCP\x20Client\x20Configuration','Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20key\x20with\x20Bearer\x20prefix.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','379660byeRwa','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Connection\x20Failed','MCP\x20Connected'];_0x54a5=function(){return _0x4eb0e0;};return _0x54a5();}const _0xd13492=_0x16bc;(function(_0x419613,_0x3eaa40){const _0x2bc2b5=_0x16bc,_0x4e27b2=_0x419613();while(!![]){try{const _0xea6bb=parseInt(_0x2bc2b5(0x1c5))/0x1+parseInt(_0x2bc2b5(0x1b5))/0x2+-parseInt(_0x2bc2b5(0x1d9))/0x3+parseInt(_0x2bc2b5(0x1cd))/0x4+-parseInt(_0x2bc2b5(0x1dc))/0x5+parseInt(_0x2bc2b5(0x1bc))/0x6+-parseInt(_0x2bc2b5(0x1db))/0x7*(parseInt(_0x2bc2b5(0x1c7))/0x8);if(_0xea6bb===_0x3eaa40)break;else _0x4e27b2['push'](_0x4e27b2['shift']());}catch(_0x394385){_0x4e27b2['push'](_0x4e27b2['shift']());}}}(_0x54a5,0x29dc1));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0xd13492(0x1d5),'connected':_0xd13492(0x1d0),'failed':_0xd13492(0x1cf),'retrying':'MCP\x20Retrying...','unknown':_0xd13492(0x1c2),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0xd13492(0x1d4),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0xd13492(0x1b9),'clickToConnect':_0xd13492(0x1e1),'clickToConfigure':_0xd13492(0x1c6)},'mcpConfig':{'title':_0xd13492(0x1df),'description':_0xd13492(0x1b0),'apiKey':_0xd13492(0x1bf),'apiKeyPlaceholder':_0xd13492(0x1c1),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0xd13492(0x1c8),'mcpClientConfig':_0xd13492(0x1c8),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0xd13492(0x1d2),'configStep1':_0xd13492(0x1b6),'configStep2':_0xd13492(0x1cc),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0xd13492(0x1d8),'sessionIdDescription':_0xd13492(0x1ce),'authorizationDescription':_0xd13492(0x1cb),'configParameters':_0xd13492(0x1e0),'maxRetries':_0xd13492(0x1d3),'save':_0xd13492(0x1b7),'saving':_0xd13492(0x1d6),'note1':_0xd13492(0x1dd),'note2':_0xd13492(0x1d7),'configSaved':_0xd13492(0x1da),'configError':_0xd13492(0x1bb),'apiApplyInfo':{'title':_0xd13492(0x1de),'description':_0xd13492(0x1ba),'univerAiLabel':_0xd13492(0x1b3),'getStarted':_0xd13492(0x1c3)},'validation':{'apiKeyRequired':_0xd13492(0x1be),'apiKeyTooShort':_0xd13492(0x1b4),'invalidConfig':_0xd13492(0x1b8),'invalidApiKey':_0xd13492(0x1c4)},'connectionStatus':{'disconnected':_0xd13492(0x1c9),'connecting':_0xd13492(0x1b2),'connected':'Connected','failed':_0xd13492(0x1d1),'retrying':_0xd13492(0x1b1)},'connectionError':{'unauthorized':_0xd13492(0x1bd),'sessionOccupied':_0xd13492(0x1ca),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0xd13492(0x1c0)}}};function _0x16bc(_0x3a2990,_0xf7ed4d){_0x3a2990=_0x3a2990-0x1b0;const _0x54a59b=_0x54a5();let _0x16bc9a=_0x54a59b[_0x3a2990];return _0x16bc9a;}module['exports']=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x431cb6=_0x47a1;(function(_0xd2f8d5,_0x17d504){const _0x21771d=_0x47a1,_0x1446cb=_0xd2f8d5();while(!![]){try{const _0x287189=-parseInt(_0x21771d(0x78))/0x1*(parseInt(_0x21771d(0x75))/0x2)+parseInt(_0x21771d(0x7c))/0x3+-parseInt(_0x21771d(0x7a))/0x4+parseInt(_0x21771d(0x77))/0x5+-parseInt(_0x21771d(0x79))/0x6*(parseInt(_0x21771d(0x7e))/0x7)+parseInt(_0x21771d(0x74))/0x8*(parseInt(_0x21771d(0x7b))/0x9)+-parseInt(_0x21771d(0x76))/0xa;if(_0x287189===_0x17d504)break;else _0x1446cb['push'](_0x1446cb['shift']());}catch(_0x2beb6f){_0x1446cb['push'](_0x1446cb['shift']());}}}(_0x44a3,0x8464c));const e=require('./en-US.js');module[_0x431cb6(0x7d)]=e;function _0x47a1(_0x1bc4ea,_0x2fe13e){_0x1bc4ea=_0x1bc4ea-0x74;const _0x44a335=_0x44a3();let _0x47a17c=_0x44a335[_0x1bc4ea];return _0x47a17c;}function _0x44a3(){const _0x12a6ce=['10314ijJyBn','1326976yJGbzH','18ZuWPKE','701712HCvyIS','exports','637aaZzyZ','2714584rjUNpS','64462RXJMbM','7151560NDIPUy','4326470fjnGqt','1wVPWZh'];_0x44a3=function(){return _0x12a6ce;};return _0x44a3();}
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0xdb12(){const _0x46ebc0=['7133868kyNQBI','603673YVpueu','8556pwPWvM','199062VMSRkd','70BDyPtG','804226SuzEeC','18726wDzqqL','10xaRrvl','1675190lAItho','18579FGWisW','96icewhM','604nfByCR'];_0xdb12=function(){return _0x46ebc0;};return _0xdb12();}(function(_0x5b1f74,_0x4925d1){const _0x5013d0=_0x256d,_0x44b2c4=_0x5b1f74();while(!![]){try{const _0x53745e=parseInt(_0x5013d0(0x12f))/0x1+parseInt(_0x5013d0(0x132))/0x2+-parseInt(_0x5013d0(0x130))/0x3*(-parseInt(_0x5013d0(0x135))/0x4)+parseInt(_0x5013d0(0x13a))/0x5*(-parseInt(_0x5013d0(0x139))/0x6)+parseInt(_0x5013d0(0x137))/0x7*(-parseInt(_0x5013d0(0x134))/0x8)+parseInt(_0x5013d0(0x136))/0x9*(parseInt(_0x5013d0(0x131))/0xa)+parseInt(_0x5013d0(0x133))/0xb*(-parseInt(_0x5013d0(0x138))/0xc);if(_0x53745e===_0x4925d1)break;else _0x44b2c4['push'](_0x44b2c4['shift']());}catch(_0x52a198){_0x44b2c4['push'](_0x44b2c4['shift']());}}}(_0xdb12,0xa4684));const e=require('./en-US.js');function _0x256d(_0x56d4eb,_0xde3126){_0x56d4eb=_0x56d4eb-0x12f;const _0xdb128d=_0xdb12();let _0x256d33=_0xdb128d[_0x56d4eb];return _0x256d33;}module['exports']=e;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x4f19d9=_0x15e4;(function(_0x16606f,_0x55a221){const _0x1c1438=_0x15e4,_0x2229cc=_0x16606f();while(!![]){try{const _0x579aca=-parseInt(_0x1c1438(0x19d))/0x1+parseInt(_0x1c1438(0x19f))/0x2+parseInt(_0x1c1438(0x1a0))/0x3*(parseInt(_0x1c1438(0x1a2))/0x4)+-parseInt(_0x1c1438(0x19b))/0x5*(parseInt(_0x1c1438(0x19a))/0x6)+parseInt(_0x1c1438(0x19e))/0x7+parseInt(_0x1c1438(0x1a3))/0x8+-parseInt(_0x1c1438(0x1a1))/0x9;if(_0x579aca===_0x55a221)break;else _0x2229cc['push'](_0x2229cc['shift']());}catch(_0x13bf5d){_0x2229cc['push'](_0x2229cc['shift']());}}}(_0x2969,0x9efa3));const e=require('./en-US.js');function _0x2969(){const _0x1a00a8=['15644sfIUwn','5521584jjLoEj','174NwtSRw','80195wClLog','exports','337622gODXTb','8485806osePic','357906cGpkcm','147LINjlB','7372116TfpxAE'];_0x2969=function(){return _0x1a00a8;};return _0x2969();}function _0x15e4(_0x218621,_0x2cbb4b){_0x218621=_0x218621-0x19a;const _0x296999=_0x2969();let _0x15e452=_0x296999[_0x218621];return _0x15e452;}module[_0x4f19d9(0x19c)]=e;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3b0c(){const _0x4d8fd9=['38517930myJFKQ','MCPクライアント設定','2190153pTavln','接続中...','最大再試行回数','7697574CQXblv','MCP:\x20認証されていません','705578bgcLvI','529535MlwIOC','MCP\x20接続済み','設定パラメータ:','APIキーはこのブラウザのローカルに保存されます','68FtXgUr','30KBXxdr','セッションIDが現在使用中です。後でもう一度お試しください','11xYjJMs','MCP\x20未接続','24BadOZM','未接続','2084138vyEBRF','APIキーはローカルストレージに安全に保存されます','MCP\x20接続中...','APIキー','MCP\x20不明な状態','セキュアな接続のために認証を有効にする','MCPクライアントの設定ファイルに設定を追加','再試行中...','MCP設定','APIキーを入力してください','設定の変更は直ちに有効になります','無効なAPIキーです。キーが正しいか確認してください','認証に失敗しました。APIキーを確認してください','設定の保存に失敗しました','MCPクライアントの設定に次の設定を追加してください:','Univer\x20AIコンソール','MCP:\x20最大再試行回数を超過','認証を有効にする','exports','APIキーとは?','117075HKrJzs','MCP:\x20セッションIDが使用中','接続失敗','Bearerプレフィックス付きのAPIキー。','無効な設定','接続済み','MCPを設定してAIでスプレッドシートを操作','セッションID','MCPクライアントを再起動して設定を適用'];_0x3b0c=function(){return _0x4d8fd9;};return _0x3b0c();}function _0xd7d6(_0xe822c5,_0x236a8c){_0xe822c5=_0xe822c5-0x1eb;const _0x3b0c51=_0x3b0c();let _0xd7d64=_0x3b0c51[_0xe822c5];return _0xd7d64;}const _0x5c0735=_0xd7d6;(function(_0x484930,_0x7177f6){const _0x1d9e74=_0xd7d6,_0x5dd44f=_0x484930();while(!![]){try{const _0x4e322b=parseInt(_0x1d9e74(0x20a))/0x1+-parseInt(_0x1d9e74(0x216))/0x2+-parseInt(_0x1d9e74(0x1fa))/0x3*(parseInt(_0x1d9e74(0x20f))/0x4)+parseInt(_0x1d9e74(0x20b))/0x5*(-parseInt(_0x1d9e74(0x210))/0x6)+-parseInt(_0x1d9e74(0x205))/0x7*(parseInt(_0x1d9e74(0x214))/0x8)+-parseInt(_0x1d9e74(0x208))/0x9+parseInt(_0x1d9e74(0x203))/0xa*(parseInt(_0x1d9e74(0x212))/0xb);if(_0x4e322b===_0x7177f6)break;else _0x5dd44f['push'](_0x5dd44f['shift']());}catch(_0x4df62c){_0x5dd44f['push'](_0x5dd44f['shift']());}}}(_0x3b0c,0x81023));const e={'mcpStatus':{'disconnected':_0x5c0735(0x213),'connecting':_0x5c0735(0x218),'connected':_0x5c0735(0x20c),'failed':'MCP\x20接続失敗','retrying':'MCP\x20再試行中...','unknown':_0x5c0735(0x21a),'unauthorized':_0x5c0735(0x209),'sessionOccupied':_0x5c0735(0x1fb),'networkError':'MCP:\x20ネットワークエラー','maxRetriesExceeded':_0x5c0735(0x1f6),'clickToConnect':'クリックしてMCPに接続','clickToConfigure':'クリックしてMCPを設定'},'mcpConfig':{'title':_0x5c0735(0x1ee),'description':_0x5c0735(0x200),'apiKey':_0x5c0735(0x219),'apiKeyPlaceholder':_0x5c0735(0x1ef),'apiKeyHint':_0x5c0735(0x20e),'enableAuth':_0x5c0735(0x1f7),'enableAuthHint':_0x5c0735(0x1eb),'connectionInfo':_0x5c0735(0x204),'mcpClientConfig':_0x5c0735(0x204),'configInstructions':_0x5c0735(0x1f4),'configStepTitle':'設定手順:','configStep1':'以下のJSON設定をコピー','configStep2':_0x5c0735(0x1ec),'configStep3':_0x5c0735(0x202),'sessionId':_0x5c0735(0x201),'sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':_0x5c0735(0x1fd),'configParameters':_0x5c0735(0x20d),'maxRetries':_0x5c0735(0x207),'save':'設定を保存','saving':'保存中...','note1':_0x5c0735(0x1f0),'note2':_0x5c0735(0x217),'configSaved':'設定が正常に保存されました','configError':_0x5c0735(0x1f3),'apiApplyInfo':{'title':_0x5c0735(0x1f9),'description':'APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','univerAiLabel':_0x5c0735(0x1f5),'getStarted':'数秒でAPIキーを取得'},'validation':{'apiKeyRequired':'APIキーは必須です','apiKeyTooShort':'APIキーは10文字以上である必要があります','invalidConfig':_0x5c0735(0x1fe),'invalidApiKey':_0x5c0735(0x1f1)},'connectionStatus':{'disconnected':_0x5c0735(0x215),'connecting':_0x5c0735(0x206),'connected':_0x5c0735(0x1ff),'failed':_0x5c0735(0x1fc),'retrying':_0x5c0735(0x1ed)},'connectionError':{'unauthorized':_0x5c0735(0x1f2),'sessionOccupied':_0x5c0735(0x211),'networkError':'ネットワーク接続エラー。インターネット接続を確認してください','maxRetriesExceeded':'最大再試行回数を超過しました。後でもう一度お試しください'}}};module[_0x5c0735(0x1f8)]=e;
|
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x1b9f(_0x4c4fb8,_0x14a686){_0x4c4fb8=_0x4c4fb8-0x196;const _0x3ca67f=_0x3ca6();let _0x1b9f5a=_0x3ca67f[_0x4c4fb8];return _0x1b9f5a;}function _0x3ca6(){const _0x270bae=['7498ShmUyx','MCP\x20연결됨','아래\x20JSON\x20설정\x20복사','저장\x20중...','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','클릭하여\x20MCP\x20연결','144DoCjYD','Univer\x20AI\x20콘솔','설정\x20매개변수:','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','설정\x20단계:','MCP\x20설정','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','API\x20키','유효하지\x20않은\x20설정','20VrxBMB','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','MCP:\x20세션\x20ID\x20사용\x20중','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','설정\x20저장','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','API\x20키는\x2010자\x20이상이어야\x20합니다','282RiIjps','보안\x20연결을\x20위해\x20인증\x20활성화','Bearer\x20접두사가\x20있는\x20API\x20키.','클릭하여\x20MCP\x20설정','106065icdBHY','MCP\x20연결\x20중...','API\x20키를\x20입력하세요','MCP\x20알\x20수\x20없는\x20상태','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','11835307oCHHkX','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','9560FgBrrb','9394476CUEBtT','5589666anXQBF','연결됨','재시도\x20중...','MCP\x20재시도\x20중...','설정\x20저장\x20실패','4060LpwkZc','MCP\x20클라이언트\x20설정','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','MCP:\x20네트워크\x20오류','MCP:\x20인증되지\x20않음','24624oLgVcM','10lIuWQO','인증\x20활성화','인증\x20실패.\x20API\x20키를\x20확인하세요','API\x20키는\x20필수입니다','MCP\x20연결\x20끊김','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','최대\x20재시도\x20횟수'];_0x3ca6=function(){return _0x270bae;};return _0x3ca6();}const _0x465347=_0x1b9f;(function(_0xa9e51d,_0x57f012){const _0x1b79ae=_0x1b9f,_0x45ff2f=_0xa9e51d();while(!![]){try{const _0x227d44=parseInt(_0x1b79ae(0x1c3))/0x1*(parseInt(_0x1b79ae(0x19d))/0x2)+-parseInt(_0x1b79ae(0x1bb))/0x3*(parseInt(_0x1b79ae(0x1c9))/0x4)+parseInt(_0x1b79ae(0x1a8))/0x5*(parseInt(_0x1b79ae(0x1a4))/0x6)+parseInt(_0x1b79ae(0x1b6))/0x7*(parseInt(_0x1b79ae(0x1af))/0x8)+-parseInt(_0x1b79ae(0x1b1))/0x9+parseInt(_0x1b79ae(0x1bc))/0xa*(-parseInt(_0x1b79ae(0x1ad))/0xb)+parseInt(_0x1b79ae(0x1b0))/0xc;if(_0x227d44===_0x57f012)break;else _0x45ff2f['push'](_0x45ff2f['shift']());}catch(_0x433254){_0x45ff2f['push'](_0x45ff2f['shift']());}}}(_0x3ca6,0x879c9));const e={'mcpStatus':{'disconnected':_0x465347(0x1c0),'connecting':_0x465347(0x1a9),'connected':_0x465347(0x1c4),'failed':'MCP\x20연결\x20실패','retrying':_0x465347(0x1b4),'unknown':_0x465347(0x1ab),'unauthorized':_0x465347(0x1ba),'sessionOccupied':_0x465347(0x19f),'networkError':_0x465347(0x1b9),'maxRetriesExceeded':'MCP:\x20최대\x20재시도\x20횟수\x20초과','clickToConnect':_0x465347(0x1c8),'clickToConfigure':_0x465347(0x1a7)},'mcpConfig':{'title':_0x465347(0x199),'description':_0x465347(0x19a),'apiKey':_0x465347(0x19b),'apiKeyPlaceholder':_0x465347(0x1aa),'apiKeyHint':_0x465347(0x19e),'enableAuth':_0x465347(0x1bd),'enableAuthHint':_0x465347(0x1a5),'connectionInfo':_0x465347(0x1b7),'mcpClientConfig':_0x465347(0x1b7),'configInstructions':_0x465347(0x1ac),'configStepTitle':_0x465347(0x198),'configStep1':_0x465347(0x1c5),'configStep2':_0x465347(0x1b8),'configStep3':_0x465347(0x197),'sessionId':'세션\x20ID','sessionIdDescription':_0x465347(0x1c1),'authorizationDescription':_0x465347(0x1a6),'configParameters':_0x465347(0x196),'maxRetries':_0x465347(0x1c2),'save':_0x465347(0x1a1),'saving':_0x465347(0x1c6),'note1':_0x465347(0x1ae),'note2':'API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','configSaved':'설정이\x20성공적으로\x20저장되었습니다','configError':_0x465347(0x1b5),'apiApplyInfo':{'title':'API\x20키란\x20무엇인가요?','description':'API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','univerAiLabel':_0x465347(0x1ca),'getStarted':'몇\x20초\x20만에\x20API\x20키\x20발급받기'},'validation':{'apiKeyRequired':_0x465347(0x1bf),'apiKeyTooShort':_0x465347(0x1a3),'invalidConfig':_0x465347(0x19c),'invalidApiKey':_0x465347(0x1a0)},'connectionStatus':{'disconnected':'연결\x20끊김','connecting':'연결\x20중...','connected':_0x465347(0x1b2),'failed':'연결\x20실패','retrying':_0x465347(0x1b3)},'connectionError':{'unauthorized':_0x465347(0x1be),'sessionOccupied':'세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','networkError':_0x465347(0x1c7),'maxRetriesExceeded':_0x465347(0x1a2)}}};module['exports']=e;
|
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x82ea1c=_0x15d0;(function(_0x5f5123,_0x393025){const _0x3db355=_0x15d0,_0x40e0d8=_0x5f5123();while(!![]){try{const _0x3a62f0=-parseInt(_0x3db355(0xc1))/0x1*(-parseInt(_0x3db355(0xcc))/0x2)+parseInt(_0x3db355(0xca))/0x3*(-parseInt(_0x3db355(0xc8))/0x4)+-parseInt(_0x3db355(0xcb))/0x5*(parseInt(_0x3db355(0xc3))/0x6)+-parseInt(_0x3db355(0xc2))/0x7+-parseInt(_0x3db355(0xc4))/0x8*(-parseInt(_0x3db355(0xc9))/0x9)+-parseInt(_0x3db355(0xc5))/0xa+parseInt(_0x3db355(0xc6))/0xb;if(_0x3a62f0===_0x393025)break;else _0x40e0d8['push'](_0x40e0d8['shift']());}catch(_0x4bc811){_0x40e0d8['push'](_0x40e0d8['shift']());}}}(_0x2289,0x231e7));const e=require('./en-US.js');module[_0x82ea1c(0xc7)]=e;function _0x15d0(_0x498a50,_0x586cb3){_0x498a50=_0x498a50-0xc1;const _0x2289f2=_0x2289();let _0x15d0e3=_0x2289f2[_0x498a50];return _0x15d0e3;}function _0x2289(){const _0x3a98ce=['1366680vdRrcD','390eCpHxU','177968LFLGWi','1654340txTuLI','5577792olFJuJ','exports','60PvGrUc','99SwQevs','22383FdnzjU','17535wWGWoI','6bnIKgQ','30871fySaUW'];_0x2289=function(){return _0x3a98ce;};return _0x2289();}
|
package/lib/cjs/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x35e777=_0x358b;(function(_0x2064a7,_0x2f5eda){const _0x5051d0=_0x358b,_0x90ba7d=_0x2064a7();while(!![]){try{const _0x2298d2=parseInt(_0x5051d0(0x83))/0x1+parseInt(_0x5051d0(0x7c))/0x2+parseInt(_0x5051d0(0x74))/0x3+-parseInt(_0x5051d0(0x88))/0x4+-parseInt(_0x5051d0(0x75))/0x5*(parseInt(_0x5051d0(0x68))/0x6)+-parseInt(_0x5051d0(0x6e))/0x7*(parseInt(_0x5051d0(0x8d))/0x8)+parseInt(_0x5051d0(0x69))/0x9*(-parseInt(_0x5051d0(0x85))/0xa);if(_0x2298d2===_0x2f5eda)break;else _0x90ba7d['push'](_0x90ba7d['shift']());}catch(_0x5e97b0){_0x90ba7d['push'](_0x90ba7d['shift']());}}}(_0x5cdf,0x53681));const e={'mcpStatus':{'disconnected':_0x35e777(0x93),'connecting':_0x35e777(0x8e),'connected':_0x35e777(0x81),'failed':_0x35e777(0x89),'retrying':'MCP\x20opakuje\x20pokus...','unknown':_0x35e777(0x77),'unauthorized':'MCP:\x20Neautorizované','sessionOccupied':'MCP:\x20ID\x20relácie\x20je\x20obsadené','networkError':_0x35e777(0x84),'maxRetriesExceeded':_0x35e777(0x8a),'clickToConnect':_0x35e777(0x7d),'clickToConfigure':_0x35e777(0x86)},'mcpConfig':{'title':_0x35e777(0x6a),'description':_0x35e777(0x8f),'apiKey':'API\x20kľúč','apiKeyPlaceholder':'Zadajte\x20svoj\x20API\x20kľúč','apiKeyHint':_0x35e777(0x82),'enableAuth':_0x35e777(0x76),'enableAuthHint':_0x35e777(0x7e),'connectionInfo':'Konfigurácia\x20klienta\x20MCP','mcpClientConfig':_0x35e777(0x6c),'configInstructions':_0x35e777(0x70),'configStepTitle':_0x35e777(0x9b),'configStep1':_0x35e777(0x87),'configStep2':_0x35e777(0x71),'configStep3':_0x35e777(0x98),'sessionId':_0x35e777(0x7f),'sessionIdDescription':_0x35e777(0x9a),'authorizationDescription':_0x35e777(0x96),'configParameters':'Parametre\x20konfigurácie:','maxRetries':_0x35e777(0x6b),'save':'Uložiť\x20konfiguráciu','saving':_0x35e777(0x99),'note1':_0x35e777(0x91),'note2':_0x35e777(0x90),'configSaved':_0x35e777(0x72),'configError':'Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','apiApplyInfo':{'title':_0x35e777(0x8c),'description':'API\x20kľúč\x20vás\x20pripojí\x20k\x20serveru\x20Univer\x20MCP\x20a\x20umožní\x20používať\x20AI\x20pri\x20práci\x20s\x20tabuľkami.\x20Získajte\x20svoj\x20API\x20kľúč\x20v\x20našej\x20konzole.','univerAiLabel':_0x35e777(0x95),'getStarted':_0x35e777(0x6d)},'validation':{'apiKeyRequired':_0x35e777(0x79),'apiKeyTooShort':_0x35e777(0x73),'invalidConfig':_0x35e777(0x97),'invalidApiKey':_0x35e777(0x80)},'connectionStatus':{'disconnected':_0x35e777(0x94),'connecting':_0x35e777(0x7b),'connected':_0x35e777(0x78),'failed':'Pripojenie\x20zlyhalo','retrying':_0x35e777(0x8b)},'connectionError':{'unauthorized':'Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','sessionOccupied':_0x35e777(0x92),'networkError':_0x35e777(0x7a),'maxRetriesExceeded':'Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr'}}};module[_0x35e777(0x6f)]=e;function _0x358b(_0x415381,_0x2d7638){_0x415381=_0x415381-0x68;const _0x5cdfa2=_0x5cdf();let _0x358b99=_0x5cdfa2[_0x415381];return _0x358b99;}function _0x5cdf(){const _0x1bb7a8=['20245hjHJxQ','Povoliť\x20overenie','MCP\x20neznámy\x20stav','Pripojené','API\x20kľúč\x20je\x20povinný','Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','Pripája\x20sa...','1328166WxEbTz','Kliknite\x20na\x20pripojenie\x20MCP','Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','ID\x20relácie','Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny','MCP\x20pripojené','Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','561752wCauaK','MCP:\x20Sieťová\x20chyba','4161910prBMNS','Kliknite\x20na\x20konfiguráciu\x20MCP','Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','31436sXuNPG','Pripojenie\x20MCP\x20zlyhalo','MCP:\x20Prekročený\x20počet\x20pokusov','Skúša\x20sa\x20znova...','Čo\x20je\x20API\x20kľúč?','40ctLVjD','MCP\x20sa\x20pripája...','Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami','Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','MCP\x20odpojené','Odpojené','Univer\x20AI\x20konzola','API\x20kľúč\x20s\x20prefixom\x20Bearer.','Neplatná\x20konfigurácia','Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','Ukladá\x20sa...','Jedinečný\x20identifikátor\x20relácie.\x20Ak\x20máte\x20otvorených\x20viac\x20inštancií\x20Univer,\x20každá\x20inštancia\x20musí\x20používať\x20iné\x20session_id,\x20aby\x20sa\x20predišlo\x20konfliktom\x20pripojenia.','Kroky\x20konfigurácie:','216kWmBpJ','9Xligcz','Konfigurácia\x20MCP','Maximálny\x20počet\x20pokusov','Konfigurácia\x20klienta\x20MCP','Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd','527051TKaIQj','exports','Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','Konfigurácia\x20bola\x20úspešne\x20uložená','API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','186231SpxmKv'];_0x5cdf=function(){return _0x1bb7a8;};return _0x5cdf();}
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5dba(_0x39a595,_0x38a00d){_0x39a595=_0x39a595-0x187;const _0x32985b=_0x3298();let _0x5dba8d=_0x32985b[_0x39a595];return _0x5dba8d;}const _0x3ccb3a=_0x5dba;function _0x3298(){const _0x385b96=['Đang\x20kết\x20nối...','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','958572uHdOJv','56695qgsHvH','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','455284cgJfLM','MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','Khóa\x20API\x20là\x20gì?','Bảng\x20điều\x20khiển\x20Univer\x20AI','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','exports','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','MCP:\x20Lỗi\x20mạng','246PnECvG','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','Đã\x20ngắt\x20kết\x20nối','66960WaERjh','Yêu\x20cầu\x20khóa\x20API','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Định\x20danh\x20phiên\x20duy\x20nhất.\x20Nếu\x20bạn\x20mở\x20nhiều\x20phiên\x20bản\x20Univer,\x20mỗi\x20phiên\x20bản\x20phải\x20sử\x20dụng\x20một\x20session_id\x20khác\x20nhau\x20để\x20tránh\x20xung\x20đột\x20kết\x20nối.','ID\x20phiên','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','Nhấp\x20để\x20kết\x20nối\x20MCP','Cấu\x20hình\x20MCP','Các\x20bước\x20cấu\x20hình:','Kết\x20nối\x20thất\x20bại','1483380scnEer','279IYDdon','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','Khóa\x20API','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','MCP\x20Đang\x20kết\x20nối...','MCP:\x20Không\x20được\x20phép','Cấu\x20hình\x20không\x20hợp\x20lệ','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','Cấu\x20hình\x20máy\x20khách\x20MCP','2isdIms','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','Đã\x20kết\x20nối','Số\x20lần\x20thử\x20lại\x20tối\x20đa','1874460XSxSvD','MCP\x20Kết\x20nối\x20thất\x20bại','127351oJkuOs','Lưu\x20cấu\x20hình\x20thất\x20bại'];_0x3298=function(){return _0x385b96;};return _0x3298();}(function(_0x24170d,_0x3000b7){const _0x56c226=_0x5dba,_0x36fa3b=_0x24170d();while(!![]){try{const _0x4658d7=-parseInt(_0x56c226(0x18f))/0x1+-parseInt(_0x56c226(0x1b3))/0x2*(-parseInt(_0x56c226(0x18c))/0x3)+parseInt(_0x56c226(0x1a8))/0x4+-parseInt(_0x56c226(0x18d))/0x5*(parseInt(_0x56c226(0x198))/0x6)+parseInt(_0x56c226(0x188))/0x7+-parseInt(_0x56c226(0x19c))/0x8*(-parseInt(_0x56c226(0x1a9))/0x9)+parseInt(_0x56c226(0x1b7))/0xa;if(_0x4658d7===_0x3000b7)break;else _0x36fa3b['push'](_0x36fa3b['shift']());}catch(_0x4910c1){_0x36fa3b['push'](_0x36fa3b['shift']());}}}(_0x3298,0x3971f));const e={'mcpStatus':{'disconnected':'MCP\x20Đã\x20ngắt\x20kết\x20nối','connecting':_0x3ccb3a(0x1ae),'connected':'MCP\x20Đã\x20kết\x20nối','failed':_0x3ccb3a(0x187),'retrying':'MCP\x20Đang\x20thử\x20lại...','unknown':_0x3ccb3a(0x1ac),'unauthorized':_0x3ccb3a(0x1af),'sessionOccupied':_0x3ccb3a(0x190),'networkError':_0x3ccb3a(0x197),'maxRetriesExceeded':_0x3ccb3a(0x18b),'clickToConnect':_0x3ccb3a(0x1a4),'clickToConfigure':'Nhấp\x20để\x20cấu\x20hình\x20MCP'},'mcpConfig':{'title':_0x3ccb3a(0x1a5),'description':'Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','apiKey':_0x3ccb3a(0x1ab),'apiKeyPlaceholder':'Nhập\x20khóa\x20API\x20của\x20bạn','apiKeyHint':_0x3ccb3a(0x1aa),'enableAuth':'Bật\x20xác\x20thực','enableAuthHint':_0x3ccb3a(0x1b1),'connectionInfo':_0x3ccb3a(0x1b2),'mcpClientConfig':_0x3ccb3a(0x1b2),'configInstructions':_0x3ccb3a(0x1a3),'configStepTitle':_0x3ccb3a(0x1a6),'configStep1':'Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','configStep2':_0x3ccb3a(0x19a),'configStep3':_0x3ccb3a(0x19e),'sessionId':_0x3ccb3a(0x1a2),'sessionIdDescription':_0x3ccb3a(0x1a1),'authorizationDescription':_0x3ccb3a(0x199),'configParameters':'Tham\x20số\x20cấu\x20hình:','maxRetries':_0x3ccb3a(0x1b6),'save':'Lưu\x20cấu\x20hình','saving':'Đang\x20lưu...','note1':_0x3ccb3a(0x196),'note2':_0x3ccb3a(0x19f),'configSaved':_0x3ccb3a(0x1ad),'configError':_0x3ccb3a(0x189),'apiApplyInfo':{'title':_0x3ccb3a(0x191),'description':'Khóa\x20API\x20kết\x20nối\x20bạn\x20với\x20Máy\x20chủ\x20Univer\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính.\x20Nhận\x20khóa\x20API\x20của\x20bạn\x20từ\x20bảng\x20điều\x20khiển\x20của\x20chúng\x20tôi\x20để\x20bắt\x20đầu.','univerAiLabel':_0x3ccb3a(0x192),'getStarted':_0x3ccb3a(0x193)},'validation':{'apiKeyRequired':_0x3ccb3a(0x19d),'apiKeyTooShort':_0x3ccb3a(0x195),'invalidConfig':_0x3ccb3a(0x1b0),'invalidApiKey':_0x3ccb3a(0x1a0)},'connectionStatus':{'disconnected':_0x3ccb3a(0x19b),'connecting':_0x3ccb3a(0x18a),'connected':_0x3ccb3a(0x1b5),'failed':_0x3ccb3a(0x1a7),'retrying':'Đang\x20thử\x20lại...'},'connectionError':{'unauthorized':_0x3ccb3a(0x1b4),'sessionOccupied':'Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','networkError':'Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','maxRetriesExceeded':_0x3ccb3a(0x18e)}}};module[_0x3ccb3a(0x194)]=e;
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x60cc(_0x5aee0a,_0x5db651){_0x5aee0a=_0x5aee0a-0xad;const _0x554917=_0x5549();let _0x60ccf0=_0x554917[_0x5aee0a];return _0x60ccf0;}const _0x16c623=_0x60cc;(function(_0x2990de,_0x1e440a){const _0x20fdfd=_0x60cc,_0x288ba4=_0x2990de();while(!![]){try{const _0x27d0be=parseInt(_0x20fdfd(0xbf))/0x1+-parseInt(_0x20fdfd(0xb0))/0x2*(parseInt(_0x20fdfd(0xce))/0x3)+parseInt(_0x20fdfd(0xc4))/0x4*(-parseInt(_0x20fdfd(0xc8))/0x5)+-parseInt(_0x20fdfd(0xb8))/0x6*(parseInt(_0x20fdfd(0xd6))/0x7)+-parseInt(_0x20fdfd(0xd1))/0x8*(parseInt(_0x20fdfd(0xca))/0x9)+-parseInt(_0x20fdfd(0xcc))/0xa+parseInt(_0x20fdfd(0xc2))/0xb*(parseInt(_0x20fdfd(0xb3))/0xc);if(_0x27d0be===_0x1e440a)break;else _0x288ba4['push'](_0x288ba4['shift']());}catch(_0x27d7ab){_0x288ba4['push'](_0x288ba4['shift']());}}}(_0x5549,0xf1283));const e={'mcpStatus':{'disconnected':_0x16c623(0xb1),'connecting':_0x16c623(0xc1),'connected':_0x16c623(0xdc),'failed':_0x16c623(0xbd),'retrying':_0x16c623(0xb6),'unknown':_0x16c623(0xb9),'unauthorized':_0x16c623(0xad),'sessionOccupied':_0x16c623(0xcd),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x16c623(0xb4),'clickToConnect':_0x16c623(0xdf),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x16c623(0xc6),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x16c623(0xcb),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x16c623(0xd3),'enableAuth':_0x16c623(0xba),'enableAuthHint':_0x16c623(0xda),'connectionInfo':_0x16c623(0xd2),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x16c623(0xd7),'configStepTitle':_0x16c623(0xd8),'configStep1':_0x16c623(0xde),'configStep2':_0x16c623(0xaf),'configStep3':_0x16c623(0xdd),'sessionId':_0x16c623(0xd9),'sessionIdDescription':_0x16c623(0xcf),'authorizationDescription':_0x16c623(0xb5),'configParameters':_0x16c623(0xbb),'maxRetries':_0x16c623(0xc5),'save':_0x16c623(0xdb),'saving':'保存中...','note1':_0x16c623(0xb7),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x16c623(0xe0),'configError':_0x16c623(0xc0),'apiApplyInfo':{'title':_0x16c623(0xbe),'description':_0x16c623(0xd5),'univerAiLabel':_0x16c623(0xb2),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x16c623(0xbc),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x16c623(0xd4),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':'未连接','connecting':_0x16c623(0xe1),'connected':_0x16c623(0xc3),'failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':_0x16c623(0xae),'sessionOccupied':_0x16c623(0xd0),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x16c623(0xc7)}}};function _0x5549(){const _0x2702bc=['exports','477GAtCSt','API\x20密钥','16131580ECDVzj','MCP:\x20会话\x20ID\x20已被占用','119307kKoiav','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','会话\x20ID\x20已被占用,请稍后再试','153736etDiuS','MCP\x20客户端配置','您的\x20API\x20密钥将在此浏览器中本地存储','配置无效','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','3330859ZkfUBs','将以下配置添加到您的\x20MCP\x20客户端设置中:','配置步骤:','会话ID','启用身份验证以获得安全连接','保存配置','MCP\x20已连接','重启您的\x20MCP\x20客户端以使配置生效','复制以下\x20JSON\x20配置','点击连接\x20MCP','配置保存成功','连接中...','MCP:\x20未授权','权限验证失败,请检查您的\x20API\x20密钥','将配置添加到您的\x20MCP\x20客户端设置文件中','16ysRqsd','MCP\x20已断开','Univer\x20AI\x20控制台','36lQLcJn','MCP:\x20超出最大重试次数','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP\x20重连中...','配置更改将立即生效','12Sfrusg','MCP\x20状态未知','启用身份验证','配置参数:','API\x20密钥不能为空','MCP\x20连接失败','什么是\x20API\x20密钥?','907925tCNfLt','配置保存失败','MCP\x20连接中...','18805556BySxZV','已连接','30396tSwTVq','最大重试次数','MCP\x20配置','超出最大重试次数,请稍后再试','755QkTlFQ'];_0x5549=function(){return _0x2702bc;};return _0x5549();}module[_0x16c623(0xc9)]=e;
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x1608(_0x5a2a82,_0x106aad){_0x5a2a82=_0x5a2a82-0x68;const _0x545082=_0x5450();let _0x160814=_0x545082[_0x5a2a82];return _0x160814;}const _0x35f06f=_0x1608;function _0x5450(){const _0x4bf793=['25792FhUbXf','2150964lqzUgj','744807duaiUW','5420016EZrSbU','125517jYliky','3672970zrgaNy','205THHJKw','768281rHCOpM','2MpNvHC','246PXMruG','exports'];_0x5450=function(){return _0x4bf793;};return _0x5450();}(function(_0x178d33,_0xeae861){const _0x1e8caf=_0x1608,_0x5853af=_0x178d33();while(!![]){try{const _0xe0d5e5=-parseInt(_0x1e8caf(0x6f))/0x1+parseInt(_0x1e8caf(0x70))/0x2*(parseInt(_0x1e8caf(0x6a))/0x3)+-parseInt(_0x1e8caf(0x68))/0x4*(parseInt(_0x1e8caf(0x6e))/0x5)+parseInt(_0x1e8caf(0x71))/0x6*(parseInt(_0x1e8caf(0x6c))/0x7)+parseInt(_0x1e8caf(0x6b))/0x8+parseInt(_0x1e8caf(0x69))/0x9+-parseInt(_0x1e8caf(0x6d))/0xa;if(_0xe0d5e5===_0xeae861)break;else _0x5853af['push'](_0x5853af['shift']());}catch(_0x3c759d){_0x5853af['push'](_0x5853af['shift']());}}}(_0x5450,0x7a118));const e=require('./en-US.js');module[_0x35f06f(0x72)]=e;
|