@ckeditor/ckeditor5-ai 47.0.0-alpha.1 → 47.0.0-alpha.2
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-editor.css +9 -1
- package/dist/index.css +9 -1
- package/dist/index.js +4 -4
- 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/lang/contexts.json +35 -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/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.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/aichat/utils/scrollmanager.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 +1 -1
- 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/aiconfig.d.ts +5 -0
- 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/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/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/utils/common-translations.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.d.ts +31 -0
- package/src/aireviewmode/aireviewcheckdefinitions.js +23 -0
- package/src/aireviewmode/aireviewmode.d.ts +37 -0
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.d.ts +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.d.ts +2 -19
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.d.ts +2 -5
- 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.d.ts +5 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +4 -0
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +4 -0
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.d.ts +1 -0
- 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/aireviewmodeformamanager.d.ts +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.d.ts +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/index.d.ts +3 -2
- package/src/index.js +1 -1
- package/theme/aichat/aichat-controls/aichat-controls-loader.css +1 -1
- package/theme/aichat/aichat-controls.css +4 -0
- package/theme/aichat/aichatfeed.css +4 -0
- package/theme/aitabs/tabs/tabbuttonview.css +1 -0
- package/src/aireviewmode/utils/common-translations.d.ts +0 -9
- package/src/aireviewmode/utils/common-translations.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x146c6f=_0x2434;(function(_0x1f8f34,_0x194dca){const _0x56f109=_0x2434,_0x1af1f7=_0x1f8f34();while(!![]){try{const _0x232fea=-parseInt(_0x56f109(0x268))/0x1*(parseInt(_0x56f109(0x1e3))/0x2)+parseInt(_0x56f109(0x18a))/0x3*(-parseInt(_0x56f109(0x181))/0x4)+parseInt(_0x56f109(0x1d6))/0x5*(parseInt(_0x56f109(0x1c2))/0x6)+-parseInt(_0x56f109(0x1c1))/0x7+-parseInt(_0x56f109(0x192))/0x8*(parseInt(_0x56f109(0x1d4))/0x9)+-parseInt(_0x56f109(0x1b8))/0xa*(parseInt(_0x56f109(0x1d9))/0xb)+parseInt(_0x56f109(0x24f))/0xc;if(_0x232fea===_0x194dca)break;else _0x1af1f7['push'](_0x1af1f7['shift']());}catch(_0x10498b){_0x1af1f7['push'](_0x1af1f7['shift']());}}}(_0x2c0e,0xaf1d3));import{ContextPlugin as _0x723f7e,Editor as _0x32153a}from'ckeditor5/src/core.js';import{CKEditorError as _0x3c810f,logError as _0x2e819b,scrollViewportToShowTarget as _0x39bad2,uid as _0x1bad92}from'ckeditor5/src/utils.js';import{AIConnector as _0x377cac}from'../aicore/aiconnector.js';import{AITabs as _0x56d072}from'../aitabs/aitabs.js';import{AIChatConversation as _0x23da83}from'./model/aichatconversation.js';import{getTranslation as _0x24c83d}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x3f0bb6}from'../aicore/aiediting.js';import{AIChatModels as _0x5da4a7}from'./model/aichatmodels.js';function _0x2c0e(){const _0x505bb4=['addSelectionToContext','chat','getSelectionText','replyChangeGroupStateUpdated','getGroupId','partIndex','selectedModel','contextSent','closeSourceResourceBalloon','createRange','addResourceToContext','_handleStartConversation','addFeedItemError','delete','setConversationContext','text-delta','_previewedChangeGroup','toggleReasoning','push','removeContextItem','ai-chat-url-upload-failed','toLocaleLowerCase','uid','ai.chat.models.displayedModels','get','resources','resourceStateChanged','rejectSuggestion','interactionId','_applyOperationsAsSuggestions','history','accepted','path','close','interactionStarted','isUploadInProgress','remove','cloneNode','insertSuggestion','selectModel','rootName','editors','addCurrentDocumentToContext','addContextItem','startConversation','createPositionAt','updateConversationTitle','isDocumentOperation','root','isInContext','updateFeedItemAIReplySuggestionPartState','_stopLastInteraction','init','log','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','find','load','AI_CHAT_UNABLE_TO_START_CONVERSATION','ai-conversation-','AIConnector','getRanges','contextItemRemoved','Undo','filter','abortPromptStream','ai-chat-source-resources-load-failed','8tjdDwF','start','applySuggestion','AIChatController','source','AIEditing','ai-chat-missing-channel-id','AI_CHAT_RESOURCE_LOAD_FAILED','content','1822146yvufCW','documentContextContent','isOpen','getOperations','addOperation','_balloonShowDiff','main','setContextItemLoading','344BYExuk','full','sourceResourcesLoaded','getDocumentData','getChild','getRoot','finishInteraction','ai-chat-resource-load-failed','Showing\x20conversation\x20history...','ai-chat-controller-no-active-conversation','_integrateEditor','ai-request-aborted','_aiConnector','createConversation','resetConversationTitle','data','_flushLastInteractionUI','anchorId','requires','ai.chat.models.defaultModelId','plugins','version','contextItemAdded','indexes','provider','dialogClosed','interactionCreated','changes','addFileToContext','has','focusPromptInput','view','AI_CHAT_GENERIC_ERROR','AIChatUI','viewRangeToDom','addFeedInteractionHeader','AITabs','isLoading','160430gqxXyP','editing','removeMarker','Disliked\x20response','resizeTabs','type','stopListening','unshift','mouseOverSuggestion','278859UFwDzM','2766MqaIfD','isPremiumPlugin','removeFeedInteraction','isDisabled','slice','length','setChangeGroupState','createPositionFromPath','updateFeedItemAIReplySources','ai-chat-file-upload-failed','rejected','resizedTabs','resetMessageInput','static','getInteractionAndReplyById','_createFromRanges','pluginName','forEach','247968DerriV','startsWith','12690QZrVAK','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','dislike','341IMEeyd','AI_CHAT_ABORTED_MESSAGE','data-id','addFeedItemUserMessage','nextSibling','addUrlToContext','toViewRange','config','handleRemovedConversation','_setIsMaximized','24074gKJIzD','updateCurrentDocumentInContext','getMarkersGroup','pending','_toggleWebSearch','getChildren','lastInteraction','sendUserMessage','_batchToChanges','_showConversationHistory','collaboration.channelId','replyContentUpdated','baseVersion','capabilitiesUpdated','getAttribute','error','removed','updateFeedItemAIReplySuggestionContent','startInteraction','mapper','interactionDestroyed','sendMessage','document','sourcePosition','stopInteraction','new','updateContent','ready','howMany','revert','model','ai-chat-context-invalid-data','_scrollToSuggestionRange','streaming','getDiff','getFirstRange','toggleSuggestionDisplayMode','replyCreated','change','string','interactionFinished','isCurrentDocumentInConversation','updateResourceState','contextItems','hideFakeVisualSelection','sources','_handleUIUserMessage','_aiChatUi','_aiEditing','end','getTransformedByOperation','addFeedItemAIReply','stop','_toggleReasoning','modification-delta','maxOffset','mouseLeaveSuggestion','toggleLoadingSkeleton','isStarted','options','clearPendingContextUI','getChildAtOffset','loadConversation','TrackChangesEditing','domConverter','setModel','sourceId','afterInit','$graveyard','listenTo','isOfficialPlugin','setAddContextOptions','node','Failed\x20to\x20load\x20conversation','_removeAISelectionMarkers','ai-chat-conversation-init-failed','state','scrollFeedToSuggestion','uiId','applyOperation','showChangeInText','locale','addContextOptionsChanged','isCurrentDocumentInContext','AI_CHAT_CONTEXT_INVALID_DATA','addFeedItemAISuggestion','Suggestion\x20','setSelectedModel','updateFeedItemAIReplyContent','Liked\x20response','parse','getInteraction','replies','updateCapabilities','contextItemLoadingEnded','activeConversation','name','batch','loadSourceResources','removeFromContext','selection','addDocumentToContext','context','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','_aiChatModels','indexOf','removeSelectionFromChatContext','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','45840312PTBByQ','showFakeVisualSelection','undo','setIsUploadInProgress','commands','resize','setConversationTitle','setIsMaximized','DocumentCompare','showNext','addFilesToContext','AI_CHAT_UNTITLED_CONVERSATION','resourceId','split','activateTab','updateFeedInteractionHeader','resource','setFeedItemRenderingStrategy','ai-chat-controller-mouse-over','markers','_insertSuggestion','_updateReplyContent','getReply','getDocumentContext','_logError','111nbDjhr','query','showPrevious','like','_applySuggestion','availableModels','current-document','add','modelSelected','_openBalloonFor','open','addFeedItemStaticMessage','populateSourceResourceBalloon','changeGroups','removeSelectionFromContext','addSelectionToChatContext','uploadProgressChanged','_getDocumentRangeForReplyChanges','getPath','ai-chat-context-unsupported-type','_removeFromContext','replyId','clearConversationContextUI','ai-chat-conversation-start-failed','showDiff','redo','set','handleUserInteraction','message','conversationInitialized','map','range','ai.chat.context','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','toggleWebSearch','_filterModels','alignToTop','from','children','contextItem'];_0x2c0e=function(){return _0x505bb4;};return _0x2c0e();}import{getEditorFromContext as _0x4fb5fe}from'../aicore/utils/geteditorfromcontext.js';function _0x2434(_0x464613,_0x46d152){const _0x2c0ef7=_0x2c0e();return _0x2434=function(_0x243445,_0x41e6bb){_0x243445=_0x243445-0x145;let _0x431349=_0x2c0ef7[_0x243445];return _0x431349;},_0x2434(_0x464613,_0x46d152);}import{DocumentCompare as _0x3b0268,DATA_ID_MODEL_ATTRIBUTE as _0x49a695}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x1d9b2b}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x51a626,getMinimalSelection as _0x4b622b,getSuggestionPartsFromReply as _0x2d7cdf}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x148a01,_DetachOperation as _0x51a3f}from'ckeditor5/src/engine.js';import{findOne as _0x586b98,getAttribute as _0x20f1b1,serialize as _0x2270eb,Document as _0x21c873,findByAttribute as _0x9810c1}from'../aicore/utils/htmlparser.js';import{IconAI as _0x32d524}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x49331d}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x48863f}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x723f7e{[_0x146c6f(0x213)];[_0x146c6f(0x19e)];[_0x146c6f(0x212)];[_0x146c6f(0x24b)];[_0x146c6f(0x1eb)]=new Map();[_0x146c6f(0x14f)]=null;[_0x146c6f(0x18f)]=!0x1;static get[_0x146c6f(0x1a4)](){return[_0x377cac,_0x48863f,_0x3b0268];}static get[_0x146c6f(0x1d2)](){const _0x1efddb=_0x146c6f;return _0x1efddb(0x184);}static get[_0x146c6f(0x229)](){return!0x0;}static get[_0x146c6f(0x1c3)](){return!0x0;}[_0x146c6f(0x173)](){const _0x254105=_0x146c6f;this[_0x254105(0x19e)]=this[_0x254105(0x249)][_0x254105(0x1a6)][_0x254105(0x157)](_0x254105(0x17a)),this[_0x254105(0x212)]=this[_0x254105(0x249)][_0x254105(0x1a6)][_0x254105(0x157)](_0x254105(0x1b3)),this[_0x254105(0x213)]=this[_0x254105(0x249)][_0x254105(0x1a6)][_0x254105(0x157)](_0x254105(0x186)),this[_0x254105(0x24b)]=new _0x5da4a7({'connector':this[_0x254105(0x19e)]});const _0x10d18c=this[_0x254105(0x249)][_0x254105(0x1a6)][_0x254105(0x157)](_0x254105(0x1b6));this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x16b),()=>{const _0x47fe9c=_0x254105;this[_0x47fe9c(0x14a)]();}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x1ea),(_0x12c5aa,_0x5d967d)=>{const _0x7c8052=_0x254105;this[_0x7c8052(0x211)]({'userMessage':_0x5d967d});}),this[_0x254105(0x228)](_0x10d18c,_0x254105(0x1cd),(_0x42c735,_0x433a5d)=>{const _0x20d7bb=_0x254105;this[_0x20d7bb(0x1e2)](_0x433a5d);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x1bc),()=>{const _0x537f87=_0x254105;_0x10d18c[_0x537f87(0x254)]();}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x17f),async()=>{const _0x2df73b=_0x254105;await this[_0x2df73b(0x172)](),await this[_0x2df73b(0x1a2)]();}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x248),()=>{const _0x94a6fe=_0x254105;this[_0x94a6fe(0x242)]?.[_0x94a6fe(0x169)](_0x24c83d(this[_0x94a6fe(0x249)][_0x94a6fe(0x234)],_0x94a6fe(0x175)));}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x1ae),(_0x4f2658,_0x251c1d)=>{const _0xa891b5=_0x254105;this[_0xa891b5(0x242)]?.[_0xa891b5(0x259)](Array[_0xa891b5(0x28d)](_0x251c1d));}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x1de),(_0x500757,_0x1583e6)=>{const _0xe6e509=_0x254105;this[_0xe6e509(0x242)]?.[_0xe6e509(0x1de)](_0x1583e6);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x149),(_0x4e3891,_0x889f67)=>{const _0x881e4c=_0x254105;this[_0x881e4c(0x242)]?.[_0x881e4c(0x149)](_0x889f67[_0x881e4c(0x185)],_0x889f67[_0x881e4c(0x25f)]);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x152),(_0x511c2a,_0x369109)=>{const _0x442557=_0x254105;this[_0x442557(0x27c)](_0x369109);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x245),(_0x43086d,_0x3ec74a)=>{const _0x474997=_0x254105;this[_0x474997(0x242)]?.[_0x474997(0x245)](_0x3ec74a[_0x474997(0x225)],_0x3ec74a[_0x474997(0x269)],_0x3ec74a[_0x474997(0x155)]);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x28a),()=>{const _0x35a063=_0x254105;this[_0x35a063(0x1e7)]();}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x150),()=>{const _0x365b2f=_0x254105;this[_0x365b2f(0x218)]();}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x166),(_0x4a142a,_0x5f18ed)=>{const _0x5525f2=_0x254105;this[_0x5525f2(0x242)]?.[_0x5525f2(0x224)](_0x5f18ed);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x26b),(_0x420977,{replyId:_0x32a618})=>{const _0xe37b6e=_0x254105;console[_0xe37b6e(0x174)](_0xe37b6e(0x23c),_0x32a618);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x1d8),(_0x1399a3,{replyId:_0x5c75a7})=>{const _0x37b9b9=_0x254105;console[_0x37b9b9(0x174)](_0x37b9b9(0x1bb),_0x5c75a7);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x165),(_0x1cd862,_0x13c297)=>{const _0x4104be=_0x254105;this[_0x4104be(0x249)][_0x4104be(0x1a6)][_0x4104be(0x157)](_0x48863f)[_0x4104be(0x160)](),this[_0x4104be(0x263)](_0x13c297);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x233),(_0x404cdd,{replyId:_0x2146f0,partIndex:_0x4d93a8})=>{const _0x56223d=_0x254105;this[_0x56223d(0x18f)]=this[_0x56223d(0x212)][_0x56223d(0x280)],this[_0x56223d(0x271)](_0x2146f0,_0x4d93a8);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x1c0),(_0x2a3cdf,{replyId:_0x4156f8,partIndex:_0xf95e04})=>{const _0x3486bd=_0x254105,_0x48eab4=this[_0x3486bd(0x279)](_0x4156f8,_0xf95e04);_0x48eab4&&_0x3486bd(0x227)!=_0x48eab4[_0x3486bd(0x287)][_0x3486bd(0x16f)][_0x3486bd(0x167)]&&this[_0x3486bd(0x213)][_0x3486bd(0x250)]([_0x48eab4[_0x3486bd(0x287)]],_0x3486bd(0x261));}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x21b),()=>{const _0x3c7e9b=_0x254105;this[_0x3c7e9b(0x213)][_0x3c7e9b(0x20f)](_0x3c7e9b(0x261));}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x183),(_0x121436,_0x158acb)=>{const _0x137dda=_0x254105;this[_0x137dda(0x249)][_0x137dda(0x1a6)][_0x137dda(0x157)](_0x48863f)[_0x137dda(0x160)](),this[_0x137dda(0x26c)](_0x158acb);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x207),async(_0x120c8c,_0x219228)=>{const _0x583f5d=_0x254105,{reply:_0x15ea31}=this[_0x583f5d(0x1d0)](_0x219228[_0x583f5d(0x27d)]),_0x1236e5=_0x4fb5fe(this[_0x583f5d(0x249)]),_0xf949ad=_0x2d7cdf({'editor':_0x1236e5,'changeGroups':_0x15ea31[_0x583f5d(0x275)],'documentContextContent':_0x15ea31[_0x583f5d(0x18b)],'showDiff':_0x219228[_0x583f5d(0x280)]});await this[_0x583f5d(0x212)][_0x583f5d(0x1f4)]({'id':_0x15ea31['id'],'parts':_0xf949ad,'renderingStrategy':_0x583f5d(0x1cf)});}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x15a),(_0x5d9a73,{replyId:_0x399548,partIndex:_0x1948ae})=>{const _0x280870=_0x254105;this[_0x280870(0x14f)]?.[_0x280870(0x27d)]==_0x399548&&this[_0x280870(0x14f)]?.[_0x280870(0x295)]==_0x1948ae&&this[_0x280870(0x249)][_0x280870(0x1a6)][_0x280870(0x157)](_0x48863f)[_0x280870(0x160)]();const {reply:_0x28fdb8}=this[_0x280870(0x1d0)](_0x399548);_0x28fdb8[_0x280870(0x1c8)](_0x1948ae,_0x280870(0x1cc)),this[_0x280870(0x213)][_0x280870(0x20f)](_0x280870(0x261));});}async[_0x146c6f(0x226)](){const _0x2bd59d=_0x146c6f;this[_0x2bd59d(0x249)]instanceof _0x32153a?this[_0x2bd59d(0x19c)](this[_0x2bd59d(0x249)]):this[_0x2bd59d(0x228)](this[_0x2bd59d(0x249)][_0x2bd59d(0x168)],_0x2bd59d(0x26f),(_0x3d46e8,_0x570b43)=>{const _0x309056=_0x2bd59d;_0x570b43['on'](_0x309056(0x1fe),()=>{const _0x32937a=_0x309056;this[_0x32937a(0x19c)](_0x570b43);});}),await this[_0x2bd59d(0x14a)]();}[_0x146c6f(0x263)](_0x3a3929){const _0x5a5996=_0x146c6f,_0x1fdc89=_0x4fb5fe(this[_0x5a5996(0x249)]);if(!_0x1fdc89[_0x5a5996(0x1a6)][_0x5a5996(0x1af)](_0x5a5996(0x222)))return;const _0x2d8e64=this[_0x5a5996(0x249)][_0x5a5996(0x1a6)][_0x5a5996(0x157)](_0x5a5996(0x257)),{reply:_0x3deaa9,interaction:_0x434901}=this[_0x5a5996(0x1d0)](_0x3a3929[_0x5a5996(0x27d)]),_0x37ae64=this[_0x5a5996(0x279)](_0x3a3929[_0x5a5996(0x27d)],_0x3a3929[_0x5a5996(0x295)]),_0x3d6042=void 0x0!==_0x3a3929[_0x5a5996(0x295)]?[_0x3deaa9[_0x5a5996(0x275)][_0x3a3929[_0x5a5996(0x295)]]]:_0x3deaa9[_0x5a5996(0x275)][_0x5a5996(0x17e)](_0x2b6745=>_0x5a5996(0x1e6)==_0x2b6745[_0x5a5996(0x22f)]),_0x1c507b=_0x3d6042[_0x5a5996(0x286)](_0x5270ba=>_0x3deaa9[_0x5a5996(0x275)][_0x5a5996(0x24c)](_0x5270ba));_0x1c507b[_0x5a5996(0x1d3)](_0xa74bf9=>_0x3deaa9[_0x5a5996(0x1c8)](_0xa74bf9,_0x5a5996(0x15e)));const _0x7f060=_0x1d9b2b({'editor':_0x1fdc89,'reply':_0x3deaa9,'interaction':_0x434901,'groups':_0x3d6042,'transform':!0x0,'documentCompare':_0x2d8e64,'documentCompareOptions':{'anchor':_0x5a5996(0x190),'markDeletions':!0x0}});let _0x364cdf;_0x37ae64&&this[_0x5a5996(0x203)](_0x37ae64[_0x5a5996(0x287)]),_0x1fdc89[_0x5a5996(0x201)][_0x5a5996(0x209)](_0x56f748=>{const _0x28d96b=_0x5a5996;_0x364cdf=_0x56f748[_0x28d96b(0x244)],_0x1fdc89[_0x28d96b(0x1a6)][_0x28d96b(0x157)](_0x28d96b(0x222))[_0x28d96b(0x15c)](_0x7f060),this[_0x28d96b(0x213)][_0x28d96b(0x20f)](_0x28d96b(0x261));}),this[_0x5a5996(0x1eb)][_0x5a5996(0x282)](_0x364cdf,{'interactionId':_0x434901['id'],'replyId':_0x3deaa9['id'],'indexes':_0x1c507b[_0x5a5996(0x1c6)]()});}[_0x146c6f(0x26c)](_0x136f83){const _0x5d3cf7=_0x146c6f,_0x419a24=_0x4fb5fe(this[_0x5d3cf7(0x249)]),_0x6f5135=this[_0x5d3cf7(0x249)][_0x5d3cf7(0x1a6)][_0x5d3cf7(0x157)](_0x3b0268),{reply:_0xf29623,interaction:_0x3e0179}=this[_0x5d3cf7(0x1d0)](_0x136f83[_0x5d3cf7(0x27d)]),_0x2e51ef=this[_0x5d3cf7(0x279)](_0x136f83[_0x5d3cf7(0x27d)],_0x136f83[_0x5d3cf7(0x295)]),_0x447b9f=void 0x0!==_0x136f83[_0x5d3cf7(0x295)]?[_0xf29623[_0x5d3cf7(0x275)][_0x136f83[_0x5d3cf7(0x295)]]]:_0xf29623[_0x5d3cf7(0x275)][_0x5d3cf7(0x17e)](_0x52cf0a=>_0x5d3cf7(0x1e6)==_0x52cf0a[_0x5d3cf7(0x22f)]),_0x3cd258=_0x447b9f[_0x5d3cf7(0x286)](_0x1438c5=>_0xf29623[_0x5d3cf7(0x275)][_0x5d3cf7(0x24c)](_0x1438c5));_0x3cd258[_0x5d3cf7(0x1d3)](_0x1cc4d7=>_0xf29623[_0x5d3cf7(0x1c8)](_0x1cc4d7,_0x5d3cf7(0x15e)));const _0x251888=_0x1d9b2b({'editor':_0x419a24,'reply':_0xf29623,'interaction':_0x3e0179,'groups':_0x447b9f,'transform':!0x0,'documentCompare':_0x6f5135,'documentCompareOptions':{'anchor':_0x5d3cf7(0x190),'markDeletions':!0x1}});let _0x1fc0ee;_0x2e51ef&&this[_0x5d3cf7(0x203)](_0x2e51ef[_0x5d3cf7(0x287)]),_0x419a24[_0x5d3cf7(0x201)][_0x5d3cf7(0x209)](_0x510420=>{const _0x4f2ce0=_0x5d3cf7;_0x1fc0ee=_0x510420[_0x4f2ce0(0x244)];for(const _0x58b2b6 of _0x251888)_0x58b2b6[_0x4f2ce0(0x1ef)]=_0x419a24[_0x4f2ce0(0x201)][_0x4f2ce0(0x1f9)][_0x4f2ce0(0x1a7)],_0x510420[_0x4f2ce0(0x244)][_0x4f2ce0(0x18e)](_0x58b2b6),_0x419a24[_0x4f2ce0(0x201)][_0x4f2ce0(0x232)](_0x58b2b6);}),this[_0x5d3cf7(0x1eb)][_0x5d3cf7(0x282)](_0x1fc0ee,{'interactionId':_0x3e0179['id'],'replyId':_0xf29623['id'],'indexes':_0x3cd258[_0x5d3cf7(0x1c6)]()});}[_0x146c6f(0x271)](_0x7d44ca,_0xc77ef1){const _0xe6f8ea=_0x146c6f,_0x305165=_0x4fb5fe(this[_0xe6f8ea(0x249)]),_0x33adc7=this[_0xe6f8ea(0x279)](_0x7d44ca,_0xc77ef1),_0x307f2f=this[_0xe6f8ea(0x249)][_0xe6f8ea(0x1a6)][_0xe6f8ea(0x157)](_0x48863f);if(!_0x33adc7)return void _0x307f2f[_0xe6f8ea(0x160)]();const {range:_0x4c3400,currentIndex:_0x57dedd,previousIndex:_0x4b1b1a,nextIndex:_0x46b481}=_0x33adc7;if(this[_0xe6f8ea(0x14f)]?.[_0xe6f8ea(0x27d)]==_0x7d44ca&&this[_0xe6f8ea(0x14f)]?.[_0xe6f8ea(0x295)]==_0x57dedd)return;this[_0xe6f8ea(0x14f)]={'replyId':_0x7d44ca,'partIndex':_0x57dedd};const _0xec23a2=new _0x49331d(_0x305165[_0xe6f8ea(0x234)],{'showDiff':this[_0xe6f8ea(0x18f)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0xe6f8ea(0x193)},'hideHeader':!0x0}),{reply:_0x5259e6}=this[_0xe6f8ea(0x1d0)](_0x7d44ca),_0x4c249d=_0x2d7cdf({'editor':_0x305165,'changeGroups':[_0x5259e6[_0xe6f8ea(0x275)][_0x57dedd]],'documentContextContent':_0x5259e6[_0xe6f8ea(0x18b)],'showDiff':this[_0xe6f8ea(0x18f)]});_0xec23a2[_0xe6f8ea(0x1fd)]({'parts':_0x4c249d,'renderingStrategy':_0xe6f8ea(0x1cf)});const _0x969617=_0x57dedd!==_0x4b1b1a;this[_0xe6f8ea(0x203)](_0x4c3400,!0x0),_0x307f2f[_0xe6f8ea(0x272)]({'index':_0x57dedd,'title':_0xe6f8ea(0x239)+(_0x57dedd+0x1),'icon':_0x32d524,'mainView':_0xec23a2,'showRotator':_0x969617,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x4c3400]}),this[_0xe6f8ea(0x212)][_0xe6f8ea(0x230)](_0x7d44ca,_0x57dedd),this[_0xe6f8ea(0x228)](_0xec23a2,_0xe6f8ea(0x207),(_0x41a08b,{showDiff:_0x28ea3f})=>{const _0x458fb6=_0xe6f8ea;this[_0x458fb6(0x18f)]=_0x28ea3f;const {reply:_0x30d9d4}=this[_0x458fb6(0x1d0)](_0x7d44ca),_0x3fa95d=_0x2d7cdf({'editor':_0x305165,'changeGroups':[_0x30d9d4[_0x458fb6(0x275)][_0x57dedd]],'documentContextContent':_0x30d9d4[_0x458fb6(0x18b)],'showDiff':_0x28ea3f});_0xec23a2[_0x458fb6(0x1fd)]({'parts':_0x3fa95d,'renderingStrategy':_0x458fb6(0x1cf)});}),this[_0xe6f8ea(0x228)](_0x307f2f,_0xe6f8ea(0x183),()=>{const _0x49b45a=_0xe6f8ea;this[_0x49b45a(0x26c)]({'replyId':_0x7d44ca,'partIndex':_0x57dedd}),_0x969617?this[_0x49b45a(0x271)](_0x7d44ca,_0x46b481):_0x307f2f[_0x49b45a(0x160)]();}),this[_0xe6f8ea(0x228)](_0x307f2f,_0xe6f8ea(0x165),()=>{const _0xe3265c=_0xe6f8ea;this[_0xe3265c(0x263)]({'replyId':_0x7d44ca,'partIndex':_0x57dedd}),_0x969617?this[_0xe3265c(0x271)](_0x7d44ca,_0x46b481):_0x307f2f[_0xe3265c(0x160)]();}),_0x969617&&(this[_0xe6f8ea(0x228)](_0x307f2f,_0xe6f8ea(0x258),()=>{const _0x3e6ca8=_0xe6f8ea;this[_0x3e6ca8(0x271)](_0x7d44ca,_0x46b481);}),this[_0xe6f8ea(0x228)](_0x307f2f,_0xe6f8ea(0x26a),()=>{const _0x1ec62b=_0xe6f8ea;this[_0x1ec62b(0x271)](_0x7d44ca,_0x4b1b1a);})),this[_0xe6f8ea(0x228)](_0x307f2f,_0xe6f8ea(0x1ab),()=>{const _0x1b2646=_0xe6f8ea;this[_0x1b2646(0x1be)](_0x307f2f),this[_0x1b2646(0x1be)](_0xec23a2),this[_0x1b2646(0x14f)]=null;});}[_0x146c6f(0x279)](_0x356f44,_0x39c11f){const _0x2ac9d1=_0x146c6f,_0x57a4b0=_0x4fb5fe(this[_0x2ac9d1(0x249)]),{reply:_0x1d614b,interaction:_0x362b0a}=this[_0x2ac9d1(0x1d0)](_0x356f44),_0x2a2c95=_0x1d614b[_0x2ac9d1(0x275)][_0x2ac9d1(0x17e)](_0x2b1c7d=>_0x2ac9d1(0x1e6)==_0x2b1c7d[_0x2ac9d1(0x22f)]),_0x388fdf=_0x2a2c95[_0x2ac9d1(0x286)](_0x1c7e0a=>_0x1d614b[_0x2ac9d1(0x275)][_0x2ac9d1(0x24c)](_0x1c7e0a));void 0x0===_0x39c11f&&(_0x39c11f=_0x388fdf[0x0]);const _0x568081=_0x388fdf[_0x2ac9d1(0x24c)](_0x39c11f);if(-0x1==_0x568081)return null;const _0x2a806f=0x0==_0x568081?_0x388fdf[_0x388fdf[_0x2ac9d1(0x1c7)]-0x1]:_0x388fdf[_0x568081-0x1],_0x289d89=_0x568081==_0x388fdf[_0x2ac9d1(0x1c7)]-0x1?_0x388fdf[0x0]:_0x388fdf[_0x568081+0x1],_0xc8a77d=_0x2a2c95[_0x568081],_0x3c0d9a=new _0x21c873([]),_0x188f55=new _0x21c873([]);for(const _0x3ab85c of _0xc8a77d[_0x2ac9d1(0x1ad)])if(_0x2ac9d1(0x1f3)!=_0x3ab85c[_0x2ac9d1(0x1bd)]&&_0x188f55[_0x2ac9d1(0x28e)][_0x2ac9d1(0x151)](_0x3ab85c[_0x2ac9d1(0x22b)][_0x2ac9d1(0x164)](!0x0)),_0x2ac9d1(0x1fc)!=_0x3ab85c[_0x2ac9d1(0x1bd)]){const _0x36c37c=_0x586b98(_0x5c5d6d=>_0x20f1b1(_0x5c5d6d,_0x2ac9d1(0x1db))==_0x3ab85c['id'],_0x1d614b[_0x2ac9d1(0x18b)],!0x0);_0x3c0d9a[_0x2ac9d1(0x28e)][_0x2ac9d1(0x151)](_0x36c37c[_0x2ac9d1(0x164)](!0x0));}if(0x0==_0x3c0d9a[_0x2ac9d1(0x28e)][_0x2ac9d1(0x1c7)]){if(_0xc8a77d[_0x2ac9d1(0x1ad)][0x0][_0x2ac9d1(0x1a3)]){const _0x4c68a5=_0x9810c1(_0x2ac9d1(0x1db),_0xc8a77d[_0x2ac9d1(0x1ad)][0x0][_0x2ac9d1(0x1a3)],_0x1d614b[_0x2ac9d1(0x18b)]);_0x3c0d9a[_0x2ac9d1(0x28e)][_0x2ac9d1(0x1bf)](_0x4c68a5[_0x2ac9d1(0x164)](!0x0)),_0x188f55[_0x2ac9d1(0x28e)][_0x2ac9d1(0x1bf)](_0x4c68a5[_0x2ac9d1(0x164)](!0x0)),_0x4c68a5[_0x2ac9d1(0x1dd)]&&(_0x3c0d9a[_0x2ac9d1(0x28e)][_0x2ac9d1(0x151)](_0x4c68a5[_0x2ac9d1(0x1dd)][_0x2ac9d1(0x164)](!0x0)),_0x188f55[_0x2ac9d1(0x28e)][_0x2ac9d1(0x151)](_0x4c68a5[_0x2ac9d1(0x1dd)][_0x2ac9d1(0x164)](!0x0)));}else{const _0x3eb5a3=_0x1d614b[_0x2ac9d1(0x18b)][_0x2ac9d1(0x28e)][0x0];if(!_0x3eb5a3)return null;_0x3c0d9a[_0x2ac9d1(0x28e)][_0x2ac9d1(0x151)](_0x3eb5a3[_0x2ac9d1(0x164)](!0x0)),_0x188f55[_0x2ac9d1(0x28e)][_0x2ac9d1(0x151)](_0x3eb5a3[_0x2ac9d1(0x164)](!0x0));}}const _0x1a3c0b=_0x362b0a[_0x2ac9d1(0x266)](),_0x3eb98b=_0x57a4b0[_0x2ac9d1(0x1a1)][_0x2ac9d1(0x23d)](_0x1a3c0b[_0x2ac9d1(0x189)]),_0x315d9b=_0x2270eb(_0x3c0d9a),_0x4127d3=_0x57a4b0[_0x2ac9d1(0x1a1)][_0x2ac9d1(0x23d)](_0x315d9b),_0x4a67e8=_0x57a4b0[_0x2ac9d1(0x1a1)][_0x2ac9d1(0x23d)](_0x315d9b),_0x5c3991=_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x16c)](_0x4127d3,0x0),_0xb4b405=_0x2270eb(_0x188f55),_0x36c1b2={'anchor':_0x5c3991,'markDeletions':!0x1},_0x1aa5d8=_0x57a4b0[_0x2ac9d1(0x1a6)][_0x2ac9d1(0x157)](_0x3b0268)[_0x2ac9d1(0x205)](_0x315d9b,_0xb4b405,_0x36c1b2)[_0x2ac9d1(0x18d)]();if(!_0x1aa5d8[_0x2ac9d1(0x1c7)])return null;_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x209)](_0x585d25=>{const _0x5c1e4b=_0x2ac9d1;for(const _0x3f340a of _0x1aa5d8)if(_0x5c1e4b(0x163)==_0x3f340a[_0x5c1e4b(0x1bd)]){const _0x53a84c=_0x3f340a[_0x5c1e4b(0x1fa)],_0x3c0014=_0x3f340a[_0x5c1e4b(0x1ff)],_0x44140c=new _0x51a3f(_0x53a84c,_0x3c0014);_0x585d25[_0x5c1e4b(0x244)][_0x5c1e4b(0x18e)](_0x44140c),_0x57a4b0[_0x5c1e4b(0x201)][_0x5c1e4b(0x232)](_0x44140c);}else _0x3f340a[_0x5c1e4b(0x1ef)]=null,_0x3f340a[_0x5c1e4b(0x16e)]=!0x1,_0x585d25[_0x5c1e4b(0x244)][_0x5c1e4b(0x18e)](_0x3f340a),_0x57a4b0[_0x5c1e4b(0x201)][_0x5c1e4b(0x232)](_0x3f340a);});const _0x55fca0=_0x4b622b(_0x57a4b0,_0x1aa5d8,_0x4127d3);_0x51a626(_0x57a4b0[_0x2ac9d1(0x201)],_0x55fca0);const _0x57aa61=_0x55fca0[_0x2ac9d1(0x206)]()[_0x2ac9d1(0x182)][_0x2ac9d1(0x15f)][_0x2ac9d1(0x1c6)](),_0x3e4c7a=_0x55fca0[_0x2ac9d1(0x206)]()[_0x2ac9d1(0x214)][_0x2ac9d1(0x15f)][_0x2ac9d1(0x1c6)](),_0x101be1=[];let _0x2a84f0=_0x4127d3,_0x1a5cfb=_0x4a67e8;for(let _0x2456b3=0x0;_0x2456b3<_0x3e4c7a[_0x2ac9d1(0x1c7)];_0x2456b3++){const _0x50c47d=_0x2a84f0[_0x2ac9d1(0x21a)]-_0x3e4c7a[_0x2456b3];_0x101be1[_0x2456b3]=_0x1a5cfb[_0x2ac9d1(0x21a)]-_0x50c47d,_0x2a84f0=_0x2a84f0[_0x2ac9d1(0x220)](_0x3e4c7a[_0x2456b3]),_0x1a5cfb=_0x1a5cfb[_0x2ac9d1(0x220)](_0x101be1[_0x2456b3]);}const _0x5bad7d=_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x148)](_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1c9)](_0x4a67e8,_0x57aa61),_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1c9)](_0x4a67e8,_0x101be1)),_0x193fb6=_0x4a67e8[_0x2ac9d1(0x196)](0x0)[_0x2ac9d1(0x1f1)](_0x49a695),_0x2660ea=Array[_0x2ac9d1(0x28d)](_0x3eb98b[_0x2ac9d1(0x1e8)]())[_0x2ac9d1(0x176)](_0x398d02=>_0x398d02[_0x2ac9d1(0x1f1)](_0x49a695)==_0x193fb6)[_0x2ac9d1(0x27a)](),_0x294cae=_0x5bad7d[_0x2ac9d1(0x182)][_0x2ac9d1(0x15f)][_0x2ac9d1(0x1c6)](),_0x3802b0=_0x5bad7d[_0x2ac9d1(0x214)][_0x2ac9d1(0x15f)][_0x2ac9d1(0x1c6)]();_0x294cae[0x0]=_0x2660ea[0x0]+_0x294cae[0x0],_0x3802b0[0x0]=_0x2660ea[0x0]+_0x3802b0[0x0];let _0x2af162=_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x148)](_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1c9)](_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1f9)][_0x2ac9d1(0x197)](),_0x294cae),_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1c9)](_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1f9)][_0x2ac9d1(0x197)](),_0x3802b0));const _0x2713ba=_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1f9)][_0x2ac9d1(0x15d)][_0x2ac9d1(0x18d)](_0x1a3c0b[_0x2ac9d1(0x1a7)]);for(const _0x3f60d5 of _0x2713ba)_0x2af162=_0x148a01[_0x2ac9d1(0x1d1)](_0x2af162[_0x2ac9d1(0x215)](_0x3f60d5));return{'range':_0x2af162,'previousIndex':_0x2a806f,'nextIndex':_0x289d89,'currentIndex':_0x39c11f};}[_0x146c6f(0x19c)](_0x5e2143){const _0x40efba=_0x146c6f;if(!_0x5e2143[_0x40efba(0x1a6)][_0x40efba(0x1af)](_0x40efba(0x17d)))return;const _0x23fc70=_0x5e2143[_0x40efba(0x253)][_0x40efba(0x157)](_0x40efba(0x251)),_0x3f90f0=_0x5e2143[_0x40efba(0x253)][_0x40efba(0x157)](_0x40efba(0x281));this[_0x40efba(0x228)](_0x23fc70,_0x40efba(0x200),(_0x3a6506,_0x310ea3,_0x574b0e)=>{const _0x2c727a=_0x40efba,_0x4f92ae=this[_0x2c727a(0x1eb)][_0x2c727a(0x157)](_0x310ea3);if(!_0x4f92ae)return;const _0x10d03b=this[_0x2c727a(0x242)][_0x2c727a(0x23e)](_0x4f92ae[_0x2c727a(0x15b)])[_0x2c727a(0x265)](_0x4f92ae[_0x2c727a(0x27d)]);_0x4f92ae[_0x2c727a(0x1a9)][_0x2c727a(0x1d3)](_0x22c8bd=>_0x10d03b[_0x2c727a(0x1c8)](_0x22c8bd,_0x2c727a(0x1e6))),this[_0x2c727a(0x1eb)][_0x2c727a(0x14c)](_0x310ea3),this[_0x2c727a(0x1eb)][_0x2c727a(0x282)](_0x574b0e,_0x4f92ae);}),this[_0x40efba(0x228)](_0x3f90f0,_0x40efba(0x200),(_0x239537,_0x1cc49c,_0x2a30ba)=>{const _0x5981cc=_0x40efba,_0x3e1d0f=this[_0x5981cc(0x1eb)][_0x5981cc(0x157)](_0x1cc49c);if(!_0x3e1d0f)return;const _0xed55a9=this[_0x5981cc(0x242)][_0x5981cc(0x23e)](_0x3e1d0f[_0x5981cc(0x15b)])[_0x5981cc(0x265)](_0x3e1d0f[_0x5981cc(0x27d)]);_0x3e1d0f[_0x5981cc(0x1a9)][_0x5981cc(0x1d3)](_0x1434c7=>_0xed55a9[_0x5981cc(0x1c8)](_0x1434c7,_0x5981cc(0x15e))),this[_0x5981cc(0x1eb)][_0x5981cc(0x14c)](_0x1cc49c),this[_0x5981cc(0x1eb)][_0x5981cc(0x282)](_0x2a30ba,_0x3e1d0f);});}async[_0x146c6f(0x221)](_0x104ed5){const _0xb8c27f=_0x146c6f;this[_0xb8c27f(0x249)][_0xb8c27f(0x1a6)][_0xb8c27f(0x157)](_0x48863f)[_0xb8c27f(0x160)](),this[_0xb8c27f(0x212)][_0xb8c27f(0x260)](_0xb8c27f(0x1cf)),this[_0xb8c27f(0x212)][_0xb8c27f(0x21c)](!0x0),await this[_0xb8c27f(0x172)]();try{const _0x466c5e=this[_0xb8c27f(0x249)][_0xb8c27f(0x1a6)][_0xb8c27f(0x157)](_0x56d072);this[_0xb8c27f(0x16d)]('\x20'),_0x466c5e[_0xb8c27f(0x1b1)][_0xb8c27f(0x25d)](_0xb8c27f(0x291)),await this[_0xb8c27f(0x14a)](_0x104ed5);const {sessionId:_0x5535e4}=this[_0xb8c27f(0x213)][_0xb8c27f(0x195)]();await this[_0xb8c27f(0x242)][_0xb8c27f(0x177)](_0x104ed5,_0x5535e4),this[_0xb8c27f(0x242)][_0xb8c27f(0x20c)]()&&this[_0xb8c27f(0x242)][_0xb8c27f(0x169)](_0x24c83d(this[_0xb8c27f(0x249)][_0xb8c27f(0x234)],_0xb8c27f(0x175)));}catch(_0xb118b){console[_0xb8c27f(0x1f2)](_0xb8c27f(0x22c),_0xb118b);}finally{this[_0xb8c27f(0x212)][_0xb8c27f(0x260)](_0xb8c27f(0x204)),this[_0xb8c27f(0x212)][_0xb8c27f(0x21c)](!0x1);}}[_0x146c6f(0x1e1)](_0x1e891e){const _0x348aee=_0x146c6f;this[_0x348aee(0x242)]['id']===_0x1e891e&&this[_0x348aee(0x14a)]();}async[_0x146c6f(0x277)](){const _0x131946=_0x146c6f,_0x2908c3=this[_0x131946(0x213)][_0x131946(0x292)]();this[_0x131946(0x242)]?.[_0x131946(0x290)](_0x2908c3),this[_0x131946(0x242)]?.[_0x131946(0x169)](_0x24c83d(this[_0x131946(0x249)][_0x131946(0x234)],_0x131946(0x175)));}[_0x146c6f(0x24d)](){const _0x16d086=_0x146c6f;this[_0x16d086(0x242)]?.[_0x16d086(0x276)]();}[_0x146c6f(0x1b0)](){const _0x867953=_0x146c6f;this[_0x867953(0x212)][_0x867953(0x1b0)]();}async[_0x146c6f(0x16b)](){const _0x21fc3d=_0x146c6f;await this[_0x21fc3d(0x14a)]();}async[_0x146c6f(0x1f8)]({message:_0x5ec96a,quickActionData:_0x6f9d79}){const _0x17e077=_0x146c6f;await this[_0x17e077(0x211)]({'userMessage':_0x5ec96a,'quickActionData':_0x6f9d79});}[_0x146c6f(0x294)](){const _0x4e419c=_0x146c6f,_0xc2d882=this[_0x4e419c(0x249)][_0x4e419c(0x1e0)][_0x4e419c(0x157)](_0x4e419c(0x1ed));if(!_0xc2d882)throw new _0x3c810f(_0x4e419c(0x187),this);return _0xc2d882;}async[_0x146c6f(0x14a)](_0x3fa82f){const _0x923a87=_0x146c6f,_0x4d9874=this[_0x923a87(0x249)][_0x923a87(0x1a6)][_0x923a87(0x157)](_0x48863f);let _0x38e0d5;_0x4d9874[_0x923a87(0x18c)]&&_0x4d9874[_0x923a87(0x160)](),_0x38e0d5=_0x3fa82f||!this[_0x923a87(0x242)]?this[_0x923a87(0x249)][_0x923a87(0x1e0)][_0x923a87(0x157)](_0x923a87(0x1a5)):this[_0x923a87(0x242)][_0x923a87(0x145)]['id'],await this[_0x923a87(0x172)]();const _0x36cb66=this[_0x923a87(0x294)](),_0x51fd33=_0x3fa82f||_0x1bad92();this[_0x923a87(0x242)]=new _0x23da83({'connector':this[_0x923a87(0x19e)],'chatModels':this[_0x923a87(0x24b)],'defaultModelId':_0x38e0d5,'conversationId':_0x51fd33,'group':_0x36cb66,'getEditor':()=>_0x4fb5fe(this[_0x923a87(0x249)])}),this[_0x923a87(0x242)]['on'](_0x923a87(0x285),(_0xc8321b,_0x634ced)=>{const _0x1be2be=_0x923a87;_0x634ced[_0x1be2be(0x26d)]=this[_0x1be2be(0x28b)](_0x634ced[_0x1be2be(0x26d)],this[_0x1be2be(0x249)][_0x1be2be(0x1e0)][_0x1be2be(0x157)](_0x1be2be(0x156))),this[_0x1be2be(0x212)][_0x1be2be(0x19f)](_0x634ced),this[_0x1be2be(0x212)][_0x1be2be(0x1ce)](),this[_0x1be2be(0x212)][_0x1be2be(0x21f)](),this[_0x1be2be(0x212)][_0x1be2be(0x27e)](),_0x3fa82f||(this[_0x1be2be(0x212)][_0x1be2be(0x1a0)](),this[_0x1be2be(0x242)]?.[_0x1be2be(0x169)](_0x24c83d(this[_0x1be2be(0x249)][_0x1be2be(0x234)],_0x1be2be(0x175))));}),this[_0x923a87(0x242)]['on'](_0x923a87(0x278),(_0x3118da,_0xd04ef9)=>{const _0x2fd259=_0x923a87;this[_0x2fd259(0x212)][_0x2fd259(0x252)](_0xd04ef9[_0x2fd259(0x162)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x1ac),(_0x4faf6b,_0x2dfe63)=>{const _0x1d778f=_0x923a87;this[_0x1d778f(0x212)][_0x1d778f(0x1dc)](_0x2dfe63),this[_0x1d778f(0x212)][_0x1d778f(0x1b5)](_0x2dfe63);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x161),(_0x1612e2,_0x332c97)=>{const _0x40b6a4=_0x923a87;this[_0x40b6a4(0x212)][_0x40b6a4(0x1f5)](_0x332c97);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x20b),async()=>{const _0x5f285e=_0x923a87;await this[_0x5f285e(0x212)][_0x5f285e(0x198)]();}),this[_0x923a87(0x242)]['on'](_0x923a87(0x1f7),(_0x512891,_0x2f6f40)=>{const _0x527da7=_0x923a87;this[_0x527da7(0x212)][_0x527da7(0x1c4)](_0x2f6f40['id']);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x255),(_0x5344ef,_0x30719a,_0xe20752)=>{const _0x25c9c6=_0x923a87;this[_0x25c9c6(0x16d)](_0x30719a,_0xe20752);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x208),(_0x1929e0,_0x31c79c)=>{const _0x188038=_0x923a87;this[_0x188038(0x212)][_0x188038(0x25e)]({'isVisible':!0x0,'id':_0x31c79c[_0x188038(0x15b)]}),_0x188038(0x14e)===_0x31c79c[_0x188038(0x1bd)]?this[_0x188038(0x212)][_0x188038(0x216)](_0x31c79c):this[_0x188038(0x212)][_0x188038(0x238)](_0x31c79c);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x1ee),async(_0x5c9dfe,_0x27c7d9,_0x32805)=>{const _0x5bcb37=_0x923a87;await this[_0x5bcb37(0x264)]({'reply':_0x27c7d9,'changeGroups':_0x32805});}),this[_0x923a87(0x242)]['on'](_0x923a87(0x293),(_0x173bcf,{reply:_0x5f4006,index:_0x349a74,state:_0x26d07c})=>{const _0x657cfa=_0x923a87;this[_0x657cfa(0x212)][_0x657cfa(0x171)]({'id':_0x5f4006['id'],'index':_0x349a74,'state':_0x26d07c});}),this[_0x923a87(0x242)]['on'](_0x923a87(0x1a8),(_0x55f59c,_0x2ecce4)=>{const _0x2a59c1=_0x923a87;if(this[_0x2a59c1(0x212)][_0x2a59c1(0x16a)](_0x2ecce4[_0x2a59c1(0x28f)],_0x2ecce4[_0x2a59c1(0x1b7)]),_0x2a59c1(0x247)===_0x2ecce4[_0x2a59c1(0x28f)][_0x2a59c1(0x1bd)]){const _0x446327=[..._0x4fb5fe(this[_0x2a59c1(0x249)])[_0x2a59c1(0x201)][_0x2a59c1(0x1f9)][_0x2a59c1(0x247)][_0x2a59c1(0x17b)]()];this[_0x2a59c1(0x213)][_0x2a59c1(0x250)](_0x446327,_0x2a59c1(0x179)+this[_0x2a59c1(0x242)]?.['id']);}}),this[_0x923a87(0x242)]['on'](_0x923a87(0x17c),(_0x136528,_0x5ee0be)=>{const _0x125d5a=_0x923a87;this[_0x125d5a(0x212)][_0x125d5a(0x152)](_0x5ee0be[_0x125d5a(0x231)]),_0x125d5a(0x26e)==_0x5ee0be[_0x125d5a(0x231)]&&this[_0x125d5a(0x24d)](),_0x125d5a(0x247)===_0x5ee0be[_0x125d5a(0x1bd)]&&this[_0x125d5a(0x213)][_0x125d5a(0x20f)](_0x125d5a(0x179)+this[_0x125d5a(0x242)]?.['id']);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x241),(_0x354fb0,_0x298821)=>{const _0xe91c87=_0x923a87;this[_0xe91c87(0x212)][_0xe91c87(0x191)](_0x298821[_0xe91c87(0x28f)][_0xe91c87(0x231)],_0x298821[_0xe91c87(0x1b7)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x146),(_0xda7dd,_0x2e9be6)=>{const _0x39db42=_0x923a87;this[_0x39db42(0x212)][_0x39db42(0x14d)](_0x2e9be6[_0x39db42(0x20e)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x235),(_0x3c47cb,_0xca6007)=>{const _0x7d4569=_0x923a87;this[_0x7d4569(0x212)][_0x7d4569(0x22a)](_0xca6007[_0x7d4569(0x21e)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x194),(_0x57df87,_0x354570)=>{const _0x58d379=_0x923a87;this[_0x58d379(0x212)][_0x58d379(0x274)](_0x354570[_0x58d379(0x225)],_0x354570[_0x58d379(0x185)],_0x354570[_0x58d379(0x158)],_0x354570[_0x58d379(0x155)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x159),(_0x5b4cff,_0x543766)=>{const _0x3dac28=_0x923a87;this[_0x3dac28(0x212)][_0x3dac28(0x20d)](_0x543766[_0x3dac28(0x225)],_0x543766[_0x3dac28(0x25b)],_0x543766[_0x3dac28(0x170)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x1f0),(_0xfd185f,_0x4d221b)=>{const _0x23a80a=_0x923a87;this[_0x23a80a(0x212)][_0x23a80a(0x240)](_0x4d221b);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x270),(_0x25970b,_0x2ad7a1)=>{const _0x5aacef=_0x923a87;this[_0x5aacef(0x212)][_0x5aacef(0x23a)](_0x2ad7a1[_0x5aacef(0x145)],_0x2ad7a1[_0x5aacef(0x1c5)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x1f2),(_0xc29d81,{error:_0x459e62,interactionId:_0x154949,fileName:_0x78bb60,url:_0x3497ac,sourceId:_0x2f1c00,sourceLabel:_0x436fa6})=>{const _0x3292e9=_0x923a87,_0x4b28ef=_0x154949?_0x154949+':'+_0x1bad92():_0x1bad92();_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x19d))?this[_0x3292e9(0x212)][_0x3292e9(0x273)]({'staticMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x1da)),'id':_0x4b28ef}):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x22e))||_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x27f))?(this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x178)),'id':_0x4b28ef}),this[_0x3292e9(0x267)](_0x459e62)):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x1cb))?this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x1d7),_0x78bb60),'id':_0x4b28ef}):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x153))?this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x24e),_0x3497ac),'id':_0x4b28ef}):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x202))?this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x237)),'id':_0x4b28ef}):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x27b))?this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x289)),'id':_0x4b28ef}):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x180))?(_0x2f1c00&&this[_0x3292e9(0x212)][_0x3292e9(0x147)](_0x2f1c00),this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x24a),_0x436fa6||_0x3292e9(0x185)),'id':_0x4b28ef}),this[_0x3292e9(0x267)](_0x459e62)):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x199))?(this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x188)),'id':_0x4b28ef}),this[_0x3292e9(0x267)](_0x459e62)):(this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x1b2)),'id':_0x4b28ef}),this[_0x3292e9(0x267)](_0x459e62));}),await this[_0x923a87(0x242)][_0x923a87(0x173)](this[_0x923a87(0x249)][_0x923a87(0x1e0)][_0x923a87(0x157)](_0x923a87(0x288))),_0x3fa82f||await this[_0x923a87(0x242)][_0x923a87(0x182)]();}async[_0x146c6f(0x211)]({userMessage:_0x4e29e8,quickActionData:_0x20eeeb}){const _0x5465c3=_0x146c6f;if(!this[_0x5465c3(0x242)])throw new _0x3c810f(_0x5465c3(0x19b));this[_0x5465c3(0x242)][_0x5465c3(0x236)]()&&await this[_0x5465c3(0x242)][_0x5465c3(0x1e4)](this[_0x5465c3(0x213)][_0x5465c3(0x195)]()),this[_0x5465c3(0x242)]['id']&&this[_0x5465c3(0x242)][_0x5465c3(0x21d)]&&await this[_0x5465c3(0x242)][_0x5465c3(0x283)]({'userMessage':_0x4e29e8,'quickActionData':_0x20eeeb}),this[_0x5465c3(0x22d)]();}[_0x146c6f(0x22d)](){const _0x2c25af=_0x146c6f,_0x53e65b=_0x4fb5fe(this[_0x2c25af(0x249)])[_0x2c25af(0x201)],_0x576080=Array[_0x2c25af(0x28d)](_0x53e65b[_0x2c25af(0x262)][_0x2c25af(0x1e5)](_0x3f0bb6));_0x53e65b[_0x2c25af(0x209)](_0x3bfb35=>{const _0x210e32=_0x2c25af;_0x576080[_0x210e32(0x1d3)](_0x1274eb=>_0x3bfb35[_0x210e32(0x1ba)](_0x1274eb));});}[_0x146c6f(0x1ec)](){const _0x4c927e=_0x146c6f;console[_0x4c927e(0x174)](_0x4c927e(0x19a));}[_0x146c6f(0x1e2)](_0x3bae7a){const _0x286951=_0x146c6f;this[_0x286951(0x212)][_0x286951(0x256)](_0x3bae7a);}[_0x146c6f(0x267)](_0x19f254){const _0x171167=_0x146c6f;_0x2e819b(_0x19f254[_0x171167(0x284)]);}[_0x146c6f(0x27c)](_0xb20d4c){const _0x36d165=_0x146c6f;this[_0x36d165(0x242)]?.[_0x36d165(0x246)](_0xb20d4c);}[_0x146c6f(0x1e7)](){const _0x10e490=_0x146c6f;this[_0x10e490(0x242)]?.[_0x10e490(0x28a)]();}[_0x146c6f(0x218)](){const _0x2b1fa8=_0x146c6f;this[_0x2b1fa8(0x242)]?.[_0x2b1fa8(0x150)]();}[_0x146c6f(0x1d0)](_0xfadf9c){const _0x57b812=_0x146c6f,[_0x48355d,_0x5c7f19]=_0xfadf9c[_0x57b812(0x25c)](':'),_0x8bbdb7=this[_0x57b812(0x242)][_0x57b812(0x23e)](_0x48355d),_0x15a9af=_0x8bbdb7[_0x57b812(0x265)](_0x5c7f19);return{'interaction':_0x8bbdb7,'reply':_0x15a9af};}[_0x146c6f(0x203)](_0x22431f,_0x598575=!0x1){const _0x116560=_0x146c6f,_0x1c4388=_0x4fb5fe(this[_0x116560(0x249)]),_0xc59a27={'target':_0x1c4388[_0x116560(0x1b9)][_0x116560(0x1b1)][_0x116560(0x223)][_0x116560(0x1b4)](_0x1c4388[_0x116560(0x1b9)][_0x116560(0x1f6)][_0x116560(0x1df)](_0x22431f)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x598575};_0x598575&&(_0xc59a27[_0x116560(0x28c)]=!0x0),_0x39bad2(_0xc59a27);}[_0x146c6f(0x16d)](_0xc7dcf2,_0x141959=!0x1){const _0x2b99d9=_0x146c6f;this[_0x2b99d9(0x212)][_0x2b99d9(0x255)](_0xc7dcf2||_0x24c83d(this[_0x2b99d9(0x249)][_0x2b99d9(0x234)],_0x2b99d9(0x25a)),_0x141959);}[_0x146c6f(0x28b)](_0x3b8b02,_0x319db9){const _0x507a28=_0x146c6f;let _0x487c98;if(_0x319db9){_0x487c98=[];const _0x237b45=_0x507a28(0x20a)==typeof _0x319db9?[_0x319db9[_0x507a28(0x154)]()]:_0x319db9[_0x507a28(0x286)](_0x85b148=>_0x85b148[_0x507a28(0x154)]());for(const _0xb11d75 of _0x237b45)for(const _0x31c3aa of _0x3b8b02)(_0x31c3aa['id'][_0x507a28(0x154)]()===_0xb11d75||_0x31c3aa[_0x507a28(0x243)][_0x507a28(0x154)]()===_0xb11d75||_0x31c3aa[_0x507a28(0x1aa)][_0x507a28(0x154)]()===_0xb11d75||_0x31c3aa['id'][_0x507a28(0x154)]()[_0x507a28(0x1d5)](_0xb11d75))&&_0x487c98[_0x507a28(0x151)](_0x31c3aa);}else _0x487c98=_0x3b8b02;return _0x487c98;}async[_0x146c6f(0x264)]({reply:_0x188ff4,changeGroups:_0x1e2dde,renderingStrategy:_0x1659a4}){const _0x3433c7=_0x146c6f,{id:_0x14d339,isDone:_0x132a8b,type:_0x16df68,parsedContent:_0x15c067}=_0x188ff4;if(_0x3433c7(0x219)===_0x16df68){const _0x3f2f41=_0x4fb5fe(this[_0x3433c7(0x249)]),_0x28ab0c=_0x2d7cdf({'editor':_0x3f2f41,'showDiff':this[_0x3433c7(0x212)][_0x3433c7(0x280)],'changeGroups':_0x1e2dde,'documentContextContent':_0x188ff4[_0x3433c7(0x18b)]});await this[_0x3433c7(0x212)][_0x3433c7(0x1f4)]({'id':_0x14d339,'parts':_0x28ab0c,'renderingStrategy':_0x1659a4,'isDone':_0x132a8b});}else _0x3433c7(0x14e)===_0x16df68&&await this[_0x3433c7(0x212)][_0x3433c7(0x23b)]({'id':_0x14d339,'parsedContent':_0x15c067,'renderingStrategy':_0x1659a4,'isDone':_0x132a8b});_0x132a8b&&_0x188ff4[_0x3433c7(0x210)][_0x3433c7(0x1c7)]>0x0&&this[_0x3433c7(0x212)][_0x3433c7(0x1ca)](_0x14d339,_0x188ff4[_0x3433c7(0x210)]);}async[_0x146c6f(0x172)](){const _0x277de6=_0x146c6f,_0x1f65b9=this[_0x277de6(0x242)]?.[_0x277de6(0x1e9)];_0x1f65b9&&(_0x1f65b9[_0x277de6(0x217)](),this[_0x277de6(0x212)][_0x277de6(0x1fb)](_0x1f65b9));}async[_0x146c6f(0x1a2)](){const _0x2accd8=_0x146c6f,_0x4af824=this[_0x2accd8(0x242)]?.[_0x2accd8(0x1e9)];if(_0x4af824){for await(const _0x17112a of _0x4af824[_0x2accd8(0x23f)])await this[_0x2accd8(0x264)]({'reply':_0x17112a,'changeGroups':_0x17112a[_0x2accd8(0x275)],'renderingStrategy':_0x2accd8(0x1cf)});}}}
|
|
23
|
+
const _0x49c5b2=_0x2a37;(function(_0x119de6,_0x58e26d){const _0x33406d=_0x2a37,_0x3b8048=_0x119de6();while(!![]){try{const _0x99ac6e=-parseInt(_0x33406d(0x2ed))/0x1+-parseInt(_0x33406d(0x294))/0x2+parseInt(_0x33406d(0x1f2))/0x3+-parseInt(_0x33406d(0x2b5))/0x4*(parseInt(_0x33406d(0x25c))/0x5)+parseInt(_0x33406d(0x1e2))/0x6+-parseInt(_0x33406d(0x25f))/0x7*(-parseInt(_0x33406d(0x24a))/0x8)+-parseInt(_0x33406d(0x303))/0x9;if(_0x99ac6e===_0x58e26d)break;else _0x3b8048['push'](_0x3b8048['shift']());}catch(_0x19f7a9){_0x3b8048['push'](_0x3b8048['shift']());}}}(_0x584d,0x3da39));import{ContextPlugin as _0x56e77b,Editor as _0x345593}from'ckeditor5/src/core.js';import{CKEditorError as _0x586d94,logError as _0xdb113b,scrollViewportToShowTarget as _0xde20d2,uid as _0x1d0026}from'ckeditor5/src/utils.js';import{AIConnector as _0x4d226c}from'../aicore/aiconnector.js';import{AITabs as _0x4952f1}from'../aitabs/aitabs.js';import{AIChatConversation as _0x3e2f1d}from'./model/aichatconversation.js';import{getTranslation as _0xd7d1f7}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x2c9782}from'../aicore/aiediting.js';import{AIChatModels as _0x268608}from'./model/aichatmodels.js';import{getEditorFromContext as _0x1e1f26}from'../aicore/utils/geteditorfromcontext.js';function _0x2a37(_0x589bf3,_0x581617){const _0x584de9=_0x584d();return _0x2a37=function(_0x2a37ee,_0x2aa6e4){_0x2a37ee=_0x2a37ee-0x1c5;let _0x28096f=_0x584de9[_0x2a37ee];return _0x28096f;},_0x2a37(_0x589bf3,_0x581617);}import{DocumentCompare as _0x283dfd,DATA_ID_MODEL_ATTRIBUTE as _0x1c5ada}from'@ckeditor/ckeditor5-collaboration-core';function _0x584d(){const _0x13d3fe=['activateTab','start','isOfficialPlugin','sourceId','_setIsMaximized','open','updateFeedItemAIReplyContent','undo','AITabs','range','createPositionAt','ai-chat-resource-load-failed','setChangeGroupState','forEach','load','_insertSuggestion','type','resetMessageInput','slice','isDocumentOperation','stop','AIChatUI','rootName','isDisabled','4WbBiQu','indexes','updateFeedInteractionHeader','addFeedItemStaticMessage','addOperation','contextItems','capabilitiesUpdated','setConversationContext','getChildren','addFeedItemError','ai-chat-controller-mouse-over','editors','addContextOptionsChanged','activeConversation','listenTo','howMany','removeSelectionFromContext','resourceStateChanged','config','updateConversationTitle','change','toViewRange','data-id','contextItemRemoved','dislike','_handleUIUserMessage','provider','new','sourcePosition','AI_CHAT_UNABLE_TO_START_CONVERSATION','model','getDiff','addSelectionToContext','conversationInitialized','unshift','_stopLastInteraction','AIChatController','string','version','pluginName','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','toggleWebSearch','rejected','setIsUploadInProgress','AI_CHAT_RESOURCE_LOAD_FAILED','updateContent','updateCurrentDocumentInContext','isUploadInProgress','removeMarker','root','clearPendingContextUI','stopInteraction','toggleSuggestionDisplayMode','addFilesToContext','resource','context','137842enaNKV','contextItem','populateSourceResourceBalloon','startsWith','clearConversationContextUI','push','_logError','lastInteraction','set','modification-delta','main','state','AIEditing','current-document','mouseLeaveSuggestion','ai-chat-context-invalid-data','get','addFeedItemAIReply','removed','showFakeVisualSelection','maxOffset','updateFeedItemAIReplySources','2300625TWckNI','sourceResourcesLoaded','find','updateFeedItemAIReplySuggestionPartState','end','uid','_showConversationHistory','showNext','getRanges','isOpen','handleUserInteraction','data','like','handleRemovedConversation','getChildAtOffset','getDocumentData','getInteraction','addFeedItemAISuggestion','options','isPremiumPlugin','removeFromContext','ai-chat-conversation-init-failed','delete','_removeFromContext','AIConnector','locale','loadConversation','getDocumentContext','sendMessage','setModel','mapper','AI_CHAT_ABORTED_MESSAGE','_getDocumentRangeForReplyChanges','split','contextItemLoadingEnded','sendUserMessage','selection','getInteractionAndReplyById','anchorId','ai.chat.models.defaultModelId','setSelectedModel','interactionId','getSelectionText','_previewedChangeGroup','getMarkersGroup','2944362ScKclv','_aiChatUi','Undo','isCurrentDocumentInContext','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','updateCapabilities','revert','getOperations','full','isCurrentDocumentInConversation','log','partIndex','_applySuggestion','history','commands','_aiChatModels','1101972ZkylLm','alignToTop','_openBalloonFor','ai-chat-url-upload-failed','_integrateEditor','Liked\x20response','path','removeSelectionFromChatContext','getRoot','addFeedInteractionHeader','_handleStartConversation','Showing\x20conversation\x20history...','addCurrentDocumentToContext','updateFeedItemAIReplySuggestionContent','toLocaleLowerCase','ai-chat-source-resources-load-failed','showChangeInText','indexOf','createConversation','getAttribute','_toggleWebSearch','error','contextItemAdded','collaboration.channelId','interactionFinished','children','addFeedItemUserMessage','documentContextContent','setIsMaximized','_removeAISelectionMarkers','markers','_batchToChanges','pending','resizedTabs','replyChangeGroupStateUpdated','modelSelected','_aiEditing','addResourceToContext','view','getChild','_filterModels','document','setFeedItemRenderingStrategy','contextSent','parse','has','ready','replies','length','resizeTabs','sources','rejectSuggestion','setConversationTitle','map','updateResourceState','interactionDestroyed','replyId','source','createPositionFromPath','AI_CHAT_UNTITLED_CONVERSATION','viewRangeToDom','createRange','getTransformedByOperation','toggleReasoning','ai-chat-missing-channel-id','init','baseVersion','domConverter','abortPromptStream','chat','DocumentCompare','removeContextItem','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','showPrevious','changes','toggleLoadingSkeleton','addDocumentToContext','cloneNode','_applyOperationsAsSuggestions','hideFakeVisualSelection','Disliked\x20response','content','ai.chat.context','query','text-delta','add','availableModels','streaming','4009064JHYCMt','addContextItem','accepted','_balloonShowDiff','TrackChangesEditing','filter','replyCreated','closeSourceResourceBalloon','mouseOverSuggestion','requires','node','changeGroups','interactionCreated','_flushLastInteractionUI','addUrlToContext','static','ai-chat-context-unsupported-type','removeFeedInteraction','2181205pRVsgW','getPath','close','7nBbjwY','selectedModel','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','isLoading','_createFromRanges','_scrollToSuggestionRange','replyContentUpdated','isInContext','uploadProgressChanged','ai-chat-conversation-start-failed','nextSibling','Failed\x20to\x20load\x20conversation','addSelectionToChatContext','Suggestion\x20','afterInit','AI_CHAT_CONTEXT_INVALID_DATA','getGroupId','redo','resources','showDiff','isStarted','selectModel','batch','setAddContextOptions','dialogClosed','remove','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','plugins','from','message','ai.chat.models.displayedModels','ai-chat-controller-no-active-conversation','_updateReplyContent','ai-chat-file-upload-failed','editing','finishInteraction','focusPromptInput','insertSuggestion','$graveyard','startConversation','interactionStarted','resetConversationTitle','uiId','setContextItemLoading','resourceId','getFirstRange','name','applyOperation','startInteraction','AI_CHAT_GENERIC_ERROR','stopListening','ai-request-aborted','scrollFeedToSuggestion','554006jyfTwi','ai-conversation-','applySuggestion','_aiConnector','addFileToContext','_toggleReasoning','getReply','loadSourceResources','resize'];_0x584d=function(){return _0x13d3fe;};return _0x584d();}import{getOperationsFromReply as _0x42d838}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x4af0eb,getMinimalSelection as _0x3d4c72,getSuggestionPartsFromReply as _0x68d6dc}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x241e0d,_DetachOperation as _0x201cc2}from'ckeditor5/src/engine.js';import{findOne as _0x2666cf,getAttribute as _0x52ba63,serialize as _0x31bd3e,Document as _0x2d75b3,findByAttribute as _0x4385af}from'../aicore/utils/htmlparser.js';import{IconAI as _0x380504}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x4d4776}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x555cbc}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x56e77b{[_0x49c5b2(0x216)];[_0x49c5b2(0x297)];[_0x49c5b2(0x1e3)];[_0x49c5b2(0x1f1)];[_0x49c5b2(0x211)]=new Map();[_0x49c5b2(0x1e0)]=null;[_0x49c5b2(0x24d)]=!0x1;static get[_0x49c5b2(0x253)](){return[_0x4d226c,_0x555cbc,_0x283dfd];}static get[_0x49c5b2(0x2dc)](){const _0x18747b=_0x49c5b2;return _0x18747b(0x2d9);}static get[_0x49c5b2(0x29f)](){return!0x0;}static get[_0x49c5b2(0x1c8)](){return!0x0;}[_0x49c5b2(0x233)](){const _0x4a4692=_0x49c5b2;this[_0x4a4692(0x297)]=this[_0x4a4692(0x2ec)][_0x4a4692(0x27a)][_0x4a4692(0x2fd)](_0x4a4692(0x1cd)),this[_0x4a4692(0x1e3)]=this[_0x4a4692(0x2ec)][_0x4a4692(0x27a)][_0x4a4692(0x2fd)](_0x4a4692(0x2b2)),this[_0x4a4692(0x216)]=this[_0x4a4692(0x2ec)][_0x4a4692(0x27a)][_0x4a4692(0x2fd)](_0x4a4692(0x2f9)),this[_0x4a4692(0x1f1)]=new _0x268608({'connector':this[_0x4a4692(0x297)]});const _0x5453fb=this[_0x4a4692(0x2ec)][_0x4a4692(0x27a)][_0x4a4692(0x2fd)](_0x4a4692(0x2a5));this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x286),()=>{const _0x48ac22=_0x4a4692;this[_0x48ac22(0x1fc)]();}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x1d8),(_0x233d24,_0x560c32)=>{const _0xe68a39=_0x4a4692;this[_0xe68a39(0x2ce)]({'userMessage':_0x560c32});}),this[_0x4a4692(0x2c3)](_0x5453fb,_0x4a4692(0x213),(_0x3a0486,_0xec54e2)=>{const _0x2cb92f=_0x4a4692;this[_0x2cb92f(0x2a1)](_0xec54e2);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x223),()=>{const _0x27cd8f=_0x4a4692;_0x5453fb[_0x27cd8f(0x29c)]();}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x236),async()=>{const _0x6f86bd=_0x4a4692;await this[_0x6f86bd(0x2d8)](),await this[_0x6f86bd(0x257)]();}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x23e),()=>{const _0x2167e1=_0x4a4692;this[_0x2167e1(0x2c2)]?.[_0x2167e1(0x1fe)](_0xd7d1f7(this[_0x2167e1(0x2ec)][_0x2167e1(0x1ce)],_0x2167e1(0x23a)));}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x298),(_0x56bf9b,_0x34959e)=>{const _0x5eb1d6=_0x4a4692;this[_0x5eb1d6(0x2c2)]?.[_0x5eb1d6(0x2ea)](Array[_0x5eb1d6(0x27b)](_0x34959e));}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x258),(_0x388ac5,_0x181a9b)=>{const _0x202120=_0x4a4692;this[_0x202120(0x2c2)]?.[_0x202120(0x258)](_0x181a9b);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x217),(_0x79b10f,_0x563414)=>{const _0x9ab1f9=_0x4a4692;this[_0x9ab1f9(0x2c2)]?.[_0x9ab1f9(0x217)](_0x563414[_0x9ab1f9(0x22b)],_0x563414[_0x9ab1f9(0x2eb)]);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x239),(_0x3ecc71,_0x329c2e)=>{const _0x803c21=_0x4a4692;this[_0x803c21(0x1cc)](_0x329c2e);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x29b),(_0x307e7f,_0x597469)=>{const _0x5a75cc=_0x4a4692;this[_0x5a75cc(0x2c2)]?.[_0x5a75cc(0x29b)](_0x597469[_0x5a75cc(0x2a0)],_0x597469[_0x5a75cc(0x245)],_0x597469[_0x5a75cc(0x308)]);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x2de),()=>{const _0x31e850=_0x4a4692;this[_0x31e850(0x206)]();}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x231),()=>{const _0x1a9009=_0x4a4692;this[_0x1a9009(0x299)]();}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x274),(_0x165e57,_0x57c3b7)=>{const _0x2f648d=_0x4a4692;this[_0x2f648d(0x2c2)]?.[_0x2f648d(0x1d2)](_0x57c3b7);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x30f),(_0x4b7fba,{replyId:_0x35a938})=>{const _0x4ec32d=_0x4a4692;console[_0x4ec32d(0x1ec)](_0x4ec32d(0x1f7),_0x35a938);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x2cd),(_0x2f6de3,{replyId:_0x35b8f5})=>{const _0xe48894=_0x4a4692;console[_0xe48894(0x1ec)](_0xe48894(0x242),_0x35b8f5);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x284),(_0x393f63,_0x4e38db)=>{const _0xb3282f=_0x4a4692;this[_0xb3282f(0x2ec)][_0xb3282f(0x27a)][_0xb3282f(0x2fd)](_0x555cbc)[_0xb3282f(0x25e)](),this[_0xb3282f(0x2ac)](_0x4e38db);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x202),(_0x5a3d7b,{replyId:_0x1b9fa4,partIndex:_0x3ba0ce})=>{const _0x141af7=_0x4a4692;this[_0x141af7(0x24d)]=this[_0x141af7(0x1e3)][_0x141af7(0x272)],this[_0x141af7(0x1f4)](_0x1b9fa4,_0x3ba0ce);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x252),(_0x58c06e,{replyId:_0x570e81,partIndex:_0x43f4a1})=>{const _0x45dd69=_0x4a4692,_0x68ff4a=this[_0x45dd69(0x1d5)](_0x570e81,_0x43f4a1);_0x68ff4a&&_0x45dd69(0x285)!=_0x68ff4a[_0x45dd69(0x2a6)][_0x45dd69(0x2e6)][_0x45dd69(0x2b3)]&&this[_0x45dd69(0x216)][_0x45dd69(0x300)]([_0x68ff4a[_0x45dd69(0x2a6)]],_0x45dd69(0x2bf));}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x2fb),()=>{const _0x3e0f93=_0x4a4692;this[_0x3e0f93(0x216)][_0x3e0f93(0x241)](_0x3e0f93(0x2bf));}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x296),(_0x4da38e,_0x4e64f9)=>{const _0x2c2d1e=_0x4a4692;this[_0x2c2d1e(0x2ec)][_0x2c2d1e(0x27a)][_0x2c2d1e(0x2fd)](_0x555cbc)[_0x2c2d1e(0x25e)](),this[_0x2c2d1e(0x1ee)](_0x4e64f9);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x2e9),async(_0x5eef76,_0x2e5a38)=>{const _0x42f0b3=_0x4a4692,{reply:_0x457bef}=this[_0x42f0b3(0x1da)](_0x2e5a38[_0x42f0b3(0x22a)]),_0x416856=_0x1e1f26(this[_0x42f0b3(0x2ec)]),_0x206630=_0x68d6dc({'editor':_0x416856,'changeGroups':_0x457bef[_0x42f0b3(0x255)],'documentContextContent':_0x457bef[_0x42f0b3(0x20d)],'showDiff':_0x2e5a38[_0x42f0b3(0x272)]});await this[_0x42f0b3(0x1e3)][_0x42f0b3(0x1ff)]({'id':_0x457bef['id'],'parts':_0x206630,'renderingStrategy':_0x42f0b3(0x259)});}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x225),(_0x35b38a,{replyId:_0x137972,partIndex:_0x5ba19e})=>{const _0x53accc=_0x4a4692;this[_0x53accc(0x1e0)]?.[_0x53accc(0x22a)]==_0x137972&&this[_0x53accc(0x1e0)]?.[_0x53accc(0x1ed)]==_0x5ba19e&&this[_0x53accc(0x2ec)][_0x53accc(0x27a)][_0x53accc(0x2fd)](_0x555cbc)[_0x53accc(0x25e)]();const {reply:_0x235fb2}=this[_0x53accc(0x1da)](_0x137972);_0x235fb2[_0x53accc(0x2a9)](_0x5ba19e,_0x53accc(0x2df)),this[_0x53accc(0x216)][_0x53accc(0x241)](_0x53accc(0x2bf));});}async[_0x49c5b2(0x26d)](){const _0x2e5d2c=_0x49c5b2;this[_0x2e5d2c(0x2ec)]instanceof _0x345593?this[_0x2e5d2c(0x1f6)](this[_0x2e5d2c(0x2ec)]):this[_0x2e5d2c(0x2c3)](this[_0x2e5d2c(0x2ec)][_0x2e5d2c(0x2c0)],_0x2e5d2c(0x247),(_0x4bedd1,_0x3831d4)=>{const _0x13e301=_0x2e5d2c;_0x3831d4['on'](_0x13e301(0x220),()=>{const _0x4d4902=_0x13e301;this[_0x4d4902(0x1f6)](_0x3831d4);});}),await this[_0x2e5d2c(0x1fc)]();}[_0x49c5b2(0x2ac)](_0x928e4f){const _0x465ebd=_0x49c5b2,_0x5d07e4=_0x1e1f26(this[_0x465ebd(0x2ec)]);if(!_0x5d07e4[_0x465ebd(0x27a)][_0x465ebd(0x21f)](_0x465ebd(0x24e)))return;const _0x593afe=this[_0x465ebd(0x2ec)][_0x465ebd(0x27a)][_0x465ebd(0x2fd)](_0x465ebd(0x238)),{reply:_0x2b7848,interaction:_0x1c44ce}=this[_0x465ebd(0x1da)](_0x928e4f[_0x465ebd(0x22a)]),_0x559928=this[_0x465ebd(0x1d5)](_0x928e4f[_0x465ebd(0x22a)],_0x928e4f[_0x465ebd(0x1ed)]),_0x19d53d=void 0x0!==_0x928e4f[_0x465ebd(0x1ed)]?[_0x2b7848[_0x465ebd(0x255)][_0x928e4f[_0x465ebd(0x1ed)]]]:_0x2b7848[_0x465ebd(0x255)][_0x465ebd(0x24f)](_0x56c5f2=>_0x465ebd(0x212)==_0x56c5f2[_0x465ebd(0x2f8)]),_0x39b3a2=_0x19d53d[_0x465ebd(0x227)](_0x4f99f5=>_0x2b7848[_0x465ebd(0x255)][_0x465ebd(0x203)](_0x4f99f5));_0x39b3a2[_0x465ebd(0x2aa)](_0x276288=>_0x2b7848[_0x465ebd(0x2a9)](_0x276288,_0x465ebd(0x24c)));const _0x23cba7=_0x42d838({'editor':_0x5d07e4,'reply':_0x2b7848,'interaction':_0x1c44ce,'groups':_0x19d53d,'transform':!0x0,'documentCompare':_0x593afe,'documentCompareOptions':{'anchor':_0x465ebd(0x2f7),'markDeletions':!0x0}});let _0xe7710a;_0x559928&&this[_0x465ebd(0x264)](_0x559928[_0x465ebd(0x2a6)]),_0x5d07e4[_0x465ebd(0x2d3)][_0x465ebd(0x2c9)](_0x47324c=>{const _0x16a68e=_0x465ebd;_0xe7710a=_0x47324c[_0x16a68e(0x275)],_0x5d07e4[_0x16a68e(0x27a)][_0x16a68e(0x2fd)](_0x16a68e(0x24e))[_0x16a68e(0x240)](_0x23cba7),this[_0x16a68e(0x216)][_0x16a68e(0x241)](_0x16a68e(0x2bf));}),this[_0x465ebd(0x211)][_0x465ebd(0x2f5)](_0xe7710a,{'interactionId':_0x1c44ce['id'],'replyId':_0x2b7848['id'],'indexes':_0x39b3a2[_0x465ebd(0x2af)]()});}[_0x49c5b2(0x1ee)](_0x529dfc){const _0x249f52=_0x49c5b2,_0x529bac=_0x1e1f26(this[_0x249f52(0x2ec)]),_0x4f1f68=this[_0x249f52(0x2ec)][_0x249f52(0x27a)][_0x249f52(0x2fd)](_0x283dfd),{reply:_0x3133c7,interaction:_0x1bbfd5}=this[_0x249f52(0x1da)](_0x529dfc[_0x249f52(0x22a)]),_0x3ac89d=this[_0x249f52(0x1d5)](_0x529dfc[_0x249f52(0x22a)],_0x529dfc[_0x249f52(0x1ed)]),_0x5896e5=void 0x0!==_0x529dfc[_0x249f52(0x1ed)]?[_0x3133c7[_0x249f52(0x255)][_0x529dfc[_0x249f52(0x1ed)]]]:_0x3133c7[_0x249f52(0x255)][_0x249f52(0x24f)](_0x5d00c5=>_0x249f52(0x212)==_0x5d00c5[_0x249f52(0x2f8)]),_0x484e5a=_0x5896e5[_0x249f52(0x227)](_0x511005=>_0x3133c7[_0x249f52(0x255)][_0x249f52(0x203)](_0x511005));_0x484e5a[_0x249f52(0x2aa)](_0x26a6cf=>_0x3133c7[_0x249f52(0x2a9)](_0x26a6cf,_0x249f52(0x24c)));const _0x39acdc=_0x42d838({'editor':_0x529bac,'reply':_0x3133c7,'interaction':_0x1bbfd5,'groups':_0x5896e5,'transform':!0x0,'documentCompare':_0x4f1f68,'documentCompareOptions':{'anchor':_0x249f52(0x2f7),'markDeletions':!0x1}});let _0xa4e8f0;_0x3ac89d&&this[_0x249f52(0x264)](_0x3ac89d[_0x249f52(0x2a6)]),_0x529bac[_0x249f52(0x2d3)][_0x249f52(0x2c9)](_0x4f3c5f=>{const _0x3ed0a0=_0x249f52;_0xa4e8f0=_0x4f3c5f[_0x3ed0a0(0x275)];for(const _0x290355 of _0x39acdc)_0x290355[_0x3ed0a0(0x234)]=_0x529bac[_0x3ed0a0(0x2d3)][_0x3ed0a0(0x21b)][_0x3ed0a0(0x2db)],_0x4f3c5f[_0x3ed0a0(0x275)][_0x3ed0a0(0x2b9)](_0x290355),_0x529bac[_0x3ed0a0(0x2d3)][_0x3ed0a0(0x28e)](_0x290355);}),this[_0x249f52(0x211)][_0x249f52(0x2f5)](_0xa4e8f0,{'interactionId':_0x1bbfd5['id'],'replyId':_0x3133c7['id'],'indexes':_0x484e5a[_0x249f52(0x2af)]()});}[_0x49c5b2(0x1f4)](_0x259277,_0x240b31){const _0x4a0400=_0x49c5b2,_0x3a164f=_0x1e1f26(this[_0x4a0400(0x2ec)]),_0x1a75c4=this[_0x4a0400(0x1d5)](_0x259277,_0x240b31),_0xf902a7=this[_0x4a0400(0x2ec)][_0x4a0400(0x27a)][_0x4a0400(0x2fd)](_0x555cbc);if(!_0x1a75c4)return void _0xf902a7[_0x4a0400(0x25e)]();const {range:_0x22aab4,currentIndex:_0x122426,previousIndex:_0x460a5b,nextIndex:_0x417081}=_0x1a75c4;if(this[_0x4a0400(0x1e0)]?.[_0x4a0400(0x22a)]==_0x259277&&this[_0x4a0400(0x1e0)]?.[_0x4a0400(0x1ed)]==_0x122426)return;this[_0x4a0400(0x1e0)]={'replyId':_0x259277,'partIndex':_0x122426};const _0x3a3700=new _0x4d4776(_0x3a164f[_0x4a0400(0x1ce)],{'showDiff':this[_0x4a0400(0x24d)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x4a0400(0x1ea)},'hideHeader':!0x0}),{reply:_0x30a0c1}=this[_0x4a0400(0x1da)](_0x259277),_0x5ebc0b=_0x68d6dc({'editor':_0x3a164f,'changeGroups':[_0x30a0c1[_0x4a0400(0x255)][_0x122426]],'documentContextContent':_0x30a0c1[_0x4a0400(0x20d)],'showDiff':this[_0x4a0400(0x24d)]});_0x3a3700[_0x4a0400(0x2e2)]({'parts':_0x5ebc0b,'renderingStrategy':_0x4a0400(0x259)});const _0x5ea3fb=_0x122426!==_0x460a5b;this[_0x4a0400(0x264)](_0x22aab4,!0x0),_0xf902a7[_0x4a0400(0x2a2)]({'index':_0x122426,'title':_0x4a0400(0x26c)+(_0x122426+0x1),'icon':_0x380504,'mainView':_0x3a3700,'showRotator':_0x5ea3fb,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x22aab4]}),this[_0x4a0400(0x1e3)][_0x4a0400(0x293)](_0x259277,_0x122426),this[_0x4a0400(0x2c3)](_0x3a3700,_0x4a0400(0x2e9),(_0x25a49b,{showDiff:_0x3cb36f})=>{const _0x23980f=_0x4a0400;this[_0x23980f(0x24d)]=_0x3cb36f;const {reply:_0x336d9f}=this[_0x23980f(0x1da)](_0x259277),_0x367fa6=_0x68d6dc({'editor':_0x3a164f,'changeGroups':[_0x336d9f[_0x23980f(0x255)][_0x122426]],'documentContextContent':_0x336d9f[_0x23980f(0x20d)],'showDiff':_0x3cb36f});_0x3a3700[_0x23980f(0x2e2)]({'parts':_0x367fa6,'renderingStrategy':_0x23980f(0x259)});}),this[_0x4a0400(0x2c3)](_0xf902a7,_0x4a0400(0x296),()=>{const _0x1af526=_0x4a0400;this[_0x1af526(0x1ee)]({'replyId':_0x259277,'partIndex':_0x122426}),_0x5ea3fb?this[_0x1af526(0x1f4)](_0x259277,_0x417081):_0xf902a7[_0x1af526(0x25e)]();}),this[_0x4a0400(0x2c3)](_0xf902a7,_0x4a0400(0x284),()=>{const _0x3495d1=_0x4a0400;this[_0x3495d1(0x2ac)]({'replyId':_0x259277,'partIndex':_0x122426}),_0x5ea3fb?this[_0x3495d1(0x1f4)](_0x259277,_0x417081):_0xf902a7[_0x3495d1(0x25e)]();}),_0x5ea3fb&&(this[_0x4a0400(0x2c3)](_0xf902a7,_0x4a0400(0x30a),()=>{const _0x3bd9de=_0x4a0400;this[_0x3bd9de(0x1f4)](_0x259277,_0x417081);}),this[_0x4a0400(0x2c3)](_0xf902a7,_0x4a0400(0x23b),()=>{const _0x237b9e=_0x4a0400;this[_0x237b9e(0x1f4)](_0x259277,_0x460a5b);})),this[_0x4a0400(0x2c3)](_0xf902a7,_0x4a0400(0x277),()=>{const _0x5c95a8=_0x4a0400;this[_0x5c95a8(0x291)](_0xf902a7),this[_0x5c95a8(0x291)](_0x3a3700),this[_0x5c95a8(0x1e0)]=null;});}[_0x49c5b2(0x1d5)](_0x2a0345,_0x1806ad){const _0x476f31=_0x49c5b2,_0x3177df=_0x1e1f26(this[_0x476f31(0x2ec)]),{reply:_0x185cdd,interaction:_0x1cb361}=this[_0x476f31(0x1da)](_0x2a0345),_0x1064d0=_0x185cdd[_0x476f31(0x255)][_0x476f31(0x24f)](_0x4bc6b7=>_0x476f31(0x212)==_0x4bc6b7[_0x476f31(0x2f8)]),_0x450f96=_0x1064d0[_0x476f31(0x227)](_0x3a5e39=>_0x185cdd[_0x476f31(0x255)][_0x476f31(0x203)](_0x3a5e39));void 0x0===_0x1806ad&&(_0x1806ad=_0x450f96[0x0]);const _0x4cb156=_0x450f96[_0x476f31(0x203)](_0x1806ad);if(-0x1==_0x4cb156)return null;const _0x2b7f56=0x0==_0x4cb156?_0x450f96[_0x450f96[_0x476f31(0x222)]-0x1]:_0x450f96[_0x4cb156-0x1],_0x426470=_0x4cb156==_0x450f96[_0x476f31(0x222)]-0x1?_0x450f96[0x0]:_0x450f96[_0x4cb156+0x1],_0x40c7e0=_0x1064d0[_0x4cb156],_0xf21cd8=new _0x2d75b3([]),_0x3feefd=new _0x2d75b3([]);for(const _0x244c1b of _0x40c7e0[_0x476f31(0x23c)])if(_0x476f31(0x2ff)!=_0x244c1b[_0x476f31(0x2ad)]&&_0x3feefd[_0x476f31(0x20b)][_0x476f31(0x2f2)](_0x244c1b[_0x476f31(0x254)][_0x476f31(0x23f)](!0x0)),_0x476f31(0x2d0)!=_0x244c1b[_0x476f31(0x2ad)]){const _0x6dc3e9=_0x2666cf(_0x19ed1c=>_0x52ba63(_0x19ed1c,_0x476f31(0x2cb))==_0x244c1b['id'],_0x185cdd[_0x476f31(0x20d)],!0x0);_0xf21cd8[_0x476f31(0x20b)][_0x476f31(0x2f2)](_0x6dc3e9[_0x476f31(0x23f)](!0x0));}if(0x0==_0xf21cd8[_0x476f31(0x20b)][_0x476f31(0x222)]){if(_0x40c7e0[_0x476f31(0x23c)][0x0][_0x476f31(0x1db)]){const _0x7a36c5=_0x4385af(_0x476f31(0x2cb),_0x40c7e0[_0x476f31(0x23c)][0x0][_0x476f31(0x1db)],_0x185cdd[_0x476f31(0x20d)]);_0xf21cd8[_0x476f31(0x20b)][_0x476f31(0x2d7)](_0x7a36c5[_0x476f31(0x23f)](!0x0)),_0x3feefd[_0x476f31(0x20b)][_0x476f31(0x2d7)](_0x7a36c5[_0x476f31(0x23f)](!0x0)),_0x7a36c5[_0x476f31(0x269)]&&(_0xf21cd8[_0x476f31(0x20b)][_0x476f31(0x2f2)](_0x7a36c5[_0x476f31(0x269)][_0x476f31(0x23f)](!0x0)),_0x3feefd[_0x476f31(0x20b)][_0x476f31(0x2f2)](_0x7a36c5[_0x476f31(0x269)][_0x476f31(0x23f)](!0x0)));}else{const _0x33bd4b=_0x185cdd[_0x476f31(0x20d)][_0x476f31(0x20b)][0x0];if(!_0x33bd4b)return null;_0xf21cd8[_0x476f31(0x20b)][_0x476f31(0x2f2)](_0x33bd4b[_0x476f31(0x23f)](!0x0)),_0x3feefd[_0x476f31(0x20b)][_0x476f31(0x2f2)](_0x33bd4b[_0x476f31(0x23f)](!0x0));}}const _0x2e01aa=_0x1cb361[_0x476f31(0x1d0)](),_0x455fe8=_0x3177df[_0x476f31(0x30e)][_0x476f31(0x21e)](_0x2e01aa[_0x476f31(0x243)]),_0x31728b=_0x31bd3e(_0xf21cd8),_0x482ce1=_0x3177df[_0x476f31(0x30e)][_0x476f31(0x21e)](_0x31728b),_0x23d28d=_0x3177df[_0x476f31(0x30e)][_0x476f31(0x21e)](_0x31728b),_0x369414=_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x2a7)](_0x482ce1,0x0),_0x1ae19a=_0x31bd3e(_0x3feefd),_0x2682f0={'anchor':_0x369414,'markDeletions':!0x1},_0x452fab=_0x3177df[_0x476f31(0x27a)][_0x476f31(0x2fd)](_0x283dfd)[_0x476f31(0x2d4)](_0x31728b,_0x1ae19a,_0x2682f0)[_0x476f31(0x1e9)]();if(!_0x452fab[_0x476f31(0x222)])return null;_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x2c9)](_0x15fa09=>{const _0x192f39=_0x476f31;for(const _0x5281bb of _0x452fab)if(_0x192f39(0x278)==_0x5281bb[_0x192f39(0x2ad)]){const _0x268945=_0x5281bb[_0x192f39(0x2d1)],_0x5a8f4b=_0x5281bb[_0x192f39(0x2c4)],_0x1aea05=new _0x201cc2(_0x268945,_0x5a8f4b);_0x15fa09[_0x192f39(0x275)][_0x192f39(0x2b9)](_0x1aea05),_0x3177df[_0x192f39(0x2d3)][_0x192f39(0x28e)](_0x1aea05);}else _0x5281bb[_0x192f39(0x234)]=null,_0x5281bb[_0x192f39(0x2b0)]=!0x1,_0x15fa09[_0x192f39(0x275)][_0x192f39(0x2b9)](_0x5281bb),_0x3177df[_0x192f39(0x2d3)][_0x192f39(0x28e)](_0x5281bb);});const _0x30f351=_0x3d4c72(_0x3177df,_0x452fab,_0x482ce1);_0x4af0eb(_0x3177df[_0x476f31(0x2d3)],_0x30f351);const _0x550d1c=_0x30f351[_0x476f31(0x28c)]()[_0x476f31(0x29e)][_0x476f31(0x1f8)][_0x476f31(0x2af)](),_0x41c423=_0x30f351[_0x476f31(0x28c)]()[_0x476f31(0x307)][_0x476f31(0x1f8)][_0x476f31(0x2af)](),_0x4cbdcb=[];let _0x2b6cf5=_0x482ce1,_0x3eac81=_0x23d28d;for(let _0x567337=0x0;_0x567337<_0x41c423[_0x476f31(0x222)];_0x567337++){const _0x5679b9=_0x2b6cf5[_0x476f31(0x301)]-_0x41c423[_0x567337];_0x4cbdcb[_0x567337]=_0x3eac81[_0x476f31(0x301)]-_0x5679b9,_0x2b6cf5=_0x2b6cf5[_0x476f31(0x311)](_0x41c423[_0x567337]),_0x3eac81=_0x3eac81[_0x476f31(0x311)](_0x4cbdcb[_0x567337]);}const _0x5ea190=_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x22f)](_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x22c)](_0x23d28d,_0x550d1c),_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x22c)](_0x23d28d,_0x4cbdcb)),_0x1d6cc2=_0x23d28d[_0x476f31(0x219)](0x0)[_0x476f31(0x205)](_0x1c5ada),_0x20f3e5=Array[_0x476f31(0x27b)](_0x455fe8[_0x476f31(0x2bd)]())[_0x476f31(0x305)](_0x7535a1=>_0x7535a1[_0x476f31(0x205)](_0x1c5ada)==_0x1d6cc2)[_0x476f31(0x25d)](),_0x412086=_0x5ea190[_0x476f31(0x29e)][_0x476f31(0x1f8)][_0x476f31(0x2af)](),_0x17b365=_0x5ea190[_0x476f31(0x307)][_0x476f31(0x1f8)][_0x476f31(0x2af)]();_0x412086[0x0]=_0x20f3e5[0x0]+_0x412086[0x0],_0x17b365[0x0]=_0x20f3e5[0x0]+_0x17b365[0x0];let _0x84e0a0=_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x22f)](_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x22c)](_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x21b)][_0x476f31(0x1fa)](),_0x412086),_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x22c)](_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x21b)][_0x476f31(0x1fa)](),_0x17b365));const _0x2cbc30=_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x21b)][_0x476f31(0x1ef)][_0x476f31(0x1e9)](_0x2e01aa[_0x476f31(0x2db)]);for(const _0x1080e4 of _0x2cbc30)_0x84e0a0=_0x241e0d[_0x476f31(0x263)](_0x84e0a0[_0x476f31(0x230)](_0x1080e4));return{'range':_0x84e0a0,'previousIndex':_0x2b7f56,'nextIndex':_0x426470,'currentIndex':_0x1806ad};}[_0x49c5b2(0x1f6)](_0x1e2db0){const _0x51b07d=_0x49c5b2;if(!_0x1e2db0[_0x51b07d(0x27a)][_0x51b07d(0x21f)](_0x51b07d(0x1e4)))return;const _0x3404a0=_0x1e2db0[_0x51b07d(0x1f0)][_0x51b07d(0x2fd)](_0x51b07d(0x2a4)),_0x5419da=_0x1e2db0[_0x51b07d(0x1f0)][_0x51b07d(0x2fd)](_0x51b07d(0x270));this[_0x51b07d(0x2c3)](_0x3404a0,_0x51b07d(0x1e8),(_0x567aee,_0x519dbe,_0x17bae1)=>{const _0x345194=_0x51b07d,_0x44a887=this[_0x345194(0x211)][_0x345194(0x2fd)](_0x519dbe);if(!_0x44a887)return;const _0x1ba3a3=this[_0x345194(0x2c2)][_0x345194(0x1c5)](_0x44a887[_0x345194(0x1de)])[_0x345194(0x29a)](_0x44a887[_0x345194(0x22a)]);_0x44a887[_0x345194(0x2b6)][_0x345194(0x2aa)](_0xc0032e=>_0x1ba3a3[_0x345194(0x2a9)](_0xc0032e,_0x345194(0x212))),this[_0x345194(0x211)][_0x345194(0x1cb)](_0x519dbe),this[_0x345194(0x211)][_0x345194(0x2f5)](_0x17bae1,_0x44a887);}),this[_0x51b07d(0x2c3)](_0x5419da,_0x51b07d(0x1e8),(_0x5b6e9a,_0x2ce53c,_0x56f336)=>{const _0x274cbf=_0x51b07d,_0x26f72e=this[_0x274cbf(0x211)][_0x274cbf(0x2fd)](_0x2ce53c);if(!_0x26f72e)return;const _0x3ac80d=this[_0x274cbf(0x2c2)][_0x274cbf(0x1c5)](_0x26f72e[_0x274cbf(0x1de)])[_0x274cbf(0x29a)](_0x26f72e[_0x274cbf(0x22a)]);_0x26f72e[_0x274cbf(0x2b6)][_0x274cbf(0x2aa)](_0x1d8c5b=>_0x3ac80d[_0x274cbf(0x2a9)](_0x1d8c5b,_0x274cbf(0x24c))),this[_0x274cbf(0x211)][_0x274cbf(0x1cb)](_0x2ce53c),this[_0x274cbf(0x211)][_0x274cbf(0x2f5)](_0x56f336,_0x26f72e);});}async[_0x49c5b2(0x1cf)](_0x5a08a5){const _0x4c92ae=_0x49c5b2;this[_0x4c92ae(0x2ec)][_0x4c92ae(0x27a)][_0x4c92ae(0x2fd)](_0x555cbc)[_0x4c92ae(0x25e)](),this[_0x4c92ae(0x1e3)][_0x4c92ae(0x21c)](_0x4c92ae(0x259)),this[_0x4c92ae(0x1e3)][_0x4c92ae(0x23d)](!0x0),await this[_0x4c92ae(0x2d8)]();try{const _0x3371fe=this[_0x4c92ae(0x2ec)][_0x4c92ae(0x27a)][_0x4c92ae(0x2fd)](_0x4952f1);this[_0x4c92ae(0x2c8)]('\x20'),_0x3371fe[_0x4c92ae(0x218)][_0x4c92ae(0x29d)](_0x4c92ae(0x237)),await this[_0x4c92ae(0x1fc)](_0x5a08a5);const {sessionId:_0xf4a7c1}=this[_0x4c92ae(0x216)][_0x4c92ae(0x312)]();await this[_0x4c92ae(0x2c2)][_0x4c92ae(0x2ab)](_0x5a08a5,_0xf4a7c1),this[_0x4c92ae(0x2c2)][_0x4c92ae(0x1eb)]()&&this[_0x4c92ae(0x2c2)][_0x4c92ae(0x1fe)](_0xd7d1f7(this[_0x4c92ae(0x2ec)][_0x4c92ae(0x1ce)],_0x4c92ae(0x23a)));}catch(_0x3e582a){console[_0x4c92ae(0x207)](_0x4c92ae(0x26a),_0x3e582a);}finally{this[_0x4c92ae(0x1e3)][_0x4c92ae(0x21c)](_0x4c92ae(0x249)),this[_0x4c92ae(0x1e3)][_0x4c92ae(0x23d)](!0x1);}}[_0x49c5b2(0x310)](_0x520027){const _0x59b9dc=_0x49c5b2;this[_0x59b9dc(0x2c2)]['id']===_0x520027&&this[_0x59b9dc(0x1fc)]();}async[_0x49c5b2(0x26b)](){const _0x21d1ee=_0x49c5b2,_0x9a1a61=this[_0x21d1ee(0x216)][_0x21d1ee(0x1df)]();this[_0x21d1ee(0x2c2)]?.[_0x21d1ee(0x2d5)](_0x9a1a61),this[_0x21d1ee(0x2c2)]?.[_0x21d1ee(0x1fe)](_0xd7d1f7(this[_0x21d1ee(0x2ec)][_0x21d1ee(0x1ce)],_0x21d1ee(0x23a)));}[_0x49c5b2(0x1f9)](){const _0x598c2d=_0x49c5b2;this[_0x598c2d(0x2c2)]?.[_0x598c2d(0x2c5)]();}[_0x49c5b2(0x283)](){const _0x5bf878=_0x49c5b2;this[_0x5bf878(0x1e3)][_0x5bf878(0x283)]();}async[_0x49c5b2(0x286)](){const _0x5c76a3=_0x49c5b2;await this[_0x5c76a3(0x1fc)]();}async[_0x49c5b2(0x1d1)]({message:_0x501a02,quickActionData:_0x1652bc}){const _0x408b57=_0x49c5b2;await this[_0x408b57(0x2ce)]({'userMessage':_0x501a02,'quickActionData':_0x1652bc});}[_0x49c5b2(0x26f)](){const _0x973db5=_0x49c5b2,_0x188c73=this[_0x973db5(0x2ec)][_0x973db5(0x2c7)][_0x973db5(0x2fd)](_0x973db5(0x209));if(!_0x188c73)throw new _0x586d94(_0x973db5(0x232),this);return _0x188c73;}async[_0x49c5b2(0x1fc)](_0x4c1839){const _0xdddbda=_0x49c5b2,_0x158d30=this[_0xdddbda(0x2ec)][_0xdddbda(0x27a)][_0xdddbda(0x2fd)](_0x555cbc);let _0x374f37;_0x158d30[_0xdddbda(0x30c)]&&_0x158d30[_0xdddbda(0x25e)](),_0x374f37=_0x4c1839||!this[_0xdddbda(0x2c2)]?this[_0xdddbda(0x2ec)][_0xdddbda(0x2c7)][_0xdddbda(0x2fd)](_0xdddbda(0x1dc)):this[_0xdddbda(0x2c2)][_0xdddbda(0x260)]['id'],await this[_0xdddbda(0x2d8)]();const _0x5efc99=this[_0xdddbda(0x26f)](),_0x1e92ce=_0x4c1839||_0x1d0026();this[_0xdddbda(0x2c2)]=new _0x3e2f1d({'connector':this[_0xdddbda(0x297)],'chatModels':this[_0xdddbda(0x1f1)],'defaultModelId':_0x374f37,'conversationId':_0x1e92ce,'group':_0x5efc99,'getEditor':()=>_0x1e1f26(this[_0xdddbda(0x2ec)])}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x2d6),(_0x18b3e2,_0x16b700)=>{const _0xedba9b=_0xdddbda;_0x16b700[_0xedba9b(0x248)]=this[_0xedba9b(0x21a)](_0x16b700[_0xedba9b(0x248)],this[_0xedba9b(0x2ec)][_0xedba9b(0x2c7)][_0xedba9b(0x2fd)](_0xedba9b(0x27d))),this[_0xedba9b(0x1e3)][_0xedba9b(0x204)](_0x16b700),this[_0xedba9b(0x1e3)][_0xedba9b(0x2ae)](),this[_0xedba9b(0x1e3)][_0xedba9b(0x2e7)](),this[_0xedba9b(0x1e3)][_0xedba9b(0x2f1)](),_0x4c1839||(this[_0xedba9b(0x1e3)][_0xedba9b(0x288)](),this[_0xedba9b(0x2c2)]?.[_0xedba9b(0x1fe)](_0xd7d1f7(this[_0xedba9b(0x2ec)][_0xedba9b(0x1ce)],_0xedba9b(0x23a))));}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x267),(_0x42a25c,_0x20b2be)=>{const _0x32d28a=_0xdddbda;this[_0x32d28a(0x1e3)][_0x32d28a(0x2e0)](_0x20b2be[_0x32d28a(0x2e4)]);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x256),(_0x11f4dd,_0x2a6787)=>{const _0x1d526c=_0xdddbda;this[_0x1d526c(0x1e3)][_0x1d526c(0x20c)](_0x2a6787),this[_0x1d526c(0x1e3)][_0x1d526c(0x1fb)](_0x2a6787);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x287),(_0x2e1377,_0x3757f4)=>{const _0x48ed6a=_0xdddbda;this[_0x48ed6a(0x1e3)][_0x48ed6a(0x28f)](_0x3757f4);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x20a),async()=>{const _0x25abc4=_0xdddbda;await this[_0x25abc4(0x1e3)][_0x25abc4(0x282)]();}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x229),(_0x2088cb,_0x432b3b)=>{const _0x5cc844=_0xdddbda;this[_0x5cc844(0x1e3)][_0x5cc844(0x25b)](_0x432b3b['id']);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x226),(_0xa66cb1,_0x2da37a,_0x48e010)=>{const _0x17f8d1=_0xdddbda;this[_0x17f8d1(0x2c8)](_0x2da37a,_0x48e010);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x250),(_0x4dd6d5,_0x82dfdd)=>{const _0x585e5d=_0xdddbda;this[_0x585e5d(0x1e3)][_0x585e5d(0x2b7)]({'isVisible':!0x0,'id':_0x82dfdd[_0x585e5d(0x1de)]}),_0x585e5d(0x246)===_0x82dfdd[_0x585e5d(0x2ad)]?this[_0x585e5d(0x1e3)][_0x585e5d(0x2fe)](_0x82dfdd):this[_0x585e5d(0x1e3)][_0x585e5d(0x1c6)](_0x82dfdd);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x265),async(_0x2af633,_0x457ae7,_0x47261a)=>{const _0x183548=_0xdddbda;await this[_0x183548(0x27f)]({'reply':_0x457ae7,'changeGroups':_0x47261a});}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x214),(_0x4788d0,{reply:_0x520a31,index:_0x17a7c3,state:_0x294631})=>{const _0x3341ea=_0xdddbda;this[_0x3341ea(0x1e3)][_0x3341ea(0x306)]({'id':_0x520a31['id'],'index':_0x17a7c3,'state':_0x294631});}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x208),(_0x1e1f65,_0x5b292a)=>{const _0x6f4626=_0xdddbda;if(this[_0x6f4626(0x1e3)][_0x6f4626(0x24b)](_0x5b292a[_0x6f4626(0x2ee)],_0x5b292a[_0x6f4626(0x262)]),_0x6f4626(0x1d9)===_0x5b292a[_0x6f4626(0x2ee)][_0x6f4626(0x2ad)]){const _0x4362c0=[..._0x1e1f26(this[_0x6f4626(0x2ec)])[_0x6f4626(0x2d3)][_0x6f4626(0x21b)][_0x6f4626(0x1d9)][_0x6f4626(0x30b)]()];this[_0x6f4626(0x216)][_0x6f4626(0x300)](_0x4362c0,_0x6f4626(0x295)+this[_0x6f4626(0x2c2)]?.['id']);}}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x2cc),(_0xa50789,_0x31a106)=>{const _0x36afd6=_0xdddbda;this[_0x36afd6(0x1e3)][_0x36afd6(0x239)](_0x31a106[_0x36afd6(0x289)]),_0x36afd6(0x2fa)==_0x31a106[_0x36afd6(0x289)]&&this[_0x36afd6(0x1f9)](),_0x36afd6(0x1d9)===_0x31a106[_0x36afd6(0x2ad)]&&this[_0x36afd6(0x216)][_0x36afd6(0x241)](_0x36afd6(0x295)+this[_0x36afd6(0x2c2)]?.['id']);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x1d7),(_0x46be19,_0x3a2326)=>{const _0x15e92c=_0xdddbda;this[_0x15e92c(0x1e3)][_0x15e92c(0x28a)](_0x3a2326[_0x15e92c(0x2ee)][_0x15e92c(0x289)],_0x3a2326[_0x15e92c(0x262)]);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x21d),(_0x39e9d4,_0x540dbc)=>{const _0x2f15bb=_0xdddbda;this[_0x2f15bb(0x1e3)][_0x2f15bb(0x2bc)](_0x540dbc[_0x2f15bb(0x2ba)]);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x2c1),(_0x40033a,_0x402996)=>{const _0x460aca=_0xdddbda;this[_0x460aca(0x1e3)][_0x460aca(0x276)](_0x402996[_0x460aca(0x1c7)]);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x304),(_0x64b492,_0x456f9b)=>{const _0x32713c=_0xdddbda;this[_0x32713c(0x1e3)][_0x32713c(0x2ef)](_0x456f9b[_0x32713c(0x2a0)],_0x456f9b[_0x32713c(0x22b)],_0x456f9b[_0x32713c(0x271)],_0x456f9b[_0x32713c(0x308)]);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x2c6),(_0x49d117,_0x10be09)=>{const _0x2bf48f=_0xdddbda;this[_0x2bf48f(0x1e3)][_0x2bf48f(0x228)](_0x10be09[_0x2bf48f(0x2a0)],_0x10be09[_0x2bf48f(0x28b)],_0x10be09[_0x2bf48f(0x266)]);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x2bb),(_0x2b6295,_0x7c865c)=>{const _0x34895c=_0xdddbda;this[_0x34895c(0x1e3)][_0x34895c(0x1e7)](_0x7c865c);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x215),(_0x573378,_0x5185cb)=>{const _0x42aa4e=_0xdddbda;this[_0x42aa4e(0x1e3)][_0x42aa4e(0x1dd)](_0x5185cb[_0x42aa4e(0x260)],_0x5185cb[_0x42aa4e(0x2b4)]);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x207),(_0x1a3016,{error:_0x249fd6,interactionId:_0x1a610b,fileName:_0x12081f,url:_0x1b8215,sourceId:_0x20376c,sourceLabel:_0x3a63bd})=>{const _0x425dc1=_0xdddbda,_0x403298=_0x1a610b?_0x1a610b+':'+_0x1d0026():_0x1d0026();_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x292))?this[_0x425dc1(0x1e3)][_0x425dc1(0x2b8)]({'staticMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x1d4)),'id':_0x403298}):_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x1ca))||_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x268))?(this[_0x425dc1(0x1e3)][_0x425dc1(0x2be)]({'errorMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x2d2)),'id':_0x403298}),this[_0x425dc1(0x2f3)](_0x249fd6)):_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x280))?this[_0x425dc1(0x1e3)][_0x425dc1(0x2be)]({'errorMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x279),_0x12081f),'id':_0x403298}):_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x1f5))?this[_0x425dc1(0x1e3)][_0x425dc1(0x2be)]({'errorMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x261),_0x1b8215),'id':_0x403298}):_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x2fc))?this[_0x425dc1(0x1e3)][_0x425dc1(0x2be)]({'errorMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x26e)),'id':_0x403298}):_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x25a))?this[_0x425dc1(0x1e3)][_0x425dc1(0x2be)]({'errorMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x2dd)),'id':_0x403298}):_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x201))?(_0x20376c&&this[_0x425dc1(0x1e3)][_0x425dc1(0x251)](_0x20376c),this[_0x425dc1(0x1e3)][_0x425dc1(0x2be)]({'errorMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x1e6),_0x3a63bd||_0x425dc1(0x22b)),'id':_0x403298}),this[_0x425dc1(0x2f3)](_0x249fd6)):_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x2a8))?(this[_0x425dc1(0x1e3)][_0x425dc1(0x2be)]({'errorMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x2e1)),'id':_0x403298}),this[_0x425dc1(0x2f3)](_0x249fd6)):(this[_0x425dc1(0x1e3)][_0x425dc1(0x2be)]({'errorMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x290)),'id':_0x403298}),this[_0x425dc1(0x2f3)](_0x249fd6));}),await this[_0xdddbda(0x2c2)][_0xdddbda(0x233)](this[_0xdddbda(0x2ec)][_0xdddbda(0x2c7)][_0xdddbda(0x2fd)](_0xdddbda(0x244))),_0x4c1839||await this[_0xdddbda(0x2c2)][_0xdddbda(0x29e)]();}async[_0x49c5b2(0x2ce)]({userMessage:_0x12ef97,quickActionData:_0x445ad8}){const _0x54a78d=_0x49c5b2;if(!this[_0x54a78d(0x2c2)])throw new _0x586d94(_0x54a78d(0x27e));this[_0x54a78d(0x2c2)][_0x54a78d(0x1e5)]()&&await this[_0x54a78d(0x2c2)][_0x54a78d(0x2e3)](this[_0x54a78d(0x216)][_0x54a78d(0x312)]()),this[_0x54a78d(0x2c2)]['id']&&this[_0x54a78d(0x2c2)][_0x54a78d(0x273)]&&await this[_0x54a78d(0x2c2)][_0x54a78d(0x30d)]({'userMessage':_0x12ef97,'quickActionData':_0x445ad8}),this[_0x54a78d(0x20f)]();}[_0x49c5b2(0x20f)](){const _0x1e4bac=_0x49c5b2,_0x1e9e36=_0x1e1f26(this[_0x1e4bac(0x2ec)])[_0x1e4bac(0x2d3)],_0xd9739a=Array[_0x1e4bac(0x27b)](_0x1e9e36[_0x1e4bac(0x210)][_0x1e4bac(0x1e1)](_0x2c9782));_0x1e9e36[_0x1e4bac(0x2c9)](_0x56685e=>{const _0x47beed=_0x1e4bac;_0xd9739a[_0x47beed(0x2aa)](_0x4e65af=>_0x56685e[_0x47beed(0x2e5)](_0x4e65af));});}[_0x49c5b2(0x309)](){const _0x5412f1=_0x49c5b2;console[_0x5412f1(0x1ec)](_0x5412f1(0x1fd));}[_0x49c5b2(0x2a1)](_0x407fcc){const _0x1686d2=_0x49c5b2;this[_0x1686d2(0x1e3)][_0x1686d2(0x20e)](_0x407fcc);}[_0x49c5b2(0x2f3)](_0x498e6a){const _0x55a7c8=_0x49c5b2;_0xdb113b(_0x498e6a[_0x55a7c8(0x27c)]);}[_0x49c5b2(0x1cc)](_0x53ac81){const _0x4fd772=_0x49c5b2;this[_0x4fd772(0x2c2)]?.[_0x4fd772(0x1c9)](_0x53ac81);}[_0x49c5b2(0x206)](){const _0x4d9b2f=_0x49c5b2;this[_0x4d9b2f(0x2c2)]?.[_0x4d9b2f(0x2de)]();}[_0x49c5b2(0x299)](){const _0x1f2eff=_0x49c5b2;this[_0x1f2eff(0x2c2)]?.[_0x1f2eff(0x231)]();}[_0x49c5b2(0x1da)](_0x59824e){const _0xd957a3=_0x49c5b2,[_0x179fe6,_0x15eadf]=_0x59824e[_0xd957a3(0x1d6)](':'),_0x30663b=this[_0xd957a3(0x2c2)][_0xd957a3(0x1c5)](_0x179fe6),_0x2bc6c3=_0x30663b[_0xd957a3(0x29a)](_0x15eadf);return{'interaction':_0x30663b,'reply':_0x2bc6c3};}[_0x49c5b2(0x264)](_0x257a8a,_0x368638=!0x1){const _0x25e647=_0x49c5b2,_0x508bf0=_0x1e1f26(this[_0x25e647(0x2ec)]),_0xfbb6f4={'target':_0x508bf0[_0x25e647(0x281)][_0x25e647(0x218)][_0x25e647(0x235)][_0x25e647(0x22e)](_0x508bf0[_0x25e647(0x281)][_0x25e647(0x1d3)][_0x25e647(0x2ca)](_0x257a8a)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x368638};_0x368638&&(_0xfbb6f4[_0x25e647(0x1f3)]=!0x0),_0xde20d2(_0xfbb6f4);}[_0x49c5b2(0x2c8)](_0x234b2b,_0xaba79a=!0x1){const _0x2a970d=_0x49c5b2;this[_0x2a970d(0x1e3)][_0x2a970d(0x226)](_0x234b2b||_0xd7d1f7(this[_0x2a970d(0x2ec)][_0x2a970d(0x1ce)],_0x2a970d(0x22d)),_0xaba79a);}[_0x49c5b2(0x21a)](_0x14cda8,_0xc7693e){const _0x20e2b8=_0x49c5b2;let _0x362f97;if(_0xc7693e){_0x362f97=[];const _0x41e920=_0x20e2b8(0x2da)==typeof _0xc7693e?[_0xc7693e[_0x20e2b8(0x200)]()]:_0xc7693e[_0x20e2b8(0x227)](_0x55d3e3=>_0x55d3e3[_0x20e2b8(0x200)]());for(const _0x5787a1 of _0x41e920)for(const _0x19c935 of _0x14cda8)(_0x19c935['id'][_0x20e2b8(0x200)]()===_0x5787a1||_0x19c935[_0x20e2b8(0x28d)][_0x20e2b8(0x200)]()===_0x5787a1||_0x19c935[_0x20e2b8(0x2cf)][_0x20e2b8(0x200)]()===_0x5787a1||_0x19c935['id'][_0x20e2b8(0x200)]()[_0x20e2b8(0x2f0)](_0x5787a1))&&_0x362f97[_0x20e2b8(0x2f2)](_0x19c935);}else _0x362f97=_0x14cda8;return _0x362f97;}async[_0x49c5b2(0x27f)]({reply:_0x15ddf9,changeGroups:_0x25e719,renderingStrategy:_0xc4cb7b}){const _0x3db227=_0x49c5b2,{id:_0x254778,isDone:_0x50a28b,type:_0x58cfea,parsedContent:_0xdaf718}=_0x15ddf9;if(_0x3db227(0x2f6)===_0x58cfea){const _0x382be3=_0x1e1f26(this[_0x3db227(0x2ec)]),_0x253627=_0x68d6dc({'editor':_0x382be3,'showDiff':this[_0x3db227(0x1e3)][_0x3db227(0x272)],'changeGroups':_0x25e719,'documentContextContent':_0x15ddf9[_0x3db227(0x20d)]});await this[_0x3db227(0x1e3)][_0x3db227(0x1ff)]({'id':_0x254778,'parts':_0x253627,'renderingStrategy':_0xc4cb7b,'isDone':_0x50a28b});}else _0x3db227(0x246)===_0x58cfea&&await this[_0x3db227(0x1e3)][_0x3db227(0x2a3)]({'id':_0x254778,'parsedContent':_0xdaf718,'renderingStrategy':_0xc4cb7b,'isDone':_0x50a28b});_0x50a28b&&_0x15ddf9[_0x3db227(0x224)][_0x3db227(0x222)]>0x0&&this[_0x3db227(0x1e3)][_0x3db227(0x302)](_0x254778,_0x15ddf9[_0x3db227(0x224)]);}async[_0x49c5b2(0x2d8)](){const _0xda8c02=_0x49c5b2,_0x370ce4=this[_0xda8c02(0x2c2)]?.[_0xda8c02(0x2f4)];_0x370ce4&&(_0x370ce4[_0xda8c02(0x2b1)](),this[_0xda8c02(0x1e3)][_0xda8c02(0x2e8)](_0x370ce4));}async[_0x49c5b2(0x257)](){const _0x947e6e=_0x49c5b2,_0x55b6e0=this[_0x947e6e(0x2c2)]?.[_0x947e6e(0x2f4)];if(_0x55b6e0){for await(const _0x23c07c of _0x55b6e0[_0x947e6e(0x221)])await this[_0x947e6e(0x27f)]({'reply':_0x23c07c,'changeGroups':_0x23c07c[_0x947e6e(0x255)],'renderingStrategy':_0x947e6e(0x259)});}}}
|
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4776d2=_0xa7fa;(function(_0x5bae63,_0x139d0a){const _0x1c13d9=_0xa7fa,_0x1b8178=_0x5bae63();while(!![]){try{const _0x141a7b=parseInt(_0x1c13d9(0x114))/0x1*(-parseInt(_0x1c13d9(0x15e))/0x2)+-parseInt(_0x1c13d9(0x132))/0x3+-parseInt(_0x1c13d9(0x133))/0x4+parseInt(_0x1c13d9(0xfe))/0x5*(-parseInt(_0x1c13d9(0x15f))/0x6)+parseInt(_0x1c13d9(0xe3))/0x7*(parseInt(_0x1c13d9(0xe5))/0x8)+parseInt(_0x1c13d9(0x12d))/0x9+parseInt(_0x1c13d9(0x168))/0xa;if(_0x141a7b===_0x139d0a)break;else _0x1b8178['push'](_0x1b8178['shift']());}catch(_0x129f7a){_0x1b8178['push'](_0x1b8178['shift']());}}}(_0x2eab,0xe8b06));import{ContextPlugin as _0x320d73}from'ckeditor5/src/core.js';import{_isMotionReduced as _0xe100d9}from'ckeditor5/src/utils.js';function _0xa7fa(_0x27ecb8,_0x1ac3f8){const _0x2eab96=_0x2eab();return _0xa7fa=function(_0xa7fa0b,_0x14919f){_0xa7fa0b=_0xa7fa0b-0xdc;let _0xc7b5b0=_0x2eab96[_0xa7fa0b];return _0xc7b5b0;},_0xa7fa(_0x27ecb8,_0x1ac3f8);}import{AIChatView as _0x4da9ac}from'./ui/aichatview.js';import{AITabs as _0x369830}from'../aitabs/aitabs.js';import{getTranslation as _0x2bacd0}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x56269e}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x61d7e2}from'./ui/feed/aichatfeedinteractionheaderview.js';function _0x2eab(){const _0x480141=['delegate','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','toggleSuggestionDisplayMode','setReasoning','destroy','renderingStrategy','_getLoadingMessage','clear','setSelectedModel','isBusy','getItemIds','requires','feedItemRenderingStrategy','updateFeedItemAIReplyContent','isReasoningEnabled','updateSuggestionPartState','markItemAsDone','2ChWhLg','8519700UvdMEm','_interactionPromiseResolver','interaction-header','abort','pluginName','isPremiumPlugin','updateWebSources','isVisible','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','42759040PikOvV','chat','AIChatUI','updateResourceState','closeSourceResourceBalloon','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','plugins','setConversationTitle','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','options','set','streaming','stopInteraction','children','_titleAnimationInterval','ai-reply','setIsMaximized','context','14qPrtcW','finishInteraction','4489880lksqrB','<p>','values','addFeedItemAIReply','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','_animateConversationTitle','chatHeader','setInputPlaceholder','updateSuggestionItem','setFeedItemRenderingStrategy','error-message','label','updateFeedInteractionHeader','clearPendingContextUI','removeItem','interactionId','AI_CHAT_WELCOME_MESSAGE','_view','updateFeedItemAIReplySources','removeContextItem','addFeedInteractionHeader','setAddContextOptions','updateReplyItem','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','isMaximized','5cbpgAZ','scrollToSuggestion','addItem','</p>','disableModelSelector','availableModels','startsWith','config','scrollFeedToSuggestion','enqueue','toggleLoadingSkeleton','setLoadingMessage','addContextItem','createConversation','ai-suggestion-reply','locale','stopAutoScroll','areActionsDisabled','ai.chat.models.modelSelectorAlwaysVisible','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','capabilities','conversation-start','1129285fauleh','resetMessageInput','length','bind','clearConversationContextUI','addFeedItemError','find','chatControls','quickActionData','isLoading','updateFeedItemAIReplySuggestionPartState','focusPromptInput','enableModelSelector','updateFeedItemAIReplySuggestionContent','forEach','then','startAutoScroll','filter','isWebSearchEnabled','displayedPrompt','populateSourceResourceBalloon','from','updateCapabilities','isDone','_getInputPlaceholder','3442653DuaHSl','setIsUploadInProgress','get','setConversationContext','contextItems','1292073OOHlVf','7391484aDNBan','addFeedItemAISuggestion','AITabs','addFeedItemUserMessage','setModelList','view','setWebSearch','isPending','setContextItemLoading','chatFeed','startInteraction','AI_CHAT_HEADING','userMessage','setModel','addFeedItemStaticMessage','removeFeedInteraction','_promiseQueue','user-message','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','isOfficialPlugin','showDiff','markFeedItemAsDone','resetConversationTitle','showResizeButton','addTab','queueEmptyPromise'];_0x2eab=function(){return _0x480141;};return _0x2eab();}import{PromiseQueue as _0x5538ba}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x223be1}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';export class AIChatUI extends _0x320d73{static get[_0x4776d2(0x158)](){return[_0x369830];}[_0x4776d2(0xf6)];static get[_0x4776d2(0x163)](){const _0x1e4af9=_0x4776d2;return _0x1e4af9(0x16a);}static get[_0x4776d2(0x146)](){return!0x0;}static get[_0x4776d2(0x164)](){return!0x0;}[_0x4776d2(0x159)]=_0x4776d2(0xdc);[_0x4776d2(0x147)]=!0x0;[_0x4776d2(0x143)];[_0x4776d2(0x160)];[_0x4776d2(0xdf)]=void 0x0;constructor(_0x85fd69){const _0x4d0a58=_0x4776d2;super(_0x85fd69);const _0x80b5dd=this[_0x4d0a58(0xe2)][_0x4d0a58(0x16e)][_0x4d0a58(0x12f)](_0x4d0a58(0x135));this[_0x4d0a58(0x172)](_0x4d0a58(0x156),!0x1),this[_0x4d0a58(0x143)]=new _0x5538ba(),this[_0x4d0a58(0xf6)]=new _0x4da9ac(this[_0x4d0a58(0xe2)][_0x4d0a58(0x10d)],_0x80b5dd[_0x4d0a58(0x14a)]),this[_0x4d0a58(0xf6)][_0x4d0a58(0x14d)](..._0x223be1)['to'](this),this[_0x4d0a58(0xf6)]['on'](_0x4d0a58(0x14f),(_0xb0c49b,{showDiff:_0x1504ee})=>{const _0x12729f=_0x4d0a58;this[_0x12729f(0x147)]=_0x1504ee;}),_0x80b5dd[_0x4d0a58(0x138)][_0x4d0a58(0x14b)]({'id':_0x4d0a58(0x169),'buttonLabel':_0x2bacd0(this[_0x4d0a58(0xe2)][_0x4d0a58(0x10d)],_0x4d0a58(0x13e)),'buttonIcon':_0x56269e,'order':0x0,'content':this[_0x4d0a58(0xf6)]}),this[_0x4d0a58(0xf6)][_0x4d0a58(0x11b)][_0x4d0a58(0x117)](_0x4d0a58(0x11d))['to'](this,_0x4d0a58(0x156),_0x5262ce=>_0x5262ce),this[_0x4d0a58(0xf6)][_0x4d0a58(0x13c)][_0x4d0a58(0x117)](_0x4d0a58(0x13a))['to'](this,_0x4d0a58(0x156),_0x73a8df=>_0x73a8df),this[_0x4d0a58(0xf6)][_0x4d0a58(0x11b)][_0x4d0a58(0xec)](this[_0x4d0a58(0x12c)]());}[_0x4776d2(0x151)](){const _0x456811=_0x4776d2;super[_0x456811(0x151)](),this[_0x456811(0xdf)]&&clearInterval(this[_0x456811(0xdf)]);}[_0x4776d2(0x10b)](_0x5aaaf4){const _0x1f8afa=_0x4776d2;this[_0x1f8afa(0xf6)][_0x1f8afa(0x13c)][_0x1f8afa(0x154)](),this[_0x1f8afa(0xf6)][_0x1f8afa(0x11b)][_0x1f8afa(0x120)](),this[_0x1f8afa(0xf6)][_0x1f8afa(0x11b)][_0x1f8afa(0x137)](_0x5aaaf4[_0x1f8afa(0x103)],!this[_0x1f8afa(0xe2)][_0x1f8afa(0x105)][_0x1f8afa(0x12f)](_0x1f8afa(0x110))),this[_0x1f8afa(0x141)]({'id':_0x1f8afa(0x113),'staticMessage':_0x2bacd0(this[_0x1f8afa(0xe2)][_0x1f8afa(0x10d)],_0x1f8afa(0xf5))});}[_0x4776d2(0x141)]({id:_0xd9e427,staticMessage:_0x33c3ca}){const _0x41b376=_0x4776d2;this[_0x41b376(0xf6)][_0x41b376(0x13c)][_0x41b376(0x100)](_0x41b376(0xe0),{'id':_0xd9e427,'initialContent':_0x41b376(0xe6)+_0x33c3ca+_0x41b376(0x101)});}[_0x4776d2(0x136)](_0x4cea51){const _0x51c0df=_0x4776d2,_0x4b6f96=_0x4cea51[_0x51c0df(0x11c)]?.[_0x51c0df(0x127)]||_0x4cea51[_0x51c0df(0x13f)];this[_0x51c0df(0xf6)][_0x51c0df(0x13c)][_0x51c0df(0x100)](_0x51c0df(0x144),{'contextItems':Array[_0x51c0df(0x129)](_0x4cea51[_0x51c0df(0x131)][_0x51c0df(0xe7)]()),'initialContent':_0x51c0df(0xe6)+_0x4b6f96+_0x51c0df(0x101),'id':_0x4cea51['id']});}[_0x4776d2(0x119)]({errorMessage:_0xcabca0,id:_0x4fb4ad}){const _0xa647a0=_0x4776d2;this[_0xa647a0(0xf6)][_0xa647a0(0x13c)][_0xa647a0(0x100)](_0xa647a0(0xef),{'initialContent':_0xa647a0(0xe6)+_0xcabca0+_0xa647a0(0x101),'id':_0x4fb4ad});}[_0x4776d2(0xe8)](_0x2cb95d){const _0x4c54c2=_0x4776d2;return this[_0x4c54c2(0x143)][_0x4c54c2(0x107)](async()=>{const _0x1bed81=_0x4c54c2;this[_0x1bed81(0xf6)][_0x1bed81(0x13c)][_0x1bed81(0x100)](_0x1bed81(0xe0),{'id':_0x2cb95d[_0x1bed81(0xf4)]+':'+_0x2cb95d['id']}),this[_0x1bed81(0xf6)][_0x1bed81(0x13c)][_0x1bed81(0x109)]('');});}async[_0x4776d2(0x134)](_0xca2e87){const _0x3d0ed2=_0x4776d2;return this[_0x3d0ed2(0x143)][_0x3d0ed2(0x107)](async()=>{const _0x471afc=_0x3d0ed2;this[_0x471afc(0xf6)][_0x471afc(0x13c)][_0x471afc(0x100)](_0x471afc(0x10c),{'id':_0xca2e87[_0x471afc(0xf4)]+':'+_0xca2e87['id'],'areActionsDisabled':_0xca2e87[_0x471afc(0x10f)],'showDiff':this[_0x471afc(0x147)]}),this[_0x471afc(0xf6)][_0x471afc(0x13c)][_0x471afc(0x109)]('');});}[_0x4776d2(0xf9)](_0x57c8fe){const _0x4f46e5=_0x4776d2;this[_0x4f46e5(0xf6)][_0x4f46e5(0x13c)][_0x4f46e5(0x100)](_0x4f46e5(0x161),{'id':_0x57c8fe['id'],'capabilities':_0x57c8fe[_0x4f46e5(0x112)]});}[_0x4776d2(0xf1)](_0xe2759e){const _0x44a2c8=_0x4776d2,_0x188726=this[_0x44a2c8(0xf6)][_0x44a2c8(0x13c)][_0x44a2c8(0xde)][_0x44a2c8(0x11a)](_0x21559d=>_0x21559d[_0x44a2c8(0x171)]['id']==_0xe2759e['id']&&_0x21559d instanceof _0x61d7e2);_0x188726&&_0x188726[_0x44a2c8(0x172)](_0x44a2c8(0x166),_0xe2759e[_0x44a2c8(0x166)]);}async[_0x4776d2(0x15a)](_0x4e1246){const _0x395066=_0x4776d2,_0x276ab2=_0x4e1246[_0x395066(0x152)]||this[_0x395066(0x159)];return this[_0x395066(0x143)][_0x395066(0x107)](async _0x5b0639=>{const _0x1a4262=_0x395066;await this[_0x1a4262(0xf6)][_0x1a4262(0x13c)][_0x1a4262(0xfb)]({..._0x4e1246,'abortSignal':_0x5b0639,'renderingStrategy':_0x276ab2}),_0x4e1246[_0x1a4262(0x12b)]&&this[_0x1a4262(0x148)](_0x4e1246['id']);});}[_0x4776d2(0xf7)](_0x252107,_0x419ef4){const _0xcad2b7=_0x4776d2;this[_0xcad2b7(0xf6)][_0xcad2b7(0x13c)][_0xcad2b7(0x165)](_0x252107,_0x419ef4);}async[_0x4776d2(0x121)](_0x237be8){const _0xd121ef=_0x4776d2,_0x2abd47=_0x237be8[_0xd121ef(0x152)]||this[_0xd121ef(0x159)];return this[_0xd121ef(0x143)][_0xd121ef(0x107)](async _0x5088fc=>{const _0x2d5b62=_0xd121ef;await this[_0x2d5b62(0xf6)][_0x2d5b62(0x13c)][_0x2d5b62(0xed)]({..._0x237be8,'abortSignal':_0x5088fc,'renderingStrategy':_0x2abd47}),_0x237be8[_0x2d5b62(0x12b)]&&this[_0x2d5b62(0x148)](_0x237be8['id']);});}[_0x4776d2(0x11e)](_0x18abf0){const _0x32b321=_0x4776d2;this[_0x32b321(0xf6)][_0x32b321(0x13c)][_0x32b321(0x15c)](_0x18abf0);}[_0x4776d2(0x148)](_0x39d393){const _0x1fbf8b=_0x4776d2;this[_0x1fbf8b(0xf6)][_0x1fbf8b(0x13c)][_0x1fbf8b(0x15d)](_0x39d393);}[_0x4776d2(0x142)](_0x38c21b){const _0xeecc91=_0x4776d2;this[_0xeecc91(0xf6)][_0xeecc91(0x13c)][_0xeecc91(0x157)]()[_0xeecc91(0x125)](_0x4800fb=>_0x4800fb[_0xeecc91(0x104)](_0x38c21b))[_0xeecc91(0x122)](_0x2ebefa=>this[_0xeecc91(0xf6)][_0xeecc91(0x13c)][_0xeecc91(0xf3)](_0x2ebefa));}[_0x4776d2(0x13d)](_0x3e1312){const _0x29fad0=_0x4776d2;this[_0x29fad0(0xf6)][_0x29fad0(0x13c)][_0x29fad0(0x109)](this[_0x29fad0(0x153)](_0x3e1312)),this[_0x29fad0(0xf6)][_0x29fad0(0x11b)][_0x29fad0(0x102)](!this[_0x29fad0(0xe2)][_0x29fad0(0x105)][_0x29fad0(0x12f)](_0x29fad0(0x110))),this[_0x29fad0(0x156)]=!0x0,this[_0x29fad0(0xf6)][_0x29fad0(0x13c)][_0x29fad0(0x124)]();}[_0x4776d2(0xdd)](_0x92caeb){const _0x125503=_0x4776d2;this[_0x125503(0x143)][_0x125503(0x162)](),this[_0x125503(0xf6)][_0x125503(0x13c)][_0x125503(0x157)]()[_0x125503(0x125)](_0x250aff=>_0x250aff[_0x125503(0x104)](_0x92caeb['id']))[_0x125503(0x122)](_0x443474=>this[_0x125503(0x148)](_0x443474)),this[_0x125503(0x156)]=!0x1,this[_0x125503(0xf6)][_0x125503(0x13c)][_0x125503(0x10e)]();}async[_0x4776d2(0xe4)](){const _0x36d9e5=_0x4776d2;return this[_0x36d9e5(0x143)][_0x36d9e5(0x14c)][_0x36d9e5(0x123)](()=>{const _0x546875=_0x36d9e5;this[_0x546875(0x156)]=!0x1,this[_0x546875(0xf6)][_0x546875(0x13c)][_0x546875(0x10e)]();});}[_0x4776d2(0x10a)](_0x5d7040,_0x19c654){const _0x24842d=_0x4776d2;this[_0x24842d(0xf6)][_0x24842d(0x11b)][_0x24842d(0x10a)](_0x5d7040,_0x19c654);}[_0x4776d2(0xf8)](_0x398e13){const _0x23d3e9=_0x4776d2;this[_0x23d3e9(0xf6)][_0x23d3e9(0x11b)][_0x23d3e9(0xf8)](_0x398e13);}[_0x4776d2(0x13b)](_0x2aef57,_0x34a59a){const _0xb17de2=_0x4776d2;this[_0xb17de2(0xf6)][_0xb17de2(0x11b)][_0xb17de2(0x13b)](_0x2aef57,_0x34a59a);}[_0x4776d2(0x12e)](_0x537b9a){const _0x2d2687=_0x4776d2;this[_0x2d2687(0xf6)][_0x2d2687(0x11b)][_0x2d2687(0x12e)](_0x537b9a);}[_0x4776d2(0x130)](_0x3ba59f){const _0x4e2ea3=_0x4776d2;this[_0x4e2ea3(0xf6)][_0x4e2ea3(0x11b)][_0x4e2ea3(0x130)](_0x3ba59f);}[_0x4776d2(0xf2)](){const _0xf9982d=_0x4776d2;this[_0xf9982d(0xf6)][_0xf9982d(0x11b)][_0xf9982d(0xf2)]();}[_0x4776d2(0x118)](){const _0x29dcc6=_0x4776d2;this[_0x29dcc6(0xf6)][_0x29dcc6(0x11b)][_0x29dcc6(0x118)]();}[_0x4776d2(0x16b)](_0x3b0326,_0x1f230e,_0x4763ec){const _0x514d8f=_0x4776d2;this[_0x514d8f(0xf6)][_0x514d8f(0x11b)][_0x514d8f(0x16b)](_0x3b0326,_0x1f230e,_0x4763ec);}[_0x4776d2(0x115)](){const _0x4760aa=_0x4776d2;this[_0x4760aa(0xf6)][_0x4760aa(0x11b)][_0x4760aa(0x115)](),this[_0x4760aa(0xf6)][_0x4760aa(0x11b)][_0x4760aa(0xec)](this[_0x4760aa(0x12c)]());}[_0x4776d2(0xfa)](_0x474390){const _0x37361a=_0x4776d2;this[_0x37361a(0xf6)][_0x37361a(0x11b)][_0x37361a(0xfa)](_0x474390);}[_0x4776d2(0x12a)](_0x1ffebf){const _0x4401ef=_0x4776d2;this[_0x4401ef(0xf6)][_0x4401ef(0x11b)][_0x4401ef(0x139)](_0x1ffebf[_0x4401ef(0x126)]),this[_0x4401ef(0xf6)][_0x4401ef(0x11b)][_0x4401ef(0x150)](_0x1ffebf[_0x4401ef(0x15b)]),this[_0x4401ef(0xf6)][_0x4401ef(0x11b)][_0x4401ef(0xec)](this[_0x4401ef(0x12c)](_0x1ffebf));}[_0x4776d2(0x155)](_0x57f14d,_0x118b6e){const _0x203b1f=_0x4776d2;this[_0x203b1f(0xf6)][_0x203b1f(0x11b)][_0x203b1f(0x140)](_0x57f14d),_0x118b6e&&this[_0x203b1f(0xf6)][_0x203b1f(0x11b)][_0x203b1f(0x102)](!0x1);}[_0x4776d2(0xee)](_0x56892e){const _0x49b863=_0x4776d2;this[_0x49b863(0x159)]=_0x56892e;}[_0x4776d2(0x108)](_0x420fb6){const _0x3eeede=_0x4776d2;this[_0x3eeede(0xf6)][_0x3eeede(0x13c)][_0x3eeede(0x108)](_0x420fb6);}[_0x4776d2(0x149)](){const _0x3dba5d=_0x4776d2;this[_0x3dba5d(0x16f)](_0x2bacd0(this[_0x3dba5d(0xe2)][_0x3dba5d(0x10d)],_0x3dba5d(0x13e)));}[_0x4776d2(0x16f)](_0x237685,_0x4490a7=!0x1){const _0xfe7970=_0x4776d2;if(_0x4490a7&&!_0xe100d9()&&_0x237685[_0xfe7970(0x116)])return this[_0xfe7970(0xf6)][_0xfe7970(0xeb)][_0xfe7970(0xf0)]='',void this[_0xfe7970(0xea)](_0x237685);this[_0xfe7970(0xf6)][_0xfe7970(0xeb)][_0xfe7970(0xf0)]=_0x237685;}[_0x4776d2(0xea)](_0x379988){const _0x1f5fa4=_0x4776d2;let _0x170517=0x0;clearInterval(this[_0x1f5fa4(0xdf)]),this[_0x1f5fa4(0xdf)]=setInterval(()=>{const _0x189c67=_0x1f5fa4;this[_0x189c67(0xf6)][_0x189c67(0xeb)][_0x189c67(0xf0)]=this[_0x189c67(0xf6)][_0x189c67(0xeb)][_0x189c67(0xf0)]+_0x379988[_0x170517],_0x170517++,_0x170517===_0x379988[_0x189c67(0x116)]&&clearInterval(this[_0x189c67(0xdf)]);},0x1e);}[_0x4776d2(0xe1)](_0x357ff1){const _0x195c49=_0x4776d2;this[_0x195c49(0xf6)][_0x195c49(0xeb)][_0x195c49(0xfd)]=_0x357ff1;}[_0x4776d2(0x153)](_0x571c54){const _0x50866d=_0x4776d2,_0xb683af=_0x571c54[_0x50866d(0x112)];return _0xb683af[_0x50866d(0x126)]&&_0xb683af[_0x50866d(0x15b)]?_0x2bacd0(this[_0x50866d(0xe2)][_0x50866d(0x10d)],_0x50866d(0xfc)):_0xb683af[_0x50866d(0x126)]?_0x2bacd0(this[_0x50866d(0xe2)][_0x50866d(0x10d)],_0x50866d(0x16d)):_0xb683af[_0x50866d(0x15b)]?_0x2bacd0(this[_0x50866d(0xe2)][_0x50866d(0x10d)],_0x50866d(0x14e)):_0x2bacd0(this[_0x50866d(0xe2)][_0x50866d(0x10d)],_0x50866d(0x145));}[_0x4776d2(0x12c)](_0x1f8781){const _0x58f46d=_0x4776d2;return _0x1f8781?_0x1f8781[_0x58f46d(0x126)]&&_0x1f8781[_0x58f46d(0x15b)]?_0x2bacd0(this[_0x58f46d(0xe2)][_0x58f46d(0x10d)],_0x58f46d(0x111)):_0x1f8781[_0x58f46d(0x126)]?_0x2bacd0(this[_0x58f46d(0xe2)][_0x58f46d(0x10d)],_0x58f46d(0x167)):_0x1f8781[_0x58f46d(0x15b)]?_0x2bacd0(this[_0x58f46d(0xe2)][_0x58f46d(0x10d)],_0x58f46d(0xe9)):_0x2bacd0(this[_0x58f46d(0xe2)][_0x58f46d(0x10d)],_0x58f46d(0x170)):_0x2bacd0(this[_0x58f46d(0xe2)][_0x58f46d(0x10d)],_0x58f46d(0x170));}[_0x4776d2(0x128)](_0x277a07,_0x2ed62e,_0x3e70db,_0x3e787c){const _0x3d50d3=_0x4776d2;this[_0x3d50d3(0xf6)][_0x3d50d3(0x128)](_0x277a07,_0x2ed62e,_0x3e70db,_0x3e787c);}[_0x4776d2(0x16c)](_0x5d7b1c){const _0x34c0e7=_0x4776d2;this[_0x34c0e7(0xf6)][_0x34c0e7(0x16c)](_0x5d7b1c);}[_0x4776d2(0x11f)](){const _0xdf7894=_0x4776d2;this[_0xdf7894(0xf6)][_0xdf7894(0x11b)][_0xdf7894(0x11f)]();}[_0x4776d2(0x106)](_0x307bb6,_0xfb0c49){const _0x175e50=_0x4776d2;this[_0x175e50(0xf6)][_0x175e50(0x13c)][_0x175e50(0xff)](_0x307bb6,_0xfb0c49);}}
|
|
23
|
+
const _0x354f3d=_0x4483;(function(_0x25caec,_0xa55528){const _0x2e4a94=_0x4483,_0x539953=_0x25caec();while(!![]){try{const _0x3ce390=parseInt(_0x2e4a94(0x26b))/0x1*(parseInt(_0x2e4a94(0x204))/0x2)+parseInt(_0x2e4a94(0x273))/0x3+-parseInt(_0x2e4a94(0x239))/0x4+-parseInt(_0x2e4a94(0x24f))/0x5*(parseInt(_0x2e4a94(0x22e))/0x6)+-parseInt(_0x2e4a94(0x20e))/0x7*(parseInt(_0x2e4a94(0x1e9))/0x8)+-parseInt(_0x2e4a94(0x247))/0x9*(-parseInt(_0x2e4a94(0x245))/0xa)+parseInt(_0x2e4a94(0x215))/0xb*(parseInt(_0x2e4a94(0x1f3))/0xc);if(_0x3ce390===_0xa55528)break;else _0x539953['push'](_0x539953['shift']());}catch(_0x568b5e){_0x539953['push'](_0x539953['shift']());}}}(_0x5247,0x29c91));import{ContextPlugin as _0x498048}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x11dfcf}from'ckeditor5/src/utils.js';import{AIChatView as _0x1be429}from'./ui/aichatview.js';import{AITabs as _0x199c2b}from'../aitabs/aitabs.js';import{getTranslation as _0x4925cf}from'../aicore/utils/common-translations.js';function _0x5247(){const _0x224b67=['isMaximized','renderingStrategy','config','isVisible','finishInteraction','streaming','label','chatControls','closeSourceResourceBalloon','removeFeedInteraction','options','user-message','addFeedItemError','createConversation','feedItemRenderingStrategy','resetMessageInput','setWebSearch','stopAutoScroll','ai-suggestion-reply','addItem','interaction-header','startAutoScroll','isPremiumPlugin','requires','isReasoningEnabled','1xDbdTA','addFeedItemAIReply','disableModelSelector','setIsUploadInProgress','toggleSuggestionDisplayMode','length','context','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','559479VgYyqC','startInteraction','userMessage','setLoadingMessage','conversation-start','setConversationTitle','filter','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','addTab','_getInputPlaceholder','stopInteraction','enableModelSelector','from','isBusy','scrollFeedToSuggestion','8LhlcLl','ai-reply','populateSourceResourceBalloon','chatFeed','<p>','isLoading','quickActionData','chat','pluginName','capabilities','2152824tiDdoi','_animateConversationTitle','queueEmptyPromise','addContextItem','updateCapabilities','toggleLoadingSkeleton','</p>','view','setConversationContext','_getLoadingMessage','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','AIChatUI','removeContextItem','setIsMaximized','setModelList','plugins','destroy','85998SQKTtK','addFeedItemUserMessage','updateFeedItemAIReplySources','getItemIds','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','ai.chat.models.modelSelectorAlwaysVisible','setModel','updateFeedItemAIReplySuggestionPartState','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','updateFeedItemAIReplySuggestionContent','983206bBtOfk','then','isOfficialPlugin','setContextItemLoading','addFeedItemAISuggestion','bind','isDone','22bGdDkx','_promiseQueue','setInputPlaceholder','setReasoning','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','get','abort','values','setSelectedModel','children','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','error-message','updateFeedItemAIReplyContent','updateResourceState','find','focusPromptInput','addFeedInteractionHeader','displayedPrompt','interactionId','areActionsDisabled','forEach','updateSuggestionPartState','AI_CHAT_HEADING','availableModels','locale','9474KcLVRZ','clearPendingContextUI','markItemAsDone','startsWith','chatHeader','set','addFeedItemStaticMessage','_titleAnimationInterval','AI_CHAT_WELCOME_MESSAGE','_view','resetConversationTitle','1201064olKXfJ','isWebSearchEnabled','removeItem','contextItems','clearConversationContextUI','scrollToSuggestion','showDiff','updateFeedInteractionHeader','delegate','setAddContextOptions','showResizeButton','AITabs','694240SobxMZ','updateWebSources','18haTpDA','setFeedItemRenderingStrategy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','isPending','enqueue','markFeedItemAsDone','updateSuggestionItem','_interactionPromiseResolver','365LFrrQu','updateReplyItem','clear'];_0x5247=function(){return _0x224b67;};return _0x5247();}function _0x4483(_0x57081e,_0x56f531){const _0x524700=_0x5247();return _0x4483=function(_0x44839d,_0x18ac51){_0x44839d=_0x44839d-0x1de;let _0xa3a38c=_0x524700[_0x44839d];return _0xa3a38c;},_0x4483(_0x57081e,_0x56f531);}import{IconAIChat as _0x1c298f}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x20a86c}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x56052f}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x45c9e4}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';export class AIChatUI extends _0x498048{static get[_0x354f3d(0x269)](){return[_0x199c2b];}[_0x354f3d(0x237)];static get[_0x354f3d(0x1f1)](){const _0x44dffb=_0x354f3d;return _0x44dffb(0x1fe);}static get[_0x354f3d(0x210)](){return!0x0;}static get[_0x354f3d(0x268)](){return!0x0;}[_0x354f3d(0x260)]=_0x354f3d(0x257);[_0x354f3d(0x23f)]=!0x0;[_0x354f3d(0x216)];[_0x354f3d(0x24e)];[_0x354f3d(0x235)]=void 0x0;constructor(_0x1c2508){const _0x210de3=_0x354f3d;super(_0x1c2508);const _0x97cf1f=this[_0x210de3(0x271)][_0x210de3(0x202)][_0x210de3(0x21a)](_0x210de3(0x244));this[_0x210de3(0x233)](_0x210de3(0x1e7),!0x1),this[_0x210de3(0x216)]=new _0x56052f(),this[_0x210de3(0x237)]=new _0x1be429(this[_0x210de3(0x271)][_0x210de3(0x22d)],_0x97cf1f[_0x210de3(0x243)]),this[_0x210de3(0x237)][_0x210de3(0x241)](..._0x45c9e4)['to'](this),this[_0x210de3(0x237)]['on'](_0x210de3(0x26f),(_0x1798da,{showDiff:_0x3e4cf4})=>{const _0x549806=_0x210de3;this[_0x549806(0x23f)]=_0x3e4cf4;}),_0x97cf1f[_0x210de3(0x1fa)][_0x210de3(0x1e2)]({'id':_0x210de3(0x1f0),'buttonLabel':_0x4925cf(this[_0x210de3(0x271)][_0x210de3(0x22d)],_0x210de3(0x22b)),'buttonIcon':_0x1c298f,'order':0x0,'content':this[_0x210de3(0x237)]}),this[_0x210de3(0x237)][_0x210de3(0x259)][_0x210de3(0x213)](_0x210de3(0x1ee))['to'](this,_0x210de3(0x1e7),_0x293ab5=>_0x293ab5),this[_0x210de3(0x237)][_0x210de3(0x1ec)][_0x210de3(0x213)](_0x210de3(0x24a))['to'](this,_0x210de3(0x1e7),_0x2dc8c4=>_0x2dc8c4),this[_0x210de3(0x237)][_0x210de3(0x259)][_0x210de3(0x217)](this[_0x210de3(0x1e3)]());}[_0x354f3d(0x203)](){const _0x80a5e8=_0x354f3d;super[_0x80a5e8(0x203)](),this[_0x80a5e8(0x235)]&&clearInterval(this[_0x80a5e8(0x235)]);}[_0x354f3d(0x25f)](_0x508a3d){const _0x149da1=_0x354f3d;this[_0x149da1(0x237)][_0x149da1(0x1ec)][_0x149da1(0x251)](),this[_0x149da1(0x237)][_0x149da1(0x259)][_0x149da1(0x1e5)](),this[_0x149da1(0x237)][_0x149da1(0x259)][_0x149da1(0x201)](_0x508a3d[_0x149da1(0x22c)],!this[_0x149da1(0x271)][_0x149da1(0x254)][_0x149da1(0x21a)](_0x149da1(0x209))),this[_0x149da1(0x234)]({'id':_0x149da1(0x1de),'staticMessage':_0x4925cf(this[_0x149da1(0x271)][_0x149da1(0x22d)],_0x149da1(0x236))});}[_0x354f3d(0x234)]({id:_0x5c1604,staticMessage:_0x58bd27}){const _0x5cfea7=_0x354f3d;this[_0x5cfea7(0x237)][_0x5cfea7(0x1ec)][_0x5cfea7(0x265)](_0x5cfea7(0x1ea),{'id':_0x5c1604,'initialContent':_0x5cfea7(0x1ed)+_0x58bd27+_0x5cfea7(0x1f9)});}[_0x354f3d(0x205)](_0x300a8a){const _0x4da638=_0x354f3d,_0xeae27b=_0x300a8a[_0x4da638(0x1ef)]?.[_0x4da638(0x226)]||_0x300a8a[_0x4da638(0x275)];this[_0x4da638(0x237)][_0x4da638(0x1ec)][_0x4da638(0x265)](_0x4da638(0x25d),{'contextItems':Array[_0x4da638(0x1e6)](_0x300a8a[_0x4da638(0x23c)][_0x4da638(0x21c)]()),'initialContent':_0x4da638(0x1ed)+_0xeae27b+_0x4da638(0x1f9),'id':_0x300a8a['id']});}[_0x354f3d(0x25e)]({errorMessage:_0x5e90a3,id:_0x18ad70}){const _0x248067=_0x354f3d;this[_0x248067(0x237)][_0x248067(0x1ec)][_0x248067(0x265)](_0x248067(0x220),{'initialContent':_0x248067(0x1ed)+_0x5e90a3+_0x248067(0x1f9),'id':_0x18ad70});}[_0x354f3d(0x26c)](_0x2e7ecb){const _0x29a094=_0x354f3d;return this[_0x29a094(0x216)][_0x29a094(0x24b)](async()=>{const _0x5d141e=_0x29a094;this[_0x5d141e(0x237)][_0x5d141e(0x1ec)][_0x5d141e(0x265)](_0x5d141e(0x1ea),{'id':_0x2e7ecb[_0x5d141e(0x227)]+':'+_0x2e7ecb['id']}),this[_0x5d141e(0x237)][_0x5d141e(0x1ec)][_0x5d141e(0x276)]('');});}async[_0x354f3d(0x212)](_0xe25f5b){const _0x5f00a4=_0x354f3d;return this[_0x5f00a4(0x216)][_0x5f00a4(0x24b)](async()=>{const _0x22d30e=_0x5f00a4;this[_0x22d30e(0x237)][_0x22d30e(0x1ec)][_0x22d30e(0x265)](_0x22d30e(0x264),{'id':_0xe25f5b[_0x22d30e(0x227)]+':'+_0xe25f5b['id'],'areActionsDisabled':_0xe25f5b[_0x22d30e(0x228)],'showDiff':this[_0x22d30e(0x23f)]}),this[_0x22d30e(0x237)][_0x22d30e(0x1ec)][_0x22d30e(0x276)]('');});}[_0x354f3d(0x225)](_0x4f66a5){const _0x492f07=_0x354f3d;this[_0x492f07(0x237)][_0x492f07(0x1ec)][_0x492f07(0x265)](_0x492f07(0x266),{'id':_0x4f66a5['id'],'capabilities':_0x4f66a5[_0x492f07(0x1f2)]});}[_0x354f3d(0x240)](_0x23b430){const _0x49f31c=_0x354f3d,_0x2e3734=this[_0x49f31c(0x237)][_0x49f31c(0x1ec)][_0x49f31c(0x21e)][_0x49f31c(0x223)](_0x2f6f92=>_0x2f6f92[_0x49f31c(0x25c)]['id']==_0x23b430['id']&&_0x2f6f92 instanceof _0x20a86c);_0x2e3734&&_0x2e3734[_0x49f31c(0x233)](_0x49f31c(0x255),_0x23b430[_0x49f31c(0x255)]);}async[_0x354f3d(0x221)](_0x118d22){const _0x372f90=_0x354f3d,_0x5840b1=_0x118d22[_0x372f90(0x253)]||this[_0x372f90(0x260)];return this[_0x372f90(0x216)][_0x372f90(0x24b)](async _0x38f9e8=>{const _0x203dd3=_0x372f90;await this[_0x203dd3(0x237)][_0x203dd3(0x1ec)][_0x203dd3(0x250)]({..._0x118d22,'abortSignal':_0x38f9e8,'renderingStrategy':_0x5840b1}),_0x118d22[_0x203dd3(0x214)]&&this[_0x203dd3(0x24c)](_0x118d22['id']);});}[_0x354f3d(0x206)](_0x5323f3,_0x3ddf53){const _0x2e6035=_0x354f3d;this[_0x2e6035(0x237)][_0x2e6035(0x1ec)][_0x2e6035(0x246)](_0x5323f3,_0x3ddf53);}async[_0x354f3d(0x20d)](_0x1ac652){const _0x2bfac0=_0x354f3d,_0x11f126=_0x1ac652[_0x2bfac0(0x253)]||this[_0x2bfac0(0x260)];return this[_0x2bfac0(0x216)][_0x2bfac0(0x24b)](async _0x5f1664=>{const _0x5195be=_0x2bfac0;await this[_0x5195be(0x237)][_0x5195be(0x1ec)][_0x5195be(0x24d)]({..._0x1ac652,'abortSignal':_0x5f1664,'renderingStrategy':_0x11f126}),_0x1ac652[_0x5195be(0x214)]&&this[_0x5195be(0x24c)](_0x1ac652['id']);});}[_0x354f3d(0x20b)](_0x3712cf){const _0x1dca52=_0x354f3d;this[_0x1dca52(0x237)][_0x1dca52(0x1ec)][_0x1dca52(0x22a)](_0x3712cf);}[_0x354f3d(0x24c)](_0x454d92){const _0x55abff=_0x354f3d;this[_0x55abff(0x237)][_0x55abff(0x1ec)][_0x55abff(0x230)](_0x454d92);}[_0x354f3d(0x25b)](_0x750a37){const _0xb630d9=_0x354f3d;this[_0xb630d9(0x237)][_0xb630d9(0x1ec)][_0xb630d9(0x207)]()[_0xb630d9(0x1e0)](_0x3f9d8d=>_0x3f9d8d[_0xb630d9(0x231)](_0x750a37))[_0xb630d9(0x229)](_0xdeeb71=>this[_0xb630d9(0x237)][_0xb630d9(0x1ec)][_0xb630d9(0x23b)](_0xdeeb71));}[_0x354f3d(0x274)](_0x3a3c5e){const _0x5ecdd5=_0x354f3d;this[_0x5ecdd5(0x237)][_0x5ecdd5(0x1ec)][_0x5ecdd5(0x276)](this[_0x5ecdd5(0x1fc)](_0x3a3c5e)),this[_0x5ecdd5(0x237)][_0x5ecdd5(0x259)][_0x5ecdd5(0x26d)](!this[_0x5ecdd5(0x271)][_0x5ecdd5(0x254)][_0x5ecdd5(0x21a)](_0x5ecdd5(0x209))),this[_0x5ecdd5(0x1e7)]=!0x0,this[_0x5ecdd5(0x237)][_0x5ecdd5(0x1ec)][_0x5ecdd5(0x267)]();}[_0x354f3d(0x1e4)](_0x506bf7){const _0x2d232a=_0x354f3d;this[_0x2d232a(0x216)][_0x2d232a(0x21b)](),this[_0x2d232a(0x237)][_0x2d232a(0x1ec)][_0x2d232a(0x207)]()[_0x2d232a(0x1e0)](_0x1e7ac5=>_0x1e7ac5[_0x2d232a(0x231)](_0x506bf7['id']))[_0x2d232a(0x229)](_0x4ca413=>this[_0x2d232a(0x24c)](_0x4ca413)),this[_0x2d232a(0x1e7)]=!0x1,this[_0x2d232a(0x237)][_0x2d232a(0x1ec)][_0x2d232a(0x263)]();}async[_0x354f3d(0x256)](){const _0x3b99f5=_0x354f3d;return this[_0x3b99f5(0x216)][_0x3b99f5(0x1f5)][_0x3b99f5(0x20f)](()=>{const _0xe4f30e=_0x3b99f5;this[_0xe4f30e(0x1e7)]=!0x1,this[_0xe4f30e(0x237)][_0xe4f30e(0x1ec)][_0xe4f30e(0x263)]();});}[_0x354f3d(0x1f6)](_0x4bc433,_0x368154){const _0x5ab768=_0x354f3d;this[_0x5ab768(0x237)][_0x5ab768(0x259)][_0x5ab768(0x1f6)](_0x4bc433,_0x368154);}[_0x354f3d(0x1ff)](_0x15f668){const _0x23b4ae=_0x354f3d;this[_0x23b4ae(0x237)][_0x23b4ae(0x259)][_0x23b4ae(0x1ff)](_0x15f668);}[_0x354f3d(0x211)](_0x3bad63,_0x20c648){const _0x29e2b7=_0x354f3d;this[_0x29e2b7(0x237)][_0x29e2b7(0x259)][_0x29e2b7(0x211)](_0x3bad63,_0x20c648);}[_0x354f3d(0x26e)](_0x47e42a){const _0x3389a2=_0x354f3d;this[_0x3389a2(0x237)][_0x3389a2(0x259)][_0x3389a2(0x26e)](_0x47e42a);}[_0x354f3d(0x1fb)](_0x59cd22){const _0x573bfd=_0x354f3d;this[_0x573bfd(0x237)][_0x573bfd(0x259)][_0x573bfd(0x1fb)](_0x59cd22);}[_0x354f3d(0x22f)](){const _0x5eb9c9=_0x354f3d;this[_0x5eb9c9(0x237)][_0x5eb9c9(0x259)][_0x5eb9c9(0x22f)]();}[_0x354f3d(0x23d)](){const _0x1d0845=_0x354f3d;this[_0x1d0845(0x237)][_0x1d0845(0x259)][_0x1d0845(0x23d)]();}[_0x354f3d(0x222)](_0x118453,_0x5c73cc,_0x5ee7a2){const _0x559249=_0x354f3d;this[_0x559249(0x237)][_0x559249(0x259)][_0x559249(0x222)](_0x118453,_0x5c73cc,_0x5ee7a2);}[_0x354f3d(0x261)](){const _0xd2e4b3=_0x354f3d;this[_0xd2e4b3(0x237)][_0xd2e4b3(0x259)][_0xd2e4b3(0x261)](),this[_0xd2e4b3(0x237)][_0xd2e4b3(0x259)][_0xd2e4b3(0x217)](this[_0xd2e4b3(0x1e3)]());}[_0x354f3d(0x242)](_0x4a6cab){const _0x2d0d52=_0x354f3d;this[_0x2d0d52(0x237)][_0x2d0d52(0x259)][_0x2d0d52(0x242)](_0x4a6cab);}[_0x354f3d(0x1f7)](_0x48c538){const _0x3f66d8=_0x354f3d;this[_0x3f66d8(0x237)][_0x3f66d8(0x259)][_0x3f66d8(0x262)](_0x48c538[_0x3f66d8(0x23a)]),this[_0x3f66d8(0x237)][_0x3f66d8(0x259)][_0x3f66d8(0x218)](_0x48c538[_0x3f66d8(0x26a)]),this[_0x3f66d8(0x237)][_0x3f66d8(0x259)][_0x3f66d8(0x217)](this[_0x3f66d8(0x1e3)](_0x48c538));}[_0x354f3d(0x21d)](_0x3e3bd6,_0x3ed7c6){const _0x270a85=_0x354f3d;this[_0x270a85(0x237)][_0x270a85(0x259)][_0x270a85(0x20a)](_0x3e3bd6),_0x3ed7c6&&this[_0x270a85(0x237)][_0x270a85(0x259)][_0x270a85(0x26d)](!0x1);}[_0x354f3d(0x248)](_0x32e1ad){const _0x33af2c=_0x354f3d;this[_0x33af2c(0x260)]=_0x32e1ad;}[_0x354f3d(0x1f8)](_0x312a0a){const _0x4fa186=_0x354f3d;this[_0x4fa186(0x237)][_0x4fa186(0x1ec)][_0x4fa186(0x1f8)](_0x312a0a);}[_0x354f3d(0x238)](){const _0x1af8fb=_0x354f3d;this[_0x1af8fb(0x1df)](_0x4925cf(this[_0x1af8fb(0x271)][_0x1af8fb(0x22d)],_0x1af8fb(0x22b)));}[_0x354f3d(0x1df)](_0x4bd44a,_0x2f6caa=!0x1){const _0x7108f=_0x354f3d;if(_0x2f6caa&&!_0x11dfcf()&&_0x4bd44a[_0x7108f(0x270)])return this[_0x7108f(0x237)][_0x7108f(0x232)][_0x7108f(0x258)]='',void this[_0x7108f(0x1f4)](_0x4bd44a);this[_0x7108f(0x237)][_0x7108f(0x232)][_0x7108f(0x258)]=_0x4bd44a;}[_0x354f3d(0x1f4)](_0xc5df92){const _0x4331a1=_0x354f3d;let _0x33c7f3=0x0;clearInterval(this[_0x4331a1(0x235)]),this[_0x4331a1(0x235)]=setInterval(()=>{const _0x1fc572=_0x4331a1;this[_0x1fc572(0x237)][_0x1fc572(0x232)][_0x1fc572(0x258)]=this[_0x1fc572(0x237)][_0x1fc572(0x232)][_0x1fc572(0x258)]+_0xc5df92[_0x33c7f3],_0x33c7f3++,_0x33c7f3===_0xc5df92[_0x1fc572(0x270)]&&clearInterval(this[_0x1fc572(0x235)]);},0x1e);}[_0x354f3d(0x200)](_0x15d3ba){const _0x55c522=_0x354f3d;this[_0x55c522(0x237)][_0x55c522(0x232)][_0x55c522(0x252)]=_0x15d3ba;}[_0x354f3d(0x1fc)](_0x40f79f){const _0x1866cf=_0x354f3d,_0x4e602a=_0x40f79f[_0x1866cf(0x1f2)];return _0x4e602a[_0x1866cf(0x23a)]&&_0x4e602a[_0x1866cf(0x26a)]?_0x4925cf(this[_0x1866cf(0x271)][_0x1866cf(0x22d)],_0x1866cf(0x21f)):_0x4e602a[_0x1866cf(0x23a)]?_0x4925cf(this[_0x1866cf(0x271)][_0x1866cf(0x22d)],_0x1866cf(0x208)):_0x4e602a[_0x1866cf(0x26a)]?_0x4925cf(this[_0x1866cf(0x271)][_0x1866cf(0x22d)],_0x1866cf(0x20c)):_0x4925cf(this[_0x1866cf(0x271)][_0x1866cf(0x22d)],_0x1866cf(0x272));}[_0x354f3d(0x1e3)](_0x55f853){const _0xb5729e=_0x354f3d;return _0x55f853?_0x55f853[_0xb5729e(0x23a)]&&_0x55f853[_0xb5729e(0x26a)]?_0x4925cf(this[_0xb5729e(0x271)][_0xb5729e(0x22d)],_0xb5729e(0x1fd)):_0x55f853[_0xb5729e(0x23a)]?_0x4925cf(this[_0xb5729e(0x271)][_0xb5729e(0x22d)],_0xb5729e(0x1e1)):_0x55f853[_0xb5729e(0x26a)]?_0x4925cf(this[_0xb5729e(0x271)][_0xb5729e(0x22d)],_0xb5729e(0x249)):_0x4925cf(this[_0xb5729e(0x271)][_0xb5729e(0x22d)],_0xb5729e(0x219)):_0x4925cf(this[_0xb5729e(0x271)][_0xb5729e(0x22d)],_0xb5729e(0x219));}[_0x354f3d(0x1eb)](_0x501348,_0x2ca806,_0x4cd584,_0x2cd805){const _0x22eb70=_0x354f3d;this[_0x22eb70(0x237)][_0x22eb70(0x1eb)](_0x501348,_0x2ca806,_0x4cd584,_0x2cd805);}[_0x354f3d(0x25a)](_0xb0cc13){const _0x4e356a=_0x354f3d;this[_0x4e356a(0x237)][_0x4e356a(0x25a)](_0xb0cc13);}[_0x354f3d(0x224)](){const _0x56468b=_0x354f3d;this[_0x56468b(0x237)][_0x56468b(0x259)][_0x56468b(0x224)]();}[_0x354f3d(0x1e8)](_0xa8967d,_0x4b5ccf){const _0x370f14=_0x354f3d;this[_0x370f14(0x237)][_0x370f14(0x1ec)][_0x370f14(0x23e)](_0xa8967d,_0x4b5ccf);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4aa975=_0x5e1c;(function(_0x2772cb,_0x25b05a){const _0x1aec15=_0x5e1c,_0x22f496=_0x2772cb();while(!![]){try{const _0x27b6cb=parseInt(_0x1aec15(0x1c6))/0x1*(parseInt(_0x1aec15(0x232))/0x2)+parseInt(_0x1aec15(0x209))/0x3*(-parseInt(_0x1aec15(0x1bc))/0x4)+-parseInt(_0x1aec15(0x22e))/0x5+parseInt(_0x1aec15(0x225))/0x6+parseInt(_0x1aec15(0x203))/0x7+-parseInt(_0x1aec15(0x1e8))/0x8+parseInt(_0x1aec15(0x241))/0x9;if(_0x27b6cb===_0x25b05a)break;else _0x22f496['push'](_0x22f496['shift']());}catch(_0x5d8269){_0x22f496['push'](_0x22f496['shift']());}}}(_0x1f61,0xc4bb5));import{CKEditorError as _0x4233bd,ObservableMixin as _0x1eb501,uid as _0x264fe8}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x4b6fd9,AIContextTextResourceType as _0x25c72c}from'../../aicore/model/aicontext.js';function _0x1f61(){const _0x515459=['_finishUploadOperation','contextSent','push','_mapContextItemToRequestData','fetchDocument','sources','startsWith','URL','filter','_ongoingUploads','18982908hJVMzS','getPendingContextItems','addToConversationContext','uiId','_createContextItemFromContent','ai-chat-document-upload-failed','_connector','find','356FLcUtq','addContextOptionsChanged','url-','ai-chat-resource-load-failed','getResources','ai-chat-resource-no-data','fire','_updateResourceInContextState','updateCurrentDocument','files-','334TkMcGk','ai-chat-context-unsupported-type','has','_config','_addToConversationContextItem','from','_addContextItem','attributes','sourceResourcesLoaded','uploadFile','hidden','text/markdown','uploadUrl','_ongoingUploadOperations','addUrlToContext','object','size','urls','addResourceToContext','document','enabled','loadSourceResources','label','object\x20with\x20content\x20and\x20type\x20properties','Current\x20document','isCurrentDocumentInContext','getId','message','error','_getCustomSourcesInitialState','ai-chat-source-resources-load-failed','_convertTextResourceToFile','length','addSelectionToContext','5571800NtGOZq','text/plain','contextItemAdded','isInContext','_conversationContextItems','removeFromContext','text/html','files','_isResourceInContext','delete','mapContextItemsToRequestData','abortController','start','init','isHidden','_finishContextItemLoading','map','SELECTION','abort','stack','FILE','isSelectionInContext','data','_toggleAddCurrentDocumentOptionVisibility','type','selection','getSentContextItems','10482192PTAAyZ','contextItemRemoved','_pendingContextItems','File','getDocument','file-','51702ewTBcV','end','contextItemLoadingEnded','HTML','_removeContextItem','DOCUMENT','_findSourceIdsByResourceId','resources','TEXT','forEach','isCurrentDocumentInConversation','removeSelectionFromContext','ai-chat-url-upload-failed','getData','content','name','resourceId','populateFromMessage','ai-request-aborted','version','ai-chat-file-upload-failed','ai-chat-context-invalid-data','_addContextOptionsState','addFilesToContext','_ownerId','get','clearPendingContextItems','uploadDocument','2179380NggdRJ','uploadProgressChanged','ai-chat-source-not-found','_setAddContextOptionsDefaultState','set','addCurrentDocumentToContext','all','values','MARKDOWN','7200640yycfNy','_startUploadOperation','current-document','sessionId','3032sANylb','resourceStateChanged','string','url','isReadOnly'];_0x1f61=function(){return _0x515459;};return _0x1f61();}import{escape as _0x4b4871}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x4aa975(0x1ea),_0x4aa975(0x204),_0x4aa975(0x20b),_0x4aa975(0x238),_0x4aa975(0x1e2),_0x4aa975(0x1bd),_0x4aa975(0x1ce),_0x4aa975(0x233),_0x4aa975(0x226)];function _0x5e1c(_0x5b60fd,_0x59b263){const _0x1f610c=_0x1f61();return _0x5e1c=function(_0x5e1c3b,_0x4e9e61){_0x5e1c3b=_0x5e1c3b-0x1b5;let _0x1a1687=_0x1f610c[_0x5e1c3b];return _0x1a1687;},_0x5e1c(_0x5b60fd,_0x59b263);}export class AIChatContext extends _0x1eb501(){[_0x4aa975(0x1ba)];[_0x4aa975(0x1c9)];[_0x4aa975(0x221)];constructor({connector:_0xcbad3b,config:_0x17ffdf,ownerId:_0x44d46f}){const _0x1676a1=_0x4aa975;super(),this[_0x1676a1(0x1ba)]=_0xcbad3b,this[_0x1676a1(0x1c9)]=_0x17ffdf,this[_0x1676a1(0x221)]=_0x44d46f;}[_0x4aa975(0x1f5)](){const _0x184c4b=_0x4aa975;this[_0x184c4b(0x205)]=new Map(),this[_0x184c4b(0x1ec)]=new Map(),this[_0x184c4b(0x240)]=new Map(),this[_0x184c4b(0x1d3)]=new Map(),this[_0x184c4b(0x228)]();}[_0x4aa975(0x1b5)](){const _0x4e87e6=_0x4aa975;return this[_0x4e87e6(0x205)];}async[_0x4aa975(0x21a)](_0x61c33e){const _0xd8e2f2=_0x4aa975,_0x438f74=await this[_0xd8e2f2(0x1b8)](_0x61c33e);return this[_0xd8e2f2(0x1ca)](_0x438f74),_0xd8e2f2(0x230)===_0x438f74[_0xd8e2f2(0x1b7)]&&this[_0xd8e2f2(0x1ff)](),_0x438f74;}async[_0x4aa975(0x1b8)](_0x9dec6d){const _0x43cb2f=_0x4aa975;if(_0x9dec6d[_0x43cb2f(0x200)]===_0x4b6fd9[_0x43cb2f(0x20e)]){const _0x1e8d11=await this[_0x43cb2f(0x1ba)][_0x43cb2f(0x23b)](this[_0x43cb2f(0x221)],_0x9dec6d['id'])[_0x43cb2f(0x207)]();return{'id':_0x43cb2f(0x230),'uiId':_0x43cb2f(0x230),'label':_0x43cb2f(0x1de),'type':_0x9dec6d[_0x43cb2f(0x200)],'content':_0x1e8d11[_0x43cb2f(0x217)],'hidden':this[_0x43cb2f(0x1ec)][_0x43cb2f(0x1c8)](_0x43cb2f(0x230)),'version':_0x1e8d11[_0x43cb2f(0x1cd)]?.[_0x43cb2f(0x21c)],'sessionId':_0x1e8d11[_0x43cb2f(0x1cd)]?.[_0x43cb2f(0x231)]};}return{'id':_0x9dec6d['id'],'uiId':_0x9dec6d['id'],'label':_0x9dec6d[_0x43cb2f(0x1cd)]?.[_0x43cb2f(0x1dc)]||_0x9dec6d[_0x43cb2f(0x218)]||_0x9dec6d[_0x43cb2f(0x235)]||_0x9dec6d['id'],'type':_0x9dec6d[_0x43cb2f(0x200)],..._0x9dec6d?.[_0x43cb2f(0x1cd)]?.[_0x43cb2f(0x219)]?{'resourceId':_0x9dec6d[_0x43cb2f(0x1cd)]?.[_0x43cb2f(0x219)]}:{}};}[_0x4aa975(0x202)](){const _0x101481=_0x4aa975;return new Map(this[_0x101481(0x1ec)]);}[_0x4aa975(0x1ed)](_0x3c0755){const _0x2df8f8=_0x4aa975,_0x45681f=this[_0x2df8f8(0x205)][_0x2df8f8(0x222)](_0x3c0755);_0x45681f?.[_0x2df8f8(0x236)]||this[_0x2df8f8(0x20d)](_0x3c0755);}[_0x4aa975(0x223)](){const _0x143425=_0x4aa975;if(0x0===this[_0x143425(0x205)][_0x143425(0x1d6)])return;for(const _0x191a19 of this[_0x143425(0x205)][_0x143425(0x22c)]())this[_0x143425(0x20d)](_0x191a19[_0x143425(0x1b7)]);const _0x426eb2=this[_0x143425(0x1ec)][_0x143425(0x222)](_0x143425(0x230))||this[_0x143425(0x205)][_0x143425(0x222)](_0x143425(0x230));_0x426eb2&&this[_0x143425(0x1cc)]({..._0x426eb2,'isReadOnly':!0x0,'hidden':!0x0});}[_0x4aa975(0x1b6)](_0x455f6f){const _0x419866=_0x4aa975;for(const _0x5bb458 of _0x455f6f[_0x419866(0x22c)]())this[_0x419866(0x1ca)](_0x5bb458);this[_0x419866(0x223)](),this[_0x419866(0x1c2)](_0x419866(0x238),{'contextItems':Array[_0x419866(0x1cb)](this[_0x419866(0x202)]()[_0x419866(0x22c)]())});}[_0x4aa975(0x1df)](){const _0xa5f8de=_0x4aa975;return this[_0xa5f8de(0x205)][_0xa5f8de(0x1c8)](_0xa5f8de(0x230));}[_0x4aa975(0x1fd)](){const _0x1cb1ec=_0x4aa975;return this[_0x1cb1ec(0x205)][_0x1cb1ec(0x1c8)](_0x1cb1ec(0x201));}[_0x4aa975(0x213)](){const _0x487d56=_0x4aa975;return this[_0x487d56(0x1ec)][_0x487d56(0x1c8)](_0x487d56(0x230));}static[_0x4aa975(0x1f2)](_0x1cae18){const _0x209ca4=_0x4aa975;return Array[_0x209ca4(0x1cb)](_0x1cae18[_0x209ca4(0x22c)]())[_0x209ca4(0x1f8)](_0x50160c=>this[_0x209ca4(0x23a)](_0x50160c))[_0x209ca4(0x23f)](_0x12385e=>null!==_0x12385e);}async[_0x4aa975(0x220)](_0x2c5050,_0x51f039,_0x4e1bc7=_0x4b6fd9[_0x4aa975(0x1fc)]){const _0x31b42c=_0x4aa975,_0x470370=_0x31b42c(0x1c5)+_0x264fe8();this[_0x31b42c(0x22f)](_0x470370);try{await Promise[_0x31b42c(0x22b)](_0x2c5050[_0x31b42c(0x1f8)](async _0x242434=>{const _0x4645b7=_0x31b42c,_0x3dc441=_0x4645b7(0x208)+_0x264fe8(),_0x1a96a0=_0x4b4871(_0x242434[_0x4645b7(0x218)]);try{this[_0x4645b7(0x1cc)]({'type':_0x4e1bc7,'label':_0x51f039?.[_0x4645b7(0x1dc)]||_0x1a96a0,'uiId':_0x3dc441,'resourceId':_0x51f039?.[_0x4645b7(0x219)]},!0x0);const _0xd3aae6=this[_0x4645b7(0x1ba)][_0x4645b7(0x1cf)](this[_0x4645b7(0x221)],_0x242434,_0x51f039);this[_0x4645b7(0x240)][_0x4645b7(0x229)](_0x3dc441,_0xd3aae6[_0x4645b7(0x1f3)]);const {id:_0x35d775}=await _0xd3aae6[_0x4645b7(0x1e0)]();this[_0x4645b7(0x240)][_0x4645b7(0x1f1)](_0x3dc441),this[_0x4645b7(0x1f7)]({'type':_0x4e1bc7,'id':_0x35d775,'label':_0x51f039?.[_0x4645b7(0x1dc)]||_0x1a96a0,'uiId':_0x3dc441,'resourceId':_0x51f039?.[_0x4645b7(0x219)]},!0x1);}catch(_0xb47bd){this[_0x4645b7(0x240)][_0x4645b7(0x1f1)](_0x3dc441);if(!_0xb47bd[_0x4645b7(0x1e1)][_0x4645b7(0x23d)](_0x4645b7(0x21b))){const _0x20d653=new _0x4233bd(_0x4645b7(0x21d),null,{'fileName':_0x1a96a0});_0x20d653[_0x4645b7(0x1fb)]=_0xb47bd[_0x4645b7(0x1fb)],this[_0x4645b7(0x1c2)](_0x4645b7(0x1e2),{'error':_0x20d653,'fileName':_0x1a96a0});}this[_0x4645b7(0x20d)](_0x3dc441);}}));}finally{this[_0x31b42c(0x237)](_0x470370);}}[_0x4aa975(0x22a)](_0xc10c00){const _0x5abd90=_0x4aa975;if(this[_0x5abd90(0x1df)]())return;const _0x2fd7f8={'type':_0x4b6fd9[_0x5abd90(0x20e)],'uiId':_0x5abd90(0x230),'label':_0xc10c00,'isReadOnly':this[_0x5abd90(0x1ec)][_0x5abd90(0x1c8)](_0x5abd90(0x230)),'hidden':this[_0x5abd90(0x1ec)][_0x5abd90(0x1c8)](_0x5abd90(0x230))};this[_0x5abd90(0x1cc)](_0x2fd7f8);}async[_0x4aa975(0x1c4)](_0x513c31,_0x5448a8,_0x3e0103,_0x3fbcb2){const _0x234f20=_0x4aa975,_0x2dc45b=this[_0x234f20(0x205)][_0x234f20(0x222)](_0x234f20(0x230));if(_0x2dc45b&&_0x513c31){_0x2dc45b[_0x234f20(0x201)]=_0x3fbcb2?_0x3fbcb2[_0x234f20(0x1f8)](_0x4fee20=>({'start':_0x4fee20[_0x234f20(0x1f4)],'end':_0x4fee20[_0x234f20(0x20a)]})):[];try{if(_0x2dc45b[_0x234f20(0x21c)]===_0x5448a8)return;const {id:_0x410350}=await this[_0x234f20(0x1ba)][_0x234f20(0x224)](this[_0x234f20(0x221)],_0x513c31,{'version':_0x5448a8,'sessionId':_0x3e0103})[_0x234f20(0x1e0)]();_0x2dc45b['id']=_0x410350,_0x2dc45b[_0x234f20(0x217)]=_0x513c31,_0x2dc45b[_0x234f20(0x21c)]=_0x5448a8,_0x2dc45b[_0x234f20(0x231)]=_0x3e0103;}catch(_0x27f640){const _0x29a905=new _0x4233bd(_0x234f20(0x1b9),null);_0x29a905[_0x234f20(0x1fb)]=_0x27f640[_0x234f20(0x1fb)],this[_0x234f20(0x1c2)](_0x234f20(0x1e2),{'error':_0x29a905});}}}[_0x4aa975(0x1e7)](_0x42bd03){const _0xedffc7=_0x4aa975;this[_0xedffc7(0x1cc)]({'type':_0x4b6fd9[_0xedffc7(0x1f9)],'label':_0x42bd03,'uiId':_0xedffc7(0x201),'content':_0x42bd03});}[_0x4aa975(0x214)](){const _0x4ce3dd=_0x4aa975;this[_0x4ce3dd(0x20d)](_0x4ce3dd(0x201));}async[_0x4aa975(0x1d4)](_0x31c254,_0x226116){const _0x3e8802=_0x4aa975,_0x283b59=_0x3e8802(0x1be)+_0x264fe8();this[_0x3e8802(0x22f)](_0x283b59);const _0x56b239=_0x3e8802(0x1be)+_0x264fe8();try{this[_0x3e8802(0x1cc)]({'type':_0x4b6fd9[_0x3e8802(0x23e)],'label':_0x226116?.[_0x3e8802(0x1dc)]||_0x31c254,'uiId':_0x56b239,'resourceId':_0x226116?.[_0x3e8802(0x219)]},!0x0);const _0x3c8268=this[_0x3e8802(0x1ba)][_0x3e8802(0x1d2)](this[_0x3e8802(0x221)],_0x31c254,_0x226116);this[_0x3e8802(0x240)][_0x3e8802(0x229)](_0x56b239,_0x3c8268[_0x3e8802(0x1f3)]);const {id:_0x58ea4d}=await _0x3c8268[_0x3e8802(0x1e0)]();this[_0x3e8802(0x240)][_0x3e8802(0x1f1)](_0x56b239),this[_0x3e8802(0x1f7)]({'type':_0x4b6fd9[_0x3e8802(0x23e)],'id':_0x58ea4d,'label':_0x226116?.[_0x3e8802(0x1dc)]||_0x31c254,'uiId':_0x56b239,'resourceId':_0x226116?.[_0x3e8802(0x219)]},!0x1);}catch(_0x5bb216){this[_0x3e8802(0x240)][_0x3e8802(0x1f1)](_0x56b239),(_0x5bb216[_0x3e8802(0x1e1)][_0x3e8802(0x23d)](_0x3e8802(0x21b))||this[_0x3e8802(0x1c2)](_0x3e8802(0x1e2),{'error':new _0x4233bd(_0x3e8802(0x215),this,{'url':_0x31c254,'originalError':_0x5bb216}),'url':_0x31c254}),this[_0x3e8802(0x20d)](_0x56b239));}finally{this[_0x3e8802(0x237)](_0x283b59);}}async[_0x4aa975(0x1db)](_0x411540,_0x2b4bdd,_0x2dd93c){const _0x284cc4=_0x4aa975,_0x243b49=this[_0x284cc4(0x21f)][_0x284cc4(0x23c)][_0x284cc4(0x1bb)](_0x2c73e8=>_0x2c73e8['id']===_0x411540);if(!_0x243b49)return this[_0x284cc4(0x1c2)](_0x284cc4(0x1e2),{'error':new _0x4233bd(_0x284cc4(0x227),this,{'sourceId':_0x411540}),'sourceId':_0x411540}),[];try{const _0x481574=(await _0x243b49[_0x284cc4(0x1c0)](_0x2b4bdd))[_0x284cc4(0x1f8)](_0xf57a35=>{const _0xf2e07f=_0x284cc4,_0x42e804=this[_0xf2e07f(0x1f0)](_0xf57a35['id']);return{..._0xf57a35,'isInContext':_0x42e804};});return _0x243b49[_0x284cc4(0x210)]=_0x481574,this[_0x284cc4(0x1c2)](_0x284cc4(0x1ce),{'sourceId':_0x411540,'source':_0x243b49,'resources':_0x481574,'uid':_0x2dd93c}),_0x481574;}catch(_0x205f2f){return this[_0x284cc4(0x1c2)](_0x284cc4(0x1e2),{'error':new _0x4233bd(_0x284cc4(0x1e4),this,{'sourceId':_0x411540,'originalError':_0x205f2f}),'sourceId':_0x411540,'sourceLabel':_0x243b49[_0x284cc4(0x1dc)]}),[];}}async[_0x4aa975(0x1d8)](_0x2fb980,_0x3cda62){const _0x15ec3e=_0x4aa975;if(this[_0x15ec3e(0x1f0)](_0x3cda62['id']))return;let _0x595658=_0x3cda62[_0x15ec3e(0x1fe)];if(!_0x595658&&_0x2fb980[_0x15ec3e(0x216)])try{_0x595658=await _0x2fb980[_0x15ec3e(0x216)](_0x3cda62['id']);}catch(_0x4a544d){return void this[_0x15ec3e(0x1c2)](_0x15ec3e(0x1e2),{'error':new _0x4233bd(_0x15ec3e(0x1bf),this,{'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id'],'originalError':_0x4a544d}),'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id']});}if(_0x595658)switch(_0x3cda62[_0x15ec3e(0x200)]){case _0x4b6fd9[_0x15ec3e(0x23e)]:if(_0x15ec3e(0x234)!=typeof _0x595658)return void this[_0x15ec3e(0x1c2)](_0x15ec3e(0x1e2),{'error':new _0x4233bd(_0x15ec3e(0x21e),this,{'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id'],'expectedType':_0x15ec3e(0x234),'actualType':typeof _0x595658}),'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id']});await this[_0x15ec3e(0x1d4)](_0x595658,{'label':_0x3cda62[_0x15ec3e(0x1dc)],'resourceId':_0x3cda62['id']});break;case _0x4b6fd9[_0x15ec3e(0x1fc)]:if(!(_0x595658 instanceof File))return void this[_0x15ec3e(0x1c2)](_0x15ec3e(0x1e2),{'error':new _0x4233bd(_0x15ec3e(0x21e),this,{'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id'],'expectedType':_0x15ec3e(0x206),'actualType':typeof _0x595658}),'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id']});await this[_0x15ec3e(0x220)]([_0x595658],{'label':_0x3cda62[_0x15ec3e(0x1dc)],'resourceId':_0x3cda62['id']});break;case _0x4b6fd9[_0x15ec3e(0x211)]:if(_0x15ec3e(0x1d5)!=typeof _0x595658||!(_0x15ec3e(0x217)in _0x595658)||!(_0x15ec3e(0x200)in _0x595658))return void this[_0x15ec3e(0x1c2)](_0x15ec3e(0x1e2),{'error':new _0x4233bd(_0x15ec3e(0x21e),this,{'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id'],'expectedType':_0x15ec3e(0x1dd),'actualType':typeof _0x595658}),'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id']});_0x595658=AIChatContext[_0x15ec3e(0x1e5)](_0x595658,_0x3cda62[_0x15ec3e(0x1dc)]),await this[_0x15ec3e(0x220)]([_0x595658],{'label':_0x3cda62[_0x15ec3e(0x1dc)],'resourceId':_0x3cda62['id']},_0x4b6fd9[_0x15ec3e(0x211)]);break;default:this[_0x15ec3e(0x1c2)](_0x15ec3e(0x1e2),{'error':new _0x4233bd(_0x15ec3e(0x1c7),this,{'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id'],'resourceType':_0x3cda62[_0x15ec3e(0x200)]}),'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id']});}else this[_0x15ec3e(0x1c2)](_0x15ec3e(0x1e2),{'error':new _0x4233bd(_0x15ec3e(0x1c1),this,{'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id']}),'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id']});}static[_0x4aa975(0x1e5)](_0x4a3d04,_0x54bebc){const _0x3568f2=_0x4aa975;switch(_0x4a3d04[_0x3568f2(0x200)]){case _0x25c72c[_0x3568f2(0x22d)]:return new File([_0x4a3d04[_0x3568f2(0x217)]],_0x54bebc,{'type':_0x3568f2(0x1d1)});case _0x25c72c[_0x3568f2(0x20c)]:return new File([_0x4a3d04[_0x3568f2(0x217)]],_0x54bebc,{'type':_0x3568f2(0x1ee)});default:return new File([_0x4a3d04[_0x3568f2(0x217)]],_0x54bebc,{'type':_0x3568f2(0x1e9)});}}static[_0x4aa975(0x23a)](_0x55f25d){const _0x2b8143=_0x4aa975;switch(_0x55f25d[_0x2b8143(0x200)]){case _0x4b6fd9[_0x2b8143(0x1fc)]:return{'type':_0x4b6fd9[_0x2b8143(0x1fc)],'id':_0x55f25d['id']};case _0x4b6fd9[_0x2b8143(0x23e)]:return{'type':_0x4b6fd9[_0x2b8143(0x23e)],'id':_0x55f25d['id']};case _0x4b6fd9[_0x2b8143(0x20e)]:return{'type':_0x4b6fd9[_0x2b8143(0x20e)],'id':_0x55f25d['id'],..._0x55f25d[_0x2b8143(0x201)]?.[_0x2b8143(0x1e6)]&&{'selection':_0x55f25d[_0x2b8143(0x201)]}};case _0x4b6fd9[_0x2b8143(0x211)]:return{'type':_0x4b6fd9[_0x2b8143(0x1fc)],'id':_0x55f25d['id']};default:return null;}}[_0x4aa975(0x1cc)](_0x513ced,_0x12d595=!0x1){const _0x35829a=_0x4aa975;if(this[_0x35829a(0x205)][_0x35829a(0x229)](_0x513ced[_0x35829a(0x1b7)],_0x513ced),_0x513ced[_0x35829a(0x1d0)]||this[_0x35829a(0x1c2)](_0x35829a(0x1ea),{'contextItem':_0x513ced,'isLoading':_0x12d595}),_0x35829a(0x230)===_0x513ced[_0x35829a(0x1b7)]&&this[_0x35829a(0x1ff)](),_0x513ced[_0x35829a(0x219)]){const _0x5b1482=this[_0x35829a(0x20f)](_0x513ced[_0x35829a(0x219)]);_0x5b1482&&_0x5b1482[_0x35829a(0x212)](_0x441c9b=>{const _0x5907d0=_0x35829a;this[_0x5907d0(0x1c3)](_0x441c9b,_0x513ced[_0x5907d0(0x219)],!0x0);});}}[_0x4aa975(0x20d)](_0xe8a4d4){const _0x56cae1=_0x4aa975,_0x2efeea=this[_0x56cae1(0x205)][_0x56cae1(0x222)](_0xe8a4d4),_0xa69617=this[_0x56cae1(0x240)][_0x56cae1(0x222)](_0xe8a4d4);if(_0xa69617&&(_0xa69617[_0x56cae1(0x1fa)](),this[_0x56cae1(0x240)][_0x56cae1(0x1f1)](_0xe8a4d4)),_0x2efeea?.[_0x56cae1(0x219)]){const _0x1b3566=this[_0x56cae1(0x20f)](_0x2efeea[_0x56cae1(0x219)]);_0x1b3566&&_0x1b3566[_0x56cae1(0x212)](_0x2d1031=>{const _0x331259=_0x56cae1;this[_0x331259(0x1c3)](_0x2d1031,_0x2efeea[_0x331259(0x219)],!0x1);});}this[_0x56cae1(0x205)][_0x56cae1(0x1f1)](_0xe8a4d4),this[_0x56cae1(0x1c2)](_0x56cae1(0x204),{'uiId':_0xe8a4d4,'type':_0x2efeea?.[_0x56cae1(0x200)]}),_0x56cae1(0x230)===_0xe8a4d4&&this[_0x56cae1(0x1ff)]();}[_0x4aa975(0x1f7)](_0x31f473,_0x37df76){const _0xa82c22=_0x4aa975;if(this[_0xa82c22(0x205)][_0xa82c22(0x1c8)](_0x31f473[_0xa82c22(0x1b7)])&&(this[_0xa82c22(0x205)][_0xa82c22(0x229)](_0x31f473[_0xa82c22(0x1b7)],_0x31f473),this[_0xa82c22(0x1c2)](_0xa82c22(0x20b),{'contextItem':_0x31f473,'isLoading':_0x37df76}),_0x31f473[_0xa82c22(0x219)])){const _0xf73a90=this[_0xa82c22(0x20f)](_0x31f473[_0xa82c22(0x219)]);_0xf73a90&&_0xf73a90[_0xa82c22(0x212)](_0x5190eb=>{const _0x20525c=_0xa82c22;this[_0x20525c(0x1c3)](_0x5190eb,_0x31f473[_0x20525c(0x219)],!0x0);});}}[_0x4aa975(0x1ca)](_0x43ef10){const _0xb456d3=_0x4aa975;this[_0xb456d3(0x1ec)][_0xb456d3(0x229)](_0x43ef10[_0xb456d3(0x1b7)],_0x43ef10);}[_0x4aa975(0x228)](){const _0xe1b4bd=_0x4aa975;this[_0xe1b4bd(0x21f)]={'document':{'enabled':!0x1!==this[_0xe1b4bd(0x1c9)]?.[_0xe1b4bd(0x1d9)]?.[_0xe1b4bd(0x1da)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0xe1b4bd(0x1c9)]?.[_0xe1b4bd(0x1d7)]?.[_0xe1b4bd(0x1da)]},'files':{'enabled':!0x1!==this[_0xe1b4bd(0x1c9)]?.[_0xe1b4bd(0x1ef)]?.[_0xe1b4bd(0x1da)]},'sources':this[_0xe1b4bd(0x1e3)]()},this[_0xe1b4bd(0x1c2)](_0xe1b4bd(0x1bd),{'options':this[_0xe1b4bd(0x21f)]});}[_0x4aa975(0x1e3)](){const _0x21d28b=_0x4aa975;return this[_0x21d28b(0x1c9)]?.[_0x21d28b(0x23c)]?.[_0x21d28b(0x1f8)](_0x11ce10=>({..._0x11ce10,'resources':[]}))??[];}[_0x4aa975(0x1ff)](){const _0x3394dd=_0x4aa975,_0x367574=this[_0x3394dd(0x1df)]()||this[_0x3394dd(0x213)]();this[_0x3394dd(0x21f)][_0x3394dd(0x1d9)][_0x3394dd(0x1f6)]=_0x367574,this[_0x3394dd(0x1c2)](_0x3394dd(0x1bd),{'options':this[_0x3394dd(0x21f)]});}[_0x4aa975(0x1f0)](_0x2da3bb){const _0x4fd1c7=_0x4aa975;for(const _0x58f01b of this[_0x4fd1c7(0x205)][_0x4fd1c7(0x22c)]())if(_0x58f01b[_0x4fd1c7(0x219)]===_0x2da3bb)return!0x0;for(const _0x2e8485 of this[_0x4fd1c7(0x1ec)][_0x4fd1c7(0x22c)]())if(_0x2e8485[_0x4fd1c7(0x219)]===_0x2da3bb)return!0x0;return!0x1;}[_0x4aa975(0x20f)](_0x984e90){const _0x71909f=_0x4aa975,_0x20aad0=[];for(const _0x2a9d8c of this[_0x71909f(0x21f)][_0x71909f(0x23c)]){_0x2a9d8c[_0x71909f(0x210)][_0x71909f(0x1bb)](_0x287e78=>_0x287e78['id']===_0x984e90)&&_0x20aad0[_0x71909f(0x239)](_0x2a9d8c['id']);}return 0x0===_0x20aad0[_0x71909f(0x1e6)]?null:_0x20aad0;}[_0x4aa975(0x1c3)](_0x2120c4,_0x27895d,_0x3205d5){const _0x153f07=_0x4aa975,_0x4bedcc=this[_0x153f07(0x21f)][_0x153f07(0x23c)][_0x153f07(0x1bb)](_0xbcccb6=>_0xbcccb6['id']===_0x2120c4);if(!_0x4bedcc)return;const _0x4ff5a5=_0x4bedcc[_0x153f07(0x210)][_0x153f07(0x1bb)](_0x5dedc2=>_0x5dedc2['id']===_0x27895d);_0x4ff5a5&&(_0x4ff5a5[_0x153f07(0x1eb)]=_0x3205d5,this[_0x153f07(0x1c2)](_0x153f07(0x233),{'sourceId':_0x2120c4,'resourceId':_0x27895d,'isInContext':_0x3205d5}));}[_0x4aa975(0x22f)](_0x67d989){const _0x5694c9=_0x4aa975;this[_0x5694c9(0x1d3)][_0x5694c9(0x229)](_0x67d989,!0x0),this[_0x5694c9(0x1d3)][_0x5694c9(0x1d6)]&&this[_0x5694c9(0x1c2)](_0x5694c9(0x226),{'isUploadInProgress':!0x0});}[_0x4aa975(0x237)](_0x4d1b91){const _0xeaf7d9=_0x4aa975;this[_0xeaf7d9(0x1d3)][_0xeaf7d9(0x1f1)](_0x4d1b91),0x0===this[_0xeaf7d9(0x1d3)][_0xeaf7d9(0x1d6)]&&this[_0xeaf7d9(0x1c2)](_0xeaf7d9(0x226),{'isUploadInProgress':!0x1});}}
|
|
23
|
+
const _0x469023=_0x34f5;(function(_0x571a8e,_0x2ee9e0){const _0x1b0b8c=_0x34f5,_0x2073fd=_0x571a8e();while(!![]){try{const _0x356368=parseInt(_0x1b0b8c(0x1ec))/0x1*(parseInt(_0x1b0b8c(0x19e))/0x2)+-parseInt(_0x1b0b8c(0x1b8))/0x3*(-parseInt(_0x1b0b8c(0x1d5))/0x4)+-parseInt(_0x1b0b8c(0x1ce))/0x5*(parseInt(_0x1b0b8c(0x1fc))/0x6)+parseInt(_0x1b0b8c(0x19f))/0x7*(parseInt(_0x1b0b8c(0x1c2))/0x8)+parseInt(_0x1b0b8c(0x1f6))/0x9*(-parseInt(_0x1b0b8c(0x1e6))/0xa)+parseInt(_0x1b0b8c(0x1e3))/0xb+parseInt(_0x1b0b8c(0x1e9))/0xc*(-parseInt(_0x1b0b8c(0x20d))/0xd);if(_0x356368===_0x2ee9e0)break;else _0x2073fd['push'](_0x2073fd['shift']());}catch(_0x1a644c){_0x2073fd['push'](_0x2073fd['shift']());}}}(_0x35a2,0xdea2c));function _0x34f5(_0x326e31,_0x5c0917){const _0x35a2ff=_0x35a2();return _0x34f5=function(_0x34f514,_0x5cc85c){_0x34f514=_0x34f514-0x19a;let _0xabf530=_0x35a2ff[_0x34f514];return _0xabf530;},_0x34f5(_0x326e31,_0x5c0917);}import{CKEditorError as _0x1e076f,ObservableMixin as _0x56cc9e,uid as _0xb1581}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x32514e,AIContextTextResourceType as _0x43f84c}from'../../aicore/model/aicontext.js';import{escape as _0x55ceb8}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x469023(0x1b5),_0x469023(0x1c0),_0x469023(0x228),_0x469023(0x200),_0x469023(0x1cf),_0x469023(0x1a4),_0x469023(0x1af),_0x469023(0x1f7),_0x469023(0x1d7)];function _0x35a2(){const _0x463c29=['startsWith','abort','_toggleAddCurrentDocumentOptionVisibility','delete','removeSelectionFromContext','_ownerId','document','text/markdown','18BNzWZQ','resourceStateChanged','uploadFile','isSelectionInContext','_ongoingUploads','resourceId','2036130pvPKyC','SELECTION','MARKDOWN','isCurrentDocumentInContext','contextSent','ai-request-aborted','type','ai-chat-source-not-found','ai-chat-context-unsupported-type','isHidden','_isResourceInContext','uploadUrl','files-','removeFromContext','isInContext','_connector','files','234LzLraz','fetchDocument','length','push','ai-chat-source-resources-load-failed','end','uploadDocument','_finishUploadOperation','selection','size','_config','name','getSentContextItems','ai-chat-resource-no-data','getResources','object\x20with\x20content\x20and\x20type\x20properties','_setAddContextOptionsDefaultState','getDocument','string','urls','ai-chat-document-upload-failed','values','map','enabled','set','_mapContextItemToRequestData','ai-chat-resource-load-failed','contextItemLoadingEnded','ai-chat-context-invalid-data','has','content','data','object','file-','2116VQNqwy','9552949lGbVVE','init','hidden','_addToConversationContextItem','_getCustomSourcesInitialState','addContextOptionsChanged','resources','abortController','from','getData','updateCurrentDocument','message','_pendingContextItems','ai-chat-file-upload-failed','FILE','Current\x20document','sourceResourcesLoaded','isCurrentDocumentInConversation','_finishContextItemLoading','stack','uiId','fire','contextItemAdded','HTML','url-','9JNToxg','URL','getId','attributes','_updateResourceInContextState','getPendingContextItems','get','DOCUMENT','contextItemRemoved','current-document','8GdxdmE','_startUploadOperation','addToConversationContext','addResourceToContext','filter','_convertTextResourceToFile','forEach','version','ai-chat-url-upload-failed','addCurrentDocumentToContext','mapContextItemsToRequestData','clearPendingContextItems','15AtGKJA','error','sources','_addContextItem','_createContextItemFromContent','start','all','1924564vzeisq','addFilesToContext','uploadProgressChanged','populateFromMessage','File','isReadOnly','text/html','loadSourceResources','find','_conversationContextItems','addSelectionToContext','TEXT','text/plain','label','17819857vgViRt','_removeContextItem','url','4225990wDYYyD','_addContextOptionsState','sessionId','1796712yRanCI','_ongoingUploadOperations','_findSourceIdsByResourceId','985oteovF','addUrlToContext'];_0x35a2=function(){return _0x463c29;};return _0x35a2();}export class AIChatContext extends _0x56cc9e(){[_0x469023(0x20b)];[_0x469023(0x217)];[_0x469023(0x1f3)];constructor({connector:_0x5c360b,config:_0x3f0755,ownerId:_0x3a82be}){const _0x5d3755=_0x469023;super(),this[_0x5d3755(0x20b)]=_0x5c360b,this[_0x5d3755(0x217)]=_0x3f0755,this[_0x5d3755(0x1f3)]=_0x3a82be;}[_0x469023(0x1a0)](){const _0xc60bc1=_0x469023;this[_0xc60bc1(0x1ab)]=new Map(),this[_0xc60bc1(0x1de)]=new Map(),this[_0xc60bc1(0x1fa)]=new Map(),this[_0xc60bc1(0x1ea)]=new Map(),this[_0xc60bc1(0x21d)]();}[_0x469023(0x1bd)](){const _0x114f8b=_0x469023;return this[_0x114f8b(0x1ab)];}async[_0x469023(0x1d8)](_0x2dd9a9){const _0x229fca=_0x469023,_0x28ed28=await this[_0x229fca(0x1d2)](_0x2dd9a9);return this[_0x229fca(0x1a2)](_0x28ed28),_0x229fca(0x1c1)===_0x28ed28[_0x229fca(0x1b3)]&&this[_0x229fca(0x1f0)](),_0x28ed28;}async[_0x469023(0x1d2)](_0x2e6c42){const _0x3b8a1b=_0x469023;if(_0x2e6c42[_0x3b8a1b(0x202)]===_0x32514e[_0x3b8a1b(0x1bf)]){const _0xdabb69=await this[_0x3b8a1b(0x20b)][_0x3b8a1b(0x20e)](this[_0x3b8a1b(0x1f3)],_0x2e6c42['id'])[_0x3b8a1b(0x21e)]();return{'id':_0x3b8a1b(0x1c1),'uiId':_0x3b8a1b(0x1c1),'label':_0x3b8a1b(0x1ae),'type':_0x2e6c42[_0x3b8a1b(0x202)],'content':_0xdabb69[_0x3b8a1b(0x19a)],'hidden':this[_0x3b8a1b(0x1de)][_0x3b8a1b(0x22a)](_0x3b8a1b(0x1c1)),'version':_0xdabb69[_0x3b8a1b(0x1bb)]?.[_0x3b8a1b(0x1c9)],'sessionId':_0xdabb69[_0x3b8a1b(0x1bb)]?.[_0x3b8a1b(0x1e8)]};}return{'id':_0x2e6c42['id'],'uiId':_0x2e6c42['id'],'label':_0x2e6c42[_0x3b8a1b(0x1bb)]?.[_0x3b8a1b(0x1e2)]||_0x2e6c42[_0x3b8a1b(0x218)]||_0x2e6c42[_0x3b8a1b(0x1e5)]||_0x2e6c42['id'],'type':_0x2e6c42[_0x3b8a1b(0x202)],..._0x2e6c42?.[_0x3b8a1b(0x1bb)]?.[_0x3b8a1b(0x1fb)]?{'resourceId':_0x2e6c42[_0x3b8a1b(0x1bb)]?.[_0x3b8a1b(0x1fb)]}:{}};}[_0x469023(0x219)](){const _0x45376e=_0x469023;return new Map(this[_0x45376e(0x1de)]);}[_0x469023(0x209)](_0x1720fb){const _0x238a4b=_0x469023,_0x4410eb=this[_0x238a4b(0x1ab)][_0x238a4b(0x1be)](_0x1720fb);_0x4410eb?.[_0x238a4b(0x1da)]||this[_0x238a4b(0x1e4)](_0x1720fb);}[_0x469023(0x1cd)](){const _0x54d30c=_0x469023;if(0x0===this[_0x54d30c(0x1ab)][_0x54d30c(0x216)])return;for(const _0x2f2168 of this[_0x54d30c(0x1ab)][_0x54d30c(0x222)]())this[_0x54d30c(0x1e4)](_0x2f2168[_0x54d30c(0x1b3)]);const _0xf1ddf3=this[_0x54d30c(0x1de)][_0x54d30c(0x1be)](_0x54d30c(0x1c1))||this[_0x54d30c(0x1ab)][_0x54d30c(0x1be)](_0x54d30c(0x1c1));_0xf1ddf3&&this[_0x54d30c(0x1d1)]({..._0xf1ddf3,'isReadOnly':!0x0,'hidden':!0x0});}[_0x469023(0x1c4)](_0x51d825){const _0x5c1bd5=_0x469023;for(const _0x197692 of _0x51d825[_0x5c1bd5(0x222)]())this[_0x5c1bd5(0x1a2)](_0x197692);this[_0x5c1bd5(0x1cd)](),this[_0x5c1bd5(0x1b4)](_0x5c1bd5(0x200),{'contextItems':Array[_0x5c1bd5(0x1a7)](this[_0x5c1bd5(0x219)]()[_0x5c1bd5(0x222)]())});}[_0x469023(0x1ff)](){const _0x1c5077=_0x469023;return this[_0x1c5077(0x1ab)][_0x1c5077(0x22a)](_0x1c5077(0x1c1));}[_0x469023(0x1f9)](){const _0x2ae04d=_0x469023;return this[_0x2ae04d(0x1ab)][_0x2ae04d(0x22a)](_0x2ae04d(0x215));}[_0x469023(0x1b0)](){const _0x4461c5=_0x469023;return this[_0x4461c5(0x1de)][_0x4461c5(0x22a)](_0x4461c5(0x1c1));}static[_0x469023(0x1cc)](_0x41da61){const _0x118c77=_0x469023;return Array[_0x118c77(0x1a7)](_0x41da61[_0x118c77(0x222)]())[_0x118c77(0x223)](_0x3250dd=>this[_0x118c77(0x226)](_0x3250dd))[_0x118c77(0x1c6)](_0x17cce1=>null!==_0x17cce1);}async[_0x469023(0x1d6)](_0x31fed7,_0x334652,_0x3c2998=_0x32514e[_0x469023(0x1ad)]){const _0x555c3c=_0x469023,_0x543bfb=_0x555c3c(0x208)+_0xb1581();this[_0x555c3c(0x1c3)](_0x543bfb);try{await Promise[_0x555c3c(0x1d4)](_0x31fed7[_0x555c3c(0x223)](async _0x3c54f0=>{const _0x1f2bc0=_0x555c3c,_0x1b9d93=_0x1f2bc0(0x19d)+_0xb1581(),_0x472b51=_0x55ceb8(_0x3c54f0[_0x1f2bc0(0x218)]);try{this[_0x1f2bc0(0x1d1)]({'type':_0x3c2998,'label':_0x334652?.[_0x1f2bc0(0x1e2)]||_0x472b51,'uiId':_0x1b9d93,'resourceId':_0x334652?.[_0x1f2bc0(0x1fb)]},!0x0);const _0x25b6e9=this[_0x1f2bc0(0x20b)][_0x1f2bc0(0x1f8)](this[_0x1f2bc0(0x1f3)],_0x3c54f0,_0x334652);this[_0x1f2bc0(0x1fa)][_0x1f2bc0(0x225)](_0x1b9d93,_0x25b6e9[_0x1f2bc0(0x1a6)]);const {id:_0xc14edf}=await _0x25b6e9[_0x1f2bc0(0x1ba)]();this[_0x1f2bc0(0x1fa)][_0x1f2bc0(0x1f1)](_0x1b9d93),this[_0x1f2bc0(0x1b1)]({'type':_0x3c2998,'id':_0xc14edf,'label':_0x334652?.[_0x1f2bc0(0x1e2)]||_0x472b51,'uiId':_0x1b9d93,'resourceId':_0x334652?.[_0x1f2bc0(0x1fb)]},!0x1);}catch(_0x47f891){this[_0x1f2bc0(0x1fa)][_0x1f2bc0(0x1f1)](_0x1b9d93);if(!_0x47f891[_0x1f2bc0(0x1aa)][_0x1f2bc0(0x1ee)](_0x1f2bc0(0x201))){const _0x453e00=new _0x1e076f(_0x1f2bc0(0x1ac),null,{'fileName':_0x472b51});_0x453e00[_0x1f2bc0(0x1b2)]=_0x47f891[_0x1f2bc0(0x1b2)],this[_0x1f2bc0(0x1b4)](_0x1f2bc0(0x1cf),{'error':_0x453e00,'fileName':_0x472b51});}this[_0x1f2bc0(0x1e4)](_0x1b9d93);}}));}finally{this[_0x555c3c(0x214)](_0x543bfb);}}[_0x469023(0x1cb)](_0x25da59){const _0x5b49e2=_0x469023;if(this[_0x5b49e2(0x1ff)]())return;const _0x5c29cd={'type':_0x32514e[_0x5b49e2(0x1bf)],'uiId':_0x5b49e2(0x1c1),'label':_0x25da59,'isReadOnly':this[_0x5b49e2(0x1de)][_0x5b49e2(0x22a)](_0x5b49e2(0x1c1)),'hidden':this[_0x5b49e2(0x1de)][_0x5b49e2(0x22a)](_0x5b49e2(0x1c1))};this[_0x5b49e2(0x1d1)](_0x5c29cd);}async[_0x469023(0x1a9)](_0x5bff4e,_0xe26cf6,_0x36ca97,_0x5d2d35){const _0x527ea7=_0x469023,_0x141c0a=this[_0x527ea7(0x1ab)][_0x527ea7(0x1be)](_0x527ea7(0x1c1));if(_0x141c0a&&_0x5bff4e){_0x141c0a[_0x527ea7(0x215)]=_0x5d2d35?_0x5d2d35[_0x527ea7(0x223)](_0x4287fd=>({'start':_0x4287fd[_0x527ea7(0x1d3)],'end':_0x4287fd[_0x527ea7(0x212)]})):[];try{if(_0x141c0a[_0x527ea7(0x1c9)]===_0xe26cf6)return;const {id:_0x20171e}=await this[_0x527ea7(0x20b)][_0x527ea7(0x213)](this[_0x527ea7(0x1f3)],_0x5bff4e,{'version':_0xe26cf6,'sessionId':_0x36ca97})[_0x527ea7(0x1ba)]();_0x141c0a['id']=_0x20171e,_0x141c0a[_0x527ea7(0x19a)]=_0x5bff4e,_0x141c0a[_0x527ea7(0x1c9)]=_0xe26cf6,_0x141c0a[_0x527ea7(0x1e8)]=_0x36ca97;}catch(_0x284212){const _0x552c1f=new _0x1e076f(_0x527ea7(0x221),null);_0x552c1f[_0x527ea7(0x1b2)]=_0x284212[_0x527ea7(0x1b2)],this[_0x527ea7(0x1b4)](_0x527ea7(0x1cf),{'error':_0x552c1f});}}}[_0x469023(0x1df)](_0x373ed7){const _0x2eb679=_0x469023;this[_0x2eb679(0x1d1)]({'type':_0x32514e[_0x2eb679(0x1fd)],'label':_0x373ed7,'uiId':_0x2eb679(0x215),'content':_0x373ed7});}[_0x469023(0x1f2)](){const _0x991a5e=_0x469023;this[_0x991a5e(0x1e4)](_0x991a5e(0x215));}async[_0x469023(0x1ed)](_0x18256f,_0x3f4342){const _0xfdc97c=_0x469023,_0x15e6d1=_0xfdc97c(0x1b7)+_0xb1581();this[_0xfdc97c(0x1c3)](_0x15e6d1);const _0x525219=_0xfdc97c(0x1b7)+_0xb1581();try{this[_0xfdc97c(0x1d1)]({'type':_0x32514e[_0xfdc97c(0x1b9)],'label':_0x3f4342?.[_0xfdc97c(0x1e2)]||_0x18256f,'uiId':_0x525219,'resourceId':_0x3f4342?.[_0xfdc97c(0x1fb)]},!0x0);const _0x58fb9b=this[_0xfdc97c(0x20b)][_0xfdc97c(0x207)](this[_0xfdc97c(0x1f3)],_0x18256f,_0x3f4342);this[_0xfdc97c(0x1fa)][_0xfdc97c(0x225)](_0x525219,_0x58fb9b[_0xfdc97c(0x1a6)]);const {id:_0x36d1ce}=await _0x58fb9b[_0xfdc97c(0x1ba)]();this[_0xfdc97c(0x1fa)][_0xfdc97c(0x1f1)](_0x525219),this[_0xfdc97c(0x1b1)]({'type':_0x32514e[_0xfdc97c(0x1b9)],'id':_0x36d1ce,'label':_0x3f4342?.[_0xfdc97c(0x1e2)]||_0x18256f,'uiId':_0x525219,'resourceId':_0x3f4342?.[_0xfdc97c(0x1fb)]},!0x1);}catch(_0x47ebd8){this[_0xfdc97c(0x1fa)][_0xfdc97c(0x1f1)](_0x525219),(_0x47ebd8[_0xfdc97c(0x1aa)][_0xfdc97c(0x1ee)](_0xfdc97c(0x201))||this[_0xfdc97c(0x1b4)](_0xfdc97c(0x1cf),{'error':new _0x1e076f(_0xfdc97c(0x1ca),this,{'url':_0x18256f,'originalError':_0x47ebd8}),'url':_0x18256f}),this[_0xfdc97c(0x1e4)](_0x525219));}finally{this[_0xfdc97c(0x214)](_0x15e6d1);}}async[_0x469023(0x1dc)](_0x36b020,_0x95802f,_0x4e33aa){const _0x59f9d3=_0x469023,_0x64dd85=this[_0x59f9d3(0x1e7)][_0x59f9d3(0x1d0)][_0x59f9d3(0x1dd)](_0x4c9d13=>_0x4c9d13['id']===_0x36b020);if(!_0x64dd85)return this[_0x59f9d3(0x1b4)](_0x59f9d3(0x1cf),{'error':new _0x1e076f(_0x59f9d3(0x203),this,{'sourceId':_0x36b020}),'sourceId':_0x36b020}),[];try{const _0x3b0008=(await _0x64dd85[_0x59f9d3(0x21b)](_0x95802f))[_0x59f9d3(0x223)](_0x895d10=>{const _0x24355d=_0x59f9d3,_0x417020=this[_0x24355d(0x206)](_0x895d10['id']);return{..._0x895d10,'isInContext':_0x417020};});return _0x64dd85[_0x59f9d3(0x1a5)]=_0x3b0008,this[_0x59f9d3(0x1b4)](_0x59f9d3(0x1af),{'sourceId':_0x36b020,'source':_0x64dd85,'resources':_0x3b0008,'uid':_0x4e33aa}),_0x3b0008;}catch(_0x4b22f0){return this[_0x59f9d3(0x1b4)](_0x59f9d3(0x1cf),{'error':new _0x1e076f(_0x59f9d3(0x211),this,{'sourceId':_0x36b020,'originalError':_0x4b22f0}),'sourceId':_0x36b020,'sourceLabel':_0x64dd85[_0x59f9d3(0x1e2)]}),[];}}async[_0x469023(0x1c5)](_0x1cd041,_0xa4fd92){const _0x535983=_0x469023;if(this[_0x535983(0x206)](_0xa4fd92['id']))return;let _0x422634=_0xa4fd92[_0x535983(0x19b)];if(!_0x422634&&_0x1cd041[_0x535983(0x1a8)])try{_0x422634=await _0x1cd041[_0x535983(0x1a8)](_0xa4fd92['id']);}catch(_0x37de28){return void this[_0x535983(0x1b4)](_0x535983(0x1cf),{'error':new _0x1e076f(_0x535983(0x227),this,{'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id'],'originalError':_0x37de28}),'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id']});}if(_0x422634)switch(_0xa4fd92[_0x535983(0x202)]){case _0x32514e[_0x535983(0x1b9)]:if(_0x535983(0x21f)!=typeof _0x422634)return void this[_0x535983(0x1b4)](_0x535983(0x1cf),{'error':new _0x1e076f(_0x535983(0x229),this,{'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id'],'expectedType':_0x535983(0x21f),'actualType':typeof _0x422634}),'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id']});await this[_0x535983(0x1ed)](_0x422634,{'label':_0xa4fd92[_0x535983(0x1e2)],'resourceId':_0xa4fd92['id']});break;case _0x32514e[_0x535983(0x1ad)]:if(!(_0x422634 instanceof File))return void this[_0x535983(0x1b4)](_0x535983(0x1cf),{'error':new _0x1e076f(_0x535983(0x229),this,{'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id'],'expectedType':_0x535983(0x1d9),'actualType':typeof _0x422634}),'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id']});await this[_0x535983(0x1d6)]([_0x422634],{'label':_0xa4fd92[_0x535983(0x1e2)],'resourceId':_0xa4fd92['id']});break;case _0x32514e[_0x535983(0x1e0)]:if(_0x535983(0x19c)!=typeof _0x422634||!(_0x535983(0x19a)in _0x422634)||!(_0x535983(0x202)in _0x422634))return void this[_0x535983(0x1b4)](_0x535983(0x1cf),{'error':new _0x1e076f(_0x535983(0x229),this,{'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id'],'expectedType':_0x535983(0x21c),'actualType':typeof _0x422634}),'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id']});_0x422634=AIChatContext[_0x535983(0x1c7)](_0x422634,_0xa4fd92[_0x535983(0x1e2)]),await this[_0x535983(0x1d6)]([_0x422634],{'label':_0xa4fd92[_0x535983(0x1e2)],'resourceId':_0xa4fd92['id']},_0x32514e[_0x535983(0x1e0)]);break;default:this[_0x535983(0x1b4)](_0x535983(0x1cf),{'error':new _0x1e076f(_0x535983(0x204),this,{'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id'],'resourceType':_0xa4fd92[_0x535983(0x202)]}),'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id']});}else this[_0x535983(0x1b4)](_0x535983(0x1cf),{'error':new _0x1e076f(_0x535983(0x21a),this,{'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id']}),'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id']});}static[_0x469023(0x1c7)](_0x37facd,_0x3fe7bc){const _0x5c86ca=_0x469023;switch(_0x37facd[_0x5c86ca(0x202)]){case _0x43f84c[_0x5c86ca(0x1fe)]:return new File([_0x37facd[_0x5c86ca(0x19a)]],_0x3fe7bc,{'type':_0x5c86ca(0x1f5)});case _0x43f84c[_0x5c86ca(0x1b6)]:return new File([_0x37facd[_0x5c86ca(0x19a)]],_0x3fe7bc,{'type':_0x5c86ca(0x1db)});default:return new File([_0x37facd[_0x5c86ca(0x19a)]],_0x3fe7bc,{'type':_0x5c86ca(0x1e1)});}}static[_0x469023(0x226)](_0x3ef6ae){const _0x3d0987=_0x469023;switch(_0x3ef6ae[_0x3d0987(0x202)]){case _0x32514e[_0x3d0987(0x1ad)]:return{'type':_0x32514e[_0x3d0987(0x1ad)],'id':_0x3ef6ae['id']};case _0x32514e[_0x3d0987(0x1b9)]:return{'type':_0x32514e[_0x3d0987(0x1b9)],'id':_0x3ef6ae['id']};case _0x32514e[_0x3d0987(0x1bf)]:return{'type':_0x32514e[_0x3d0987(0x1bf)],'id':_0x3ef6ae['id'],..._0x3ef6ae[_0x3d0987(0x215)]?.[_0x3d0987(0x20f)]&&{'selection':_0x3ef6ae[_0x3d0987(0x215)]}};case _0x32514e[_0x3d0987(0x1e0)]:return{'type':_0x32514e[_0x3d0987(0x1ad)],'id':_0x3ef6ae['id']};default:return null;}}[_0x469023(0x1d1)](_0x78844d,_0xb70329=!0x1){const _0x2df2c8=_0x469023;if(this[_0x2df2c8(0x1ab)][_0x2df2c8(0x225)](_0x78844d[_0x2df2c8(0x1b3)],_0x78844d),_0x78844d[_0x2df2c8(0x1a1)]||this[_0x2df2c8(0x1b4)](_0x2df2c8(0x1b5),{'contextItem':_0x78844d,'isLoading':_0xb70329}),_0x2df2c8(0x1c1)===_0x78844d[_0x2df2c8(0x1b3)]&&this[_0x2df2c8(0x1f0)](),_0x78844d[_0x2df2c8(0x1fb)]){const _0x2dd9c4=this[_0x2df2c8(0x1eb)](_0x78844d[_0x2df2c8(0x1fb)]);_0x2dd9c4&&_0x2dd9c4[_0x2df2c8(0x1c8)](_0x2f70c4=>{const _0x19abfd=_0x2df2c8;this[_0x19abfd(0x1bc)](_0x2f70c4,_0x78844d[_0x19abfd(0x1fb)],!0x0);});}}[_0x469023(0x1e4)](_0x20ab23){const _0x57f6f7=_0x469023,_0x59925f=this[_0x57f6f7(0x1ab)][_0x57f6f7(0x1be)](_0x20ab23),_0x2ae497=this[_0x57f6f7(0x1fa)][_0x57f6f7(0x1be)](_0x20ab23);if(_0x2ae497&&(_0x2ae497[_0x57f6f7(0x1ef)](),this[_0x57f6f7(0x1fa)][_0x57f6f7(0x1f1)](_0x20ab23)),_0x59925f?.[_0x57f6f7(0x1fb)]){const _0x787461=this[_0x57f6f7(0x1eb)](_0x59925f[_0x57f6f7(0x1fb)]);_0x787461&&_0x787461[_0x57f6f7(0x1c8)](_0x406244=>{const _0x37cfa6=_0x57f6f7;this[_0x37cfa6(0x1bc)](_0x406244,_0x59925f[_0x37cfa6(0x1fb)],!0x1);});}this[_0x57f6f7(0x1ab)][_0x57f6f7(0x1f1)](_0x20ab23),this[_0x57f6f7(0x1b4)](_0x57f6f7(0x1c0),{'uiId':_0x20ab23,'type':_0x59925f?.[_0x57f6f7(0x202)]}),_0x57f6f7(0x1c1)===_0x20ab23&&this[_0x57f6f7(0x1f0)]();}[_0x469023(0x1b1)](_0x9af7e2,_0x350e69){const _0x1f6b4c=_0x469023;if(this[_0x1f6b4c(0x1ab)][_0x1f6b4c(0x22a)](_0x9af7e2[_0x1f6b4c(0x1b3)])&&(this[_0x1f6b4c(0x1ab)][_0x1f6b4c(0x225)](_0x9af7e2[_0x1f6b4c(0x1b3)],_0x9af7e2),this[_0x1f6b4c(0x1b4)](_0x1f6b4c(0x228),{'contextItem':_0x9af7e2,'isLoading':_0x350e69}),_0x9af7e2[_0x1f6b4c(0x1fb)])){const _0x3625b3=this[_0x1f6b4c(0x1eb)](_0x9af7e2[_0x1f6b4c(0x1fb)]);_0x3625b3&&_0x3625b3[_0x1f6b4c(0x1c8)](_0x177c66=>{const _0x4d2dfa=_0x1f6b4c;this[_0x4d2dfa(0x1bc)](_0x177c66,_0x9af7e2[_0x4d2dfa(0x1fb)],!0x0);});}}[_0x469023(0x1a2)](_0x17b338){const _0x583a18=_0x469023;this[_0x583a18(0x1de)][_0x583a18(0x225)](_0x17b338[_0x583a18(0x1b3)],_0x17b338);}[_0x469023(0x21d)](){const _0x1edcfb=_0x469023;this[_0x1edcfb(0x1e7)]={'document':{'enabled':!0x1!==this[_0x1edcfb(0x217)]?.[_0x1edcfb(0x1f4)]?.[_0x1edcfb(0x224)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x1edcfb(0x217)]?.[_0x1edcfb(0x220)]?.[_0x1edcfb(0x224)]},'files':{'enabled':!0x1!==this[_0x1edcfb(0x217)]?.[_0x1edcfb(0x20c)]?.[_0x1edcfb(0x224)]},'sources':this[_0x1edcfb(0x1a3)]()},this[_0x1edcfb(0x1b4)](_0x1edcfb(0x1a4),{'options':this[_0x1edcfb(0x1e7)]});}[_0x469023(0x1a3)](){const _0x1b5af6=_0x469023;return this[_0x1b5af6(0x217)]?.[_0x1b5af6(0x1d0)]?.[_0x1b5af6(0x223)](_0x33ecf2=>({..._0x33ecf2,'resources':[]}))??[];}[_0x469023(0x1f0)](){const _0x34914c=_0x469023,_0x555b4d=this[_0x34914c(0x1ff)]()||this[_0x34914c(0x1b0)]();this[_0x34914c(0x1e7)][_0x34914c(0x1f4)][_0x34914c(0x205)]=_0x555b4d,this[_0x34914c(0x1b4)](_0x34914c(0x1a4),{'options':this[_0x34914c(0x1e7)]});}[_0x469023(0x206)](_0x312afb){const _0xbb079e=_0x469023;for(const _0x429411 of this[_0xbb079e(0x1ab)][_0xbb079e(0x222)]())if(_0x429411[_0xbb079e(0x1fb)]===_0x312afb)return!0x0;for(const _0x2fbec0 of this[_0xbb079e(0x1de)][_0xbb079e(0x222)]())if(_0x2fbec0[_0xbb079e(0x1fb)]===_0x312afb)return!0x0;return!0x1;}[_0x469023(0x1eb)](_0x6d3b9){const _0x477dc6=_0x469023,_0x19b255=[];for(const _0x5842bd of this[_0x477dc6(0x1e7)][_0x477dc6(0x1d0)]){_0x5842bd[_0x477dc6(0x1a5)][_0x477dc6(0x1dd)](_0x14b457=>_0x14b457['id']===_0x6d3b9)&&_0x19b255[_0x477dc6(0x210)](_0x5842bd['id']);}return 0x0===_0x19b255[_0x477dc6(0x20f)]?null:_0x19b255;}[_0x469023(0x1bc)](_0x70abd0,_0x411088,_0xe1631c){const _0x505d07=_0x469023,_0x1795d5=this[_0x505d07(0x1e7)][_0x505d07(0x1d0)][_0x505d07(0x1dd)](_0xe7b6ec=>_0xe7b6ec['id']===_0x70abd0);if(!_0x1795d5)return;const _0x3cb068=_0x1795d5[_0x505d07(0x1a5)][_0x505d07(0x1dd)](_0xa08e1=>_0xa08e1['id']===_0x411088);_0x3cb068&&(_0x3cb068[_0x505d07(0x20a)]=_0xe1631c,this[_0x505d07(0x1b4)](_0x505d07(0x1f7),{'sourceId':_0x70abd0,'resourceId':_0x411088,'isInContext':_0xe1631c}));}[_0x469023(0x1c3)](_0x3f065a){const _0x350f94=_0x469023;this[_0x350f94(0x1ea)][_0x350f94(0x225)](_0x3f065a,!0x0),this[_0x350f94(0x1ea)][_0x350f94(0x216)]&&this[_0x350f94(0x1b4)](_0x350f94(0x1d7),{'isUploadInProgress':!0x0});}[_0x469023(0x214)](_0x5383d2){const _0x443625=_0x469023;this[_0x443625(0x1ea)][_0x443625(0x1f1)](_0x5383d2),0x0===this[_0x443625(0x1ea)][_0x443625(0x216)]&&this[_0x443625(0x1b4)](_0x443625(0x1d7),{'isUploadInProgress':!0x1});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x3cf3(){const _0x1161dd=['ai-chat-conversation-init-failed','removeInteraction','1840890PoNgNS','conversationInitialized','webSearch','text','lastInteraction','push','updateCurrentDocument','getCurrentDocumentContext','stack','getPendingContextItems','stop','ai-chat-handle-user-conversation-not-initialized','modification-delta','populateFromMessage','currentReply','_processMessagesToInteractions','toLowerCase','conversationStarted','startConversation','addFilesToContext','ai-chat-conversation-init-from-id-failed','indexOf','toggleReasoning','fetchConversation','getDocumentContext','isStarted','getAll','interactions','assistant','isCurrentDocumentInContext','ai-chat-conversation-set-model-null','user','group','setModel','666700GaMNcI','toggleWebSearch','ai-chat-conversation-set-model-not-available','addCurrentDocumentToContext','text-delta','modelSelected','quickActionData','role','currentInteraction','reset','set','createReply','getInteraction','model','fetchConversationMessages','selectedModel','removeFromContext','type','2205705WBSyUt','connector','appendContent','chatModels','error','329975JpDHJN','handleUserInteraction','isCurrentDocumentInConversation','_extractContextItems','ai-chat-conversation-start-no-model-selected','destroy','ai-chat-conversation-start-failed','getCapabilitiesConfig','contextItems','attributes','addToConversationContext','addUrlToContext','638982woLWjp','delegate','ai-chat-conversation-already-started','loadSourceResources','init','conversationId','reasoning','addSelectionToContext','removeSelectionFromContext','prompt','isAvailable','chatCapabilities','content','load','1778433hokdqB','message','chatContext','getConversation','setConversationTitle','capabilities','splice','interactionCreated','updateCurrentDocumentInContext','start','getDefault','defaultModelId','hasOwn','getEditor','title','isSelectionInContext','length','find','ai-chat-handle-user-interaction-already-in-progress','createInteraction','getMessages','fire','sessionId','addResourceToContext','1973475pcocPX','options'];_0x3cf3=function(){return _0x1161dd;};return _0x3cf3();}const _0x4d277a=_0x1293;(function(_0x33ec20,_0x39cc91){const _0x4916f7=_0x1293,_0xa824f2=_0x33ec20();while(!![]){try{const _0x156137=parseInt(_0x4916f7(0xea))/0x1+-parseInt(_0x4916f7(0xf6))/0x2+parseInt(_0x4916f7(0x104))/0x3+parseInt(_0x4916f7(0xd3))/0x4+-parseInt(_0x4916f7(0xe5))/0x5+-parseInt(_0x4916f7(0xb1))/0x6+parseInt(_0x4916f7(0xad))/0x7;if(_0x156137===_0x39cc91)break;else _0xa824f2['push'](_0xa824f2['shift']());}catch(_0x5ea23e){_0xa824f2['push'](_0xa824f2['shift']());}}}(_0x3cf3,0x4a343));function _0x1293(_0xb56632,_0x4ba8e5){const _0x3cf3ab=_0x3cf3();return _0x1293=function(_0x12937f,_0x462087){_0x12937f=_0x12937f-0xab;let _0x414eeb=_0x3cf3ab[_0x12937f];return _0x414eeb;},_0x1293(_0xb56632,_0x4ba8e5);}import{CKEditorError as _0x19919e,EmitterMixin as _0x251e58}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x13788c}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x399914,AI_CONTEXT_MODEL_EVENT_NAMES as _0x53e23}from'./aichatcontext.js';import{AICapabilities as _0x31d052,CAPABILITIES_MODEL_EVENT_NAMES as _0x30c301}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x4ee9e5}from'./aichatinteraction.js';export class AIChatConversation extends _0x251e58(){['id'];[_0x4d277a(0xca)]=!0x1;[_0x4d277a(0xcc)]=[];[_0x4d277a(0xdb)];[_0x4d277a(0xe2)];[_0x4d277a(0xe6)];[_0x4d277a(0xae)];constructor(_0x3ff07e){const _0x27b896=_0x4d277a;super(),this[_0x27b896(0xae)]=_0x3ff07e,this[_0x27b896(0xe6)]=_0x3ff07e[_0x27b896(0xe6)],this[_0x27b896(0xe8)]=_0x3ff07e[_0x27b896(0xe8)],this['id']=_0x3ff07e[_0x27b896(0xfb)];}async[_0x4d277a(0xfa)](_0x307ae2){const _0x319eaa=_0x4d277a;try{this[_0x319eaa(0x106)]=new _0x399914({'connector':this[_0x319eaa(0xe6)],'config':_0x307ae2,'ownerId':this['id']}),this[_0x319eaa(0x106)][_0x319eaa(0xf7)](..._0x53e23)['to'](this),this[_0x319eaa(0x106)][_0x319eaa(0xfa)](),this[_0x319eaa(0x101)]=new _0x31d052(),this[_0x319eaa(0x101)][_0x319eaa(0xf7)](..._0x30c301)['to'](this),this[_0x319eaa(0x101)][_0x319eaa(0xfa)]();const _0x2ab149=await this[_0x319eaa(0xe8)][_0x319eaa(0xcb)]();this[_0x319eaa(0x119)](_0x319eaa(0xb2),{'availableModels':_0x2ab149});const _0xaff125=await this[_0x319eaa(0xe8)][_0x319eaa(0x10e)](this[_0x319eaa(0xae)][_0x319eaa(0x10f)]);_0xaff125&&await this[_0x319eaa(0xd2)](_0xaff125);}catch(_0x1e9f3b){const _0x489dd1=new _0x19919e(_0x319eaa(0xaf),null,{'message':_0x1e9f3b[_0x319eaa(0x105)]});_0x489dd1[_0x319eaa(0xb9)]=_0x1e9f3b[_0x319eaa(0xb9)],this[_0x319eaa(0x119)](_0x319eaa(0xe9),{'error':_0x489dd1});}}async[_0x4d277a(0x10d)](){const _0x42a0e6=_0x4d277a;if(this[_0x42a0e6(0xca)])throw new _0x19919e(_0x42a0e6(0xf8),null,{'conversation':this});if(!this[_0x42a0e6(0xe2)])throw new _0x19919e(_0x42a0e6(0xee),null,{'conversation':this});try{const {id:_0x3ffb95}=await this[_0x42a0e6(0xe6)][_0x42a0e6(0xc3)](this['id'],this[_0x42a0e6(0xae)][_0x42a0e6(0xd1)])[_0x42a0e6(0x107)]();this['id']=_0x3ffb95,this[_0x42a0e6(0xca)]=!0x0,this[_0x42a0e6(0x119)](_0x42a0e6(0xc2),{'conversationId':this['id'],'selectedModel':this[_0x42a0e6(0xe2)]});}catch(_0x125e82){const _0x3e8656=new _0x19919e(_0x42a0e6(0xf0),null,{'message':_0x125e82[_0x42a0e6(0x105)]});_0x3e8656[_0x42a0e6(0xb9)]=_0x125e82[_0x42a0e6(0xb9)],this[_0x42a0e6(0x119)](_0x42a0e6(0xe9),{'error':_0x3e8656});}}async[_0x4d277a(0x103)](_0x30bb3c,_0x9b30c3){const _0x1b4501=_0x4d277a;try{const _0x3b0449=await this[_0x1b4501(0xe6)][_0x1b4501(0xc8)](_0x30bb3c)[_0x1b4501(0x107)](),_0x34a0f1=await this[_0x1b4501(0xe6)][_0x1b4501(0xe1)](_0x30bb3c)[_0x1b4501(0x118)](),_0x19ec0d=_0x34a0f1[0x0][_0x1b4501(0xe0)];this[_0x1b4501(0xca)]=!0x0,this['id']=_0x3b0449['id'],_0x1b4501(0x112)in _0x3b0449?this[_0x1b4501(0x119)](_0x1b4501(0x108),_0x3b0449[_0x1b4501(0x112)],!0x0):this[_0x1b4501(0x119)](_0x1b4501(0x108),'',!0x0);const _0xdf2e14=(await this[_0x1b4501(0xe8)][_0x1b4501(0xcb)]())[_0x1b4501(0x115)](_0x256d82=>_0x256d82['id'][_0x1b4501(0xc1)]()===_0x19ec0d[_0x1b4501(0xc1)]());return this[_0x1b4501(0xe2)]=_0xdf2e14,this[_0x1b4501(0x119)](_0x1b4501(0xd8),{'selectedModel':_0xdf2e14,'isDisabled':!0x0}),await this[_0x1b4501(0xc0)](_0x34a0f1,_0x9b30c3,_0x19ec0d),this[_0x1b4501(0xdb)]=void 0x0,this;}catch(_0x177039){const _0xf24201=new _0x19919e(_0x1b4501(0xc5),null,{'message':_0x177039[_0x1b4501(0x105)],'conversationId':_0x30bb3c});throw _0xf24201[_0x1b4501(0xb9)]=_0x177039[_0x1b4501(0xb9)],this[_0x1b4501(0x119)](_0x1b4501(0xe9),{'error':_0xf24201}),_0xf24201;}}async[_0x4d277a(0xc0)](_0x58b306,_0x8b5a4a,_0x34f464){const _0x527eb4=_0x4d277a;let _0x1de38e;for(const _0x112de7 of _0x58b306)if(_0x527eb4(0xd0)===_0x112de7[_0x527eb4(0xda)]){const _0x370abd=await this[_0x527eb4(0xed)](_0x112de7),_0x14c33e={'isReasoningEnabled':Object[_0x527eb4(0x110)](_0x112de7[_0x527eb4(0x109)],_0x527eb4(0xfc)),'isWebSearchEnabled':Object[_0x527eb4(0x110)](_0x112de7[_0x527eb4(0x109)],_0x527eb4(0xb3))};_0x1de38e=this[_0x527eb4(0x117)]({'userMessage':_0x112de7[_0x527eb4(0xff)],'contextItems':_0x370abd,'capabilities':_0x14c33e,'modelId':_0x34f464,'quickActionData':_0x112de7[_0x527eb4(0xf3)]?.[_0x527eb4(0xd9)]}),this[_0x527eb4(0xdb)]=_0x1de38e,this[_0x527eb4(0x106)][_0x527eb4(0xf4)](this[_0x527eb4(0xdb)][_0x527eb4(0xf2)]);}else{if(_0x527eb4(0xcd)===_0x112de7[_0x527eb4(0xda)]&&_0x1de38e)for(const _0x231c8f of _0x112de7[_0x527eb4(0x102)]){const _0x261a18=_0x527eb4(0xb4)===_0x231c8f[_0x527eb4(0xe4)]?_0x527eb4(0xd7):_0x527eb4(0xbd),_0x7e2bd8=_0x1de38e[_0x527eb4(0xc9)]()?.[_0x527eb4(0xab)]!==_0x8b5a4a;_0x1de38e[_0x527eb4(0xbf)]=_0x1de38e[_0x527eb4(0xde)]({'type':_0x261a18,'isDone':!0x0,'interactionId':_0x1de38e['id'],'areActionsDisabled':_0x7e2bd8}),_0x1de38e[_0x527eb4(0xbf)][_0x527eb4(0xe7)](_0x231c8f[_0x527eb4(0x102)]);}}}async[_0x4d277a(0xed)](_0x801221){const _0x3eefd5=_0x4d277a,_0x2539fc=new Map();if(!_0x801221[_0x3eefd5(0x102)])return _0x2539fc;for(const _0x4d9f69 of _0x801221[_0x3eefd5(0x102)]){const _0x1ca674=await this[_0x3eefd5(0x106)][_0x3eefd5(0xbe)](_0x4d9f69);_0x1ca674&&_0x2539fc[_0x3eefd5(0xdd)](_0x1ca674['id'],_0x1ca674);}return _0x2539fc;}async[_0x4d277a(0xeb)]({userMessage:_0x415a7c,quickActionData:_0x13dab3}){const _0x512746=_0x4d277a;if(!this[_0x512746(0xca)])throw new _0x19919e(_0x512746(0xbc),null,{'conversation':this});if(this[_0x512746(0xdb)])throw new _0x19919e(_0x512746(0x116),null,{'conversation':this});try{const _0x124426=this[_0x512746(0x106)][_0x512746(0xba)](),_0x1dc5ba=this[_0x512746(0x101)][_0x512746(0xf1)](),_0x2b73c9=this[_0x512746(0xe2)]['id'];this[_0x512746(0xdb)]=this[_0x512746(0x117)]({'userMessage':_0x415a7c,'contextItems':_0x124426,'capabilities':_0x1dc5ba,'modelId':_0x2b73c9,'quickActionData':_0x13dab3}),await this[_0x512746(0xdb)][_0x512746(0x10d)](),this[_0x512746(0x106)][_0x512746(0xf4)](this[_0x512746(0xdb)][_0x512746(0xf2)]);}catch(_0x58f949){this[_0x512746(0x119)](_0x512746(0xe9),{'interactionId':this[_0x512746(0xdb)]?this[_0x512746(0xdb)]['id']:void 0x0,'error':_0x58f949});}finally{this[_0x512746(0xdb)]?.[_0x512746(0xbb)](),this[_0x512746(0xdb)]=void 0x0;}}[_0x4d277a(0x117)]({userMessage:_0x14065c,contextItems:_0x1369dd,capabilities:_0x463710,modelId:_0x5c77db,quickActionData:_0x1a9858}){const _0x466f60=_0x4d277a,_0x309e8b=new _0x4ee9e5({'userMessage':_0x14065c,'contextItems':_0x1369dd,'capabilities':_0x463710,'conversationId':this['id'],'connector':this[_0x466f60(0xe6)],'editor':this[_0x466f60(0xae)][_0x466f60(0x111)]&&this[_0x466f60(0xae)][_0x466f60(0x111)](),'model':_0x5c77db,'quickActionData':_0x1a9858});return _0x309e8b[_0x466f60(0xf7)](..._0x13788c)['to'](this),this[_0x466f60(0xcc)][_0x466f60(0xb6)](_0x309e8b),this[_0x466f60(0x119)](_0x466f60(0x10b),_0x309e8b),_0x309e8b;}[_0x4d277a(0xdf)](_0x1482a5){const _0x55caf2=_0x4d277a;return this[_0x55caf2(0xcc)][_0x55caf2(0x115)](_0x480377=>_0x480377['id']===_0x1482a5);}[_0x4d277a(0xb0)](_0x85c342){const _0x51a635=_0x4d277a,_0x5cb8ef=this[_0x51a635(0xdf)](_0x85c342);_0x5cb8ef&&(_0x5cb8ef[_0x51a635(0xef)](),this[_0x51a635(0xcc)][_0x51a635(0x10a)](this[_0x51a635(0xcc)][_0x51a635(0xc6)](_0x5cb8ef),0x1));}get[_0x4d277a(0xb5)](){const _0x21a9dc=_0x4d277a;return this[_0x21a9dc(0xcc)][this[_0x21a9dc(0xcc)][_0x21a9dc(0x114)]-0x1];}[_0x4d277a(0xd6)](_0xc9b058){const _0x6c3568=_0x4d277a;this[_0x6c3568(0x106)][_0x6c3568(0xd6)](_0xc9b058);}async[_0x4d277a(0x10c)]({content:_0x265e3a,version:_0x59af22,sessionId:_0x367131,selections:_0x51413a}){const _0x43fc17=_0x4d277a;await this[_0x43fc17(0x106)][_0x43fc17(0xb7)](_0x265e3a,_0x59af22,_0x367131,_0x51413a);}[_0x4d277a(0xb8)](){const _0x1472bd=_0x4d277a;return this[_0x1472bd(0xdb)]?.[_0x1472bd(0xc9)]()?.[_0x1472bd(0x102)]||'';}[_0x4d277a(0xfd)](_0x288388){const _0x2d6129=_0x4d277a;this[_0x2d6129(0x106)][_0x2d6129(0xfd)](_0x288388);}[_0x4d277a(0xfe)](){const _0x5e16aa=_0x4d277a;this[_0x5e16aa(0x106)][_0x5e16aa(0xfe)]();}[_0x4d277a(0xc4)](_0x442112){const _0x165d36=_0x4d277a;this[_0x165d36(0x106)][_0x165d36(0xc4)](_0x442112);}[_0x4d277a(0xf5)](_0x16be80){const _0x220971=_0x4d277a;this[_0x220971(0x106)][_0x220971(0xf5)](_0x16be80);}[_0x4d277a(0xac)](_0x4e5b2d,_0x189b17){const _0x1cd3d0=_0x4d277a;this[_0x1cd3d0(0x106)][_0x1cd3d0(0xac)](_0x4e5b2d,_0x189b17);}[_0x4d277a(0xf9)](_0x56e9df,_0x1938a6,_0x2a0159){const _0x215b9d=_0x4d277a;return this[_0x215b9d(0x106)][_0x215b9d(0xf9)](_0x56e9df,_0x1938a6,_0x2a0159);}[_0x4d277a(0xe3)](_0xbafa26){const _0x1e122e=_0x4d277a;this[_0x1e122e(0x106)][_0x1e122e(0xe3)](_0xbafa26);}[_0x4d277a(0xd4)](){const _0x1cb734=_0x4d277a;this[_0x1cb734(0x101)][_0x1cb734(0xd4)]();}[_0x4d277a(0xc7)](){const _0x513b89=_0x4d277a;this[_0x513b89(0x101)][_0x513b89(0xc7)]();}[_0x4d277a(0xce)](){const _0x21aee6=_0x4d277a;return this[_0x21aee6(0x106)][_0x21aee6(0xce)]();}[_0x4d277a(0xec)](){const _0x1285c9=_0x4d277a;return this[_0x1285c9(0x106)][_0x1285c9(0xec)]();}[_0x4d277a(0x113)](){const _0x31cd72=_0x4d277a;return this[_0x31cd72(0x106)][_0x31cd72(0x113)]();}async[_0x4d277a(0xd2)](_0x916f71){const _0x12bf83=_0x4d277a;if(!_0x916f71)throw new _0x19919e(_0x12bf83(0xcf),null,{'conversation':this});if(!0x1===await this[_0x12bf83(0xe8)][_0x12bf83(0x100)](_0x916f71))throw new _0x19919e(_0x12bf83(0xd5),null,{'conversation':this,'model':_0x916f71});_0x916f71['id']!==this[_0x12bf83(0xe2)]?.['id']&&(this[_0x12bf83(0xe2)]=_0x916f71,this[_0x12bf83(0x101)][_0x12bf83(0xdc)](),this[_0x12bf83(0x119)](_0x12bf83(0xd8),{'selectedModel':_0x916f71}));}}
|
|
23
|
+
const _0x9f39f=_0x19b2;(function(_0x34cd5b,_0x5c46af){const _0x54e859=_0x19b2,_0x21fb04=_0x34cd5b();while(!![]){try{const _0x200fbb=-parseInt(_0x54e859(0x13a))/0x1+parseInt(_0x54e859(0x15b))/0x2+parseInt(_0x54e859(0x15d))/0x3*(parseInt(_0x54e859(0x16f))/0x4)+parseInt(_0x54e859(0x174))/0x5*(parseInt(_0x54e859(0x15a))/0x6)+-parseInt(_0x54e859(0x187))/0x7*(parseInt(_0x54e859(0x148))/0x8)+-parseInt(_0x54e859(0x13b))/0x9*(parseInt(_0x54e859(0x186))/0xa)+parseInt(_0x54e859(0x155))/0xb;if(_0x200fbb===_0x5c46af)break;else _0x21fb04['push'](_0x21fb04['shift']());}catch(_0x483d24){_0x21fb04['push'](_0x21fb04['shift']());}}}(_0x5d49,0xdf7c8));import{CKEditorError as _0x3be0fa,EmitterMixin as _0x12a613}from'ckeditor5/src/utils.js';function _0x19b2(_0x158196,_0x586416){const _0x5d4977=_0x5d49();return _0x19b2=function(_0x19b234,_0x32b7ff){_0x19b234=_0x19b234-0x11b;let _0x34c5f5=_0x5d4977[_0x19b234];return _0x34c5f5;},_0x19b2(_0x158196,_0x586416);}import{AI_MODEL_EVENT_NAMES as _0x460168}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x15747d,AI_CONTEXT_MODEL_EVENT_NAMES as _0x17a746}from'./aichatcontext.js';import{AICapabilities as _0x4ed5ce,CAPABILITIES_MODEL_EVENT_NAMES as _0x23938b}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x1c96f0}from'./aichatinteraction.js';export class AIChatConversation extends _0x12a613(){['id'];[_0x9f39f(0x169)]=!0x1;[_0x9f39f(0x177)]=[];[_0x9f39f(0x136)];[_0x9f39f(0x12c)];[_0x9f39f(0x161)];[_0x9f39f(0x16b)];constructor(_0x598a1a){const _0x1fb39b=_0x9f39f;super(),this[_0x1fb39b(0x16b)]=_0x598a1a,this[_0x1fb39b(0x161)]=_0x598a1a[_0x1fb39b(0x161)],this[_0x1fb39b(0x143)]=_0x598a1a[_0x1fb39b(0x143)],this['id']=_0x598a1a[_0x1fb39b(0x157)];}async[_0x9f39f(0x160)](_0x3aaac2){const _0x2a23b9=_0x9f39f;try{this[_0x2a23b9(0x171)]=new _0x15747d({'connector':this[_0x2a23b9(0x161)],'config':_0x3aaac2,'ownerId':this['id']}),this[_0x2a23b9(0x171)][_0x2a23b9(0x13e)](..._0x17a746)['to'](this),this[_0x2a23b9(0x171)][_0x2a23b9(0x160)](),this[_0x2a23b9(0x12e)]=new _0x4ed5ce(),this[_0x2a23b9(0x12e)][_0x2a23b9(0x13e)](..._0x23938b)['to'](this),this[_0x2a23b9(0x12e)][_0x2a23b9(0x160)]();const _0x5ba243=await this[_0x2a23b9(0x143)][_0x2a23b9(0x140)]();this[_0x2a23b9(0x184)](_0x2a23b9(0x139),{'availableModels':_0x5ba243});const _0x10a0c0=await this[_0x2a23b9(0x143)][_0x2a23b9(0x13f)](this[_0x2a23b9(0x16b)][_0x2a23b9(0x167)]);_0x10a0c0&&await this[_0x2a23b9(0x128)](_0x10a0c0);}catch(_0x1a018e){const _0x4144d1=new _0x3be0fa(_0x2a23b9(0x127),null,{'message':_0x1a018e[_0x2a23b9(0x151)]});_0x4144d1[_0x2a23b9(0x12a)]=_0x1a018e[_0x2a23b9(0x12a)],this[_0x2a23b9(0x184)](_0x2a23b9(0x164),{'error':_0x4144d1});}}async[_0x9f39f(0x14b)](){const _0x45ef14=_0x9f39f;if(this[_0x45ef14(0x169)])throw new _0x3be0fa(_0x45ef14(0x176),null,{'conversation':this});if(!this[_0x45ef14(0x12c)])throw new _0x3be0fa(_0x45ef14(0x11c),null,{'conversation':this});try{const {id:_0x39a408}=await this[_0x45ef14(0x161)][_0x45ef14(0x182)](this['id'],this[_0x45ef14(0x16b)][_0x45ef14(0x11e)])[_0x45ef14(0x125)]();this['id']=_0x39a408,this[_0x45ef14(0x169)]=!0x0,this[_0x45ef14(0x184)](_0x45ef14(0x17f),{'conversationId':this['id'],'selectedModel':this[_0x45ef14(0x12c)]});}catch(_0x5622a3){const _0x18e30d=new _0x3be0fa(_0x45ef14(0x121),null,{'message':_0x5622a3[_0x45ef14(0x151)]});_0x18e30d[_0x45ef14(0x12a)]=_0x5622a3[_0x45ef14(0x12a)],this[_0x45ef14(0x184)](_0x45ef14(0x164),{'error':_0x18e30d});}}async[_0x9f39f(0x170)](_0x392d5e,_0x1b0dca){const _0x5887a7=_0x9f39f;try{const _0x2b4562=await this[_0x5887a7(0x161)][_0x5887a7(0x181)](_0x392d5e)[_0x5887a7(0x125)](),_0x3841a7=await this[_0x5887a7(0x161)][_0x5887a7(0x146)](_0x392d5e)[_0x5887a7(0x14f)](),_0x3ae62e=_0x3841a7[0x0][_0x5887a7(0x18d)];this[_0x5887a7(0x169)]=!0x0,this['id']=_0x2b4562['id'],_0x5887a7(0x189)in _0x2b4562?this[_0x5887a7(0x184)](_0x5887a7(0x154),_0x2b4562[_0x5887a7(0x189)],!0x0):this[_0x5887a7(0x184)](_0x5887a7(0x154),'',!0x0);const _0x2bfedb=(await this[_0x5887a7(0x143)][_0x5887a7(0x140)]())[_0x5887a7(0x132)](_0x2db444=>_0x2db444['id'][_0x5887a7(0x158)]()===_0x3ae62e[_0x5887a7(0x158)]());return this[_0x5887a7(0x12c)]=_0x2bfedb,this[_0x5887a7(0x184)](_0x5887a7(0x168),{'selectedModel':_0x2bfedb,'isDisabled':!0x0}),await this[_0x5887a7(0x14a)](_0x3841a7,_0x1b0dca,_0x3ae62e),this[_0x5887a7(0x136)]=void 0x0,this;}catch(_0x13a3b1){const _0x4226bf=new _0x3be0fa(_0x5887a7(0x129),null,{'message':_0x13a3b1[_0x5887a7(0x151)],'conversationId':_0x392d5e});throw _0x4226bf[_0x5887a7(0x12a)]=_0x13a3b1[_0x5887a7(0x12a)],this[_0x5887a7(0x184)](_0x5887a7(0x164),{'error':_0x4226bf}),_0x4226bf;}}async[_0x9f39f(0x14a)](_0x9a4c04,_0x57c455,_0x3efa5c){const _0x58b68b=_0x9f39f;let _0x26993c;for(const _0x48bd52 of _0x9a4c04)if(_0x58b68b(0x131)===_0x48bd52[_0x58b68b(0x18b)]){const _0x2a6c9e=await this[_0x58b68b(0x152)](_0x48bd52),_0x2b75f0={'isReasoningEnabled':Object[_0x58b68b(0x16a)](_0x48bd52[_0x58b68b(0x178)],_0x58b68b(0x11b)),'isWebSearchEnabled':Object[_0x58b68b(0x16a)](_0x48bd52[_0x58b68b(0x178)],_0x58b68b(0x15e))};_0x26993c=this[_0x58b68b(0x179)]({'userMessage':_0x48bd52[_0x58b68b(0x149)],'contextItems':_0x2a6c9e,'capabilities':_0x2b75f0,'modelId':_0x3efa5c,'quickActionData':_0x48bd52[_0x58b68b(0x180)]?.[_0x58b68b(0x17c)]}),this[_0x58b68b(0x136)]=_0x26993c,this[_0x58b68b(0x171)][_0x58b68b(0x150)](this[_0x58b68b(0x136)][_0x58b68b(0x183)]);}else{if(_0x58b68b(0x18a)===_0x48bd52[_0x58b68b(0x18b)]&&_0x26993c)for(const _0x243588 of _0x48bd52[_0x58b68b(0x17d)]){const _0x533c19=_0x58b68b(0x16e)===_0x243588[_0x58b68b(0x16c)]?_0x58b68b(0x166):_0x58b68b(0x15f),_0x1eff5a=_0x26993c[_0x58b68b(0x18c)]()?.[_0x58b68b(0x188)]!==_0x57c455;_0x26993c[_0x58b68b(0x122)]=_0x26993c[_0x58b68b(0x163)]({'type':_0x533c19,'isDone':!0x0,'interactionId':_0x26993c['id'],'areActionsDisabled':_0x1eff5a}),_0x26993c[_0x58b68b(0x122)][_0x58b68b(0x147)](_0x243588[_0x58b68b(0x17d)]);}}}async[_0x9f39f(0x152)](_0x3cd4b4){const _0x1ac7a6=_0x9f39f,_0x1052a4=new Map();if(!_0x3cd4b4[_0x1ac7a6(0x17d)])return _0x1052a4;for(const _0x7f5ce8 of _0x3cd4b4[_0x1ac7a6(0x17d)]){const _0x522517=await this[_0x1ac7a6(0x171)][_0x1ac7a6(0x130)](_0x7f5ce8);_0x522517&&_0x1052a4[_0x1ac7a6(0x14e)](_0x522517['id'],_0x522517);}return _0x1052a4;}async[_0x9f39f(0x15c)]({userMessage:_0x37d91c,quickActionData:_0x26630d}){const _0x33819e=_0x9f39f;if(!this[_0x33819e(0x169)])throw new _0x3be0fa(_0x33819e(0x14d),null,{'conversation':this});if(this[_0x33819e(0x136)])throw new _0x3be0fa(_0x33819e(0x153),null,{'conversation':this});try{const _0x590c29=this[_0x33819e(0x171)][_0x33819e(0x133)](),_0x5304d4=this[_0x33819e(0x12e)][_0x33819e(0x141)](),_0x5e90b7=this[_0x33819e(0x12c)]['id'];this[_0x33819e(0x136)]=this[_0x33819e(0x179)]({'userMessage':_0x37d91c,'contextItems':_0x590c29,'capabilities':_0x5304d4,'modelId':_0x5e90b7,'quickActionData':_0x26630d}),await this[_0x33819e(0x136)][_0x33819e(0x14b)](),this[_0x33819e(0x171)][_0x33819e(0x150)](this[_0x33819e(0x136)][_0x33819e(0x183)]);}catch(_0x402d26){this[_0x33819e(0x184)](_0x33819e(0x164),{'interactionId':this[_0x33819e(0x136)]?this[_0x33819e(0x136)]['id']:void 0x0,'error':_0x402d26});}finally{this[_0x33819e(0x136)]?.[_0x33819e(0x137)](),this[_0x33819e(0x136)]=void 0x0;}}[_0x9f39f(0x179)]({userMessage:_0x48ffd1,contextItems:_0x533d14,capabilities:_0x45a3df,modelId:_0x44d770,quickActionData:_0x2a44d3}){const _0x56205e=_0x9f39f,_0x4187b9=new _0x1c96f0({'userMessage':_0x48ffd1,'contextItems':_0x533d14,'capabilities':_0x45a3df,'conversationId':this['id'],'connector':this[_0x56205e(0x161)],'editor':this[_0x56205e(0x16b)][_0x56205e(0x124)]&&this[_0x56205e(0x16b)][_0x56205e(0x124)](),'model':_0x44d770,'quickActionData':_0x2a44d3});return _0x4187b9[_0x56205e(0x13e)](..._0x460168)['to'](this),this[_0x56205e(0x177)][_0x56205e(0x17e)](_0x4187b9),this[_0x56205e(0x184)](_0x56205e(0x11d),_0x4187b9),_0x4187b9;}[_0x9f39f(0x175)](_0x11ffd7){const _0x5354ef=_0x9f39f;return this[_0x5354ef(0x177)][_0x5354ef(0x132)](_0x32180c=>_0x32180c['id']===_0x11ffd7);}[_0x9f39f(0x16d)](_0x4ba4b1){const _0x45d7e4=_0x9f39f,_0x3b0926=this[_0x45d7e4(0x175)](_0x4ba4b1);_0x3b0926&&(_0x3b0926[_0x45d7e4(0x142)](),this[_0x45d7e4(0x177)][_0x45d7e4(0x17b)](this[_0x45d7e4(0x177)][_0x45d7e4(0x12f)](_0x3b0926),0x1));}get[_0x9f39f(0x173)](){const _0x38a1f3=_0x9f39f;return this[_0x38a1f3(0x177)][this[_0x38a1f3(0x177)][_0x38a1f3(0x12b)]-0x1];}[_0x9f39f(0x123)](_0x44b468){const _0x5188aa=_0x9f39f;this[_0x5188aa(0x171)][_0x5188aa(0x123)](_0x44b468);}async[_0x9f39f(0x185)]({content:_0xe2ef1e,version:_0x7bc4b8,sessionId:_0x47d1fe,selections:_0xd146a2}){const _0xd60aa0=_0x9f39f;await this[_0xd60aa0(0x171)][_0xd60aa0(0x134)](_0xe2ef1e,_0x7bc4b8,_0x47d1fe,_0xd146a2);}[_0x9f39f(0x162)](){const _0x5b9151=_0x9f39f;return this[_0x5b9151(0x136)]?.[_0x5b9151(0x18c)]()?.[_0x5b9151(0x17d)]||'';}[_0x9f39f(0x159)](_0x4ce562){const _0x4814d5=_0x9f39f;this[_0x4814d5(0x171)][_0x4814d5(0x159)](_0x4ce562);}[_0x9f39f(0x135)](){const _0x6b8780=_0x9f39f;this[_0x6b8780(0x171)][_0x6b8780(0x135)]();}[_0x9f39f(0x126)](_0x456e3f){const _0x4253a5=_0x9f39f;this[_0x4253a5(0x171)][_0x4253a5(0x126)](_0x456e3f);}[_0x9f39f(0x11f)](_0x5d54ea){const _0x42afd8=_0x9f39f;this[_0x42afd8(0x171)][_0x42afd8(0x11f)](_0x5d54ea);}[_0x9f39f(0x145)](_0x472100,_0x4541db){const _0x203b80=_0x9f39f;this[_0x203b80(0x171)][_0x203b80(0x145)](_0x472100,_0x4541db);}[_0x9f39f(0x13d)](_0x2a63a6,_0x2a542a,_0x89e4fd){const _0x55bbc0=_0x9f39f;return this[_0x55bbc0(0x171)][_0x55bbc0(0x13d)](_0x2a63a6,_0x2a542a,_0x89e4fd);}[_0x9f39f(0x120)](_0x330f9a){const _0x2b0aa6=_0x9f39f;this[_0x2b0aa6(0x171)][_0x2b0aa6(0x120)](_0x330f9a);}[_0x9f39f(0x144)](){const _0x3e5286=_0x9f39f;this[_0x3e5286(0x12e)][_0x3e5286(0x144)]();}[_0x9f39f(0x13c)](){const _0x1aa8aa=_0x9f39f;this[_0x1aa8aa(0x12e)][_0x1aa8aa(0x13c)]();}[_0x9f39f(0x172)](){const _0xed8830=_0x9f39f;return this[_0xed8830(0x171)][_0xed8830(0x172)]();}[_0x9f39f(0x156)](){const _0x2591de=_0x9f39f;return this[_0x2591de(0x171)][_0x2591de(0x156)]();}[_0x9f39f(0x17a)](){const _0x510ebe=_0x9f39f;return this[_0x510ebe(0x171)][_0x510ebe(0x17a)]();}async[_0x9f39f(0x128)](_0x5742e3){const _0x40248f=_0x9f39f;if(!_0x5742e3)throw new _0x3be0fa(_0x40248f(0x14c),null,{'conversation':this});if(!0x1===await this[_0x40248f(0x143)][_0x40248f(0x12d)](_0x5742e3))throw new _0x3be0fa(_0x40248f(0x138),null,{'conversation':this,'model':_0x5742e3});_0x5742e3['id']!==this[_0x40248f(0x12c)]?.['id']&&(this[_0x40248f(0x12c)]=_0x5742e3,this[_0x40248f(0x12e)][_0x40248f(0x165)](),this[_0x40248f(0x184)](_0x40248f(0x168),{'selectedModel':_0x5742e3}));}}function _0x5d49(){const _0x276063=['24MCgMyW','prompt','_processMessagesToInteractions','start','ai-chat-conversation-set-model-null','ai-chat-handle-user-conversation-not-initialized','set','getMessages','addToConversationContext','message','_extractContextItems','ai-chat-handle-user-interaction-already-in-progress','setConversationTitle','4233878tHibOS','isCurrentDocumentInConversation','conversationId','toLowerCase','addSelectionToContext','30054ffpXFp','3535158UlQXmd','handleUserInteraction','687WiNGlo','webSearch','modification-delta','init','connector','getCurrentDocumentContext','createReply','error','reset','text-delta','defaultModelId','modelSelected','isStarted','hasOwn','options','type','removeInteraction','text','3076sIZFYs','load','chatContext','isCurrentDocumentInContext','lastInteraction','1785NtrDQB','getInteraction','ai-chat-conversation-already-started','interactions','capabilities','createInteraction','isSelectionInContext','splice','quickActionData','content','push','conversationStarted','attributes','fetchConversation','startConversation','contextItems','fire','updateCurrentDocumentInContext','65270LdTaOj','2462369sBCJtY','sessionId','title','assistant','role','getDocumentContext','model','reasoning','ai-chat-conversation-start-no-model-selected','interactionCreated','group','addUrlToContext','removeFromContext','ai-chat-conversation-start-failed','currentReply','addCurrentDocumentToContext','getEditor','getConversation','addFilesToContext','ai-chat-conversation-init-failed','setModel','ai-chat-conversation-init-from-id-failed','stack','length','selectedModel','isAvailable','chatCapabilities','indexOf','populateFromMessage','user','find','getPendingContextItems','updateCurrentDocument','removeSelectionFromContext','currentInteraction','stop','ai-chat-conversation-set-model-not-available','conversationInitialized','533921wxyZzK','2223EobZqI','toggleReasoning','loadSourceResources','delegate','getDefault','getAll','getCapabilitiesConfig','destroy','chatModels','toggleWebSearch','addResourceToContext','fetchConversationMessages','appendContent'];_0x5d49=function(){return _0x276063;};return _0x5d49();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5926(_0x22d111,_0x4a3ce1){var _0x3155b=_0x3155();return _0x5926=function(_0x5926d0,_0xda0fcc){_0x5926d0=_0x5926d0-0x1cd;var _0x578be1=_0x3155b[_0x5926d0];return _0x578be1;},_0x5926(_0x22d111,_0x4a3ce1);}var _0x2fb97f=_0x5926;function _0x3155(){var _0x3d87d4=['sendRequest','model','6275fSknYx','4259783OIaGaP','314586vLkdqg','get','8VXHRyh','460WikzsH','1164akBGRO','31514YhekuW','queryAssistant','6OmHpZe','connector','getCapabilitiesRequestData','getDocumentContext','mapContextItemsToRequestData','12RLLGFh','userMessage','quickActionData','356697jqqPhE','201826AFzosx','4482310BBGSXF','conversationId','capabilities','current-document','contextItems'];_0x3155=function(){return _0x3d87d4;};return _0x3155();}(function(_0x3992f6,_0x145a78){var _0x3da531=_0x5926,_0x4599c7=_0x3992f6();while(!![]){try{var _0x2ab1cb=-parseInt(_0x3da531(0x1d7))/0x1+parseInt(_0x3da531(0x1d8))/0x2*(parseInt(_0x3da531(0x1cf))/0x3)+parseInt(_0x3da531(0x1e5))/0x4*(-parseInt(_0x3da531(0x1e0))/0x5)+parseInt(_0x3da531(0x1e6))/0x6*(parseInt(_0x3da531(0x1cd))/0x7)+parseInt(_0x3da531(0x1e4))/0x8*(parseInt(_0x3da531(0x1e2))/0x9)+-parseInt(_0x3da531(0x1d9))/0xa+parseInt(_0x3da531(0x1e1))/0xb*(parseInt(_0x3da531(0x1d4))/0xc);if(_0x2ab1cb===_0x145a78)break;else _0x4599c7['push'](_0x4599c7['shift']());}catch(_0x33f23d){_0x4599c7['push'](_0x4599c7['shift']());}}}(_0x3155,0x85d48));import{AICapabilities as _0x3b58e8}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0xf7a2bd}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x327871}from'./aichatcontext.js';export class AIChatInteraction extends _0xf7a2bd{[_0x2fb97f(0x1d5)];[_0x2fb97f(0x1da)];[_0x2fb97f(0x1dd)]=new Map();[_0x2fb97f(0x1df)];[_0x2fb97f(0x1d6)];constructor(_0x2cb8e3){var _0x3d2e62=_0x2fb97f;super(_0x2cb8e3),this[_0x3d2e62(0x1da)]=_0x2cb8e3[_0x3d2e62(0x1da)],this[_0x3d2e62(0x1dd)]=_0x2cb8e3[_0x3d2e62(0x1dd)],this[_0x3d2e62(0x1db)]=_0x2cb8e3[_0x3d2e62(0x1db)],this[_0x3d2e62(0x1d5)]=_0x2cb8e3[_0x3d2e62(0x1d5)],this[_0x3d2e62(0x1df)]=_0x2cb8e3[_0x3d2e62(0x1df)],this[_0x3d2e62(0x1d6)]=_0x2cb8e3[_0x3d2e62(0x1d6)];}async[_0x2fb97f(0x1de)](){var _0x5e0416=_0x2fb97f;return this[_0x5e0416(0x1d0)][_0x5e0416(0x1ce)]({'message':this[_0x5e0416(0x1d5)],'conversationId':this[_0x5e0416(0x1da)],'parts':_0x327871[_0x5e0416(0x1d3)](this[_0x5e0416(0x1dd)]),'capabilities':_0x3b58e8[_0x5e0416(0x1d1)](this[_0x5e0416(0x1db)]),'model':this[_0x5e0416(0x1df)],'quickActionData':this[_0x5e0416(0x1d6)]});}[_0x2fb97f(0x1d2)](){var _0x51c65c=_0x2fb97f;return this[_0x51c65c(0x1dd)][_0x51c65c(0x1e3)](_0x51c65c(0x1dc));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d5152=_0x16df;(function(_0x496638,_0x9fddc6){const _0x5db30e=_0x16df,_0x4b253c=_0x496638();while(!![]){try{const _0x5960d5=parseInt(_0x5db30e(0xe6))/0x1+parseInt(_0x5db30e(0xe0))/0x2+parseInt(_0x5db30e(0xd9))/0x3*(parseInt(_0x5db30e(0xd2))/0x4)+parseInt(_0x5db30e(0xe2))/0x5+parseInt(_0x5db30e(0xdf))/0x6+-parseInt(_0x5db30e(0xde))/0x7*(-parseInt(_0x5db30e(0xda))/0x8)+-parseInt(_0x5db30e(0xe8))/0x9*(parseInt(_0x5db30e(0xe1))/0xa);if(_0x5960d5===_0x9fddc6)break;else _0x4b253c['push'](_0x4b253c['shift']());}catch(_0x430517){_0x4b253c['push'](_0x4b253c['shift']());}}}(_0x42ef,0x3eacd));import{EmitterMixin as _0x5e59d7,logWarning as _0x3b1aca}from'ckeditor5/src/utils.js';function _0x42ef(){const _0x95e1e9=['enabled','72kEpRcB','2584nVFeoZ','filter','provider','length','8148jAchrc','2729994CaUOaP','290530ottcDR','193960xmQzCv','1146450jdVxGT','sort','getDefault','find','66239BYBzeq','capabilities','630GSyRql','name','ai-chat-default-model-id-unrecognized','_connector','list','getAll','getModels','57112oCeTSL','items','isAvailable','some','_modelList','values'];_0x42ef=function(){return _0x95e1e9;};return _0x42ef();}function _0x16df(_0x25f1d6,_0x2cf459){const _0x42ef6d=_0x42ef();return _0x16df=function(_0x16df3c,_0x18ed03){_0x16df3c=_0x16df3c-0xcc;let _0x59d0ce=_0x42ef6d[_0x16df3c];return _0x59d0ce;},_0x16df(_0x25f1d6,_0x2cf459);}export class AIChatModels extends _0x5e59d7(){[_0x1d5152(0xd6)]=[];[_0x1d5152(0xce)];constructor({connector:_0x40674c}){const _0x123e2e=_0x1d5152;super(),this[_0x123e2e(0xce)]=_0x40674c;}async[_0x1d5152(0xd0)](){const _0x57d482=_0x1d5152;if(!this[_0x57d482(0xd6)][_0x57d482(0xdd)]){const _0x3bcb96=this[_0x57d482(0xce)][_0x57d482(0xd1)](),_0x4ba969=(await _0x3bcb96[_0x57d482(0xcf)]())[_0x57d482(0xd3)][_0x57d482(0xe3)]((_0x16091f,_0x19f2d2)=>{const _0xe1d2b4=_0x57d482,_0x3a6afe=Object[_0xe1d2b4(0xd7)](_0x16091f[_0xe1d2b4(0xe7)])[_0xe1d2b4(0xdb)](_0x46d006=>_0x46d006[_0xe1d2b4(0xd8)])[_0xe1d2b4(0xdd)];return Object[_0xe1d2b4(0xd7)](_0x19f2d2[_0xe1d2b4(0xe7)])[_0xe1d2b4(0xdb)](_0x208614=>_0x208614[_0xe1d2b4(0xd8)])[_0xe1d2b4(0xdd)]-_0x3a6afe;});this[_0x57d482(0xd6)]=_0x4ba969;}return this[_0x57d482(0xd6)];}async[_0x1d5152(0xe4)](_0x3da9f1){const _0x17588e=_0x1d5152,_0x1954a5=await this[_0x17588e(0xd0)]();if(!_0x1954a5[_0x17588e(0xdd)])return null;if(_0x3da9f1){const _0x1518d0=_0x1954a5[_0x17588e(0xe5)](_0x3ebd81=>_0x3ebd81['id']===_0x3da9f1);if(_0x1518d0)return _0x1518d0;_0x3b1aca(_0x17588e(0xcd),{'defaultModelId':_0x3da9f1,'fallBackModelId':_0x1954a5[0x0]['id']});}return _0x1954a5[0x0];}async[_0x1d5152(0xd4)](_0x41dd0e){const _0x1bc223=_0x1d5152;return(await this[_0x1bc223(0xd0)]())[_0x1bc223(0xd5)](_0x942012=>_0x942012[_0x1bc223(0xcc)]===_0x41dd0e[_0x1bc223(0xcc)]&&_0x942012[_0x1bc223(0xdc)]===_0x41dd0e[_0x1bc223(0xdc)]);}}
|