@univerjs-pro/mcp-ui 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x98ddd1=_0x5e41;(function(_0x140754,_0x2d3446){const _0x1b7820=_0x5e41,_0x3a2a66=_0x140754();while(!![]){try{const _0x2287d3=-parseInt(_0x1b7820(0x243))/0x1*(-parseInt(_0x1b7820(0x320))/0x2)+-parseInt(_0x1b7820(0x275))/0x3*(parseInt(_0x1b7820(0x308))/0x4)+parseInt(_0x1b7820(0x201))/0x5+parseInt(_0x1b7820(0x242))/0x6+parseInt(_0x1b7820(0x203))/0x7*(parseInt(_0x1b7820(0x1c3))/0x8)+parseInt(_0x1b7820(0x1ed))/0x9+-parseInt(_0x1b7820(0x1e0))/0xa;if(_0x2287d3===_0x2d3446)break;else _0x3a2a66['push'](_0x3a2a66['shift']());}catch(_0x37d851){_0x3a2a66['push'](_0x3a2a66['shift']());}}}(_0x5a53,0xf124e));var ae=Object[_0x98ddd1(0x2de)],le=(_0x41bd6e,_0x5d6d07,_0x51c975)=>_0x5d6d07 in _0x41bd6e?ae(_0x41bd6e,_0x5d6d07,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51c975}):_0x41bd6e[_0x5d6d07]=_0x51c975,I=(_0x5aa032,_0x57e02f,_0x41cf2e)=>le(_0x5aa032,typeof _0x57e02f!=_0x98ddd1(0x1b2)?_0x57e02f+'':_0x57e02f,_0x41cf2e);Object[_0x98ddd1(0x2de)](exports,Symbol[_0x98ddd1(0x29f)],{'value':_0x98ddd1(0x215)});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0x3d35e3,..._0x5dfc70}){const _0x234c7f=_0x98ddd1,{icon:_0x357155,id:_0x12e406,className:_0x51dde8,extend:_0x5ecb06,..._0x22a031}=_0x5dfc70,_0x2c6f7e=(_0x234c7f(0x1fc)+_0x12e406+'\x20'+(_0x51dde8||''))[_0x234c7f(0x329)](),_0x5a8434=d['useRef']('_'+de());return G(_0x357155,''+_0x12e406,{'defIds':_0x357155[_0x234c7f(0x1b4)],'idSuffix':_0x5a8434[_0x234c7f(0x28e)]},{'ref':_0x3d35e3,'className':_0x2c6f7e,..._0x22a031},_0x5ecb06);}function G(_0x5e47b5,_0x4b6495,_0x460d4b,_0x31a1e9,_0x44b80c){const _0x15693c=_0x98ddd1;return d[_0x15693c(0x1bc)](_0x5e47b5[_0x15693c(0x2ae)],{'key':_0x4b6495,...ue(_0x5e47b5,_0x460d4b,_0x44b80c),..._0x31a1e9},(ve(_0x5e47b5,_0x460d4b)[_0x15693c(0x29c)]||[])[_0x15693c(0x1ff)]((_0x5d3253,_0x228bcf)=>G(_0x5d3253,_0x4b6495+'-'+_0x5e47b5['tag']+'-'+_0x228bcf,_0x460d4b,void 0x0,_0x44b80c)));}function ue(_0x20acdc,_0x49b4af,_0x20202b){const _0x4adbe6=_0x98ddd1,_0x2d78f2={..._0x20acdc[_0x4adbe6(0x28a)]};_0x20202b!=null&&_0x20202b['colorChannel1']&&_0x2d78f2[_0x4adbe6(0x1f0)]===_0x4adbe6(0x322)&&(_0x2d78f2[_0x4adbe6(0x1f0)]=_0x20202b['colorChannel1']),_0x20acdc['tag']===_0x4adbe6(0x213)&&_0x2d78f2['id']&&(_0x2d78f2['id']=_0x2d78f2['id']+_0x49b4af[_0x4adbe6(0x26e)]),Object[_0x4adbe6(0x1a5)](_0x2d78f2)['forEach'](([_0x4cf628,_0x12f573])=>{const _0x1c746e=_0x4adbe6;_0x4cf628==='mask'&&typeof _0x12f573==_0x1c746e(0x2c8)&&(_0x2d78f2[_0x4cf628]=_0x12f573[_0x1c746e(0x2df)](/url\(#(.*)\)/,_0x1c746e(0x2b1)+_0x49b4af['idSuffix']+')'));});const {defIds:_0x1efa2b}=_0x49b4af;return!_0x1efa2b||_0x1efa2b[_0x4adbe6(0x23d)]===0x0||(_0x20acdc['tag']===_0x4adbe6(0x1d1)&&_0x2d78f2['xlink:href']&&(_0x2d78f2['xlink:href']=_0x2d78f2[_0x4adbe6(0x2a6)]+_0x49b4af[_0x4adbe6(0x26e)]),Object[_0x4adbe6(0x1a5)](_0x2d78f2)[_0x4adbe6(0x315)](([_0x15e059,_0x1aa9e2])=>{const _0x2e9858=_0x4adbe6;typeof _0x1aa9e2=='string'&&(_0x2d78f2[_0x15e059]=_0x1aa9e2['replace'](/url\(#(.*)\)/,_0x2e9858(0x2b1)+_0x49b4af[_0x2e9858(0x26e)]+')'));})),_0x2d78f2;}function ve(_0x1a47f1,_0x379341){const _0x1a8697=_0x98ddd1;var _0x498a63;const {defIds:_0x5b7377}=_0x379341;return!_0x5b7377||_0x5b7377[_0x1a8697(0x23d)]===0x0?_0x1a47f1:_0x1a47f1[_0x1a8697(0x2ae)]===_0x1a8697(0x2f2)&&((_0x498a63=_0x1a47f1['children'])!=null&&_0x498a63[_0x1a8697(0x23d)])?{..._0x1a47f1,'children':_0x1a47f1[_0x1a8697(0x29c)][_0x1a8697(0x1ff)](_0x36542c=>typeof _0x36542c[_0x1a8697(0x28a)]['id']==_0x1a8697(0x2c8)&&_0x5b7377&&_0x5b7377[_0x1a8697(0x1ea)](_0x36542c['attrs']['id'])?{..._0x36542c,'attrs':{..._0x36542c[_0x1a8697(0x28a)],'id':_0x36542c[_0x1a8697(0x28a)]['id']+_0x379341['idSuffix']}}:_0x36542c)}:_0x1a47f1;}function de(){const _0x11a890=_0x98ddd1;return Math[_0x11a890(0x1de)]()[_0x11a890(0x299)](0x24)[_0x11a890(0x221)](0x2,0x8);}_[_0x98ddd1(0x31b)]='UniverIcon';const Ce={'tag':_0x98ddd1(0x2e0),'attrs':{'xmlns':_0x98ddd1(0x2c9),'fill':'none','viewBox':_0x98ddd1(0x2ab),'width':_0x98ddd1(0x2ec),'height':_0x98ddd1(0x2ec)},'children':[{'tag':_0x98ddd1(0x2f1),'attrs':{'fill':_0x98ddd1(0x1a2),'d':_0x98ddd1(0x27c),'fillRule':_0x98ddd1(0x2d0),'clipRule':_0x98ddd1(0x2d0)}}]},H=d[_0x98ddd1(0x274)](function(_0x130a78,_0x237df1){const _0x53ca2a=_0x98ddd1;return d[_0x53ca2a(0x1bc)](_,Object[_0x53ca2a(0x1e6)]({},_0x130a78,{'id':_0x53ca2a(0x317),'ref':_0x237df1,'icon':Ce}));});H[_0x98ddd1(0x31b)]=_0x98ddd1(0x2f8);const ge={'tag':_0x98ddd1(0x2e0),'attrs':{'xmlns':_0x98ddd1(0x2c9),'fill':'none','viewBox':_0x98ddd1(0x2ab),'width':_0x98ddd1(0x2ec),'height':_0x98ddd1(0x2ec)},'children':[{'tag':_0x98ddd1(0x2f1),'attrs':{'fill':_0x98ddd1(0x1a2),'d':_0x98ddd1(0x2b9)}}]},B=d[_0x98ddd1(0x274)](function(_0x2d4f7f,_0x2e365e){const _0x278bbf=_0x98ddd1;return d[_0x278bbf(0x1bc)](_,Object[_0x278bbf(0x1e6)]({},_0x2d4f7f,{'id':'close-icon','ref':_0x2e365e,'icon':ge}));});B['displayName']=_0x98ddd1(0x261);const fe={'tag':_0x98ddd1(0x2e0),'attrs':{'xmlns':_0x98ddd1(0x2c9),'fill':_0x98ddd1(0x2b8),'viewBox':_0x98ddd1(0x2ab),'width':_0x98ddd1(0x2ec),'height':_0x98ddd1(0x2ec)},'children':[{'tag':_0x98ddd1(0x2f1),'attrs':{'fill':_0x98ddd1(0x1a2),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x98ddd1(0x2f1),'attrs':{'fill':_0x98ddd1(0x1a2),'d':_0x98ddd1(0x220)}},{'tag':_0x98ddd1(0x2f1),'attrs':{'fill':_0x98ddd1(0x1a2),'d':_0x98ddd1(0x1c0),'fillRule':_0x98ddd1(0x2d0),'clipRule':_0x98ddd1(0x2d0)}}]},F=d[_0x98ddd1(0x274)](function(_0x29c3f6,_0x2e02d4){const _0x3c58b4=_0x98ddd1;return d[_0x3c58b4(0x1bc)](_,Object[_0x3c58b4(0x1e6)]({},_0x29c3f6,{'id':_0x3c58b4(0x227),'ref':_0x2e02d4,'icon':fe}));});function _0x5a53(){const _0x341fe3=['use','http','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Session\x20ID','点击配置\x20MCP','mcpConfig.apiKeyPlaceholder','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','showDeveloperTools','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','ICommandService','mcpStatus.networkError','mcp-ui.config','COMMAND','random','重连中...','20082020GJSZsP','univer-text-xs\x20univer-text-gray-600','最大重试次数','mcpConfig.saving','univer-space-y-2','mergeMenu','assign','Configuration\x20Notes:','Disposable','API\x20Key','includes','IUIPartsService','off-line-icon','7394832MQDZmE','BUTTON','univer-bg-green-500','fill','univer-text-yellow-500','未连接','on-line-icon_clip0_910_349','MCP\x20Connection\x20Failed','MCP\x20已连接','OTHERS','univer-text-gray-500','UniverMCPPlugin','univer-bg-blue-500','mcpConfig.connectionError.sessionOccupied','mcpConfig.validation.apiKeyRequired','univerjs-icon\x20univerjs-icon-','univer-text-red-500','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','map','BehaviorSubject','3180495NVCkXm','您的\x20API\x20密钥将在此浏览器中本地存储','133GsNVSd','mcpConfig.connectionStatus.failed','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','ILocalStorageService','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','getConfig','div','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','配置保存失败','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-bg-red-500','_createConfigPanelComponent','mcpConfig.configStep1','univer-flex\x20univer-items-center','text','mask','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','Module','Authorization:','Univer\x20AI\x20控制台','_injector','noopener\x20noreferrer','_loadStoredApiKey','mcpConfig.configError','url(#on-line-icon_clip0_910_349)','mcpConfig.configParameters','点击连接\x20MCP','WebSocketService','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','substring','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','Failed\x20to\x20save\x20configuration','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20客户端配置','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','help-icon','Inject','MCPConfigPanel','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-text-sm\x20univer-font-medium','MCP\x20Client\x20Configuration','Enter\x20your\x20API\x20key','mcpConfig.title','button','mcp-ui.command.openConfigPanel','_initStatusComponent','show','registerComponent','MCP\x20Unknown\x20Status','RibbonStartGroup','Tooltip','off-line-icon_clip0_910_343','_validateConfig','UniverMCPUIPlugin','CommandType','MCPConnectionController','length','MCP\x20Connected','M0\x200H16V16H0z','mcpStatus.connecting','connectionStatus$','2649684yhntES','2jzLvpJ','mcpConfig.sessionIdDescription','Injector','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','MAX_RETRIES_EXCEEDED','Click\x20to\x20configure\x20MCP','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','NETWORK_ERROR','API\x20密钥','权限验证失败,请检查您的\x20API\x20密钥','重启您的\x20MCP\x20客户端以使配置生效','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','value','connectInjector','mcpStatus.retrying','MCP_UI_PLUGIN','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','enableAutoConnect','_initAutoConnect','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-flex\x20univer-items-start\x20univer-gap-3','Invalid\x20configuration','DISCONNECTED','univer-space-y-3','MCP\x20配置','mcpStatus.disconnected','配置更改将立即生效','API\x20key\x20is\x20required','MCP_PLUGIN_CONFIG_KEY','mcpStatus.unauthorized','CloseIcon','onStarting','mcpConfig.apiApplyInfo.description','registerCommand','保存中...','next','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','register','\x20-\x20','zhCN','close','API\x20密钥不能为空','Disconnected','idSuffix','MCP\x20Configuration','连接中...','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','已连接','bottom','forwardRef','132NFWOve','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_registerComponent','jsxs','配置\x20MCP\x20使用\x20AI\x20操作电子表格','会话ID','useCallback','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','配置保存成功','Click\x20to\x20connect\x20MCP','mcpConfig.connectionStatus.connecting','Retrying...','Configuration\x20saved\x20successfully','LocaleService','univer-space-y-5','_menuManagerService','validateApiKey','off','mcpStatus.connected','MenuItemType','_mcpCoreConfig$','attrs','OpenMCPConfigPanelCommand','mcpConfig.configStep3','sessionId$','current','什么是\x20API\x20密钥?','FAILED','mcpConfig.apiKey','mcpServerUrl','_initializeMenus','pluginName','_uiPartsService','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','_logService','toString','MCP\x20状态未知','clsx','children','univer-min-w-0\x20univer-flex-1','mcpStatus.clickToConnect','toStringTag','Max\x20Retries','univer-flex\x20univer-items-start\x20univer-gap-2','getCurrentConfig','配置参数:','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','IMenuManagerService','xlink:href','Input','mcpConfig.connectionError.networkError','您的\x20API\x20密钥安全存储在本地存储中','mcpConfig.connectionStatus.connected','0\x200\x2016\x2016','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','disposeWithMe','tag','univer-text-xs\x20univer-text-gray-500','MessageType','url(#$1','MCP:\x20未授权','univer.ai','useState','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpConfig.connectionInfo','none','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','mcpConfig.apiApplyInfo.getStarted','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','univer-flex\x20univer-items-center\x20univer-gap-2','warn','MCPConnectionUIController','NONE','_localeService','mcp-config-dialog','_config','univer_session_id:','mcpConfig.save','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-mr-2\x20univer-flex\x20univer-text-xl','enUS','string','http://www.w3.org/2000/svg','MCP:\x20网络错误','请输入您的\x20API\x20密钥','univer-text-gray-400','subscribe','MCP\x20Disconnected','univer-font-medium','evenodd','getOwnPropertyDescriptor','HEADER_MENU','univer-flex-1','MCPConfigUIController','_blank','error','将以下配置添加到您的\x20MCP\x20客户端设置中:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpStatus.failed','mcpConfig.validation.invalidApiKey','mcpConfig.configStepTitle','isValid','useObservable','defineProperty','replace','svg','setConfig','univer-flex\x20univer-gap-3','几秒钟内获取您的\x20API\x20密钥','mcpConfig.configInstructions','RETRYING','_config$','_apiKey$','OffLineIcon','mcpConfig.connectionError.unauthorized','BuiltInUIPart','mcpStatus.maxRetriesExceeded','1em','Configuration\x20Parameters:','pre','MCP\x20Retrying...','univer-text-white','path','defs','<SESSION_ID>','MCP:\x20Network\x20Error','_initConfigSync','__setCustomHeaders','round','CheckMarkIcon','OnLineIcon','url(#off-line-icon_clip0_910_343)','mcpConfig.configStep2','univer-shrink-0\x20univer-text-blue-500','MCPConnectionError','ILogService','SESSION_ID_OCCUPIED','_connectionController','Univer\x20AI\x20Console','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','_mcpConnectionController','mcpConfig.validation.apiKeyTooShort','MenuIcon','add','MCPConnectionStatus','162236cSbluG','MCP\x20Connecting...','CONNECTING','Error','Connection\x20Failed','MCP:\x20Max\x20Retries\x20Exceeded','_dialogService','mcpConfig.apiApplyInfo.title','_handleConfigSave','mcpConfig.connectionStatus.disconnected','_messageService','showConfigPanel','on-line-icon','forEach','_loading$','check-mark-icon','IConfigService','mcpConfig.note1','_configService','displayName','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpConfig.connectionError.maxRetriesExceeded','MCP:\x20会话\x20ID\x20已被占用','Bearer\x20','1592830pGwlKS','<API_KEY>','colorChannel1','MCP:\x20超出最大重试次数','Save\x20Configuration','HelpIcon','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','UNAUTHORIZED','MCPUIMenuController','trim','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','mcpConfig.authorizationDescription','_localStorageService','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','MCP\x20连接失败','currentColor','subscribeConfigValue$','mcpConfig.apiKeyHint','entries','label','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','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','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','https://console.univer.ai','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','apiKey','connectionError$','_commandService','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','MCP:\x20Session\x20ID\x20Occupied','symbol','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','defIds','Get\x20your\x20API\x20key\x20in\x20seconds','配置无效','_handleConfigure','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpStatus.sessionOccupied','超出最大重试次数,请稍后再试','mcp.apiKey','createElement','mcpConfig.description','get','ISocketService','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','push','jsx','542456HKVWuR','IDialogService','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-flex\x20univer-items-center\x20univer-gap-3','univer-size-4','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer.plus','getItem','span','clipPath','_componentManager','useDependency','white','Button'];_0x5a53=function(){return _0x341fe3;};return _0x5a53();}F[_0x98ddd1(0x31b)]=_0x98ddd1(0x325);const pe={'tag':_0x98ddd1(0x2e0),'attrs':{'xmlns':_0x98ddd1(0x2c9),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x98ddd1(0x2ec),'height':_0x98ddd1(0x2ec)},'children':[{'tag':'g','attrs':{'clipPath':_0x98ddd1(0x2fa)},'children':[{'tag':_0x98ddd1(0x2f1),'attrs':{'stroke':_0x98ddd1(0x1a2),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':_0x98ddd1(0x2f7),'strokeWidth':1.2}}]},{'tag':_0x98ddd1(0x2f2),'attrs':{},'children':[{'tag':_0x98ddd1(0x1cc),'attrs':{'id':_0x98ddd1(0x238)},'children':[{'tag':_0x98ddd1(0x2f1),'attrs':{'fill':_0x98ddd1(0x1cf),'d':_0x98ddd1(0x23f)}}]}]}],'defIds':[_0x98ddd1(0x238)]},Y=d[_0x98ddd1(0x274)](function(_0x1d8db3,_0x362526){const _0x45eb8d=_0x98ddd1;return d[_0x45eb8d(0x1bc)](_,Object[_0x45eb8d(0x1e6)]({},_0x1d8db3,{'id':_0x45eb8d(0x1ec),'ref':_0x362526,'icon':pe}));});Y[_0x98ddd1(0x31b)]=_0x98ddd1(0x2e8);const he={'tag':_0x98ddd1(0x2e0),'attrs':{'xmlns':_0x98ddd1(0x2c9),'fill':_0x98ddd1(0x2b8),'viewBox':'0\x200\x2017\x2016','width':_0x98ddd1(0x2ec),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x98ddd1(0x21c)},'children':[{'tag':_0x98ddd1(0x2f1),'attrs':{'stroke':_0x98ddd1(0x1a2),'d':_0x98ddd1(0x205),'strokeLinecap':_0x98ddd1(0x2f7),'strokeLinejoin':_0x98ddd1(0x2f7),'strokeWidth':1.2}}]},{'tag':_0x98ddd1(0x2f2),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x98ddd1(0x1cf),'d':_0x98ddd1(0x23f),'transform':'translate(.97)'}}]}]}],'defIds':[_0x98ddd1(0x1f3)]},q=d[_0x98ddd1(0x274)](function(_0x20bc7b,_0x2b7782){const _0x368be9=_0x98ddd1;return d[_0x368be9(0x1bc)](_,Object[_0x368be9(0x1e6)]({},_0x20bc7b,{'id':_0x368be9(0x314),'ref':_0x2b7782,'icon':he}));});q[_0x98ddd1(0x31b)]=_0x98ddd1(0x2f9);function V(_0x165697){const _0x24153d=_0x98ddd1;var _0x4bab3e,_0x471078;const {mcpCoreConfig:_0x4e6265,onSave:_0x20026a,loading:_0x1c8108=!0x1,config:_0xc16251,connectionStatus$:_0x1528ea,connectionError$:_0x5c73cc,currentApiKey$:_0x35efd2,currentSessionId$:_0x49d1fd}=_0x165697,_0x20a31a=v[_0x24153d(0x1ce)](u[_0x24153d(0x282)]),_0x4112db=v[_0x24153d(0x2dd)](_0x1528ea,s[_0x24153d(0x307)]['DISCONNECTED']),_0x5c1f60=v['useObservable'](_0x5c73cc,s[_0x24153d(0x2fd)][_0x24153d(0x2bf)]),_0x293052=v['useObservable'](_0x49d1fd,''),_0x3e3312=v['useObservable'](_0x35efd2,''),[_0x16993f,_0x3639c8]=d[_0x24153d(0x2b4)](_0x3e3312||''),_0x3c2677=!0x0,_0x1ed47f=_0xc16251[_0x24153d(0x1d8)]&&_0x4e6265[_0x24153d(0x292)]&&(_0x4e6265[_0x24153d(0x292)]['includes'](_0x24153d(0x1c9))||_0x4e6265['mcpServerUrl'][_0x24153d(0x1ea)](_0x24153d(0x2b3))),_0x1e9e36=(_0x4bab3e=_0x4e6265[_0x24153d(0x292)])==null?void 0x0:_0x4bab3e[_0x24153d(0x1ea)](_0x24153d(0x1c9)),_0x1529b4=(_0x471078=_0x4e6265[_0x24153d(0x292)])==null?void 0x0:_0x471078['includes'](_0x24153d(0x2b3)),_0x2f77e0=_0x1e9e36?'https://console.univer.plus':_0x24153d(0x1aa),_0x50a2fc=_0xc16251['showDeveloperTools']&&(_0x1e9e36||_0x1529b4),[_0x49459f,_0x1710be]=d['useState'](!_0x16993f[_0x24153d(0x329)]()),_0x2ff5ab=(_0x55c43c,_0x1a1e71)=>{const _0x360e6d=_0x24153d;if(_0x1a1e71===s['MCPConnectionError'][_0x360e6d(0x327)])return _0x360e6d(0x2ac);switch(_0x55c43c){case s[_0x360e6d(0x307)][_0x360e6d(0x22a)]:return _0x360e6d(0x296);case s[_0x360e6d(0x307)][_0x360e6d(0x30a)]:case s['MCPConnectionStatus'][_0x360e6d(0x2e5)]:return _0x360e6d(0x1a7);case s[_0x360e6d(0x307)][_0x360e6d(0x290)]:return _0x360e6d(0x2ac);default:return _0x360e6d(0x20d);}},_0x14d6b7=(_0x44c2dc,_0x1edea2)=>{const _0x6ad139=_0x24153d;if(_0x1edea2===s[_0x6ad139(0x2fd)][_0x6ad139(0x327)])return _0x6ad139(0x20e);switch(_0x44c2dc){case s[_0x6ad139(0x307)][_0x6ad139(0x22a)]:return _0x6ad139(0x1ef);case s[_0x6ad139(0x307)][_0x6ad139(0x30a)]:case s['MCPConnectionStatus'][_0x6ad139(0x2e5)]:return _0x6ad139(0x1f9);case s['MCPConnectionStatus']['FAILED']:return _0x6ad139(0x20e);default:return'univer-bg-gray-500';}},_0x527422=_0x3bac8d=>{const _0x305d60=_0x24153d;switch(_0x3bac8d){case s['MCPConnectionStatus']['CONNECTED']:return _0x20a31a['t'](_0x305d60(0x2aa));case s[_0x305d60(0x307)]['CONNECTING']:return _0x20a31a['t'](_0x305d60(0x27f));case s[_0x305d60(0x307)][_0x305d60(0x290)]:return _0x20a31a['t'](_0x305d60(0x204));case s[_0x305d60(0x307)][_0x305d60(0x2e5)]:return _0x20a31a['t']('mcpConfig.connectionStatus.retrying');default:return _0x20a31a['t'](_0x305d60(0x311));}},_0x3f57b3=_0x304e89=>{const _0xab80e1=_0x24153d;switch(_0x304e89){case s[_0xab80e1(0x2fd)][_0xab80e1(0x327)]:return _0x20a31a['t'](_0xab80e1(0x2e9));case s[_0xab80e1(0x2fd)][_0xab80e1(0x2ff)]:return _0x20a31a['t'](_0xab80e1(0x1fa));case s[_0xab80e1(0x2fd)][_0xab80e1(0x24a)]:return _0x20a31a['t'](_0xab80e1(0x2a8));case s[_0xab80e1(0x2fd)][_0xab80e1(0x247)]:return _0x20a31a['t'](_0xab80e1(0x31d));default:return'';}},_0x471b06=d['useCallback'](()=>{const _0x281314=_0x24153d,_0x5c1fac={..._0x4e6265,'apiKey':_0x16993f[_0x281314(0x329)](),'enableAuth':_0x3c2677};_0x20026a(_0x5c1fac);},[_0x4e6265,_0x16993f,_0x3c2677,_0x20026a]),_0x16902d=_0x16993f[_0x24153d(0x329)]()[_0x24153d(0x23d)]>0x0;return i[_0x24153d(0x278)](_0x24153d(0x209),{'className':_0x24153d(0x214),'children':[i['jsx'](_0x24153d(0x209),{'className':_0x24153d(0x267),'children':i[_0x24153d(0x278)](_0x24153d(0x209),{'className':_0x24153d(0x1c6),'children':[i[_0x24153d(0x1c2)]('div',{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':i[_0x24153d(0x1c2)](_0x24153d(0x1cb),{'className':_0x24153d(0x2f0),'children':'⚙'})}),i[_0x24153d(0x1c2)](_0x24153d(0x209),{'children':i['jsx']('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x20a31a['t'](_0x24153d(0x1bd))})})]})}),i[_0x24153d(0x278)](_0x24153d(0x209),{'className':_0x24153d(0x256),'children':[i[_0x24153d(0x1c2)](_0x24153d(0x209),{'className':f[_0x24153d(0x29b)](_0x24153d(0x326),_0x2ff5ab(_0x4112db,_0x5c1f60)),'children':i[_0x24153d(0x278)](_0x24153d(0x209),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x24153d(0x1c2)](_0x24153d(0x209),{'className':f[_0x24153d(0x29b)]('univer-size-2\x20univer-rounded-full',_0x14d6b7(_0x4112db,_0x5c1f60))}),i['jsx']('span',{'className':_0x24153d(0x22c),'children':_0x527422(_0x4112db)})]})}),_0x5c1f60!==s['MCPConnectionError'][_0x24153d(0x2bf)]&&(_0x4112db===s[_0x24153d(0x307)][_0x24153d(0x290)]||_0x5c1f60===s[_0x24153d(0x2fd)][_0x24153d(0x327)])&&i[_0x24153d(0x1c2)](_0x24153d(0x209),{'className':_0x24153d(0x246),'children':i['jsxs'](_0x24153d(0x209),{'className':_0x24153d(0x2a1),'children':[i[_0x24153d(0x1c2)](_0x24153d(0x1cb),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),i[_0x24153d(0x1c2)]('p',{'className':_0x24153d(0x1a0),'children':_0x3f57b3(_0x5c1f60)})]})})]}),i[_0x24153d(0x1c2)]('div',{'className':_0x24153d(0x31c),'children':i[_0x24153d(0x278)](_0x24153d(0x209),{'className':_0x24153d(0x283),'children':[i[_0x24153d(0x278)]('div',{'className':_0x24153d(0x1e4),'children':[i[_0x24153d(0x278)](_0x24153d(0x1a6),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[i['jsx']('span',{'children':'🔑'}),'\x20',_0x20a31a['t'](_0x24153d(0x291)),i['jsx'](_0x24153d(0x1cb),{'className':_0x24153d(0x1fd),'children':'*'}),_0x1ed47f&&i['jsx']('a',{'className':_0x24153d(0x302),'title':_0x20a31a['t'](_0x24153d(0x30f)),'role':_0x24153d(0x230),'onClick':()=>_0x1710be(!0x0),'children':i['jsx'](F,{})})]}),i[_0x24153d(0x1c2)](f[_0x24153d(0x2a7)],{'type':_0x24153d(0x212),'placeholder':_0x20a31a['t'](_0x24153d(0x1d6)),'value':_0x16993f,'disabled':_0x1c8108,'autoComplete':_0x24153d(0x286),'onChange':_0x3639c8}),i[_0x24153d(0x1c2)]('p',{'className':_0x24153d(0x2af),'children':_0x20a31a['t'](_0x24153d(0x1a4))})]}),_0x1ed47f&&_0x49459f&&i[_0x24153d(0x278)]('div',{'className':_0x24153d(0x32a),'children':[i['jsx']('a',{'className':_0x24153d(0x1ab),'role':_0x24153d(0x230),'onClick':()=>_0x1710be(!0x1),'children':i['jsx'](B,{'className':_0x24153d(0x1c7)})}),i[_0x24153d(0x278)](_0x24153d(0x209),{'className':_0x24153d(0x2b5),'children':[i[_0x24153d(0x1c2)](_0x24153d(0x209),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':i[_0x24153d(0x1c2)](_0x24153d(0x1cb),{'className':'univer-text-blue-600','children':'🚀'})}),i['jsxs'](_0x24153d(0x209),{'className':_0x24153d(0x2d3),'children':[i['jsx']('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x20a31a['t'](_0x24153d(0x30f))}),i[_0x24153d(0x1c2)]('p',{'className':_0x24153d(0x2a4),'children':_0x20a31a['t'](_0x24153d(0x263))}),i[_0x24153d(0x1c2)](_0x24153d(0x209),{'className':_0x24153d(0x224),'children':_0x50a2fc&&i[_0x24153d(0x278)]('a',{'className':_0x24153d(0x22b),'href':_0x2f77e0,'target':_0x24153d(0x2d5),'rel':_0x24153d(0x219),'children':[i['jsx']('span',{'children':'🤖'}),_0x20a31a['t']('mcpConfig.apiApplyInfo.univerAiLabel'),i[_0x24153d(0x1c2)]('span',{'className':_0x24153d(0x2cc),'children':'↗'})]})}),i['jsxs'](_0x24153d(0x209),{'className':_0x24153d(0x271),'children':['✨','\x20',_0x20a31a['t'](_0x24153d(0x2ba))]})]})]})]}),_0xc16251[_0x24153d(0x1d8)]&&i[_0x24153d(0x278)](_0x24153d(0x209),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[i['jsxs']('h4',{'className':_0x24153d(0x249),'children':[i[_0x24153d(0x1c2)](_0x24153d(0x1cb),{'children':'🔗'}),'\x20',_0x20a31a['t'](_0x24153d(0x2b7))]}),i[_0x24153d(0x278)](_0x24153d(0x209),{'className':'univer-space-y-4','children':[i['jsxs'](_0x24153d(0x209),{'className':_0x24153d(0x25a),'children':[i[_0x24153d(0x1c2)]('p',{'className':_0x24153d(0x1e1),'children':_0x20a31a['t'](_0x24153d(0x2e4))}),i['jsxs'](_0x24153d(0x209),{'className':_0x24153d(0x1e4),'children':[i[_0x24153d(0x1c2)](_0x24153d(0x209),{'className':_0x24153d(0x2c5),'children':_0x20a31a['t'](_0x24153d(0x2db))}),i['jsxs'](_0x24153d(0x209),{'className':_0x24153d(0x1b0),'children':[i['jsxs'](_0x24153d(0x209),{'className':_0x24153d(0x2bc),'children':[i[_0x24153d(0x1c2)](_0x24153d(0x1cb),{'className':_0x24153d(0x1a8),'children':'1'}),_0x20a31a['t'](_0x24153d(0x210))]}),i[_0x24153d(0x278)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x24153d(0x1c2)](_0x24153d(0x1cb),{'className':_0x24153d(0x1a8),'children':'2'}),_0x20a31a['t'](_0x24153d(0x2fb))]}),i['jsxs']('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x24153d(0x1c2)]('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'}),_0x20a31a['t'](_0x24153d(0x28c))]})]})]})]}),i[_0x24153d(0x278)](_0x24153d(0x209),{'className':_0x24153d(0x1e4),'children':[i[_0x24153d(0x1c2)](_0x24153d(0x209),{'className':_0x24153d(0x2c5),'children':_0x24153d(0x26f)}),i[_0x24153d(0x1c2)](_0x24153d(0x209),{'className':_0x24153d(0x1d7),'children':i[_0x24153d(0x1c2)](_0x24153d(0x2ee),{'className':_0x24153d(0x1b8),'children':JSON['stringify']({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x293052||_0x24153d(0x2f3)),'type':_0x24153d(0x1d2),'headers':{'Authorization':_0x24153d(0x31f)+(_0x16993f||_0x24153d(0x321))}}}},null,0x2)})})]}),i[_0x24153d(0x278)](_0x24153d(0x209),{'className':_0x24153d(0x25a),'children':[i[_0x24153d(0x1c2)](_0x24153d(0x209),{'className':_0x24153d(0x2c5),'children':_0x20a31a['t'](_0x24153d(0x21d))}),i[_0x24153d(0x278)]('div',{'className':_0x24153d(0x1e4),'children':[i[_0x24153d(0x278)](_0x24153d(0x209),{'className':_0x24153d(0x257),'children':[i['jsx']('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i[_0x24153d(0x278)](_0x24153d(0x209),{'className':_0x24153d(0x29d),'children':[i[_0x24153d(0x1c2)](_0x24153d(0x209),{'className':_0x24153d(0x2bb),'children':_0x24153d(0x2c3)}),i[_0x24153d(0x1c2)]('div',{'className':_0x24153d(0x2af),'children':_0x20a31a['t'](_0x24153d(0x244))})]})]}),i[_0x24153d(0x278)](_0x24153d(0x209),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i['jsx'](_0x24153d(0x209),{'className':_0x24153d(0x1d3)}),i[_0x24153d(0x278)]('div',{'className':_0x24153d(0x29d),'children':[i[_0x24153d(0x1c2)](_0x24153d(0x209),{'className':_0x24153d(0x2bb),'children':_0x24153d(0x216)}),i[_0x24153d(0x1c2)](_0x24153d(0x209),{'className':_0x24153d(0x2af),'children':_0x20a31a['t'](_0x24153d(0x32b))})]})]})]})]})]})]}),i[_0x24153d(0x1c2)](f[_0x24153d(0x1d0)],{'onClick':_0x471b06,'disabled':!_0x16902d||_0x1c8108,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x1c8108?i[_0x24153d(0x278)](_0x24153d(0x1cb),{'className':_0x24153d(0x2bc),'children':[i[_0x24153d(0x1c2)](_0x24153d(0x1cb),{'children':'⟲'}),_0x20a31a['t'](_0x24153d(0x1e3))]}):i[_0x24153d(0x278)](_0x24153d(0x1cb),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x24153d(0x1c2)](H,{}),_0x20a31a['t'](_0x24153d(0x2c4))]})}),i[_0x24153d(0x1c2)](_0x24153d(0x209),{'className':_0x24153d(0x222),'children':i[_0x24153d(0x278)]('div',{'className':_0x24153d(0x2e2),'children':[i[_0x24153d(0x1c2)]('span',{'className':_0x24153d(0x2fc),'children':'💡'}),i[_0x24153d(0x278)](_0x24153d(0x209),{'className':_0x24153d(0x1af),'children':[i[_0x24153d(0x1c2)](_0x24153d(0x209),{'className':_0x24153d(0x2cf),'children':_0x24153d(0x1e7)}),i[_0x24153d(0x278)](_0x24153d(0x209),{'children':['•',_0x20a31a['t'](_0x24153d(0x319))]}),i['jsxs'](_0x24153d(0x209),{'children':['•',_0x20a31a['t']('mcpConfig.note2')]})]})]})})]})})]});}const P=_0x98ddd1(0x1dc),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object['getOwnPropertyDescriptor'],xe=(_0x145ee6,_0x103428,_0x4919d0,_0x416b49)=>{for(var _0x130940=_0x416b49>0x1?void 0x0:_0x416b49?me(_0x103428,_0x4919d0):_0x103428,_0x1ecf52=_0x145ee6['length']-0x1,_0x281e53;_0x1ecf52>=0x0;_0x1ecf52--)(_0x281e53=_0x145ee6[_0x1ecf52])&&(_0x130940=_0x281e53(_0x130940)||_0x130940);return _0x130940;},g=(_0x4f3062,_0x39e60e)=>(_0x7414fe,_0x2506c9)=>_0x39e60e(_0x7414fe,_0x2506c9,_0x4f3062);const O=_0x98ddd1(0x1bb),D=_0x98ddd1(0x2c1);exports[_0x98ddd1(0x2d4)]=class extends u[_0x98ddd1(0x1e8)]{constructor(_0x313b68,_0x3a9721,_0x17c2a6,_0x34b277,_0x28fcf6,_0x89a616,_0x48110d,_0x2d8986,_0x553751,_0x5ab30e){const _0x95873=_0x98ddd1;super(),I(this,_0x95873(0x316),new M[(_0x95873(0x200))](!0x1)),I(this,_0x95873(0x289),new M[(_0x95873(0x200))]({})),I(this,_0x95873(0x2e6),new M[(_0x95873(0x200))]({})),I(this,'_apiKey$',new M[(_0x95873(0x200))]('')),I(this,'_handleConfigSave',async _0x80b67f=>{const _0x15840f=_0x95873;var _0x4c0b3c,_0x423e55;this['_loading$']['next'](!0x0);try{const _0x43ceca=await this[_0x15840f(0x239)](_0x80b67f);if(!_0x43ceca[_0x15840f(0x2dc)]){this['_messageService']['show']({'type':f[_0x15840f(0x2b0)][_0x15840f(0x30b)],'content':_0x43ceca['errorMessage']||this['_localeService']['t']('mcpConfig.validation.invalidConfig')});return;}_0x80b67f['apiKey']?await this[_0x15840f(0x32c)]['setItem'](O,_0x80b67f[_0x15840f(0x1ac)]['trim']()):await this[_0x15840f(0x32c)]['removeItem'](O),this[_0x15840f(0x2e7)][_0x15840f(0x266)](((_0x4c0b3c=_0x80b67f['apiKey'])==null?void 0x0:_0x4c0b3c[_0x15840f(0x329)]())||''),this[_0x15840f(0x303)][_0x15840f(0x2f6)]({'Authorization':_0x15840f(0x31f)+((_0x423e55=_0x80b67f['apiKey'])==null?void 0x0:_0x423e55['trim']())}),this[_0x15840f(0x312)]['show']({'type':f[_0x15840f(0x2b0)]['Success'],'content':this['_localeService']['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x3cbc8b=_0x15840f;this[_0x3cbc8b(0x30e)][_0x3cbc8b(0x26b)](D);},0x320);}catch(_0x1a2f7a){this[_0x15840f(0x298)][_0x15840f(0x2d6)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x1a2f7a),this['_messageService'][_0x15840f(0x233)]({'type':f[_0x15840f(0x2b0)]['Error'],'content':this[_0x15840f(0x2c0)]['t'](_0x15840f(0x21b))});}finally{this[_0x15840f(0x316)]['next'](!0x1);}}),(this[_0x95873(0x218)]=_0x313b68,this[_0x95873(0x295)]=_0x3a9721,this['_configService']=_0x17c2a6,this[_0x95873(0x32c)]=_0x34b277,this[_0x95873(0x30e)]=_0x28fcf6,this[_0x95873(0x312)]=_0x89a616,this[_0x95873(0x1cd)]=_0x48110d,this[_0x95873(0x2c0)]=_0x2d8986,this[_0x95873(0x298)]=_0x553751,this[_0x95873(0x303)]=_0x5ab30e,this[_0x95873(0x2f5)](),this[_0x95873(0x21a)](),this[_0x95873(0x277)]());}[_0x98ddd1(0x313)](){const _0x545112=_0x98ddd1,_0xfa5f8d=this[_0x545112(0x31a)]['getConfig'](P);_0xfa5f8d!=null&&_0xfa5f8d[_0x545112(0x1d8)]&&this[_0x545112(0x30e)]['open']({'id':D,'title':{'title':this['_localeService']['t']('mcpConfig.title')},'children':{'label':_0x545112(0x229)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{this['_dialogService']['close'](D);}});}[_0x98ddd1(0x2a2)](){const _0x2725=_0x98ddd1;return this[_0x2725(0x289)][_0x2725(0x24f)];}['_registerComponent'](){const _0x32b09e=_0x98ddd1;this[_0x32b09e(0x2ad)](this[_0x32b09e(0x1cd)][_0x32b09e(0x268)](_0x32b09e(0x229),this[_0x32b09e(0x20f)]()));}[_0x98ddd1(0x20f)](){const _0x4b10d2=_0x98ddd1;return v[_0x4b10d2(0x250)](()=>{const _0x138ac3=_0x4b10d2;var _0x10eaec,_0x21ccd1,_0x101458;return i['jsx'](V,{'config':this[_0x138ac3(0x2e6)]['value'],'mcpCoreConfig':this[_0x138ac3(0x289)][_0x138ac3(0x24f)],'currentApiKey$':this[_0x138ac3(0x2e7)],'onSave':this[_0x138ac3(0x310)],'loading':this[_0x138ac3(0x316)]['value'],'connectionStatus$':(_0x10eaec=this['_mcpConnectionController'])==null?void 0x0:_0x10eaec[_0x138ac3(0x241)],'connectionError$':(_0x21ccd1=this[_0x138ac3(0x303)])==null?void 0x0:_0x21ccd1[_0x138ac3(0x1ad)],'currentSessionId$':(_0x101458=this[_0x138ac3(0x303)])==null?void 0x0:_0x101458[_0x138ac3(0x28d)]});},this['_injector']);}[_0x98ddd1(0x2f5)](){const _0x20a14b=_0x98ddd1;this[_0x20a14b(0x2ad)](this[_0x20a14b(0x31a)][_0x20a14b(0x1a3)](s['MCP_PLUGIN_CONFIG_KEY'])['subscribe'](_0x16c3de=>{const _0x36df51=_0x20a14b;this[_0x36df51(0x289)][_0x36df51(0x266)](_0x16c3de||{});}));const _0x4d29d5=this[_0x20a14b(0x31a)][_0x20a14b(0x208)](s[_0x20a14b(0x25f)]);this[_0x20a14b(0x289)][_0x20a14b(0x266)](_0x4d29d5||{}),this[_0x20a14b(0x2ad)](this[_0x20a14b(0x31a)][_0x20a14b(0x1a3)](P)[_0x20a14b(0x2cd)](_0x1fa723=>{this['_config$']['next'](_0x1fa723||{});}));const _0x4ea4f9=this[_0x20a14b(0x31a)]['getConfig'](P);this[_0x20a14b(0x2e6)][_0x20a14b(0x266)](_0x4ea4f9||{});}async[_0x98ddd1(0x21a)](){const _0x1c9787=_0x98ddd1,_0x156c88=this[_0x1c9787(0x31a)][_0x1c9787(0x208)](P);if(!(_0x156c88!=null&&_0x156c88[_0x1c9787(0x1d8)]))return;const _0x20cce9=await this[_0x1c9787(0x32c)][_0x1c9787(0x1ca)](O);_0x20cce9&&(this[_0x1c9787(0x303)]['__setCustomHeaders']({'Authorization':_0x1c9787(0x31f)+_0x20cce9}),this[_0x1c9787(0x2e7)][_0x1c9787(0x266)](_0x20cce9));}async['_validateConfig'](_0x30a385){const _0x202513=_0x98ddd1;if(!_0x30a385[_0x202513(0x1ac)]||_0x30a385[_0x202513(0x1ac)][_0x202513(0x329)]()[_0x202513(0x23d)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x202513(0x2c0)]['t'](_0x202513(0x1fb))};if(_0x30a385[_0x202513(0x1ac)][_0x202513(0x329)]()[_0x202513(0x23d)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x202513(0x2c0)]['t'](_0x202513(0x304))};try{const _0x4b8362=await this['_injector']['get'](s['MCPConnectionController'])[_0x202513(0x285)](_0x30a385[_0x202513(0x1ac)][_0x202513(0x329)]());return _0x4b8362[_0x202513(0x2dc)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x4b8362[_0x202513(0x2d6)]||this[_0x202513(0x2c0)]['t'](_0x202513(0x2da))};}catch(_0xd75140){return console[_0x202513(0x2bd)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0xd75140),{'isValid':!0x0};}}},exports['MCPConfigUIController']=xe([g(0x0,u['Inject'](u[_0x98ddd1(0x245)])),g(0x1,v[_0x98ddd1(0x1eb)]),g(0x2,u[_0x98ddd1(0x318)]),g(0x3,u[_0x98ddd1(0x206)]),g(0x4,v[_0x98ddd1(0x1c4)]),g(0x5,v['IMessageService']),g(0x6,u[_0x98ddd1(0x228)](v['ComponentManager'])),g(0x7,u[_0x98ddd1(0x228)](u[_0x98ddd1(0x282)])),g(0x8,u[_0x98ddd1(0x2fe)]),g(0x9,u[_0x98ddd1(0x228)](s[_0x98ddd1(0x23c)]))],exports[_0x98ddd1(0x2d4)]);const b={'id':_0x98ddd1(0x231),'type':u[_0x98ddd1(0x23b)][_0x98ddd1(0x1dd)],'handler':async(_0x2202cc,_0x440431)=>(_0x2202cc['get'](exports[_0x98ddd1(0x2d4)])['showConfigPanel'](),!0x0)};function Z(_0x3fb35b,_0x2037cc){const _0x40b527=_0x98ddd1;switch(_0x3fb35b){case s[_0x40b527(0x307)]['DISCONNECTED']:return _0x40b527(0x25c);case s['MCPConnectionStatus']['CONNECTING']:return _0x40b527(0x240);case s[_0x40b527(0x307)][_0x40b527(0x22a)]:return _0x40b527(0x287);case s[_0x40b527(0x307)]['FAILED']:switch(_0x2037cc){case s[_0x40b527(0x2fd)][_0x40b527(0x327)]:return _0x40b527(0x260);case s['MCPConnectionError'][_0x40b527(0x2ff)]:return _0x40b527(0x1b9);case s[_0x40b527(0x2fd)][_0x40b527(0x24a)]:return _0x40b527(0x1db);case s[_0x40b527(0x2fd)][_0x40b527(0x247)]:return _0x40b527(0x2eb);default:return _0x40b527(0x2d9);}case s[_0x40b527(0x307)]['RETRYING']:return _0x40b527(0x251);default:return'mcpStatus.unknown';}}function Se(_0x2a639d,_0x3d4b65,_0x46aba9,_0x59f67a=!0x0){const _0x3fbde2=_0x98ddd1,_0x116e8f=Z(_0x2a639d,_0x3d4b65),_0x4169ae=_0x46aba9['t'](_0x116e8f);return _0x59f67a?_0x2a639d===s[_0x3fbde2(0x307)][_0x3fbde2(0x259)]&&_0x3d4b65===s[_0x3fbde2(0x2fd)]['UNAUTHORIZED']?_0x4169ae+'\x20-\x20'+_0x46aba9['t']('mcpStatus.clickToConfigure'):_0x2a639d===s[_0x3fbde2(0x307)][_0x3fbde2(0x22a)]?''+_0x4169ae:_0x2a639d===s[_0x3fbde2(0x307)][_0x3fbde2(0x259)]||_0x2a639d===s['MCPConnectionStatus']['FAILED']?_0x4169ae+_0x3fbde2(0x269)+_0x46aba9['t'](_0x3fbde2(0x29e)):_0x4169ae:_0x4169ae;}function Pe(_0x59a3e3){const _0x456b73=_0x98ddd1;switch(_0x59a3e3){case s[_0x456b73(0x307)]['CONNECTED']:return'univer-text-green-500';case s[_0x456b73(0x307)][_0x456b73(0x30a)]:case s['MCPConnectionStatus'][_0x456b73(0x2e5)]:return _0x456b73(0x1f1);case s['MCPConnectionStatus'][_0x456b73(0x290)]:case s[_0x456b73(0x307)][_0x456b73(0x259)]:return _0x456b73(0x1fd);default:return _0x456b73(0x1f7);}}function W(_0x2247a5){const _0x17f589=_0x98ddd1,{status$:_0x4ddad8,error$:_0x5a4e66,onConfigure:_0x3c01e1,showClickable:_0x7e5c85=!0x0}=_0x2247a5,_0x15efeb=v[_0x17f589(0x2dd)](_0x4ddad8,s[_0x17f589(0x307)][_0x17f589(0x259)]),_0x22b52c=v[_0x17f589(0x2dd)](_0x5a4e66,s[_0x17f589(0x2fd)][_0x17f589(0x2bf)]),_0x2321ee=v[_0x17f589(0x1ce)](u['LocaleService']),_0x5471af=_0x15efeb===s[_0x17f589(0x307)]['CONNECTED'];_0x15efeb===s['MCPConnectionStatus'][_0x17f589(0x30a)]||s['MCPConnectionStatus'][_0x17f589(0x2e5)];const _0x565467=_0x2321ee['t'](Z(_0x15efeb,_0x22b52c)),_0x42a842=Se(_0x15efeb,_0x22b52c,_0x2321ee,_0x7e5c85),_0x5e1462=Pe(_0x15efeb),_0x46d14e=_0x5471af?i['jsx'](q,{}):i['jsx'](Y,{}),_0x2386e5=d[_0x17f589(0x27b)](()=>{_0x7e5c85&&_0x3c01e1&&_0x3c01e1();},[_0x7e5c85,_0x3c01e1]);function _0x4b1612(){const _0xdcc925=_0x17f589;return i[_0xdcc925(0x278)](_0xdcc925(0x209),{'className':f['clsx'](_0xdcc925(0x211),_0x7e5c85&&_0x3c01e1&&_0xdcc925(0x276)),'role':_0xdcc925(0x230),'onClick':_0x7e5c85&&_0x3c01e1?_0x2386e5:void 0x0,'children':[i[_0xdcc925(0x1c2)](_0xdcc925(0x209),{'className':f['clsx'](_0xdcc925(0x2c6),_0x5e1462),'children':_0x46d14e}),i[_0xdcc925(0x1c2)]('div',{'className':_0xdcc925(0x24e),'children':_0x565467})]});}return i[_0x17f589(0x1c2)](f[_0x17f589(0x237)],{'title':_0x42a842,'placement':_0x17f589(0x273),'children':_0x4b1612()});}var Ie=Object[_0x98ddd1(0x2d1)],_e=(_0x2a267d,_0x2a9676,_0x34ad2a,_0x1bc572)=>{const _0x8fdc94=_0x98ddd1;for(var _0x33df41=_0x1bc572>0x1?void 0x0:_0x1bc572?Ie(_0x2a9676,_0x34ad2a):_0x2a9676,_0xf26265=_0x2a267d[_0x8fdc94(0x23d)]-0x1,_0x5e7dd8;_0xf26265>=0x0;_0xf26265--)(_0x5e7dd8=_0x2a267d[_0xf26265])&&(_0x33df41=_0x5e7dd8(_0x33df41)||_0x33df41);return _0x33df41;},N=(_0x37829c,_0x27b6d2)=>(_0x571984,_0x389087)=>_0x27b6d2(_0x571984,_0x389087,_0x37829c);exports[_0x98ddd1(0x2be)]=class extends u['Disposable']{constructor(_0x1a3d60,_0x151eda,_0x1d8645,_0x2f8467){const _0xc06f58=_0x98ddd1;super(),this[_0xc06f58(0x218)]=_0x1a3d60,this[_0xc06f58(0x300)]=_0x151eda,this[_0xc06f58(0x295)]=_0x1d8645,this[_0xc06f58(0x31a)]=_0x2f8467,this[_0xc06f58(0x255)](),this[_0xc06f58(0x232)]();}['_initAutoConnect'](){const _0x49b390=_0x98ddd1,_0x26b292=this[_0x49b390(0x31a)][_0x49b390(0x208)](P);_0x26b292!=null&&_0x26b292[_0x49b390(0x1d8)]&&(this[_0x49b390(0x300)][_0x49b390(0x254)]=!0x1);}[_0x98ddd1(0x232)](){const _0x13121b=_0x98ddd1,_0x5d5732=this[_0x13121b(0x31a)][_0x13121b(0x208)](P);(_0x5d5732==null?void 0x0:_0x5d5732['showStatus'])!==!0x1&&this[_0x13121b(0x2ad)](this[_0x13121b(0x295)][_0x13121b(0x234)](v[_0x13121b(0x2ea)][_0x13121b(0x2d2)],()=>{const _0x345ddb=_0x13121b;var _0x3d6153;return v[_0x345ddb(0x250)](ye({'status$':this[_0x345ddb(0x300)]['connectionStatus$'],'error$':this['_connectionController'][_0x345ddb(0x1ad)],'onConfigure':()=>this[_0x345ddb(0x1b7)](),'showClickable':(_0x3d6153=_0x5d5732==null?void 0x0:_0x5d5732[_0x345ddb(0x1d8)])!=null?_0x3d6153:!0x1}),this[_0x345ddb(0x218)]);}));}[_0x98ddd1(0x1b7)](){const _0x3346d3=_0x98ddd1;this[_0x3346d3(0x218)][_0x3346d3(0x1be)](exports['MCPConfigUIController'])[_0x3346d3(0x313)]();}},exports['MCPConnectionUIController']=_e([N(0x0,u[_0x98ddd1(0x228)](u[_0x98ddd1(0x245)])),N(0x1,u[_0x98ddd1(0x228)](s[_0x98ddd1(0x23c)])),N(0x2,v[_0x98ddd1(0x1eb)]),N(0x3,u[_0x98ddd1(0x318)])],exports['MCPConnectionUIController']);function ye(_0x2f3d6d){const {status$:_0x37013a,error$:_0x5d5fc8,onConfigure:_0x38cc8d,showClickable:_0x16051a}=_0x2f3d6d;return function(){const _0x2eb610=_0x5e41;return i[_0x2eb610(0x1c2)](W,{'status$':_0x37013a,'error$':_0x5d5fc8,'onConfigure':_0x38cc8d,'showClickable':_0x16051a});};}function Me(_0x11e1d6){const _0x5dc8fa=_0x98ddd1;return{'id':b['id'],'type':v[_0x5dc8fa(0x288)][_0x5dc8fa(0x1ee)],'icon':_0x5dc8fa(0x305),'title':_0x5dc8fa(0x22f),'tooltip':'mcpConfig.title'};}const Ne={[v[_0x98ddd1(0x236)][_0x98ddd1(0x1f6)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x98ddd1(0x2d1)],je=(_0x48c368,_0x2740bd,_0x3538be,_0xc0cf8c)=>{const _0x5da453=_0x98ddd1;for(var _0x13cb1b=_0xc0cf8c>0x1?void 0x0:_0xc0cf8c?be(_0x2740bd,_0x3538be):_0x2740bd,_0x574116=_0x48c368[_0x5da453(0x23d)]-0x1,_0x59f3e7;_0x574116>=0x0;_0x574116--)(_0x59f3e7=_0x48c368[_0x574116])&&(_0x13cb1b=_0x59f3e7(_0x13cb1b)||_0x13cb1b);return _0x13cb1b;},z=(_0x36b2d7,_0x1c8997)=>(_0x3e5611,_0x2467bf)=>_0x1c8997(_0x3e5611,_0x2467bf,_0x36b2d7);exports[_0x98ddd1(0x328)]=class extends u[_0x98ddd1(0x1e8)]{constructor(_0x3ac1bb,_0x4b7c1b){const _0x52dd22=_0x98ddd1;super(),this[_0x52dd22(0x1ae)]=_0x3ac1bb,this[_0x52dd22(0x284)]=_0x4b7c1b,this['_initializeCommands'](),this[_0x52dd22(0x293)]();}['_initializeCommands'](){const _0x332ffe=_0x98ddd1;[b][_0x332ffe(0x315)](_0x17c230=>{const _0x5293bd=_0x332ffe;this[_0x5293bd(0x2ad)](this[_0x5293bd(0x1ae)][_0x5293bd(0x264)](_0x17c230));});}['_initializeMenus'](){const _0x248b88=_0x98ddd1;this[_0x248b88(0x284)][_0x248b88(0x1e5)](Ne);}},exports['MCPUIMenuController']=je([z(0x0,u[_0x98ddd1(0x1da)]),z(0x1,v[_0x98ddd1(0x2a5)])],exports[_0x98ddd1(0x328)]);const Ee={'mcpStatus':{'disconnected':_0x98ddd1(0x2ce),'connecting':_0x98ddd1(0x309),'connected':_0x98ddd1(0x23e),'failed':_0x98ddd1(0x1f4),'retrying':_0x98ddd1(0x2ef),'unknown':_0x98ddd1(0x235),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x98ddd1(0x1b1),'networkError':_0x98ddd1(0x2f4),'maxRetriesExceeded':_0x98ddd1(0x30d),'clickToConnect':_0x98ddd1(0x27e),'clickToConfigure':_0x98ddd1(0x248)},'mcpConfig':{'title':_0x98ddd1(0x26f),'description':_0x98ddd1(0x1b3),'apiKey':_0x98ddd1(0x1e9),'apiKeyPlaceholder':_0x98ddd1(0x22e),'apiKeyHint':_0x98ddd1(0x1c5),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x98ddd1(0x22d),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x98ddd1(0x1fe),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x98ddd1(0x207),'configStep3':_0x98ddd1(0x1a9),'sessionId':_0x98ddd1(0x1d4),'sessionIdDescription':_0x98ddd1(0x253),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x98ddd1(0x2ed),'maxRetries':_0x98ddd1(0x2a0),'save':_0x98ddd1(0x324),'saving':'Saving...','note1':_0x98ddd1(0x2d8),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x98ddd1(0x281),'configError':_0x98ddd1(0x223),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x98ddd1(0x301),'getStarted':_0x98ddd1(0x1b5)},'validation':{'apiKeyRequired':_0x98ddd1(0x25e),'apiKeyTooShort':_0x98ddd1(0x2b6),'invalidConfig':_0x98ddd1(0x258),'invalidApiKey':_0x98ddd1(0x1d9)},'connectionStatus':{'disconnected':_0x98ddd1(0x26d),'connecting':'Connecting...','connected':'Connected','failed':_0x98ddd1(0x30c),'retrying':_0x98ddd1(0x280)},'connectionError':{'unauthorized':_0x98ddd1(0x297),'sessionOccupied':_0x98ddd1(0x20a),'networkError':_0x98ddd1(0x226),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},we={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':_0x98ddd1(0x1f5),'failed':_0x98ddd1(0x1a1),'retrying':'MCP\x20重连中...','unknown':_0x98ddd1(0x29a),'unauthorized':_0x98ddd1(0x2b2),'sessionOccupied':_0x98ddd1(0x31e),'networkError':_0x98ddd1(0x2ca),'maxRetriesExceeded':_0x98ddd1(0x323),'clickToConnect':_0x98ddd1(0x21e),'clickToConfigure':_0x98ddd1(0x1d5)},'mcpConfig':{'title':_0x98ddd1(0x25b),'description':_0x98ddd1(0x279),'apiKey':_0x98ddd1(0x24b),'apiKeyPlaceholder':_0x98ddd1(0x2cb),'apiKeyHint':_0x98ddd1(0x202),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x98ddd1(0x225),'mcpClientConfig':_0x98ddd1(0x225),'configInstructions':_0x98ddd1(0x2d7),'configStepTitle':'配置步骤:','configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x98ddd1(0x20c),'configStep3':_0x98ddd1(0x24d),'sessionId':_0x98ddd1(0x27a),'sessionIdDescription':_0x98ddd1(0x1c8),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x98ddd1(0x2a3),'maxRetries':_0x98ddd1(0x1e2),'save':'保存配置','saving':_0x98ddd1(0x265),'note1':_0x98ddd1(0x25d),'note2':_0x98ddd1(0x2a9),'configSaved':_0x98ddd1(0x27d),'configError':_0x98ddd1(0x20b),'apiApplyInfo':{'title':_0x98ddd1(0x28f),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x98ddd1(0x217),'getStarted':_0x98ddd1(0x2e3)},'validation':{'apiKeyRequired':_0x98ddd1(0x26c),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x98ddd1(0x1b6),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x98ddd1(0x1f2),'connecting':_0x98ddd1(0x270),'connected':_0x98ddd1(0x272),'failed':'连接失败','retrying':_0x98ddd1(0x1df)},'connectionError':{'unauthorized':_0x98ddd1(0x24c),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x98ddd1(0x1ba)}}};var Ae=Object['defineProperty'],Oe=Object[_0x98ddd1(0x2d1)],De=(_0x2b8d77,_0x386bb2,_0x428c4b)=>_0x386bb2 in _0x2b8d77?Ae(_0x2b8d77,_0x386bb2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x428c4b}):_0x2b8d77[_0x386bb2]=_0x428c4b,Ue=(_0x2e5314,_0x100b71,_0x2bc503,_0x2f3940)=>{const _0x5cc575=_0x98ddd1;for(var _0x42ebac=_0x2f3940>0x1?void 0x0:_0x2f3940?Oe(_0x100b71,_0x2bc503):_0x100b71,_0xc56346=_0x2e5314[_0x5cc575(0x23d)]-0x1,_0x5ec26a;_0xc56346>=0x0;_0xc56346--)(_0x5ec26a=_0x2e5314[_0xc56346])&&(_0x42ebac=_0x5ec26a(_0x42ebac)||_0x42ebac);return _0x42ebac;},y=(_0x5b4ae0,_0x10fbe5)=>(_0x1bf2b6,_0x2fa1cf)=>_0x10fbe5(_0x1bf2b6,_0x2fa1cf,_0x5b4ae0),$e=(_0xbcd896,_0x1e3b61,_0x3337b7)=>De(_0xbcd896,_0x1e3b61+'',_0x3337b7);function _0x5e41(_0x101fc5,_0x2aea12){_0x101fc5=_0x101fc5-0x1a0;const _0x5a5303=_0x5a53();let _0x5e4189=_0x5a5303[_0x101fc5];return _0x5e4189;}exports[_0x98ddd1(0x23a)]=class extends u['Plugin']{constructor(_0x3da1b4=L,_0xe89a8b,_0x58950b,_0x44b8d2,_0x29f778,_0x2b1d30){const _0x264f3a=_0x98ddd1;super(),this[_0x264f3a(0x2c2)]=_0x3da1b4,this['_injector']=_0xe89a8b,this['_configService']=_0x58950b,this[_0x264f3a(0x295)]=_0x44b8d2,this[_0x264f3a(0x32c)]=_0x29f778,this[_0x264f3a(0x2c0)]=_0x2b1d30;const {..._0x41e248}=u['merge']({},L,this[_0x264f3a(0x2c2)]);this[_0x264f3a(0x31a)][_0x264f3a(0x2e1)](P,_0x41e248);}async[_0x98ddd1(0x262)](){const _0xec37f7=_0x98ddd1,_0x30afe1=[[exports[_0xec37f7(0x2be)]],[exports[_0xec37f7(0x2d4)]],[exports[_0xec37f7(0x328)]]];this[_0xec37f7(0x218)]['has'](A[_0xec37f7(0x1bf)])||_0x30afe1[_0xec37f7(0x1c1)]([A[_0xec37f7(0x1bf)],{'useClass':A[_0xec37f7(0x21f)]}]),_0x30afe1[_0xec37f7(0x315)](_0x1c7447=>this[_0xec37f7(0x218)][_0xec37f7(0x306)](_0x1c7447)),this[_0xec37f7(0x218)][_0xec37f7(0x1be)](exports['MCPConnectionUIController']),this[_0xec37f7(0x218)]['get'](exports[_0xec37f7(0x2d4)]),this[_0xec37f7(0x218)][_0xec37f7(0x1be)](exports['MCPUIMenuController']);}},$e(exports['UniverMCPUIPlugin'],_0x98ddd1(0x294),_0x98ddd1(0x252)),exports[_0x98ddd1(0x23a)]=Ue([u['DependentOn'](s[_0x98ddd1(0x1f8)]),y(0x1,u['Inject'](u[_0x98ddd1(0x245)])),y(0x2,u['IConfigService']),y(0x3,v['IUIPartsService']),y(0x4,u[_0x98ddd1(0x206)]),y(0x5,u[_0x98ddd1(0x228)](u[_0x98ddd1(0x282)]))],exports[_0x98ddd1(0x23a)]),exports[_0x98ddd1(0x229)]=V,exports['MCPStatusDisplay']=W,exports[_0x98ddd1(0x28b)]=b,exports[_0x98ddd1(0x2c7)]=Ee,exports[_0x98ddd1(0x26a)]=we;
|
|
1
|
+
'use strict';const _0x3b8b01=_0xdd64;(function(_0x2075be,_0x2edc9e){const _0x4e9bb1=_0xdd64,_0xae2ff2=_0x2075be();while(!![]){try{const _0x1680d9=parseInt(_0x4e9bb1(0x2ff))/0x1*(parseInt(_0x4e9bb1(0x2a1))/0x2)+-parseInt(_0x4e9bb1(0x1ed))/0x3+parseInt(_0x4e9bb1(0x291))/0x4*(-parseInt(_0x4e9bb1(0x23a))/0x5)+-parseInt(_0x4e9bb1(0x1ad))/0x6+parseInt(_0x4e9bb1(0x217))/0x7*(parseInt(_0x4e9bb1(0x330))/0x8)+parseInt(_0x4e9bb1(0x1bd))/0x9*(-parseInt(_0x4e9bb1(0x2df))/0xa)+parseInt(_0x4e9bb1(0x2f4))/0xb*(parseInt(_0x4e9bb1(0x1ac))/0xc);if(_0x1680d9===_0x2edc9e)break;else _0xae2ff2['push'](_0xae2ff2['shift']());}catch(_0x27f9dd){_0xae2ff2['push'](_0xae2ff2['shift']());}}}(_0x3d3c,0xf230e));var ae=Object['defineProperty'],le=(_0x4b4706,_0x557faf,_0x446a43)=>_0x557faf in _0x4b4706?ae(_0x4b4706,_0x557faf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x446a43}):_0x4b4706[_0x557faf]=_0x446a43,I=(_0x9831ef,_0x3f93f7,_0x224d09)=>le(_0x9831ef,typeof _0x3f93f7!=_0x3b8b01(0x2b9)?_0x3f93f7+'':_0x3f93f7,_0x224d09);Object[_0x3b8b01(0x27c)](exports,Symbol['toStringTag'],{'value':_0x3b8b01(0x1a9)});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0x155bf0,..._0x4ff6cc}){const _0x20a736=_0x3b8b01,{icon:_0xa7ac62,id:_0x120e98,className:_0x36a8ff,extend:_0x123f44,..._0x25541}=_0x4ff6cc,_0x2a7226=('univerjs-icon\x20univerjs-icon-'+_0x120e98+'\x20'+(_0x36a8ff||''))[_0x20a736(0x1cd)](),_0x237a30=d[_0x20a736(0x317)]('_'+de());return G(_0xa7ac62,''+_0x120e98,{'defIds':_0xa7ac62[_0x20a736(0x1c5)],'idSuffix':_0x237a30[_0x20a736(0x30d)]},{'ref':_0x155bf0,'className':_0x2a7226,..._0x25541},_0x123f44);}function G(_0x5c5a27,_0x13a053,_0x2ee102,_0x478e63,_0x4cd93f){const _0x98b79=_0x3b8b01;return d['createElement'](_0x5c5a27[_0x98b79(0x2f5)],{'key':_0x13a053,...ue(_0x5c5a27,_0x2ee102,_0x4cd93f),..._0x478e63},(ve(_0x5c5a27,_0x2ee102)[_0x98b79(0x22f)]||[])['map']((_0x38566c,_0x2e772c)=>G(_0x38566c,_0x13a053+'-'+_0x5c5a27['tag']+'-'+_0x2e772c,_0x2ee102,void 0x0,_0x4cd93f)));}function ue(_0x535d73,_0x2839bf,_0x50cd4d){const _0x395c51=_0x3b8b01,_0x41efa7={..._0x535d73[_0x395c51(0x20a)]};_0x50cd4d!=null&&_0x50cd4d[_0x395c51(0x1c0)]&&_0x41efa7[_0x395c51(0x28a)]===_0x395c51(0x1c0)&&(_0x41efa7[_0x395c51(0x28a)]=_0x50cd4d['colorChannel1']),_0x535d73[_0x395c51(0x2f5)]===_0x395c51(0x279)&&_0x41efa7['id']&&(_0x41efa7['id']=_0x41efa7['id']+_0x2839bf['idSuffix']),Object['entries'](_0x41efa7)[_0x395c51(0x2a4)](([_0x344828,_0x5d6323])=>{const _0x33b2ac=_0x395c51;_0x344828===_0x33b2ac(0x279)&&typeof _0x5d6323==_0x33b2ac(0x32c)&&(_0x41efa7[_0x344828]=_0x5d6323[_0x33b2ac(0x2da)](/url\(#(.*)\)/,_0x33b2ac(0x1f6)+_0x2839bf['idSuffix']+')'));});const {defIds:_0x26e5ac}=_0x2839bf;return!_0x26e5ac||_0x26e5ac[_0x395c51(0x208)]===0x0||(_0x535d73['tag']===_0x395c51(0x1bc)&&_0x41efa7[_0x395c51(0x292)]&&(_0x41efa7[_0x395c51(0x292)]=_0x41efa7[_0x395c51(0x292)]+_0x2839bf['idSuffix']),Object[_0x395c51(0x215)](_0x41efa7)[_0x395c51(0x2a4)](([_0x2e6e2a,_0x18236b])=>{const _0x4a6c3c=_0x395c51;typeof _0x18236b==_0x4a6c3c(0x32c)&&(_0x41efa7[_0x2e6e2a]=_0x18236b[_0x4a6c3c(0x2da)](/url\(#(.*)\)/,_0x4a6c3c(0x1f6)+_0x2839bf[_0x4a6c3c(0x2bf)]+')'));})),_0x41efa7;}function ve(_0x1654bb,_0x481e58){const _0x44c210=_0x3b8b01;var _0x3883f1;const {defIds:_0x5d4dfa}=_0x481e58;return!_0x5d4dfa||_0x5d4dfa[_0x44c210(0x208)]===0x0?_0x1654bb:_0x1654bb[_0x44c210(0x2f5)]===_0x44c210(0x273)&&((_0x3883f1=_0x1654bb['children'])!=null&&_0x3883f1[_0x44c210(0x208)])?{..._0x1654bb,'children':_0x1654bb[_0x44c210(0x22f)][_0x44c210(0x223)](_0x20ca59=>typeof _0x20ca59[_0x44c210(0x20a)]['id']=='string'&&_0x5d4dfa&&_0x5d4dfa[_0x44c210(0x322)](_0x20ca59[_0x44c210(0x20a)]['id'])?{..._0x20ca59,'attrs':{..._0x20ca59['attrs'],'id':_0x20ca59['attrs']['id']+_0x481e58[_0x44c210(0x2bf)]}}:_0x20ca59)}:_0x1654bb;}function de(){const _0x2a2078=_0x3b8b01;return Math[_0x2a2078(0x2b3)]()[_0x2a2078(0x32d)](0x24)[_0x2a2078(0x247)](0x2,0x8);}_['displayName']='UniverIcon';function _0x3d3c(){const _0x3a9528=['85548OSePHM','5839464urFNyk','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','getOwnPropertyDescriptor','univer-min-w-0\x20univer-flex-1','off','0\x200\x2016\x2016','useObservable','jsxs','NONE','MCP\x20配置','MAX_RETRIES_EXCEEDED','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','MessageType','RibbonStartGroup','getItem','use','36441VHzbnN','path','sessionId$','colorChannel1','RETRYING','Plugin','未连接','CONNECTED','defIds','mcpStatus.networkError','mcp-ui.config','univer-space-y-2','_mcpConnectionController','univer-text-sm\x20univer-text-gray-500','MCPConfigPanel','API\x20key\x20is\x20required','trim','mcpConfig.apiKeyHint','ILocalStorageService','MCP:\x20Session\x20ID\x20Occupied','Copy\x20the\x20JSON\x20configuration\x20below','univer-text-gray-400','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','univer-flex-1','mcpConfig.configError','_menuManagerService','MCPConnectionError','MCP:\x20会话\x20ID\x20已被占用','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-text-green-500','BUTTON','_initAutoConnect','Connecting...','subscribe','mcpConfig.connectionStatus.retrying','assign','DISCONNECTED','check-mark-icon','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','help-icon','evenodd','subscribeConfigValue$','value','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpServerUrl','pre','mcpConfig.save','mcpConfig.connectionStatus.disconnected','819795LFFArF','connectionError$','_commandService','MCPUIMenuController','mcpConfig.apiApplyInfo.getStarted','univer-flex\x20univer-gap-3','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','MCP\x20Configuration','url(#$1','div','COMMAND','univer-text-blue-600','getCurrentConfig','_blank','mcpConfig.configStep1','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','close','createElement','http://www.w3.org/2000/svg','register','get','_validateConfig','show','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','_componentManager','univer.plus','length','off-line-icon','attrs','univer-flex\x20univer-items-center','_handleConfigSave','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.configSaved','enUS','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','_uiPartsService','UniverMCPUIPlugin','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','entries','点击连接\x20MCP','1211boLzbt','MCP\x20Connected','MCP\x20客户端配置','open','_dialogService','Univer\x20AI\x20Console','_loadStoredApiKey','WebSocketService','add','mcpConfig.validation.apiKeyRequired','什么是\x20API\x20密钥?','_config','map','Input','forwardRef','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','MCP_PLUGIN_CONFIG_KEY','none','UniverMCPPlugin','disposeWithMe','_logService','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20连接失败','children','round','API\x20key\x20with\x20Bearer\x20prefix.','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.connectionError.networkError','univer-bg-red-500','MCP\x20Client\x20Configuration','mcpConfig.sessionIdDescription','univer-space-y-5','BuiltInUIPart','OpenMCPConfigPanelCommand','113245zHqOBH','ILogService','mcpStatus.failed','Session\x20ID','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','clsx','mcpConfig.apiApplyInfo.title','mcpStatus.unknown','MCP\x20Connecting...','OnLineIcon','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Retrying...','MCP\x20连接中...','substring','univer-text-xs\x20univer-text-gray-600','1em','showStatus','text','mcpStatus.maxRetriesExceeded','mcpConfig.connectionInfo','配置无效','Inject','mcpConfig.configInstructions','mcpConfig.configStep3','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','on-line-icon_clip0_910_349','button','_messageService','Enable\x20Authentication','Tooltip','Disposable','OTHERS','univer-text-gray-500','push','close-icon','API\x20密钥长度至少需要\x2010\x20位','M0\x200H16V16H0z','validateApiKey','MCP:\x20未授权','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','MCPConnectionController','onStarting','univer_session_id:','merge','getConfig','univer-flex\x20univer-items-center\x20univer-gap-3','API\x20密钥','权限验证失败,请检查您的\x20API\x20密钥','removeItem','Disconnected','warn','univer-bg-green-500','已连接','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','showConfigPanel','_configService','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','defs','_localStorageService','isValid','univer-mr-2\x20univer-flex\x20univer-text-xl','has','mcpStatus.retrying','mask','univer-space-y-4','ICommandService','defineProperty','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MenuItemType','会话\x20ID\x20已被占用,请稍后再试','univer-flex\x20univer-flex-wrap\x20univer-gap-2','Get\x20your\x20API\x20key\x20in\x20seconds','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','pluginName','currentColor','mcpConfig.apiApplyInfo.univerAiLabel','HelpIcon','将以下配置添加到您的\x20MCP\x20客户端设置中:','MCPConfigUIController','fill','mcpConfig.connectionError.sessionOccupied','_initStatusComponent','univer-font-medium','mcpConfig.apiKey','会话ID','errorMessage','160YqrhEs','xlink:href','点击配置\x20MCP','_initConfigSync','univer-flex\x20univer-items-center\x20univer-gap-2','mcpStatus.connecting','MCP\x20Disconnected','mcpConfig.description','CloseIcon','MCP:\x20网络错误','setItem','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','Invalid\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Bearer\x20','您的\x20API\x20密钥将在此浏览器中本地存储','6wplwgf','Error','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','forEach','mcp-ui.command.openConfigPanel','https://console.univer.plus','MCPConnectionUIController','displayName','将配置添加到您的\x20MCP\x20客户端设置文件中','_registerComponent','next','_loading$','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mcpConfig.configStep2','mcpConfig.validation.apiKeyTooShort','连接中...','启用身份验证以获得安全连接','random','<API_KEY>','https://mcp.univer.ai/mcp/?univer_session_id=','启用身份验证','showDeveloperTools','FAILED','symbol','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','请输入您的\x20API\x20密钥','univer-text-white','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCPConnectionStatus','idSuffix','IUIPartsService','ISocketService','Connection\x20Failed','CheckMarkIcon','mcpConfig.configParameters','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.connectionStatus.connected','_localeService','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','SESSION_ID_OCCUPIED','connectInjector','几秒钟内获取您的\x20API\x20密钥','mcpConfig.validation.invalidApiKey','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','UNAUTHORIZED','MCPStatusDisplay','_apiKey$','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','error','_initializeMenus','mcp.apiKey','univer-text-yellow-500','0\x200\x2017\x2016','Enter\x20your\x20API\x20key','_handleConfigure','replace','配置更改将立即生效','CONNECTING','https://console.univer.ai','配置步骤:','2280ZPGUKP','zhCN','Configuration\x20Parameters:','useCallback','univer-text-xs\x20univer-text-gray-500','MCP:\x20Unauthorized','clipPath','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','jsx','IConfigService','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','MCP:\x20Network\x20Error','enableAutoConnect','重连中...','_createConfigPanelComponent','univer-bg-blue-500','_config$','IDialogService','registerComponent','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','apiKey','3179UPTytC','tag','网络连接错误,请检查您的网络连接','Click\x20to\x20connect\x20MCP','Saving...','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','最大重试次数','超出最大重试次数,请稍后再试','connectionStatus$','univer.ai','mcpConfig.connectionError.maxRetriesExceeded','61837rnNoyQ','stringify','API\x20Key','\x20-\x20','BehaviorSubject','_initializeCommands','_injector','MCP:\x20超出最大重试次数','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','Configuration\x20Notes:','univer-shrink-0\x20univer-text-red-500','univer-space-y-3','Injector','mcpConfig.validation.invalidConfig','current','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-text-red-500','http','<SESSION_ID>','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','CommandType','mcpStatus.disconnected','bottom','useRef','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcpConfig.connectionError.unauthorized','配置参数:','_connectionController','MCP\x20重连中...','useDependency','label','NETWORK_ERROR','_mcpCoreConfig$','mcpConfig.apiKeyPlaceholder','includes','mcpConfig.note2','useState','svg','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','连接失败','registerCommand','mcpConfig.configStepTitle','Click\x20to\x20configure\x20MCP','__setCustomHeaders','string','toString','mcpConfig.connectionStatus.failed','Failed\x20to\x20save\x20configuration','84248UoKhey','mcpConfig.title','univer-size-2\x20univer-rounded-full','mcpConfig.connectionStatus.connecting','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','IMenuManagerService','translate(.97)','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','univer-flex\x20univer-items-start\x20univer-gap-2','您的\x20API\x20密钥安全存储在本地存储中','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','MenuIcon','保存中...','univer-bg-gray-500','复制以下\x20JSON\x20配置','LocaleService','span','What\x20is\x20API\x20Key?','white','mcpConfig.apiApplyInfo.description','Univer\x20AI\x20控制台','noopener\x20noreferrer','Module','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mcpConfig.note1'];_0x3d3c=function(){return _0x3a9528;};return _0x3d3c();}const Ce={'tag':_0x3b8b01(0x325),'attrs':{'xmlns':_0x3b8b01(0x200),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x3b8b01(0x249),'height':'1em'},'children':[{'tag':_0x3b8b01(0x1be),'attrs':{'fill':_0x3b8b01(0x285),'d':_0x3b8b01(0x1d3),'fillRule':_0x3b8b01(0x1e5),'clipRule':_0x3b8b01(0x1e5)}}]},H=d[_0x3b8b01(0x225)](function(_0x39e875,_0x2550a6){const _0x443971=_0x3b8b01;return d[_0x443971(0x1ff)](_,Object[_0x443971(0x1e0)]({},_0x39e875,{'id':_0x443971(0x1e2),'ref':_0x2550a6,'icon':Ce}));});H[_0x3b8b01(0x2a8)]=_0x3b8b01(0x2c3);const ge={'tag':_0x3b8b01(0x325),'attrs':{'xmlns':_0x3b8b01(0x200),'fill':'none','viewBox':_0x3b8b01(0x1b2),'width':_0x3b8b01(0x249),'height':_0x3b8b01(0x249)},'children':[{'tag':_0x3b8b01(0x1be),'attrs':{'fill':_0x3b8b01(0x285),'d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},B=d[_0x3b8b01(0x225)](function(_0x3872bc,_0x52ac52){const _0x3df675=_0x3b8b01;return d[_0x3df675(0x1ff)](_,Object['assign']({},_0x3872bc,{'id':_0x3df675(0x25c),'ref':_0x52ac52,'icon':ge}));});B[_0x3b8b01(0x2a8)]=_0x3b8b01(0x299);const fe={'tag':_0x3b8b01(0x325),'attrs':{'xmlns':_0x3b8b01(0x200),'fill':_0x3b8b01(0x229),'viewBox':_0x3b8b01(0x1b2),'width':_0x3b8b01(0x249),'height':_0x3b8b01(0x249)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x3b8b01(0x211)}},{'tag':_0x3b8b01(0x1be),'attrs':{'fill':_0x3b8b01(0x285),'d':_0x3b8b01(0x283)}},{'tag':'path','attrs':{'fill':'currentColor','d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':'evenodd','clipRule':_0x3b8b01(0x1e5)}}]},F=d[_0x3b8b01(0x225)](function(_0x82eeb7,_0x45d0b3){const _0x4babf6=_0x3b8b01;return d[_0x4babf6(0x1ff)](_,Object[_0x4babf6(0x1e0)]({},_0x82eeb7,{'id':_0x4babf6(0x1e4),'ref':_0x45d0b3,'icon':fe}));});F['displayName']=_0x3b8b01(0x287);const pe={'tag':_0x3b8b01(0x325),'attrs':{'xmlns':_0x3b8b01(0x200),'fill':_0x3b8b01(0x229),'viewBox':_0x3b8b01(0x1b2),'width':'1em','height':_0x3b8b01(0x249)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x3b8b01(0x1be),'attrs':{'stroke':_0x3b8b01(0x285),'d':_0x3b8b01(0x197),'strokeLinecap':_0x3b8b01(0x230),'strokeLinejoin':_0x3b8b01(0x230),'strokeWidth':1.2}}]},{'tag':_0x3b8b01(0x273),'attrs':{},'children':[{'tag':_0x3b8b01(0x2e5),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x3b8b01(0x1be),'attrs':{'fill':_0x3b8b01(0x1a5),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Y=d[_0x3b8b01(0x225)](function(_0x2f3883,_0x55997d){const _0x438843=_0x3b8b01;return d[_0x438843(0x1ff)](_,Object['assign']({},_0x2f3883,{'id':_0x438843(0x209),'ref':_0x55997d,'icon':pe}));});Y['displayName']='OffLineIcon';const he={'tag':_0x3b8b01(0x325),'attrs':{'xmlns':_0x3b8b01(0x200),'fill':_0x3b8b01(0x229),'viewBox':_0x3b8b01(0x2d7),'width':_0x3b8b01(0x249),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x3b8b01(0x285),'d':_0x3b8b01(0x313),'strokeLinecap':_0x3b8b01(0x230),'strokeLinejoin':_0x3b8b01(0x230),'strokeWidth':1.2}}]},{'tag':_0x3b8b01(0x273),'attrs':{},'children':[{'tag':_0x3b8b01(0x2e5),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x3b8b01(0x1be),'attrs':{'fill':_0x3b8b01(0x1a5),'d':_0x3b8b01(0x25e),'transform':_0x3b8b01(0x199)}}]}]}],'defIds':[_0x3b8b01(0x253)]},q=d[_0x3b8b01(0x225)](function(_0x2c3aeb,_0x236470){return d['createElement'](_,Object['assign']({},_0x2c3aeb,{'id':'on-line-icon','ref':_0x236470,'icon':he}));});q[_0x3b8b01(0x2a8)]=_0x3b8b01(0x243);function V(_0x1dbbae){const _0x4e2734=_0x3b8b01;var _0x130ae7,_0x23825c;const {mcpCoreConfig:_0x4dccb1,onSave:_0x19a52c,loading:_0x53ca9b=!0x1,config:_0xcf6271,connectionStatus$:_0x4b9ec0,connectionError$:_0x3756c2,currentApiKey$:_0x5797d8,currentSessionId$:_0x2fc768}=_0x1dbbae,_0x5d580b=v[_0x4e2734(0x31d)](u[_0x4e2734(0x1a2)]),_0x11582e=v[_0x4e2734(0x1b3)](_0x4b9ec0,s[_0x4e2734(0x2be)][_0x4e2734(0x1e1)]),_0x226f7f=v['useObservable'](_0x3756c2,s[_0x4e2734(0x1d7)][_0x4e2734(0x1b5)]),_0x1cb513=v['useObservable'](_0x2fc768,''),_0x821a3e=v[_0x4e2734(0x1b3)](_0x5797d8,''),[_0x25cca3,_0x475a2a]=d[_0x4e2734(0x324)](_0x821a3e||''),_0x1f8245=!0x0,_0x2baccb=_0xcf6271[_0x4e2734(0x2b7)]&&_0x4dccb1[_0x4e2734(0x1e9)]&&(_0x4dccb1[_0x4e2734(0x1e9)]['includes'](_0x4e2734(0x207))||_0x4dccb1[_0x4e2734(0x1e9)][_0x4e2734(0x322)]('univer.ai')),_0x56b6f7=(_0x130ae7=_0x4dccb1['mcpServerUrl'])==null?void 0x0:_0x130ae7[_0x4e2734(0x322)](_0x4e2734(0x207)),_0x48ecdd=(_0x23825c=_0x4dccb1[_0x4e2734(0x1e9)])==null?void 0x0:_0x23825c[_0x4e2734(0x322)](_0x4e2734(0x2fd)),_0x48350a=_0x56b6f7?_0x4e2734(0x2a6):_0x4e2734(0x2dd),_0x30f5f5=_0xcf6271['showDeveloperTools']&&(_0x56b6f7||_0x48ecdd),[_0x244397,_0x16525d]=d['useState'](!_0x25cca3[_0x4e2734(0x1cd)]()),_0x2245a1=(_0x190e41,_0x11c1cc)=>{const _0xd2dda9=_0x4e2734;if(_0x11c1cc===s[_0xd2dda9(0x1d7)][_0xd2dda9(0x2ce)])return _0xd2dda9(0x27d);switch(_0x190e41){case s[_0xd2dda9(0x2be)]['CONNECTED']:return _0xd2dda9(0x205);case s[_0xd2dda9(0x2be)][_0xd2dda9(0x2dc)]:case s[_0xd2dda9(0x2be)][_0xd2dda9(0x1c1)]:return _0xd2dda9(0x1e3);case s['MCPConnectionStatus'][_0xd2dda9(0x2b8)]:return _0xd2dda9(0x27d);default:return _0xd2dda9(0x1f3);}},_0x4cec8f=(_0x2a0f68,_0x339354)=>{const _0x270d11=_0x4e2734;if(_0x339354===s[_0x270d11(0x1d7)]['UNAUTHORIZED'])return _0x270d11(0x234);switch(_0x2a0f68){case s[_0x270d11(0x2be)][_0x270d11(0x1c4)]:return _0x270d11(0x26d);case s[_0x270d11(0x2be)][_0x270d11(0x2dc)]:case s[_0x270d11(0x2be)]['RETRYING']:return _0x270d11(0x2ee);case s[_0x270d11(0x2be)][_0x270d11(0x2b8)]:return'univer-bg-red-500';default:return _0x270d11(0x1a0);}},_0xf7b655=_0x5443d7=>{const _0x1a877c=_0x4e2734;switch(_0x5443d7){case s[_0x1a877c(0x2be)]['CONNECTED']:return _0x5d580b['t'](_0x1a877c(0x2c6));case s[_0x1a877c(0x2be)][_0x1a877c(0x2dc)]:return _0x5d580b['t'](_0x1a877c(0x333));case s[_0x1a877c(0x2be)][_0x1a877c(0x2b8)]:return _0x5d580b['t'](_0x1a877c(0x32e));case s[_0x1a877c(0x2be)]['RETRYING']:return _0x5d580b['t'](_0x1a877c(0x1df));default:return _0x5d580b['t'](_0x1a877c(0x1ec));}},_0x59b39b=_0x40028f=>{const _0x4cd31a=_0x4e2734;switch(_0x40028f){case s['MCPConnectionError'][_0x4cd31a(0x2ce)]:return _0x5d580b['t'](_0x4cd31a(0x319));case s[_0x4cd31a(0x1d7)]['SESSION_ID_OCCUPIED']:return _0x5d580b['t'](_0x4cd31a(0x28b));case s[_0x4cd31a(0x1d7)][_0x4cd31a(0x31f)]:return _0x5d580b['t'](_0x4cd31a(0x233));case s[_0x4cd31a(0x1d7)]['MAX_RETRIES_EXCEEDED']:return _0x5d580b['t'](_0x4cd31a(0x2fe));default:return'';}},_0x39cfd3=d['useCallback'](()=>{const _0x486d9f=_0x4e2734,_0x362905={..._0x4dccb1,'apiKey':_0x25cca3[_0x486d9f(0x1cd)](),'enableAuth':_0x1f8245};_0x19a52c(_0x362905);},[_0x4dccb1,_0x25cca3,_0x1f8245,_0x19a52c]),_0x3234e7=_0x25cca3[_0x4e2734(0x1cd)]()[_0x4e2734(0x208)]>0x0;return i['jsxs'](_0x4e2734(0x1f7),{'className':_0x4e2734(0x1aa),'children':[i['jsx'](_0x4e2734(0x1f7),{'className':_0x4e2734(0x1fd),'children':i[_0x4e2734(0x1b4)](_0x4e2734(0x1f7),{'className':_0x4e2734(0x267),'children':[i['jsx'](_0x4e2734(0x1f7),{'className':_0x4e2734(0x326),'children':i[_0x4e2734(0x2e7)]('span',{'className':_0x4e2734(0x2bc),'children':'⚙'})}),i[_0x4e2734(0x2e7)](_0x4e2734(0x1f7),{'children':i[_0x4e2734(0x2e7)]('p',{'className':_0x4e2734(0x1ca),'children':_0x5d580b['t'](_0x4e2734(0x298))})})]})}),i[_0x4e2734(0x1b4)](_0x4e2734(0x1f7),{'className':_0x4e2734(0x19d),'children':[i['jsx'](_0x4e2734(0x1f7),{'className':f[_0x4e2734(0x23f)](_0x4e2734(0x252),_0x2245a1(_0x11582e,_0x226f7f)),'children':i[_0x4e2734(0x1b4)](_0x4e2734(0x1f7),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x4e2734(0x2e7)](_0x4e2734(0x1f7),{'className':f[_0x4e2734(0x23f)](_0x4e2734(0x332),_0x4cec8f(_0x11582e,_0x226f7f))}),i[_0x4e2734(0x2e7)](_0x4e2734(0x1a3),{'className':'univer-text-sm\x20univer-font-medium','children':_0xf7b655(_0x11582e)})]})}),_0x226f7f!==s[_0x4e2734(0x1d7)][_0x4e2734(0x1b5)]&&(_0x11582e===s[_0x4e2734(0x2be)][_0x4e2734(0x2b8)]||_0x226f7f===s[_0x4e2734(0x1d7)][_0x4e2734(0x2ce)])&&i['jsx'](_0x4e2734(0x1f7),{'className':_0x4e2734(0x2ae),'children':i[_0x4e2734(0x1b4)]('div',{'className':_0x4e2734(0x19b),'children':[i[_0x4e2734(0x2e7)](_0x4e2734(0x1a3),{'className':_0x4e2734(0x309),'children':'⚠️'}),i[_0x4e2734(0x2e7)]('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x59b39b(_0x226f7f)})]})})]}),i[_0x4e2734(0x2e7)](_0x4e2734(0x1f7),{'className':_0x4e2734(0x30e),'children':i[_0x4e2734(0x1b4)](_0x4e2734(0x1f7),{'className':_0x4e2734(0x237),'children':[i['jsxs'](_0x4e2734(0x1f7),{'className':_0x4e2734(0x1c8),'children':[i['jsxs'](_0x4e2734(0x31e),{'className':_0x4e2734(0x226),'children':[i[_0x4e2734(0x2e7)]('span',{'children':'🔑'}),'\x20',_0x5d580b['t'](_0x4e2734(0x28e)),i[_0x4e2734(0x2e7)](_0x4e2734(0x1a3),{'className':'univer-text-red-500','children':'*'}),_0x2baccb&&i[_0x4e2734(0x2e7)]('a',{'className':_0x4e2734(0x19a),'title':_0x5d580b['t'](_0x4e2734(0x240)),'role':_0x4e2734(0x254),'onClick':()=>_0x16525d(!0x0),'children':i[_0x4e2734(0x2e7)](F,{})})]}),i[_0x4e2734(0x2e7)](f[_0x4e2734(0x224)],{'type':_0x4e2734(0x24b),'placeholder':_0x5d580b['t'](_0x4e2734(0x321)),'value':_0x25cca3,'disabled':_0x53ca9b,'autoComplete':_0x4e2734(0x1b1),'onChange':_0x475a2a}),i[_0x4e2734(0x2e7)]('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x5d580b['t'](_0x4e2734(0x1ce))})]}),_0x2baccb&&_0x244397&&i[_0x4e2734(0x1b4)](_0x4e2734(0x1f7),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[i[_0x4e2734(0x2e7)]('a',{'className':_0x4e2734(0x26f),'role':_0x4e2734(0x254),'onClick':()=>_0x16525d(!0x1),'children':i['jsx'](B,{'className':'univer-size-4'})}),i[_0x4e2734(0x1b4)](_0x4e2734(0x1f7),{'className':_0x4e2734(0x307),'children':[i[_0x4e2734(0x2e7)](_0x4e2734(0x1f7),{'className':_0x4e2734(0x1d9),'children':i[_0x4e2734(0x2e7)](_0x4e2734(0x1a3),{'className':_0x4e2734(0x1f9),'children':'🚀'})}),i[_0x4e2734(0x1b4)]('div',{'className':_0x4e2734(0x1d4),'children':[i[_0x4e2734(0x2e7)]('h4',{'className':_0x4e2734(0x23e),'children':_0x5d580b['t'](_0x4e2734(0x240))}),i[_0x4e2734(0x2e7)]('p',{'className':_0x4e2734(0x2c5),'children':_0x5d580b['t'](_0x4e2734(0x1a6))}),i[_0x4e2734(0x2e7)](_0x4e2734(0x1f7),{'className':_0x4e2734(0x281),'children':_0x30f5f5&&i[_0x4e2734(0x1b4)]('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x48350a,'target':_0x4e2734(0x1fb),'rel':_0x4e2734(0x1a8),'children':[i[_0x4e2734(0x2e7)](_0x4e2734(0x1a3),{'children':'🤖'}),_0x5d580b['t'](_0x4e2734(0x286)),i[_0x4e2734(0x2e7)](_0x4e2734(0x1a3),{'className':_0x4e2734(0x1d2),'children':'↗'})]})}),i[_0x4e2734(0x1b4)]('div',{'className':_0x4e2734(0x1ae),'children':['✨','\x20',_0x5d580b['t'](_0x4e2734(0x1f1))]})]})]})]}),_0xcf6271['showDeveloperTools']&&i[_0x4e2734(0x1b4)](_0x4e2734(0x1f7),{'className':_0x4e2734(0x2c8),'children':[i['jsxs']('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[i['jsx'](_0x4e2734(0x1a3),{'children':'🔗'}),'\x20',_0x5d580b['t'](_0x4e2734(0x24d))]}),i[_0x4e2734(0x1b4)](_0x4e2734(0x1f7),{'className':_0x4e2734(0x27a),'children':[i['jsxs'](_0x4e2734(0x1f7),{'className':_0x4e2734(0x30a),'children':[i[_0x4e2734(0x2e7)]('p',{'className':_0x4e2734(0x248),'children':_0x5d580b['t'](_0x4e2734(0x250))}),i[_0x4e2734(0x1b4)](_0x4e2734(0x1f7),{'className':_0x4e2734(0x1c8),'children':[i[_0x4e2734(0x2e7)](_0x4e2734(0x1f7),{'className':_0x4e2734(0x1b8),'children':_0x5d580b['t'](_0x4e2734(0x329))}),i['jsxs'](_0x4e2734(0x1f7),{'className':_0x4e2734(0x214),'children':[i['jsxs']('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x4e2734(0x2e7)](_0x4e2734(0x1a3),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x5d580b['t'](_0x4e2734(0x1fc))]}),i[_0x4e2734(0x1b4)](_0x4e2734(0x1f7),{'className':_0x4e2734(0x295),'children':[i['jsx'](_0x4e2734(0x1a3),{'className':_0x4e2734(0x29c),'children':'2'}),_0x5d580b['t'](_0x4e2734(0x2af))]}),i[_0x4e2734(0x1b4)](_0x4e2734(0x1f7),{'className':_0x4e2734(0x295),'children':[i[_0x4e2734(0x2e7)]('span',{'className':_0x4e2734(0x29c),'children':'3'}),_0x5d580b['t'](_0x4e2734(0x251))]})]})]})]}),i['jsxs'](_0x4e2734(0x1f7),{'className':_0x4e2734(0x1c8),'children':[i[_0x4e2734(0x2e7)]('div',{'className':_0x4e2734(0x1b8),'children':'MCP\x20Configuration'}),i[_0x4e2734(0x2e7)](_0x4e2734(0x1f7),{'className':_0x4e2734(0x30f),'children':i[_0x4e2734(0x2e7)](_0x4e2734(0x1ea),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x4e2734(0x300)]({'mcpServers':{'univer':{'url':_0x4e2734(0x2b5)+(_0x1cb513||_0x4e2734(0x312)),'type':_0x4e2734(0x311),'headers':{'Authorization':'Bearer\x20'+(_0x25cca3||_0x4e2734(0x2b4))}}}},null,0x2)})})]}),i['jsxs'](_0x4e2734(0x1f7),{'className':_0x4e2734(0x30a),'children':[i['jsx']('div',{'className':_0x4e2734(0x1b8),'children':_0x5d580b['t'](_0x4e2734(0x2c4))}),i[_0x4e2734(0x1b4)](_0x4e2734(0x1f7),{'className':_0x4e2734(0x1c8),'children':[i['jsxs'](_0x4e2734(0x1f7),{'className':_0x4e2734(0x232),'children':[i[_0x4e2734(0x2e7)](_0x4e2734(0x1f7),{'className':_0x4e2734(0x2f9)}),i[_0x4e2734(0x1b4)](_0x4e2734(0x1f7),{'className':_0x4e2734(0x1b0),'children':[i[_0x4e2734(0x2e7)](_0x4e2734(0x1f7),{'className':_0x4e2734(0x1e8),'children':_0x4e2734(0x264)}),i['jsx']('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x5d580b['t'](_0x4e2734(0x236))})]})]}),i[_0x4e2734(0x1b4)]('div',{'className':_0x4e2734(0x232),'children':[i[_0x4e2734(0x2e7)](_0x4e2734(0x1f7),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i[_0x4e2734(0x1b4)](_0x4e2734(0x1f7),{'className':_0x4e2734(0x1b0),'children':[i['jsx'](_0x4e2734(0x1f7),{'className':_0x4e2734(0x1e8),'children':'Authorization:'}),i[_0x4e2734(0x2e7)](_0x4e2734(0x1f7),{'className':_0x4e2734(0x2e3),'children':_0x5d580b['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),i[_0x4e2734(0x2e7)](f['Button'],{'onClick':_0x39cfd3,'disabled':!_0x3234e7||_0x53ca9b,'className':_0x4e2734(0x2f2),'children':_0x53ca9b?i['jsxs'](_0x4e2734(0x1a3),{'className':_0x4e2734(0x295),'children':[i[_0x4e2734(0x2e7)](_0x4e2734(0x1a3),{'children':'⟲'}),_0x5d580b['t']('mcpConfig.saving')]}):i[_0x4e2734(0x1b4)](_0x4e2734(0x1a3),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x4e2734(0x2e7)](H,{}),_0x5d580b['t'](_0x4e2734(0x1eb))]})}),i[_0x4e2734(0x2e7)]('div',{'className':_0x4e2734(0x2e9),'children':i[_0x4e2734(0x1b4)](_0x4e2734(0x1f7),{'className':_0x4e2734(0x1f2),'children':[i[_0x4e2734(0x2e7)](_0x4e2734(0x1a3),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),i['jsxs'](_0x4e2734(0x1f7),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[i['jsx'](_0x4e2734(0x1f7),{'className':_0x4e2734(0x28d),'children':_0x4e2734(0x308)}),i[_0x4e2734(0x1b4)](_0x4e2734(0x1f7),{'children':['•',_0x5d580b['t'](_0x4e2734(0x1ab))]}),i[_0x4e2734(0x1b4)]('div',{'children':['•',_0x5d580b['t'](_0x4e2734(0x323))]})]})]})})]})})]});}const P=_0x3b8b01(0x1c7),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x3b8b01(0x1af)],xe=(_0x1e6574,_0x396fad,_0x5f0bbb,_0x60260c)=>{for(var _0xabcf6e=_0x60260c>0x1?void 0x0:_0x60260c?me(_0x396fad,_0x5f0bbb):_0x396fad,_0x3500d2=_0x1e6574['length']-0x1,_0x34cbee;_0x3500d2>=0x0;_0x3500d2--)(_0x34cbee=_0x1e6574[_0x3500d2])&&(_0xabcf6e=_0x34cbee(_0xabcf6e)||_0xabcf6e);return _0xabcf6e;},g=(_0x3f78af,_0x28f030)=>(_0x1eae8c,_0x5aa926)=>_0x28f030(_0x1eae8c,_0x5aa926,_0x3f78af);const O=_0x3b8b01(0x2d5),D='mcp-config-dialog';exports[_0x3b8b01(0x289)]=class extends u[_0x3b8b01(0x258)]{constructor(_0x22e54c,_0x303b62,_0x5b0bba,_0x5af71b,_0x2d9b01,_0x4b14d7,_0x2b3acc,_0x230b31,_0x5ae3cf,_0x37a92a){const _0x4784f1=_0x3b8b01;super(),I(this,_0x4784f1(0x2ac),new M[(_0x4784f1(0x303))](!0x1)),I(this,_0x4784f1(0x320),new M[(_0x4784f1(0x303))]({})),I(this,_0x4784f1(0x2ef),new M[(_0x4784f1(0x303))]({})),I(this,_0x4784f1(0x2d0),new M[(_0x4784f1(0x303))]('')),I(this,_0x4784f1(0x20c),async _0x15ded1=>{const _0x5b5fc4=_0x4784f1;var _0x20022d,_0x416bec;this[_0x5b5fc4(0x2ac)][_0x5b5fc4(0x2ab)](!0x0);try{const _0xba3959=await this[_0x5b5fc4(0x203)](_0x15ded1);if(!_0xba3959[_0x5b5fc4(0x275)]){this[_0x5b5fc4(0x255)][_0x5b5fc4(0x204)]({'type':f['MessageType'][_0x5b5fc4(0x2a2)],'content':_0xba3959[_0x5b5fc4(0x290)]||this[_0x5b5fc4(0x2c7)]['t'](_0x5b5fc4(0x30c))});return;}_0x15ded1[_0x5b5fc4(0x2f3)]?await this['_localStorageService'][_0x5b5fc4(0x29b)](O,_0x15ded1[_0x5b5fc4(0x2f3)][_0x5b5fc4(0x1cd)]()):await this[_0x5b5fc4(0x274)][_0x5b5fc4(0x26a)](O),this[_0x5b5fc4(0x2d0)][_0x5b5fc4(0x2ab)](((_0x20022d=_0x15ded1[_0x5b5fc4(0x2f3)])==null?void 0x0:_0x20022d[_0x5b5fc4(0x1cd)]())||''),this[_0x5b5fc4(0x1c9)][_0x5b5fc4(0x32b)]({'Authorization':_0x5b5fc4(0x29f)+((_0x416bec=_0x15ded1[_0x5b5fc4(0x2f3)])==null?void 0x0:_0x416bec['trim']())}),this[_0x5b5fc4(0x255)]['show']({'type':f[_0x5b5fc4(0x1b9)]['Success'],'content':this['_localeService']['t'](_0x5b5fc4(0x20e))}),setTimeout(()=>{const _0x2c0cae=_0x5b5fc4;this[_0x2c0cae(0x21b)][_0x2c0cae(0x1fe)](D);},0x320);}catch(_0x5788de){this[_0x5b5fc4(0x22c)][_0x5b5fc4(0x2d3)](_0x5b5fc4(0x2ad),_0x5788de),this['_messageService'][_0x5b5fc4(0x204)]({'type':f['MessageType'][_0x5b5fc4(0x2a2)],'content':this[_0x5b5fc4(0x2c7)]['t'](_0x5b5fc4(0x1d5))});}finally{this[_0x5b5fc4(0x2ac)][_0x5b5fc4(0x2ab)](!0x1);}}),(this['_injector']=_0x22e54c,this[_0x4784f1(0x212)]=_0x303b62,this['_configService']=_0x5b0bba,this[_0x4784f1(0x274)]=_0x5af71b,this[_0x4784f1(0x21b)]=_0x2d9b01,this[_0x4784f1(0x255)]=_0x4b14d7,this['_componentManager']=_0x2b3acc,this[_0x4784f1(0x2c7)]=_0x230b31,this['_logService']=_0x5ae3cf,this[_0x4784f1(0x1c9)]=_0x37a92a,this[_0x4784f1(0x294)](),this[_0x4784f1(0x21d)](),this[_0x4784f1(0x2aa)]());}[_0x3b8b01(0x270)](){const _0x23a192=_0x3b8b01,_0x5b19d2=this['_configService']['getConfig'](P);_0x5b19d2!=null&&_0x5b19d2[_0x23a192(0x2b7)]&&this[_0x23a192(0x21b)][_0x23a192(0x21a)]({'id':D,'title':{'title':this[_0x23a192(0x2c7)]['t'](_0x23a192(0x331))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x5be5d1=_0x23a192;this[_0x5be5d1(0x21b)][_0x5be5d1(0x1fe)](D);}});}[_0x3b8b01(0x1fa)](){const _0x19a672=_0x3b8b01;return this[_0x19a672(0x320)]['value'];}[_0x3b8b01(0x2aa)](){const _0x3602f7=_0x3b8b01;this[_0x3602f7(0x22b)](this[_0x3602f7(0x206)][_0x3602f7(0x201)]('MCPConfigPanel',this[_0x3602f7(0x2ed)]()));}[_0x3b8b01(0x2ed)](){const _0x19ef5e=_0x3b8b01;return v[_0x19ef5e(0x2ca)](()=>{const _0x3b9ab3=_0x19ef5e;var _0x4cd362,_0x207fe4,_0x247e92;return i[_0x3b9ab3(0x2e7)](V,{'config':this[_0x3b9ab3(0x2ef)][_0x3b9ab3(0x1e7)],'mcpCoreConfig':this[_0x3b9ab3(0x320)]['value'],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x3b9ab3(0x20c)],'loading':this[_0x3b9ab3(0x2ac)][_0x3b9ab3(0x1e7)],'connectionStatus$':(_0x4cd362=this[_0x3b9ab3(0x1c9)])==null?void 0x0:_0x4cd362[_0x3b9ab3(0x2fc)],'connectionError$':(_0x207fe4=this[_0x3b9ab3(0x1c9)])==null?void 0x0:_0x207fe4[_0x3b9ab3(0x1ee)],'currentSessionId$':(_0x247e92=this[_0x3b9ab3(0x1c9)])==null?void 0x0:_0x247e92[_0x3b9ab3(0x1bf)]});},this[_0x19ef5e(0x305)]);}[_0x3b8b01(0x294)](){const _0x3b61d4=_0x3b8b01;this['disposeWithMe'](this[_0x3b61d4(0x271)][_0x3b61d4(0x1e6)](s[_0x3b61d4(0x228)])['subscribe'](_0x3b2025=>{const _0x50f8e7=_0x3b61d4;this[_0x50f8e7(0x320)][_0x50f8e7(0x2ab)](_0x3b2025||{});}));const _0x1a54bd=this['_configService'][_0x3b61d4(0x266)](s['MCP_PLUGIN_CONFIG_KEY']);this[_0x3b61d4(0x320)]['next'](_0x1a54bd||{}),this[_0x3b61d4(0x22b)](this[_0x3b61d4(0x271)][_0x3b61d4(0x1e6)](P)[_0x3b61d4(0x1de)](_0x17aaff=>{const _0x58e487=_0x3b61d4;this[_0x58e487(0x2ef)][_0x58e487(0x2ab)](_0x17aaff||{});}));const _0x58197c=this['_configService'][_0x3b61d4(0x266)](P);this[_0x3b61d4(0x2ef)][_0x3b61d4(0x2ab)](_0x58197c||{});}async['_loadStoredApiKey'](){const _0x762add=_0x3b8b01,_0x19d32c=this[_0x762add(0x271)][_0x762add(0x266)](P);if(!(_0x19d32c!=null&&_0x19d32c[_0x762add(0x2b7)]))return;const _0x13e61a=await this[_0x762add(0x274)][_0x762add(0x1bb)](O);_0x13e61a&&(this[_0x762add(0x1c9)][_0x762add(0x32b)]({'Authorization':_0x762add(0x29f)+_0x13e61a}),this[_0x762add(0x2d0)][_0x762add(0x2ab)](_0x13e61a));}async[_0x3b8b01(0x203)](_0x1a877f){const _0x4a7366=_0x3b8b01;if(!_0x1a877f[_0x4a7366(0x2f3)]||_0x1a877f[_0x4a7366(0x2f3)]['trim']()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x4a7366(0x220))};if(_0x1a877f['apiKey'][_0x4a7366(0x1cd)]()[_0x4a7366(0x208)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x4a7366(0x2b0))};try{const _0x226bc7=await this[_0x4a7366(0x305)][_0x4a7366(0x202)](s[_0x4a7366(0x262)])[_0x4a7366(0x25f)](_0x1a877f[_0x4a7366(0x2f3)][_0x4a7366(0x1cd)]());return _0x226bc7[_0x4a7366(0x275)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x226bc7['error']||this[_0x4a7366(0x2c7)]['t'](_0x4a7366(0x2cc))};}catch(_0x10946d){return console[_0x4a7366(0x26c)](_0x4a7366(0x1f4),_0x10946d),{'isValid':!0x0};}}},exports[_0x3b8b01(0x289)]=xe([g(0x0,u[_0x3b8b01(0x24f)](u[_0x3b8b01(0x30b)])),g(0x1,v[_0x3b8b01(0x2c0)]),g(0x2,u['IConfigService']),g(0x3,u['ILocalStorageService']),g(0x4,v[_0x3b8b01(0x2f0)]),g(0x5,v['IMessageService']),g(0x6,u[_0x3b8b01(0x24f)](v['ComponentManager'])),g(0x7,u[_0x3b8b01(0x24f)](u[_0x3b8b01(0x1a2)])),g(0x8,u[_0x3b8b01(0x23b)]),g(0x9,u['Inject'](s[_0x3b8b01(0x262)]))],exports[_0x3b8b01(0x289)]);function _0xdd64(_0x466076,_0x24e3b2){_0x466076=_0x466076-0x197;const _0x3d3cc9=_0x3d3c();let _0xdd6459=_0x3d3cc9[_0x466076];return _0xdd6459;}const b={'id':_0x3b8b01(0x2a5),'type':u[_0x3b8b01(0x314)][_0x3b8b01(0x1f8)],'handler':async(_0x20f0f2,_0xa6e722)=>(_0x20f0f2[_0x3b8b01(0x202)](exports[_0x3b8b01(0x289)])['showConfigPanel'](),!0x0)};function Z(_0x5a1173,_0x534d65){const _0x757656=_0x3b8b01;switch(_0x5a1173){case s['MCPConnectionStatus'][_0x757656(0x1e1)]:return _0x757656(0x315);case s['MCPConnectionStatus'][_0x757656(0x2dc)]:return _0x757656(0x296);case s[_0x757656(0x2be)][_0x757656(0x1c4)]:return'mcpStatus.connected';case s[_0x757656(0x2be)][_0x757656(0x2b8)]:switch(_0x534d65){case s[_0x757656(0x1d7)][_0x757656(0x2ce)]:return'mcpStatus.unauthorized';case s[_0x757656(0x1d7)][_0x757656(0x2c9)]:return'mcpStatus.sessionOccupied';case s[_0x757656(0x1d7)][_0x757656(0x31f)]:return _0x757656(0x1c6);case s[_0x757656(0x1d7)][_0x757656(0x1b7)]:return _0x757656(0x24c);default:return _0x757656(0x23c);}case s[_0x757656(0x2be)][_0x757656(0x1c1)]:return _0x757656(0x278);default:return _0x757656(0x241);}}function Se(_0x3aed9a,_0x550a0c,_0x198f06,_0x46e005=!0x0){const _0x32d096=_0x3b8b01,_0xc21dfe=Z(_0x3aed9a,_0x550a0c),_0x36923c=_0x198f06['t'](_0xc21dfe);return _0x46e005?_0x3aed9a===s[_0x32d096(0x2be)][_0x32d096(0x1e1)]&&_0x550a0c===s[_0x32d096(0x1d7)][_0x32d096(0x2ce)]?_0x36923c+_0x32d096(0x302)+_0x198f06['t']('mcpStatus.clickToConfigure'):_0x3aed9a===s[_0x32d096(0x2be)][_0x32d096(0x1c4)]?''+_0x36923c:_0x3aed9a===s[_0x32d096(0x2be)][_0x32d096(0x1e1)]||_0x3aed9a===s[_0x32d096(0x2be)]['FAILED']?_0x36923c+_0x32d096(0x302)+_0x198f06['t']('mcpStatus.clickToConnect'):_0x36923c:_0x36923c;}function Pe(_0x10fb3d){const _0xea4a7=_0x3b8b01;switch(_0x10fb3d){case s[_0xea4a7(0x2be)][_0xea4a7(0x1c4)]:return _0xea4a7(0x1da);case s[_0xea4a7(0x2be)][_0xea4a7(0x2dc)]:case s[_0xea4a7(0x2be)][_0xea4a7(0x1c1)]:return _0xea4a7(0x2d6);case s[_0xea4a7(0x2be)][_0xea4a7(0x2b8)]:case s[_0xea4a7(0x2be)][_0xea4a7(0x1e1)]:return _0xea4a7(0x310);default:return _0xea4a7(0x25a);}}function W(_0x5c3d78){const _0xa9368f=_0x3b8b01,{status$:_0x499f99,error$:_0x29431b,onConfigure:_0x94cb26,showClickable:_0x4c18db=!0x0}=_0x5c3d78,_0x216d1c=v['useObservable'](_0x499f99,s[_0xa9368f(0x2be)][_0xa9368f(0x1e1)]),_0x29fd63=v[_0xa9368f(0x1b3)](_0x29431b,s['MCPConnectionError'][_0xa9368f(0x1b5)]),_0x98b78a=v[_0xa9368f(0x31d)](u[_0xa9368f(0x1a2)]),_0x51174b=_0x216d1c===s[_0xa9368f(0x2be)]['CONNECTED'];_0x216d1c===s[_0xa9368f(0x2be)][_0xa9368f(0x2dc)]||s['MCPConnectionStatus'][_0xa9368f(0x1c1)];const _0x20a88c=_0x98b78a['t'](Z(_0x216d1c,_0x29fd63)),_0x48bf5c=Se(_0x216d1c,_0x29fd63,_0x98b78a,_0x4c18db),_0x3bf1ba=Pe(_0x216d1c),_0x2f2f9d=_0x51174b?i['jsx'](q,{}):i[_0xa9368f(0x2e7)](Y,{}),_0x5bf1a7=d[_0xa9368f(0x2e2)](()=>{_0x4c18db&&_0x94cb26&&_0x94cb26();},[_0x4c18db,_0x94cb26]);function _0x4bedf6(){const _0x37e6c8=_0xa9368f;return i['jsxs']('div',{'className':f[_0x37e6c8(0x23f)](_0x37e6c8(0x20b),_0x4c18db&&_0x94cb26&&_0x37e6c8(0x227)),'role':_0x37e6c8(0x254),'onClick':_0x4c18db&&_0x94cb26?_0x5bf1a7:void 0x0,'children':[i['jsx'](_0x37e6c8(0x1f7),{'className':f[_0x37e6c8(0x23f)](_0x37e6c8(0x276),_0x3bf1ba),'children':_0x2f2f9d}),i['jsx'](_0x37e6c8(0x1f7),{'className':_0x37e6c8(0x261),'children':_0x20a88c})]});}return i[_0xa9368f(0x2e7)](f[_0xa9368f(0x257)],{'title':_0x48bf5c,'placement':_0xa9368f(0x316),'children':_0x4bedf6()});}var Ie=Object[_0x3b8b01(0x1af)],_e=(_0xaf0ba5,_0x13c509,_0x11f8ef,_0x5063a7)=>{const _0x20c5cf=_0x3b8b01;for(var _0xb9bb22=_0x5063a7>0x1?void 0x0:_0x5063a7?Ie(_0x13c509,_0x11f8ef):_0x13c509,_0x54c897=_0xaf0ba5[_0x20c5cf(0x208)]-0x1,_0x1d8a0f;_0x54c897>=0x0;_0x54c897--)(_0x1d8a0f=_0xaf0ba5[_0x54c897])&&(_0xb9bb22=_0x1d8a0f(_0xb9bb22)||_0xb9bb22);return _0xb9bb22;},N=(_0x2ee5bf,_0x360f2f)=>(_0x1f741d,_0x7637be)=>_0x360f2f(_0x1f741d,_0x7637be,_0x2ee5bf);exports['MCPConnectionUIController']=class extends u[_0x3b8b01(0x258)]{constructor(_0x5bf584,_0x56f177,_0x142a2b,_0x59fb64){const _0x48e914=_0x3b8b01;super(),this[_0x48e914(0x305)]=_0x5bf584,this['_connectionController']=_0x56f177,this[_0x48e914(0x212)]=_0x142a2b,this[_0x48e914(0x271)]=_0x59fb64,this['_initAutoConnect'](),this[_0x48e914(0x28c)]();}[_0x3b8b01(0x1dc)](){const _0x4153b5=_0x3b8b01,_0x2c10d5=this[_0x4153b5(0x271)][_0x4153b5(0x266)](P);_0x2c10d5!=null&&_0x2c10d5[_0x4153b5(0x2b7)]&&(this[_0x4153b5(0x31b)][_0x4153b5(0x2eb)]=!0x1);}[_0x3b8b01(0x28c)](){const _0x3f2910=_0x3b8b01,_0x222465=this[_0x3f2910(0x271)][_0x3f2910(0x266)](P);(_0x222465==null?void 0x0:_0x222465[_0x3f2910(0x24a)])!==!0x1&&this['disposeWithMe'](this[_0x3f2910(0x212)][_0x3f2910(0x2f1)](v[_0x3f2910(0x238)]['HEADER_MENU'],()=>{const _0x1cd365=_0x3f2910;var _0x43b392;return v[_0x1cd365(0x2ca)](ye({'status$':this[_0x1cd365(0x31b)]['connectionStatus$'],'error$':this['_connectionController'][_0x1cd365(0x1ee)],'onConfigure':()=>this[_0x1cd365(0x2d9)](),'showClickable':(_0x43b392=_0x222465==null?void 0x0:_0x222465[_0x1cd365(0x2b7)])!=null?_0x43b392:!0x1}),this[_0x1cd365(0x305)]);}));}[_0x3b8b01(0x2d9)](){const _0x32d9f0=_0x3b8b01;this['_injector'][_0x32d9f0(0x202)](exports[_0x32d9f0(0x289)])[_0x32d9f0(0x270)]();}},exports[_0x3b8b01(0x2a7)]=_e([N(0x0,u[_0x3b8b01(0x24f)](u[_0x3b8b01(0x30b)])),N(0x1,u[_0x3b8b01(0x24f)](s[_0x3b8b01(0x262)])),N(0x2,v[_0x3b8b01(0x2c0)]),N(0x3,u[_0x3b8b01(0x2e8)])],exports['MCPConnectionUIController']);function ye(_0x58e5c0){const {status$:_0x3e454b,error$:_0x4d68dd,onConfigure:_0x16ac7b,showClickable:_0x1d5a72}=_0x58e5c0;return function(){return i['jsx'](W,{'status$':_0x3e454b,'error$':_0x4d68dd,'onConfigure':_0x16ac7b,'showClickable':_0x1d5a72});};}function Me(_0x1e1407){const _0x54f314=_0x3b8b01;return{'id':b['id'],'type':v[_0x54f314(0x27f)][_0x54f314(0x1db)],'icon':_0x54f314(0x19e),'title':_0x54f314(0x331),'tooltip':'mcpConfig.title'};}const Ne={[v[_0x3b8b01(0x1ba)][_0x3b8b01(0x259)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object['getOwnPropertyDescriptor'],je=(_0x1880f6,_0x284f9f,_0x1e99e9,_0x1787f2)=>{const _0x4e8b0e=_0x3b8b01;for(var _0x826419=_0x1787f2>0x1?void 0x0:_0x1787f2?be(_0x284f9f,_0x1e99e9):_0x284f9f,_0x9c0a79=_0x1880f6[_0x4e8b0e(0x208)]-0x1,_0x498113;_0x9c0a79>=0x0;_0x9c0a79--)(_0x498113=_0x1880f6[_0x9c0a79])&&(_0x826419=_0x498113(_0x826419)||_0x826419);return _0x826419;},z=(_0x320c23,_0x557c38)=>(_0x9cadea,_0x2ad40e)=>_0x557c38(_0x9cadea,_0x2ad40e,_0x320c23);exports[_0x3b8b01(0x1f0)]=class extends u[_0x3b8b01(0x258)]{constructor(_0x2c3983,_0x34e3be){const _0x13ac3a=_0x3b8b01;super(),this[_0x13ac3a(0x1ef)]=_0x2c3983,this[_0x13ac3a(0x1d6)]=_0x34e3be,this['_initializeCommands'](),this[_0x13ac3a(0x2d4)]();}[_0x3b8b01(0x304)](){const _0x54e0b2=_0x3b8b01;[b][_0x54e0b2(0x2a4)](_0x2e2ba6=>{const _0x16b2d3=_0x54e0b2;this['disposeWithMe'](this['_commandService'][_0x16b2d3(0x328)](_0x2e2ba6));});}['_initializeMenus'](){const _0x9ac85d=_0x3b8b01;this[_0x9ac85d(0x1d6)]['mergeMenu'](Ne);}},exports[_0x3b8b01(0x1f0)]=je([z(0x0,u[_0x3b8b01(0x27b)]),z(0x1,v[_0x3b8b01(0x198)])],exports[_0x3b8b01(0x1f0)]);const Ee={'mcpStatus':{'disconnected':_0x3b8b01(0x297),'connecting':_0x3b8b01(0x242),'connected':_0x3b8b01(0x218),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x3b8b01(0x2e4),'sessionOccupied':_0x3b8b01(0x1d0),'networkError':_0x3b8b01(0x2ea),'maxRetriesExceeded':_0x3b8b01(0x22d),'clickToConnect':_0x3b8b01(0x2f7),'clickToConfigure':_0x3b8b01(0x32a)},'mcpConfig':{'title':_0x3b8b01(0x1f5),'description':_0x3b8b01(0x2a3),'apiKey':_0x3b8b01(0x301),'apiKeyPlaceholder':_0x3b8b01(0x2d8),'apiKeyHint':_0x3b8b01(0x2bd),'enableAuth':_0x3b8b01(0x256),'enableAuthHint':_0x3b8b01(0x20d),'connectionInfo':_0x3b8b01(0x235),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x3b8b01(0x2ba),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x3b8b01(0x1d1),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3b8b01(0x29e),'sessionId':_0x3b8b01(0x23d),'sessionIdDescription':_0x3b8b01(0x2e6),'authorizationDescription':_0x3b8b01(0x231),'configParameters':_0x3b8b01(0x2e1),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x3b8b01(0x2f8),'note1':_0x3b8b01(0x210),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x3b8b01(0x32f),'apiApplyInfo':{'title':_0x3b8b01(0x1a4),'description':_0x3b8b01(0x2d1),'univerAiLabel':_0x3b8b01(0x21c),'getStarted':_0x3b8b01(0x282)},'validation':{'apiKeyRequired':_0x3b8b01(0x1cc),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x3b8b01(0x29d),'invalidApiKey':_0x3b8b01(0x272)},'connectionStatus':{'disconnected':_0x3b8b01(0x26b),'connecting':_0x3b8b01(0x1dd),'connected':'Connected','failed':_0x3b8b01(0x2c2),'retrying':_0x3b8b01(0x245)},'connectionError':{'unauthorized':_0x3b8b01(0x2cd),'sessionOccupied':_0x3b8b01(0x318),'networkError':_0x3b8b01(0x2d2),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},we={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x3b8b01(0x246),'connected':'MCP\x20已连接','failed':_0x3b8b01(0x22e),'retrying':_0x3b8b01(0x31c),'unknown':'MCP\x20状态未知','unauthorized':_0x3b8b01(0x260),'sessionOccupied':_0x3b8b01(0x1d8),'networkError':_0x3b8b01(0x29a),'maxRetriesExceeded':_0x3b8b01(0x306),'clickToConnect':_0x3b8b01(0x216),'clickToConfigure':_0x3b8b01(0x293)},'mcpConfig':{'title':_0x3b8b01(0x1b6),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x3b8b01(0x268),'apiKeyPlaceholder':_0x3b8b01(0x2bb),'apiKeyHint':_0x3b8b01(0x2a0),'enableAuth':_0x3b8b01(0x2b6),'enableAuthHint':_0x3b8b01(0x2b2),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x3b8b01(0x219),'configInstructions':_0x3b8b01(0x288),'configStepTitle':_0x3b8b01(0x2de),'configStep1':_0x3b8b01(0x1a1),'configStep2':_0x3b8b01(0x2a9),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x3b8b01(0x28f),'sessionIdDescription':_0x3b8b01(0x244),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x3b8b01(0x31a),'maxRetries':_0x3b8b01(0x2fa),'save':'保存配置','saving':_0x3b8b01(0x19f),'note1':_0x3b8b01(0x2db),'note2':_0x3b8b01(0x19c),'configSaved':'配置保存成功','configError':'配置保存失败','apiApplyInfo':{'title':_0x3b8b01(0x221),'description':_0x3b8b01(0x27e),'univerAiLabel':_0x3b8b01(0x1a7),'getStarted':_0x3b8b01(0x2cb)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x3b8b01(0x25d),'invalidConfig':_0x3b8b01(0x24e),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x3b8b01(0x1c3),'connecting':_0x3b8b01(0x2b1),'connected':_0x3b8b01(0x26e),'failed':_0x3b8b01(0x327),'retrying':_0x3b8b01(0x2ec)},'connectionError':{'unauthorized':_0x3b8b01(0x269),'sessionOccupied':_0x3b8b01(0x280),'networkError':_0x3b8b01(0x2f6),'maxRetriesExceeded':_0x3b8b01(0x2fb)}}};var Ae=Object['defineProperty'],Oe=Object[_0x3b8b01(0x1af)],De=(_0x5a0969,_0x3d486b,_0xa2b377)=>_0x3d486b in _0x5a0969?Ae(_0x5a0969,_0x3d486b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa2b377}):_0x5a0969[_0x3d486b]=_0xa2b377,Ue=(_0xab83b5,_0x1c73ab,_0x2b96ed,_0x130df5)=>{for(var _0x144133=_0x130df5>0x1?void 0x0:_0x130df5?Oe(_0x1c73ab,_0x2b96ed):_0x1c73ab,_0x3ef7bb=_0xab83b5['length']-0x1,_0x490ac9;_0x3ef7bb>=0x0;_0x3ef7bb--)(_0x490ac9=_0xab83b5[_0x3ef7bb])&&(_0x144133=_0x490ac9(_0x144133)||_0x144133);return _0x144133;},y=(_0x22211f,_0x1da981)=>(_0x9faea3,_0x2e8513)=>_0x1da981(_0x9faea3,_0x2e8513,_0x22211f),$e=(_0x566952,_0x5ae837,_0x427a3a)=>De(_0x566952,_0x5ae837+'',_0x427a3a);exports['UniverMCPUIPlugin']=class extends u[_0x3b8b01(0x1c2)]{constructor(_0x5ee6e2=L,_0x5a88e4,_0x29999d,_0x38cf2c,_0x2dce1a,_0xcbd506){const _0x2772d4=_0x3b8b01;super(),this[_0x2772d4(0x222)]=_0x5ee6e2,this[_0x2772d4(0x305)]=_0x5a88e4,this[_0x2772d4(0x271)]=_0x29999d,this[_0x2772d4(0x212)]=_0x38cf2c,this[_0x2772d4(0x274)]=_0x2dce1a,this[_0x2772d4(0x2c7)]=_0xcbd506;const {..._0x22ab20}=u[_0x2772d4(0x265)]({},L,this[_0x2772d4(0x222)]);this[_0x2772d4(0x271)]['setConfig'](P,_0x22ab20);}async[_0x3b8b01(0x263)](){const _0x1aaa44=_0x3b8b01,_0x5558b5=[[exports[_0x1aaa44(0x2a7)]],[exports[_0x1aaa44(0x289)]],[exports[_0x1aaa44(0x1f0)]]];this[_0x1aaa44(0x305)][_0x1aaa44(0x277)](A['ISocketService'])||_0x5558b5[_0x1aaa44(0x25b)]([A[_0x1aaa44(0x2c1)],{'useClass':A[_0x1aaa44(0x21e)]}]),_0x5558b5['forEach'](_0x1c9de6=>this[_0x1aaa44(0x305)][_0x1aaa44(0x21f)](_0x1c9de6)),this[_0x1aaa44(0x305)]['get'](exports[_0x1aaa44(0x2a7)]),this[_0x1aaa44(0x305)][_0x1aaa44(0x202)](exports[_0x1aaa44(0x289)]),this[_0x1aaa44(0x305)][_0x1aaa44(0x202)](exports[_0x1aaa44(0x1f0)]);}},$e(exports['UniverMCPUIPlugin'],_0x3b8b01(0x284),'MCP_UI_PLUGIN'),exports[_0x3b8b01(0x213)]=Ue([u['DependentOn'](s[_0x3b8b01(0x22a)]),y(0x1,u[_0x3b8b01(0x24f)](u[_0x3b8b01(0x30b)])),y(0x2,u[_0x3b8b01(0x2e8)]),y(0x3,v[_0x3b8b01(0x2c0)]),y(0x4,u[_0x3b8b01(0x1cf)]),y(0x5,u[_0x3b8b01(0x24f)](u['LocaleService']))],exports[_0x3b8b01(0x213)]),exports[_0x3b8b01(0x1cb)]=V,exports[_0x3b8b01(0x2cf)]=W,exports[_0x3b8b01(0x239)]=b,exports[_0x3b8b01(0x20f)]=Ee,exports[_0x3b8b01(0x2e0)]=we;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x53a2(){const _0x58cd0c=['Enter\x20your\x20API\x20key','Enable\x20Authentication','3700536JDAOUE','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Session\x20ID\x20Occupied','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20saved\x20successfully','Connection\x20Failed','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Univer\x20AI\x20Console','What\x20is\x20API\x20Key?','Connected','4IlsUvu','MCP:\x20Unauthorized','35604NQhKEa','Max\x20Retries','Invalid\x20configuration','MCP\x20Retrying...','10oeFaio','468231LmXXyo','Retrying...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Max\x20Retries\x20Exceeded','exports','Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Network\x20Error','Click\x20to\x20configure\x20MCP','Configuration\x20Parameters:','6128660ZMqbGp','Failed\x20to\x20save\x20configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Unknown\x20Status','1534862tiwZcN','Configuration\x20Steps:','528wZuJlj','349600bptoJX','6202994IozuBB','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Client\x20Configuration'];_0x53a2=function(){return _0x58cd0c;};return _0x53a2();}const _0x1d2542=_0x54e8;(function(_0x5c007b,_0x1966e4){const _0x136eb3=_0x54e8,_0x406f14=_0x5c007b();while(!![]){try{const _0x221ea0=parseInt(_0x136eb3(0x102))/0x1+-parseInt(_0x136eb3(0xff))/0x2+-parseInt(_0x136eb3(0xef))/0x3*(parseInt(_0x136eb3(0x113))/0x4)+-parseInt(_0x136eb3(0xee))/0x5*(-parseInt(_0x136eb3(0x108))/0x6)+parseInt(_0x136eb3(0x103))/0x7+parseInt(_0x136eb3(0x101))/0x8*(-parseInt(_0x136eb3(0x115))/0x9)+-parseInt(_0x136eb3(0xfa))/0xa;if(_0x221ea0===_0x1966e4)break;else _0x406f14['push'](_0x406f14['shift']());}catch(_0x4bb22f){_0x406f14['push'](_0x406f14['shift']());}}}(_0x53a2,0xa4028));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x1d2542(0xed),'unknown':_0x1d2542(0xfe),'unauthorized':_0x1d2542(0x114),'sessionOccupied':_0x1d2542(0x10a),'networkError':_0x1d2542(0xf7),'maxRetriesExceeded':_0x1d2542(0xf3),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x1d2542(0xf8)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x1d2542(0x106),'apiKeyHint':_0x1d2542(0xfd),'enableAuth':_0x1d2542(0x107),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x1d2542(0x105),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x1d2542(0x100),'configStep1':_0x1d2542(0xf6),'configStep2':_0x1d2542(0xf1),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x1d2542(0xf2),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x1d2542(0xf9),'maxRetries':_0x1d2542(0xeb),'save':'Save\x20Configuration','saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x1d2542(0x10b),'configSaved':_0x1d2542(0x10d),'configError':_0x1d2542(0xfb),'apiApplyInfo':{'title':_0x1d2542(0x111),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x1d2542(0x110),'getStarted':_0x1d2542(0xfc)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x1d2542(0xec),'invalidApiKey':_0x1d2542(0x104)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x1d2542(0xf5),'connected':_0x1d2542(0x112),'failed':_0x1d2542(0x10e),'retrying':_0x1d2542(0xf0)},'connectionError':{'unauthorized':_0x1d2542(0x10c),'sessionOccupied':_0x1d2542(0x109),'networkError':_0x1d2542(0x10f),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x54e8(_0x40442f,_0x2dbe0c){_0x40442f=_0x40442f-0xeb;const _0x53a271=_0x53a2();let _0x54e899=_0x53a271[_0x40442f];return _0x54e899;}module[_0x1d2542(0xf4)]=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2c4fc1=_0x4faa;function _0x570a(){const _0x4ccbdc=['MCP\x20Retrying...','API\x20key\x20with\x20Bearer\x20prefix.','Enable\x20authentication\x20for\x20secure\x20connections','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','61760mFkJfy','API\x20key\x20is\x20required','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Max\x20Retries','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connected','MCP\x20Connecting...','Connecting...','MCP:\x20Unauthorized','Configuration\x20Parameters:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Session\x20ID','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','2538459VzeEgh','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','exports','Click\x20to\x20connect\x20MCP','What\x20is\x20API\x20Key?','MCP\x20Client\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','2131890faHAKL','Configuration\x20saved\x20successfully','Connection\x20Failed','Configuration\x20Steps:','1985313fqHlAw','290iFdacq','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Retrying...','922605GzjjVL','Enter\x20your\x20API\x20key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Save\x20Configuration','API\x20Key','Failed\x20to\x20save\x20configuration','MCP:\x20Session\x20ID\x20Occupied','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Configuration','Saving...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','2lSOlWG','MCP\x20Unknown\x20Status','Invalid\x20configuration','430497pTccHT','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Disconnected','2405568GrKTNK','330HKUpTL','MCP\x20Disconnected'];_0x570a=function(){return _0x4ccbdc;};return _0x570a();}(function(_0x183a97,_0x4e5d90){const _0x18ac53=_0x4faa,_0x5d45da=_0x183a97();while(!![]){try{const _0x5ba269=-parseInt(_0x18ac53(0x1a8))/0x1+-parseInt(_0x18ac53(0x1b3))/0x2*(parseInt(_0x18ac53(0x1a4))/0x3)+parseInt(_0x18ac53(0x18a))/0x4*(parseInt(_0x18ac53(0x184))/0x5)+parseInt(_0x18ac53(0x1a0))/0x6+-parseInt(_0x18ac53(0x199))/0x7+-parseInt(_0x18ac53(0x1b9))/0x8+parseInt(_0x18ac53(0x1b6))/0x9*(parseInt(_0x18ac53(0x1a5))/0xa);if(_0x5ba269===_0x4e5d90)break;else _0x5d45da['push'](_0x5d45da['shift']());}catch(_0x407aa2){_0x5d45da['push'](_0x5d45da['shift']());}}}(_0x570a,0x7d70b));function _0x4faa(_0x51d64a,_0x438524){_0x51d64a=_0x51d64a-0x184;const _0x570a43=_0x570a();let _0x4faac5=_0x570a43[_0x51d64a];return _0x4faac5;}const e={'mcpStatus':{'disconnected':_0x2c4fc1(0x185),'connecting':_0x2c4fc1(0x191),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x2c4fc1(0x186),'unknown':_0x2c4fc1(0x1b4),'unauthorized':_0x2c4fc1(0x193),'sessionOccupied':_0x2c4fc1(0x1ae),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2c4fc1(0x19c),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x2c4fc1(0x1b0),'description':_0x2c4fc1(0x189),'apiKey':_0x2c4fc1(0x1ac),'apiKeyPlaceholder':_0x2c4fc1(0x1a9),'apiKeyHint':_0x2c4fc1(0x198),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x2c4fc1(0x188),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x2c4fc1(0x19e),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x2c4fc1(0x1a3),'configStep1':_0x2c4fc1(0x1af),'configStep2':_0x2c4fc1(0x1aa),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x2c4fc1(0x197),'sessionIdDescription':_0x2c4fc1(0x1b7),'authorizationDescription':_0x2c4fc1(0x187),'configParameters':_0x2c4fc1(0x194),'maxRetries':_0x2c4fc1(0x18d),'save':_0x2c4fc1(0x1ab),'saving':_0x2c4fc1(0x1b1),'note1':_0x2c4fc1(0x18f),'note2':_0x2c4fc1(0x19f),'configSaved':_0x2c4fc1(0x1a1),'configError':_0x2c4fc1(0x1ad),'apiApplyInfo':{'title':_0x2c4fc1(0x19d),'description':_0x2c4fc1(0x19a),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x2c4fc1(0x18b),'apiKeyTooShort':_0x2c4fc1(0x1b2),'invalidConfig':_0x2c4fc1(0x1b5),'invalidApiKey':_0x2c4fc1(0x195)},'connectionStatus':{'disconnected':_0x2c4fc1(0x1b8),'connecting':_0x2c4fc1(0x192),'connected':_0x2c4fc1(0x190),'failed':_0x2c4fc1(0x1a2),'retrying':_0x2c4fc1(0x1a7)},'connectionError':{'unauthorized':_0x2c4fc1(0x196),'sessionOccupied':_0x2c4fc1(0x18c),'networkError':_0x2c4fc1(0x18e),'maxRetriesExceeded':_0x2c4fc1(0x1a6)}}};module[_0x2c4fc1(0x19b)]=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x19c6e5=_0x15bc;(function(_0x4c5b5f,_0x552fa4){const _0x2783a9=_0x15bc,_0x3a83bc=_0x4c5b5f();while(!![]){try{const _0x33b3b7=-parseInt(_0x2783a9(0x191))/0x1*(-parseInt(_0x2783a9(0x1c4))/0x2)+-parseInt(_0x2783a9(0x1a9))/0x3+-parseInt(_0x2783a9(0x1aa))/0x4*(-parseInt(_0x2783a9(0x1c0))/0x5)+parseInt(_0x2783a9(0x1c5))/0x6+-parseInt(_0x2783a9(0x1a4))/0x7+-parseInt(_0x2783a9(0x1a6))/0x8*(-parseInt(_0x2783a9(0x1a7))/0x9)+parseInt(_0x2783a9(0x1bb))/0xa;if(_0x33b3b7===_0x552fa4)break;else _0x3a83bc['push'](_0x3a83bc['shift']());}catch(_0x5a8762){_0x3a83bc['push'](_0x3a83bc['shift']());}}}(_0x3b23,0x68d20));function _0x3b23(){const _0x57f869=['Get\x20your\x20API\x20key\x20in\x20seconds','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20saved\x20successfully','MCP:\x20Session\x20ID\x20Occupied','4023656EbdBZf','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','32656YYjcCw','1143bBaYBD','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','497712pJPZVI','8gKgkDV','API\x20key\x20is\x20required','API\x20key\x20with\x20Bearer\x20prefix.','exports','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Univer\x20AI\x20Console','Configuration\x20Parameters:','Enter\x20your\x20API\x20key','MCP\x20Unknown\x20Status','MCP:\x20Max\x20Retries\x20Exceeded','Max\x20Retries','MCP:\x20Network\x20Error','Click\x20to\x20configure\x20MCP','Retrying...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Retrying...','3824830hXKGHh','Save\x20Configuration','Configuration\x20Steps:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Click\x20to\x20connect\x20MCP','642895jLprZh','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Connection\x20Failed','Enable\x20Authentication','276DbPSha','41370rPliuk','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','What\x20is\x20API\x20Key?','37VZxsqO','Disconnected','MCP\x20Connecting...','Connected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Client\x20Configuration','MCP\x20Configuration','MCP\x20Connected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Failed\x20to\x20save\x20configuration','API\x20Key','MCP\x20Disconnected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key'];_0x3b23=function(){return _0x57f869;};return _0x3b23();}function _0x15bc(_0x151db8,_0x3190e4){_0x151db8=_0x151db8-0x190;const _0x3b2306=_0x3b23();let _0x15bce3=_0x3b2306[_0x151db8];return _0x15bce3;}const e={'mcpStatus':{'disconnected':_0x19c6e5(0x19d),'connecting':_0x19c6e5(0x193),'connected':_0x19c6e5(0x198),'failed':'MCP\x20Connection\x20Failed','retrying':_0x19c6e5(0x1ba),'unknown':_0x19c6e5(0x1b2),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x19c6e5(0x1a3),'networkError':_0x19c6e5(0x1b5),'maxRetriesExceeded':_0x19c6e5(0x1b3),'clickToConnect':_0x19c6e5(0x1bf),'clickToConfigure':_0x19c6e5(0x1b6)},'mcpConfig':{'title':_0x19c6e5(0x197),'description':_0x19c6e5(0x1c6),'apiKey':_0x19c6e5(0x19c),'apiKeyPlaceholder':_0x19c6e5(0x1b1),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x19c6e5(0x1c3),'enableAuthHint':_0x19c6e5(0x1a1),'connectionInfo':_0x19c6e5(0x196),'mcpClientConfig':_0x19c6e5(0x196),'configInstructions':_0x19c6e5(0x1c1),'configStepTitle':_0x19c6e5(0x1bd),'configStep1':_0x19c6e5(0x1b9),'configStep2':_0x19c6e5(0x19a),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x19c6e5(0x1b8),'authorizationDescription':_0x19c6e5(0x1ac),'configParameters':_0x19c6e5(0x1b0),'maxRetries':_0x19c6e5(0x1b4),'save':_0x19c6e5(0x1bc),'saving':'Saving...','note1':_0x19c6e5(0x19e),'note2':_0x19c6e5(0x199),'configSaved':_0x19c6e5(0x1a2),'configError':_0x19c6e5(0x19b),'apiApplyInfo':{'title':_0x19c6e5(0x190),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x19c6e5(0x1af),'getStarted':_0x19c6e5(0x1a0)},'validation':{'apiKeyRequired':_0x19c6e5(0x1ab),'apiKeyTooShort':_0x19c6e5(0x1a5),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x19c6e5(0x195)},'connectionStatus':{'disconnected':_0x19c6e5(0x192),'connecting':'Connecting...','connected':_0x19c6e5(0x194),'failed':_0x19c6e5(0x1c2),'retrying':_0x19c6e5(0x1b7)},'connectionError':{'unauthorized':_0x19c6e5(0x19f),'sessionOccupied':_0x19c6e5(0x1ae),'networkError':_0x19c6e5(0x1a8),'maxRetriesExceeded':_0x19c6e5(0x1be)}}},n=e;module[_0x19c6e5(0x1ad)]=n;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x3c2e(){const _0x52ce84=['Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Retrying...','MCP\x20Client\x20Configuration','Connection\x20Failed','236724XUjxvY','Configuration\x20Parameters:','API\x20Key','What\x20is\x20API\x20Key?','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','483630nXLTWy','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Network\x20Error','MCP\x20Connecting...','Click\x20to\x20configure\x20MCP','175795oDywJt','Click\x20to\x20connect\x20MCP','Retrying...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connected','18TarVcA','MCP:\x20Unauthorized','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Disconnected','Max\x20Retries','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20configuration','314056UxdKsW','565088XmCkYm','Enable\x20Authentication','Configuration\x20Steps:','962793EmmNWo','MCP\x20Connection\x20Failed','Enter\x20your\x20API\x20key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Failed\x20to\x20save\x20configuration','Session\x20ID','149004LDBUQO','Save\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connected','Enable\x20authentication\x20for\x20secure\x20connections','12tyAtxq'];_0x3c2e=function(){return _0x52ce84;};return _0x3c2e();}const _0x354800=_0x7317;function _0x7317(_0x22d036,_0x1b80b7){_0x22d036=_0x22d036-0x13c;const _0x3c2e52=_0x3c2e();let _0x731724=_0x3c2e52[_0x22d036];return _0x731724;}(function(_0x1f543a,_0x403411){const _0x263820=_0x7317,_0x475d12=_0x1f543a();while(!![]){try{const _0x49d8a0=parseInt(_0x263820(0x166))/0x1+parseInt(_0x263820(0x15d))/0x2+-parseInt(_0x263820(0x160))/0x3+parseInt(_0x263820(0x13c))/0x4*(parseInt(_0x263820(0x14d))/0x5)+-parseInt(_0x263820(0x142))/0x6+parseInt(_0x263820(0x148))/0x7+-parseInt(_0x263820(0x15c))/0x8*(parseInt(_0x263820(0x152))/0x9);if(_0x49d8a0===_0x403411)break;else _0x475d12['push'](_0x475d12['shift']());}catch(_0x11bbdc){_0x475d12['push'](_0x475d12['shift']());}}}(_0x3c2e,0x28d30));const e={'mcpStatus':{'disconnected':_0x354800(0x156),'connecting':_0x354800(0x14b),'connected':_0x354800(0x16a),'failed':_0x354800(0x161),'retrying':_0x354800(0x13f),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x354800(0x153),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x354800(0x14a),'maxRetriesExceeded':_0x354800(0x158),'clickToConnect':_0x354800(0x14e),'clickToConfigure':_0x354800(0x14c)},'mcpConfig':{'title':_0x354800(0x159),'description':_0x354800(0x150),'apiKey':_0x354800(0x144),'apiKeyPlaceholder':_0x354800(0x162),'apiKeyHint':_0x354800(0x163),'enableAuth':_0x354800(0x15e),'enableAuthHint':_0x354800(0x16b),'connectionInfo':_0x354800(0x140),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x354800(0x154),'configStepTitle':_0x354800(0x15f),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x354800(0x146),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x354800(0x165),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x354800(0x149),'configParameters':_0x354800(0x143),'maxRetries':_0x354800(0x157),'save':_0x354800(0x167),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x354800(0x168),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x354800(0x164),'apiApplyInfo':{'title':_0x354800(0x145),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x354800(0x15a)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x354800(0x147),'invalidConfig':_0x354800(0x15b),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x354800(0x13d),'connecting':'Connecting...','connected':_0x354800(0x151),'failed':_0x354800(0x141),'retrying':_0x354800(0x14f)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x354800(0x13e),'networkError':_0x354800(0x169),'maxRetriesExceeded':_0x354800(0x155)}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x3da43e=_0x383a;(function(_0x144bc2,_0x31edd0){const _0x41b9c2=_0x383a,_0x38bd33=_0x144bc2();while(!![]){try{const _0x3031aa=-parseInt(_0x41b9c2(0xe2))/0x1+parseInt(_0x41b9c2(0x109))/0x2+-parseInt(_0x41b9c2(0xf7))/0x3*(parseInt(_0x41b9c2(0xe3))/0x4)+-parseInt(_0x41b9c2(0xf6))/0x5*(-parseInt(_0x41b9c2(0x105))/0x6)+parseInt(_0x41b9c2(0xee))/0x7+parseInt(_0x41b9c2(0x10c))/0x8*(-parseInt(_0x41b9c2(0xe6))/0x9)+-parseInt(_0x41b9c2(0x10b))/0xa;if(_0x3031aa===_0x31edd0)break;else _0x38bd33['push'](_0x38bd33['shift']());}catch(_0xf68c50){_0x38bd33['push'](_0x38bd33['shift']());}}}(_0x270d,0x4656a));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x3da43e(0xed),'connected':_0x3da43e(0x102),'failed':_0x3da43e(0xfe),'retrying':_0x3da43e(0xfa),'unknown':_0x3da43e(0x103),'unauthorized':_0x3da43e(0xf2),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x3da43e(0xf8),'maxRetriesExceeded':_0x3da43e(0x104),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x3da43e(0xea)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x3da43e(0xef),'apiKey':_0x3da43e(0x101),'apiKeyPlaceholder':_0x3da43e(0xfb),'apiKeyHint':_0x3da43e(0xfd),'enableAuth':_0x3da43e(0xf1),'enableAuthHint':_0x3da43e(0xf3),'connectionInfo':_0x3da43e(0xe9),'mcpClientConfig':_0x3da43e(0xe9),'configInstructions':_0x3da43e(0xe4),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x3da43e(0xe1),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3da43e(0xf5),'sessionId':_0x3da43e(0x10e),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x3da43e(0x10f),'configParameters':_0x3da43e(0xf9),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x3da43e(0xe8),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x3da43e(0xfc),'configError':_0x3da43e(0xe7),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x3da43e(0xf4),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x3da43e(0xff)},'validation':{'apiKeyRequired':_0x3da43e(0x106),'apiKeyTooShort':_0x3da43e(0xe5),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x3da43e(0x10a)},'connectionStatus':{'disconnected':_0x3da43e(0xec),'connecting':'Connecting...','connected':_0x3da43e(0xf0),'failed':_0x3da43e(0x108),'retrying':_0x3da43e(0x10d)},'connectionError':{'unauthorized':_0x3da43e(0xeb),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x3da43e(0x107),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x383a(_0x1af095,_0x51bb5d){_0x1af095=_0x1af095-0xe1;const _0x270db8=_0x270d();let _0x383a3=_0x270db8[_0x1af095];return _0x383a3;}module[_0x3da43e(0x100)]=n;function _0x270d(){const _0x5342f3=['MCP:\x20Network\x20Error','Configuration\x20Parameters:','MCP\x20Retrying...','Enter\x20your\x20API\x20key','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connection\x20Failed','Get\x20your\x20API\x20key\x20in\x20seconds','exports','API\x20Key','MCP\x20Connected','MCP\x20Unknown\x20Status','MCP:\x20Max\x20Retries\x20Exceeded','3239958zgwLpw','API\x20key\x20is\x20required','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connection\x20Failed','1087554kQWuhi','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','2580340QYfxou','1662664gpwHeK','Retrying...','Session\x20ID','API\x20key\x20with\x20Bearer\x20prefix.','Copy\x20the\x20JSON\x20configuration\x20below','73112pwykcW','4HJzzvY','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','9ndiIfy','Failed\x20to\x20save\x20configuration','Saving...','MCP\x20Client\x20Configuration','Click\x20to\x20configure\x20MCP','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Disconnected','MCP\x20Connecting...','1086911XvgRei','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connected','Enable\x20Authentication','MCP:\x20Unauthorized','Enable\x20authentication\x20for\x20secure\x20connections','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','5wHKmHq','1235874pmdLcB'];_0x270d=function(){return _0x5342f3;};return _0x270d();}
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3e2d4e=_0x5c69;function _0x5c69(_0x38c441,_0x46efef){_0x38c441=_0x38c441-0x78;const _0x1770e0=_0x1770();let _0x5c6969=_0x1770e0[_0x38c441];return _0x5c6969;}(function(_0x579825,_0x1a8628){const _0xd6872f=_0x5c69,_0x41336b=_0x579825();while(!![]){try{const _0x31ecd8=parseInt(_0xd6872f(0xa8))/0x1*(-parseInt(_0xd6872f(0x9c))/0x2)+parseInt(_0xd6872f(0x83))/0x3*(parseInt(_0xd6872f(0x9d))/0x4)+-parseInt(_0xd6872f(0x7e))/0x5+-parseInt(_0xd6872f(0xa4))/0x6*(-parseInt(_0xd6872f(0x79))/0x7)+parseInt(_0xd6872f(0x99))/0x8*(-parseInt(_0xd6872f(0xa7))/0x9)+-parseInt(_0xd6872f(0x93))/0xa+parseInt(_0xd6872f(0xac))/0xb*(parseInt(_0xd6872f(0x89))/0xc);if(_0x31ecd8===_0x1a8628)break;else _0x41336b['push'](_0x41336b['shift']());}catch(_0x1c7a18){_0x41336b['push'](_0x41336b['shift']());}}}(_0x1770,0xa1734));function _0x1770(){const _0x54872b=['4788pxknKe','108IinGtv','MCP:\x20認証されていません','ネットワーク接続エラー。インターネット接続を確認してください','Bearerプレフィックス付きのAPIキー。','セッションID','MCP\x20未接続','MCP\x20接続中...','12jSLMTC','MCP:\x20最大再試行回数を超過','MCPクライアント設定','7605pzzCZX','526WiFtUN','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','APIキーを入力してください','再試行中...','627RgovJM','exports','接続中...','設定の変更は直ちに有効になります','APIキーは必須です','保存中...','無効なAPIキーです。キーが正しいか確認してください','APIキーはこのブラウザのローカルに保存されます','1275169DXEoqX','接続済み','以下のJSON設定をコピー','設定が正常に保存されました','MCP\x20不明な状態','5855725pScaOz','MCP\x20接続失敗','クリックしてMCPを設定','MCPクライアントを再起動して設定を適用','Univer\x20AIコンソール','48372gYpVVj','MCP:\x20セッションIDが使用中','認証を有効にする','認証に失敗しました。APIキーを確認してください','MCP設定','未接続','624564GLNkDN','APIキーは10文字以上である必要があります','MCP\x20再試行中...','APIキーはローカルストレージに安全に保存されます','設定を保存','設定手順:','MCPクライアントの設定に次の設定を追加してください:','無効な設定','MCPを設定してAIでスプレッドシートを操作','設定の保存に失敗しました','1938670NEMPOI','設定パラメータ:','最大再試行回数','接続失敗','MCP\x20接続済み','セッションIDが現在使用中です。後でもう一度お試しください','4552kTVdwM','MCP:\x20ネットワークエラー','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。'];_0x1770=function(){return _0x54872b;};return _0x1770();}const e={'mcpStatus':{'disconnected':_0x3e2d4e(0xa2),'connecting':_0x3e2d4e(0xa3),'connected':_0x3e2d4e(0x97),'failed':_0x3e2d4e(0x7f),'retrying':_0x3e2d4e(0x8b),'unknown':_0x3e2d4e(0x7d),'unauthorized':_0x3e2d4e(0x9e),'sessionOccupied':_0x3e2d4e(0x84),'networkError':_0x3e2d4e(0x9a),'maxRetriesExceeded':_0x3e2d4e(0xa5),'clickToConnect':'クリックしてMCPに接続','clickToConfigure':_0x3e2d4e(0x80)},'mcpConfig':{'title':_0x3e2d4e(0x87),'description':_0x3e2d4e(0x91),'apiKey':'APIキー','apiKeyPlaceholder':_0x3e2d4e(0xaa),'apiKeyHint':_0x3e2d4e(0x78),'enableAuth':_0x3e2d4e(0x85),'enableAuthHint':'セキュアな接続のために認証を有効にする','connectionInfo':_0x3e2d4e(0xa6),'mcpClientConfig':_0x3e2d4e(0xa6),'configInstructions':_0x3e2d4e(0x8f),'configStepTitle':_0x3e2d4e(0x8e),'configStep1':_0x3e2d4e(0x7b),'configStep2':'MCPクライアントの設定ファイルに設定を追加','configStep3':_0x3e2d4e(0x81),'sessionId':_0x3e2d4e(0xa1),'sessionIdDescription':_0x3e2d4e(0xa9),'authorizationDescription':_0x3e2d4e(0xa0),'configParameters':_0x3e2d4e(0x94),'maxRetries':_0x3e2d4e(0x95),'save':_0x3e2d4e(0x8d),'saving':_0x3e2d4e(0xb1),'note1':_0x3e2d4e(0xaf),'note2':_0x3e2d4e(0x8c),'configSaved':_0x3e2d4e(0x7c),'configError':_0x3e2d4e(0x92),'apiApplyInfo':{'title':'APIキーとは?','description':_0x3e2d4e(0x9b),'univerAiLabel':_0x3e2d4e(0x82),'getStarted':'数秒でAPIキーを取得'},'validation':{'apiKeyRequired':_0x3e2d4e(0xb0),'apiKeyTooShort':_0x3e2d4e(0x8a),'invalidConfig':_0x3e2d4e(0x90),'invalidApiKey':_0x3e2d4e(0xb2)},'connectionStatus':{'disconnected':_0x3e2d4e(0x88),'connecting':_0x3e2d4e(0xae),'connected':_0x3e2d4e(0x7a),'failed':_0x3e2d4e(0x96),'retrying':_0x3e2d4e(0xab)},'connectionError':{'unauthorized':_0x3e2d4e(0x86),'sessionOccupied':_0x3e2d4e(0x98),'networkError':_0x3e2d4e(0x9f),'maxRetriesExceeded':'最大再試行回数を超過しました。後でもう一度お試しください'}}};module[_0x3e2d4e(0xad)]=e;
|