@ckeditor/ckeditor5-ai 47.3.0-alpha.6 → 47.3.0-alpha.7
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/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xf7bdc8=_0x2f7d;function _0x2f7d(_0x231b9e,_0x46d1e2){const _0x4829c5=_0x4829();return _0x2f7d=function(_0x2f7d67,_0x338f95){_0x2f7d67=_0x2f7d67-0x15f;let _0x226b14=_0x4829c5[_0x2f7d67];return _0x226b14;},_0x2f7d(_0x231b9e,_0x46d1e2);}(function(_0x130ca5,_0x5ddc64){const _0x53a765=_0x2f7d,_0x17c463=_0x130ca5();while(!![]){try{const _0x4e861d=-parseInt(_0x53a765(0x23a))/0x1*(-parseInt(_0x53a765(0x28e))/0x2)+-parseInt(_0x53a765(0x19c))/0x3*(-parseInt(_0x53a765(0x2bd))/0x4)+-parseInt(_0x53a765(0x1d4))/0x5+-parseInt(_0x53a765(0x22f))/0x6*(parseInt(_0x53a765(0x1b7))/0x7)+-parseInt(_0x53a765(0x283))/0x8*(-parseInt(_0x53a765(0x21a))/0x9)+-parseInt(_0x53a765(0x1c9))/0xa+-parseInt(_0x53a765(0x23e))/0xb*(parseInt(_0x53a765(0x18b))/0xc);if(_0x4e861d===_0x5ddc64)break;else _0x17c463['push'](_0x17c463['shift']());}catch(_0x59a475){_0x17c463['push'](_0x17c463['shift']());}}}(_0x4829,0x54da7));import{ContextPlugin as _0x168ff1,Editor as _0x2b4142}from'ckeditor5/src/core.js';import{CKEditorError as _0x217c5a,logError as _0x39c475,scrollViewportToShowTarget as _0x145ff8,uid as _0x532b26}from'ckeditor5/src/utils.js';import{AIConnector as _0xb0fd74}from'../aicore/aiconnector.js';import{AITabs as _0x4f4427}from'../aitabs/aitabs.js';import{AIChatConversation as _0x208493}from'./model/aichatconversation.js';import{getTranslation as _0x5f46ca}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x3ca273}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x419f44}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x3dfc6a}from'./model/aichatmodels.js';import{getEditorFromContext as _0x554683}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x53c37e,DATA_ID_MODEL_ATTRIBUTE as _0x230da6}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x5bcc09,getOperationsFromReply as _0x54130d}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x2ca72d,getMinimalSelection as _0x5be61d}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0xcfb78,_DetachOperation as _0x1a206a}from'ckeditor5/src/engine.js';import{findOne as _0x262c1,getAttribute as _0x3e07fb,serialize as _0x1c4235,Document as _0x48ab8a,findByAttribute as _0x405389}from'../aicore/utils/htmlparser.js';import{IconAI as _0x477ad5}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x5e7af4}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x20014a}from'../aiballoon/aiballoon.js';function _0x4829(){const _0xdb6dd3=['AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','_aiChatUi','addFeedItemAIReply','uiId','contextItemAdded','_toggleWebSearch','ai-chat-conversation-not-found','batch','updateCurrentDocumentInContext','loadConversation','isDisabled','pluginName','undo','_toggleReasoning','change','resourceStateChanged','addFeedItemStaticMessage','version','ai-chat-context-unsupported-type','getConversation','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','interactionDestroyed','root','replyId','sendMessage','commands','_applyOperationsAsSuggestions','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','listenTo','getMarkersGroup','_updateReplyContent','setIsUploadInProgress','contextItems','ai-chat-controller-mouse-over','isModelAvailable','error','get','unshift','2685684wIzNaV','add','set','messageId','capabilitiesUpdated','_flushLastInteractionUI','reasoningFinished','removeSelectionFromChatContext','AIChatUI','setConversationTitle','ai-chat-context-unsupported-file-type','text-delta','_aiEditing','collaboration.channelId','setChangeGroupState','removeFromContext','showFakeVisualSelection','init','ai-chat-invalid-request','getInteractionAndReplyById','closeSourceResourceBalloon','path','editing','interactionCreated','webSearchStarted','ai-chat-conversation-start-failed','ai-chat-controller-no-active-conversation','interactionStarted','setModel','context','_applySuggestion','contextItemRemoved','data','addSelectionToContext','mouseLeaveSuggestion','_getDocumentRangeForReplyChanges','findIndex','revert','query','startConversation','ready','getAttribute','getChild','isInContext','getTransformedByOperation','abortPromptStream','data-id','DocumentCompare','rootName','type','AI_CHAT_RESOURCE_LOAD_FAILED','dislike','editors','updateContent','sendUserMessage','AI_CHAT_INVALID_REQUEST','getPath','mapper','replyChangeGroupStateUpdated','ai-chat-resource-load-failed','5604aaPoWT','AIChatController','close','Showing\x20conversation\x20history...','cloneNode','addFeedInteractionHeader','toString','addFilesToContext','like','start','indexes','has','_handleStartConversation','isPremiumPlugin','modelSelected','outdated','isCurrentDocumentInContext','3YVtFjw','_removeAISelectionMarkers','toggleSuggestionDisplayMode','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','resizedTabs','pending','ai-chat-url-upload-failed','ai.chat.context','isOfficialPlugin','split','getOperations','scrollFeedToSuggestion','nextSibling','_removeFromContext','_integrateEditor','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','_showConversationHistory','resourceId','addResourceToContext','conversationInitialized','getChildAtOffset','getDocumentContext','domConverter','addContextOptionsChanged','delete','addFeedItemError','_scrollToSuggestionRange','1467445pqYIAV','dialogClosed','addFeedItemUserMessage','toggleReasoning','ai-chat-file-upload-failed','selectedModel','ai-chat-context-invalid-data','mouseOverSuggestion','updateFeedItemAIReplyContent','getReply','webSearchFinished','options','addFeedItemAISuggestion','state','setAddContextOptions','contextSent','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','resetMessageInput','366320wsoFKP','stopInteraction','enableControls','AI_CHAT_UNTITLED_CONVERSATION','fetchConversation','sourcePosition','documentContextContent','updateFeedItemAIReplySuggestionContent','updateFeedItemAIReplySources','changeGroups','end','3105085ysHzqN','showPrevious','find','isLoading','hasChanges','forEach','_createFromRanges','toggleLoadingSkeleton','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','sources','new','log','AIEditing','ai-chat-context-file-too-many-pages','applyOperation','maxOffset','push','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','ai.chat.models.displayedModels','ai-chat-conversation-init-failed','_openBalloonFor','from','uid','removeMarker','stopListening','hideFakeVisualSelection','Undo','_insertSuggestion','setFeedItemRenderingStrategy','load','addFileToContext','interactionId','showDiff','startInteraction','handleUserInteraction','isOpen','locale','ai-no-track-changes','resetConversationTitle','loadSourceResources','reasoningStarted','requires','focusPromptInput','node','setLoadingMessage','ai.chat.models.defaultModelId','ai.availableReplyActions','content','baseVersion','addCurrentDocumentToContext','insertSuggestion','addOperation','full','interactionFinished','stop','AI_CHAT_GENERIC_ERROR','handleRemovedConversation','isCurrentDocumentInConversation','AIConnector','ai-chat-context-file-too-large','removed','createPositionAt','contextItemLoadingEnded','view','getGroupId','selection','Liked\x20response','getRoot','range','addSelectionToChatContext','446031GaKKDa','getDiff','resize','upsertAIChatRating','AI_CHAT_ABORTED_MESSAGE','replies','model','AI_CHAT_CONTEXT_FILE_TOO_LARGE','chat','sourceId','index','Disliked\x20response','filter','AI_BALLOON_HEADER_TITLE','startAutoScroll','accepted','activeConversation','activateTab','populateSourceResourceBalloon','markers','isDocumentOperation','6OkOMxw','resource','streaming','slice','selectModel','source','viewRangeToDom','addUrlToContext','document','getRanges','getSelectionText','19QziyxW','AI_CHAT_UNABLE_TO_START_CONVERSATION','removeSelectionFromContext','setIsMaximized','3014PKFlTH','changes','static','ai-chat-missing-channel-id','contextItem','ai-request-aborted','removeContextItem','updateCapabilities','rejectSuggestion','_setIsMaximized','clearPendingContextUI','rejected','_updateRatings','lastInteraction','_balloonShowDiff','AI_CHAT_CONTEXT_INVALID_DATA','plugins','getInteraction','TrackChanges','TrackChangesEditing','startsWith','_startConversationSafely','uploadProgressChanged','setConversationContext','$graveyard','alignToTop','sourceResourcesLoaded','applySuggestion','_logError','config','createPositionFromPath','_handleUIUserMessage','remove','ai-conversation-','setContextItemLoading','message','afterInit','howMany','replyContentUpdated','redo','isUploadInProgress','partIndex','_batchToChanges','finishInteraction','length','showNext','ai-chat-context-form-data-size-limits-exceeded','parse','updateResourceState','updateFeedItemAIReplySuggestionPartState','_aiChatModels','disableControls','_stopLastInteraction','_previewedChangeGroup','resources','ai-chat-source-resources-load-failed','open','showChangeInText','clearConversationContextUI','anchorId','createRange','marker','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','map','toggleWebSearch','updateConversationTitle','getDocumentData','replyCreated','_aiConnector','104YnMgCe','getFirstRange','setSelectedModel','isStarted','addContextItem','resizeTabs','addDocumentToContext','indexOf','getContentParts','createConversation','current-document','2854RmgUUu','children','history','main','toViewRange','AITabs','getChildren','modification-delta','removeFeedInteraction'];_0x4829=function(){return _0xdb6dd3;};return _0x4829();}export class AIChatController extends _0x168ff1{[_0xf7bdc8(0x2c9)];[_0xf7bdc8(0x282)];[_0xf7bdc8(0x298)];[_0xf7bdc8(0x270)];[_0xf7bdc8(0x268)]=new Map();[_0xf7bdc8(0x273)]=null;[_0xf7bdc8(0x24c)]=!0x1;static get[_0xf7bdc8(0x1fd)](){return[_0xb0fd74,_0x20014a,_0x53c37e];}static get[_0xf7bdc8(0x2a2)](){const _0x27835a=_0xf7bdc8;return _0x27835a(0x18c);}static get[_0xf7bdc8(0x1a4)](){return!0x0;}static get[_0xf7bdc8(0x198)](){return!0x0;}[_0xf7bdc8(0x160)](){const _0x40425e=_0xf7bdc8;this[_0x40425e(0x282)]=this[_0x40425e(0x16c)][_0x40425e(0x24e)][_0x40425e(0x2bb)](_0x40425e(0x20e)),this[_0x40425e(0x298)]=this[_0x40425e(0x16c)][_0x40425e(0x24e)][_0x40425e(0x2bb)](_0x40425e(0x2c5)),this[_0x40425e(0x2c9)]=this[_0x40425e(0x16c)][_0x40425e(0x24e)][_0x40425e(0x2bb)](_0x40425e(0x1e0)),this[_0x40425e(0x270)]=new _0x3dfc6a({'connector':this[_0x40425e(0x282)],'availableModels':this[_0x40425e(0x16c)][_0x40425e(0x25b)][_0x40425e(0x2bb)](_0x40425e(0x1e6)),'defaultModelId':this[_0x40425e(0x16c)][_0x40425e(0x25b)][_0x40425e(0x2bb)](_0x40425e(0x201))});const _0x31cb75=this[_0x40425e(0x16c)][_0x40425e(0x24e)][_0x40425e(0x2bb)](_0x40425e(0x293));this[_0x40425e(0x2b3)](this[_0x40425e(0x298)],_0x40425e(0x176),()=>{const _0x3e0953=_0x40425e;this[_0x3e0953(0x253)]();}),this[_0x40425e(0x2b3)](this[_0x40425e(0x298)],_0x40425e(0x185),(_0x443bcb,_0x51c2ab)=>{const _0x36592e=_0x40425e;this[_0x36592e(0x25d)]({'userMessage':_0x51c2ab});}),this[_0x40425e(0x2b3)](_0x31cb75,_0x40425e(0x1a0),(_0x25d2be,_0x4867b2)=>{const _0x31a7bf=_0x40425e;this[_0x31a7bf(0x247)](_0x4867b2);}),this[_0x40425e(0x2b3)](this[_0x40425e(0x298)],_0x40425e(0x288),()=>{const _0x23a4cb=_0x40425e;_0x31cb75[_0x23a4cb(0x21c)]();}),this[_0x40425e(0x2b3)](this[_0x40425e(0x298)],_0x40425e(0x17c),async()=>{const _0x3d96c9=_0x40425e;await this[_0x3d96c9(0x272)](),await this[_0x3d96c9(0x2c2)](),this[_0x3d96c9(0x2c4)]();}),this[_0x40425e(0x2b3)](this[_0x40425e(0x298)],_0x40425e(0x289),()=>{const _0x4ad5bc=_0x40425e;this[_0x4ad5bc(0x22a)]?.[_0x4ad5bc(0x205)](_0x5f46ca(this[_0x4ad5bc(0x16c)][_0x4ad5bc(0x1f8)],_0x4ad5bc(0x2b2)));}),this[_0x40425e(0x2b3)](this[_0x40425e(0x298)],_0x40425e(0x1f2),(_0x432a20,_0x433c44)=>{const _0x306cc0=_0x40425e;this[_0x306cc0(0x22a)]?.[_0x306cc0(0x192)](Array[_0x306cc0(0x1e9)](_0x433c44));}),this[_0x40425e(0x2b3)](this[_0x40425e(0x298)],_0x40425e(0x236),(_0x4a8e29,_0x188bc8)=>{const _0x29c4a7=_0x40425e;this[_0x29c4a7(0x22a)]?.[_0x29c4a7(0x236)](_0x188bc8);}),this[_0x40425e(0x2b3)](this[_0x40425e(0x298)],_0x40425e(0x1ae),(_0x5f07db,_0x1ef83e)=>{const _0x50f9ae=_0x40425e;this[_0x50f9ae(0x22a)]?.[_0x50f9ae(0x1ae)](_0x1ef83e[_0x50f9ae(0x234)],_0x1ef83e[_0x50f9ae(0x230)]);}),this[_0x40425e(0x2b3)](this[_0x40425e(0x298)],_0x40425e(0x244),(_0x4db313,_0x19b71c)=>{const _0x4c9a44=_0x40425e;this[_0x4c9a44(0x1a9)](_0x19b71c);}),this[_0x40425e(0x2b3)](this[_0x40425e(0x298)],_0x40425e(0x1fb),(_0x291351,_0x33b6e8)=>{const _0xe0c88d=_0x40425e;this[_0xe0c88d(0x22a)]?.[_0xe0c88d(0x1fb)](_0x33b6e8[_0xe0c88d(0x223)],_0x33b6e8[_0xe0c88d(0x175)],_0x33b6e8[_0xe0c88d(0x1ea)]);}),this[_0x40425e(0x2b3)](this[_0x40425e(0x298)],_0x40425e(0x27e),()=>{const _0x134267=_0x40425e;this[_0x134267(0x29c)]();}),this[_0x40425e(0x2b3)](this[_0x40425e(0x298)],_0x40425e(0x1ba),()=>{const _0x2a4198=_0x40425e;this[_0x2a4198(0x2a4)]();}),this[_0x40425e(0x2b3)](this[_0x40425e(0x298)],_0x40425e(0x233),(_0x4d8233,_0x10e86b)=>{const _0x2b2fa2=_0x40425e;this[_0x2b2fa2(0x22a)]?.[_0x2b2fa2(0x16b)](_0x10e86b);}),this[_0x40425e(0x2b3)](this[_0x40425e(0x298)],_0x40425e(0x193),(_0x3163bb,{replyId:_0x2f3fde})=>{const _0x23fa59=_0x40425e;console[_0x23fa59(0x1df)](_0x23fa59(0x216),_0x2f3fde);}),this[_0x40425e(0x2b3)](this[_0x40425e(0x298)],_0x40425e(0x182),(_0x596c95,{replyId:_0x19c6ab})=>{const _0x52c3b7=_0x40425e;console[_0x52c3b7(0x1df)](_0x52c3b7(0x225),_0x19c6ab);}),this[_0x40425e(0x2b3)](this[_0x40425e(0x298)],_0x40425e(0x206),(_0x2028dd,_0x49e962)=>{const _0x31b91a=_0x40425e;this[_0x31b91a(0x16c)][_0x31b91a(0x24e)][_0x31b91a(0x2bb)](_0x20014a)[_0x31b91a(0x18d)](),this[_0x31b91a(0x1ef)](_0x49e962);}),this[_0x40425e(0x2b3)](this[_0x40425e(0x298)],_0x40425e(0x277),(_0x1f5639,{replyId:_0x79e92,partIndex:_0x10f622})=>{const _0x36f926=_0x40425e;this[_0x36f926(0x24c)]=this[_0x36f926(0x298)][_0x36f926(0x1f4)],this[_0x36f926(0x1e8)](_0x79e92,_0x10f622);}),this[_0x40425e(0x2b3)](this[_0x40425e(0x298)],_0x40425e(0x1be),(_0x44d469,{replyId:_0x3e9e86,partIndex:_0x143161})=>{const _0x276152=_0x40425e,_0x377b75=this[_0x276152(0x172)](_0x3e9e86,_0x143161);_0x377b75&&_0x276152(0x256)!=_0x377b75[_0x276152(0x218)][_0x276152(0x2ad)][_0x276152(0x17f)]&&this[_0x276152(0x2c9)][_0x276152(0x15f)]([_0x377b75[_0x276152(0x218)]],_0x276152(0x2b8));}),this[_0x40425e(0x2b3)](this[_0x40425e(0x298)],_0x40425e(0x171),()=>{const _0x175111=_0x40425e;this[_0x175111(0x2c9)][_0x175111(0x1ed)](_0x175111(0x2b8));}),this[_0x40425e(0x2b3)](this[_0x40425e(0x298)],_0x40425e(0x259),(_0x25bcb3,_0x5e9ec1)=>{const _0xdd2829=_0x40425e;this[_0xdd2829(0x16c)][_0xdd2829(0x24e)][_0xdd2829(0x2bb)](_0x20014a)[_0xdd2829(0x18d)](),this[_0xdd2829(0x16d)](_0x5e9ec1);}),this[_0x40425e(0x2b3)](this[_0x40425e(0x298)],_0x40425e(0x19e),async(_0x597aa7,{replyId:_0x4de7a2,showDiff:_0xbe4734})=>{const _0x40dce3=_0x40425e,{reply:_0x520494}=this[_0x40dce3(0x162)](_0x4de7a2),_0x1f83a5=_0x520494[_0x40dce3(0x28b)]({'showDiff':_0xbe4734});await this[_0x40dce3(0x298)][_0x40dce3(0x1d0)]({'id':_0x520494['id'],'parts':_0x1f83a5,'renderingStrategy':_0x40dce3(0x240)});}),this[_0x40425e(0x2b3)](this[_0x40425e(0x298)],_0x40425e(0x246),(_0xce23f4,{replyId:_0x2368d2,partIndex:_0x5cd4c8})=>{const _0x20ae8b=_0x40425e;this[_0x20ae8b(0x273)]?.[_0x20ae8b(0x2ae)]==_0x2368d2&&this[_0x20ae8b(0x273)]?.[_0x20ae8b(0x267)]==_0x5cd4c8&&this[_0x20ae8b(0x16c)][_0x20ae8b(0x24e)][_0x20ae8b(0x2bb)](_0x20014a)[_0x20ae8b(0x18d)]();const {reply:_0x4be6ae}=this[_0x20ae8b(0x162)](_0x2368d2);_0x4be6ae[_0x20ae8b(0x2cb)](_0x5cd4c8,_0x20ae8b(0x249)),this[_0x20ae8b(0x2c9)][_0x20ae8b(0x1ed)](_0x20ae8b(0x2b8));});}async[_0xf7bdc8(0x262)](){const _0x4de10e=_0xf7bdc8;this[_0x4de10e(0x16c)]instanceof _0x2b4142?this[_0x4de10e(0x1aa)](this[_0x4de10e(0x16c)]):this[_0x4de10e(0x2b3)](this[_0x4de10e(0x16c)][_0x4de10e(0x183)],_0x4de10e(0x2be),(_0x283729,_0x5c2713)=>{const _0x3ee492=_0x4de10e;_0x5c2713['on'](_0x3ee492(0x177),()=>{const _0x17df2f=_0x3ee492;this[_0x17df2f(0x1aa)](_0x5c2713);});}),await this[_0x4de10e(0x253)]();}[_0xf7bdc8(0x1ef)](_0x64cceb){const _0x270dc8=_0xf7bdc8,_0x492d5b=_0x554683(this[_0x270dc8(0x16c)]);if(!_0x492d5b[_0x270dc8(0x24e)][_0x270dc8(0x196)](_0x270dc8(0x250)))throw new _0x217c5a(_0x270dc8(0x1f9),null);const _0x503cdc=this[_0x270dc8(0x16c)][_0x270dc8(0x24e)][_0x270dc8(0x2bb)](_0x270dc8(0x17e)),{reply:_0x23aa7f,interaction:_0x3550b5}=this[_0x270dc8(0x162)](_0x64cceb[_0x270dc8(0x2ae)]),_0x569668=this[_0x270dc8(0x172)](_0x64cceb[_0x270dc8(0x2ae)],_0x64cceb[_0x270dc8(0x267)]),_0x31f34c=void 0x0!==_0x64cceb[_0x270dc8(0x267)]?[_0x23aa7f[_0x270dc8(0x1d2)][_0x64cceb[_0x270dc8(0x267)]]]:_0x23aa7f[_0x270dc8(0x1d2)][_0x270dc8(0x226)](_0x26576f=>_0x270dc8(0x1a1)==_0x26576f[_0x270dc8(0x1c4)]),_0x5825e0=_0x31f34c[_0x270dc8(0x27d)](_0x5c27bb=>_0x23aa7f[_0x270dc8(0x1d2)][_0x270dc8(0x28a)](_0x5c27bb));if(!_0x569668||_0x270dc8(0x256)==_0x569668[_0x270dc8(0x218)][_0x270dc8(0x2ad)][_0x270dc8(0x17f)])return void _0x5825e0[_0x270dc8(0x1d9)](_0x5de2ed=>_0x23aa7f[_0x270dc8(0x2cb)](_0x5de2ed,_0x270dc8(0x19a)));_0x5825e0[_0x270dc8(0x1d9)](_0x501186=>_0x23aa7f[_0x270dc8(0x2cb)](_0x501186,_0x270dc8(0x229)));const _0x477936=_0x54130d({'editor':_0x492d5b,'reply':_0x23aa7f,'interaction':_0x3550b5,'groups':_0x31f34c,'transform':!0x0,'documentCompare':_0x503cdc,'documentCompareOptions':{'anchor':_0x270dc8(0x291),'markDeletions':!0x0}});let _0x4528a9;_0x569668&&this[_0x270dc8(0x1b6)](_0x569668[_0x270dc8(0x218)]),_0x492d5b[_0x270dc8(0x220)][_0x270dc8(0x2a5)](_0x33c84f=>{const _0x5af810=_0x270dc8;_0x4528a9=_0x33c84f[_0x5af810(0x29e)],_0x492d5b[_0x5af810(0x24e)][_0x5af810(0x2bb)](_0x5af810(0x251))[_0x5af810(0x2b1)](_0x477936),this[_0x5af810(0x2c9)][_0x5af810(0x1ed)](_0x5af810(0x2b8));}),this[_0x270dc8(0x268)][_0x270dc8(0x2bf)](_0x4528a9,{'interactionId':_0x3550b5['id'],'replyId':_0x23aa7f['id'],'indexes':_0x5825e0[_0x270dc8(0x232)]()}),this[_0x270dc8(0x24a)](_0x23aa7f);}[_0xf7bdc8(0x16d)](_0x29ee8d){const _0x411cac=_0xf7bdc8,_0x1efa7f=_0x554683(this[_0x411cac(0x16c)]),_0x3c2284=this[_0x411cac(0x16c)][_0x411cac(0x24e)][_0x411cac(0x2bb)](_0x53c37e),{reply:_0x255b7d,interaction:_0x5716ec}=this[_0x411cac(0x162)](_0x29ee8d[_0x411cac(0x2ae)]),_0xb53f89=this[_0x411cac(0x172)](_0x29ee8d[_0x411cac(0x2ae)],_0x29ee8d[_0x411cac(0x267)]),_0x1a8296=void 0x0!==_0x29ee8d[_0x411cac(0x267)]?[_0x255b7d[_0x411cac(0x1d2)][_0x29ee8d[_0x411cac(0x267)]]]:_0x255b7d[_0x411cac(0x1d2)][_0x411cac(0x226)](_0x3290bb=>_0x411cac(0x1a1)==_0x3290bb[_0x411cac(0x1c4)]),_0x23010a=_0x1a8296[_0x411cac(0x27d)](_0xd6adb1=>_0x255b7d[_0x411cac(0x1d2)][_0x411cac(0x28a)](_0xd6adb1));if(!_0xb53f89||_0x411cac(0x256)==_0xb53f89[_0x411cac(0x218)][_0x411cac(0x2ad)][_0x411cac(0x17f)])return void _0x23010a[_0x411cac(0x1d9)](_0x3032c9=>_0x255b7d[_0x411cac(0x2cb)](_0x3032c9,_0x411cac(0x19a)));_0x23010a[_0x411cac(0x1d9)](_0x2f45cd=>_0x255b7d[_0x411cac(0x2cb)](_0x2f45cd,_0x411cac(0x229)));const _0x473d6e=_0x54130d({'editor':_0x1efa7f,'reply':_0x255b7d,'interaction':_0x5716ec,'groups':_0x1a8296,'transform':!0x0,'documentCompare':_0x3c2284,'documentCompareOptions':{'anchor':_0x411cac(0x291),'markDeletions':!0x1}});let _0x2b9ed1;_0xb53f89&&this[_0x411cac(0x1b6)](_0xb53f89[_0x411cac(0x218)]),_0x1efa7f[_0x411cac(0x220)][_0x411cac(0x2a5)](_0x29ee19=>{const _0x5b305d=_0x411cac;_0x2b9ed1=_0x29ee19[_0x5b305d(0x29e)];for(const _0x386b54 of _0x473d6e)_0x386b54[_0x5b305d(0x204)]=_0x1efa7f[_0x5b305d(0x220)][_0x5b305d(0x237)][_0x5b305d(0x2a8)],_0x5bcc09(_0x1efa7f,_0x386b54),_0x29ee19[_0x5b305d(0x29e)][_0x5b305d(0x207)](_0x386b54),_0x1efa7f[_0x5b305d(0x220)][_0x5b305d(0x1e2)](_0x386b54);}),this[_0x411cac(0x268)][_0x411cac(0x2bf)](_0x2b9ed1,{'interactionId':_0x5716ec['id'],'replyId':_0x255b7d['id'],'indexes':_0x23010a[_0x411cac(0x232)]()}),this[_0x411cac(0x24a)](_0x255b7d);}[_0xf7bdc8(0x1e8)](_0x12e38d,_0x15b42c){const _0x522b72=_0xf7bdc8,_0x16d57f=_0x554683(this[_0x522b72(0x16c)]),_0xcd3514=this[_0x522b72(0x172)](_0x12e38d,_0x15b42c),_0x3d966a=this[_0x522b72(0x16c)][_0x522b72(0x24e)][_0x522b72(0x2bb)](_0x20014a);if(!_0xcd3514)return void _0x3d966a[_0x522b72(0x18d)]();const {range:_0xceeead,currentIndex:_0x1e57f5}=_0xcd3514;if(_0x522b72(0x256)==_0xceeead[_0x522b72(0x2ad)][_0x522b72(0x17f)]){const {reply:_0x1fcfad}=this[_0x522b72(0x162)](_0x12e38d);return _0x1fcfad[_0x522b72(0x2cb)](_0x1e57f5,_0x522b72(0x19a)),void _0x3d966a[_0x522b72(0x18d)]();}if(this[_0x522b72(0x273)]?.[_0x522b72(0x2ae)]==_0x12e38d&&this[_0x522b72(0x273)]?.[_0x522b72(0x267)]==_0x1e57f5)return;this[_0x522b72(0x1ec)](_0x3d966a),this[_0x522b72(0x273)]={'replyId':_0x12e38d,'partIndex':_0x1e57f5};let _0x423c1e=_0x16d57f[_0x522b72(0x25b)][_0x522b72(0x2bb)](_0x522b72(0x202))||[..._0x419f44];_0x16d57f[_0x522b72(0x24e)][_0x522b72(0x196)](_0x522b72(0x250))||(_0x423c1e=_0x423c1e[_0x522b72(0x226)](_0x35a382=>_0x522b72(0x206)!=_0x35a382));const _0x385af0=new _0x5e7af4(_0x16d57f[_0x522b72(0x1f8)],{'showDiff':this[_0x522b72(0x24c)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x522b72(0x208)},'hideHeader':!0x0,'availableActions':_0x423c1e});this[_0x522b72(0x1ec)](_0x385af0);const {reply:_0x531f66}=this[_0x522b72(0x162)](_0x12e38d),_0x4fb353=_0x531f66[_0x522b72(0x28b)]({'showDiff':this[_0x522b72(0x24c)]})[_0x522b72(0x226)](_0x1f3964=>_0x1f3964[_0x522b72(0x1d8)]),_0x10cf03=_0x4fb353[_0x522b72(0x173)](_0x81aee7=>_0x81aee7[_0x522b72(0x224)]==_0x1e57f5);if(-0x1==_0x10cf03)return;const _0x478b07=_0x4fb353[_0x10cf03],_0x4214fb=_0x4fb353['at']((_0x10cf03-0x1)%_0x4fb353[_0x522b72(0x26a)])?.[_0x522b72(0x224)],_0x5a07cb=_0x4fb353['at']((_0x10cf03+0x1)%_0x4fb353[_0x522b72(0x26a)])?.[_0x522b72(0x224)];_0x385af0[_0x522b72(0x184)]({'parts':[_0x478b07],'renderingStrategy':_0x522b72(0x240)});const _0x2b5ba0=_0x1e57f5!==_0x4214fb;this[_0x522b72(0x1b6)](_0xceeead,!0x0),_0x3d966a[_0x522b72(0x276)]({'index':_0x1e57f5,'title':_0x5f46ca(this[_0x522b72(0x16c)][_0x522b72(0x1f8)],_0x522b72(0x227),(_0x10cf03+0x1)[_0x522b72(0x191)]()),'icon':_0x477ad5,'mainView':_0x385af0,'showRotator':_0x2b5ba0,'showApplyButton':!0x0,'showSuggestButton':_0x16d57f[_0x522b72(0x24e)][_0x522b72(0x196)](_0x522b72(0x250)),'ranges':[_0xceeead]}),this[_0x522b72(0x298)][_0x522b72(0x1a7)](_0x12e38d,_0x1e57f5),this[_0x522b72(0x2b3)](_0x385af0,_0x522b72(0x19e),(_0x5f9c0f,{showDiff:_0x5351b9})=>{const _0x2e2fbb=_0x522b72;this[_0x2e2fbb(0x24c)]=_0x5351b9;const {reply:_0x59c3d9}=this[_0x2e2fbb(0x162)](_0x12e38d),_0x51e380=_0x59c3d9[_0x2e2fbb(0x28b)]({'showDiff':_0x5351b9,'groupIndex':_0x1e57f5});_0x385af0[_0x2e2fbb(0x184)]({'parts':_0x51e380,'renderingStrategy':_0x2e2fbb(0x240)});}),this[_0x522b72(0x2b3)](_0x3d966a,_0x522b72(0x259),()=>{const _0x1da485=_0x522b72;this[_0x1da485(0x16d)]({'replyId':_0x12e38d,'partIndex':_0x1e57f5}),_0x2b5ba0?this[_0x1da485(0x1e8)](_0x12e38d,_0x5a07cb):_0x3d966a[_0x1da485(0x18d)]();}),this[_0x522b72(0x2b3)](_0x3d966a,_0x522b72(0x206),()=>{const _0x2a616f=_0x522b72;this[_0x2a616f(0x1ef)]({'replyId':_0x12e38d,'partIndex':_0x1e57f5}),_0x2b5ba0?this[_0x2a616f(0x1e8)](_0x12e38d,_0x5a07cb):_0x3d966a[_0x2a616f(0x18d)]();}),_0x2b5ba0&&(this[_0x522b72(0x2b3)](_0x3d966a,_0x522b72(0x26b),()=>{const _0x17a609=_0x522b72;this[_0x17a609(0x1e8)](_0x12e38d,_0x5a07cb);}),this[_0x522b72(0x2b3)](_0x3d966a,_0x522b72(0x1d5),()=>{const _0x358df5=_0x522b72;this[_0x358df5(0x1e8)](_0x12e38d,_0x4214fb);})),this[_0x522b72(0x2b3)](_0x3d966a,_0x522b72(0x1b8),()=>{const _0xdc7636=_0x522b72;this[_0xdc7636(0x1ec)](_0x3d966a),this[_0xdc7636(0x1ec)](_0x385af0),this[_0xdc7636(0x273)]=null;});}[_0xf7bdc8(0x172)](_0x5b4f33,_0x331d55){const _0x569878=_0xf7bdc8,_0x3c6494=_0x554683(this[_0x569878(0x16c)]),{reply:_0x17dba8,interaction:_0x2186ca}=this[_0x569878(0x162)](_0x5b4f33),_0x2fd60f=_0x17dba8[_0x569878(0x1d2)][_0x569878(0x226)](_0x5eaa2a=>_0x569878(0x1a1)==_0x5eaa2a[_0x569878(0x1c4)]),_0xd17896=_0x2fd60f[_0x569878(0x27d)](_0x306013=>_0x17dba8[_0x569878(0x1d2)][_0x569878(0x28a)](_0x306013));void 0x0===_0x331d55&&(_0x331d55=_0xd17896[0x0]);const _0x438754=_0xd17896[_0x569878(0x28a)](_0x331d55);if(-0x1==_0x438754)return null;const _0x502beb=_0x2fd60f[_0x438754],_0x23ef95=new _0x48ab8a([]),_0x468f51=new _0x48ab8a([]);for(const _0x588745 of _0x502beb[_0x569878(0x23f)])if(_0x569878(0x210)!=_0x588745[_0x569878(0x180)]&&_0x468f51[_0x569878(0x28f)][_0x569878(0x1e4)](_0x588745[_0x569878(0x1ff)][_0x569878(0x18f)](!0x0)),_0x569878(0x1de)!=_0x588745[_0x569878(0x180)]){const _0x51c81c=_0x262c1(_0x146710=>_0x3e07fb(_0x146710,_0x569878(0x17d))==_0x588745['id'],_0x17dba8[_0x569878(0x1cf)],!0x0);_0x23ef95[_0x569878(0x28f)][_0x569878(0x1e4)](_0x51c81c[_0x569878(0x18f)](!0x0));}if(0x0==_0x23ef95[_0x569878(0x28f)][_0x569878(0x26a)]){if(_0x502beb[_0x569878(0x23f)][0x0][_0x569878(0x279)]){const _0x17bc4f=_0x405389(_0x569878(0x17d),_0x502beb[_0x569878(0x23f)][0x0][_0x569878(0x279)],_0x17dba8[_0x569878(0x1cf)]);_0x23ef95[_0x569878(0x28f)][_0x569878(0x2bc)](_0x17bc4f[_0x569878(0x18f)](!0x0)),_0x468f51[_0x569878(0x28f)][_0x569878(0x2bc)](_0x17bc4f[_0x569878(0x18f)](!0x0)),_0x17bc4f[_0x569878(0x1a8)]&&(_0x23ef95[_0x569878(0x28f)][_0x569878(0x1e4)](_0x17bc4f[_0x569878(0x1a8)][_0x569878(0x18f)](!0x0)),_0x468f51[_0x569878(0x28f)][_0x569878(0x1e4)](_0x17bc4f[_0x569878(0x1a8)][_0x569878(0x18f)](!0x0)));}else{const _0xd5e2de=_0x17dba8[_0x569878(0x1cf)][_0x569878(0x28f)][0x0];if(!_0xd5e2de)return null;_0x23ef95[_0x569878(0x28f)][_0x569878(0x1e4)](_0xd5e2de[_0x569878(0x18f)](!0x0)),_0x468f51[_0x569878(0x28f)][_0x569878(0x1e4)](_0xd5e2de[_0x569878(0x18f)](!0x0));}}const _0x1c14b0=_0x2186ca[_0x569878(0x1b1)](),_0x3ded59=_0x3c6494[_0x569878(0x16f)][_0x569878(0x26d)](_0x1c14b0[_0x569878(0x203)]),_0x4c0ae6=_0x1c4235(_0x23ef95),_0x4e0bd5=_0x3c6494[_0x569878(0x16f)][_0x569878(0x26d)](_0x4c0ae6),_0x5e7703=_0x3c6494[_0x569878(0x16f)][_0x569878(0x26d)](_0x4c0ae6),_0xf8fb84=_0x3c6494[_0x569878(0x220)][_0x569878(0x211)](_0x4e0bd5,0x0),_0x506981=_0x1c4235(_0x468f51),_0x5859e7={'anchor':_0xf8fb84,'markDeletions':!0x1},_0x1b9bc5=_0x3c6494[_0x569878(0x24e)][_0x569878(0x2bb)](_0x53c37e)[_0x569878(0x21b)](_0x4c0ae6,_0x506981,_0x5859e7)[_0x569878(0x1a6)]();if(!_0x1b9bc5[_0x569878(0x26a)])return null;_0x3c6494[_0x569878(0x220)][_0x569878(0x2a5)](_0x2e914c=>{const _0x239106=_0x569878;for(const _0x23584a of _0x1b9bc5)if(_0x239106(0x25e)==_0x23584a[_0x239106(0x180)]){const _0x31bafe=_0x23584a[_0x239106(0x1ce)],_0x26a13a=_0x23584a[_0x239106(0x263)],_0xa4e81a=new _0x1a206a(_0x31bafe,_0x26a13a);_0x2e914c[_0x239106(0x29e)][_0x239106(0x207)](_0xa4e81a),_0x3c6494[_0x239106(0x220)][_0x239106(0x1e2)](_0xa4e81a);}else _0x239106(0x27b)!==_0x23584a[_0x239106(0x180)]&&(_0x23584a[_0x239106(0x204)]=null,_0x23584a[_0x239106(0x22e)]=!0x1,_0x2e914c[_0x239106(0x29e)][_0x239106(0x207)](_0x23584a),_0x3c6494[_0x239106(0x220)][_0x239106(0x1e2)](_0x23584a));});const _0x1dab38=_0x5be61d(_0x3c6494,_0x1b9bc5,_0x4e0bd5);_0x2ca72d(_0x3c6494[_0x569878(0x220)],_0x1dab38);const _0x380359=_0x1dab38[_0x569878(0x284)]()[_0x569878(0x194)][_0x569878(0x164)][_0x569878(0x232)](),_0x3ecb8a=_0x1dab38[_0x569878(0x284)]()[_0x569878(0x1d3)][_0x569878(0x164)][_0x569878(0x232)](),_0x279f64=[];let _0x44002f=_0x4e0bd5,_0x41c6dd=_0x5e7703;for(let _0x3bdc16=0x0;_0x3bdc16<_0x3ecb8a[_0x569878(0x26a)];_0x3bdc16++){const _0xee5f4d=_0x44002f[_0x569878(0x1e3)]-_0x3ecb8a[_0x3bdc16];_0x279f64[_0x3bdc16]=_0x41c6dd[_0x569878(0x1e3)]-_0xee5f4d,_0x44002f=_0x44002f[_0x569878(0x1b0)](_0x3ecb8a[_0x3bdc16]),_0x41c6dd=_0x41c6dd[_0x569878(0x1b0)](_0x279f64[_0x3bdc16]);}const _0x30850e=_0x3c6494[_0x569878(0x220)][_0x569878(0x27a)](_0x3c6494[_0x569878(0x220)][_0x569878(0x25c)](_0x5e7703,_0x380359),_0x3c6494[_0x569878(0x220)][_0x569878(0x25c)](_0x5e7703,_0x279f64)),_0x46ca75=_0x5e7703[_0x569878(0x179)](0x0)[_0x569878(0x178)](_0x230da6),_0x32caf8=Array[_0x569878(0x1e9)](_0x3ded59[_0x569878(0x294)]())[_0x569878(0x1d6)](_0x3549b5=>_0x3549b5[_0x569878(0x178)](_0x230da6)==_0x46ca75)[_0x569878(0x187)](),_0x58496c=_0x30850e[_0x569878(0x194)][_0x569878(0x164)][_0x569878(0x232)](),_0x194d67=_0x30850e[_0x569878(0x1d3)][_0x569878(0x164)][_0x569878(0x232)]();_0x58496c[0x0]=_0x32caf8[0x0]+_0x58496c[0x0],_0x194d67[0x0]=_0x32caf8[0x0]+_0x194d67[0x0];let _0x41f700=_0x3c6494[_0x569878(0x220)][_0x569878(0x27a)](_0x3c6494[_0x569878(0x220)][_0x569878(0x25c)](_0x3c6494[_0x569878(0x220)][_0x569878(0x237)][_0x569878(0x217)](),_0x58496c),_0x3c6494[_0x569878(0x220)][_0x569878(0x25c)](_0x3c6494[_0x569878(0x220)][_0x569878(0x237)][_0x569878(0x217)](),_0x194d67));const _0x4a1f5e=_0x3c6494[_0x569878(0x220)][_0x569878(0x237)][_0x569878(0x290)][_0x569878(0x1a6)](_0x1c14b0[_0x569878(0x2a8)]);for(const _0xcdf7f8 of _0x4a1f5e)_0x41f700=_0xcfb78[_0x569878(0x1da)](_0x41f700[_0x569878(0x17b)](_0xcdf7f8));return{'range':_0x41f700,'currentIndex':_0x331d55};}[_0xf7bdc8(0x1aa)](_0x2e07dd){const _0x2443e0=_0xf7bdc8;if(!_0x2e07dd[_0x2443e0(0x24e)][_0x2443e0(0x196)](_0x2443e0(0x1ee)))return;const _0x5aa801=_0x2e07dd[_0x2443e0(0x2b0)][_0x2443e0(0x2bb)](_0x2443e0(0x2a3)),_0x3e0ea6=_0x2e07dd[_0x2443e0(0x2b0)][_0x2443e0(0x2bb)](_0x2443e0(0x265));this[_0x2443e0(0x2b3)](_0x5aa801,_0x2443e0(0x174),(_0x479db6,_0x3460d4,_0x4bee7d)=>{const _0x3267c4=_0x2443e0,_0x48b7cc=this[_0x3267c4(0x268)][_0x3267c4(0x2bb)](_0x3460d4);if(!_0x48b7cc)return;const _0x21a65d=this[_0x3267c4(0x22a)][_0x3267c4(0x24f)](_0x48b7cc[_0x3267c4(0x1f3)])[_0x3267c4(0x1c0)](_0x48b7cc[_0x3267c4(0x2ae)]);_0x48b7cc[_0x3267c4(0x195)][_0x3267c4(0x1d9)](_0x124ffb=>_0x21a65d[_0x3267c4(0x2cb)](_0x124ffb,_0x3267c4(0x1a1))),this[_0x3267c4(0x268)][_0x3267c4(0x1b4)](_0x3460d4),this[_0x3267c4(0x268)][_0x3267c4(0x2bf)](_0x4bee7d,_0x48b7cc);}),this[_0x2443e0(0x2b3)](_0x3e0ea6,_0x2443e0(0x174),(_0x3df2d8,_0xacc5d0,_0x485acd)=>{const _0x7274da=_0x2443e0,_0x35bff1=this[_0x7274da(0x268)][_0x7274da(0x2bb)](_0xacc5d0);if(!_0x35bff1)return;const _0x153fb6=this[_0x7274da(0x22a)][_0x7274da(0x24f)](_0x35bff1[_0x7274da(0x1f3)])[_0x7274da(0x1c0)](_0x35bff1[_0x7274da(0x2ae)]);_0x35bff1[_0x7274da(0x195)][_0x7274da(0x1d9)](_0x146fc1=>_0x153fb6[_0x7274da(0x2cb)](_0x146fc1,_0x7274da(0x229))),this[_0x7274da(0x268)][_0x7274da(0x1b4)](_0xacc5d0),this[_0x7274da(0x268)][_0x7274da(0x2bf)](_0x485acd,_0x35bff1);});}async[_0xf7bdc8(0x2a0)](_0x21cf33){const _0x494736=_0xf7bdc8;this[_0x494736(0x16c)][_0x494736(0x24e)][_0x494736(0x2bb)](_0x20014a)[_0x494736(0x18d)](),this[_0x494736(0x298)][_0x494736(0x1f0)](_0x494736(0x240)),this[_0x494736(0x298)][_0x494736(0x1db)](!0x0),await this[_0x494736(0x272)]();try{await this[_0x494736(0x282)][_0x494736(0x1cd)](_0x21cf33)[_0x494736(0x2aa)](),await this[_0x494736(0x253)](_0x21cf33),this[_0x494736(0x27f)]('\x20');const {sessionId:_0x7be23}=this[_0x494736(0x2c9)][_0x494736(0x280)]();await this[_0x494736(0x22a)][_0x494736(0x1f1)](_0x21cf33,_0x7be23),this[_0x494736(0x22a)][_0x494736(0x20d)]()&&this[_0x494736(0x22a)][_0x494736(0x205)](_0x5f46ca(this[_0x494736(0x16c)][_0x494736(0x1f8)],_0x494736(0x2b2)));}catch(_0x2a59e9){this[_0x494736(0x298)][_0x494736(0x1b5)]({'errorMessage':_0x5f46ca(this[_0x494736(0x16c)][_0x494736(0x1f8)],_0x494736(0x19f)),'id':_0x21cf33}),this[_0x494736(0x25a)](new _0x217c5a(_0x494736(0x29d),this,{'error':_0x2a59e9}));}finally{this[_0x494736(0x16c)][_0x494736(0x24e)][_0x494736(0x2bb)](_0x4f4427)[_0x494736(0x213)][_0x494736(0x22b)](_0x494736(0x222)),this[_0x494736(0x298)][_0x494736(0x228)](),this[_0x494736(0x298)][_0x494736(0x1f0)](_0x494736(0x231)),this[_0x494736(0x298)][_0x494736(0x1db)](!0x1);}}[_0xf7bdc8(0x20c)](_0x4a7394){const _0x4d8951=_0xf7bdc8;this[_0x4d8951(0x22a)]['id']===_0x4a7394&&this[_0x4d8951(0x253)]();}async[_0xf7bdc8(0x219)](){const _0x5b7932=_0xf7bdc8,_0x90b566=this[_0x5b7932(0x2c9)][_0x5b7932(0x239)]();this[_0x5b7932(0x22a)]?.[_0x5b7932(0x170)](_0x90b566),this[_0x5b7932(0x22a)]?.[_0x5b7932(0x205)](_0x5f46ca(this[_0x5b7932(0x16c)][_0x5b7932(0x1f8)],_0x5b7932(0x2b2)));}[_0xf7bdc8(0x2c4)](){const _0x26c05a=_0xf7bdc8;this[_0x26c05a(0x22a)]?.[_0x26c05a(0x23c)]();}[_0xf7bdc8(0x1fe)](){const _0x4e2334=_0xf7bdc8;this[_0x4e2334(0x298)][_0x4e2334(0x1fe)]();}async[_0xf7bdc8(0x176)](){const _0x547058=_0xf7bdc8;await this[_0x547058(0x253)]();}async[_0xf7bdc8(0x2af)]({message:_0xec70f9,quickActionData:_0x3f4ac9}){const _0x817bd6=_0xf7bdc8;await this[_0x817bd6(0x25d)]({'userMessage':_0xec70f9,'quickActionData':_0x3f4ac9});}[_0xf7bdc8(0x214)](){const _0x4e18c3=_0xf7bdc8,_0xaa3607=this[_0x4e18c3(0x16c)][_0x4e18c3(0x25b)][_0x4e18c3(0x2bb)](_0x4e18c3(0x2ca));if(!_0xaa3607)throw new _0x217c5a(_0x4e18c3(0x241),this);return _0xaa3607;}async[_0xf7bdc8(0x253)](_0xa73a55){const _0x4b9de8=_0xf7bdc8;try{this[_0x4b9de8(0x298)][_0x4b9de8(0x1cb)](),await this[_0x4b9de8(0x197)](_0xa73a55);}catch(_0x354a23){this[_0x4b9de8(0x298)][_0x4b9de8(0x1b5)]({'errorMessage':_0x5f46ca(this[_0x4b9de8(0x16c)][_0x4b9de8(0x1f8)],_0x4b9de8(0x23b)),'id':_0xa73a55||_0x532b26()}),console[_0x4b9de8(0x2ba)](_0x354a23),this[_0x4b9de8(0x22a)]=void 0x0,this[_0x4b9de8(0x298)][_0x4b9de8(0x271)]();}}async[_0xf7bdc8(0x197)](_0x5ddf43){const _0x1923d8=_0xf7bdc8,_0x51c89b=this[_0x1923d8(0x16c)][_0x1923d8(0x24e)][_0x1923d8(0x2bb)](_0x20014a);let _0x216f5e;_0x51c89b[_0x1923d8(0x1f7)]&&_0x51c89b[_0x1923d8(0x18d)](),_0x5ddf43||!this[_0x1923d8(0x22a)]?_0x216f5e=this[_0x1923d8(0x16c)][_0x1923d8(0x25b)][_0x1923d8(0x2bb)](_0x1923d8(0x201)):this[_0x1923d8(0x298)][_0x1923d8(0x2b9)]&&(_0x216f5e=this[_0x1923d8(0x22a)][_0x1923d8(0x1bc)]['id']),await this[_0x1923d8(0x272)]();const _0x575cae=this[_0x1923d8(0x214)](),_0x157ced=_0x5ddf43||_0x532b26();this[_0x1923d8(0x22a)]=new _0x208493({'connector':this[_0x1923d8(0x282)],'chatModels':this[_0x1923d8(0x270)],'selectedModelId':_0x216f5e,'conversationId':_0x157ced,'group':_0x575cae,'getEditor':()=>_0x554683(this[_0x1923d8(0x16c)])}),this[_0x1923d8(0x22a)]['on'](_0x1923d8(0x1af),(_0x1f5c86,_0x350bed)=>{const _0x4ff60c=_0x1923d8;this[_0x4ff60c(0x298)][_0x4ff60c(0x28c)](_0x350bed),this[_0x4ff60c(0x298)][_0x4ff60c(0x1c8)](),this[_0x4ff60c(0x298)][_0x4ff60c(0x248)](),this[_0x4ff60c(0x298)][_0x4ff60c(0x278)](),_0x5ddf43||(this[_0x4ff60c(0x298)][_0x4ff60c(0x1fa)](),this[_0x4ff60c(0x22a)]?.[_0x4ff60c(0x205)](_0x5f46ca(this[_0x4ff60c(0x16c)][_0x4ff60c(0x1f8)],_0x4ff60c(0x2b2))));}),this[_0x1923d8(0x22a)]['on'](_0x1923d8(0x254),(_0x84b101,_0x53aebb)=>{const _0x1f2a9f=_0x1923d8;this[_0x1f2a9f(0x298)][_0x1f2a9f(0x2b6)](_0x53aebb[_0x1f2a9f(0x266)]);}),this[_0x1923d8(0x22a)]['on'](_0x1923d8(0x166),(_0x2b04f7,_0x9f9436)=>{const _0x37a09b=_0x1923d8;this[_0x37a09b(0x298)][_0x37a09b(0x1b9)](_0x9f9436);}),this[_0x1923d8(0x22a)]['on'](_0x1923d8(0x167),()=>{const _0x18f348=_0x1923d8;this[_0x18f348(0x298)][_0x18f348(0x200)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x1923d8(0x22a)]['on'](_0x1923d8(0x1fc),()=>{const _0x1b3c39=_0x1923d8;this[_0x1b3c39(0x298)][_0x1b3c39(0x200)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x1923d8(0x22a)]['on'](_0x1923d8(0x1c1),(_0xb892e2,_0x6fa17d)=>{const _0x20c793=_0x1923d8;this[_0x20c793(0x298)][_0x20c793(0x190)](_0x6fa17d,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x1923d8(0x22a)]['on'](_0x1923d8(0x2c3),(_0xfc980b,_0x42a3be)=>{const _0x6f4b46=_0x1923d8;this[_0x6f4b46(0x298)][_0x6f4b46(0x190)](_0x42a3be,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x1923d8(0x22a)]['on'](_0x1923d8(0x16a),()=>{const _0x49b8af=_0x1923d8;this[_0x49b8af(0x298)][_0x49b8af(0x1f5)]();}),this[_0x1923d8(0x22a)]['on'](_0x1923d8(0x209),async()=>{const _0x139d10=_0x1923d8;await this[_0x139d10(0x298)][_0x139d10(0x269)]();}),this[_0x1923d8(0x22a)]['on'](_0x1923d8(0x2ac),(_0x1dfc29,_0x2d0f94)=>{const _0x20e0e4=_0x1923d8;this[_0x20e0e4(0x298)][_0x20e0e4(0x296)](_0x2d0f94['id']);}),this[_0x1923d8(0x22a)]['on'](_0x1923d8(0x2c6),(_0x56216c,_0x342504,_0x5d0c53)=>{const _0x2ab97d=_0x1923d8;this[_0x2ab97d(0x27f)](_0x342504,_0x5d0c53);}),this[_0x1923d8(0x22a)]['on'](_0x1923d8(0x281),(_0x69d1ae,_0x23787c)=>{const _0x1cd884=_0x1923d8;_0x1cd884(0x2c8)===_0x23787c[_0x1cd884(0x180)]?this[_0x1cd884(0x298)][_0x1cd884(0x299)](_0x23787c):this[_0x1cd884(0x298)][_0x1cd884(0x1c3)](_0x23787c);}),this[_0x1923d8(0x22a)]['on'](_0x1923d8(0x264),async(_0x2ef82d,_0x153da3)=>{const _0x1ec96e=_0x1923d8;await this[_0x1ec96e(0x2b5)]({'reply':_0x153da3});}),this[_0x1923d8(0x22a)]['on'](_0x1923d8(0x189),(_0x55bb5d,{reply:_0x4c3e9f,index:_0x25f1a9,state:_0x197658})=>{const _0x2c3b0f=_0x1923d8;this[_0x2c3b0f(0x298)][_0x2c3b0f(0x26f)]({'id':_0x4c3e9f['id'],'index':_0x25f1a9,'state':_0x197658});}),this[_0x1923d8(0x22a)]['on'](_0x1923d8(0x29b),(_0x1423eb,_0x11e537)=>{const _0x415cca=_0x1923d8;if(this[_0x415cca(0x298)][_0x415cca(0x287)](_0x11e537[_0x415cca(0x242)],_0x11e537[_0x415cca(0x1d7)]),_0x415cca(0x215)===_0x11e537[_0x415cca(0x242)][_0x415cca(0x180)]){const _0x29956b=[..._0x554683(this[_0x415cca(0x16c)])[_0x415cca(0x220)][_0x415cca(0x237)][_0x415cca(0x215)][_0x415cca(0x238)]()];this[_0x415cca(0x2c9)][_0x415cca(0x15f)](_0x29956b,_0x415cca(0x25f)+this[_0x415cca(0x22a)]?.['id']);}}),this[_0x1923d8(0x22a)]['on'](_0x1923d8(0x16e),(_0x2bb317,_0x4863d1)=>{const _0x353e9c=_0x1923d8;this[_0x353e9c(0x298)][_0x353e9c(0x244)](_0x4863d1[_0x353e9c(0x29a)]),_0x353e9c(0x28d)==_0x4863d1[_0x353e9c(0x29a)]&&this[_0x353e9c(0x2c4)](),_0x353e9c(0x215)===_0x4863d1[_0x353e9c(0x180)]&&this[_0x353e9c(0x2c9)][_0x353e9c(0x1ed)](_0x353e9c(0x25f)+this[_0x353e9c(0x22a)]?.['id']);}),this[_0x1923d8(0x22a)]['on'](_0x1923d8(0x212),(_0x1795c2,_0x380a2a)=>{const _0x462daa=_0x1923d8;this[_0x462daa(0x298)][_0x462daa(0x260)](_0x380a2a[_0x462daa(0x242)][_0x462daa(0x29a)],_0x380a2a[_0x462daa(0x1d7)]);}),this[_0x1923d8(0x22a)]['on'](_0x1923d8(0x1c6),(_0x534ffa,_0x30d29d)=>{const _0x336a66=_0x1923d8;this[_0x336a66(0x298)][_0x336a66(0x255)](_0x30d29d[_0x336a66(0x2b7)]);}),this[_0x1923d8(0x22a)]['on'](_0x1923d8(0x1b3),(_0x5d18d8,_0x5cb41a)=>{const _0x9ec1a8=_0x1923d8;this[_0x9ec1a8(0x298)][_0x9ec1a8(0x1c5)](_0x5cb41a[_0x9ec1a8(0x1c2)]);}),this[_0x1923d8(0x22a)]['on'](_0x1923d8(0x258),(_0x692211,_0x3f2a13)=>{const _0x5a9bc9=_0x1923d8;this[_0x5a9bc9(0x298)][_0x5a9bc9(0x22c)](_0x3f2a13[_0x5a9bc9(0x223)],_0x3f2a13[_0x5a9bc9(0x234)],_0x3f2a13[_0x5a9bc9(0x274)],_0x3f2a13[_0x5a9bc9(0x1ea)]);}),this[_0x1923d8(0x22a)]['on'](_0x1923d8(0x2a6),(_0x48c5ed,_0x3a0668)=>{const _0x410db9=_0x1923d8;this[_0x410db9(0x298)][_0x410db9(0x26e)](_0x3a0668[_0x410db9(0x223)],_0x3a0668[_0x410db9(0x1ad)],_0x3a0668[_0x410db9(0x17a)]);}),this[_0x1923d8(0x22a)]['on'](_0x1923d8(0x2c1),(_0x7c6df4,_0x3e4498)=>{const _0x59259e=_0x1923d8;this[_0x59259e(0x298)][_0x59259e(0x245)](_0x3e4498);}),this[_0x1923d8(0x22a)]['on'](_0x1923d8(0x199),(_0x1dcc04,_0xffc481)=>{const _0xa45c2b=_0x1923d8;this[_0xa45c2b(0x298)][_0xa45c2b(0x285)](_0xffc481[_0xa45c2b(0x1bc)],_0xffc481[_0xa45c2b(0x2a1)]);}),this[_0x1923d8(0x22a)]['on'](_0x1923d8(0x2ba),(_0x13e5a4,{error:_0x2106e1,interactionId:_0x14bef7,fileName:_0x391b26,url:_0x3f424a,sourceId:_0x3c1e83,sourceLabel:_0x54726e})=>{const _0x212771=_0x1923d8,_0x3e313a=_0x14bef7?_0x14bef7+':'+_0x532b26():_0x532b26();_0x2106e1[_0x212771(0x261)][_0x212771(0x252)](_0x212771(0x243))?this[_0x212771(0x298)][_0x212771(0x2a7)]({'staticMessage':_0x5f46ca(this[_0x212771(0x16c)][_0x212771(0x1f8)],_0x212771(0x21e)),'id':_0x3e313a}):_0x2106e1[_0x212771(0x261)][_0x212771(0x252)](_0x212771(0x1e7))||_0x2106e1[_0x212771(0x261)][_0x212771(0x252)](_0x212771(0x168))?(this[_0x212771(0x298)][_0x212771(0x1b5)]({'errorMessage':_0x5f46ca(this[_0x212771(0x16c)][_0x212771(0x1f8)],_0x212771(0x23b)),'id':_0x3e313a}),this[_0x212771(0x25a)](_0x2106e1)):_0x2106e1[_0x212771(0x261)][_0x212771(0x252)](_0x212771(0x1bb))?this[_0x212771(0x298)][_0x212771(0x1b5)]({'errorMessage':_0x5f46ca(this[_0x212771(0x16c)][_0x212771(0x1f8)],_0x212771(0x1e5),_0x391b26),'id':_0x3e313a}):_0x2106e1[_0x212771(0x261)][_0x212771(0x252)](_0x212771(0x1a2))?this[_0x212771(0x298)][_0x212771(0x1b5)]({'errorMessage':_0x5f46ca(this[_0x212771(0x16c)][_0x212771(0x1f8)],_0x212771(0x297),_0x3f424a),'id':_0x3e313a}):_0x2106e1[_0x212771(0x261)][_0x212771(0x252)](_0x212771(0x1bd))?this[_0x212771(0x298)][_0x212771(0x1b5)]({'errorMessage':_0x5f46ca(this[_0x212771(0x16c)][_0x212771(0x1f8)],_0x212771(0x24d)),'id':_0x3e313a}):_0x2106e1[_0x212771(0x261)][_0x212771(0x252)](_0x212771(0x2a9))?this[_0x212771(0x298)][_0x212771(0x1b5)]({'errorMessage':_0x5f46ca(this[_0x212771(0x16c)][_0x212771(0x1f8)],_0x212771(0x1dc)),'id':_0x3e313a}):_0x2106e1[_0x212771(0x261)][_0x212771(0x252)](_0x212771(0x275))?(_0x3c1e83&&this[_0x212771(0x298)][_0x212771(0x163)](_0x3c1e83),this[_0x212771(0x298)][_0x212771(0x1b5)]({'errorMessage':_0x5f46ca(this[_0x212771(0x16c)][_0x212771(0x1f8)],_0x212771(0x1ab),_0x54726e||_0x212771(0x234)),'id':_0x3e313a}),this[_0x212771(0x25a)](_0x2106e1)):_0x2106e1[_0x212771(0x261)][_0x212771(0x252)](_0x212771(0x18a))?(this[_0x212771(0x298)][_0x212771(0x1b5)]({'errorMessage':_0x5f46ca(this[_0x212771(0x16c)][_0x212771(0x1f8)],_0x212771(0x181)),'id':_0x3e313a}),this[_0x212771(0x25a)](_0x2106e1)):_0x2106e1[_0x212771(0x261)][_0x212771(0x252)](_0x212771(0x161))?(this[_0x212771(0x298)][_0x212771(0x1b5)]({'errorMessage':_0x5f46ca(this[_0x212771(0x16c)][_0x212771(0x1f8)],_0x212771(0x186)),'id':_0x3e313a}),this[_0x212771(0x25a)](_0x2106e1)):_0x2106e1[_0x212771(0x261)][_0x212771(0x252)](_0x212771(0x2c7))?(this[_0x212771(0x298)][_0x212771(0x1b5)]({'errorMessage':_0x5f46ca(this[_0x212771(0x16c)][_0x212771(0x1f8)],_0x212771(0x1c7)),'id':_0x3e313a}),this[_0x212771(0x25a)](_0x2106e1)):_0x2106e1[_0x212771(0x261)][_0x212771(0x252)](_0x212771(0x20f))?(this[_0x212771(0x298)][_0x212771(0x1b5)]({'errorMessage':_0x5f46ca(this[_0x212771(0x16c)][_0x212771(0x1f8)],_0x212771(0x221)),'id':_0x3e313a}),this[_0x212771(0x25a)](_0x2106e1)):_0x2106e1[_0x212771(0x261)][_0x212771(0x252)](_0x212771(0x1e1))?(this[_0x212771(0x298)][_0x212771(0x1b5)]({'errorMessage':_0x5f46ca(this[_0x212771(0x16c)][_0x212771(0x1f8)],_0x212771(0x27c)),'id':_0x3e313a}),this[_0x212771(0x25a)](_0x2106e1)):_0x2106e1[_0x212771(0x261)][_0x212771(0x252)](_0x212771(0x26c))?(this[_0x212771(0x298)][_0x212771(0x1b5)]({'errorMessage':_0x5f46ca(this[_0x212771(0x16c)][_0x212771(0x1f8)],_0x212771(0x2ab)),'id':_0x3e313a}),this[_0x212771(0x25a)](_0x2106e1)):(this[_0x212771(0x298)][_0x212771(0x1b5)]({'errorMessage':_0x5f46ca(this[_0x212771(0x16c)][_0x212771(0x1f8)],_0x212771(0x20b)),'id':_0x3e313a}),this[_0x212771(0x25a)](_0x2106e1));}),await this[_0x1923d8(0x22a)][_0x1923d8(0x160)](this[_0x1923d8(0x16c)][_0x1923d8(0x25b)][_0x1923d8(0x2bb)](_0x1923d8(0x1a3))),_0x5ddf43||await this[_0x1923d8(0x22a)][_0x1923d8(0x194)]();}async[_0xf7bdc8(0x25d)]({userMessage:_0x433f4b,quickActionData:_0x4802a0}){const _0x5386b3=_0xf7bdc8;if(!this[_0x5386b3(0x22a)])throw new _0x217c5a(_0x5386b3(0x169));this[_0x5386b3(0x22a)][_0x5386b3(0x19b)]()&&await this[_0x5386b3(0x22a)][_0x5386b3(0x29f)](this[_0x5386b3(0x2c9)][_0x5386b3(0x280)]()),this[_0x5386b3(0x22a)]['id']&&this[_0x5386b3(0x22a)][_0x5386b3(0x286)]&&await this[_0x5386b3(0x22a)][_0x5386b3(0x1f6)]({'userMessage':_0x433f4b,'quickActionData':_0x4802a0}),this[_0x5386b3(0x19d)]();}[_0xf7bdc8(0x19d)](){const _0x17c60d=_0xf7bdc8,_0x59e18f=_0x554683(this[_0x17c60d(0x16c)])[_0x17c60d(0x220)],_0xa20e78=Array[_0x17c60d(0x1e9)](_0x59e18f[_0x17c60d(0x22d)][_0x17c60d(0x2b4)](_0x3ca273));_0x59e18f[_0x17c60d(0x2a5)](_0x557952=>{const _0x3e6c6c=_0x17c60d;_0xa20e78[_0x3e6c6c(0x1d9)](_0x543eb3=>_0x557952[_0x3e6c6c(0x1eb)](_0x543eb3));});}[_0xf7bdc8(0x1ac)](){const _0x57458f=_0xf7bdc8;console[_0x57458f(0x1df)](_0x57458f(0x18e));}[_0xf7bdc8(0x247)](_0x119608){const _0xd97bfc=_0xf7bdc8;this[_0xd97bfc(0x298)][_0xd97bfc(0x23d)](_0x119608);}[_0xf7bdc8(0x25a)](_0x27b2cf){const _0x1203ca=_0xf7bdc8;_0x39c475(_0x27b2cf[_0x1203ca(0x261)]);}[_0xf7bdc8(0x1a9)](_0x42ba26){const _0x112d60=_0xf7bdc8;this[_0x112d60(0x22a)]?.[_0x112d60(0x2cc)](_0x42ba26);}[_0xf7bdc8(0x29c)](){const _0x2f1f3e=_0xf7bdc8;this[_0x2f1f3e(0x22a)]?.[_0x2f1f3e(0x27e)]();}[_0xf7bdc8(0x2a4)](){const _0x3da564=_0xf7bdc8;this[_0x3da564(0x22a)]?.[_0x3da564(0x1ba)]();}[_0xf7bdc8(0x162)](_0x2d404d){const _0x51d411=_0xf7bdc8,[_0x1eed6,_0x519ace]=_0x2d404d[_0x51d411(0x1a5)](':'),_0x4ec000=this[_0x51d411(0x22a)][_0x51d411(0x24f)](_0x1eed6),_0x9dbae0=_0x4ec000[_0x51d411(0x1c0)](_0x519ace);return{'interaction':_0x4ec000,'reply':_0x9dbae0};}[_0xf7bdc8(0x1b6)](_0x57a4a0,_0x4ba381=!0x1){const _0x2c5974=_0xf7bdc8,_0x3475c8=_0x554683(this[_0x2c5974(0x16c)]),_0xcefb14={'target':_0x3475c8[_0x2c5974(0x165)][_0x2c5974(0x213)][_0x2c5974(0x1b2)][_0x2c5974(0x235)](_0x3475c8[_0x2c5974(0x165)][_0x2c5974(0x188)][_0x2c5974(0x292)](_0x57a4a0)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x4ba381};_0x4ba381&&(_0xcefb14[_0x2c5974(0x257)]=!0x0),_0x145ff8(_0xcefb14);}[_0xf7bdc8(0x27f)](_0x55b0fa,_0x42df8b=!0x1){const _0x56fc10=_0xf7bdc8;this[_0x56fc10(0x298)][_0x56fc10(0x2c6)](_0x55b0fa||_0x5f46ca(this[_0x56fc10(0x16c)][_0x56fc10(0x1f8)],_0x56fc10(0x1cc)),_0x42df8b);}async[_0xf7bdc8(0x2b5)]({reply:_0x1a80b3,renderingStrategy:_0x4e1417}){const _0x5b28c4=_0xf7bdc8,{id:_0x5a0409,isDone:_0x5f3e83,type:_0x5e9a75,parsedContent:_0x1cf02b}=_0x1a80b3;if(_0x5b28c4(0x295)===_0x5e9a75){const _0x1c75ca=_0x1a80b3[_0x5b28c4(0x28b)]({'showDiff':this[_0x5b28c4(0x298)][_0x5b28c4(0x1f4)]});await this[_0x5b28c4(0x298)][_0x5b28c4(0x1d0)]({'id':_0x5a0409,'parts':_0x1c75ca,'renderingStrategy':_0x4e1417,'isDone':_0x5f3e83});}else _0x5b28c4(0x2c8)===_0x5e9a75&&await this[_0x5b28c4(0x298)][_0x5b28c4(0x1bf)]({'id':_0x5a0409,'parsedContent':_0x1cf02b,'renderingStrategy':_0x4e1417,'isDone':_0x5f3e83});_0x5f3e83&&_0x1a80b3[_0x5b28c4(0x1dd)][_0x5b28c4(0x26a)]>0x0&&this[_0x5b28c4(0x298)][_0x5b28c4(0x1d1)](_0x5a0409,_0x1a80b3[_0x5b28c4(0x1dd)]);}async[_0xf7bdc8(0x272)](){const _0x11ef7a=_0xf7bdc8,_0x59bc81=this[_0x11ef7a(0x22a)]?.[_0x11ef7a(0x24b)];_0x59bc81&&(_0x59bc81[_0x11ef7a(0x20a)](),this[_0x11ef7a(0x298)][_0x11ef7a(0x1ca)](_0x59bc81));}async[_0xf7bdc8(0x2c2)](){const _0xdb9e4a=_0xf7bdc8,_0x367ec0=this[_0xdb9e4a(0x22a)]?.[_0xdb9e4a(0x24b)];if(_0x367ec0){for await(const _0x123b93 of _0x367ec0[_0xdb9e4a(0x21f)])await this[_0xdb9e4a(0x2b5)]({'reply':_0x123b93,'renderingStrategy':_0xdb9e4a(0x240)});}}[_0xf7bdc8(0x24a)](_0x156fdc){const _0x4a74d2=_0xf7bdc8,_0x559feb={'positiveCount':_0x156fdc[_0x4a74d2(0x1d2)][_0x4a74d2(0x226)](_0x4d90d2=>_0x4a74d2(0x229)===_0x4d90d2[_0x4a74d2(0x1c4)])[_0x4a74d2(0x26a)],'totalCount':_0x156fdc[_0x4a74d2(0x1d2)][_0x4a74d2(0x26a)],'modificationId':_0x156fdc['id']},_0x53dba3=this[_0x4a74d2(0x22a)][_0x4a74d2(0x24f)](_0x156fdc[_0x4a74d2(0x1f3)])[_0x4a74d2(0x2c0)];this[_0x4a74d2(0x282)][_0x4a74d2(0x21d)](this[_0x4a74d2(0x22a)]['id'],_0x53dba3,_0x559feb);}}
|
|
23
|
+
const _0x32f9e9=_0x1a1c;(function(_0x403cfb,_0x5842ec){const _0x505420=_0x1a1c,_0x55b1fb=_0x403cfb();while(!![]){try{const _0x2c9135=-parseInt(_0x505420(0x10e))/0x1*(-parseInt(_0x505420(0xb7))/0x2)+-parseInt(_0x505420(0x124))/0x3*(parseInt(_0x505420(0x192))/0x4)+parseInt(_0x505420(0xe5))/0x5*(-parseInt(_0x505420(0xd1))/0x6)+parseInt(_0x505420(0x12b))/0x7*(parseInt(_0x505420(0x152))/0x8)+-parseInt(_0x505420(0x1d0))/0x9+-parseInt(_0x505420(0x133))/0xa*(parseInt(_0x505420(0xb2))/0xb)+parseInt(_0x505420(0xbd))/0xc;if(_0x2c9135===_0x5842ec)break;else _0x55b1fb['push'](_0x55b1fb['shift']());}catch(_0x2d569b){_0x55b1fb['push'](_0x55b1fb['shift']());}}}(_0x434b,0x9c37a));import{ContextPlugin as _0x160e9f,Editor as _0x5c9320}from'ckeditor5/src/core.js';import{CKEditorError as _0x4f662e,logError as _0x402656,scrollViewportToShowTarget as _0x4d71d9,uid as _0x53bca2}from'ckeditor5/src/utils.js';import{AIConnector as _0x4da528}from'../aicore/aiconnector.js';import{AITabs as _0x18e5e0}from'../aitabs/aitabs.js';function _0x1a1c(_0x23520a,_0x255263){const _0x434b30=_0x434b();return _0x1a1c=function(_0x1a1ce4,_0xdeee1a){_0x1a1ce4=_0x1a1ce4-0x95;let _0x4cbaf6=_0x434b30[_0x1a1ce4];return _0x4cbaf6;},_0x1a1c(_0x23520a,_0x255263);}import{AIChatConversation as _0x3dfc61}from'./model/aichatconversation.js';import{getTranslation as _0x293a47}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x4452cb}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x54810b}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x373b10}from'./model/aichatmodels.js';import{getEditorFromContext as _0x2fb4d2}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x45a94c,DATA_ID_MODEL_ATTRIBUTE as _0x1de6ee}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x96fa53,getOperationsFromReply as _0x35d81a}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x2d8db0,getMinimalSelection as _0x3c6251}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0xa4175c,_DetachOperation as _0x5a552b}from'ckeditor5/src/engine.js';import{findOne as _0x2682e8,getAttribute as _0x582ccb,serialize as _0x4229f4,Document as _0x30b153,findByAttribute as _0x1082e2}from'../aicore/utils/htmlparser.js';import{IconAI as _0x230613}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x30c4c1}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x22f8df}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x160e9f{[_0x32f9e9(0x1b9)];[_0x32f9e9(0x1c2)];[_0x32f9e9(0xb6)];[_0x32f9e9(0xdd)];[_0x32f9e9(0x117)]=new Map();[_0x32f9e9(0x179)]=null;[_0x32f9e9(0x112)]=!0x1;static get[_0x32f9e9(0x17c)](){return[_0x4da528,_0x22f8df,_0x45a94c];}static get[_0x32f9e9(0xdc)](){const _0x3e5d26=_0x32f9e9;return _0x3e5d26(0x1c6);}static get[_0x32f9e9(0xf6)](){return!0x0;}static get[_0x32f9e9(0xcf)](){return!0x0;}[_0x32f9e9(0x1ff)](){const _0x5ed0cc=_0x32f9e9;this[_0x5ed0cc(0x1c2)]=this[_0x5ed0cc(0x11a)][_0x5ed0cc(0x167)][_0x5ed0cc(0x190)](_0x5ed0cc(0xb0)),this[_0x5ed0cc(0xb6)]=this[_0x5ed0cc(0x11a)][_0x5ed0cc(0x167)][_0x5ed0cc(0x190)](_0x5ed0cc(0x12d)),this[_0x5ed0cc(0x1b9)]=this[_0x5ed0cc(0x11a)][_0x5ed0cc(0x167)][_0x5ed0cc(0x190)](_0x5ed0cc(0x19a)),this[_0x5ed0cc(0xdd)]=new _0x373b10({'connector':this[_0x5ed0cc(0x1c2)],'availableModels':this[_0x5ed0cc(0x11a)][_0x5ed0cc(0x156)][_0x5ed0cc(0x190)](_0x5ed0cc(0x123)),'defaultModelId':this[_0x5ed0cc(0x11a)][_0x5ed0cc(0x156)][_0x5ed0cc(0x190)](_0x5ed0cc(0xa0))});const _0x1c1316=this[_0x5ed0cc(0x11a)][_0x5ed0cc(0x167)][_0x5ed0cc(0x190)](_0x5ed0cc(0x1a3));this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x15a),()=>{const _0x12530a=_0x5ed0cc;this[_0x12530a(0x149)]();}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x139),(_0x5df8d3,_0x44282e)=>{const _0x52edf7=_0x5ed0cc;this[_0x52edf7(0x1b4)]({'userMessage':_0x44282e});}),this[_0x5ed0cc(0x1b8)](_0x1c1316,_0x5ed0cc(0xa1),(_0xea4b7d,_0x4506bd)=>{const _0x33f2a1=_0x5ed0cc;this[_0x33f2a1(0x108)](_0x4506bd);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x1a1),()=>{const _0x3d4817=_0x5ed0cc;_0x1c1316[_0x3d4817(0x103)]();}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x1fb),async()=>{const _0x2959cb=_0x5ed0cc;await this[_0x2959cb(0xfb)](),await this[_0x2959cb(0xa9)](),this[_0x2959cb(0x155)]();}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0xa6),()=>{const _0x478ff9=_0x5ed0cc;this[_0x478ff9(0x1bf)]?.[_0x478ff9(0x1f8)](_0x293a47(this[_0x478ff9(0x11a)][_0x478ff9(0xf9)],_0x478ff9(0x107)));}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x12f),(_0x1db14f,_0x9dbc4)=>{const _0x2145f6=_0x5ed0cc;this[_0x2145f6(0x1bf)]?.[_0x2145f6(0xc8)](Array[_0x2145f6(0x18a)](_0x9dbc4));}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x170),(_0x4938c9,_0x1c3c24)=>{const _0x5ecda5=_0x5ed0cc;this[_0x5ecda5(0x1bf)]?.[_0x5ecda5(0x170)](_0x1c3c24);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x127),(_0x11f501,_0x9fd166)=>{const _0x2a2592=_0x5ed0cc;this[_0x2a2592(0x1bf)]?.[_0x2a2592(0x127)](_0x9fd166[_0x2a2592(0x119)],_0x9fd166[_0x2a2592(0xc1)]);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x95),(_0x406fae,_0xfe2e96)=>{const _0x27d782=_0x5ed0cc;this[_0x27d782(0xde)](_0xfe2e96);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x1b0),(_0x5e7e9d,_0x5442d9)=>{const _0x358a4a=_0x5ed0cc;this[_0x358a4a(0x1bf)]?.[_0x358a4a(0x1b0)](_0x5442d9[_0x358a4a(0x15d)],_0x5442d9[_0x358a4a(0xec)],_0x5442d9[_0x358a4a(0x1f1)]);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0xe8),()=>{const _0x830bf2=_0x5ed0cc;this[_0x830bf2(0x172)]();}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x13f),()=>{const _0x49cabe=_0x5ed0cc;this[_0x49cabe(0x194)]();}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x199),(_0x1fefff,_0x40025a)=>{const _0x5b6a23=_0x5ed0cc;this[_0x5b6a23(0x1bf)]?.[_0x5b6a23(0xc0)](_0x40025a);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0xe0),(_0x5237fc,{replyId:_0x45ef48})=>{const _0xe1cc1f=_0x5ed0cc;console[_0xe1cc1f(0x171)](_0xe1cc1f(0xd7),_0x45ef48);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x9b),(_0x305241,{replyId:_0x24b007})=>{const _0x158926=_0x5ed0cc;console[_0x158926(0x171)](_0x158926(0xbf),_0x24b007);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x1d2),(_0x4f7822,_0x53fa9c)=>{const _0x4a5053=_0x5ed0cc;this[_0x4a5053(0x11a)][_0x4a5053(0x167)][_0x4a5053(0x190)](_0x22f8df)[_0x4a5053(0x1ae)](),this[_0x4a5053(0x148)](_0x53fa9c);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x145),(_0x164307,{replyId:_0x631187,partIndex:_0x1f1965})=>{const _0x1895e7=_0x5ed0cc;this[_0x1895e7(0x112)]=this[_0x1895e7(0xb6)][_0x1895e7(0x189)],this[_0x1895e7(0x110)](_0x631187,_0x1f1965);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0xa5),(_0x472c00,{replyId:_0x228133,partIndex:_0x583b7b})=>{const _0x54f4c3=_0x5ed0cc,_0x579dfe=this[_0x54f4c3(0x1ea)](_0x228133,_0x583b7b);_0x579dfe&&_0x54f4c3(0xb5)!=_0x579dfe[_0x54f4c3(0x128)][_0x54f4c3(0x1ab)][_0x54f4c3(0x1d7)]&&this[_0x54f4c3(0x1b9)][_0x54f4c3(0x1d1)]([_0x579dfe[_0x54f4c3(0x128)]],_0x54f4c3(0xd2));}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0xa4),()=>{const _0x4b6eaa=_0x5ed0cc;this[_0x4b6eaa(0x1b9)][_0x4b6eaa(0x144)](_0x4b6eaa(0xd2));}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x147),(_0x25572d,_0x146a18)=>{const _0x526c81=_0x5ed0cc;this[_0x526c81(0x11a)][_0x526c81(0x167)][_0x526c81(0x190)](_0x22f8df)[_0x526c81(0x1ae)](),this[_0x526c81(0x1e2)](_0x146a18);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x9c),async(_0x2a8a33,{replyId:_0xf613f4,showDiff:_0x402253})=>{const _0x21ed25=_0x5ed0cc,{reply:_0x183b5a}=this[_0x21ed25(0x9f)](_0xf613f4),_0x2f80f0=_0x183b5a[_0x21ed25(0x104)]({'showDiff':_0x402253});await this[_0x21ed25(0xb6)][_0x21ed25(0x1c8)]({'id':_0x183b5a['id'],'parts':_0x2f80f0,'renderingStrategy':_0x21ed25(0xbb)});}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0xe6),(_0x2e544d,{replyId:_0x16643d,partIndex:_0x475b79})=>{const _0x2fd448=_0x5ed0cc;this[_0x2fd448(0x179)]?.[_0x2fd448(0xdf)]==_0x16643d&&this[_0x2fd448(0x179)]?.[_0x2fd448(0x19e)]==_0x475b79&&this[_0x2fd448(0x11a)][_0x2fd448(0x167)][_0x2fd448(0x190)](_0x22f8df)[_0x2fd448(0x1ae)]();const {reply:_0x46a2b1}=this[_0x2fd448(0x9f)](_0x16643d);_0x46a2b1[_0x2fd448(0x14d)](_0x475b79,_0x2fd448(0x15f)),this[_0x2fd448(0x1b9)][_0x2fd448(0x144)](_0x2fd448(0xd2));});}async[_0x32f9e9(0x1d3)](){const _0x1d87e9=_0x32f9e9;this[_0x1d87e9(0x11a)]instanceof _0x5c9320?this[_0x1d87e9(0x1f4)](this[_0x1d87e9(0x11a)]):this[_0x1d87e9(0x1b8)](this[_0x1d87e9(0x11a)][_0x1d87e9(0xd6)],_0x1d87e9(0xef),(_0x3df279,_0x248598)=>{const _0x550825=_0x1d87e9;_0x248598['on'](_0x550825(0x1d8),()=>{const _0x466d7c=_0x550825;this[_0x466d7c(0x1f4)](_0x248598);});}),await this[_0x1d87e9(0x149)]();}[_0x32f9e9(0x148)](_0x31194c){const _0x26359d=_0x32f9e9,_0x2bc6a0=_0x2fb4d2(this[_0x26359d(0x11a)]);if(!_0x2bc6a0[_0x26359d(0x167)][_0x26359d(0x1ba)](_0x26359d(0x14b)))throw new _0x4f662e(_0x26359d(0x137),null);const _0x1b7c62=this[_0x26359d(0x11a)][_0x26359d(0x167)][_0x26359d(0x190)](_0x26359d(0xeb)),{reply:_0x4d0f51,interaction:_0x518445}=this[_0x26359d(0x9f)](_0x31194c[_0x26359d(0xdf)]),_0xdb7311=this[_0x26359d(0x1ea)](_0x31194c[_0x26359d(0xdf)],_0x31194c[_0x26359d(0x19e)]),_0x35bcb3=void 0x0!==_0x31194c[_0x26359d(0x19e)]?[_0x4d0f51[_0x26359d(0xab)][_0x31194c[_0x26359d(0x19e)]]]:_0x4d0f51[_0x26359d(0xab)][_0x26359d(0xc7)](_0xdee74c=>_0x26359d(0x159)==_0xdee74c[_0x26359d(0x132)]),_0x40371f=_0x35bcb3[_0x26359d(0x114)](_0x2c0c93=>_0x4d0f51[_0x26359d(0xab)][_0x26359d(0x105)](_0x2c0c93));if(!_0xdb7311||_0x26359d(0xb5)==_0xdb7311[_0x26359d(0x128)][_0x26359d(0x1ab)][_0x26359d(0x1d7)])return void _0x40371f[_0x26359d(0x10b)](_0xa05894=>_0x4d0f51[_0x26359d(0x14d)](_0xa05894,_0x26359d(0x13a)));_0x40371f[_0x26359d(0x10b)](_0x543267=>_0x4d0f51[_0x26359d(0x14d)](_0x543267,_0x26359d(0xcc)));const _0xa5f620=_0x35d81a({'editor':_0x2bc6a0,'reply':_0x4d0f51,'interaction':_0x518445,'groups':_0x35bcb3,'transform':!0x0,'documentCompare':_0x1b7c62,'documentCompareOptions':{'anchor':_0x26359d(0x11d),'markDeletions':!0x0}});let _0x5eb937;_0xdb7311&&this[_0x26359d(0x166)](_0xdb7311[_0x26359d(0x128)]),_0x2bc6a0[_0x26359d(0xfe)][_0x26359d(0x1a9)](_0x101aa7=>{const _0x474654=_0x26359d;_0x5eb937=_0x101aa7[_0x474654(0x1a8)],_0x2bc6a0[_0x474654(0x167)][_0x474654(0x190)](_0x474654(0xb9))[_0x474654(0x11f)](_0xa5f620),this[_0x474654(0x1b9)][_0x474654(0x144)](_0x474654(0xd2));}),this[_0x26359d(0x117)][_0x26359d(0x16a)](_0x5eb937,{'interactionId':_0x518445['id'],'replyId':_0x4d0f51['id'],'indexes':_0x40371f[_0x26359d(0x17a)]()}),this[_0x26359d(0x14a)](_0x4d0f51);}[_0x32f9e9(0x1e2)](_0xfab59c){const _0x3acdf2=_0x32f9e9,_0x4d81a3=_0x2fb4d2(this[_0x3acdf2(0x11a)]),_0x5aefd7=this[_0x3acdf2(0x11a)][_0x3acdf2(0x167)][_0x3acdf2(0x190)](_0x45a94c),{reply:_0x5afff5,interaction:_0x188790}=this[_0x3acdf2(0x9f)](_0xfab59c[_0x3acdf2(0xdf)]),_0x2ed696=this[_0x3acdf2(0x1ea)](_0xfab59c[_0x3acdf2(0xdf)],_0xfab59c[_0x3acdf2(0x19e)]),_0x1b5983=void 0x0!==_0xfab59c[_0x3acdf2(0x19e)]?[_0x5afff5[_0x3acdf2(0xab)][_0xfab59c[_0x3acdf2(0x19e)]]]:_0x5afff5[_0x3acdf2(0xab)][_0x3acdf2(0xc7)](_0x938059=>_0x3acdf2(0x159)==_0x938059[_0x3acdf2(0x132)]),_0x40831b=_0x1b5983[_0x3acdf2(0x114)](_0x39011f=>_0x5afff5[_0x3acdf2(0xab)][_0x3acdf2(0x105)](_0x39011f));if(!_0x2ed696||_0x3acdf2(0xb5)==_0x2ed696[_0x3acdf2(0x128)][_0x3acdf2(0x1ab)][_0x3acdf2(0x1d7)])return void _0x40831b[_0x3acdf2(0x10b)](_0x45bede=>_0x5afff5[_0x3acdf2(0x14d)](_0x45bede,_0x3acdf2(0x13a)));_0x40831b[_0x3acdf2(0x10b)](_0x186b18=>_0x5afff5[_0x3acdf2(0x14d)](_0x186b18,_0x3acdf2(0xcc)));const _0x3aad44=_0x35d81a({'editor':_0x4d81a3,'reply':_0x5afff5,'interaction':_0x188790,'groups':_0x1b5983,'transform':!0x0,'documentCompare':_0x5aefd7,'documentCompareOptions':{'anchor':_0x3acdf2(0x11d),'markDeletions':!0x1}});let _0x3df717;_0x2ed696&&this[_0x3acdf2(0x166)](_0x2ed696[_0x3acdf2(0x128)]),_0x4d81a3[_0x3acdf2(0xfe)][_0x3acdf2(0x1a9)](_0x1070b5=>{const _0x2be9e9=_0x3acdf2;_0x3df717=_0x1070b5[_0x2be9e9(0x1a8)];for(const _0x3aa8a7 of _0x3aad44)_0x3aa8a7[_0x2be9e9(0xb3)]=_0x4d81a3[_0x2be9e9(0xfe)][_0x2be9e9(0x1a0)][_0x2be9e9(0x183)],_0x96fa53(_0x4d81a3,_0x3aa8a7),_0x1070b5[_0x2be9e9(0x1a8)][_0x2be9e9(0xf0)](_0x3aa8a7),_0x4d81a3[_0x2be9e9(0xfe)][_0x2be9e9(0x168)](_0x3aa8a7);}),this[_0x3acdf2(0x117)][_0x3acdf2(0x16a)](_0x3df717,{'interactionId':_0x188790['id'],'replyId':_0x5afff5['id'],'indexes':_0x40831b[_0x3acdf2(0x17a)]()}),this[_0x3acdf2(0x14a)](_0x5afff5);}[_0x32f9e9(0x110)](_0x4567f2,_0x3f77bc){const _0x7139e=_0x32f9e9,_0x7493b1=_0x2fb4d2(this[_0x7139e(0x11a)]),_0x104d92=this[_0x7139e(0x1ea)](_0x4567f2,_0x3f77bc),_0x3783aa=this[_0x7139e(0x11a)][_0x7139e(0x167)][_0x7139e(0x190)](_0x22f8df);if(!_0x104d92)return void _0x3783aa[_0x7139e(0x1ae)]();const {range:_0x551a0b,currentIndex:_0x85c36b}=_0x104d92;if(_0x7139e(0xb5)==_0x551a0b[_0x7139e(0x1ab)][_0x7139e(0x1d7)]){const {reply:_0x510304}=this[_0x7139e(0x9f)](_0x4567f2);return _0x510304[_0x7139e(0x14d)](_0x85c36b,_0x7139e(0x13a)),void _0x3783aa[_0x7139e(0x1ae)]();}if(this[_0x7139e(0x179)]?.[_0x7139e(0xdf)]==_0x4567f2&&this[_0x7139e(0x179)]?.[_0x7139e(0x19e)]==_0x85c36b)return;this[_0x7139e(0xc6)](_0x3783aa),this[_0x7139e(0x179)]={'replyId':_0x4567f2,'partIndex':_0x85c36b};let _0x2d1bca=_0x7493b1[_0x7139e(0x156)][_0x7139e(0x190)](_0x7139e(0xce))||[..._0x54810b];_0x7493b1[_0x7139e(0x167)][_0x7139e(0x1ba)](_0x7139e(0x14b))||(_0x2d1bca=_0x2d1bca[_0x7139e(0xc7)](_0x4a2af9=>_0x7139e(0x1d2)!=_0x4a2af9));const _0x2592e0=new _0x30c4c1(_0x7493b1[_0x7139e(0xf9)],{'showDiff':this[_0x7139e(0x112)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x7139e(0x1cf)},'hideHeader':!0x0,'availableActions':_0x2d1bca});this[_0x7139e(0xc6)](_0x2592e0);const {reply:_0x3557c3}=this[_0x7139e(0x9f)](_0x4567f2),_0x858b07=_0x3557c3[_0x7139e(0x104)]({'showDiff':this[_0x7139e(0x112)]})[_0x7139e(0xc7)](_0x4007e9=>_0x4007e9[_0x7139e(0x1d4)]),_0x42d217=_0x858b07[_0x7139e(0xe1)](_0x4802e0=>_0x4802e0[_0x7139e(0x1e4)]==_0x85c36b);if(-0x1==_0x42d217)return;const _0x3e0fbc=_0x858b07[_0x42d217],_0x234d49=_0x858b07['at']((_0x42d217-0x1)%_0x858b07[_0x7139e(0x1e1)])?.[_0x7139e(0x1e4)],_0x4321cb=_0x858b07['at']((_0x42d217+0x1)%_0x858b07[_0x7139e(0x1e1)])?.[_0x7139e(0x1e4)];_0x2592e0[_0x7139e(0x1f0)]({'parts':[_0x3e0fbc],'renderingStrategy':_0x7139e(0xbb)});const _0xc566af=_0x85c36b!==_0x234d49;this[_0x7139e(0x166)](_0x551a0b,!0x0),_0x3783aa[_0x7139e(0x10a)]({'index':_0x85c36b,'title':_0x293a47(this[_0x7139e(0x11a)][_0x7139e(0xf9)],_0x7139e(0xbc),(_0x42d217+0x1)[_0x7139e(0xb4)]()),'icon':_0x230613,'mainView':_0x2592e0,'showRotator':_0xc566af,'showApplyButton':!0x0,'showSuggestButton':_0x7493b1[_0x7139e(0x167)][_0x7139e(0x1ba)](_0x7139e(0x14b)),'ranges':[_0x551a0b]}),this[_0x7139e(0xb6)][_0x7139e(0x10d)](_0x4567f2,_0x85c36b),this[_0x7139e(0x1b8)](_0x2592e0,_0x7139e(0x9c),(_0x15b850,{showDiff:_0x33d99c})=>{const _0x1e969e=_0x7139e;this[_0x1e969e(0x112)]=_0x33d99c;const {reply:_0x1cff89}=this[_0x1e969e(0x9f)](_0x4567f2),_0x39b829=_0x1cff89[_0x1e969e(0x104)]({'showDiff':_0x33d99c,'groupIndex':_0x85c36b});_0x2592e0[_0x1e969e(0x1f0)]({'parts':_0x39b829,'renderingStrategy':_0x1e969e(0xbb)});}),this[_0x7139e(0x1b8)](_0x3783aa,_0x7139e(0x147),()=>{const _0x302dae=_0x7139e;this[_0x302dae(0x1e2)]({'replyId':_0x4567f2,'partIndex':_0x85c36b}),_0xc566af?this[_0x302dae(0x110)](_0x4567f2,_0x4321cb):_0x3783aa[_0x302dae(0x1ae)]();}),this[_0x7139e(0x1b8)](_0x3783aa,_0x7139e(0x1d2),()=>{const _0x4294e3=_0x7139e;this[_0x4294e3(0x148)]({'replyId':_0x4567f2,'partIndex':_0x85c36b}),_0xc566af?this[_0x4294e3(0x110)](_0x4567f2,_0x4321cb):_0x3783aa[_0x4294e3(0x1ae)]();}),_0xc566af&&(this[_0x7139e(0x1b8)](_0x3783aa,_0x7139e(0x173),()=>{const _0x307d1a=_0x7139e;this[_0x307d1a(0x110)](_0x4567f2,_0x4321cb);}),this[_0x7139e(0x1b8)](_0x3783aa,_0x7139e(0x18c),()=>{const _0x8b05c5=_0x7139e;this[_0x8b05c5(0x110)](_0x4567f2,_0x234d49);})),this[_0x7139e(0x1b8)](_0x3783aa,_0x7139e(0x120),()=>{const _0x5843f0=_0x7139e;this[_0x5843f0(0xc6)](_0x3783aa),this[_0x5843f0(0xc6)](_0x2592e0),this[_0x5843f0(0x179)]=null;});}[_0x32f9e9(0x1ea)](_0x21f80c,_0x5e895e){const _0xa1cea6=_0x32f9e9,_0x800cd5=_0x2fb4d2(this[_0xa1cea6(0x11a)]),{reply:_0x30c464,interaction:_0x87906e}=this[_0xa1cea6(0x9f)](_0x21f80c),_0x17f7ce=_0x30c464[_0xa1cea6(0xab)][_0xa1cea6(0xc7)](_0x40efd5=>_0xa1cea6(0x159)==_0x40efd5[_0xa1cea6(0x132)]),_0x299a13=_0x17f7ce[_0xa1cea6(0x114)](_0xd2f051=>_0x30c464[_0xa1cea6(0xab)][_0xa1cea6(0x105)](_0xd2f051));void 0x0===_0x5e895e&&(_0x5e895e=_0x299a13[0x0]);const _0x499bd4=_0x299a13[_0xa1cea6(0x105)](_0x5e895e);if(-0x1==_0x499bd4)return null;const _0x4b0e98=_0x17f7ce[_0x499bd4],_0x26ec43=new _0x30b153([]),_0x2f5416=new _0x30b153([]);for(const _0x253aa7 of _0x4b0e98[_0xa1cea6(0x165)])if(_0xa1cea6(0x181)!=_0x253aa7[_0xa1cea6(0x184)]&&_0x2f5416[_0xa1cea6(0x1af)][_0xa1cea6(0x154)](_0x253aa7[_0xa1cea6(0xee)][_0xa1cea6(0x1bd)](!0x0)),_0xa1cea6(0x13c)!=_0x253aa7[_0xa1cea6(0x184)]){const _0xd51655=_0x2682e8(_0x36de38=>_0x582ccb(_0x36de38,_0xa1cea6(0x14f))==_0x253aa7['id'],_0x30c464[_0xa1cea6(0x1bb)],!0x0);_0x26ec43[_0xa1cea6(0x1af)][_0xa1cea6(0x154)](_0xd51655[_0xa1cea6(0x1bd)](!0x0));}if(0x0==_0x26ec43[_0xa1cea6(0x1af)][_0xa1cea6(0x1e1)]){if(_0x4b0e98[_0xa1cea6(0x165)][0x0][_0xa1cea6(0x1bc)]){const _0x2ea799=_0x1082e2(_0xa1cea6(0x14f),_0x4b0e98[_0xa1cea6(0x165)][0x0][_0xa1cea6(0x1bc)],_0x30c464[_0xa1cea6(0x1bb)]);_0x26ec43[_0xa1cea6(0x1af)][_0xa1cea6(0x195)](_0x2ea799[_0xa1cea6(0x1bd)](!0x0)),_0x2f5416[_0xa1cea6(0x1af)][_0xa1cea6(0x195)](_0x2ea799[_0xa1cea6(0x1bd)](!0x0)),_0x2ea799[_0xa1cea6(0x121)]&&(_0x26ec43[_0xa1cea6(0x1af)][_0xa1cea6(0x154)](_0x2ea799[_0xa1cea6(0x121)][_0xa1cea6(0x1bd)](!0x0)),_0x2f5416[_0xa1cea6(0x1af)][_0xa1cea6(0x154)](_0x2ea799[_0xa1cea6(0x121)][_0xa1cea6(0x1bd)](!0x0)));}else{const _0x2f489a=_0x30c464[_0xa1cea6(0x1bb)][_0xa1cea6(0x1af)][0x0];if(!_0x2f489a)return null;_0x26ec43[_0xa1cea6(0x1af)][_0xa1cea6(0x154)](_0x2f489a[_0xa1cea6(0x1bd)](!0x0)),_0x2f5416[_0xa1cea6(0x1af)][_0xa1cea6(0x154)](_0x2f489a[_0xa1cea6(0x1bd)](!0x0));}}const _0x50d59a=_0x87906e[_0xa1cea6(0xf5)](),_0x1eccf5=_0x800cd5[_0xa1cea6(0xb1)][_0xa1cea6(0x1f7)](_0x50d59a[_0xa1cea6(0xda)]),_0x588f94=_0x4229f4(_0x26ec43),_0x3f0b35=_0x800cd5[_0xa1cea6(0xb1)][_0xa1cea6(0x1f7)](_0x588f94),_0x18ef41=_0x800cd5[_0xa1cea6(0xb1)][_0xa1cea6(0x1f7)](_0x588f94),_0x21a2e7=_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0x11c)](_0x3f0b35,0x0),_0xe72e12=_0x4229f4(_0x2f5416),_0x2dc7d6={'anchor':_0x21a2e7,'markDeletions':!0x1},_0x445ff3=_0x800cd5[_0xa1cea6(0x167)][_0xa1cea6(0x190)](_0x45a94c)[_0xa1cea6(0x101)](_0x588f94,_0xe72e12,_0x2dc7d6)[_0xa1cea6(0x19f)]();if(!_0x445ff3[_0xa1cea6(0x1e1)])return null;_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0x1a9)](_0x2f42c4=>{const _0x252a41=_0xa1cea6;for(const _0xba971f of _0x445ff3)if(_0x252a41(0xad)==_0xba971f[_0x252a41(0x184)]){const _0xd9b304=_0xba971f[_0x252a41(0xa7)],_0x383bf3=_0xba971f[_0x252a41(0x1ce)],_0x47821c=new _0x5a552b(_0xd9b304,_0x383bf3);_0x2f42c4[_0x252a41(0x1a8)][_0x252a41(0xf0)](_0x47821c),_0x800cd5[_0x252a41(0xfe)][_0x252a41(0x168)](_0x47821c);}else _0x252a41(0xac)!==_0xba971f[_0x252a41(0x184)]&&(_0xba971f[_0x252a41(0xb3)]=null,_0xba971f[_0x252a41(0x11e)]=!0x1,_0x2f42c4[_0x252a41(0x1a8)][_0x252a41(0xf0)](_0xba971f),_0x800cd5[_0x252a41(0xfe)][_0x252a41(0x168)](_0xba971f));});const _0x5ddbd2=_0x3c6251(_0x800cd5,_0x445ff3,_0x3f0b35);_0x2d8db0(_0x800cd5[_0xa1cea6(0xfe)],_0x5ddbd2);const _0x5cdae0=_0x5ddbd2[_0xa1cea6(0x1c5)]()[_0xa1cea6(0x113)][_0xa1cea6(0x1ee)][_0xa1cea6(0x17a)](),_0x42962c=_0x5ddbd2[_0xa1cea6(0x1c5)]()[_0xa1cea6(0x13d)][_0xa1cea6(0x1ee)][_0xa1cea6(0x17a)](),_0x17553f=[];let _0x381db3=_0x3f0b35,_0xc695a8=_0x18ef41;for(let _0x1dbd8c=0x0;_0x1dbd8c<_0x42962c[_0xa1cea6(0x1e1)];_0x1dbd8c++){const _0x2687f6=_0x381db3[_0xa1cea6(0x198)]-_0x42962c[_0x1dbd8c];_0x17553f[_0x1dbd8c]=_0xc695a8[_0xa1cea6(0x198)]-_0x2687f6,_0x381db3=_0x381db3[_0xa1cea6(0x1eb)](_0x42962c[_0x1dbd8c]),_0xc695a8=_0xc695a8[_0xa1cea6(0x1eb)](_0x17553f[_0x1dbd8c]);}const _0x4aca38=_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0x111)](_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0xc4)](_0x18ef41,_0x5cdae0),_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0xc4)](_0x18ef41,_0x17553f)),_0x387b02=_0x18ef41[_0xa1cea6(0x1fe)](0x0)[_0xa1cea6(0x135)](_0x1de6ee),_0x33b9de=Array[_0xa1cea6(0x18a)](_0x1eccf5[_0xa1cea6(0x1d9)]())[_0xa1cea6(0xa2)](_0x4a481e=>_0x4a481e[_0xa1cea6(0x135)](_0x1de6ee)==_0x387b02)[_0xa1cea6(0x141)](),_0x58c549=_0x4aca38[_0xa1cea6(0x113)][_0xa1cea6(0x1ee)][_0xa1cea6(0x17a)](),_0x53ee6b=_0x4aca38[_0xa1cea6(0x13d)][_0xa1cea6(0x1ee)][_0xa1cea6(0x17a)]();_0x58c549[0x0]=_0x33b9de[0x0]+_0x58c549[0x0],_0x53ee6b[0x0]=_0x33b9de[0x0]+_0x53ee6b[0x0];let _0x3bc8eb=_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0x111)](_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0xc4)](_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0x1a0)][_0xa1cea6(0x187)](),_0x58c549),_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0xc4)](_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0x1a0)][_0xa1cea6(0x187)](),_0x53ee6b));const _0x213892=_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0x1a0)][_0xa1cea6(0xa8)][_0xa1cea6(0x19f)](_0x50d59a[_0xa1cea6(0x183)]);for(const _0x110599 of _0x213892)_0x3bc8eb=_0xa4175c[_0xa1cea6(0x186)](_0x3bc8eb[_0xa1cea6(0x201)](_0x110599));return{'range':_0x3bc8eb,'currentIndex':_0x5e895e};}[_0x32f9e9(0x1f4)](_0x390375){const _0x4e96fb=_0x32f9e9;if(!_0x390375[_0x4e96fb(0x167)][_0x4e96fb(0x1ba)](_0x4e96fb(0x16d)))return;const _0x42c250=_0x390375[_0x4e96fb(0x12e)][_0x4e96fb(0x190)](_0x4e96fb(0x98)),_0x1fc142=_0x390375[_0x4e96fb(0x12e)][_0x4e96fb(0x190)](_0x4e96fb(0xdb));this[_0x4e96fb(0x1b8)](_0x42c250,_0x4e96fb(0xf8),(_0xc9d956,_0x1d8daa,_0x333382)=>{const _0x56048f=_0x4e96fb,_0xd52e84=this[_0x56048f(0x117)][_0x56048f(0x190)](_0x1d8daa);if(!_0xd52e84)return;const _0x1e9cae=this[_0x56048f(0x1bf)][_0x56048f(0x1e0)](_0xd52e84[_0x56048f(0x19c)])[_0x56048f(0xfa)](_0xd52e84[_0x56048f(0xdf)]);_0xd52e84[_0x56048f(0x1dd)][_0x56048f(0x10b)](_0xe9299f=>_0x1e9cae[_0x56048f(0x14d)](_0xe9299f,_0x56048f(0x159))),this[_0x56048f(0x117)][_0x56048f(0x1c1)](_0x1d8daa),this[_0x56048f(0x117)][_0x56048f(0x16a)](_0x333382,_0xd52e84);}),this[_0x4e96fb(0x1b8)](_0x1fc142,_0x4e96fb(0xf8),(_0x565824,_0x5f5219,_0x2b2108)=>{const _0x6e3f7e=_0x4e96fb,_0x4949f4=this[_0x6e3f7e(0x117)][_0x6e3f7e(0x190)](_0x5f5219);if(!_0x4949f4)return;const _0x46ae1b=this[_0x6e3f7e(0x1bf)][_0x6e3f7e(0x1e0)](_0x4949f4[_0x6e3f7e(0x19c)])[_0x6e3f7e(0xfa)](_0x4949f4[_0x6e3f7e(0xdf)]);_0x4949f4[_0x6e3f7e(0x1dd)][_0x6e3f7e(0x10b)](_0x34b13c=>_0x46ae1b[_0x6e3f7e(0x14d)](_0x34b13c,_0x6e3f7e(0xcc))),this[_0x6e3f7e(0x117)][_0x6e3f7e(0x1c1)](_0x5f5219),this[_0x6e3f7e(0x117)][_0x6e3f7e(0x16a)](_0x2b2108,_0x4949f4);});}async[_0x32f9e9(0x1e8)](_0x2ef91e){const _0x24793a=_0x32f9e9;this[_0x24793a(0x11a)][_0x24793a(0x167)][_0x24793a(0x190)](_0x22f8df)[_0x24793a(0x1ae)](),this[_0x24793a(0xb6)][_0x24793a(0x18b)](_0x24793a(0xbb)),this[_0x24793a(0xb6)][_0x24793a(0x1a7)](!0x0),await this[_0x24793a(0xfb)]();try{await this[_0x24793a(0x1c2)][_0x24793a(0x118)](_0x2ef91e)[_0x24793a(0x1be)](),await this[_0x24793a(0x149)](_0x2ef91e),this[_0x24793a(0x163)]('\x20');const {sessionId:_0x52a45d}=this[_0x24793a(0x1b9)][_0x24793a(0x1e7)]();await this[_0x24793a(0x1bf)][_0x24793a(0xae)](_0x2ef91e,_0x52a45d),this[_0x24793a(0x1bf)][_0x24793a(0x1ac)]()&&this[_0x24793a(0x1bf)][_0x24793a(0x1f8)](_0x293a47(this[_0x24793a(0x11a)][_0x24793a(0xf9)],_0x24793a(0x107)));}catch(_0x576299){this[_0x24793a(0xb6)][_0x24793a(0x136)]({'errorMessage':_0x293a47(this[_0x24793a(0x11a)][_0x24793a(0xf9)],_0x24793a(0x1b6)),'id':_0x2ef91e}),this[_0x24793a(0x197)](new _0x4f662e(_0x24793a(0x1e6),this,{'error':_0x576299}));}finally{this[_0x24793a(0x11a)][_0x24793a(0x167)][_0x24793a(0x190)](_0x18e5e0)[_0x24793a(0x1a5)][_0x24793a(0x174)](_0x24793a(0x1e9)),this[_0x24793a(0xb6)][_0x24793a(0xe9)](),this[_0x24793a(0xb6)][_0x24793a(0x18b)](_0x24793a(0x17e)),this[_0x24793a(0xb6)][_0x24793a(0x1a7)](!0x1);}}[_0x32f9e9(0x142)](_0x4726d4){const _0x1babe=_0x32f9e9;this[_0x1babe(0x1bf)]['id']===_0x4726d4&&this[_0x1babe(0x149)]();}async[_0x32f9e9(0xfc)](){const _0x63c7ea=_0x32f9e9,_0x55e52c=this[_0x63c7ea(0x1b9)][_0x63c7ea(0x1b5)]();this[_0x63c7ea(0x1bf)]?.[_0x63c7ea(0xc9)](_0x55e52c),this[_0x63c7ea(0x1bf)]?.[_0x63c7ea(0x1f8)](_0x293a47(this[_0x63c7ea(0x11a)][_0x63c7ea(0xf9)],_0x63c7ea(0x107)));}[_0x32f9e9(0x155)](){const _0x36e45d=_0x32f9e9;this[_0x36e45d(0x1bf)]?.[_0x36e45d(0xf4)]();}[_0x32f9e9(0x1cc)](){const _0x431c6f=_0x32f9e9;this[_0x431c6f(0xb6)][_0x431c6f(0x1cc)]();}async[_0x32f9e9(0x15a)](){const _0xb795b6=_0x32f9e9;await this[_0xb795b6(0x149)]();}async[_0x32f9e9(0x9a)]({message:_0x348676,quickActionData:_0x760c3d}){const _0x46dfb1=_0x32f9e9;await this[_0x46dfb1(0x1b4)]({'userMessage':_0x348676,'quickActionData':_0x760c3d});}[_0x32f9e9(0xd8)](){const _0x19652b=_0x32f9e9,_0x342356=this[_0x19652b(0x11a)][_0x19652b(0x156)][_0x19652b(0x190)](_0x19652b(0x138));if(!_0x342356)throw new _0x4f662e(_0x19652b(0x1b3),this);return _0x342356;}async[_0x32f9e9(0x149)](_0x1c08c0){const _0x321bb0=_0x32f9e9;try{this[_0x321bb0(0xb6)][_0x321bb0(0x191)](),await this[_0x321bb0(0x164)](_0x1c08c0);}catch(_0x4e103d){this[_0x321bb0(0xb6)][_0x321bb0(0x136)]({'errorMessage':_0x293a47(this[_0x321bb0(0x11a)][_0x321bb0(0xf9)],_0x321bb0(0x129)),'id':_0x1c08c0||_0x53bca2()}),console[_0x321bb0(0xd5)](_0x4e103d),this[_0x321bb0(0x1bf)]=void 0x0,this[_0x321bb0(0xb6)][_0x321bb0(0x1a4)]();}}async[_0x32f9e9(0x164)](_0x21cd6e){const _0x4a365e=_0x32f9e9,_0x59c459=this[_0x4a365e(0x11a)][_0x4a365e(0x167)][_0x4a365e(0x190)](_0x22f8df);let _0x48caa6;_0x59c459[_0x4a365e(0x13e)]&&_0x59c459[_0x4a365e(0x1ae)](),_0x21cd6e||!this[_0x4a365e(0x1bf)]?_0x48caa6=this[_0x4a365e(0x11a)][_0x4a365e(0x156)][_0x4a365e(0x190)](_0x4a365e(0xa0)):this[_0x4a365e(0xb6)][_0x4a365e(0x17d)]&&(_0x48caa6=this[_0x4a365e(0x1bf)][_0x4a365e(0x14c)]['id']),await this[_0x4a365e(0xfb)]();const _0x115889=this[_0x4a365e(0xd8)](),_0x3b5b63=_0x21cd6e||_0x53bca2();this[_0x4a365e(0x1bf)]=new _0x3dfc61({'connector':this[_0x4a365e(0x1c2)],'chatModels':this[_0x4a365e(0xdd)],'selectedModelId':_0x48caa6,'conversationId':_0x3b5b63,'group':_0x115889,'getEditor':()=>_0x2fb4d2(this[_0x4a365e(0x11a)])}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0xba),(_0x157398,_0x351898)=>{const _0x7574ad=_0x4a365e;this[_0x7574ad(0xb6)][_0x7574ad(0x1e5)](_0x351898),this[_0x7574ad(0xb6)][_0x7574ad(0x188)](),this[_0x7574ad(0xb6)][_0x7574ad(0x106)](),this[_0x7574ad(0xb6)][_0x7574ad(0x162)](),_0x21cd6e||(this[_0x7574ad(0xb6)][_0x7574ad(0x140)](),this[_0x7574ad(0x1bf)]?.[_0x7574ad(0x1f8)](_0x293a47(this[_0x7574ad(0x11a)][_0x7574ad(0xf9)],_0x7574ad(0x107))));}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0xc5),(_0x1406e6,_0x1ef51d)=>{const _0x281bed=_0x4a365e;this[_0x281bed(0xb6)][_0x281bed(0xbe)](_0x1ef51d[_0x281bed(0xe7)]);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1aa),(_0x320968,_0x243258)=>{const _0x1c5c06=_0x4a365e;this[_0x1c5c06(0xb6)][_0x1c5c06(0x153)](_0x243258);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1da),()=>{const _0x422ca0=_0x4a365e;this[_0x422ca0(0xb6)][_0x422ca0(0x202)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1c7),()=>{const _0x5343a0=_0x4a365e;this[_0x5343a0(0xb6)][_0x5343a0(0x202)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1a6),(_0x417a58,_0x2224eb)=>{const _0x114d9b=_0x4a365e;this[_0x114d9b(0xb6)][_0x114d9b(0x1db)](_0x2224eb,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x182),(_0xa2d69c,_0x42bad9)=>{const _0xaf86e3=_0x4a365e;this[_0xaf86e3(0xb6)][_0xaf86e3(0x1db)](_0x42bad9,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x16e),()=>{const _0x2ba7da=_0x4a365e;this[_0x2ba7da(0xb6)][_0x2ba7da(0xea)]();}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x17f),async()=>{const _0x2a3be9=_0x4a365e;await this[_0x2a3be9(0xb6)][_0x2a3be9(0x18d)]();}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1c9),(_0xafdb84,_0x213527)=>{const _0x5dc8d3=_0x4a365e;this[_0x5dc8d3(0xb6)][_0x5dc8d3(0x1cd)](_0x213527['id']);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x134),(_0x133742,_0xcc921,_0x33aab3)=>{const _0x1ba7ab=_0x4a365e;this[_0x1ba7ab(0x163)](_0xcc921,_0x33aab3);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x160),(_0x10e535,_0x1cc8a7)=>{const _0x50337b=_0x4a365e;_0x50337b(0x1fd)===_0x1cc8a7[_0x50337b(0x184)]?this[_0x50337b(0xb6)][_0x50337b(0x102)](_0x1cc8a7):this[_0x50337b(0xb6)][_0x50337b(0x157)](_0x1cc8a7);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0xd4),async(_0x374515,_0xd6a922)=>{const _0x5a4a67=_0x4a365e;await this[_0x5a4a67(0x131)]({'reply':_0xd6a922});}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1f6),(_0x2ccdbf,{reply:_0x217359,index:_0x589d0a,state:_0x459095})=>{const _0x3f4c56=_0x4a365e;this[_0x3f4c56(0xb6)][_0x3f4c56(0x180)]({'id':_0x217359['id'],'index':_0x589d0a,'state':_0x459095});}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x19d),(_0x1f4923,_0x2c4f1b)=>{const _0x575aaa=_0x4a365e;if(this[_0x575aaa(0xb6)][_0x575aaa(0x1f2)](_0x2c4f1b[_0x575aaa(0xc3)],_0x2c4f1b[_0x575aaa(0x151)]),_0x575aaa(0x17b)===_0x2c4f1b[_0x575aaa(0xc3)][_0x575aaa(0x184)]){const _0x43091f=[..._0x2fb4d2(this[_0x575aaa(0x11a)])[_0x575aaa(0xfe)][_0x575aaa(0x1a0)][_0x575aaa(0x17b)][_0x575aaa(0x99)]()];this[_0x575aaa(0x1b9)][_0x575aaa(0x1d1)](_0x43091f,_0x575aaa(0xd9)+this[_0x575aaa(0x1bf)]?.['id']);}}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1cb),(_0x589c52,_0x59858d)=>{const _0x2a0152=_0x4a365e;this[_0x2a0152(0xb6)][_0x2a0152(0x95)](_0x59858d[_0x2a0152(0x1f9)]),_0x2a0152(0x14e)==_0x59858d[_0x2a0152(0x1f9)]&&this[_0x2a0152(0x155)](),_0x2a0152(0x17b)===_0x59858d[_0x2a0152(0x184)]&&this[_0x2a0152(0x1b9)][_0x2a0152(0x144)](_0x2a0152(0xd9)+this[_0x2a0152(0x1bf)]?.['id']);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1ad),(_0x4bf7c1,_0x2610b7)=>{const _0x472131=_0x4a365e;this[_0x472131(0xb6)][_0x472131(0x12a)](_0x2610b7[_0x472131(0xc3)][_0x472131(0x1f9)],_0x2610b7[_0x472131(0x151)]);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1d6),(_0x69c0,_0x7eacf2)=>{const _0x14f2c3=_0x4a365e;this[_0x14f2c3(0xb6)][_0x14f2c3(0x15e)](_0x7eacf2[_0x14f2c3(0x100)]);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0xd0),(_0x19460d,_0x2cb975)=>{const _0x7e07f3=_0x4a365e;this[_0x7e07f3(0xb6)][_0x7e07f3(0x10c)](_0x2cb975[_0x7e07f3(0x176)]);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0xfd),(_0x5bb55f,_0x43f0c2)=>{const _0x492899=_0x4a365e;this[_0x492899(0xb6)][_0x492899(0xb8)](_0x43f0c2[_0x492899(0x15d)],_0x43f0c2[_0x492899(0x119)],_0x43f0c2[_0x492899(0x1a2)],_0x43f0c2[_0x492899(0x1f1)]);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0xaa),(_0x46dcfb,_0x3ee352)=>{const _0x25f699=_0x4a365e;this[_0x25f699(0xb6)][_0x25f699(0xcd)](_0x3ee352[_0x25f699(0x15d)],_0x3ee352[_0x25f699(0xf3)],_0x3ee352[_0x25f699(0x1ec)]);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x158),(_0xd848d1,_0x337a1c)=>{const _0x1edf38=_0x4a365e;this[_0x1edf38(0xb6)][_0x1edf38(0xd3)](_0x337a1c);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1c0),(_0x42b549,_0x55a80f)=>{const _0x563b97=_0x4a365e;this[_0x563b97(0xb6)][_0x563b97(0x1ef)](_0x55a80f[_0x563b97(0x14c)],_0x55a80f[_0x563b97(0x9e)]);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0xd5),(_0xab4d1f,{error:_0x1b1993,interactionId:_0x1edf63,fileName:_0x19d4a7,url:_0x331383,sourceId:_0x859444,sourceLabel:_0x4133d5})=>{const _0x10b5f1=_0x4a365e,_0x21caf7=_0x1edf63?_0x1edf63+':'+_0x53bca2():_0x53bca2();_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x1b7))?this[_0x10b5f1(0xb6)][_0x10b5f1(0xff)]({'staticMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0x1f3)),'id':_0x21caf7}):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0xe2))||_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x146))?(this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0x129)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993)):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x126))?this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0x177),_0x19d4a7),'id':_0x21caf7}):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x1df))?this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0x18f),_0x331383),'id':_0x21caf7}):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x115))?this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0xa3)),'id':_0x21caf7}):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0xcb))?this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0x1dc)),'id':_0x21caf7}):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0xf1))?(_0x859444&&this[_0x10b5f1(0xb6)][_0x10b5f1(0x16b)](_0x859444),this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0x18e),_0x4133d5||_0x10b5f1(0x119)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993)):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x1d5))?(this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0xca)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993)):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x116))?(this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0x1de)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993)):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x11b))?(this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0xed)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993)):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x1c4))?(this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0xe4)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993)):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x9d))?(this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0xf7)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993)):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x196))?(this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0xaf)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993)):(this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0x97)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993));}),await this[_0x4a365e(0x1bf)][_0x4a365e(0x1ff)](this[_0x4a365e(0x11a)][_0x4a365e(0x156)][_0x4a365e(0x190)](_0x4a365e(0x193))),_0x21cd6e||await this[_0x4a365e(0x1bf)][_0x4a365e(0x113)]();}async[_0x32f9e9(0x1b4)]({userMessage:_0xe98774,quickActionData:_0x50136b}){const _0x20e20b=_0x32f9e9;if(!this[_0x20e20b(0x1bf)])throw new _0x4f662e(_0x20e20b(0x1c3));this[_0x20e20b(0x1bf)][_0x20e20b(0x1b1)]()&&await this[_0x20e20b(0x1bf)][_0x20e20b(0x185)](this[_0x20e20b(0x1b9)][_0x20e20b(0x1e7)]()),this[_0x20e20b(0x1bf)]['id']&&this[_0x20e20b(0x1bf)][_0x20e20b(0x200)]&&await this[_0x20e20b(0x1bf)][_0x20e20b(0xf2)]({'userMessage':_0xe98774,'quickActionData':_0x50136b}),this[_0x20e20b(0x150)]();}[_0x32f9e9(0x150)](){const _0x24d952=_0x32f9e9,_0x5dab0e=_0x2fb4d2(this[_0x24d952(0x11a)])[_0x24d952(0xfe)],_0x34dd6f=Array[_0x24d952(0x18a)](_0x5dab0e[_0x24d952(0x12c)][_0x24d952(0x96)](_0x4452cb));_0x5dab0e[_0x24d952(0x1a9)](_0x1f981d=>{const _0x4bb638=_0x24d952;_0x34dd6f[_0x4bb638(0x10b)](_0x3ca3d5=>_0x1f981d[_0x4bb638(0x13b)](_0x3ca3d5));});}[_0x32f9e9(0x1e3)](){const _0x3a1ebb=_0x32f9e9;console[_0x3a1ebb(0x171)](_0x3a1ebb(0x19b));}[_0x32f9e9(0x108)](_0x88cdbb){const _0x2dccf3=_0x32f9e9;this[_0x2dccf3(0xb6)][_0x2dccf3(0x122)](_0x88cdbb);}[_0x32f9e9(0x197)](_0x9e7b08){const _0x58384d=_0x32f9e9;_0x402656(_0x9e7b08[_0x58384d(0x175)]);}[_0x32f9e9(0xde)](_0x537c52){const _0x54b05c=_0x32f9e9;this[_0x54b05c(0x1bf)]?.[_0x54b05c(0x169)](_0x537c52);}[_0x32f9e9(0x172)](){const _0x3a5943=_0x32f9e9;this[_0x3a5943(0x1bf)]?.[_0x3a5943(0xe8)]();}[_0x32f9e9(0x194)](){const _0x42f6ea=_0x32f9e9;this[_0x42f6ea(0x1bf)]?.[_0x42f6ea(0x13f)]();}[_0x32f9e9(0x9f)](_0x4e0df3){const _0x3a7d1c=_0x32f9e9,[_0x3dae6b,_0x2d56eb]=_0x4e0df3[_0x3a7d1c(0x1fc)](':'),_0x51ee12=this[_0x3a7d1c(0x1bf)][_0x3a7d1c(0x1e0)](_0x3dae6b),_0x4a7349=_0x51ee12[_0x3a7d1c(0xfa)](_0x2d56eb);return{'interaction':_0x51ee12,'reply':_0x4a7349};}[_0x32f9e9(0x166)](_0x10888a,_0x1fbfaf=!0x1){const _0x36eed8=_0x32f9e9,_0x4e028a=_0x2fb4d2(this[_0x36eed8(0x11a)]),_0x3ef968={'target':_0x4e028a[_0x36eed8(0x143)][_0x36eed8(0x1a5)][_0x36eed8(0x125)][_0x36eed8(0x130)](_0x4e028a[_0x36eed8(0x143)][_0x36eed8(0x10f)][_0x36eed8(0xc2)](_0x10888a)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x1fbfaf};_0x1fbfaf&&(_0x3ef968[_0x36eed8(0x178)]=!0x0),_0x4d71d9(_0x3ef968);}[_0x32f9e9(0x163)](_0x4b3ff2,_0x39d61f=!0x1){const _0x581714=_0x32f9e9;this[_0x581714(0xb6)][_0x581714(0x134)](_0x4b3ff2||_0x293a47(this[_0x581714(0x11a)][_0x581714(0xf9)],_0x581714(0x16f)),_0x39d61f);}async[_0x32f9e9(0x131)]({reply:_0x4df877,renderingStrategy:_0x44f19e}){const _0x26ce6b=_0x32f9e9,{id:_0x1cc209,isDone:_0x40c1e3,type:_0x521003,parsedContent:_0x11ad92}=_0x4df877;if(_0x26ce6b(0x1ca)===_0x521003){const _0x18007b=_0x4df877[_0x26ce6b(0x104)]({'showDiff':this[_0x26ce6b(0xb6)][_0x26ce6b(0x189)]});await this[_0x26ce6b(0xb6)][_0x26ce6b(0x1c8)]({'id':_0x1cc209,'parts':_0x18007b,'renderingStrategy':_0x44f19e,'isDone':_0x40c1e3});}else _0x26ce6b(0x1fd)===_0x521003&&await this[_0x26ce6b(0xb6)][_0x26ce6b(0x1fa)]({'id':_0x1cc209,'parsedContent':_0x11ad92,'renderingStrategy':_0x44f19e,'isDone':_0x40c1e3});_0x40c1e3&&_0x4df877[_0x26ce6b(0x1f5)][_0x26ce6b(0x1e1)]>0x0&&this[_0x26ce6b(0xb6)][_0x26ce6b(0x109)](_0x1cc209,_0x4df877[_0x26ce6b(0x1f5)]);}async[_0x32f9e9(0xfb)](){const _0x5b7d48=_0x32f9e9,_0x2c861f=this[_0x5b7d48(0x1bf)]?.[_0x5b7d48(0x15b)];_0x2c861f&&(_0x2c861f[_0x5b7d48(0xe3)](),this[_0x5b7d48(0xb6)][_0x5b7d48(0x1ed)](_0x2c861f));}async[_0x32f9e9(0xa9)](){const _0x136919=_0x32f9e9,_0x495e0a=this[_0x136919(0x1bf)]?.[_0x136919(0x15b)];if(_0x495e0a){for await(const _0x3106d6 of _0x495e0a[_0x136919(0x16c)])await this[_0x136919(0x131)]({'reply':_0x3106d6,'renderingStrategy':_0x136919(0xbb)});}}[_0x32f9e9(0x14a)](_0x26679c){const _0x24ace5=_0x32f9e9,_0x261638={'positiveCount':_0x26679c[_0x24ace5(0xab)][_0x24ace5(0xc7)](_0x543c59=>_0x24ace5(0xcc)===_0x543c59[_0x24ace5(0x132)])[_0x24ace5(0x1e1)],'totalCount':_0x26679c[_0x24ace5(0xab)][_0x24ace5(0x1e1)],'modificationId':_0x26679c['id']},_0x4c7703=this[_0x24ace5(0x1bf)][_0x24ace5(0x1e0)](_0x26679c[_0x24ace5(0x19c)])[_0x24ace5(0x1b2)];this[_0x24ace5(0x1c2)][_0x24ace5(0x15c)](this[_0x24ace5(0x1bf)]['id'],_0x4c7703,_0x261638);}}function _0x434b(){const _0x5a5eb6=['_removeAISelectionMarkers','isLoading','2295416KbjpeD','addFeedItemUserMessage','push','removeSelectionFromChatContext','config','addFeedItemAISuggestion','capabilitiesUpdated','pending','startConversation','lastInteraction','upsertAIChatRating','sourceId','setConversationContext','rejected','replyCreated','startsWith','clearConversationContextUI','updateConversationTitle','_handleStartConversation','changes','_scrollToSuggestionRange','plugins','applyOperation','removeFromContext','set','closeSourceResourceBalloon','replies','Undo','interactionStarted','AI_CHAT_UNTITLED_CONVERSATION','addUrlToContext','log','_toggleWebSearch','showNext','activateTab','message','options','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','alignToTop','_previewedChangeGroup','slice','selection','requires','isModelAvailable','streaming','interactionFinished','updateFeedItemAIReplySuggestionPartState','removed','reasoningFinished','version','type','updateCurrentDocumentInContext','_createFromRanges','getRoot','resetMessageInput','showDiff','from','setFeedItemRenderingStrategy','showPrevious','finishInteraction','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','get','enableControls','316sWzidB','ai.chat.context','_toggleReasoning','unshift','ai-chat-context-form-data-size-limits-exceeded','_logError','maxOffset','selectModel','AIEditing','Showing\x20conversation\x20history...','interactionId','contextItemAdded','partIndex','getOperations','document','resizeTabs','resources','AITabs','disableControls','view','webSearchFinished','toggleLoadingSkeleton','batch','change','interactionCreated','root','isCurrentDocumentInConversation','contextItemLoadingEnded','close','children','loadSourceResources','isCurrentDocumentInContext','messageId','ai-chat-missing-channel-id','_handleUIUserMessage','getSelectionText','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','ai-request-aborted','listenTo','_aiEditing','has','documentContextContent','anchorId','cloneNode','getConversation','activeConversation','modelSelected','delete','_aiConnector','ai-chat-controller-no-active-conversation','ai-chat-context-file-too-large','getFirstRange','AIChatController','reasoningStarted','updateFeedItemAIReplySuggestionContent','interactionDestroyed','modification-delta','contextItemRemoved','focusPromptInput','removeFeedInteraction','howMany','full','8025237pJNRBL','showFakeVisualSelection','insertSuggestion','afterInit','hasChanges','ai-chat-resource-load-failed','contextSent','rootName','ready','getChildren','webSearchStarted','addFeedInteractionHeader','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','indexes','AI_CHAT_INVALID_REQUEST','ai-chat-url-upload-failed','getInteraction','length','_applySuggestion','_showConversationHistory','index','createConversation','ai-chat-conversation-not-found','getDocumentData','loadConversation','chat','_getDocumentRangeForReplyChanges','getChildAtOffset','isInContext','stopInteraction','path','setSelectedModel','updateContent','uid','addContextItem','AI_CHAT_ABORTED_MESSAGE','_integrateEditor','sources','replyChangeGroupStateUpdated','parse','addCurrentDocumentToContext','uiId','updateFeedItemAIReplyContent','abortPromptStream','split','text-delta','getChild','init','isStarted','getTransformedByOperation','setLoadingMessage','removeContextItem','getMarkersGroup','AI_CHAT_GENERIC_ERROR','undo','getRanges','sendMessage','dislike','toggleSuggestionDisplayMode','ai-chat-context-file-too-many-pages','isDisabled','getInteractionAndReplyById','ai.chat.models.defaultModelId','resizedTabs','find','AI_CHAT_CONTEXT_INVALID_DATA','mouseLeaveSuggestion','mouseOverSuggestion','addDocumentToContext','sourcePosition','history','_flushLastInteractionUI','resourceStateChanged','changeGroups','marker','remove','load','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','AIConnector','data','85558FTLPqO','baseVersion','toString','$graveyard','_aiChatUi','46974laPLzM','populateSourceResourceBalloon','TrackChangesEditing','conversationInitialized','static','AI_BALLOON_HEADER_TITLE','34372296ELWEYD','setIsUploadInProgress','Disliked\x20response','setModel','resource','toViewRange','contextItem','createPositionFromPath','uploadProgressChanged','stopListening','filter','addFilesToContext','addSelectionToContext','AI_CHAT_RESOURCE_LOAD_FAILED','ai-chat-context-unsupported-type','accepted','updateResourceState','ai.availableReplyActions','isPremiumPlugin','addContextOptionsChanged','315624kzTmMq','ai-chat-controller-mouse-over','updateCapabilities','replyContentUpdated','error','editors','Liked\x20response','getGroupId','ai-conversation-','content','redo','pluginName','_aiChatModels','_removeFromContext','replyId','like','findIndex','ai-chat-conversation-init-failed','stop','AI_CHAT_CONTEXT_FILE_TOO_LARGE','50AqFObq','rejectSuggestion','isUploadInProgress','toggleWebSearch','startAutoScroll','startInteraction','DocumentCompare','query','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','node','add','addOperation','ai-chat-source-resources-load-failed','handleUserInteraction','resourceId','removeSelectionFromContext','getDocumentContext','isOfficialPlugin','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','revert','locale','getReply','_stopLastInteraction','addSelectionToChatContext','sourceResourcesLoaded','model','addFeedItemStaticMessage','contextItems','getDiff','addFeedItemAIReply','resize','getContentParts','indexOf','clearPendingContextUI','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_setIsMaximized','updateFeedItemAIReplySources','open','forEach','setAddContextOptions','scrollFeedToSuggestion','5eojETa','mapper','_openBalloonFor','createRange','_balloonShowDiff','start','map','ai-chat-context-invalid-data','ai-chat-invalid-request','_batchToChanges','fetchConversation','source','context','ai-chat-context-unsupported-file-type','createPositionAt','main','isDocumentOperation','_applyOperationsAsSuggestions','dialogClosed','nextSibling','setIsMaximized','ai.chat.models.displayedModels','43629UlkHEo','domConverter','ai-chat-file-upload-failed','addResourceToContext','range','AI_CHAT_UNABLE_TO_START_CONVERSATION','setContextItemLoading','7AtcLEz','markers','AIChatUI','commands','addFileToContext','viewRangeToDom','_updateReplyContent','state','80crgjri','setConversationTitle','getAttribute','addFeedItemError','ai-no-track-changes','collaboration.channelId','sendUserMessage','outdated','removeMarker','new','end','isOpen','toggleReasoning','resetConversationTitle','getPath','handleRemovedConversation','editing','hideFakeVisualSelection','showChangeInText','ai-chat-conversation-start-failed','applySuggestion','_insertSuggestion','_startConversationSafely','_updateRatings','TrackChanges','selectedModel','setChangeGroupState','current-document','data-id'];_0x434b=function(){return _0x5a5eb6;};return _0x434b();}
|
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3563f4=_0x47d6;(function(_0x4a70e5,_0x5ce4a2){const _0x1eb5e2=_0x47d6,_0x2870a5=_0x4a70e5();while(!![]){try{const _0x5cc71f=parseInt(_0x1eb5e2(0x7e))/0x1+parseInt(_0x1eb5e2(0x9c))/0x2+-parseInt(_0x1eb5e2(0x8a))/0x3+-parseInt(_0x1eb5e2(0xa9))/0x4*(-parseInt(_0x1eb5e2(0xcc))/0x5)+parseInt(_0x1eb5e2(0xea))/0x6*(-parseInt(_0x1eb5e2(0xc3))/0x7)+parseInt(_0x1eb5e2(0xef))/0x8*(parseInt(_0x1eb5e2(0x71))/0x9)+-parseInt(_0x1eb5e2(0x85))/0xa*(-parseInt(_0x1eb5e2(0xa2))/0xb);if(_0x5cc71f===_0x5ce4a2)break;else _0x2870a5['push'](_0x2870a5['shift']());}catch(_0x4b9690){_0x2870a5['push'](_0x2870a5['shift']());}}}(_0x2330,0xdb3cc));import{ContextPlugin as _0x57184f}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x486b0f}from'ckeditor5/src/utils.js';function _0x2330(){const _0xcb50d3=['config','_getInputPlaceholder','interactionId','remove','updateFeedItemAIReplySources','setInputPlaceholder','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','stopInteraction','children','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','values','chatFeed','forEach','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','AIChatUI','clearPendingContextUI','user-message','isOfficialPlugin','context','9hBfyzZ','setContextItemLoading','isDisabled','queueEmptyPromise','isReasoningEnabled','resetConversationTitle','updateWebSources','abort','updateFeedInteractionHeader','isPremiumPlugin','availableModels','focusPromptInput','destroy','1554362JQSjRp','enableControls','updateReplyItem','get','label','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','setConversationContext','440yPJhhE','capabilities','removeItem','ai-reply','streaming','3503127SWuCus','_getLoadingMessage','addTab','populateSourceResourceBalloon','updateResourceState','scrollFeedToSuggestion','closeSourceResourceBalloon','chatHeader','ai-suggestion-reply','then','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','_promiseQueue','addFeedItemError','set','_view','contextItems','markItemAsDone','stopAutoScroll','876050cKhXgL','filter','isDone','isWebSearchEnabled','insertSuggestion','getItemIds','181599jIdrKD','AI_CHAT_WELCOME_MESSAGE','setWebSearch','updateFeedItemAIReplySuggestionContent','areActionsDisabled','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','conversation-start','8eryHWB','enqueue','showDiff','commands','_isTrackChangesCommandValueBound','toggleLoadingSkeleton','requires','userMessage','updateFeedItemAIReplySuggestionPartState','AI_CHAT_HEADING','bind','removeContextItem','plugins','pluginName','removeFeedInteraction','_titleAnimationInterval','resetMessageInput','last','ai.chat.context.searchInputVisibleFrom','view','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','locale','ai.availableReplyActions','setReasoning','finishInteraction','createConversation','9814931CooxAi','feedItemRenderingStrategy','value','displayedPrompt','setIsUploadInProgress','isVisible','_animateConversationTitle','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','error-message','1286620CykYuB','markFeedItemAsDone','isModelAvailable','length','ai.chat.models.modelSelectorAlwaysVisible','</p>','disableControls','addFeedItemUserMessage','isMaximized','isTrackChangesOn','setLoadingMessage','addItem','setSelectedModel','setAddContextOptions','find','startAutoScroll','trackChanges','chatControls','clear','disableModelSelector','addFeedItemStaticMessage','addContextItem','enableModelSelector','setModel','startsWith','addFeedInteractionHeader','isPending','AITabs','TrackChanges','chat','6jiGeEZ','updateCapabilities','startInteraction','quickActionData','renderingStrategy','1875256aAGkoM','addFeedItemAIReply','setIsMaximized','isLoading','setModelList','interaction-header','options','updateFeedItemAIReplyContent','updateSuggestionPartState','delegate','clearConversationContextUI','updateSuggestionItem','showResizeButton','has','isBusy','addFeedItemAISuggestion','toggleSuggestionDisplayMode','setFeedItemRenderingStrategy','setConversationTitle','_interactionPromiseResolver','<p>','from','scrollToSuggestion'];_0x2330=function(){return _0xcb50d3;};return _0x2330();}import{AIChatView as _0x27ecae}from'./ui/aichatview.js';import{AITabs as _0x5ca0d6}from'../aitabs/aitabs.js';import{getTranslation as _0x404817}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x125337}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x543ae6}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x31cbc7}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3186af}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';function _0x47d6(_0x282cd8,_0x1ee269){const _0x23305a=_0x2330();return _0x47d6=function(_0x47d638,_0x18caf0){_0x47d638=_0x47d638-0x6f;let _0x41c0bf=_0x23305a[_0x47d638];return _0x41c0bf;},_0x47d6(_0x282cd8,_0x1ee269);}import{getEditorFromContext as _0x2ebfe9}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x4830ed}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x57184f{static get[_0x3563f4(0xaf)](){return[_0x5ca0d6];}[_0x3563f4(0x98)];static get[_0x3563f4(0xb6)](){const _0x3109e1=_0x3563f4;return _0x3109e1(0x114);}static get[_0x3563f4(0x6f)](){return!0x0;}static get[_0x3563f4(0x7a)](){return!0x0;}[_0x3563f4(0xc4)]=_0x3563f4(0x89);[_0x3563f4(0xab)]=!0x0;[_0x3563f4(0x95)];[_0x3563f4(0x102)];[_0x3563f4(0xb8)]=void 0x0;[_0x3563f4(0xad)]=!0x1;constructor(_0x2872f5){const _0x3cd9c3=_0x3563f4;super(_0x2872f5);const _0x39e399=this[_0x3cd9c3(0x70)][_0x3cd9c3(0xb5)][_0x3cd9c3(0x81)](_0x3cd9c3(0xe7));this[_0x3cd9c3(0x97)](_0x3cd9c3(0xfd),!0x1),this[_0x3cd9c3(0x95)]=new _0x31cbc7(),this[_0x3cd9c3(0x98)]=new _0x27ecae(this[_0x3cd9c3(0x70)][_0x3cd9c3(0xbe)],{'showResizeButton':_0x39e399[_0x3cd9c3(0xfb)],'contextResourcesSearchInputVisibleFrom':this[_0x3cd9c3(0x70)][_0x3cd9c3(0x106)][_0x3cd9c3(0x81)](_0x3cd9c3(0xbb))}),this[_0x3cd9c3(0x98)][_0x3cd9c3(0xf8)](..._0x3186af)['to'](this),this[_0x3cd9c3(0x98)]['on'](_0x3cd9c3(0xff),(_0x4aac14,{showDiff:_0x5205d1})=>{const _0x44984d=_0x3cd9c3;this[_0x44984d(0xab)]=_0x5205d1;}),_0x39e399[_0x3cd9c3(0xbc)][_0x3cd9c3(0x8c)]({'id':_0x3cd9c3(0xe9),'buttonLabel':_0x404817(this[_0x3cd9c3(0x70)][_0x3cd9c3(0xbe)],_0x3cd9c3(0xb2)),'buttonIcon':_0x125337,'order':0x0,'content':this[_0x3cd9c3(0x98)]}),this[_0x3cd9c3(0x98)][_0x3cd9c3(0xdd)][_0x3cd9c3(0xb3)](_0x3cd9c3(0xf2))['to'](this,_0x3cd9c3(0xfd),_0x521b0c=>_0x521b0c),this[_0x3cd9c3(0x98)][_0x3cd9c3(0x111)][_0x3cd9c3(0xb3)](_0x3cd9c3(0xe6))['to'](this,_0x3cd9c3(0xfd),_0x2d2986=>_0x2d2986),this[_0x3cd9c3(0x98)][_0x3cd9c3(0xdd)][_0x3cd9c3(0x10b)](this[_0x3cd9c3(0x107)]()),this[_0x3cd9c3(0xb3)](_0x3cd9c3(0xce))['to'](this[_0x3cd9c3(0x98)][_0x3cd9c3(0xdd)],_0x3cd9c3(0xce));}[_0x3563f4(0x7d)](){const _0x6d56fd=_0x3563f4;super[_0x6d56fd(0x7d)](),this[_0x6d56fd(0xb8)]&&clearInterval(this[_0x6d56fd(0xb8)]);}[_0x3563f4(0xc2)](_0x531e3e){const _0x16e8ae=_0x3563f4;this[_0x16e8ae(0x98)][_0x16e8ae(0x111)][_0x16e8ae(0xde)](),this[_0x16e8ae(0x98)][_0x16e8ae(0xdd)][_0x16e8ae(0xe2)](),this[_0x16e8ae(0x98)][_0x16e8ae(0xdd)][_0x16e8ae(0xf3)](_0x531e3e[_0x16e8ae(0x7b)],!this[_0x16e8ae(0x70)][_0x16e8ae(0x106)][_0x16e8ae(0x81)](_0x16e8ae(0xd0))),this[_0x16e8ae(0xe0)]({'id':_0x16e8ae(0xa8),'staticMessage':_0x404817(this[_0x16e8ae(0x70)][_0x16e8ae(0xbe)],_0x16e8ae(0xa3))});}[_0x3563f4(0xe0)]({id:_0x5212f0,staticMessage:_0x309ae8}){const _0x1b5a79=_0x3563f4;this[_0x1b5a79(0x98)][_0x1b5a79(0x111)][_0x1b5a79(0xd7)](_0x1b5a79(0x88),{'id':_0x5212f0,'initialContent':_0x1b5a79(0x103)+_0x309ae8+_0x1b5a79(0xd1)});}[_0x3563f4(0xd3)](_0x501074){const _0x287b92=_0x3563f4,_0x4a22a3=_0x501074[_0x287b92(0xed)]?.[_0x287b92(0xc6)]||_0x501074[_0x287b92(0xb0)];this[_0x287b92(0x98)][_0x287b92(0x111)][_0x287b92(0xd7)](_0x287b92(0x116),{'contextItems':Array[_0x287b92(0x104)](_0x501074[_0x287b92(0x99)][_0x287b92(0x110)]()),'initialContent':_0x287b92(0x103)+_0x4a22a3+_0x287b92(0xd1),'id':_0x501074['id']});}[_0x3563f4(0x96)]({errorMessage:_0x3a1733,id:_0x4c1c88}){const _0x511e4f=_0x3563f4;this[_0x511e4f(0x98)][_0x511e4f(0x111)][_0x511e4f(0xd7)](_0x511e4f(0xcb),{'initialContent':_0x511e4f(0x103)+_0x3a1733+_0x511e4f(0xd1),'id':_0x4c1c88});}[_0x3563f4(0xf0)](_0x1e5b55){const _0x1b22e7=_0x3563f4;return this[_0x1b22e7(0x95)][_0x1b22e7(0xaa)](async()=>{const _0x1f09b0=_0x1b22e7;this[_0x1f09b0(0x98)][_0x1f09b0(0x111)][_0x1f09b0(0xd7)](_0x1f09b0(0x88),{'id':_0x1e5b55[_0x1f09b0(0x108)]+':'+_0x1e5b55['id']}),this[_0x1f09b0(0xd6)](null);});}async[_0x3563f4(0xfe)](_0x2b00a4){const _0x19df24=_0x3563f4,_0x17274b=_0x2ebfe9(this[_0x19df24(0x70)]);let _0x89c813=_0x17274b[_0x19df24(0x106)][_0x19df24(0x81)](_0x19df24(0xbf))||[..._0x4830ed];if(_0x17274b[_0x19df24(0xb5)][_0x19df24(0xfc)](_0x19df24(0xe8))){if(!this[_0x19df24(0xad)]){this[_0x19df24(0xad)]=!0x0;const _0x963930=_0x17274b[_0x19df24(0xac)][_0x19df24(0x81)](_0x19df24(0xdc));this[_0x19df24(0x98)][_0x19df24(0x111)][_0x19df24(0xb3)](_0x19df24(0xd5))['to'](_0x963930,_0x19df24(0xc5));}}else _0x89c813=_0x89c813[_0x19df24(0x9d)](_0x507df7=>_0x19df24(0xa0)!=_0x507df7);return this[_0x19df24(0x95)][_0x19df24(0xaa)](async()=>{const _0x3285ad=_0x19df24;this[_0x3285ad(0x98)][_0x3285ad(0x111)][_0x3285ad(0xd7)](_0x3285ad(0x92),{'id':_0x2b00a4[_0x3285ad(0x108)]+':'+_0x2b00a4['id'],'areActionsDisabled':_0x2b00a4[_0x3285ad(0xa6)],'showDiff':this[_0x3285ad(0xab)],'availableActions':_0x89c813}),this[_0x3285ad(0xd6)](null);});}[_0x3563f4(0xe5)](_0x52c381,_0x534dab){const _0x425992=_0x3563f4,_0x579231=this[_0x425992(0x98)][_0x425992(0x111)][_0x425992(0x10e)][_0x425992(0xba)];if(_0x579231 instanceof _0x543ae6)return this[_0x425992(0x98)][_0x425992(0x111)][_0x425992(0x10e)][_0x425992(0x109)](_0x579231),void this[_0x425992(0x98)][_0x425992(0x111)][_0x425992(0xd7)](_0x425992(0xf4),{'id':_0x52c381['id'],'capabilities':{'isWebSearchEnabled':_0x579231[_0x425992(0x86)][_0x425992(0x9f)]||_0x534dab[_0x425992(0x9f)],'isReasoningEnabled':_0x579231[_0x425992(0x86)][_0x425992(0x75)]||_0x534dab[_0x425992(0x75)]}});this[_0x425992(0x98)][_0x425992(0x111)][_0x425992(0xd7)](_0x425992(0xf4),{'id':_0x52c381['id'],'capabilities':_0x534dab});}[_0x3563f4(0x79)](_0x249f73){const _0x20d0e6=_0x3563f4,_0x3a49c8=this[_0x20d0e6(0x98)][_0x20d0e6(0x111)][_0x20d0e6(0x10e)][_0x20d0e6(0xda)](_0x4053fd=>_0x4053fd[_0x20d0e6(0xf5)]['id']==_0x249f73['id']&&_0x4053fd instanceof _0x543ae6);_0x3a49c8&&_0x3a49c8[_0x20d0e6(0x97)](_0x20d0e6(0xc8),_0x249f73[_0x20d0e6(0xc8)]);}async[_0x3563f4(0xf6)](_0x1b2e34){const _0x1c2a73=_0x3563f4,_0x47ee52=_0x1b2e34[_0x1c2a73(0xee)]||this[_0x1c2a73(0xc4)];return this[_0x1c2a73(0x95)][_0x1c2a73(0xaa)](async _0x10ce57=>{const _0xeb8cd1=_0x1c2a73;await this[_0xeb8cd1(0x98)][_0xeb8cd1(0x111)][_0xeb8cd1(0x80)]({..._0x1b2e34,'abortSignal':_0x10ce57,'renderingStrategy':_0x47ee52}),_0x1b2e34[_0xeb8cd1(0x9e)]&&this[_0xeb8cd1(0xcd)](_0x1b2e34['id']);});}[_0x3563f4(0x10a)](_0x58474c,_0x3a6865){const _0x26bfe6=_0x3563f4;this[_0x26bfe6(0x98)][_0x26bfe6(0x111)][_0x26bfe6(0x77)](_0x58474c,_0x3a6865);}async[_0x3563f4(0xa5)](_0x104600){const _0x312b88=_0x3563f4,_0x38c910=_0x104600[_0x312b88(0xee)]||this[_0x312b88(0xc4)];return this[_0x312b88(0x95)][_0x312b88(0xaa)](async _0x2ff6f0=>{const _0x34c700=_0x312b88;await this[_0x34c700(0x98)][_0x34c700(0x111)][_0x34c700(0xfa)]({..._0x104600,'abortSignal':_0x2ff6f0,'renderingStrategy':_0x38c910}),_0x104600[_0x34c700(0x9e)]&&this[_0x34c700(0xcd)](_0x104600['id']);});}[_0x3563f4(0xb1)](_0x26ed28){const _0x19d638=_0x3563f4;this[_0x19d638(0x98)][_0x19d638(0x111)][_0x19d638(0xf7)](_0x26ed28);}[_0x3563f4(0xcd)](_0x5be70e){const _0x1fa41a=_0x3563f4;this[_0x1fa41a(0x98)][_0x1fa41a(0x111)][_0x1fa41a(0x9a)](_0x5be70e);}[_0x3563f4(0xb7)](_0x56e106){const _0xa27bc0=_0x3563f4;this[_0xa27bc0(0x98)][_0xa27bc0(0x111)][_0xa27bc0(0xa1)]()[_0xa27bc0(0x9d)](_0x5cfdfc=>_0x5cfdfc[_0xa27bc0(0xe4)](_0x56e106))[_0xa27bc0(0x112)](_0x2850ff=>this[_0xa27bc0(0x98)][_0xa27bc0(0x111)][_0xa27bc0(0x87)](_0x2850ff));}[_0x3563f4(0xec)](){const _0xc2f161=_0x3563f4;this[_0xc2f161(0xd6)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0xc2f161(0x98)][_0xc2f161(0xdd)][_0xc2f161(0xdf)](!this[_0xc2f161(0x70)][_0xc2f161(0x106)][_0xc2f161(0x81)](_0xc2f161(0xd0))),this[_0xc2f161(0xfd)]=!0x0,this[_0xc2f161(0x98)][_0xc2f161(0x111)][_0xc2f161(0xdb)]();}[_0x3563f4(0x10d)](_0x263c87){const _0x1af40b=_0x3563f4;this[_0x1af40b(0x95)][_0x1af40b(0x78)](),this[_0x1af40b(0x98)][_0x1af40b(0x111)][_0x1af40b(0xa1)]()[_0x1af40b(0x9d)](_0x295456=>_0x295456[_0x1af40b(0xe4)](_0x263c87['id']))[_0x1af40b(0x112)](_0x38e6ee=>this[_0x1af40b(0xcd)](_0x38e6ee)),this[_0x1af40b(0xfd)]=!0x1,this[_0x1af40b(0x98)][_0x1af40b(0x111)][_0x1af40b(0x9b)]();}async[_0x3563f4(0xc1)](){const _0x1155a7=_0x3563f4;return this[_0x1155a7(0x95)][_0x1155a7(0x74)][_0x1155a7(0x93)](()=>{const _0x2d58a1=_0x1155a7;this[_0x2d58a1(0xfd)]=!0x1,this[_0x2d58a1(0x98)][_0x2d58a1(0x111)][_0x2d58a1(0x9b)]();});}[_0x3563f4(0xe1)](_0x1d2b34,_0x317379){const _0x577dea=_0x3563f4;this[_0x577dea(0x98)][_0x577dea(0xdd)][_0x577dea(0xe1)](_0x1d2b34,_0x317379);}[_0x3563f4(0xb4)](_0x4cdb71){const _0x38578c=_0x3563f4;this[_0x38578c(0x98)][_0x38578c(0xdd)][_0x38578c(0xb4)](_0x4cdb71);}[_0x3563f4(0x72)](_0x2d6cf5,_0x238490){const _0x3e14f5=_0x3563f4;this[_0x3e14f5(0x98)][_0x3e14f5(0xdd)][_0x3e14f5(0x72)](_0x2d6cf5,_0x238490);}[_0x3563f4(0xc7)](_0x21d9b4){const _0x875e6d=_0x3563f4;this[_0x875e6d(0x98)][_0x875e6d(0xdd)][_0x875e6d(0xc7)](_0x21d9b4);}[_0x3563f4(0x84)](_0x34ed8e){const _0x521b7a=_0x3563f4;this[_0x521b7a(0x98)][_0x521b7a(0xdd)][_0x521b7a(0x84)](_0x34ed8e);}[_0x3563f4(0x115)](){const _0x4db0c7=_0x3563f4;this[_0x4db0c7(0x98)][_0x4db0c7(0xdd)][_0x4db0c7(0x115)]();}[_0x3563f4(0xf9)](){const _0x2c5749=_0x3563f4;this[_0x2c5749(0x98)][_0x2c5749(0xdd)][_0x2c5749(0xf9)]();}[_0x3563f4(0x8e)](_0x3725a8,_0xf8e643,_0x57e044){const _0x4392cf=_0x3563f4;this[_0x4392cf(0x98)][_0x4392cf(0xdd)][_0x4392cf(0x8e)](_0x3725a8,_0xf8e643,_0x57e044);}[_0x3563f4(0xb9)](){const _0x2ec29c=_0x3563f4;this[_0x2ec29c(0x98)][_0x2ec29c(0xdd)][_0x2ec29c(0xb9)](),this[_0x2ec29c(0x98)][_0x2ec29c(0xdd)][_0x2ec29c(0x10b)](this[_0x2ec29c(0x107)]());}[_0x3563f4(0xd9)](_0x5f106f){const _0x26f8e8=_0x3563f4;this[_0x26f8e8(0x98)][_0x26f8e8(0xdd)][_0x26f8e8(0xd9)](_0x5f106f);}[_0x3563f4(0xeb)](_0x59a133){const _0x394e9d=_0x3563f4;this[_0x394e9d(0x98)][_0x394e9d(0xdd)][_0x394e9d(0xa4)](_0x59a133[_0x394e9d(0x9f)]),this[_0x394e9d(0x98)][_0x394e9d(0xdd)][_0x394e9d(0xc0)](_0x59a133[_0x394e9d(0x75)]),this[_0x394e9d(0x98)][_0x394e9d(0xdd)][_0x394e9d(0x10b)](this[_0x394e9d(0x107)](_0x59a133));}[_0x3563f4(0xd8)](_0x210b4d,_0x329264){const _0x5a779b=_0x3563f4;this[_0x5a779b(0x98)][_0x5a779b(0xdd)][_0x5a779b(0xe3)](_0x210b4d),_0x329264&&this[_0x5a779b(0x98)][_0x5a779b(0xdd)][_0x5a779b(0xdf)](!0x1);}[_0x3563f4(0x100)](_0x425108){const _0x2ea85d=_0x3563f4;this[_0x2ea85d(0xc4)]=_0x425108;}[_0x3563f4(0xae)](_0x176e97){const _0x2b7a5f=_0x3563f4;this[_0x2b7a5f(0x98)][_0x2b7a5f(0x111)][_0x2b7a5f(0xae)](_0x176e97);}[_0x3563f4(0x76)](){const _0x48f049=_0x3563f4;this[_0x48f049(0x101)](_0x404817(this[_0x48f049(0x70)][_0x48f049(0xbe)],_0x48f049(0xb2)));}[_0x3563f4(0x101)](_0x5d8152,_0x1d7e21=!0x1){const _0x4380cf=_0x3563f4;if(_0x1d7e21&&!_0x486b0f()&&_0x5d8152[_0x4380cf(0xcf)])return this[_0x4380cf(0x98)][_0x4380cf(0x91)][_0x4380cf(0x82)]='',void this[_0x4380cf(0xc9)](_0x5d8152);this[_0x4380cf(0x98)][_0x4380cf(0x91)][_0x4380cf(0x82)]=_0x5d8152;}[_0x3563f4(0xd6)](_0x6cf509){const _0x41ad85=_0x3563f4,_0x4c66b0=this[_0x41ad85(0x8b)](_0x6cf509);this[_0x41ad85(0x98)][_0x41ad85(0x111)][_0x41ad85(0xd6)](_0x4c66b0);}[_0x3563f4(0xc9)](_0x140578){const _0x4a47b7=_0x3563f4;let _0x427745=0x0;clearInterval(this[_0x4a47b7(0xb8)]),this[_0x4a47b7(0xb8)]=setInterval(()=>{const _0x335346=_0x4a47b7;this[_0x335346(0x98)][_0x335346(0x91)][_0x335346(0x82)]=this[_0x335346(0x98)][_0x335346(0x91)][_0x335346(0x82)]+_0x140578[_0x427745],_0x427745++,_0x427745===_0x140578[_0x335346(0xcf)]&&clearInterval(this[_0x335346(0xb8)]);},0x1e);}[_0x3563f4(0xf1)](_0x39d919){const _0x246323=_0x3563f4;this[_0x246323(0x98)][_0x246323(0x91)][_0x246323(0xd4)]=_0x39d919;}[_0x3563f4(0x8b)](_0x3ee2ae){const _0x363fbd=_0x3563f4;return _0x3ee2ae?_0x3ee2ae[_0x363fbd(0x9f)]&&_0x3ee2ae[_0x363fbd(0x75)]?_0x404817(this[_0x363fbd(0x70)][_0x363fbd(0xbe)],_0x363fbd(0x83)):_0x3ee2ae[_0x363fbd(0x9f)]?_0x404817(this[_0x363fbd(0x70)][_0x363fbd(0xbe)],_0x363fbd(0xbd)):_0x3ee2ae[_0x363fbd(0x75)]?_0x404817(this[_0x363fbd(0x70)][_0x363fbd(0xbe)],_0x363fbd(0x113)):_0x404817(this[_0x363fbd(0x70)][_0x363fbd(0xbe)],_0x363fbd(0x10c)):'';}[_0x3563f4(0x107)](_0x1cab42){const _0x456fb1=_0x3563f4;return _0x1cab42?_0x1cab42[_0x456fb1(0x9f)]&&_0x1cab42[_0x456fb1(0x75)]?_0x404817(this[_0x456fb1(0x70)][_0x456fb1(0xbe)],_0x456fb1(0xca)):_0x1cab42[_0x456fb1(0x9f)]?_0x404817(this[_0x456fb1(0x70)][_0x456fb1(0xbe)],_0x456fb1(0x94)):_0x1cab42[_0x456fb1(0x75)]?_0x404817(this[_0x456fb1(0x70)][_0x456fb1(0xbe)],_0x456fb1(0xa7)):_0x404817(this[_0x456fb1(0x70)][_0x456fb1(0xbe)],_0x456fb1(0x10f)):_0x404817(this[_0x456fb1(0x70)][_0x456fb1(0xbe)],_0x456fb1(0x10f));}[_0x3563f4(0x8d)](_0x4af396,_0x4ac97d,_0x66695b,_0x2ea41f){const _0x890dc0=_0x3563f4;this[_0x890dc0(0x98)][_0x890dc0(0x8d)](_0x4af396,_0x4ac97d,_0x66695b,_0x2ea41f);}[_0x3563f4(0x90)](_0x149d9d){const _0x413ebf=_0x3563f4;this[_0x413ebf(0x98)][_0x413ebf(0x90)](_0x149d9d);}[_0x3563f4(0x7c)](){const _0xf80f6a=_0x3563f4;this[_0xf80f6a(0x98)][_0xf80f6a(0xdd)][_0xf80f6a(0x7c)]();}[_0x3563f4(0x8f)](_0x167568,_0x554ddd){const _0x3bb4b0=_0x3563f4;this[_0x3bb4b0(0x98)][_0x3bb4b0(0x111)][_0x3bb4b0(0x105)](_0x167568,_0x554ddd);}[_0x3563f4(0xdb)](){const _0x248ed6=_0x3563f4;this[_0x248ed6(0x98)][_0x248ed6(0x111)][_0x248ed6(0xdb)]();}[_0x3563f4(0xd2)](){const _0x3ed8e7=_0x3563f4;this[_0x3ed8e7(0x98)][_0x3ed8e7(0xdd)][_0x3ed8e7(0x73)]=!0x0;}[_0x3563f4(0x7f)](){const _0x3c3eec=_0x3563f4;this[_0x3c3eec(0x98)][_0x3c3eec(0xdd)][_0x3c3eec(0x73)]=!0x1;}}
|
|
23
|
+
const _0x2dbc2b=_0x5a3f;(function(_0x33d7a8,_0xb311bd){const _0x1acae1=_0x5a3f,_0x136551=_0x33d7a8();while(!![]){try{const _0x45e577=-parseInt(_0x1acae1(0x203))/0x1*(parseInt(_0x1acae1(0x192))/0x2)+-parseInt(_0x1acae1(0x172))/0x3*(parseInt(_0x1acae1(0x1d1))/0x4)+parseInt(_0x1acae1(0x1f5))/0x5+-parseInt(_0x1acae1(0x17d))/0x6*(parseInt(_0x1acae1(0x1b1))/0x7)+parseInt(_0x1acae1(0x1d0))/0x8*(parseInt(_0x1acae1(0x1dd))/0x9)+-parseInt(_0x1acae1(0x1a0))/0xa*(parseInt(_0x1acae1(0x179))/0xb)+parseInt(_0x1acae1(0x166))/0xc*(parseInt(_0x1acae1(0x1c9))/0xd);if(_0x45e577===_0xb311bd)break;else _0x136551['push'](_0x136551['shift']());}catch(_0x4c9ab4){_0x136551['push'](_0x136551['shift']());}}}(_0x4bbb,0xd92e6));import{ContextPlugin as _0x45d7cd}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x28d2fa}from'ckeditor5/src/utils.js';import{AIChatView as _0x1e4a78}from'./ui/aichatview.js';import{AITabs as _0x42f081}from'../aitabs/aitabs.js';import{getTranslation as _0x515d47}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x96cb73}from'ckeditor5/src/icons.js';function _0x5a3f(_0xb185d7,_0x148dca){const _0x4bbb14=_0x4bbb();return _0x5a3f=function(_0x5a3f6b,_0x1ef179){_0x5a3f6b=_0x5a3f6b-0x162;let _0x9702d6=_0x4bbb14[_0x5a3f6b];return _0x9702d6;},_0x5a3f(_0xb185d7,_0x148dca);}import{AIChatFeedInteractionHeaderView as _0x2a5d2f}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x8cc8de}from'./utils/promisequeue.js';function _0x4bbb(){const _0x22f2a8=['delegate','toggleLoadingSkeleton','startAutoScroll','chatControls','focusPromptInput','updateSuggestionItem','value','then','markFeedItemAsDone','ai-suggestion-reply','isOfficialPlugin','90toNOFF','addFeedInteractionHeader','_titleAnimationInterval','setModel','isWebSearchEnabled','_animateConversationTitle','find','conversation-start','get','_getLoadingMessage','AI_CHAT_WELCOME_MESSAGE','updateFeedItemAIReplySuggestionContent','showResizeButton','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','1590QtMEHT','plugins','queueEmptyPromise','availableModels','startsWith','resetMessageInput','remove','populateSourceResourceBalloon','stopInteraction','disableModelSelector','setReasoning','last','isModelAvailable','addFeedItemAIReply','enableControls','clearPendingContextUI','addFeedItemAISuggestion','7jQWFZh','destroy','_view','from','removeItem','setModelList','updateFeedItemAIReplySources','startInteraction','chatHeader','removeContextItem','TrackChanges','updateReplyItem','ai.availableReplyActions','showDiff','getItemIds','bind','displayedPrompt','AIChatUI','scrollFeedToSuggestion','config','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','pluginName','addFeedItemError','ai-reply','50024QCKubv','createConversation','context','setAddContextOptions','removeFeedInteraction','clearConversationContextUI','error-message','1484968KAOzkW','80488lCXqwg','interaction-header','contextItems','isTrackChangesOn','setSelectedModel','chatFeed','updateSuggestionPartState','capabilities','AITabs','commands','children','quickActionData','9hXaflt','scrollToSuggestion','<p>','addItem','_getInputPlaceholder','isLoading','finishInteraction','forEach','isDisabled','isPending','addFeedItemUserMessage','updateFeedItemAIReplySuggestionPartState','setIsMaximized','isVisible','enqueue','setConversationContext','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','abort','requires','disableControls','updateWebSources','updateFeedInteractionHeader','has','setLoadingMessage','4509985KbsYhX','updateCapabilities','renderingStrategy','clear','setWebSearch','stopAutoScroll','isMaximized','options','areActionsDisabled','updateFeedItemAIReplyContent','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','AI_CHAT_HEADING','updateResourceState','setConversationTitle','26669uvfTkk','user-message','_promiseQueue','filter','setIsUploadInProgress','streaming','length','closeSourceResourceBalloon','_interactionPromiseResolver','addFeedItemStaticMessage','isPremiumPlugin','chat','markItemAsDone','7800bqVHsU','interactionId','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','ai.chat.models.modelSelectorAlwaysVisible','label','</p>','toggleSuggestionDisplayMode','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','locale','view','87NIXekK','userMessage','setContextItemLoading','isDone','feedItemRenderingStrategy','ai.chat.context.searchInputVisibleFrom','isBusy','38654gHJjMC','insertSuggestion','setFeedItemRenderingStrategy','resetConversationTitle','2141250qkvJTl','addContextItem','_isTrackChangesCommandValueBound','values','addTab','isReasoningEnabled','trackChanges','set','enableModelSelector','setInputPlaceholder'];_0x4bbb=function(){return _0x22f2a8;};return _0x4bbb();}import{AI_CHAT_UI_EVENT_NAMES as _0x3502c8}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x2cded5}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x2c79ab}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x45d7cd{static get[_0x2dbc2b(0x1ef)](){return[_0x42f081];}[_0x2dbc2b(0x1b3)];static get[_0x2dbc2b(0x1c6)](){const _0xc87111=_0x2dbc2b;return _0xc87111(0x1c2);}static get[_0x2dbc2b(0x191)](){return!0x0;}static get[_0x2dbc2b(0x163)](){return!0x0;}[_0x2dbc2b(0x176)]=_0x2dbc2b(0x208);[_0x2dbc2b(0x1be)]=!0x0;[_0x2dbc2b(0x205)];[_0x2dbc2b(0x20b)];[_0x2dbc2b(0x194)]=void 0x0;[_0x2dbc2b(0x17f)]=!0x1;constructor(_0x595e8f){const _0x2212f9=_0x2dbc2b;super(_0x595e8f);const _0x2115f4=this[_0x2212f9(0x1cb)][_0x2212f9(0x1a1)][_0x2212f9(0x19a)](_0x2212f9(0x1d9));this[_0x2212f9(0x184)](_0x2212f9(0x178),!0x1),this[_0x2212f9(0x205)]=new _0x8cc8de(),this[_0x2212f9(0x1b3)]=new _0x1e4a78(this[_0x2212f9(0x1cb)][_0x2212f9(0x170)],{'showResizeButton':_0x2115f4[_0x2212f9(0x19e)],'contextResourcesSearchInputVisibleFrom':this[_0x2212f9(0x1cb)][_0x2212f9(0x1c4)][_0x2212f9(0x19a)](_0x2212f9(0x177))}),this[_0x2212f9(0x1b3)][_0x2212f9(0x187)](..._0x3502c8)['to'](this),this[_0x2212f9(0x1b3)]['on'](_0x2212f9(0x16e),(_0x5dc0d9,{showDiff:_0x506b4e})=>{const _0x53d0a7=_0x2212f9;this[_0x53d0a7(0x1be)]=_0x506b4e;}),_0x2115f4[_0x2212f9(0x171)][_0x2212f9(0x181)]({'id':_0x2212f9(0x164),'buttonLabel':_0x515d47(this[_0x2212f9(0x1cb)][_0x2212f9(0x170)],_0x2212f9(0x200)),'buttonIcon':_0x96cb73,'order':0x0,'content':this[_0x2212f9(0x1b3)]}),this[_0x2212f9(0x1b3)][_0x2212f9(0x18a)][_0x2212f9(0x1c0)](_0x2212f9(0x1e2))['to'](this,_0x2212f9(0x178),_0x34a110=>_0x34a110),this[_0x2212f9(0x1b3)][_0x2212f9(0x1d6)][_0x2212f9(0x1c0)](_0x2212f9(0x1e6))['to'](this,_0x2212f9(0x178),_0x5ce88f=>_0x5ce88f),this[_0x2212f9(0x1b3)][_0x2212f9(0x18a)][_0x2212f9(0x186)](this[_0x2212f9(0x1e1)]()),this[_0x2212f9(0x1c0)](_0x2212f9(0x1ac))['to'](this[_0x2212f9(0x1b3)][_0x2212f9(0x18a)],_0x2212f9(0x1ac));}[_0x2dbc2b(0x1b2)](){const _0x573330=_0x2dbc2b;super[_0x573330(0x1b2)](),this[_0x573330(0x194)]&&clearInterval(this[_0x573330(0x194)]);}[_0x2dbc2b(0x1ca)](_0x14c639){const _0x41e848=_0x2dbc2b;this[_0x41e848(0x1b3)][_0x41e848(0x1d6)][_0x41e848(0x1f8)](),this[_0x41e848(0x1b3)][_0x41e848(0x18a)][_0x41e848(0x185)](),this[_0x41e848(0x1b3)][_0x41e848(0x18a)][_0x41e848(0x1b6)](_0x14c639[_0x41e848(0x1a3)],!this[_0x41e848(0x1cb)][_0x41e848(0x1c4)][_0x41e848(0x19a)](_0x41e848(0x16b))),this[_0x41e848(0x162)]({'id':_0x41e848(0x199),'staticMessage':_0x515d47(this[_0x41e848(0x1cb)][_0x41e848(0x170)],_0x41e848(0x19c))});}[_0x2dbc2b(0x162)]({id:_0x10f8fb,staticMessage:_0xfdb511}){const _0x4802e9=_0x2dbc2b;this[_0x4802e9(0x1b3)][_0x4802e9(0x1d6)][_0x4802e9(0x1e0)](_0x4802e9(0x1c8),{'id':_0x10f8fb,'initialContent':_0x4802e9(0x1df)+_0xfdb511+_0x4802e9(0x16d)});}[_0x2dbc2b(0x1e7)](_0x4c6bdb){const _0x560a3a=_0x2dbc2b,_0x52a25d=_0x4c6bdb[_0x560a3a(0x1dc)]?.[_0x560a3a(0x1c1)]||_0x4c6bdb[_0x560a3a(0x173)];this[_0x560a3a(0x1b3)][_0x560a3a(0x1d6)][_0x560a3a(0x1e0)](_0x560a3a(0x204),{'contextItems':Array[_0x560a3a(0x1b4)](_0x4c6bdb[_0x560a3a(0x1d3)][_0x560a3a(0x180)]()),'initialContent':_0x560a3a(0x1df)+_0x52a25d+_0x560a3a(0x16d),'id':_0x4c6bdb['id']});}[_0x2dbc2b(0x1c7)]({errorMessage:_0x4d1a89,id:_0x3c9de7}){const _0xe5c56e=_0x2dbc2b;this[_0xe5c56e(0x1b3)][_0xe5c56e(0x1d6)][_0xe5c56e(0x1e0)](_0xe5c56e(0x1cf),{'initialContent':_0xe5c56e(0x1df)+_0x4d1a89+_0xe5c56e(0x16d),'id':_0x3c9de7});}[_0x2dbc2b(0x1ad)](_0x292fc6){const _0x29b1d2=_0x2dbc2b;return this[_0x29b1d2(0x205)][_0x29b1d2(0x1eb)](async()=>{const _0x2d7caa=_0x29b1d2;this[_0x2d7caa(0x1b3)][_0x2d7caa(0x1d6)][_0x2d7caa(0x1e0)](_0x2d7caa(0x1c8),{'id':_0x292fc6[_0x2d7caa(0x167)]+':'+_0x292fc6['id']}),this[_0x2d7caa(0x1f4)](null);});}async[_0x2dbc2b(0x1b0)](_0xc37d1a){const _0x1cc637=_0x2dbc2b,_0x404742=_0x2cded5(this[_0x1cc637(0x1cb)]);let _0x3994bd=_0x404742[_0x1cc637(0x1c4)][_0x1cc637(0x19a)](_0x1cc637(0x1bd))||[..._0x2c79ab];if(_0x404742[_0x1cc637(0x1a1)][_0x1cc637(0x1f3)](_0x1cc637(0x1bb))){if(!this[_0x1cc637(0x17f)]){this[_0x1cc637(0x17f)]=!0x0;const _0x16cfca=_0x404742[_0x1cc637(0x1da)][_0x1cc637(0x19a)](_0x1cc637(0x183));this[_0x1cc637(0x1b3)][_0x1cc637(0x1d6)][_0x1cc637(0x1c0)](_0x1cc637(0x1d4))['to'](_0x16cfca,_0x1cc637(0x18d));}}else _0x3994bd=_0x3994bd[_0x1cc637(0x206)](_0x32d7d1=>_0x1cc637(0x17a)!=_0x32d7d1);return this[_0x1cc637(0x205)][_0x1cc637(0x1eb)](async()=>{const _0x3c1d7d=_0x1cc637;this[_0x3c1d7d(0x1b3)][_0x3c1d7d(0x1d6)][_0x3c1d7d(0x1e0)](_0x3c1d7d(0x190),{'id':_0xc37d1a[_0x3c1d7d(0x167)]+':'+_0xc37d1a['id'],'areActionsDisabled':_0xc37d1a[_0x3c1d7d(0x1fd)],'showDiff':this[_0x3c1d7d(0x1be)],'availableActions':_0x3994bd}),this[_0x3c1d7d(0x1f4)](null);});}[_0x2dbc2b(0x193)](_0x4983ac,_0xb38f4f){const _0xb5b057=_0x2dbc2b,_0x2e7239=this[_0xb5b057(0x1b3)][_0xb5b057(0x1d6)][_0xb5b057(0x1db)][_0xb5b057(0x1ab)];if(_0x2e7239 instanceof _0x2a5d2f)return this[_0xb5b057(0x1b3)][_0xb5b057(0x1d6)][_0xb5b057(0x1db)][_0xb5b057(0x1a6)](_0x2e7239),void this[_0xb5b057(0x1b3)][_0xb5b057(0x1d6)][_0xb5b057(0x1e0)](_0xb5b057(0x1d2),{'id':_0x4983ac['id'],'capabilities':{'isWebSearchEnabled':_0x2e7239[_0xb5b057(0x1d8)][_0xb5b057(0x196)]||_0xb38f4f[_0xb5b057(0x196)],'isReasoningEnabled':_0x2e7239[_0xb5b057(0x1d8)][_0xb5b057(0x182)]||_0xb38f4f[_0xb5b057(0x182)]}});this[_0xb5b057(0x1b3)][_0xb5b057(0x1d6)][_0xb5b057(0x1e0)](_0xb5b057(0x1d2),{'id':_0x4983ac['id'],'capabilities':_0xb38f4f});}[_0x2dbc2b(0x1f2)](_0x152413){const _0x54ee83=_0x2dbc2b,_0x4fbd81=this[_0x54ee83(0x1b3)][_0x54ee83(0x1d6)][_0x54ee83(0x1db)][_0x54ee83(0x198)](_0x2e5ab6=>_0x2e5ab6[_0x54ee83(0x1fc)]['id']==_0x152413['id']&&_0x2e5ab6 instanceof _0x2a5d2f);_0x4fbd81&&_0x4fbd81[_0x54ee83(0x184)](_0x54ee83(0x1ea),_0x152413[_0x54ee83(0x1ea)]);}async[_0x2dbc2b(0x1fe)](_0x537c56){const _0x27ae6f=_0x2dbc2b,_0x200ce6=_0x537c56[_0x27ae6f(0x1f7)]||this[_0x27ae6f(0x176)];return this[_0x27ae6f(0x205)][_0x27ae6f(0x1eb)](async _0x37bc90=>{const _0x2adea9=_0x27ae6f;await this[_0x2adea9(0x1b3)][_0x2adea9(0x1d6)][_0x2adea9(0x1bc)]({..._0x537c56,'abortSignal':_0x37bc90,'renderingStrategy':_0x200ce6}),_0x537c56[_0x2adea9(0x175)]&&this[_0x2adea9(0x18f)](_0x537c56['id']);});}[_0x2dbc2b(0x1b7)](_0x5a651a,_0x1a7b57){const _0x1b2394=_0x2dbc2b;this[_0x1b2394(0x1b3)][_0x1b2394(0x1d6)][_0x1b2394(0x1f1)](_0x5a651a,_0x1a7b57);}async[_0x2dbc2b(0x19d)](_0x342906){const _0x4958cf=_0x2dbc2b,_0x555c0c=_0x342906[_0x4958cf(0x1f7)]||this[_0x4958cf(0x176)];return this[_0x4958cf(0x205)][_0x4958cf(0x1eb)](async _0x20cde0=>{const _0x5dcba4=_0x4958cf;await this[_0x5dcba4(0x1b3)][_0x5dcba4(0x1d6)][_0x5dcba4(0x18c)]({..._0x342906,'abortSignal':_0x20cde0,'renderingStrategy':_0x555c0c}),_0x342906[_0x5dcba4(0x175)]&&this[_0x5dcba4(0x18f)](_0x342906['id']);});}[_0x2dbc2b(0x1e8)](_0x5a2c4f){const _0x59d932=_0x2dbc2b;this[_0x59d932(0x1b3)][_0x59d932(0x1d6)][_0x59d932(0x1d7)](_0x5a2c4f);}[_0x2dbc2b(0x18f)](_0x2e83fa){const _0x4d0290=_0x2dbc2b;this[_0x4d0290(0x1b3)][_0x4d0290(0x1d6)][_0x4d0290(0x165)](_0x2e83fa);}[_0x2dbc2b(0x1cd)](_0x4745be){const _0x5cc10f=_0x2dbc2b;this[_0x5cc10f(0x1b3)][_0x5cc10f(0x1d6)][_0x5cc10f(0x1bf)]()[_0x5cc10f(0x206)](_0x50368e=>_0x50368e[_0x5cc10f(0x1a4)](_0x4745be))[_0x5cc10f(0x1e4)](_0x1f7f55=>this[_0x5cc10f(0x1b3)][_0x5cc10f(0x1d6)][_0x5cc10f(0x1b5)](_0x1f7f55));}[_0x2dbc2b(0x1b8)](){const _0x555b65=_0x2dbc2b;this[_0x555b65(0x1f4)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x555b65(0x1b3)][_0x555b65(0x18a)][_0x555b65(0x1a9)](!this[_0x555b65(0x1cb)][_0x555b65(0x1c4)][_0x555b65(0x19a)](_0x555b65(0x16b))),this[_0x555b65(0x178)]=!0x0,this[_0x555b65(0x1b3)][_0x555b65(0x1d6)][_0x555b65(0x189)]();}[_0x2dbc2b(0x1a8)](_0x325cb5){const _0x36c418=_0x2dbc2b;this[_0x36c418(0x205)][_0x36c418(0x1ee)](),this[_0x36c418(0x1b3)][_0x36c418(0x1d6)][_0x36c418(0x1bf)]()[_0x36c418(0x206)](_0x1d37df=>_0x1d37df[_0x36c418(0x1a4)](_0x325cb5['id']))[_0x36c418(0x1e4)](_0x56d749=>this[_0x36c418(0x18f)](_0x56d749)),this[_0x36c418(0x178)]=!0x1,this[_0x36c418(0x1b3)][_0x36c418(0x1d6)][_0x36c418(0x1fa)]();}async[_0x2dbc2b(0x1e3)](){const _0x3ed061=_0x2dbc2b;return this[_0x3ed061(0x205)][_0x3ed061(0x1a2)][_0x3ed061(0x18e)](()=>{const _0x2f2c7a=_0x3ed061;this[_0x2f2c7a(0x178)]=!0x1,this[_0x2f2c7a(0x1b3)][_0x2f2c7a(0x1d6)][_0x2f2c7a(0x1fa)]();});}[_0x2dbc2b(0x17e)](_0x17142f,_0x2c9009){const _0xfdb452=_0x2dbc2b;this[_0xfdb452(0x1b3)][_0xfdb452(0x18a)][_0xfdb452(0x17e)](_0x17142f,_0x2c9009);}[_0x2dbc2b(0x1ba)](_0x5c273b){const _0x3926e3=_0x2dbc2b;this[_0x3926e3(0x1b3)][_0x3926e3(0x18a)][_0x3926e3(0x1ba)](_0x5c273b);}[_0x2dbc2b(0x174)](_0xcfe8f0,_0x2f8af1){const _0x51f918=_0x2dbc2b;this[_0x51f918(0x1b3)][_0x51f918(0x18a)][_0x51f918(0x174)](_0xcfe8f0,_0x2f8af1);}[_0x2dbc2b(0x207)](_0x4f2527){const _0x43fd30=_0x2dbc2b;this[_0x43fd30(0x1b3)][_0x43fd30(0x18a)][_0x43fd30(0x207)](_0x4f2527);}[_0x2dbc2b(0x1ec)](_0x1dcc9d){const _0x3ca2d8=_0x2dbc2b;this[_0x3ca2d8(0x1b3)][_0x3ca2d8(0x18a)][_0x3ca2d8(0x1ec)](_0x1dcc9d);}[_0x2dbc2b(0x1af)](){const _0x8fcd6b=_0x2dbc2b;this[_0x8fcd6b(0x1b3)][_0x8fcd6b(0x18a)][_0x8fcd6b(0x1af)]();}[_0x2dbc2b(0x1ce)](){const _0x522189=_0x2dbc2b;this[_0x522189(0x1b3)][_0x522189(0x18a)][_0x522189(0x1ce)]();}[_0x2dbc2b(0x201)](_0x3e6e07,_0x777877,_0x11f89a){const _0x28e706=_0x2dbc2b;this[_0x28e706(0x1b3)][_0x28e706(0x18a)][_0x28e706(0x201)](_0x3e6e07,_0x777877,_0x11f89a);}[_0x2dbc2b(0x1a5)](){const _0x3ce95b=_0x2dbc2b;this[_0x3ce95b(0x1b3)][_0x3ce95b(0x18a)][_0x3ce95b(0x1a5)](),this[_0x3ce95b(0x1b3)][_0x3ce95b(0x18a)][_0x3ce95b(0x186)](this[_0x3ce95b(0x1e1)]());}[_0x2dbc2b(0x1cc)](_0x403f88){const _0x32441e=_0x2dbc2b;this[_0x32441e(0x1b3)][_0x32441e(0x18a)][_0x32441e(0x1cc)](_0x403f88);}[_0x2dbc2b(0x1f6)](_0x128d5d){const _0x48e078=_0x2dbc2b;this[_0x48e078(0x1b3)][_0x48e078(0x18a)][_0x48e078(0x1f9)](_0x128d5d[_0x48e078(0x196)]),this[_0x48e078(0x1b3)][_0x48e078(0x18a)][_0x48e078(0x1aa)](_0x128d5d[_0x48e078(0x182)]),this[_0x48e078(0x1b3)][_0x48e078(0x18a)][_0x48e078(0x186)](this[_0x48e078(0x1e1)](_0x128d5d));}[_0x2dbc2b(0x1d5)](_0x46f7f4,_0x230fc2){const _0x4d8ba3=_0x2dbc2b;this[_0x4d8ba3(0x1b3)][_0x4d8ba3(0x18a)][_0x4d8ba3(0x195)](_0x46f7f4),_0x230fc2&&this[_0x4d8ba3(0x1b3)][_0x4d8ba3(0x18a)][_0x4d8ba3(0x1a9)](!0x1);}[_0x2dbc2b(0x17b)](_0x4b45ba){const _0x30fb81=_0x2dbc2b;this[_0x30fb81(0x176)]=_0x4b45ba;}[_0x2dbc2b(0x188)](_0x401be6){const _0x5e11ab=_0x2dbc2b;this[_0x5e11ab(0x1b3)][_0x5e11ab(0x1d6)][_0x5e11ab(0x188)](_0x401be6);}[_0x2dbc2b(0x17c)](){const _0x39b6f2=_0x2dbc2b;this[_0x39b6f2(0x202)](_0x515d47(this[_0x39b6f2(0x1cb)][_0x39b6f2(0x170)],_0x39b6f2(0x200)));}[_0x2dbc2b(0x202)](_0x545987,_0x24b843=!0x1){const _0x4fcbac=_0x2dbc2b;if(_0x24b843&&!_0x28d2fa()&&_0x545987[_0x4fcbac(0x209)])return this[_0x4fcbac(0x1b3)][_0x4fcbac(0x1b9)][_0x4fcbac(0x16c)]='',void this[_0x4fcbac(0x197)](_0x545987);this[_0x4fcbac(0x1b3)][_0x4fcbac(0x1b9)][_0x4fcbac(0x16c)]=_0x545987;}[_0x2dbc2b(0x1f4)](_0x5e8f56){const _0x473a6d=_0x2dbc2b,_0xa3cc75=this[_0x473a6d(0x19b)](_0x5e8f56);this[_0x473a6d(0x1b3)][_0x473a6d(0x1d6)][_0x473a6d(0x1f4)](_0xa3cc75);}[_0x2dbc2b(0x197)](_0x10bba2){const _0x51003d=_0x2dbc2b;let _0x591a07=0x0;clearInterval(this[_0x51003d(0x194)]),this[_0x51003d(0x194)]=setInterval(()=>{const _0x493934=_0x51003d;this[_0x493934(0x1b3)][_0x493934(0x1b9)][_0x493934(0x16c)]=this[_0x493934(0x1b3)][_0x493934(0x1b9)][_0x493934(0x16c)]+_0x10bba2[_0x591a07],_0x591a07++,_0x591a07===_0x10bba2[_0x493934(0x209)]&&clearInterval(this[_0x493934(0x194)]);},0x1e);}[_0x2dbc2b(0x1e9)](_0x3ce2b0){const _0x3e6325=_0x2dbc2b;this[_0x3e6325(0x1b3)][_0x3e6325(0x1b9)][_0x3e6325(0x1fb)]=_0x3ce2b0;}[_0x2dbc2b(0x19b)](_0x127277){const _0x5de9b4=_0x2dbc2b;return _0x127277?_0x127277[_0x5de9b4(0x196)]&&_0x127277[_0x5de9b4(0x182)]?_0x515d47(this[_0x5de9b4(0x1cb)][_0x5de9b4(0x170)],_0x5de9b4(0x169)):_0x127277[_0x5de9b4(0x196)]?_0x515d47(this[_0x5de9b4(0x1cb)][_0x5de9b4(0x170)],_0x5de9b4(0x1ff)):_0x127277[_0x5de9b4(0x182)]?_0x515d47(this[_0x5de9b4(0x1cb)][_0x5de9b4(0x170)],_0x5de9b4(0x168)):_0x515d47(this[_0x5de9b4(0x1cb)][_0x5de9b4(0x170)],_0x5de9b4(0x19f)):'';}[_0x2dbc2b(0x1e1)](_0x2d750b){const _0x42634e=_0x2dbc2b;return _0x2d750b?_0x2d750b[_0x42634e(0x196)]&&_0x2d750b[_0x42634e(0x182)]?_0x515d47(this[_0x42634e(0x1cb)][_0x42634e(0x170)],_0x42634e(0x1c5)):_0x2d750b[_0x42634e(0x196)]?_0x515d47(this[_0x42634e(0x1cb)][_0x42634e(0x170)],_0x42634e(0x16a)):_0x2d750b[_0x42634e(0x182)]?_0x515d47(this[_0x42634e(0x1cb)][_0x42634e(0x170)],_0x42634e(0x16f)):_0x515d47(this[_0x42634e(0x1cb)][_0x42634e(0x170)],_0x42634e(0x1ed)):_0x515d47(this[_0x42634e(0x1cb)][_0x42634e(0x170)],_0x42634e(0x1ed));}[_0x2dbc2b(0x1a7)](_0x13fa8a,_0x2069a1,_0x2cffd4,_0x13a728){const _0x1e9b4e=_0x2dbc2b;this[_0x1e9b4e(0x1b3)][_0x1e9b4e(0x1a7)](_0x13fa8a,_0x2069a1,_0x2cffd4,_0x13a728);}[_0x2dbc2b(0x20a)](_0x59177d){const _0x3ddd11=_0x2dbc2b;this[_0x3ddd11(0x1b3)][_0x3ddd11(0x20a)](_0x59177d);}[_0x2dbc2b(0x18b)](){const _0x25f228=_0x2dbc2b;this[_0x25f228(0x1b3)][_0x25f228(0x18a)][_0x25f228(0x18b)]();}[_0x2dbc2b(0x1c3)](_0x15231f,_0x5de3f9){const _0x543749=_0x2dbc2b;this[_0x543749(0x1b3)][_0x543749(0x1d6)][_0x543749(0x1de)](_0x15231f,_0x5de3f9);}[_0x2dbc2b(0x189)](){const _0x432d50=_0x2dbc2b;this[_0x432d50(0x1b3)][_0x432d50(0x1d6)][_0x432d50(0x189)]();}[_0x2dbc2b(0x1f0)](){const _0x3110ae=_0x2dbc2b;this[_0x3110ae(0x1b3)][_0x3110ae(0x18a)][_0x3110ae(0x1e5)]=!0x0;}[_0x2dbc2b(0x1ae)](){const _0x59d142=_0x2dbc2b;this[_0x59d142(0x1b3)][_0x59d142(0x18a)][_0x59d142(0x1e5)]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xfc34d3=_0x4647;(function(_0x27f06f,_0x487c1c){const _0x443465=_0x4647,_0x53b66b=_0x27f06f();while(!![]){try{const _0xfdb75c=-parseInt(_0x443465(0xf0))/0x1+parseInt(_0x443465(0xb5))/0x2*(parseInt(_0x443465(0xde))/0x3)+parseInt(_0x443465(0xc9))/0x4*(parseInt(_0x443465(0x69))/0x5)+parseInt(_0x443465(0x9d))/0x6+parseInt(_0x443465(0x6f))/0x7+parseInt(_0x443465(0x71))/0x8+-parseInt(_0x443465(0xdd))/0x9;if(_0xfdb75c===_0x487c1c)break;else _0x53b66b['push'](_0x53b66b['shift']());}catch(_0x537854){_0x53b66b['push'](_0x53b66b['shift']());}}}(_0x1a1a,0xf32da));import{CKEditorError as _0xef393d,ObservableMixin as _0x3555f4,uid as _0x37f04c}from'ckeditor5/src/utils.js';function _0x4647(_0x5d0c54,_0x12ad98){const _0x1a1a9b=_0x1a1a();return _0x4647=function(_0x464708,_0x5a656a){_0x464708=_0x464708-0x65;let _0x4daf4b=_0x1a1a9b[_0x464708];return _0x4daf4b;},_0x4647(_0x5d0c54,_0x12ad98);}import{AIContextItemType as _0x28b210,AIContextTextResourceType as _0x8c66f6}from'../../aicore/model/aicontext.js';import{escape as _0x34a956}from'es-toolkit/compat';import{errorsMap as _0x187db4}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0xfc34d3(0xea),_0xfc34d3(0x6d),_0xfc34d3(0xb4),_0xfc34d3(0xd3),_0xfc34d3(0xed),_0xfc34d3(0xbb),_0xfc34d3(0xe5),_0xfc34d3(0x70),_0xfc34d3(0x86)];function _0x1a1a(){const _0x22d3de=['version','delete','string','clearPendingContextItems','enabled','FILE','_createContextItemFromContent','_connector','URL','init','_finishUploadOperation','_isResourceInContext','message','end','current-document','277716oIJPjx','uploadDocument','urls','removeFromContext','_getCustomSourcesInitialState','values','isHidden','ai-chat-document-upload-failed','_conversationContextItems','abort','SELECTION','get','populateFromMessage','ai-chat-source-resources-load-failed','ai-chat-context-unsupported-type','DOCUMENT','document','url','getSentContextItems','_removeContextItem','_convertTextResourceToFile','_pendingContextItems','start','contextItemLoadingEnded','4QwaLiI','ai-chat-source-not-found','content','label','ai-chat-resource-load-failed','_addToConversationContextItem','addContextOptionsChanged','addResourceToContext','ai-chat-resource-no-data','ai-request-aborted','push','uiId','_ongoingUploadOperations','ai-chat-url-upload-failed','TEXT','File','text/markdown','getId','text/plain','abortController','5188ftIWqf','name','isCurrentDocumentInContext','_addContextItem','object\x20with\x20content\x20and\x20type\x20properties','code','fire','_addContextOptionsState','sources','_startUploadOperation','contextSent','_finishContextItemLoading','hidden','all','_config','files-','ai-chat-file-upload-failed','isSelectionInContext','addToConversationContext','getResources','6778080lPRVSJ','1584309rwpAuY','_ownerId','length','files','mapContextItemsToRequestData','stack','ai-chat-context-invalid-data','sourceResourcesLoaded','url-','_findSourceIdsByResourceId','addSelectionToContext','resources','contextItemAdded','size','getData','error','Current\x20document','addUrlToContext','1598626RWwQwL','addCurrentDocumentToContext','_mapContextItemToRequestData','sessionId','getDocument','updateCurrentDocument','isCurrentDocumentInConversation','1995qGDJDs','uploadFile','uploadUrl','filter','contextItemRemoved','getPendingContextItems','4852330FiVDYZ','resourceStateChanged','8276952yNcFmG','text/html','removeSelectionFromContext','HTML','MARKDOWN','isReadOnly','set','has','addFilesToContext','attributes','file-','resourceId','from','find','loadSourceResources','_updateResourceInContextState','map','type','selection','object','_ongoingUploads','uploadProgressChanged','fetchDocument','_toggleAddCurrentDocumentOptionVisibility','startsWith','_setAddContextOptionsDefaultState','data','isInContext','forEach'];_0x1a1a=function(){return _0x22d3de;};return _0x1a1a();}export class AIChatContext extends _0x3555f4(){[_0xfc34d3(0x95)];[_0xfc34d3(0xd7)];[_0xfc34d3(0xdf)];constructor({connector:_0x8bf444,config:_0x25f9ab,ownerId:_0x3c8784}){const _0x409335=_0xfc34d3;super(),this[_0x409335(0x95)]=_0x8bf444,this[_0x409335(0xd7)]=_0x25f9ab,this[_0x409335(0xdf)]=_0x3c8784;}[_0xfc34d3(0x97)](){const _0x4408ef=_0xfc34d3;this[_0x4408ef(0xb2)]=new Map(),this[_0x4408ef(0xa5)]=new Map(),this[_0x4408ef(0x85)]=new Map(),this[_0x4408ef(0xc1)]=new Map(),this[_0x4408ef(0x8a)]();}[_0xfc34d3(0x6e)](){const _0x693fd9=_0xfc34d3;return this[_0x693fd9(0xb2)];}async[_0xfc34d3(0xa9)](_0x546671){const _0x5c47ce=_0xfc34d3,_0x3d1063=await this[_0x5c47ce(0x94)](_0x546671);return this[_0x5c47ce(0xba)](_0x3d1063),_0x5c47ce(0x9c)===_0x3d1063[_0x5c47ce(0xc0)]&&this[_0x5c47ce(0x88)](),_0x3d1063;}async[_0xfc34d3(0x94)](_0x22a74f){const _0x5f2c66=_0xfc34d3;if(_0x22a74f[_0x5f2c66(0x82)]===_0x28b210[_0x5f2c66(0xac)]){const _0x3737c8=await this[_0x5f2c66(0x95)][_0x5f2c66(0x87)](this[_0x5f2c66(0xdf)],_0x22a74f['id'])[_0x5f2c66(0x66)]();return{'id':_0x5f2c66(0x9c),'uiId':_0x5f2c66(0x9c),'label':_0x5f2c66(0xee),'type':_0x22a74f[_0x5f2c66(0x82)],'content':_0x3737c8[_0x5f2c66(0xb7)],'hidden':this[_0x5f2c66(0xa5)][_0x5f2c66(0x78)](_0x5f2c66(0x9c)),'version':_0x3737c8[_0x5f2c66(0x7a)]?.[_0x5f2c66(0x8e)],'sessionId':_0x3737c8[_0x5f2c66(0x7a)]?.[_0x5f2c66(0x65)]};}return{'id':_0x22a74f['id'],'uiId':_0x22a74f['id'],'label':_0x22a74f[_0x5f2c66(0x7a)]?.[_0x5f2c66(0xb8)]||_0x22a74f[_0x5f2c66(0xca)]||_0x22a74f[_0x5f2c66(0xae)]||_0x22a74f['id'],'type':_0x22a74f[_0x5f2c66(0x82)],..._0x22a74f?.[_0x5f2c66(0x7a)]?.[_0x5f2c66(0x7c)]?{'resourceId':_0x22a74f[_0x5f2c66(0x7a)]?.[_0x5f2c66(0x7c)]}:{}};}[_0xfc34d3(0xaf)](){const _0x3a790c=_0xfc34d3;return new Map(this[_0x3a790c(0xa5)]);}[_0xfc34d3(0xa0)](_0x58be4f){const _0x2109c6=_0xfc34d3,_0x2f3e7b=this[_0x2109c6(0xb2)][_0x2109c6(0xa8)](_0x58be4f);_0x2f3e7b?.[_0x2109c6(0x76)]||this[_0x2109c6(0xb0)](_0x58be4f);}[_0xfc34d3(0x91)](){const _0x4ffb56=_0xfc34d3;if(0x0===this[_0x4ffb56(0xb2)][_0x4ffb56(0xeb)])return;for(const _0x5bd1b0 of this[_0x4ffb56(0xb2)][_0x4ffb56(0xa2)]())this[_0x4ffb56(0xb0)](_0x5bd1b0[_0x4ffb56(0xc0)]);const _0x2ed4af=this[_0x4ffb56(0xa5)][_0x4ffb56(0xa8)](_0x4ffb56(0x9c))||this[_0x4ffb56(0xb2)][_0x4ffb56(0xa8)](_0x4ffb56(0x9c));_0x2ed4af&&this[_0x4ffb56(0xcc)]({..._0x2ed4af,'isReadOnly':!0x0,'hidden':!0x0});}[_0xfc34d3(0xdb)](_0x5c9b50){const _0xbf9981=_0xfc34d3;for(const _0x4be6ba of _0x5c9b50[_0xbf9981(0xa2)]())this[_0xbf9981(0xba)](_0x4be6ba);this[_0xbf9981(0x91)](),this[_0xbf9981(0xcf)](_0xbf9981(0xd3),{'contextItems':Array[_0xbf9981(0x7d)](this[_0xbf9981(0xaf)]()[_0xbf9981(0xa2)]())});}[_0xfc34d3(0xcb)](){const _0x1d4608=_0xfc34d3;return this[_0x1d4608(0xb2)][_0x1d4608(0x78)](_0x1d4608(0x9c));}[_0xfc34d3(0xda)](){const _0x2bb13d=_0xfc34d3;return this[_0x2bb13d(0xb2)][_0x2bb13d(0x78)](_0x2bb13d(0x83));}[_0xfc34d3(0x68)](){const _0x231c5c=_0xfc34d3;return this[_0x231c5c(0xa5)][_0x231c5c(0x78)](_0x231c5c(0x9c));}static[_0xfc34d3(0xe2)](_0x792a44){const _0x4b4ffd=_0xfc34d3;return Array[_0x4b4ffd(0x7d)](_0x792a44[_0x4b4ffd(0xa2)]())[_0x4b4ffd(0x81)](_0x487d72=>this[_0x4b4ffd(0xf2)](_0x487d72))[_0x4b4ffd(0x6c)](_0x59411a=>null!==_0x59411a);}async[_0xfc34d3(0x79)](_0x1e2b1d,_0xb81786,_0x217af7=_0x28b210[_0xfc34d3(0x93)]){const _0x486300=_0xfc34d3,_0x5af839=_0x486300(0xd8)+_0x37f04c();this[_0x486300(0xd2)](_0x5af839);try{await Promise[_0x486300(0xd6)](_0x1e2b1d[_0x486300(0x81)](async _0x420c82=>{const _0x166d57=_0x486300,_0x4de900=_0x166d57(0x7b)+_0x37f04c(),_0x38e015=_0x34a956(_0x420c82[_0x166d57(0xca)]);try{this[_0x166d57(0xcc)]({'type':_0x217af7,'label':_0xb81786?.[_0x166d57(0xb8)]||_0x38e015,'uiId':_0x4de900,'resourceId':_0xb81786?.[_0x166d57(0x7c)]},!0x0);const _0x5228b2=this[_0x166d57(0x95)][_0x166d57(0x6a)](this[_0x166d57(0xdf)],_0x420c82,_0xb81786);this[_0x166d57(0x85)][_0x166d57(0x77)](_0x4de900,_0x5228b2[_0x166d57(0xc8)]);const {id:_0x40794e}=await _0x5228b2[_0x166d57(0xc6)]();this[_0x166d57(0x85)][_0x166d57(0x8f)](_0x4de900),this[_0x166d57(0xd4)]({'type':_0x217af7,'id':_0x40794e,'label':_0xb81786?.[_0x166d57(0xb8)]||_0x38e015,'uiId':_0x4de900,'resourceId':_0xb81786?.[_0x166d57(0x7c)]},!0x1);}catch(_0xb486c3){this[_0x166d57(0x85)][_0x166d57(0x8f)](_0x4de900);if(!(_0xb486c3 instanceof _0xef393d&&_0xb486c3[_0x166d57(0x9a)][_0x166d57(0x89)](_0x166d57(0xbe)))){const _0x1be6df=_0x187db4[_0x166d57(0xa8)](_0xb486c3[_0x166d57(0xce)])||_0x166d57(0xd9),_0x3797d6=new _0xef393d(_0x1be6df,null,{'fileName':_0x38e015,..._0xb486c3});_0x3797d6[_0x166d57(0xe3)]=_0xb486c3[_0x166d57(0xe3)],this[_0x166d57(0xcf)](_0x166d57(0xed),{'error':_0x3797d6});}this[_0x166d57(0xb0)](_0x4de900);}}));}finally{this[_0x486300(0x98)](_0x5af839);}}[_0xfc34d3(0xf1)](_0xd61738){const _0xce36db=_0xfc34d3;if(this[_0xce36db(0xcb)]())return;const _0x1433f7={'type':_0x28b210[_0xce36db(0xac)],'uiId':_0xce36db(0x9c),'label':_0xd61738,'isReadOnly':this[_0xce36db(0xa5)][_0xce36db(0x78)](_0xce36db(0x9c)),'hidden':this[_0xce36db(0xa5)][_0xce36db(0x78)](_0xce36db(0x9c))};this[_0xce36db(0xcc)](_0x1433f7);}async[_0xfc34d3(0x67)](_0x5dd444,_0x5ce53e,_0x160b18,_0x6c6077){const _0x46354a=_0xfc34d3,_0x5346a8=this[_0x46354a(0xb2)][_0x46354a(0xa8)](_0x46354a(0x9c));if(_0x5346a8&&_0x5dd444){_0x5346a8[_0x46354a(0x83)]=_0x6c6077?_0x6c6077[_0x46354a(0x81)](_0x36da61=>({'start':_0x36da61[_0x46354a(0xb3)],'end':_0x36da61[_0x46354a(0x9b)]})):[];try{if(_0x5346a8[_0x46354a(0x8e)]===_0x5ce53e)return;const {id:_0x2b4459}=await this[_0x46354a(0x95)][_0x46354a(0x9e)](this[_0x46354a(0xdf)],_0x5dd444,{'version':_0x5ce53e,'sessionId':_0x160b18})[_0x46354a(0xc6)]();_0x5346a8['id']=_0x2b4459,_0x5346a8[_0x46354a(0xb7)]=_0x5dd444,_0x5346a8[_0x46354a(0x8e)]=_0x5ce53e,_0x5346a8[_0x46354a(0x65)]=_0x160b18;}catch(_0x34c69a){const _0x9fc1d1=new _0xef393d(_0x46354a(0xa4),null);_0x9fc1d1[_0x46354a(0xe3)]=_0x34c69a[_0x46354a(0xe3)],this[_0x46354a(0xcf)](_0x46354a(0xed),{'error':_0x9fc1d1});}}}[_0xfc34d3(0xe8)](_0x1725d8){const _0x49fc42=_0xfc34d3;this[_0x49fc42(0xcc)]({'type':_0x28b210[_0x49fc42(0xa7)],'label':_0x1725d8,'uiId':_0x49fc42(0x83),'content':_0x1725d8});}[_0xfc34d3(0x73)](){const _0x2ec8c1=_0xfc34d3;this[_0x2ec8c1(0xb0)](_0x2ec8c1(0x83));}async[_0xfc34d3(0xef)](_0x3304e7,_0x3709f4){const _0x36541d=_0xfc34d3,_0x1154b4=_0x36541d(0xe6)+_0x37f04c();this[_0x36541d(0xd2)](_0x1154b4);const _0xc25206=_0x36541d(0xe6)+_0x37f04c();try{this[_0x36541d(0xcc)]({'type':_0x28b210[_0x36541d(0x96)],'label':_0x3709f4?.[_0x36541d(0xb8)]||_0x3304e7,'uiId':_0xc25206,'resourceId':_0x3709f4?.[_0x36541d(0x7c)]},!0x0);const _0x1f1227=this[_0x36541d(0x95)][_0x36541d(0x6b)](this[_0x36541d(0xdf)],_0x3304e7,_0x3709f4);this[_0x36541d(0x85)][_0x36541d(0x77)](_0xc25206,_0x1f1227[_0x36541d(0xc8)]);const {id:_0x3c217e}=await _0x1f1227[_0x36541d(0xc6)]();this[_0x36541d(0x85)][_0x36541d(0x8f)](_0xc25206),this[_0x36541d(0xd4)]({'type':_0x28b210[_0x36541d(0x96)],'id':_0x3c217e,'label':_0x3709f4?.[_0x36541d(0xb8)]||_0x3304e7,'uiId':_0xc25206,'resourceId':_0x3709f4?.[_0x36541d(0x7c)]},!0x1);}catch(_0x3d1dbf){this[_0x36541d(0x85)][_0x36541d(0x8f)](_0xc25206),(_0x3d1dbf[_0x36541d(0x9a)][_0x36541d(0x89)](_0x36541d(0xbe))||this[_0x36541d(0xcf)](_0x36541d(0xed),{'error':new _0xef393d(_0x36541d(0xc2),this,{'url':_0x3304e7,'originalError':_0x3d1dbf}),'url':_0x3304e7}),this[_0x36541d(0xb0)](_0xc25206));}finally{this[_0x36541d(0x98)](_0x1154b4);}}async[_0xfc34d3(0x7f)](_0x48ccd0,_0x1de832,_0x3dac8a){const _0x3f9bb1=_0xfc34d3,_0x736164=this[_0x3f9bb1(0xd0)][_0x3f9bb1(0xd1)][_0x3f9bb1(0x7e)](_0x4ef5c3=>_0x4ef5c3['id']===_0x48ccd0);if(!_0x736164)return this[_0x3f9bb1(0xcf)](_0x3f9bb1(0xed),{'error':new _0xef393d(_0x3f9bb1(0xb6),this,{'sourceId':_0x48ccd0}),'sourceId':_0x48ccd0}),[];try{const _0x5d865b=(await _0x736164[_0x3f9bb1(0xdc)](_0x1de832))[_0x3f9bb1(0x81)](_0x458f8f=>{const _0x2c1570=_0x3f9bb1,_0x4c491b=this[_0x2c1570(0x99)](_0x458f8f['id']);return{..._0x458f8f,'isInContext':_0x4c491b};});return _0x736164[_0x3f9bb1(0xe9)]=_0x5d865b,this[_0x3f9bb1(0xcf)](_0x3f9bb1(0xe5),{'sourceId':_0x48ccd0,'source':_0x736164,'resources':_0x5d865b,'uid':_0x3dac8a}),_0x5d865b;}catch(_0x738c75){return this[_0x3f9bb1(0xcf)](_0x3f9bb1(0xed),{'error':new _0xef393d(_0x3f9bb1(0xaa),this,{'sourceId':_0x48ccd0,'originalError':_0x738c75}),'sourceId':_0x48ccd0,'sourceLabel':_0x736164[_0x3f9bb1(0xb8)]}),[];}}async[_0xfc34d3(0xbc)](_0x5bebce,_0x279d63){const _0x14a9c6=_0xfc34d3;if(this[_0x14a9c6(0x99)](_0x279d63['id']))return;let _0x1fe7db=_0x279d63[_0x14a9c6(0x8b)];if(!_0x1fe7db&&_0x5bebce[_0x14a9c6(0xec)])try{_0x1fe7db=await _0x5bebce[_0x14a9c6(0xec)](_0x279d63['id']);}catch(_0x3afa41){return void this[_0x14a9c6(0xcf)](_0x14a9c6(0xed),{'error':new _0xef393d(_0x14a9c6(0xb9),this,{'resourceId':_0x279d63['id'],'sourceId':_0x5bebce['id'],'originalError':_0x3afa41}),'resourceId':_0x279d63['id'],'sourceId':_0x5bebce['id']});}if(_0x1fe7db)switch(_0x279d63[_0x14a9c6(0x82)]){case _0x28b210[_0x14a9c6(0x96)]:if(_0x14a9c6(0x90)!=typeof _0x1fe7db)return void this[_0x14a9c6(0xcf)](_0x14a9c6(0xed),{'error':new _0xef393d(_0x14a9c6(0xe4),this,{'resourceId':_0x279d63['id'],'sourceId':_0x5bebce['id'],'expectedType':_0x14a9c6(0x90),'actualType':typeof _0x1fe7db}),'resourceId':_0x279d63['id'],'sourceId':_0x5bebce['id']});await this[_0x14a9c6(0xef)](_0x1fe7db,{'label':_0x279d63[_0x14a9c6(0xb8)],'resourceId':_0x279d63['id']});break;case _0x28b210[_0x14a9c6(0x93)]:if(!(_0x1fe7db instanceof File))return void this[_0x14a9c6(0xcf)](_0x14a9c6(0xed),{'error':new _0xef393d(_0x14a9c6(0xe4),this,{'resourceId':_0x279d63['id'],'sourceId':_0x5bebce['id'],'expectedType':_0x14a9c6(0xc4),'actualType':typeof _0x1fe7db}),'resourceId':_0x279d63['id'],'sourceId':_0x5bebce['id']});await this[_0x14a9c6(0x79)]([_0x1fe7db],{'label':_0x279d63[_0x14a9c6(0xb8)],'resourceId':_0x279d63['id']});break;case _0x28b210[_0x14a9c6(0xc3)]:if(_0x14a9c6(0x84)!=typeof _0x1fe7db||!(_0x14a9c6(0xb7)in _0x1fe7db)||!(_0x14a9c6(0x82)in _0x1fe7db))return void this[_0x14a9c6(0xcf)](_0x14a9c6(0xed),{'error':new _0xef393d(_0x14a9c6(0xe4),this,{'resourceId':_0x279d63['id'],'sourceId':_0x5bebce['id'],'expectedType':_0x14a9c6(0xcd),'actualType':typeof _0x1fe7db}),'resourceId':_0x279d63['id'],'sourceId':_0x5bebce['id']});_0x1fe7db=AIChatContext[_0x14a9c6(0xb1)](_0x1fe7db,_0x279d63[_0x14a9c6(0xb8)]),await this[_0x14a9c6(0x79)]([_0x1fe7db],{'label':_0x279d63[_0x14a9c6(0xb8)],'resourceId':_0x279d63['id']},_0x28b210[_0x14a9c6(0xc3)]);break;default:this[_0x14a9c6(0xcf)](_0x14a9c6(0xed),{'error':new _0xef393d(_0x14a9c6(0xab),this,{'resourceId':_0x279d63['id'],'sourceId':_0x5bebce['id'],'resourceType':_0x279d63[_0x14a9c6(0x82)]}),'resourceId':_0x279d63['id'],'sourceId':_0x5bebce['id']});}else this[_0x14a9c6(0xcf)](_0x14a9c6(0xed),{'error':new _0xef393d(_0x14a9c6(0xbd),this,{'resourceId':_0x279d63['id'],'sourceId':_0x5bebce['id']}),'resourceId':_0x279d63['id'],'sourceId':_0x5bebce['id']});}static[_0xfc34d3(0xb1)](_0xe57dfb,_0x1c4160){const _0x5f1fb7=_0xfc34d3;switch(_0xe57dfb[_0x5f1fb7(0x82)]){case _0x8c66f6[_0x5f1fb7(0x75)]:return new File([_0xe57dfb[_0x5f1fb7(0xb7)]],_0x1c4160,{'type':_0x5f1fb7(0xc5)});case _0x8c66f6[_0x5f1fb7(0x74)]:return new File([_0xe57dfb[_0x5f1fb7(0xb7)]],_0x1c4160,{'type':_0x5f1fb7(0x72)});default:return new File([_0xe57dfb[_0x5f1fb7(0xb7)]],_0x1c4160,{'type':_0x5f1fb7(0xc7)});}}static[_0xfc34d3(0xf2)](_0x586b12){const _0x54ec2e=_0xfc34d3;switch(_0x586b12[_0x54ec2e(0x82)]){case _0x28b210[_0x54ec2e(0x93)]:return{'type':_0x28b210[_0x54ec2e(0x93)],'id':_0x586b12['id']};case _0x28b210[_0x54ec2e(0x96)]:return{'type':_0x28b210[_0x54ec2e(0x96)],'id':_0x586b12['id']};case _0x28b210[_0x54ec2e(0xac)]:return{'type':_0x28b210[_0x54ec2e(0xac)],'id':_0x586b12['id'],..._0x586b12[_0x54ec2e(0x83)]?.[_0x54ec2e(0xe0)]&&{'selection':_0x586b12[_0x54ec2e(0x83)]}};case _0x28b210[_0x54ec2e(0xc3)]:return{'type':_0x28b210[_0x54ec2e(0x93)],'id':_0x586b12['id']};default:return null;}}[_0xfc34d3(0xcc)](_0x312b6f,_0xc0d646=!0x1){const _0x764e3=_0xfc34d3;if(this[_0x764e3(0xb2)][_0x764e3(0x77)](_0x312b6f[_0x764e3(0xc0)],_0x312b6f),_0x312b6f[_0x764e3(0xd5)]||this[_0x764e3(0xcf)](_0x764e3(0xea),{'contextItem':_0x312b6f,'isLoading':_0xc0d646}),_0x764e3(0x9c)===_0x312b6f[_0x764e3(0xc0)]&&this[_0x764e3(0x88)](),_0x312b6f[_0x764e3(0x7c)]){const _0x2ba9d3=this[_0x764e3(0xe7)](_0x312b6f[_0x764e3(0x7c)]);_0x2ba9d3&&_0x2ba9d3[_0x764e3(0x8d)](_0x76d7dc=>{const _0x2b9eb3=_0x764e3;this[_0x2b9eb3(0x80)](_0x76d7dc,_0x312b6f[_0x2b9eb3(0x7c)],!0x0);});}}[_0xfc34d3(0xb0)](_0x105c7e){const _0x4e8fa4=_0xfc34d3,_0x1235a7=this[_0x4e8fa4(0xb2)][_0x4e8fa4(0xa8)](_0x105c7e),_0x373b21=this[_0x4e8fa4(0x85)][_0x4e8fa4(0xa8)](_0x105c7e);if(_0x373b21&&(_0x373b21[_0x4e8fa4(0xa6)](),this[_0x4e8fa4(0x85)][_0x4e8fa4(0x8f)](_0x105c7e)),_0x1235a7?.[_0x4e8fa4(0x7c)]){const _0x592b0f=this[_0x4e8fa4(0xe7)](_0x1235a7[_0x4e8fa4(0x7c)]);_0x592b0f&&_0x592b0f[_0x4e8fa4(0x8d)](_0x1b417b=>{const _0x1fbd0f=_0x4e8fa4;this[_0x1fbd0f(0x80)](_0x1b417b,_0x1235a7[_0x1fbd0f(0x7c)],!0x1);});}this[_0x4e8fa4(0xb2)][_0x4e8fa4(0x8f)](_0x105c7e),this[_0x4e8fa4(0xcf)](_0x4e8fa4(0x6d),{'uiId':_0x105c7e,'type':_0x1235a7?.[_0x4e8fa4(0x82)]}),_0x4e8fa4(0x9c)===_0x105c7e&&this[_0x4e8fa4(0x88)]();}[_0xfc34d3(0xd4)](_0x4cb770,_0xaaa9cc){const _0x48f07e=_0xfc34d3;if(this[_0x48f07e(0xb2)][_0x48f07e(0x78)](_0x4cb770[_0x48f07e(0xc0)])&&(this[_0x48f07e(0xb2)][_0x48f07e(0x77)](_0x4cb770[_0x48f07e(0xc0)],_0x4cb770),this[_0x48f07e(0xcf)](_0x48f07e(0xb4),{'contextItem':_0x4cb770,'isLoading':_0xaaa9cc}),_0x4cb770[_0x48f07e(0x7c)])){const _0x5074c7=this[_0x48f07e(0xe7)](_0x4cb770[_0x48f07e(0x7c)]);_0x5074c7&&_0x5074c7[_0x48f07e(0x8d)](_0x1ed1d1=>{const _0x4005be=_0x48f07e;this[_0x4005be(0x80)](_0x1ed1d1,_0x4cb770[_0x4005be(0x7c)],!0x0);});}}[_0xfc34d3(0xba)](_0x5a6182){const _0x56f6af=_0xfc34d3;this[_0x56f6af(0xa5)][_0x56f6af(0x77)](_0x5a6182[_0x56f6af(0xc0)],_0x5a6182);}[_0xfc34d3(0x8a)](){const _0x597c89=_0xfc34d3;this[_0x597c89(0xd0)]={'document':{'enabled':!0x1!==this[_0x597c89(0xd7)]?.[_0x597c89(0xad)]?.[_0x597c89(0x92)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x597c89(0xd7)]?.[_0x597c89(0x9f)]?.[_0x597c89(0x92)]},'files':{'enabled':!0x1!==this[_0x597c89(0xd7)]?.[_0x597c89(0xe1)]?.[_0x597c89(0x92)]},'sources':this[_0x597c89(0xa1)]()},this[_0x597c89(0xcf)](_0x597c89(0xbb),{'options':this[_0x597c89(0xd0)]});}[_0xfc34d3(0xa1)](){const _0x1c7044=_0xfc34d3;return this[_0x1c7044(0xd7)]?.[_0x1c7044(0xd1)]?.[_0x1c7044(0x81)](_0x1d7532=>({..._0x1d7532,'resources':[]}))??[];}[_0xfc34d3(0x88)](){const _0x1a7b0c=_0xfc34d3,_0x50d055=this[_0x1a7b0c(0xcb)]()||this[_0x1a7b0c(0x68)]();this[_0x1a7b0c(0xd0)][_0x1a7b0c(0xad)][_0x1a7b0c(0xa3)]=_0x50d055,this[_0x1a7b0c(0xcf)](_0x1a7b0c(0xbb),{'options':this[_0x1a7b0c(0xd0)]});}[_0xfc34d3(0x99)](_0x19876b){const _0x572b03=_0xfc34d3;for(const _0x520ebe of this[_0x572b03(0xb2)][_0x572b03(0xa2)]())if(_0x520ebe[_0x572b03(0x7c)]===_0x19876b)return!0x0;for(const _0x112381 of this[_0x572b03(0xa5)][_0x572b03(0xa2)]())if(_0x112381[_0x572b03(0x7c)]===_0x19876b)return!0x0;return!0x1;}[_0xfc34d3(0xe7)](_0xc04bf0){const _0x346fc5=_0xfc34d3,_0x39c511=[];for(const _0x5b9e8d of this[_0x346fc5(0xd0)][_0x346fc5(0xd1)]){_0x5b9e8d[_0x346fc5(0xe9)][_0x346fc5(0x7e)](_0x482af6=>_0x482af6['id']===_0xc04bf0)&&_0x39c511[_0x346fc5(0xbf)](_0x5b9e8d['id']);}return 0x0===_0x39c511[_0x346fc5(0xe0)]?null:_0x39c511;}[_0xfc34d3(0x80)](_0x4a1159,_0x1ebbc3,_0x57850b){const _0x461fbc=_0xfc34d3,_0x471c41=this[_0x461fbc(0xd0)][_0x461fbc(0xd1)][_0x461fbc(0x7e)](_0x5f34cf=>_0x5f34cf['id']===_0x4a1159);if(!_0x471c41)return;const _0x56c35d=_0x471c41[_0x461fbc(0xe9)][_0x461fbc(0x7e)](_0x897d4e=>_0x897d4e['id']===_0x1ebbc3);_0x56c35d&&(_0x56c35d[_0x461fbc(0x8c)]=_0x57850b,this[_0x461fbc(0xcf)](_0x461fbc(0x70),{'sourceId':_0x4a1159,'resourceId':_0x1ebbc3,'isInContext':_0x57850b}));}[_0xfc34d3(0xd2)](_0x2ec922){const _0x3f72aa=_0xfc34d3;this[_0x3f72aa(0xc1)][_0x3f72aa(0x77)](_0x2ec922,!0x0),this[_0x3f72aa(0xc1)][_0x3f72aa(0xeb)]&&this[_0x3f72aa(0xcf)](_0x3f72aa(0x86),{'isUploadInProgress':!0x0});}[_0xfc34d3(0x98)](_0x280603){const _0x47db40=_0xfc34d3;this[_0x47db40(0xc1)][_0x47db40(0x8f)](_0x280603),0x0===this[_0x47db40(0xc1)][_0x47db40(0xeb)]&&this[_0x47db40(0xcf)](_0x47db40(0x86),{'isUploadInProgress':!0x1});}}
|
|
23
|
+
const _0xbb7b3c=_0x1fbd;(function(_0x140180,_0x81a41f){const _0x1de040=_0x1fbd,_0x59ecbd=_0x140180();while(!![]){try{const _0x1fcf35=parseInt(_0x1de040(0x1a7))/0x1*(parseInt(_0x1de040(0x134))/0x2)+-parseInt(_0x1de040(0x13d))/0x3*(-parseInt(_0x1de040(0x16f))/0x4)+parseInt(_0x1de040(0x1b0))/0x5+-parseInt(_0x1de040(0x1b1))/0x6+parseInt(_0x1de040(0x19c))/0x7+parseInt(_0x1de040(0x12a))/0x8+-parseInt(_0x1de040(0x181))/0x9;if(_0x1fcf35===_0x81a41f)break;else _0x59ecbd['push'](_0x59ecbd['shift']());}catch(_0x1eabcd){_0x59ecbd['push'](_0x59ecbd['shift']());}}}(_0x1e02,0x83d37));function _0x1fbd(_0x4a886a,_0x469974){const _0x1e025e=_0x1e02();return _0x1fbd=function(_0x1fbd52,_0x13c29e){_0x1fbd52=_0x1fbd52-0x126;let _0x862754=_0x1e025e[_0x1fbd52];return _0x862754;},_0x1fbd(_0x4a886a,_0x469974);}function _0x1e02(){const _0xcdd6dd=['sessionId','abort','ai-request-aborted','url','uploadUrl','file-','urls','_getCustomSourcesInitialState','_updateResourceInContextState','_pendingContextItems','fire','contextItemRemoved','_setAddContextOptionsDefaultState','selection','ai-chat-file-upload-failed','ai-chat-context-unsupported-type','string','get','files-','from','removeFromContext','2695084qVzhTc','_toggleAddCurrentDocumentOptionVisibility','loadSourceResources','object\x20with\x20content\x20and\x20type\x20properties','delete','ai-chat-resource-load-failed','MARKDOWN','all','_createContextItemFromContent','document','_addContextOptionsState','6adlgNb','HTML','_conversationContextItems','uploadProgressChanged','text/plain','getResources','ai-chat-source-resources-load-failed','map','find','576295ioUQEe','3467664fCxqvG','isCurrentDocumentInConversation','data','ai-chat-document-upload-failed','_finishUploadOperation','length','addUrlToContext','7623808YHJzFC','ai-chat-source-not-found','_startUploadOperation','sources','name','contextItemAdded','clearPendingContextItems','addCurrentDocumentToContext','abortController','isReadOnly','256694TCYPlX','_finishContextItemLoading','ai-chat-context-invalid-data','isHidden','type','end','TEXT','start','resources','10791QrHVlk','getId','values','addResourceToContext','updateCurrentDocument','uploadDocument','addSelectionToContext','code','resourceId','url-','getDocument','_connector','ai-chat-resource-no-data','_findSourceIdsByResourceId','message','getData','forEach','size','contextSent','_addToConversationContextItem','filter','stack','error','ai-chat-url-upload-failed','object','_ongoingUploadOperations','_ongoingUploads','mapContextItemsToRequestData','attributes','Current\x20document','label','getPendingContextItems','addContextOptionsChanged','addToConversationContext','has','File','set','_ownerId','isCurrentDocumentInContext','_config','uiId','push','hidden','FILE','sourceResourcesLoaded','getSentContextItems','_removeContextItem','resourceStateChanged','fetchDocument','isInContext','940VcGPkJ','isSelectionInContext','current-document','text/html','text/markdown','SELECTION','init','uploadFile','startsWith','_addContextItem','_convertTextResourceToFile','populateFromMessage','enabled','URL','removeSelectionFromContext','_mapContextItemToRequestData','contextItemLoadingEnded','files','17556489FQgtRi','DOCUMENT','content','version','_isResourceInContext','addFilesToContext'];_0x1e02=function(){return _0xcdd6dd;};return _0x1e02();}import{CKEditorError as _0x3ef10f,ObservableMixin as _0x55e1ec,uid as _0x427bda}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x4a9210,AIContextTextResourceType as _0x2f602c}from'../../aicore/model/aicontext.js';import{escape as _0x2c3987}from'es-toolkit/compat';import{errorsMap as _0x1616ab}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0xbb7b3c(0x12f),_0xbb7b3c(0x192),_0xbb7b3c(0x17f),_0xbb7b3c(0x14f),_0xbb7b3c(0x153),_0xbb7b3c(0x15d),_0xbb7b3c(0x169),_0xbb7b3c(0x16c),_0xbb7b3c(0x1aa)];export class AIChatContext extends _0x55e1ec(){[_0xbb7b3c(0x148)];[_0xbb7b3c(0x164)];[_0xbb7b3c(0x162)];constructor({connector:_0x45de1b,config:_0x4fb355,ownerId:_0x53fd12}){const _0x30d61d=_0xbb7b3c;super(),this[_0x30d61d(0x148)]=_0x45de1b,this[_0x30d61d(0x164)]=_0x4fb355,this[_0x30d61d(0x162)]=_0x53fd12;}[_0xbb7b3c(0x175)](){const _0x4e26a4=_0xbb7b3c;this[_0x4e26a4(0x190)]=new Map(),this[_0x4e26a4(0x1a9)]=new Map(),this[_0x4e26a4(0x157)]=new Map(),this[_0x4e26a4(0x156)]=new Map(),this[_0x4e26a4(0x193)]();}[_0xbb7b3c(0x15c)](){const _0x29e9c5=_0xbb7b3c;return this[_0x29e9c5(0x190)];}async[_0xbb7b3c(0x17a)](_0x35edf6){const _0x53ff24=_0xbb7b3c,_0x3375d3=await this[_0x53ff24(0x1a4)](_0x35edf6);return this[_0x53ff24(0x150)](_0x3375d3),_0x53ff24(0x171)===_0x3375d3[_0x53ff24(0x165)]&&this[_0x53ff24(0x19d)](),_0x3375d3;}async[_0xbb7b3c(0x1a4)](_0x1e8b74){const _0x2a2d5d=_0xbb7b3c;if(_0x1e8b74[_0x2a2d5d(0x138)]===_0x4a9210[_0x2a2d5d(0x182)]){const _0x47af18=await this[_0x2a2d5d(0x148)][_0x2a2d5d(0x16d)](this[_0x2a2d5d(0x162)],_0x1e8b74['id'])[_0x2a2d5d(0x147)]();return{'id':_0x2a2d5d(0x171),'uiId':_0x2a2d5d(0x171),'label':_0x2a2d5d(0x15a),'type':_0x1e8b74[_0x2a2d5d(0x138)],'content':_0x47af18[_0x2a2d5d(0x183)],'hidden':this[_0x2a2d5d(0x1a9)][_0x2a2d5d(0x15f)](_0x2a2d5d(0x171)),'version':_0x47af18[_0x2a2d5d(0x159)]?.[_0x2a2d5d(0x184)],'sessionId':_0x47af18[_0x2a2d5d(0x159)]?.[_0x2a2d5d(0x187)]};}return{'id':_0x1e8b74['id'],'uiId':_0x1e8b74['id'],'label':_0x1e8b74[_0x2a2d5d(0x159)]?.[_0x2a2d5d(0x15b)]||_0x1e8b74[_0x2a2d5d(0x12e)]||_0x1e8b74[_0x2a2d5d(0x18a)]||_0x1e8b74['id'],'type':_0x1e8b74[_0x2a2d5d(0x138)],..._0x1e8b74?.[_0x2a2d5d(0x159)]?.[_0x2a2d5d(0x145)]?{'resourceId':_0x1e8b74[_0x2a2d5d(0x159)]?.[_0x2a2d5d(0x145)]}:{}};}[_0xbb7b3c(0x16a)](){const _0x828ddc=_0xbb7b3c;return new Map(this[_0x828ddc(0x1a9)]);}[_0xbb7b3c(0x19b)](_0x5c6081){const _0xa13f08=_0xbb7b3c,_0x86e0bf=this[_0xa13f08(0x190)][_0xa13f08(0x198)](_0x5c6081);_0x86e0bf?.[_0xa13f08(0x133)]||this[_0xa13f08(0x16b)](_0x5c6081);}[_0xbb7b3c(0x130)](){const _0x395b74=_0xbb7b3c;if(0x0===this[_0x395b74(0x190)][_0x395b74(0x14e)])return;for(const _0x2f52de of this[_0x395b74(0x190)][_0x395b74(0x13f)]())this[_0x395b74(0x16b)](_0x2f52de[_0x395b74(0x165)]);const _0xa35fb7=this[_0x395b74(0x1a9)][_0x395b74(0x198)](_0x395b74(0x171))||this[_0x395b74(0x190)][_0x395b74(0x198)](_0x395b74(0x171));_0xa35fb7&&this[_0x395b74(0x178)]({..._0xa35fb7,'isReadOnly':!0x0,'hidden':!0x0});}[_0xbb7b3c(0x15e)](_0x36251c){const _0x4cfcfc=_0xbb7b3c;for(const _0x11c8f5 of _0x36251c[_0x4cfcfc(0x13f)]())this[_0x4cfcfc(0x150)](_0x11c8f5);this[_0x4cfcfc(0x130)](),this[_0x4cfcfc(0x191)](_0x4cfcfc(0x14f),{'contextItems':Array[_0x4cfcfc(0x19a)](this[_0x4cfcfc(0x16a)]()[_0x4cfcfc(0x13f)]())});}[_0xbb7b3c(0x163)](){const _0x5a6fc2=_0xbb7b3c;return this[_0x5a6fc2(0x190)][_0x5a6fc2(0x15f)](_0x5a6fc2(0x171));}[_0xbb7b3c(0x170)](){const _0xbdb4f5=_0xbb7b3c;return this[_0xbdb4f5(0x190)][_0xbdb4f5(0x15f)](_0xbdb4f5(0x194));}[_0xbb7b3c(0x1b2)](){const _0x28dba3=_0xbb7b3c;return this[_0x28dba3(0x1a9)][_0x28dba3(0x15f)](_0x28dba3(0x171));}static[_0xbb7b3c(0x158)](_0x283c7a){const _0x5d350e=_0xbb7b3c;return Array[_0x5d350e(0x19a)](_0x283c7a[_0x5d350e(0x13f)]())[_0x5d350e(0x1ae)](_0x4ad786=>this[_0x5d350e(0x17e)](_0x4ad786))[_0x5d350e(0x151)](_0x3776c6=>null!==_0x3776c6);}async[_0xbb7b3c(0x186)](_0x334e8f,_0x150df7,_0x2b373f=_0x4a9210[_0xbb7b3c(0x168)]){const _0x3cdbc4=_0xbb7b3c,_0x5b2eaa=_0x3cdbc4(0x199)+_0x427bda();this[_0x3cdbc4(0x12c)](_0x5b2eaa);try{await Promise[_0x3cdbc4(0x1a3)](_0x334e8f[_0x3cdbc4(0x1ae)](async _0x18505f=>{const _0x58e02e=_0x3cdbc4,_0x2fe767=_0x58e02e(0x18c)+_0x427bda(),_0x7fdde3=_0x2c3987(_0x18505f[_0x58e02e(0x12e)]);try{this[_0x58e02e(0x178)]({'type':_0x2b373f,'label':_0x150df7?.[_0x58e02e(0x15b)]||_0x7fdde3,'uiId':_0x2fe767,'resourceId':_0x150df7?.[_0x58e02e(0x145)]},!0x0);const _0x234382=this[_0x58e02e(0x148)][_0x58e02e(0x176)](this[_0x58e02e(0x162)],_0x18505f,_0x150df7);this[_0x58e02e(0x157)][_0x58e02e(0x161)](_0x2fe767,_0x234382[_0x58e02e(0x132)]);const {id:_0x17dbc0}=await _0x234382[_0x58e02e(0x13e)]();this[_0x58e02e(0x157)][_0x58e02e(0x1a0)](_0x2fe767),this[_0x58e02e(0x135)]({'type':_0x2b373f,'id':_0x17dbc0,'label':_0x150df7?.[_0x58e02e(0x15b)]||_0x7fdde3,'uiId':_0x2fe767,'resourceId':_0x150df7?.[_0x58e02e(0x145)]},!0x1);}catch(_0xf85efd){this[_0x58e02e(0x157)][_0x58e02e(0x1a0)](_0x2fe767);if(!(_0xf85efd instanceof _0x3ef10f&&_0xf85efd[_0x58e02e(0x14b)][_0x58e02e(0x177)](_0x58e02e(0x189)))){const _0x3744ff=_0x1616ab[_0x58e02e(0x198)](_0xf85efd[_0x58e02e(0x144)])||_0x58e02e(0x195),_0x417374=new _0x3ef10f(_0x3744ff,null,{'fileName':_0x7fdde3,..._0xf85efd});_0x417374[_0x58e02e(0x152)]=_0xf85efd[_0x58e02e(0x152)],this[_0x58e02e(0x191)](_0x58e02e(0x153),{'error':_0x417374});}this[_0x58e02e(0x16b)](_0x2fe767);}}));}finally{this[_0x3cdbc4(0x127)](_0x5b2eaa);}}[_0xbb7b3c(0x131)](_0x1ca40b){const _0x4e0e77=_0xbb7b3c;if(this[_0x4e0e77(0x163)]())return;const _0x155b4f={'type':_0x4a9210[_0x4e0e77(0x182)],'uiId':_0x4e0e77(0x171),'label':_0x1ca40b,'isReadOnly':this[_0x4e0e77(0x1a9)][_0x4e0e77(0x15f)](_0x4e0e77(0x171)),'hidden':this[_0x4e0e77(0x1a9)][_0x4e0e77(0x15f)](_0x4e0e77(0x171))};this[_0x4e0e77(0x178)](_0x155b4f);}async[_0xbb7b3c(0x141)](_0xde3b5c,_0x57b6cb,_0x35ee60,_0x153f46){const _0x54f432=_0xbb7b3c,_0x204523=this[_0x54f432(0x190)][_0x54f432(0x198)](_0x54f432(0x171));if(_0x204523&&_0xde3b5c){_0x204523[_0x54f432(0x194)]=_0x153f46?_0x153f46[_0x54f432(0x1ae)](_0x2518ea=>({'start':_0x2518ea[_0x54f432(0x13b)],'end':_0x2518ea[_0x54f432(0x139)]})):[];try{if(_0x204523[_0x54f432(0x184)]===_0x57b6cb)return;const {id:_0x22ce16}=await this[_0x54f432(0x148)][_0x54f432(0x142)](this[_0x54f432(0x162)],_0xde3b5c,{'version':_0x57b6cb,'sessionId':_0x35ee60})[_0x54f432(0x13e)]();_0x204523['id']=_0x22ce16,_0x204523[_0x54f432(0x183)]=_0xde3b5c,_0x204523[_0x54f432(0x184)]=_0x57b6cb,_0x204523[_0x54f432(0x187)]=_0x35ee60;}catch(_0x2bf903){const _0x55a9e6=new _0x3ef10f(_0x54f432(0x126),null);_0x55a9e6[_0x54f432(0x152)]=_0x2bf903[_0x54f432(0x152)],this[_0x54f432(0x191)](_0x54f432(0x153),{'error':_0x55a9e6});}}}[_0xbb7b3c(0x143)](_0x43883e){const _0x3e764d=_0xbb7b3c;this[_0x3e764d(0x178)]({'type':_0x4a9210[_0x3e764d(0x174)],'label':_0x43883e,'uiId':_0x3e764d(0x194),'content':_0x43883e});}[_0xbb7b3c(0x17d)](){const _0x596234=_0xbb7b3c;this[_0x596234(0x16b)](_0x596234(0x194));}async[_0xbb7b3c(0x129)](_0x158e4a,_0x1ae8c6){const _0x4d801e=_0xbb7b3c,_0x294833=_0x4d801e(0x146)+_0x427bda();this[_0x4d801e(0x12c)](_0x294833);const _0x56435f=_0x4d801e(0x146)+_0x427bda();try{this[_0x4d801e(0x178)]({'type':_0x4a9210[_0x4d801e(0x17c)],'label':_0x1ae8c6?.[_0x4d801e(0x15b)]||_0x158e4a,'uiId':_0x56435f,'resourceId':_0x1ae8c6?.[_0x4d801e(0x145)]},!0x0);const _0x23c1b7=this[_0x4d801e(0x148)][_0x4d801e(0x18b)](this[_0x4d801e(0x162)],_0x158e4a,_0x1ae8c6);this[_0x4d801e(0x157)][_0x4d801e(0x161)](_0x56435f,_0x23c1b7[_0x4d801e(0x132)]);const {id:_0x290414}=await _0x23c1b7[_0x4d801e(0x13e)]();this[_0x4d801e(0x157)][_0x4d801e(0x1a0)](_0x56435f),this[_0x4d801e(0x135)]({'type':_0x4a9210[_0x4d801e(0x17c)],'id':_0x290414,'label':_0x1ae8c6?.[_0x4d801e(0x15b)]||_0x158e4a,'uiId':_0x56435f,'resourceId':_0x1ae8c6?.[_0x4d801e(0x145)]},!0x1);}catch(_0x4b38fa){this[_0x4d801e(0x157)][_0x4d801e(0x1a0)](_0x56435f),(_0x4b38fa[_0x4d801e(0x14b)][_0x4d801e(0x177)](_0x4d801e(0x189))||this[_0x4d801e(0x191)](_0x4d801e(0x153),{'error':new _0x3ef10f(_0x4d801e(0x154),this,{'url':_0x158e4a,'originalError':_0x4b38fa}),'url':_0x158e4a}),this[_0x4d801e(0x16b)](_0x56435f));}finally{this[_0x4d801e(0x127)](_0x294833);}}async[_0xbb7b3c(0x19e)](_0x246b47,_0x51ec6d,_0x552109){const _0x1fdfd4=_0xbb7b3c,_0x71726c=this[_0x1fdfd4(0x1a6)][_0x1fdfd4(0x12d)][_0x1fdfd4(0x1af)](_0x2f71b3=>_0x2f71b3['id']===_0x246b47);if(!_0x71726c)return this[_0x1fdfd4(0x191)](_0x1fdfd4(0x153),{'error':new _0x3ef10f(_0x1fdfd4(0x12b),this,{'sourceId':_0x246b47}),'sourceId':_0x246b47}),[];try{const _0x15a373=(await _0x71726c[_0x1fdfd4(0x1ac)](_0x51ec6d))[_0x1fdfd4(0x1ae)](_0x20798d=>{const _0x71d84d=_0x1fdfd4,_0x338a60=this[_0x71d84d(0x185)](_0x20798d['id']);return{..._0x20798d,'isInContext':_0x338a60};});return _0x71726c[_0x1fdfd4(0x13c)]=_0x15a373,this[_0x1fdfd4(0x191)](_0x1fdfd4(0x169),{'sourceId':_0x246b47,'source':_0x71726c,'resources':_0x15a373,'uid':_0x552109}),_0x15a373;}catch(_0x368c71){return this[_0x1fdfd4(0x191)](_0x1fdfd4(0x153),{'error':new _0x3ef10f(_0x1fdfd4(0x1ad),this,{'sourceId':_0x246b47,'originalError':_0x368c71}),'sourceId':_0x246b47,'sourceLabel':_0x71726c[_0x1fdfd4(0x15b)]}),[];}}async[_0xbb7b3c(0x140)](_0x45b820,_0x3e1a12){const _0x8f934b=_0xbb7b3c;if(this[_0x8f934b(0x185)](_0x3e1a12['id']))return;let _0x66144c=_0x3e1a12[_0x8f934b(0x1b3)];if(!_0x66144c&&_0x45b820[_0x8f934b(0x14c)])try{_0x66144c=await _0x45b820[_0x8f934b(0x14c)](_0x3e1a12['id']);}catch(_0x4243b9){return void this[_0x8f934b(0x191)](_0x8f934b(0x153),{'error':new _0x3ef10f(_0x8f934b(0x1a1),this,{'resourceId':_0x3e1a12['id'],'sourceId':_0x45b820['id'],'originalError':_0x4243b9}),'resourceId':_0x3e1a12['id'],'sourceId':_0x45b820['id']});}if(_0x66144c)switch(_0x3e1a12[_0x8f934b(0x138)]){case _0x4a9210[_0x8f934b(0x17c)]:if(_0x8f934b(0x197)!=typeof _0x66144c)return void this[_0x8f934b(0x191)](_0x8f934b(0x153),{'error':new _0x3ef10f(_0x8f934b(0x136),this,{'resourceId':_0x3e1a12['id'],'sourceId':_0x45b820['id'],'expectedType':_0x8f934b(0x197),'actualType':typeof _0x66144c}),'resourceId':_0x3e1a12['id'],'sourceId':_0x45b820['id']});await this[_0x8f934b(0x129)](_0x66144c,{'label':_0x3e1a12[_0x8f934b(0x15b)],'resourceId':_0x3e1a12['id']});break;case _0x4a9210[_0x8f934b(0x168)]:if(!(_0x66144c instanceof File))return void this[_0x8f934b(0x191)](_0x8f934b(0x153),{'error':new _0x3ef10f(_0x8f934b(0x136),this,{'resourceId':_0x3e1a12['id'],'sourceId':_0x45b820['id'],'expectedType':_0x8f934b(0x160),'actualType':typeof _0x66144c}),'resourceId':_0x3e1a12['id'],'sourceId':_0x45b820['id']});await this[_0x8f934b(0x186)]([_0x66144c],{'label':_0x3e1a12[_0x8f934b(0x15b)],'resourceId':_0x3e1a12['id']});break;case _0x4a9210[_0x8f934b(0x13a)]:if(_0x8f934b(0x155)!=typeof _0x66144c||!(_0x8f934b(0x183)in _0x66144c)||!(_0x8f934b(0x138)in _0x66144c))return void this[_0x8f934b(0x191)](_0x8f934b(0x153),{'error':new _0x3ef10f(_0x8f934b(0x136),this,{'resourceId':_0x3e1a12['id'],'sourceId':_0x45b820['id'],'expectedType':_0x8f934b(0x19f),'actualType':typeof _0x66144c}),'resourceId':_0x3e1a12['id'],'sourceId':_0x45b820['id']});_0x66144c=AIChatContext[_0x8f934b(0x179)](_0x66144c,_0x3e1a12[_0x8f934b(0x15b)]),await this[_0x8f934b(0x186)]([_0x66144c],{'label':_0x3e1a12[_0x8f934b(0x15b)],'resourceId':_0x3e1a12['id']},_0x4a9210[_0x8f934b(0x13a)]);break;default:this[_0x8f934b(0x191)](_0x8f934b(0x153),{'error':new _0x3ef10f(_0x8f934b(0x196),this,{'resourceId':_0x3e1a12['id'],'sourceId':_0x45b820['id'],'resourceType':_0x3e1a12[_0x8f934b(0x138)]}),'resourceId':_0x3e1a12['id'],'sourceId':_0x45b820['id']});}else this[_0x8f934b(0x191)](_0x8f934b(0x153),{'error':new _0x3ef10f(_0x8f934b(0x149),this,{'resourceId':_0x3e1a12['id'],'sourceId':_0x45b820['id']}),'resourceId':_0x3e1a12['id'],'sourceId':_0x45b820['id']});}static[_0xbb7b3c(0x179)](_0x2876f1,_0x513cba){const _0x30d71c=_0xbb7b3c;switch(_0x2876f1[_0x30d71c(0x138)]){case _0x2f602c[_0x30d71c(0x1a2)]:return new File([_0x2876f1[_0x30d71c(0x183)]],_0x513cba,{'type':_0x30d71c(0x173)});case _0x2f602c[_0x30d71c(0x1a8)]:return new File([_0x2876f1[_0x30d71c(0x183)]],_0x513cba,{'type':_0x30d71c(0x172)});default:return new File([_0x2876f1[_0x30d71c(0x183)]],_0x513cba,{'type':_0x30d71c(0x1ab)});}}static[_0xbb7b3c(0x17e)](_0x4029ed){const _0x2f5303=_0xbb7b3c;switch(_0x4029ed[_0x2f5303(0x138)]){case _0x4a9210[_0x2f5303(0x168)]:return{'type':_0x4a9210[_0x2f5303(0x168)],'id':_0x4029ed['id']};case _0x4a9210[_0x2f5303(0x17c)]:return{'type':_0x4a9210[_0x2f5303(0x17c)],'id':_0x4029ed['id']};case _0x4a9210[_0x2f5303(0x182)]:return{'type':_0x4a9210[_0x2f5303(0x182)],'id':_0x4029ed['id'],..._0x4029ed[_0x2f5303(0x194)]?.[_0x2f5303(0x128)]&&{'selection':_0x4029ed[_0x2f5303(0x194)]}};case _0x4a9210[_0x2f5303(0x13a)]:return{'type':_0x4a9210[_0x2f5303(0x168)],'id':_0x4029ed['id']};default:return null;}}[_0xbb7b3c(0x178)](_0x658b3d,_0x548990=!0x1){const _0x28cc92=_0xbb7b3c;if(this[_0x28cc92(0x190)][_0x28cc92(0x161)](_0x658b3d[_0x28cc92(0x165)],_0x658b3d),_0x658b3d[_0x28cc92(0x167)]||this[_0x28cc92(0x191)](_0x28cc92(0x12f),{'contextItem':_0x658b3d,'isLoading':_0x548990}),_0x28cc92(0x171)===_0x658b3d[_0x28cc92(0x165)]&&this[_0x28cc92(0x19d)](),_0x658b3d[_0x28cc92(0x145)]){const _0x3c13f9=this[_0x28cc92(0x14a)](_0x658b3d[_0x28cc92(0x145)]);_0x3c13f9&&_0x3c13f9[_0x28cc92(0x14d)](_0x17868e=>{const _0x23048d=_0x28cc92;this[_0x23048d(0x18f)](_0x17868e,_0x658b3d[_0x23048d(0x145)],!0x0);});}}[_0xbb7b3c(0x16b)](_0x41329f){const _0x4b12da=_0xbb7b3c,_0x22efd8=this[_0x4b12da(0x190)][_0x4b12da(0x198)](_0x41329f),_0x282502=this[_0x4b12da(0x157)][_0x4b12da(0x198)](_0x41329f);if(_0x282502&&(_0x282502[_0x4b12da(0x188)](),this[_0x4b12da(0x157)][_0x4b12da(0x1a0)](_0x41329f)),_0x22efd8?.[_0x4b12da(0x145)]){const _0x3e40b2=this[_0x4b12da(0x14a)](_0x22efd8[_0x4b12da(0x145)]);_0x3e40b2&&_0x3e40b2[_0x4b12da(0x14d)](_0x214675=>{const _0x1190de=_0x4b12da;this[_0x1190de(0x18f)](_0x214675,_0x22efd8[_0x1190de(0x145)],!0x1);});}this[_0x4b12da(0x190)][_0x4b12da(0x1a0)](_0x41329f),this[_0x4b12da(0x191)](_0x4b12da(0x192),{'uiId':_0x41329f,'type':_0x22efd8?.[_0x4b12da(0x138)]}),_0x4b12da(0x171)===_0x41329f&&this[_0x4b12da(0x19d)]();}[_0xbb7b3c(0x135)](_0x21ef3f,_0x197c98){const _0x5bccf4=_0xbb7b3c;if(this[_0x5bccf4(0x190)][_0x5bccf4(0x15f)](_0x21ef3f[_0x5bccf4(0x165)])&&(this[_0x5bccf4(0x190)][_0x5bccf4(0x161)](_0x21ef3f[_0x5bccf4(0x165)],_0x21ef3f),this[_0x5bccf4(0x191)](_0x5bccf4(0x17f),{'contextItem':_0x21ef3f,'isLoading':_0x197c98}),_0x21ef3f[_0x5bccf4(0x145)])){const _0x570a0b=this[_0x5bccf4(0x14a)](_0x21ef3f[_0x5bccf4(0x145)]);_0x570a0b&&_0x570a0b[_0x5bccf4(0x14d)](_0x5dcf23=>{const _0x9f8154=_0x5bccf4;this[_0x9f8154(0x18f)](_0x5dcf23,_0x21ef3f[_0x9f8154(0x145)],!0x0);});}}[_0xbb7b3c(0x150)](_0x170b5f){const _0x21bacd=_0xbb7b3c;this[_0x21bacd(0x1a9)][_0x21bacd(0x161)](_0x170b5f[_0x21bacd(0x165)],_0x170b5f);}[_0xbb7b3c(0x193)](){const _0x334c44=_0xbb7b3c;this[_0x334c44(0x1a6)]={'document':{'enabled':!0x1!==this[_0x334c44(0x164)]?.[_0x334c44(0x1a5)]?.[_0x334c44(0x17b)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x334c44(0x164)]?.[_0x334c44(0x18d)]?.[_0x334c44(0x17b)]},'files':{'enabled':!0x1!==this[_0x334c44(0x164)]?.[_0x334c44(0x180)]?.[_0x334c44(0x17b)]},'sources':this[_0x334c44(0x18e)]()},this[_0x334c44(0x191)](_0x334c44(0x15d),{'options':this[_0x334c44(0x1a6)]});}[_0xbb7b3c(0x18e)](){const _0x5c6fa6=_0xbb7b3c;return this[_0x5c6fa6(0x164)]?.[_0x5c6fa6(0x12d)]?.[_0x5c6fa6(0x1ae)](_0x2633b4=>({..._0x2633b4,'resources':[]}))??[];}[_0xbb7b3c(0x19d)](){const _0x19ec12=_0xbb7b3c,_0x2c6c1d=this[_0x19ec12(0x163)]()||this[_0x19ec12(0x1b2)]();this[_0x19ec12(0x1a6)][_0x19ec12(0x1a5)][_0x19ec12(0x137)]=_0x2c6c1d,this[_0x19ec12(0x191)](_0x19ec12(0x15d),{'options':this[_0x19ec12(0x1a6)]});}[_0xbb7b3c(0x185)](_0x13b32f){const _0x3823b4=_0xbb7b3c;for(const _0x3514a7 of this[_0x3823b4(0x190)][_0x3823b4(0x13f)]())if(_0x3514a7[_0x3823b4(0x145)]===_0x13b32f)return!0x0;for(const _0x134ce7 of this[_0x3823b4(0x1a9)][_0x3823b4(0x13f)]())if(_0x134ce7[_0x3823b4(0x145)]===_0x13b32f)return!0x0;return!0x1;}[_0xbb7b3c(0x14a)](_0x3b42aa){const _0x56f859=_0xbb7b3c,_0x10d512=[];for(const _0x1724ad of this[_0x56f859(0x1a6)][_0x56f859(0x12d)]){_0x1724ad[_0x56f859(0x13c)][_0x56f859(0x1af)](_0x9542f9=>_0x9542f9['id']===_0x3b42aa)&&_0x10d512[_0x56f859(0x166)](_0x1724ad['id']);}return 0x0===_0x10d512[_0x56f859(0x128)]?null:_0x10d512;}[_0xbb7b3c(0x18f)](_0x3cee4d,_0x111dcc,_0x7246c5){const _0x283ae0=_0xbb7b3c,_0x16901f=this[_0x283ae0(0x1a6)][_0x283ae0(0x12d)][_0x283ae0(0x1af)](_0xb8cc24=>_0xb8cc24['id']===_0x3cee4d);if(!_0x16901f)return;const _0x571eb5=_0x16901f[_0x283ae0(0x13c)][_0x283ae0(0x1af)](_0x510211=>_0x510211['id']===_0x111dcc);_0x571eb5&&(_0x571eb5[_0x283ae0(0x16e)]=_0x7246c5,this[_0x283ae0(0x191)](_0x283ae0(0x16c),{'sourceId':_0x3cee4d,'resourceId':_0x111dcc,'isInContext':_0x7246c5}));}[_0xbb7b3c(0x12c)](_0x4299de){const _0x1489d3=_0xbb7b3c;this[_0x1489d3(0x156)][_0x1489d3(0x161)](_0x4299de,!0x0),this[_0x1489d3(0x156)][_0x1489d3(0x14e)]&&this[_0x1489d3(0x191)](_0x1489d3(0x1aa),{'isUploadInProgress':!0x0});}[_0xbb7b3c(0x127)](_0x301da1){const _0x2333dc=_0xbb7b3c;this[_0x2333dc(0x156)][_0x2333dc(0x1a0)](_0x301da1),0x0===this[_0x2333dc(0x156)][_0x2333dc(0x14e)]&&this[_0x2333dc(0x191)](_0x2333dc(0x1aa),{'isUploadInProgress':!0x1});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2306c6=_0x5755;(function(_0x3f7c55,_0x1e334c){const _0xdcc68d=_0x5755,_0x53a3ca=_0x3f7c55();while(!![]){try{const _0x52ca9a=-parseInt(_0xdcc68d(0xec))/0x1*(parseInt(_0xdcc68d(0xd9))/0x2)+-parseInt(_0xdcc68d(0xfd))/0x3*(-parseInt(_0xdcc68d(0xdd))/0x4)+parseInt(_0xdcc68d(0xd7))/0x5+parseInt(_0xdcc68d(0xaa))/0x6*(-parseInt(_0xdcc68d(0xc1))/0x7)+-parseInt(_0xdcc68d(0xb6))/0x8*(-parseInt(_0xdcc68d(0xa6))/0x9)+parseInt(_0xdcc68d(0xb7))/0xa*(parseInt(_0xdcc68d(0xf0))/0xb)+parseInt(_0xdcc68d(0xbd))/0xc;if(_0x52ca9a===_0x1e334c)break;else _0x53a3ca['push'](_0x53a3ca['shift']());}catch(_0x112c23){_0x53a3ca['push'](_0x53a3ca['shift']());}}}(_0x1fa4,0xa8d38));import{CKEditorError as _0x340a07,EmitterMixin as _0x5885af,logWarning as _0x57c52a}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x1704ab}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x1faa1e,AI_CONTEXT_MODEL_EVENT_NAMES as _0x35a2e1}from'./aichatcontext.js';import{AICapabilities as _0x26d618,CAPABILITIES_MODEL_EVENT_NAMES as _0x31c8e2}from'../../aicore/model/aicapabilities.js';function _0x5755(_0x4a0d27,_0x2f7737){const _0x1fa4b0=_0x1fa4();return _0x5755=function(_0x57552f,_0x37cb8b){_0x57552f=_0x57552f-0xa3;let _0x11e0f8=_0x1fa4b0[_0x57552f];return _0x11e0f8;},_0x5755(_0x4a0d27,_0x2f7737);}import{AIChatInteraction as _0x610ae6}from'./aichatinteraction.js';function _0x1fa4(){const _0x49f24b=['getAll','toLowerCase','ai-chat-conversation-start-no-model-selected','ai-chat-handle-user-interaction-already-in-progress','336459WtUzFk','find','set','message','interactions','delegate','title','handleUserInteraction','loadSourceResources','capabilities','destroy','getCurrentDocumentContext','getDocumentContext','group','toggleReasoning','addToConversationContext','user','init','modelSelected','prompt','updateCurrentDocument','type','stop','getCapabilitiesConfig','updateCurrentDocumentInContext','ai-chat-conversation-init-failed','sessionId','connector','addFilesToContext','text','_extractContextItems','getAvailableModels','toggleWebSearch','27DHiaFw','interactionCreated','webSearch','get','98466zmKrjl','splice','stack','fetchConversation','currentInteraction','lastInteraction','start','attributes','code','ai-chat-handle-user-conversation-not-initialized','isCurrentDocumentInConversation','addSelectionToContext','169104BxveGh','5175470ZWkyMT','addCurrentDocumentToContext','currentReply','addResourceToContext','conversationId','ai-chat-handle-user-interaction-start-failed','2811756gSOvXK','ai-chat-conversation-init-from-id-failed','isCurrentDocumentInContext','chatContext','560okclkD','addUrlToContext','populateFromMessage','chatCapabilities','setModel','chatModels','createReply','isStarted','push','assistant','appendContent','indexOf','isSelectionInContext','ai-chat-conversation-set-model-not-available','selectedModelId','quickActionData','getConversation','contextItems','setConversationTitle','getEditor','ai-chat-conversation-set-model-null','load','4908965boNhwj','getInteraction','258268BcoEPM','conversationInitialized','error','length','12iIlsjn','conversationStarted','options','reasoning','createInteraction','removeSelectionFromContext','removeInteraction','role','text-delta','removeFromContext','ai-chat-conversation-already-started','_processMessagesToInteractions','startConversation','selectedModel','ai-chat-conversation-start-failed','1tjxIal','fire','fetchConversationMessages','getMessages','11obPyzK','getModel','reset','content','hasOwn','getPendingContextItems','modification-delta','isAvailable','model'];_0x1fa4=function(){return _0x49f24b;};return _0x1fa4();}import{errorsMap as _0x346be0}from'../../errorsmap.js';export class AIChatConversation extends _0x5885af(){['id'];[_0x2306c6(0xc8)]=!0x1;[_0x2306c6(0x101)]=[];[_0x2306c6(0xae)];[_0x2306c6(0xea)];[_0x2306c6(0x118)];[_0x2306c6(0xdf)];constructor(_0x5233df){const _0x214de3=_0x2306c6;super(),this[_0x214de3(0xdf)]=_0x5233df,this[_0x214de3(0x118)]=_0x5233df[_0x214de3(0x118)],this[_0x214de3(0xc6)]=_0x5233df[_0x214de3(0xc6)],this['id']=_0x5233df[_0x214de3(0xbb)];}async[_0x2306c6(0x10e)](_0x36daef){const _0x5141e8=_0x2306c6;try{this[_0x5141e8(0xc0)]=new _0x1faa1e({'connector':this[_0x5141e8(0x118)],'config':_0x36daef,'ownerId':this['id']}),this[_0x5141e8(0xc0)][_0x5141e8(0x102)](..._0x35a2e1)['to'](this),this[_0x5141e8(0xc0)][_0x5141e8(0x10e)](),this[_0x5141e8(0xc4)]=new _0x26d618(),this[_0x5141e8(0xc4)][_0x5141e8(0x102)](..._0x31c8e2)['to'](this),this[_0x5141e8(0xc4)][_0x5141e8(0x10e)]();const _0x57c15e=await this[_0x5141e8(0xc6)][_0x5141e8(0xa4)]();this[_0x5141e8(0xed)](_0x5141e8(0xda),{'availableModels':_0x57c15e});const _0x492953=await this[_0x5141e8(0xc6)][_0x5141e8(0xf1)](this[_0x5141e8(0xdf)][_0x5141e8(0xcf)]);_0x492953&&await this[_0x5141e8(0xc5)](_0x492953);}catch(_0x224446){const _0x1c34cb=new _0x340a07(_0x5141e8(0x116),null,{'message':_0x224446[_0x5141e8(0x100)]||_0x224446});_0x1c34cb[_0x5141e8(0xac)]=_0x224446[_0x5141e8(0xac)],this[_0x5141e8(0xed)](_0x5141e8(0xdb),{'error':_0x1c34cb});}}async[_0x2306c6(0xb0)](){const _0x232a30=_0x2306c6;if(this[_0x232a30(0xc8)])throw new _0x340a07(_0x232a30(0xe7),null,{'conversation':this});if(!this[_0x232a30(0xea)])throw new _0x340a07(_0x232a30(0xfb),null,{'conversation':this});try{const {id:_0x1b9dd8}=await this[_0x232a30(0x118)][_0x232a30(0xe9)](this['id'],this[_0x232a30(0xdf)][_0x232a30(0x10a)])[_0x232a30(0xd1)]();this['id']=_0x1b9dd8,this[_0x232a30(0xc8)]=!0x0,this[_0x232a30(0xed)](_0x232a30(0xde),{'conversationId':this['id'],'selectedModel':this[_0x232a30(0xea)]});}catch(_0x5a4411){const _0xf4f21=new _0x340a07(_0x232a30(0xeb),null,{'message':_0x5a4411[_0x232a30(0x100)],'conversationId':this['id']});throw _0xf4f21[_0x232a30(0xac)]=_0x5a4411[_0x232a30(0xac)],this[_0x232a30(0xed)](_0x232a30(0xdb),{'error':_0xf4f21}),_0xf4f21;}}async[_0x2306c6(0xd6)](_0x2dc415,_0x56ecfa){const _0x42732a=_0x2306c6;try{const _0x1692b9=await this[_0x42732a(0x118)][_0x42732a(0xad)](_0x2dc415)[_0x42732a(0xd1)](),_0x33776b=await this[_0x42732a(0x118)][_0x42732a(0xee)](_0x2dc415)[_0x42732a(0xef)](),_0x2fed9c=_0x33776b[0x0][_0x42732a(0xf8)];this[_0x42732a(0xc8)]=!0x0,this['id']=_0x1692b9['id'],_0x42732a(0x103)in _0x1692b9?this[_0x42732a(0xed)](_0x42732a(0xd3),_0x1692b9[_0x42732a(0x103)],!0x0):this[_0x42732a(0xed)](_0x42732a(0xd3),'',!0x0);const _0x24c0f4=(await this[_0x42732a(0xc6)][_0x42732a(0xf9)]())[_0x42732a(0xfe)](_0x22fbae=>_0x22fbae['id'][_0x42732a(0xfa)]()===_0x2fed9c[_0x42732a(0xfa)]());return this[_0x42732a(0xea)]=_0x24c0f4,this[_0x42732a(0xed)](_0x42732a(0x10f),{'selectedModel':_0x24c0f4,'isDisabled':!0x0}),await this[_0x42732a(0xe8)](_0x33776b,_0x56ecfa,_0x2fed9c),this[_0x42732a(0xae)]=void 0x0,this;}catch(_0xbd27f){const _0x2f56fd=new _0x340a07(_0x42732a(0xbe),null,{'message':_0xbd27f[_0x42732a(0x100)],'conversationId':_0x2dc415});throw _0x2f56fd[_0x42732a(0xac)]=_0xbd27f[_0x42732a(0xac)],this[_0x42732a(0xed)](_0x42732a(0xdb),{'error':_0x2f56fd}),_0x2f56fd;}}async[_0x2306c6(0xe8)](_0x10a159,_0x29b326,_0x5a6e51){const _0x7fd3ae=_0x2306c6;let _0x3e2163;for(const _0x2260ad of _0x10a159)if(_0x7fd3ae(0x10d)===_0x2260ad[_0x7fd3ae(0xe4)]){const _0x425a79=await this[_0x7fd3ae(0xa3)](_0x2260ad),_0x9f5a4b={'isReasoningEnabled':Object[_0x7fd3ae(0xf4)](_0x2260ad[_0x7fd3ae(0x106)],_0x7fd3ae(0xe0)),'isWebSearchEnabled':Object[_0x7fd3ae(0xf4)](_0x2260ad[_0x7fd3ae(0x106)],_0x7fd3ae(0xa8))};_0x3e2163=this[_0x7fd3ae(0xe1)]({'userMessage':_0x2260ad[_0x7fd3ae(0x110)],'contextItems':_0x425a79,'capabilities':_0x9f5a4b,'modelId':_0x5a6e51,'quickActionData':_0x2260ad[_0x7fd3ae(0xb1)]?.[_0x7fd3ae(0xd0)]}),this[_0x7fd3ae(0xae)]=_0x3e2163,this[_0x7fd3ae(0xc0)][_0x7fd3ae(0x10c)](this[_0x7fd3ae(0xae)][_0x7fd3ae(0xd2)]);}else{if(_0x7fd3ae(0xca)===_0x2260ad[_0x7fd3ae(0xe4)]&&_0x3e2163)for(const _0x5662c6 of _0x2260ad[_0x7fd3ae(0xf3)]){const _0x45cf89=_0x7fd3ae(0x11a)===_0x5662c6[_0x7fd3ae(0x112)]?_0x7fd3ae(0xe5):_0x7fd3ae(0xf6),_0x1a6e55=_0x3e2163[_0x7fd3ae(0x109)]()?.[_0x7fd3ae(0x117)]!==_0x29b326;_0x3e2163[_0x7fd3ae(0xb9)]=_0x3e2163[_0x7fd3ae(0xc7)]({'type':_0x45cf89,'isDone':!0x0,'interactionId':_0x3e2163['id'],'areActionsDisabled':_0x1a6e55}),_0x3e2163[_0x7fd3ae(0xb9)][_0x7fd3ae(0xcb)](_0x5662c6[_0x7fd3ae(0xf3)]);}}}async[_0x2306c6(0xa3)](_0x4817b4){const _0x2777f9=_0x2306c6,_0x38d9dd=new Map();if(!_0x4817b4[_0x2777f9(0xf3)])return _0x38d9dd;for(const _0x243534 of _0x4817b4[_0x2777f9(0xf3)]){const _0x177e61=await this[_0x2777f9(0xc0)][_0x2777f9(0xc3)](_0x243534);_0x177e61&&_0x38d9dd[_0x2777f9(0xff)](_0x177e61['id'],_0x177e61);}return _0x38d9dd;}async[_0x2306c6(0x104)]({userMessage:_0xa45f5e,quickActionData:_0x553a6d}){const _0x420b5a=_0x2306c6;if(!this[_0x420b5a(0xc8)])throw new _0x340a07(_0x420b5a(0xb3),null,{'conversation':this});if(this[_0x420b5a(0xae)])throw new _0x340a07(_0x420b5a(0xfc),null,{'conversation':this});try{const _0x1568f0=this[_0x420b5a(0xc0)][_0x420b5a(0xf5)](),_0x4d7442=this[_0x420b5a(0xc4)][_0x420b5a(0x114)](),_0x4a5025=this[_0x420b5a(0xea)]['id'];this[_0x420b5a(0xae)]=this[_0x420b5a(0xe1)]({'userMessage':_0xa45f5e,'contextItems':_0x1568f0,'capabilities':_0x4d7442,'modelId':_0x4a5025,'quickActionData':_0x553a6d}),await this[_0x420b5a(0xae)][_0x420b5a(0xb0)](),this[_0x420b5a(0xc0)][_0x420b5a(0x10c)](this[_0x420b5a(0xae)][_0x420b5a(0xd2)]);}catch(_0x2a7d7d){if(_0x2a7d7d instanceof _0x340a07)this[_0x420b5a(0xed)](_0x420b5a(0xdb),{'interactionId':this[_0x420b5a(0xae)]?this[_0x420b5a(0xae)]['id']:void 0x0,'error':_0x2a7d7d});else{const _0x4bca79=_0x346be0[_0x420b5a(0xa9)](_0x2a7d7d[_0x420b5a(0xb2)])||_0x420b5a(0xbc);this[_0x420b5a(0xed)](_0x420b5a(0xdb),{'interactionId':this[_0x420b5a(0xae)]?this[_0x420b5a(0xae)]['id']:void 0x0,'error':new _0x340a07(_0x4bca79,null,{'error':_0x2a7d7d})});}}finally{this[_0x420b5a(0xae)]?.[_0x420b5a(0x113)](),this[_0x420b5a(0xae)]=void 0x0;}}[_0x2306c6(0xe1)]({userMessage:_0x17d0e3,contextItems:_0x12124e,capabilities:_0x554577,modelId:_0x2e0514,quickActionData:_0x546326}){const _0x215287=_0x2306c6,_0x400eea=new _0x610ae6({'userMessage':_0x17d0e3,'contextItems':_0x12124e,'capabilities':_0x554577,'conversationId':this['id'],'connector':this[_0x215287(0x118)],'editor':this[_0x215287(0xdf)][_0x215287(0xd4)]&&this[_0x215287(0xdf)][_0x215287(0xd4)](),'model':_0x2e0514,'quickActionData':_0x546326});return _0x400eea[_0x215287(0x102)](..._0x1704ab)['to'](this),this[_0x215287(0x101)][_0x215287(0xc9)](_0x400eea),this[_0x215287(0xed)](_0x215287(0xa7),_0x400eea),_0x400eea;}[_0x2306c6(0xd8)](_0x468198){const _0x44b656=_0x2306c6;return this[_0x44b656(0x101)][_0x44b656(0xfe)](_0x400c00=>_0x400c00['id']===_0x468198);}[_0x2306c6(0xe3)](_0x55d31c){const _0x46cf83=_0x2306c6,_0x127a4c=this[_0x46cf83(0xd8)](_0x55d31c);_0x127a4c&&(_0x127a4c[_0x46cf83(0x107)](),this[_0x46cf83(0x101)][_0x46cf83(0xab)](this[_0x46cf83(0x101)][_0x46cf83(0xcc)](_0x127a4c),0x1));}get[_0x2306c6(0xaf)](){const _0x1f9241=_0x2306c6;return this[_0x1f9241(0x101)][this[_0x1f9241(0x101)][_0x1f9241(0xdc)]-0x1];}[_0x2306c6(0xb8)](_0x43fa3c){const _0xa9b8bf=_0x2306c6;this[_0xa9b8bf(0xc0)][_0xa9b8bf(0xb8)](_0x43fa3c);}async[_0x2306c6(0x115)]({content:_0xb1e644,version:_0x473d71,sessionId:_0x93aaf7,selections:_0x5e4190}){const _0x15930e=_0x2306c6;await this[_0x15930e(0xc0)][_0x15930e(0x111)](_0xb1e644,_0x473d71,_0x93aaf7,_0x5e4190);}[_0x2306c6(0x108)](){const _0x21b8b1=_0x2306c6;return this[_0x21b8b1(0xae)]?.[_0x21b8b1(0x109)]()?.[_0x21b8b1(0xf3)]||'';}[_0x2306c6(0xb5)](_0x120e9a){const _0xf54211=_0x2306c6;this[_0xf54211(0xc0)][_0xf54211(0xb5)](_0x120e9a);}[_0x2306c6(0xe2)](){const _0xf1c6c0=_0x2306c6;this[_0xf1c6c0(0xc0)][_0xf1c6c0(0xe2)]();}[_0x2306c6(0x119)](_0x4f8525){const _0x57f106=_0x2306c6;this[_0x57f106(0xc0)][_0x57f106(0x119)](_0x4f8525);}[_0x2306c6(0xc2)](_0x503fa0){const _0x4cebe1=_0x2306c6;this[_0x4cebe1(0xc0)][_0x4cebe1(0xc2)](_0x503fa0);}[_0x2306c6(0xba)](_0x4925f0,_0x18cfd4){const _0x37f9ac=_0x2306c6;this[_0x37f9ac(0xc0)][_0x37f9ac(0xba)](_0x4925f0,_0x18cfd4);}[_0x2306c6(0x105)](_0x346abc,_0x27e174,_0x396fd0){const _0x54089a=_0x2306c6;return this[_0x54089a(0xc0)][_0x54089a(0x105)](_0x346abc,_0x27e174,_0x396fd0);}[_0x2306c6(0xe6)](_0xa969a1){const _0x56cf38=_0x2306c6;this[_0x56cf38(0xc0)][_0x56cf38(0xe6)](_0xa969a1);}[_0x2306c6(0xa5)](){const _0x369ded=_0x2306c6;this[_0x369ded(0xc4)][_0x369ded(0xa5)]();}[_0x2306c6(0x10b)](){const _0x36f1df=_0x2306c6;this[_0x36f1df(0xc4)][_0x36f1df(0x10b)]();}[_0x2306c6(0xbf)](){const _0x53886c=_0x2306c6;return this[_0x53886c(0xc0)][_0x53886c(0xbf)]();}[_0x2306c6(0xb4)](){const _0x48d209=_0x2306c6;return this[_0x48d209(0xc0)][_0x48d209(0xb4)]();}[_0x2306c6(0xcd)](){const _0x2098fe=_0x2306c6;return this[_0x2098fe(0xc0)][_0x2098fe(0xcd)]();}async[_0x2306c6(0xc5)](_0x3d4d97){const _0x3b40cf=_0x2306c6;_0x3d4d97?!0x1===await this[_0x3b40cf(0xc6)][_0x3b40cf(0xf7)](_0x3d4d97)&&(_0x57c52a(_0x3b40cf(0xce),{'conversation':this,'model':_0x3d4d97}),_0x3d4d97=(await this[_0x3b40cf(0xc6)][_0x3b40cf(0xa4)]())[0x0]):(_0x57c52a(_0x3b40cf(0xd5),{'conversation':this}),_0x3d4d97=(await this[_0x3b40cf(0xc6)][_0x3b40cf(0xa4)]())[0x0]),_0x3d4d97['id']!==this[_0x3b40cf(0xea)]?.['id']&&(this[_0x3b40cf(0xea)]=_0x3d4d97,this[_0x3b40cf(0xc4)][_0x3b40cf(0xf2)](),this[_0x3b40cf(0xed)](_0x3b40cf(0x10f),{'selectedModel':_0x3d4d97}));}}
|
|
23
|
+
const _0x462782=_0x2aee;(function(_0x16efdb,_0x2c3461){const _0xb9fc8d=_0x2aee,_0x37616a=_0x16efdb();while(!![]){try{const _0x44f70e=-parseInt(_0xb9fc8d(0x1ca))/0x1*(parseInt(_0xb9fc8d(0x1cf))/0x2)+-parseInt(_0xb9fc8d(0x1c2))/0x3*(parseInt(_0xb9fc8d(0x1a7))/0x4)+parseInt(_0xb9fc8d(0x209))/0x5+-parseInt(_0xb9fc8d(0x207))/0x6+parseInt(_0xb9fc8d(0x1f1))/0x7*(parseInt(_0xb9fc8d(0x1a6))/0x8)+-parseInt(_0xb9fc8d(0x1aa))/0x9*(-parseInt(_0xb9fc8d(0x1e0))/0xa)+parseInt(_0xb9fc8d(0x1ed))/0xb;if(_0x44f70e===_0x2c3461)break;else _0x37616a['push'](_0x37616a['shift']());}catch(_0x4e1295){_0x37616a['push'](_0x37616a['shift']());}}}(_0x2935,0x61702));import{CKEditorError as _0x4f6274,EmitterMixin as _0x1b7764,logWarning as _0x49e2ae}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x786540}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x36d193,AI_CONTEXT_MODEL_EVENT_NAMES as _0x447374}from'./aichatcontext.js';import{AICapabilities as _0x49baab,CAPABILITIES_MODEL_EVENT_NAMES as _0x20ddf4}from'../../aicore/model/aicapabilities.js';function _0x2935(){const _0x1b8818=['lastInteraction','assistant','8900045eobuhT','createInteraction','selectedModelId','setModel','21YlNjXw','ai-chat-handle-user-interaction-start-failed','selectedModel','length','contextItems','init','push','conversationStarted','interactions','addToConversationContext','fetchConversation','toggleReasoning','attributes','ai-chat-conversation-init-failed','getCapabilitiesConfig','chatModels','splice','options','ai-chat-conversation-set-model-null','isCurrentDocumentInContext','title','getAll','1816794bwkGAn','webSearch','2360050rOGaRF','getModel','modelSelected','getMessages','stop','toggleWebSearch','chatCapabilities','find','removeSelectionFromContext','getInteraction','chatContext','interactionCreated','modification-delta','getEditor','currentReply','getPendingContextItems','toLowerCase','addFilesToContext','reasoning','addResourceToContext','355176BQBztt','58772hYzrdl','quickActionData','populateFromMessage','918ryKIoC','currentInteraction','fire','content','isAvailable','message','ai-chat-conversation-start-no-model-selected','ai-chat-handle-user-conversation-not-initialized','set','_extractContextItems','loadSourceResources','updateCurrentDocument','role','appendContent','ai-chat-conversation-start-failed','handleUserInteraction','load','getCurrentDocumentContext','sessionId','capabilities','model','indexOf','delegate','ai-chat-handle-user-interaction-already-in-progress','117YoPIux','createReply','getDocumentContext','type','addUrlToContext','_processMessagesToInteractions','conversationInitialized','prompt','326110yPeETP','isSelectionInContext','user','conversationId','text','4UuIfsq','ai-chat-conversation-already-started','ai-chat-conversation-init-from-id-failed','updateCurrentDocumentInContext','addCurrentDocumentToContext','connector','ai-chat-conversation-set-model-not-available','fetchConversationMessages','start','getAvailableModels','addSelectionToContext','text-delta','reset','removeInteraction','code','stack','destroy','50280ULAkfK','startConversation','isStarted','hasOwn','group','get','isCurrentDocumentInConversation','getConversation','error','setConversationTitle','removeFromContext'];_0x2935=function(){return _0x1b8818;};return _0x2935();}import{AIChatInteraction as _0xb5d3a0}from'./aichatinteraction.js';function _0x2aee(_0x338dd5,_0xc1321b){const _0x293564=_0x2935();return _0x2aee=function(_0x2aee46,_0x5987ca){_0x2aee46=_0x2aee46-0x19c;let _0x23c685=_0x293564[_0x2aee46];return _0x23c685;},_0x2aee(_0x338dd5,_0xc1321b);}import{errorsMap as _0x3b3143}from'../../errorsmap.js';export class AIChatConversation extends _0x1b7764(){['id'];[_0x462782(0x1e2)]=!0x1;[_0x462782(0x1f9)]=[];[_0x462782(0x1ab)];[_0x462782(0x1f3)];[_0x462782(0x1d4)];[_0x462782(0x202)];constructor(_0x575a24){const _0x5a023c=_0x462782;super(),this[_0x5a023c(0x202)]=_0x575a24,this[_0x5a023c(0x1d4)]=_0x575a24[_0x5a023c(0x1d4)],this[_0x5a023c(0x200)]=_0x575a24[_0x5a023c(0x200)],this['id']=_0x575a24[_0x5a023c(0x1cd)];}async[_0x462782(0x1f6)](_0x51d141){const _0x4f9cca=_0x462782;try{this[_0x4f9cca(0x19c)]=new _0x36d193({'connector':this[_0x4f9cca(0x1d4)],'config':_0x51d141,'ownerId':this['id']}),this[_0x4f9cca(0x19c)][_0x4f9cca(0x1c0)](..._0x447374)['to'](this),this[_0x4f9cca(0x19c)][_0x4f9cca(0x1f6)](),this[_0x4f9cca(0x20f)]=new _0x49baab(),this[_0x4f9cca(0x20f)][_0x4f9cca(0x1c0)](..._0x20ddf4)['to'](this),this[_0x4f9cca(0x20f)][_0x4f9cca(0x1f6)]();const _0x52d52e=await this[_0x4f9cca(0x200)][_0x4f9cca(0x1d8)]();this[_0x4f9cca(0x1ac)](_0x4f9cca(0x1c8),{'availableModels':_0x52d52e});const _0x440fca=await this[_0x4f9cca(0x200)][_0x4f9cca(0x20a)](this[_0x4f9cca(0x202)][_0x4f9cca(0x1ef)]);_0x440fca&&await this[_0x4f9cca(0x1f0)](_0x440fca);}catch(_0x3b91b7){const _0x51e0d5=new _0x4f6274(_0x4f9cca(0x1fe),null,{'message':_0x3b91b7[_0x4f9cca(0x1af)]||_0x3b91b7});_0x51e0d5[_0x4f9cca(0x1de)]=_0x3b91b7[_0x4f9cca(0x1de)],this[_0x4f9cca(0x1ac)](_0x4f9cca(0x1e8),{'error':_0x51e0d5});}}async[_0x462782(0x1d7)](){const _0x1862cc=_0x462782;if(this[_0x1862cc(0x1e2)])throw new _0x4f6274(_0x1862cc(0x1d0),null,{'conversation':this});if(!this[_0x1862cc(0x1f3)])throw new _0x4f6274(_0x1862cc(0x1b0),null,{'conversation':this});try{const {id:_0xa73be1}=await this[_0x1862cc(0x1d4)][_0x1862cc(0x1e1)](this['id'],this[_0x1862cc(0x202)][_0x1862cc(0x1e4)])[_0x1862cc(0x1e7)]();this['id']=_0xa73be1,this[_0x1862cc(0x1e2)]=!0x0,this[_0x1862cc(0x1ac)](_0x1862cc(0x1f8),{'conversationId':this['id'],'selectedModel':this[_0x1862cc(0x1f3)]});}catch(_0x1cd5f4){const _0x53c1ec=new _0x4f6274(_0x1862cc(0x1b8),null,{'message':_0x1cd5f4[_0x1862cc(0x1af)],'conversationId':this['id']});throw _0x53c1ec[_0x1862cc(0x1de)]=_0x1cd5f4[_0x1862cc(0x1de)],this[_0x1862cc(0x1ac)](_0x1862cc(0x1e8),{'error':_0x53c1ec}),_0x53c1ec;}}async[_0x462782(0x1ba)](_0x591a20,_0x1499e0){const _0x190475=_0x462782;try{const _0x521ff8=await this[_0x190475(0x1d4)][_0x190475(0x1fb)](_0x591a20)[_0x190475(0x1e7)](),_0x486162=await this[_0x190475(0x1d4)][_0x190475(0x1d6)](_0x591a20)[_0x190475(0x20c)](),_0x38e2a9=_0x486162[0x0][_0x190475(0x1be)];this[_0x190475(0x1e2)]=!0x0,this['id']=_0x521ff8['id'],_0x190475(0x205)in _0x521ff8?this[_0x190475(0x1ac)](_0x190475(0x1e9),_0x521ff8[_0x190475(0x205)],!0x0):this[_0x190475(0x1ac)](_0x190475(0x1e9),'',!0x0);const _0x20e019=(await this[_0x190475(0x200)][_0x190475(0x206)]())[_0x190475(0x210)](_0x212a1f=>_0x212a1f['id'][_0x190475(0x1a2)]()===_0x38e2a9[_0x190475(0x1a2)]());return this[_0x190475(0x1f3)]=_0x20e019,this[_0x190475(0x1ac)](_0x190475(0x20b),{'selectedModel':_0x20e019,'isDisabled':!0x0}),await this[_0x190475(0x1c7)](_0x486162,_0x1499e0,_0x38e2a9),this[_0x190475(0x1ab)]=void 0x0,this;}catch(_0x10ff39){const _0x319e2a=new _0x4f6274(_0x190475(0x1d1),null,{'message':_0x10ff39[_0x190475(0x1af)],'conversationId':_0x591a20});throw _0x319e2a[_0x190475(0x1de)]=_0x10ff39[_0x190475(0x1de)],this[_0x190475(0x1ac)](_0x190475(0x1e8),{'error':_0x319e2a}),_0x319e2a;}}async[_0x462782(0x1c7)](_0x5cde5b,_0x2d0fed,_0x48b396){const _0x1c62f7=_0x462782;let _0x3c08f5;for(const _0x45e8a3 of _0x5cde5b)if(_0x1c62f7(0x1cc)===_0x45e8a3[_0x1c62f7(0x1b6)]){const _0x411247=await this[_0x1c62f7(0x1b3)](_0x45e8a3),_0x2dc265={'isReasoningEnabled':Object[_0x1c62f7(0x1e3)](_0x45e8a3[_0x1c62f7(0x1bd)],_0x1c62f7(0x1a4)),'isWebSearchEnabled':Object[_0x1c62f7(0x1e3)](_0x45e8a3[_0x1c62f7(0x1bd)],_0x1c62f7(0x208))};_0x3c08f5=this[_0x1c62f7(0x1ee)]({'userMessage':_0x45e8a3[_0x1c62f7(0x1c9)],'contextItems':_0x411247,'capabilities':_0x2dc265,'modelId':_0x48b396,'quickActionData':_0x45e8a3[_0x1c62f7(0x1fd)]?.[_0x1c62f7(0x1a8)]}),this[_0x1c62f7(0x1ab)]=_0x3c08f5,this[_0x1c62f7(0x19c)][_0x1c62f7(0x1fa)](this[_0x1c62f7(0x1ab)][_0x1c62f7(0x1f5)]);}else{if(_0x1c62f7(0x1ec)===_0x45e8a3[_0x1c62f7(0x1b6)]&&_0x3c08f5)for(const _0x1406ff of _0x45e8a3[_0x1c62f7(0x1ad)]){const _0x169c0b=_0x1c62f7(0x1ce)===_0x1406ff[_0x1c62f7(0x1c5)]?_0x1c62f7(0x1da):_0x1c62f7(0x19e),_0x34d19f=_0x3c08f5[_0x1c62f7(0x1c4)]()?.[_0x1c62f7(0x1bc)]!==_0x2d0fed;_0x3c08f5[_0x1c62f7(0x1a0)]=_0x3c08f5[_0x1c62f7(0x1c3)]({'type':_0x169c0b,'isDone':!0x0,'interactionId':_0x3c08f5['id'],'areActionsDisabled':_0x34d19f}),_0x3c08f5[_0x1c62f7(0x1a0)][_0x1c62f7(0x1b7)](_0x1406ff[_0x1c62f7(0x1ad)]);}}}async[_0x462782(0x1b3)](_0xe87cb9){const _0x3fddac=_0x462782,_0x27b3ab=new Map();if(!_0xe87cb9[_0x3fddac(0x1ad)])return _0x27b3ab;for(const _0x56caaf of _0xe87cb9[_0x3fddac(0x1ad)]){const _0x1b7d99=await this[_0x3fddac(0x19c)][_0x3fddac(0x1a9)](_0x56caaf);_0x1b7d99&&_0x27b3ab[_0x3fddac(0x1b2)](_0x1b7d99['id'],_0x1b7d99);}return _0x27b3ab;}async[_0x462782(0x1b9)]({userMessage:_0x3ec330,quickActionData:_0x3f6153}){const _0xe97bff=_0x462782;if(!this[_0xe97bff(0x1e2)])throw new _0x4f6274(_0xe97bff(0x1b1),null,{'conversation':this});if(this[_0xe97bff(0x1ab)])throw new _0x4f6274(_0xe97bff(0x1c1),null,{'conversation':this});try{const _0xdfa37f=this[_0xe97bff(0x19c)][_0xe97bff(0x1a1)](),_0xfafe76=this[_0xe97bff(0x20f)][_0xe97bff(0x1ff)](),_0x61963c=this[_0xe97bff(0x1f3)]['id'];this[_0xe97bff(0x1ab)]=this[_0xe97bff(0x1ee)]({'userMessage':_0x3ec330,'contextItems':_0xdfa37f,'capabilities':_0xfafe76,'modelId':_0x61963c,'quickActionData':_0x3f6153}),await this[_0xe97bff(0x1ab)][_0xe97bff(0x1d7)](),this[_0xe97bff(0x19c)][_0xe97bff(0x1fa)](this[_0xe97bff(0x1ab)][_0xe97bff(0x1f5)]);}catch(_0x26629f){if(_0x26629f instanceof _0x4f6274)this[_0xe97bff(0x1ac)](_0xe97bff(0x1e8),{'interactionId':this[_0xe97bff(0x1ab)]?this[_0xe97bff(0x1ab)]['id']:void 0x0,'error':_0x26629f});else{const _0x1dd677=_0x3b3143[_0xe97bff(0x1e5)](_0x26629f[_0xe97bff(0x1dd)])||_0xe97bff(0x1f2);this[_0xe97bff(0x1ac)](_0xe97bff(0x1e8),{'interactionId':this[_0xe97bff(0x1ab)]?this[_0xe97bff(0x1ab)]['id']:void 0x0,'error':new _0x4f6274(_0x1dd677,null,{'error':_0x26629f})});}}finally{this[_0xe97bff(0x1ab)]?.[_0xe97bff(0x20d)](),this[_0xe97bff(0x1ab)]=void 0x0;}}[_0x462782(0x1ee)]({userMessage:_0x420a88,contextItems:_0x1e8691,capabilities:_0x37e7af,modelId:_0x1e3761,quickActionData:_0x46c759}){const _0x26f933=_0x462782,_0x44bab2=new _0xb5d3a0({'userMessage':_0x420a88,'contextItems':_0x1e8691,'capabilities':_0x37e7af,'conversationId':this['id'],'connector':this[_0x26f933(0x1d4)],'editor':this[_0x26f933(0x202)][_0x26f933(0x19f)]&&this[_0x26f933(0x202)][_0x26f933(0x19f)](),'model':_0x1e3761,'quickActionData':_0x46c759});return _0x44bab2[_0x26f933(0x1c0)](..._0x786540)['to'](this),this[_0x26f933(0x1f9)][_0x26f933(0x1f7)](_0x44bab2),this[_0x26f933(0x1ac)](_0x26f933(0x19d),_0x44bab2),_0x44bab2;}[_0x462782(0x212)](_0x236b1c){const _0xaaa64c=_0x462782;return this[_0xaaa64c(0x1f9)][_0xaaa64c(0x210)](_0x158d4c=>_0x158d4c['id']===_0x236b1c);}[_0x462782(0x1dc)](_0x2692a6){const _0x315fb3=_0x462782,_0x5a6fb5=this[_0x315fb3(0x212)](_0x2692a6);_0x5a6fb5&&(_0x5a6fb5[_0x315fb3(0x1df)](),this[_0x315fb3(0x1f9)][_0x315fb3(0x201)](this[_0x315fb3(0x1f9)][_0x315fb3(0x1bf)](_0x5a6fb5),0x1));}get[_0x462782(0x1eb)](){const _0x567776=_0x462782;return this[_0x567776(0x1f9)][this[_0x567776(0x1f9)][_0x567776(0x1f4)]-0x1];}[_0x462782(0x1d3)](_0x46789c){const _0x54fa57=_0x462782;this[_0x54fa57(0x19c)][_0x54fa57(0x1d3)](_0x46789c);}async[_0x462782(0x1d2)]({content:_0x703bab,version:_0x3df005,sessionId:_0x409a15,selections:_0xaf0ce0}){const _0x153cef=_0x462782;await this[_0x153cef(0x19c)][_0x153cef(0x1b5)](_0x703bab,_0x3df005,_0x409a15,_0xaf0ce0);}[_0x462782(0x1bb)](){const _0xf484e9=_0x462782;return this[_0xf484e9(0x1ab)]?.[_0xf484e9(0x1c4)]()?.[_0xf484e9(0x1ad)]||'';}[_0x462782(0x1d9)](_0x2c6e50){const _0xeebd6d=_0x462782;this[_0xeebd6d(0x19c)][_0xeebd6d(0x1d9)](_0x2c6e50);}[_0x462782(0x211)](){const _0x560dbd=_0x462782;this[_0x560dbd(0x19c)][_0x560dbd(0x211)]();}[_0x462782(0x1a3)](_0x7061b1){const _0x19b799=_0x462782;this[_0x19b799(0x19c)][_0x19b799(0x1a3)](_0x7061b1);}[_0x462782(0x1c6)](_0x2941c0){const _0x1c4769=_0x462782;this[_0x1c4769(0x19c)][_0x1c4769(0x1c6)](_0x2941c0);}[_0x462782(0x1a5)](_0xab79f8,_0x26714e){const _0x382282=_0x462782;this[_0x382282(0x19c)][_0x382282(0x1a5)](_0xab79f8,_0x26714e);}[_0x462782(0x1b4)](_0x561af5,_0x1a8408,_0x49b070){const _0x3d0267=_0x462782;return this[_0x3d0267(0x19c)][_0x3d0267(0x1b4)](_0x561af5,_0x1a8408,_0x49b070);}[_0x462782(0x1ea)](_0x48d2dc){const _0x2674c9=_0x462782;this[_0x2674c9(0x19c)][_0x2674c9(0x1ea)](_0x48d2dc);}[_0x462782(0x20e)](){const _0x8d6fc4=_0x462782;this[_0x8d6fc4(0x20f)][_0x8d6fc4(0x20e)]();}[_0x462782(0x1fc)](){const _0x53cfb7=_0x462782;this[_0x53cfb7(0x20f)][_0x53cfb7(0x1fc)]();}[_0x462782(0x204)](){const _0x2c856f=_0x462782;return this[_0x2c856f(0x19c)][_0x2c856f(0x204)]();}[_0x462782(0x1e6)](){const _0x531097=_0x462782;return this[_0x531097(0x19c)][_0x531097(0x1e6)]();}[_0x462782(0x1cb)](){const _0x591f38=_0x462782;return this[_0x591f38(0x19c)][_0x591f38(0x1cb)]();}async[_0x462782(0x1f0)](_0x567229){const _0x55b9b7=_0x462782;_0x567229?!0x1===await this[_0x55b9b7(0x200)][_0x55b9b7(0x1ae)](_0x567229)&&(_0x49e2ae(_0x55b9b7(0x1d5),{'conversation':this,'model':_0x567229}),_0x567229=(await this[_0x55b9b7(0x200)][_0x55b9b7(0x1d8)]())[0x0]):(_0x49e2ae(_0x55b9b7(0x203),{'conversation':this}),_0x567229=(await this[_0x55b9b7(0x200)][_0x55b9b7(0x1d8)]())[0x0]),_0x567229['id']!==this[_0x55b9b7(0x1f3)]?.['id']&&(this[_0x55b9b7(0x1f3)]=_0x567229,this[_0x55b9b7(0x20f)][_0x55b9b7(0x1db)](),this[_0x55b9b7(0x1ac)](_0x55b9b7(0x20b),{'selectedModel':_0x567229}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xa0d1be=_0x1101;(function(_0x4fc4c7,_0x56852c){var _0x506d71=_0x1101,_0x7da897=_0x4fc4c7();while(!![]){try{var _0x29712d=parseInt(_0x506d71(0x1bc))/0x1*(-parseInt(_0x506d71(0x1b8))/0x2)+parseInt(_0x506d71(0x1a7))/0x3+parseInt(_0x506d71(0x1ad))/0x4+-parseInt(_0x506d71(0x1b9))/0x5*(-parseInt(_0x506d71(0x1ac))/0x6)+parseInt(_0x506d71(0x1a9))/0x7+-parseInt(_0x506d71(0x1a8))/0x8+-parseInt(_0x506d71(0x1b5))/0x9;if(_0x29712d===_0x56852c)break;else _0x7da897['push'](_0x7da897['shift']());}catch(_0x4cb68a){_0x7da897['push'](_0x7da897['shift']());}}}(_0x52f0,0xa7769));import{AICapabilities as _0x1a756a}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x1c5631}from'../../aicore/model/aiinteraction.js';function _0x1101(_0x35b672,_0x10fae7){var _0x52f02c=_0x52f0();return _0x1101=function(_0x1101b0,_0x340f3b){_0x1101b0=_0x1101b0-0x1a6;var _0x5d5774=_0x52f02c[_0x1101b0];return _0x5d5774;},_0x1101(_0x35b672,_0x10fae7);}import{AIChatContext as _0x4a24d1}from'./aichatcontext.js';function _0x52f0(){var _0x1b8723=['current-document','capabilities','userMessage','getDocumentContext','model','queryAssistant','14132169hDgfxA','quickActionData','sendRequest','2YtDvUR','10YEIXGS','mapContextItemsToRequestData','getCapabilitiesRequestData','154006GESNni','get','3449196VkmgdU','3580328eBLbmg','6556858wvlevm','conversationId','contextItems','1529646LUTaPe','1045636HqOzLh','connector'];_0x52f0=function(){return _0x1b8723;};return _0x52f0();}export class AIChatInteraction extends _0x1c5631{[_0xa0d1be(0x1b1)];[_0xa0d1be(0x1aa)];[_0xa0d1be(0x1ab)]=new Map();[_0xa0d1be(0x1b3)];[_0xa0d1be(0x1b6)];constructor(_0x3c8cce){var _0x1bd4d8=_0xa0d1be;super(_0x3c8cce),this[_0x1bd4d8(0x1aa)]=_0x3c8cce[_0x1bd4d8(0x1aa)],this[_0x1bd4d8(0x1ab)]=_0x3c8cce[_0x1bd4d8(0x1ab)],this[_0x1bd4d8(0x1b0)]=_0x3c8cce[_0x1bd4d8(0x1b0)],this[_0x1bd4d8(0x1b1)]=_0x3c8cce[_0x1bd4d8(0x1b1)],this[_0x1bd4d8(0x1b3)]=_0x3c8cce[_0x1bd4d8(0x1b3)],this[_0x1bd4d8(0x1b6)]=_0x3c8cce[_0x1bd4d8(0x1b6)];}async[_0xa0d1be(0x1b7)](){var _0x4541ea=_0xa0d1be;return this[_0x4541ea(0x1ae)][_0x4541ea(0x1b4)]({'message':this[_0x4541ea(0x1b1)],'conversationId':this[_0x4541ea(0x1aa)],'parts':_0x4a24d1[_0x4541ea(0x1ba)](this[_0x4541ea(0x1ab)]),'capabilities':_0x1a756a[_0x4541ea(0x1bb)](this[_0x4541ea(0x1b0)]),'model':this[_0x4541ea(0x1b3)],'quickActionData':this[_0x4541ea(0x1b6)]});}[_0xa0d1be(0x1b2)](){var _0x101162=_0xa0d1be;return this[_0x101162(0x1ab)][_0x101162(0x1a6)](_0x101162(0x1af));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5997(_0x313fdf,_0x1a6ba8){const _0x1ed5af=_0x1ed5();return _0x5997=function(_0x5997df,_0x6579e3){_0x5997df=_0x5997df-0x128;let _0x1f4728=_0x1ed5af[_0x5997df];return _0x1f4728;},_0x5997(_0x313fdf,_0x1a6ba8);}function _0x1ed5(){const _0x76b2da=['capabilities','96827uhVEMv','264770WLkYiP','29424VFoCdJ','sort','enabled','110huJWNE','3411KhZeFv','filter','5304kTOxfc','6rKpgue','332035YCjPZb','1077566qyWjnn','113074HjYQGe','getAll','28zwTkvk','values','length'];_0x1ed5=function(){return _0x76b2da;};return _0x1ed5();}const _0x1fdd04=_0x5997;(function(_0x20682d,_0x584e98){const _0x486822=_0x5997,_0x5bd062=_0x20682d();while(!![]){try{const _0x209ddd=-parseInt(_0x486822(0x130))/0x1+parseInt(_0x486822(0x12a))/0x2+parseInt(_0x486822(0x132))/0x3*(parseInt(_0x486822(0x12c))/0x4)+-parseInt(_0x486822(0x128))/0x5+-parseInt(_0x486822(0x139))/0x6*(-parseInt(_0x486822(0x129))/0x7)+-parseInt(_0x486822(0x138))/0x8*(parseInt(_0x486822(0x136))/0x9)+-parseInt(_0x486822(0x131))/0xa*(-parseInt(_0x486822(0x135))/0xb);if(_0x209ddd===_0x584e98)break;else _0x5bd062['push'](_0x5bd062['shift']());}catch(_0x57c7f6){_0x5bd062['push'](_0x5bd062['shift']());}}}(_0x1ed5,0x1f96e));import{AIModels as _0x58b48a}from'../../aicore/model/aimodels.js';export class AIChatModels extends _0x58b48a{async[_0x1fdd04(0x12b)](){const _0x36d3f8=_0x1fdd04;return(await super[_0x36d3f8(0x12b)]())[_0x36d3f8(0x133)]((_0x4bb19c,_0xa9f2f0)=>{const _0x1713a1=_0x36d3f8,_0x27a5d8=Object[_0x1713a1(0x12d)](_0x4bb19c[_0x1713a1(0x12f)])[_0x1713a1(0x137)](_0x1e05b0=>_0x1e05b0[_0x1713a1(0x134)])[_0x1713a1(0x12e)];return Object[_0x1713a1(0x12d)](_0xa9f2f0[_0x1713a1(0x12f)])[_0x1713a1(0x137)](_0x356fe1=>_0x356fe1[_0x1713a1(0x134)])[_0x1713a1(0x12e)]-_0x27a5d8;});}}
|