@univerjs-pro/mcp-ui 0.10.8 → 0.10.9-experimental.20250925-61b61a0
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.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/config.schema.d.ts +7 -0
- package/lib/types/controllers/mcp-connection-ui.controller.d.ts +4 -2
- package/lib/types/locale/en-US.d.ts +2 -4
- package/lib/types/locale/zh-CN.d.ts +2 -4
- package/lib/types/views/components/mcp-status.d.ts +2 -0
- 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 +8 -8
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
'use strict';var _0x4abf76=_0x5c61;(function(_0x146cac,_0x21fd58){var _0x2a8f74=_0x5c61,_0x2025d5=_0x146cac();while(!![]){try{var _0x30888f=-parseInt(_0x2a8f74(0x26a))/0x1*(-parseInt(_0x2a8f74(0x1fb))/0x2)+parseInt(_0x2a8f74(0x235))/0x3+parseInt(_0x2a8f74(0x201))/0x4*(-parseInt(_0x2a8f74(0x1f8))/0x5)+-parseInt(_0x2a8f74(0x21e))/0x6*(parseInt(_0x2a8f74(0x2e9))/0x7)+parseInt(_0x2a8f74(0x18b))/0x8*(parseInt(_0x2a8f74(0x276))/0x9)+parseInt(_0x2a8f74(0x2a7))/0xa+-parseInt(_0x2a8f74(0x2a6))/0xb;if(_0x30888f===_0x21fd58)break;else _0x2025d5['push'](_0x2025d5['shift']());}catch(_0x7b76fb){_0x2025d5['push'](_0x2025d5['shift']());}}}(_0x3bfb,0xc1c41));var ue=Object[_0x4abf76(0x321)],le=(_0x5bbbc3,_0x2804b9,_0x54736a)=>_0x2804b9 in _0x5bbbc3?ue(_0x5bbbc3,_0x2804b9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54736a}):_0x5bbbc3[_0x2804b9]=_0x54736a,I=(_0x4e87d4,_0x55738a,_0x5838db)=>le(_0x4e87d4,typeof _0x55738a!=_0x4abf76(0x302)?_0x55738a+'':_0x55738a,_0x5838db);Object['defineProperty'](exports,Symbol[_0x4abf76(0x228)],{'value':_0x4abf76(0x318)});const l=require('@univerjs/core'),t=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),S=require('@univerjs/design'),v=require('@univerjs/ui'),N=require('rxjs'),d=require('react'),A=require('@univerjs/network');var g=function(){var _0x3fb631=_0x4abf76;return g=Object[_0x3fb631(0x269)]||function(_0x3ca1e7){var _0x5828f6=_0x3fb631;for(var _0x46f8f5,_0x5aac6f=0x1,_0x39e6a9=arguments['length'];_0x5aac6f<_0x39e6a9;_0x5aac6f++){_0x46f8f5=arguments[_0x5aac6f];for(var _0x37a243 in _0x46f8f5)Object[_0x5828f6(0x24f)]['hasOwnProperty']['call'](_0x46f8f5,_0x37a243)&&(_0x3ca1e7[_0x37a243]=_0x46f8f5[_0x37a243]);}return _0x3ca1e7;},g[_0x3fb631(0x31a)](this,arguments);},ve=function(_0x56d5ae,_0x512b8a){var _0x2407b2=_0x4abf76,_0x12d010={};for(var _0x366865 in _0x56d5ae)Object[_0x2407b2(0x24f)][_0x2407b2(0x209)]['call'](_0x56d5ae,_0x366865)&&_0x512b8a[_0x2407b2(0x215)](_0x366865)<0x0&&(_0x12d010[_0x366865]=_0x56d5ae[_0x366865]);if(_0x56d5ae!=null&&typeof Object[_0x2407b2(0x2d6)]==_0x2407b2(0x2f3)){for(var _0x5738b9=0x0,_0x366865=Object['getOwnPropertySymbols'](_0x56d5ae);_0x5738b9<_0x366865[_0x2407b2(0x2c3)];_0x5738b9++)_0x512b8a[_0x2407b2(0x215)](_0x366865[_0x5738b9])<0x0&&Object[_0x2407b2(0x24f)][_0x2407b2(0x20d)]['call'](_0x56d5ae,_0x366865[_0x5738b9])&&(_0x12d010[_0x366865[_0x5738b9]]=_0x56d5ae[_0x366865[_0x5738b9]]);}return _0x12d010;},_=d['forwardRef'](function(_0x4df93c,_0x587b87){var _0x2bada1=_0x4abf76,_0x3a15d9=_0x4df93c[_0x2bada1(0x231)],_0x3493e5=_0x4df93c['id'],_0x309869=_0x4df93c[_0x2bada1(0x193)],_0x34547d=_0x4df93c[_0x2bada1(0x284)],_0x23e3d0=ve(_0x4df93c,[_0x2bada1(0x231),'id',_0x2bada1(0x193),_0x2bada1(0x284)]),_0x589b4c=_0x2bada1(0x1a2)[_0x2bada1(0x1af)](_0x3493e5,'\x20')[_0x2bada1(0x1af)](_0x309869||'')[_0x2bada1(0x2fd)](),_0x198a6f=d['useRef']('_'[_0x2bada1(0x1af)](ge()));return H(_0x3a15d9,''[_0x2bada1(0x1af)](_0x3493e5),{'defIds':_0x3a15d9[_0x2bada1(0x19c)],'idSuffix':_0x198a6f[_0x2bada1(0x2fa)]},g({'ref':_0x587b87,'className':_0x589b4c},_0x23e3d0),_0x34547d);});function H(_0x1960b,_0x4a9936,_0x7d8e7f,_0x881e0d,_0x423954){var _0x181c37=_0x4abf76;return d['createElement'](_0x1960b['tag'],g(g({'key':_0x4a9936},de(_0x1960b,_0x7d8e7f,_0x423954)),_0x881e0d),(Ce(_0x1960b,_0x7d8e7f)[_0x181c37(0x2c1)]||[])[_0x181c37(0x26d)](function(_0x59a259,_0x171661){var _0x1a263e=_0x181c37;return H(_0x59a259,''['concat'](_0x4a9936,'-')[_0x1a263e(0x1af)](_0x1960b[_0x1a263e(0x26f)],'-')[_0x1a263e(0x1af)](_0x171661),_0x7d8e7f,void 0x0,_0x423954);}));}function de(_0x4932b9,_0x5f098b,_0x574a57){var _0x2a55da=_0x4abf76,_0x455871=g({},_0x4932b9[_0x2a55da(0x31c)]);_0x574a57!=null&&_0x574a57[_0x2a55da(0x223)]&&_0x455871['fill']===_0x2a55da(0x223)&&(_0x455871[_0x2a55da(0x278)]=_0x574a57[_0x2a55da(0x223)]),_0x4932b9['tag']==='mask'&&_0x455871['id']&&(_0x455871['id']=_0x455871['id']+_0x5f098b[_0x2a55da(0x2d0)]),Object['entries'](_0x455871)[_0x2a55da(0x273)](function(_0x3f28b5){var _0x41e5c5=_0x2a55da,_0x3dd1fd=_0x3f28b5[0x0],_0x361463=_0x3f28b5[0x1];_0x3dd1fd===_0x41e5c5(0x22b)&&typeof _0x361463=='string'&&(_0x455871[_0x3dd1fd]=_0x361463[_0x41e5c5(0x1c7)](/url\(#(.*)\)/,_0x41e5c5(0x2af)[_0x41e5c5(0x1af)](_0x5f098b[_0x41e5c5(0x2d0)],')')));});var _0x1b1256=_0x5f098b[_0x2a55da(0x19c)];return!_0x1b1256||_0x1b1256[_0x2a55da(0x2c3)]===0x0||(_0x4932b9[_0x2a55da(0x26f)]===_0x2a55da(0x251)&&_0x455871[_0x2a55da(0x23f)]&&(_0x455871[_0x2a55da(0x23f)]=_0x455871['xlink:href']+_0x5f098b[_0x2a55da(0x2d0)]),Object[_0x2a55da(0x2f7)](_0x455871)[_0x2a55da(0x273)](function(_0x3dcd1b){var _0x7569b3=_0x2a55da,_0x583084=_0x3dcd1b[0x0],_0x29d159=_0x3dcd1b[0x1];typeof _0x29d159==_0x7569b3(0x271)&&(_0x455871[_0x583084]=_0x29d159[_0x7569b3(0x1c7)](/url\(#(.*)\)/,'url(#$1'[_0x7569b3(0x1af)](_0x5f098b[_0x7569b3(0x2d0)],')')));})),_0x455871;}function Ce(_0x4c351f,_0x4737b0){var _0x1bb83e=_0x4abf76,_0x576d12,_0x2a4e4c=_0x4737b0['defIds'];return!_0x2a4e4c||_0x2a4e4c[_0x1bb83e(0x2c3)]===0x0?_0x4c351f:_0x4c351f[_0x1bb83e(0x26f)]===_0x1bb83e(0x2f9)&&(!((_0x576d12=_0x4c351f[_0x1bb83e(0x2c1)])===null||_0x576d12===void 0x0)&&_0x576d12[_0x1bb83e(0x2c3)])?g(g({},_0x4c351f),{'children':_0x4c351f[_0x1bb83e(0x2c1)]['map'](function(_0x1ea843){var _0x1553bb=_0x1bb83e;return typeof _0x1ea843[_0x1553bb(0x31c)]['id']==_0x1553bb(0x271)&&_0x2a4e4c&&_0x2a4e4c[_0x1553bb(0x1ec)](_0x1ea843[_0x1553bb(0x31c)]['id'])?g(g({},_0x1ea843),{'attrs':g(g({},_0x1ea843[_0x1553bb(0x31c)]),{'id':_0x1ea843[_0x1553bb(0x31c)]['id']+_0x4737b0[_0x1553bb(0x2d0)]})}):_0x1ea843;})}):_0x4c351f;}function ge(){var _0x339ae9=_0x4abf76;return Math[_0x339ae9(0x263)]()[_0x339ae9(0x2a8)](0x24)['substring'](0x2,0x8);}_[_0x4abf76(0x1bd)]=_0x4abf76(0x1a8);var fe={'tag':_0x4abf76(0x265),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4abf76(0x2b5),'viewBox':_0x4abf76(0x2f4),'width':_0x4abf76(0x2aa),'height':_0x4abf76(0x2aa)},'children':[{'tag':_0x4abf76(0x2b2),'attrs':{'fill':_0x4abf76(0x255),'d':_0x4abf76(0x262),'fillRule':'evenodd','clipRule':_0x4abf76(0x270)}}]},B=d['forwardRef'](function(_0x4344b3,_0x59ca02){var _0x275781=_0x4abf76;return d[_0x275781(0x2c2)](_,Object['assign']({},_0x4344b3,{'id':_0x275781(0x1b8),'ref':_0x59ca02,'icon':fe}));});B[_0x4abf76(0x1bd)]=_0x4abf76(0x190);var pe={'tag':_0x4abf76(0x265),'attrs':{'xmlns':_0x4abf76(0x23e),'fill':_0x4abf76(0x2b5),'viewBox':_0x4abf76(0x250),'width':_0x4abf76(0x2aa),'height':_0x4abf76(0x2aa)},'children':[{'tag':'path','attrs':{'stroke':_0x4abf76(0x255),'d':_0x4abf76(0x2d7),'strokeLinecap':'round','strokeLinejoin':_0x4abf76(0x230),'strokeWidth':1.33}},{'tag':'path','attrs':{'stroke':'currentColor','d':'M5.21243\x2012.287L11.8791\x205.62036','strokeLinecap':_0x4abf76(0x230),'strokeLinejoin':'round','strokeWidth':1.33}}]},F=d[_0x4abf76(0x2dc)](function(_0x3f8ad8,_0x10bfb6){var _0x2fbbe9=_0x4abf76;return d[_0x2fbbe9(0x2c2)](_,Object[_0x2fbbe9(0x269)]({},_0x3f8ad8,{'id':_0x2fbbe9(0x1c4),'ref':_0x10bfb6,'icon':pe}));});F['displayName']=_0x4abf76(0x2a0);var he={'tag':_0x4abf76(0x265),'attrs':{'xmlns':_0x4abf76(0x23e),'fill':_0x4abf76(0x2b5),'viewBox':_0x4abf76(0x2f4),'width':_0x4abf76(0x2aa),'height':_0x4abf76(0x2aa)},'children':[{'tag':_0x4abf76(0x2b2),'attrs':{'fill':_0x4abf76(0x255),'d':_0x4abf76(0x30c)}},{'tag':_0x4abf76(0x2b2),'attrs':{'fill':'currentColor','d':_0x4abf76(0x24e)}},{'tag':_0x4abf76(0x2b2),'attrs':{'fill':'currentColor','d':_0x4abf76(0x2d4),'fillRule':_0x4abf76(0x270),'clipRule':_0x4abf76(0x270)}}]},Y=d[_0x4abf76(0x2dc)](function(_0x4f6126,_0x44de54){var _0x7551b6=_0x4abf76;return d[_0x7551b6(0x2c2)](_,Object[_0x7551b6(0x269)]({},_0x4f6126,{'id':'help-single','ref':_0x44de54,'icon':he}));});Y['displayName']='HelpSingle';var me={'tag':_0x4abf76(0x265),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4abf76(0x2b5),'viewBox':_0x4abf76(0x2f4),'width':_0x4abf76(0x2aa),'height':_0x4abf76(0x2aa)},'children':[{'tag':'g','attrs':{'clipPath':_0x4abf76(0x2e6)},'children':[{'tag':_0x4abf76(0x2b2),'attrs':{'stroke':'currentColor','d':_0x4abf76(0x216),'strokeLinecap':'round','strokeLinejoin':_0x4abf76(0x230),'strokeWidth':1.2}}]},{'tag':_0x4abf76(0x2f9),'attrs':{},'children':[{'tag':_0x4abf76(0x192),'attrs':{'id':_0x4abf76(0x2de)},'children':[{'tag':_0x4abf76(0x2b2),'attrs':{'fill':'white','d':_0x4abf76(0x1c2)}}]}]}],'defIds':[_0x4abf76(0x2de)]},q=d[_0x4abf76(0x2dc)](function(_0x4aabcd,_0x5c420d){var _0x30ac27=_0x4abf76;return d[_0x30ac27(0x2c2)](_,Object[_0x30ac27(0x269)]({},_0x4aabcd,{'id':_0x30ac27(0x2bd),'ref':_0x5c420d,'icon':me}));});q['displayName']=_0x4abf76(0x1fc);var xe={'tag':_0x4abf76(0x265),'attrs':{'xmlns':_0x4abf76(0x23e),'fill':_0x4abf76(0x2b5),'viewBox':_0x4abf76(0x2f5),'width':_0x4abf76(0x2aa),'height':_0x4abf76(0x2aa)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x4abf76(0x2b2),'attrs':{'stroke':_0x4abf76(0x255),'d':_0x4abf76(0x1cd),'strokeLinecap':_0x4abf76(0x230),'strokeLinejoin':_0x4abf76(0x230),'strokeWidth':1.2}}]},{'tag':_0x4abf76(0x2f9),'attrs':{},'children':[{'tag':_0x4abf76(0x192),'attrs':{'id':_0x4abf76(0x29a)},'children':[{'tag':_0x4abf76(0x2b2),'attrs':{'fill':_0x4abf76(0x300),'d':'M0\x200H16V16H0z','transform':_0x4abf76(0x206)}}]}]}],'defIds':[_0x4abf76(0x29a)]},V=d[_0x4abf76(0x2dc)](function(_0x4e3000,_0x64a145){var _0x32fcf7=_0x4abf76;return d['createElement'](_,Object['assign']({},_0x4e3000,{'id':_0x32fcf7(0x237),'ref':_0x64a145,'icon':xe}));});V[_0x4abf76(0x1bd)]=_0x4abf76(0x2fe);function W(_0x29be56){var _0xafc3ab=_0x4abf76,_0x966e60,_0x18b8c5;const {mcpCoreConfig:_0x45a236,onSave:_0x471bc4,loading:_0x50045b=!0x1,config:_0x3fb4cb,connectionStatus$:_0x2eb46f,connectionError$:_0x1143dc,currentApiKey$:_0xc1e633,currentSessionId$:_0x4bb147}=_0x29be56,_0x3a288f=v[_0xafc3ab(0x2fc)](l[_0xafc3ab(0x2d9)]),_0x63c6d5=v[_0xafc3ab(0x241)](_0x2eb46f,s[_0xafc3ab(0x26b)]['DISCONNECTED']),_0x8b8d76=v[_0xafc3ab(0x241)](_0x1143dc,s[_0xafc3ab(0x28c)]['NONE']),_0x435f4d=v[_0xafc3ab(0x241)](_0x4bb147,''),_0x3547e6=v[_0xafc3ab(0x241)](_0xc1e633,''),[_0x5a18ff,_0x318c56]=d[_0xafc3ab(0x272)](_0x3547e6||''),_0x32ae7e=!0x0,_0x4ba684=_0x3fb4cb[_0xafc3ab(0x18a)]&&_0x45a236[_0xafc3ab(0x21f)]&&(_0x45a236[_0xafc3ab(0x21f)]['includes'](_0xafc3ab(0x1ac))||_0x45a236[_0xafc3ab(0x21f)][_0xafc3ab(0x1ec)](_0xafc3ab(0x218))),_0x489ab0=(_0x966e60=_0x45a236[_0xafc3ab(0x21f)])==null?void 0x0:_0x966e60[_0xafc3ab(0x1ec)](_0xafc3ab(0x1ac)),_0xfefe5b=(_0x18b8c5=_0x45a236[_0xafc3ab(0x21f)])==null?void 0x0:_0x18b8c5[_0xafc3ab(0x1ec)](_0xafc3ab(0x218)),_0x50827a=_0x489ab0?'https://console.univer.plus':_0xafc3ab(0x2b4),_0x51d0b4=_0x3fb4cb[_0xafc3ab(0x18a)]&&(_0x489ab0||_0xfefe5b),[_0x3b980b,_0x2718d1]=d[_0xafc3ab(0x272)](!_0x5a18ff[_0xafc3ab(0x2fd)]()),_0x3b9c5a=(_0xc37d78,_0x53b96e)=>{var _0x146aa7=_0xafc3ab;if(_0x53b96e===s[_0x146aa7(0x28c)][_0x146aa7(0x2c4)])return _0x146aa7(0x1d6);switch(_0xc37d78){case s['MCPConnectionStatus'][_0x146aa7(0x18c)]:return _0x146aa7(0x1cf);case s[_0x146aa7(0x26b)][_0x146aa7(0x290)]:case s[_0x146aa7(0x26b)][_0x146aa7(0x2dd)]:return _0x146aa7(0x2a3);case s[_0x146aa7(0x26b)][_0x146aa7(0x2c9)]:return _0x146aa7(0x1d6);default:return _0x146aa7(0x1df);}},_0x1e5c21=(_0x2aa103,_0x55f09f)=>{var _0x326d94=_0xafc3ab;if(_0x55f09f===s['MCPConnectionError'][_0x326d94(0x2c4)])return _0x326d94(0x2ae);switch(_0x2aa103){case s['MCPConnectionStatus'][_0x326d94(0x18c)]:return'univer-bg-green-500';case s[_0x326d94(0x26b)][_0x326d94(0x290)]:case s[_0x326d94(0x26b)][_0x326d94(0x2dd)]:return'univer-bg-blue-500';case s['MCPConnectionStatus']['FAILED']:return'univer-bg-red-500';default:return _0x326d94(0x261);}},_0x3c3978=_0x311bd=>{var _0x2f3528=_0xafc3ab;switch(_0x311bd){case s[_0x2f3528(0x26b)][_0x2f3528(0x18c)]:return _0x3a288f['t'](_0x2f3528(0x1ae));case s[_0x2f3528(0x26b)][_0x2f3528(0x290)]:return _0x3a288f['t'](_0x2f3528(0x1c6));case s['MCPConnectionStatus'][_0x2f3528(0x2c9)]:return _0x3a288f['t'](_0x2f3528(0x2ef));case s[_0x2f3528(0x26b)]['RETRYING']:return _0x3a288f['t'](_0x2f3528(0x21a));default:return _0x3a288f['t'](_0x2f3528(0x2e7));}},_0x4b15a5=_0x20e15d=>{var _0x20a199=_0xafc3ab;switch(_0x20e15d){case s[_0x20a199(0x28c)][_0x20a199(0x2c4)]:return _0x3a288f['t'](_0x20a199(0x1ca));case s[_0x20a199(0x28c)][_0x20a199(0x239)]:return _0x3a288f['t'](_0x20a199(0x258));case s[_0x20a199(0x28c)][_0x20a199(0x1aa)]:return _0x3a288f['t']('mcpConfig.connectionError.networkError');case s['MCPConnectionError'][_0x20a199(0x1a3)]:return _0x3a288f['t'](_0x20a199(0x30d));default:return'';}},_0x38b04b=d[_0xafc3ab(0x2b0)](()=>{const _0x1880eb={..._0x45a236,'apiKey':_0x5a18ff['trim'](),'enableAuth':_0x32ae7e};_0x471bc4(_0x1880eb);},[_0x45a236,_0x5a18ff,_0x32ae7e,_0x471bc4]),_0x3a2784=_0x5a18ff[_0xafc3ab(0x2fd)]()[_0xafc3ab(0x2c3)]>0x0;return t[_0xafc3ab(0x315)](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x2a5),'children':[t[_0xafc3ab(0x1c1)]('div',{'className':_0xafc3ab(0x2c6),'children':t[_0xafc3ab(0x315)](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x289),'children':[t['jsx'](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x19f),'children':t[_0xafc3ab(0x1c1)](_0xafc3ab(0x1cc),{'className':'univer-text-white','children':'⚙'})}),t[_0xafc3ab(0x1c1)](_0xafc3ab(0x2a2),{'children':t['jsx']('p',{'className':_0xafc3ab(0x264),'children':_0x3a288f['t']('mcpConfig.description')})})]})}),t[_0xafc3ab(0x315)](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x25c),'children':[t[_0xafc3ab(0x1c1)]('div',{'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'+_0x3b9c5a(_0x63c6d5,_0x8b8d76)+_0xafc3ab(0x1f9),'children':t['jsxs'](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x226),'children':[t['jsx'](_0xafc3ab(0x2a2),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1e5c21(_0x63c6d5,_0x8b8d76)+'\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'}),t[_0xafc3ab(0x1c1)](_0xafc3ab(0x1cc),{'className':_0xafc3ab(0x31f),'children':_0x3c3978(_0x63c6d5)})]})}),_0x8b8d76!==s[_0xafc3ab(0x28c)][_0xafc3ab(0x18d)]&&(_0x63c6d5===s[_0xafc3ab(0x26b)][_0xafc3ab(0x2c9)]||_0x8b8d76===s['MCPConnectionError'][_0xafc3ab(0x2c4)])&&t[_0xafc3ab(0x1c1)]('div',{'className':_0xafc3ab(0x1a5),'children':t[_0xafc3ab(0x315)](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x22c),'children':[t[_0xafc3ab(0x1c1)](_0xafc3ab(0x1cc),{'className':'univer-flex-shrink-0\x20univer-text-red-500','children':'⚠️'}),t['jsx']('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x4b15a5(_0x8b8d76)})]})})]}),t[_0xafc3ab(0x1c1)](_0xafc3ab(0x2a2),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':t['jsxs'](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x24b),'children':[t[_0xafc3ab(0x315)](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x2ba),'children':[t[_0xafc3ab(0x315)](_0xafc3ab(0x313),{'className':_0xafc3ab(0x305),'children':[t[_0xafc3ab(0x1c1)](_0xafc3ab(0x1cc),{'children':'🔑'}),'\x20',_0x3a288f['t']('mcpConfig.apiKey'),t[_0xafc3ab(0x1c1)]('span',{'className':_0xafc3ab(0x24c),'children':'*'}),_0x4ba684&&t[_0xafc3ab(0x1c1)]('a',{'href':'javascript:void(0)','onClick':()=>_0x2718d1(!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':_0x3a288f['t'](_0xafc3ab(0x210)),'children':t[_0xafc3ab(0x1c1)](Y,{})})]}),t[_0xafc3ab(0x1c1)](S['Input'],{'type':_0xafc3ab(0x2fb),'placeholder':_0x3a288f['t'](_0xafc3ab(0x22a)),'value':_0x5a18ff,'onChange':_0x318c56,'disabled':_0x50045b,'autoComplete':_0xafc3ab(0x28f)}),t['jsx']('p',{'className':_0xafc3ab(0x320),'children':_0x3a288f['t']('mcpConfig.apiKeyHint')})]}),_0x4ba684&&_0x3b980b&&t[_0xafc3ab(0x315)](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x31d),'children':[t[_0xafc3ab(0x1c1)]('a',{'href':_0xafc3ab(0x30b),'onClick':()=>_0x2718d1(!0x1),'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','title':'Close','children':t['jsx'](F,{})}),t[_0xafc3ab(0x315)]('div',{'className':_0xafc3ab(0x220),'children':[t['jsx'](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x1f1),'children':t[_0xafc3ab(0x1c1)]('span',{'className':'univer-text-blue-600','children':'🚀'})}),t['jsxs']('div',{'className':_0xafc3ab(0x1de),'children':[t[_0xafc3ab(0x1c1)]('h4',{'className':_0xafc3ab(0x1a4),'children':_0x3a288f['t'](_0xafc3ab(0x210))}),t['jsx']('p',{'className':_0xafc3ab(0x292),'children':_0x3a288f['t'](_0xafc3ab(0x238))}),t[_0xafc3ab(0x1c1)](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x25b),'children':_0x51d0b4&&t[_0xafc3ab(0x315)]('a',{'href':_0x50827a,'target':'_blank','rel':_0xafc3ab(0x2cb),'className':_0xafc3ab(0x31e),'children':[t[_0xafc3ab(0x1c1)](_0xafc3ab(0x1cc),{'children':'🤖'}),_0x3a288f['t']('mcpConfig.apiApplyInfo.univerAiLabel'),t[_0xafc3ab(0x1c1)](_0xafc3ab(0x1cc),{'className':'univer-text-gray-400','children':'↗'})]})}),t[_0xafc3ab(0x315)]('div',{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x3a288f['t'](_0xafc3ab(0x1a6))]})]})]})]}),_0x3fb4cb[_0xafc3ab(0x18a)]&&t['jsxs']('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[t[_0xafc3ab(0x315)]('h4',{'className':_0xafc3ab(0x2b3),'children':[t['jsx'](_0xafc3ab(0x1cc),{'children':'🔗'}),'\x20',_0x3a288f['t'](_0xafc3ab(0x2d3))]}),t[_0xafc3ab(0x315)]('div',{'className':'univer-space-y-4','children':[t[_0xafc3ab(0x315)](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x1f7),'children':[t['jsx']('p',{'className':_0xafc3ab(0x2ca),'children':_0x3a288f['t'](_0xafc3ab(0x27c))}),t[_0xafc3ab(0x315)](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x2ba),'children':[t[_0xafc3ab(0x1c1)](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x1ed),'children':_0x3a288f['t'](_0xafc3ab(0x205))}),t[_0xafc3ab(0x315)](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x260),'children':[t[_0xafc3ab(0x315)](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x226),'children':[t[_0xafc3ab(0x1c1)](_0xafc3ab(0x1cc),{'className':_0xafc3ab(0x2ab),'children':'1'}),_0x3a288f['t'](_0xafc3ab(0x2e3))]}),t[_0xafc3ab(0x315)](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x226),'children':[t[_0xafc3ab(0x1c1)](_0xafc3ab(0x1cc),{'className':_0xafc3ab(0x2ab),'children':'2'}),_0x3a288f['t'](_0xafc3ab(0x298))]}),t['jsxs'](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x226),'children':[t[_0xafc3ab(0x1c1)]('span',{'className':_0xafc3ab(0x2ab),'children':'3'}),_0x3a288f['t']('mcpConfig.configStep3')]})]})]})]}),t['jsxs'](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x2ba),'children':[t[_0xafc3ab(0x1c1)](_0xafc3ab(0x2a2),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0xafc3ab(0x1be)}),t['jsx'](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x1b6),'children':t[_0xafc3ab(0x1c1)](_0xafc3ab(0x26e),{'className':_0xafc3ab(0x25a),'children':_0xafc3ab(0x30a)+_0x435f4d+_0xafc3ab(0x1dd)+(_0x5a18ff||'<API_KEY>')+_0xafc3ab(0x316)})})]}),t[_0xafc3ab(0x315)](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x1f7),'children':[t['jsx'](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x1ed),'children':_0x3a288f['t'](_0xafc3ab(0x1f6))}),t['jsxs'](_0xafc3ab(0x2a2),{'className':'univer-space-y-2','children':[t['jsxs'](_0xafc3ab(0x2a2),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[t[_0xafc3ab(0x1c1)](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x2ad)}),t[_0xafc3ab(0x315)](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x297),'children':[t[_0xafc3ab(0x1c1)](_0xafc3ab(0x2a2),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0xafc3ab(0x21d)}),t[_0xafc3ab(0x1c1)](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x320),'children':_0x3a288f['t']('mcpConfig.sessionIdDescription')})]})]}),t[_0xafc3ab(0x315)]('div',{'className':_0xafc3ab(0x2cf),'children':[t['jsx'](_0xafc3ab(0x2a2),{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),t[_0xafc3ab(0x315)](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x297),'children':[t[_0xafc3ab(0x1c1)]('div',{'className':_0xafc3ab(0x29b),'children':_0xafc3ab(0x319)}),t['jsx']('div',{'className':_0xafc3ab(0x320),'children':_0x3a288f['t'](_0xafc3ab(0x2f2))})]})]})]})]})]})]}),t[_0xafc3ab(0x1c1)](S[_0xafc3ab(0x24d)],{'onClick':_0x38b04b,'disabled':!_0x3a2784||_0x50045b,'className':_0xafc3ab(0x23b),'children':_0x50045b?t[_0xafc3ab(0x315)](_0xafc3ab(0x1cc),{'className':_0xafc3ab(0x226),'children':[t['jsx'](_0xafc3ab(0x1cc),{'children':'⟲'}),_0x3a288f['t'](_0xafc3ab(0x1e2))]}):t[_0xafc3ab(0x315)](_0xafc3ab(0x1cc),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[t[_0xafc3ab(0x1c1)](B,{}),_0x3a288f['t'](_0xafc3ab(0x29c))]})}),t[_0xafc3ab(0x1c1)](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x1b2),'children':t[_0xafc3ab(0x315)](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x1d7),'children':[t[_0xafc3ab(0x1c1)]('span',{'className':_0xafc3ab(0x2db),'children':'💡'}),t[_0xafc3ab(0x315)](_0xafc3ab(0x2a2),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[t[_0xafc3ab(0x1c1)](_0xafc3ab(0x2a2),{'className':_0xafc3ab(0x246),'children':'Configuration\x20Notes:'}),t[_0xafc3ab(0x315)](_0xafc3ab(0x2a2),{'children':['•',_0x3a288f['t']('mcpConfig.note1')]}),t['jsxs'](_0xafc3ab(0x2a2),{'children':['•',_0x3a288f['t'](_0xafc3ab(0x1e3))]})]})]})})]})})]});}const y=_0x4abf76(0x2a9),G={'showDeveloperTools':!0x1,'showStatus':!0x0};function _0x3bfb(){var _0x262966=['NONE','_loading$','_dialogService','CheckMarkIcon','validateApiKey','clipPath','className','Configuration\x20Parameters:','warn','MCPConnectionController','MCP:\x20超出最大重试次数','mcpConfig.validation.invalidApiKey','Bearer\x20','getOwnPropertyDescriptor','_initializeMenus','defIds','Failed\x20to\x20save\x20configuration','重连中...','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','setItem','Copy\x20the\x20JSON\x20configuration\x20below','univerjs-icon\x20univerjs-icon-','MAX_RETRIES_EXCEEDED','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mcpConfig.apiApplyInfo.getStarted','next','UniverIcon','errorMessage','NETWORK_ERROR','Session\x20ID','univer.plus','BehaviorSubject','mcpConfig.connectionStatus.connected','concat','zhCN','ICommandService','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','几秒钟内获取您的\x20API\x20密钥','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','MCPStatusDisplay','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','Univer\x20AI\x20控制台','check-mark-icon','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','mcpConfig.validation.apiKeyRequired','ComponentManager','displayName','MCP\x20Configuration','mcp-ui.command.openConfigPanel','API\x20key\x20with\x20Bearer\x20prefix.','jsx','M0\x200H16V16H0z','sessionId$','close-small-single','_commandService','mcpConfig.connectionStatus.connecting','replace','__setCustomHeaders','会话ID','mcpConfig.connectionError.unauthorized','请输入您的\x20API\x20密钥','span','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','MCP\x20状态未知','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','配置参数:','_menuManagerService','Click\x20to\x20connect\x20MCP','IMenuManagerService','带有\x20Bearer\x20前缀的\x20API\x20密钥。','Click\x20to\x20configure\x20MCP','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-flex\x20univer-gap-3','mcpStatus.connecting','_registerComponent','HEADER_MENU','API\x20密钥无效,请检查密钥是否正确','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\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','univer-flex-1','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','ILogService','mcpConfig.saving','mcpConfig.note2','MCP\x20Client\x20Configuration','MCP\x20Disconnected','连接中...','IConfigService','MCP_UI_PLUGIN','OTHERS','_config$','MessageType','includes','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','配置保存失败','WebSocketService','将以下配置添加到您的\x20MCP\x20客户端设置中:','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','MCP\x20Connecting...','Success','IUIPartsService','MCP:\x20Network\x20Error','mcpConfig.configParameters','univer-space-y-3','115mObkeN','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','DependentOn','6rvzRoa','OffLineIcon','_mcpCoreConfig$','MCP:\x20未授权','Enable\x20authentication\x20for\x20secure\x20connections','univer-flex\x20univer-items-center','16232PiDmlN','API\x20密钥长度至少需要\x2010\x20位','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connection\x20Failed','mcpConfig.configStepTitle','translate(.97)','\x20-\x20','show','hasOwnProperty','_configService','RibbonStartGroup','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','propertyIsEnumerable','mcpStatus.unknown','IDialogService','mcpConfig.apiApplyInfo.title','OpenMCPConfigPanelCommand','Connected','Connecting...','connectInjector','indexOf','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','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer.ai','启用身份验证','mcpConfig.connectionStatus.retrying','Enter\x20your\x20API\x20key','_localeService','univer_session_id:','546luSpCl','mcpServerUrl','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','Inject','配置更改将立即生效','colorChannel1','showStatus','BUTTON','univer-flex\x20univer-items-center\x20univer-gap-2','mcpConfig.title','toStringTag','COMMAND','mcpConfig.apiKeyPlaceholder','mask','univer-flex\x20univer-items-start\x20univer-gap-2','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','subscribe','UniverMCPUIPlugin','round','icon','_logService','has','最大重试次数','2163618RBWLKP','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','on-line-icon','mcpConfig.apiApplyInfo.description','SESSION_ID_OCCUPIED','MCP\x20已断开','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','_initAutoConnect','ILocalStorageService','http://www.w3.org/2000/svg','xlink:href','DISCONNECTED','useObservable','_uiPartsService','_config','MenuIcon','_injector','univer-font-medium','mcpConfig.configError','MCP\x20Unknown\x20Status','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','What\x20is\x20API\x20Key?','univer-space-y-5','univer-text-red-500','Button','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','prototype','0\x200\x2017\x2017','use','未连接','getCurrentConfig','Max\x20Retries','currentColor','isValid','API\x20密钥','mcpConfig.connectionError.sessionOccupied','启用身份验证以获得安全连接','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-flex\x20univer-flex-wrap\x20univer-gap-2','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','_initStatusComponent','您的\x20API\x20密钥安全存储在本地存储中','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-bg-gray-500','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','random','univer-text-sm\x20univer-text-gray-500','svg','get','_mcpConnectionController','权限验证失败,请检查您的\x20API\x20密钥','assign','211285UboMtY','MCPConnectionStatus','connectionError$','map','pre','tag','evenodd','string','useState','forEach','open','removeItem','1722915qFQMyz','push','fill','配置步骤:','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Connection\x20Failed','mcpConfig.configInstructions','复制以下\x20JSON\x20配置','mcpStatus.sessionOccupied','register','univer-text-gray-500','_connectionController','配置\x20MCP\x20使用\x20AI\x20操作电子表格','UniverMCPPlugin','extend','MCPUIMenuController','API\x20Key','apiKey','MenuItemType','univer-flex\x20univer-items-center\x20univer-gap-3','_handleConfigSave','MCP\x20已连接','MCPConnectionError','MCP_PLUGIN_CONFIG_KEY','MCP:\x20网络错误','off','CONNECTING','setConfig','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','pluginName','您的\x20API\x20密钥将在此浏览器中本地存储','MCP\x20Retrying...','_createConfigPanelComponent','univer-min-w-0\x20univer-flex-1','mcpConfig.configStep2','_messageService','on-line-icon_clip0_910_349','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.save','Saving...','subscribeConfigValue$','bottom','CloseSmallSingle','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','div','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','点击配置\x20MCP','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','3318689fMtDqY','883420QyaWgU','toString','mcp-ui.config','1em','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','showConfigPanel','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-bg-red-500','url(#$1','useCallback','保存中...','path','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','https://console.univer.ai','none','Injector','API\x20密钥不能为空','mcpConfig.validation.apiKeyTooShort','MCPConfigUIController','univer-space-y-2','点击连接\x20MCP','disposeWithMe','off-line-icon','IMessageService','MCP\x20连接失败','clsx','children','createElement','length','UNAUTHORIZED','mcpStatus.retrying','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','onStarting','Tooltip','FAILED','univer-text-xs\x20univer-text-gray-600','noopener\x20noreferrer','mergeMenu','add','_validateConfig','univer-flex\x20univer-items-start\x20univer-gap-3','idSuffix','MCPConfigPanel','getConfig','mcpConfig.connectionInfo','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','会话\x20ID\x20已被占用,请稍后再试','getOwnPropertySymbols','M5.21243\x205.62036L11.8791\x2012.287','mcpConfig.validation.invalidConfig','LocaleService','Configuration\x20Steps:','univer-flex-shrink-0\x20univer-text-blue-500','forwardRef','RETRYING','off-line-icon_clip0_910_343','保存配置','_initializeCommands','close','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','mcpConfig.configStep1','enableAutoConnect','网络连接错误,请检查您的网络连接','url(#off-line-icon_clip0_910_343)','mcpConfig.connectionStatus.disconnected','mcpStatus.unauthorized','63770hHsmiB','什么是\x20API\x20密钥?','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20saved\x20successfully','univer-text-green-500','MCP\x20客户端配置','mcpConfig.connectionStatus.failed','MCP\x20Connected','_initConfigSync','mcpConfig.authorizationDescription','function','0\x200\x2016\x2016','0\x200\x2017\x2016','error','entries','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','defs','current','text','useDependency','trim','OnLineIcon','ISocketService','white','重启您的\x20MCP\x20客户端以使配置生效','symbol','value','Save\x20Configuration','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','Error','配置无效','Retrying...','_handleConfigure','{\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=','javascript:void(0)','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','mcpConfig.connectionError.maxRetriesExceeded','Enable\x20Authentication','connectionStatus$','registerCommand','Disposable','_loadStoredApiKey','label','MCPConnectionUIController','jsxs','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','_apiKey$','Module','Authorization:','apply','_localStorageService','attrs','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','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','univer-text-sm\x20univer-font-medium','univer-text-xs\x20univer-text-gray-500','defineProperty','mcpConfig.configSaved','showDeveloperTools','24zhznTH','CONNECTED'];_0x3bfb=function(){return _0x262966;};return _0x3bfb();}var Se=Object[_0x4abf76(0x19a)],Pe=(_0x17417d,_0x58443e,_0x1c32d4,_0x92ec2c)=>{var _0x44f3f2=_0x4abf76;for(var _0x1cd1e7=_0x92ec2c>0x1?void 0x0:_0x92ec2c?Se(_0x58443e,_0x1c32d4):_0x58443e,_0x2446b1=_0x17417d[_0x44f3f2(0x2c3)]-0x1,_0x26556e;_0x2446b1>=0x0;_0x2446b1--)(_0x26556e=_0x17417d[_0x2446b1])&&(_0x1cd1e7=_0x26556e(_0x1cd1e7)||_0x1cd1e7);return _0x1cd1e7;},f=(_0x291482,_0x45519d)=>(_0x511f50,_0x2459d1)=>_0x45519d(_0x511f50,_0x2459d1,_0x291482);const D='mcp.apiKey',k='mcp-config-dialog';exports['MCPConfigUIController']=class extends l['Disposable']{constructor(_0x53c740,_0x34de5c,_0xbee0ba,_0x23394b,_0x1b99c8,_0xb1ed34,_0x5deb5e,_0x3d23aa,_0x8a1eee,_0x45f84e){var _0x4d3e7d=_0x4abf76;super(),I(this,_0x4d3e7d(0x18e),new N[(_0x4d3e7d(0x1ad))](!0x1)),I(this,_0x4d3e7d(0x1fd),new N[(_0x4d3e7d(0x1ad))]({})),I(this,_0x4d3e7d(0x1ea),new N[(_0x4d3e7d(0x1ad))]({})),I(this,'_apiKey$',new N['BehaviorSubject']('')),I(this,_0x4d3e7d(0x28a),async _0x23e303=>{var _0x2f2d49=_0x4d3e7d,_0x54b874,_0x294d68;this[_0x2f2d49(0x18e)][_0x2f2d49(0x1a7)](!0x0);try{const _0x4703ac=await this['_validateConfig'](_0x23e303);if(!_0x4703ac[_0x2f2d49(0x256)]){this[_0x2f2d49(0x299)][_0x2f2d49(0x208)]({'type':S['MessageType'][_0x2f2d49(0x306)],'content':_0x4703ac[_0x2f2d49(0x1a9)]||this['_localeService']['t'](_0x2f2d49(0x2d8))});return;}_0x23e303[_0x2f2d49(0x287)]?await this['_localStorageService'][_0x2f2d49(0x1a0)](D,_0x23e303[_0x2f2d49(0x287)][_0x2f2d49(0x2fd)]()):await this['_localStorageService'][_0x2f2d49(0x275)](D),this['_apiKey$'][_0x2f2d49(0x1a7)](((_0x54b874=_0x23e303['apiKey'])==null?void 0x0:_0x54b874[_0x2f2d49(0x2fd)]())||''),this[_0x2f2d49(0x267)][_0x2f2d49(0x1c8)]({'Authorization':_0x2f2d49(0x199)+((_0x294d68=_0x23e303[_0x2f2d49(0x287)])==null?void 0x0:_0x294d68[_0x2f2d49(0x2fd)]())}),this[_0x2f2d49(0x299)][_0x2f2d49(0x208)]({'type':S[_0x2f2d49(0x1eb)][_0x2f2d49(0x1f3)],'content':this[_0x2f2d49(0x21c)]['t'](_0x2f2d49(0x189))}),setTimeout(()=>{var _0x4fab42=_0x2f2d49;this[_0x4fab42(0x18f)][_0x4fab42(0x2e1)](k);},0x320);}catch(_0x50eaea){this[_0x2f2d49(0x232)][_0x2f2d49(0x2f6)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x50eaea),this[_0x2f2d49(0x299)]['show']({'type':S[_0x2f2d49(0x1eb)][_0x2f2d49(0x306)],'content':this[_0x2f2d49(0x21c)]['t'](_0x2f2d49(0x247))});}finally{this['_loading$']['next'](!0x1);}}),(this[_0x4d3e7d(0x245)]=_0x53c740,this['_uiPartsService']=_0x34de5c,this[_0x4d3e7d(0x20a)]=_0xbee0ba,this[_0x4d3e7d(0x31b)]=_0x23394b,this[_0x4d3e7d(0x18f)]=_0x1b99c8,this[_0x4d3e7d(0x299)]=_0xb1ed34,this['_componentManager']=_0x5deb5e,this[_0x4d3e7d(0x21c)]=_0x3d23aa,this[_0x4d3e7d(0x232)]=_0x8a1eee,this[_0x4d3e7d(0x267)]=_0x45f84e,this['_initConfigSync'](),this[_0x4d3e7d(0x312)](),this['_registerComponent']());}[_0x4abf76(0x2ac)](){var _0x22ed8e=_0x4abf76;const _0x3ff2fe=this['_configService'][_0x22ed8e(0x2d2)](y);_0x3ff2fe!=null&&_0x3ff2fe[_0x22ed8e(0x18a)]&&this['_dialogService'][_0x22ed8e(0x274)]({'id':k,'title':{'title':this[_0x22ed8e(0x21c)]['t'](_0x22ed8e(0x227))},'children':{'label':_0x22ed8e(0x2d1)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x37724c=_0x22ed8e;this[_0x37724c(0x18f)][_0x37724c(0x2e1)](k);}});}[_0x4abf76(0x253)](){var _0x52bc8c=_0x4abf76;return this[_0x52bc8c(0x1fd)][_0x52bc8c(0x303)];}[_0x4abf76(0x1d9)](){var _0x4c2612=_0x4abf76;this[_0x4c2612(0x2bc)](this['_componentManager'][_0x4c2612(0x27f)](_0x4c2612(0x2d1),this[_0x4c2612(0x296)]()));}['_createConfigPanelComponent'](){var _0x59144a=_0x4abf76;return v[_0x59144a(0x214)](()=>{var _0x113c99=_0x59144a,_0x4d20bd,_0x1d124e,_0x582134;return t[_0x113c99(0x1c1)](W,{'config':this[_0x113c99(0x1ea)][_0x113c99(0x303)],'mcpCoreConfig':this[_0x113c99(0x1fd)][_0x113c99(0x303)],'currentApiKey$':this[_0x113c99(0x317)],'onSave':this[_0x113c99(0x28a)],'loading':this[_0x113c99(0x18e)][_0x113c99(0x303)],'connectionStatus$':(_0x4d20bd=this[_0x113c99(0x267)])==null?void 0x0:_0x4d20bd[_0x113c99(0x30f)],'connectionError$':(_0x1d124e=this[_0x113c99(0x267)])==null?void 0x0:_0x1d124e[_0x113c99(0x26c)],'currentSessionId$':(_0x582134=this[_0x113c99(0x267)])==null?void 0x0:_0x582134[_0x113c99(0x1c3)]});},this['_injector']);}[_0x4abf76(0x2f1)](){var _0x5092cb=_0x4abf76;this['disposeWithMe'](this[_0x5092cb(0x20a)][_0x5092cb(0x29e)](s['MCP_PLUGIN_CONFIG_KEY'])['subscribe'](_0x3faad6=>{var _0xd17636=_0x5092cb;this[_0xd17636(0x1fd)][_0xd17636(0x1a7)](_0x3faad6||{});}));const _0x34b121=this['_configService'][_0x5092cb(0x2d2)](s[_0x5092cb(0x28d)]);this['_mcpCoreConfig$'][_0x5092cb(0x1a7)](_0x34b121||{}),this[_0x5092cb(0x2bc)](this['_configService'][_0x5092cb(0x29e)](y)[_0x5092cb(0x22e)](_0x4b2420=>{var _0x50d19=_0x5092cb;this['_config$'][_0x50d19(0x1a7)](_0x4b2420||{});}));const _0x41d268=this[_0x5092cb(0x20a)][_0x5092cb(0x2d2)](y);this[_0x5092cb(0x1ea)][_0x5092cb(0x1a7)](_0x41d268||{});}async['_loadStoredApiKey'](){var _0x30bc94=_0x4abf76;const _0x3a53a8=this[_0x30bc94(0x20a)]['getConfig'](y);if(!(_0x3a53a8!=null&&_0x3a53a8['showDeveloperTools']))return;const _0x1e95e2=await this[_0x30bc94(0x31b)]['getItem'](D);_0x1e95e2&&(this[_0x30bc94(0x267)][_0x30bc94(0x1c8)]({'Authorization':_0x30bc94(0x199)+_0x1e95e2}),this[_0x30bc94(0x317)][_0x30bc94(0x1a7)](_0x1e95e2));}async[_0x4abf76(0x2ce)](_0x59a6ea){var _0x1a0f23=_0x4abf76;if(!_0x59a6ea['apiKey']||_0x59a6ea[_0x1a0f23(0x287)]['trim']()[_0x1a0f23(0x2c3)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x1a0f23(0x21c)]['t'](_0x1a0f23(0x1bb))};if(_0x59a6ea[_0x1a0f23(0x287)][_0x1a0f23(0x2fd)]()[_0x1a0f23(0x2c3)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x1a0f23(0x21c)]['t'](_0x1a0f23(0x2b8))};try{const _0x423219=await this[_0x1a0f23(0x245)][_0x1a0f23(0x266)](s[_0x1a0f23(0x196)])[_0x1a0f23(0x191)](_0x59a6ea[_0x1a0f23(0x287)][_0x1a0f23(0x2fd)]());return _0x423219[_0x1a0f23(0x256)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x423219[_0x1a0f23(0x2f6)]||this[_0x1a0f23(0x21c)]['t'](_0x1a0f23(0x198))};}catch(_0x40497f){return console[_0x1a0f23(0x195)](_0x1a0f23(0x2e2),_0x40497f),{'isValid':!0x0};}}},exports[_0x4abf76(0x2b9)]=Pe([f(0x0,l[_0x4abf76(0x221)](l[_0x4abf76(0x2b6)])),f(0x1,v[_0x4abf76(0x1f4)]),f(0x2,l['IConfigService']),f(0x3,l[_0x4abf76(0x23d)]),f(0x4,v[_0x4abf76(0x20f)]),f(0x5,v[_0x4abf76(0x2be)]),f(0x6,l[_0x4abf76(0x221)](v[_0x4abf76(0x1bc)])),f(0x7,l[_0x4abf76(0x221)](l[_0x4abf76(0x2d9)])),f(0x8,l[_0x4abf76(0x1e1)]),f(0x9,l[_0x4abf76(0x221)](s['MCPConnectionController']))],exports[_0x4abf76(0x2b9)]);const j={'id':_0x4abf76(0x1bf),'type':l['CommandType'][_0x4abf76(0x229)],'handler':async(_0x209c07,_0x322515)=>(_0x209c07[_0x4abf76(0x266)](exports['MCPConfigUIController'])[_0x4abf76(0x2ac)](),!0x0)};function Z(_0x30f726,_0x3fa356){var _0x59bc42=_0x4abf76;switch(_0x30f726){case s[_0x59bc42(0x26b)]['DISCONNECTED']:return'mcpStatus.disconnected';case s[_0x59bc42(0x26b)][_0x59bc42(0x290)]:return _0x59bc42(0x1d8);case s[_0x59bc42(0x26b)][_0x59bc42(0x18c)]:return'mcpStatus.connected';case s[_0x59bc42(0x26b)][_0x59bc42(0x2c9)]:switch(_0x3fa356){case s['MCPConnectionError'][_0x59bc42(0x2c4)]:return _0x59bc42(0x2e8);case s['MCPConnectionError'][_0x59bc42(0x239)]:return _0x59bc42(0x27e);case s['MCPConnectionError']['NETWORK_ERROR']:return'mcpStatus.networkError';case s[_0x59bc42(0x28c)]['MAX_RETRIES_EXCEEDED']:return'mcpStatus.maxRetriesExceeded';default:return'mcpStatus.failed';}case s['MCPConnectionStatus'][_0x59bc42(0x2dd)]:return _0x59bc42(0x2c5);default:return _0x59bc42(0x20e);}}function ye(_0xfd1cda,_0xf2d3a1,_0x55c6d1,_0x2ae8f1=!0x0){var _0x57e426=_0x4abf76;const _0x5b7df3=Z(_0xfd1cda,_0xf2d3a1),_0x2ef20b=_0x55c6d1['t'](_0x5b7df3);return _0x2ae8f1?_0xfd1cda===s[_0x57e426(0x26b)][_0x57e426(0x240)]&&_0xf2d3a1===s[_0x57e426(0x28c)][_0x57e426(0x2c4)]?_0x2ef20b+_0x57e426(0x207)+_0x55c6d1['t']('mcpStatus.clickToConfigure'):_0xfd1cda===s[_0x57e426(0x26b)]['CONNECTED']?''+_0x2ef20b:_0xfd1cda===s[_0x57e426(0x26b)]['DISCONNECTED']||_0xfd1cda===s[_0x57e426(0x26b)][_0x57e426(0x2c9)]?_0x2ef20b+_0x57e426(0x207)+_0x55c6d1['t']('mcpStatus.clickToConnect'):_0x2ef20b:_0x2ef20b;}function Ie(_0x27c201){var _0x55039d=_0x4abf76;switch(_0x27c201){case s[_0x55039d(0x26b)][_0x55039d(0x18c)]:return _0x55039d(0x2ed);case s[_0x55039d(0x26b)][_0x55039d(0x290)]:case s['MCPConnectionStatus'][_0x55039d(0x2dd)]:return'univer-text-yellow-500';case s['MCPConnectionStatus']['FAILED']:case s[_0x55039d(0x26b)]['DISCONNECTED']:return'univer-text-red-500';default:return _0x55039d(0x280);}}function X(_0x3de0b4){var _0xaa6768=_0x4abf76;const {status$:_0x2a309e,error$:_0x53b35d,onConfigure:_0x1ac039,showClickable:_0x1997fe=!0x0}=_0x3de0b4,_0xba56a6=v[_0xaa6768(0x241)](_0x2a309e,s[_0xaa6768(0x26b)][_0xaa6768(0x240)]),_0x316747=v[_0xaa6768(0x241)](_0x53b35d,s[_0xaa6768(0x28c)][_0xaa6768(0x18d)]),_0x4fc056=v[_0xaa6768(0x2fc)](l[_0xaa6768(0x2d9)]),_0x23bf33=_0xba56a6===s[_0xaa6768(0x26b)][_0xaa6768(0x18c)];_0xba56a6===s['MCPConnectionStatus'][_0xaa6768(0x290)]||s[_0xaa6768(0x26b)][_0xaa6768(0x2dd)];const _0x8f4adb=_0x4fc056['t'](Z(_0xba56a6,_0x316747)),_0xd434a7=ye(_0xba56a6,_0x316747,_0x4fc056,_0x1997fe),_0x4cb9bf=Ie(_0xba56a6),_0x1a39ab=_0x23bf33?t[_0xaa6768(0x1c1)](V,{}):t['jsx'](q,{}),_0x3db9c2=d[_0xaa6768(0x2b0)](()=>{_0x1997fe&&_0x1ac039&&_0x1ac039();},[_0x1997fe,_0x1ac039]);function _0x35299c(){var _0x21c5a9=_0xaa6768;return t['jsxs'](_0x21c5a9(0x2a2),{'className':S[_0x21c5a9(0x2c0)](_0x21c5a9(0x200),_0x1997fe&&_0x1ac039&&_0x21c5a9(0x1dc)),'onClick':_0x1997fe&&_0x1ac039?_0x3db9c2:void 0x0,'children':[t[_0x21c5a9(0x1c1)](_0x21c5a9(0x2a2),{'className':S[_0x21c5a9(0x2c0)]('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x4cb9bf),'children':_0x1a39ab}),t[_0x21c5a9(0x1c1)](_0x21c5a9(0x2a2),{'className':_0x21c5a9(0x1b4),'children':_0x8f4adb})]});}return t[_0xaa6768(0x1c1)](S[_0xaa6768(0x2c8)],{'title':_0xd434a7,'placement':_0xaa6768(0x29f),'children':_0x35299c()});}var _e=Object[_0x4abf76(0x19a)],Me=(_0x28ed71,_0x50c6c9,_0x5211ba,_0x1742f5)=>{var _0x2e1468=_0x4abf76;for(var _0x4fbc9a=_0x1742f5>0x1?void 0x0:_0x1742f5?_e(_0x50c6c9,_0x5211ba):_0x50c6c9,_0x4337b2=_0x28ed71[_0x2e1468(0x2c3)]-0x1,_0x482d6f;_0x4337b2>=0x0;_0x4337b2--)(_0x482d6f=_0x28ed71[_0x4337b2])&&(_0x4fbc9a=_0x482d6f(_0x4fbc9a)||_0x4fbc9a);return _0x4fbc9a;},b=(_0x4faaa3,_0x14cc99)=>(_0x2cea3d,_0x86cd46)=>_0x14cc99(_0x2cea3d,_0x86cd46,_0x4faaa3);exports['MCPConnectionUIController']=class extends l[_0x4abf76(0x311)]{constructor(_0x40ef86,_0x284a51,_0x39c6ba,_0xfe2cd9){var _0x1353e0=_0x4abf76;super(),this[_0x1353e0(0x245)]=_0x40ef86,this['_connectionController']=_0x284a51,this['_uiPartsService']=_0x39c6ba,this[_0x1353e0(0x20a)]=_0xfe2cd9,this['_initAutoConnect'](),this[_0x1353e0(0x25d)]();}[_0x4abf76(0x23c)](){var _0x48eb37=_0x4abf76;const _0x2445ee=this['_configService'][_0x48eb37(0x2d2)](y);_0x2445ee!=null&&_0x2445ee[_0x48eb37(0x18a)]&&(this['_connectionController'][_0x48eb37(0x2e4)]=!0x1);}[_0x4abf76(0x25d)](){var _0x430617=_0x4abf76;const _0x50d6d9=this[_0x430617(0x20a)]['getConfig'](y);(_0x50d6d9==null?void 0x0:_0x50d6d9[_0x430617(0x224)])!==!0x1&&this[_0x430617(0x2bc)](this[_0x430617(0x242)]['registerComponent'](v['BuiltInUIPart'][_0x430617(0x1da)],()=>{var _0x2b7d2b=_0x430617,_0xebb856;return v[_0x2b7d2b(0x214)](Ne({'status$':this[_0x2b7d2b(0x281)][_0x2b7d2b(0x30f)],'error$':this[_0x2b7d2b(0x281)][_0x2b7d2b(0x26c)],'onConfigure':()=>this[_0x2b7d2b(0x309)](),'showClickable':(_0xebb856=_0x50d6d9==null?void 0x0:_0x50d6d9['showDeveloperTools'])!=null?_0xebb856:!0x1}),this[_0x2b7d2b(0x245)]);}));}['_handleConfigure'](){var _0x1ec27d=_0x4abf76;this['_injector'][_0x1ec27d(0x266)](exports['MCPConfigUIController'])[_0x1ec27d(0x2ac)]();}},exports[_0x4abf76(0x314)]=Me([b(0x0,l[_0x4abf76(0x221)](l[_0x4abf76(0x2b6)])),b(0x1,l[_0x4abf76(0x221)](s[_0x4abf76(0x196)])),b(0x2,v[_0x4abf76(0x1f4)]),b(0x3,l[_0x4abf76(0x1e7)])],exports[_0x4abf76(0x314)]);function _0x5c61(_0x4fa7a0,_0x367482){var _0x3bfb03=_0x3bfb();return _0x5c61=function(_0x5c616d,_0x402280){_0x5c616d=_0x5c616d-0x189;var _0x20c8e7=_0x3bfb03[_0x5c616d];return _0x20c8e7;},_0x5c61(_0x4fa7a0,_0x367482);}function Ne(_0x31ed8e){const {status$:_0x1b85ed,error$:_0x4497df,onConfigure:_0x40d51d,showClickable:_0x2535d5}=_0x31ed8e;return function(){var _0xf2ad25=_0x5c61;return t[_0xf2ad25(0x1c1)](X,{'status$':_0x1b85ed,'error$':_0x4497df,'onConfigure':_0x40d51d,'showClickable':_0x2535d5});};}function be(_0x393a50){var _0x1c3980=_0x4abf76;return{'id':j['id'],'type':v[_0x1c3980(0x288)][_0x1c3980(0x225)],'icon':_0x1c3980(0x244),'title':_0x1c3980(0x227),'tooltip':'mcpConfig.title'};}const je={[v[_0x4abf76(0x20b)][_0x4abf76(0x1e9)]]:{[j['id']]:{'order':0xa,'menuItemFactory':be}}};var Ee=Object['getOwnPropertyDescriptor'],we=(_0x3c942d,_0x549154,_0x49cfa3,_0x123ae5)=>{var _0x2cd1f1=_0x4abf76;for(var _0x4d0686=_0x123ae5>0x1?void 0x0:_0x123ae5?Ee(_0x549154,_0x49cfa3):_0x549154,_0x563d52=_0x3c942d[_0x2cd1f1(0x2c3)]-0x1,_0x4f56fd;_0x563d52>=0x0;_0x563d52--)(_0x4f56fd=_0x3c942d[_0x563d52])&&(_0x4d0686=_0x4f56fd(_0x4d0686)||_0x4d0686);return _0x4d0686;},z=(_0x4868c3,_0x2f2276)=>(_0x8f403b,_0xc1594c)=>_0x2f2276(_0x8f403b,_0xc1594c,_0x4868c3);exports['MCPUIMenuController']=class extends l[_0x4abf76(0x311)]{constructor(_0x372175,_0x494574){var _0x3d7c6c=_0x4abf76;super(),this['_commandService']=_0x372175,this[_0x3d7c6c(0x1d1)]=_0x494574,this['_initializeCommands'](),this['_initializeMenus']();}[_0x4abf76(0x2e0)](){var _0x259fd1=_0x4abf76;[j][_0x259fd1(0x273)](_0x5b40dc=>{var _0x463e80=_0x259fd1;this[_0x463e80(0x2bc)](this[_0x463e80(0x1c5)][_0x463e80(0x310)](_0x5b40dc));});}[_0x4abf76(0x19b)](){var _0x18d5a6=_0x4abf76;this[_0x18d5a6(0x1d1)][_0x18d5a6(0x2cc)](je);}},exports['MCPUIMenuController']=we([z(0x0,l[_0x4abf76(0x1b1)]),z(0x1,v[_0x4abf76(0x1d3)])],exports[_0x4abf76(0x285)]);const Oe={'mcpStatus':{'disconnected':_0x4abf76(0x1e5),'connecting':_0x4abf76(0x1f2),'connected':_0x4abf76(0x2f0),'failed':_0x4abf76(0x204),'retrying':_0x4abf76(0x295),'unknown':_0x4abf76(0x248),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x4abf76(0x1f5),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x4abf76(0x1d2),'clickToConfigure':_0x4abf76(0x1d5)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x4abf76(0x2a1),'apiKey':_0x4abf76(0x286),'apiKeyPlaceholder':_0x4abf76(0x21b),'apiKeyHint':_0x4abf76(0x236),'enableAuth':_0x4abf76(0x30e),'enableAuthHint':_0x4abf76(0x1ff),'connectionInfo':_0x4abf76(0x1e4),'mcpClientConfig':_0x4abf76(0x1e4),'configInstructions':_0x4abf76(0x203),'configStepTitle':_0x4abf76(0x2da),'configStep1':_0x4abf76(0x1a1),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4abf76(0x20c),'sessionId':_0x4abf76(0x1ab),'sessionIdDescription':_0x4abf76(0x2f8),'authorizationDescription':_0x4abf76(0x1c0),'configParameters':_0x4abf76(0x194),'maxRetries':_0x4abf76(0x254),'save':_0x4abf76(0x304),'saving':_0x4abf76(0x29d),'note1':_0x4abf76(0x249),'note2':_0x4abf76(0x217),'configSaved':_0x4abf76(0x2ec),'configError':_0x4abf76(0x19d),'apiApplyInfo':{'title':_0x4abf76(0x24a),'description':_0x4abf76(0x1ba),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x4abf76(0x1e0)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x4abf76(0x213),'connected':_0x4abf76(0x212),'failed':_0x4abf76(0x27b),'retrying':_0x4abf76(0x308)},'connectionError':{'unauthorized':_0x4abf76(0x25f),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4abf76(0x2eb),'maxRetriesExceeded':_0x4abf76(0x1b9)}}},Ae={'mcpStatus':{'disconnected':_0x4abf76(0x23a),'connecting':'MCP\x20连接中...','connected':_0x4abf76(0x28b),'failed':_0x4abf76(0x2bf),'retrying':'MCP\x20重连中...','unknown':_0x4abf76(0x1ce),'unauthorized':_0x4abf76(0x1fe),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x4abf76(0x28e),'maxRetriesExceeded':_0x4abf76(0x197),'clickToConnect':_0x4abf76(0x2bb),'clickToConfigure':_0x4abf76(0x2a4)},'mcpConfig':{'title':'MCP\x20配置','description':_0x4abf76(0x282),'apiKey':_0x4abf76(0x257),'apiKeyPlaceholder':_0x4abf76(0x1cb),'apiKeyHint':_0x4abf76(0x294),'enableAuth':_0x4abf76(0x219),'enableAuthHint':_0x4abf76(0x259),'connectionInfo':_0x4abf76(0x2ee),'mcpClientConfig':_0x4abf76(0x2ee),'configInstructions':_0x4abf76(0x1f0),'configStepTitle':_0x4abf76(0x279),'configStep1':_0x4abf76(0x27d),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x4abf76(0x301),'sessionId':_0x4abf76(0x1c9),'sessionIdDescription':_0x4abf76(0x27a),'authorizationDescription':_0x4abf76(0x1d4),'configParameters':_0x4abf76(0x1d0),'maxRetries':_0x4abf76(0x234),'save':_0x4abf76(0x2df),'saving':_0x4abf76(0x2b1),'note1':_0x4abf76(0x222),'note2':_0x4abf76(0x25e),'configSaved':'配置保存成功','configError':_0x4abf76(0x1ee),'apiApplyInfo':{'title':_0x4abf76(0x2ea),'description':_0x4abf76(0x22d),'univerAiLabel':_0x4abf76(0x1b7),'getStarted':_0x4abf76(0x1b3)},'validation':{'apiKeyRequired':_0x4abf76(0x2b7),'apiKeyTooShort':_0x4abf76(0x202),'invalidConfig':_0x4abf76(0x307),'invalidApiKey':_0x4abf76(0x1db)},'connectionStatus':{'disconnected':_0x4abf76(0x252),'connecting':_0x4abf76(0x1e6),'connected':'已连接','failed':'连接失败','retrying':_0x4abf76(0x19e)},'connectionError':{'unauthorized':_0x4abf76(0x268),'sessionOccupied':_0x4abf76(0x2d5),'networkError':_0x4abf76(0x2e5),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var De=Object[_0x4abf76(0x321)],ke=Object[_0x4abf76(0x19a)],Ue=(_0x1f7258,_0x24627d,_0x3986ed)=>_0x24627d in _0x1f7258?De(_0x1f7258,_0x24627d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3986ed}):_0x1f7258[_0x24627d]=_0x3986ed,Te=(_0x1ed476,_0x4dd26e,_0x467080,_0x1eab6d)=>{for(var _0x320497=_0x1eab6d>0x1?void 0x0:_0x1eab6d?ke(_0x4dd26e,_0x467080):_0x4dd26e,_0x5bb380=_0x1ed476['length']-0x1,_0x27056f;_0x5bb380>=0x0;_0x5bb380--)(_0x27056f=_0x1ed476[_0x5bb380])&&(_0x320497=_0x27056f(_0x320497)||_0x320497);return _0x320497;},M=(_0x5c64a9,_0x3aa57a)=>(_0x4786bd,_0xef6c70)=>_0x3aa57a(_0x4786bd,_0xef6c70,_0x5c64a9),$e=(_0x439a22,_0x41fb64,_0x5b6f70)=>Ue(_0x439a22,_0x41fb64+'',_0x5b6f70);exports['UniverMCPUIPlugin']=class extends l['Plugin']{constructor(_0x4e125b=G,_0x49893a,_0x45b0be,_0x1f3ecd,_0x662d4,_0x379a26){var _0x3da9b8=_0x4abf76;super(),this[_0x3da9b8(0x243)]=_0x4e125b,this[_0x3da9b8(0x245)]=_0x49893a,this[_0x3da9b8(0x20a)]=_0x45b0be,this[_0x3da9b8(0x242)]=_0x1f3ecd,this[_0x3da9b8(0x31b)]=_0x662d4,this[_0x3da9b8(0x21c)]=_0x379a26;const {..._0x4b6a6c}=l['merge']({},G,this[_0x3da9b8(0x243)]);this[_0x3da9b8(0x20a)][_0x3da9b8(0x291)](y,_0x4b6a6c);}async[_0x4abf76(0x2c7)](){var _0x1ffbb3=_0x4abf76;const _0x2a3751=[[exports[_0x1ffbb3(0x314)]],[exports[_0x1ffbb3(0x2b9)]],[exports[_0x1ffbb3(0x285)]]];this[_0x1ffbb3(0x245)][_0x1ffbb3(0x233)](A['ISocketService'])||_0x2a3751[_0x1ffbb3(0x277)]([A[_0x1ffbb3(0x2ff)],{'useClass':A[_0x1ffbb3(0x1ef)]}]),_0x2a3751[_0x1ffbb3(0x273)](_0x10da09=>this['_injector'][_0x1ffbb3(0x2cd)](_0x10da09)),this[_0x1ffbb3(0x245)][_0x1ffbb3(0x266)](exports[_0x1ffbb3(0x314)]),this['_injector']['get'](exports[_0x1ffbb3(0x2b9)]),this[_0x1ffbb3(0x245)][_0x1ffbb3(0x266)](exports[_0x1ffbb3(0x285)]);}},$e(exports['UniverMCPUIPlugin'],_0x4abf76(0x293),_0x4abf76(0x1e8)),exports[_0x4abf76(0x22f)]=Te([l[_0x4abf76(0x1fa)](s[_0x4abf76(0x283)]),M(0x1,l[_0x4abf76(0x221)](l[_0x4abf76(0x2b6)])),M(0x2,l[_0x4abf76(0x1e7)]),M(0x3,v[_0x4abf76(0x1f4)]),M(0x4,l[_0x4abf76(0x23d)]),M(0x5,l[_0x4abf76(0x221)](l[_0x4abf76(0x2d9)]))],exports[_0x4abf76(0x22f)]),exports['MCPConfigPanel']=W,exports[_0x4abf76(0x1b5)]=X,exports[_0x4abf76(0x211)]=j,exports['enUS']=Oe,exports[_0x4abf76(0x1b0)]=Ae;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x22e302=_0x55af;(function(_0x30e4c4,_0x3709df){const _0x34c651=_0x55af,_0x2a3a30=_0x30e4c4();while(!![]){try{const _0x5b6537=-parseInt(_0x34c651(0x117))/0x1*(parseInt(_0x34c651(0x10a))/0x2)+-parseInt(_0x34c651(0xff))/0x3+parseInt(_0x34c651(0xfa))/0x4*(-parseInt(_0x34c651(0x115))/0x5)+-parseInt(_0x34c651(0xf5))/0x6+-parseInt(_0x34c651(0xfc))/0x7*(-parseInt(_0x34c651(0x104))/0x8)+-parseInt(_0x34c651(0x119))/0x9+parseInt(_0x34c651(0x127))/0xa*(parseInt(_0x34c651(0x10f))/0xb);if(_0x5b6537===_0x3709df)break;else _0x2a3a30['push'](_0x2a3a30['shift']());}catch(_0x5ad416){_0x2a3a30['push'](_0x2a3a30['shift']());}}}(_0x38bc,0xd1d83));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x22e302(0x101),'connected':'MCP\x20Connected','failed':_0x22e302(0x128),'retrying':_0x22e302(0x112),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x22e302(0xfe),'networkError':_0x22e302(0xf6),'maxRetriesExceeded':_0x22e302(0x105),'clickToConnect':_0x22e302(0x125),'clickToConfigure':_0x22e302(0xf7)},'mcpConfig':{'title':_0x22e302(0x11b),'description':_0x22e302(0xf8),'apiKey':_0x22e302(0xf9),'apiKeyPlaceholder':_0x22e302(0x107),'apiKeyHint':_0x22e302(0x11a),'enableAuth':_0x22e302(0x114),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x22e302(0x11f),'mcpClientConfig':_0x22e302(0x11f),'configInstructions':_0x22e302(0x111),'configStepTitle':_0x22e302(0x116),'configStep1':_0x22e302(0x100),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x22e302(0x10d),'sessionId':_0x22e302(0x124),'sessionIdDescription':_0x22e302(0x10c),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x22e302(0x126),'save':_0x22e302(0x10b),'saving':_0x22e302(0x113),'note1':_0x22e302(0xfb),'note2':_0x22e302(0x102),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x22e302(0x120),'apiApplyInfo':{'title':_0x22e302(0x106),'description':_0x22e302(0x103),'univerAiLabel':_0x22e302(0x121),'getStarted':_0x22e302(0x118)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x22e302(0x10e),'invalidConfig':_0x22e302(0xfd),'invalidApiKey':_0x22e302(0x110)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x22e302(0x11c),'connected':'Connected','failed':_0x22e302(0x11e),'retrying':_0x22e302(0x108)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x22e302(0x11d),'networkError':_0x22e302(0x109),'maxRetriesExceeded':_0x22e302(0x123)}}},n=e;module[_0x22e302(0x122)]=n;function _0x55af(_0x1caa8a,_0x34432a){const _0x38bc1b=_0x38bc();return _0x55af=function(_0x55af13,_0x15c89a){_0x55af13=_0x55af13-0xf5;let _0x513b10=_0x38bc1b[_0x55af13];return _0x513b10;},_0x55af(_0x1caa8a,_0x34432a);}function _0x38bc(){const _0x171402=['Click\x20to\x20configure\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key','622084JvOKdx','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','185192qqjNZS','Invalid\x20configuration','MCP:\x20Session\x20ID\x20Occupied','958743SedAuT','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connecting...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','424bGKJzh','MCP:\x20Max\x20Retries\x20Exceeded','What\x20is\x20API\x20Key?','Enter\x20your\x20API\x20key','Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','3216uYuILB','Save\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','33YjcsUu','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Retrying...','Saving...','Enable\x20Authentication','45YSRzUy','Configuration\x20Steps:','61gSEczL','Get\x20your\x20API\x20key\x20in\x20seconds','6421716SIQtFS','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Configuration','Connecting...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Connection\x20Failed','MCP\x20Client\x20Configuration','Failed\x20to\x20save\x20configuration','Univer\x20AI\x20Console','exports','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Session\x20ID','Click\x20to\x20connect\x20MCP','Max\x20Retries','8841920DOEpUL','MCP\x20Connection\x20Failed','3986034reCxXE','MCP:\x20Network\x20Error'];_0x38bc=function(){return _0x171402;};return _0x38bc();}
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x46c486=_0xff0e;(function(_0x6a65a0,_0x44b82e){const _0x9e8447=_0xff0e,_0x5362b4=_0x6a65a0();while(!![]){try{const _0x1f77c4=-parseInt(_0x9e8447(0x19a))/0x1*(-parseInt(_0x9e8447(0x199))/0x2)+parseInt(_0x9e8447(0x16b))/0x3+-parseInt(_0x9e8447(0x18e))/0x4*(-parseInt(_0x9e8447(0x19d))/0x5)+parseInt(_0x9e8447(0x17c))/0x6+parseInt(_0x9e8447(0x172))/0x7*(-parseInt(_0x9e8447(0x167))/0x8)+parseInt(_0x9e8447(0x16e))/0x9*(parseInt(_0x9e8447(0x186))/0xa)+-parseInt(_0x9e8447(0x171))/0xb*(parseInt(_0x9e8447(0x168))/0xc);if(_0x1f77c4===_0x44b82e)break;else _0x5362b4['push'](_0x5362b4['shift']());}catch(_0x371247){_0x5362b4['push'](_0x5362b4['shift']());}}}(_0x221c,0xcbeb2));const e={'mcpStatus':{'disconnected':_0x46c486(0x188),'connecting':_0x46c486(0x193),'connected':_0x46c486(0x195),'failed':_0x46c486(0x17a),'retrying':'MCP\x20Retrying...','unknown':_0x46c486(0x183),'unauthorized':_0x46c486(0x18a),'sessionOccupied':_0x46c486(0x198),'networkError':_0x46c486(0x17e),'maxRetriesExceeded':_0x46c486(0x18d),'clickToConnect':_0x46c486(0x184),'clickToConfigure':_0x46c486(0x165)},'mcpConfig':{'title':_0x46c486(0x19e),'description':_0x46c486(0x181),'apiKey':_0x46c486(0x174),'apiKeyPlaceholder':_0x46c486(0x18c),'apiKeyHint':_0x46c486(0x166),'enableAuth':_0x46c486(0x19b),'enableAuthHint':_0x46c486(0x173),'connectionInfo':_0x46c486(0x169),'mcpClientConfig':_0x46c486(0x169),'configInstructions':_0x46c486(0x182),'configStepTitle':_0x46c486(0x16d),'configStep1':_0x46c486(0x197),'configStep2':_0x46c486(0x170),'configStep3':_0x46c486(0x178),'sessionId':_0x46c486(0x18f),'sessionIdDescription':_0x46c486(0x185),'authorizationDescription':_0x46c486(0x16c),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x46c486(0x187),'saving':'Saving...','note1':_0x46c486(0x17b),'note2':_0x46c486(0x177),'configSaved':_0x46c486(0x194),'configError':_0x46c486(0x17d),'apiApplyInfo':{'title':_0x46c486(0x18b),'description':_0x46c486(0x179),'univerAiLabel':_0x46c486(0x19c),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x46c486(0x176),'apiKeyTooShort':_0x46c486(0x189),'invalidConfig':_0x46c486(0x175),'invalidApiKey':_0x46c486(0x16a)},'connectionStatus':{'disconnected':_0x46c486(0x196),'connecting':'Connecting...','connected':_0x46c486(0x17f),'failed':_0x46c486(0x192),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x46c486(0x191),'sessionOccupied':_0x46c486(0x16f),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x46c486(0x180)}}};module[_0x46c486(0x190)]=e;function _0xff0e(_0x134204,_0x2a10c9){const _0x221c21=_0x221c();return _0xff0e=function(_0xff0eb1,_0x1081e5){_0xff0eb1=_0xff0eb1-0x165;let _0x44874d=_0x221c21[_0xff0eb1];return _0x44874d;},_0xff0e(_0x134204,_0x2a10c9);}function _0x221c(){const _0x3b42e2=['190VnOsry','Save\x20Configuration','MCP\x20Disconnected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Unauthorized','What\x20is\x20API\x20Key?','Enter\x20your\x20API\x20key','MCP:\x20Max\x20Retries\x20Exceeded','16gfEYrP','Session\x20ID','exports','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connection\x20Failed','MCP\x20Connecting...','Configuration\x20saved\x20successfully','MCP\x20Connected','Disconnected','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Session\x20ID\x20Occupied','642412uZpkwf','5YoEVKT','Enable\x20Authentication','Univer\x20AI\x20Console','634955aRhdXi','MCP\x20Configuration','Click\x20to\x20configure\x20MCP','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','8DtPHyv','31082196QbPnlO','MCP\x20Client\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','767727QBQziD','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20Steps:','560907tVrIkx','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','11AzGKTw','6886467ddYBDJ','Enable\x20authentication\x20for\x20secure\x20connections','API\x20Key','Invalid\x20configuration','API\x20key\x20is\x20required','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\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.','MCP\x20Connection\x20Failed','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','5131044mqQKqt','Failed\x20to\x20save\x20configuration','MCP:\x20Network\x20Error','Connected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','Click\x20to\x20connect\x20MCP','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.'];_0x221c=function(){return _0x3b42e2;};return _0x221c();}
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2c2a67=_0x2c41;(function(_0x401eb4,_0x4e4cf9){const _0x47f91a=_0x2c41,_0x2cd195=_0x401eb4();while(!![]){try{const _0x3aaed6=-parseInt(_0x47f91a(0x83))/0x1*(parseInt(_0x47f91a(0x68))/0x2)+parseInt(_0x47f91a(0x7d))/0x3+parseInt(_0x47f91a(0x90))/0x4*(parseInt(_0x47f91a(0x81))/0x5)+-parseInt(_0x47f91a(0x82))/0x6*(parseInt(_0x47f91a(0x9e))/0x7)+parseInt(_0x47f91a(0x99))/0x8*(-parseInt(_0x47f91a(0x8b))/0x9)+parseInt(_0x47f91a(0x76))/0xa*(-parseInt(_0x47f91a(0x75))/0xb)+parseInt(_0x47f91a(0x8d))/0xc*(parseInt(_0x47f91a(0x8a))/0xd);if(_0x3aaed6===_0x4e4cf9)break;else _0x2cd195['push'](_0x2cd195['shift']());}catch(_0x123b9c){_0x2cd195['push'](_0x2cd195['shift']());}}}(_0x5786,0xb738a));function _0x2c41(_0xdc325,_0x25fa35){const _0x578687=_0x5786();return _0x2c41=function(_0x2c41b7,_0x193a56){_0x2c41b7=_0x2c41b7-0x67;let _0x51c0bf=_0x578687[_0x2c41b7];return _0x51c0bf;},_0x2c41(_0xdc325,_0x25fa35);}const e={'mcpStatus':{'disconnected':_0x2c2a67(0x7b),'connecting':'MCP\x20Connecting...','connected':_0x2c2a67(0x6f),'failed':_0x2c2a67(0x7e),'retrying':_0x2c2a67(0x95),'unknown':_0x2c2a67(0x6b),'unauthorized':_0x2c2a67(0x6c),'sessionOccupied':_0x2c2a67(0x9a),'networkError':_0x2c2a67(0x7f),'maxRetriesExceeded':_0x2c2a67(0x78),'clickToConnect':_0x2c2a67(0x97),'clickToConfigure':_0x2c2a67(0x6a)},'mcpConfig':{'title':_0x2c2a67(0x74),'description':_0x2c2a67(0x77),'apiKey':_0x2c2a67(0x9c),'apiKeyPlaceholder':_0x2c2a67(0x72),'apiKeyHint':_0x2c2a67(0x73),'enableAuth':_0x2c2a67(0x79),'enableAuthHint':_0x2c2a67(0x93),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x2c2a67(0xa0),'configInstructions':_0x2c2a67(0x67),'configStepTitle':_0x2c2a67(0x86),'configStep1':_0x2c2a67(0x88),'configStep2':_0x2c2a67(0x6e),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x2c2a67(0x80),'sessionIdDescription':_0x2c2a67(0x9d),'authorizationDescription':_0x2c2a67(0x7c),'configParameters':_0x2c2a67(0x89),'maxRetries':_0x2c2a67(0x94),'save':_0x2c2a67(0x84),'saving':_0x2c2a67(0x71),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x2c2a67(0x85),'configError':_0x2c2a67(0x8e),'apiApplyInfo':{'title':_0x2c2a67(0x96),'description':_0x2c2a67(0x6d),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x2c2a67(0x92),'apiKeyTooShort':_0x2c2a67(0x70),'invalidConfig':_0x2c2a67(0x87),'invalidApiKey':_0x2c2a67(0x8c)},'connectionStatus':{'disconnected':_0x2c2a67(0x98),'connecting':_0x2c2a67(0x9b),'connected':'Connected','failed':_0x2c2a67(0x69),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x2c2a67(0x8f),'sessionOccupied':_0x2c2a67(0x9f),'networkError':_0x2c2a67(0x91),'maxRetriesExceeded':_0x2c2a67(0x7a)}}},n=e;module['exports']=n;function _0x5786(){const _0x3c5cd4=['Enter\x20your\x20API\x20key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Configuration','9305219ymIsDe','10sBjBSS','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Max\x20Retries\x20Exceeded','Enable\x20Authentication','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Disconnected','API\x20key\x20with\x20Bearer\x20prefix.','856983mqueLb','MCP\x20Connection\x20Failed','MCP:\x20Network\x20Error','Session\x20ID','12170mIufCp','6454926HGXxXB','29504wWLdxi','Save\x20Configuration','Configuration\x20saved\x20successfully','Configuration\x20Steps:','Invalid\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20Parameters:','520CQMavv','4104639pbkkay','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','1260888PRUOCA','Failed\x20to\x20save\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','912tLCMUs','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20is\x20required','Enable\x20authentication\x20for\x20secure\x20connections','Max\x20Retries','MCP\x20Retrying...','What\x20is\x20API\x20Key?','Click\x20to\x20connect\x20MCP','Disconnected','24UNSWRA','MCP:\x20Session\x20ID\x20Occupied','Connecting...','API\x20Key','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','7cLmhhU','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Client\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','68TMqiDI','Connection\x20Failed','Click\x20to\x20configure\x20MCP','MCP\x20Unknown\x20Status','MCP:\x20Unauthorized','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Saving...'];_0x5786=function(){return _0x3c5cd4;};return _0x5786();}
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x5c97(_0xf50dd5,_0x2dbde4){const _0x5cca67=_0x5cca();return _0x5c97=function(_0x5c97a5,_0x4af8b9){_0x5c97a5=_0x5c97a5-0x18b;let _0x14f6ef=_0x5cca67[_0x5c97a5];return _0x14f6ef;},_0x5c97(_0xf50dd5,_0x2dbde4);}function _0x5cca(){const _0x4ef124=['API\x20key\x20with\x20Bearer\x20prefix.','Disconnected','Session\x20ID','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','1148847pmyIEW','Univer\x20AI\x20Console','API\x20Key','14XATEeI','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','455024PekCYj','Configuration\x20saved\x20successfully','13523710hCtvpM','MCP\x20Client\x20Configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Disconnected','2439722ELdcuK','5739921AdtUya','8TzhxqG','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Copy\x20the\x20JSON\x20configuration\x20below','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Steps:','MCP\x20Connected','MCP:\x20Session\x20ID\x20Occupied','Enter\x20your\x20API\x20key','MCP\x20Connecting...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','6AjCCty','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Max\x20Retries','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','1779054rUSZzf','What\x20is\x20API\x20Key?','Connection\x20Failed','Save\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Network\x20Error','Click\x20to\x20configure\x20MCP','Configuration\x20Parameters:','6816185SCFOaf','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Saving...','MCP\x20Configuration'];_0x5cca=function(){return _0x4ef124;};return _0x5cca();}const _0x3d6fed=_0x5c97;(function(_0x36d4fd,_0x1998ca){const _0x582972=_0x5c97,_0x4985e9=_0x36d4fd();while(!![]){try{const _0x3f327e=parseInt(_0x582972(0x1b9))/0x1+-parseInt(_0x582972(0x196))/0x2+-parseInt(_0x582972(0x1a9))/0x3*(parseInt(_0x582972(0x198))/0x4)+parseInt(_0x582972(0x1b1))/0x5*(parseInt(_0x582972(0x1a5))/0x6)+-parseInt(_0x582972(0x18d))/0x7*(-parseInt(_0x582972(0x190))/0x8)+-parseInt(_0x582972(0x197))/0x9+parseInt(_0x582972(0x192))/0xa;if(_0x3f327e===_0x1998ca)break;else _0x4985e9['push'](_0x4985e9['shift']());}catch(_0x2c1065){_0x4985e9['push'](_0x4985e9['shift']());}}}(_0x5cca,0xe4291));const e={'mcpStatus':{'disconnected':_0x3d6fed(0x195),'connecting':_0x3d6fed(0x1a3),'connected':_0x3d6fed(0x1a0),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x3d6fed(0x1a1),'networkError':_0x3d6fed(0x1ae),'maxRetriesExceeded':_0x3d6fed(0x19e),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x3d6fed(0x1af)},'mcpConfig':{'title':_0x3d6fed(0x1b4),'description':_0x3d6fed(0x1b8),'apiKey':_0x3d6fed(0x18c),'apiKeyPlaceholder':_0x3d6fed(0x1a2),'apiKeyHint':_0x3d6fed(0x19a),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x3d6fed(0x19d),'connectionInfo':_0x3d6fed(0x193),'mcpClientConfig':_0x3d6fed(0x193),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x3d6fed(0x19f),'configStep1':_0x3d6fed(0x19c),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3d6fed(0x1b2),'sessionId':_0x3d6fed(0x1b7),'sessionIdDescription':_0x3d6fed(0x1ad),'authorizationDescription':_0x3d6fed(0x1b5),'configParameters':_0x3d6fed(0x1b0),'maxRetries':_0x3d6fed(0x1a7),'save':_0x3d6fed(0x1ac),'saving':_0x3d6fed(0x1b3),'note1':_0x3d6fed(0x18e),'note2':_0x3d6fed(0x1a4),'configSaved':_0x3d6fed(0x191),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x3d6fed(0x1aa),'description':_0x3d6fed(0x18f),'univerAiLabel':_0x3d6fed(0x18b),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x3d6fed(0x19b),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x3d6fed(0x1a8)},'connectionStatus':{'disconnected':_0x3d6fed(0x1b6),'connecting':'Connecting...','connected':'Connected','failed':_0x3d6fed(0x1ab),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x3d6fed(0x1a6),'networkError':_0x3d6fed(0x199),'maxRetriesExceeded':_0x3d6fed(0x194)}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xe86930=_0x2315;(function(_0x2b6d71,_0x156593){const _0xe4152f=_0x2315,_0x579907=_0x2b6d71();while(!![]){try{const _0x2f564f=-parseInt(_0xe4152f(0x162))/0x1+parseInt(_0xe4152f(0x17d))/0x2*(parseInt(_0xe4152f(0x161))/0x3)+-parseInt(_0xe4152f(0x178))/0x4+parseInt(_0xe4152f(0x171))/0x5+-parseInt(_0xe4152f(0x164))/0x6*(-parseInt(_0xe4152f(0x17f))/0x7)+-parseInt(_0xe4152f(0x179))/0x8+parseInt(_0xe4152f(0x174))/0x9;if(_0x2f564f===_0x156593)break;else _0x579907['push'](_0x579907['shift']());}catch(_0x483804){_0x579907['push'](_0x579907['shift']());}}}(_0x2e1a,0xc5fa9));function _0x2315(_0x563c76,_0x8c9c49){const _0x2e1a73=_0x2e1a();return _0x2315=function(_0x231553,_0x4492a4){_0x231553=_0x231553-0x15a;let _0x40d3a8=_0x2e1a73[_0x231553];return _0x40d3a8;},_0x2315(_0x563c76,_0x8c9c49);}const e={'mcpStatus':{'disconnected':_0xe86930(0x15f),'connecting':_0xe86930(0x16f),'connected':_0xe86930(0x18c),'failed':'MCP\x20Connection\x20Failed','retrying':_0xe86930(0x18d),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0xe86930(0x165),'sessionOccupied':_0xe86930(0x177),'networkError':_0xe86930(0x183),'maxRetriesExceeded':_0xe86930(0x181),'clickToConnect':_0xe86930(0x172),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0xe86930(0x15d),'description':_0xe86930(0x16a),'apiKey':_0xe86930(0x188),'apiKeyPlaceholder':_0xe86930(0x16d),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0xe86930(0x16e),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0xe86930(0x169),'configInstructions':_0xe86930(0x182),'configStepTitle':'Configuration\x20Steps:','configStep1':_0xe86930(0x17b),'configStep2':_0xe86930(0x15a),'configStep3':_0xe86930(0x170),'sessionId':'Session\x20ID','sessionIdDescription':_0xe86930(0x176),'authorizationDescription':_0xe86930(0x16b),'configParameters':_0xe86930(0x187),'maxRetries':_0xe86930(0x166),'save':_0xe86930(0x18a),'saving':_0xe86930(0x15c),'note1':_0xe86930(0x15b),'note2':_0xe86930(0x186),'configSaved':_0xe86930(0x189),'configError':_0xe86930(0x163),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0xe86930(0x167),'univerAiLabel':_0xe86930(0x160),'getStarted':_0xe86930(0x16c)},'validation':{'apiKeyRequired':_0xe86930(0x180),'apiKeyTooShort':_0xe86930(0x184),'invalidConfig':_0xe86930(0x17c),'invalidApiKey':_0xe86930(0x175)},'connectionStatus':{'disconnected':_0xe86930(0x17e),'connecting':_0xe86930(0x17a),'connected':_0xe86930(0x168),'failed':_0xe86930(0x173),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0xe86930(0x185),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0xe86930(0x18b),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0xe86930(0x15e)]=n;function _0x2e1a(){const _0x90f31e=['Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20Parameters:','API\x20Key','Configuration\x20saved\x20successfully','Save\x20Configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connected','MCP\x20Retrying...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Saving...','MCP\x20Configuration','exports','MCP\x20Disconnected','Univer\x20AI\x20Console','3lARsgq','1379143zvRPdh','Failed\x20to\x20save\x20configuration','2980140XmciuG','MCP:\x20Unauthorized','Max\x20Retries','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connected','MCP\x20Client\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20key\x20with\x20Bearer\x20prefix.','Get\x20your\x20API\x20key\x20in\x20seconds','Enter\x20your\x20API\x20key','Enable\x20Authentication','MCP\x20Connecting...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','6280585yvEJRl','Click\x20to\x20connect\x20MCP','Connection\x20Failed','5262894aNuAEW','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Session\x20ID\x20Occupied','2402076sZtTMo','1350072qCRpJj','Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','Invalid\x20configuration','250158lyfjMB','Disconnected','14khWbJo','API\x20key\x20is\x20required','MCP:\x20Max\x20Retries\x20Exceeded','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Network\x20Error','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key'];_0x2e1a=function(){return _0x90f31e;};return _0x2e1a();}
|