@univerjs-pro/mcp-ui 0.10.7 → 0.10.8
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 +7 -6
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x16be13=_0x7f10;(function(_0x138450,_0x26e085){var _0x5bab12=_0x7f10,_0x21b44a=_0x138450();while(!![]){try{var _0x52f372=-parseInt(_0x5bab12(0x2df))/0x1+parseInt(_0x5bab12(0x280))/0x2*(parseInt(_0x5bab12(0x1f8))/0x3)+parseInt(_0x5bab12(0x21f))/0x4+parseInt(_0x5bab12(0x2e6))/0x5+-parseInt(_0x5bab12(0x2aa))/0x6*(-parseInt(_0x5bab12(0x287))/0x7)+-parseInt(_0x5bab12(0x296))/0x8*(parseInt(_0x5bab12(0x306))/0x9)+-parseInt(_0x5bab12(0x239))/0xa;if(_0x52f372===_0x26e085)break;else _0x21b44a['push'](_0x21b44a['shift']());}catch(_0x4d41a1){_0x21b44a['push'](_0x21b44a['shift']());}}}(_0x3ab2,0x77550));var te=Object[_0x16be13(0x22b)],oe=(_0x31e082,_0x4572ff,_0xada88f)=>_0x4572ff in _0x31e082?te(_0x31e082,_0x4572ff,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xada88f}):_0x31e082[_0x4572ff]=_0xada88f,_=(_0x4f4130,_0x79a68a,_0x796b0b)=>oe(_0x4f4130,typeof _0x79a68a!=_0x16be13(0x2f1)?_0x79a68a+'':_0x79a68a,_0x796b0b);Object[_0x16be13(0x22b)](exports,Symbol[_0x16be13(0x33c)],{'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');function _0x7f10(_0x368642,_0x5aec35){var _0x3ab2c2=_0x3ab2();return _0x7f10=function(_0x7f100d,_0x2b6262){_0x7f100d=_0x7f100d-0x1f0;var _0x96647e=_0x3ab2c2[_0x7f100d];return _0x96647e;},_0x7f10(_0x368642,_0x5aec35);}var C=function(){var _0x2f03ce=_0x16be13;return C=Object[_0x2f03ce(0x229)]||function(_0x5b8404){var _0x39971d=_0x2f03ce;for(var _0x47abf9,_0x370ca8=0x1,_0x3f09e2=arguments[_0x39971d(0x2b6)];_0x370ca8<_0x3f09e2;_0x370ca8++){_0x47abf9=arguments[_0x370ca8];for(var _0x451c2f in _0x47abf9)Object[_0x39971d(0x205)][_0x39971d(0x2f7)][_0x39971d(0x245)](_0x47abf9,_0x451c2f)&&(_0x5b8404[_0x451c2f]=_0x47abf9[_0x451c2f]);}return _0x5b8404;},C[_0x2f03ce(0x317)](this,arguments);},se=function(_0x4124ba,_0x4897c9){var _0xe34540=_0x16be13,_0xe0fd65={};for(var _0x321a44 in _0x4124ba)Object[_0xe34540(0x205)][_0xe34540(0x2f7)][_0xe34540(0x245)](_0x4124ba,_0x321a44)&&_0x4897c9[_0xe34540(0x365)](_0x321a44)<0x0&&(_0xe0fd65[_0x321a44]=_0x4124ba[_0x321a44]);if(_0x4124ba!=null&&typeof Object[_0xe34540(0x1f2)]==_0xe34540(0x28c)){for(var _0x460bb0=0x0,_0x321a44=Object['getOwnPropertySymbols'](_0x4124ba);_0x460bb0<_0x321a44[_0xe34540(0x2b6)];_0x460bb0++)_0x4897c9[_0xe34540(0x365)](_0x321a44[_0x460bb0])<0x0&&Object[_0xe34540(0x205)][_0xe34540(0x335)]['call'](_0x4124ba,_0x321a44[_0x460bb0])&&(_0xe0fd65[_0x321a44[_0x460bb0]]=_0x4124ba[_0x321a44[_0x460bb0]]);}return _0xe0fd65;},P=d[_0x16be13(0x2e1)](function(_0x47bc8e,_0x4ea48d){var _0x736eaf=_0x16be13,_0x24f7f8=_0x47bc8e[_0x736eaf(0x29d)],_0x56e27c=_0x47bc8e['id'],_0x41b40c=_0x47bc8e['className'],_0x499559=_0x47bc8e['extend'],_0x597cb5=se(_0x47bc8e,[_0x736eaf(0x29d),'id',_0x736eaf(0x251),_0x736eaf(0x309)]),_0x56fd9d='univerjs-icon\x20univerjs-icon-'[_0x736eaf(0x342)](_0x56e27c,'\x20')[_0x736eaf(0x342)](_0x41b40c||'')[_0x736eaf(0x252)](),_0x2fdb71=d[_0x736eaf(0x202)]('_'[_0x736eaf(0x342)](le()));return $(_0x24f7f8,''[_0x736eaf(0x342)](_0x56e27c),{'defIds':_0x24f7f8['defIds'],'idSuffix':_0x2fdb71[_0x736eaf(0x316)]},C({'ref':_0x4ea48d,'className':_0x56fd9d},_0x597cb5),_0x499559);});function $(_0x515fa,_0x4a04ff,_0x34ec0d,_0x1f0640,_0x4711ac){var _0x4dff4c=_0x16be13;return d['createElement'](_0x515fa['tag'],C(C({'key':_0x4a04ff},ce(_0x515fa,_0x34ec0d,_0x4711ac)),_0x1f0640),(ae(_0x515fa,_0x34ec0d)[_0x4dff4c(0x360)]||[])[_0x4dff4c(0x31e)](function(_0x51c488,_0x16e2df){var _0x4cdd11=_0x4dff4c;return $(_0x51c488,''['concat'](_0x4a04ff,'-')['concat'](_0x515fa[_0x4cdd11(0x34a)],'-')['concat'](_0x16e2df),_0x34ec0d,void 0x0,_0x4711ac);}));}function ce(_0x434cb0,_0x34e0a5,_0x34017d){var _0x19912a=_0x16be13,_0x1e05bb=C({},_0x434cb0[_0x19912a(0x31d)]);_0x34017d!=null&&_0x34017d[_0x19912a(0x2ef)]&&_0x1e05bb[_0x19912a(0x31b)]==='colorChannel1'&&(_0x1e05bb[_0x19912a(0x31b)]=_0x34017d[_0x19912a(0x2ef)]),_0x434cb0[_0x19912a(0x34a)]===_0x19912a(0x20b)&&_0x1e05bb['id']&&(_0x1e05bb['id']=_0x1e05bb['id']+_0x34e0a5[_0x19912a(0x2d7)]),Object[_0x19912a(0x210)](_0x1e05bb)[_0x19912a(0x234)](function(_0x10a6c9){var _0x1621f9=_0x19912a,_0x599ba8=_0x10a6c9[0x0],_0x1af015=_0x10a6c9[0x1];_0x599ba8===_0x1621f9(0x20b)&&typeof _0x1af015=='string'&&(_0x1e05bb[_0x599ba8]=_0x1af015['replace'](/url\(#(.*)\)/,_0x1621f9(0x320)[_0x1621f9(0x342)](_0x34e0a5[_0x1621f9(0x2d7)],')')));});var _0x2f7f50=_0x34e0a5[_0x19912a(0x1f1)];return!_0x2f7f50||_0x2f7f50['length']===0x0||(_0x434cb0[_0x19912a(0x34a)]==='use'&&_0x1e05bb['xlink:href']&&(_0x1e05bb[_0x19912a(0x2e8)]=_0x1e05bb[_0x19912a(0x2e8)]+_0x34e0a5[_0x19912a(0x2d7)]),Object[_0x19912a(0x210)](_0x1e05bb)['forEach'](function(_0x4cb840){var _0x263989=_0x19912a,_0x35e14c=_0x4cb840[0x0],_0x562fc5=_0x4cb840[0x1];typeof _0x562fc5=='string'&&(_0x1e05bb[_0x35e14c]=_0x562fc5[_0x263989(0x327)](/url\(#(.*)\)/,_0x263989(0x320)['concat'](_0x34e0a5[_0x263989(0x2d7)],')')));})),_0x1e05bb;}function ae(_0x40ac99,_0x147770){var _0x12d0a0=_0x16be13,_0x477adc,_0x2598d6=_0x147770[_0x12d0a0(0x1f1)];return!_0x2598d6||_0x2598d6['length']===0x0?_0x40ac99:_0x40ac99[_0x12d0a0(0x34a)]===_0x12d0a0(0x1fe)&&(!((_0x477adc=_0x40ac99[_0x12d0a0(0x360)])===null||_0x477adc===void 0x0)&&_0x477adc['length'])?C(C({},_0x40ac99),{'children':_0x40ac99[_0x12d0a0(0x360)]['map'](function(_0x3c8a20){var _0xb5a6f1=_0x12d0a0;return typeof _0x3c8a20[_0xb5a6f1(0x31d)]['id']==_0xb5a6f1(0x32d)&&_0x2598d6&&_0x2598d6[_0xb5a6f1(0x349)](_0x3c8a20[_0xb5a6f1(0x31d)]['id'])?C(C({},_0x3c8a20),{'attrs':C(C({},_0x3c8a20[_0xb5a6f1(0x31d)]),{'id':_0x3c8a20[_0xb5a6f1(0x31d)]['id']+_0x147770['idSuffix']})}):_0x3c8a20;})}):_0x40ac99;}function le(){var _0x216e32=_0x16be13;return Math[_0x216e32(0x35a)]()[_0x216e32(0x2fa)](0x24)[_0x216e32(0x243)](0x2,0x8);}function _0x3ab2(){var _0x52b3de=['createElement','_initConfigSync','146817mxAkhE','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-space-y-3','extend','Saving...','univer-space-y-2','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','IUIPartsService','setConfig','useDependency','NETWORK_ERROR','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','sessionId','mcpConfig.apiApplyInfo.getStarted','CONNECTING','M5.21243\x2012.287L11.8791\x205.62036','current','apply','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20saved\x20successfully','univer-mb-1\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','fill','check-mark-icon','attrs','map','univer-flex-1','url(#$1','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','Inject','保存配置','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','Max\x20Retries','IMessageService','replace','label','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer.plus','MCPConnectionController','mcpStatus.clickToConnect','string','Server\x20Endpoint','showConfigPanel','univer-text-xs\x20univer-text-gray-500','showDeveloperTools','univer-text-white','配置保存成功','get','propertyIsEnumerable','univer-text-red-500','Connecting...','mcpStatus.disconnected','ILogService','mcpConfig.apiKeyHint','DependentOn','toStringTag','univer-flex\x20univer-items-center\x20univer-gap-2','Univer\x20AI\x20Console','span','_mcpCoreConfig$','useCallback','concat','CheckMarkIcon','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','http://www.w3.org/2000/svg','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','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','mcpConfig.connectionStatus.connecting','includes','tag','mcp-config-dialog','mcpConfig.description','MCP:\x20Network\x20Error','univer-flex\x20univer-items-center\x20univer-gap-3','_config$','on-line-icon_clip0_910_349','会话当前被占用,请稍后再试','on-line-icon','_validateConfig','_handleConfigSave','univer-flex-shrink-0\x20univer-text-red-500','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','API\x20key\x20is\x20required','OnLineIcon','_blank','random','_mcpConnectionController','_initializeMenus','Plugin','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','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','children','Enter\x20your\x20API\x20key','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','svg','help-single','indexOf','mcpStatus.maxRetriesExceeded','univer-bg-green-500','displayName','CloseSmallSingle','MCP_PLUGIN_CONFIG_KEY','ICommandService','jsxs','useObservable','\x20-\x20','noopener\x20noreferrer','启用身份验证以获得安全连接','HEADER_MENU','IMenuManagerService','getConfig','defIds','getOwnPropertySymbols','mcpConfig.title','M0\x200H16V16H0z','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','MCPUIMenuController','MCP_UI_PLUGIN','15EIUFjf','mcpConfig.connectionInfo','Click\x20to\x20configure\x20MCP','COMMAND','请输入您的\x20API\x20密钥','配置\x20MCP\x20使用\x20AI\x20操作电子表格','defs','几秒钟内获取您的\x20API\x20密钥','https://console.univer.plus','UniverIcon','useRef','您的\x20API\x20密钥安全存储在本地存储中','none','prototype','配置保存失败','API\x20密钥无效,请检查密钥是否正确','mcp-ui.command.openConfigPanel','apiKey','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mask','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','\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','clipPath','LocaleService','entries','isValid','OpenMCPConfigPanelCommand','1em','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','_messageService','MCP:\x20Invalid\x20API\x20Key','_initStatusComponent','MAX_RETRIES_EXCEEDED','MCP:\x20缺少\x20API\x20密钥','mcpConfig.note2','univer-min-w-0\x20univer-flex-1','MCPConnectionStatus','univer-text-sm\x20univer-text-gray-500','Configuration\x20Notes:','3054828eBUwLN','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','ILocalStorageService','univer-bg-red-500','close','Disposable','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','Input','_createConfigPanelComponent','_connectionController','assign','mcpStatus.sessionOccupied','defineProperty','CommandType','DISCONNECTED','点击连接\x20MCP','MCP:\x20API\x20Key\x20Missing','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','API\x20密钥长度至少需要\x2010\x20位','mcpStatus.connected','code','forEach','mcpStatus.networkError','Error','API\x20密钥','value','13693340pyvcKb','univer-flex\x20univer-gap-3','getItem','MessageType','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','mcpConfig.validation.invalidApiKey','Tooltip','clsx','OTHERS','substring','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','call','网络连接错误,请检查您的网络连接','MCPConfigPanel','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','connectionError$','_localStorageService','mcpConfig.note1','Session\x20ID','_handleConfigure','MCP\x20Connecting...','MCP\x20配置','univer-flex\x20univer-flex-wrap\x20univer-gap-2','className','trim','0\x200\x2017\x2016','0\x200\x2017\x2017','mcpConfig.connectionStatus.retrying','_logService','next','_initializeCommands','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','最大重试次数','BUTTON','text','univer-text-sm\x20univer-font-medium','IConfigService','连接失败','INVALID_API_KEY','zhCN','currentColor','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpStatus.connecting','_menuManagerService','mcpStatus.clickToConfigure','\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','BuiltInUIPart','validateApiKey','onStarting','mcpConfig.validation.apiKeyTooShort','registerComponent','mcp-ui.config','connectInjector','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','univer-mr-2\x20univer-flex\x20univer-text-xl','mcpConfig.connectionError.invalidApiKey','NONE','mcpStatus.failed','CONNECTED','_config','mcpStatus.missingApiKey','getOwnPropertyDescriptor','MCP:\x20超出最大重试次数','white','univer-font-medium','off-line-icon','Click\x20to\x20connect\x20MCP','MCPStatusDisplay','MCP:\x20会话被占用','univer-flex\x20univer-items-start\x20univer-gap-2','79138VqurDj','_componentManager','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','Connection\x20Failed','mcpConfig.apiApplyInfo.title','add','MCPConnectionUIController','173761GMPUQM','MenuIcon','配置更改将立即生效','MISSING_API_KEY','Connected','function','univer-text-blue-600','mcpConfig.connectionError.sessionOccupied','Failed\x20to\x20save\x20configuration','MCP\x20重连中...','round','_registerComponent','translate(.97)','HelpSingle','Injector','40dmfoSF','保存中...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20连接失败','超出最大重试次数,请稍后再试','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','close-small-single','icon','mcpStatus.invalidApiKey','BehaviorSubject','univer-flex\x20univer-items-start\x20univer-gap-3','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','MCP\x20Connected','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','hover:univer-opacity-80','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','evenodd','RETRYING','registerCommand','univer-flex-shrink-0\x20univer-text-blue-500','174HDJbon','Retrying...','_commandService','MCP\x20连接中...','_dialogService','已连接','mcpConfig.apiApplyInfo.univerAiLabel','bottom','连接信息','error','mcpConfig.configError','off-line-icon_clip0_910_343','length','什么是\x20API\x20密钥?','mcpConfig.saving','div','MCP:\x20Session\x20Occupied','MCP\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','_loading$','mcpConfig.apiApplyInfo.description','_loadStoredApiKey','errorMessage','mcpConfig.connectionError.missingApiKey','univer-text-green-500','univer-bg-gray-500','您的\x20API\x20密钥将在此浏览器中本地存储','mcpConfig.connectionError.networkError','MCP\x20已连接','jsx','API\x20密钥无效,请检查您的密钥后重试','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','MCP\x20Connection\x20Failed','0\x200\x2016\x2016','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','subscribeConfigValue$','_injector','MCP:\x20网络错误','mcpConfig.apiKeyPlaceholder','path','配置无效','Connection\x20Information','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','idSuffix','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Save\x20Configuration','connectionStatus$','FAILED','MCPConnectionError','\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','未连接','51367IZnVNU','mcpServerUrl','forwardRef','show','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','点击配置\x20MCP','mcpConfig.connectionStatus.disconnected','1548155QdLYLa','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','xlink:href','What\x20is\x20API\x20Key?','Get\x20your\x20API\x20key\x20in\x20seconds','https://console.univer.ai','MCP\x20已断开','mcpConfig.validation.invalidConfig','javascript:void(0)','colorChannel1','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','symbol','_configService','disposeWithMe','MCPConfigUIController','OffLineIcon','useState','hasOwnProperty','_localeService','mcpConfig.connectionStatus.failed','toString','subscribe','mergeMenu','mcpConfig.validation.apiKeyRequired','univer.ai','Invalid\x20configuration','MenuItemType','_uiPartsService','univer-flex\x20univer-cursor-pointer\x20univer-items-center','mcpConfig.connectionStatus.connected'];_0x3ab2=function(){return _0x52b3de;};return _0x3ab2();}P[_0x16be13(0x368)]=_0x16be13(0x201);var ue={'tag':_0x16be13(0x363),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x16be13(0x204),'viewBox':_0x16be13(0x2cb),'width':_0x16be13(0x213),'height':'1em'},'children':[{'tag':_0x16be13(0x2d3),'attrs':{'fill':_0x16be13(0x262),'d':_0x16be13(0x35e),'fillRule':'evenodd','clipRule':_0x16be13(0x2a6)}}]},L=d[_0x16be13(0x2e1)](function(_0x642883,_0x4528e3){var _0xae0da8=_0x16be13;return d[_0xae0da8(0x304)](P,Object[_0xae0da8(0x229)]({},_0x642883,{'id':_0xae0da8(0x31c),'ref':_0x4528e3,'icon':ue}));});L[_0x16be13(0x368)]=_0x16be13(0x343);var ve={'tag':'svg','attrs':{'xmlns':_0x16be13(0x345),'fill':_0x16be13(0x204),'viewBox':_0x16be13(0x254),'width':_0x16be13(0x213),'height':_0x16be13(0x213)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':'M5.21243\x205.62036L11.8791\x2012.287','strokeLinecap':_0x16be13(0x291),'strokeLinejoin':'round','strokeWidth':1.33}},{'tag':_0x16be13(0x2d3),'attrs':{'stroke':_0x16be13(0x262),'d':_0x16be13(0x315),'strokeLinecap':_0x16be13(0x291),'strokeLinejoin':_0x16be13(0x291),'strokeWidth':1.33}}]},G=d[_0x16be13(0x2e1)](function(_0x25f52b,_0x40c297){var _0x920073=_0x16be13;return d[_0x920073(0x304)](P,Object[_0x920073(0x229)]({},_0x25f52b,{'id':_0x920073(0x29c),'ref':_0x40c297,'icon':ve}));});G['displayName']=_0x16be13(0x369);var de={'tag':_0x16be13(0x363),'attrs':{'xmlns':_0x16be13(0x345),'fill':'none','viewBox':_0x16be13(0x2cb),'width':'1em','height':'1em'},'children':[{'tag':_0x16be13(0x2d3),'attrs':{'fill':_0x16be13(0x262),'d':_0x16be13(0x344)}},{'tag':_0x16be13(0x2d3),'attrs':{'fill':_0x16be13(0x262),'d':_0x16be13(0x346)}},{'tag':_0x16be13(0x2d3),'attrs':{'fill':_0x16be13(0x262),'d':_0x16be13(0x20c),'fillRule':_0x16be13(0x2a6),'clipRule':_0x16be13(0x2a6)}}]},Y=d[_0x16be13(0x2e1)](function(_0x3cdc0a,_0x5476ed){var _0x59206d=_0x16be13;return d[_0x59206d(0x304)](P,Object[_0x59206d(0x229)]({},_0x3cdc0a,{'id':_0x59206d(0x364),'ref':_0x5476ed,'icon':de}));});Y[_0x16be13(0x368)]=_0x16be13(0x294);var Ce={'tag':_0x16be13(0x363),'attrs':{'xmlns':_0x16be13(0x345),'fill':_0x16be13(0x204),'viewBox':'0\x200\x2016\x2016','width':_0x16be13(0x213),'height':_0x16be13(0x213)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x16be13(0x2d3),'attrs':{'stroke':_0x16be13(0x262),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x16be13(0x1fe),'attrs':{},'children':[{'tag':_0x16be13(0x20e),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x16be13(0x2d3),'attrs':{'fill':_0x16be13(0x279),'d':_0x16be13(0x1f4)}}]}]}],'defIds':[_0x16be13(0x2b5)]},F=d['forwardRef'](function(_0x311974,_0x22b573){var _0x259860=_0x16be13;return d[_0x259860(0x304)](P,Object['assign']({},_0x311974,{'id':_0x259860(0x27b),'ref':_0x22b573,'icon':Ce}));});F[_0x16be13(0x368)]=_0x16be13(0x2f5);var ge={'tag':_0x16be13(0x363),'attrs':{'xmlns':_0x16be13(0x345),'fill':'none','viewBox':_0x16be13(0x253),'width':_0x16be13(0x213),'height':_0x16be13(0x213)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x16be13(0x2d3),'attrs':{'stroke':'currentColor','d':'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','strokeLinecap':'round','strokeLinejoin':_0x16be13(0x291),'strokeWidth':1.2}}]},{'tag':_0x16be13(0x1fe),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x16be13(0x350)},'children':[{'tag':'path','attrs':{'fill':_0x16be13(0x279),'d':'M0\x200H16V16H0z','transform':_0x16be13(0x293)}}]}]}],'defIds':[_0x16be13(0x350)]},V=d['forwardRef'](function(_0x16d35b,_0x28a56a){var _0x15355c=_0x16be13;return d[_0x15355c(0x304)](P,Object['assign']({},_0x16d35b,{'id':_0x15355c(0x352),'ref':_0x28a56a,'icon':ge}));});V[_0x16be13(0x368)]=_0x16be13(0x358);function B(_0x1c5211){var _0x1a7b27=_0x16be13,_0x3ba3fb,_0x27a9f3;const {mcpCoreConfig:_0x4d8230,onSave:_0x3b2e3d,loading:_0x23b2c0=!0x1,config:_0x2893a1,connectionStatus$:_0x341e83,connectionError$:_0x12817b}=_0x1c5211,_0x589666=v[_0x1a7b27(0x30f)](u[_0x1a7b27(0x20f)]),_0x2b15ce=v[_0x1a7b27(0x36d)](_0x341e83,s[_0x1a7b27(0x21c)][_0x1a7b27(0x22d)]),_0x3138c0=v[_0x1a7b27(0x36d)](_0x12817b,s[_0x1a7b27(0x2dc)][_0x1a7b27(0x272)]),[_0xbe6878,_0x20a262]=d[_0x1a7b27(0x2f6)](_0x4d8230[_0x1a7b27(0x209)]||''),_0x264b55=!0x0,_0x21ef98=_0x2893a1[_0x1a7b27(0x331)]&&_0x4d8230['mcpServerUrl']&&(_0x4d8230['mcpServerUrl'][_0x1a7b27(0x349)](_0x1a7b27(0x32a))||_0x4d8230['mcpServerUrl'][_0x1a7b27(0x349)](_0x1a7b27(0x2fe))),_0x21d28b=(_0x3ba3fb=_0x4d8230['mcpServerUrl'])==null?void 0x0:_0x3ba3fb[_0x1a7b27(0x349)](_0x1a7b27(0x32a)),_0x2318c8=(_0x27a9f3=_0x4d8230[_0x1a7b27(0x2e0)])==null?void 0x0:_0x27a9f3[_0x1a7b27(0x349)](_0x1a7b27(0x2fe)),_0x259f46=_0x21d28b?_0x1a7b27(0x200):_0x1a7b27(0x2eb),_0x4de1b5=_0x2893a1['showDeveloperTools']&&(_0x21d28b||_0x2318c8),[_0xf9668d,_0x37a6d0]=d[_0x1a7b27(0x2f6)](!_0xbe6878[_0x1a7b27(0x252)]()),_0x12d0a8=(_0x480e54,_0x51a743)=>{var _0x2292bd=_0x1a7b27;if(_0x51a743===s['MCPConnectionError'][_0x2292bd(0x28a)]||_0x51a743===s[_0x2292bd(0x2dc)][_0x2292bd(0x260)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x480e54){case s[_0x2292bd(0x21c)]['CONNECTED']:return _0x2292bd(0x230);case s['MCPConnectionStatus']['CONNECTING']:case s['MCPConnectionStatus'][_0x2292bd(0x2a7)]:return _0x2292bd(0x324);case s['MCPConnectionStatus']['FAILED']:return _0x2292bd(0x23d);default:return _0x2292bd(0x282);}},_0x10d3df=(_0x3759cb,_0x2360b8)=>{var _0x4e1aa6=_0x1a7b27;if(_0x2360b8===s[_0x4e1aa6(0x2dc)][_0x4e1aa6(0x28a)]||_0x2360b8===s[_0x4e1aa6(0x2dc)][_0x4e1aa6(0x260)])return _0x4e1aa6(0x222);switch(_0x3759cb){case s[_0x4e1aa6(0x21c)]['CONNECTED']:return _0x4e1aa6(0x367);case s[_0x4e1aa6(0x21c)][_0x4e1aa6(0x314)]:case s[_0x4e1aa6(0x21c)][_0x4e1aa6(0x2a7)]:return'univer-bg-blue-500';case s['MCPConnectionStatus'][_0x4e1aa6(0x2db)]:return _0x4e1aa6(0x222);default:return _0x4e1aa6(0x2c3);}},_0x37eba0=_0x1430a4=>{var _0x22c07f=_0x1a7b27;switch(_0x1430a4){case s[_0x22c07f(0x21c)][_0x22c07f(0x274)]:return _0x589666['t'](_0x22c07f(0x303));case s[_0x22c07f(0x21c)]['CONNECTING']:return _0x589666['t'](_0x22c07f(0x348));case s[_0x22c07f(0x21c)]['FAILED']:return _0x589666['t'](_0x22c07f(0x2f9));case s[_0x22c07f(0x21c)]['RETRYING']:return _0x589666['t'](_0x22c07f(0x255));default:return _0x589666['t'](_0x22c07f(0x2e5));}},_0x3d4ce7=_0x3e787f=>{var _0x16c557=_0x1a7b27;switch(_0x3e787f){case s[_0x16c557(0x2dc)][_0x16c557(0x28a)]:return _0x589666['t'](_0x16c557(0x2c1));case s[_0x16c557(0x2dc)]['INVALID_API_KEY']:return _0x589666['t'](_0x16c557(0x271));case s[_0x16c557(0x2dc)]['SESSION_ID_OCCUPIED']:return _0x589666['t'](_0x16c557(0x28e));case s['MCPConnectionError']['NETWORK_ERROR']:return _0x589666['t'](_0x16c557(0x2c5));case s[_0x16c557(0x2dc)][_0x16c557(0x218)]:return _0x589666['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x59a130=d[_0x1a7b27(0x341)](()=>{const _0x2efb67={..._0x4d8230,'apiKey':_0xbe6878['trim'](),'enableAuth':_0x264b55};_0x3b2e3d(_0x2efb67);},[_0x4d8230,_0xbe6878,_0x264b55,_0x3b2e3d]),_0x22ce8f=_0xbe6878[_0x1a7b27(0x252)]()[_0x1a7b27(0x2b6)]>0x0;return o[_0x1a7b27(0x36c)](_0x1a7b27(0x2b9),{'className':_0x1a7b27(0x311),'children':[o[_0x1a7b27(0x2c7)](_0x1a7b27(0x2b9),{'className':_0x1a7b27(0x2a5),'children':o[_0x1a7b27(0x36c)](_0x1a7b27(0x2b9),{'className':_0x1a7b27(0x34e),'children':[o['jsx'](_0x1a7b27(0x2b9),{'className':_0x1a7b27(0x248),'children':o['jsx'](_0x1a7b27(0x33f),{'className':_0x1a7b27(0x332),'children':'⚙'})}),o[_0x1a7b27(0x2c7)](_0x1a7b27(0x2b9),{'children':o['jsx']('p',{'className':_0x1a7b27(0x21d),'children':_0x589666['t'](_0x1a7b27(0x34c))})})]})}),o[_0x1a7b27(0x36c)]('div',{'className':_0x1a7b27(0x2e7),'children':[o[_0x1a7b27(0x2c7)](_0x1a7b27(0x2b9),{'className':_0x1a7b27(0x2dd)+_0x12d0a8(_0x2b15ce,_0x3138c0)+_0x1a7b27(0x356),'children':o[_0x1a7b27(0x36c)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[o[_0x1a7b27(0x2c7)](_0x1a7b27(0x2b9),{'className':_0x1a7b27(0x20d)+_0x10d3df(_0x2b15ce,_0x3138c0)+_0x1a7b27(0x267)}),o[_0x1a7b27(0x2c7)](_0x1a7b27(0x33f),{'className':_0x1a7b27(0x25d),'children':_0x37eba0(_0x2b15ce)})]})}),_0x3138c0!==s[_0x1a7b27(0x2dc)][_0x1a7b27(0x272)]&&(_0x2b15ce===s[_0x1a7b27(0x21c)][_0x1a7b27(0x2db)]||_0x3138c0===s[_0x1a7b27(0x2dc)][_0x1a7b27(0x28a)]||_0x3138c0===s[_0x1a7b27(0x2dc)]['INVALID_API_KEY'])&&o['jsx']('div',{'className':_0x1a7b27(0x29b),'children':o['jsxs'](_0x1a7b27(0x2b9),{'className':_0x1a7b27(0x27f),'children':[o[_0x1a7b27(0x2c7)]('span',{'className':_0x1a7b27(0x355),'children':'⚠️'}),o[_0x1a7b27(0x2c7)]('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x3d4ce7(_0x3138c0)})]})})]}),o['jsx'](_0x1a7b27(0x2b9),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':o['jsxs'](_0x1a7b27(0x2b9),{'className':'univer-space-y-5','children':[o['jsxs'](_0x1a7b27(0x2b9),{'className':_0x1a7b27(0x30b),'children':[o[_0x1a7b27(0x36c)](_0x1a7b27(0x328),{'className':_0x1a7b27(0x329),'children':[o[_0x1a7b27(0x2c7)](_0x1a7b27(0x33f),{'children':'🔑'}),'\x20',_0x589666['t']('mcpConfig.apiKey'),o[_0x1a7b27(0x2c7)]('span',{'className':_0x1a7b27(0x336),'children':'*'}),_0x21ef98&&o['jsx']('a',{'href':_0x1a7b27(0x2ee),'onClick':()=>_0x37a6d0(!0x0),'className':_0x1a7b27(0x2a3),'title':_0x589666['t'](_0x1a7b27(0x284)),'children':o[_0x1a7b27(0x2c7)](Y,{})})]}),o['jsx'](x[_0x1a7b27(0x226)],{'type':_0x1a7b27(0x25c),'placeholder':_0x589666['t'](_0x1a7b27(0x2d2)),'value':_0xbe6878,'onChange':_0x20a262,'disabled':_0x23b2c0,'autoComplete':'off'}),o[_0x1a7b27(0x2c7)]('p',{'className':_0x1a7b27(0x330),'children':_0x589666['t'](_0x1a7b27(0x33a))})]}),_0x21ef98&&_0xf9668d&&o[_0x1a7b27(0x36c)]('div',{'className':_0x1a7b27(0x2e3),'children':[o[_0x1a7b27(0x2c7)]('a',{'href':_0x1a7b27(0x2ee),'onClick':()=>_0x37a6d0(!0x1),'className':_0x1a7b27(0x2c9),'title':'Close','children':o[_0x1a7b27(0x2c7)](G,{})}),o[_0x1a7b27(0x36c)](_0x1a7b27(0x2b9),{'className':_0x1a7b27(0x2cc),'children':[o[_0x1a7b27(0x2c7)](_0x1a7b27(0x2b9),{'className':_0x1a7b27(0x1f5),'children':o['jsx'](_0x1a7b27(0x33f),{'className':_0x1a7b27(0x28d),'children':'🚀'})}),o[_0x1a7b27(0x36c)](_0x1a7b27(0x2b9),{'className':_0x1a7b27(0x31f),'children':[o[_0x1a7b27(0x2c7)]('h4',{'className':_0x1a7b27(0x2ce),'children':_0x589666['t']('mcpConfig.apiApplyInfo.title')}),o[_0x1a7b27(0x2c7)]('p',{'className':_0x1a7b27(0x214),'children':_0x589666['t'](_0x1a7b27(0x2be))}),o[_0x1a7b27(0x2c7)](_0x1a7b27(0x2b9),{'className':_0x1a7b27(0x250),'children':_0x4de1b5&&o[_0x1a7b27(0x36c)]('a',{'href':_0x259f46,'target':_0x1a7b27(0x359),'rel':_0x1a7b27(0x36f),'className':_0x1a7b27(0x362),'children':[o[_0x1a7b27(0x2c7)](_0x1a7b27(0x33f),{'children':'🤖'}),_0x589666['t'](_0x1a7b27(0x2b0)),o['jsx'](_0x1a7b27(0x33f),{'className':'univer-text-gray-400','children':'↗'})]})}),o[_0x1a7b27(0x36c)](_0x1a7b27(0x2b9),{'className':_0x1a7b27(0x20a),'children':['✨','\x20',_0x589666['t'](_0x1a7b27(0x313))]})]})]})]}),_0x2893a1['showDeveloperTools']&&o[_0x1a7b27(0x36c)]('div',{'className':_0x1a7b27(0x321),'children':[o[_0x1a7b27(0x36c)]('h4',{'className':_0x1a7b27(0x2a1),'children':[o[_0x1a7b27(0x2c7)](_0x1a7b27(0x33f),{'children':'🔗'}),'\x20',_0x589666['t'](_0x1a7b27(0x1f9))]}),o[_0x1a7b27(0x36c)](_0x1a7b27(0x2b9),{'className':_0x1a7b27(0x308),'children':[o['jsxs']('div',{'className':_0x1a7b27(0x2a0),'children':[o[_0x1a7b27(0x2c7)](_0x1a7b27(0x2b9),{'className':_0x1a7b27(0x307)}),o['jsxs']('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[o[_0x1a7b27(0x2c7)](_0x1a7b27(0x2b9),{'className':'univer-mb-1\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x589666['t']('mcpConfig.serverEndpoint')}),o['jsx'](_0x1a7b27(0x233),{'className':_0x1a7b27(0x220),'children':_0x4d8230[_0x1a7b27(0x2e0)]})]})]}),o[_0x1a7b27(0x36c)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[o['jsx']('div',{'className':_0x1a7b27(0x307)}),o[_0x1a7b27(0x36c)](_0x1a7b27(0x2b9),{'className':_0x1a7b27(0x21b),'children':[o[_0x1a7b27(0x2c7)](_0x1a7b27(0x2b9),{'className':_0x1a7b27(0x31a),'children':_0x589666['t']('mcpConfig.sessionId')}),o[_0x1a7b27(0x2c7)](_0x1a7b27(0x233),{'className':'univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-gray-700','children':_0x4d8230[_0x1a7b27(0x312)]||'default'})]})]})]})]}),o[_0x1a7b27(0x2c7)](x['Button'],{'onClick':_0x59a130,'disabled':!_0x22ce8f||_0x23b2c0,'className':_0x1a7b27(0x2d6),'children':_0x23b2c0?o[_0x1a7b27(0x36c)]('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[o['jsx'](_0x1a7b27(0x33f),{'children':'⟲'}),_0x589666['t'](_0x1a7b27(0x2b8))]}):o[_0x1a7b27(0x36c)](_0x1a7b27(0x33f),{'className':_0x1a7b27(0x33d),'children':[o[_0x1a7b27(0x2c7)](L,{}),_0x589666['t']('mcpConfig.save')]})}),o[_0x1a7b27(0x2c7)](_0x1a7b27(0x2b9),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':o['jsxs']('div',{'className':_0x1a7b27(0x23a),'children':[o[_0x1a7b27(0x2c7)](_0x1a7b27(0x33f),{'className':_0x1a7b27(0x2a9),'children':'💡'}),o[_0x1a7b27(0x36c)](_0x1a7b27(0x2b9),{'className':_0x1a7b27(0x2f0),'children':[o[_0x1a7b27(0x2c7)](_0x1a7b27(0x2b9),{'className':_0x1a7b27(0x27a),'children':_0x1a7b27(0x21e)}),o[_0x1a7b27(0x36c)](_0x1a7b27(0x2b9),{'children':['•',_0x589666['t'](_0x1a7b27(0x24b))]}),o[_0x1a7b27(0x36c)](_0x1a7b27(0x2b9),{'children':['•',_0x589666['t'](_0x1a7b27(0x21a))]})]})]})})]})})]});}const k=_0x16be13(0x26d),T={'showDeveloperTools':!0x1};var fe=Object['getOwnPropertyDescriptor'],pe=(_0x1187ff,_0xe3f767,_0x4542ba,_0x238925)=>{var _0x26f4a4=_0x16be13;for(var _0x345f6b=_0x238925>0x1?void 0x0:_0x238925?fe(_0xe3f767,_0x4542ba):_0xe3f767,_0x1b5c66=_0x1187ff[_0x26f4a4(0x2b6)]-0x1,_0x54ad65;_0x1b5c66>=0x0;_0x1b5c66--)(_0x54ad65=_0x1187ff[_0x1b5c66])&&(_0x345f6b=_0x54ad65(_0x345f6b)||_0x345f6b);return _0x345f6b;},p=(_0x5ef43f,_0x2c3e9e)=>(_0x3dca4e,_0x423bf5)=>_0x2c3e9e(_0x3dca4e,_0x423bf5,_0x5ef43f);const w='mcp.apiKey',A=_0x16be13(0x34b);exports['MCPConfigUIController']=class extends u[_0x16be13(0x224)]{constructor(_0x5dcb89,_0xb6bfeb,_0x22e877,_0x132a3c,_0x22c777,_0x24009a,_0x19bac1,_0x8bfd8b,_0x276a3c,_0x3295d5){var _0x19da82=_0x16be13;super(),_(this,_0x19da82(0x2bd),new j[(_0x19da82(0x29f))](!0x1)),_(this,_0x19da82(0x340),new j['BehaviorSubject']({})),_(this,'_config$',new j[(_0x19da82(0x29f))]({})),_(this,_0x19da82(0x354),async _0x5ad63e=>{var _0x1b91c1=_0x19da82;this[_0x1b91c1(0x2bd)]['next'](!0x0);try{const _0x2fd2e2=await this[_0x1b91c1(0x353)](_0x5ad63e);if(!_0x2fd2e2[_0x1b91c1(0x211)]){this[_0x1b91c1(0x215)][_0x1b91c1(0x2e2)]({'type':x['MessageType'][_0x1b91c1(0x236)],'content':_0x2fd2e2[_0x1b91c1(0x2c0)]||this[_0x1b91c1(0x2f8)]['t'](_0x1b91c1(0x2ed))});return;}_0x5ad63e[_0x1b91c1(0x209)]?await this[_0x1b91c1(0x24a)]['setItem'](w,_0x5ad63e[_0x1b91c1(0x209)]['trim']()):await this[_0x1b91c1(0x24a)]['removeItem'](w),this[_0x1b91c1(0x2f2)][_0x1b91c1(0x30e)](s[_0x1b91c1(0x36a)],{..._0x5ad63e,'apiKey':_0x5ad63e['apiKey'][_0x1b91c1(0x252)]()}),this[_0x1b91c1(0x340)][_0x1b91c1(0x257)]({..._0x5ad63e,'apiKey':_0x5ad63e[_0x1b91c1(0x209)]['trim']()}),this['_messageService'][_0x1b91c1(0x2e2)]({'type':x[_0x1b91c1(0x23c)]['Success'],'content':this['_localeService']['t']('mcpConfig.configSaved')}),setTimeout(()=>{var _0x339be9=_0x1b91c1;this[_0x339be9(0x2ae)][_0x339be9(0x223)](A);},0x320);}catch(_0x425779){this[_0x1b91c1(0x256)][_0x1b91c1(0x2b3)](_0x1b91c1(0x244),_0x425779),this[_0x1b91c1(0x215)][_0x1b91c1(0x2e2)]({'type':x[_0x1b91c1(0x23c)][_0x1b91c1(0x236)],'content':this[_0x1b91c1(0x2f8)]['t'](_0x1b91c1(0x2b4))});}finally{this[_0x1b91c1(0x2bd)][_0x1b91c1(0x257)](!0x1);}}),(this[_0x19da82(0x2d0)]=_0x5dcb89,this[_0x19da82(0x301)]=_0xb6bfeb,this[_0x19da82(0x2f2)]=_0x22e877,this[_0x19da82(0x24a)]=_0x132a3c,this['_dialogService']=_0x22c777,this[_0x19da82(0x215)]=_0x24009a,this[_0x19da82(0x281)]=_0x19bac1,this[_0x19da82(0x2f8)]=_0x8bfd8b,this['_logService']=_0x276a3c,this[_0x19da82(0x35b)]=_0x3295d5,this[_0x19da82(0x305)](),this[_0x19da82(0x2bf)](),this[_0x19da82(0x292)]());}[_0x16be13(0x32f)](){var _0xdd3b46=_0x16be13;this[_0xdd3b46(0x2ae)]['open']({'id':A,'title':{'title':this[_0xdd3b46(0x2f8)]['t']('mcpConfig.title')},'children':{'label':'MCPConfigPanel'},'width':0x1e0,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x53bf5b=_0xdd3b46;this[_0x53bf5b(0x2ae)][_0x53bf5b(0x223)](A);}});}['getCurrentConfig'](){return this['_mcpCoreConfig$']['value'];}[_0x16be13(0x292)](){var _0x5028cc=_0x16be13;this[_0x5028cc(0x2f3)](this['_componentManager']['register'](_0x5028cc(0x247),this[_0x5028cc(0x227)]()));}[_0x16be13(0x227)](){var _0x45e003=_0x16be13;return v['connectInjector'](()=>{var _0x55fd84=_0x7f10,_0x151339,_0x3a10a9;return o[_0x55fd84(0x2c7)](B,{'config':this[_0x55fd84(0x34f)][_0x55fd84(0x238)],'mcpCoreConfig':this[_0x55fd84(0x340)][_0x55fd84(0x238)],'onSave':this[_0x55fd84(0x354)],'loading':this[_0x55fd84(0x2bd)][_0x55fd84(0x238)],'connectionStatus$':(_0x151339=this['_mcpConnectionController'])==null?void 0x0:_0x151339[_0x55fd84(0x2da)],'connectionError$':(_0x3a10a9=this[_0x55fd84(0x35b)])==null?void 0x0:_0x3a10a9[_0x55fd84(0x249)]});},this[_0x45e003(0x2d0)]);}['_initConfigSync'](){var _0x299920=_0x16be13;this[_0x299920(0x2f3)](this['_configService'][_0x299920(0x2cf)](s['MCP_PLUGIN_CONFIG_KEY'])[_0x299920(0x2fb)](_0x1a02cb=>{var _0x373478=_0x299920;this[_0x373478(0x340)][_0x373478(0x257)](_0x1a02cb||{});}));const _0x4da551=this[_0x299920(0x2f2)][_0x299920(0x1f0)](s['MCP_PLUGIN_CONFIG_KEY']);this[_0x299920(0x340)][_0x299920(0x257)](_0x4da551||{}),this[_0x299920(0x2f3)](this['_configService'][_0x299920(0x2cf)](k)[_0x299920(0x2fb)](_0xd5fd62=>{var _0x220865=_0x299920;this[_0x220865(0x34f)]['next'](_0xd5fd62||{});}));const _0xd3be31=this[_0x299920(0x2f2)][_0x299920(0x1f0)](k);this['_config$']['next'](_0xd3be31||{});}async[_0x16be13(0x2bf)](){var _0x355480=_0x16be13;const _0x5a54f3=await this[_0x355480(0x24a)][_0x355480(0x23b)](w);if(_0x5a54f3){const _0x150031={...this[_0x355480(0x340)][_0x355480(0x238)],'apiKey':_0x5a54f3};this[_0x355480(0x2f2)][_0x355480(0x30e)](s[_0x355480(0x36a)],_0x150031),this[_0x355480(0x340)][_0x355480(0x257)](_0x150031);}}async['_validateConfig'](_0x4ad894){var _0x58dfc4=_0x16be13;if(!_0x4ad894[_0x58dfc4(0x209)]||_0x4ad894[_0x58dfc4(0x209)][_0x58dfc4(0x252)]()[_0x58dfc4(0x2b6)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x58dfc4(0x2f8)]['t'](_0x58dfc4(0x2fd))};if(_0x4ad894[_0x58dfc4(0x209)][_0x58dfc4(0x252)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x58dfc4(0x2f8)]['t'](_0x58dfc4(0x26b))};try{const _0x59e733=await this[_0x58dfc4(0x2d0)][_0x58dfc4(0x334)](s['MCPConnectionController'])[_0x58dfc4(0x269)](_0x4ad894[_0x58dfc4(0x209)]['trim']());return _0x59e733[_0x58dfc4(0x211)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x59e733['error']||this[_0x58dfc4(0x2f8)]['t'](_0x58dfc4(0x23f))};}catch(_0x34d2d7){return console['warn'](_0x58dfc4(0x225),_0x34d2d7),{'isValid':!0x0};}}},exports['MCPConfigUIController']=pe([p(0x0,u[_0x16be13(0x322)](u[_0x16be13(0x295)])),p(0x1,v[_0x16be13(0x30d)]),p(0x2,u['IConfigService']),p(0x3,u[_0x16be13(0x221)]),p(0x4,v['IDialogService']),p(0x5,v[_0x16be13(0x326)]),p(0x6,u[_0x16be13(0x322)](v['ComponentManager'])),p(0x7,u[_0x16be13(0x322)](u['LocaleService'])),p(0x8,u[_0x16be13(0x339)]),p(0x9,u[_0x16be13(0x322)](s['MCPConnectionController']))],exports[_0x16be13(0x2f4)]);const b={'id':_0x16be13(0x208),'type':u[_0x16be13(0x22c)][_0x16be13(0x1fb)],'handler':async(_0x474cc8,_0xe07f1)=>(_0x474cc8['get'](exports[_0x16be13(0x2f4)])[_0x16be13(0x32f)](),!0x0)};function H(_0x159886,_0x1bfab6){var _0x47ede8=_0x16be13;switch(_0x159886){case s[_0x47ede8(0x21c)][_0x47ede8(0x22d)]:return _0x1bfab6===s[_0x47ede8(0x2dc)]['MISSING_API_KEY']?_0x47ede8(0x276):_0x47ede8(0x338);case s[_0x47ede8(0x21c)][_0x47ede8(0x314)]:return _0x47ede8(0x264);case s['MCPConnectionStatus'][_0x47ede8(0x274)]:return _0x47ede8(0x232);case s['MCPConnectionStatus'][_0x47ede8(0x2db)]:switch(_0x1bfab6){case s[_0x47ede8(0x2dc)][_0x47ede8(0x260)]:return _0x47ede8(0x29e);case s['MCPConnectionError']['SESSION_ID_OCCUPIED']:return _0x47ede8(0x22a);case s[_0x47ede8(0x2dc)][_0x47ede8(0x310)]:return _0x47ede8(0x235);case s[_0x47ede8(0x2dc)][_0x47ede8(0x218)]:return _0x47ede8(0x366);default:return _0x47ede8(0x273);}case s[_0x47ede8(0x21c)][_0x47ede8(0x2a7)]:return'mcpStatus.retrying';default:return'mcpStatus.unknown';}}function he(_0x289f4e,_0x1d3857,_0x53d9a7){var _0x925078=_0x16be13;const _0x4b2fb=H(_0x289f4e,_0x1d3857),_0x493091=_0x53d9a7['t'](_0x4b2fb);return _0x289f4e===s['MCPConnectionStatus'][_0x925078(0x22d)]&&_0x1d3857===s[_0x925078(0x2dc)]['MISSING_API_KEY']?_0x493091+_0x925078(0x36e)+_0x53d9a7['t'](_0x925078(0x266)):_0x289f4e===s[_0x925078(0x21c)][_0x925078(0x274)]?''+_0x493091:_0x289f4e===s[_0x925078(0x21c)]['DISCONNECTED']||_0x289f4e===s['MCPConnectionStatus'][_0x925078(0x2db)]?_0x493091+_0x925078(0x36e)+_0x53d9a7['t'](_0x925078(0x32c)):_0x493091;}function me(_0x3a8514){var _0x295516=_0x16be13;switch(_0x3a8514){case s['MCPConnectionStatus']['CONNECTED']:return _0x295516(0x2c2);case s[_0x295516(0x21c)][_0x295516(0x314)]:case s[_0x295516(0x21c)][_0x295516(0x2a7)]:return'univer-text-yellow-500';case s[_0x295516(0x21c)][_0x295516(0x2db)]:case s['MCPConnectionStatus'][_0x295516(0x22d)]:return'univer-text-red-500';default:return'univer-text-gray-500';}}function q(_0x2b3897){var _0x460267=_0x16be13;const {status$:_0x236a1c,error$:_0x4b60ca,onConfigure:_0x6c9ae8}=_0x2b3897,_0x5a256d=v[_0x460267(0x36d)](_0x236a1c,s[_0x460267(0x21c)][_0x460267(0x22d)]),_0x2622e1=v[_0x460267(0x36d)](_0x4b60ca,s[_0x460267(0x2dc)][_0x460267(0x272)]),_0xb4a1a9=v[_0x460267(0x30f)](u['LocaleService']),_0xc76b2c=_0x5a256d===s[_0x460267(0x21c)][_0x460267(0x274)],_0x36c64c=_0x5a256d===s[_0x460267(0x21c)][_0x460267(0x314)]||_0x5a256d===s[_0x460267(0x21c)][_0x460267(0x2a7)],_0x4724c0=_0xb4a1a9['t'](H(_0x5a256d,_0x2622e1)),_0x5c9f1b=he(_0x5a256d,_0x2622e1,_0xb4a1a9),_0x1194e9=me(_0x5a256d),_0x3d0417=_0xc76b2c?o[_0x460267(0x2c7)](V,{}):o[_0x460267(0x2c7)](F,{}),_0x80662a=d['useCallback'](()=>{_0x6c9ae8&&_0x6c9ae8();},[_0xc76b2c,_0x36c64c,_0x6c9ae8]);function _0x56cb52(){var _0x4a098b=_0x460267;return o[_0x4a098b(0x36c)](_0x4a098b(0x2b9),{'className':x[_0x4a098b(0x241)](_0x4a098b(0x302),_0x6c9ae8&&_0x4a098b(0x2a4)),'onClick':_0x6c9ae8?_0x80662a:void 0x0,'children':[o[_0x4a098b(0x2c7)]('div',{'className':x[_0x4a098b(0x241)](_0x4a098b(0x270),_0x1194e9),'children':_0x3d0417}),o['jsx'](_0x4a098b(0x2b9),{'className':_0x4a098b(0x263),'children':_0x4724c0})]});}return o[_0x460267(0x2c7)](x[_0x460267(0x240)],{'title':_0x5c9f1b,'placement':_0x460267(0x2b1),'children':_0x56cb52()});}var xe=Object[_0x16be13(0x277)],Pe=(_0x4d62f2,_0x26f6ee,_0xba9ca8,_0x4793bd)=>{for(var _0x57da02=_0x4793bd>0x1?void 0x0:_0x4793bd?xe(_0x26f6ee,_0xba9ca8):_0x26f6ee,_0x289d3f=_0x4d62f2['length']-0x1,_0x1df0d5;_0x289d3f>=0x0;_0x289d3f--)(_0x1df0d5=_0x4d62f2[_0x289d3f])&&(_0x57da02=_0x1df0d5(_0x57da02)||_0x57da02);return _0x57da02;},O=(_0x47b0d3,_0x147e98)=>(_0x3357d4,_0xf7f51f)=>_0x147e98(_0x3357d4,_0xf7f51f,_0x47b0d3);exports[_0x16be13(0x286)]=class extends u[_0x16be13(0x224)]{constructor(_0x4e6148,_0x4ef72c,_0x500792){var _0x1006a1=_0x16be13;super(),this[_0x1006a1(0x2d0)]=_0x4e6148,this[_0x1006a1(0x228)]=_0x4ef72c,this[_0x1006a1(0x301)]=_0x500792,this[_0x1006a1(0x217)]();}['_initStatusComponent'](){var _0x3e79bc=_0x16be13;this[_0x3e79bc(0x2f3)](this[_0x3e79bc(0x301)][_0x3e79bc(0x26c)](v[_0x3e79bc(0x268)][_0x3e79bc(0x371)],()=>v[_0x3e79bc(0x26e)](Ie({'status$':this['_connectionController'][_0x3e79bc(0x2da)],'error$':this[_0x3e79bc(0x228)][_0x3e79bc(0x249)],'onConfigure':()=>this[_0x3e79bc(0x24d)]()}),this[_0x3e79bc(0x2d0)])));}['_handleConfigure'](){var _0x4f0f75=_0x16be13;this[_0x4f0f75(0x2d0)][_0x4f0f75(0x334)](exports[_0x4f0f75(0x2f4)])['showConfigPanel']();}},exports[_0x16be13(0x286)]=Pe([O(0x0,u[_0x16be13(0x322)](u['Injector'])),O(0x1,u['Inject'](s[_0x16be13(0x32b)])),O(0x2,v['IUIPartsService'])],exports[_0x16be13(0x286)]);function Ie(_0x5dc85b){const {status$:_0xa66a32,error$:_0x4e334b,onConfigure:_0x4cf047}=_0x5dc85b;return function(){var _0x1afdd9=_0x7f10;return o[_0x1afdd9(0x2c7)](q,{'status$':_0xa66a32,'error$':_0x4e334b,'onConfigure':_0x4cf047});};}function Se(_0x44b90f){var _0x24f6fc=_0x16be13;return{'id':b['id'],'type':v[_0x24f6fc(0x300)][_0x24f6fc(0x25b)],'icon':_0x24f6fc(0x288),'title':_0x24f6fc(0x1f3),'tooltip':_0x24f6fc(0x1f3)};}const _e={[v['RibbonStartGroup'][_0x16be13(0x242)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Se}}};var ye=Object[_0x16be13(0x277)],Me=(_0x4a1b8f,_0x32e3f4,_0x40d601,_0x31e515)=>{var _0x235026=_0x16be13;for(var _0x9681ce=_0x31e515>0x1?void 0x0:_0x31e515?ye(_0x32e3f4,_0x40d601):_0x32e3f4,_0x5aebb9=_0x4a1b8f[_0x235026(0x2b6)]-0x1,_0x577f18;_0x5aebb9>=0x0;_0x5aebb9--)(_0x577f18=_0x4a1b8f[_0x5aebb9])&&(_0x9681ce=_0x577f18(_0x9681ce)||_0x9681ce);return _0x9681ce;},R=(_0x212b8a,_0x4ac05b)=>(_0x185d01,_0x59a0ca)=>_0x4ac05b(_0x185d01,_0x59a0ca,_0x212b8a);exports[_0x16be13(0x1f6)]=class extends u[_0x16be13(0x224)]{constructor(_0x5432d7,_0x33794c){var _0x4c9138=_0x16be13;super(),this['_commandService']=_0x5432d7,this[_0x4c9138(0x265)]=_0x33794c,this['_initializeCommands'](),this[_0x4c9138(0x35c)]();}[_0x16be13(0x258)](){var _0x2ee13c=_0x16be13;[b][_0x2ee13c(0x234)](_0x38e434=>{var _0x129d84=_0x2ee13c;this[_0x129d84(0x2f3)](this[_0x129d84(0x2ac)][_0x129d84(0x2a8)](_0x38e434));});}['_initializeMenus'](){var _0x233cac=_0x16be13;this[_0x233cac(0x265)][_0x233cac(0x2fc)](_e);}},exports[_0x16be13(0x1f6)]=Me([R(0x0,u[_0x16be13(0x36b)]),R(0x1,v[_0x16be13(0x372)])],exports[_0x16be13(0x1f6)]);const Ee={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x16be13(0x24e),'connected':_0x16be13(0x2a2),'failed':_0x16be13(0x2ca),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','missingApiKey':_0x16be13(0x22f),'invalidApiKey':_0x16be13(0x216),'sessionOccupied':_0x16be13(0x2ba),'networkError':_0x16be13(0x34d),'maxRetriesExceeded':_0x16be13(0x318),'clickToConnect':_0x16be13(0x27c),'clickToConfigure':_0x16be13(0x1fa)},'mcpConfig':{'title':_0x16be13(0x2bb),'description':_0x16be13(0x23e),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x16be13(0x361),'apiKeyHint':_0x16be13(0x298),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x16be13(0x2bc),'connectionInfo':_0x16be13(0x2d5),'serverEndpoint':_0x16be13(0x32e),'sessionId':_0x16be13(0x24c),'maxRetries':_0x16be13(0x325),'save':_0x16be13(0x2d9),'saving':_0x16be13(0x30a),'note1':_0x16be13(0x30c),'note2':_0x16be13(0x347),'configSaved':_0x16be13(0x319),'configError':_0x16be13(0x28f),'apiApplyInfo':{'title':_0x16be13(0x2e9),'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':_0x16be13(0x33e),'getStarted':_0x16be13(0x2ea)},'validation':{'apiKeyRequired':_0x16be13(0x357),'apiKeyTooShort':_0x16be13(0x2d8),'invalidConfig':_0x16be13(0x2ff),'invalidApiKey':_0x16be13(0x2cd)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x16be13(0x337),'connected':_0x16be13(0x28b),'failed':_0x16be13(0x283),'retrying':_0x16be13(0x2ab)},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x16be13(0x26f),'networkError':_0x16be13(0x35f),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},Ne={'mcpStatus':{'disconnected':_0x16be13(0x2ec),'connecting':_0x16be13(0x2ad),'connected':_0x16be13(0x2c6),'failed':_0x16be13(0x299),'retrying':_0x16be13(0x290),'unknown':'MCP\x20状态未知','missingApiKey':_0x16be13(0x219),'invalidApiKey':'MCP:\x20无效的\x20API\x20密钥','sessionOccupied':_0x16be13(0x27e),'networkError':_0x16be13(0x2d1),'maxRetriesExceeded':_0x16be13(0x278),'clickToConnect':_0x16be13(0x22e),'clickToConfigure':_0x16be13(0x2e4)},'mcpConfig':{'title':_0x16be13(0x24f),'description':_0x16be13(0x1fd),'apiKey':_0x16be13(0x237),'apiKeyPlaceholder':_0x16be13(0x1fc),'apiKeyHint':_0x16be13(0x2c4),'enableAuth':'启用身份验证','enableAuthHint':_0x16be13(0x370),'connectionInfo':_0x16be13(0x2b2),'serverEndpoint':'服务器端点','sessionId':'会话ID','maxRetries':_0x16be13(0x25a),'save':_0x16be13(0x323),'saving':_0x16be13(0x297),'note1':_0x16be13(0x289),'note2':_0x16be13(0x203),'configSaved':_0x16be13(0x333),'configError':_0x16be13(0x206),'apiApplyInfo':{'title':_0x16be13(0x2b7),'description':_0x16be13(0x259),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x16be13(0x1ff)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x16be13(0x231),'invalidConfig':_0x16be13(0x2d4),'invalidApiKey':_0x16be13(0x207)},'connectionStatus':{'disconnected':_0x16be13(0x2de),'connecting':'连接中...','connected':_0x16be13(0x2af),'failed':_0x16be13(0x25f),'retrying':'重连中...'},'connectionError':{'missingApiKey':'需要\x20API\x20密钥才能连接','invalidApiKey':_0x16be13(0x2c8),'sessionOccupied':_0x16be13(0x351),'networkError':_0x16be13(0x246),'maxRetriesExceeded':_0x16be13(0x29a)}}};var be=Object['defineProperty'],je=Object['getOwnPropertyDescriptor'],we=(_0x4f761f,_0x21371a,_0x25c0bb)=>_0x21371a in _0x4f761f?be(_0x4f761f,_0x21371a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25c0bb}):_0x4f761f[_0x21371a]=_0x25c0bb,Ae=(_0x300067,_0x5bf7a6,_0x2638ff,_0x4ceafc)=>{var _0x556f13=_0x16be13;for(var _0x5b3b01=_0x4ceafc>0x1?void 0x0:_0x4ceafc?je(_0x5bf7a6,_0x2638ff):_0x5bf7a6,_0x78b792=_0x300067[_0x556f13(0x2b6)]-0x1,_0x3b88f1;_0x78b792>=0x0;_0x78b792--)(_0x3b88f1=_0x300067[_0x78b792])&&(_0x5b3b01=_0x3b88f1(_0x5b3b01)||_0x5b3b01);return _0x5b3b01;},y=(_0x58f5cb,_0x4955f3)=>(_0x2ed414,_0x289bd6)=>_0x4955f3(_0x2ed414,_0x289bd6,_0x58f5cb),Oe=(_0xd505fa,_0x331007,_0x284553)=>we(_0xd505fa,_0x331007+'',_0x284553);exports['UniverMCPUIPlugin']=class extends u[_0x16be13(0x35d)]{constructor(_0x39d696=T,_0x1a7743,_0x1dd86a,_0x38e524,_0x513922,_0x5c5443){var _0x1eba7d=_0x16be13;super(),this[_0x1eba7d(0x275)]=_0x39d696,this[_0x1eba7d(0x2d0)]=_0x1a7743,this[_0x1eba7d(0x2f2)]=_0x1dd86a,this['_uiPartsService']=_0x38e524,this[_0x1eba7d(0x24a)]=_0x513922,this['_localeService']=_0x5c5443;const {..._0x3e367b}=u['merge']({},T,this[_0x1eba7d(0x275)]);this[_0x1eba7d(0x2f2)][_0x1eba7d(0x30e)](k,_0x3e367b);}async[_0x16be13(0x26a)](){var _0x536e2b=_0x16be13;[[exports[_0x536e2b(0x286)]],[exports['MCPConfigUIController']],[exports[_0x536e2b(0x1f6)]]][_0x536e2b(0x234)](_0x20ae7b=>this['_injector'][_0x536e2b(0x285)](_0x20ae7b)),this[_0x536e2b(0x2d0)][_0x536e2b(0x334)](exports[_0x536e2b(0x286)]),this[_0x536e2b(0x2d0)]['get'](exports[_0x536e2b(0x2f4)]),this[_0x536e2b(0x2d0)][_0x536e2b(0x334)](exports[_0x536e2b(0x1f6)]);}},Oe(exports['UniverMCPUIPlugin'],'pluginName',_0x16be13(0x1f7)),exports['UniverMCPUIPlugin']=Ae([u[_0x16be13(0x33b)](s['UniverMCPPlugin']),y(0x1,u['Inject'](u['Injector'])),y(0x2,u[_0x16be13(0x25e)]),y(0x3,v[_0x16be13(0x30d)]),y(0x4,u[_0x16be13(0x221)]),y(0x5,u['Inject'](u[_0x16be13(0x20f)]))],exports['UniverMCPUIPlugin']),exports[_0x16be13(0x247)]=B,exports[_0x16be13(0x27d)]=q,exports[_0x16be13(0x212)]=b,exports['enUS']=Ee,exports[_0x16be13(0x261)]=Ne;
|
|
1
|
+
'use strict';var _0x28e84b=_0x385d;(function(_0x5006c6,_0x118e1d){var _0x2ea4ce=_0x385d,_0x6757a2=_0x5006c6();while(!![]){try{var _0x189c2f=-parseInt(_0x2ea4ce(0x1bd))/0x1+parseInt(_0x2ea4ce(0x261))/0x2*(parseInt(_0x2ea4ce(0x1c6))/0x3)+-parseInt(_0x2ea4ce(0x14e))/0x4+parseInt(_0x2ea4ce(0x11f))/0x5+parseInt(_0x2ea4ce(0x17a))/0x6*(-parseInt(_0x2ea4ce(0x12d))/0x7)+parseInt(_0x2ea4ce(0x1b0))/0x8+parseInt(_0x2ea4ce(0x25a))/0x9;if(_0x189c2f===_0x118e1d)break;else _0x6757a2['push'](_0x6757a2['shift']());}catch(_0x53b0a7){_0x6757a2['push'](_0x6757a2['shift']());}}}(_0x3616,0x29082));var le=Object[_0x28e84b(0x183)],ue=(_0x30366e,_0x1360eb,_0x22acec)=>_0x1360eb in _0x30366e?le(_0x30366e,_0x1360eb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22acec}):_0x30366e[_0x1360eb]=_0x22acec,y=(_0x2a21b2,_0x1590a4,_0x397b1e)=>ue(_0x2a21b2,typeof _0x1590a4!='symbol'?_0x1590a4+'':_0x1590a4,_0x397b1e);Object[_0x28e84b(0x183)](exports,Symbol['toStringTag'],{'value':_0x28e84b(0x246)});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 _0x52f298=_0x28e84b;return g=Object[_0x52f298(0x1db)]||function(_0x25ce92){var _0x5649b8=_0x52f298;for(var _0x1bd08e,_0x456b5e=0x1,_0xecb1a0=arguments[_0x5649b8(0x1e3)];_0x456b5e<_0xecb1a0;_0x456b5e++){_0x1bd08e=arguments[_0x456b5e];for(var _0x497926 in _0x1bd08e)Object['prototype']['hasOwnProperty']['call'](_0x1bd08e,_0x497926)&&(_0x25ce92[_0x497926]=_0x1bd08e[_0x497926]);}return _0x25ce92;},g[_0x52f298(0x163)](this,arguments);},ve=function(_0x4ea1e8,_0x3dcd4a){var _0x27c741=_0x28e84b,_0x40b664={};for(var _0x1bea54 in _0x4ea1e8)Object[_0x27c741(0x132)]['hasOwnProperty'][_0x27c741(0x244)](_0x4ea1e8,_0x1bea54)&&_0x3dcd4a[_0x27c741(0x232)](_0x1bea54)<0x0&&(_0x40b664[_0x1bea54]=_0x4ea1e8[_0x1bea54]);if(_0x4ea1e8!=null&&typeof Object[_0x27c741(0x12f)]==_0x27c741(0x18f)){for(var _0x43d669=0x0,_0x1bea54=Object[_0x27c741(0x12f)](_0x4ea1e8);_0x43d669<_0x1bea54['length'];_0x43d669++)_0x3dcd4a[_0x27c741(0x232)](_0x1bea54[_0x43d669])<0x0&&Object[_0x27c741(0x132)]['propertyIsEnumerable'][_0x27c741(0x244)](_0x4ea1e8,_0x1bea54[_0x43d669])&&(_0x40b664[_0x1bea54[_0x43d669]]=_0x4ea1e8[_0x1bea54[_0x43d669]]);}return _0x40b664;},I=d['forwardRef'](function(_0x593e2c,_0x34d339){var _0x30e268=_0x28e84b,_0xeab97e=_0x593e2c['icon'],_0x420d30=_0x593e2c['id'],_0x17a8df=_0x593e2c[_0x30e268(0x262)],_0x5d0ba6=_0x593e2c[_0x30e268(0x1cd)],_0x536b57=ve(_0x593e2c,['icon','id',_0x30e268(0x262),_0x30e268(0x1cd)]),_0x14c49b=_0x30e268(0x157)[_0x30e268(0x23e)](_0x420d30,'\x20')[_0x30e268(0x23e)](_0x17a8df||'')['trim'](),_0x1ab359=d[_0x30e268(0x210)]('_'[_0x30e268(0x23e)](ge()));return B(_0xeab97e,''[_0x30e268(0x23e)](_0x420d30),{'defIds':_0xeab97e['defIds'],'idSuffix':_0x1ab359[_0x30e268(0x17c)]},g({'ref':_0x34d339,'className':_0x14c49b},_0x536b57),_0x5d0ba6);});function B(_0x3e378c,_0x415250,_0x2978d2,_0x19ed4b,_0x1b51dd){var _0x3bfacb=_0x28e84b;return d[_0x3bfacb(0x26a)](_0x3e378c[_0x3bfacb(0x247)],g(g({'key':_0x415250},de(_0x3e378c,_0x2978d2,_0x1b51dd)),_0x19ed4b),(Ce(_0x3e378c,_0x2978d2)[_0x3bfacb(0x217)]||[])['map'](function(_0x218c8b,_0x57722f){var _0x3d1311=_0x3bfacb;return B(_0x218c8b,''[_0x3d1311(0x23e)](_0x415250,'-')[_0x3d1311(0x23e)](_0x3e378c[_0x3d1311(0x247)],'-')[_0x3d1311(0x23e)](_0x57722f),_0x2978d2,void 0x0,_0x1b51dd);}));}function de(_0x431a44,_0x4a6d0a,_0x5f1c5c){var _0x4c7e66=_0x28e84b,_0x3aa33f=g({},_0x431a44[_0x4c7e66(0x1f1)]);_0x5f1c5c!=null&&_0x5f1c5c[_0x4c7e66(0x279)]&&_0x3aa33f[_0x4c7e66(0x24f)]===_0x4c7e66(0x279)&&(_0x3aa33f[_0x4c7e66(0x24f)]=_0x5f1c5c[_0x4c7e66(0x279)]),_0x431a44['tag']===_0x4c7e66(0x11c)&&_0x3aa33f['id']&&(_0x3aa33f['id']=_0x3aa33f['id']+_0x4a6d0a[_0x4c7e66(0x23c)]),Object[_0x4c7e66(0x113)](_0x3aa33f)['forEach'](function(_0x315b4b){var _0x3746dd=_0x4c7e66,_0x59848e=_0x315b4b[0x0],_0x437113=_0x315b4b[0x1];_0x59848e===_0x3746dd(0x11c)&&typeof _0x437113==_0x3746dd(0x1ea)&&(_0x3aa33f[_0x59848e]=_0x437113[_0x3746dd(0x1f4)](/url\(#(.*)\)/,'url(#$1'[_0x3746dd(0x23e)](_0x4a6d0a[_0x3746dd(0x23c)],')')));});var _0x394c49=_0x4a6d0a[_0x4c7e66(0x162)];return!_0x394c49||_0x394c49[_0x4c7e66(0x1e3)]===0x0||(_0x431a44[_0x4c7e66(0x247)]===_0x4c7e66(0x21c)&&_0x3aa33f[_0x4c7e66(0x12b)]&&(_0x3aa33f['xlink:href']=_0x3aa33f['xlink:href']+_0x4a6d0a['idSuffix']),Object[_0x4c7e66(0x113)](_0x3aa33f)[_0x4c7e66(0x28d)](function(_0xc4f90a){var _0x280629=_0x4c7e66,_0x146b85=_0xc4f90a[0x0],_0x356efc=_0xc4f90a[0x1];typeof _0x356efc==_0x280629(0x1ea)&&(_0x3aa33f[_0x146b85]=_0x356efc[_0x280629(0x1f4)](/url\(#(.*)\)/,_0x280629(0x283)[_0x280629(0x23e)](_0x4a6d0a['idSuffix'],')')));})),_0x3aa33f;}function Ce(_0x97b0b8,_0x4efccf){var _0x4d3e77=_0x28e84b,_0x3a8d29,_0x5d0bb2=_0x4efccf[_0x4d3e77(0x162)];return!_0x5d0bb2||_0x5d0bb2[_0x4d3e77(0x1e3)]===0x0?_0x97b0b8:_0x97b0b8[_0x4d3e77(0x247)]==='defs'&&(!((_0x3a8d29=_0x97b0b8['children'])===null||_0x3a8d29===void 0x0)&&_0x3a8d29[_0x4d3e77(0x1e3)])?g(g({},_0x97b0b8),{'children':_0x97b0b8['children'][_0x4d3e77(0x15f)](function(_0x4c8ff5){var _0x1c4753=_0x4d3e77;return typeof _0x4c8ff5['attrs']['id']==_0x1c4753(0x1ea)&&_0x5d0bb2&&_0x5d0bb2[_0x1c4753(0x15c)](_0x4c8ff5[_0x1c4753(0x1f1)]['id'])?g(g({},_0x4c8ff5),{'attrs':g(g({},_0x4c8ff5[_0x1c4753(0x1f1)]),{'id':_0x4c8ff5[_0x1c4753(0x1f1)]['id']+_0x4efccf[_0x1c4753(0x23c)]})}):_0x4c8ff5;})}):_0x97b0b8;}function ge(){var _0x363e9f=_0x28e84b;return Math['random']()[_0x363e9f(0x1ec)](0x24)[_0x363e9f(0x137)](0x2,0x8);}I['displayName']=_0x28e84b(0x21b);var fe={'tag':_0x28e84b(0x11a),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x28e84b(0x127),'viewBox':'0\x200\x2016\x2016','width':_0x28e84b(0x256),'height':_0x28e84b(0x256)},'children':[{'tag':_0x28e84b(0x218),'attrs':{'fill':_0x28e84b(0x22f),'d':_0x28e84b(0x22b),'fillRule':'evenodd','clipRule':'evenodd'}}]},V=d[_0x28e84b(0x1dc)](function(_0x41b9cd,_0x4c1a27){var _0x2af814=_0x28e84b;return d[_0x2af814(0x26a)](I,Object[_0x2af814(0x1db)]({},_0x41b9cd,{'id':_0x2af814(0x129),'ref':_0x4c1a27,'icon':fe}));});V[_0x28e84b(0x219)]=_0x28e84b(0x1b1);var pe={'tag':_0x28e84b(0x11a),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x28e84b(0x204),'width':_0x28e84b(0x256),'height':_0x28e84b(0x256)},'children':[{'tag':_0x28e84b(0x218),'attrs':{'stroke':_0x28e84b(0x22f),'d':_0x28e84b(0x17e),'strokeLinecap':_0x28e84b(0x1d0),'strokeLinejoin':_0x28e84b(0x1d0),'strokeWidth':1.33}},{'tag':_0x28e84b(0x218),'attrs':{'stroke':_0x28e84b(0x22f),'d':'M5.21243\x2012.287L11.8791\x205.62036','strokeLinecap':'round','strokeLinejoin':_0x28e84b(0x1d0),'strokeWidth':1.33}}]},F=d['forwardRef'](function(_0x30b82f,_0x239cd7){var _0x2f3ffd=_0x28e84b;return d[_0x2f3ffd(0x26a)](I,Object[_0x2f3ffd(0x1db)]({},_0x30b82f,{'id':_0x2f3ffd(0x28b),'ref':_0x239cd7,'icon':pe}));});F[_0x28e84b(0x219)]=_0x28e84b(0x21d);var he={'tag':_0x28e84b(0x11a),'attrs':{'xmlns':_0x28e84b(0x222),'fill':'none','viewBox':_0x28e84b(0x1d7),'width':'1em','height':'1em'},'children':[{'tag':_0x28e84b(0x218),'attrs':{'fill':_0x28e84b(0x22f),'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':_0x28e84b(0x218),'attrs':{'fill':_0x28e84b(0x22f),'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':_0x28e84b(0x218),'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':_0x28e84b(0x117),'clipRule':_0x28e84b(0x117)}}]},H=d[_0x28e84b(0x1dc)](function(_0x170e4b,_0x40b209){var _0x448dd1=_0x28e84b;return d[_0x448dd1(0x26a)](I,Object['assign']({},_0x170e4b,{'id':_0x448dd1(0x136),'ref':_0x40b209,'icon':he}));});H['displayName']=_0x28e84b(0x16d);var me={'tag':'svg','attrs':{'xmlns':_0x28e84b(0x222),'fill':_0x28e84b(0x127),'viewBox':'0\x200\x2016\x2016','width':_0x28e84b(0x256),'height':_0x28e84b(0x256)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x28e84b(0x218),'attrs':{'stroke':_0x28e84b(0x22f),'d':_0x28e84b(0x158),'strokeLinecap':_0x28e84b(0x1d0),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x28e84b(0x260),'attrs':{},'children':[{'tag':_0x28e84b(0x142),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x28e84b(0x218),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},q=d[_0x28e84b(0x1dc)](function(_0x16e4f6,_0x2e964f){var _0x583027=_0x28e84b;return d[_0x583027(0x26a)](I,Object['assign']({},_0x16e4f6,{'id':_0x583027(0x1ad),'ref':_0x2e964f,'icon':me}));});q[_0x28e84b(0x219)]=_0x28e84b(0x282);var xe={'tag':_0x28e84b(0x11a),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x28e84b(0x250),'width':'1em','height':_0x28e84b(0x256)},'children':[{'tag':'g','attrs':{'clipPath':_0x28e84b(0x161)},'children':[{'tag':'path','attrs':{'stroke':_0x28e84b(0x22f),'d':'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','strokeLinecap':'round','strokeLinejoin':_0x28e84b(0x1d0),'strokeWidth':1.2}}]},{'tag':_0x28e84b(0x260),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x28e84b(0x1b6)},'children':[{'tag':'path','attrs':{'fill':_0x28e84b(0x122),'d':_0x28e84b(0x287),'transform':_0x28e84b(0x1fb)}}]}]}],'defIds':[_0x28e84b(0x1b6)]},z=d['forwardRef'](function(_0x59ac5e,_0x4145c4){var _0xa3f1f6=_0x28e84b;return d[_0xa3f1f6(0x26a)](I,Object['assign']({},_0x59ac5e,{'id':_0xa3f1f6(0x14f),'ref':_0x4145c4,'icon':xe}));});z[_0x28e84b(0x219)]=_0x28e84b(0x264);function W(_0x6c95d4){var _0x529c9f=_0x28e84b,_0x1eec26,_0x5ceb4e;const {mcpCoreConfig:_0x4b2649,onSave:_0x5877e,loading:_0x535797=!0x1,config:_0x232f32,connectionStatus$:_0xf4beae,connectionError$:_0x8ff49c,currentApiKey$:_0x259d32,currentSessionId$:_0x3cbf16}=_0x6c95d4,_0x2f5158=v[_0x529c9f(0x1a8)](u['LocaleService']),_0x39cade=v['useObservable'](_0xf4beae,s[_0x529c9f(0x1c1)][_0x529c9f(0x141)]),_0x187622=v[_0x529c9f(0x275)](_0x8ff49c,s[_0x529c9f(0x147)][_0x529c9f(0x1a2)]),_0x462fe9=v[_0x529c9f(0x275)](_0x3cbf16,''),_0x2bc385=v['useObservable'](_0x259d32,''),[_0xd90184,_0x56b086]=d['useState'](_0x2bc385||''),_0x3a94e1=!0x0,_0xf21610=_0x232f32['showDeveloperTools']&&_0x4b2649[_0x529c9f(0x20a)]&&(_0x4b2649[_0x529c9f(0x20a)][_0x529c9f(0x15c)](_0x529c9f(0x14b))||_0x4b2649[_0x529c9f(0x20a)]['includes'](_0x529c9f(0x1cb))),_0x578674=(_0x1eec26=_0x4b2649[_0x529c9f(0x20a)])==null?void 0x0:_0x1eec26[_0x529c9f(0x15c)]('univer.plus'),_0xaa0ee3=(_0x5ceb4e=_0x4b2649[_0x529c9f(0x20a)])==null?void 0x0:_0x5ceb4e['includes'](_0x529c9f(0x1cb)),_0x19fcfa=_0x578674?'https://console.univer.plus':'https://console.univer.ai',_0x105172=_0x232f32[_0x529c9f(0x245)]&&(_0x578674||_0xaa0ee3),[_0x2c5f00,_0xdacb4]=d[_0x529c9f(0x21e)](!_0xd90184[_0x529c9f(0x1f7)]()),_0x501f79=(_0x35c48a,_0x470cf7)=>{var _0x17f3a0=_0x529c9f;if(_0x470cf7===s[_0x17f3a0(0x147)][_0x17f3a0(0x13f)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x35c48a){case s['MCPConnectionStatus'][_0x17f3a0(0x228)]:return _0x17f3a0(0x24e);case s[_0x17f3a0(0x1c1)][_0x17f3a0(0x169)]:case s[_0x17f3a0(0x1c1)][_0x17f3a0(0x125)]:return _0x17f3a0(0x171);case s[_0x17f3a0(0x1c1)][_0x17f3a0(0x19a)]:return _0x17f3a0(0x216);default:return _0x17f3a0(0x1ba);}},_0x47b1d2=(_0x681563,_0x23bdff)=>{var _0x218242=_0x529c9f;if(_0x23bdff===s[_0x218242(0x147)][_0x218242(0x13f)])return _0x218242(0x254);switch(_0x681563){case s[_0x218242(0x1c1)][_0x218242(0x228)]:return'univer-bg-green-500';case s[_0x218242(0x1c1)][_0x218242(0x169)]:case s['MCPConnectionStatus'][_0x218242(0x125)]:return _0x218242(0x139);case s['MCPConnectionStatus'][_0x218242(0x19a)]:return _0x218242(0x254);default:return _0x218242(0x252);}},_0x3efab3=_0x557834=>{var _0x4547bc=_0x529c9f;switch(_0x557834){case s['MCPConnectionStatus'][_0x4547bc(0x228)]:return _0x2f5158['t']('mcpConfig.connectionStatus.connected');case s[_0x4547bc(0x1c1)][_0x4547bc(0x169)]:return _0x2f5158['t']('mcpConfig.connectionStatus.connecting');case s[_0x4547bc(0x1c1)][_0x4547bc(0x19a)]:return _0x2f5158['t'](_0x4547bc(0x19b));case s['MCPConnectionStatus']['RETRYING']:return _0x2f5158['t'](_0x4547bc(0x131));default:return _0x2f5158['t'](_0x4547bc(0x24c));}},_0x155d9b=_0x83daca=>{var _0x5604c8=_0x529c9f;switch(_0x83daca){case s[_0x5604c8(0x147)][_0x5604c8(0x13f)]:return _0x2f5158['t'](_0x5604c8(0x165));case s[_0x5604c8(0x147)][_0x5604c8(0x289)]:return _0x2f5158['t']('mcpConfig.connectionError.sessionOccupied');case s[_0x5604c8(0x147)][_0x5604c8(0x160)]:return _0x2f5158['t'](_0x5604c8(0x188));case s[_0x5604c8(0x147)][_0x5604c8(0x1b2)]:return _0x2f5158['t'](_0x5604c8(0x25d));default:return'';}},_0x907802=d[_0x529c9f(0x27f)](()=>{var _0x153ebf=_0x529c9f;const _0x10856e={..._0x4b2649,'apiKey':_0xd90184[_0x153ebf(0x1f7)](),'enableAuth':_0x3a94e1};_0x5877e(_0x10856e);},[_0x4b2649,_0xd90184,_0x3a94e1,_0x5877e]),_0x1f6892=_0xd90184['trim']()[_0x529c9f(0x1e3)]>0x0;return i[_0x529c9f(0x191)](_0x529c9f(0x226),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[i[_0x529c9f(0x144)](_0x529c9f(0x226),{'className':_0x529c9f(0x286),'children':i[_0x529c9f(0x191)](_0x529c9f(0x226),{'className':_0x529c9f(0x1ed),'children':[i[_0x529c9f(0x144)]('div',{'className':_0x529c9f(0x152),'children':i['jsx']('span',{'className':_0x529c9f(0x16a),'children':'⚙'})}),i[_0x529c9f(0x144)](_0x529c9f(0x226),{'children':i['jsx']('p',{'className':_0x529c9f(0x1f3),'children':_0x2f5158['t'](_0x529c9f(0x154))})})]})}),i[_0x529c9f(0x191)](_0x529c9f(0x226),{'className':_0x529c9f(0x240),'children':[i[_0x529c9f(0x144)](_0x529c9f(0x226),{'className':'\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'+_0x501f79(_0x39cade,_0x187622)+_0x529c9f(0x16f),'children':i['jsxs'](_0x529c9f(0x226),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x529c9f(0x144)]('div',{'className':_0x529c9f(0x1b3)+_0x47b1d2(_0x39cade,_0x187622)+_0x529c9f(0x151)}),i[_0x529c9f(0x144)](_0x529c9f(0x22c),{'className':_0x529c9f(0x124),'children':_0x3efab3(_0x39cade)})]})}),_0x187622!==s[_0x529c9f(0x147)][_0x529c9f(0x1a2)]&&(_0x39cade===s[_0x529c9f(0x1c1)][_0x529c9f(0x19a)]||_0x187622===s[_0x529c9f(0x147)]['INVALID_API_KEY'])&&i[_0x529c9f(0x144)](_0x529c9f(0x226),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':i[_0x529c9f(0x191)](_0x529c9f(0x226),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[i[_0x529c9f(0x144)](_0x529c9f(0x22c),{'className':'univer-flex-shrink-0\x20univer-text-red-500','children':'⚠️'}),i[_0x529c9f(0x144)]('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x155d9b(_0x187622)})]})})]}),i['jsx'](_0x529c9f(0x226),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':i[_0x529c9f(0x191)]('div',{'className':_0x529c9f(0x1d6),'children':[i[_0x529c9f(0x191)]('div',{'className':_0x529c9f(0x17b),'children':[i[_0x529c9f(0x191)](_0x529c9f(0x12a),{'className':_0x529c9f(0x111),'children':[i['jsx']('span',{'children':'🔑'}),'\x20',_0x2f5158['t'](_0x529c9f(0x1ce)),i[_0x529c9f(0x144)](_0x529c9f(0x22c),{'className':_0x529c9f(0x1c4),'children':'*'}),_0xf21610&&i[_0x529c9f(0x144)]('a',{'href':'javascript:void(0)','onClick':()=>_0xdacb4(!0x0),'className':'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','title':_0x2f5158['t'](_0x529c9f(0x22a)),'children':i[_0x529c9f(0x144)](H,{})})]}),i[_0x529c9f(0x144)](P['Input'],{'type':_0x529c9f(0x19c),'placeholder':_0x2f5158['t']('mcpConfig.apiKeyPlaceholder'),'value':_0xd90184,'onChange':_0x56b086,'disabled':_0x535797,'autoComplete':'off'}),i['jsx']('p',{'className':_0x529c9f(0x1a0),'children':_0x2f5158['t'](_0x529c9f(0x149))})]}),_0xf21610&&_0x2c5f00&&i[_0x529c9f(0x191)]('div',{'className':_0x529c9f(0x20d),'children':[i[_0x529c9f(0x144)]('a',{'href':_0x529c9f(0x234),'onClick':()=>_0xdacb4(!0x1),'className':_0x529c9f(0x1f5),'title':_0x529c9f(0x1c7),'children':i[_0x529c9f(0x144)](F,{})}),i['jsxs'](_0x529c9f(0x226),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[i[_0x529c9f(0x144)](_0x529c9f(0x226),{'className':_0x529c9f(0x143),'children':i['jsx'](_0x529c9f(0x22c),{'className':_0x529c9f(0x1ab),'children':'🚀'})}),i[_0x529c9f(0x191)](_0x529c9f(0x226),{'className':_0x529c9f(0x26f),'children':[i[_0x529c9f(0x144)]('h4',{'className':_0x529c9f(0x187),'children':_0x2f5158['t'](_0x529c9f(0x22a))}),i[_0x529c9f(0x144)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x2f5158['t'](_0x529c9f(0x277))}),i[_0x529c9f(0x144)](_0x529c9f(0x226),{'className':_0x529c9f(0x230),'children':_0x105172&&i[_0x529c9f(0x191)]('a',{'href':_0x19fcfa,'target':'_blank','rel':_0x529c9f(0x273),'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','children':[i[_0x529c9f(0x144)](_0x529c9f(0x22c),{'children':'🤖'}),_0x2f5158['t'](_0x529c9f(0x114)),i[_0x529c9f(0x144)](_0x529c9f(0x22c),{'className':_0x529c9f(0x1cf),'children':'↗'})]})}),i[_0x529c9f(0x191)](_0x529c9f(0x226),{'className':_0x529c9f(0x225),'children':['✨','\x20',_0x2f5158['t'](_0x529c9f(0x116))]})]})]})]}),_0x232f32[_0x529c9f(0x245)]&&i[_0x529c9f(0x191)]('div',{'className':_0x529c9f(0x1a3),'children':[i[_0x529c9f(0x191)]('h4',{'className':_0x529c9f(0x263),'children':[i[_0x529c9f(0x144)](_0x529c9f(0x22c),{'children':'🔗'}),'\x20',_0x2f5158['t'](_0x529c9f(0x153))]}),i['jsxs'](_0x529c9f(0x226),{'className':'univer-space-y-4','children':[i[_0x529c9f(0x191)]('div',{'className':'univer-space-y-3','children':[i['jsx']('p',{'className':_0x529c9f(0x13a),'children':_0x2f5158['t'](_0x529c9f(0x202))}),i[_0x529c9f(0x191)](_0x529c9f(0x226),{'className':_0x529c9f(0x17b),'children':[i[_0x529c9f(0x144)](_0x529c9f(0x226),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x2f5158['t']('mcpConfig.configStepTitle')}),i['jsxs'](_0x529c9f(0x226),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[i[_0x529c9f(0x191)](_0x529c9f(0x226),{'className':_0x529c9f(0x1a7),'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'}),_0x2f5158['t'](_0x529c9f(0x1f8))]}),i[_0x529c9f(0x191)](_0x529c9f(0x226),{'className':_0x529c9f(0x1a7),'children':[i['jsx'](_0x529c9f(0x22c),{'className':_0x529c9f(0x15b),'children':'2'}),_0x2f5158['t'](_0x529c9f(0x288))]}),i['jsxs']('div',{'className':_0x529c9f(0x1a7),'children':[i[_0x529c9f(0x144)](_0x529c9f(0x22c),{'className':_0x529c9f(0x15b),'children':'3'}),_0x2f5158['t']('mcpConfig.configStep3')]})]})]})]}),i[_0x529c9f(0x191)](_0x529c9f(0x226),{'className':_0x529c9f(0x17b),'children':[i['jsx'](_0x529c9f(0x226),{'className':_0x529c9f(0x123),'children':_0x529c9f(0x20e)}),i[_0x529c9f(0x144)](_0x529c9f(0x226),{'className':_0x529c9f(0x201),'children':i[_0x529c9f(0x144)](_0x529c9f(0x215),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':'{\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='+_0x462fe9+_0x529c9f(0x25c)+(_0xd90184||_0x529c9f(0x259))+'\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}'})})]}),i['jsxs'](_0x529c9f(0x226),{'className':_0x529c9f(0x285),'children':[i[_0x529c9f(0x144)](_0x529c9f(0x226),{'className':_0x529c9f(0x123),'children':_0x2f5158['t'](_0x529c9f(0x1e1))}),i[_0x529c9f(0x191)](_0x529c9f(0x226),{'className':_0x529c9f(0x17b),'children':[i['jsxs']('div',{'className':_0x529c9f(0x1ff),'children':[i['jsx'](_0x529c9f(0x226),{'className':_0x529c9f(0x1e0)}),i[_0x529c9f(0x191)](_0x529c9f(0x226),{'className':_0x529c9f(0x266),'children':[i[_0x529c9f(0x144)](_0x529c9f(0x226),{'className':_0x529c9f(0x135),'children':_0x529c9f(0x1e2)}),i['jsx'](_0x529c9f(0x226),{'className':_0x529c9f(0x1a0),'children':_0x2f5158['t'](_0x529c9f(0x28a))})]})]}),i['jsxs'](_0x529c9f(0x226),{'className':_0x529c9f(0x1ff),'children':[i[_0x529c9f(0x144)]('div',{'className':_0x529c9f(0x1e0)}),i[_0x529c9f(0x191)](_0x529c9f(0x226),{'className':'univer-min-w-0\x20univer-flex-1','children':[i[_0x529c9f(0x144)](_0x529c9f(0x226),{'className':_0x529c9f(0x135),'children':'Authorization:'}),i[_0x529c9f(0x144)](_0x529c9f(0x226),{'className':_0x529c9f(0x1a0),'children':_0x2f5158['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),i[_0x529c9f(0x144)](P[_0x529c9f(0x231)],{'onClick':_0x907802,'disabled':!_0x1f6892||_0x535797,'className':_0x529c9f(0x1d2),'children':_0x535797?i[_0x529c9f(0x191)]('span',{'className':_0x529c9f(0x1a7),'children':[i[_0x529c9f(0x144)](_0x529c9f(0x22c),{'children':'⟲'}),_0x2f5158['t'](_0x529c9f(0x120))]}):i[_0x529c9f(0x191)](_0x529c9f(0x22c),{'className':_0x529c9f(0x1a7),'children':[i[_0x529c9f(0x144)](V,{}),_0x2f5158['t'](_0x529c9f(0x1e7))]})}),i[_0x529c9f(0x144)](_0x529c9f(0x226),{'className':_0x529c9f(0x150),'children':i[_0x529c9f(0x191)](_0x529c9f(0x226),{'className':_0x529c9f(0x1c2),'children':[i['jsx'](_0x529c9f(0x22c),{'className':_0x529c9f(0x145),'children':'💡'}),i[_0x529c9f(0x191)](_0x529c9f(0x226),{'className':_0x529c9f(0x13c),'children':[i['jsx'](_0x529c9f(0x226),{'className':'univer-font-medium','children':_0x529c9f(0x130)}),i[_0x529c9f(0x191)](_0x529c9f(0x226),{'children':['•',_0x2f5158['t']('mcpConfig.note1')]}),i['jsxs'](_0x529c9f(0x226),{'children':['•',_0x2f5158['t']('mcpConfig.note2')]})]})]})})]})})]});}const D=_0x28e84b(0x197),G={'showDeveloperTools':!0x1};var Pe=Object['getOwnPropertyDescriptor'],Se=(_0x522754,_0x2da9f4,_0x57bcdc,_0x375f2d)=>{var _0x592d9c=_0x28e84b;for(var _0x5268f9=_0x375f2d>0x1?void 0x0:_0x375f2d?Pe(_0x2da9f4,_0x57bcdc):_0x2da9f4,_0x38ef57=_0x522754[_0x592d9c(0x1e3)]-0x1,_0x34e995;_0x38ef57>=0x0;_0x38ef57--)(_0x34e995=_0x522754[_0x38ef57])&&(_0x5268f9=_0x34e995(_0x5268f9)||_0x5268f9);return _0x5268f9;},f=(_0xc71ae0,_0xefe93a)=>(_0x128404,_0x3abda7)=>_0xefe93a(_0x128404,_0x3abda7,_0xc71ae0);const A=_0x28e84b(0x265),O='mcp-config-dialog';function _0x385d(_0x27d061,_0x3ade08){var _0x3616e9=_0x3616();return _0x385d=function(_0x385ddc,_0xa6ad41){_0x385ddc=_0x385ddc-0x111;var _0x5e3d6a=_0x3616e9[_0x385ddc];return _0x5e3d6a;},_0x385d(_0x27d061,_0x3ade08);}exports['MCPConfigUIController']=class extends u[_0x28e84b(0x205)]{constructor(_0x46c024,_0x1c0d09,_0x32871e,_0x43b68b,_0x3b0b87,_0x2203f8,_0x3666fc,_0x2aa419,_0x4c247d,_0x4286f7){var _0x43d57a=_0x28e84b;super(),y(this,_0x43d57a(0x16e),new M['BehaviorSubject'](!0x1)),y(this,_0x43d57a(0x1de),new M[(_0x43d57a(0x211))]({})),y(this,'_config$',new M[(_0x43d57a(0x211))]({})),y(this,_0x43d57a(0x19e),new M[(_0x43d57a(0x211))]('')),y(this,_0x43d57a(0x23d),async _0x82954a=>{var _0xc2c41a=_0x43d57a,_0x16e9e6,_0x1a4437;this['_loading$'][_0xc2c41a(0x126)](!0x0);try{const _0x13b2b8=await this[_0xc2c41a(0x1ef)](_0x82954a);if(!_0x13b2b8[_0xc2c41a(0x1c8)]){this['_messageService']['show']({'type':P[_0xc2c41a(0x1cc)][_0xc2c41a(0x1c0)],'content':_0x13b2b8[_0xc2c41a(0x1c5)]||this[_0xc2c41a(0x1e6)]['t'](_0xc2c41a(0x1a9))});return;}_0x82954a[_0xc2c41a(0x25e)]?await this['_localStorageService'][_0xc2c41a(0x243)](A,_0x82954a['apiKey'][_0xc2c41a(0x1f7)]()):await this[_0xc2c41a(0x18b)][_0xc2c41a(0x14c)](A),this[_0xc2c41a(0x19e)]['next'](((_0x16e9e6=_0x82954a[_0xc2c41a(0x25e)])==null?void 0x0:_0x16e9e6['trim']())||''),this[_0xc2c41a(0x15d)][_0xc2c41a(0x24a)]({'Authorization':_0xc2c41a(0x25b)+((_0x1a4437=_0x82954a[_0xc2c41a(0x25e)])==null?void 0x0:_0x1a4437[_0xc2c41a(0x1f7)]())}),this[_0xc2c41a(0x24b)]['show']({'type':P[_0xc2c41a(0x1cc)][_0xc2c41a(0x164)],'content':this['_localeService']['t']('mcpConfig.configSaved')}),setTimeout(()=>{var _0x5f09c6=_0xc2c41a;this[_0x5f09c6(0x1fd)][_0x5f09c6(0x112)](O);},0x320);}catch(_0x4d9f94){this[_0xc2c41a(0x13e)][_0xc2c41a(0x1b4)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x4d9f94),this[_0xc2c41a(0x24b)]['show']({'type':P[_0xc2c41a(0x1cc)][_0xc2c41a(0x1c0)],'content':this[_0xc2c41a(0x1e6)]['t'](_0xc2c41a(0x1d1))});}finally{this[_0xc2c41a(0x16e)][_0xc2c41a(0x126)](!0x1);}}),(this[_0x43d57a(0x23b)]=_0x46c024,this[_0x43d57a(0x1e5)]=_0x1c0d09,this[_0x43d57a(0x255)]=_0x32871e,this[_0x43d57a(0x18b)]=_0x43b68b,this['_dialogService']=_0x3b0b87,this['_messageService']=_0x2203f8,this[_0x43d57a(0x1f6)]=_0x3666fc,this[_0x43d57a(0x1e6)]=_0x2aa419,this[_0x43d57a(0x13e)]=_0x4c247d,this['_mcpConnectionController']=_0x4286f7,this[_0x43d57a(0x1b7)](),this[_0x43d57a(0x271)](),this[_0x43d57a(0x223)]());}[_0x28e84b(0x159)](){var _0x4e5088=_0x28e84b;this[_0x4e5088(0x1fd)]['open']({'id':O,'title':{'title':this[_0x4e5088(0x1e6)]['t'](_0x4e5088(0x21a))},'children':{'label':_0x4e5088(0x121)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x238064=_0x4e5088;this[_0x238064(0x1fd)]['close'](O);}});}[_0x28e84b(0x1fa)](){var _0x115f2c=_0x28e84b;return this[_0x115f2c(0x1de)]['value'];}[_0x28e84b(0x223)](){var _0x5c3188=_0x28e84b;this[_0x5c3188(0x1df)](this['_componentManager'][_0x5c3188(0x138)](_0x5c3188(0x121),this[_0x5c3188(0x1d3)]()));}[_0x28e84b(0x1d3)](){var _0x57827d=_0x28e84b;return v[_0x57827d(0x18e)](()=>{var _0x50d4b7=_0x57827d,_0x573cb5,_0x185c11,_0x3b316f;return i[_0x50d4b7(0x144)](W,{'config':this['_config$'][_0x50d4b7(0x11e)],'mcpCoreConfig':this[_0x50d4b7(0x1de)]['value'],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x50d4b7(0x23d)],'loading':this[_0x50d4b7(0x16e)][_0x50d4b7(0x11e)],'connectionStatus$':(_0x573cb5=this[_0x50d4b7(0x15d)])==null?void 0x0:_0x573cb5[_0x50d4b7(0x26e)],'connectionError$':(_0x185c11=this[_0x50d4b7(0x15d)])==null?void 0x0:_0x185c11['connectionError$'],'currentSessionId$':(_0x3b316f=this[_0x50d4b7(0x15d)])==null?void 0x0:_0x3b316f[_0x50d4b7(0x203)]});},this[_0x57827d(0x23b)]);}[_0x28e84b(0x1b7)](){var _0x4720ef=_0x28e84b;this[_0x4720ef(0x1df)](this[_0x4720ef(0x255)][_0x4720ef(0x1eb)](s[_0x4720ef(0x1f9)])['subscribe'](_0x42a25e=>{var _0x1aad1d=_0x4720ef;this[_0x1aad1d(0x1de)][_0x1aad1d(0x126)](_0x42a25e||{});}));const _0x357f9f=this[_0x4720ef(0x255)]['getConfig'](s['MCP_PLUGIN_CONFIG_KEY']);this[_0x4720ef(0x1de)][_0x4720ef(0x126)](_0x357f9f||{}),this['disposeWithMe'](this['_configService'][_0x4720ef(0x1eb)](D)['subscribe'](_0x212cd7=>{var _0x358e5b=_0x4720ef;this[_0x358e5b(0x27e)][_0x358e5b(0x126)](_0x212cd7||{});}));const _0x2e9e4e=this[_0x4720ef(0x255)][_0x4720ef(0x1e9)](D);this[_0x4720ef(0x27e)][_0x4720ef(0x126)](_0x2e9e4e||{});}async[_0x28e84b(0x271)](){var _0x5e2e1e=_0x28e84b;const _0x297fce=await this[_0x5e2e1e(0x18b)][_0x5e2e1e(0x193)](A);_0x297fce&&(this[_0x5e2e1e(0x15d)][_0x5e2e1e(0x24a)]({'Authorization':_0x5e2e1e(0x25b)+_0x297fce}),this['_apiKey$'][_0x5e2e1e(0x126)](_0x297fce));}async[_0x28e84b(0x1ef)](_0x28f0b8){var _0x54172c=_0x28e84b;if(!_0x28f0b8[_0x54172c(0x25e)]||_0x28f0b8[_0x54172c(0x25e)][_0x54172c(0x1f7)]()[_0x54172c(0x1e3)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x54172c(0x1e6)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x28f0b8[_0x54172c(0x25e)][_0x54172c(0x1f7)]()[_0x54172c(0x1e3)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x54172c(0x1e6)]['t'](_0x54172c(0x198))};try{const _0x3bfadc=await this[_0x54172c(0x23b)][_0x54172c(0x186)](s[_0x54172c(0x140)])['validateApiKey'](_0x28f0b8[_0x54172c(0x25e)][_0x54172c(0x1f7)]());return _0x3bfadc['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x3bfadc[_0x54172c(0x1b4)]||this[_0x54172c(0x1e6)]['t'](_0x54172c(0x1fc))};}catch(_0x75cd92){return console[_0x54172c(0x268)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x75cd92),{'isValid':!0x0};}}},exports[_0x28e84b(0x18d)]=Se([f(0x0,u[_0x28e84b(0x13b)](u[_0x28e84b(0x170)])),f(0x1,v['IUIPartsService']),f(0x2,u[_0x28e84b(0x23a)]),f(0x3,u[_0x28e84b(0x212)]),f(0x4,v[_0x28e84b(0x214)]),f(0x5,v[_0x28e84b(0x195)]),f(0x6,u['Inject'](v['ComponentManager'])),f(0x7,u[_0x28e84b(0x13b)](u[_0x28e84b(0x19f)])),f(0x8,u[_0x28e84b(0x1fe)]),f(0x9,u[_0x28e84b(0x13b)](s[_0x28e84b(0x140)]))],exports[_0x28e84b(0x18d)]);const N={'id':_0x28e84b(0x119),'type':u[_0x28e84b(0x27d)][_0x28e84b(0x249)],'handler':async(_0xbb8885,_0x388085)=>(_0xbb8885['get'](exports['MCPConfigUIController'])[_0x28e84b(0x159)](),!0x0)};function Z(_0x4fff63,_0x171474){var _0x4d25f2=_0x28e84b;switch(_0x4fff63){case s['MCPConnectionStatus'][_0x4d25f2(0x141)]:return'mcpStatus.disconnected';case s[_0x4d25f2(0x1c1)]['CONNECTING']:return _0x4d25f2(0x128);case s['MCPConnectionStatus'][_0x4d25f2(0x228)]:return _0x4d25f2(0x27a);case s[_0x4d25f2(0x1c1)]['FAILED']:switch(_0x171474){case s[_0x4d25f2(0x147)][_0x4d25f2(0x13f)]:return _0x4d25f2(0x248);case s[_0x4d25f2(0x147)][_0x4d25f2(0x289)]:return _0x4d25f2(0x1bc);case s[_0x4d25f2(0x147)]['NETWORK_ERROR']:return'mcpStatus.networkError';case s['MCPConnectionError'][_0x4d25f2(0x1b2)]:return _0x4d25f2(0x26d);default:return'mcpStatus.failed';}case s['MCPConnectionStatus'][_0x4d25f2(0x125)]:return _0x4d25f2(0x272);default:return _0x4d25f2(0x1f2);}}function ye(_0x1c7ac2,_0x3b9c9c,_0x378049){var _0x4fea91=_0x28e84b;const _0x3d303b=Z(_0x1c7ac2,_0x3b9c9c),_0x586eac=_0x378049['t'](_0x3d303b);return _0x1c7ac2===s[_0x4fea91(0x1c1)]['DISCONNECTED']&&_0x3b9c9c===s[_0x4fea91(0x147)][_0x4fea91(0x13f)]?_0x586eac+_0x4fea91(0x180)+_0x378049['t'](_0x4fea91(0x15e)):_0x1c7ac2===s[_0x4fea91(0x1c1)]['CONNECTED']?''+_0x586eac:_0x1c7ac2===s['MCPConnectionStatus']['DISCONNECTED']||_0x1c7ac2===s[_0x4fea91(0x1c1)][_0x4fea91(0x19a)]?_0x586eac+'\x20-\x20'+_0x378049['t']('mcpStatus.clickToConnect'):_0x586eac;}function Ie(_0xd066e7){var _0x486e58=_0x28e84b;switch(_0xd066e7){case s[_0x486e58(0x1c1)][_0x486e58(0x228)]:return _0x486e58(0x236);case s['MCPConnectionStatus'][_0x486e58(0x169)]:case s[_0x486e58(0x1c1)][_0x486e58(0x125)]:return _0x486e58(0x235);case s['MCPConnectionStatus'][_0x486e58(0x19a)]:case s[_0x486e58(0x1c1)][_0x486e58(0x141)]:return'univer-text-red-500';default:return _0x486e58(0x16c);}}function X(_0xb2c4d3){var _0x1ba3bc=_0x28e84b;const {status$:_0x2eab65,error$:_0x437b16,onConfigure:_0x4189c8}=_0xb2c4d3,_0x368f9a=v[_0x1ba3bc(0x275)](_0x2eab65,s[_0x1ba3bc(0x1c1)][_0x1ba3bc(0x141)]),_0x48449e=v[_0x1ba3bc(0x275)](_0x437b16,s['MCPConnectionError']['NONE']),_0x13ef09=v[_0x1ba3bc(0x1a8)](u[_0x1ba3bc(0x19f)]),_0x587271=_0x368f9a===s[_0x1ba3bc(0x1c1)][_0x1ba3bc(0x228)],_0x454a66=_0x368f9a===s[_0x1ba3bc(0x1c1)][_0x1ba3bc(0x169)]||_0x368f9a===s[_0x1ba3bc(0x1c1)][_0x1ba3bc(0x125)],_0xd3eba=_0x13ef09['t'](Z(_0x368f9a,_0x48449e)),_0x30b0d1=ye(_0x368f9a,_0x48449e,_0x13ef09),_0x46b985=Ie(_0x368f9a),_0x3c7e28=_0x587271?i[_0x1ba3bc(0x144)](z,{}):i[_0x1ba3bc(0x144)](q,{}),_0x38d0d6=d[_0x1ba3bc(0x27f)](()=>{_0x4189c8&&_0x4189c8();},[_0x587271,_0x454a66,_0x4189c8]);function _0x38a9a7(){var _0xcbf79=_0x1ba3bc;return i[_0xcbf79(0x191)](_0xcbf79(0x226),{'className':P['clsx']('univer-flex\x20univer-cursor-pointer\x20univer-items-center',_0x4189c8&&_0xcbf79(0x19d)),'onClick':_0x4189c8?_0x38d0d6:void 0x0,'children':[i[_0xcbf79(0x144)](_0xcbf79(0x226),{'className':P[_0xcbf79(0x18c)]('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x46b985),'children':_0x3c7e28}),i[_0xcbf79(0x144)]('div',{'className':_0xcbf79(0x1ee),'children':_0xd3eba})]});}return i[_0x1ba3bc(0x144)](P[_0x1ba3bc(0x1c3)],{'title':_0x30b0d1,'placement':'bottom','children':_0x38a9a7()});}var _e=Object[_0x28e84b(0x167)],Me=(_0x1cd5b4,_0x33b5fa,_0x4b9ccc,_0x38da16)=>{for(var _0x22c11d=_0x38da16>0x1?void 0x0:_0x38da16?_e(_0x33b5fa,_0x4b9ccc):_0x33b5fa,_0xf79e7c=_0x1cd5b4['length']-0x1,_0x28eb87;_0xf79e7c>=0x0;_0xf79e7c--)(_0x28eb87=_0x1cd5b4[_0xf79e7c])&&(_0x22c11d=_0x28eb87(_0x22c11d)||_0x22c11d);return _0x22c11d;},k=(_0x3accd5,_0x11af31)=>(_0x3c48f1,_0x3871d5)=>_0x11af31(_0x3c48f1,_0x3871d5,_0x3accd5);exports[_0x28e84b(0x118)]=class extends u[_0x28e84b(0x205)]{constructor(_0x569594,_0x2b9718,_0x59cd40){var _0x3761a0=_0x28e84b;super(),this[_0x3761a0(0x23b)]=_0x569594,this['_connectionController']=_0x2b9718,this[_0x3761a0(0x1e5)]=_0x59cd40,this[_0x3761a0(0x221)]['enableAutoConnect']=!0x1,this[_0x3761a0(0x173)]();}[_0x28e84b(0x173)](){var _0x197ff7=_0x28e84b;this[_0x197ff7(0x1df)](this[_0x197ff7(0x1e5)][_0x197ff7(0x278)](v[_0x197ff7(0x1ca)][_0x197ff7(0x27b)],()=>v[_0x197ff7(0x18e)](Ne({'status$':this[_0x197ff7(0x221)]['connectionStatus$'],'error$':this[_0x197ff7(0x221)]['connectionError$'],'onConfigure':()=>this[_0x197ff7(0x1dd)]()}),this['_injector'])));}['_handleConfigure'](){var _0x42b2d2=_0x28e84b;this[_0x42b2d2(0x23b)][_0x42b2d2(0x186)](exports[_0x42b2d2(0x18d)])['showConfigPanel']();}},exports[_0x28e84b(0x118)]=Me([k(0x0,u[_0x28e84b(0x13b)](u[_0x28e84b(0x170)])),k(0x1,u['Inject'](s[_0x28e84b(0x140)])),k(0x2,v['IUIPartsService'])],exports['MCPConnectionUIController']);function Ne(_0x2c8ff2){const {status$:_0x346acd,error$:_0x35a12e,onConfigure:_0x21bdbc}=_0x2c8ff2;return function(){var _0x59129e=_0x385d;return i[_0x59129e(0x144)](X,{'status$':_0x346acd,'error$':_0x35a12e,'onConfigure':_0x21bdbc});};}function be(_0x5a94de){var _0x565b41=_0x28e84b;return{'id':N['id'],'type':v['MenuItemType'][_0x565b41(0x11b)],'icon':'MenuIcon','title':_0x565b41(0x21a),'tooltip':_0x565b41(0x21a)};}const je={[v[_0x28e84b(0x1b9)][_0x28e84b(0x14a)]]:{[N['id']]:{'order':0xa,'menuItemFactory':be}}};var Ee=Object[_0x28e84b(0x167)],we=(_0xba4441,_0x497518,_0x2bd87b,_0x31b7ba)=>{var _0x5a40d4=_0x28e84b;for(var _0x579fb1=_0x31b7ba>0x1?void 0x0:_0x31b7ba?Ee(_0x497518,_0x2bd87b):_0x497518,_0x2cdbe9=_0xba4441[_0x5a40d4(0x1e3)]-0x1,_0x1ef250;_0x2cdbe9>=0x0;_0x2cdbe9--)(_0x1ef250=_0xba4441[_0x2cdbe9])&&(_0x579fb1=_0x1ef250(_0x579fb1)||_0x579fb1);return _0x579fb1;},Y=(_0x40fe7e,_0x3a5422)=>(_0x20c071,_0x5a9206)=>_0x3a5422(_0x20c071,_0x5a9206,_0x40fe7e);function _0x3616(){var _0x3835fb=['_configService','1em','MCP:\x20API\x20Key\x20Missing','重连中...','<API_KEY>','61254JlXgGk','Bearer\x20','\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','mcpConfig.connectionError.maxRetriesExceeded','apiKey','API\x20密钥无效,请检查密钥是否正确','defs','24KcYFpG','className','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','OnLineIcon','mcp.apiKey','univer-min-w-0\x20univer-flex-1','启用身份验证以获得安全连接','warn','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','createElement','Univer\x20AI\x20控制台','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcpStatus.maxRetriesExceeded','connectionStatus$','univer-flex-1','pluginName','_loadStoredApiKey','mcpStatus.retrying','noopener\x20noreferrer','保存中...','useObservable','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','mcpConfig.apiApplyInfo.description','registerComponent','colorChannel1','mcpStatus.connected','HEADER_MENU','enUS','CommandType','_config$','useCallback','DependentOn','UniverMCPUIPlugin','OffLineIcon','url(#$1','IMenuManagerService','univer-space-y-3','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','M0\x200H16V16H0z','mcpConfig.configStep2','SESSION_ID_OCCUPIED','mcpConfig.sessionIdDescription','close-small-single','UniverMCPPlugin','forEach','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP_UI_PLUGIN','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','close','entries','mcpConfig.apiApplyInfo.univerAiLabel','点击连接\x20MCP','mcpConfig.apiApplyInfo.getStarted','evenodd','MCPConnectionUIController','mcp-ui.command.openConfigPanel','svg','BUTTON','mask','Univer\x20AI\x20Console','value','1586180fZBtEj','mcpConfig.saving','MCPConfigPanel','white','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-text-sm\x20univer-font-medium','RETRYING','next','none','mcpStatus.connecting','check-mark-icon','label','xlink:href','_config','2163wYJUgC','会话当前被占用,请稍后再试','getOwnPropertySymbols','Configuration\x20Notes:','mcpConfig.connectionStatus.retrying','prototype','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20缺少\x20API\x20密钥','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','help-single','substring','register','univer-bg-blue-500','univer-text-xs\x20univer-text-gray-600','Inject','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','What\x20is\x20API\x20Key?','_logService','INVALID_API_KEY','MCPConnectionController','DISCONNECTED','clipPath','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','jsx','univer-flex-shrink-0\x20univer-text-blue-500','API\x20密钥无效,请检查您的密钥后重试','MCPConnectionError','ISocketService','mcpConfig.apiKeyHint','OTHERS','univer.plus','removeItem','MCP\x20Connecting...','806252jpUkfH','on-line-icon','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','\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','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.connectionInfo','mcpConfig.description','几秒钟内获取您的\x20API\x20密钥','将以下配置添加到您的\x20MCP\x20客户端设置中:','univerjs-icon\x20univerjs-icon-','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','showConfigPanel','API\x20密钥','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','includes','_mcpConnectionController','mcpStatus.clickToConfigure','map','NETWORK_ERROR','url(#on-line-icon_clip0_910_349)','defIds','apply','Success','mcpConfig.connectionError.invalidApiKey','Get\x20your\x20API\x20key\x20in\x20seconds','getOwnPropertyDescriptor','Configuration\x20Steps:','CONNECTING','univer-text-white','MCP\x20客户端配置','univer-text-gray-500','HelpSingle','_loading$','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Injector','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','_commandService','_initStatusComponent','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','setConfig','zhCN','ICommandService','MCP\x20Client\x20Configuration','MCP\x20已连接','5616PpzEFL','univer-space-y-2','current','MCP:\x20Session\x20Occupied','M5.21243\x205.62036L11.8791\x2012.287','MCP\x20已断开','\x20-\x20','_menuManagerService','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','defineProperty','将配置添加到您的\x20MCP\x20客户端设置文件中','_initializeCommands','get','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.connectionError.networkError','什么是\x20API\x20密钥?','Invalid\x20configuration','_localStorageService','clsx','MCPConfigUIController','connectInjector','function','Enable\x20authentication\x20for\x20secure\x20connections','jsxs','has','getItem','MCP\x20Disconnected','IMessageService','Enter\x20your\x20API\x20key','mcp-ui.config','mcpConfig.validation.apiKeyTooShort','MCPStatusDisplay','FAILED','mcpConfig.connectionStatus.failed','text','hover:univer-opacity-80','_apiKey$','LocaleService','univer-text-xs\x20univer-text-gray-500','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','NONE','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','Connected','配置保存失败','Click\x20to\x20configure\x20MCP','univer-flex\x20univer-items-center\x20univer-gap-2','useDependency','mcpConfig.validation.invalidConfig','registerCommand','univer-text-blue-600','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','off-line-icon','重启您的\x20MCP\x20客户端以使配置生效','带有\x20Bearer\x20前缀的\x20API\x20密钥。','1441904cgGAgl','CheckMarkIcon','MAX_RETRIES_EXCEEDED','\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','error','MCP:\x20无效的\x20API\x20密钥','on-line-icon_clip0_910_349','_initConfigSync','API\x20密钥不能为空','RibbonStartGroup','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','配置保存成功','mcpStatus.sessionOccupied','103679SWdEiC','Max\x20Retries','Enable\x20Authentication','Error','MCPConnectionStatus','univer-flex\x20univer-gap-3','Tooltip','univer-text-red-500','errorMessage','64563ANmbRr','Close','isValid','MCP:\x20Invalid\x20API\x20Key','BuiltInUIPart','univer.ai','MessageType','extend','mcpConfig.apiKey','univer-text-gray-400','round','mcpConfig.configError','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','_createConfigPanelComponent','API\x20Key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-space-y-5','0\x200\x2016\x2016','MCP:\x20Max\x20Retries\x20Exceeded','配置无效','您的\x20API\x20密钥安全存储在本地存储中','assign','forwardRef','_handleConfigure','_mcpCoreConfig$','disposeWithMe','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.configParameters','univer_session_id:','length','Failed\x20to\x20save\x20configuration','_uiPartsService','_localeService','mcpConfig.save','连接失败','getConfig','string','subscribeConfigValue$','toString','univer-flex\x20univer-items-center\x20univer-gap-3','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_validateConfig','启用身份验证','attrs','mcpStatus.unknown','univer-text-sm\x20univer-text-gray-500','replace','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','_componentManager','trim','mcpConfig.configStep1','MCP_PLUGIN_CONFIG_KEY','getCurrentConfig','translate(.97)','mcpConfig.validation.invalidApiKey','_dialogService','ILogService','univer-flex\x20univer-items-start\x20univer-gap-3','IUIPartsService','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','mcpConfig.configInstructions','sessionId$','0\x200\x2017\x2017','Disposable','mergeMenu','Connecting...','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','Copy\x20the\x20JSON\x20configuration\x20below','mcpServerUrl','未连接','MCP:\x20网络错误','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','MCP\x20Configuration','Connection\x20Failed','useRef','BehaviorSubject','ILocalStorageService','保存配置','IDialogService','pre','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','children','path','displayName','mcpConfig.title','UniverIcon','use','CloseSmallSingle','useState','MCP\x20配置','MCP\x20重连中...','_connectionController','http://www.w3.org/2000/svg','_registerComponent','API\x20key\x20is\x20required\x20to\x20connect','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','div','Configuration\x20Parameters:','CONNECTED','配置参数:','mcpConfig.apiApplyInfo.title','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','span','MCPUIMenuController','Click\x20to\x20connect\x20MCP','currentColor','univer-flex\x20univer-flex-wrap\x20univer-gap-2','Button','indexOf','WebSocketService','javascript:void(0)','univer-text-yellow-500','univer-text-green-500','merge','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','_initializeMenus','IConfigService','_injector','idSuffix','_handleConfigSave','concat','MCP\x20Unknown\x20Status','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','Plugin','MCP:\x20会话被占用','setItem','call','showDeveloperTools','Module','tag','mcpStatus.invalidApiKey','COMMAND','__setCustomHeaders','_messageService','mcpConfig.connectionStatus.disconnected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','fill','0\x200\x2017\x2016','API\x20key\x20is\x20required','univer-bg-gray-500','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','univer-bg-red-500'];_0x3616=function(){return _0x3835fb;};return _0x3616();}exports[_0x28e84b(0x22d)]=class extends u[_0x28e84b(0x205)]{constructor(_0x420d84,_0x4ed717){var _0x47a1a5=_0x28e84b;super(),this['_commandService']=_0x420d84,this[_0x47a1a5(0x181)]=_0x4ed717,this['_initializeCommands'](),this['_initializeMenus']();}[_0x28e84b(0x185)](){[N]['forEach'](_0x46ccc6=>{var _0x392138=_0x385d;this['disposeWithMe'](this[_0x392138(0x172)][_0x392138(0x1aa)](_0x46ccc6));});}[_0x28e84b(0x239)](){var _0x282a69=_0x28e84b;this[_0x282a69(0x181)][_0x282a69(0x206)](je);}},exports[_0x28e84b(0x22d)]=we([Y(0x0,u[_0x28e84b(0x177)]),Y(0x1,v[_0x28e84b(0x284)])],exports[_0x28e84b(0x22d)]);const Ae={'mcpStatus':{'disconnected':_0x28e84b(0x194),'connecting':_0x28e84b(0x14d),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x28e84b(0x23f),'missingApiKey':_0x28e84b(0x257),'invalidApiKey':_0x28e84b(0x1c9),'sessionOccupied':_0x28e84b(0x17d),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x28e84b(0x1d8),'clickToConnect':_0x28e84b(0x22e),'clickToConfigure':_0x28e84b(0x1a6)},'mcpConfig':{'title':_0x28e84b(0x20e),'description':_0x28e84b(0x24d),'apiKey':_0x28e84b(0x1d4),'apiKeyPlaceholder':_0x28e84b(0x196),'apiKeyHint':_0x28e84b(0x1d5),'enableAuth':_0x28e84b(0x1bf),'enableAuthHint':_0x28e84b(0x190),'connectionInfo':_0x28e84b(0x178),'mcpClientConfig':_0x28e84b(0x178),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x28e84b(0x168),'configStep1':_0x28e84b(0x209),'configStep2':_0x28e84b(0x253),'configStep3':_0x28e84b(0x133),'sessionId':'Session\x20ID','sessionIdDescription':_0x28e84b(0x238),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x28e84b(0x227),'maxRetries':_0x28e84b(0x1be),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x28e84b(0x28e),'note2':_0x28e84b(0x1a1),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x28e84b(0x1e4),'apiApplyInfo':{'title':_0x28e84b(0x13d),'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':_0x28e84b(0x11d),'getStarted':_0x28e84b(0x166)},'validation':{'apiKeyRequired':_0x28e84b(0x251),'apiKeyTooShort':_0x28e84b(0x1ac),'invalidConfig':_0x28e84b(0x18a),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x28e84b(0x207),'connected':_0x28e84b(0x1a4),'failed':_0x28e84b(0x20f),'retrying':'Retrying...'},'connectionError':{'missingApiKey':_0x28e84b(0x224),'invalidApiKey':_0x28e84b(0x276),'sessionOccupied':_0x28e84b(0x174),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x28e84b(0x182)}}},Oe={'mcpStatus':{'disconnected':_0x28e84b(0x17f),'connecting':'MCP\x20连接中...','connected':_0x28e84b(0x179),'failed':'MCP\x20连接失败','retrying':_0x28e84b(0x220),'unknown':'MCP\x20状态未知','missingApiKey':_0x28e84b(0x134),'invalidApiKey':_0x28e84b(0x1b5),'sessionOccupied':_0x28e84b(0x242),'networkError':_0x28e84b(0x20c),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x28e84b(0x115),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x28e84b(0x21f),'description':_0x28e84b(0x26c),'apiKey':_0x28e84b(0x15a),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x28e84b(0x1f0),'enableAuthHint':_0x28e84b(0x267),'connectionInfo':_0x28e84b(0x16b),'mcpClientConfig':_0x28e84b(0x16b),'configInstructions':_0x28e84b(0x156),'configStepTitle':'配置步骤:','configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x28e84b(0x184),'configStep3':_0x28e84b(0x1ae),'sessionId':'会话ID','sessionIdDescription':_0x28e84b(0x269),'authorizationDescription':_0x28e84b(0x1af),'configParameters':_0x28e84b(0x229),'maxRetries':'最大重试次数','save':_0x28e84b(0x213),'saving':_0x28e84b(0x274),'note1':'配置更改将立即生效','note2':_0x28e84b(0x1da),'configSaved':_0x28e84b(0x1bb),'configError':_0x28e84b(0x1a5),'apiApplyInfo':{'title':_0x28e84b(0x189),'description':_0x28e84b(0x208),'univerAiLabel':_0x28e84b(0x26b),'getStarted':_0x28e84b(0x155)},'validation':{'apiKeyRequired':_0x28e84b(0x1b8),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x28e84b(0x1d9),'invalidApiKey':_0x28e84b(0x25f)},'connectionStatus':{'disconnected':_0x28e84b(0x20b),'connecting':'连接中...','connected':'已连接','failed':_0x28e84b(0x1e8),'retrying':_0x28e84b(0x258)},'connectionError':{'missingApiKey':'需要\x20API\x20密钥才能连接','invalidApiKey':_0x28e84b(0x146),'sessionOccupied':_0x28e84b(0x12e),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var ke=Object[_0x28e84b(0x183)],De=Object[_0x28e84b(0x167)],Ke=(_0x2cdc87,_0x3e4c79,_0x10acf7)=>_0x3e4c79 in _0x2cdc87?ke(_0x2cdc87,_0x3e4c79,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10acf7}):_0x2cdc87[_0x3e4c79]=_0x10acf7,Ue=(_0x37d1d4,_0x46a0c5,_0x1fa906,_0x242372)=>{var _0x58f0a6=_0x28e84b;for(var _0x20118f=_0x242372>0x1?void 0x0:_0x242372?De(_0x46a0c5,_0x1fa906):_0x46a0c5,_0x17b59e=_0x37d1d4[_0x58f0a6(0x1e3)]-0x1,_0x4e0b80;_0x17b59e>=0x0;_0x17b59e--)(_0x4e0b80=_0x37d1d4[_0x17b59e])&&(_0x20118f=_0x4e0b80(_0x20118f)||_0x20118f);return _0x20118f;},_=(_0x3df280,_0x13c661)=>(_0x588f4a,_0x53b352)=>_0x13c661(_0x588f4a,_0x53b352,_0x3df280),Te=(_0x384f17,_0x9c7d5c,_0xc5749c)=>Ke(_0x384f17,_0x9c7d5c+'',_0xc5749c);exports[_0x28e84b(0x281)]=class extends u[_0x28e84b(0x241)]{constructor(_0x15b383=G,_0x3b865b,_0x159d08,_0xa5e020,_0x452bc1,_0x1a30b4){var _0x2a0f0b=_0x28e84b;super(),this[_0x2a0f0b(0x12c)]=_0x15b383,this[_0x2a0f0b(0x23b)]=_0x3b865b,this['_configService']=_0x159d08,this[_0x2a0f0b(0x1e5)]=_0xa5e020,this[_0x2a0f0b(0x18b)]=_0x452bc1,this[_0x2a0f0b(0x1e6)]=_0x1a30b4;const {..._0x4960d7}=u[_0x2a0f0b(0x237)]({},G,this[_0x2a0f0b(0x12c)]);this[_0x2a0f0b(0x255)][_0x2a0f0b(0x175)](D,_0x4960d7);}async['onStarting'](){var _0x572243=_0x28e84b;const _0xfb1b33=[[exports[_0x572243(0x118)]],[exports['MCPConfigUIController']],[exports['MCPUIMenuController']]];this[_0x572243(0x23b)][_0x572243(0x192)](w[_0x572243(0x148)])||_0xfb1b33['push']([w['ISocketService'],{'useClass':w[_0x572243(0x233)]}]),_0xfb1b33[_0x572243(0x28d)](_0x5273a2=>this[_0x572243(0x23b)]['add'](_0x5273a2)),this[_0x572243(0x23b)][_0x572243(0x186)](exports['MCPConnectionUIController']),this[_0x572243(0x23b)]['get'](exports[_0x572243(0x18d)]),this[_0x572243(0x23b)][_0x572243(0x186)](exports[_0x572243(0x22d)]);}},Te(exports['UniverMCPUIPlugin'],_0x28e84b(0x270),_0x28e84b(0x28f)),exports[_0x28e84b(0x281)]=Ue([u[_0x28e84b(0x280)](s[_0x28e84b(0x28c)]),_(0x1,u['Inject'](u[_0x28e84b(0x170)])),_(0x2,u[_0x28e84b(0x23a)]),_(0x3,v[_0x28e84b(0x200)]),_(0x4,u[_0x28e84b(0x212)]),_(0x5,u[_0x28e84b(0x13b)](u[_0x28e84b(0x19f)]))],exports[_0x28e84b(0x281)]),exports[_0x28e84b(0x121)]=W,exports[_0x28e84b(0x199)]=X,exports['OpenMCPConfigPanelCommand']=N,exports[_0x28e84b(0x27c)]=Ae,exports[_0x28e84b(0x176)]=Oe;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2ee95d=_0x2430;(function(_0x744f9,_0x3e818a){const _0x363948=_0x2430,_0x483cb9=_0x744f9();while(!![]){try{const _0x573c8f=parseInt(_0x363948(0xd7))/0x1*(-parseInt(_0x363948(0xf1))/0x2)+-parseInt(_0x363948(0xee))/0x3*(-parseInt(_0x363948(0xe9))/0x4)+parseInt(_0x363948(0xf8))/0x5*(-parseInt(_0x363948(0xd9))/0x6)+-parseInt(_0x363948(0xd3))/0x7+-parseInt(_0x363948(0xe5))/0x8*(parseInt(_0x363948(0xd6))/0x9)+-parseInt(_0x363948(0xdd))/0xa+-parseInt(_0x363948(0xdc))/0xb*(-parseInt(_0x363948(0xca))/0xc);if(_0x573c8f===_0x3e818a)break;else _0x483cb9['push'](_0x483cb9['shift']());}catch(_0x48df7f){_0x483cb9['push'](_0x483cb9['shift']());}}}(_0x6666,0xce3d6));function _0x2430(_0x157022,_0x1fe079){const _0x6666be=_0x6666();return _0x2430=function(_0x2430d0,_0x20f652){_0x2430d0=_0x2430d0-0xca;let _0x590b8c=_0x6666be[_0x2430d0];return _0x590b8c;},_0x2430(_0x157022,_0x1fe079);}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x2ee95d(0xf2),'failed':_0x2ee95d(0xe7),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x2ee95d(0xe8),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x2ee95d(0xeb)},'mcpConfig':{'title':_0x2ee95d(0xd2),'description':_0x2ee95d(0xe4),'apiKey':_0x2ee95d(0xde),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x2ee95d(0xdf),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x2ee95d(0xcf),'connectionInfo':_0x2ee95d(0xcd),'mcpClientConfig':_0x2ee95d(0xcd),'configInstructions':_0x2ee95d(0xd4),'configStepTitle':_0x2ee95d(0xf6),'configStep1':_0x2ee95d(0xe1),'configStep2':_0x2ee95d(0xed),'configStep3':_0x2ee95d(0xe2),'sessionId':'Session\x20ID','sessionIdDescription':_0x2ee95d(0xd5),'authorizationDescription':_0x2ee95d(0xce),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x2ee95d(0xf3),'save':_0x2ee95d(0xf5),'saving':_0x2ee95d(0xda),'note1':_0x2ee95d(0xcb),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x2ee95d(0xcc),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x2ee95d(0xd1),'univerAiLabel':_0x2ee95d(0xf9),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x2ee95d(0xea),'apiKeyTooShort':_0x2ee95d(0xf4),'invalidConfig':_0x2ee95d(0xf7),'invalidApiKey':_0x2ee95d(0xe0)},'connectionStatus':{'disconnected':_0x2ee95d(0xe3),'connecting':_0x2ee95d(0xd0),'connected':_0x2ee95d(0xdb),'failed':'Connection\x20Failed','retrying':_0x2ee95d(0xf0)},'connectionError':{'missingApiKey':_0x2ee95d(0xe6),'invalidApiKey':_0x2ee95d(0xec),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0x2ee95d(0xef),'maxRetriesExceeded':_0x2ee95d(0xd8)}}},n=e;function _0x6666(){const _0x52ea74=['MCP\x20Connection\x20Failed','MCP:\x20Network\x20Error','184152igNqhv','API\x20key\x20is\x20required','Click\x20to\x20configure\x20MCP','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','99opIoxV','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Retrying...','508IxslRN','MCP\x20Connected','Max\x20Retries','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Save\x20Configuration','Configuration\x20Steps:','Invalid\x20configuration','10yTcRLY','Univer\x20AI\x20Console','584316TnxxLZ','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Failed\x20to\x20save\x20configuration','MCP\x20Client\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','Enable\x20authentication\x20for\x20secure\x20connections','Connecting...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Configuration','5607763luxpGv','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1680471RgMwEj','5789rIguIB','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','4235988Xhwjnn','Saving...','Connected','968QAspgS','3423740AVxAWf','API\x20Key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Copy\x20the\x20JSON\x20configuration\x20below','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Disconnected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','40gvIkTN','API\x20key\x20is\x20required\x20to\x20connect'];_0x6666=function(){return _0x52ea74;};return _0x6666();}module['exports']=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1ac3a4=_0x1269;(function(_0x568f6a,_0x598990){const _0x55328e=_0x1269,_0x36d4c2=_0x568f6a();while(!![]){try{const _0x2fb0e5=parseInt(_0x55328e(0x124))/0x1+parseInt(_0x55328e(0x149))/0x2+-parseInt(_0x55328e(0x145))/0x3+-parseInt(_0x55328e(0x139))/0x4+-parseInt(_0x55328e(0x13a))/0x5*(parseInt(_0x55328e(0x120))/0x6)+-parseInt(_0x55328e(0x147))/0x7*(parseInt(_0x55328e(0x136))/0x8)+parseInt(_0x55328e(0x13f))/0x9;if(_0x2fb0e5===_0x598990)break;else _0x36d4c2['push'](_0x36d4c2['shift']());}catch(_0x28d0d0){_0x36d4c2['push'](_0x36d4c2['shift']());}}}(_0x52ae,0x48e95));function _0x1269(_0x4c2e49,_0x4ece90){const _0x52aea6=_0x52ae();return _0x1269=function(_0x12694e,_0x5a185f){_0x12694e=_0x12694e-0x119;let _0x4f9dd6=_0x52aea6[_0x12694e];return _0x4f9dd6;},_0x1269(_0x4c2e49,_0x4ece90);}const e={'mcpStatus':{'disconnected':_0x1ac3a4(0x142),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x1ac3a4(0x11e),'retrying':_0x1ac3a4(0x14a),'unknown':_0x1ac3a4(0x11d),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x1ac3a4(0x122),'sessionOccupied':_0x1ac3a4(0x12a),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x1ac3a4(0x144),'clickToConnect':_0x1ac3a4(0x143),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x1ac3a4(0x128),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x1ac3a4(0x148),'apiKeyPlaceholder':_0x1ac3a4(0x132),'apiKeyHint':_0x1ac3a4(0x135),'enableAuth':_0x1ac3a4(0x126),'enableAuthHint':_0x1ac3a4(0x12b),'connectionInfo':_0x1ac3a4(0x12e),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x1ac3a4(0x11a),'configStepTitle':_0x1ac3a4(0x123),'configStep1':_0x1ac3a4(0x13e),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x1ac3a4(0x138),'authorizationDescription':_0x1ac3a4(0x121),'configParameters':_0x1ac3a4(0x137),'maxRetries':'Max\x20Retries','save':_0x1ac3a4(0x129),'saving':_0x1ac3a4(0x146),'note1':_0x1ac3a4(0x13b),'note2':_0x1ac3a4(0x13c),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x1ac3a4(0x130),'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':_0x1ac3a4(0x140),'getStarted':_0x1ac3a4(0x12f)},'validation':{'apiKeyRequired':_0x1ac3a4(0x125),'apiKeyTooShort':_0x1ac3a4(0x11c),'invalidConfig':_0x1ac3a4(0x141),'invalidApiKey':_0x1ac3a4(0x12c)},'connectionStatus':{'disconnected':_0x1ac3a4(0x119),'connecting':_0x1ac3a4(0x133),'connected':_0x1ac3a4(0x134),'failed':_0x1ac3a4(0x12d),'retrying':'Retrying...'},'connectionError':{'missingApiKey':_0x1ac3a4(0x127),'invalidApiKey':_0x1ac3a4(0x11b),'sessionOccupied':_0x1ac3a4(0x13d),'networkError':_0x1ac3a4(0x131),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};module[_0x1ac3a4(0x11f)]=e;function _0x52ae(){const _0x637e81=['Connected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','12504xoljDw','Configuration\x20Parameters:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','2236060oynrlo','125aUGBdA','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','7147350jdxIbb','Univer\x20AI\x20Console','Invalid\x20configuration','MCP\x20Disconnected','Click\x20to\x20connect\x20MCP','MCP:\x20Max\x20Retries\x20Exceeded','1232595TqLRZU','Saving...','14ftiZMu','API\x20Key','840238CmqYii','MCP\x20Retrying...','Disconnected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Unknown\x20Status','MCP\x20Connection\x20Failed','exports','38562ilmLPh','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Invalid\x20API\x20Key','Configuration\x20Steps:','218057OZQDFs','API\x20key\x20is\x20required','Enable\x20Authentication','API\x20key\x20is\x20required\x20to\x20connect','MCP\x20Configuration','Save\x20Configuration','MCP:\x20Session\x20Occupied','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connection\x20Failed','MCP\x20Client\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','What\x20is\x20API\x20Key?','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enter\x20your\x20API\x20key','Connecting...'];_0x52ae=function(){return _0x637e81;};return _0x52ae();}
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x13696a=_0x564a;(function(_0xfe8f68,_0x24eb04){const _0x4aa3ab=_0x564a,_0x5e94e1=_0xfe8f68();while(!![]){try{const _0x11640d=-parseInt(_0x4aa3ab(0x1ed))/0x1*(-parseInt(_0x4aa3ab(0x1dc))/0x2)+-parseInt(_0x4aa3ab(0x1cb))/0x3*(parseInt(_0x4aa3ab(0x1e9))/0x4)+parseInt(_0x4aa3ab(0x1e8))/0x5*(parseInt(_0x4aa3ab(0x1ec))/0x6)+-parseInt(_0x4aa3ab(0x1f2))/0x7*(parseInt(_0x4aa3ab(0x1f9))/0x8)+-parseInt(_0x4aa3ab(0x1f4))/0x9+-parseInt(_0x4aa3ab(0x1c9))/0xa+parseInt(_0x4aa3ab(0x1fa))/0xb*(parseInt(_0x4aa3ab(0x1ef))/0xc);if(_0x11640d===_0x24eb04)break;else _0x5e94e1['push'](_0x5e94e1['shift']());}catch(_0x417b95){_0x5e94e1['push'](_0x5e94e1['shift']());}}}(_0x188f,0xc7f21));function _0x188f(){const _0x1f23c0=['Enable\x20authentication\x20for\x20secure\x20connections','Max\x20Retries','Retrying...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Configuration','API\x20key\x20is\x20required','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20Parameters:','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','36155XCEyhG','2169512isLMKQ','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Invalid\x20configuration','294zcEUUr','2KFvdqB','MCP:\x20Session\x20Occupied','12XgqsQZ','MCP\x20Client\x20Configuration','Saving...','931091wPHmly','MCP\x20Connection\x20Failed','10597815mWEQSB','MCP\x20Disconnected','Save\x20Configuration','Click\x20to\x20connect\x20MCP','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','32bSDLED','43116568zKciup','MCP\x20Connecting...','API\x20Key','Click\x20to\x20configure\x20MCP','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Univer\x20AI\x20Console','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Retrying...','9738710uIVRMl','Connection\x20Failed','6xLMIpa','MCP:\x20API\x20Key\x20Missing','Copy\x20the\x20JSON\x20configuration\x20below','exports','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Steps:','What\x20is\x20API\x20Key?','Disconnected','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connected','Enable\x20Authentication','Session\x20ID','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Unknown\x20Status','313184ybPBZT','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Network\x20Error'];_0x188f=function(){return _0x1f23c0;};return _0x188f();}function _0x564a(_0x135992,_0x25ff66){const _0x188f59=_0x188f();return _0x564a=function(_0x564a8a,_0x3d771c){_0x564a8a=_0x564a8a-0x1c0;let _0x3c507a=_0x188f59[_0x564a8a];return _0x3c507a;},_0x564a(_0x135992,_0x25ff66);}const e={'mcpStatus':{'disconnected':_0x13696a(0x1f5),'connecting':_0x13696a(0x1c0),'connected':_0x13696a(0x1d5),'failed':_0x13696a(0x1f3),'retrying':_0x13696a(0x1c8),'unknown':_0x13696a(0x1db),'missingApiKey':_0x13696a(0x1cc),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x13696a(0x1ee),'networkError':_0x13696a(0x1de),'maxRetriesExceeded':_0x13696a(0x1d0),'clickToConnect':_0x13696a(0x1f7),'clickToConfigure':_0x13696a(0x1c2)},'mcpConfig':{'title':_0x13696a(0x1e3),'description':_0x13696a(0x1da),'apiKey':_0x13696a(0x1c1),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x13696a(0x1c4),'enableAuth':_0x13696a(0x1d6),'enableAuthHint':_0x13696a(0x1df),'connectionInfo':_0x13696a(0x1f0),'mcpClientConfig':_0x13696a(0x1f0),'configInstructions':_0x13696a(0x1e5),'configStepTitle':_0x13696a(0x1d1),'configStep1':_0x13696a(0x1cd),'configStep2':_0x13696a(0x1e7),'configStep3':_0x13696a(0x1c7),'sessionId':_0x13696a(0x1d7),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x13696a(0x1d4),'configParameters':_0x13696a(0x1e6),'maxRetries':_0x13696a(0x1e0),'save':_0x13696a(0x1f6),'saving':_0x13696a(0x1f1),'note1':_0x13696a(0x1f8),'note2':_0x13696a(0x1cf),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x13696a(0x1d2),'description':_0x13696a(0x1e2),'univerAiLabel':_0x13696a(0x1c6),'getStarted':_0x13696a(0x1dd)},'validation':{'apiKeyRequired':_0x13696a(0x1e4),'apiKeyTooShort':_0x13696a(0x1c5),'invalidConfig':_0x13696a(0x1eb),'invalidApiKey':_0x13696a(0x1d8)},'connectionStatus':{'disconnected':_0x13696a(0x1d3),'connecting':_0x13696a(0x1d9),'connected':'Connected','failed':_0x13696a(0x1ca),'retrying':_0x13696a(0x1e1)},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x13696a(0x1ea),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x13696a(0x1c3)}}},n=e;module[_0x13696a(0x1ce)]=n;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0xd5555d=_0x3cf9;(function(_0x3e1523,_0x316198){const _0x3ff533=_0x3cf9,_0xe6db05=_0x3e1523();while(!![]){try{const _0x33f218=-parseInt(_0x3ff533(0x136))/0x1+parseInt(_0x3ff533(0x13e))/0x2*(-parseInt(_0x3ff533(0x13c))/0x3)+-parseInt(_0x3ff533(0x145))/0x4*(parseInt(_0x3ff533(0x134))/0x5)+parseInt(_0x3ff533(0x137))/0x6*(parseInt(_0x3ff533(0x159))/0x7)+parseInt(_0x3ff533(0x132))/0x8*(parseInt(_0x3ff533(0x129))/0x9)+parseInt(_0x3ff533(0x14e))/0xa*(-parseInt(_0x3ff533(0x138))/0xb)+parseInt(_0x3ff533(0x154))/0xc;if(_0x33f218===_0x316198)break;else _0xe6db05['push'](_0xe6db05['shift']());}catch(_0x1951b8){_0xe6db05['push'](_0xe6db05['shift']());}}}(_0xe3df,0x472c8));function _0x3cf9(_0x546d9f,_0x1f3394){const _0xe3df55=_0xe3df();return _0x3cf9=function(_0x3cf99d,_0x390cb3){_0x3cf99d=_0x3cf99d-0x126;let _0x3029cb=_0xe3df55[_0x3cf99d];return _0x3029cb;},_0x3cf9(_0x546d9f,_0x1f3394);}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0xd5555d(0x13a),'connected':_0xd5555d(0x130),'failed':_0xd5555d(0x12d),'retrying':_0xd5555d(0x158),'unknown':_0xd5555d(0x13f),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0xd5555d(0x155),'sessionOccupied':_0xd5555d(0x14d),'networkError':_0xd5555d(0x156),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0xd5555d(0x14b),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0xd5555d(0x143),'description':_0xd5555d(0x150),'apiKey':_0xd5555d(0x139),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0xd5555d(0x152),'enableAuth':_0xd5555d(0x131),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0xd5555d(0x13b),'mcpClientConfig':_0xd5555d(0x13b),'configInstructions':_0xd5555d(0x142),'configStepTitle':_0xd5555d(0x149),'configStep1':_0xd5555d(0x15a),'configStep2':_0xd5555d(0x128),'configStep3':_0xd5555d(0x12f),'sessionId':_0xd5555d(0x153),'sessionIdDescription':_0xd5555d(0x14f),'authorizationDescription':_0xd5555d(0x144),'configParameters':'Configuration\x20Parameters:','maxRetries':_0xd5555d(0x141),'save':_0xd5555d(0x15b),'saving':_0xd5555d(0x127),'note1':_0xd5555d(0x13d),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0xd5555d(0x151),'configError':_0xd5555d(0x12a),'apiApplyInfo':{'title':_0xd5555d(0x133),'description':_0xd5555d(0x12e),'univerAiLabel':_0xd5555d(0x146),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0xd5555d(0x140),'invalidConfig':_0xd5555d(0x157),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0xd5555d(0x135),'connecting':_0xd5555d(0x14c),'connected':'Connected','failed':_0xd5555d(0x12c),'retrying':_0xd5555d(0x147)},'connectionError':{'missingApiKey':_0xd5555d(0x148),'invalidApiKey':_0xd5555d(0x12b),'sessionOccupied':_0xd5555d(0x126),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0xd5555d(0x14a)}}},n=e;function _0xe3df(){const _0x34ab34=['Failed\x20to\x20save\x20configuration','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Connection\x20Failed','MCP\x20Connection\x20Failed','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connected','Enable\x20Authentication','8YdJCiM','What\x20is\x20API\x20Key?','1465hozauj','Disconnected','408671PUDmwC','6uRgNNv','44bRAvHv','API\x20Key','MCP\x20Connecting...','MCP\x20Client\x20Configuration','3RLWYIN','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','307892zVYufP','MCP\x20Unknown\x20Status','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Max\x20Retries','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','2620BYtfEm','Univer\x20AI\x20Console','Retrying...','API\x20key\x20is\x20required\x20to\x20connect','Configuration\x20Steps:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Click\x20to\x20connect\x20MCP','Connecting...','MCP:\x20Session\x20Occupied','1037170uewmOO','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Session\x20ID','11935836wxWmBd','MCP:\x20Invalid\x20API\x20Key','MCP:\x20Network\x20Error','Invalid\x20configuration','MCP\x20Retrying...','1024807dzTsHI','Copy\x20the\x20JSON\x20configuration\x20below','Save\x20Configuration','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Saving...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','2878866pfyaDz'];_0xe3df=function(){return _0x34ab34;};return _0xe3df();}module['exports']=n;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x4e3166=_0x1b3d;(function(_0x51dc54,_0x423274){const _0x229fa3=_0x1b3d,_0xbd794=_0x51dc54();while(!![]){try{const _0x3431f9=parseInt(_0x229fa3(0x92))/0x1*(parseInt(_0x229fa3(0xa3))/0x2)+-parseInt(_0x229fa3(0x76))/0x3*(-parseInt(_0x229fa3(0xa2))/0x4)+parseInt(_0x229fa3(0x9b))/0x5+-parseInt(_0x229fa3(0x80))/0x6*(parseInt(_0x229fa3(0x8c))/0x7)+-parseInt(_0x229fa3(0x78))/0x8+-parseInt(_0x229fa3(0x98))/0x9*(-parseInt(_0x229fa3(0xa6))/0xa)+parseInt(_0x229fa3(0x74))/0xb*(-parseInt(_0x229fa3(0x7e))/0xc);if(_0x3431f9===_0x423274)break;else _0xbd794['push'](_0xbd794['shift']());}catch(_0x1ebb0a){_0xbd794['push'](_0xbd794['shift']());}}}(_0x24c3,0x38c09));function _0x24c3(){const _0x5195d4=['Click\x20to\x20configure\x20MCP','1876170LLGJwo','API\x20Key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connecting...','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','What\x20is\x20API\x20Key?','API\x20key\x20with\x20Bearer\x20prefix.','68736XtwyEN','436VBqjFh','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connection\x20Failed','180DqAcSd','MCP\x20Connected','4160145TDAuxe','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','30XnQEiR','Enable\x20Authentication','2610464UmchcX','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20is\x20required\x20to\x20connect','Retrying...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','12BPRsSf','Connecting...','69636cDCPES','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Client\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20API\x20Key\x20Missing','MCP\x20Disconnected','exports','Disconnected','Connection\x20Failed','Configuration\x20Steps:','Configuration\x20saved\x20successfully','MCP:\x20Session\x20Occupied','42dXpuUQ','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Save\x20Configuration','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Max\x20Retries','981aDOVxN','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Failed\x20to\x20save\x20configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Univer\x20AI\x20Console','MCP:\x20Network\x20Error','122832mZoFHj','Click\x20to\x20connect\x20MCP'];_0x24c3=function(){return _0x5195d4;};return _0x24c3();}const e={'mcpStatus':{'disconnected':_0x4e3166(0x85),'connecting':_0x4e3166(0x9e),'connected':_0x4e3166(0x73),'failed':_0x4e3166(0xa5),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','missingApiKey':_0x4e3166(0x84),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x4e3166(0x8b),'networkError':_0x4e3166(0x97),'maxRetriesExceeded':_0x4e3166(0xa4),'clickToConnect':_0x4e3166(0x99),'clickToConfigure':_0x4e3166(0x9a)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x4e3166(0x7d),'apiKey':_0x4e3166(0x9c),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x4e3166(0x79),'enableAuth':_0x4e3166(0x77),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x4e3166(0x82),'mcpClientConfig':_0x4e3166(0x82),'configInstructions':_0x4e3166(0x93),'configStepTitle':_0x4e3166(0x89),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x4e3166(0x9d),'configStep3':_0x4e3166(0x7a),'sessionId':'Session\x20ID','sessionIdDescription':_0x4e3166(0x8d),'authorizationDescription':_0x4e3166(0xa1),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x4e3166(0x91),'save':_0x4e3166(0x8e),'saving':'Saving...','note1':_0x4e3166(0x75),'note2':_0x4e3166(0x90),'configSaved':_0x4e3166(0x8a),'configError':_0x4e3166(0x94),'apiApplyInfo':{'title':_0x4e3166(0xa0),'description':_0x4e3166(0x95),'univerAiLabel':_0x4e3166(0x96),'getStarted':_0x4e3166(0x81)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x4e3166(0x83)},'connectionStatus':{'disconnected':_0x4e3166(0x87),'connecting':_0x4e3166(0x7f),'connected':'Connected','failed':_0x4e3166(0x88),'retrying':_0x4e3166(0x7c)},'connectionError':{'missingApiKey':_0x4e3166(0x7b),'invalidApiKey':_0x4e3166(0x9f),'sessionOccupied':_0x4e3166(0x8f),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x1b3d(_0x37f92e,_0x432176){const _0x24c3bc=_0x24c3();return _0x1b3d=function(_0x1b3d0a,_0x30f907){_0x1b3d0a=_0x1b3d0a-0x73;let _0x1bd7f3=_0x24c3bc[_0x1b3d0a];return _0x1bd7f3;},_0x1b3d(_0x37f92e,_0x432176);}module[_0x4e3166(0x86)]=n;
|
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x322c2e=_0x2106;function _0x2106(_0x30c6d0,_0x1ae4ee){const _0x337c94=_0x337c();return _0x2106=function(_0x210677,_0x4249d9){_0x210677=_0x210677-0x9f;let _0x5c184d=_0x337c94[_0x210677];return _0x5c184d;},_0x2106(_0x30c6d0,_0x1ae4ee);}function _0x337c(){const _0x534bb6=['Saving...','API\x20key\x20is\x20required\x20to\x20connect','Retrying...','MCP\x20Client\x20Configuration','Enable\x20Authentication','8132145zFhsDb','Configuration\x20saved\x20successfully','Session\x20ID','1526400RVqCie','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','14PFRpNu','MCP\x20Connection\x20Failed','MCP\x20Connected','363489TxlHCJ','667502dwMDfI','2547640fPmezc','MCP\x20Connecting...','648Nmdlnf','Univer\x20AI\x20Console','MCP:\x20Session\x20Occupied','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Invalid\x20API\x20Key','Invalid\x20configuration','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Click\x20to\x20connect\x20MCP','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20configure\x20MCP','Connected','Max\x20Retries','API\x20Key','10UqnMGU','Failed\x20to\x20save\x20configuration','3JYfJkA','5589774nftkfy','MCP:\x20Max\x20Retries\x20Exceeded','Connection\x20Failed','Configuration\x20Parameters:','What\x20is\x20API\x20Key?','MCP\x20Unknown\x20Status','Copy\x20the\x20JSON\x20configuration\x20below','66KbHZeK','237328mJxDzW','Disconnected'];_0x337c=function(){return _0x534bb6;};return _0x337c();}(function(_0xda81ea,_0x4d4a57){const _0x1a1507=_0x2106,_0x482cd5=_0xda81ea();while(!![]){try{const _0x1daea6=-parseInt(_0x1a1507(0xc3))/0x1*(parseInt(_0x1a1507(0xb7))/0x2)+-parseInt(_0x1a1507(0xae))/0x3*(-parseInt(_0x1a1507(0xc8))/0x4)+-parseInt(_0x1a1507(0xbe))/0x5+parseInt(_0x1a1507(0xb6))/0x6*(-parseInt(_0x1a1507(0xc6))/0x7)+parseInt(_0x1a1507(0xc1))/0x8+-parseInt(_0x1a1507(0xaf))/0x9*(-parseInt(_0x1a1507(0xac))/0xa)+parseInt(_0x1a1507(0xc7))/0xb*(parseInt(_0x1a1507(0xca))/0xc);if(_0x1daea6===_0x4d4a57)break;else _0x482cd5['push'](_0x482cd5['shift']());}catch(_0x55158b){_0x482cd5['push'](_0x482cd5['shift']());}}}(_0x337c,0xd398e));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x322c2e(0xc9),'connected':_0x322c2e(0xc5),'failed':_0x322c2e(0xc4),'retrying':'MCP\x20Retrying...','unknown':_0x322c2e(0xb4),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x322c2e(0xa1),'sessionOccupied':_0x322c2e(0xcc),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x322c2e(0xb0),'clickToConnect':_0x322c2e(0xa4),'clickToConfigure':_0x322c2e(0xa8)},'mcpConfig':{'title':_0x322c2e(0xce),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x322c2e(0xab),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x322c2e(0xbd),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x322c2e(0xbc),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x322c2e(0x9f),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x322c2e(0xb5),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x322c2e(0xc0),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x322c2e(0xa7),'configParameters':_0x322c2e(0xb2),'maxRetries':_0x322c2e(0xaa),'save':'Save\x20Configuration','saving':_0x322c2e(0xb9),'note1':_0x322c2e(0xc2),'note2':_0x322c2e(0xcf),'configSaved':_0x322c2e(0xbf),'configError':_0x322c2e(0xad),'apiApplyInfo':{'title':_0x322c2e(0xb3),'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':_0x322c2e(0xcb),'getStarted':_0x322c2e(0xa6)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x322c2e(0xcd),'invalidConfig':_0x322c2e(0xa2),'invalidApiKey':_0x322c2e(0xa5)},'connectionStatus':{'disconnected':_0x322c2e(0xb8),'connecting':'Connecting...','connected':_0x322c2e(0xa9),'failed':_0x322c2e(0xb1),'retrying':_0x322c2e(0xbb)},'connectionError':{'missingApiKey':_0x322c2e(0xba),'invalidApiKey':_0x322c2e(0xa3),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0x322c2e(0xa0),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module['exports']=n;
|