@univerjs-pro/mcp-ui 0.12.3 → 0.12.4-experimental.20251210-8d33c6e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +9 -9
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x200bd3=_0x1c8a;function _0xe22e(){const _0x4344e5=['네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','API\x20키는\x2010자\x20이상이어야\x20합니다','설정이\x20성공적으로\x20저장되었습니다','MCP:\x20세션\x20ID\x20사용\x20중','API\x20키는\x20필수입니다','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','세션\x20ID','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','연결\x20끊김','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','748035kgaagL','연결됨','3kAapmZ','Univer\x20AI\x20콘솔','20RouUba','몇\x20초\x20만에\x20API\x20키\x20발급받기','39840fbAlFH','MCP\x20연결됨','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','설정\x20저장','1ydGqcZ','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','MCP:\x20네트워크\x20오류','아래\x20JSON\x20설정\x20복사','MCP\x20연결\x20끊김','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','MCP\x20클라이언트\x20설정','Bearer\x20접두사가\x20있는\x20API\x20키.','1079726LRIFdn','MCP:\x20최대\x20재시도\x20횟수\x20초과','API\x20키란\x20무엇인가요?','5844060Pamzmz','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','설정\x20저장\x20실패','MCP\x20연결\x20실패','API\x20키','인증\x20실패.\x20API\x20키를\x20확인하세요','설정\x20매개변수:','MCP\x20연결\x20중...','API\x20키를\x20입력하세요','MCP:\x20인증되지\x20않음','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','저장\x20중...','유효하지\x20않은\x20설정','372096jAGGIw','4356723PpQIEc','연결\x20중...','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','1235084VdSzep','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용'];_0xe22e=function(){return _0x4344e5;};return _0xe22e();}(function(_0x54e5ec,_0x491727){const _0x512446=_0x1c8a,_0x21cc42=_0x54e5ec();while(!![]){try{const _0x5c26b6=parseInt(_0x512446(0x105))/0x1*(parseInt(_0x512446(0xdb))/0x2)+parseInt(_0x512446(0xfd))/0x3*(-parseInt(_0x512446(0xef))/0x4)+parseInt(_0x512446(0xff))/0x5*(parseInt(_0x512446(0x101))/0x6)+parseInt(_0x512446(0xec))/0x7+-parseInt(_0x512446(0xeb))/0x8+parseInt(_0x512446(0xfb))/0x9+-parseInt(_0x512446(0xde))/0xa;if(_0x5c26b6===_0x491727)break;else _0x21cc42['push'](_0x21cc42['shift']());}catch(_0x5da6b9){_0x21cc42['push'](_0x21cc42['shift']());}}}(_0xe22e,0x511ce));const e={'mcpStatus':{'disconnected':_0x200bd3(0x109),'connecting':_0x200bd3(0xe5),'connected':_0x200bd3(0x102),'failed':_0x200bd3(0xe1),'retrying':'MCP\x20재시도\x20중...','unknown':'MCP\x20알\x20수\x20없는\x20상태','unauthorized':_0x200bd3(0xe7),'sessionOccupied':_0x200bd3(0xf4),'networkError':_0x200bd3(0x107),'maxRetriesExceeded':_0x200bd3(0xdc),'clickToConnect':'클릭하여\x20MCP\x20연결','clickToConfigure':'클릭하여\x20MCP\x20설정'},'mcpConfig':{'title':'MCP\x20설정','description':_0x200bd3(0xf8),'apiKey':_0x200bd3(0xe2),'apiKeyPlaceholder':_0x200bd3(0xe6),'apiKeyHint':_0x200bd3(0xfa),'enableAuth':'인증\x20활성화','enableAuthHint':'보안\x20연결을\x20위해\x20인증\x20활성화','connectionInfo':_0x200bd3(0xd9),'mcpClientConfig':_0x200bd3(0xd9),'configInstructions':'MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','configStepTitle':'설정\x20단계:','configStep1':_0x200bd3(0x108),'configStep2':_0x200bd3(0x106),'configStep3':_0x200bd3(0xf0),'sessionId':_0x200bd3(0xf7),'sessionIdDescription':_0x200bd3(0xe8),'authorizationDescription':_0x200bd3(0xda),'configParameters':_0x200bd3(0xe4),'maxRetries':'최대\x20재시도\x20횟수','save':_0x200bd3(0x104),'saving':_0x200bd3(0xe9),'note1':_0x200bd3(0xf6),'note2':_0x200bd3(0xdf),'configSaved':_0x200bd3(0xf3),'configError':_0x200bd3(0xe0),'apiApplyInfo':{'title':_0x200bd3(0xdd),'description':_0x200bd3(0x103),'univerAiLabel':_0x200bd3(0xfe),'getStarted':_0x200bd3(0x100)},'validation':{'apiKeyRequired':_0x200bd3(0xf5),'apiKeyTooShort':_0x200bd3(0xf2),'invalidConfig':_0x200bd3(0xea),'invalidApiKey':_0x200bd3(0xd8)},'connectionStatus':{'disconnected':_0x200bd3(0xf9),'connecting':_0x200bd3(0xed),'connected':_0x200bd3(0xfc),'failed':'연결\x20실패','retrying':'재시도\x20중...'},'connectionError':{'unauthorized':_0x200bd3(0xe3),'sessionOccupied':_0x200bd3(0xee),'networkError':_0x200bd3(0xf1),'maxRetriesExceeded':'최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요'}}};function _0x1c8a(_0x59f3ce,_0x5c0050){_0x59f3ce=_0x59f3ce-0xd8;const _0xe22e3e=_0xe22e();let _0x1c8a34=_0xe22e3e[_0x59f3ce];return _0x1c8a34;}export{e as default};
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x30e869=_0x432e;(function(_0x2bc41b,_0xf4b63){const _0x5921ec=_0x432e,_0x19ab45=_0x2bc41b();while(!![]){try{const _0x54fa65=parseInt(_0x5921ec(0x20e))/0x1+parseInt(_0x5921ec(0x1fe))/0x2*(parseInt(_0x5921ec(0x1f4))/0x3)+parseInt(_0x5921ec(0x212))/0x4+-parseInt(_0x5921ec(0x218))/0x5*(-parseInt(_0x5921ec(0x1f0))/0x6)+parseInt(_0x5921ec(0x202))/0x7+-parseInt(_0x5921ec(0x213))/0x8*(parseInt(_0x5921ec(0x1f7))/0x9)+-parseInt(_0x5921ec(0x216))/0xa;if(_0x54fa65===_0xf4b63)break;else _0x19ab45['push'](_0x19ab45['shift']());}catch(_0x3026cb){_0x19ab45['push'](_0x19ab45['shift']());}}}(_0x33d0,0x1d281));function _0x432e(_0x2c2b9b,_0x64419b){_0x2c2b9b=_0x2c2b9b-0x1ec;const _0x33d0fc=_0x33d0();let _0x432ee8=_0x33d0fc[_0x2c2b9b];return _0x432ee8;}function _0x33d0(){const _0x312746=['3hsbhFc','Connecting...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','18musohp','Connection\x20Failed','Session\x20ID','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Save\x20Configuration','MCP\x20Disconnected','Configuration\x20saved\x20successfully','133910PrRPZl','MCP\x20Connection\x20Failed','Click\x20to\x20configure\x20MCP','MCP\x20Connected','945931xOlGpi','Connected','Click\x20to\x20connect\x20MCP','Copy\x20the\x20JSON\x20configuration\x20below','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Max\x20Retries\x20Exceeded','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Invalid\x20configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','What\x20is\x20API\x20Key?','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','73612dYjIXH','Failed\x20to\x20save\x20configuration','Univer\x20AI\x20Console','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','574660ErLMnF','768744HwkQTw','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Client\x20Configuration','3245320nNFYdI','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','3830ojTmYG','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Network\x20Error','MCP:\x20Unauthorized','1698usIcvv','Enable\x20Authentication','Saving...','Enter\x20your\x20API\x20key'];_0x33d0=function(){return _0x312746;};return _0x33d0();}const e={'mcpStatus':{'disconnected':_0x30e869(0x1fc),'connecting':'MCP\x20Connecting...','connected':_0x30e869(0x201),'failed':_0x30e869(0x1ff),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x30e869(0x1ef),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x30e869(0x1ee),'maxRetriesExceeded':_0x30e869(0x208),'clickToConnect':_0x30e869(0x204),'clickToConfigure':_0x30e869(0x200)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x30e869(0x1f3),'apiKeyHint':_0x30e869(0x207),'enableAuth':_0x30e869(0x1f1),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x30e869(0x215),'configInstructions':_0x30e869(0x211),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x30e869(0x205),'configStep2':_0x30e869(0x1fa),'configStep3':_0x30e869(0x206),'sessionId':_0x30e869(0x1f9),'sessionIdDescription':_0x30e869(0x20b),'authorizationDescription':_0x30e869(0x214),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x30e869(0x1fb),'saving':_0x30e869(0x1f2),'note1':_0x30e869(0x1f6),'note2':_0x30e869(0x1ed),'configSaved':_0x30e869(0x1fd),'configError':_0x30e869(0x20f),'apiApplyInfo':{'title':_0x30e869(0x20c),'description':_0x30e869(0x219),'univerAiLabel':_0x30e869(0x210),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x30e869(0x217),'invalidConfig':_0x30e869(0x20a),'invalidApiKey':_0x30e869(0x20d)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x30e869(0x1f5),'connected':_0x30e869(0x203),'failed':_0x30e869(0x1f8),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x30e869(0x1ec),'maxRetriesExceeded':_0x30e869(0x209)}}},n=e;export{n as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5c9897=_0xe21a;(function(_0x429a88,_0x19e231){const _0x22a4aa=_0xe21a,_0x451296=_0x429a88();while(!![]){try{const _0x35bc88=parseInt(_0x22a4aa(0xaf))/0x1*(parseInt(_0x22a4aa(0xb5))/0x2)+parseInt(_0x22a4aa(0xa0))/0x3*(-parseInt(_0x22a4aa(0x98))/0x4)+-parseInt(_0x22a4aa(0xc0))/0x5+parseInt(_0x22a4aa(0xb3))/0x6*(parseInt(_0x22a4aa(0x99))/0x7)+-parseInt(_0x22a4aa(0xaa))/0x8+-parseInt(_0x22a4aa(0x9b))/0x9*(-parseInt(_0x22a4aa(0xbb))/0xa)+-parseInt(_0x22a4aa(0x9e))/0xb*(-parseInt(_0x22a4aa(0xbc))/0xc);if(_0x35bc88===_0x19e231)break;else _0x451296['push'](_0x451296['shift']());}catch(_0x5cb702){_0x451296['push'](_0x451296['shift']());}}}(_0x326c,0x2a497));const n={'mcpStatus':{'disconnected':_0x5c9897(0xb2),'connecting':_0x5c9897(0xc5),'connected':_0x5c9897(0xc1),'failed':_0x5c9897(0xbf),'retrying':_0x5c9897(0x9f),'unknown':'MCP\x20Trạng\x20thái\x20không\x20xác\x20định','unauthorized':_0x5c9897(0xc3),'sessionOccupied':'MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','networkError':_0x5c9897(0xa2),'maxRetriesExceeded':_0x5c9897(0xab),'clickToConnect':_0x5c9897(0x9a),'clickToConfigure':_0x5c9897(0xb0)},'mcpConfig':{'title':_0x5c9897(0xb8),'description':'Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','apiKey':'Khóa\x20API','apiKeyPlaceholder':_0x5c9897(0xa1),'apiKeyHint':'Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','enableAuth':_0x5c9897(0xbe),'enableAuthHint':_0x5c9897(0x97),'connectionInfo':_0x5c9897(0xa6),'mcpClientConfig':_0x5c9897(0xa6),'configInstructions':'Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','configStepTitle':_0x5c9897(0xc8),'configStep1':_0x5c9897(0x9c),'configStep2':_0x5c9897(0xc2),'configStep3':_0x5c9897(0xcc),'sessionId':_0x5c9897(0xcb),'sessionIdDescription':_0x5c9897(0xb6),'authorizationDescription':_0x5c9897(0xbd),'configParameters':_0x5c9897(0xba),'maxRetries':_0x5c9897(0xa4),'save':_0x5c9897(0xa5),'saving':'Đang\x20lưu...','note1':_0x5c9897(0xad),'note2':_0x5c9897(0xc7),'configSaved':_0x5c9897(0xb4),'configError':_0x5c9897(0xb7),'apiApplyInfo':{'title':'Khóa\x20API\x20là\x20gì?','description':_0x5c9897(0xa9),'univerAiLabel':_0x5c9897(0xa7),'getStarted':_0x5c9897(0xa8)},'validation':{'apiKeyRequired':_0x5c9897(0xb9),'apiKeyTooShort':_0x5c9897(0xac),'invalidConfig':_0x5c9897(0xae),'invalidApiKey':_0x5c9897(0xb1)},'connectionStatus':{'disconnected':_0x5c9897(0xc9),'connecting':_0x5c9897(0x9d),'connected':_0x5c9897(0xc6),'failed':_0x5c9897(0xa3),'retrying':'Đang\x20thử\x20lại...'},'connectionError':{'unauthorized':_0x5c9897(0xc4),'sessionOccupied':'Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','networkError':_0x5c9897(0xca),'maxRetriesExceeded':'Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau'}}};export{n as default};function _0xe21a(_0x190b33,_0x5004be){_0x190b33=_0x190b33-0x97;const _0x326c49=_0x326c();let _0xe21a1c=_0x326c49[_0x190b33];return _0xe21a1c;}function _0x326c(){const _0x28a580=['Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','1348UMBbAl','49dPiQfd','Nhấp\x20để\x20kết\x20nối\x20MCP','2349Lmeurx','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','Đang\x20kết\x20nối...','8393XLQkwE','MCP\x20Đang\x20thử\x20lại...','2547XJGVsl','Nhập\x20khóa\x20API\x20của\x20bạn','MCP:\x20Lỗi\x20mạng','Kết\x20nối\x20thất\x20bại','Số\x20lần\x20thử\x20lại\x20tối\x20đa','Lưu\x20cấu\x20hình','Cấu\x20hình\x20máy\x20khách\x20MCP','Bảng\x20điều\x20khiển\x20Univer\x20AI','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','Khóa\x20API\x20kết\x20nối\x20bạn\x20với\x20Máy\x20chủ\x20Univer\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính.\x20Nhận\x20khóa\x20API\x20của\x20bạn\x20từ\x20bảng\x20điều\x20khiển\x20của\x20chúng\x20tôi\x20để\x20bắt\x20đầu.','388896ofpxvX','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','Cấu\x20hình\x20không\x20hợp\x20lệ','7CPGEpm','Nhấp\x20để\x20cấu\x20hình\x20MCP','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','MCP\x20Đã\x20ngắt\x20kết\x20nối','243096yDPHpi','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','88526QAbKvP','Định\x20danh\x20phiên\x20duy\x20nhất.\x20Nếu\x20bạn\x20mở\x20nhiều\x20phiên\x20bản\x20Univer,\x20mỗi\x20phiên\x20bản\x20phải\x20sử\x20dụng\x20một\x20session_id\x20khác\x20nhau\x20để\x20tránh\x20xung\x20đột\x20kết\x20nối.','Lưu\x20cấu\x20hình\x20thất\x20bại','Cấu\x20hình\x20MCP','Yêu\x20cầu\x20khóa\x20API','Tham\x20số\x20cấu\x20hình:','1500uHfHMr','564rUnEOY','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','Bật\x20xác\x20thực','MCP\x20Kết\x20nối\x20thất\x20bại','802660ReSKie','MCP\x20Đã\x20kết\x20nối','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','MCP:\x20Không\x20được\x20phép','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','MCP\x20Đang\x20kết\x20nối...','Đã\x20kết\x20nối','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','Các\x20bước\x20cấu\x20hình:','Đã\x20ngắt\x20kết\x20nối','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','ID\x20phiên'];_0x326c=function(){return _0x28a580;};return _0x326c();}
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x12eb7d=_0x24e0;(function(_0x441d9d,_0xb1fbcd){const _0x45f3f7=_0x24e0,_0x1436f1=_0x441d9d();while(!![]){try{const _0x9c4afd=-parseInt(_0x45f3f7(0x15f))/0x1+parseInt(_0x45f3f7(0x16f))/0x2+parseInt(_0x45f3f7(0x16e))/0x3+parseInt(_0x45f3f7(0x17f))/0x4*(parseInt(_0x45f3f7(0x156))/0x5)+parseInt(_0x45f3f7(0x164))/0x6*(-parseInt(_0x45f3f7(0x160))/0x7)+-parseInt(_0x45f3f7(0x17c))/0x8*(parseInt(_0x45f3f7(0x158))/0x9)+parseInt(_0x45f3f7(0x181))/0xa;if(_0x9c4afd===_0xb1fbcd)break;else _0x1436f1['push'](_0x1436f1['shift']());}catch(_0x49bf0c){_0x1436f1['push'](_0x1436f1['shift']());}}}(_0x515c,0x74f57));function _0x515c(){const _0x4a9782=['配置保存失败','未连接','API\x20密钥长度至少需要\x2010\x20位','743076pFKaeB','434QlCTTd','超出最大重试次数,请稍后再试','API\x20密钥无效,请检查密钥是否正确','点击配置\x20MCP','63042tvuzvg','MCP:\x20超出最大重试次数','复制以下\x20JSON\x20配置','MCP:\x20未授权','配置保存成功','MCP\x20客户端配置','会话ID','连接失败','MCP\x20状态未知','启用身份验证','2121432EoxLJS','283066oyUXQY','API\x20密钥不能为空','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP\x20配置','MCP:\x20网络错误','API\x20密钥','权限验证失败,请检查您的\x20API\x20密钥','保存中...','重连中...','配置更改将立即生效','MCP\x20重连中...','启用身份验证以获得安全连接','配置\x20MCP\x20使用\x20AI\x20操作电子表格','3428864FxRgCP','您的\x20API\x20密钥将在此浏览器中本地存储','几秒钟内获取您的\x20API\x20密钥','1172beudqj','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','16430240XmrqeA','配置参数:','MCP\x20已断开','什么是\x20API\x20密钥?','最大重试次数','重启您的\x20MCP\x20客户端以使配置生效','MCP\x20连接中...','Univer\x20AI\x20控制台','会话\x20ID\x20已被占用,请稍后再试','已连接','4080Lrbsqz','您的\x20API\x20密钥安全存储在本地存储中','18TupNjF','保存配置','MCP\x20连接失败','点击连接\x20MCP'];_0x515c=function(){return _0x4a9782;};return _0x515c();}function _0x24e0(_0x3c1ae3,_0x3089f6){_0x3c1ae3=_0x3c1ae3-0x155;const _0x515c75=_0x515c();let _0x24e05c=_0x515c75[_0x3c1ae3];return _0x24e05c;}const e={'mcpStatus':{'disconnected':_0x12eb7d(0x183),'connecting':_0x12eb7d(0x187),'connected':'MCP\x20已连接','failed':_0x12eb7d(0x15a),'retrying':_0x12eb7d(0x179),'unknown':_0x12eb7d(0x16c),'unauthorized':_0x12eb7d(0x167),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x12eb7d(0x173),'maxRetriesExceeded':_0x12eb7d(0x165),'clickToConnect':_0x12eb7d(0x15b),'clickToConfigure':_0x12eb7d(0x163)},'mcpConfig':{'title':_0x12eb7d(0x172),'description':_0x12eb7d(0x17b),'apiKey':_0x12eb7d(0x174),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x12eb7d(0x17d),'enableAuth':_0x12eb7d(0x16d),'enableAuthHint':_0x12eb7d(0x17a),'connectionInfo':_0x12eb7d(0x169),'mcpClientConfig':_0x12eb7d(0x169),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':'配置步骤:','configStep1':_0x12eb7d(0x166),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x12eb7d(0x186),'sessionId':_0x12eb7d(0x16a),'sessionIdDescription':_0x12eb7d(0x171),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x12eb7d(0x182),'maxRetries':_0x12eb7d(0x185),'save':_0x12eb7d(0x159),'saving':_0x12eb7d(0x176),'note1':_0x12eb7d(0x178),'note2':_0x12eb7d(0x157),'configSaved':_0x12eb7d(0x168),'configError':_0x12eb7d(0x15c),'apiApplyInfo':{'title':_0x12eb7d(0x184),'description':_0x12eb7d(0x180),'univerAiLabel':_0x12eb7d(0x188),'getStarted':_0x12eb7d(0x17e)},'validation':{'apiKeyRequired':_0x12eb7d(0x170),'apiKeyTooShort':_0x12eb7d(0x15e),'invalidConfig':'配置无效','invalidApiKey':_0x12eb7d(0x162)},'connectionStatus':{'disconnected':_0x12eb7d(0x15d),'connecting':'连接中...','connected':_0x12eb7d(0x155),'failed':_0x12eb7d(0x16b),'retrying':_0x12eb7d(0x177)},'connectionError':{'unauthorized':_0x12eb7d(0x175),'sessionOccupied':_0x12eb7d(0x189),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x12eb7d(0x161)}}};export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xa496a0=_0x86ad;(function(_0x4c1ccb,_0x48dcb7){const _0x11481c=_0x86ad,_0x47ae59=_0x4c1ccb();while(!![]){try{const _0x4766cc=parseInt(_0x11481c(0x1e6))/0x1*(-parseInt(_0x11481c(0x1f1))/0x2)+-parseInt(_0x11481c(0x1ed))/0x3*(-parseInt(_0x11481c(0x210))/0x4)+parseInt(_0x11481c(0x1f6))/0x5+parseInt(_0x11481c(0x211))/0x6+parseInt(_0x11481c(0x1f4))/0x7*(-parseInt(_0x11481c(0x1ea))/0x8)+-parseInt(_0x11481c(0x209))/0x9+parseInt(_0x11481c(0x206))/0xa;if(_0x4766cc===_0x48dcb7)break;else _0x47ae59['push'](_0x47ae59['shift']());}catch(_0x24d55e){_0x47ae59['push'](_0x47ae59['shift']());}}}(_0x121b,0x57ee0));const e={'mcpStatus':{'disconnected':_0xa496a0(0x207),'connecting':_0xa496a0(0x1f7),'connected':_0xa496a0(0x20c),'failed':_0xa496a0(0x203),'retrying':_0xa496a0(0x1ec),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0xa496a0(0x1fa),'sessionOccupied':_0xa496a0(0x1e8),'networkError':_0xa496a0(0x214),'maxRetriesExceeded':_0xa496a0(0x204),'clickToConnect':_0xa496a0(0x1fb),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0xa496a0(0x1e9),'description':_0xa496a0(0x1f5),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0xa496a0(0x1f0),'enableAuth':_0xa496a0(0x1ef),'enableAuthHint':_0xa496a0(0x20a),'connectionInfo':_0xa496a0(0x208),'mcpClientConfig':_0xa496a0(0x208),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0xa496a0(0x200),'configStep1':_0xa496a0(0x1f3),'configStep2':_0xa496a0(0x1e7),'configStep3':_0xa496a0(0x1ee),'sessionId':_0xa496a0(0x20f),'sessionIdDescription':_0xa496a0(0x1fe),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0xa496a0(0x1f2),'maxRetries':_0xa496a0(0x202),'save':_0xa496a0(0x215),'saving':_0xa496a0(0x1f9),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0xa496a0(0x1f8),'configSaved':_0xa496a0(0x1eb),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0xa496a0(0x213)},'validation':{'apiKeyRequired':_0xa496a0(0x212),'apiKeyTooShort':_0xa496a0(0x20b),'invalidConfig':_0xa496a0(0x1e5),'invalidApiKey':_0xa496a0(0x20d)},'connectionStatus':{'disconnected':_0xa496a0(0x216),'connecting':_0xa496a0(0x1ff),'connected':_0xa496a0(0x201),'failed':_0xa496a0(0x1fc),'retrying':_0xa496a0(0x1fd)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0xa496a0(0x20e),'maxRetriesExceeded':_0xa496a0(0x205)}}},n=e;function _0x121b(){const _0x42b0e7=['Session\x20ID','4012CEHeSx','1912170VhgWJU','API\x20key\x20is\x20required','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Network\x20Error','Save\x20Configuration','Disconnected','Invalid\x20configuration','46jqhdXm','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Configuration','24yAAwcq','Configuration\x20saved\x20successfully','MCP\x20Retrying...','1071afknOw','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20Authentication','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','4918XIwobw','Configuration\x20Parameters:','Copy\x20the\x20JSON\x20configuration\x20below','1482292GFlVRO','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','580360xgPflj','MCP\x20Connecting...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Saving...','MCP:\x20Unauthorized','Click\x20to\x20connect\x20MCP','Connection\x20Failed','Retrying...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Connecting...','Configuration\x20Steps:','Connected','Max\x20Retries','MCP\x20Connection\x20Failed','MCP:\x20Max\x20Retries\x20Exceeded','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','8537030WAWkaw','MCP\x20Disconnected','MCP\x20Client\x20Configuration','4841991drzfFw','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection'];_0x121b=function(){return _0x42b0e7;};return _0x121b();}function _0x86ad(_0x5f4a5c,_0x12a416){_0x5f4a5c=_0x5f4a5c-0x1e5;const _0x121b61=_0x121b();let _0x86ad45=_0x121b61[_0x5f4a5c];return _0x86ad45;}export{n as default};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1e00(_0x45c4a7,_0x526ebe){const _0x50413a=_0x5041();return _0x1e00=function(_0x1e00c8,_0x101e89){_0x1e00c8=_0x1e00c8-0x81;let _0x34b6d2=_0x50413a[_0x1e00c8];return _0x34b6d2;},_0x1e00(_0x45c4a7,_0x526ebe);}function _0x5041(){const _0x2d21b8=['MCP:\x20Max\x20Retries\x20Exceeded','pluginName','evenodd','error','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','MCPConnectionError','SESSION_ID_OCCUPIED','univer-text-blue-600','1em','mcpConfig.connectionStatus.retrying','Configuration\x20Steps:','mcpConfig.connectionStatus.disconnected','on-line-icon_clip0_910_349','isValid','UniverCore','保存中...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCPConfigUIController','univer-font-medium','mcpConfig.connectionError.maxRetriesExceeded','Authorization:','help-icon','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','0\x200\x2016\x2016','defIds','mcpConfig.apiApplyInfo.univerAiLabel','bottom','getConfig','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','mcpStatus.connected','_connectionController','value','Tooltip','MCP:\x20超出最大重试次数','add','Error','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Client\x20Configuration','API\x20密钥无效,请检查密钥是否正确','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','MCP\x20Connecting...','univer-shrink-0\x20univer-text-red-500','2dtFiPX','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','ICommandService','_initializeMenus','_localeService','已连接','MCP:\x20会话\x20ID\x20已被占用','idSuffix','univer-flex-1','ComponentManager','IMessageService','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','react/jsx-runtime','univer_session_id:','univer-text-xs\x20univer-text-gray-500','Plugin','mcpConfig.apiKeyPlaceholder','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','@univerjs/core','mcpConfig.connectionStatus.connecting','none','LocaleService','getOwnPropertyDescriptor','defs','连接中...','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','useCallback','subscribe','univer-text-xs\x20univer-text-gray-600','128ighrxZ','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','mcpStatus.connecting','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','FAILED','mcpConfig.configError','subscribeConfigValue$','MCP\x20Unknown\x20Status','@univerjs/design','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','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','BUTTON','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','API\x20密钥不能为空','amd','11058SDZZoh','651300EixyYj','noopener\x20noreferrer','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-flex\x20univer-items-center\x20univer-gap-2','12861VZlnet','merge','CONNECTING','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','BehaviorSubject','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','IConfigService','Failed\x20to\x20save\x20configuration','use','mcpServerUrl','复制以下\x20JSON\x20配置','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','未连接','MCP\x20Retrying...','CheckMarkIcon','CommandType','open','会话\x20ID\x20已被占用,请稍后再试','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','配置更改将立即生效','ISocketService','Enter\x20your\x20API\x20key','0\x200\x2017\x2016','clipPath','attrs','univer-flex\x20univer-items-center','MCP:\x20未授权','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','mcpConfig.description','MCP\x20状态未知','forwardRef','MCP\x20Disconnected','点击配置\x20MCP','useRef','API\x20key\x20with\x20Bearer\x20prefix.','mcpConfig.connectionInfo','jsxs','MenuIcon','Enable\x20authentication\x20for\x20secure\x20connections','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','Connection\x20Failed','Disposable','_uiPartsService','stringify','配置保存失败','Retrying...','univer-bg-blue-500','colorChannel1','push','univer-text-sm\x20univer-font-medium','includes','univer-space-y-2','length','UniverMCPPlugin','mcpConfig.sessionIdDescription','_initStatusComponent','http://www.w3.org/2000/svg','_blank','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','mcpConfig.apiApplyInfo.title','MCPStatusDisplay','validateApiKey','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','mcp-ui.command.openConfigPanel','useObservable','mcpStatus.retrying','API\x20密钥','close','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','React','Click\x20to\x20configure\x20MCP','showDeveloperTools','univer-flex\x20univer-flex-wrap\x20univer-gap-2','_dialogService','CONNECTED','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','mcpConfig.configSaved','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','Input','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','配置步骤:','_mcpCoreConfig$','mcpConfig.validation.invalidApiKey','_initConfigSync','univer.ai','OpenMCPConfigPanelCommand','15641990xsAjzX','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','http','mergeMenu','HelpIcon','mcpConfig.apiApplyInfo.getStarted','_mcpConnectionController','mcpConfig.connectionStatus.failed','tag','\x20-\x20','off-line-icon_clip0_910_343','mcp.apiKey','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','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','object','showConfigPanel','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','react','mcpConfig.note1','button','children','会话ID','map','mcpConfig.authorizationDescription','_injector','entries','pre','_handleConfigure','_createConfigPanelComponent','COMMAND','DISCONNECTED','_loading$','配置保存成功','off-line-icon','最大重试次数','displayName','mcpStatus.networkError','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','replace','show','createElement','mcpStatus.clickToConnect','API\x20key\x20is\x20required','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','setItem','UNAUTHORIZED','连接失败','MessageType','div','Connecting...','forEach','univer-text-yellow-500','_initializeCommands','svg','onStarting','MCPConnectionController','RETRYING','_messageService','on-line-icon','MCP:\x20Session\x20ID\x20Occupied','toString','NONE','UniverNetwork','https://console.univer.plus','mcpConfig.connectionError.networkError','label','ILocalStorageService','text','权限验证失败,请检查您的\x20API\x20密钥','__setCustomHeaders','M0\x200H16V16H0z','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-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','univer-bg-green-500','assign','univer-bg-gray-500','_registerComponent','exports','univer-mr-2\x20univer-flex\x20univer-text-xl','mask','connectInjector','rxjs','_apiKey$','Univer\x20AI\x20控制台','string','univer-bg-red-500','_componentManager','has','round','MAX_RETRIES_EXCEEDED','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','Max\x20Retries','sessionId$','off','MCP\x20Connection\x20Failed','disposeWithMe','带有\x20Bearer\x20前缀的\x20API\x20密钥。','zhCN','function','什么是\x20API\x20密钥?','apiKey','Module','MCPConnectionUIController','Get\x20your\x20API\x20key\x20in\x20seconds','_localStorageService','mcpConfig.title','MCP\x20客户端配置','_menuManagerService','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','启用身份验证','Connected','MCP_PLUGIN_CONFIG_KEY','MCP\x20连接失败','check-mark-icon','next','clsx','close-icon','几秒钟内获取您的\x20API\x20密钥','UniverUi','_config','@univerjs/ui','mcpConfig.apiKeyHint','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','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univer-text-sm\x20univer-text-gray-500','mcpConfig.saving','_initAutoConnect','jsx','path','UniverMCPUIPlugin','https://mcp.univer.ai/mcp/?univer_session_id=','univerjs-icon\x20univerjs-icon-','IUIPartsService','span','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','translate(.97)','mcpConfig.save','useState','defineProperty','MCPConnectionStatus','_logService','UniverProMcpUi','MCP\x20Configuration','xlink:href','mcpConfig.connectionError.unauthorized','将配置添加到您的\x20MCP\x20客户端设置文件中','Success','您的\x20API\x20密钥将在此浏览器中本地存储','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','Bearer\x20','mcpConfig.configParameters','currentColor','Save\x20Configuration','1914600jDogtj','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','MCPUIMenuController','Invalid\x20configuration','重启您的\x20MCP\x20客户端以使配置生效','mcpStatus.maxRetriesExceeded','_config$','registerComponent','Click\x20to\x20connect\x20MCP','mcpStatus.disconnected','univer-flex\x20univer-gap-3','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','setConfig','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','connectionError$','MCP:\x20Network\x20Error','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','fill','univer-min-w-0\x20univer-flex-1','MCP\x20已断开','RibbonStartGroup','univer.plus','2597576afNmeR','univer-space-y-5','UniverIcon','Injector','API\x20Key','BuiltInUIPart','mcpConfig.configStep3','mcpConfig.configStep2','Configuration\x20Notes:','MCP\x20连接中...','UniverProMcp','mcpConfig.note2','url(#$1','_validateConfig','IDialogService','MCP\x20Connected','mcpStatus.clickToConfigure','OnLineIcon','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-text-gray-400','trim','useDependency','getItem','ILogService','404959pCYbEA','<API_KEY>','univer-space-y-3','Inject','_configService','1624kpNNsp','get','univer-flex\x20univer-items-start\x20univer-gap-2','univer-text-red-500','white','MCPConfigPanel','Copy\x20the\x20JSON\x20configuration\x20below','mcpStatus.unknown'];_0x5041=function(){return _0x2d21b8;};return _0x5041();}(function(_0x5cd6af,_0x8dacc5){const _0x1e7135=_0x1e00,_0x5c3d4b=_0x5cd6af();while(!![]){try{const _0x64b183=-parseInt(_0x1e7135(0x1bb))/0x1*(parseInt(_0x1e7135(0x1f3))/0x2)+-parseInt(_0x1e7135(0x18d))/0x3+parseInt(_0x1e7135(0x1a3))/0x4+-parseInt(_0x1e7135(0x99))/0x5+parseInt(_0x1e7135(0x98))/0x6*(-parseInt(_0x1e7135(0x1c0))/0x7)+parseInt(_0x1e7135(0x89))/0x8*(parseInt(_0x1e7135(0x9d))/0x9)+parseInt(_0x1e7135(0xf4))/0xa;if(_0x64b183===_0x8dacc5)break;else _0x5c3d4b['push'](_0x5c3d4b['shift']());}catch(_0x449442){_0x5c3d4b['push'](_0x5c3d4b['shift']());}}}(_0x5041,0x9b246),function(_0x237f26,_0x37ea99){const _0x4e33f2=_0x1e00;typeof exports==_0x4e33f2(0x102)&&typeof module<'u'?_0x37ea99(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react'),require('@univerjs/network')):typeof define==_0x4e33f2(0x156)&&define[_0x4e33f2(0x97)]?define([_0x4e33f2(0x141),_0x4e33f2(0x205),_0x4e33f2(0x1ff),'@univerjs-pro/mcp',_0x4e33f2(0x91),_0x4e33f2(0x16c),_0x4e33f2(0x145),_0x4e33f2(0x105),'@univerjs/network'],_0x37ea99):(_0x237f26=typeof globalThis<'u'?globalThis:_0x237f26||self,_0x37ea99(_0x237f26[_0x4e33f2(0x181)]={},_0x237f26[_0x4e33f2(0x1d6)],_0x237f26[_0x4e33f2(0xe2)],_0x237f26[_0x4e33f2(0x1ad)],_0x237f26['UniverDesign'],_0x237f26[_0x4e33f2(0x16a)],_0x237f26[_0x4e33f2(0x145)],_0x237f26[_0x4e33f2(0xe2)],_0x237f26[_0x4e33f2(0x132)]));}(this,function(_0x23df6e,_0x5974b0,_0x2170f3,_0xf26a6e,_0xd40ab5,_0x23d1ea,_0x403c93,_0x90d60a,_0x41310b){'use strict';const _0x10e77b=_0x1e00;var _0x15a9e3=Object[_0x10e77b(0x17e)],_0x2236dc=(_0xdf1b47,_0x178c53,_0xcf353b)=>_0x178c53 in _0xdf1b47?_0x15a9e3(_0xdf1b47,_0x178c53,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xcf353b}):_0xdf1b47[_0x178c53]=_0xcf353b,_0x45c55c=(_0x26aac7,_0x240751,_0xc1d039)=>_0x2236dc(_0x26aac7,typeof _0x240751!='symbol'?_0x240751+'':_0x240751,_0xc1d039);function _0x371146({ref:_0x18b5dd,..._0x14da3b}){const _0x272247=_0x10e77b,{icon:_0x389e60,id:_0x34ef37,className:_0x1fa66a,extend:_0x1d5315,..._0x2bc506}=_0x14da3b,_0x60fe70=(_0x272247(0x177)+_0x34ef37+'\x20'+(_0x1fa66a||''))[_0x272247(0x1b7)](),_0x4a202c=_0x90d60a[_0x272247(0xbe)]('_'+_0xb29b1());return _0x1a32c9(_0x389e60,''+_0x34ef37,{'defIds':_0x389e60[_0x272247(0x1e0)],'idSuffix':_0x4a202c['current']},{'ref':_0x18b5dd,'className':_0x60fe70,..._0x2bc506},_0x1d5315);}function _0x1a32c9(_0x5bc79f,_0x3f661d,_0x54856d,_0x4f7f1d,_0x538c4){const _0x4e874e=_0x10e77b;return _0x90d60a[_0x4e874e(0x11c)](_0x5bc79f[_0x4e874e(0xfc)],{'key':_0x3f661d,..._0x35ea1d(_0x5bc79f,_0x54856d,_0x538c4),..._0x4f7f1d},(_0x24d8ed(_0x5bc79f,_0x54856d)[_0x4e874e(0x108)]||[])[_0x4e874e(0x10a)]((_0x493678,_0x2c4ec1)=>_0x1a32c9(_0x493678,_0x3f661d+'-'+_0x5bc79f['tag']+'-'+_0x2c4ec1,_0x54856d,void 0x0,_0x538c4)));}function _0x35ea1d(_0x86865e,_0x5988ff,_0x3904f1){const _0x289cd2=_0x10e77b,_0x54814e={..._0x86865e[_0x289cd2(0xb5)]};_0x3904f1!=null&&_0x3904f1[_0x289cd2(0xcc)]&&_0x54814e[_0x289cd2(0x19e)]==='colorChannel1'&&(_0x54814e[_0x289cd2(0x19e)]=_0x3904f1[_0x289cd2(0xcc)]),_0x86865e[_0x289cd2(0xfc)]===_0x289cd2(0x143)&&_0x54814e['id']&&(_0x54814e['id']=_0x54814e['id']+_0x5988ff[_0x289cd2(0x1fa)]),Object[_0x289cd2(0x10d)](_0x54814e)[_0x289cd2(0x126)](([_0x183ee9,_0x5e848b])=>{const _0x17150c=_0x289cd2;_0x183ee9===_0x17150c(0x143)&&typeof _0x5e848b==_0x17150c(0x148)&&(_0x54814e[_0x183ee9]=_0x5e848b['replace'](/url\(#(.*)\)/,_0x17150c(0x1af)+_0x5988ff[_0x17150c(0x1fa)]+')'));});const {defIds:_0x5de9d9}=_0x5988ff;return!_0x5de9d9||_0x5de9d9[_0x289cd2(0xd1)]===0x0||(_0x86865e[_0x289cd2(0xfc)]===_0x289cd2(0xa5)&&_0x54814e[_0x289cd2(0x183)]&&(_0x54814e['xlink:href']=_0x54814e['xlink:href']+_0x5988ff[_0x289cd2(0x1fa)]),Object[_0x289cd2(0x10d)](_0x54814e)[_0x289cd2(0x126)](([_0x1289f8,_0x4e59f9])=>{const _0x177350=_0x289cd2;typeof _0x4e59f9==_0x177350(0x148)&&(_0x54814e[_0x1289f8]=_0x4e59f9[_0x177350(0x11a)](/url\(#(.*)\)/,_0x177350(0x1af)+_0x5988ff[_0x177350(0x1fa)]+')'));})),_0x54814e;}function _0x24d8ed(_0x37d5ce,_0x3b8eeb){const _0x2eb38a=_0x10e77b;var _0x1c3579;const {defIds:_0x2f6071}=_0x3b8eeb;return!_0x2f6071||_0x2f6071[_0x2eb38a(0xd1)]===0x0?_0x37d5ce:_0x37d5ce[_0x2eb38a(0xfc)]===_0x2eb38a(0x83)&&((_0x1c3579=_0x37d5ce[_0x2eb38a(0x108)])!=null&&_0x1c3579[_0x2eb38a(0xd1)])?{..._0x37d5ce,'children':_0x37d5ce[_0x2eb38a(0x108)][_0x2eb38a(0x10a)](_0x446db8=>typeof _0x446db8[_0x2eb38a(0xb5)]['id']==_0x2eb38a(0x148)&&_0x2f6071&&_0x2f6071[_0x2eb38a(0xcf)](_0x446db8['attrs']['id'])?{..._0x446db8,'attrs':{..._0x446db8[_0x2eb38a(0xb5)],'id':_0x446db8[_0x2eb38a(0xb5)]['id']+_0x3b8eeb[_0x2eb38a(0x1fa)]}}:_0x446db8)}:_0x37d5ce;}function _0xb29b1(){const _0x2083fc=_0x10e77b;return Math['random']()[_0x2083fc(0x130)](0x24)['substring'](0x2,0x8);}_0x371146[_0x10e77b(0x117)]=_0x10e77b(0x1a5);const _0x1ddaf7={'tag':_0x10e77b(0x129),'attrs':{'xmlns':_0x10e77b(0xd5),'fill':'none','viewBox':_0x10e77b(0x1df),'width':_0x10e77b(0x1d0),'height':_0x10e77b(0x1d0)},'children':[{'tag':_0x10e77b(0x174),'attrs':{'fill':_0x10e77b(0x18b),'d':_0x10e77b(0x93),'fillRule':'evenodd','clipRule':_0x10e77b(0x1ca)}}]},_0x15309d=_0x90d60a['forwardRef'](function(_0x5c3a04,_0x3821d8){const _0x28eafe=_0x10e77b;return _0x90d60a['createElement'](_0x371146,Object['assign']({},_0x5c3a04,{'id':_0x28eafe(0x165),'ref':_0x3821d8,'icon':_0x1ddaf7}));});_0x15309d['displayName']=_0x10e77b(0xab);const _0x3a8b73={'tag':_0x10e77b(0x129),'attrs':{'xmlns':_0x10e77b(0xd5),'fill':_0x10e77b(0x207),'viewBox':'0\x200\x2016\x2016','width':_0x10e77b(0x1d0),'height':_0x10e77b(0x1d0)},'children':[{'tag':_0x10e77b(0x174),'attrs':{'fill':_0x10e77b(0x18b),'d':_0x10e77b(0x8a)}}]},_0x1d460f=_0x90d60a['forwardRef'](function(_0x3442c7,_0x313081){const _0x205a23=_0x10e77b;return _0x90d60a[_0x205a23(0x11c)](_0x371146,Object['assign']({},_0x3442c7,{'id':_0x205a23(0x168),'ref':_0x313081,'icon':_0x3a8b73}));});_0x1d460f['displayName']='CloseIcon';const _0x4b0976={'tag':'svg','attrs':{'xmlns':_0x10e77b(0xd5),'fill':'none','viewBox':_0x10e77b(0x1df),'width':_0x10e77b(0x1d0),'height':_0x10e77b(0x1d0)},'children':[{'tag':'path','attrs':{'fill':_0x10e77b(0x18b),'d':_0x10e77b(0x19a)}},{'tag':_0x10e77b(0x174),'attrs':{'fill':_0x10e77b(0x18b),'d':_0x10e77b(0x18e)}},{'tag':'path','attrs':{'fill':_0x10e77b(0x18b),'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':_0x10e77b(0x1ca),'clipRule':'evenodd'}}]},_0x89290d=_0x90d60a[_0x10e77b(0xbb)](function(_0x2ea4e5,_0x56dc04){const _0x11f28c=_0x10e77b;return _0x90d60a[_0x11f28c(0x11c)](_0x371146,Object['assign']({},_0x2ea4e5,{'id':_0x11f28c(0x1dd),'ref':_0x56dc04,'icon':_0x4b0976}));});_0x89290d[_0x10e77b(0x117)]=_0x10e77b(0xf8);const _0x3484f9={'tag':_0x10e77b(0x129),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x10e77b(0x1d0),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x10e77b(0x174),'attrs':{'stroke':_0x10e77b(0x18b),'d':_0x10e77b(0x1fe),'strokeLinecap':_0x10e77b(0x14c),'strokeLinejoin':_0x10e77b(0x14c),'strokeWidth':1.2}}]},{'tag':_0x10e77b(0x83),'attrs':{},'children':[{'tag':_0x10e77b(0xb4),'attrs':{'id':_0x10e77b(0xfe)},'children':[{'tag':_0x10e77b(0x174),'attrs':{'fill':_0x10e77b(0x1c4),'d':_0x10e77b(0x13a)}}]}]}],'defIds':[_0x10e77b(0xfe)]},_0x22b218=_0x90d60a[_0x10e77b(0xbb)](function(_0x199bdc,_0x570988){const _0x52c004=_0x10e77b;return _0x90d60a[_0x52c004(0x11c)](_0x371146,Object['assign']({},_0x199bdc,{'id':_0x52c004(0x115),'ref':_0x570988,'icon':_0x3484f9}));});_0x22b218[_0x10e77b(0x117)]='OffLineIcon';const _0x4a6f1b={'tag':_0x10e77b(0x129),'attrs':{'xmlns':_0x10e77b(0xd5),'fill':_0x10e77b(0x207),'viewBox':_0x10e77b(0xb3),'width':_0x10e77b(0x1d0),'height':_0x10e77b(0x1d0)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x10e77b(0x174),'attrs':{'stroke':_0x10e77b(0x18b),'d':_0x10e77b(0x16e),'strokeLinecap':_0x10e77b(0x14c),'strokeLinejoin':_0x10e77b(0x14c),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x10e77b(0xb4),'attrs':{'id':_0x10e77b(0x1d4)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x10e77b(0x13a),'transform':_0x10e77b(0x17b)}}]}]}],'defIds':[_0x10e77b(0x1d4)]},_0x54e51a=_0x90d60a[_0x10e77b(0xbb)](function(_0x32ed02,_0x3ebe6c){const _0x419d83=_0x10e77b;return _0x90d60a[_0x419d83(0x11c)](_0x371146,Object[_0x419d83(0x13e)]({},_0x32ed02,{'id':_0x419d83(0x12e),'ref':_0x3ebe6c,'icon':_0x4a6f1b}));});_0x54e51a[_0x10e77b(0x117)]=_0x10e77b(0x1b4);function _0x27a09f(_0x326dd5){const _0x5a5224=_0x10e77b;var _0x268477,_0x88025d;const {mcpCoreConfig:_0x53f0cc,onSave:_0x1bc5ad,loading:_0x15827d=!0x1,config:_0x5a0f05,connectionStatus$:_0x3667f8,connectionError$:_0x18b163,currentApiKey$:_0x12821a,currentSessionId$:_0x51a2c2}=_0x326dd5,_0x19e97c=_0x23d1ea[_0x5a5224(0x1b8)](_0x5974b0[_0x5a5224(0x81)]),_0x3abe0b=_0x23d1ea[_0x5a5224(0xdd)](_0x3667f8,_0xf26a6e[_0x5a5224(0x17f)][_0x5a5224(0x112)]),_0x5bdc80=_0x23d1ea[_0x5a5224(0xdd)](_0x18b163,_0xf26a6e['MCPConnectionError'][_0x5a5224(0x131)]),_0x5511b6=_0x23d1ea[_0x5a5224(0xdd)](_0x51a2c2,''),_0x4adab4=_0x23d1ea[_0x5a5224(0xdd)](_0x12821a,''),[_0x422e9b,_0x13230d]=_0x90d60a[_0x5a5224(0x17d)](_0x4adab4||''),_0x3230bf=!0x0,_0x54a16a=_0x5a0f05[_0x5a5224(0xe4)]&&_0x53f0cc[_0x5a5224(0xa6)]&&(_0x53f0cc[_0x5a5224(0xa6)][_0x5a5224(0xcf)](_0x5a5224(0x1a2))||_0x53f0cc[_0x5a5224(0xa6)][_0x5a5224(0xcf)](_0x5a5224(0xf2))),_0x341a9d=(_0x268477=_0x53f0cc['mcpServerUrl'])==null?void 0x0:_0x268477[_0x5a5224(0xcf)](_0x5a5224(0x1a2)),_0xbcc57=(_0x88025d=_0x53f0cc[_0x5a5224(0xa6)])==null?void 0x0:_0x88025d['includes']('univer.ai'),_0x1d9e28=_0x341a9d?_0x5a5224(0x133):'https://console.univer.ai',_0x3cd6d6=_0x5a0f05['showDeveloperTools']&&(_0x341a9d||_0xbcc57),[_0x4b34e3,_0x5db7b5]=_0x90d60a[_0x5a5224(0x17d)](!_0x422e9b['trim']()),_0x23c306=(_0x3b2af2,_0x2e872b)=>{const _0x5eb8dd=_0x5a5224;if(_0x2e872b===_0xf26a6e[_0x5eb8dd(0x1cd)][_0x5eb8dd(0x121)])return _0x5eb8dd(0x8c);switch(_0x3b2af2){case _0xf26a6e[_0x5eb8dd(0x17f)][_0x5eb8dd(0xe7)]:return _0x5eb8dd(0x1f4);case _0xf26a6e[_0x5eb8dd(0x17f)][_0x5eb8dd(0x9f)]:case _0xf26a6e[_0x5eb8dd(0x17f)][_0x5eb8dd(0x12c)]:return _0x5eb8dd(0x1f0);case _0xf26a6e[_0x5eb8dd(0x17f)][_0x5eb8dd(0x8d)]:return _0x5eb8dd(0x8c);default:return _0x5eb8dd(0x198);}},_0x3050a8=(_0x537ed3,_0x13eab7)=>{const _0x32cd17=_0x5a5224;if(_0x13eab7===_0xf26a6e[_0x32cd17(0x1cd)][_0x32cd17(0x121)])return _0x32cd17(0x149);switch(_0x537ed3){case _0xf26a6e['MCPConnectionStatus'][_0x32cd17(0xe7)]:return _0x32cd17(0x13d);case _0xf26a6e['MCPConnectionStatus'][_0x32cd17(0x9f)]:case _0xf26a6e[_0x32cd17(0x17f)][_0x32cd17(0x12c)]:return _0x32cd17(0xcb);case _0xf26a6e[_0x32cd17(0x17f)]['FAILED']:return _0x32cd17(0x149);default:return _0x32cd17(0x13f);}},_0x14c2a2=_0x10ab80=>{const _0xc7f24c=_0x5a5224;switch(_0x10ab80){case _0xf26a6e[_0xc7f24c(0x17f)][_0xc7f24c(0xe7)]:return _0x19e97c['t']('mcpConfig.connectionStatus.connected');case _0xf26a6e['MCPConnectionStatus'][_0xc7f24c(0x9f)]:return _0x19e97c['t'](_0xc7f24c(0x206));case _0xf26a6e[_0xc7f24c(0x17f)][_0xc7f24c(0x8d)]:return _0x19e97c['t'](_0xc7f24c(0xfb));case _0xf26a6e[_0xc7f24c(0x17f)][_0xc7f24c(0x12c)]:return _0x19e97c['t'](_0xc7f24c(0x1d1));default:return _0x19e97c['t'](_0xc7f24c(0x1d3));}},_0x156f7c=_0x379e72=>{const _0x42dc1b=_0x5a5224;switch(_0x379e72){case _0xf26a6e[_0x42dc1b(0x1cd)][_0x42dc1b(0x121)]:return _0x19e97c['t'](_0x42dc1b(0x184));case _0xf26a6e['MCPConnectionError'][_0x42dc1b(0x1ce)]:return _0x19e97c['t']('mcpConfig.connectionError.sessionOccupied');case _0xf26a6e['MCPConnectionError']['NETWORK_ERROR']:return _0x19e97c['t'](_0x42dc1b(0x134));case _0xf26a6e[_0x42dc1b(0x1cd)][_0x42dc1b(0x14d)]:return _0x19e97c['t'](_0x42dc1b(0x1db));default:return'';}},_0x31df8d=_0x90d60a[_0x5a5224(0x86)](()=>{const _0x587a69=_0x5a5224,_0x5b12d1={..._0x53f0cc,'apiKey':_0x422e9b[_0x587a69(0x1b7)](),'enableAuth':_0x3230bf};_0x1bc5ad(_0x5b12d1);},[_0x53f0cc,_0x422e9b,_0x3230bf,_0x1bc5ad]),_0x878eb1=_0x422e9b[_0x5a5224(0x1b7)]()['length']>0x0;return _0x2170f3['jsxs'](_0x5a5224(0x124),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x2170f3[_0x5a5224(0x173)]('div',{'className':_0x5a5224(0x160),'children':_0x2170f3['jsxs'](_0x5a5224(0x124),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x2170f3[_0x5a5224(0x173)](_0x5a5224(0x124),{'className':_0x5a5224(0x13c),'children':_0x2170f3[_0x5a5224(0x173)]('span',{'className':'univer-text-white','children':'⚙'})}),_0x2170f3[_0x5a5224(0x173)](_0x5a5224(0x124),{'children':_0x2170f3[_0x5a5224(0x173)]('p',{'className':_0x5a5224(0x170),'children':_0x19e97c['t'](_0x5a5224(0xb9))})})]})}),_0x2170f3[_0x5a5224(0xc1)](_0x5a5224(0x124),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x2170f3['jsx'](_0x5a5224(0x124),{'className':_0xd40ab5[_0x5a5224(0x167)](_0x5a5224(0x188),_0x23c306(_0x3abe0b,_0x5bdc80)),'children':_0x2170f3['jsxs'](_0x5a5224(0x124),{'className':_0x5a5224(0x9c),'children':[_0x2170f3[_0x5a5224(0x173)](_0x5a5224(0x124),{'className':_0xd40ab5[_0x5a5224(0x167)]('univer-size-2\x20univer-rounded-full',_0x3050a8(_0x3abe0b,_0x5bdc80))}),_0x2170f3[_0x5a5224(0x173)]('span',{'className':_0x5a5224(0xce),'children':_0x14c2a2(_0x3abe0b)})]})}),_0x5bdc80!==_0xf26a6e['MCPConnectionError'][_0x5a5224(0x131)]&&(_0x3abe0b===_0xf26a6e['MCPConnectionStatus'][_0x5a5224(0x8d)]||_0x5bdc80===_0xf26a6e['MCPConnectionError'][_0x5a5224(0x121)])&&_0x2170f3['jsx'](_0x5a5224(0x124),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x2170f3[_0x5a5224(0xc1)](_0x5a5224(0x124),{'className':_0x5a5224(0x1c2),'children':[_0x2170f3['jsx'](_0x5a5224(0x179),{'className':_0x5a5224(0x1f2),'children':'⚠️'}),_0x2170f3['jsx']('p',{'className':_0x5a5224(0x1e4),'children':_0x156f7c(_0x5bdc80)})]})})]}),_0x2170f3[_0x5a5224(0x173)](_0x5a5224(0x124),{'className':_0x5a5224(0x95),'children':_0x2170f3['jsxs']('div',{'className':_0x5a5224(0x1a4),'children':[_0x2170f3[_0x5a5224(0xc1)](_0x5a5224(0x124),{'className':_0x5a5224(0xd0),'children':[_0x2170f3[_0x5a5224(0xc1)](_0x5a5224(0x135),{'className':_0x5a5224(0xf5),'children':[_0x2170f3['jsx']('span',{'children':'🔑'}),'\x20',_0x19e97c['t']('mcpConfig.apiKey'),_0x2170f3[_0x5a5224(0x173)](_0x5a5224(0x179),{'className':_0x5a5224(0x1c3),'children':'*'}),_0x54a16a&&_0x2170f3[_0x5a5224(0x173)]('a',{'className':_0x5a5224(0x11f),'title':_0x19e97c['t'](_0x5a5224(0xd8)),'role':_0x5a5224(0x107),'onClick':()=>_0x5db7b5(!0x0),'children':_0x2170f3['jsx'](_0x89290d,{})})]}),_0x2170f3[_0x5a5224(0x173)](_0xd40ab5[_0x5a5224(0xec)],{'type':_0x5a5224(0x137),'placeholder':_0x19e97c['t'](_0x5a5224(0x203)),'value':_0x422e9b,'disabled':_0x15827d,'autoComplete':_0x5a5224(0x151),'onChange':_0x13230d}),_0x2170f3[_0x5a5224(0x173)]('p',{'className':_0x5a5224(0x201),'children':_0x19e97c['t'](_0x5a5224(0x16d))})]}),_0x54a16a&&_0x4b34e3&&_0x2170f3[_0x5a5224(0xc1)](_0x5a5224(0x124),{'className':_0x5a5224(0xd7),'children':[_0x2170f3[_0x5a5224(0x173)]('a',{'className':_0x5a5224(0xe8),'role':_0x5a5224(0x107),'onClick':()=>_0x5db7b5(!0x1),'children':_0x2170f3[_0x5a5224(0x173)](_0x1d460f,{'className':'univer-size-4'})}),_0x2170f3[_0x5a5224(0xc1)]('div',{'className':_0x5a5224(0x1de),'children':[_0x2170f3[_0x5a5224(0x173)](_0x5a5224(0x124),{'className':_0x5a5224(0xa8),'children':_0x2170f3[_0x5a5224(0x173)](_0x5a5224(0x179),{'className':_0x5a5224(0x1cf),'children':'🚀'})}),_0x2170f3[_0x5a5224(0xc1)]('div',{'className':_0x5a5224(0x1fb),'children':[_0x2170f3[_0x5a5224(0x173)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x19e97c['t']('mcpConfig.apiApplyInfo.title')}),_0x2170f3[_0x5a5224(0x173)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x19e97c['t']('mcpConfig.apiApplyInfo.description')}),_0x2170f3['jsx'](_0x5a5224(0x124),{'className':_0x5a5224(0xe5),'children':_0x3cd6d6&&_0x2170f3['jsxs']('a',{'className':_0x5a5224(0x13b),'href':_0x1d9e28,'target':_0x5a5224(0xd6),'rel':_0x5a5224(0x9a),'children':[_0x2170f3[_0x5a5224(0x173)](_0x5a5224(0x179),{'children':'🤖'}),_0x19e97c['t'](_0x5a5224(0x1e1)),_0x2170f3[_0x5a5224(0x173)](_0x5a5224(0x179),{'className':_0x5a5224(0x1b6),'children':'↗'})]})}),_0x2170f3[_0x5a5224(0xc1)](_0x5a5224(0x124),{'className':_0x5a5224(0x16f),'children':['✨','\x20',_0x19e97c['t'](_0x5a5224(0xf9))]})]})]})]}),_0x5a0f05[_0x5a5224(0xe4)]&&_0x2170f3[_0x5a5224(0xc1)](_0x5a5224(0x124),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x2170f3[_0x5a5224(0xc1)]('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x2170f3[_0x5a5224(0x173)](_0x5a5224(0x179),{'children':'🔗'}),'\x20',_0x19e97c['t'](_0x5a5224(0xc0))]}),_0x2170f3['jsxs'](_0x5a5224(0x124),{'className':'univer-space-y-4','children':[_0x2170f3['jsxs'](_0x5a5224(0x124),{'className':_0x5a5224(0x1bd),'children':[_0x2170f3[_0x5a5224(0x173)]('p',{'className':_0x5a5224(0x88),'children':_0x19e97c['t']('mcpConfig.configInstructions')}),_0x2170f3[_0x5a5224(0xc1)](_0x5a5224(0x124),{'className':_0x5a5224(0xd0),'children':[_0x2170f3['jsx']('div',{'className':_0x5a5224(0xa2),'children':_0x19e97c['t']('mcpConfig.configStepTitle')}),_0x2170f3[_0x5a5224(0xc1)]('div',{'className':_0x5a5224(0xed),'children':[_0x2170f3[_0x5a5224(0xc1)](_0x5a5224(0x124),{'className':_0x5a5224(0x9c),'children':[_0x2170f3[_0x5a5224(0x173)](_0x5a5224(0x179),{'className':_0x5a5224(0x85),'children':'1'}),_0x19e97c['t']('mcpConfig.configStep1')]}),_0x2170f3[_0x5a5224(0xc1)](_0x5a5224(0x124),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2170f3['jsx']('span',{'className':_0x5a5224(0x85),'children':'2'}),_0x19e97c['t'](_0x5a5224(0x1aa))]}),_0x2170f3[_0x5a5224(0xc1)](_0x5a5224(0x124),{'className':_0x5a5224(0x9c),'children':[_0x2170f3[_0x5a5224(0x173)](_0x5a5224(0x179),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x19e97c['t'](_0x5a5224(0x1a9))]})]})]})]}),_0x2170f3[_0x5a5224(0xc1)](_0x5a5224(0x124),{'className':_0x5a5224(0xd0),'children':[_0x2170f3[_0x5a5224(0x173)](_0x5a5224(0x124),{'className':_0x5a5224(0xa2),'children':_0x5a5224(0x182)}),_0x2170f3['jsx'](_0x5a5224(0x124),{'className':_0x5a5224(0x14e),'children':_0x2170f3[_0x5a5224(0x173)](_0x5a5224(0x10e),{'className':_0x5a5224(0x1cc),'children':JSON[_0x5a5224(0xc8)]({'mcpServers':{'univer':{'url':_0x5a5224(0x176)+(_0x5511b6||'<SESSION_ID>'),'type':_0x5a5224(0xf6),'headers':{'Authorization':_0x5a5224(0x189)+(_0x422e9b||_0x5a5224(0x1bc))}}}},null,0x2)})})]}),_0x2170f3['jsxs']('div',{'className':_0x5a5224(0x1bd),'children':[_0x2170f3[_0x5a5224(0x173)](_0x5a5224(0x124),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x19e97c['t'](_0x5a5224(0x18a))}),_0x2170f3[_0x5a5224(0xc1)](_0x5a5224(0x124),{'className':_0x5a5224(0xd0),'children':[_0x2170f3['jsxs'](_0x5a5224(0x124),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x2170f3[_0x5a5224(0x173)](_0x5a5224(0x124),{'className':_0x5a5224(0xaf)}),_0x2170f3[_0x5a5224(0xc1)](_0x5a5224(0x124),{'className':_0x5a5224(0x19f),'children':[_0x2170f3[_0x5a5224(0x173)](_0x5a5224(0x124),{'className':_0x5a5224(0x92),'children':_0x5a5224(0x200)}),_0x2170f3[_0x5a5224(0x173)](_0x5a5224(0x124),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x19e97c['t'](_0x5a5224(0xd3))})]})]}),_0x2170f3[_0x5a5224(0xc1)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x2170f3[_0x5a5224(0x173)](_0x5a5224(0x124),{'className':_0x5a5224(0xaf)}),_0x2170f3[_0x5a5224(0xc1)]('div',{'className':_0x5a5224(0x19f),'children':[_0x2170f3[_0x5a5224(0x173)]('div',{'className':_0x5a5224(0x92),'children':_0x5a5224(0x1dc)}),_0x2170f3[_0x5a5224(0x173)]('div',{'className':_0x5a5224(0x201),'children':_0x19e97c['t'](_0x5a5224(0x10b))})]})]})]})]})]})]}),_0x2170f3[_0x5a5224(0x173)](_0xd40ab5['Button'],{'onClick':_0x31df8d,'disabled':!_0x878eb1||_0x15827d,'className':_0x5a5224(0x101),'children':_0x15827d?_0x2170f3[_0x5a5224(0xc1)](_0x5a5224(0x179),{'className':_0x5a5224(0x9c),'children':[_0x2170f3[_0x5a5224(0x173)](_0x5a5224(0x179),{'children':'⟲'}),_0x19e97c['t'](_0x5a5224(0x171))]}):_0x2170f3['jsxs'](_0x5a5224(0x179),{'className':_0x5a5224(0x9c),'children':[_0x2170f3[_0x5a5224(0x173)](_0x15309d,{}),_0x19e97c['t'](_0x5a5224(0x17c))]})}),_0x2170f3[_0x5a5224(0x173)](_0x5a5224(0x124),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x2170f3['jsxs'](_0x5a5224(0x124),{'className':_0x5a5224(0x197),'children':[_0x2170f3['jsx'](_0x5a5224(0x179),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x2170f3[_0x5a5224(0xc1)](_0x5a5224(0x124),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x2170f3['jsx'](_0x5a5224(0x124),{'className':_0x5a5224(0x1da),'children':_0x5a5224(0x1ab)}),_0x2170f3[_0x5a5224(0xc1)]('div',{'children':['•',_0x19e97c['t'](_0x5a5224(0x106))]}),_0x2170f3[_0x5a5224(0xc1)](_0x5a5224(0x124),{'children':['•',_0x19e97c['t'](_0x5a5224(0x1ae))]})]})]})})]})})]});}const _0x56330a='mcp-ui.config',_0x2d9fc5={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x5235e6=Object['getOwnPropertyDescriptor'],_0x618fde=(_0x4c2973,_0x2031d4,_0x55252e,_0x4e322a)=>{for(var _0xbb0321=_0x4e322a>0x1?void 0x0:_0x4e322a?_0x5235e6(_0x2031d4,_0x55252e):_0x2031d4,_0x364199=_0x4c2973['length']-0x1,_0x165678;_0x364199>=0x0;_0x364199--)(_0x165678=_0x4c2973[_0x364199])&&(_0xbb0321=_0x165678(_0xbb0321)||_0xbb0321);return _0xbb0321;},_0x165935=(_0x2e2c46,_0x584484)=>(_0x19bf73,_0x5d682f)=>_0x584484(_0x19bf73,_0x5d682f,_0x2e2c46);const _0x2e8b1b=_0x10e77b(0xff),_0x149fdc='mcp-config-dialog';_0x23df6e['MCPConfigUIController']=class extends _0x5974b0['Disposable']{constructor(_0x180e4b,_0x2e9c8a,_0x550469,_0xba2078,_0x199459,_0x3638f5,_0x4dbfe9,_0x2da6e5,_0x1176c3,_0x5ac7ae){const _0xe4108f=_0x10e77b;super(),_0x45c55c(this,'_loading$',new _0x403c93[(_0xe4108f(0xa1))](!0x1)),_0x45c55c(this,_0xe4108f(0xef),new _0x403c93[(_0xe4108f(0xa1))]({})),_0x45c55c(this,_0xe4108f(0x193),new _0x403c93['BehaviorSubject']({})),_0x45c55c(this,'_apiKey$',new _0x403c93[(_0xe4108f(0xa1))]('')),_0x45c55c(this,'_handleConfigSave',async _0x5c191d=>{const _0x27dec8=_0xe4108f;var _0x322489,_0x1bac3f;this[_0x27dec8(0x113)][_0x27dec8(0x166)](!0x0);try{const _0x571d8d=await this[_0x27dec8(0x1b0)](_0x5c191d);if(!_0x571d8d[_0x27dec8(0x1d5)]){this[_0x27dec8(0x12d)][_0x27dec8(0x11b)]({'type':_0xd40ab5['MessageType'][_0x27dec8(0x1ec)],'content':_0x571d8d['errorMessage']||this['_localeService']['t']('mcpConfig.validation.invalidConfig')});return;}_0x5c191d[_0x27dec8(0x158)]?await this['_localStorageService'][_0x27dec8(0x120)](_0x2e8b1b,_0x5c191d[_0x27dec8(0x158)][_0x27dec8(0x1b7)]()):await this[_0x27dec8(0x15c)]['removeItem'](_0x2e8b1b),this[_0x27dec8(0x146)][_0x27dec8(0x166)](((_0x322489=_0x5c191d[_0x27dec8(0x158)])==null?void 0x0:_0x322489['trim']())||''),this[_0x27dec8(0xfa)][_0x27dec8(0x139)]({'Authorization':_0x27dec8(0x189)+((_0x1bac3f=_0x5c191d[_0x27dec8(0x158)])==null?void 0x0:_0x1bac3f[_0x27dec8(0x1b7)]())}),this[_0x27dec8(0x12d)]['show']({'type':_0xd40ab5['MessageType'][_0x27dec8(0x186)],'content':this['_localeService']['t'](_0x27dec8(0xe9))}),setTimeout(()=>{const _0x5a4476=_0x27dec8;this[_0x5a4476(0xe6)][_0x5a4476(0xe0)](_0x149fdc);},0x320);}catch(_0x35f9d3){this[_0x27dec8(0x180)][_0x27dec8(0x1cb)](_0x27dec8(0xb8),_0x35f9d3),this[_0x27dec8(0x12d)][_0x27dec8(0x11b)]({'type':_0xd40ab5[_0x27dec8(0x123)][_0x27dec8(0x1ec)],'content':this['_localeService']['t'](_0x27dec8(0x8e))});}finally{this[_0x27dec8(0x113)][_0x27dec8(0x166)](!0x1);}}),(this[_0xe4108f(0x10c)]=_0x180e4b,this[_0xe4108f(0xc7)]=_0x2e9c8a,this[_0xe4108f(0x1bf)]=_0x550469,this[_0xe4108f(0x15c)]=_0xba2078,this['_dialogService']=_0x199459,this[_0xe4108f(0x12d)]=_0x3638f5,this[_0xe4108f(0x14a)]=_0x4dbfe9,this[_0xe4108f(0x1f7)]=_0x2da6e5,this['_logService']=_0x1176c3,this[_0xe4108f(0xfa)]=_0x5ac7ae,this['_initConfigSync'](),this['_loadStoredApiKey'](),this[_0xe4108f(0x140)]());}[_0x10e77b(0x103)](){const _0x4a1012=_0x10e77b,_0x50152e=this[_0x4a1012(0x1bf)][_0x4a1012(0x1e3)](_0x56330a);_0x50152e!=null&&_0x50152e['showDeveloperTools']&&this['_dialogService'][_0x4a1012(0xad)]({'id':_0x149fdc,'title':{'title':this[_0x4a1012(0x1f7)]['t'](_0x4a1012(0x15d))},'children':{'label':_0x4a1012(0x1c5)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x4d3ef9=_0x4a1012;this[_0x4d3ef9(0xe6)][_0x4d3ef9(0xe0)](_0x149fdc);}});}['getCurrentConfig'](){const _0x1b0cfe=_0x10e77b;return this[_0x1b0cfe(0xef)][_0x1b0cfe(0x1e8)];}[_0x10e77b(0x140)](){const _0x358b30=_0x10e77b;this[_0x358b30(0x153)](this[_0x358b30(0x14a)]['register'](_0x358b30(0x1c5),this[_0x358b30(0x110)]()));}[_0x10e77b(0x110)](){const _0x21102c=_0x10e77b;return _0x23d1ea[_0x21102c(0x144)](()=>{const _0x1ebde1=_0x21102c;var _0x2f266e,_0x2d8a13,_0x16c5d5;return _0x2170f3[_0x1ebde1(0x173)](_0x27a09f,{'config':this[_0x1ebde1(0x193)][_0x1ebde1(0x1e8)],'mcpCoreConfig':this[_0x1ebde1(0xef)][_0x1ebde1(0x1e8)],'currentApiKey$':this[_0x1ebde1(0x146)],'onSave':this['_handleConfigSave'],'loading':this[_0x1ebde1(0x113)][_0x1ebde1(0x1e8)],'connectionStatus$':(_0x2f266e=this[_0x1ebde1(0xfa)])==null?void 0x0:_0x2f266e['connectionStatus$'],'connectionError$':(_0x2d8a13=this[_0x1ebde1(0xfa)])==null?void 0x0:_0x2d8a13[_0x1ebde1(0x19b)],'currentSessionId$':(_0x16c5d5=this['_mcpConnectionController'])==null?void 0x0:_0x16c5d5[_0x1ebde1(0x150)]});},this[_0x21102c(0x10c)]);}[_0x10e77b(0xf1)](){const _0x23242e=_0x10e77b;this['disposeWithMe'](this[_0x23242e(0x1bf)][_0x23242e(0x8f)](_0xf26a6e[_0x23242e(0x163)])[_0x23242e(0x87)](_0x5075c0=>{const _0xe93f01=_0x23242e;this[_0xe93f01(0xef)][_0xe93f01(0x166)](_0x5075c0||{});}));const _0x58bffa=this[_0x23242e(0x1bf)][_0x23242e(0x1e3)](_0xf26a6e[_0x23242e(0x163)]);this[_0x23242e(0xef)][_0x23242e(0x166)](_0x58bffa||{}),this[_0x23242e(0x153)](this[_0x23242e(0x1bf)][_0x23242e(0x8f)](_0x56330a)['subscribe'](_0x1fac82=>{const _0x442149=_0x23242e;this[_0x442149(0x193)]['next'](_0x1fac82||{});}));const _0x4c4f1f=this[_0x23242e(0x1bf)][_0x23242e(0x1e3)](_0x56330a);this['_config$'][_0x23242e(0x166)](_0x4c4f1f||{});}async['_loadStoredApiKey'](){const _0x2b2cbf=_0x10e77b,_0xf54a02=this['_configService'][_0x2b2cbf(0x1e3)](_0x56330a);if(!(_0xf54a02!=null&&_0xf54a02[_0x2b2cbf(0xe4)]))return;const _0x28961a=await this[_0x2b2cbf(0x15c)][_0x2b2cbf(0x1b9)](_0x2e8b1b);_0x28961a&&(this['_mcpConnectionController'][_0x2b2cbf(0x139)]({'Authorization':_0x2b2cbf(0x189)+_0x28961a}),this[_0x2b2cbf(0x146)]['next'](_0x28961a));}async[_0x10e77b(0x1b0)](_0x5c9a66){const _0x1233d5=_0x10e77b;if(!_0x5c9a66[_0x1233d5(0x158)]||_0x5c9a66[_0x1233d5(0x158)][_0x1233d5(0x1b7)]()[_0x1233d5(0xd1)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyRequired')};if(_0x5c9a66['apiKey'][_0x1233d5(0x1b7)]()[_0x1233d5(0xd1)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x1233d5(0x1f7)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x3c28ae=await this[_0x1233d5(0x10c)][_0x1233d5(0x1c1)](_0xf26a6e[_0x1233d5(0x12b)])[_0x1233d5(0xda)](_0x5c9a66[_0x1233d5(0x158)]['trim']());return _0x3c28ae[_0x1233d5(0x1d5)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x3c28ae[_0x1233d5(0x1cb)]||this[_0x1233d5(0x1f7)]['t'](_0x1233d5(0xf0))};}catch(_0x503c4c){return console['warn'](_0x1233d5(0xe1),_0x503c4c),{'isValid':!0x0};}}},_0x23df6e[_0x10e77b(0x1d9)]=_0x618fde([_0x165935(0x0,_0x5974b0[_0x10e77b(0x1be)](_0x5974b0[_0x10e77b(0x1a6)])),_0x165935(0x1,_0x23d1ea['IUIPartsService']),_0x165935(0x2,_0x5974b0[_0x10e77b(0xa3)]),_0x165935(0x3,_0x5974b0[_0x10e77b(0x136)]),_0x165935(0x4,_0x23d1ea[_0x10e77b(0x1b1)]),_0x165935(0x5,_0x23d1ea[_0x10e77b(0x1fd)]),_0x165935(0x6,_0x5974b0['Inject'](_0x23d1ea[_0x10e77b(0x1fc)])),_0x165935(0x7,_0x5974b0['Inject'](_0x5974b0[_0x10e77b(0x81)])),_0x165935(0x8,_0x5974b0[_0x10e77b(0x1ba)]),_0x165935(0x9,_0x5974b0[_0x10e77b(0x1be)](_0xf26a6e[_0x10e77b(0x12b)]))],_0x23df6e['MCPConfigUIController']);const _0x4cd075={'id':_0x10e77b(0xdc),'type':_0x5974b0[_0x10e77b(0xac)][_0x10e77b(0x111)],'handler':async(_0x240025,_0x3f09f1)=>(_0x240025[_0x10e77b(0x1c1)](_0x23df6e['MCPConfigUIController'])[_0x10e77b(0x103)](),!0x0)};function _0x93f57e(_0x16e166,_0x175c8b){const _0x6c3eec=_0x10e77b;switch(_0x16e166){case _0xf26a6e['MCPConnectionStatus'][_0x6c3eec(0x112)]:return _0x6c3eec(0x196);case _0xf26a6e['MCPConnectionStatus']['CONNECTING']:return _0x6c3eec(0x8b);case _0xf26a6e[_0x6c3eec(0x17f)][_0x6c3eec(0xe7)]:return _0x6c3eec(0x1e6);case _0xf26a6e[_0x6c3eec(0x17f)][_0x6c3eec(0x8d)]:switch(_0x175c8b){case _0xf26a6e[_0x6c3eec(0x1cd)][_0x6c3eec(0x121)]:return'mcpStatus.unauthorized';case _0xf26a6e[_0x6c3eec(0x1cd)][_0x6c3eec(0x1ce)]:return'mcpStatus.sessionOccupied';case _0xf26a6e[_0x6c3eec(0x1cd)]['NETWORK_ERROR']:return _0x6c3eec(0x118);case _0xf26a6e['MCPConnectionError'][_0x6c3eec(0x14d)]:return _0x6c3eec(0x192);default:return'mcpStatus.failed';}case _0xf26a6e[_0x6c3eec(0x17f)]['RETRYING']:return _0x6c3eec(0xde);default:return _0x6c3eec(0x1c7);}}function _0xad901b(_0x14d10c,_0x171eaa,_0x57cc2c,_0x589295=!0x0){const _0x2a85e9=_0x10e77b,_0x2bf155=_0x93f57e(_0x14d10c,_0x171eaa),_0x501eb7=_0x57cc2c['t'](_0x2bf155);return _0x589295?_0x14d10c===_0xf26a6e[_0x2a85e9(0x17f)][_0x2a85e9(0x112)]&&_0x171eaa===_0xf26a6e[_0x2a85e9(0x1cd)][_0x2a85e9(0x121)]?_0x501eb7+'\x20-\x20'+_0x57cc2c['t'](_0x2a85e9(0x1b3)):_0x14d10c===_0xf26a6e[_0x2a85e9(0x17f)][_0x2a85e9(0xe7)]?''+_0x501eb7:_0x14d10c===_0xf26a6e[_0x2a85e9(0x17f)]['DISCONNECTED']||_0x14d10c===_0xf26a6e['MCPConnectionStatus'][_0x2a85e9(0x8d)]?_0x501eb7+_0x2a85e9(0xfd)+_0x57cc2c['t'](_0x2a85e9(0x11d)):_0x501eb7:_0x501eb7;}function _0x28c53d(_0x37df57){const _0x1231d3=_0x10e77b;switch(_0x37df57){case _0xf26a6e['MCPConnectionStatus'][_0x1231d3(0xe7)]:return'univer-text-green-500';case _0xf26a6e[_0x1231d3(0x17f)][_0x1231d3(0x9f)]:case _0xf26a6e[_0x1231d3(0x17f)]['RETRYING']:return _0x1231d3(0x127);case _0xf26a6e[_0x1231d3(0x17f)][_0x1231d3(0x8d)]:case _0xf26a6e['MCPConnectionStatus'][_0x1231d3(0x112)]:return'univer-text-red-500';default:return'univer-text-gray-500';}}function _0x2dbbcc(_0x3e8575){const _0x5ee140=_0x10e77b,{status$:_0x1b8d69,error$:_0x1ba104,onConfigure:_0x5175f6,showClickable:_0x1bbde6=!0x0}=_0x3e8575,_0x4fc089=_0x23d1ea['useObservable'](_0x1b8d69,_0xf26a6e[_0x5ee140(0x17f)][_0x5ee140(0x112)]),_0x5b036e=_0x23d1ea[_0x5ee140(0xdd)](_0x1ba104,_0xf26a6e[_0x5ee140(0x1cd)][_0x5ee140(0x131)]),_0x3a0b18=_0x23d1ea[_0x5ee140(0x1b8)](_0x5974b0[_0x5ee140(0x81)]),_0x4d8d7a=_0x4fc089===_0xf26a6e[_0x5ee140(0x17f)][_0x5ee140(0xe7)];_0x4fc089===_0xf26a6e[_0x5ee140(0x17f)][_0x5ee140(0x9f)]||_0xf26a6e[_0x5ee140(0x17f)][_0x5ee140(0x12c)];const _0xdcd2d=_0x3a0b18['t'](_0x93f57e(_0x4fc089,_0x5b036e)),_0x43c0ee=_0xad901b(_0x4fc089,_0x5b036e,_0x3a0b18,_0x1bbde6),_0x4399dd=_0x28c53d(_0x4fc089),_0x50e8fd=_0x4d8d7a?_0x2170f3['jsx'](_0x54e51a,{}):_0x2170f3['jsx'](_0x22b218,{}),_0x5c61b4=_0x90d60a['useCallback'](()=>{_0x1bbde6&&_0x5175f6&&_0x5175f6();},[_0x1bbde6,_0x5175f6]);function _0x5c0230(){const _0xda564d=_0x5ee140;return _0x2170f3['jsxs'](_0xda564d(0x124),{'className':_0xd40ab5[_0xda564d(0x167)](_0xda564d(0xb6),_0x1bbde6&&_0x5175f6&&'\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'),'role':_0xda564d(0x107),'onClick':_0x1bbde6&&_0x5175f6?_0x5c61b4:void 0x0,'children':[_0x2170f3[_0xda564d(0x173)]('div',{'className':_0xd40ab5[_0xda564d(0x167)](_0xda564d(0x142),_0x4399dd),'children':_0x50e8fd}),_0x2170f3[_0xda564d(0x173)](_0xda564d(0x124),{'className':_0xda564d(0xeb),'children':_0xdcd2d})]});}return _0x2170f3[_0x5ee140(0x173)](_0xd40ab5[_0x5ee140(0x1e9)],{'title':_0x43c0ee,'placement':_0x5ee140(0x1e2),'children':_0x5c0230()});}var _0x8dd4ae=Object[_0x10e77b(0x82)],_0x5ca8d8=(_0xee808c,_0x5ea452,_0x3a182b,_0x3ba880)=>{for(var _0x296468=_0x3ba880>0x1?void 0x0:_0x3ba880?_0x8dd4ae(_0x5ea452,_0x3a182b):_0x5ea452,_0xc40c20=_0xee808c['length']-0x1,_0x55741e;_0xc40c20>=0x0;_0xc40c20--)(_0x55741e=_0xee808c[_0xc40c20])&&(_0x296468=_0x55741e(_0x296468)||_0x296468);return _0x296468;},_0x3c5da8=(_0x2970e2,_0x4d65e0)=>(_0x2ce78d,_0x4e6bbb)=>_0x4d65e0(_0x2ce78d,_0x4e6bbb,_0x2970e2);_0x23df6e[_0x10e77b(0x15a)]=class extends _0x5974b0[_0x10e77b(0xc6)]{constructor(_0x3bd892,_0x1d687a,_0x5a075f,_0x2dc595){const _0x5bc267=_0x10e77b;super(),this[_0x5bc267(0x10c)]=_0x3bd892,this['_connectionController']=_0x1d687a,this[_0x5bc267(0xc7)]=_0x5a075f,this[_0x5bc267(0x1bf)]=_0x2dc595,this[_0x5bc267(0x172)](),this['_initStatusComponent']();}['_initAutoConnect'](){const _0x22f4e2=_0x10e77b,_0x7d6c84=this[_0x22f4e2(0x1bf)][_0x22f4e2(0x1e3)](_0x56330a);_0x7d6c84!=null&&_0x7d6c84[_0x22f4e2(0xe4)]&&(this[_0x22f4e2(0x1e7)]['enableAutoConnect']=!0x1);}[_0x10e77b(0xd4)](){const _0x3d1045=_0x10e77b,_0x3c6773=this['_configService'][_0x3d1045(0x1e3)](_0x56330a);(_0x3c6773==null?void 0x0:_0x3c6773['showStatus'])!==!0x1&&this[_0x3d1045(0x153)](this[_0x3d1045(0xc7)][_0x3d1045(0x194)](_0x23d1ea[_0x3d1045(0x1a8)]['HEADER_MENU'],()=>{const _0x4fc7db=_0x3d1045;var _0x16c0aa;return _0x23d1ea[_0x4fc7db(0x144)](_0x17073c({'status$':this[_0x4fc7db(0x1e7)]['connectionStatus$'],'error$':this['_connectionController']['connectionError$'],'onConfigure':()=>this[_0x4fc7db(0x10f)](),'showClickable':(_0x16c0aa=_0x3c6773==null?void 0x0:_0x3c6773['showDeveloperTools'])!=null?_0x16c0aa:!0x1}),this[_0x4fc7db(0x10c)]);}));}[_0x10e77b(0x10f)](){const _0x5c4df3=_0x10e77b;this[_0x5c4df3(0x10c)][_0x5c4df3(0x1c1)](_0x23df6e['MCPConfigUIController'])['showConfigPanel']();}},_0x23df6e[_0x10e77b(0x15a)]=_0x5ca8d8([_0x3c5da8(0x0,_0x5974b0[_0x10e77b(0x1be)](_0x5974b0['Injector'])),_0x3c5da8(0x1,_0x5974b0[_0x10e77b(0x1be)](_0xf26a6e[_0x10e77b(0x12b)])),_0x3c5da8(0x2,_0x23d1ea['IUIPartsService']),_0x3c5da8(0x3,_0x5974b0['IConfigService'])],_0x23df6e[_0x10e77b(0x15a)]);function _0x17073c(_0x304cc7){const {status$:_0x446ae4,error$:_0x4e0f72,onConfigure:_0x337f51,showClickable:_0x4985b4}=_0x304cc7;return function(){const _0x47c6d4=_0x1e00;return _0x2170f3[_0x47c6d4(0x173)](_0x2dbbcc,{'status$':_0x446ae4,'error$':_0x4e0f72,'onConfigure':_0x337f51,'showClickable':_0x4985b4});};}function _0x47e9ae(_0x3f1454){const _0x543d36=_0x10e77b;return{'id':_0x4cd075['id'],'type':_0x23d1ea['MenuItemType'][_0x543d36(0x94)],'icon':_0x543d36(0xc2),'title':_0x543d36(0x15d),'tooltip':_0x543d36(0x15d)};}const _0x34fd78={[_0x23d1ea[_0x10e77b(0x1a1)]['OTHERS']]:{[_0x4cd075['id']]:{'order':0xa,'menuItemFactory':_0x47e9ae}}};var _0x5253db=Object[_0x10e77b(0x82)],_0x3ee963=(_0x2a24f7,_0x42d197,_0x5064f3,_0x33813f)=>{const _0x183f7c=_0x10e77b;for(var _0x4bc839=_0x33813f>0x1?void 0x0:_0x33813f?_0x5253db(_0x42d197,_0x5064f3):_0x42d197,_0x10b470=_0x2a24f7[_0x183f7c(0xd1)]-0x1,_0x743c61;_0x10b470>=0x0;_0x10b470--)(_0x743c61=_0x2a24f7[_0x10b470])&&(_0x4bc839=_0x743c61(_0x4bc839)||_0x4bc839);return _0x4bc839;},_0x4dafc6=(_0xb45af,_0x11bb80)=>(_0x33f697,_0x1fbf82)=>_0x11bb80(_0x33f697,_0x1fbf82,_0xb45af);_0x23df6e[_0x10e77b(0x18f)]=class extends _0x5974b0['Disposable']{constructor(_0x2d8458,_0x2d2aba){const _0x3eccec=_0x10e77b;super(),this['_commandService']=_0x2d8458,this[_0x3eccec(0x15f)]=_0x2d2aba,this['_initializeCommands'](),this[_0x3eccec(0x1f6)]();}[_0x10e77b(0x128)](){[_0x4cd075]['forEach'](_0x3a0ec4=>{const _0x3e5722=_0x1e00;this[_0x3e5722(0x153)](this['_commandService']['registerCommand'](_0x3a0ec4));});}['_initializeMenus'](){const _0x263e93=_0x10e77b;this[_0x263e93(0x15f)][_0x263e93(0xf7)](_0x34fd78);}},_0x23df6e[_0x10e77b(0x18f)]=_0x3ee963([_0x4dafc6(0x0,_0x5974b0[_0x10e77b(0x1f5)]),_0x4dafc6(0x1,_0x23d1ea['IMenuManagerService'])],_0x23df6e['MCPUIMenuController']);const _0x59c24d={'mcpStatus':{'disconnected':_0x10e77b(0xbc),'connecting':_0x10e77b(0x1f1),'connected':_0x10e77b(0x1b2),'failed':_0x10e77b(0x152),'retrying':_0x10e77b(0xaa),'unknown':_0x10e77b(0x90),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x10e77b(0x12f),'networkError':_0x10e77b(0x19c),'maxRetriesExceeded':_0x10e77b(0x1c8),'clickToConnect':_0x10e77b(0x195),'clickToConfigure':_0x10e77b(0xe3)},'mcpConfig':{'title':_0x10e77b(0x182),'description':_0x10e77b(0x1e5),'apiKey':_0x10e77b(0x1a7),'apiKeyPlaceholder':_0x10e77b(0xb2),'apiKeyHint':_0x10e77b(0x19d),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x10e77b(0xc3),'connectionInfo':_0x10e77b(0x1ee),'mcpClientConfig':_0x10e77b(0x1ee),'configInstructions':_0x10e77b(0x1ed),'configStepTitle':_0x10e77b(0x1d2),'configStep1':_0x10e77b(0x1c6),'configStep2':_0x10e77b(0xa0),'configStep3':_0x10e77b(0x119),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x10e77b(0xbf),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x10e77b(0x14f),'save':_0x10e77b(0x18c),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x10e77b(0xa4),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x10e77b(0x1d8),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x10e77b(0x15b)},'validation':{'apiKeyRequired':_0x10e77b(0x11e),'apiKeyTooShort':_0x10e77b(0x17a),'invalidConfig':_0x10e77b(0x190),'invalidApiKey':_0x10e77b(0x100)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x10e77b(0x125),'connected':_0x10e77b(0x162),'failed':_0x10e77b(0xc5),'retrying':_0x10e77b(0xca)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x10e77b(0x104),'networkError':_0x10e77b(0xea),'maxRetriesExceeded':_0x10e77b(0x204)}}},_0x3fc63d={'mcpStatus':{'disconnected':_0x10e77b(0x1a0),'connecting':_0x10e77b(0x1ac),'connected':'MCP\x20已连接','failed':_0x10e77b(0x164),'retrying':'MCP\x20重连中...','unknown':_0x10e77b(0xba),'unauthorized':_0x10e77b(0xb7),'sessionOccupied':_0x10e77b(0x1f9),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x10e77b(0x1ea),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x10e77b(0xbd)},'mcpConfig':{'title':'MCP\x20配置','description':_0x10e77b(0x1b5),'apiKey':_0x10e77b(0xdf),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x10e77b(0x187),'enableAuth':_0x10e77b(0x161),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x10e77b(0x15e),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x10e77b(0x9b),'configStepTitle':_0x10e77b(0xee),'configStep1':_0x10e77b(0xa7),'configStep2':_0x10e77b(0x185),'configStep3':_0x10e77b(0x191),'sessionId':_0x10e77b(0x109),'sessionIdDescription':_0x10e77b(0xdb),'authorizationDescription':_0x10e77b(0x154),'configParameters':'配置参数:','maxRetries':_0x10e77b(0x116),'save':'保存配置','saving':_0x10e77b(0x1d7),'note1':_0x10e77b(0xb0),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x10e77b(0x114),'configError':_0x10e77b(0xc9),'apiApplyInfo':{'title':_0x10e77b(0x157),'description':_0x10e77b(0xc4),'univerAiLabel':_0x10e77b(0x147),'getStarted':_0x10e77b(0x169)},'validation':{'apiKeyRequired':_0x10e77b(0x96),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':_0x10e77b(0x1ef)},'connectionStatus':{'disconnected':_0x10e77b(0xa9),'connecting':_0x10e77b(0x84),'connected':_0x10e77b(0x1f8),'failed':_0x10e77b(0x122),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x10e77b(0x138),'sessionOccupied':_0x10e77b(0xae),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var _0x1cb05e=Object['defineProperty'],_0x368d10=Object[_0x10e77b(0x82)],_0x2b9a59=(_0xea2609,_0x13a178,_0xf8bc9d)=>_0x13a178 in _0xea2609?_0x1cb05e(_0xea2609,_0x13a178,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf8bc9d}):_0xea2609[_0x13a178]=_0xf8bc9d,_0x51cc0c=(_0x32ed76,_0x27b13f,_0x3ccca9,_0x29aa19)=>{for(var _0x29e122=_0x29aa19>0x1?void 0x0:_0x29aa19?_0x368d10(_0x27b13f,_0x3ccca9):_0x27b13f,_0x340cdf=_0x32ed76['length']-0x1,_0xd7d1bb;_0x340cdf>=0x0;_0x340cdf--)(_0xd7d1bb=_0x32ed76[_0x340cdf])&&(_0x29e122=_0xd7d1bb(_0x29e122)||_0x29e122);return _0x29e122;},_0x4bf159=(_0x439e63,_0x30a712)=>(_0x48c395,_0x1cc6e3)=>_0x30a712(_0x48c395,_0x1cc6e3,_0x439e63),_0x584022=(_0x39d46a,_0x198960,_0x490564)=>_0x2b9a59(_0x39d46a,_0x198960+'',_0x490564);_0x23df6e['UniverMCPUIPlugin']=class extends _0x5974b0[_0x10e77b(0x202)]{constructor(_0x45fb44=_0x2d9fc5,_0x3204db,_0x471e88,_0x290f2d,_0x3301d4,_0x26694a){const _0x277b6d=_0x10e77b;super(),this[_0x277b6d(0x16b)]=_0x45fb44,this[_0x277b6d(0x10c)]=_0x3204db,this[_0x277b6d(0x1bf)]=_0x471e88,this[_0x277b6d(0xc7)]=_0x290f2d,this[_0x277b6d(0x15c)]=_0x3301d4,this[_0x277b6d(0x1f7)]=_0x26694a;const {..._0x116f05}=_0x5974b0[_0x277b6d(0x9e)]({},_0x2d9fc5,this['_config']);this[_0x277b6d(0x1bf)][_0x277b6d(0x199)](_0x56330a,_0x116f05);}async[_0x10e77b(0x12a)](){const _0x40065f=_0x10e77b,_0x3e5b6f=[[_0x23df6e['MCPConnectionUIController']],[_0x23df6e[_0x40065f(0x1d9)]],[_0x23df6e['MCPUIMenuController']]];this['_injector'][_0x40065f(0x14b)](_0x41310b[_0x40065f(0xb1)])||_0x3e5b6f[_0x40065f(0xcd)]([_0x41310b[_0x40065f(0xb1)],{'useClass':_0x41310b['WebSocketService']}]),_0x3e5b6f[_0x40065f(0x126)](_0x571f8c=>this[_0x40065f(0x10c)][_0x40065f(0x1eb)](_0x571f8c)),this[_0x40065f(0x10c)]['get'](_0x23df6e[_0x40065f(0x15a)]),this[_0x40065f(0x10c)]['get'](_0x23df6e[_0x40065f(0x1d9)]),this['_injector'][_0x40065f(0x1c1)](_0x23df6e[_0x40065f(0x18f)]);}},_0x584022(_0x23df6e[_0x10e77b(0x175)],_0x10e77b(0x1c9),'MCP_UI_PLUGIN'),_0x23df6e['UniverMCPUIPlugin']=_0x51cc0c([_0x5974b0['DependentOn'](_0xf26a6e[_0x10e77b(0xd2)]),_0x4bf159(0x1,_0x5974b0[_0x10e77b(0x1be)](_0x5974b0[_0x10e77b(0x1a6)])),_0x4bf159(0x2,_0x5974b0['IConfigService']),_0x4bf159(0x3,_0x23d1ea[_0x10e77b(0x178)]),_0x4bf159(0x4,_0x5974b0[_0x10e77b(0x136)]),_0x4bf159(0x5,_0x5974b0[_0x10e77b(0x1be)](_0x5974b0[_0x10e77b(0x81)]))],_0x23df6e[_0x10e77b(0x175)]),_0x23df6e[_0x10e77b(0x1c5)]=_0x27a09f,_0x23df6e[_0x10e77b(0xd9)]=_0x2dbbcc,_0x23df6e[_0x10e77b(0xf3)]=_0x4cd075,_0x23df6e['enUS']=_0x59c24d,_0x23df6e[_0x10e77b(0x155)]=_0x3fc63d,Object[_0x10e77b(0x17e)](_0x23df6e,Symbol['toStringTag'],{'value':_0x10e77b(0x159)});}));
|
|
1
|
+
function _0x5caa(_0xfc0baa,_0x4b7b0b){_0xfc0baa=_0xfc0baa-0x173;const _0x565837=_0x5658();let _0x5caa16=_0x565837[_0xfc0baa];return _0x5caa16;}function _0x5658(){const _0x2b52f6=['white','_commandService','_initStatusComponent','MCP\x20Connection\x20Failed','random','点击连接\x20MCP','_config','0\x200\x2016\x2016','IDialogService','OffLineIcon','currentColor','2074292DuLotU','会话ID','mcpConfig.configError','Authorization:','API\x20key\x20is\x20required','colorChannel1','_menuManagerService','mcpStatus.unknown','Failed\x20to\x20save\x20configuration','BuiltInUIPart','univer-flex\x20univer-items-start\x20univer-gap-2','errorMessage','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','show','attrs','mcpStatus.clickToConnect','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','OpenMCPConfigPanelCommand','_createConfigPanelComponent','UniverProMcpUi','CloseIcon','MCP\x20Configuration','fill','8108872yDmpYT','MCP_PLUGIN_CONFIG_KEY','Disposable','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_initializeCommands','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','MCP\x20Client\x20Configuration','connectInjector','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','register','mcpConfig.connectionError.sessionOccupied','getCurrentConfig','@univerjs/design','Injector','get','Connection\x20Failed','Get\x20your\x20API\x20key\x20in\x20seconds','UniverDesign','_mcpConnectionController','ISocketService','subscribeConfigValue$','includes','Configuration\x20Notes:','Click\x20to\x20connect\x20MCP','您的\x20API\x20密钥安全存储在本地存储中','Plugin','API\x20密钥不能为空','mcpConfig.connectionStatus.disconnected','_handleConfigure','_validateConfig','MCP:\x20Unauthorized','API\x20Key','DependentOn','none','mcpConfig.authorizationDescription','setConfig','_loadStoredApiKey','Enter\x20your\x20API\x20key','forwardRef','univer.ai','onStarting','mcpConfig.configStep1','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','forEach','use','univer-font-medium','close-icon','配置无效','Max\x20Retries','zhCN','配置参数:','<API_KEY>','HEADER_MENU','mcpConfig.validation.apiKeyRequired','UniverMCPUIPlugin','mcpConfig.connectionStatus.connecting','MCP\x20连接失败','What\x20is\x20API\x20Key?','Configuration\x20Parameters:','translate(.97)','_componentManager','univer.plus','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Error','mcpStatus.sessionOccupied','Button','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','url(#$1','MCPConnectionController','\x20-\x20','univer-mr-2\x20univer-flex\x20univer-text-xl','mcpConfig.save','MCP:\x20Max\x20Retries\x20Exceeded','SESSION_ID_OCCUPIED','MCP\x20客户端配置','Save\x20Configuration','UniverMCPPlugin','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','Invalid\x20configuration','Disconnected','useRef','mcpConfig.connectionError.networkError','Configuration\x20Steps:','_connectionController','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','Success','权限验证失败,请检查您的\x20API\x20密钥','_initAutoConnect','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20配置','showDeveloperTools','@univerjs/ui','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','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','connectionError$','value','mcpConfig.apiKey','assign','_localStorageService','MCPConfigPanel','univer-text-yellow-500','univer-space-y-4','univer-text-green-500','MCP:\x20未授权','mcpStatus.failed','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','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','732198MbNXjA','univer-text-sm\x20univer-font-medium','disposeWithMe','useState','MCPConnectionStatus','_blank','4890990dHLZCz','connectionStatus$','mcp.apiKey','entries','on-line-icon','<SESSION_ID>','univer-text-gray-400','next','RibbonStartGroup','ILocalStorageService','apiKey','off-line-icon','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','mcp-ui.config','univerjs-icon\x20univerjs-icon-','mcpStatus.clickToConfigure','map','_loading$','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','defs','error','mcpConfig.apiApplyInfo.description','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','CheckMarkIcon','Inject','substring','url(#off-line-icon_clip0_910_343)','add','MCP\x20已连接','idSuffix','MenuIcon','_config$','_logService','React','univer-flex\x20univer-items-start\x20univer-gap-3','pluginName','7lDNtBG','https://console.univer.plus','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mask','univer-bg-green-500','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCPStatusDisplay','amd','MCPConfigUIController','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.apiKeyHint','setItem','univer-text-xs\x20univer-text-gray-500','MessageType','已连接','_apiKey$','mcpConfig.connectionError.unauthorized','children','mcpConfig.validation.apiKeyTooShort','7713qOOHPu','HelpIcon','_registerComponent','xlink:href','mcp-ui.command.openConfigPanel','_messageService','jsxs','button','Univer\x20AI\x20控制台','您的\x20API\x20密钥将在此浏览器中本地存储','3912sZaBxU','on-line-icon_clip0_910_349','svg','mcpConfig.connectionInfo','API\x20key\x20with\x20Bearer\x20prefix.','mcpStatus.networkError','mcpConfig.connectionStatus.connected','bottom','_configService','replace','@univerjs/core','mcpConfig.saving','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','string','univer-flex\x20univer-items-center\x20univer-gap-2','重连中...','exports','getItem','LocaleService','会话\x20ID\x20已被占用,请稍后再试','保存中...','NETWORK_ERROR','配置保存失败','Bearer\x20','MCP:\x20Network\x20Error','MCPConnectionError','配置更改将立即生效','mcpConfig.configInstructions','MCPUIMenuController','round','带有\x20Bearer\x20前缀的\x20API\x20密钥。','FAILED','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','useObservable','univer-bg-blue-500','配置步骤:','NONE','Enable\x20Authentication','网络连接错误,请检查您的网络连接','mcpConfig.validation.invalidApiKey','@univerjs-pro/mcp','defineProperty','UNAUTHORIZED','rxjs','mcpConfig.apiApplyInfo.title','defIds','enableAutoConnect','mcpStatus.unauthorized','clipPath','ICommandService','tag','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','API\x20密钥长度至少需要\x2010\x20位','div','mcpStatus.connected','MAX_RETRIES_EXCEEDED','MCP:\x20网络错误','Univer\x20AI\x20Console','几秒钟内获取您的\x20API\x20密钥','length','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','stringify','mcpConfig.apiKeyPlaceholder','保存配置','displayName','univer-space-y-3','getConfig','univer-space-y-2','univer-min-w-0\x20univer-flex-1','showConfigPanel','1em','_localeService','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','46730yivfjv','Session\x20ID','push','mcp-config-dialog','Configuration\x20saved\x20successfully','WebSocketService','UniverIcon','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','Click\x20to\x20configure\x20MCP','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','mcpStatus.connecting','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','BUTTON','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','UniverProMcp','最大重试次数','RETRYING','toStringTag','trim','_initConfigSync','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpConfig.title','span','mcpStatus.maxRetriesExceeded','__setCustomHeaders','Retrying...','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','close','CONNECTING','isValid','MCP\x20Connecting...','_uiPartsService','mcpConfig.connectionStatus.failed','univer-space-y-5','evenodd','validateApiKey','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','MCP:\x20超出最大重试次数','mcpConfig.configStepTitle','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-shrink-0\x20univer-text-red-500','2132210qiAhPG','getOwnPropertyDescriptor','@univerjs/network','启用身份验证以获得安全连接','_mcpCoreConfig$','Connected','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','check-mark-icon','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','clsx','merge','请输入您的\x20API\x20密钥','DISCONNECTED','toString','univer-text-red-500','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20密钥','OnLineIcon','UniverCore','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','createElement','COMMAND','M0\x200H16V16H0z','\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','点击配置\x20MCP','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','mcpServerUrl','MCPConnectionUIController','mcpConfig.configParameters','univer-size-4','将配置添加到您的\x20MCP\x20客户端设置文件中','_injector','univer-flex\x20univer-gap-3','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-text-sm\x20univer-text-gray-500','http://www.w3.org/2000/svg','path','MCP:\x20会话\x20ID\x20已被占用','_initializeMenus','useCallback','mcpConfig.configSaved','Saving...','MCP\x20连接中...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','_dialogService','810TquDBj','registerCommand','pre','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.validation.invalidConfig','univer-text-blue-600','MCP\x20已断开','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','jsx','CONNECTED','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.connectionStatus.retrying','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcpConfig.connectionError.maxRetriesExceeded','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','IUIPartsService','IMessageService','useDependency','univer-bg-red-500','ComponentManager','mcpConfig.note2','current','BehaviorSubject','IMenuManagerService','mcpConfig.note1'];_0x5658=function(){return _0x2b52f6;};return _0x5658();}(function(_0x187146,_0x349ddc){const _0x4250b5=_0x5caa,_0x574247=_0x187146();while(!![]){try{const _0x4efb5d=-parseInt(_0x4250b5(0x2b7))/0x1+-parseInt(_0x4250b5(0x234))/0x2+parseInt(_0x4250b5(0x210))/0x3*(-parseInt(_0x4250b5(0x300))/0x4)+parseInt(_0x4250b5(0x1e3))/0x5+-parseInt(_0x4250b5(0x2bd))/0x6+parseInt(_0x4250b5(0x2e3))/0x7*(-parseInt(_0x4250b5(0x24b))/0x8)+parseInt(_0x4250b5(0x2f6))/0x9*(parseInt(_0x4250b5(0x1ba))/0xa);if(_0x4efb5d===_0x349ddc)break;else _0x574247['push'](_0x574247['shift']());}catch(_0x2acf30){_0x574247['push'](_0x574247['shift']());}}}(_0x5658,0x8aec1),function(_0x574599,_0x36d8e5){const _0x2b4f9d=_0x5caa;typeof exports=='object'&&typeof module<'u'?_0x36d8e5(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react'),require('@univerjs/network')):typeof define=='function'&&define[_0x2b4f9d(0x2ea)]?define([_0x2b4f9d(0x180),_0x2b4f9d(0x17a),'react/jsx-runtime',_0x2b4f9d(0x198),_0x2b4f9d(0x257),_0x2b4f9d(0x2a7),_0x2b4f9d(0x19b),'react',_0x2b4f9d(0x1e5)],_0x36d8e5):(_0x574599=typeof globalThis<'u'?globalThis:_0x574599||self,_0x36d8e5(_0x574599[_0x2b4f9d(0x247)]={},_0x574599[_0x2b4f9d(0x1f5)],_0x574599[_0x2b4f9d(0x2e0)],_0x574599[_0x2b4f9d(0x1c8)],_0x574599[_0x2b4f9d(0x25c)],_0x574599['UniverUi'],_0x574599['rxjs'],_0x574599[_0x2b4f9d(0x2e0)],_0x574599['UniverNetwork']));}(this,function(_0x17ad1f,_0x38dbf9,_0x21508b,_0x29ac54,_0x16b905,_0x57a2b4,_0x5b3e53,_0x3d94ab,_0x25ef64){'use strict';const _0x219a4c=_0x5caa;var _0x6829cf=Object['defineProperty'],_0x4f577c=(_0x178f0a,_0x5a6c9f,_0x5964d0)=>_0x5a6c9f in _0x178f0a?_0x6829cf(_0x178f0a,_0x5a6c9f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5964d0}):_0x178f0a[_0x5a6c9f]=_0x5964d0,_0x22a379=(_0x1dc66d,_0x30b400,_0x6b6967)=>_0x4f577c(_0x1dc66d,typeof _0x30b400!='symbol'?_0x30b400+'':_0x30b400,_0x6b6967);function _0x10ad17({ref:_0x40fe58,..._0x596b2a}){const _0x37c4e4=_0x5caa,{icon:_0x4c0344,id:_0xbce9b9,className:_0x32917c,extend:_0x4276f3,..._0x56600c}=_0x596b2a,_0x5507b3=(_0x37c4e4(0x2cb)+_0xbce9b9+'\x20'+(_0x32917c||''))['trim'](),_0x6777db=_0x3d94ab[_0x37c4e4(0x29c)]('_'+_0x14a220());return _0x193aad(_0x4c0344,''+_0xbce9b9,{'defIds':_0x4c0344[_0x37c4e4(0x19d)],'idSuffix':_0x6777db[_0x37c4e4(0x225)]},{'ref':_0x40fe58,'className':_0x5507b3,..._0x56600c},_0x4276f3);}function _0x193aad(_0x2f9184,_0x5c2414,_0x191c4d,_0x15d3cb,_0x3a88e5){const _0x187fd9=_0x5caa;return _0x3d94ab[_0x187fd9(0x1f7)](_0x2f9184[_0x187fd9(0x1a2)],{'key':_0x5c2414,..._0x2b76ca(_0x2f9184,_0x191c4d,_0x3a88e5),..._0x15d3cb},(_0x292138(_0x2f9184,_0x191c4d)[_0x187fd9(0x2f4)]||[])['map']((_0x5afa50,_0x1ea489)=>_0x193aad(_0x5afa50,_0x5c2414+'-'+_0x2f9184[_0x187fd9(0x1a2)]+'-'+_0x1ea489,_0x191c4d,void 0x0,_0x3a88e5)));}function _0x2b76ca(_0x4a2ff4,_0x3e938b,_0x45e25c){const _0x19de66=_0x5caa,_0x7707f0={..._0x4a2ff4['attrs']};_0x45e25c!=null&&_0x45e25c[_0x19de66(0x239)]&&_0x7707f0['fill']===_0x19de66(0x239)&&(_0x7707f0[_0x19de66(0x24a)]=_0x45e25c[_0x19de66(0x239)]),_0x4a2ff4[_0x19de66(0x1a2)]===_0x19de66(0x2e6)&&_0x7707f0['id']&&(_0x7707f0['id']=_0x7707f0['id']+_0x3e938b[_0x19de66(0x2dc)]),Object[_0x19de66(0x2c0)](_0x7707f0)[_0x19de66(0x277)](([_0x3ebf13,_0x55e8ed])=>{const _0x554cdf=_0x19de66;_0x3ebf13===_0x554cdf(0x2e6)&&typeof _0x55e8ed==_0x554cdf(0x17d)&&(_0x7707f0[_0x3ebf13]=_0x55e8ed[_0x554cdf(0x179)](/url\(#(.*)\)/,_0x554cdf(0x28f)+_0x3e938b[_0x554cdf(0x2dc)]+')'));});const {defIds:_0x471594}=_0x3e938b;return!_0x471594||_0x471594[_0x19de66(0x1ac)]===0x0||(_0x4a2ff4[_0x19de66(0x1a2)]===_0x19de66(0x278)&&_0x7707f0[_0x19de66(0x2f9)]&&(_0x7707f0[_0x19de66(0x2f9)]=_0x7707f0['xlink:href']+_0x3e938b[_0x19de66(0x2dc)]),Object['entries'](_0x7707f0)[_0x19de66(0x277)](([_0x5a5308,_0xac9bf8])=>{const _0x5cd676=_0x19de66;typeof _0xac9bf8==_0x5cd676(0x17d)&&(_0x7707f0[_0x5a5308]=_0xac9bf8[_0x5cd676(0x179)](/url\(#(.*)\)/,_0x5cd676(0x28f)+_0x3e938b[_0x5cd676(0x2dc)]+')'));})),_0x7707f0;}function _0x292138(_0x930d80,_0x4967aa){const _0x18572e=_0x5caa;var _0x4df396;const {defIds:_0x29d6ad}=_0x4967aa;return!_0x29d6ad||_0x29d6ad[_0x18572e(0x1ac)]===0x0?_0x930d80:_0x930d80['tag']===_0x18572e(0x2d2)&&((_0x4df396=_0x930d80[_0x18572e(0x2f4)])!=null&&_0x4df396['length'])?{..._0x930d80,'children':_0x930d80[_0x18572e(0x2f4)][_0x18572e(0x2cd)](_0x4adc9f=>typeof _0x4adc9f[_0x18572e(0x242)]['id']==_0x18572e(0x17d)&&_0x29d6ad&&_0x29d6ad['includes'](_0x4adc9f[_0x18572e(0x242)]['id'])?{..._0x4adc9f,'attrs':{..._0x4adc9f[_0x18572e(0x242)],'id':_0x4adc9f[_0x18572e(0x242)]['id']+_0x4967aa[_0x18572e(0x2dc)]}}:_0x4adc9f)}:_0x930d80;}function _0x14a220(){const _0x5f58b9=_0x5caa;return Math[_0x5f58b9(0x22d)]()[_0x5f58b9(0x1f0)](0x24)[_0x5f58b9(0x2d8)](0x2,0x8);}_0x10ad17[_0x219a4c(0x1b1)]=_0x219a4c(0x1c0);const _0x5e540c={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x219a4c(0x26c),'viewBox':_0x219a4c(0x230),'width':'1em','height':_0x219a4c(0x1b7)},'children':[{'tag':_0x219a4c(0x207),'attrs':{'fill':'currentColor','d':_0x219a4c(0x1c1),'fillRule':'evenodd','clipRule':_0x219a4c(0x1dc)}}]},_0x434356=_0x3d94ab[_0x219a4c(0x271)](function(_0x595a62,_0x2f7402){const _0xd60d1=_0x219a4c;return _0x3d94ab[_0xd60d1(0x1f7)](_0x10ad17,Object[_0xd60d1(0x2ad)]({},_0x595a62,{'id':_0xd60d1(0x1ea),'ref':_0x2f7402,'icon':_0x5e540c}));});_0x434356['displayName']=_0x219a4c(0x2d6);const _0x2229e1={'tag':_0x219a4c(0x302),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x219a4c(0x230),'width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x219a4c(0x1de)}}]},_0x17560e=_0x3d94ab[_0x219a4c(0x271)](function(_0x489d57,_0x47d226){const _0x31b449=_0x219a4c;return _0x3d94ab[_0x31b449(0x1f7)](_0x10ad17,Object[_0x31b449(0x2ad)]({},_0x489d57,{'id':_0x31b449(0x27a),'ref':_0x47d226,'icon':_0x2229e1}));});_0x17560e[_0x219a4c(0x1b1)]=_0x219a4c(0x248);const _0x225cde={'tag':_0x219a4c(0x302),'attrs':{'xmlns':_0x219a4c(0x206),'fill':'none','viewBox':_0x219a4c(0x230),'width':_0x219a4c(0x1b7),'height':_0x219a4c(0x1b7)},'children':[{'tag':_0x219a4c(0x207),'attrs':{'fill':'currentColor','d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x219a4c(0x207),'attrs':{'fill':_0x219a4c(0x233),'d':_0x219a4c(0x17c)}},{'tag':_0x219a4c(0x207),'attrs':{'fill':_0x219a4c(0x233),'d':_0x219a4c(0x2a9),'fillRule':_0x219a4c(0x1dc),'clipRule':'evenodd'}}]},_0x3e07ec=_0x3d94ab[_0x219a4c(0x271)](function(_0xbf634c,_0x375c43){const _0x39ef9d=_0x219a4c;return _0x3d94ab[_0x39ef9d(0x1f7)](_0x10ad17,Object[_0x39ef9d(0x2ad)]({},_0xbf634c,{'id':'help-icon','ref':_0x375c43,'icon':_0x225cde}));});_0x3e07ec['displayName']=_0x219a4c(0x2f7);const _0x47c29b={'tag':_0x219a4c(0x302),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x219a4c(0x26c),'viewBox':_0x219a4c(0x230),'width':_0x219a4c(0x1b7),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x219a4c(0x2d9)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x219a4c(0x250),'strokeLinecap':_0x219a4c(0x18d),'strokeLinejoin':_0x219a4c(0x18d),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x219a4c(0x1a0),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x219a4c(0x207),'attrs':{'fill':'white','d':_0x219a4c(0x1f9)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},_0x3657a4=_0x3d94ab[_0x219a4c(0x271)](function(_0x26daf4,_0x2b3215){const _0x39f991=_0x219a4c;return _0x3d94ab[_0x39f991(0x1f7)](_0x10ad17,Object[_0x39f991(0x2ad)]({},_0x26daf4,{'id':_0x39f991(0x2c8),'ref':_0x2b3215,'icon':_0x47c29b}));});_0x3657a4['displayName']=_0x219a4c(0x232);const _0x149aaa={'tag':_0x219a4c(0x302),'attrs':{'xmlns':_0x219a4c(0x206),'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x219a4c(0x1b7),'height':_0x219a4c(0x1b7)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x219a4c(0x207),'attrs':{'stroke':_0x219a4c(0x233),'d':_0x219a4c(0x2b6),'strokeLinecap':_0x219a4c(0x18d),'strokeLinejoin':_0x219a4c(0x18d),'strokeWidth':1.2}}]},{'tag':_0x219a4c(0x2d2),'attrs':{},'children':[{'tag':_0x219a4c(0x1a0),'attrs':{'id':_0x219a4c(0x301)},'children':[{'tag':_0x219a4c(0x207),'attrs':{'fill':_0x219a4c(0x229),'d':_0x219a4c(0x1f9),'transform':_0x219a4c(0x287)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},_0x374927=_0x3d94ab[_0x219a4c(0x271)](function(_0x3dfb15,_0x11bf4e){const _0x120f69=_0x219a4c;return _0x3d94ab[_0x120f69(0x1f7)](_0x10ad17,Object[_0x120f69(0x2ad)]({},_0x3dfb15,{'id':_0x120f69(0x2c1),'ref':_0x11bf4e,'icon':_0x149aaa}));});_0x374927['displayName']=_0x219a4c(0x1f4);function _0x261e01(_0x439b3f){const _0x41ca18=_0x219a4c;var _0x17844d,_0x5b1d18;const {mcpCoreConfig:_0x3a5a5c,onSave:_0x433547,loading:_0x27b407=!0x1,config:_0x5f2658,connectionStatus$:_0x7cea13,connectionError$:_0x1c9200,currentApiKey$:_0x572773,currentSessionId$:_0x531c0e}=_0x439b3f,_0x2a0b10=_0x57a2b4[_0x41ca18(0x221)](_0x38dbf9['LocaleService']),_0x5e4e27=_0x57a2b4[_0x41ca18(0x191)](_0x7cea13,_0x29ac54[_0x41ca18(0x2bb)][_0x41ca18(0x1ef)]),_0x5a061e=_0x57a2b4[_0x41ca18(0x191)](_0x1c9200,_0x29ac54['MCPConnectionError']['NONE']),_0x27d8ff=_0x57a2b4[_0x41ca18(0x191)](_0x531c0e,''),_0x57c044=_0x57a2b4['useObservable'](_0x572773,''),[_0x367a8f,_0x348938]=_0x3d94ab['useState'](_0x57c044||''),_0xe41b9f=!0x0,_0x487d4b=_0x5f2658['showDeveloperTools']&&_0x3a5a5c[_0x41ca18(0x1fd)]&&(_0x3a5a5c[_0x41ca18(0x1fd)][_0x41ca18(0x260)]('univer.plus')||_0x3a5a5c['mcpServerUrl'][_0x41ca18(0x260)]('univer.ai')),_0x391fbe=(_0x17844d=_0x3a5a5c[_0x41ca18(0x1fd)])==null?void 0x0:_0x17844d['includes'](_0x41ca18(0x289)),_0x26532a=(_0x5b1d18=_0x3a5a5c['mcpServerUrl'])==null?void 0x0:_0x5b1d18[_0x41ca18(0x260)](_0x41ca18(0x272)),_0x3eef89=_0x391fbe?_0x41ca18(0x2e4):'https://console.univer.ai',_0x32dd6b=_0x5f2658[_0x41ca18(0x2a6)]&&(_0x391fbe||_0x26532a),[_0xdc2cde,_0x4bc9d3]=_0x3d94ab[_0x41ca18(0x2ba)](!_0x367a8f['trim']()),_0x3b03b4=(_0x471ab8,_0x14760e)=>{const _0x3c9211=_0x41ca18;if(_0x14760e===_0x29ac54[_0x3c9211(0x189)]['UNAUTHORIZED'])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x471ab8){case _0x29ac54[_0x3c9211(0x2bb)][_0x3c9211(0x219)]:return _0x3c9211(0x1a4);case _0x29ac54[_0x3c9211(0x2bb)][_0x3c9211(0x1d6)]:case _0x29ac54[_0x3c9211(0x2bb)]['RETRYING']:return _0x3c9211(0x276);case _0x29ac54[_0x3c9211(0x2bb)][_0x3c9211(0x18f)]:return _0x3c9211(0x2d0);default:return _0x3c9211(0x1d4);}},_0x388abd=(_0x379295,_0x4d28aa)=>{const _0xb95ba1=_0x41ca18;if(_0x4d28aa===_0x29ac54['MCPConnectionError'][_0xb95ba1(0x19a)])return _0xb95ba1(0x222);switch(_0x379295){case _0x29ac54['MCPConnectionStatus'][_0xb95ba1(0x219)]:return _0xb95ba1(0x2e7);case _0x29ac54[_0xb95ba1(0x2bb)][_0xb95ba1(0x1d6)]:case _0x29ac54['MCPConnectionStatus'][_0xb95ba1(0x1ca)]:return _0xb95ba1(0x192);case _0x29ac54['MCPConnectionStatus'][_0xb95ba1(0x18f)]:return _0xb95ba1(0x222);default:return'univer-bg-gray-500';}},_0x561777=_0x2a8fb1=>{const _0xb35798=_0x41ca18;switch(_0x2a8fb1){case _0x29ac54[_0xb35798(0x2bb)]['CONNECTED']:return _0x2a0b10['t'](_0xb35798(0x176));case _0x29ac54[_0xb35798(0x2bb)][_0xb35798(0x1d6)]:return _0x2a0b10['t'](_0xb35798(0x283));case _0x29ac54[_0xb35798(0x2bb)][_0xb35798(0x18f)]:return _0x2a0b10['t'](_0xb35798(0x1da));case _0x29ac54[_0xb35798(0x2bb)]['RETRYING']:return _0x2a0b10['t'](_0xb35798(0x21b));default:return _0x2a0b10['t'](_0xb35798(0x266));}},_0xb51207=_0x20fec3=>{const _0x9c5a96=_0x41ca18;switch(_0x20fec3){case _0x29ac54['MCPConnectionError'][_0x9c5a96(0x19a)]:return _0x2a0b10['t'](_0x9c5a96(0x2f3));case _0x29ac54['MCPConnectionError']['SESSION_ID_OCCUPIED']:return _0x2a0b10['t'](_0x9c5a96(0x255));case _0x29ac54[_0x9c5a96(0x189)][_0x9c5a96(0x185)]:return _0x2a0b10['t'](_0x9c5a96(0x29d));case _0x29ac54['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x2a0b10['t'](_0x9c5a96(0x21d));default:return'';}},_0x176385=_0x3d94ab[_0x41ca18(0x20a)](()=>{const _0x59b0f7=_0x41ca18,_0x5a78d5={..._0x3a5a5c,'apiKey':_0x367a8f[_0x59b0f7(0x1cc)](),'enableAuth':_0xe41b9f};_0x433547(_0x5a78d5);},[_0x3a5a5c,_0x367a8f,_0xe41b9f,_0x433547]),_0x1ed5c1=_0x367a8f['trim']()['length']>0x0;return _0x21508b['jsxs'](_0x41ca18(0x1a6),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x21508b[_0x41ca18(0x218)](_0x41ca18(0x1a6),{'className':_0x41ca18(0x1ce),'children':_0x21508b[_0x41ca18(0x2fc)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x21508b['jsx'](_0x41ca18(0x1a6),{'className':_0x41ca18(0x1c7),'children':_0x21508b['jsx']('span',{'className':'univer-text-white','children':'⚙'})}),_0x21508b[_0x41ca18(0x218)](_0x41ca18(0x1a6),{'children':_0x21508b[_0x41ca18(0x218)]('p',{'className':_0x41ca18(0x205),'children':_0x2a0b10['t']('mcpConfig.description')})})]})}),_0x21508b['jsxs'](_0x41ca18(0x1a6),{'className':_0x41ca18(0x2c9),'children':[_0x21508b[_0x41ca18(0x218)](_0x41ca18(0x1a6),{'className':_0x16b905['clsx'](_0x41ca18(0x1c5),_0x3b03b4(_0x5e4e27,_0x5a061e)),'children':_0x21508b[_0x41ca18(0x2fc)]('div',{'className':_0x41ca18(0x17e),'children':[_0x21508b[_0x41ca18(0x218)]('div',{'className':_0x16b905['clsx']('univer-size-2\x20univer-rounded-full',_0x388abd(_0x5e4e27,_0x5a061e))}),_0x21508b[_0x41ca18(0x218)]('span',{'className':_0x41ca18(0x2b8),'children':_0x561777(_0x5e4e27)})]})}),_0x5a061e!==_0x29ac54[_0x41ca18(0x189)][_0x41ca18(0x194)]&&(_0x5e4e27===_0x29ac54[_0x41ca18(0x2bb)][_0x41ca18(0x18f)]||_0x5a061e===_0x29ac54[_0x41ca18(0x189)][_0x41ca18(0x19a)])&&_0x21508b[_0x41ca18(0x218)](_0x41ca18(0x1a6),{'className':_0x41ca18(0x1e1),'children':_0x21508b[_0x41ca18(0x2fc)]('div',{'className':_0x41ca18(0x23e),'children':[_0x21508b[_0x41ca18(0x218)]('span',{'className':_0x41ca18(0x1e2),'children':'⚠️'}),_0x21508b[_0x41ca18(0x218)]('p',{'className':_0x41ca18(0x1fc),'children':_0xb51207(_0x5a061e)})]})})]}),_0x21508b[_0x41ca18(0x218)](_0x41ca18(0x1a6),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x21508b[_0x41ca18(0x2fc)](_0x41ca18(0x1a6),{'className':_0x41ca18(0x1db),'children':[_0x21508b[_0x41ca18(0x2fc)]('div',{'className':'univer-space-y-2','children':[_0x21508b['jsxs']('label',{'className':_0x41ca18(0x1b9),'children':[_0x21508b[_0x41ca18(0x218)](_0x41ca18(0x1d0),{'children':'🔑'}),'\x20',_0x2a0b10['t'](_0x41ca18(0x2ac)),_0x21508b['jsx'](_0x41ca18(0x1d0),{'className':_0x41ca18(0x1f1),'children':'*'}),_0x487d4b&&_0x21508b['jsx']('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x2a0b10['t'](_0x41ca18(0x19c)),'role':_0x41ca18(0x2fd),'onClick':()=>_0x4bc9d3(!0x0),'children':_0x21508b['jsx'](_0x3e07ec,{})})]}),_0x21508b[_0x41ca18(0x218)](_0x16b905['Input'],{'type':'text','placeholder':_0x2a0b10['t'](_0x41ca18(0x1af)),'value':_0x367a8f,'disabled':_0x27b407,'autoComplete':'off','onChange':_0x348938}),_0x21508b[_0x41ca18(0x218)]('p',{'className':_0x41ca18(0x2ef),'children':_0x2a0b10['t'](_0x41ca18(0x2ed))})]}),_0x487d4b&&_0xdc2cde&&_0x21508b[_0x41ca18(0x2fc)](_0x41ca18(0x1a6),{'className':_0x41ca18(0x299),'children':[_0x21508b[_0x41ca18(0x218)]('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':_0x41ca18(0x2fd),'onClick':()=>_0x4bc9d3(!0x1),'children':_0x21508b[_0x41ca18(0x218)](_0x17560e,{'className':_0x41ca18(0x200)})}),_0x21508b[_0x41ca18(0x2fc)](_0x41ca18(0x1a6),{'className':_0x41ca18(0x2a0),'children':[_0x21508b['jsx']('div',{'className':_0x41ca18(0x217),'children':_0x21508b[_0x41ca18(0x218)](_0x41ca18(0x1d0),{'className':_0x41ca18(0x215),'children':'🚀'})}),_0x21508b[_0x41ca18(0x2fc)](_0x41ca18(0x1a6),{'className':'univer-flex-1','children':[_0x21508b[_0x41ca18(0x218)]('h4',{'className':_0x41ca18(0x2ec),'children':_0x2a0b10['t'](_0x41ca18(0x19c))}),_0x21508b[_0x41ca18(0x218)]('p',{'className':_0x41ca18(0x240),'children':_0x2a0b10['t'](_0x41ca18(0x2d4))}),_0x21508b['jsx'](_0x41ca18(0x1a6),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x32dd6b&&_0x21508b[_0x41ca18(0x2fc)]('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x3eef89,'target':_0x41ca18(0x2bc),'rel':'noopener\x20noreferrer','children':[_0x21508b['jsx'](_0x41ca18(0x1d0),{'children':'🤖'}),_0x2a0b10['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x21508b['jsx'](_0x41ca18(0x1d0),{'className':_0x41ca18(0x2c3),'children':'↗'})]})}),_0x21508b[_0x41ca18(0x2fc)]('div',{'className':_0x41ca18(0x275),'children':['✨','\x20',_0x2a0b10['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x5f2658[_0x41ca18(0x2a6)]&&_0x21508b[_0x41ca18(0x2fc)]('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x21508b[_0x41ca18(0x2fc)]('h4',{'className':_0x41ca18(0x190),'children':[_0x21508b[_0x41ca18(0x218)]('span',{'children':'🔗'}),'\x20',_0x2a0b10['t'](_0x41ca18(0x173))]}),_0x21508b[_0x41ca18(0x2fc)]('div',{'className':_0x41ca18(0x2b1),'children':[_0x21508b[_0x41ca18(0x2fc)](_0x41ca18(0x1a6),{'className':_0x41ca18(0x1b2),'children':[_0x21508b[_0x41ca18(0x218)]('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x2a0b10['t'](_0x41ca18(0x18b))}),_0x21508b[_0x41ca18(0x2fc)](_0x41ca18(0x1a6),{'className':_0x41ca18(0x1b4),'children':[_0x21508b[_0x41ca18(0x218)](_0x41ca18(0x1a6),{'className':_0x41ca18(0x2e5),'children':_0x2a0b10['t'](_0x41ca18(0x1e0))}),_0x21508b[_0x41ca18(0x2fc)](_0x41ca18(0x1a6),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x21508b[_0x41ca18(0x2fc)](_0x41ca18(0x1a6),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x21508b[_0x41ca18(0x218)](_0x41ca18(0x1d0),{'className':_0x41ca18(0x244),'children':'1'}),_0x2a0b10['t'](_0x41ca18(0x274))]}),_0x21508b['jsxs'](_0x41ca18(0x1a6),{'className':_0x41ca18(0x17e),'children':[_0x21508b[_0x41ca18(0x218)](_0x41ca18(0x1d0),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x2a0b10['t']('mcpConfig.configStep2')]}),_0x21508b[_0x41ca18(0x2fc)](_0x41ca18(0x1a6),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x21508b[_0x41ca18(0x218)](_0x41ca18(0x1d0),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x2a0b10['t']('mcpConfig.configStep3')]})]})]})]}),_0x21508b[_0x41ca18(0x2fc)](_0x41ca18(0x1a6),{'className':'univer-space-y-2','children':[_0x21508b['jsx'](_0x41ca18(0x1a6),{'className':_0x41ca18(0x2e5),'children':_0x41ca18(0x249)}),_0x21508b['jsx'](_0x41ca18(0x1a6),{'className':_0x41ca18(0x2cf),'children':_0x21508b[_0x41ca18(0x218)](_0x41ca18(0x212),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x41ca18(0x1ae)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x27d8ff||_0x41ca18(0x2c2)),'type':'http','headers':{'Authorization':'Bearer\x20'+(_0x367a8f||_0x41ca18(0x27f))}}}},null,0x2)})})]}),_0x21508b[_0x41ca18(0x2fc)]('div',{'className':'univer-space-y-3','children':[_0x21508b[_0x41ca18(0x218)]('div',{'className':_0x41ca18(0x2e5),'children':_0x2a0b10['t'](_0x41ca18(0x1ff))}),_0x21508b['jsxs'](_0x41ca18(0x1a6),{'className':_0x41ca18(0x1b4),'children':[_0x21508b['jsxs'](_0x41ca18(0x1a6),{'className':_0x41ca18(0x2e1),'children':[_0x21508b['jsx']('div',{'className':_0x41ca18(0x21a)}),_0x21508b[_0x41ca18(0x2fc)](_0x41ca18(0x1a6),{'className':_0x41ca18(0x1b5),'children':[_0x21508b[_0x41ca18(0x218)](_0x41ca18(0x1a6),{'className':_0x41ca18(0x1ad),'children':'univer_session_id:'}),_0x21508b['jsx']('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x2a0b10['t']('mcpConfig.sessionIdDescription')})]})]}),_0x21508b['jsxs'](_0x41ca18(0x1a6),{'className':_0x41ca18(0x2e1),'children':[_0x21508b[_0x41ca18(0x218)]('div',{'className':_0x41ca18(0x21a)}),_0x21508b['jsxs']('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x21508b[_0x41ca18(0x218)](_0x41ca18(0x1a6),{'className':_0x41ca18(0x1ad),'children':_0x41ca18(0x237)}),_0x21508b[_0x41ca18(0x218)](_0x41ca18(0x1a6),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x2a0b10['t'](_0x41ca18(0x26d))})]})]})]})]})]})]}),_0x21508b[_0x41ca18(0x218)](_0x16b905[_0x41ca18(0x28d)],{'onClick':_0x176385,'disabled':!_0x1ed5c1||_0x27b407,'className':_0x41ca18(0x1f6),'children':_0x27b407?_0x21508b[_0x41ca18(0x2fc)](_0x41ca18(0x1d0),{'className':_0x41ca18(0x17e),'children':[_0x21508b[_0x41ca18(0x218)](_0x41ca18(0x1d0),{'children':'⟲'}),_0x2a0b10['t'](_0x41ca18(0x17b))]}):_0x21508b['jsxs'](_0x41ca18(0x1d0),{'className':_0x41ca18(0x17e),'children':[_0x21508b[_0x41ca18(0x218)](_0x434356,{}),_0x2a0b10['t'](_0x41ca18(0x293))]})}),_0x21508b['jsx'](_0x41ca18(0x1a6),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x21508b[_0x41ca18(0x2fc)](_0x41ca18(0x1a6),{'className':_0x41ca18(0x203),'children':[_0x21508b[_0x41ca18(0x218)](_0x41ca18(0x1d0),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x21508b[_0x41ca18(0x2fc)](_0x41ca18(0x1a6),{'className':_0x41ca18(0x21e),'children':[_0x21508b['jsx'](_0x41ca18(0x1a6),{'className':_0x41ca18(0x279),'children':_0x41ca18(0x261)}),_0x21508b[_0x41ca18(0x2fc)]('div',{'children':['•',_0x2a0b10['t'](_0x41ca18(0x228))]}),_0x21508b[_0x41ca18(0x2fc)](_0x41ca18(0x1a6),{'children':['•',_0x2a0b10['t'](_0x41ca18(0x224))]})]})]})})]})})]});}const _0x48b483=_0x219a4c(0x2ca),_0xaef917={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x5d97a4=Object[_0x219a4c(0x1e4)],_0x1d9416=(_0xc37b72,_0x440b39,_0x39c02c,_0x5f1d87)=>{const _0x3b0cce=_0x219a4c;for(var _0x24f293=_0x5f1d87>0x1?void 0x0:_0x5f1d87?_0x5d97a4(_0x440b39,_0x39c02c):_0x440b39,_0x23207c=_0xc37b72[_0x3b0cce(0x1ac)]-0x1,_0x27260b;_0x23207c>=0x0;_0x23207c--)(_0x27260b=_0xc37b72[_0x23207c])&&(_0x24f293=_0x27260b(_0x24f293)||_0x24f293);return _0x24f293;},_0x54094e=(_0x2e2154,_0x74fedc)=>(_0x120546,_0x291ce5)=>_0x74fedc(_0x120546,_0x291ce5,_0x2e2154);const _0x59bad8=_0x219a4c(0x2bf),_0x351ce8=_0x219a4c(0x1bd);_0x17ad1f['MCPConfigUIController']=class extends _0x38dbf9['Disposable']{constructor(_0x496bf0,_0x2d6121,_0xd9efab,_0x29812e,_0x2e2d26,_0x11e457,_0x8e4a61,_0x51a8ec,_0xb04327,_0x341d6c){const _0x541782=_0x219a4c;super(),_0x22a379(this,_0x541782(0x2ce),new _0x5b3e53[(_0x541782(0x226))](!0x1)),_0x22a379(this,'_mcpCoreConfig$',new _0x5b3e53[(_0x541782(0x226))]({})),_0x22a379(this,_0x541782(0x2de),new _0x5b3e53[(_0x541782(0x226))]({})),_0x22a379(this,_0x541782(0x2f2),new _0x5b3e53[(_0x541782(0x226))]('')),_0x22a379(this,'_handleConfigSave',async _0x464fc4=>{const _0x2b7e8a=_0x541782;var _0x1925aa,_0x5ea69f;this[_0x2b7e8a(0x2ce)][_0x2b7e8a(0x2c4)](!0x0);try{const _0x3f70bd=await this[_0x2b7e8a(0x268)](_0x464fc4);if(!_0x3f70bd[_0x2b7e8a(0x1d7)]){this[_0x2b7e8a(0x2fb)][_0x2b7e8a(0x241)]({'type':_0x16b905[_0x2b7e8a(0x2f0)][_0x2b7e8a(0x28b)],'content':_0x3f70bd[_0x2b7e8a(0x23f)]||this['_localeService']['t'](_0x2b7e8a(0x214))});return;}_0x464fc4[_0x2b7e8a(0x2c7)]?await this[_0x2b7e8a(0x2ae)][_0x2b7e8a(0x2ee)](_0x59bad8,_0x464fc4[_0x2b7e8a(0x2c7)][_0x2b7e8a(0x1cc)]()):await this['_localStorageService']['removeItem'](_0x59bad8),this['_apiKey$']['next'](((_0x1925aa=_0x464fc4['apiKey'])==null?void 0x0:_0x1925aa[_0x2b7e8a(0x1cc)]())||''),this[_0x2b7e8a(0x25d)]['__setCustomHeaders']({'Authorization':_0x2b7e8a(0x187)+((_0x5ea69f=_0x464fc4[_0x2b7e8a(0x2c7)])==null?void 0x0:_0x5ea69f[_0x2b7e8a(0x1cc)]())}),this[_0x2b7e8a(0x2fb)][_0x2b7e8a(0x241)]({'type':_0x16b905[_0x2b7e8a(0x2f0)][_0x2b7e8a(0x2a1)],'content':this['_localeService']['t'](_0x2b7e8a(0x20b))}),setTimeout(()=>{const _0x3f6fe8=_0x2b7e8a;this[_0x3f6fe8(0x20f)][_0x3f6fe8(0x1d5)](_0x351ce8);},0x320);}catch(_0x1ca67b){this[_0x2b7e8a(0x2df)][_0x2b7e8a(0x2d3)](_0x2b7e8a(0x204),_0x1ca67b),this[_0x2b7e8a(0x2fb)][_0x2b7e8a(0x241)]({'type':_0x16b905[_0x2b7e8a(0x2f0)][_0x2b7e8a(0x28b)],'content':this['_localeService']['t'](_0x2b7e8a(0x236))});}finally{this[_0x2b7e8a(0x2ce)][_0x2b7e8a(0x2c4)](!0x1);}}),(this[_0x541782(0x202)]=_0x496bf0,this['_uiPartsService']=_0x2d6121,this[_0x541782(0x178)]=_0xd9efab,this[_0x541782(0x2ae)]=_0x29812e,this[_0x541782(0x20f)]=_0x2e2d26,this[_0x541782(0x2fb)]=_0x11e457,this[_0x541782(0x288)]=_0x8e4a61,this['_localeService']=_0x51a8ec,this[_0x541782(0x2df)]=_0xb04327,this[_0x541782(0x25d)]=_0x341d6c,this['_initConfigSync'](),this[_0x541782(0x26f)](),this[_0x541782(0x2f8)]());}[_0x219a4c(0x1b6)](){const _0x383e49=_0x219a4c,_0x5abf43=this[_0x383e49(0x178)]['getConfig'](_0x48b483);_0x5abf43!=null&&_0x5abf43['showDeveloperTools']&&this[_0x383e49(0x20f)]['open']({'id':_0x351ce8,'title':{'title':this[_0x383e49(0x1b8)]['t'](_0x383e49(0x1cf))},'children':{'label':_0x383e49(0x2af)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x4770d7=_0x383e49;this[_0x4770d7(0x20f)]['close'](_0x351ce8);}});}[_0x219a4c(0x256)](){const _0x5de6b3=_0x219a4c;return this['_mcpCoreConfig$'][_0x5de6b3(0x2ab)];}['_registerComponent'](){const _0x1c83cf=_0x219a4c;this[_0x1c83cf(0x2b9)](this['_componentManager'][_0x1c83cf(0x254)](_0x1c83cf(0x2af),this[_0x1c83cf(0x246)]()));}['_createConfigPanelComponent'](){const _0x46aff3=_0x219a4c;return _0x57a2b4[_0x46aff3(0x252)](()=>{const _0x34102c=_0x46aff3;var _0x142ae2,_0x16078f,_0x4384ad;return _0x21508b['jsx'](_0x261e01,{'config':this[_0x34102c(0x2de)][_0x34102c(0x2ab)],'mcpCoreConfig':this[_0x34102c(0x1e7)][_0x34102c(0x2ab)],'currentApiKey$':this[_0x34102c(0x2f2)],'onSave':this['_handleConfigSave'],'loading':this[_0x34102c(0x2ce)][_0x34102c(0x2ab)],'connectionStatus$':(_0x142ae2=this['_mcpConnectionController'])==null?void 0x0:_0x142ae2['connectionStatus$'],'connectionError$':(_0x16078f=this[_0x34102c(0x25d)])==null?void 0x0:_0x16078f['connectionError$'],'currentSessionId$':(_0x4384ad=this[_0x34102c(0x25d)])==null?void 0x0:_0x4384ad['sessionId$']});},this['_injector']);}[_0x219a4c(0x1cd)](){const _0x5e4fb6=_0x219a4c;this[_0x5e4fb6(0x2b9)](this[_0x5e4fb6(0x178)][_0x5e4fb6(0x25f)](_0x29ac54[_0x5e4fb6(0x24c)])['subscribe'](_0x56cdc6=>{const _0x5f455c=_0x5e4fb6;this['_mcpCoreConfig$'][_0x5f455c(0x2c4)](_0x56cdc6||{});}));const _0x2ef59d=this[_0x5e4fb6(0x178)][_0x5e4fb6(0x1b3)](_0x29ac54[_0x5e4fb6(0x24c)]);this[_0x5e4fb6(0x1e7)][_0x5e4fb6(0x2c4)](_0x2ef59d||{}),this['disposeWithMe'](this[_0x5e4fb6(0x178)]['subscribeConfigValue$'](_0x48b483)['subscribe'](_0x247739=>{const _0x3a20d9=_0x5e4fb6;this[_0x3a20d9(0x2de)]['next'](_0x247739||{});}));const _0xd06030=this[_0x5e4fb6(0x178)]['getConfig'](_0x48b483);this['_config$'][_0x5e4fb6(0x2c4)](_0xd06030||{});}async[_0x219a4c(0x26f)](){const _0x238b39=_0x219a4c,_0x567b5e=this['_configService'][_0x238b39(0x1b3)](_0x48b483);if(!(_0x567b5e!=null&&_0x567b5e[_0x238b39(0x2a6)]))return;const _0x4e412f=await this[_0x238b39(0x2ae)][_0x238b39(0x181)](_0x59bad8);_0x4e412f&&(this[_0x238b39(0x25d)][_0x238b39(0x1d2)]({'Authorization':'Bearer\x20'+_0x4e412f}),this[_0x238b39(0x2f2)][_0x238b39(0x2c4)](_0x4e412f));}async[_0x219a4c(0x268)](_0xa6b92e){const _0x500924=_0x219a4c;if(!_0xa6b92e[_0x500924(0x2c7)]||_0xa6b92e[_0x500924(0x2c7)]['trim']()[_0x500924(0x1ac)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x500924(0x1b8)]['t'](_0x500924(0x281))};if(_0xa6b92e['apiKey'][_0x500924(0x1cc)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x500924(0x1b8)]['t'](_0x500924(0x2f5))};try{const _0x2b8af2=await this[_0x500924(0x202)][_0x500924(0x259)](_0x29ac54[_0x500924(0x290)])[_0x500924(0x1dd)](_0xa6b92e[_0x500924(0x2c7)][_0x500924(0x1cc)]());return _0x2b8af2[_0x500924(0x1d7)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2b8af2[_0x500924(0x2d3)]||this[_0x500924(0x1b8)]['t'](_0x500924(0x197))};}catch(_0x20bcfa){return console['warn'](_0x500924(0x253),_0x20bcfa),{'isValid':!0x0};}}},_0x17ad1f['MCPConfigUIController']=_0x1d9416([_0x54094e(0x0,_0x38dbf9[_0x219a4c(0x2d7)](_0x38dbf9[_0x219a4c(0x258)])),_0x54094e(0x1,_0x57a2b4[_0x219a4c(0x21f)]),_0x54094e(0x2,_0x38dbf9['IConfigService']),_0x54094e(0x3,_0x38dbf9['ILocalStorageService']),_0x54094e(0x4,_0x57a2b4[_0x219a4c(0x231)]),_0x54094e(0x5,_0x57a2b4[_0x219a4c(0x220)]),_0x54094e(0x6,_0x38dbf9[_0x219a4c(0x2d7)](_0x57a2b4[_0x219a4c(0x223)])),_0x54094e(0x7,_0x38dbf9[_0x219a4c(0x2d7)](_0x38dbf9[_0x219a4c(0x182)])),_0x54094e(0x8,_0x38dbf9['ILogService']),_0x54094e(0x9,_0x38dbf9[_0x219a4c(0x2d7)](_0x29ac54[_0x219a4c(0x290)]))],_0x17ad1f[_0x219a4c(0x2eb)]);const _0x45e3e3={'id':_0x219a4c(0x2fa),'type':_0x38dbf9['CommandType'][_0x219a4c(0x1f8)],'handler':async(_0x27fb50,_0xc1cb18)=>(_0x27fb50[_0x219a4c(0x259)](_0x17ad1f['MCPConfigUIController'])['showConfigPanel'](),!0x0)};function _0x12bfab(_0x18458c,_0x20c6a8){const _0x2bd68e=_0x219a4c;switch(_0x18458c){case _0x29ac54[_0x2bd68e(0x2bb)][_0x2bd68e(0x1ef)]:return'mcpStatus.disconnected';case _0x29ac54['MCPConnectionStatus'][_0x2bd68e(0x1d6)]:return _0x2bd68e(0x1c4);case _0x29ac54['MCPConnectionStatus']['CONNECTED']:return _0x2bd68e(0x1a7);case _0x29ac54[_0x2bd68e(0x2bb)]['FAILED']:switch(_0x20c6a8){case _0x29ac54[_0x2bd68e(0x189)][_0x2bd68e(0x19a)]:return _0x2bd68e(0x19f);case _0x29ac54[_0x2bd68e(0x189)][_0x2bd68e(0x295)]:return _0x2bd68e(0x28c);case _0x29ac54['MCPConnectionError'][_0x2bd68e(0x185)]:return _0x2bd68e(0x175);case _0x29ac54[_0x2bd68e(0x189)][_0x2bd68e(0x1a8)]:return _0x2bd68e(0x1d1);default:return _0x2bd68e(0x2b4);}case _0x29ac54[_0x2bd68e(0x2bb)][_0x2bd68e(0x1ca)]:return'mcpStatus.retrying';default:return _0x2bd68e(0x23b);}}function _0x209d5(_0x428c76,_0x1e8019,_0xd1fd91,_0x3b3e1a=!0x0){const _0x464450=_0x219a4c,_0x451b4a=_0x12bfab(_0x428c76,_0x1e8019),_0x3374c0=_0xd1fd91['t'](_0x451b4a);return _0x3b3e1a?_0x428c76===_0x29ac54[_0x464450(0x2bb)]['DISCONNECTED']&&_0x1e8019===_0x29ac54[_0x464450(0x189)][_0x464450(0x19a)]?_0x3374c0+_0x464450(0x291)+_0xd1fd91['t'](_0x464450(0x2cc)):_0x428c76===_0x29ac54[_0x464450(0x2bb)][_0x464450(0x219)]?''+_0x3374c0:_0x428c76===_0x29ac54[_0x464450(0x2bb)]['DISCONNECTED']||_0x428c76===_0x29ac54[_0x464450(0x2bb)][_0x464450(0x18f)]?_0x3374c0+_0x464450(0x291)+_0xd1fd91['t'](_0x464450(0x243)):_0x3374c0:_0x3374c0;}function _0x5a020b(_0x1890a8){const _0xae8604=_0x219a4c;switch(_0x1890a8){case _0x29ac54[_0xae8604(0x2bb)][_0xae8604(0x219)]:return _0xae8604(0x2b2);case _0x29ac54[_0xae8604(0x2bb)][_0xae8604(0x1d6)]:case _0x29ac54[_0xae8604(0x2bb)][_0xae8604(0x1ca)]:return _0xae8604(0x2b0);case _0x29ac54[_0xae8604(0x2bb)]['FAILED']:case _0x29ac54[_0xae8604(0x2bb)][_0xae8604(0x1ef)]:return _0xae8604(0x1f1);default:return'univer-text-gray-500';}}function _0x42448b(_0x473a68){const _0x29ed0f=_0x219a4c,{status$:_0x540ace,error$:_0x4c2734,onConfigure:_0x2f3473,showClickable:_0x58f998=!0x0}=_0x473a68,_0x3d5174=_0x57a2b4[_0x29ed0f(0x191)](_0x540ace,_0x29ac54[_0x29ed0f(0x2bb)][_0x29ed0f(0x1ef)]),_0x56672d=_0x57a2b4[_0x29ed0f(0x191)](_0x4c2734,_0x29ac54['MCPConnectionError']['NONE']),_0xe6231b=_0x57a2b4['useDependency'](_0x38dbf9['LocaleService']),_0x488c79=_0x3d5174===_0x29ac54[_0x29ed0f(0x2bb)][_0x29ed0f(0x219)];_0x3d5174===_0x29ac54[_0x29ed0f(0x2bb)]['CONNECTING']||_0x29ac54['MCPConnectionStatus'][_0x29ed0f(0x1ca)];const _0xc63e2b=_0xe6231b['t'](_0x12bfab(_0x3d5174,_0x56672d)),_0xb6da04=_0x209d5(_0x3d5174,_0x56672d,_0xe6231b,_0x58f998),_0x56f499=_0x5a020b(_0x3d5174),_0x1ae823=_0x488c79?_0x21508b['jsx'](_0x374927,{}):_0x21508b[_0x29ed0f(0x218)](_0x3657a4,{}),_0x314aba=_0x3d94ab[_0x29ed0f(0x20a)](()=>{_0x58f998&&_0x2f3473&&_0x2f3473();},[_0x58f998,_0x2f3473]);function _0x900b6b(){const _0x4284e0=_0x29ed0f;return _0x21508b[_0x4284e0(0x2fc)](_0x4284e0(0x1a6),{'className':_0x16b905[_0x4284e0(0x1ec)]('univer-flex\x20univer-items-center',_0x58f998&&_0x2f3473&&_0x4284e0(0x1fa)),'role':_0x4284e0(0x2fd),'onClick':_0x58f998&&_0x2f3473?_0x314aba:void 0x0,'children':[_0x21508b['jsx'](_0x4284e0(0x1a6),{'className':_0x16b905[_0x4284e0(0x1ec)](_0x4284e0(0x292),_0x56f499),'children':_0x1ae823}),_0x21508b[_0x4284e0(0x218)](_0x4284e0(0x1a6),{'className':_0x4284e0(0x2b5),'children':_0xc63e2b})]});}return _0x21508b[_0x29ed0f(0x218)](_0x16b905['Tooltip'],{'title':_0xb6da04,'placement':_0x29ed0f(0x177),'children':_0x900b6b()});}var _0x46932b=Object[_0x219a4c(0x1e4)],_0x185039=(_0x57eac8,_0x245257,_0x396c0f,_0x4b6be4)=>{const _0x12013a=_0x219a4c;for(var _0x545bca=_0x4b6be4>0x1?void 0x0:_0x4b6be4?_0x46932b(_0x245257,_0x396c0f):_0x245257,_0x3e0a94=_0x57eac8[_0x12013a(0x1ac)]-0x1,_0x594bb2;_0x3e0a94>=0x0;_0x3e0a94--)(_0x594bb2=_0x57eac8[_0x3e0a94])&&(_0x545bca=_0x594bb2(_0x545bca)||_0x545bca);return _0x545bca;},_0x177161=(_0x5c949e,_0x1565ae)=>(_0x4a7276,_0x41895e)=>_0x1565ae(_0x4a7276,_0x41895e,_0x5c949e);_0x17ad1f[_0x219a4c(0x1fe)]=class extends _0x38dbf9[_0x219a4c(0x24d)]{constructor(_0x466ef8,_0x26e41e,_0x415b01,_0x38e029){const _0x2eb451=_0x219a4c;super(),this[_0x2eb451(0x202)]=_0x466ef8,this[_0x2eb451(0x29f)]=_0x26e41e,this[_0x2eb451(0x1d9)]=_0x415b01,this[_0x2eb451(0x178)]=_0x38e029,this['_initAutoConnect'](),this[_0x2eb451(0x22b)]();}[_0x219a4c(0x2a3)](){const _0x365905=_0x219a4c,_0x3256c2=this[_0x365905(0x178)][_0x365905(0x1b3)](_0x48b483);_0x3256c2!=null&&_0x3256c2[_0x365905(0x2a6)]&&(this[_0x365905(0x29f)][_0x365905(0x19e)]=!0x1);}[_0x219a4c(0x22b)](){const _0x5884f7=_0x219a4c,_0xb10a8=this['_configService'][_0x5884f7(0x1b3)](_0x48b483);(_0xb10a8==null?void 0x0:_0xb10a8['showStatus'])!==!0x1&&this[_0x5884f7(0x2b9)](this[_0x5884f7(0x1d9)]['registerComponent'](_0x57a2b4[_0x5884f7(0x23d)][_0x5884f7(0x280)],()=>{const _0x1212e6=_0x5884f7;var _0x2bf0c1;return _0x57a2b4['connectInjector'](_0x2514fe({'status$':this[_0x1212e6(0x29f)][_0x1212e6(0x2be)],'error$':this[_0x1212e6(0x29f)][_0x1212e6(0x2aa)],'onConfigure':()=>this[_0x1212e6(0x267)](),'showClickable':(_0x2bf0c1=_0xb10a8==null?void 0x0:_0xb10a8[_0x1212e6(0x2a6)])!=null?_0x2bf0c1:!0x1}),this[_0x1212e6(0x202)]);}));}['_handleConfigure'](){const _0x1fe4d1=_0x219a4c;this[_0x1fe4d1(0x202)][_0x1fe4d1(0x259)](_0x17ad1f[_0x1fe4d1(0x2eb)])['showConfigPanel']();}},_0x17ad1f[_0x219a4c(0x1fe)]=_0x185039([_0x177161(0x0,_0x38dbf9['Inject'](_0x38dbf9['Injector'])),_0x177161(0x1,_0x38dbf9[_0x219a4c(0x2d7)](_0x29ac54[_0x219a4c(0x290)])),_0x177161(0x2,_0x57a2b4['IUIPartsService']),_0x177161(0x3,_0x38dbf9['IConfigService'])],_0x17ad1f[_0x219a4c(0x1fe)]);function _0x2514fe(_0x157093){const {status$:_0x85e1be,error$:_0x1fbc9b,onConfigure:_0x53447d,showClickable:_0x47c465}=_0x157093;return function(){const _0x3ae289=_0x5caa;return _0x21508b[_0x3ae289(0x218)](_0x42448b,{'status$':_0x85e1be,'error$':_0x1fbc9b,'onConfigure':_0x53447d,'showClickable':_0x47c465});};}function _0x3e4aad(_0x4882a3){const _0x4bd440=_0x219a4c;return{'id':_0x45e3e3['id'],'type':_0x57a2b4['MenuItemType'][_0x4bd440(0x1c6)],'icon':_0x4bd440(0x2dd),'title':'mcpConfig.title','tooltip':_0x4bd440(0x1cf)};}const _0x218851={[_0x57a2b4[_0x219a4c(0x2c5)]['OTHERS']]:{[_0x45e3e3['id']]:{'order':0xa,'menuItemFactory':_0x3e4aad}}};var _0x143a85=Object[_0x219a4c(0x1e4)],_0x5c477b=(_0x51f357,_0x5b0945,_0x5eeebd,_0x105442)=>{const _0x4f959c=_0x219a4c;for(var _0x9369ca=_0x105442>0x1?void 0x0:_0x105442?_0x143a85(_0x5b0945,_0x5eeebd):_0x5b0945,_0x2419cd=_0x51f357[_0x4f959c(0x1ac)]-0x1,_0x2f43bc;_0x2419cd>=0x0;_0x2419cd--)(_0x2f43bc=_0x51f357[_0x2419cd])&&(_0x9369ca=_0x2f43bc(_0x9369ca)||_0x9369ca);return _0x9369ca;},_0x4043a6=(_0x220555,_0x433fe0)=>(_0xc3b210,_0x4b8631)=>_0x433fe0(_0xc3b210,_0x4b8631,_0x220555);_0x17ad1f['MCPUIMenuController']=class extends _0x38dbf9['Disposable']{constructor(_0x54fca1,_0xd9ebee){const _0x529f02=_0x219a4c;super(),this['_commandService']=_0x54fca1,this[_0x529f02(0x23a)]=_0xd9ebee,this['_initializeCommands'](),this[_0x529f02(0x209)]();}[_0x219a4c(0x24f)](){[_0x45e3e3]['forEach'](_0x504473=>{const _0x3a0895=_0x5caa;this['disposeWithMe'](this[_0x3a0895(0x22a)][_0x3a0895(0x211)](_0x504473));});}[_0x219a4c(0x209)](){this['_menuManagerService']['mergeMenu'](_0x218851);}},_0x17ad1f[_0x219a4c(0x18c)]=_0x5c477b([_0x4043a6(0x0,_0x38dbf9[_0x219a4c(0x1a1)]),_0x4043a6(0x1,_0x57a2b4[_0x219a4c(0x227)])],_0x17ad1f[_0x219a4c(0x18c)]);const _0x5dbf2e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x219a4c(0x1d8),'connected':'MCP\x20Connected','failed':_0x219a4c(0x22c),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x219a4c(0x269),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x219a4c(0x188),'maxRetriesExceeded':_0x219a4c(0x294),'clickToConnect':_0x219a4c(0x262),'clickToConfigure':_0x219a4c(0x1c2)},'mcpConfig':{'title':_0x219a4c(0x249),'description':_0x219a4c(0x2a8),'apiKey':_0x219a4c(0x26a),'apiKeyPlaceholder':_0x219a4c(0x270),'apiKeyHint':_0x219a4c(0x2d5),'enableAuth':_0x219a4c(0x195),'enableAuthHint':_0x219a4c(0x213),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x219a4c(0x251),'configInstructions':_0x219a4c(0x28e),'configStepTitle':_0x219a4c(0x29e),'configStep1':_0x219a4c(0x2a4),'configStep2':_0x219a4c(0x24e),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x219a4c(0x1bb),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x219a4c(0x174),'configParameters':_0x219a4c(0x286),'maxRetries':_0x219a4c(0x27c),'save':_0x219a4c(0x297),'saving':_0x219a4c(0x20c),'note1':_0x219a4c(0x2e8),'note2':_0x219a4c(0x28a),'configSaved':_0x219a4c(0x1be),'configError':_0x219a4c(0x23c),'apiApplyInfo':{'title':_0x219a4c(0x285),'description':_0x219a4c(0x1a3),'univerAiLabel':_0x219a4c(0x1aa),'getStarted':_0x219a4c(0x25b)},'validation':{'apiKeyRequired':_0x219a4c(0x238),'apiKeyTooShort':_0x219a4c(0x20e),'invalidConfig':_0x219a4c(0x29a),'invalidApiKey':_0x219a4c(0x21c)},'connectionStatus':{'disconnected':_0x219a4c(0x29b),'connecting':'Connecting...','connected':_0x219a4c(0x1e8),'failed':_0x219a4c(0x25a),'retrying':_0x219a4c(0x1d3)},'connectionError':{'unauthorized':_0x219a4c(0x1c3),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x219a4c(0x1f2),'maxRetriesExceeded':_0x219a4c(0x2d1)}}},_0x4cd6ae={'mcpStatus':{'disconnected':_0x219a4c(0x216),'connecting':_0x219a4c(0x20d),'connected':_0x219a4c(0x2db),'failed':_0x219a4c(0x284),'retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','unauthorized':_0x219a4c(0x2b3),'sessionOccupied':_0x219a4c(0x208),'networkError':_0x219a4c(0x1a9),'maxRetriesExceeded':_0x219a4c(0x1df),'clickToConnect':_0x219a4c(0x22e),'clickToConfigure':_0x219a4c(0x1fb)},'mcpConfig':{'title':_0x219a4c(0x2a5),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x219a4c(0x1f3),'apiKeyPlaceholder':_0x219a4c(0x1ee),'apiKeyHint':_0x219a4c(0x2ff),'enableAuth':'启用身份验证','enableAuthHint':_0x219a4c(0x1e6),'connectionInfo':_0x219a4c(0x296),'mcpClientConfig':_0x219a4c(0x296),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x219a4c(0x193),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x219a4c(0x201),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x219a4c(0x235),'sessionIdDescription':_0x219a4c(0x1eb),'authorizationDescription':_0x219a4c(0x18e),'configParameters':_0x219a4c(0x27e),'maxRetries':_0x219a4c(0x1c9),'save':_0x219a4c(0x1b0),'saving':_0x219a4c(0x184),'note1':_0x219a4c(0x18a),'note2':_0x219a4c(0x263),'configSaved':'配置保存成功','configError':_0x219a4c(0x186),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x219a4c(0x1e9),'univerAiLabel':_0x219a4c(0x2fe),'getStarted':_0x219a4c(0x1ab)},'validation':{'apiKeyRequired':_0x219a4c(0x265),'apiKeyTooShort':_0x219a4c(0x1a5),'invalidConfig':_0x219a4c(0x27b),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':'未连接','connecting':'连接中...','connected':_0x219a4c(0x2f1),'failed':'连接失败','retrying':_0x219a4c(0x17f)},'connectionError':{'unauthorized':_0x219a4c(0x2a2),'sessionOccupied':_0x219a4c(0x183),'networkError':_0x219a4c(0x196),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var _0xc0038=Object['defineProperty'],_0x4009de=Object[_0x219a4c(0x1e4)],_0x5d7ce7=(_0x4838e7,_0x349a6d,_0x56ae92)=>_0x349a6d in _0x4838e7?_0xc0038(_0x4838e7,_0x349a6d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56ae92}):_0x4838e7[_0x349a6d]=_0x56ae92,_0x4f778a=(_0x267119,_0x407470,_0x5d55a6,_0x2d4e1a)=>{const _0xb04efa=_0x219a4c;for(var _0x446d71=_0x2d4e1a>0x1?void 0x0:_0x2d4e1a?_0x4009de(_0x407470,_0x5d55a6):_0x407470,_0x44b91c=_0x267119[_0xb04efa(0x1ac)]-0x1,_0x3abd3c;_0x44b91c>=0x0;_0x44b91c--)(_0x3abd3c=_0x267119[_0x44b91c])&&(_0x446d71=_0x3abd3c(_0x446d71)||_0x446d71);return _0x446d71;},_0xa46f10=(_0x27f6f7,_0x22521e)=>(_0x5d8109,_0x1dff0f)=>_0x22521e(_0x5d8109,_0x1dff0f,_0x27f6f7),_0x589af3=(_0x294426,_0x399ac9,_0x59c0df)=>_0x5d7ce7(_0x294426,_0x399ac9+'',_0x59c0df);_0x17ad1f['UniverMCPUIPlugin']=class extends _0x38dbf9[_0x219a4c(0x264)]{constructor(_0x58392d=_0xaef917,_0x20ffa8,_0x5557d5,_0x205774,_0x4406bd,_0x40bb62){const _0x5a3a7b=_0x219a4c;super(),this[_0x5a3a7b(0x22f)]=_0x58392d,this[_0x5a3a7b(0x202)]=_0x20ffa8,this[_0x5a3a7b(0x178)]=_0x5557d5,this[_0x5a3a7b(0x1d9)]=_0x205774,this[_0x5a3a7b(0x2ae)]=_0x4406bd,this['_localeService']=_0x40bb62;const {..._0x213b62}=_0x38dbf9[_0x5a3a7b(0x1ed)]({},_0xaef917,this[_0x5a3a7b(0x22f)]);this[_0x5a3a7b(0x178)][_0x5a3a7b(0x26e)](_0x48b483,_0x213b62);}async[_0x219a4c(0x273)](){const _0x426b15=_0x219a4c,_0x1f7efb=[[_0x17ad1f[_0x426b15(0x1fe)]],[_0x17ad1f[_0x426b15(0x2eb)]],[_0x17ad1f[_0x426b15(0x18c)]]];this[_0x426b15(0x202)]['has'](_0x25ef64[_0x426b15(0x25e)])||_0x1f7efb[_0x426b15(0x1bc)]([_0x25ef64[_0x426b15(0x25e)],{'useClass':_0x25ef64[_0x426b15(0x1bf)]}]),_0x1f7efb[_0x426b15(0x277)](_0x7d4f41=>this[_0x426b15(0x202)][_0x426b15(0x2da)](_0x7d4f41)),this['_injector'][_0x426b15(0x259)](_0x17ad1f[_0x426b15(0x1fe)]),this[_0x426b15(0x202)]['get'](_0x17ad1f['MCPConfigUIController']),this['_injector'][_0x426b15(0x259)](_0x17ad1f[_0x426b15(0x18c)]);}},_0x589af3(_0x17ad1f[_0x219a4c(0x282)],_0x219a4c(0x2e2),'MCP_UI_PLUGIN'),_0x17ad1f[_0x219a4c(0x282)]=_0x4f778a([_0x38dbf9[_0x219a4c(0x26b)](_0x29ac54[_0x219a4c(0x298)]),_0xa46f10(0x1,_0x38dbf9[_0x219a4c(0x2d7)](_0x38dbf9[_0x219a4c(0x258)])),_0xa46f10(0x2,_0x38dbf9['IConfigService']),_0xa46f10(0x3,_0x57a2b4['IUIPartsService']),_0xa46f10(0x4,_0x38dbf9[_0x219a4c(0x2c6)]),_0xa46f10(0x5,_0x38dbf9[_0x219a4c(0x2d7)](_0x38dbf9[_0x219a4c(0x182)]))],_0x17ad1f[_0x219a4c(0x282)]),_0x17ad1f[_0x219a4c(0x2af)]=_0x261e01,_0x17ad1f[_0x219a4c(0x2e9)]=_0x42448b,_0x17ad1f[_0x219a4c(0x245)]=_0x45e3e3,_0x17ad1f['enUS']=_0x5dbf2e,_0x17ad1f[_0x219a4c(0x27d)]=_0x4cd6ae,Object[_0x219a4c(0x199)](_0x17ad1f,Symbol[_0x219a4c(0x1cb)],{'value':'Module'});}));
|