@univerjs-pro/mcp-ui 0.10.7-nightly.202509090319 → 0.10.7-nightly.202509130640
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/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/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.css +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/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/types/controllers/mcp-config-ui.controller.d.ts +1 -0
- package/lib/types/locale/en-US.d.ts +9 -1
- package/lib/types/locale/zh-CN.d.ts +9 -1
- package/lib/types/views/components/mcp-config.d.ts +7 -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/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 +6 -5
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x55ffd5=_0xe152;(function(_0x3d332a,_0x39b7c8){var _0x5994d5=_0xe152,_0x27d8be=_0x3d332a();while(!![]){try{var _0x391013=-parseInt(_0x5994d5(0xdb))/0x1*(-parseInt(_0x5994d5(0x7e))/0x2)+-parseInt(_0x5994d5(0xd2))/0x3*(parseInt(_0x5994d5(0x139))/0x4)+parseInt(_0x5994d5(0x1a1))/0x5+-parseInt(_0x5994d5(0x16b))/0x6*(-parseInt(_0x5994d5(0x9c))/0x7)+parseInt(_0x5994d5(0x1af))/0x8+-parseInt(_0x5994d5(0x18f))/0x9*(parseInt(_0x5994d5(0x1bf))/0xa)+-parseInt(_0x5994d5(0x1ce))/0xb*(-parseInt(_0x5994d5(0xab))/0xc);if(_0x391013===_0x39b7c8)break;else _0x27d8be['push'](_0x27d8be['shift']());}catch(_0x3c9e23){_0x27d8be['push'](_0x27d8be['shift']());}}}(_0x203c,0x6b1d7));function _0xe152(_0x204524,_0x528fba){var _0x203c3a=_0x203c();return _0xe152=function(_0xe1522e,_0x29019b){_0xe1522e=_0xe1522e-0x7d;var _0x369507=_0x203c3a[_0xe1522e];return _0x369507;},_0xe152(_0x204524,_0x528fba);}var te=Object[_0x55ffd5(0x169)],oe=(_0x46af42,_0x4e967e,_0x29829d)=>_0x4e967e in _0x46af42?te(_0x46af42,_0x4e967e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29829d}):_0x46af42[_0x4e967e]=_0x29829d,_=(_0x316661,_0x5dd209,_0x52ee14)=>oe(_0x316661,typeof _0x5dd209!=_0x55ffd5(0xc6)?_0x5dd209+'':_0x5dd209,_0x52ee14);Object['defineProperty'](exports,Symbol[_0x55ffd5(0xe9)],{'value':'Module'});const u=require('@univerjs/core'),o=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),x=require('@univerjs/design'),v=require('@univerjs/ui'),j=require('rxjs'),d=require('react');var C=function(){var _0x5ea73a=_0x55ffd5;return C=Object[_0x5ea73a(0x1e2)]||function(_0x19cec0){var _0x11f405=_0x5ea73a;for(var _0x76eb5e,_0x76c7b8=0x1,_0xb0d363=arguments[_0x11f405(0x18b)];_0x76c7b8<_0xb0d363;_0x76c7b8++){_0x76eb5e=arguments[_0x76c7b8];for(var _0x78375d in _0x76eb5e)Object[_0x11f405(0x14b)][_0x11f405(0xb9)][_0x11f405(0x110)](_0x76eb5e,_0x78375d)&&(_0x19cec0[_0x78375d]=_0x76eb5e[_0x78375d]);}return _0x19cec0;},C[_0x5ea73a(0x1bb)](this,arguments);},se=function(_0x4de109,_0x2c99f7){var _0x195816=_0x55ffd5,_0x39bdbf={};for(var _0x449f38 in _0x4de109)Object['prototype']['hasOwnProperty'][_0x195816(0x110)](_0x4de109,_0x449f38)&&_0x2c99f7[_0x195816(0x181)](_0x449f38)<0x0&&(_0x39bdbf[_0x449f38]=_0x4de109[_0x449f38]);if(_0x4de109!=null&&typeof Object[_0x195816(0x194)]==_0x195816(0xe7)){for(var _0x522957=0x0,_0x449f38=Object['getOwnPropertySymbols'](_0x4de109);_0x522957<_0x449f38['length'];_0x522957++)_0x2c99f7['indexOf'](_0x449f38[_0x522957])<0x0&&Object[_0x195816(0x14b)][_0x195816(0x19e)][_0x195816(0x110)](_0x4de109,_0x449f38[_0x522957])&&(_0x39bdbf[_0x449f38[_0x522957]]=_0x4de109[_0x449f38[_0x522957]]);}return _0x39bdbf;},P=d['forwardRef'](function(_0x436bba,_0x12e647){var _0x55325a=_0x55ffd5,_0x21f43a=_0x436bba[_0x55325a(0x89)],_0x28cd25=_0x436bba['id'],_0xcf47cd=_0x436bba[_0x55325a(0xbc)],_0x2918fd=_0x436bba[_0x55325a(0xde)],_0x3df425=se(_0x436bba,[_0x55325a(0x89),'id',_0x55325a(0xbc),_0x55325a(0xde)]),_0x77911b=_0x55325a(0x17c)[_0x55325a(0xc1)](_0x28cd25,'\x20')[_0x55325a(0xc1)](_0xcf47cd||'')[_0x55325a(0x1c9)](),_0x54e851=d['useRef']('_'[_0x55325a(0xc1)](le()));return $(_0x21f43a,''[_0x55325a(0xc1)](_0x28cd25),{'defIds':_0x21f43a[_0x55325a(0x97)],'idSuffix':_0x54e851[_0x55325a(0x1c8)]},C({'ref':_0x12e647,'className':_0x77911b},_0x3df425),_0x2918fd);});function $(_0x3e24b4,_0x164832,_0x406e83,_0x1b2e7c,_0x2c43c1){var _0x47b5b1=_0x55ffd5;return d[_0x47b5b1(0x16a)](_0x3e24b4[_0x47b5b1(0xc9)],C(C({'key':_0x164832},ce(_0x3e24b4,_0x406e83,_0x2c43c1)),_0x1b2e7c),(ae(_0x3e24b4,_0x406e83)[_0x47b5b1(0x196)]||[])[_0x47b5b1(0xeb)](function(_0x4c8048,_0x35bff5){var _0x237f49=_0x47b5b1;return $(_0x4c8048,''['concat'](_0x164832,'-')[_0x237f49(0xc1)](_0x3e24b4[_0x237f49(0xc9)],'-')['concat'](_0x35bff5),_0x406e83,void 0x0,_0x2c43c1);}));}function ce(_0x5c7d77,_0x30e148,_0x3e1987){var _0xc9de08=_0x55ffd5,_0x2fe987=C({},_0x5c7d77['attrs']);_0x3e1987!=null&&_0x3e1987['colorChannel1']&&_0x2fe987[_0xc9de08(0x94)]===_0xc9de08(0xc8)&&(_0x2fe987[_0xc9de08(0x94)]=_0x3e1987[_0xc9de08(0xc8)]),_0x5c7d77[_0xc9de08(0xc9)]==='mask'&&_0x2fe987['id']&&(_0x2fe987['id']=_0x2fe987['id']+_0x30e148['idSuffix']),Object[_0xc9de08(0x182)](_0x2fe987)[_0xc9de08(0x136)](function(_0x5071fc){var _0xa2f733=_0xc9de08,_0x3ff297=_0x5071fc[0x0],_0x4c17a5=_0x5071fc[0x1];_0x3ff297==='mask'&&typeof _0x4c17a5=='string'&&(_0x2fe987[_0x3ff297]=_0x4c17a5[_0xa2f733(0x177)](/url\(#(.*)\)/,_0xa2f733(0xef)[_0xa2f733(0xc1)](_0x30e148['idSuffix'],')')));});var _0x19f819=_0x30e148[_0xc9de08(0x97)];return!_0x19f819||_0x19f819[_0xc9de08(0x18b)]===0x0||(_0x5c7d77[_0xc9de08(0xc9)]===_0xc9de08(0x137)&&_0x2fe987[_0xc9de08(0x1db)]&&(_0x2fe987[_0xc9de08(0x1db)]=_0x2fe987[_0xc9de08(0x1db)]+_0x30e148[_0xc9de08(0xea)]),Object[_0xc9de08(0x182)](_0x2fe987)[_0xc9de08(0x136)](function(_0x28600e){var _0x834e65=_0xc9de08,_0x5238c0=_0x28600e[0x0],_0x58678f=_0x28600e[0x1];typeof _0x58678f==_0x834e65(0x102)&&(_0x2fe987[_0x5238c0]=_0x58678f[_0x834e65(0x177)](/url\(#(.*)\)/,_0x834e65(0xef)[_0x834e65(0xc1)](_0x30e148['idSuffix'],')')));})),_0x2fe987;}function ae(_0x52071d,_0x5d1794){var _0x1c25de=_0x55ffd5,_0x3e5302,_0x374d72=_0x5d1794[_0x1c25de(0x97)];return!_0x374d72||_0x374d72[_0x1c25de(0x18b)]===0x0?_0x52071d:_0x52071d['tag']===_0x1c25de(0xa6)&&(!((_0x3e5302=_0x52071d['children'])===null||_0x3e5302===void 0x0)&&_0x3e5302[_0x1c25de(0x18b)])?C(C({},_0x52071d),{'children':_0x52071d[_0x1c25de(0x196)][_0x1c25de(0xeb)](function(_0xa195d){var _0x35e1c4=_0x1c25de;return typeof _0xa195d[_0x35e1c4(0xcc)]['id']==_0x35e1c4(0x102)&&_0x374d72&&_0x374d72[_0x35e1c4(0xff)](_0xa195d[_0x35e1c4(0xcc)]['id'])?C(C({},_0xa195d),{'attrs':C(C({},_0xa195d[_0x35e1c4(0xcc)]),{'id':_0xa195d['attrs']['id']+_0x5d1794[_0x35e1c4(0xea)]})}):_0xa195d;})}):_0x52071d;}function le(){var _0x24255b=_0x55ffd5;return Math[_0x24255b(0x10f)]()['toString'](0x24)['substring'](0x2,0x8);}P[_0x55ffd5(0xe0)]=_0x55ffd5(0x161);var ue={'tag':'svg','attrs':{'xmlns':_0x55ffd5(0x8c),'fill':_0x55ffd5(0x1a8),'viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':_0x55ffd5(0x11d),'attrs':{'fill':_0x55ffd5(0x1e7),'d':_0x55ffd5(0x1a0),'fillRule':_0x55ffd5(0x160),'clipRule':_0x55ffd5(0x160)}}]},L=d['forwardRef'](function(_0x260afe,_0x38104f){var _0x50e0da=_0x55ffd5;return d[_0x50e0da(0x16a)](P,Object['assign']({},_0x260afe,{'id':_0x50e0da(0x124),'ref':_0x38104f,'icon':ue}));});L[_0x55ffd5(0xe0)]=_0x55ffd5(0x117);var ve={'tag':_0x55ffd5(0x1d2),'attrs':{'xmlns':_0x55ffd5(0x8c),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x55ffd5(0x12f),'height':_0x55ffd5(0x12f)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x55ffd5(0x145),'strokeLinecap':_0x55ffd5(0xda),'strokeLinejoin':_0x55ffd5(0xda),'strokeWidth':1.33}},{'tag':'path','attrs':{'stroke':_0x55ffd5(0x1e7),'d':_0x55ffd5(0x180),'strokeLinecap':_0x55ffd5(0xda),'strokeLinejoin':_0x55ffd5(0xda),'strokeWidth':1.33}}]},G=d[_0x55ffd5(0x15d)](function(_0xcc8d26,_0x448892){var _0xb0db85=_0x55ffd5;return d[_0xb0db85(0x16a)](P,Object[_0xb0db85(0x1e2)]({},_0xcc8d26,{'id':'close-small-single','ref':_0x448892,'icon':ve}));});G['displayName']=_0x55ffd5(0xdc);function _0x203c(){var _0x656eb1=['jsx','getOwnPropertyDescriptor','M0\x200H16V16H0z','function','API\x20密钥长度至少需要\x2010\x20位','toStringTag','idSuffix','map','mcpConfig.connectionStatus.failed','on-line-icon','超出最大重试次数,请稍后再试','url(#$1','连接中...','Configuration\x20saved\x20successfully','MCP\x20Unknown\x20Status','next','MCP\x20配置','isValid','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','MCP\x20Disconnected','useState','https://console.univer.plus','zhCN','_commandService','Retrying...','_mcpConnectionController','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','includes','_validateConfig','mcpStatus.retrying','string','MCP\x20连接失败','_dialogService','Enter\x20your\x20API\x20key','CONNECTED','MCPConnectionUIController','mcpConfig.apiApplyInfo.univerAiLabel','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','MCPConfigPanel','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','Connected','show','mcpConfig.apiKeyPlaceholder','random','call','Enable\x20Authentication','Max\x20Retries','mcpConfig.sessionId','MAX_RETRIES_EXCEEDED','您的\x20API\x20密钥将在此浏览器中本地存储','连接失败','CheckMarkIcon','add','clsx','MCP:\x20Network\x20Error','mcpConfig.save','MCP\x20已断开','path','_configService','value','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','label','default','check-mark-icon','Server\x20Endpoint','connectionError$','apiKey','help-single','OpenMCPConfigPanelCommand','mcpConfig.validation.apiKeyTooShort','univer-min-w-0\x20univer-flex-1','MCP\x20状态未知','INVALID_API_KEY','univer-flex\x20univer-items-center\x20univer-gap-3','1em','mcpStatus.connected','mcpConfig.connectionStatus.retrying','启用身份验证','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','CONNECTING','forEach','use','useCallback','85316XuZldj','_messageService','_connectionController','配置保存成功','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCPConnectionController','white','mcpConfig.note2','showConfigPanel','mcpStatus.invalidApiKey','_initConfigSync','启用身份验证以获得安全连接','M5.21243\x205.62036L11.8791\x2012.287','mcpStatus.clickToConfigure','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','_initializeMenus','univer-space-y-5','mcpStatus.unknown','prototype','bottom','API\x20密钥无效,请检查密钥是否正确','连接信息','未连接','subscribeConfigValue$','MCP\x20Configuration','API\x20密钥不能为空','BUTTON','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','_localStorageService','Saving...','_registerComponent','IMenuManagerService','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','_createConfigPanelComponent','Univer\x20AI\x20控制台','setItem','forwardRef','Injector','MCPUIMenuController','evenodd','UniverIcon','mcpStatus.missingApiKey','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_mcpCoreConfig$','保存配置','mcpStatus.disconnected','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','defineProperty','createElement','272532ZtKuyO','DISCONNECTED','保存中...','setConfig','NETWORK_ERROR','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-flex\x20univer-cursor-pointer\x20univer-items-center','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','translate(.97)','Invalid\x20configuration','mcpConfig.apiKeyHint','validateApiKey','replace','Disposable','univer-bg-green-500','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','useObservable','univerjs-icon\x20univerjs-icon-','_logService','univer-flex-shrink-0\x20univer-text-red-500','noopener\x20noreferrer','M5.21243\x2012.287L11.8791\x205.62036','indexOf','entries','请输入您的\x20API\x20密钥','NONE','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','showDeveloperTools','Click\x20to\x20configure\x20MCP','https://console.univer.ai','RETRYING','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','length','UniverMCPUIPlugin','text','univer-text-red-500','21447YvGDbj','code','OffLineIcon','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','网络连接错误,请检查您的网络连接','getOwnPropertySymbols','_initStatusComponent','children','Error','univer-break-all\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-blue-600','connectInjector','url(#off-line-icon_clip0_910_343)','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','_menuManagerService','FAILED','propertyIsEnumerable','hover:univer-opacity-80','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','1269365YDTHhH','API\x20Key','mcpConfig.validation.invalidConfig','mcpConfig.validation.invalidApiKey','getConfig','off-line-icon','off','none','_injector','mcpConfig.apiApplyInfo.description','_localeService','univer-flex\x20univer-gap-3','_loadStoredApiKey','mcpConfig.connectionError.maxRetriesExceeded','1483696VUcxAJ','MCP:\x20超出最大重试次数','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MenuItemType','MCP:\x20API\x20Key\x20Missing','univer-flex-shrink-0\x20univer-text-blue-500','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','点击配置\x20MCP','univer-flex\x20univer-items-start\x20univer-gap-2','on-line-icon_clip0_910_349','univer-bg-red-500','Connection\x20Failed','apply','mcpConfig.connectionError.invalidApiKey','univer-text-xs\x20univer-text-gray-500','Univer\x20AI\x20Console','2390zziQXf','配置无效','subscribe','mcpConfig.validation.apiKeyRequired','0\x200\x2016\x2016','BehaviorSubject','会话当前被占用,请稍后再试','register','getItem','current','trim','_uiPartsService','mcp.apiKey','UniverMCPPlugin','Enable\x20authentication\x20for\x20secure\x20connections','11SkNYpF','close','pluginName','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','svg','SESSION_ID_OCCUPIED','服务器端点','Input','点击连接\x20MCP','univer.ai','Failed\x20to\x20save\x20configuration','已连接','disposeWithMe','xlink:href','univer-mb-1\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','ComponentManager','COMMAND','MCP_UI_PLUGIN','mcpStatus.failed','mergeMenu','assign','merge','univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-gray-700','mcpConfig.connectionError.networkError','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','currentColor','Save\x20Configuration','API\x20密钥','重连中...','univer-mr-2\x20univer-flex\x20univer-text-xl','mcpConfig.apiApplyInfo.getStarted','\x20-\x20','173566iSCZoY','univer.plus','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','API\x20key\x20is\x20required','univer-flex-1','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','MCP\x20重连中...','onStarting','MCP\x20Connection\x20Failed','什么是\x20API\x20密钥?','Tooltip','icon','mcpStatus.clickToConnect','useDependency','http://www.w3.org/2000/svg','ILogService','MenuIcon','span','_config$','HEADER_MENU','mcpConfig.configSaved','Plugin','fill','connectionStatus$','univer-text-gray-500','defIds','MCPConnectionStatus','ILocalStorageService','最大重试次数','LocaleService','7FYPPuu','Close','会话ID','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','ICommandService','OnLineIcon','mcpConfig.description','MCP\x20已连接','What\x20is\x20API\x20Key?','mcpServerUrl','defs','univer-text-sm\x20univer-font-medium','_handleConfigure','error','univer-bg-blue-500','1057692PeoByZ','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-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','MCPConfigUIController','Session\x20ID','DependentOn','univer-bg-gray-500','get','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','IConfigService','enUS','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Button','MCPStatusDisplay','Get\x20your\x20API\x20key\x20in\x20seconds','hasOwnProperty','_config','IUIPartsService','className','mcpConfig.apiApplyInfo.title','jsxs','MISSING_API_KEY','div','concat','mcpConfig.saving','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpConfig.apiKey','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','symbol','_loading$','colorChannel1','tag','MCP_PLUGIN_CONFIG_KEY','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','attrs','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-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-center\x20univer-gap-2','API\x20key\x20is\x20required\x20to\x20connect','MCP:\x20Session\x20Occupied','MessageType','12QKINyR','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Inject','MCPConnectionError','mcpConfig.connectionStatus.disconnected','mcpStatus.networkError','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.connectionStatus.connecting','round','6SJzDpk','CloseSmallSingle','univer-flex\x20univer-flex-wrap\x20univer-gap-2','extend','off-line-icon_clip0_910_343','displayName','Configuration\x20Notes:','mcpConfig.title','univer-text-green-500'];_0x203c=function(){return _0x656eb1;};return _0x203c();}var de={'tag':_0x55ffd5(0x1d2),'attrs':{'xmlns':_0x55ffd5(0x8c),'fill':_0x55ffd5(0x1a8),'viewBox':'0\x200\x2016\x2016','width':_0x55ffd5(0x12f),'height':'1em'},'children':[{'tag':_0x55ffd5(0x11d),'attrs':{'fill':'currentColor','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':'path','attrs':{'fill':_0x55ffd5(0x1e7),'d':_0x55ffd5(0x159)}},{'tag':_0x55ffd5(0x11d),'attrs':{'fill':_0x55ffd5(0x1e7),'d':_0x55ffd5(0x9f),'fillRule':_0x55ffd5(0x160),'clipRule':_0x55ffd5(0x160)}}]},Y=d[_0x55ffd5(0x15d)](function(_0x462476,_0x4b0af9){var _0x5bb1db=_0x55ffd5;return d[_0x5bb1db(0x16a)](P,Object[_0x5bb1db(0x1e2)]({},_0x462476,{'id':_0x5bb1db(0x128),'ref':_0x4b0af9,'icon':de}));});Y[_0x55ffd5(0xe0)]='HelpSingle';var Ce={'tag':_0x55ffd5(0x1d2),'attrs':{'xmlns':_0x55ffd5(0x8c),'fill':'none','viewBox':_0x55ffd5(0x1c3),'width':_0x55ffd5(0x12f),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x55ffd5(0x19a)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x55ffd5(0xda),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x55ffd5(0xa6),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x55ffd5(0x11d),'attrs':{'fill':'white','d':_0x55ffd5(0xe6)}}]}]}],'defIds':[_0x55ffd5(0xdf)]},F=d[_0x55ffd5(0x15d)](function(_0x83ae99,_0x2b7d78){var _0xbeb408=_0x55ffd5;return d[_0xbeb408(0x16a)](P,Object['assign']({},_0x83ae99,{'id':_0xbeb408(0x1a6),'ref':_0x2b7d78,'icon':Ce}));});F[_0x55ffd5(0xe0)]=_0x55ffd5(0x191);var ge={'tag':_0x55ffd5(0x1d2),'attrs':{'xmlns':_0x55ffd5(0x8c),'fill':_0x55ffd5(0x1a8),'viewBox':'0\x200\x2017\x2016','width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x55ffd5(0x11d),'attrs':{'stroke':_0x55ffd5(0x1e7),'d':_0x55ffd5(0x133),'strokeLinecap':_0x55ffd5(0xda),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x55ffd5(0xa6),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x55ffd5(0x1b8)},'children':[{'tag':'path','attrs':{'fill':_0x55ffd5(0x13f),'d':_0x55ffd5(0xe6),'transform':_0x55ffd5(0x173)}}]}]}],'defIds':[_0x55ffd5(0x1b8)]},V=d[_0x55ffd5(0x15d)](function(_0xe8d6b,_0x1cb39c){var _0x36f651=_0x55ffd5;return d[_0x36f651(0x16a)](P,Object['assign']({},_0xe8d6b,{'id':_0x36f651(0xed),'ref':_0x1cb39c,'icon':ge}));});V[_0x55ffd5(0xe0)]=_0x55ffd5(0xa1);function B(_0x873411){var _0x4343dd=_0x55ffd5,_0xa21640,_0x2ae243;const {mcpCoreConfig:_0x189ded,onSave:_0x4d0c99,loading:_0x18dd8b=!0x1,config:_0x1e1caa,connectionStatus$:_0x229e14,connectionError$:_0x217f30}=_0x873411,_0xe745e=v[_0x4343dd(0x8b)](u[_0x4343dd(0x9b)]),_0x1de4b6=v[_0x4343dd(0x17b)](_0x229e14,s[_0x4343dd(0x98)][_0x4343dd(0x16c)]),_0x6adf0e=v[_0x4343dd(0x17b)](_0x217f30,s[_0x4343dd(0xd5)]['NONE']),[_0x52dab3,_0x29ffc0]=d[_0x4343dd(0xf8)](_0x189ded[_0x4343dd(0x127)]||''),_0x153f49=!0x0,_0x1a36b3=_0x1e1caa[_0x4343dd(0x186)]&&_0x189ded[_0x4343dd(0xa5)]&&(_0x189ded[_0x4343dd(0xa5)]['includes'](_0x4343dd(0x7f))||_0x189ded['mcpServerUrl'][_0x4343dd(0xff)](_0x4343dd(0x1d7))),_0x2da52c=(_0xa21640=_0x189ded[_0x4343dd(0xa5)])==null?void 0x0:_0xa21640[_0x4343dd(0xff)](_0x4343dd(0x7f)),_0x380cb3=(_0x2ae243=_0x189ded[_0x4343dd(0xa5)])==null?void 0x0:_0x2ae243['includes']('univer.ai'),_0x4f4758=_0x2da52c?_0x4343dd(0xf9):_0x4343dd(0x188),_0x2c3f1b=_0x1e1caa['showDeveloperTools']&&(_0x2da52c||_0x380cb3),[_0x24c353,_0x28cbc0]=d[_0x4343dd(0xf8)](!_0x52dab3[_0x4343dd(0x1c9)]()),_0x4c51ec=(_0x17d86e,_0x1777b6)=>{var _0x3be8c2=_0x4343dd;if(_0x1777b6===s[_0x3be8c2(0xd5)][_0x3be8c2(0xbf)]||_0x1777b6===s[_0x3be8c2(0xd5)]['INVALID_API_KEY'])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x17d86e){case s[_0x3be8c2(0x98)][_0x3be8c2(0x106)]:return _0x3be8c2(0x19b);case s[_0x3be8c2(0x98)]['CONNECTING']:case s[_0x3be8c2(0x98)][_0x3be8c2(0x189)]:return _0x3be8c2(0x17a);case s['MCPConnectionStatus'][_0x3be8c2(0x19d)]:return _0x3be8c2(0x13d);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x2ff145=(_0x3e7f6c,_0x424e15)=>{var _0x5c7152=_0x4343dd;if(_0x424e15===s[_0x5c7152(0xd5)]['MISSING_API_KEY']||_0x424e15===s[_0x5c7152(0xd5)][_0x5c7152(0x12d)])return'univer-bg-red-500';switch(_0x3e7f6c){case s[_0x5c7152(0x98)]['CONNECTED']:return _0x5c7152(0x179);case s[_0x5c7152(0x98)][_0x5c7152(0x135)]:case s[_0x5c7152(0x98)][_0x5c7152(0x189)]:return _0x5c7152(0xaa);case s[_0x5c7152(0x98)][_0x5c7152(0x19d)]:return _0x5c7152(0x1b9);default:return _0x5c7152(0xb0);}},_0x48ea66=_0x3e7a1c=>{var _0x212cc4=_0x4343dd;switch(_0x3e7a1c){case s[_0x212cc4(0x98)][_0x212cc4(0x106)]:return _0xe745e['t']('mcpConfig.connectionStatus.connected');case s[_0x212cc4(0x98)]['CONNECTING']:return _0xe745e['t'](_0x212cc4(0xd9));case s[_0x212cc4(0x98)][_0x212cc4(0x19d)]:return _0xe745e['t'](_0x212cc4(0xec));case s[_0x212cc4(0x98)]['RETRYING']:return _0xe745e['t'](_0x212cc4(0x131));default:return _0xe745e['t'](_0x212cc4(0xd6));}},_0x32d7a3=_0xc2883f=>{var _0x582151=_0x4343dd;switch(_0xc2883f){case s[_0x582151(0xd5)]['MISSING_API_KEY']:return _0xe745e['t']('mcpConfig.connectionError.missingApiKey');case s[_0x582151(0xd5)]['INVALID_API_KEY']:return _0xe745e['t'](_0x582151(0x1bc));case s[_0x582151(0xd5)][_0x582151(0x1d3)]:return _0xe745e['t']('mcpConfig.connectionError.sessionOccupied');case s[_0x582151(0xd5)][_0x582151(0x16f)]:return _0xe745e['t'](_0x582151(0x1e5));case s['MCPConnectionError'][_0x582151(0x114)]:return _0xe745e['t'](_0x582151(0x1ae));default:return'';}},_0x270297=d['useCallback'](()=>{var _0x2a5acc=_0x4343dd;const _0x5668eb={..._0x189ded,'apiKey':_0x52dab3[_0x2a5acc(0x1c9)](),'enableAuth':_0x153f49};_0x4d0c99(_0x5668eb);},[_0x189ded,_0x52dab3,_0x153f49,_0x4d0c99]),_0x35565b=_0x52dab3[_0x4343dd(0x1c9)]()[_0x4343dd(0x18b)]>0x0;return o['jsxs'](_0x4343dd(0xc0),{'className':_0x4343dd(0xcb),'children':[o['jsx']('div',{'className':_0x4343dd(0x1b1),'children':o[_0x4343dd(0xbe)](_0x4343dd(0xc0),{'className':_0x4343dd(0x12e),'children':[o[_0x4343dd(0xe4)](_0x4343dd(0xc0),{'className':_0x4343dd(0x185),'children':o['jsx'](_0x4343dd(0x8f),{'className':'univer-text-white','children':'⚙'})}),o['jsx'](_0x4343dd(0xc0),{'children':o[_0x4343dd(0xe4)]('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0xe745e['t'](_0x4343dd(0xa2))})})]})}),o[_0x4343dd(0xbe)](_0x4343dd(0xc0),{'className':_0x4343dd(0x147),'children':[o[_0x4343dd(0xe4)](_0x4343dd(0xc0),{'className':_0x4343dd(0xfe)+_0x4c51ec(_0x1de4b6,_0x6adf0e)+_0x4343dd(0x164),'children':o[_0x4343dd(0xbe)]('div',{'className':_0x4343dd(0xce),'children':[o[_0x4343dd(0xe4)](_0x4343dd(0xc0),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2ff145(_0x1de4b6,_0x6adf0e)+_0x4343dd(0x121)}),o['jsx'](_0x4343dd(0x8f),{'className':_0x4343dd(0xa7),'children':_0x48ea66(_0x1de4b6)})]})}),_0x6adf0e!==s[_0x4343dd(0xd5)][_0x4343dd(0x184)]&&(_0x1de4b6===s[_0x4343dd(0x98)][_0x4343dd(0x19d)]||_0x6adf0e===s[_0x4343dd(0xd5)]['MISSING_API_KEY']||_0x6adf0e===s[_0x4343dd(0xd5)]['INVALID_API_KEY'])&&o[_0x4343dd(0xe4)](_0x4343dd(0xc0),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':o[_0x4343dd(0xbe)](_0x4343dd(0xc0),{'className':_0x4343dd(0x1b7),'children':[o[_0x4343dd(0xe4)](_0x4343dd(0x8f),{'className':_0x4343dd(0x17e),'children':'⚠️'}),o[_0x4343dd(0xe4)]('p',{'className':_0x4343dd(0x172),'children':_0x32d7a3(_0x6adf0e)})]})})]}),o[_0x4343dd(0xe4)]('div',{'className':_0x4343dd(0x80),'children':o[_0x4343dd(0xbe)](_0x4343dd(0xc0),{'className':_0x4343dd(0x149),'children':[o['jsxs'](_0x4343dd(0xc0),{'className':'univer-space-y-2','children':[o[_0x4343dd(0xbe)](_0x4343dd(0x122),{'className':_0x4343dd(0x192),'children':[o[_0x4343dd(0xe4)](_0x4343dd(0x8f),{'children':'🔑'}),'\x20',_0xe745e['t'](_0x4343dd(0xc4)),o[_0x4343dd(0xe4)]('span',{'className':_0x4343dd(0x18e),'children':'*'}),_0x1a36b3&&o[_0x4343dd(0xe4)]('a',{'href':'javascript:void(0)','onClick':()=>_0x28cbc0(!0x0),'className':_0x4343dd(0xcd),'title':_0xe745e['t'](_0x4343dd(0xbd)),'children':o[_0x4343dd(0xe4)](Y,{})})]}),o[_0x4343dd(0xe4)](x[_0x4343dd(0x1d5)],{'type':_0x4343dd(0x18d),'placeholder':_0xe745e['t'](_0x4343dd(0x10e)),'value':_0x52dab3,'onChange':_0x29ffc0,'disabled':_0x18dd8b,'autoComplete':_0x4343dd(0x1a7)}),o[_0x4343dd(0xe4)]('p',{'className':_0x4343dd(0x1bd),'children':_0xe745e['t'](_0x4343dd(0x175))})]}),_0x1a36b3&&_0x24c353&&o['jsxs']('div',{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[o['jsx']('a',{'href':'javascript:void(0)','onClick':()=>_0x28cbc0(!0x1),'className':_0x4343dd(0xac),'title':_0x4343dd(0x9d),'children':o[_0x4343dd(0xe4)](G,{})}),o[_0x4343dd(0xbe)](_0x4343dd(0xc0),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[o[_0x4343dd(0xe4)](_0x4343dd(0xc0),{'className':_0x4343dd(0x170),'children':o[_0x4343dd(0xe4)](_0x4343dd(0x8f),{'className':'univer-text-blue-600','children':'🚀'})}),o['jsxs'](_0x4343dd(0xc0),{'className':_0x4343dd(0x82),'children':[o[_0x4343dd(0xe4)]('h4',{'className':_0x4343dd(0xc5),'children':_0xe745e['t'](_0x4343dd(0xbd))}),o[_0x4343dd(0xe4)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0xe745e['t'](_0x4343dd(0x1aa))}),o[_0x4343dd(0xe4)](_0x4343dd(0xc0),{'className':_0x4343dd(0xdd),'children':_0x2c3f1b&&o['jsxs']('a',{'href':_0x4f4758,'target':'_blank','rel':_0x4343dd(0x17f),'className':_0x4343dd(0x18a),'children':[o[_0x4343dd(0xe4)]('span',{'children':'🤖'}),_0xe745e['t'](_0x4343dd(0x108)),o[_0x4343dd(0xe4)](_0x4343dd(0x8f),{'className':'univer-text-gray-400','children':'↗'})]})}),o[_0x4343dd(0xbe)](_0x4343dd(0xc0),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0xe745e['t'](_0x4343dd(0x1ec))]})]})]})]}),_0x1e1caa[_0x4343dd(0x186)]&&o[_0x4343dd(0xbe)]('div',{'className':_0x4343dd(0xb2),'children':[o[_0x4343dd(0xbe)]('h4',{'className':_0x4343dd(0xd3),'children':[o[_0x4343dd(0xe4)](_0x4343dd(0x8f),{'children':'🔗'}),'\x20',_0xe745e['t']('mcpConfig.connectionInfo')]}),o[_0x4343dd(0xbe)](_0x4343dd(0xc0),{'className':'univer-space-y-3','children':[o[_0x4343dd(0xbe)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[o['jsx'](_0x4343dd(0xc0),{'className':_0x4343dd(0xd8)}),o['jsxs'](_0x4343dd(0xc0),{'className':_0x4343dd(0x12b),'children':[o[_0x4343dd(0xe4)](_0x4343dd(0xc0),{'className':'univer-mb-1\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0xe745e['t']('mcpConfig.serverEndpoint')}),o[_0x4343dd(0xe4)](_0x4343dd(0x190),{'className':_0x4343dd(0x198),'children':_0x189ded['mcpServerUrl']})]})]}),o[_0x4343dd(0xbe)](_0x4343dd(0xc0),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[o[_0x4343dd(0xe4)](_0x4343dd(0xc0),{'className':_0x4343dd(0xd8)}),o['jsxs']('div',{'className':_0x4343dd(0x12b),'children':[o[_0x4343dd(0xe4)](_0x4343dd(0xc0),{'className':_0x4343dd(0x1dc),'children':_0xe745e['t'](_0x4343dd(0x113))}),o[_0x4343dd(0xe4)](_0x4343dd(0x190),{'className':_0x4343dd(0x1e4),'children':_0x189ded['sessionId']||_0x4343dd(0x123)})]})]})]})]}),o['jsx'](x[_0x4343dd(0xb6)],{'onClick':_0x270297,'disabled':!_0x35565b||_0x18dd8b,'className':_0x4343dd(0xf6),'children':_0x18dd8b?o['jsxs'](_0x4343dd(0x8f),{'className':_0x4343dd(0xce),'children':[o[_0x4343dd(0xe4)](_0x4343dd(0x8f),{'children':'⟲'}),_0xe745e['t'](_0x4343dd(0xc2))]}):o[_0x4343dd(0xbe)](_0x4343dd(0x8f),{'className':_0x4343dd(0xce),'children':[o[_0x4343dd(0xe4)](L,{}),_0xe745e['t'](_0x4343dd(0x11b))]})}),o[_0x4343dd(0xe4)](_0x4343dd(0xc0),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':o['jsxs'](_0x4343dd(0xc0),{'className':_0x4343dd(0x1ac),'children':[o[_0x4343dd(0xe4)](_0x4343dd(0x8f),{'className':_0x4343dd(0x1b4),'children':'💡'}),o[_0x4343dd(0xbe)](_0x4343dd(0xc0),{'className':_0x4343dd(0x1d1),'children':[o[_0x4343dd(0xe4)](_0x4343dd(0xc0),{'className':'univer-font-medium','children':_0x4343dd(0xe1)}),o[_0x4343dd(0xbe)](_0x4343dd(0xc0),{'children':['•',_0xe745e['t']('mcpConfig.note1')]}),o[_0x4343dd(0xbe)](_0x4343dd(0xc0),{'children':['•',_0xe745e['t'](_0x4343dd(0x140))]})]})]})})]})})]});}const k='mcp-ui.config',T={'showDeveloperTools':!0x1};var fe=Object[_0x55ffd5(0xe5)],pe=(_0x16d5ff,_0x1eece9,_0x1ae4f1,_0x418881)=>{var _0x11beb7=_0x55ffd5;for(var _0x139391=_0x418881>0x1?void 0x0:_0x418881?fe(_0x1eece9,_0x1ae4f1):_0x1eece9,_0x5295b4=_0x16d5ff[_0x11beb7(0x18b)]-0x1,_0x3d6798;_0x5295b4>=0x0;_0x5295b4--)(_0x3d6798=_0x16d5ff[_0x5295b4])&&(_0x139391=_0x3d6798(_0x139391)||_0x139391);return _0x139391;},p=(_0x11ee5e,_0x20cc94)=>(_0x35791b,_0x5309c8)=>_0x20cc94(_0x35791b,_0x5309c8,_0x11ee5e);const w=_0x55ffd5(0x1cb),A='mcp-config-dialog';exports['MCPConfigUIController']=class extends u[_0x55ffd5(0x178)]{constructor(_0x55e7a3,_0x27a96f,_0x782fe0,_0x31b810,_0x53d050,_0x6edf79,_0x5c6b95,_0x2e38d5,_0x36fff,_0xf7ab9e){var _0x2b17fd=_0x55ffd5;super(),_(this,_0x2b17fd(0xc7),new j[(_0x2b17fd(0x1c4))](!0x1)),_(this,_0x2b17fd(0x165),new j['BehaviorSubject']({})),_(this,'_config$',new j['BehaviorSubject']({})),_(this,'_handleConfigSave',async _0x4ac59b=>{var _0x4290c1=_0x2b17fd;this[_0x4290c1(0xc7)][_0x4290c1(0xf3)](!0x0);try{const _0x49c3c8=await this[_0x4290c1(0x100)](_0x4ac59b);if(!_0x49c3c8[_0x4290c1(0xf5)]){this['_messageService'][_0x4290c1(0x10d)]({'type':x['MessageType'][_0x4290c1(0x197)],'content':_0x49c3c8['errorMessage']||this['_localeService']['t'](_0x4290c1(0x1a3))});return;}_0x4ac59b[_0x4290c1(0x127)]?await this[_0x4290c1(0x155)][_0x4290c1(0x15c)](w,_0x4ac59b[_0x4290c1(0x127)][_0x4290c1(0x1c9)]()):await this[_0x4290c1(0x155)]['removeItem'](w),this[_0x4290c1(0x11e)][_0x4290c1(0x16e)](s[_0x4290c1(0xca)],{..._0x4ac59b,'apiKey':_0x4ac59b['apiKey'][_0x4290c1(0x1c9)]()}),this[_0x4290c1(0x165)][_0x4290c1(0xf3)]({..._0x4ac59b,'apiKey':_0x4ac59b[_0x4290c1(0x127)][_0x4290c1(0x1c9)]()}),this[_0x4290c1(0x13a)][_0x4290c1(0x10d)]({'type':x[_0x4290c1(0xd1)]['Success'],'content':this[_0x4290c1(0x1ab)]['t'](_0x4290c1(0x92))}),setTimeout(()=>{var _0x3caa2b=_0x4290c1;this['_dialogService'][_0x3caa2b(0x1cf)](A);},0x320);}catch(_0x2d13d3){this[_0x4290c1(0x17d)]['error'](_0x4290c1(0x83),_0x2d13d3),this[_0x4290c1(0x13a)][_0x4290c1(0x10d)]({'type':x['MessageType'][_0x4290c1(0x197)],'content':this[_0x4290c1(0x1ab)]['t']('mcpConfig.configError')});}finally{this[_0x4290c1(0xc7)][_0x4290c1(0xf3)](!0x1);}}),(this[_0x2b17fd(0x1a9)]=_0x55e7a3,this['_uiPartsService']=_0x27a96f,this['_configService']=_0x782fe0,this[_0x2b17fd(0x155)]=_0x31b810,this['_dialogService']=_0x53d050,this[_0x2b17fd(0x13a)]=_0x6edf79,this['_componentManager']=_0x5c6b95,this['_localeService']=_0x2e38d5,this[_0x2b17fd(0x17d)]=_0x36fff,this[_0x2b17fd(0xfd)]=_0xf7ab9e,this[_0x2b17fd(0x143)](),this[_0x2b17fd(0x1ad)](),this[_0x2b17fd(0x157)]());}[_0x55ffd5(0x141)](){var _0x562457=_0x55ffd5;this[_0x562457(0x104)]['open']({'id':A,'title':{'title':this[_0x562457(0x1ab)]['t']('mcpConfig.title')},'children':{'label':_0x562457(0x10a)},'width':0x1e0,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x4733ba=_0x562457;this[_0x4733ba(0x104)][_0x4733ba(0x1cf)](A);}});}['getCurrentConfig'](){var _0x244ebb=_0x55ffd5;return this[_0x244ebb(0x165)][_0x244ebb(0x11f)];}['_registerComponent'](){var _0x2e2e40=_0x55ffd5;this[_0x2e2e40(0x1da)](this['_componentManager'][_0x2e2e40(0x1c6)](_0x2e2e40(0x10a),this[_0x2e2e40(0x15a)]()));}[_0x55ffd5(0x15a)](){var _0x29a146=_0x55ffd5;return v['connectInjector'](()=>{var _0x4d67a1=_0xe152,_0x4ed47e,_0x4c9643;return o[_0x4d67a1(0xe4)](B,{'config':this[_0x4d67a1(0x90)][_0x4d67a1(0x11f)],'mcpCoreConfig':this[_0x4d67a1(0x165)][_0x4d67a1(0x11f)],'onSave':this['_handleConfigSave'],'loading':this[_0x4d67a1(0xc7)][_0x4d67a1(0x11f)],'connectionStatus$':(_0x4ed47e=this['_mcpConnectionController'])==null?void 0x0:_0x4ed47e[_0x4d67a1(0x95)],'connectionError$':(_0x4c9643=this[_0x4d67a1(0xfd)])==null?void 0x0:_0x4c9643['connectionError$']});},this[_0x29a146(0x1a9)]);}[_0x55ffd5(0x143)](){var _0x5594b0=_0x55ffd5;this['disposeWithMe'](this[_0x5594b0(0x11e)][_0x5594b0(0x150)](s[_0x5594b0(0xca)])[_0x5594b0(0x1c1)](_0xfbaa3d=>{var _0x356ef6=_0x5594b0;this[_0x356ef6(0x165)]['next'](_0xfbaa3d||{});}));const _0x22c844=this[_0x5594b0(0x11e)][_0x5594b0(0x1a5)](s[_0x5594b0(0xca)]);this[_0x5594b0(0x165)][_0x5594b0(0xf3)](_0x22c844||{}),this[_0x5594b0(0x1da)](this[_0x5594b0(0x11e)][_0x5594b0(0x150)](k)[_0x5594b0(0x1c1)](_0x1c1ffe=>{var _0xa09c73=_0x5594b0;this[_0xa09c73(0x90)][_0xa09c73(0xf3)](_0x1c1ffe||{});}));const _0x3595c4=this[_0x5594b0(0x11e)][_0x5594b0(0x1a5)](k);this[_0x5594b0(0x90)][_0x5594b0(0xf3)](_0x3595c4||{});}async['_loadStoredApiKey'](){var _0x17c185=_0x55ffd5;const _0x59ff13=await this[_0x17c185(0x155)][_0x17c185(0x1c7)](w);if(_0x59ff13){const _0x4bc992={...this['_mcpCoreConfig$'][_0x17c185(0x11f)],'apiKey':_0x59ff13};this[_0x17c185(0x11e)][_0x17c185(0x16e)](s[_0x17c185(0xca)],_0x4bc992),this[_0x17c185(0x165)][_0x17c185(0xf3)](_0x4bc992);}}async['_validateConfig'](_0x28ed68){var _0x4f66ba=_0x55ffd5;if(!_0x28ed68[_0x4f66ba(0x127)]||_0x28ed68[_0x4f66ba(0x127)]['trim']()[_0x4f66ba(0x18b)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x4f66ba(0x1ab)]['t'](_0x4f66ba(0x1c2))};if(_0x28ed68[_0x4f66ba(0x127)]['trim']()[_0x4f66ba(0x18b)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4f66ba(0x1ab)]['t'](_0x4f66ba(0x12a))};try{const _0x54f5b9=await this[_0x4f66ba(0x1a9)][_0x4f66ba(0xb1)](s[_0x4f66ba(0x13e)])[_0x4f66ba(0x176)](_0x28ed68[_0x4f66ba(0x127)]['trim']());return _0x54f5b9[_0x4f66ba(0xf5)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x54f5b9[_0x4f66ba(0xa9)]||this[_0x4f66ba(0x1ab)]['t'](_0x4f66ba(0x1a4))};}catch(_0x57ece1){return console['warn'](_0x4f66ba(0x10b),_0x57ece1),{'isValid':!0x0};}}},exports['MCPConfigUIController']=pe([p(0x0,u[_0x55ffd5(0xd4)](u[_0x55ffd5(0x15e)])),p(0x1,v[_0x55ffd5(0xbb)]),p(0x2,u[_0x55ffd5(0xb3)]),p(0x3,u[_0x55ffd5(0x99)]),p(0x4,v['IDialogService']),p(0x5,v['IMessageService']),p(0x6,u[_0x55ffd5(0xd4)](v[_0x55ffd5(0x1dd)])),p(0x7,u['Inject'](u[_0x55ffd5(0x9b)])),p(0x8,u[_0x55ffd5(0x8d)]),p(0x9,u[_0x55ffd5(0xd4)](s[_0x55ffd5(0x13e)]))],exports[_0x55ffd5(0xad)]);const b={'id':'mcp-ui.command.openConfigPanel','type':u['CommandType'][_0x55ffd5(0x1de)],'handler':async(_0x2c99ce,_0xc06692)=>(_0x2c99ce[_0x55ffd5(0xb1)](exports[_0x55ffd5(0xad)])[_0x55ffd5(0x141)](),!0x0)};function H(_0x4cd3ae,_0x50343e){var _0x5a100b=_0x55ffd5;switch(_0x4cd3ae){case s[_0x5a100b(0x98)][_0x5a100b(0x16c)]:return _0x50343e===s[_0x5a100b(0xd5)][_0x5a100b(0xbf)]?_0x5a100b(0x162):_0x5a100b(0x167);case s[_0x5a100b(0x98)][_0x5a100b(0x135)]:return'mcpStatus.connecting';case s[_0x5a100b(0x98)]['CONNECTED']:return _0x5a100b(0x130);case s[_0x5a100b(0x98)]['FAILED']:switch(_0x50343e){case s['MCPConnectionError'][_0x5a100b(0x12d)]:return _0x5a100b(0x142);case s[_0x5a100b(0xd5)][_0x5a100b(0x1d3)]:return'mcpStatus.sessionOccupied';case s['MCPConnectionError'][_0x5a100b(0x16f)]:return _0x5a100b(0xd7);case s[_0x5a100b(0xd5)]['MAX_RETRIES_EXCEEDED']:return'mcpStatus.maxRetriesExceeded';default:return _0x5a100b(0x1e0);}case s[_0x5a100b(0x98)][_0x5a100b(0x189)]:return _0x5a100b(0x101);default:return _0x5a100b(0x14a);}}function he(_0x5974ef,_0x24ff14,_0x1a6aec){var _0x310d63=_0x55ffd5;const _0x5f5348=H(_0x5974ef,_0x24ff14),_0x324718=_0x1a6aec['t'](_0x5f5348);return _0x5974ef===s[_0x310d63(0x98)][_0x310d63(0x16c)]&&_0x24ff14===s['MCPConnectionError'][_0x310d63(0xbf)]?_0x324718+_0x310d63(0x7d)+_0x1a6aec['t'](_0x310d63(0x146)):_0x5974ef===s[_0x310d63(0x98)][_0x310d63(0x106)]?''+_0x324718:_0x5974ef===s[_0x310d63(0x98)][_0x310d63(0x16c)]||_0x5974ef===s[_0x310d63(0x98)][_0x310d63(0x19d)]?_0x324718+_0x310d63(0x7d)+_0x1a6aec['t'](_0x310d63(0x8a)):_0x324718;}function me(_0x5df961){var _0x52f286=_0x55ffd5;switch(_0x5df961){case s['MCPConnectionStatus'][_0x52f286(0x106)]:return _0x52f286(0xe3);case s['MCPConnectionStatus']['CONNECTING']:case s[_0x52f286(0x98)]['RETRYING']:return'univer-text-yellow-500';case s['MCPConnectionStatus'][_0x52f286(0x19d)]:case s[_0x52f286(0x98)][_0x52f286(0x16c)]:return _0x52f286(0x18e);default:return _0x52f286(0x96);}}function q(_0x7734bc){var _0x2f7aef=_0x55ffd5;const {status$:_0x5344db,error$:_0x48aa01,onConfigure:_0x36f660}=_0x7734bc,_0x59757b=v[_0x2f7aef(0x17b)](_0x5344db,s[_0x2f7aef(0x98)][_0x2f7aef(0x16c)]),_0x382b51=v[_0x2f7aef(0x17b)](_0x48aa01,s[_0x2f7aef(0xd5)][_0x2f7aef(0x184)]),_0x754ef0=v[_0x2f7aef(0x8b)](u['LocaleService']),_0x354d40=_0x59757b===s[_0x2f7aef(0x98)][_0x2f7aef(0x106)],_0x1dd1d1=_0x59757b===s[_0x2f7aef(0x98)]['CONNECTING']||_0x59757b===s[_0x2f7aef(0x98)][_0x2f7aef(0x189)],_0x2feb7c=_0x754ef0['t'](H(_0x59757b,_0x382b51)),_0x2609ba=he(_0x59757b,_0x382b51,_0x754ef0),_0x117c78=me(_0x59757b),_0x5bc7d7=_0x354d40?o['jsx'](V,{}):o[_0x2f7aef(0xe4)](F,{}),_0xf7efa9=d[_0x2f7aef(0x138)](()=>{_0x36f660&&_0x36f660();},[_0x354d40,_0x1dd1d1,_0x36f660]);function _0x13d821(){var _0x50b4fd=_0x2f7aef;return o[_0x50b4fd(0xbe)](_0x50b4fd(0xc0),{'className':x[_0x50b4fd(0x119)](_0x50b4fd(0x171),_0x36f660&&_0x50b4fd(0x19f)),'onClick':_0x36f660?_0xf7efa9:void 0x0,'children':[o[_0x50b4fd(0xe4)]('div',{'className':x[_0x50b4fd(0x119)](_0x50b4fd(0x1eb),_0x117c78),'children':_0x5bc7d7}),o[_0x50b4fd(0xe4)](_0x50b4fd(0xc0),{'className':_0x50b4fd(0x168),'children':_0x2feb7c})]});}return o[_0x2f7aef(0xe4)](x[_0x2f7aef(0x88)],{'title':_0x2609ba,'placement':_0x2f7aef(0x14c),'children':_0x13d821()});}var xe=Object[_0x55ffd5(0xe5)],Pe=(_0x338607,_0x210824,_0x2db463,_0x296e62)=>{for(var _0x9f6940=_0x296e62>0x1?void 0x0:_0x296e62?xe(_0x210824,_0x2db463):_0x210824,_0x3946b2=_0x338607['length']-0x1,_0x463a8f;_0x3946b2>=0x0;_0x3946b2--)(_0x463a8f=_0x338607[_0x3946b2])&&(_0x9f6940=_0x463a8f(_0x9f6940)||_0x9f6940);return _0x9f6940;},O=(_0x41aae7,_0x56c1cf)=>(_0x5a828a,_0x31a3a2)=>_0x56c1cf(_0x5a828a,_0x31a3a2,_0x41aae7);exports['MCPConnectionUIController']=class extends u[_0x55ffd5(0x178)]{constructor(_0x2a55bf,_0x291eec,_0x4bb714){var _0x1ee798=_0x55ffd5;super(),this[_0x1ee798(0x1a9)]=_0x2a55bf,this[_0x1ee798(0x13b)]=_0x291eec,this[_0x1ee798(0x1ca)]=_0x4bb714,this[_0x1ee798(0x195)]();}['_initStatusComponent'](){var _0x205c85=_0x55ffd5;this['disposeWithMe'](this[_0x205c85(0x1ca)]['registerComponent'](v['BuiltInUIPart'][_0x205c85(0x91)],()=>v[_0x205c85(0x199)](Ie({'status$':this[_0x205c85(0x13b)][_0x205c85(0x95)],'error$':this[_0x205c85(0x13b)][_0x205c85(0x126)],'onConfigure':()=>this[_0x205c85(0xa8)]()}),this[_0x205c85(0x1a9)])));}[_0x55ffd5(0xa8)](){var _0xc3bb09=_0x55ffd5;this[_0xc3bb09(0x1a9)][_0xc3bb09(0xb1)](exports['MCPConfigUIController'])[_0xc3bb09(0x141)]();}},exports['MCPConnectionUIController']=Pe([O(0x0,u['Inject'](u['Injector'])),O(0x1,u[_0x55ffd5(0xd4)](s[_0x55ffd5(0x13e)])),O(0x2,v[_0x55ffd5(0xbb)])],exports['MCPConnectionUIController']);function Ie(_0x33ed93){const {status$:_0x54e73f,error$:_0xc403fa,onConfigure:_0xe5f34e}=_0x33ed93;return function(){var _0x3185d3=_0xe152;return o[_0x3185d3(0xe4)](q,{'status$':_0x54e73f,'error$':_0xc403fa,'onConfigure':_0xe5f34e});};}function Se(_0x1b1bdc){var _0x11f62c=_0x55ffd5;return{'id':b['id'],'type':v[_0x11f62c(0x1b2)][_0x11f62c(0x153)],'icon':_0x11f62c(0x8e),'title':'mcpConfig.title','tooltip':_0x11f62c(0xe2)};}const _e={[v['RibbonStartGroup']['OTHERS']]:{[b['id']]:{'order':0xa,'menuItemFactory':Se}}};var ye=Object['getOwnPropertyDescriptor'],Me=(_0x8557a1,_0x56f952,_0x219669,_0x142302)=>{for(var _0x3b9ba4=_0x142302>0x1?void 0x0:_0x142302?ye(_0x56f952,_0x219669):_0x56f952,_0x561e27=_0x8557a1['length']-0x1,_0x5728bf;_0x561e27>=0x0;_0x561e27--)(_0x5728bf=_0x8557a1[_0x561e27])&&(_0x3b9ba4=_0x5728bf(_0x3b9ba4)||_0x3b9ba4);return _0x3b9ba4;},R=(_0x2531fb,_0x2f1895)=>(_0x44db72,_0x7d0202)=>_0x2f1895(_0x44db72,_0x7d0202,_0x2531fb);exports[_0x55ffd5(0x15f)]=class extends u['Disposable']{constructor(_0x3e1dec,_0x3eb00a){var _0x30dae0=_0x55ffd5;super(),this[_0x30dae0(0xfb)]=_0x3e1dec,this[_0x30dae0(0x19c)]=_0x3eb00a,this['_initializeCommands'](),this[_0x30dae0(0x148)]();}['_initializeCommands'](){var _0x69fda1=_0x55ffd5;[b][_0x69fda1(0x136)](_0x395fe3=>{var _0x29dfac=_0x69fda1;this['disposeWithMe'](this[_0x29dfac(0xfb)]['registerCommand'](_0x395fe3));});}[_0x55ffd5(0x148)](){var _0x2370cb=_0x55ffd5;this[_0x2370cb(0x19c)][_0x2370cb(0x1e1)](_e);}},exports[_0x55ffd5(0x15f)]=Me([R(0x0,u[_0x55ffd5(0xa0)]),R(0x1,v[_0x55ffd5(0x158)])],exports[_0x55ffd5(0x15f)]);const Ee={'mcpStatus':{'disconnected':_0x55ffd5(0xf7),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x55ffd5(0x86),'retrying':'MCP\x20Retrying...','unknown':_0x55ffd5(0xf2),'missingApiKey':_0x55ffd5(0x1b3),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x55ffd5(0xd0),'networkError':_0x55ffd5(0x11a),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x55ffd5(0x187)},'mcpConfig':{'title':_0x55ffd5(0x151),'description':_0x55ffd5(0x1e6),'apiKey':_0x55ffd5(0x1a2),'apiKeyPlaceholder':_0x55ffd5(0x105),'apiKeyHint':_0x55ffd5(0x1b5),'enableAuth':_0x55ffd5(0x111),'enableAuthHint':_0x55ffd5(0x1cd),'connectionInfo':'Connection\x20Information','serverEndpoint':_0x55ffd5(0x125),'sessionId':_0x55ffd5(0xae),'maxRetries':_0x55ffd5(0x112),'save':_0x55ffd5(0x1e8),'saving':_0x55ffd5(0x156),'note1':_0x55ffd5(0x163),'note2':_0x55ffd5(0x154),'configSaved':_0x55ffd5(0xf1),'configError':_0x55ffd5(0x1d8),'apiApplyInfo':{'title':_0x55ffd5(0xa4),'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':_0x55ffd5(0x1be),'getStarted':_0x55ffd5(0xb8)},'validation':{'apiKeyRequired':_0x55ffd5(0x81),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x55ffd5(0x174),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x55ffd5(0x10c),'failed':_0x55ffd5(0x1ba),'retrying':_0x55ffd5(0xfc)},'connectionError':{'missingApiKey':_0x55ffd5(0xcf),'invalidApiKey':_0x55ffd5(0x109),'sessionOccupied':_0x55ffd5(0xb5),'networkError':_0x55ffd5(0x120),'maxRetriesExceeded':_0x55ffd5(0xc3)}}},Ne={'mcpStatus':{'disconnected':_0x55ffd5(0x11c),'connecting':'MCP\x20连接中...','connected':_0x55ffd5(0xa3),'failed':_0x55ffd5(0x103),'retrying':_0x55ffd5(0x84),'unknown':_0x55ffd5(0x12c),'missingApiKey':'MCP:\x20缺少\x20API\x20密钥','invalidApiKey':'MCP:\x20无效的\x20API\x20密钥','sessionOccupied':'MCP:\x20会话被占用','networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x55ffd5(0x1b0),'clickToConnect':_0x55ffd5(0x1d6),'clickToConfigure':_0x55ffd5(0x1b6)},'mcpConfig':{'title':_0x55ffd5(0xf4),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x55ffd5(0x1e9),'apiKeyPlaceholder':_0x55ffd5(0x183),'apiKeyHint':_0x55ffd5(0x115),'enableAuth':_0x55ffd5(0x132),'enableAuthHint':_0x55ffd5(0x144),'connectionInfo':_0x55ffd5(0x14e),'serverEndpoint':_0x55ffd5(0x1d4),'sessionId':_0x55ffd5(0x9e),'maxRetries':_0x55ffd5(0x9a),'save':_0x55ffd5(0x166),'saving':_0x55ffd5(0x16d),'note1':'配置更改将立即生效','note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x55ffd5(0x13c),'configError':'配置保存失败','apiApplyInfo':{'title':_0x55ffd5(0x87),'description':_0x55ffd5(0x134),'univerAiLabel':_0x55ffd5(0x15b),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x55ffd5(0x152),'apiKeyTooShort':_0x55ffd5(0xe8),'invalidConfig':_0x55ffd5(0x1c0),'invalidApiKey':_0x55ffd5(0x14d)},'connectionStatus':{'disconnected':_0x55ffd5(0x14f),'connecting':_0x55ffd5(0xf0),'connected':_0x55ffd5(0x1d9),'failed':_0x55ffd5(0x116),'retrying':_0x55ffd5(0x1ea)},'connectionError':{'missingApiKey':'需要\x20API\x20密钥才能连接','invalidApiKey':'API\x20密钥无效,请检查您的密钥后重试','sessionOccupied':_0x55ffd5(0x1c5),'networkError':_0x55ffd5(0x193),'maxRetriesExceeded':_0x55ffd5(0xee)}}};var be=Object[_0x55ffd5(0x169)],je=Object[_0x55ffd5(0xe5)],we=(_0x5bd14f,_0x590f1d,_0x690f4d)=>_0x590f1d in _0x5bd14f?be(_0x5bd14f,_0x590f1d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x690f4d}):_0x5bd14f[_0x590f1d]=_0x690f4d,Ae=(_0x278e75,_0x53b895,_0x5d5d6a,_0xece862)=>{var _0x518911=_0x55ffd5;for(var _0xa59202=_0xece862>0x1?void 0x0:_0xece862?je(_0x53b895,_0x5d5d6a):_0x53b895,_0x469ecd=_0x278e75[_0x518911(0x18b)]-0x1,_0x32c4b2;_0x469ecd>=0x0;_0x469ecd--)(_0x32c4b2=_0x278e75[_0x469ecd])&&(_0xa59202=_0x32c4b2(_0xa59202)||_0xa59202);return _0xa59202;},y=(_0x27ad23,_0x8ac837)=>(_0x5ababf,_0x2f0313)=>_0x8ac837(_0x5ababf,_0x2f0313,_0x27ad23),Oe=(_0x4ca451,_0x419b75,_0x4d0495)=>we(_0x4ca451,_0x419b75+'',_0x4d0495);exports[_0x55ffd5(0x18c)]=class extends u[_0x55ffd5(0x93)]{constructor(_0x135268=T,_0x43d3b6,_0x404893,_0x3c9aeb,_0x10ae0e,_0x380f83){var _0x1a8181=_0x55ffd5;super(),this[_0x1a8181(0xba)]=_0x135268,this[_0x1a8181(0x1a9)]=_0x43d3b6,this[_0x1a8181(0x11e)]=_0x404893,this[_0x1a8181(0x1ca)]=_0x3c9aeb,this[_0x1a8181(0x155)]=_0x10ae0e,this[_0x1a8181(0x1ab)]=_0x380f83;const {..._0xf9502d}=u[_0x1a8181(0x1e3)]({},T,this[_0x1a8181(0xba)]);this[_0x1a8181(0x11e)][_0x1a8181(0x16e)](k,_0xf9502d);}async[_0x55ffd5(0x85)](){var _0x491fa7=_0x55ffd5;[[exports[_0x491fa7(0x107)]],[exports[_0x491fa7(0xad)]],[exports[_0x491fa7(0x15f)]]][_0x491fa7(0x136)](_0x38e469=>this[_0x491fa7(0x1a9)][_0x491fa7(0x118)](_0x38e469)),this[_0x491fa7(0x1a9)][_0x491fa7(0xb1)](exports[_0x491fa7(0x107)]),this['_injector'][_0x491fa7(0xb1)](exports['MCPConfigUIController']),this[_0x491fa7(0x1a9)][_0x491fa7(0xb1)](exports[_0x491fa7(0x15f)]);}},Oe(exports[_0x55ffd5(0x18c)],_0x55ffd5(0x1d0),_0x55ffd5(0x1df)),exports['UniverMCPUIPlugin']=Ae([u[_0x55ffd5(0xaf)](s[_0x55ffd5(0x1cc)]),y(0x1,u['Inject'](u[_0x55ffd5(0x15e)])),y(0x2,u[_0x55ffd5(0xb3)]),y(0x3,v[_0x55ffd5(0xbb)]),y(0x4,u[_0x55ffd5(0x99)]),y(0x5,u[_0x55ffd5(0xd4)](u['LocaleService']))],exports[_0x55ffd5(0x18c)]),exports['MCPConfigPanel']=B,exports[_0x55ffd5(0xb7)]=q,exports[_0x55ffd5(0x129)]=b,exports[_0x55ffd5(0xb4)]=Ee,exports[_0x55ffd5(0xfa)]=Ne;
|
|
1
|
+
'use strict';var _0xe7d5d1=_0xa9ca;(function(_0x5d4a67,_0x2f67b1){var _0x4d7262=_0xa9ca,_0x1c0b5e=_0x5d4a67();while(!![]){try{var _0x3202e3=-parseInt(_0x4d7262(0x1aa))/0x1+parseInt(_0x4d7262(0x157))/0x2+-parseInt(_0x4d7262(0x14e))/0x3*(parseInt(_0x4d7262(0x72))/0x4)+-parseInt(_0x4d7262(0x9b))/0x5+parseInt(_0x4d7262(0xe5))/0x6+-parseInt(_0x4d7262(0x113))/0x7*(-parseInt(_0x4d7262(0x200))/0x8)+parseInt(_0x4d7262(0xdb))/0x9*(parseInt(_0x4d7262(0x178))/0xa);if(_0x3202e3===_0x2f67b1)break;else _0x1c0b5e['push'](_0x1c0b5e['shift']());}catch(_0x31517e){_0x1c0b5e['push'](_0x1c0b5e['shift']());}}}(_0x216a,0x596d4));var le=Object['defineProperty'],ue=(_0x59bb34,_0x2a2f9f,_0x3ac994)=>_0x2a2f9f in _0x59bb34?le(_0x59bb34,_0x2a2f9f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ac994}):_0x59bb34[_0x2a2f9f]=_0x3ac994,y=(_0x39e3e7,_0x141b50,_0x2de541)=>ue(_0x39e3e7,typeof _0x141b50!=_0xe7d5d1(0x1b7)?_0x141b50+'':_0x141b50,_0x2de541);Object[_0xe7d5d1(0x134)](exports,Symbol[_0xe7d5d1(0x14f)],{'value':_0xe7d5d1(0x188)});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),P=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),w=require('@univerjs/network');var g=function(){var _0x14744f=_0xe7d5d1;return g=Object[_0x14744f(0x1ee)]||function(_0x70a5c1){var _0x438081=_0x14744f;for(var _0x1a7be8,_0x2e3f1b=0x1,_0x416dea=arguments[_0x438081(0x1e0)];_0x2e3f1b<_0x416dea;_0x2e3f1b++){_0x1a7be8=arguments[_0x2e3f1b];for(var _0x3ba232 in _0x1a7be8)Object[_0x438081(0x1ef)][_0x438081(0x12d)]['call'](_0x1a7be8,_0x3ba232)&&(_0x70a5c1[_0x3ba232]=_0x1a7be8[_0x3ba232]);}return _0x70a5c1;},g[_0x14744f(0x205)](this,arguments);},ve=function(_0x2aa922,_0x10b207){var _0x4c36ad=_0xe7d5d1,_0x337dd4={};for(var _0x7931c3 in _0x2aa922)Object[_0x4c36ad(0x1ef)]['hasOwnProperty'][_0x4c36ad(0x19e)](_0x2aa922,_0x7931c3)&&_0x10b207[_0x4c36ad(0x1f1)](_0x7931c3)<0x0&&(_0x337dd4[_0x7931c3]=_0x2aa922[_0x7931c3]);if(_0x2aa922!=null&&typeof Object[_0x4c36ad(0x88)]=='function'){for(var _0x213379=0x0,_0x7931c3=Object[_0x4c36ad(0x88)](_0x2aa922);_0x213379<_0x7931c3[_0x4c36ad(0x1e0)];_0x213379++)_0x10b207[_0x4c36ad(0x1f1)](_0x7931c3[_0x213379])<0x0&&Object['prototype'][_0x4c36ad(0xbc)][_0x4c36ad(0x19e)](_0x2aa922,_0x7931c3[_0x213379])&&(_0x337dd4[_0x7931c3[_0x213379]]=_0x2aa922[_0x7931c3[_0x213379]]);}return _0x337dd4;},I=d[_0xe7d5d1(0x71)](function(_0x5cb618,_0x25098c){var _0x5b8ead=_0xe7d5d1,_0x3ae9c8=_0x5cb618['icon'],_0x1267a0=_0x5cb618['id'],_0x592173=_0x5cb618[_0x5b8ead(0x152)],_0x3e657d=_0x5cb618[_0x5b8ead(0xe0)],_0x3f5e04=ve(_0x5cb618,[_0x5b8ead(0x135),'id',_0x5b8ead(0x152),_0x5b8ead(0xe0)]),_0x162439=_0x5b8ead(0x1ad)[_0x5b8ead(0x15c)](_0x1267a0,'\x20')['concat'](_0x592173||'')[_0x5b8ead(0x138)](),_0x496115=d[_0x5b8ead(0x206)]('_'['concat'](ge()));return B(_0x3ae9c8,''[_0x5b8ead(0x15c)](_0x1267a0),{'defIds':_0x3ae9c8['defIds'],'idSuffix':_0x496115['current']},g({'ref':_0x25098c,'className':_0x162439},_0x3f5e04),_0x3e657d);});function B(_0x1a6673,_0x5f14be,_0x192c20,_0x114caf,_0x156b9a){var _0x263979=_0xe7d5d1;return d['createElement'](_0x1a6673[_0x263979(0x15f)],g(g({'key':_0x5f14be},de(_0x1a6673,_0x192c20,_0x156b9a)),_0x114caf),(Ce(_0x1a6673,_0x192c20)['children']||[])['map'](function(_0x2f2cb9,_0x327394){var _0x2c443f=_0x263979;return B(_0x2f2cb9,''[_0x2c443f(0x15c)](_0x5f14be,'-')[_0x2c443f(0x15c)](_0x1a6673[_0x2c443f(0x15f)],'-')[_0x2c443f(0x15c)](_0x327394),_0x192c20,void 0x0,_0x156b9a);}));}function de(_0x3d9cb7,_0x1d8ec6,_0x6ebfd5){var _0x284a4f=_0xe7d5d1,_0x4f14f4=g({},_0x3d9cb7[_0x284a4f(0x120)]);_0x6ebfd5!=null&&_0x6ebfd5['colorChannel1']&&_0x4f14f4[_0x284a4f(0x191)]==='colorChannel1'&&(_0x4f14f4[_0x284a4f(0x191)]=_0x6ebfd5['colorChannel1']),_0x3d9cb7['tag']===_0x284a4f(0xcc)&&_0x4f14f4['id']&&(_0x4f14f4['id']=_0x4f14f4['id']+_0x1d8ec6[_0x284a4f(0xcd)]),Object[_0x284a4f(0x9a)](_0x4f14f4)['forEach'](function(_0x311b50){var _0x32a48f=_0x284a4f,_0x1a1ad8=_0x311b50[0x0],_0x55f62f=_0x311b50[0x1];_0x1a1ad8==='mask'&&typeof _0x55f62f==_0x32a48f(0x1db)&&(_0x4f14f4[_0x1a1ad8]=_0x55f62f[_0x32a48f(0x8b)](/url\(#(.*)\)/,'url(#$1'[_0x32a48f(0x15c)](_0x1d8ec6[_0x32a48f(0xcd)],')')));});var _0x3227f2=_0x1d8ec6[_0x284a4f(0x1b5)];return!_0x3227f2||_0x3227f2[_0x284a4f(0x1e0)]===0x0||(_0x3d9cb7['tag']===_0x284a4f(0xf3)&&_0x4f14f4[_0x284a4f(0x161)]&&(_0x4f14f4[_0x284a4f(0x161)]=_0x4f14f4['xlink:href']+_0x1d8ec6['idSuffix']),Object['entries'](_0x4f14f4)[_0x284a4f(0x207)](function(_0x281edc){var _0x20b685=_0x284a4f,_0x50c161=_0x281edc[0x0],_0x548fa2=_0x281edc[0x1];typeof _0x548fa2==_0x20b685(0x1db)&&(_0x4f14f4[_0x50c161]=_0x548fa2['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x1d8ec6['idSuffix'],')')));})),_0x4f14f4;}function Ce(_0x5dd1eb,_0x59e506){var _0x440243=_0xe7d5d1,_0x304289,_0x47679c=_0x59e506[_0x440243(0x1b5)];return!_0x47679c||_0x47679c['length']===0x0?_0x5dd1eb:_0x5dd1eb[_0x440243(0x15f)]==='defs'&&(!((_0x304289=_0x5dd1eb['children'])===null||_0x304289===void 0x0)&&_0x304289['length'])?g(g({},_0x5dd1eb),{'children':_0x5dd1eb[_0x440243(0x1af)][_0x440243(0x109)](function(_0x2c439f){var _0x53622e=_0x440243;return typeof _0x2c439f[_0x53622e(0x120)]['id']==_0x53622e(0x1db)&&_0x47679c&&_0x47679c[_0x53622e(0x92)](_0x2c439f[_0x53622e(0x120)]['id'])?g(g({},_0x2c439f),{'attrs':g(g({},_0x2c439f[_0x53622e(0x120)]),{'id':_0x2c439f[_0x53622e(0x120)]['id']+_0x59e506[_0x53622e(0xcd)]})}):_0x2c439f;})}):_0x5dd1eb;}function _0x216a(){var _0x564593=['https://console.univer.ai','M5.21243\x2012.287L11.8791\x205.62036','mcpConfig.description','CONNECTING','mcpConfig.authorizationDescription','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','MCP\x20配置','0\x200\x2017\x2017','MAX_RETRIES_EXCEEDED','M5.21243\x205.62036L11.8791\x2012.287','带有\x20Bearer\x20前缀的\x20API\x20密钥。','NETWORK_ERROR','mcpStatus.connected','已连接','OnLineIcon','mask','idSuffix','_config$','Click\x20to\x20configure\x20MCP','MCP\x20状态未知','最大重试次数','配置更改将立即生效','defs','mergeMenu','_localStorageService','url(#off-line-icon_clip0_910_343)','Get\x20your\x20API\x20key\x20in\x20seconds','substring','_configService','close','207dEtpxk','Input','displayName','univer-text-gray-400','mcpConfig.apiApplyInfo.univerAiLabel','extend','CheckMarkIcon','mcp.apiKey','_handleConfigure','mcpConfig.configInstructions','1968264BvwNJb','getConfig','连接失败','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-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','IConfigService','未连接','Bearer\x20','RibbonStartGroup','univer-text-xs\x20univer-text-gray-500','useState','univer-space-y-4','Disposable','univer-space-y-2','_uiPartsService','use','mcpStatus.networkError','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcp-config-dialog','mcp-ui.config','pre','HEADER_MENU','IMessageService','\x20-\x20','_messageService','random','Saving...','Copy\x20the\x20JSON\x20configuration\x20below','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','mcpStatus.connecting','translate(.97)','univer-flex\x20univer-cursor-pointer\x20univer-items-center','_validateConfig','mcpConfig.apiApplyInfo.description','_loading$','none','配置\x20MCP\x20使用\x20AI\x20操作电子表格','map','MCP\x20Disconnected','univer-flex\x20univer-items-start\x20univer-gap-3','MCP:\x20Max\x20Retries\x20Exceeded','_handleConfigSave','MCP:\x20Invalid\x20API\x20Key','on-line-icon','univer-bg-blue-500','UniverIcon','保存中...','361991HuuQdE','UniverMCPPlugin','ILocalStorageService','Invalid\x20configuration','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.note1','label','Enter\x20your\x20API\x20key','Injector','mcpStatus.sessionOccupied','off','_mcpConnectionController','univer-space-y-5','attrs','mcpConfig.apiApplyInfo.title','API\x20密钥长度至少需要\x2010\x20位','clipPath','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Save\x20Configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','white','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','MCPConfigUIController','_localeService','univer-text-sm\x20univer-text-gray-500','mcpConfig.connectionError.sessionOccupied','hasOwnProperty','mcpStatus.clickToConfigure','univer-text-gray-500','Failed\x20to\x20save\x20configuration','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','FAILED','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','defineProperty','icon','MCP:\x20无效的\x20API\x20密钥','API\x20key\x20is\x20required','trim','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','mcpConfig.connectionStatus.retrying','text','on-line-icon_clip0_910_349','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','disposeWithMe','error','重连中...','SESSION_ID_OCCUPIED','mcpStatus.clickToConnect','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','BUTTON','mcpStatus.failed','univer-text-xs\x20univer-text-gray-600','univer-flex-shrink-0\x20univer-text-blue-500','merge','registerCommand','mcpConfig.saving','Session\x20ID','NONE','mcpConfig.connectionStatus.disconnected','299706fmiBKl','toStringTag','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','INVALID_API_KEY','className','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','OpenMCPConfigPanelCommand','univer-flex\x20univer-items-center\x20univer-gap-2','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','611194RTiEdE','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpConfig.sessionIdDescription','jsxs','concat','Authorization:','Configuration\x20Notes:','tag','close-small-single','xlink:href','mcpStatus.unknown','open','MCPUIMenuController','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','HelpSingle','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','mcp-ui.command.openConfigPanel','MenuIcon','mcpConfig.connectionError.maxRetriesExceeded','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','__setCustomHeaders','MCP\x20已断开','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','path','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','_dialogService','ILogService','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer.ai','useDependency','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','313650IoXHqY','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCP:\x20API\x20Key\x20Missing','round','connectionError$','DependentOn','univer-flex-1','配置参数:','MCP\x20客户端配置','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','mcpConfig.title','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','MCPConnectionUIController','Module','currentColor','show','mcpConfig.configSaved','univer_session_id:','univer.plus','MCPStatusDisplay','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','_loadStoredApiKey','fill','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','off-line-icon','M0\x200H16V16H0z','MCP\x20Client\x20Configuration','mcpConfig.connectionStatus.connected','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','OTHERS','会话当前被占用,请稍后再试','请输入您的\x20API\x20密钥','toString','IMenuManagerService','call','启用身份验证','https://console.univer.plus','univer-space-y-3','LocaleService','Button','showDeveloperTools','mcpConfig.apiKeyHint','_apiKey$','MCP_UI_PLUGIN','BehaviorSubject','Success','531042MCYhlF','_initStatusComponent','mcpConfig.apiKey','univerjs-icon\x20univerjs-icon-','univer-text-yellow-500','children','univer-text-red-500','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.apiApplyInfo.getStarted','validateApiKey','_commandService','defIds','MCP\x20Connecting...','symbol','univer-flex-shrink-0\x20univer-text-red-500','_menuManagerService','mcpConfig.configParameters','ICommandService','univer-flex\x20univer-items-center\x20univer-gap-3','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.validation.invalidConfig','MCP\x20Unknown\x20Status','url(#on-line-icon_clip0_910_349)','mcpConfig.configError','mcpConfig.validation.invalidApiKey','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','您的\x20API\x20密钥安全存储在本地存储中','0\x200\x2016\x2016','_componentManager','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','isValid','Max\x20Retries','1em','jsx','_config','MCP\x20重连中...','OffLineIcon','off-line-icon_clip0_910_343','CONNECTED','ComponentManager','univer-min-w-0\x20univer-flex-1','MCPConnectionController','Inject','univer-bg-red-500','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','mcpConfig.configStep3','Close','_registerComponent','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','string','svg','API\x20Key','Connecting...','MCPConnectionError','length','connectInjector','mcpStatus.invalidApiKey','Configuration\x20saved\x20successfully','onStarting','univer-flex\x20univer-flex-wrap\x20univer-gap-2','_connectionController','value','超出最大重试次数,请稍后再试','_createConfigPanelComponent','javascript:void(0)','_injector','MessageType','配置无效','assign','prototype','next','indexOf','createElement','{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id=','_initializeCommands','DISCONNECTED','Click\x20to\x20connect\x20MCP','useCallback','div','http://www.w3.org/2000/svg','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','get','getOwnPropertyDescriptor','mcpConfig.validation.apiKeyTooShort','registerComponent','connectionStatus$','8OZeAKi','Tooltip','showConfigPanel','Configuration\x20Steps:','MCPConfigPanel','apply','useRef','forEach','forwardRef','8XhfoOd','MCP:\x20缺少\x20API\x20密钥','span','需要\x20API\x20密钥才能连接','IUIPartsService','MCP:\x20会话被占用','univer-bg-gray-500','push','apiKey','MCPConnectionStatus','mcpConfig.connectionStatus.connecting','mcpServerUrl','配置保存失败','_initConfigSync','subscribeConfigValue$','mcpConfig.validation.apiKeyRequired','配置保存成功','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','将以下配置添加到您的\x20MCP\x20客户端设置中:','配置步骤:','API\x20密钥无效,请检查您的密钥后重试','UniverMCPUIPlugin','getOwnPropertySymbols','MCP:\x20Session\x20Occupied','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','replace','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','什么是\x20API\x20密钥?','enableAutoConnect','_mcpCoreConfig$','mcpConfig.configStepTitle','API\x20密钥','includes','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_blank','univer-bg-green-500','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','noopener\x20noreferrer','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20超出最大重试次数','entries','1548055alOsJH','几秒钟内获取您的\x20API\x20密钥','API\x20key\x20is\x20required\x20to\x20connect','check-mark-icon','removeItem','mcpConfig.connectionInfo','ISocketService','getItem','MCP\x20Configuration','mcpStatus.disconnected','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','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','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','BuiltInUIPart','_initializeMenus','MCP\x20连接中...','RETRYING','Retrying...','Error','API\x20密钥不能为空','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','clsx','subscribe','errorMessage','useObservable','help-single','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_logService','MCP_PLUGIN_CONFIG_KEY','点击连接\x20MCP','API\x20密钥无效,请检查密钥是否正确','您的\x20API\x20密钥将在此浏览器中本地存储','evenodd','propertyIsEnumerable'];_0x216a=function(){return _0x564593;};return _0x216a();}function ge(){var _0x45d11d=_0xe7d5d1;return Math[_0x45d11d(0xfd)]()[_0x45d11d(0x19c)](0x24)[_0x45d11d(0xd8)](0x2,0x8);}I[_0xe7d5d1(0xdd)]=_0xe7d5d1(0x111);function _0xa9ca(_0x369b41,_0x3e96de){var _0x216aa5=_0x216a();return _0xa9ca=function(_0xa9caa6,_0x3ffa66){_0xa9caa6=_0xa9caa6-0x71;var _0x5dfb1b=_0x216aa5[_0xa9caa6];return _0x5dfb1b;},_0xa9ca(_0x369b41,_0x3e96de);}var fe={'tag':_0xe7d5d1(0x1dc),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xe7d5d1(0x107),'viewBox':_0xe7d5d1(0x1c5),'width':_0xe7d5d1(0x1ca),'height':_0xe7d5d1(0x1ca)},'children':[{'tag':_0xe7d5d1(0x170),'attrs':{'fill':'currentColor','d':_0xe7d5d1(0x156),'fillRule':_0xe7d5d1(0xbb),'clipRule':_0xe7d5d1(0xbb)}}]},V=d[_0xe7d5d1(0x71)](function(_0x1cc510,_0x4df43a){var _0x563651=_0xe7d5d1;return d[_0x563651(0x1f2)](I,Object[_0x563651(0x1ee)]({},_0x1cc510,{'id':_0x563651(0x9e),'ref':_0x4df43a,'icon':fe}));});V[_0xe7d5d1(0xdd)]=_0xe7d5d1(0xe1);var pe={'tag':_0xe7d5d1(0x1dc),'attrs':{'xmlns':_0xe7d5d1(0x1f9),'fill':_0xe7d5d1(0x107),'viewBox':_0xe7d5d1(0xc4),'width':_0xe7d5d1(0x1ca),'height':_0xe7d5d1(0x1ca)},'children':[{'tag':_0xe7d5d1(0x170),'attrs':{'stroke':_0xe7d5d1(0x189),'d':_0xe7d5d1(0xc6),'strokeLinecap':'round','strokeLinejoin':_0xe7d5d1(0x17d),'strokeWidth':1.33}},{'tag':'path','attrs':{'stroke':_0xe7d5d1(0x189),'d':_0xe7d5d1(0xbe),'strokeLinecap':_0xe7d5d1(0x17d),'strokeLinejoin':_0xe7d5d1(0x17d),'strokeWidth':1.33}}]},F=d['forwardRef'](function(_0x29bafa,_0xa28084){var _0x50d63d=_0xe7d5d1;return d[_0x50d63d(0x1f2)](I,Object[_0x50d63d(0x1ee)]({},_0x29bafa,{'id':_0x50d63d(0x160),'ref':_0xa28084,'icon':pe}));});F['displayName']='CloseSmallSingle';var he={'tag':_0xe7d5d1(0x1dc),'attrs':{'xmlns':_0xe7d5d1(0x1f9),'fill':_0xe7d5d1(0x107),'viewBox':_0xe7d5d1(0x1c5),'width':_0xe7d5d1(0x1ca),'height':_0xe7d5d1(0x1ca)},'children':[{'tag':_0xe7d5d1(0x170),'attrs':{'fill':_0xe7d5d1(0x189),'d':_0xe7d5d1(0xa6)}},{'tag':'path','attrs':{'fill':_0xe7d5d1(0x189),'d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':_0xe7d5d1(0x170),'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':_0xe7d5d1(0xbb),'clipRule':_0xe7d5d1(0xbb)}}]},H=d['forwardRef'](function(_0x2bc421,_0x3f2240){var _0x49c078=_0xe7d5d1;return d[_0x49c078(0x1f2)](I,Object[_0x49c078(0x1ee)]({},_0x2bc421,{'id':_0x49c078(0xb4),'ref':_0x3f2240,'icon':he}));});H[_0xe7d5d1(0xdd)]=_0xe7d5d1(0x166);var me={'tag':_0xe7d5d1(0x1dc),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2016\x2016','width':_0xe7d5d1(0x1ca),'height':_0xe7d5d1(0x1ca)},'children':[{'tag':'g','attrs':{'clipPath':_0xe7d5d1(0xd6)},'children':[{'tag':_0xe7d5d1(0x170),'attrs':{'stroke':_0xe7d5d1(0x189),'d':_0xe7d5d1(0x1fa),'strokeLinecap':_0xe7d5d1(0x17d),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xe7d5d1(0xd3),'attrs':{},'children':[{'tag':_0xe7d5d1(0x123),'attrs':{'id':_0xe7d5d1(0x1cf)},'children':[{'tag':'path','attrs':{'fill':_0xe7d5d1(0x127),'d':_0xe7d5d1(0x195)}}]}]}],'defIds':[_0xe7d5d1(0x1cf)]},q=d['forwardRef'](function(_0xb783f7,_0x539754){var _0xe06493=_0xe7d5d1;return d[_0xe06493(0x1f2)](I,Object['assign']({},_0xb783f7,{'id':_0xe06493(0x194),'ref':_0x539754,'icon':me}));});q['displayName']=_0xe7d5d1(0x1ce);var xe={'tag':_0xe7d5d1(0x1dc),'attrs':{'xmlns':_0xe7d5d1(0x1f9),'fill':_0xe7d5d1(0x107),'viewBox':'0\x200\x2017\x2016','width':_0xe7d5d1(0x1ca),'height':_0xe7d5d1(0x1ca)},'children':[{'tag':'g','attrs':{'clipPath':_0xe7d5d1(0x1c0)},'children':[{'tag':_0xe7d5d1(0x170),'attrs':{'stroke':_0xe7d5d1(0x189),'d':_0xe7d5d1(0x16c),'strokeLinecap':_0xe7d5d1(0x17d),'strokeLinejoin':_0xe7d5d1(0x17d),'strokeWidth':1.2}}]},{'tag':_0xe7d5d1(0xd3),'attrs':{},'children':[{'tag':_0xe7d5d1(0x123),'attrs':{'id':_0xe7d5d1(0x13c)},'children':[{'tag':_0xe7d5d1(0x170),'attrs':{'fill':'white','d':_0xe7d5d1(0x195),'transform':_0xe7d5d1(0x102)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},z=d[_0xe7d5d1(0x71)](function(_0x57cc49,_0x472b66){var _0x3f262c=_0xe7d5d1;return d[_0x3f262c(0x1f2)](I,Object['assign']({},_0x57cc49,{'id':_0x3f262c(0x10f),'ref':_0x472b66,'icon':xe}));});z['displayName']=_0xe7d5d1(0xcb);function W(_0x5a6c82){var _0x487c9a=_0xe7d5d1,_0xbe60cd,_0x2a3a9e;const {mcpCoreConfig:_0xd8efac,onSave:_0x37a8e1,loading:_0x2d2cf6=!0x1,config:_0x1ac7ce,connectionStatus$:_0x445d9b,connectionError$:_0x4f0192,currentApiKey$:_0x7e7b48,currentSessionId$:_0x4d1fb1}=_0x5a6c82,_0x2e22b6=v[_0x487c9a(0x176)](u['LocaleService']),_0x6230b1=v[_0x487c9a(0xb3)](_0x445d9b,s[_0x487c9a(0x7b)][_0x487c9a(0x1f5)]),_0x583ce6=v[_0x487c9a(0xb3)](_0x4f0192,s[_0x487c9a(0x1df)][_0x487c9a(0x14c)]),_0x1d2602=v[_0x487c9a(0xb3)](_0x4d1fb1,''),_0x5a4c47=v[_0x487c9a(0xb3)](_0x7e7b48,''),[_0x415167,_0x582b93]=d[_0x487c9a(0xee)](_0x5a4c47||''),_0xbfa5a=!0x0,_0x3aeaaf=_0x1ac7ce[_0x487c9a(0x1a4)]&&_0xd8efac[_0x487c9a(0x7d)]&&(_0xd8efac[_0x487c9a(0x7d)][_0x487c9a(0x92)](_0x487c9a(0x18d))||_0xd8efac[_0x487c9a(0x7d)][_0x487c9a(0x92)]('univer.ai')),_0xec9c5c=(_0xbe60cd=_0xd8efac[_0x487c9a(0x7d)])==null?void 0x0:_0xbe60cd['includes'](_0x487c9a(0x18d)),_0x3058f9=(_0x2a3a9e=_0xd8efac[_0x487c9a(0x7d)])==null?void 0x0:_0x2a3a9e[_0x487c9a(0x92)](_0x487c9a(0x175)),_0x550545=_0xec9c5c?_0x487c9a(0x1a0):_0x487c9a(0xbd),_0x100b45=_0x1ac7ce[_0x487c9a(0x1a4)]&&(_0xec9c5c||_0x3058f9),[_0x5029e6,_0x2c4272]=d['useState'](!_0x415167[_0x487c9a(0x138)]()),_0x4573a1=(_0x25182c,_0x88f6b)=>{var _0x3f84ac=_0x487c9a;if(_0x88f6b===s['MCPConnectionError']['INVALID_API_KEY'])return _0x3f84ac(0x17b);switch(_0x25182c){case s[_0x3f84ac(0x7b)][_0x3f84ac(0x1d0)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case s[_0x3f84ac(0x7b)][_0x3f84ac(0xc0)]:case s[_0x3f84ac(0x7b)][_0x3f84ac(0xab)]:return _0x3f84ac(0x171);case s['MCPConnectionStatus'][_0x3f84ac(0x132)]:return _0x3f84ac(0x17b);default:return _0x3f84ac(0xa5);}},_0x3454d3=(_0x1d177b,_0x47e794)=>{var _0x47c968=_0x487c9a;if(_0x47e794===s['MCPConnectionError'][_0x47c968(0x151)])return _0x47c968(0x1d5);switch(_0x1d177b){case s[_0x47c968(0x7b)]['CONNECTED']:return _0x47c968(0x95);case s[_0x47c968(0x7b)]['CONNECTING']:case s[_0x47c968(0x7b)][_0x47c968(0xab)]:return _0x47c968(0x110);case s['MCPConnectionStatus'][_0x47c968(0x132)]:return _0x47c968(0x1d5);default:return _0x47c968(0x78);}},_0x1d271d=_0x10dca9=>{var _0x5c8519=_0x487c9a;switch(_0x10dca9){case s[_0x5c8519(0x7b)][_0x5c8519(0x1d0)]:return _0x2e22b6['t'](_0x5c8519(0x197));case s['MCPConnectionStatus'][_0x5c8519(0xc0)]:return _0x2e22b6['t'](_0x5c8519(0x7c));case s[_0x5c8519(0x7b)]['FAILED']:return _0x2e22b6['t']('mcpConfig.connectionStatus.failed');case s['MCPConnectionStatus']['RETRYING']:return _0x2e22b6['t'](_0x5c8519(0x13a));default:return _0x2e22b6['t'](_0x5c8519(0x14d));}},_0x5ee980=_0x2cdb2a=>{var _0x237905=_0x487c9a;switch(_0x2cdb2a){case s[_0x237905(0x1df)][_0x237905(0x151)]:return _0x2e22b6['t']('mcpConfig.connectionError.invalidApiKey');case s[_0x237905(0x1df)]['SESSION_ID_OCCUPIED']:return _0x2e22b6['t'](_0x237905(0x12c));case s[_0x237905(0x1df)][_0x237905(0xc8)]:return _0x2e22b6['t']('mcpConfig.connectionError.networkError');case s[_0x237905(0x1df)][_0x237905(0xc5)]:return _0x2e22b6['t'](_0x237905(0x16b));default:return'';}},_0x2d1d77=d[_0x487c9a(0x1f7)](()=>{var _0x389077=_0x487c9a;const _0x1b0c30={..._0xd8efac,'apiKey':_0x415167[_0x389077(0x138)](),'enableAuth':_0xbfa5a};_0x37a8e1(_0x1b0c30);},[_0xd8efac,_0x415167,_0xbfa5a,_0x37a8e1]),_0x56bf58=_0x415167[_0x487c9a(0x138)]()[_0x487c9a(0x1e0)]>0x0;return i[_0x487c9a(0x15b)](_0x487c9a(0x1f8),{'className':_0x487c9a(0x83),'children':[i[_0x487c9a(0x1cb)]('div',{'className':_0x487c9a(0x159),'children':i[_0x487c9a(0x15b)](_0x487c9a(0x1f8),{'className':_0x487c9a(0x1bc),'children':[i['jsx'](_0x487c9a(0x1f8),{'className':_0x487c9a(0x1da),'children':i[_0x487c9a(0x1cb)](_0x487c9a(0x74),{'className':'univer-text-white','children':'⚙'})}),i['jsx']('div',{'children':i[_0x487c9a(0x1cb)]('p',{'className':_0x487c9a(0x12b),'children':_0x2e22b6['t'](_0x487c9a(0xbf))})})]})}),i[_0x487c9a(0x15b)]('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[i[_0x487c9a(0x1cb)]('div',{'className':_0x487c9a(0xc2)+_0x4573a1(_0x6230b1,_0x583ce6)+_0x487c9a(0x1c3),'children':i['jsxs'](_0x487c9a(0x1f8),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i['jsx']('div',{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3454d3(_0x6230b1,_0x583ce6)+_0x487c9a(0x1c7)}),i['jsx']('span',{'className':'univer-text-sm\x20univer-font-medium','children':_0x1d271d(_0x6230b1)})]})}),_0x583ce6!==s[_0x487c9a(0x1df)][_0x487c9a(0x14c)]&&(_0x6230b1===s[_0x487c9a(0x7b)][_0x487c9a(0x132)]||_0x583ce6===s[_0x487c9a(0x1df)]['INVALID_API_KEY'])&&i[_0x487c9a(0x1cb)](_0x487c9a(0x1f8),{'className':_0x487c9a(0x17a),'children':i[_0x487c9a(0x15b)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[i[_0x487c9a(0x1cb)](_0x487c9a(0x74),{'className':_0x487c9a(0x1b8),'children':'⚠️'}),i[_0x487c9a(0x1cb)]('p',{'className':_0x487c9a(0x93),'children':_0x5ee980(_0x583ce6)})]})})]}),i[_0x487c9a(0x1cb)](_0x487c9a(0x1f8),{'className':_0x487c9a(0x174),'children':i['jsxs']('div',{'className':_0x487c9a(0x11f),'children':[i[_0x487c9a(0x15b)](_0x487c9a(0x1f8),{'className':_0x487c9a(0xf1),'children':[i['jsxs'](_0x487c9a(0x119),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[i[_0x487c9a(0x1cb)](_0x487c9a(0x74),{'children':'🔑'}),'\x20',_0x2e22b6['t'](_0x487c9a(0x1ac)),i[_0x487c9a(0x1cb)](_0x487c9a(0x74),{'className':_0x487c9a(0x1b0),'children':'*'}),_0x3aeaaf&&i[_0x487c9a(0x1cb)]('a',{'href':_0x487c9a(0x1ea),'onClick':()=>_0x2c4272(!0x0),'className':_0x487c9a(0xe8),'title':_0x2e22b6['t'](_0x487c9a(0x121)),'children':i['jsx'](H,{})})]}),i[_0x487c9a(0x1cb)](P[_0x487c9a(0xdc)],{'type':_0x487c9a(0x13b),'placeholder':_0x2e22b6['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x415167,'onChange':_0x582b93,'disabled':_0x2d2cf6,'autoComplete':_0x487c9a(0x11d)}),i['jsx']('p',{'className':_0x487c9a(0xed),'children':_0x2e22b6['t'](_0x487c9a(0x1a5))})]}),_0x3aeaaf&&_0x5029e6&&i[_0x487c9a(0x15b)](_0x487c9a(0x1f8),{'className':_0x487c9a(0x96),'children':[i[_0x487c9a(0x1cb)]('a',{'href':_0x487c9a(0x1ea),'onClick':()=>_0x2c4272(!0x1),'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-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','title':_0x487c9a(0x1d8),'children':i['jsx'](F,{})}),i['jsxs'](_0x487c9a(0x1f8),{'className':_0x487c9a(0xaf),'children':[i['jsx'](_0x487c9a(0x1f8),{'className':_0x487c9a(0x192),'children':i[_0x487c9a(0x1cb)]('span',{'className':'univer-text-blue-600','children':'🚀'})}),i[_0x487c9a(0x15b)](_0x487c9a(0x1f8),{'className':_0x487c9a(0x180),'children':[i[_0x487c9a(0x1cb)]('h4',{'className':_0x487c9a(0x117),'children':_0x2e22b6['t'](_0x487c9a(0x121))}),i[_0x487c9a(0x1cb)]('p',{'className':_0x487c9a(0x168),'children':_0x2e22b6['t'](_0x487c9a(0x105))}),i[_0x487c9a(0x1cb)](_0x487c9a(0x1f8),{'className':_0x487c9a(0x1e5),'children':_0x100b45&&i[_0x487c9a(0x15b)]('a',{'href':_0x550545,'target':_0x487c9a(0x94),'rel':_0x487c9a(0x97),'className':_0x487c9a(0x1d6),'children':[i['jsx']('span',{'children':'🤖'}),_0x2e22b6['t'](_0x487c9a(0xdf)),i[_0x487c9a(0x1cb)](_0x487c9a(0x74),{'className':_0x487c9a(0xde),'children':'↗'})]})}),i['jsxs'](_0x487c9a(0x1f8),{'className':_0x487c9a(0xf5),'children':['✨','\x20',_0x2e22b6['t'](_0x487c9a(0x1b2))]})]})]})]}),_0x1ac7ce['showDeveloperTools']&&i['jsxs'](_0x487c9a(0x1f8),{'className':_0x487c9a(0x131),'children':[i['jsxs']('h4',{'className':_0x487c9a(0x133),'children':[i[_0x487c9a(0x1cb)](_0x487c9a(0x74),{'children':'🔗'}),'\x20',_0x2e22b6['t'](_0x487c9a(0xa0))]}),i['jsxs'](_0x487c9a(0x1f8),{'className':_0x487c9a(0xef),'children':[i['jsxs'](_0x487c9a(0x1f8),{'className':_0x487c9a(0x1a1),'children':[i[_0x487c9a(0x1cb)]('p',{'className':_0x487c9a(0x146),'children':_0x2e22b6['t'](_0x487c9a(0xe4))}),i[_0x487c9a(0x15b)]('div',{'className':_0x487c9a(0xf1),'children':[i['jsx'](_0x487c9a(0x1f8),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x2e22b6['t'](_0x487c9a(0x90))}),i['jsxs']('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[i[_0x487c9a(0x15b)](_0x487c9a(0x1f8),{'className':_0x487c9a(0x155),'children':[i['jsx']('span',{'className':'univer-flex\x20univer-h-4\x20univer-w-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'}),_0x2e22b6['t']('mcpConfig.configStep1')]}),i[_0x487c9a(0x15b)](_0x487c9a(0x1f8),{'className':_0x487c9a(0x155),'children':[i[_0x487c9a(0x1cb)](_0x487c9a(0x74),{'className':_0x487c9a(0x198),'children':'2'}),_0x2e22b6['t']('mcpConfig.configStep2')]}),i['jsxs'](_0x487c9a(0x1f8),{'className':_0x487c9a(0x155),'children':[i[_0x487c9a(0x1cb)](_0x487c9a(0x74),{'className':_0x487c9a(0x198),'children':'3'}),_0x2e22b6['t'](_0x487c9a(0x1d7))]})]})]})]}),i[_0x487c9a(0x15b)](_0x487c9a(0x1f8),{'className':_0x487c9a(0xf1),'children':[i[_0x487c9a(0x1cb)](_0x487c9a(0x1f8),{'className':_0x487c9a(0x1bd),'children':_0x487c9a(0xa3)}),i[_0x487c9a(0x1cb)](_0x487c9a(0x1f8),{'className':_0x487c9a(0x139),'children':i[_0x487c9a(0x1cb)](_0x487c9a(0xf8),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':_0x487c9a(0x1f3)+_0x1d2602+_0x487c9a(0x165)+(_0x415167||'<API_KEY>')+_0x487c9a(0x179)})})]}),i[_0x487c9a(0x15b)](_0x487c9a(0x1f8),{'className':'univer-space-y-3','children':[i['jsx']('div',{'className':_0x487c9a(0x1bd),'children':_0x2e22b6['t'](_0x487c9a(0x1ba))}),i[_0x487c9a(0x15b)](_0x487c9a(0x1f8),{'className':_0x487c9a(0xf1),'children':[i[_0x487c9a(0x15b)](_0x487c9a(0x1f8),{'className':_0x487c9a(0x10b),'children':[i['jsx'](_0x487c9a(0x1f8),{'className':_0x487c9a(0x186)}),i['jsxs'](_0x487c9a(0x1f8),{'className':_0x487c9a(0x1d2),'children':[i[_0x487c9a(0x1cb)](_0x487c9a(0x1f8),{'className':_0x487c9a(0x177),'children':_0x487c9a(0x18c)}),i[_0x487c9a(0x1cb)](_0x487c9a(0x1f8),{'className':_0x487c9a(0xed),'children':_0x2e22b6['t'](_0x487c9a(0x15a))})]})]}),i[_0x487c9a(0x15b)](_0x487c9a(0x1f8),{'className':_0x487c9a(0x10b),'children':[i[_0x487c9a(0x1cb)](_0x487c9a(0x1f8),{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i['jsxs'](_0x487c9a(0x1f8),{'className':_0x487c9a(0x1d2),'children':[i[_0x487c9a(0x1cb)](_0x487c9a(0x1f8),{'className':_0x487c9a(0x177),'children':_0x487c9a(0x15d)}),i['jsx']('div',{'className':_0x487c9a(0xed),'children':_0x2e22b6['t'](_0x487c9a(0xc1))})]})]})]})]})]})]}),i[_0x487c9a(0x1cb)](P[_0x487c9a(0x1a3)],{'onClick':_0x2d1d77,'disabled':!_0x56bf58||_0x2d2cf6,'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':_0x2d2cf6?i[_0x487c9a(0x15b)](_0x487c9a(0x74),{'className':_0x487c9a(0x155),'children':[i[_0x487c9a(0x1cb)](_0x487c9a(0x74),{'children':'⟲'}),_0x2e22b6['t'](_0x487c9a(0x14a))]}):i[_0x487c9a(0x15b)]('span',{'className':_0x487c9a(0x155),'children':[i[_0x487c9a(0x1cb)](V,{}),_0x2e22b6['t']('mcpConfig.save')]})}),i[_0x487c9a(0x1cb)](_0x487c9a(0x1f8),{'className':_0x487c9a(0x183),'children':i[_0x487c9a(0x15b)](_0x487c9a(0x1f8),{'className':'univer-flex\x20univer-gap-3','children':[i[_0x487c9a(0x1cb)](_0x487c9a(0x74),{'className':_0x487c9a(0x147),'children':'💡'}),i[_0x487c9a(0x15b)]('div',{'className':_0x487c9a(0x18f),'children':[i[_0x487c9a(0x1cb)](_0x487c9a(0x1f8),{'className':'univer-font-medium','children':_0x487c9a(0x15e)}),i[_0x487c9a(0x15b)](_0x487c9a(0x1f8),{'children':['•',_0x2e22b6['t'](_0x487c9a(0x118))]}),i['jsxs']('div',{'children':['•',_0x2e22b6['t']('mcpConfig.note2')]})]})]})})]})})]});}const D=_0xe7d5d1(0xf7),G={'showDeveloperTools':!0x1};var Pe=Object[_0xe7d5d1(0x1fc)],Se=(_0x31bc1a,_0x2655a1,_0x15e3d7,_0x10c3a0)=>{var _0x2751c2=_0xe7d5d1;for(var _0x5f2515=_0x10c3a0>0x1?void 0x0:_0x10c3a0?Pe(_0x2655a1,_0x15e3d7):_0x2655a1,_0x202723=_0x31bc1a[_0x2751c2(0x1e0)]-0x1,_0x2d1d3f;_0x202723>=0x0;_0x202723--)(_0x2d1d3f=_0x31bc1a[_0x202723])&&(_0x5f2515=_0x2d1d3f(_0x5f2515)||_0x5f2515);return _0x5f2515;},f=(_0x7b0c30,_0x2fccb9)=>(_0x4041e6,_0x308b31)=>_0x2fccb9(_0x4041e6,_0x308b31,_0x7b0c30);const A=_0xe7d5d1(0xe2),O=_0xe7d5d1(0xf6);exports[_0xe7d5d1(0x129)]=class extends u['Disposable']{constructor(_0x1e8191,_0x38378b,_0x4acf3a,_0x5418b5,_0x347790,_0x8cb619,_0x37fb74,_0x59e58e,_0xe6ca3e,_0x29cb11){var _0x19da2e=_0xe7d5d1;super(),y(this,_0x19da2e(0x106),new M[(_0x19da2e(0x1a8))](!0x1)),y(this,_0x19da2e(0x8f),new M['BehaviorSubject']({})),y(this,_0x19da2e(0xce),new M[(_0x19da2e(0x1a8))]({})),y(this,_0x19da2e(0x1a6),new M['BehaviorSubject']('')),y(this,_0x19da2e(0x10d),async _0x59a7eb=>{var _0xa59f25=_0x19da2e,_0x2c72ba,_0x1912ff;this[_0xa59f25(0x106)][_0xa59f25(0x1f0)](!0x0);try{const _0x1b886d=await this[_0xa59f25(0x104)](_0x59a7eb);if(!_0x1b886d[_0xa59f25(0x1c8)]){this[_0xa59f25(0xfc)][_0xa59f25(0x18a)]({'type':P[_0xa59f25(0x1ec)][_0xa59f25(0xad)],'content':_0x1b886d[_0xa59f25(0xb2)]||this['_localeService']['t'](_0xa59f25(0x1be))});return;}_0x59a7eb[_0xa59f25(0x7a)]?await this[_0xa59f25(0xd5)]['setItem'](A,_0x59a7eb[_0xa59f25(0x7a)][_0xa59f25(0x138)]()):await this[_0xa59f25(0xd5)][_0xa59f25(0x9f)](A),this[_0xa59f25(0x1a6)]['next'](((_0x2c72ba=_0x59a7eb['apiKey'])==null?void 0x0:_0x2c72ba[_0xa59f25(0x138)]())||''),this['_mcpConnectionController'][_0xa59f25(0x16d)]({'Authorization':'Bearer\x20'+((_0x1912ff=_0x59a7eb[_0xa59f25(0x7a)])==null?void 0x0:_0x1912ff[_0xa59f25(0x138)]())}),this[_0xa59f25(0xfc)][_0xa59f25(0x18a)]({'type':P['MessageType'][_0xa59f25(0x1a9)],'content':this[_0xa59f25(0x12a)]['t'](_0xa59f25(0x18b))}),setTimeout(()=>{this['_dialogService']['close'](O);},0x320);}catch(_0x5b140d){this[_0xa59f25(0xb6)][_0xa59f25(0x13f)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x5b140d),this[_0xa59f25(0xfc)][_0xa59f25(0x18a)]({'type':P[_0xa59f25(0x1ec)][_0xa59f25(0xad)],'content':this['_localeService']['t'](_0xa59f25(0x1c1))});}finally{this['_loading$'][_0xa59f25(0x1f0)](!0x1);}}),(this[_0x19da2e(0x1eb)]=_0x1e8191,this['_uiPartsService']=_0x38378b,this['_configService']=_0x4acf3a,this[_0x19da2e(0xd5)]=_0x5418b5,this[_0x19da2e(0x172)]=_0x347790,this[_0x19da2e(0xfc)]=_0x8cb619,this[_0x19da2e(0x1c6)]=_0x37fb74,this[_0x19da2e(0x12a)]=_0x59e58e,this[_0x19da2e(0xb6)]=_0xe6ca3e,this['_mcpConnectionController']=_0x29cb11,this[_0x19da2e(0x7f)](),this[_0x19da2e(0x190)](),this['_registerComponent']());}[_0xe7d5d1(0x202)](){var _0x392fc3=_0xe7d5d1;this[_0x392fc3(0x172)][_0x392fc3(0x163)]({'id':O,'title':{'title':this[_0x392fc3(0x12a)]['t'](_0x392fc3(0x184))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x8d8cc9=_0x392fc3;this[_0x8d8cc9(0x172)][_0x8d8cc9(0xda)](O);}});}['getCurrentConfig'](){var _0x579a0e=_0xe7d5d1;return this[_0x579a0e(0x8f)][_0x579a0e(0x1e7)];}[_0xe7d5d1(0x1d9)](){var _0x245064=_0xe7d5d1;this['disposeWithMe'](this[_0x245064(0x1c6)]['register'](_0x245064(0x204),this[_0x245064(0x1e9)]()));}['_createConfigPanelComponent'](){var _0x3ac370=_0xe7d5d1;return v[_0x3ac370(0x1e1)](()=>{var _0x219256=_0x3ac370,_0x341fce,_0x40e768,_0x4fe713;return i[_0x219256(0x1cb)](W,{'config':this[_0x219256(0xce)]['value'],'mcpCoreConfig':this[_0x219256(0x8f)][_0x219256(0x1e7)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x219256(0x10d)],'loading':this[_0x219256(0x106)][_0x219256(0x1e7)],'connectionStatus$':(_0x341fce=this[_0x219256(0x11e)])==null?void 0x0:_0x341fce[_0x219256(0x1ff)],'connectionError$':(_0x40e768=this['_mcpConnectionController'])==null?void 0x0:_0x40e768[_0x219256(0x17e)],'currentSessionId$':(_0x4fe713=this[_0x219256(0x11e)])==null?void 0x0:_0x4fe713['sessionId$']});},this[_0x3ac370(0x1eb)]);}['_initConfigSync'](){var _0x1b9aeb=_0xe7d5d1;this[_0x1b9aeb(0x13e)](this['_configService'][_0x1b9aeb(0x80)](s[_0x1b9aeb(0xb7)])[_0x1b9aeb(0xb1)](_0x55cb29=>{var _0x153a86=_0x1b9aeb;this[_0x153a86(0x8f)][_0x153a86(0x1f0)](_0x55cb29||{});}));const _0x4c3a66=this['_configService'][_0x1b9aeb(0xe6)](s[_0x1b9aeb(0xb7)]);this['_mcpCoreConfig$'][_0x1b9aeb(0x1f0)](_0x4c3a66||{}),this[_0x1b9aeb(0x13e)](this[_0x1b9aeb(0xd9)][_0x1b9aeb(0x80)](D)['subscribe'](_0x39ae2f=>{this['_config$']['next'](_0x39ae2f||{});}));const _0x49dd8e=this[_0x1b9aeb(0xd9)][_0x1b9aeb(0xe6)](D);this[_0x1b9aeb(0xce)]['next'](_0x49dd8e||{});}async[_0xe7d5d1(0x190)](){var _0x1db789=_0xe7d5d1;const _0x348714=await this[_0x1db789(0xd5)][_0x1db789(0xa2)](A);_0x348714&&(this[_0x1db789(0x11e)][_0x1db789(0x16d)]({'Authorization':_0x1db789(0xeb)+_0x348714}),this[_0x1db789(0x1a6)][_0x1db789(0x1f0)](_0x348714));}async[_0xe7d5d1(0x104)](_0x3ac61b){var _0x1a75b4=_0xe7d5d1;if(!_0x3ac61b[_0x1a75b4(0x7a)]||_0x3ac61b[_0x1a75b4(0x7a)]['trim']()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x1a75b4(0x12a)]['t'](_0x1a75b4(0x81))};if(_0x3ac61b[_0x1a75b4(0x7a)]['trim']()[_0x1a75b4(0x1e0)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x1a75b4(0x12a)]['t'](_0x1a75b4(0x1fd))};try{const _0x23c88d=await this[_0x1a75b4(0x1eb)][_0x1a75b4(0x1fb)](s['MCPConnectionController'])[_0x1a75b4(0x1b3)](_0x3ac61b[_0x1a75b4(0x7a)]['trim']());return _0x23c88d[_0x1a75b4(0x1c8)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x23c88d[_0x1a75b4(0x13f)]||this[_0x1a75b4(0x12a)]['t'](_0x1a75b4(0x1c2))};}catch(_0x20ddd3){return console['warn'](_0x1a75b4(0x128),_0x20ddd3),{'isValid':!0x0};}}},exports[_0xe7d5d1(0x129)]=Se([f(0x0,u[_0xe7d5d1(0x1d4)](u[_0xe7d5d1(0x11b)])),f(0x1,v[_0xe7d5d1(0x76)]),f(0x2,u['IConfigService']),f(0x3,u[_0xe7d5d1(0x115)]),f(0x4,v['IDialogService']),f(0x5,v[_0xe7d5d1(0xfa)]),f(0x6,u['Inject'](v[_0xe7d5d1(0x1d1)])),f(0x7,u[_0xe7d5d1(0x1d4)](u[_0xe7d5d1(0x1a2)])),f(0x8,u[_0xe7d5d1(0x173)]),f(0x9,u[_0xe7d5d1(0x1d4)](s[_0xe7d5d1(0x1d3)]))],exports[_0xe7d5d1(0x129)]);const N={'id':_0xe7d5d1(0x169),'type':u['CommandType']['COMMAND'],'handler':async(_0xd229c3,_0x260967)=>(_0xd229c3[_0xe7d5d1(0x1fb)](exports[_0xe7d5d1(0x129)])[_0xe7d5d1(0x202)](),!0x0)};function Z(_0x487483,_0x53b8e8){var _0x43df07=_0xe7d5d1;switch(_0x487483){case s[_0x43df07(0x7b)][_0x43df07(0x1f5)]:return _0x43df07(0xa4);case s['MCPConnectionStatus'][_0x43df07(0xc0)]:return _0x43df07(0x101);case s[_0x43df07(0x7b)][_0x43df07(0x1d0)]:return _0x43df07(0xc9);case s['MCPConnectionStatus'][_0x43df07(0x132)]:switch(_0x53b8e8){case s[_0x43df07(0x1df)]['INVALID_API_KEY']:return _0x43df07(0x1e2);case s[_0x43df07(0x1df)][_0x43df07(0x141)]:return _0x43df07(0x11c);case s[_0x43df07(0x1df)]['NETWORK_ERROR']:return _0x43df07(0xf4);case s['MCPConnectionError'][_0x43df07(0xc5)]:return'mcpStatus.maxRetriesExceeded';default:return _0x43df07(0x145);}case s['MCPConnectionStatus'][_0x43df07(0xab)]:return'mcpStatus.retrying';default:return _0x43df07(0x162);}}function ye(_0x2d6adf,_0x508d58,_0x3cd7b0){var _0x7eabcd=_0xe7d5d1;const _0xa6e498=Z(_0x2d6adf,_0x508d58),_0x2aa6a0=_0x3cd7b0['t'](_0xa6e498);return _0x2d6adf===s[_0x7eabcd(0x7b)][_0x7eabcd(0x1f5)]&&_0x508d58===s[_0x7eabcd(0x1df)][_0x7eabcd(0x151)]?_0x2aa6a0+_0x7eabcd(0xfb)+_0x3cd7b0['t'](_0x7eabcd(0x12e)):_0x2d6adf===s[_0x7eabcd(0x7b)][_0x7eabcd(0x1d0)]?''+_0x2aa6a0:_0x2d6adf===s[_0x7eabcd(0x7b)][_0x7eabcd(0x1f5)]||_0x2d6adf===s[_0x7eabcd(0x7b)]['FAILED']?_0x2aa6a0+_0x7eabcd(0xfb)+_0x3cd7b0['t'](_0x7eabcd(0x142)):_0x2aa6a0;}function Ie(_0x15eefd){var _0x1117c3=_0xe7d5d1;switch(_0x15eefd){case s['MCPConnectionStatus'][_0x1117c3(0x1d0)]:return'univer-text-green-500';case s['MCPConnectionStatus'][_0x1117c3(0xc0)]:case s[_0x1117c3(0x7b)]['RETRYING']:return _0x1117c3(0x1ae);case s[_0x1117c3(0x7b)][_0x1117c3(0x132)]:case s['MCPConnectionStatus'][_0x1117c3(0x1f5)]:return'univer-text-red-500';default:return _0x1117c3(0x12f);}}function X(_0x3a3c99){var _0x19ac68=_0xe7d5d1;const {status$:_0x3f55f9,error$:_0x4acd16,onConfigure:_0x11cbe0}=_0x3a3c99,_0x46cff6=v['useObservable'](_0x3f55f9,s[_0x19ac68(0x7b)]['DISCONNECTED']),_0x1b029c=v['useObservable'](_0x4acd16,s['MCPConnectionError'][_0x19ac68(0x14c)]),_0x854400=v['useDependency'](u[_0x19ac68(0x1a2)]),_0x553612=_0x46cff6===s[_0x19ac68(0x7b)][_0x19ac68(0x1d0)],_0x476d7d=_0x46cff6===s[_0x19ac68(0x7b)][_0x19ac68(0xc0)]||_0x46cff6===s['MCPConnectionStatus'][_0x19ac68(0xab)],_0x2ff957=_0x854400['t'](Z(_0x46cff6,_0x1b029c)),_0x488c98=ye(_0x46cff6,_0x1b029c,_0x854400),_0x4d630e=Ie(_0x46cff6),_0x248ccd=_0x553612?i[_0x19ac68(0x1cb)](z,{}):i[_0x19ac68(0x1cb)](q,{}),_0x2c89c9=d['useCallback'](()=>{_0x11cbe0&&_0x11cbe0();},[_0x553612,_0x476d7d,_0x11cbe0]);function _0x288f13(){var _0x433d04=_0x19ac68;return i[_0x433d04(0x15b)](_0x433d04(0x1f8),{'className':P[_0x433d04(0xb0)](_0x433d04(0x103),_0x11cbe0&&'hover:univer-opacity-80'),'onClick':_0x11cbe0?_0x2c89c9:void 0x0,'children':[i[_0x433d04(0x1cb)]('div',{'className':P['clsx']('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x4d630e),'children':_0x248ccd}),i[_0x433d04(0x1cb)](_0x433d04(0x1f8),{'className':_0x433d04(0xb5),'children':_0x2ff957})]});}return i[_0x19ac68(0x1cb)](P[_0x19ac68(0x201)],{'title':_0x488c98,'placement':'bottom','children':_0x288f13()});}var _e=Object[_0xe7d5d1(0x1fc)],Me=(_0x41e2f1,_0x4587cf,_0x4b3c9c,_0x1a1254)=>{var _0x42d297=_0xe7d5d1;for(var _0x2764b5=_0x1a1254>0x1?void 0x0:_0x1a1254?_e(_0x4587cf,_0x4b3c9c):_0x4587cf,_0x2ecb93=_0x41e2f1[_0x42d297(0x1e0)]-0x1,_0x8b3179;_0x2ecb93>=0x0;_0x2ecb93--)(_0x8b3179=_0x41e2f1[_0x2ecb93])&&(_0x2764b5=_0x8b3179(_0x2764b5)||_0x2764b5);return _0x2764b5;},k=(_0x3d8f61,_0x485095)=>(_0x4f3ac6,_0x411bc8)=>_0x485095(_0x4f3ac6,_0x411bc8,_0x3d8f61);exports[_0xe7d5d1(0x187)]=class extends u['Disposable']{constructor(_0x2baadb,_0x45ff3f,_0x28d3a9){var _0x113470=_0xe7d5d1;super(),this['_injector']=_0x2baadb,this['_connectionController']=_0x45ff3f,this['_uiPartsService']=_0x28d3a9,this[_0x113470(0x1e6)][_0x113470(0x8e)]=!0x1,this[_0x113470(0x1ab)]();}[_0xe7d5d1(0x1ab)](){var _0x5b6409=_0xe7d5d1;this['disposeWithMe'](this[_0x5b6409(0xf2)][_0x5b6409(0x1fe)](v[_0x5b6409(0xa8)][_0x5b6409(0xf9)],()=>v['connectInjector'](Ne({'status$':this[_0x5b6409(0x1e6)]['connectionStatus$'],'error$':this[_0x5b6409(0x1e6)]['connectionError$'],'onConfigure':()=>this[_0x5b6409(0xe3)]()}),this[_0x5b6409(0x1eb)])));}[_0xe7d5d1(0xe3)](){var _0x176dd6=_0xe7d5d1;this[_0x176dd6(0x1eb)][_0x176dd6(0x1fb)](exports[_0x176dd6(0x129)])[_0x176dd6(0x202)]();}},exports[_0xe7d5d1(0x187)]=Me([k(0x0,u[_0xe7d5d1(0x1d4)](u['Injector'])),k(0x1,u[_0xe7d5d1(0x1d4)](s['MCPConnectionController'])),k(0x2,v['IUIPartsService'])],exports['MCPConnectionUIController']);function Ne(_0x5d306b){const {status$:_0x3b12ff,error$:_0x3e822b,onConfigure:_0x1adea9}=_0x5d306b;return function(){var _0x611183=_0xa9ca;return i[_0x611183(0x1cb)](X,{'status$':_0x3b12ff,'error$':_0x3e822b,'onConfigure':_0x1adea9});};}function be(_0x150124){var _0x5ea0f9=_0xe7d5d1;return{'id':N['id'],'type':v['MenuItemType'][_0x5ea0f9(0x144)],'icon':_0x5ea0f9(0x16a),'title':_0x5ea0f9(0x184),'tooltip':'mcpConfig.title'};}const je={[v[_0xe7d5d1(0xec)][_0xe7d5d1(0x199)]]:{[N['id']]:{'order':0xa,'menuItemFactory':be}}};var Ee=Object[_0xe7d5d1(0x1fc)],we=(_0x20c064,_0x59799c,_0x232ffb,_0x53eb49)=>{var _0x451aee=_0xe7d5d1;for(var _0x3e4a51=_0x53eb49>0x1?void 0x0:_0x53eb49?Ee(_0x59799c,_0x232ffb):_0x59799c,_0x427fde=_0x20c064[_0x451aee(0x1e0)]-0x1,_0x5d0cbd;_0x427fde>=0x0;_0x427fde--)(_0x5d0cbd=_0x20c064[_0x427fde])&&(_0x3e4a51=_0x5d0cbd(_0x3e4a51)||_0x3e4a51);return _0x3e4a51;},Y=(_0x39169a,_0x431ead)=>(_0x545f2e,_0x292af6)=>_0x431ead(_0x545f2e,_0x292af6,_0x39169a);exports[_0xe7d5d1(0x164)]=class extends u[_0xe7d5d1(0xf0)]{constructor(_0x49fdb5,_0x5ecfd0){var _0x18df27=_0xe7d5d1;super(),this[_0x18df27(0x1b4)]=_0x49fdb5,this[_0x18df27(0x1b9)]=_0x5ecfd0,this[_0x18df27(0x1f4)](),this[_0x18df27(0xa9)]();}[_0xe7d5d1(0x1f4)](){var _0x3f4f8d=_0xe7d5d1;[N][_0x3f4f8d(0x207)](_0x2bd325=>{var _0x13a2d1=_0x3f4f8d;this[_0x13a2d1(0x13e)](this[_0x13a2d1(0x1b4)][_0x13a2d1(0x149)](_0x2bd325));});}[_0xe7d5d1(0xa9)](){var _0x5bd6df=_0xe7d5d1;this[_0x5bd6df(0x1b9)][_0x5bd6df(0xd4)](je);}},exports[_0xe7d5d1(0x164)]=we([Y(0x0,u[_0xe7d5d1(0x1bb)]),Y(0x1,v[_0xe7d5d1(0x19d)])],exports['MCPUIMenuController']);const Ae={'mcpStatus':{'disconnected':_0xe7d5d1(0x10a),'connecting':_0xe7d5d1(0x1b6),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0xe7d5d1(0x1bf),'missingApiKey':_0xe7d5d1(0x17c),'invalidApiKey':_0xe7d5d1(0x10e),'sessionOccupied':_0xe7d5d1(0x89),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0xe7d5d1(0x10c),'clickToConnect':_0xe7d5d1(0x1f6),'clickToConfigure':_0xe7d5d1(0xcf)},'mcpConfig':{'title':_0xe7d5d1(0xa3),'description':_0xe7d5d1(0x158),'apiKey':_0xe7d5d1(0x1dd),'apiKeyPlaceholder':_0xe7d5d1(0x11a),'apiKeyHint':_0xe7d5d1(0x8a),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0xe7d5d1(0x98),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0xe7d5d1(0x196),'configInstructions':_0xe7d5d1(0x167),'configStepTitle':_0xe7d5d1(0x203),'configStep1':_0xe7d5d1(0xff),'configStep2':_0xe7d5d1(0x100),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0xe7d5d1(0x14b),'sessionIdDescription':_0xe7d5d1(0x143),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0xe7d5d1(0x1c9),'save':_0xe7d5d1(0x125),'saving':_0xe7d5d1(0xfe),'note1':_0xe7d5d1(0x1b1),'note2':_0xe7d5d1(0x124),'configSaved':_0xe7d5d1(0x1e3),'configError':_0xe7d5d1(0x130),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0xe7d5d1(0x13d),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0xe7d5d1(0xd7)},'validation':{'apiKeyRequired':_0xe7d5d1(0x137),'apiKeyTooShort':_0xe7d5d1(0x185),'invalidConfig':_0xe7d5d1(0x116),'invalidApiKey':_0xe7d5d1(0x150)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0xe7d5d1(0x1de),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0xe7d5d1(0xac)},'connectionError':{'missingApiKey':_0xe7d5d1(0x9d),'invalidApiKey':_0xe7d5d1(0x193),'sessionOccupied':_0xe7d5d1(0x153),'networkError':_0xe7d5d1(0x126),'maxRetriesExceeded':_0xe7d5d1(0xa7)}}},Oe={'mcpStatus':{'disconnected':_0xe7d5d1(0x16e),'connecting':_0xe7d5d1(0xaa),'connected':'MCP\x20已连接','failed':'MCP\x20连接失败','retrying':_0xe7d5d1(0x1cd),'unknown':_0xe7d5d1(0xd0),'missingApiKey':_0xe7d5d1(0x73),'invalidApiKey':_0xe7d5d1(0x136),'sessionOccupied':_0xe7d5d1(0x77),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0xe7d5d1(0x99),'clickToConnect':_0xe7d5d1(0xb8),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0xe7d5d1(0xc3),'description':_0xe7d5d1(0x108),'apiKey':_0xe7d5d1(0x91),'apiKeyPlaceholder':_0xe7d5d1(0x19b),'apiKeyHint':_0xe7d5d1(0xba),'enableAuth':_0xe7d5d1(0x19f),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0xe7d5d1(0x182),'mcpClientConfig':_0xe7d5d1(0x182),'configInstructions':_0xe7d5d1(0x84),'configStepTitle':_0xe7d5d1(0x85),'configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':'会话ID','sessionIdDescription':_0xe7d5d1(0x16f),'authorizationDescription':_0xe7d5d1(0xc7),'configParameters':_0xe7d5d1(0x181),'maxRetries':_0xe7d5d1(0xd1),'save':'保存配置','saving':_0xe7d5d1(0x112),'note1':_0xe7d5d1(0xd2),'note2':_0xe7d5d1(0x1c4),'configSaved':_0xe7d5d1(0x82),'configError':_0xe7d5d1(0x7e),'apiApplyInfo':{'title':_0xe7d5d1(0x8d),'description':_0xe7d5d1(0x8c),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0xe7d5d1(0x9c)},'validation':{'apiKeyRequired':_0xe7d5d1(0xae),'apiKeyTooShort':_0xe7d5d1(0x122),'invalidConfig':_0xe7d5d1(0x1ed),'invalidApiKey':_0xe7d5d1(0xb9)},'connectionStatus':{'disconnected':_0xe7d5d1(0xea),'connecting':'连接中...','connected':_0xe7d5d1(0xca),'failed':_0xe7d5d1(0xe7),'retrying':_0xe7d5d1(0x140)},'connectionError':{'missingApiKey':_0xe7d5d1(0x75),'invalidApiKey':_0xe7d5d1(0x86),'sessionOccupied':_0xe7d5d1(0x19a),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0xe7d5d1(0x1e8)}}};var ke=Object[_0xe7d5d1(0x134)],De=Object['getOwnPropertyDescriptor'],Ke=(_0x6adea9,_0x35ae0d,_0x22d770)=>_0x35ae0d in _0x6adea9?ke(_0x6adea9,_0x35ae0d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22d770}):_0x6adea9[_0x35ae0d]=_0x22d770,Ue=(_0x123de4,_0x57287b,_0x17c00d,_0x1d0748)=>{for(var _0x4e96ac=_0x1d0748>0x1?void 0x0:_0x1d0748?De(_0x57287b,_0x17c00d):_0x57287b,_0x46ac27=_0x123de4['length']-0x1,_0x33b375;_0x46ac27>=0x0;_0x46ac27--)(_0x33b375=_0x123de4[_0x46ac27])&&(_0x4e96ac=_0x33b375(_0x4e96ac)||_0x4e96ac);return _0x4e96ac;},_=(_0x1be9a1,_0x185cbe)=>(_0x58e9eb,_0x5a15d6)=>_0x185cbe(_0x58e9eb,_0x5a15d6,_0x1be9a1),Te=(_0xa0fc7c,_0x5378f6,_0x1f63d0)=>Ke(_0xa0fc7c,_0x5378f6+'',_0x1f63d0);exports[_0xe7d5d1(0x87)]=class extends u['Plugin']{constructor(_0x3dbc8a=G,_0x5057cb,_0x937951,_0x383386,_0x40c283,_0xe493be){var _0x29863c=_0xe7d5d1;super(),this[_0x29863c(0x1cc)]=_0x3dbc8a,this[_0x29863c(0x1eb)]=_0x5057cb,this['_configService']=_0x937951,this[_0x29863c(0xf2)]=_0x383386,this[_0x29863c(0xd5)]=_0x40c283,this[_0x29863c(0x12a)]=_0xe493be;const {..._0x2f1d6d}=u[_0x29863c(0x148)]({},G,this['_config']);this['_configService']['setConfig'](D,_0x2f1d6d);}async[_0xe7d5d1(0x1e4)](){var _0x2aa56b=_0xe7d5d1;const _0x4f454f=[[exports[_0x2aa56b(0x187)]],[exports['MCPConfigUIController']],[exports[_0x2aa56b(0x164)]]];this[_0x2aa56b(0x1eb)]['has'](w[_0x2aa56b(0xa1)])||_0x4f454f[_0x2aa56b(0x79)]([w[_0x2aa56b(0xa1)],{'useClass':w['WebSocketService']}]),_0x4f454f[_0x2aa56b(0x207)](_0x2b9815=>this[_0x2aa56b(0x1eb)]['add'](_0x2b9815)),this[_0x2aa56b(0x1eb)][_0x2aa56b(0x1fb)](exports[_0x2aa56b(0x187)]),this[_0x2aa56b(0x1eb)][_0x2aa56b(0x1fb)](exports[_0x2aa56b(0x129)]),this['_injector']['get'](exports[_0x2aa56b(0x164)]);}},Te(exports['UniverMCPUIPlugin'],'pluginName',_0xe7d5d1(0x1a7)),exports[_0xe7d5d1(0x87)]=Ue([u[_0xe7d5d1(0x17f)](s[_0xe7d5d1(0x114)]),_(0x1,u[_0xe7d5d1(0x1d4)](u[_0xe7d5d1(0x11b)])),_(0x2,u[_0xe7d5d1(0xe9)]),_(0x3,v['IUIPartsService']),_(0x4,u[_0xe7d5d1(0x115)]),_(0x5,u[_0xe7d5d1(0x1d4)](u[_0xe7d5d1(0x1a2)]))],exports[_0xe7d5d1(0x87)]),exports['MCPConfigPanel']=W,exports[_0xe7d5d1(0x18e)]=X,exports[_0xe7d5d1(0x154)]=N,exports['enUS']=Ae,exports['zhCN']=Oe;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x45962b=_0x41a1;(function(_0x4ddd73,_0x2de594){const _0x4ef40a=_0x41a1,_0x374dda=_0x4ddd73();while(!![]){try{const _0x285a27=parseInt(_0x4ef40a(0x21c))/0x1*(parseInt(_0x4ef40a(0x216))/0x2)+-parseInt(_0x4ef40a(0x222))/0x3*(-parseInt(_0x4ef40a(0x210))/0x4)+-parseInt(_0x4ef40a(0x1fb))/0x5*(-parseInt(_0x4ef40a(0x1ea))/0x6)+-parseInt(_0x4ef40a(0x212))/0x7+-parseInt(_0x4ef40a(0x1f8))/0x8+-parseInt(_0x4ef40a(0x21b))/0x9*(-parseInt(_0x4ef40a(0x20d))/0xa)+parseInt(_0x4ef40a(0x21d))/0xb*(-parseInt(_0x4ef40a(0x1f7))/0xc);if(_0x285a27===_0x2de594)break;else _0x374dda['push'](_0x374dda['shift']());}catch(_0xd3c424){_0x374dda['push'](_0x374dda['shift']());}}}(_0x42cb,0x36802));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x45962b(0x219),'connected':_0x45962b(0x21a),'failed':'MCP\x20Connection\x20Failed','retrying':_0x45962b(0x20f),'unknown':_0x45962b(0x214),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x45962b(0x211),'sessionOccupied':_0x45962b(0x204),'networkError':_0x45962b(0x1fc),'maxRetriesExceeded':_0x45962b(0x217),'clickToConnect':_0x45962b(0x221),'clickToConfigure':_0x45962b(0x1ff)},'mcpConfig':{'title':_0x45962b(0x1f3),'description':_0x45962b(0x218),'apiKey':_0x45962b(0x1ee),'apiKeyPlaceholder':_0x45962b(0x1f2),'apiKeyHint':_0x45962b(0x1f1),'enableAuth':_0x45962b(0x20c),'enableAuthHint':_0x45962b(0x21f),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x45962b(0x205),'configInstructions':_0x45962b(0x200),'configStepTitle':_0x45962b(0x1f0),'configStep1':_0x45962b(0x215),'configStep2':_0x45962b(0x213),'configStep3':_0x45962b(0x1f6),'sessionId':_0x45962b(0x1eb),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x45962b(0x20a),'configParameters':_0x45962b(0x1e9),'maxRetries':_0x45962b(0x223),'save':_0x45962b(0x1fa),'saving':_0x45962b(0x20b),'note1':_0x45962b(0x1f5),'note2':_0x45962b(0x1f4),'configSaved':_0x45962b(0x1f9),'configError':_0x45962b(0x220),'apiApplyInfo':{'title':_0x45962b(0x1fe),'description':_0x45962b(0x1ef),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x45962b(0x208)},'validation':{'apiKeyRequired':_0x45962b(0x1fd),'apiKeyTooShort':_0x45962b(0x1ec),'invalidConfig':_0x45962b(0x21e),'invalidApiKey':_0x45962b(0x203)},'connectionStatus':{'disconnected':_0x45962b(0x20e),'connecting':_0x45962b(0x209),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x45962b(0x207)},'connectionError':{'missingApiKey':_0x45962b(0x201),'invalidApiKey':_0x45962b(0x1ed),'sessionOccupied':_0x45962b(0x206),'networkError':_0x45962b(0x202),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x41a1(_0x4d8973,_0x41df8e){const _0x42cb3c=_0x42cb();return _0x41a1=function(_0x41a1f6,_0x83b573){_0x41a1f6=_0x41a1f6-0x1e9;let _0x20c2b3=_0x42cb3c[_0x41a1f6];return _0x20c2b3;},_0x41a1(_0x4d8973,_0x41df8e);}function _0x42cb(){const _0x5ef1a0=['Saving...','Enable\x20Authentication','450SXVeAx','Disconnected','MCP\x20Retrying...','277176WEcNUF','MCP:\x20Invalid\x20API\x20Key','3009468OPLUfh','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Unknown\x20Status','Copy\x20the\x20JSON\x20configuration\x20below','2764MrOxor','MCP:\x20Max\x20Retries\x20Exceeded','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connecting...','MCP\x20Connected','64053JEwWaP','302RnbQVc','11KYzyjs','Invalid\x20configuration','Enable\x20authentication\x20for\x20secure\x20connections','Failed\x20to\x20save\x20configuration','Click\x20to\x20connect\x20MCP','18QQmffr','Max\x20Retries','Configuration\x20Parameters:','6Ttorbz','Session\x20ID','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','API\x20Key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20Steps:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enter\x20your\x20API\x20key','MCP\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','7154844jssSBW','2359016quxWFd','Configuration\x20saved\x20successfully','Save\x20Configuration','1954395HksfDm','MCP:\x20Network\x20Error','API\x20key\x20is\x20required','What\x20is\x20API\x20Key?','Click\x20to\x20configure\x20MCP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20key\x20is\x20required\x20to\x20connect','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Session\x20Occupied','MCP\x20Client\x20Configuration','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','Connecting...','API\x20key\x20with\x20Bearer\x20prefix.'];_0x42cb=function(){return _0x5ef1a0;};return _0x42cb();}module['exports']=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x4c62(_0x858b4e,_0x37fbad){const _0x5ec42c=_0x5ec4();return _0x4c62=function(_0x4c6278,_0x5ac0c6){_0x4c6278=_0x4c6278-0x7e;let _0x21de36=_0x5ec42c[_0x4c6278];return _0x21de36;},_0x4c62(_0x858b4e,_0x37fbad);}const _0x496002=_0x4c62;(function(_0x329c88,_0x4779bc){const _0x87782=_0x4c62,_0x37737e=_0x329c88();while(!![]){try{const _0x436404=parseInt(_0x87782(0x9c))/0x1*(-parseInt(_0x87782(0x88))/0x2)+-parseInt(_0x87782(0x95))/0x3*(parseInt(_0x87782(0x7f))/0x4)+parseInt(_0x87782(0x8e))/0x5*(parseInt(_0x87782(0x96))/0x6)+parseInt(_0x87782(0xa4))/0x7*(-parseInt(_0x87782(0xa5))/0x8)+parseInt(_0x87782(0x98))/0x9+parseInt(_0x87782(0x9d))/0xa+-parseInt(_0x87782(0x89))/0xb;if(_0x436404===_0x4779bc)break;else _0x37737e['push'](_0x37737e['shift']());}catch(_0x539136){_0x37737e['push'](_0x37737e['shift']());}}}(_0x5ec4,0xe4256));const e={'mcpStatus':{'disconnected':_0x496002(0xa3),'connecting':'MCP\x20Connecting...','connected':_0x496002(0xa7),'failed':'MCP\x20Connection\x20Failed','retrying':_0x496002(0xad),'unknown':_0x496002(0xab),'missingApiKey':_0x496002(0x8b),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x496002(0xa9),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x496002(0x97),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x496002(0xa1)},'mcpConfig':{'title':_0x496002(0x90),'description':_0x496002(0x8f),'apiKey':_0x496002(0x9f),'apiKeyPlaceholder':_0x496002(0x81),'apiKeyHint':_0x496002(0x8a),'enableAuth':_0x496002(0x93),'enableAuthHint':_0x496002(0x99),'connectionInfo':_0x496002(0x92),'mcpClientConfig':_0x496002(0x92),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x496002(0x87),'configStep1':_0x496002(0x9a),'configStep2':_0x496002(0x84),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x496002(0x86),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x496002(0x8d),'maxRetries':'Max\x20Retries','save':_0x496002(0x83),'saving':'Saving...','note1':_0x496002(0x85),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x496002(0xa6),'configError':_0x496002(0x94),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x496002(0xae),'univerAiLabel':_0x496002(0xaa),'getStarted':_0x496002(0xa2)},'validation':{'apiKeyRequired':_0x496002(0x80),'apiKeyTooShort':_0x496002(0x9e),'invalidConfig':_0x496002(0xa8),'invalidApiKey':_0x496002(0xa0)},'connectionStatus':{'disconnected':_0x496002(0xac),'connecting':'Connecting...','connected':'Connected','failed':_0x496002(0x9b),'retrying':'Retrying...'},'connectionError':{'missingApiKey':_0x496002(0x8c),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x496002(0x7e),'networkError':_0x496002(0x82),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};module[_0x496002(0x91)]=e;function _0x5ec4(){const _0x29371c=['Enter\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Save\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Steps:','7622iORQFy','3839858Jtnzxd','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20API\x20Key\x20Missing','API\x20key\x20is\x20required\x20to\x20connect','Configuration\x20Parameters:','111880ofXQwt','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Configuration','exports','MCP\x20Client\x20Configuration','Enable\x20Authentication','Failed\x20to\x20save\x20configuration','45aKnLJL','102maabcZ','MCP:\x20Max\x20Retries\x20Exceeded','15614343kdQkSj','Enable\x20authentication\x20for\x20secure\x20connections','Copy\x20the\x20JSON\x20configuration\x20below','Connection\x20Failed','255aEVLFI','17142960QPciKq','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20Key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20configure\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Disconnected','8904287GcHnvf','8PizAKm','Configuration\x20saved\x20successfully','MCP\x20Connected','Invalid\x20configuration','MCP:\x20Session\x20Occupied','Univer\x20AI\x20Console','MCP\x20Unknown\x20Status','Disconnected','MCP\x20Retrying...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','80588LUyxSt','API\x20key\x20is\x20required'];_0x5ec4=function(){return _0x29371c;};return _0x5ec4();}
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x10a13d=_0x186a;(function(_0x2a3acb,_0x50076e){const _0x4829d7=_0x186a,_0x3077c7=_0x2a3acb();while(!![]){try{const _0x3f3c15=-parseInt(_0x4829d7(0x1a4))/0x1+-parseInt(_0x4829d7(0x19a))/0x2+parseInt(_0x4829d7(0x1b6))/0x3*(-parseInt(_0x4829d7(0x1c8))/0x4)+parseInt(_0x4829d7(0x1bb))/0x5*(parseInt(_0x4829d7(0x1ae))/0x6)+-parseInt(_0x4829d7(0x194))/0x7+parseInt(_0x4829d7(0x19e))/0x8+parseInt(_0x4829d7(0x197))/0x9;if(_0x3f3c15===_0x50076e)break;else _0x3077c7['push'](_0x3077c7['shift']());}catch(_0x4ca2f6){_0x3077c7['push'](_0x3077c7['shift']());}}}(_0x5bd8,0x8dee5));function _0x186a(_0x2acf7b,_0x236f57){const _0x5bd860=_0x5bd8();return _0x186a=function(_0x186a0d,_0x2fe13c){_0x186a0d=_0x186a0d-0x194;let _0x49a530=_0x5bd860[_0x186a0d];return _0x49a530;},_0x186a(_0x2acf7b,_0x236f57);}const e={'mcpStatus':{'disconnected':_0x10a13d(0x1bf),'connecting':_0x10a13d(0x1b9),'connected':_0x10a13d(0x1c2),'failed':'MCP\x20Connection\x20Failed','retrying':_0x10a13d(0x1c1),'unknown':'MCP\x20Unknown\x20Status','missingApiKey':_0x10a13d(0x1aa),'invalidApiKey':_0x10a13d(0x196),'sessionOccupied':_0x10a13d(0x1b5),'networkError':_0x10a13d(0x1a1),'maxRetriesExceeded':_0x10a13d(0x19f),'clickToConnect':_0x10a13d(0x1ad),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x10a13d(0x1a6),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x10a13d(0x1a9),'apiKeyPlaceholder':_0x10a13d(0x19c),'apiKeyHint':_0x10a13d(0x1a0),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x10a13d(0x1b4),'connectionInfo':_0x10a13d(0x1ac),'mcpClientConfig':_0x10a13d(0x1ac),'configInstructions':_0x10a13d(0x199),'configStepTitle':_0x10a13d(0x1ba),'configStep1':_0x10a13d(0x1b1),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x10a13d(0x1b2),'sessionId':_0x10a13d(0x1be),'sessionIdDescription':_0x10a13d(0x1b0),'authorizationDescription':_0x10a13d(0x1c0),'configParameters':_0x10a13d(0x1c4),'maxRetries':'Max\x20Retries','save':_0x10a13d(0x1c5),'saving':_0x10a13d(0x1b7),'note1':_0x10a13d(0x1ab),'note2':_0x10a13d(0x1c7),'configSaved':_0x10a13d(0x1bd),'configError':_0x10a13d(0x1b8),'apiApplyInfo':{'title':_0x10a13d(0x1b3),'description':_0x10a13d(0x1c3),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x10a13d(0x19d)},'validation':{'apiKeyRequired':_0x10a13d(0x1a3),'apiKeyTooShort':_0x10a13d(0x1a8),'invalidConfig':_0x10a13d(0x1af),'invalidApiKey':_0x10a13d(0x1a2)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x10a13d(0x1a5),'connected':_0x10a13d(0x1c6),'failed':'Connection\x20Failed','retrying':_0x10a13d(0x19b)},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':_0x10a13d(0x195),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0x10a13d(0x1a7),'maxRetriesExceeded':_0x10a13d(0x198)}}},n=e;function _0x5bd8(){const _0x18d16d=['MCP\x20Disconnected','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Retrying...','MCP\x20Connected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20Parameters:','Save\x20Configuration','Connected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','4zVhhHX','3554173ScRFfL','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','MCP:\x20Invalid\x20API\x20Key','9594675eSwUun','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','281876qucQbn','Retrying...','Enter\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds','8416936VeIOHA','MCP:\x20Max\x20Retries\x20Exceeded','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Network\x20Error','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20is\x20required','813083wSpdEm','Connecting...','MCP\x20Configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20Key','MCP:\x20API\x20Key\x20Missing','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Client\x20Configuration','Click\x20to\x20connect\x20MCP','2908842TLAxCx','Invalid\x20configuration','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','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','What\x20is\x20API\x20Key?','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Session\x20Occupied','1679670jldDrp','Saving...','Failed\x20to\x20save\x20configuration','MCP\x20Connecting...','Configuration\x20Steps:','5buSvaJ','exports','Configuration\x20saved\x20successfully','Session\x20ID'];_0x5bd8=function(){return _0x18d16d;};return _0x5bd8();}module[_0x10a13d(0x1bc)]=n;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x18f9(){const _0x21a7a7=['MCP\x20Configuration','Enter\x20your\x20API\x20key','API\x20key\x20with\x20Bearer\x20prefix.','Session\x20ID','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Retrying...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Client\x20Configuration','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','API\x20key\x20is\x20required\x20to\x20connect','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Retrying...','API\x20Key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connected','6048512iQOYlx','What\x20is\x20API\x20Key?','MCP:\x20Max\x20Retries\x20Exceeded','Copy\x20the\x20JSON\x20configuration\x20below','219320Pfqkwn','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Save\x20Configuration','131226uBTqmc','MCP:\x20Network\x20Error','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','97302JdmGtN','MCP\x20Disconnected','1711638nLULku','Configuration\x20saved\x20successfully','Enable\x20Authentication','MCP:\x20Session\x20Occupied','Click\x20to\x20connect\x20MCP','2FEBfgu','MCP\x20Unknown\x20Status','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Disconnected','1192275wgJVsO','exports','API\x20key\x20is\x20required','Univer\x20AI\x20Console','Configuration\x20Parameters:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Click\x20to\x20configure\x20MCP','MCP\x20Connecting...','780435EdrQfL','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Invalid\x20API\x20Key'];_0x18f9=function(){return _0x21a7a7;};return _0x18f9();}const _0x47ebb2=_0x329a;(function(_0x475bd2,_0x10dc7e){const _0x4b5348=_0x329a,_0x2f2720=_0x475bd2();while(!![]){try{const _0x4c03f4=parseInt(_0x4b5348(0x1a9))/0x1*(parseInt(_0x4b5348(0x1b0))/0x2)+-parseInt(_0x4b5348(0x1a6))/0x3+-parseInt(_0x4b5348(0x1a3))/0x4+-parseInt(_0x4b5348(0x1bf))/0x5+-parseInt(_0x4b5348(0x1ab))/0x6+-parseInt(_0x4b5348(0x1b7))/0x7+parseInt(_0x4b5348(0x19f))/0x8;if(_0x4c03f4===_0x10dc7e)break;else _0x2f2720['push'](_0x2f2720['shift']());}catch(_0x1fa6f0){_0x2f2720['push'](_0x2f2720['shift']());}}}(_0x18f9,0x22f05));const e={'mcpStatus':{'disconnected':_0x47ebb2(0x1aa),'connecting':_0x47ebb2(0x1be),'connected':_0x47ebb2(0x19e),'failed':'MCP\x20Connection\x20Failed','retrying':_0x47ebb2(0x1c7),'unknown':_0x47ebb2(0x1b1),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x47ebb2(0x1c1),'sessionOccupied':_0x47ebb2(0x1ae),'networkError':_0x47ebb2(0x1a7),'maxRetriesExceeded':_0x47ebb2(0x1a1),'clickToConnect':_0x47ebb2(0x1af),'clickToConfigure':_0x47ebb2(0x1bd)},'mcpConfig':{'title':_0x47ebb2(0x1c2),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x47ebb2(0x19c),'apiKeyPlaceholder':_0x47ebb2(0x1c3),'apiKeyHint':_0x47ebb2(0x19a),'enableAuth':_0x47ebb2(0x1ad),'enableAuthHint':_0x47ebb2(0x1c6),'connectionInfo':_0x47ebb2(0x1c9),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x47ebb2(0x1c8),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x47ebb2(0x1a2),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x47ebb2(0x1b4),'sessionId':_0x47ebb2(0x1c5),'sessionIdDescription':_0x47ebb2(0x1a8),'authorizationDescription':_0x47ebb2(0x1c4),'configParameters':_0x47ebb2(0x1bb),'maxRetries':'Max\x20Retries','save':_0x47ebb2(0x1a5),'saving':'Saving...','note1':_0x47ebb2(0x19d),'note2':_0x47ebb2(0x1c0),'configSaved':_0x47ebb2(0x1ac),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x47ebb2(0x1a0),'description':_0x47ebb2(0x1bc),'univerAiLabel':_0x47ebb2(0x1ba),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x47ebb2(0x1b9),'apiKeyTooShort':_0x47ebb2(0x1b2),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x47ebb2(0x1b5)},'connectionStatus':{'disconnected':_0x47ebb2(0x1b6),'connecting':'Connecting...','connected':'Connected','failed':_0x47ebb2(0x1b3),'retrying':_0x47ebb2(0x19b)},'connectionError':{'missingApiKey':_0x47ebb2(0x199),'invalidApiKey':_0x47ebb2(0x1ca),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x47ebb2(0x1a4)}}},n=e;function _0x329a(_0x2b26e1,_0x1d5f5d){const _0x18f94b=_0x18f9();return _0x329a=function(_0x329ac0,_0x50a2d7){_0x329ac0=_0x329ac0-0x199;let _0x598ff2=_0x18f94b[_0x329ac0];return _0x598ff2;},_0x329a(_0x2b26e1,_0x1d5f5d);}module[_0x47ebb2(0x1b8)]=n;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4b299c=_0x7915;function _0x7915(_0x3e1b31,_0x1484f7){const _0x4fc166=_0x4fc1();return _0x7915=function(_0x7915c8,_0x4f452f){_0x7915c8=_0x7915c8-0x97;let _0x43c325=_0x4fc166[_0x7915c8];return _0x43c325;},_0x7915(_0x3e1b31,_0x1484f7);}function _0x4fc1(){const _0x27ad82=['Session\x20ID','Configuration\x20Steps:','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','API\x20key\x20is\x20required\x20to\x20connect','285726liUgXN','Max\x20Retries','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connected','1918062kDwZft','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20is\x20required','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Network\x20Error','MCP:\x20Session\x20Occupied','Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20authentication\x20for\x20secure\x20connections','Connecting...','API\x20Key','Invalid\x20configuration','7ZUBrkl','Enter\x20your\x20API\x20key','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connecting...','MCP:\x20Invalid\x20API\x20Key','Save\x20Configuration','MCP\x20Unknown\x20Status','Click\x20to\x20configure\x20MCP','MCP\x20Disconnected','288426PYfGTY','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20with\x20Bearer\x20prefix.','531732lPUgzL','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','90tJRCSI','MCP\x20Retrying...','Saving...','Failed\x20to\x20save\x20configuration','MCP\x20Client\x20Configuration','3309688mZogeO','1VMiopQ','134215VAiuYn','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connected','Enable\x20Authentication','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','509859OpyfQh','Connection\x20Failed','MCP:\x20API\x20Key\x20Missing'];_0x4fc1=function(){return _0x27ad82;};return _0x4fc1();}(function(_0x372de8,_0x55645f){const _0x54e18d=_0x7915,_0x383f2f=_0x372de8();while(!![]){try{const _0x31af5d=parseInt(_0x54e18d(0xc3))/0x1*(-parseInt(_0x54e18d(0xb7))/0x2)+parseInt(_0x54e18d(0x9c))/0x3+-parseInt(_0x54e18d(0xba))/0x4+-parseInt(_0x54e18d(0xc4))/0x5+parseInt(_0x54e18d(0xa0))/0x6+-parseInt(_0x54e18d(0xae))/0x7*(parseInt(_0x54e18d(0xc2))/0x8)+-parseInt(_0x54e18d(0xca))/0x9*(-parseInt(_0x54e18d(0xbd))/0xa);if(_0x31af5d===_0x55645f)break;else _0x383f2f['push'](_0x383f2f['shift']());}catch(_0x16b9c4){_0x383f2f['push'](_0x383f2f['shift']());}}}(_0x4fc1,0x328e6));const e={'mcpStatus':{'disconnected':_0x4b299c(0xb6),'connecting':_0x4b299c(0xb1),'connected':_0x4b299c(0x9f),'failed':'MCP\x20Connection\x20Failed','retrying':_0x4b299c(0xbe),'unknown':_0x4b299c(0xb4),'missingApiKey':_0x4b299c(0xcc),'invalidApiKey':_0x4b299c(0xb2),'sessionOccupied':_0x4b299c(0xa5),'networkError':_0x4b299c(0xa4),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x4b299c(0xb5)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x4b299c(0xc5),'apiKey':_0x4b299c(0xac),'apiKeyPlaceholder':_0x4b299c(0xaf),'apiKeyHint':_0x4b299c(0xa3),'enableAuth':_0x4b299c(0xc7),'enableAuthHint':_0x4b299c(0xaa),'connectionInfo':_0x4b299c(0xc1),'mcpClientConfig':_0x4b299c(0xc1),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x4b299c(0x98),'configStep1':_0x4b299c(0xa1),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4b299c(0xb8),'sessionId':_0x4b299c(0x97),'sessionIdDescription':_0x4b299c(0xc8),'authorizationDescription':_0x4b299c(0xb9),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x4b299c(0x9d),'save':_0x4b299c(0xb3),'saving':_0x4b299c(0xbf),'note1':_0x4b299c(0xa8),'note2':_0x4b299c(0xb0),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x4b299c(0xc0),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x4b299c(0x99),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x4b299c(0xa7)},'validation':{'apiKeyRequired':_0x4b299c(0xa2),'apiKeyTooShort':_0x4b299c(0xbb),'invalidConfig':_0x4b299c(0xad),'invalidApiKey':_0x4b299c(0xa9)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x4b299c(0xab),'connected':_0x4b299c(0xc6),'failed':_0x4b299c(0xcb),'retrying':_0x4b299c(0xa6)},'connectionError':{'missingApiKey':_0x4b299c(0x9b),'invalidApiKey':_0x4b299c(0xbc),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0x4b299c(0x9e),'maxRetriesExceeded':_0x4b299c(0xc9)}}},n=e;module[_0x4b299c(0x9a)]=n;
|
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0xa094(_0x2a16c6,_0x57c493){const _0x546f84=_0x546f();return _0xa094=function(_0xa09422,_0x1a9f82){_0xa09422=_0xa09422-0x16e;let _0x3248de=_0x546f84[_0xa09422];return _0x3248de;},_0xa094(_0x2a16c6,_0x57c493);}const _0x307eb8=_0xa094;function _0x546f(){const _0x766c53=['MCP\x20Connected','5970140mjgUwE','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','MCP\x20Disconnected','1623490uLiyQw','Enter\x20your\x20API\x20key','3575888bglkje','Get\x20your\x20API\x20key\x20in\x20seconds','226372RNqJXb','5wdBppo','48BEguSZ','MCP\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','4994694Stolsh','50VDSwHA','MCP\x20Retrying...','MCP:\x20Session\x20Occupied','Enable\x20Authentication','MCP:\x20Network\x20Error','MCP:\x20API\x20Key\x20Missing','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Click\x20to\x20connect\x20MCP','exports','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Copy\x20the\x20JSON\x20configuration\x20below','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Configuration\x20saved\x20successfully','API\x20Key','Connecting...','Connection\x20Failed','MCP\x20Client\x20Configuration','MCP\x20Connecting...','Session\x20ID','Univer\x20AI\x20Console','37574eGzZnj','Retrying...','API\x20key\x20is\x20required\x20to\x20connect','Failed\x20to\x20save\x20configuration','What\x20is\x20API\x20Key?','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Disconnected','Save\x20Configuration','Connected','1068882QNWsEe','MCP\x20Connection\x20Failed','9WSBSat','14eYNGIX','MCP:\x20Invalid\x20API\x20Key'];_0x546f=function(){return _0x766c53;};return _0x546f();}(function(_0x2fb8b2,_0x46860c){const _0x38b9b0=_0xa094,_0x2b79ef=_0x2fb8b2();while(!![]){try{const _0x394092=parseInt(_0x38b9b0(0x18b))/0x1*(-parseInt(_0x38b9b0(0x1a0))/0x2)+parseInt(_0x38b9b0(0x178))/0x3*(parseInt(_0x38b9b0(0x183))/0x4)+-parseInt(_0x38b9b0(0x184))/0x5*(parseInt(_0x38b9b0(0x176))/0x6)+parseInt(_0x38b9b0(0x179))/0x7*(parseInt(_0x38b9b0(0x181))/0x8)+parseInt(_0x38b9b0(0x18a))/0x9+-parseInt(_0x38b9b0(0x17c))/0xa+-parseInt(_0x38b9b0(0x17f))/0xb*(-parseInt(_0x38b9b0(0x185))/0xc);if(_0x394092===_0x46860c)break;else _0x2b79ef['push'](_0x2b79ef['shift']());}catch(_0x297010){_0x2b79ef['push'](_0x2b79ef['shift']());}}}(_0x546f,0x78be6));const e={'mcpStatus':{'disconnected':_0x307eb8(0x17e),'connecting':_0x307eb8(0x19d),'connected':_0x307eb8(0x17b),'failed':_0x307eb8(0x177),'retrying':_0x307eb8(0x18c),'unknown':'MCP\x20Unknown\x20Status','missingApiKey':_0x307eb8(0x190),'invalidApiKey':_0x307eb8(0x17a),'sessionOccupied':_0x307eb8(0x18d),'networkError':_0x307eb8(0x18f),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x307eb8(0x192),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x307eb8(0x186),'description':_0x307eb8(0x196),'apiKey':_0x307eb8(0x199),'apiKeyPlaceholder':_0x307eb8(0x180),'apiKeyHint':_0x307eb8(0x171),'enableAuth':_0x307eb8(0x18e),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x307eb8(0x19c),'mcpClientConfig':_0x307eb8(0x19c),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x307eb8(0x195),'configStep2':_0x307eb8(0x194),'configStep3':_0x307eb8(0x191),'sessionId':_0x307eb8(0x19e),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x307eb8(0x187),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x307eb8(0x174),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x307eb8(0x198),'configError':_0x307eb8(0x16f),'apiApplyInfo':{'title':_0x307eb8(0x170),'description':_0x307eb8(0x188),'univerAiLabel':_0x307eb8(0x19f),'getStarted':_0x307eb8(0x182)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x307eb8(0x189)},'connectionStatus':{'disconnected':_0x307eb8(0x173),'connecting':_0x307eb8(0x19a),'connected':_0x307eb8(0x175),'failed':_0x307eb8(0x19b),'retrying':_0x307eb8(0x1a1)},'connectionError':{'missingApiKey':_0x307eb8(0x16e),'invalidApiKey':_0x307eb8(0x197),'sessionOccupied':_0x307eb8(0x17d),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x307eb8(0x172)}}},n=e;module[_0x307eb8(0x193)]=n;
|