@ckeditor/ckeditor5-ai 47.4.0-alpha.2 → 47.4.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- 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/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/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/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.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/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.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.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3bf42f=_0x1f53;(function(_0x48eb0e,_0x25d015){const _0x5c3a53=_0x1f53,_0x43d40f=_0x48eb0e();while(!![]){try{const _0x53569e=-parseInt(_0x5c3a53(0x231))/0x1+-parseInt(_0x5c3a53(0x1bd))/0x2+-parseInt(_0x5c3a53(0x295))/0x3*(parseInt(_0x5c3a53(0x234))/0x4)+-parseInt(_0x5c3a53(0x28a))/0x5+parseInt(_0x5c3a53(0x29a))/0x6*(parseInt(_0x5c3a53(0x21f))/0x7)+-parseInt(_0x5c3a53(0x2ee))/0x8+parseInt(_0x5c3a53(0x1a3))/0x9*(parseInt(_0x5c3a53(0x1d6))/0xa);if(_0x53569e===_0x25d015)break;else _0x43d40f['push'](_0x43d40f['shift']());}catch(_0x562e24){_0x43d40f['push'](_0x43d40f['shift']());}}}(_0x24eb,0xa6898));import{ContextPlugin as _0x2146e0,Editor as _0x1042e5}from'ckeditor5/src/core.js';import{BodyCollection as _0x230456}from'ckeditor5/src/ui.js';import{CKEditorError as _0x43f47e,logError as _0x4e7c88,scrollViewportToShowTarget as _0x125cfd,uid as _0x546e7d}from'ckeditor5/src/utils.js';import{AIConnector as _0xf168d5}from'../aicore/aiconnector.js';import{AITabs as _0x1b079d}from'../aitabs/aitabs.js';import{AIChatConversation as _0x2e1a0e}from'./model/aichatconversation.js';function _0x24eb(){const _0x5cc477=['rootName','_scrollToSuggestionRange','conversationInitialized','destroy','resetMessageInput','isUploadInProgress','parse','like','ai-chat-context-unsupported-file-type','getDocumentContext','_removeAISelectionMarkers','createRange','$graveyard','rejected','7OJsJdF','ai-no-track-changes','isCurrentDocumentInContext','_handleUIUserMessage','node','AI_CHAT_UNTITLED_CONVERSATION','populateSourceResourceBalloon','partIndex','resizeTabs','removed','applySuggestion','howMany','options','Showing\x20conversation\x20history...','isPremiumPlugin','setLoadingMessage','full','attachToDom','440162NVgmKE','ai-chat-controller-mouse-over','setSelectedModel','2988sVNUkr','batch','_setIsMaximized','_balloonShowDiff','removeMarker','stopListening','slice','ai-chat-file-upload-failed','changeGroups','contextItemRemoved','showChangeInText','ai.chat.context','message','_getDocumentRangeForReplyChanges','version','stop','showDiff','disableControls','getSelectionText','getReply','setModel','ai-chat-url-upload-failed','add','index','getConversation','addFileToContext','addFeedItemUserMessage','domConverter','interactionDestroyed','clearPendingContextUI','fetchConversation','remove','accepted','end','addFilesToContext','removeSelectionFromChatContext','updateConversationTitle','_logError','viewRangeToDom','handleRemovedConversation','sourceResourcesLoaded','dislike','ai-chat-context-file-too-many-pages','isInContext','addFeedInteractionHeader','DocumentCompare','loadConversation','from','ai-request-aborted','updateFeedItemAIReplyContent','enableControls','AIConnector','getGroupId','log','view','isDocumentOperation','_createFromRanges','toggleLoadingSkeleton','interactionId','reasoningStarted','isDisabled','replyId','Liked\x20response','_updateReplyContent','contextSent','text-delta','revert','getOperations','baseVersion','showFakeVisualSelection','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','children','resourceStateChanged','getChild','contextItemLoadingEnded','AI_CHAT_ABORTED_MESSAGE','locale','AI_BALLOON_HEADER_TITLE','listenTo','setConversationTitle','new','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','finishInteraction','messageId','sendUserMessage','error','2294215zfPleh','ai.chat.models.defaultModelId','getRanges','startsWith','startConversation','updateFeedItemAIReplySuggestionPartState','toViewRange','contextItemAdded','getFirstRange','_aiEditing','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','3318biETqR','commands','AI_CHAT_CONTEXT_INVALID_DATA','_batchToChanges','uid','6728790tpSZUV','data-id','config','_removeFromContext','isModelAvailable','_applySuggestion','lastInteraction','delete','TrackChanges','setConversationContext','addFeedItemAIReply','selection','load','marker','addFeedItemAISuggestion','_updateRatings','addFeedItemStaticMessage','createConversation','sources','showNext','AI_CHAT_RESOURCE_LOAD_FAILED','range','updateFeedItemAIReplySources','ai-chat-context-unsupported-type','ai-chat-invalid-request','outdated','setChangeGroupState','AIChatController','removeFeedInteraction','addContextOptionsChanged','undo','map','createPositionFromPath','updateFeedItemAIReplySuggestionContent','interactionStarted','content','stopInteraction','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','document','history','updateCapabilities','nextSibling','AIEditing','type','getInteractionAndReplyById','toggleWebSearch','alignToTop','rejectSuggestion','ai-chat-conversation-not-found','start','_applyOperationsAsSuggestions','current-document','cloneNode','contextItem','query','toString','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','indexes','AI_CHAT_INVALID_REQUEST','set','getContentParts','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','maxOffset','AITabs','_aiConnector','closeSourceResourceBalloon','loadSourceResources','modelSelected','resize','changes','resizedTabs','replyChangeGroupStateUpdated','data','path','webSearchStarted','static','addDocumentToContext','setAddContextOptions','redo','setIsMaximized','interactionFinished','getDiff','getChildAtOffset','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','89704gJDwHb','sourcePosition','unshift','ai-chat-resource-load-failed','ai-chat-conversation-start-failed','_flushLastInteractionUI','afterInit','context','getInteraction','find','updateContent','mouseLeaveSuggestion','indexOf','reasoningFinished','contextItems','_showConversationHistory','$root','createPositionAt','markers','isLoading','_handleStartConversation','ready','addUrlToContext','focusPromptInput','AI_CHAT_UNABLE_TO_START_CONVERSATION','selectModel','_aiChatUi','anchorId','ai-chat-conversation-init-failed','sendMessage','collaboration.channelId','getChildren','handleUserInteraction','sourceId','insertSuggestion','setIsUploadInProgress','open','mouseOverSuggestion','55899rPkOMH','Undo','Disliked\x20response','mapper','uploadProgressChanged','ai-chat-source-resources-load-failed','_startConversationSafely','ai-chat-controller-no-active-conversation','ai.chat.models.displayedModels','_previewedChangeGroup','replies','editing','startInteraction','_stopLastInteraction','root','resources','_bodyCollection','capabilitiesUpdated','_aiChatModels','activateTab','state','showPrevious','_toggleWebSearch','chat','isCurrentDocumentInConversation','isStarted','995816DJievT','split','push','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','source','removeContextItem','resetConversationTitle','setContextItemLoading','detachFromDom','updateResourceState','_insertSuggestion','AIChatUI','addContextItem','addSelectionToChatContext','_toggleReasoning','model','requires','webSearchFinished','interactionCreated','AI_CHAT_CONTEXT_FILE_TOO_LARGE','getAttribute','isOfficialPlugin','dialogClosed','getDocumentData','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','2890LDKENf','toggleSuggestionDisplayMode','addOperation','uiId','hasChanges','AI_CHAT_GENERIC_ERROR','replyContentUpdated','_integrateEditor','getRoot','streaming','findIndex','ai.availableReplyActions','plugins','upsertAIChatRating','getMarkersGroup','abortPromptStream','TrackChangesEditing','addCurrentDocumentToContext','ai-chat-missing-channel-id','forEach','resource','getTransformedByOperation','get','_openBalloonFor','close','removeFromContext','modification-delta','toggleReasoning','documentContextContent','getPath','init','filter','removeSelectionFromContext','pending','ai-chat-context-form-data-size-limits-exceeded','addResourceToContext','replyCreated','clearConversationContextUI','updateCurrentDocumentInContext','scrollFeedToSuggestion','pluginName','activeConversation','ai-chat-context-file-too-large','addSelectionToContext','main','editors','resourceId','isOpen','addFeedItemError','ai-conversation-','has','length','change','ai-chat-context-invalid-data','hideFakeVisualSelection','selectedModel','startAutoScroll','applyOperation','setFeedItemRenderingStrategy'];_0x24eb=function(){return _0x5cc477;};return _0x24eb();}import{getTranslation as _0x1eefe7}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x1e4817}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x1509e4}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIModels as _0x404cc5}from'../aicore/model/aimodels.js';function _0x1f53(_0x2af64e,_0x3e56b6){const _0x24eb55=_0x24eb();return _0x1f53=function(_0x1f537b,_0x4891cc){_0x1f537b=_0x1f537b-0x17f;let _0x270ca7=_0x24eb55[_0x1f537b];return _0x270ca7;},_0x1f53(_0x2af64e,_0x3e56b6);}import{getEditorFromContext as _0x199540}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x1ae707,DATA_ID_MODEL_ATTRIBUTE as _0x289cba}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x1b792a,getOperationsFromReply as _0x1128ed}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x26de45,getMinimalSelection as _0x45e851}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x4dc44b,_DetachOperation as _0x31c239}from'ckeditor5/src/engine.js';import{findOne as _0x2eb438,getAttribute as _0x4b068a,serialize as _0xb94479,Document as _0x25a14d,findByAttribute as _0x36a78e}from'../aicore/utils/htmlparser.js';import{IconAI as _0x189519}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x574457}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0xb76b26}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x2146e0{[_0x3bf42f(0x293)];[_0x3bf42f(0x2da)];[_0x3bf42f(0x197)];[_0x3bf42f(0x1b5)];[_0x3bf42f(0x298)]=new Map();[_0x3bf42f(0x1ac)]=null;[_0x3bf42f(0x237)]=!0x1;[_0x3bf42f(0x1b3)];static get[_0x3bf42f(0x1cd)](){return[_0xf168d5,_0xb76b26,_0x1ae707];}static get[_0x3bf42f(0x1fe)](){const _0x407524=_0x3bf42f;return _0x407524(0x2b5);}static get[_0x3bf42f(0x1d2)](){return!0x0;}static get[_0x3bf42f(0x22d)](){return!0x0;}[_0x3bf42f(0x1f4)](){const _0x239480=_0x3bf42f;this[_0x239480(0x1b3)]=new _0x230456(this[_0x239480(0x184)][_0x239480(0x280)]),this[_0x239480(0x1b3)][_0x239480(0x230)](),this[_0x239480(0x2da)]=this[_0x239480(0x184)][_0x239480(0x1e2)][_0x239480(0x1ec)](_0x239480(0x267)),this[_0x239480(0x197)]=this[_0x239480(0x184)][_0x239480(0x1e2)][_0x239480(0x1ec)](_0x239480(0x1c8)),this[_0x239480(0x293)]=this[_0x239480(0x184)][_0x239480(0x1e2)][_0x239480(0x1ec)](_0x239480(0x2c4)),this[_0x239480(0x1b5)]=new _0x404cc5({'connector':this[_0x239480(0x2da)],'availableModels':this[_0x239480(0x184)][_0x239480(0x29c)][_0x239480(0x1ec)](_0x239480(0x1ab)),'defaultModelId':this[_0x239480(0x184)][_0x239480(0x29c)][_0x239480(0x1ec)](_0x239480(0x28b)),'locale':this[_0x239480(0x184)][_0x239480(0x280)]});const _0x419ec8=this[_0x239480(0x184)][_0x239480(0x1e2)][_0x239480(0x1ec)](_0x239480(0x2d9));this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x28e),()=>{const _0x251fb6=_0x239480;this[_0x251fb6(0x1a9)]();}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x288),(_0x4e414d,_0x383442)=>{const _0x26a8d4=_0x239480;this[_0x26a8d4(0x222)]({'userMessage':_0x383442});}),this[_0x239480(0x282)](_0x419ec8,_0x239480(0x2e0),(_0x44b2c4,_0x102ae0)=>{const _0x34e4c3=_0x239480;this[_0x34e4c3(0x236)](_0x102ae0);}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x227),()=>{const _0x370a6a=_0x239480;_0x419ec8[_0x370a6a(0x2de)]();}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x1e5),async()=>{const _0xf599a=_0x239480;await this[_0xf599a(0x1b0)](),await this[_0xf599a(0x182)](),this[_0xf599a(0x257)]();}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x2e6),()=>{const _0x425052=_0x239480;this[_0x425052(0x1ff)]?.[_0x425052(0x1e7)](_0x1eefe7(this[_0x425052(0x184)][_0x425052(0x280)],_0x425052(0x2d2)));}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x24d),(_0x36673d,_0x1dc2f0)=>{const _0x4c5dc1=_0x239480;this[_0x4c5dc1(0x1ff)]?.[_0x4c5dc1(0x256)](Array[_0x4c5dc1(0x263)](_0x1dc2f0));}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x193),(_0x17d44c,_0x36a815)=>{const _0x4eb451=_0x239480;this[_0x4eb451(0x1ff)]?.[_0x4eb451(0x193)](_0x36a815);}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x1f9),(_0xb1fc13,_0x348e4a)=>{const _0x3cd40a=_0x239480;this[_0x3cd40a(0x1ff)]?.[_0x3cd40a(0x1f9)](_0x348e4a[_0x3cd40a(0x1c1)],_0x348e4a[_0x3cd40a(0x1ea)]);}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x1c2),(_0x1a83c0,_0x32d526)=>{const _0x26aacc=_0x239480;this[_0x26aacc(0x29d)](_0x32d526);}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x2dc),(_0x11ae97,_0x280965)=>{const _0x3e2721=_0x239480;this[_0x3e2721(0x1ff)]?.[_0x3e2721(0x2dc)](_0x280965[_0x3e2721(0x19e)],_0x280965[_0x3e2721(0x2d0)],_0x280965[_0x3e2721(0x299)]);}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x2c7),()=>{const _0x196bf7=_0x239480;this[_0x196bf7(0x1b9)]();}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x1f1),()=>{const _0x1d4c82=_0x239480;this[_0x1d4c82(0x1cb)]();}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x196),(_0x28d744,_0x18eff4)=>{const _0x205961=_0x239480;this[_0x205961(0x1ff)]?.[_0x205961(0x248)](_0x18eff4);}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x218),(_0x32347f,{replyId:_0x31359a})=>{const _0x3e29e5=_0x239480;console[_0x3e29e5(0x269)](_0x3e29e5(0x272),_0x31359a);}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x25d),(_0x4cc108,{replyId:_0x93fe19})=>{const _0x3c61b4=_0x239480;console[_0x3c61b4(0x269)](_0x3c61b4(0x1a5),_0x93fe19);}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x19f),(_0xb02b1e,_0x19ddf8)=>{const _0x2e5763=_0x239480;this[_0x2e5763(0x184)][_0x2e5763(0x1e2)][_0x2e5763(0x1ec)](_0xb76b26)[_0x2e5763(0x1ee)](),this[_0x2e5763(0x1c7)](_0x19ddf8);}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x23e),(_0x56c601,{replyId:_0x4d685a,partIndex:_0x510866})=>{const _0x29f38b=_0x239480;this[_0x29f38b(0x237)]=this[_0x29f38b(0x197)][_0x29f38b(0x244)],this[_0x29f38b(0x1ed)](_0x4d685a,_0x510866);}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x1a2),(_0x2053f1,{replyId:_0x357602,partIndex:_0x4a1cb4})=>{const _0x3b3010=_0x239480,_0x39d0b2=this[_0x3b3010(0x241)](_0x357602,_0x4a1cb4);_0x39d0b2&&_0x3b3010(0x21d)!=_0x39d0b2[_0x3b3010(0x2af)][_0x3b3010(0x1b1)][_0x3b3010(0x211)]&&this[_0x3b3010(0x293)][_0x3b3010(0x279)]([_0x39d0b2[_0x3b3010(0x2af)]],_0x3b3010(0x232));}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x188),()=>{const _0x2bd14e=_0x239480;this[_0x2bd14e(0x293)][_0x2bd14e(0x20c)](_0x2bd14e(0x232));}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x229),(_0x26f084,_0x20a899)=>{const _0x4dbdf1=_0x239480;this[_0x4dbdf1(0x184)][_0x4dbdf1(0x1e2)][_0x4dbdf1(0x1ec)](_0xb76b26)[_0x4dbdf1(0x1ee)](),this[_0x4dbdf1(0x29f)](_0x20a899);}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x1d7),async(_0x23341c,{replyId:_0x15eca2,showDiff:_0x4b75ed})=>{const _0x3640ee=_0x239480,{reply:_0x281197}=this[_0x3640ee(0x2c6)](_0x15eca2),_0xf8573b=_0x281197[_0x3640ee(0x2d6)]({'showDiff':_0x4b75ed});await this[_0x3640ee(0x197)][_0x3640ee(0x2bb)]({'id':_0x281197['id'],'parts':_0xf8573b,'renderingStrategy':_0x3640ee(0x2e5)});}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x2c9),(_0x4fbd2e,{replyId:_0xa0b8b3,partIndex:_0x2b9019})=>{const _0x14e08c=_0x239480;this[_0x14e08c(0x1ac)]?.[_0x14e08c(0x271)]==_0xa0b8b3&&this[_0x14e08c(0x1ac)]?.[_0x14e08c(0x226)]==_0x2b9019&&this[_0x14e08c(0x184)][_0x14e08c(0x1e2)][_0x14e08c(0x1ec)](_0xb76b26)[_0x14e08c(0x1ee)]();const {reply:_0x5b6e10}=this[_0x14e08c(0x2c6)](_0xa0b8b3);_0x5b6e10[_0x14e08c(0x2b4)](_0x2b9019,_0x14e08c(0x21e)),this[_0x14e08c(0x293)][_0x14e08c(0x20c)](_0x14e08c(0x232));});}async[_0x3bf42f(0x183)](){const _0x193bf7=_0x3bf42f;this[_0x193bf7(0x184)]instanceof _0x1042e5?this[_0x193bf7(0x1dd)](this[_0x193bf7(0x184)]):this[_0x193bf7(0x282)](this[_0x193bf7(0x184)][_0x193bf7(0x203)],_0x193bf7(0x24a),(_0x3cc358,_0x563ba5)=>{const _0x7d5d68=_0x193bf7;_0x563ba5['on'](_0x7d5d68(0x192),()=>{const _0x51d5a1=_0x7d5d68;this[_0x51d5a1(0x1dd)](_0x563ba5);});}),await this[_0x193bf7(0x1a9)]();}[_0x3bf42f(0x214)](){const _0x2800f9=_0x3bf42f;this[_0x2800f9(0x1b3)][_0x2800f9(0x1c5)](),super[_0x2800f9(0x214)]();}[_0x3bf42f(0x1c7)](_0x525a53){const _0x1345ed=_0x3bf42f,_0x1dbbd4=_0x199540(this[_0x1345ed(0x184)]);if(!_0x1dbbd4[_0x1345ed(0x1e2)][_0x1345ed(0x208)](_0x1345ed(0x2a2)))throw new _0x43f47e(_0x1345ed(0x220),null);const _0x4ffb96=this[_0x1345ed(0x184)][_0x1345ed(0x1e2)][_0x1345ed(0x1ec)](_0x1345ed(0x261)),{reply:_0x4da2c1,interaction:_0x4e87c3}=this[_0x1345ed(0x2c6)](_0x525a53[_0x1345ed(0x271)]),_0x4c6929=this[_0x1345ed(0x241)](_0x525a53[_0x1345ed(0x271)],_0x525a53[_0x1345ed(0x226)]),_0x137e2=void 0x0!==_0x525a53[_0x1345ed(0x226)]?[_0x4da2c1[_0x1345ed(0x23c)][_0x525a53[_0x1345ed(0x226)]]]:_0x4da2c1[_0x1345ed(0x23c)][_0x1345ed(0x1f5)](_0x1e1a3d=>_0x1345ed(0x1f7)==_0x1e1a3d[_0x1345ed(0x1b7)]),_0x598947=_0x137e2[_0x1345ed(0x2b9)](_0x3991f9=>_0x4da2c1[_0x1345ed(0x23c)][_0x1345ed(0x189)](_0x3991f9));if(!_0x4c6929||_0x1345ed(0x21d)==_0x4c6929[_0x1345ed(0x2af)][_0x1345ed(0x1b1)][_0x1345ed(0x211)])return void _0x598947[_0x1345ed(0x1e9)](_0x39d134=>_0x4da2c1[_0x1345ed(0x2b4)](_0x39d134,_0x1345ed(0x2b3)));_0x598947[_0x1345ed(0x1e9)](_0x1131b9=>_0x4da2c1[_0x1345ed(0x2b4)](_0x1131b9,_0x1345ed(0x254)));const _0x3ad4cd=_0x1128ed({'editor':_0x1dbbd4,'reply':_0x4da2c1,'interaction':_0x4e87c3,'groups':_0x137e2,'transform':!0x0,'documentCompare':_0x4ffb96,'documentCompareOptions':{'anchor':_0x1345ed(0x202),'markDeletions':!0x0}});let _0x5b927;_0x4c6929&&this[_0x1345ed(0x212)](_0x4c6929[_0x1345ed(0x2af)]),_0x1dbbd4[_0x1345ed(0x1cc)][_0x1345ed(0x20a)](_0x214458=>{const _0x257aac=_0x1345ed;_0x5b927=_0x214458[_0x257aac(0x235)],_0x1dbbd4[_0x257aac(0x1e2)][_0x257aac(0x1ec)](_0x257aac(0x1e6))[_0x257aac(0x2cc)](_0x3ad4cd),this[_0x257aac(0x293)][_0x257aac(0x20c)](_0x257aac(0x232));}),this[_0x1345ed(0x298)][_0x1345ed(0x2d5)](_0x5b927,{'interactionId':_0x4e87c3['id'],'replyId':_0x4da2c1['id'],'indexes':_0x598947[_0x1345ed(0x23a)]()}),this[_0x1345ed(0x2a9)](_0x4da2c1);}[_0x3bf42f(0x29f)](_0x3c8399){const _0x52d6a9=_0x3bf42f,_0x19704b=_0x199540(this[_0x52d6a9(0x184)]),_0x59a619=this[_0x52d6a9(0x184)][_0x52d6a9(0x1e2)][_0x52d6a9(0x1ec)](_0x1ae707),{reply:_0x51011a,interaction:_0x3dcc9a}=this[_0x52d6a9(0x2c6)](_0x3c8399[_0x52d6a9(0x271)]),_0x11de3f=this[_0x52d6a9(0x241)](_0x3c8399[_0x52d6a9(0x271)],_0x3c8399[_0x52d6a9(0x226)]),_0x1e8e63=void 0x0!==_0x3c8399[_0x52d6a9(0x226)]?[_0x51011a[_0x52d6a9(0x23c)][_0x3c8399[_0x52d6a9(0x226)]]]:_0x51011a[_0x52d6a9(0x23c)][_0x52d6a9(0x1f5)](_0x32319d=>_0x52d6a9(0x1f7)==_0x32319d[_0x52d6a9(0x1b7)]),_0x1780c5=_0x1e8e63[_0x52d6a9(0x2b9)](_0x3c19db=>_0x51011a[_0x52d6a9(0x23c)][_0x52d6a9(0x189)](_0x3c19db));if(!_0x11de3f||_0x52d6a9(0x21d)==_0x11de3f[_0x52d6a9(0x2af)][_0x52d6a9(0x1b1)][_0x52d6a9(0x211)])return void _0x1780c5[_0x52d6a9(0x1e9)](_0x56eeda=>_0x51011a[_0x52d6a9(0x2b4)](_0x56eeda,_0x52d6a9(0x2b3)));_0x1780c5[_0x52d6a9(0x1e9)](_0x247273=>_0x51011a[_0x52d6a9(0x2b4)](_0x247273,_0x52d6a9(0x254)));const _0x11f99f=_0x1128ed({'editor':_0x19704b,'reply':_0x51011a,'interaction':_0x3dcc9a,'groups':_0x1e8e63,'transform':!0x0,'documentCompare':_0x59a619,'documentCompareOptions':{'anchor':_0x52d6a9(0x202),'markDeletions':!0x1}});let _0x14aeed;_0x11de3f&&this[_0x52d6a9(0x212)](_0x11de3f[_0x52d6a9(0x2af)]),_0x19704b[_0x52d6a9(0x1cc)][_0x52d6a9(0x20a)](_0x1b2444=>{const _0x314a41=_0x52d6a9;_0x14aeed=_0x1b2444[_0x314a41(0x235)];for(const _0x2666dd of _0x11f99f)_0x2666dd[_0x314a41(0x278)]=_0x19704b[_0x314a41(0x1cc)][_0x314a41(0x2c0)][_0x314a41(0x242)],_0x1b792a(_0x19704b,_0x2666dd),_0x1b2444[_0x314a41(0x235)][_0x314a41(0x1d8)](_0x2666dd),_0x19704b[_0x314a41(0x1cc)][_0x314a41(0x20f)](_0x2666dd);}),this[_0x52d6a9(0x298)][_0x52d6a9(0x2d5)](_0x14aeed,{'interactionId':_0x3dcc9a['id'],'replyId':_0x51011a['id'],'indexes':_0x1780c5[_0x52d6a9(0x23a)]()}),this[_0x52d6a9(0x2a9)](_0x51011a);}[_0x3bf42f(0x1ed)](_0x4acb46,_0x142b7e){const _0x44c3b1=_0x3bf42f,_0x179fc5=_0x199540(this[_0x44c3b1(0x184)]),_0x30088c=this[_0x44c3b1(0x241)](_0x4acb46,_0x142b7e),_0x46342d=this[_0x44c3b1(0x184)][_0x44c3b1(0x1e2)][_0x44c3b1(0x1ec)](_0xb76b26);if(!_0x30088c)return void _0x46342d[_0x44c3b1(0x1ee)]();const {range:_0x5b4a04,currentIndex:_0x3ed6f5}=_0x30088c;if(_0x44c3b1(0x21d)==_0x5b4a04[_0x44c3b1(0x1b1)][_0x44c3b1(0x211)]){const {reply:_0x586ee1}=this[_0x44c3b1(0x2c6)](_0x4acb46);return _0x586ee1[_0x44c3b1(0x2b4)](_0x3ed6f5,_0x44c3b1(0x2b3)),void _0x46342d[_0x44c3b1(0x1ee)]();}if(this[_0x44c3b1(0x1ac)]?.[_0x44c3b1(0x271)]==_0x4acb46&&this[_0x44c3b1(0x1ac)]?.[_0x44c3b1(0x226)]==_0x3ed6f5)return;this[_0x44c3b1(0x239)](_0x46342d),this[_0x44c3b1(0x1ac)]={'replyId':_0x4acb46,'partIndex':_0x3ed6f5};let _0x5afced=_0x179fc5[_0x44c3b1(0x29c)][_0x44c3b1(0x1ec)](_0x44c3b1(0x1e1))||[..._0x1509e4];_0x179fc5[_0x44c3b1(0x1e2)][_0x44c3b1(0x208)](_0x44c3b1(0x2a2))||(_0x5afced=_0x5afced[_0x44c3b1(0x1f5)](_0x49f4b5=>_0x44c3b1(0x19f)!=_0x49f4b5));const _0x16c00e=new _0x574457(_0x179fc5[_0x44c3b1(0x280)],{'showDiff':this[_0x44c3b1(0x237)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x44c3b1(0x22f)},'hideHeader':!0x0,'availableActions':_0x5afced},this[_0x44c3b1(0x1b3)]);this[_0x44c3b1(0x239)](_0x16c00e);const {reply:_0x53aefe}=this[_0x44c3b1(0x2c6)](_0x4acb46),_0x2d2913=_0x53aefe[_0x44c3b1(0x2d6)]({'showDiff':this[_0x44c3b1(0x237)]})[_0x44c3b1(0x1f5)](_0x1cf921=>_0x1cf921[_0x44c3b1(0x1da)]),_0x5ae01b=_0x2d2913[_0x44c3b1(0x1e0)](_0x2b12c0=>_0x2b12c0[_0x44c3b1(0x24b)]==_0x3ed6f5);if(-0x1==_0x5ae01b)return;const _0x39a6cd=_0x2d2913[_0x5ae01b],_0xf8c6f7=_0x2d2913['at']((_0x5ae01b-0x1)%_0x2d2913[_0x44c3b1(0x209)])?.[_0x44c3b1(0x24b)],_0x5ccb4d=_0x2d2913['at']((_0x5ae01b+0x1)%_0x2d2913[_0x44c3b1(0x209)])?.[_0x44c3b1(0x24b)];_0x16c00e[_0x44c3b1(0x187)]({'parts':[_0x39a6cd],'renderingStrategy':_0x44c3b1(0x2e5)});const _0x13ff32=_0x3ed6f5!==_0xf8c6f7;this[_0x44c3b1(0x212)](_0x5b4a04,!0x0),_0x46342d[_0x44c3b1(0x1a1)]({'index':_0x3ed6f5,'title':_0x1eefe7(this[_0x44c3b1(0x184)][_0x44c3b1(0x280)],_0x44c3b1(0x281),(_0x5ae01b+0x1)[_0x44c3b1(0x2d1)]()),'icon':_0x189519,'mainView':_0x16c00e,'showRotator':_0x13ff32,'showApplyButton':!0x0,'showSuggestButton':_0x179fc5[_0x44c3b1(0x1e2)][_0x44c3b1(0x208)](_0x44c3b1(0x2a2)),'ranges':[_0x5b4a04]}),this[_0x44c3b1(0x197)][_0x44c3b1(0x1fd)](_0x4acb46,_0x3ed6f5),this[_0x44c3b1(0x282)](_0x16c00e,_0x44c3b1(0x1d7),(_0x23b70,{showDiff:_0x2c89d1})=>{const _0x457957=_0x44c3b1;this[_0x457957(0x237)]=_0x2c89d1;const {reply:_0x197b4d}=this[_0x457957(0x2c6)](_0x4acb46),_0x5152e3=_0x197b4d[_0x457957(0x2d6)]({'showDiff':_0x2c89d1,'groupIndex':_0x3ed6f5});_0x16c00e[_0x457957(0x187)]({'parts':_0x5152e3,'renderingStrategy':_0x457957(0x2e5)});}),this[_0x44c3b1(0x282)](_0x46342d,_0x44c3b1(0x229),()=>{const _0xdd91cb=_0x44c3b1;this[_0xdd91cb(0x29f)]({'replyId':_0x4acb46,'partIndex':_0x3ed6f5}),_0x13ff32?this[_0xdd91cb(0x1ed)](_0x4acb46,_0x5ccb4d):_0x46342d[_0xdd91cb(0x1ee)]();}),this[_0x44c3b1(0x282)](_0x46342d,_0x44c3b1(0x19f),()=>{const _0x3c9adf=_0x44c3b1;this[_0x3c9adf(0x1c7)]({'replyId':_0x4acb46,'partIndex':_0x3ed6f5}),_0x13ff32?this[_0x3c9adf(0x1ed)](_0x4acb46,_0x5ccb4d):_0x46342d[_0x3c9adf(0x1ee)]();}),_0x13ff32&&(this[_0x44c3b1(0x282)](_0x46342d,_0x44c3b1(0x2ad),()=>{const _0x14c5c6=_0x44c3b1;this[_0x14c5c6(0x1ed)](_0x4acb46,_0x5ccb4d);}),this[_0x44c3b1(0x282)](_0x46342d,_0x44c3b1(0x1b8),()=>{const _0x4fb1c4=_0x44c3b1;this[_0x4fb1c4(0x1ed)](_0x4acb46,_0xf8c6f7);})),this[_0x44c3b1(0x282)](_0x46342d,_0x44c3b1(0x1d3),()=>{const _0x1a55ba=_0x44c3b1;this[_0x1a55ba(0x239)](_0x46342d),this[_0x1a55ba(0x239)](_0x16c00e),this[_0x1a55ba(0x1ac)]=null;});}[_0x3bf42f(0x241)](_0x3fde95,_0x43eb0a){const _0xcd7f2c=_0x3bf42f,_0x27cdf2=_0x199540(this[_0xcd7f2c(0x184)]),{reply:_0x5dd9b0,interaction:_0x46fd70}=this[_0xcd7f2c(0x2c6)](_0x3fde95),_0x256e80=_0x5dd9b0[_0xcd7f2c(0x23c)][_0xcd7f2c(0x1f5)](_0x3918ac=>_0xcd7f2c(0x1f7)==_0x3918ac[_0xcd7f2c(0x1b7)]),_0x2e88eb=_0x256e80[_0xcd7f2c(0x2b9)](_0x118327=>_0x5dd9b0[_0xcd7f2c(0x23c)][_0xcd7f2c(0x189)](_0x118327));void 0x0===_0x43eb0a&&(_0x43eb0a=_0x2e88eb[0x0]);const _0xea1a54=_0x2e88eb[_0xcd7f2c(0x189)](_0x43eb0a);if(-0x1==_0xea1a54)return null;const _0x22aa71=_0x256e80[_0xea1a54],_0x2a4544=new _0x25a14d([]),_0x5b513c=new _0x25a14d([]);for(const _0x28a40a of _0x22aa71[_0xcd7f2c(0x2df)])if(_0xcd7f2c(0x228)!=_0x28a40a[_0xcd7f2c(0x2c5)]&&_0x5b513c[_0xcd7f2c(0x27b)][_0xcd7f2c(0x1bf)](_0x28a40a[_0xcd7f2c(0x223)][_0xcd7f2c(0x2ce)](!0x0)),_0xcd7f2c(0x284)!=_0x28a40a[_0xcd7f2c(0x2c5)]){const _0xf3e563=_0x2eb438(_0x5304b4=>_0x4b068a(_0x5304b4,_0xcd7f2c(0x29b))==_0x28a40a['id'],_0x5dd9b0[_0xcd7f2c(0x1f2)],!0x0);_0x2a4544[_0xcd7f2c(0x27b)][_0xcd7f2c(0x1bf)](_0xf3e563[_0xcd7f2c(0x2ce)](!0x0));}if(0x0==_0x2a4544[_0xcd7f2c(0x27b)][_0xcd7f2c(0x209)]){if(_0x22aa71[_0xcd7f2c(0x2df)][0x0][_0xcd7f2c(0x198)]){const _0x552a86=_0x36a78e(_0xcd7f2c(0x29b),_0x22aa71[_0xcd7f2c(0x2df)][0x0][_0xcd7f2c(0x198)],_0x5dd9b0[_0xcd7f2c(0x1f2)]);_0x2a4544[_0xcd7f2c(0x27b)][_0xcd7f2c(0x17f)](_0x552a86[_0xcd7f2c(0x2ce)](!0x0)),_0x5b513c[_0xcd7f2c(0x27b)][_0xcd7f2c(0x17f)](_0x552a86[_0xcd7f2c(0x2ce)](!0x0)),_0x552a86[_0xcd7f2c(0x2c3)]&&(_0x2a4544[_0xcd7f2c(0x27b)][_0xcd7f2c(0x1bf)](_0x552a86[_0xcd7f2c(0x2c3)][_0xcd7f2c(0x2ce)](!0x0)),_0x5b513c[_0xcd7f2c(0x27b)][_0xcd7f2c(0x1bf)](_0x552a86[_0xcd7f2c(0x2c3)][_0xcd7f2c(0x2ce)](!0x0)));}else{const _0x287e6a=_0x5dd9b0[_0xcd7f2c(0x1f2)][_0xcd7f2c(0x27b)][0x0];if(!_0x287e6a)return null;_0x2a4544[_0xcd7f2c(0x27b)][_0xcd7f2c(0x1bf)](_0x287e6a[_0xcd7f2c(0x2ce)](!0x0)),_0x5b513c[_0xcd7f2c(0x27b)][_0xcd7f2c(0x1bf)](_0x287e6a[_0xcd7f2c(0x2ce)](!0x0));}}const _0x5f3573=_0x46fd70[_0xcd7f2c(0x21a)](),_0x1fd531=_0x27cdf2[_0xcd7f2c(0x2e2)][_0xcd7f2c(0x217)](_0x5f3573[_0xcd7f2c(0x2bd)],_0xcd7f2c(0x18d)),_0x50d13a=_0xb94479(_0x2a4544),_0x2bf92b=_0x27cdf2[_0xcd7f2c(0x2e2)][_0xcd7f2c(0x217)](_0x50d13a),_0x17aec2=_0x27cdf2[_0xcd7f2c(0x2e2)][_0xcd7f2c(0x217)](_0x50d13a),_0x138d77=_0x27cdf2[_0xcd7f2c(0x1cc)][_0xcd7f2c(0x18e)](_0x2bf92b,0x0),_0x3964f7=_0xb94479(_0x5b513c),_0x409ae5={'anchor':_0x138d77,'markDeletions':!0x1,'context':_0xcd7f2c(0x18d)},_0x33ed52=_0x27cdf2[_0xcd7f2c(0x1e2)][_0xcd7f2c(0x1ec)](_0x1ae707)[_0xcd7f2c(0x2eb)](_0x50d13a,_0x3964f7,_0x409ae5)[_0xcd7f2c(0x277)]();if(!_0x33ed52[_0xcd7f2c(0x209)])return null;_0x27cdf2[_0xcd7f2c(0x1cc)][_0xcd7f2c(0x20a)](_0x2215d4=>{const _0x26c462=_0xcd7f2c;for(const _0x10183d of _0x33ed52)if(_0x26c462(0x253)==_0x10183d[_0x26c462(0x2c5)]){const _0x54049e=_0x10183d[_0x26c462(0x2ef)],_0x37358f=_0x10183d[_0x26c462(0x22a)],_0x214112=new _0x31c239(_0x54049e,_0x37358f);_0x2215d4[_0x26c462(0x235)][_0x26c462(0x1d8)](_0x214112),_0x27cdf2[_0x26c462(0x1cc)][_0x26c462(0x20f)](_0x214112);}else _0x26c462(0x2a7)!==_0x10183d[_0x26c462(0x2c5)]&&(_0x10183d[_0x26c462(0x278)]=null,_0x10183d[_0x26c462(0x26b)]=!0x1,_0x2215d4[_0x26c462(0x235)][_0x26c462(0x1d8)](_0x10183d),_0x27cdf2[_0x26c462(0x1cc)][_0x26c462(0x20f)](_0x10183d));});const _0xfe6f56=_0x45e851(_0x27cdf2,_0x33ed52,_0x2bf92b);_0x26de45(_0x27cdf2[_0xcd7f2c(0x1cc)],_0xfe6f56);const _0x13eef1=_0xfe6f56[_0xcd7f2c(0x292)]()[_0xcd7f2c(0x2cb)][_0xcd7f2c(0x2e3)][_0xcd7f2c(0x23a)](),_0x130310=_0xfe6f56[_0xcd7f2c(0x292)]()[_0xcd7f2c(0x255)][_0xcd7f2c(0x2e3)][_0xcd7f2c(0x23a)](),_0x278b26=[];let _0x20aa4f=_0x2bf92b,_0x3765da=_0x17aec2;for(let _0x4971f9=0x0;_0x4971f9<_0x130310[_0xcd7f2c(0x209)];_0x4971f9++){const _0x317a91=_0x20aa4f[_0xcd7f2c(0x2d8)]-_0x130310[_0x4971f9];_0x278b26[_0x4971f9]=_0x3765da[_0xcd7f2c(0x2d8)]-_0x317a91,_0x20aa4f=_0x20aa4f[_0xcd7f2c(0x2ec)](_0x130310[_0x4971f9]),_0x3765da=_0x3765da[_0xcd7f2c(0x2ec)](_0x278b26[_0x4971f9]);}const _0x4cd895=_0x27cdf2[_0xcd7f2c(0x1cc)][_0xcd7f2c(0x21c)](_0x27cdf2[_0xcd7f2c(0x1cc)][_0xcd7f2c(0x2ba)](_0x17aec2,_0x13eef1),_0x27cdf2[_0xcd7f2c(0x1cc)][_0xcd7f2c(0x2ba)](_0x17aec2,_0x278b26)),_0x3278fe=_0x17aec2[_0xcd7f2c(0x27d)](0x0)[_0xcd7f2c(0x1d1)](_0x289cba),_0x532eee=Array[_0xcd7f2c(0x263)](_0x1fd531[_0xcd7f2c(0x19c)]())[_0xcd7f2c(0x186)](_0x163a3f=>_0x163a3f[_0xcd7f2c(0x1d1)](_0x289cba)==_0x3278fe)[_0xcd7f2c(0x1f3)](),_0x4f6ced=_0x4cd895[_0xcd7f2c(0x2cb)][_0xcd7f2c(0x2e3)][_0xcd7f2c(0x23a)](),_0x26e700=_0x4cd895[_0xcd7f2c(0x255)][_0xcd7f2c(0x2e3)][_0xcd7f2c(0x23a)]();_0x4f6ced[0x0]=_0x532eee[0x0]+_0x4f6ced[0x0],_0x26e700[0x0]=_0x532eee[0x0]+_0x26e700[0x0];let _0x3caceb=_0x27cdf2[_0xcd7f2c(0x1cc)][_0xcd7f2c(0x21c)](_0x27cdf2[_0xcd7f2c(0x1cc)][_0xcd7f2c(0x2ba)](_0x27cdf2[_0xcd7f2c(0x1cc)][_0xcd7f2c(0x2c0)][_0xcd7f2c(0x1de)](),_0x4f6ced),_0x27cdf2[_0xcd7f2c(0x1cc)][_0xcd7f2c(0x2ba)](_0x27cdf2[_0xcd7f2c(0x1cc)][_0xcd7f2c(0x2c0)][_0xcd7f2c(0x1de)](),_0x26e700));const _0x4f7add=_0x27cdf2[_0xcd7f2c(0x1cc)][_0xcd7f2c(0x2c0)][_0xcd7f2c(0x2c1)][_0xcd7f2c(0x277)](_0x5f3573[_0xcd7f2c(0x242)]);for(const _0xc066c2 of _0x4f7add)_0x3caceb=_0x4dc44b[_0xcd7f2c(0x26c)](_0x3caceb[_0xcd7f2c(0x1eb)](_0xc066c2));return{'range':_0x3caceb,'currentIndex':_0x43eb0a};}[_0x3bf42f(0x1dd)](_0x3e82e7){const _0x3250e9=_0x3bf42f;if(!_0x3e82e7[_0x3250e9(0x1e2)][_0x3250e9(0x208)](_0x3250e9(0x1a4)))return;const _0x2860c7=_0x3e82e7[_0x3250e9(0x296)][_0x3250e9(0x1ec)](_0x3250e9(0x2b8)),_0x199667=_0x3e82e7[_0x3250e9(0x296)][_0x3250e9(0x1ec)](_0x3250e9(0x2e8));this[_0x3250e9(0x282)](_0x2860c7,_0x3250e9(0x276),(_0x4d4474,_0x3b2eef,_0x3669b7)=>{const _0x21a7c1=_0x3250e9,_0xbc9a99=this[_0x21a7c1(0x298)][_0x21a7c1(0x1ec)](_0x3b2eef);if(!_0xbc9a99)return;const _0x2b45e6=this[_0x21a7c1(0x1ff)][_0x21a7c1(0x185)](_0xbc9a99[_0x21a7c1(0x26e)])[_0x21a7c1(0x247)](_0xbc9a99[_0x21a7c1(0x271)]);_0xbc9a99[_0x21a7c1(0x2d3)][_0x21a7c1(0x1e9)](_0x140d20=>_0x2b45e6[_0x21a7c1(0x2b4)](_0x140d20,_0x21a7c1(0x1f7))),this[_0x21a7c1(0x298)][_0x21a7c1(0x2a1)](_0x3b2eef),this[_0x21a7c1(0x298)][_0x21a7c1(0x2d5)](_0x3669b7,_0xbc9a99);}),this[_0x3250e9(0x282)](_0x199667,_0x3250e9(0x276),(_0x4a9ee0,_0xa03709,_0x526449)=>{const _0x33bf35=_0x3250e9,_0x18000e=this[_0x33bf35(0x298)][_0x33bf35(0x1ec)](_0xa03709);if(!_0x18000e)return;const _0x350d9f=this[_0x33bf35(0x1ff)][_0x33bf35(0x185)](_0x18000e[_0x33bf35(0x26e)])[_0x33bf35(0x247)](_0x18000e[_0x33bf35(0x271)]);_0x18000e[_0x33bf35(0x2d3)][_0x33bf35(0x1e9)](_0x26c883=>_0x350d9f[_0x33bf35(0x2b4)](_0x26c883,_0x33bf35(0x254))),this[_0x33bf35(0x298)][_0x33bf35(0x2a1)](_0xa03709),this[_0x33bf35(0x298)][_0x33bf35(0x2d5)](_0x526449,_0x18000e);});}async[_0x3bf42f(0x262)](_0x110eaf){const _0x4e8dad=_0x3bf42f;this[_0x4e8dad(0x184)][_0x4e8dad(0x1e2)][_0x4e8dad(0x1ec)](_0xb76b26)[_0x4e8dad(0x1ee)](),this[_0x4e8dad(0x197)][_0x4e8dad(0x210)](_0x4e8dad(0x2e5)),this[_0x4e8dad(0x197)][_0x4e8dad(0x26d)](!0x0),await this[_0x4e8dad(0x1b0)]();try{await this[_0x4e8dad(0x2da)][_0x4e8dad(0x252)](_0x110eaf)[_0x4e8dad(0x24c)](),await this[_0x4e8dad(0x1a9)](_0x110eaf),this[_0x4e8dad(0x258)]('\x20');const {sessionId:_0x497d35}=this[_0x4e8dad(0x293)][_0x4e8dad(0x1d4)]();await this[_0x4e8dad(0x1ff)][_0x4e8dad(0x2a6)](_0x110eaf,_0x497d35),this[_0x4e8dad(0x1ff)][_0x4e8dad(0x1bb)]()&&this[_0x4e8dad(0x1ff)][_0x4e8dad(0x1e7)](_0x1eefe7(this[_0x4e8dad(0x184)][_0x4e8dad(0x280)],_0x4e8dad(0x2d2)));}catch(_0x1f349c){this[_0x4e8dad(0x197)][_0x4e8dad(0x206)]({'errorMessage':_0x1eefe7(this[_0x4e8dad(0x184)][_0x4e8dad(0x280)],_0x4e8dad(0x2d7)),'id':_0x110eaf}),this[_0x4e8dad(0x259)](new _0x43f47e(_0x4e8dad(0x2ca),this,{'error':_0x1f349c}));}finally{this[_0x4e8dad(0x184)][_0x4e8dad(0x1e2)][_0x4e8dad(0x1ec)](_0x1b079d)[_0x4e8dad(0x26a)][_0x4e8dad(0x1b6)](_0x4e8dad(0x1ba)),this[_0x4e8dad(0x197)][_0x4e8dad(0x20e)](),this[_0x4e8dad(0x197)][_0x4e8dad(0x210)](_0x4e8dad(0x1df)),this[_0x4e8dad(0x197)][_0x4e8dad(0x26d)](!0x1);}}[_0x3bf42f(0x25b)](_0x174097){const _0x5b5cda=_0x3bf42f;this[_0x5b5cda(0x1ff)]['id']===_0x174097&&this[_0x5b5cda(0x1a9)]();}async[_0x3bf42f(0x1ca)](){const _0x527309=_0x3bf42f,_0x4d1b7d=this[_0x527309(0x293)][_0x527309(0x246)]();this[_0x527309(0x1ff)]?.[_0x527309(0x201)](_0x4d1b7d),this[_0x527309(0x1ff)]?.[_0x527309(0x1e7)](_0x1eefe7(this[_0x527309(0x184)][_0x527309(0x280)],_0x527309(0x2d2)));}[_0x3bf42f(0x257)](){const _0x226b3a=_0x3bf42f;this[_0x226b3a(0x1ff)]?.[_0x226b3a(0x1f6)]();}[_0x3bf42f(0x194)](){const _0x2f1ef4=_0x3bf42f;this[_0x2f1ef4(0x197)][_0x2f1ef4(0x194)]();}async[_0x3bf42f(0x28e)](){const _0x503217=_0x3bf42f;await this[_0x503217(0x1a9)]();}async[_0x3bf42f(0x19a)]({message:_0x388932,quickActionData:_0x22fda4}){const _0xdb0640=_0x3bf42f;await this[_0xdb0640(0x222)]({'userMessage':_0x388932,'quickActionData':_0x22fda4});}[_0x3bf42f(0x268)](){const _0x5a1e4f=_0x3bf42f,_0x3b4a55=this[_0x5a1e4f(0x184)][_0x5a1e4f(0x29c)][_0x5a1e4f(0x1ec)](_0x5a1e4f(0x19b));if(!_0x3b4a55)throw new _0x43f47e(_0x5a1e4f(0x1e8),this);return _0x3b4a55;}async[_0x3bf42f(0x1a9)](_0xba5e10){const _0x16eba3=_0x3bf42f;try{this[_0x16eba3(0x197)][_0x16eba3(0x266)](),await this[_0x16eba3(0x191)](_0xba5e10);}catch(_0x1a94e4){this[_0x16eba3(0x197)][_0x16eba3(0x206)]({'errorMessage':_0x1eefe7(this[_0x16eba3(0x184)][_0x16eba3(0x280)],_0x16eba3(0x195)),'id':_0xba5e10||_0x546e7d()}),console[_0x16eba3(0x289)](_0x1a94e4),this[_0x16eba3(0x1ff)]=void 0x0,this[_0x16eba3(0x197)][_0x16eba3(0x245)]();}}async[_0x3bf42f(0x191)](_0x689eeb){const _0x1d7276=_0x3bf42f,_0x4ab3ba=this[_0x1d7276(0x184)][_0x1d7276(0x1e2)][_0x1d7276(0x1ec)](_0xb76b26);let _0x44d84e;_0x4ab3ba[_0x1d7276(0x205)]&&_0x4ab3ba[_0x1d7276(0x1ee)](),_0x689eeb||!this[_0x1d7276(0x1ff)]?_0x44d84e=this[_0x1d7276(0x184)][_0x1d7276(0x29c)][_0x1d7276(0x1ec)](_0x1d7276(0x28b)):this[_0x1d7276(0x197)][_0x1d7276(0x29e)]&&(_0x44d84e=this[_0x1d7276(0x1ff)][_0x1d7276(0x20d)]['id']),await this[_0x1d7276(0x1b0)]();const _0x459a79=this[_0x1d7276(0x268)](),_0x3fae1d=_0x689eeb||_0x546e7d();this[_0x1d7276(0x1ff)]=new _0x2e1a0e({'connector':this[_0x1d7276(0x2da)],'chatModels':this[_0x1d7276(0x1b5)],'selectedModelId':_0x44d84e,'conversationId':_0x3fae1d,'group':_0x459a79,'getEditor':()=>_0x199540(this[_0x1d7276(0x184)])}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x213),(_0x10490b,_0x3ac826)=>{const _0x2c8534=_0x1d7276;this[_0x2c8534(0x197)][_0x2c8534(0x2ab)](_0x3ac826),this[_0x2c8534(0x197)][_0x2c8534(0x215)](),this[_0x2c8534(0x197)][_0x2c8534(0x251)](),this[_0x2c8534(0x197)][_0x2c8534(0x1fb)](),_0x689eeb||(this[_0x2c8534(0x197)][_0x2c8534(0x1c3)](),this[_0x2c8534(0x1ff)]?.[_0x2c8534(0x1e7)](_0x1eefe7(this[_0x2c8534(0x184)][_0x2c8534(0x280)],_0x2c8534(0x2d2))));}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x1a7),(_0x1e7cfa,_0x191461)=>{const _0x2037e3=_0x1d7276;this[_0x2037e3(0x197)][_0x2037e3(0x1a0)](_0x191461[_0x2037e3(0x216)]);}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x1cf),(_0x57812b,_0x999d38)=>{const _0x1387ee=_0x1d7276;this[_0x1387ee(0x197)][_0x1387ee(0x24e)](_0x999d38);}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x2e4),()=>{const _0x5bd004=_0x1d7276;this[_0x5bd004(0x197)][_0x5bd004(0x22e)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x26f),()=>{const _0x225bc2=_0x1d7276;this[_0x225bc2(0x197)][_0x225bc2(0x22e)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x1ce),(_0x4340c9,_0x5c25cd)=>{const _0x1f3827=_0x1d7276;this[_0x1f3827(0x197)][_0x1f3827(0x260)](_0x5c25cd,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x18a),(_0x55293d,_0x2328d6)=>{const _0x75109b=_0x1d7276;this[_0x75109b(0x197)][_0x75109b(0x260)](_0x2328d6,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x2bc),()=>{const _0x3f8a88=_0x1d7276;this[_0x3f8a88(0x197)][_0x3f8a88(0x1af)]();}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x2ea),async()=>{const _0x1d0d48=_0x1d7276;await this[_0x1d0d48(0x197)][_0x1d0d48(0x286)]();}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x250),(_0xaac431,_0x4eec5f)=>{const _0x52da08=_0x1d7276;this[_0x52da08(0x197)][_0x52da08(0x2b6)](_0x4eec5f['id']);}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x283),(_0x416810,_0x12392b,_0x974353)=>{const _0x1f45bc=_0x1d7276;this[_0x1f45bc(0x258)](_0x12392b,_0x974353);}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x1fa),(_0x7e3cea,_0x53b64d)=>{const _0x4c6467=_0x1d7276;_0x4c6467(0x275)===_0x53b64d[_0x4c6467(0x2c5)]?this[_0x4c6467(0x197)][_0x4c6467(0x2a4)](_0x53b64d):this[_0x4c6467(0x197)][_0x4c6467(0x2a8)](_0x53b64d);}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x1dc),async(_0x5dbb38,_0x153540)=>{const _0x2b6b6e=_0x1d7276;await this[_0x2b6b6e(0x273)]({'reply':_0x153540});}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x2e1),(_0x1febb7,{reply:_0x240bf2,index:_0xa3f156,state:_0x36eff9})=>{const _0x47b443=_0x1d7276;this[_0x47b443(0x197)][_0x47b443(0x28f)]({'id':_0x240bf2['id'],'index':_0xa3f156,'state':_0x36eff9});}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x291),(_0x380cfd,_0x1d236c)=>{const _0x3649c9=_0x1d7276;if(this[_0x3649c9(0x197)][_0x3649c9(0x1c9)](_0x1d236c[_0x3649c9(0x2cf)],_0x1d236c[_0x3649c9(0x190)]),_0x3649c9(0x2a5)===_0x1d236c[_0x3649c9(0x2cf)][_0x3649c9(0x2c5)]){const _0x390072=[..._0x199540(this[_0x3649c9(0x184)])[_0x3649c9(0x1cc)][_0x3649c9(0x2c0)][_0x3649c9(0x2a5)][_0x3649c9(0x28c)]()];this[_0x3649c9(0x293)][_0x3649c9(0x279)](_0x390072,_0x3649c9(0x207)+this[_0x3649c9(0x1ff)]?.['id']);}}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x23d),(_0x456eba,_0x2a0610)=>{const _0x2887f4=_0x1d7276;this[_0x2887f4(0x197)][_0x2887f4(0x1c2)](_0x2a0610[_0x2887f4(0x1d9)]),_0x2887f4(0x2cd)==_0x2a0610[_0x2887f4(0x1d9)]&&this[_0x2887f4(0x257)](),_0x2887f4(0x2a5)===_0x2a0610[_0x2887f4(0x2c5)]&&this[_0x2887f4(0x293)][_0x2887f4(0x20c)](_0x2887f4(0x207)+this[_0x2887f4(0x1ff)]?.['id']);}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x27e),(_0x585c83,_0x1f7ab8)=>{const _0x494ca8=_0x1d7276;this[_0x494ca8(0x197)][_0x494ca8(0x1c4)](_0x1f7ab8[_0x494ca8(0x2cf)][_0x494ca8(0x1d9)],_0x1f7ab8[_0x494ca8(0x190)]);}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x274),(_0x2fff17,_0xa08a0e)=>{const _0x1a3cc2=_0x1d7276;this[_0x1a3cc2(0x197)][_0x1a3cc2(0x2a3)](_0xa08a0e[_0x1a3cc2(0x18b)]);}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x2b7),(_0xf811f8,_0x467e0e)=>{const _0x5bc901=_0x1d7276;this[_0x5bc901(0x197)][_0x5bc901(0x2e7)](_0x467e0e[_0x5bc901(0x22b)]);}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x25c),(_0x372e88,_0x2d96b3)=>{const _0x2e1b15=_0x1d7276;this[_0x2e1b15(0x197)][_0x2e1b15(0x225)](_0x2d96b3[_0x2e1b15(0x19e)],_0x2d96b3[_0x2e1b15(0x1c1)],_0x2d96b3[_0x2e1b15(0x1b2)],_0x2d96b3[_0x2e1b15(0x299)]);}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x27c),(_0x4cd18c,_0x1f0237)=>{const _0x15da61=_0x1d7276;this[_0x15da61(0x197)][_0x15da61(0x1c6)](_0x1f0237[_0x15da61(0x19e)],_0x1f0237[_0x15da61(0x204)],_0x1f0237[_0x15da61(0x25f)]);}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x1b4),(_0x471ada,_0x2ab3a3)=>{const _0x3b10e9=_0x1d7276;this[_0x3b10e9(0x197)][_0x3b10e9(0x2c2)](_0x2ab3a3);}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x2dd),(_0x43ce7f,_0x2f163e)=>{const _0x122756=_0x1d7276;this[_0x122756(0x197)][_0x122756(0x233)](_0x2f163e[_0x122756(0x20d)],_0x2f163e[_0x122756(0x270)]);}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x289),(_0x26a07c,{error:_0x39f6a1,interactionId:_0x36fc05,fileName:_0x3b5db1,url:_0x8b9aa5,sourceId:_0x2c047e,sourceLabel:_0x5901ce})=>{const _0x13f387=_0x1d7276,_0x40adff=_0x36fc05?_0x36fc05+':'+_0x546e7d():_0x546e7d();_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x264))?this[_0x13f387(0x197)][_0x13f387(0x2aa)]({'staticMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x27f)),'id':_0x40adff}):_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x199))||_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x181))?(this[_0x13f387(0x197)][_0x13f387(0x206)]({'errorMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x195)),'id':_0x40adff}),this[_0x13f387(0x259)](_0x39f6a1)):_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x23b))?this[_0x13f387(0x197)][_0x13f387(0x206)]({'errorMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x2ed),_0x3b5db1),'id':_0x40adff}):_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x249))?this[_0x13f387(0x197)][_0x13f387(0x206)]({'errorMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x285),_0x8b9aa5),'id':_0x40adff}):_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x20b))?this[_0x13f387(0x197)][_0x13f387(0x206)]({'errorMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x297)),'id':_0x40adff}):_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x2b1))?this[_0x13f387(0x197)][_0x13f387(0x206)]({'errorMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x1d5)),'id':_0x40adff}):_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x1a8))?(_0x2c047e&&this[_0x13f387(0x197)][_0x13f387(0x2db)](_0x2c047e),this[_0x13f387(0x197)][_0x13f387(0x206)]({'errorMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x27a),_0x5901ce||_0x13f387(0x1c1)),'id':_0x40adff}),this[_0x13f387(0x259)](_0x39f6a1)):_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x180))?(this[_0x13f387(0x197)][_0x13f387(0x206)]({'errorMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x2ae)),'id':_0x40adff}),this[_0x13f387(0x259)](_0x39f6a1)):_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x2b2))?(this[_0x13f387(0x197)][_0x13f387(0x206)]({'errorMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x2d4)),'id':_0x40adff}),this[_0x13f387(0x259)](_0x39f6a1)):_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x219))?(this[_0x13f387(0x197)][_0x13f387(0x206)]({'errorMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x294)),'id':_0x40adff}),this[_0x13f387(0x259)](_0x39f6a1)):_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x200))?(this[_0x13f387(0x197)][_0x13f387(0x206)]({'errorMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x1d0)),'id':_0x40adff}),this[_0x13f387(0x259)](_0x39f6a1)):_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x25e))?(this[_0x13f387(0x197)][_0x13f387(0x206)]({'errorMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x2bf)),'id':_0x40adff}),this[_0x13f387(0x259)](_0x39f6a1)):_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x1f8))?(this[_0x13f387(0x197)][_0x13f387(0x206)]({'errorMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x1c0)),'id':_0x40adff}),this[_0x13f387(0x259)](_0x39f6a1)):(this[_0x13f387(0x197)][_0x13f387(0x206)]({'errorMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x1db)),'id':_0x40adff}),this[_0x13f387(0x259)](_0x39f6a1));}),await this[_0x1d7276(0x1ff)][_0x1d7276(0x1f4)](this[_0x1d7276(0x184)][_0x1d7276(0x29c)][_0x1d7276(0x1ec)](_0x1d7276(0x23f))),_0x689eeb||await this[_0x1d7276(0x1ff)][_0x1d7276(0x2cb)]();}async[_0x3bf42f(0x222)]({userMessage:_0x452c02,quickActionData:_0x24e355}){const _0x216cdd=_0x3bf42f;if(!this[_0x216cdd(0x1ff)])throw new _0x43f47e(_0x216cdd(0x1aa));this[_0x216cdd(0x1ff)][_0x216cdd(0x221)]()&&await this[_0x216cdd(0x1ff)][_0x216cdd(0x1fc)](this[_0x216cdd(0x293)][_0x216cdd(0x1d4)]()),this[_0x216cdd(0x1ff)]['id']&&this[_0x216cdd(0x1ff)][_0x216cdd(0x1bc)]&&await this[_0x216cdd(0x1ff)][_0x216cdd(0x19d)]({'userMessage':_0x452c02,'quickActionData':_0x24e355}),this[_0x216cdd(0x21b)]();}[_0x3bf42f(0x21b)](){const _0x53b141=_0x3bf42f,_0x427772=_0x199540(this[_0x53b141(0x184)])[_0x53b141(0x1cc)],_0x4f7463=Array[_0x53b141(0x263)](_0x427772[_0x53b141(0x18f)][_0x53b141(0x1e4)](_0x1e4817));_0x427772[_0x53b141(0x20a)](_0x215923=>{const _0x352309=_0x53b141;_0x4f7463[_0x352309(0x1e9)](_0x3a1c2a=>_0x215923[_0x352309(0x238)](_0x3a1c2a));});}[_0x3bf42f(0x18c)](){const _0x2ae066=_0x3bf42f;console[_0x2ae066(0x269)](_0x2ae066(0x22c));}[_0x3bf42f(0x236)](_0x51e775){const _0x32fab2=_0x3bf42f;this[_0x32fab2(0x197)][_0x32fab2(0x2e9)](_0x51e775);}[_0x3bf42f(0x259)](_0x3cf5f7){const _0x1b5ad7=_0x3bf42f;_0x4e7c88(_0x3cf5f7[_0x1b5ad7(0x240)]);}[_0x3bf42f(0x29d)](_0x57b6e6){const _0x36a050=_0x3bf42f;this[_0x36a050(0x1ff)]?.[_0x36a050(0x1ef)](_0x57b6e6);}[_0x3bf42f(0x1b9)](){const _0x566984=_0x3bf42f;this[_0x566984(0x1ff)]?.[_0x566984(0x2c7)]();}[_0x3bf42f(0x1cb)](){const _0x244711=_0x3bf42f;this[_0x244711(0x1ff)]?.[_0x244711(0x1f1)]();}[_0x3bf42f(0x2c6)](_0x410f4d){const _0x45ddd6=_0x3bf42f,[_0x2410da,_0x4facd3]=_0x410f4d[_0x45ddd6(0x1be)](':'),_0x3e2eaf=this[_0x45ddd6(0x1ff)][_0x45ddd6(0x185)](_0x2410da),_0x3b1a81=_0x3e2eaf[_0x45ddd6(0x247)](_0x4facd3);return{'interaction':_0x3e2eaf,'reply':_0x3b1a81};}[_0x3bf42f(0x212)](_0x44fd5a,_0x37f2db=!0x1){const _0x4e3ba5=_0x3bf42f,_0x421694=_0x199540(this[_0x4e3ba5(0x184)]),_0x1df321={'target':_0x421694[_0x4e3ba5(0x1ae)][_0x4e3ba5(0x26a)][_0x4e3ba5(0x24f)][_0x4e3ba5(0x25a)](_0x421694[_0x4e3ba5(0x1ae)][_0x4e3ba5(0x1a6)][_0x4e3ba5(0x290)](_0x44fd5a)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x37f2db};_0x37f2db&&(_0x1df321[_0x4e3ba5(0x2c8)]=!0x0),_0x125cfd(_0x1df321);}[_0x3bf42f(0x258)](_0x5deede,_0x46adf9=!0x1){const _0x35dcf1=_0x3bf42f;this[_0x35dcf1(0x197)][_0x35dcf1(0x283)](_0x5deede||_0x1eefe7(this[_0x35dcf1(0x184)][_0x35dcf1(0x280)],_0x35dcf1(0x224)),_0x46adf9);}async[_0x3bf42f(0x273)]({reply:_0x281926,renderingStrategy:_0x4eef65}){const _0x56f7db=_0x3bf42f,{id:_0x2565fd,isDone:_0x255763,type:_0x379264,parsedContent:_0x488eda}=_0x281926;if(_0x56f7db(0x1f0)===_0x379264){const _0x31c2e3=_0x281926[_0x56f7db(0x2d6)]({'showDiff':this[_0x56f7db(0x197)][_0x56f7db(0x244)]});await this[_0x56f7db(0x197)][_0x56f7db(0x2bb)]({'id':_0x2565fd,'parts':_0x31c2e3,'renderingStrategy':_0x4eef65,'isDone':_0x255763});}else _0x56f7db(0x275)===_0x379264&&await this[_0x56f7db(0x197)][_0x56f7db(0x265)]({'id':_0x2565fd,'parsedContent':_0x488eda,'renderingStrategy':_0x4eef65,'isDone':_0x255763});_0x255763&&_0x281926[_0x56f7db(0x2ac)][_0x56f7db(0x209)]>0x0&&this[_0x56f7db(0x197)][_0x56f7db(0x2b0)](_0x2565fd,_0x281926[_0x56f7db(0x2ac)]);}async[_0x3bf42f(0x1b0)](){const _0x22f5ae=_0x3bf42f,_0x2f7a80=this[_0x22f5ae(0x1ff)]?.[_0x22f5ae(0x2a0)];_0x2f7a80&&(_0x2f7a80[_0x22f5ae(0x243)](),this[_0x22f5ae(0x197)][_0x22f5ae(0x2be)](_0x2f7a80));}async[_0x3bf42f(0x182)](){const _0x1deb67=_0x3bf42f,_0x119c1c=this[_0x1deb67(0x1ff)]?.[_0x1deb67(0x2a0)];if(_0x119c1c){for await(const _0x288de4 of _0x119c1c[_0x1deb67(0x1ad)])await this[_0x1deb67(0x273)]({'reply':_0x288de4,'renderingStrategy':_0x1deb67(0x2e5)});}}[_0x3bf42f(0x2a9)](_0xb1e532){const _0x7b8818=_0x3bf42f,_0x190712={'positiveCount':_0xb1e532[_0x7b8818(0x23c)][_0x7b8818(0x1f5)](_0x1c9fce=>_0x7b8818(0x254)===_0x1c9fce[_0x7b8818(0x1b7)])[_0x7b8818(0x209)],'totalCount':_0xb1e532[_0x7b8818(0x23c)][_0x7b8818(0x209)],'modificationId':_0xb1e532['id']},_0x273e2a=this[_0x7b8818(0x1ff)][_0x7b8818(0x185)](_0xb1e532[_0x7b8818(0x26e)])[_0x7b8818(0x287)];this[_0x7b8818(0x2da)][_0x7b8818(0x1e3)](this[_0x7b8818(0x1ff)]['id'],_0x273e2a,_0x190712);}}
|
|
23
|
+
const _0x210fe3=_0x1c4e;(function(_0xfd18c8,_0x1b2323){const _0x151a91=_0x1c4e,_0x1b1735=_0xfd18c8();while(!![]){try{const _0x31ccfa=parseInt(_0x151a91(0x1f9))/0x1*(-parseInt(_0x151a91(0x19a))/0x2)+parseInt(_0x151a91(0x268))/0x3*(parseInt(_0x151a91(0x294))/0x4)+parseInt(_0x151a91(0x1d9))/0x5+parseInt(_0x151a91(0x1b2))/0x6+parseInt(_0x151a91(0x21d))/0x7+parseInt(_0x151a91(0x131))/0x8*(parseInt(_0x151a91(0x1c7))/0x9)+parseInt(_0x151a91(0x204))/0xa*(-parseInt(_0x151a91(0x24c))/0xb);if(_0x31ccfa===_0x1b2323)break;else _0x1b1735['push'](_0x1b1735['shift']());}catch(_0x5ca91a){_0x1b1735['push'](_0x1b1735['shift']());}}}(_0x4599,0xb3dfe));function _0x4599(){const _0x2fecd7=['getFirstRange','attachToDom','replyChangeGroupStateUpdated','10AbNIBE','indexOf','source','unshift','isUploadInProgress','close','startsWith','AI_BALLOON_HEADER_TITLE','removed','change','activateTab','locale','_bodyCollection','webSearchFinished','resetConversationTitle','addFeedItemAIReply','createPositionAt','AI_CHAT_CONTEXT_INVALID_DATA','load','ai-chat-conversation-not-found','setLoadingMessage','_getDocumentRangeForReplyChanges','applySuggestion','getMarkersGroup','_batchToChanges','10091697jzljEg','populateSourceResourceBalloon','index','length','children','ai.chat.models.displayedModels','$root','ai-chat-context-form-data-size-limits-exceeded','toggleLoadingSkeleton','streaming','_flushLastInteractionUI','model','content','contextSent','replies','addSelectionToChatContext','ai-chat-context-file-too-large','Liked\x20response','setFeedItemRenderingStrategy','forEach','getInteraction','addFileToContext','log','addResourceToContext','_updateRatings','batch','uploadProgressChanged','outdated','afterInit','addFeedItemAISuggestion','AI_CHAT_ABORTED_MESSAGE','push','_startConversationSafely','$graveyard','_aiChatModels','error','AIChatUI','_handleStartConversation','AI_CHAT_CONTEXT_FILE_TOO_LARGE','insertSuggestion','delete','isInContext','getPath','redo','ai.chat.models.defaultModelId','messageId','ai-chat-invalid-request','31190555Fcwhsp','rootName','resizedTabs','options','ai.availableReplyActions','showChangeInText','loadSourceResources','ai-no-track-changes','AIConnector','full','_insertSuggestion','changes','chat','ready','interactionDestroyed','rejected','updateFeedItemAIReplySuggestionPartState','requires','focusPromptInput','interactionFinished','getContentParts','disableControls','AIEditing','scrollFeedToSuggestion','selection','loadConversation','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','sourceResourcesLoaded','542673SoAjLZ','node','map','contextItemRemoved','getDiff','selectModel','removeSelectionFromContext','removeContextItem','plugins','domConverter','interactionCreated','interactionStarted','ai-chat-conversation-init-failed','isCurrentDocumentInContext','addUrlToContext','ai-chat-missing-channel-id','documentContextContent','_removeAISelectionMarkers','resizeTabs','context','find','start','replyContentUpdated','data','ai-chat-context-file-too-many-pages','rejectSuggestion','ai-chat-url-upload-failed','_handleUIUserMessage','reasoningStarted','removeFromContext','activeConversation','_balloonShowDiff','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','showFakeVisualSelection','open','_applySuggestion','stopListening','marker','_toggleWebSearch','_createFromRanges','setConversationContext','isOfficialPlugin','sourceId','setModel','4omHync','isOpen','message','TrackChanges','changeGroups','new','updateFeedItemAIReplySuggestionContent','static','ai-chat-context-unsupported-type','addFeedInteractionHeader','uid','contextItem','handleRemovedConversation','init','type','8hEHxCt','setIsMaximized','modelSelected','handleUserInteraction','startInteraction','getInteractionAndReplyById','revert','state','setIsUploadInProgress','text-delta','nextSibling','toViewRange','updateContent','cloneNode','resize','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','contextItemAdded','query','end','addContextItem','alignToTop','showNext','resetMessageInput','_removeFromContext','sources','getSelectionText','_applyOperationsAsSuggestions','addOperation','listenTo','ai.chat.context','isCurrentDocumentInConversation','baseVersion','isPremiumPlugin','editing','ai-chat-controller-no-active-conversation','capabilitiesUpdated','indexes','getOperations','add','destroy','getConversation','updateCapabilities','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','findIndex','hasChanges','upsertAIChatRating','setConversationTitle','interactionId','startConversation','config','setAddContextOptions','addDocumentToContext','reasoningFinished','pending','AI_CHAT_INVALID_REQUEST','Undo','view','mouseOverSuggestion','ai-chat-file-upload-failed','addSelectionToContext','commands','enableControls','ai-chat-conversation-start-failed','replyCreated','isLoading','get','removeSelectionFromChatContext','addCurrentDocumentToContext','partIndex','stopInteraction','undo','main','remove','updateResourceState','_stopLastInteraction','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','setContextItemLoading','markers','contextItems','range','hideFakeVisualSelection','Showing\x20conversation\x20history...','editors','AITabs','accepted','data-id','uiId','_aiConnector','Disliked\x20response','maxOffset','toString','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','like','removeMarker','isStarted','toggleReasoning','clearPendingContextUI','split','addContextOptionsChanged','addFilesToContext','current-document','abortPromptStream','toggleSuggestionDisplayMode','AI_CHAT_UNABLE_TO_START_CONVERSATION','updateConversationTitle','129820pYpiwR','TrackChangesEditing','getReply','getDocumentContext','viewRangeToDom','stop','applyOperation','AI_CHAT_UNTITLED_CONVERSATION','fetchConversation','pluginName','_logError','howMany','_previewedChangeGroup','getAttribute','selectedModel','from','sourcePosition','setChangeGroupState','ai-request-aborted','toggleWebSearch','updateFeedItemAIReplyContent','ai-chat-controller-mouse-over','parse','getTransformedByOperation','2850342BunZQX','version','createPositionFromPath','contextItemLoadingEnded','addFeedItemUserMessage','history','anchorId','isDocumentOperation','dialogClosed','collaboration.channelId','dislike','getChild','closeSourceResourceBalloon','ai-chat-context-unsupported-file-type','_setIsMaximized','removeFeedInteraction','resources','root','_openBalloonFor','webSearchStarted','addFeedItemStaticMessage','10024488XvkOxm','sendUserMessage','set','ai-conversation-','createConversation','_scrollToSuggestionRange','getRoot','getChildAtOffset','updateFeedItemAIReplySources','setSelectedModel','_aiChatUi','ai-chat-resource-load-failed','path','mapper','modification-delta','AI_CHAT_GENERIC_ERROR','getRanges','detachFromDom','6996900VBzcRD','startAutoScroll','mouseLeaveSuggestion','createRange','isDisabled','AIChatController','resourceStateChanged','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_aiEditing','lastInteraction','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','_showConversationHistory','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','getGroupId','DocumentCompare','has','clearConversationContextUI','conversationInitialized','filter','replyId','updateCurrentDocumentInContext','_toggleReasoning','_integrateEditor','isModelAvailable','document','AI_CHAT_RESOURCE_LOAD_FAILED','addFeedItemError','getDocumentData','slice','showPrevious','ai-chat-context-invalid-data','getChildren','16hTwmbm','ai-chat-source-resources-load-failed','resource','_updateReplyContent','finishInteraction','sendMessage','showDiff','resourceId'];_0x4599=function(){return _0x2fecd7;};return _0x4599();}import{ContextPlugin as _0x23d569,Editor as _0x3f2965}from'ckeditor5/src/core.js';import{BodyCollection as _0x57fe4d}from'ckeditor5/src/ui.js';import{CKEditorError as _0x37f91a,logError as _0x142f79,scrollViewportToShowTarget as _0x1f314a,uid as _0x392c34}from'ckeditor5/src/utils.js';import{AIConnector as _0x3384b8}from'../aicore/aiconnector.js';import{AITabs as _0x52fc81}from'../aitabs/aitabs.js';import{AIChatConversation as _0x504764}from'./model/aichatconversation.js';import{getTranslation as _0x565b7e}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x1c0281}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x54ab55}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIModels as _0x302020}from'../aicore/model/aimodels.js';function _0x1c4e(_0x2956ad,_0xa99eac){const _0x459926=_0x4599();return _0x1c4e=function(_0x1c4e3a,_0x3170c7){_0x1c4e3a=_0x1c4e3a-0x131;let _0xdf71b3=_0x459926[_0x1c4e3a];return _0xdf71b3;},_0x1c4e(_0x2956ad,_0xa99eac);}import{getEditorFromContext as _0x471cc3}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x1babb5,DATA_ID_MODEL_ATTRIBUTE as _0xb93237}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x59ed75,getOperationsFromReply as _0x5e8dce}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x152571,getMinimalSelection as _0x379857}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x59a3c3,_DetachOperation as _0x2b55d7}from'ckeditor5/src/engine.js';import{findOne as _0x30f55b,getAttribute as _0x140ed5,serialize as _0x3504af,Document as _0x3695c9,findByAttribute as _0x4fff82}from'../aicore/utils/htmlparser.js';import{IconAI as _0x3b812a}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x222a45}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0xcbcbb3}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x23d569{[_0x210fe3(0x1e1)];[_0x210fe3(0x188)];[_0x210fe3(0x1d1)];[_0x210fe3(0x23f)];[_0x210fe3(0x21c)]=new Map();[_0x210fe3(0x1a6)]=null;[_0x210fe3(0x287)]=!0x1;[_0x210fe3(0x210)];static get[_0x210fe3(0x25d)](){return[_0x3384b8,_0xcbcbb3,_0x1babb5];}static get[_0x210fe3(0x1a3)](){const _0x41c3b2=_0x210fe3;return _0x41c3b2(0x1de);}static get[_0x210fe3(0x291)](){return!0x0;}static get[_0x210fe3(0x151)](){return!0x0;}[_0x210fe3(0x2a1)](){const _0x360d50=_0x210fe3;this[_0x360d50(0x210)]=new _0x57fe4d(this[_0x360d50(0x27b)][_0x360d50(0x20f)]),this[_0x360d50(0x210)][_0x360d50(0x202)](),this[_0x360d50(0x188)]=this[_0x360d50(0x27b)][_0x360d50(0x270)][_0x360d50(0x172)](_0x360d50(0x254)),this[_0x360d50(0x1d1)]=this[_0x360d50(0x27b)][_0x360d50(0x270)][_0x360d50(0x172)](_0x360d50(0x241)),this[_0x360d50(0x1e1)]=this[_0x360d50(0x27b)][_0x360d50(0x270)][_0x360d50(0x172)](_0x360d50(0x262)),this[_0x360d50(0x23f)]=new _0x302020({'connector':this[_0x360d50(0x188)],'availableModels':this[_0x360d50(0x27b)][_0x360d50(0x162)][_0x360d50(0x172)](_0x360d50(0x222)),'defaultModelId':this[_0x360d50(0x27b)][_0x360d50(0x162)][_0x360d50(0x172)](_0x360d50(0x249)),'locale':this[_0x360d50(0x27b)][_0x360d50(0x20f)]});const _0x4f6952=this[_0x360d50(0x27b)][_0x360d50(0x270)][_0x360d50(0x172)](_0x360d50(0x184));this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x161),()=>{const _0x1dfb44=_0x360d50;this[_0x1dfb44(0x23d)]();}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x1c8),(_0x1f3658,_0x3ee1a5)=>{const _0x190249=_0x360d50;this[_0x190249(0x283)]({'userMessage':_0x3ee1a5});}),this[_0x360d50(0x14d)](_0x4f6952,_0x360d50(0x24e),(_0x42988e,_0x65eca7)=>{const _0x5e7e8c=_0x360d50;this[_0x5e7e8c(0x1c0)](_0x65eca7);}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x27a),()=>{const _0x392c41=_0x360d50;_0x4f6952[_0x392c41(0x13f)]();}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x196),async()=>{const _0xb2299a=_0x360d50;await this[_0xb2299a(0x17b)](),await this[_0xb2299a(0x227)](),this[_0xb2299a(0x173)]();}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x164),()=>{const _0x571233=_0x360d50;this[_0x571233(0x286)]?.[_0x571233(0x174)](_0x565b7e(this[_0x571233(0x27b)][_0x571233(0x20f)],_0x571233(0x1e0)));}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x232),(_0x945dfd,_0x3b1e71)=>{const _0x23475c=_0x360d50;this[_0x23475c(0x286)]?.[_0x23475c(0x194)](Array[_0x23475c(0x1a9)](_0x3b1e71));}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x276),(_0x3cb159,_0x4d8ec4)=>{const _0x1b348c=_0x360d50;this[_0x1b348c(0x286)]?.[_0x1b348c(0x276)](_0x4d8ec4);}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x234),(_0x5802c7,_0x44c1b9)=>{const _0x6d5c73=_0x360d50;this[_0x6d5c73(0x286)]?.[_0x6d5c73(0x234)](_0x44c1b9[_0x6d5c73(0x206)],_0x44c1b9[_0x6d5c73(0x1fb)]);}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x26f),(_0x48ca53,_0x41803e)=>{const _0x363f29=_0x360d50;this[_0x363f29(0x148)](_0x41803e);}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x252),(_0x200318,_0x17f9ae)=>{const _0x47a4be=_0x360d50;this[_0x47a4be(0x286)]?.[_0x47a4be(0x252)](_0x17f9ae[_0x47a4be(0x292)],_0x17f9ae[_0x47a4be(0x142)],_0x17f9ae[_0x47a4be(0x29e)]);}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x1ad),()=>{const _0x2d2547=_0x360d50;this[_0x2d2547(0x28e)]();}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x190),()=>{const _0x5e4597=_0x360d50;this[_0x5e4597(0x1ee)]();}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x26d),(_0x3da7e8,_0x2b4505)=>{const _0x5d0759=_0x360d50;this[_0x5d0759(0x286)]?.[_0x5d0759(0x293)](_0x2b4505);}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x18d),(_0x33f426,{replyId:_0x585ad0})=>{const _0x5abf67=_0x360d50;console[_0x5abf67(0x233)](_0x5abf67(0x22e),_0x585ad0);}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x1bc),(_0x4501d2,{replyId:_0x57b3d})=>{const _0x1fa090=_0x360d50;console[_0x1fa090(0x233)](_0x1fa090(0x189),_0x57b3d);}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x244),(_0x260452,_0x5c6049)=>{const _0x5560f5=_0x360d50;this[_0x5560f5(0x27b)][_0x5560f5(0x270)][_0x5560f5(0x172)](_0xcbcbb3)[_0x5560f5(0x209)](),this[_0x5560f5(0x256)](_0x5c6049);}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x251),(_0x31d86b,{replyId:_0x286d93,partIndex:_0x5144e5})=>{const _0x34d159=_0x360d50;this[_0x34d159(0x287)]=this[_0x34d159(0x1d1)][_0x34d159(0x1ff)],this[_0x34d159(0x1c4)](_0x286d93,_0x5144e5);}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x16a),(_0x280858,{replyId:_0x3cbc99,partIndex:_0x162626})=>{const _0x2ebd0e=_0x360d50,_0x56ba16=this[_0x2ebd0e(0x219)](_0x3cbc99,_0x162626);_0x56ba16&&_0x2ebd0e(0x23e)!=_0x56ba16[_0x2ebd0e(0x180)][_0x2ebd0e(0x1c3)][_0x2ebd0e(0x24d)]&&this[_0x2ebd0e(0x1e1)][_0x2ebd0e(0x289)]([_0x56ba16[_0x2ebd0e(0x180)]],_0x2ebd0e(0x1af));}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x1db),()=>{const _0x1b34f9=_0x360d50;this[_0x1b34f9(0x1e1)][_0x1b34f9(0x181)](_0x1b34f9(0x1af));}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x21a),(_0x531c7d,_0x33ddb3)=>{const _0x104d26=_0x360d50;this[_0x104d26(0x27b)][_0x104d26(0x270)][_0x104d26(0x172)](_0xcbcbb3)[_0x104d26(0x209)](),this[_0x104d26(0x28b)](_0x33ddb3);}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x197),async(_0x5cd5c2,{replyId:_0x219a5d,showDiff:_0xfd42a8})=>{const _0x18676f=_0x360d50,{reply:_0xf7eaa2}=this[_0x18676f(0x136)](_0x219a5d),_0x8836d5=_0xf7eaa2[_0x18676f(0x260)]({'showDiff':_0xfd42a8});await this[_0x18676f(0x1d1)][_0x18676f(0x29a)]({'id':_0xf7eaa2['id'],'parts':_0x8836d5,'renderingStrategy':_0x18676f(0x29b)});}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x281),(_0x354a0,{replyId:_0x400446,partIndex:_0x1f9cc2})=>{const _0x7bb879=_0x360d50;this[_0x7bb879(0x1a6)]?.[_0x7bb879(0x1ec)]==_0x400446&&this[_0x7bb879(0x1a6)]?.[_0x7bb879(0x175)]==_0x1f9cc2&&this[_0x7bb879(0x27b)][_0x7bb879(0x270)][_0x7bb879(0x172)](_0xcbcbb3)[_0x7bb879(0x209)]();const {reply:_0x4da814}=this[_0x7bb879(0x136)](_0x400446);_0x4da814[_0x7bb879(0x1ab)](_0x1f9cc2,_0x7bb879(0x25b)),this[_0x7bb879(0x1e1)][_0x7bb879(0x181)](_0x7bb879(0x1af));});}async[_0x210fe3(0x239)](){const _0x3c5c80=_0x210fe3;this[_0x3c5c80(0x27b)]instanceof _0x3f2965?this[_0x3c5c80(0x1ef)](this[_0x3c5c80(0x27b)]):this[_0x3c5c80(0x14d)](this[_0x3c5c80(0x27b)][_0x3c5c80(0x183)],_0x3c5c80(0x157),(_0x48cb25,_0x142311)=>{const _0xd18366=_0x3c5c80;_0x142311['on'](_0xd18366(0x259),()=>{const _0x5c4239=_0xd18366;this[_0x5c4239(0x1ef)](_0x142311);});}),await this[_0x3c5c80(0x23d)]();}[_0x210fe3(0x158)](){const _0x199fb1=_0x210fe3;this[_0x199fb1(0x210)][_0x199fb1(0x1d8)](),super[_0x199fb1(0x158)]();}[_0x210fe3(0x256)](_0x44180f){const _0x5e3e57=_0x210fe3,_0x15a11a=_0x471cc3(this[_0x5e3e57(0x27b)]);if(!_0x15a11a[_0x5e3e57(0x270)][_0x5e3e57(0x1e8)](_0x5e3e57(0x297)))throw new _0x37f91a(_0x5e3e57(0x253),null);const _0x31d15c=this[_0x5e3e57(0x27b)][_0x5e3e57(0x270)][_0x5e3e57(0x172)](_0x5e3e57(0x1e7)),{reply:_0x16adbf,interaction:_0x165827}=this[_0x5e3e57(0x136)](_0x44180f[_0x5e3e57(0x1ec)]),_0x4ef466=this[_0x5e3e57(0x219)](_0x44180f[_0x5e3e57(0x1ec)],_0x44180f[_0x5e3e57(0x175)]),_0x4bacad=void 0x0!==_0x44180f[_0x5e3e57(0x175)]?[_0x16adbf[_0x5e3e57(0x298)][_0x44180f[_0x5e3e57(0x175)]]]:_0x16adbf[_0x5e3e57(0x298)][_0x5e3e57(0x1eb)](_0x45c1b6=>_0x5e3e57(0x166)==_0x45c1b6[_0x5e3e57(0x138)]),_0x42143a=_0x4bacad[_0x5e3e57(0x26a)](_0x422d7f=>_0x16adbf[_0x5e3e57(0x298)][_0x5e3e57(0x205)](_0x422d7f));if(!_0x4ef466||_0x5e3e57(0x23e)==_0x4ef466[_0x5e3e57(0x180)][_0x5e3e57(0x1c3)][_0x5e3e57(0x24d)])return void _0x42143a[_0x5e3e57(0x230)](_0x295db1=>_0x16adbf[_0x5e3e57(0x1ab)](_0x295db1,_0x5e3e57(0x238)));_0x42143a[_0x5e3e57(0x230)](_0x240c54=>_0x16adbf[_0x5e3e57(0x1ab)](_0x240c54,_0x5e3e57(0x185)));const _0x3c03fc=_0x5e8dce({'editor':_0x15a11a,'reply':_0x16adbf,'interaction':_0x165827,'groups':_0x4bacad,'transform':!0x0,'documentCompare':_0x31d15c,'documentCompareOptions':{'anchor':_0x5e3e57(0x178),'markDeletions':!0x0}});let _0x31a02d;_0x4ef466&&this[_0x5e3e57(0x1cc)](_0x4ef466[_0x5e3e57(0x180)]),_0x15a11a[_0x5e3e57(0x228)][_0x5e3e57(0x20d)](_0x4ed2d9=>{const _0x1afaee=_0x5e3e57;_0x31a02d=_0x4ed2d9[_0x1afaee(0x236)],_0x15a11a[_0x1afaee(0x270)][_0x1afaee(0x172)](_0x1afaee(0x19b))[_0x1afaee(0x14b)](_0x3c03fc),this[_0x1afaee(0x1e1)][_0x1afaee(0x181)](_0x1afaee(0x1af));}),this[_0x5e3e57(0x21c)][_0x5e3e57(0x1c9)](_0x31a02d,{'interactionId':_0x165827['id'],'replyId':_0x16adbf['id'],'indexes':_0x42143a[_0x5e3e57(0x1f5)]()}),this[_0x5e3e57(0x235)](_0x16adbf);}[_0x210fe3(0x28b)](_0x3e2b06){const _0x304080=_0x210fe3,_0x725de9=_0x471cc3(this[_0x304080(0x27b)]),_0x7f4ffa=this[_0x304080(0x27b)][_0x304080(0x270)][_0x304080(0x172)](_0x1babb5),{reply:_0x4c664e,interaction:_0x321374}=this[_0x304080(0x136)](_0x3e2b06[_0x304080(0x1ec)]),_0x2375f1=this[_0x304080(0x219)](_0x3e2b06[_0x304080(0x1ec)],_0x3e2b06[_0x304080(0x175)]),_0x2905f3=void 0x0!==_0x3e2b06[_0x304080(0x175)]?[_0x4c664e[_0x304080(0x298)][_0x3e2b06[_0x304080(0x175)]]]:_0x4c664e[_0x304080(0x298)][_0x304080(0x1eb)](_0x1684d7=>_0x304080(0x166)==_0x1684d7[_0x304080(0x138)]),_0x52ba7a=_0x2905f3[_0x304080(0x26a)](_0x2e1949=>_0x4c664e[_0x304080(0x298)][_0x304080(0x205)](_0x2e1949));if(!_0x2375f1||_0x304080(0x23e)==_0x2375f1[_0x304080(0x180)][_0x304080(0x1c3)][_0x304080(0x24d)])return void _0x52ba7a[_0x304080(0x230)](_0x1de4be=>_0x4c664e[_0x304080(0x1ab)](_0x1de4be,_0x304080(0x238)));_0x52ba7a[_0x304080(0x230)](_0xe797b4=>_0x4c664e[_0x304080(0x1ab)](_0xe797b4,_0x304080(0x185)));const _0x1da2b9=_0x5e8dce({'editor':_0x725de9,'reply':_0x4c664e,'interaction':_0x321374,'groups':_0x2905f3,'transform':!0x0,'documentCompare':_0x7f4ffa,'documentCompareOptions':{'anchor':_0x304080(0x178),'markDeletions':!0x1}});let _0x2d341c;_0x2375f1&&this[_0x304080(0x1cc)](_0x2375f1[_0x304080(0x180)]),_0x725de9[_0x304080(0x228)][_0x304080(0x20d)](_0x4d82ba=>{const _0x138fe8=_0x304080;_0x2d341c=_0x4d82ba[_0x138fe8(0x236)];for(const _0x3384cd of _0x1da2b9)_0x3384cd[_0x138fe8(0x150)]=_0x725de9[_0x138fe8(0x228)][_0x138fe8(0x1f1)][_0x138fe8(0x1b3)],_0x59ed75(_0x725de9,_0x3384cd),_0x4d82ba[_0x138fe8(0x236)][_0x138fe8(0x14c)](_0x3384cd),_0x725de9[_0x138fe8(0x228)][_0x138fe8(0x1a0)](_0x3384cd);}),this[_0x304080(0x21c)][_0x304080(0x1c9)](_0x2d341c,{'interactionId':_0x321374['id'],'replyId':_0x4c664e['id'],'indexes':_0x52ba7a[_0x304080(0x1f5)]()}),this[_0x304080(0x235)](_0x4c664e);}[_0x210fe3(0x1c4)](_0x223034,_0x4d9719){const _0x7847e3=_0x210fe3,_0x4f1356=_0x471cc3(this[_0x7847e3(0x27b)]),_0x80b936=this[_0x7847e3(0x219)](_0x223034,_0x4d9719),_0xf46b79=this[_0x7847e3(0x27b)][_0x7847e3(0x270)][_0x7847e3(0x172)](_0xcbcbb3);if(!_0x80b936)return void _0xf46b79[_0x7847e3(0x209)]();const {range:_0x49e7ff,currentIndex:_0x20579f}=_0x80b936;if(_0x7847e3(0x23e)==_0x49e7ff[_0x7847e3(0x1c3)][_0x7847e3(0x24d)]){const {reply:_0x5178e3}=this[_0x7847e3(0x136)](_0x223034);return _0x5178e3[_0x7847e3(0x1ab)](_0x20579f,_0x7847e3(0x238)),void _0xf46b79[_0x7847e3(0x209)]();}if(this[_0x7847e3(0x1a6)]?.[_0x7847e3(0x1ec)]==_0x223034&&this[_0x7847e3(0x1a6)]?.[_0x7847e3(0x175)]==_0x20579f)return;this[_0x7847e3(0x28c)](_0xf46b79),this[_0x7847e3(0x1a6)]={'replyId':_0x223034,'partIndex':_0x20579f};let _0x47be92=_0x4f1356[_0x7847e3(0x162)][_0x7847e3(0x172)](_0x7847e3(0x250))||[..._0x54ab55];_0x4f1356[_0x7847e3(0x270)][_0x7847e3(0x1e8)](_0x7847e3(0x297))||(_0x47be92=_0x47be92[_0x7847e3(0x1eb)](_0x2b4181=>_0x7847e3(0x244)!=_0x2b4181));const _0x384c97=new _0x222a45(_0x4f1356[_0x7847e3(0x20f)],{'showDiff':this[_0x7847e3(0x287)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x7847e3(0x255)},'hideHeader':!0x0,'availableActions':_0x47be92},this[_0x7847e3(0x210)]);this[_0x7847e3(0x28c)](_0x384c97);const {reply:_0x412538}=this[_0x7847e3(0x136)](_0x223034),_0x1f54b2=_0x412538[_0x7847e3(0x260)]({'showDiff':this[_0x7847e3(0x287)]})[_0x7847e3(0x1eb)](_0x19d350=>_0x19d350[_0x7847e3(0x15d)]),_0x2f603b=_0x1f54b2[_0x7847e3(0x15c)](_0x1e5a30=>_0x1e5a30[_0x7847e3(0x21f)]==_0x20579f);if(-0x1==_0x2f603b)return;const _0x19ae38=_0x1f54b2[_0x2f603b],_0x2e74d9=_0x1f54b2['at']((_0x2f603b-0x1)%_0x1f54b2[_0x7847e3(0x220)])?.[_0x7847e3(0x21f)],_0x30b1c3=_0x1f54b2['at']((_0x2f603b+0x1)%_0x1f54b2[_0x7847e3(0x220)])?.[_0x7847e3(0x21f)];_0x384c97[_0x7847e3(0x13d)]({'parts':[_0x19ae38],'renderingStrategy':_0x7847e3(0x29b)});const _0x20c4cc=_0x20579f!==_0x2e74d9;this[_0x7847e3(0x1cc)](_0x49e7ff,!0x0),_0xf46b79[_0x7847e3(0x28a)]({'index':_0x20579f,'title':_0x565b7e(this[_0x7847e3(0x27b)][_0x7847e3(0x20f)],_0x7847e3(0x20b),(_0x2f603b+0x1)[_0x7847e3(0x18b)]()),'icon':_0x3b812a,'mainView':_0x384c97,'showRotator':_0x20c4cc,'showApplyButton':!0x0,'showSuggestButton':_0x4f1356[_0x7847e3(0x270)][_0x7847e3(0x1e8)](_0x7847e3(0x297)),'ranges':[_0x49e7ff]}),this[_0x7847e3(0x1d1)][_0x7847e3(0x263)](_0x223034,_0x20579f),this[_0x7847e3(0x14d)](_0x384c97,_0x7847e3(0x197),(_0x20fb60,{showDiff:_0x2608dd})=>{const _0x453e4b=_0x7847e3;this[_0x453e4b(0x287)]=_0x2608dd;const {reply:_0x3b1d7b}=this[_0x453e4b(0x136)](_0x223034),_0xbfe4c6=_0x3b1d7b[_0x453e4b(0x260)]({'showDiff':_0x2608dd,'groupIndex':_0x20579f});_0x384c97[_0x453e4b(0x13d)]({'parts':_0xbfe4c6,'renderingStrategy':_0x453e4b(0x29b)});}),this[_0x7847e3(0x14d)](_0xf46b79,_0x7847e3(0x21a),()=>{const _0x2a5c9a=_0x7847e3;this[_0x2a5c9a(0x28b)]({'replyId':_0x223034,'partIndex':_0x20579f}),_0x20c4cc?this[_0x2a5c9a(0x1c4)](_0x223034,_0x30b1c3):_0xf46b79[_0x2a5c9a(0x209)]();}),this[_0x7847e3(0x14d)](_0xf46b79,_0x7847e3(0x244),()=>{const _0x293f8d=_0x7847e3;this[_0x293f8d(0x256)]({'replyId':_0x223034,'partIndex':_0x20579f}),_0x20c4cc?this[_0x293f8d(0x1c4)](_0x223034,_0x30b1c3):_0xf46b79[_0x293f8d(0x209)]();}),_0x20c4cc&&(this[_0x7847e3(0x14d)](_0xf46b79,_0x7847e3(0x146),()=>{const _0x3edcc8=_0x7847e3;this[_0x3edcc8(0x1c4)](_0x223034,_0x30b1c3);}),this[_0x7847e3(0x14d)](_0xf46b79,_0x7847e3(0x1f6),()=>{const _0x6a58fc=_0x7847e3;this[_0x6a58fc(0x1c4)](_0x223034,_0x2e74d9);})),this[_0x7847e3(0x14d)](_0xf46b79,_0x7847e3(0x1ba),()=>{const _0xee669=_0x7847e3;this[_0xee669(0x28c)](_0xf46b79),this[_0xee669(0x28c)](_0x384c97),this[_0xee669(0x1a6)]=null;});}[_0x210fe3(0x219)](_0x2365f7,_0x203dc2){const _0x53a1b3=_0x210fe3,_0x217a4a=_0x471cc3(this[_0x53a1b3(0x27b)]),{reply:_0x4a6e59,interaction:_0x47d1b1}=this[_0x53a1b3(0x136)](_0x2365f7),_0x3db31e=_0x4a6e59[_0x53a1b3(0x298)][_0x53a1b3(0x1eb)](_0x2bb95a=>_0x53a1b3(0x166)==_0x2bb95a[_0x53a1b3(0x138)]),_0x33818d=_0x3db31e[_0x53a1b3(0x26a)](_0x51f0d2=>_0x4a6e59[_0x53a1b3(0x298)][_0x53a1b3(0x205)](_0x51f0d2));void 0x0===_0x203dc2&&(_0x203dc2=_0x33818d[0x0]);const _0xd4517c=_0x33818d[_0x53a1b3(0x205)](_0x203dc2);if(-0x1==_0xd4517c)return null;const _0x55f1b4=_0x3db31e[_0xd4517c],_0x331da3=new _0x3695c9([]),_0xc90d7d=new _0x3695c9([]);for(const _0x436a03 of _0x55f1b4[_0x53a1b3(0x257)])if(_0x53a1b3(0x20c)!=_0x436a03[_0x53a1b3(0x2a2)]&&_0xc90d7d[_0x53a1b3(0x221)][_0x53a1b3(0x23c)](_0x436a03[_0x53a1b3(0x269)][_0x53a1b3(0x13e)](!0x0)),_0x53a1b3(0x299)!=_0x436a03[_0x53a1b3(0x2a2)]){const _0x464ea3=_0x30f55b(_0x38e73e=>_0x140ed5(_0x38e73e,_0x53a1b3(0x186))==_0x436a03['id'],_0x4a6e59[_0x53a1b3(0x278)],!0x0);_0x331da3[_0x53a1b3(0x221)][_0x53a1b3(0x23c)](_0x464ea3[_0x53a1b3(0x13e)](!0x0));}if(0x0==_0x331da3[_0x53a1b3(0x221)][_0x53a1b3(0x220)]){if(_0x55f1b4[_0x53a1b3(0x257)][0x0][_0x53a1b3(0x1b8)]){const _0xa3b67a=_0x4fff82(_0x53a1b3(0x186),_0x55f1b4[_0x53a1b3(0x257)][0x0][_0x53a1b3(0x1b8)],_0x4a6e59[_0x53a1b3(0x278)]);_0x331da3[_0x53a1b3(0x221)][_0x53a1b3(0x207)](_0xa3b67a[_0x53a1b3(0x13e)](!0x0)),_0xc90d7d[_0x53a1b3(0x221)][_0x53a1b3(0x207)](_0xa3b67a[_0x53a1b3(0x13e)](!0x0)),_0xa3b67a[_0x53a1b3(0x13b)]&&(_0x331da3[_0x53a1b3(0x221)][_0x53a1b3(0x23c)](_0xa3b67a[_0x53a1b3(0x13b)][_0x53a1b3(0x13e)](!0x0)),_0xc90d7d[_0x53a1b3(0x221)][_0x53a1b3(0x23c)](_0xa3b67a[_0x53a1b3(0x13b)][_0x53a1b3(0x13e)](!0x0)));}else{const _0x262877=_0x4a6e59[_0x53a1b3(0x278)][_0x53a1b3(0x221)][0x0];if(!_0x262877)return null;_0x331da3[_0x53a1b3(0x221)][_0x53a1b3(0x23c)](_0x262877[_0x53a1b3(0x13e)](!0x0)),_0xc90d7d[_0x53a1b3(0x221)][_0x53a1b3(0x23c)](_0x262877[_0x53a1b3(0x13e)](!0x0));}}const _0x2fcd91=_0x47d1b1[_0x53a1b3(0x19d)](),_0x4d2dcb=_0x217a4a[_0x53a1b3(0x27f)][_0x53a1b3(0x1b0)](_0x2fcd91[_0x53a1b3(0x229)],_0x53a1b3(0x223)),_0x4859f1=_0x3504af(_0x331da3),_0x13229d=_0x217a4a[_0x53a1b3(0x27f)][_0x53a1b3(0x1b0)](_0x4859f1),_0x463438=_0x217a4a[_0x53a1b3(0x27f)][_0x53a1b3(0x1b0)](_0x4859f1),_0x47f040=_0x217a4a[_0x53a1b3(0x228)][_0x53a1b3(0x214)](_0x13229d,0x0),_0x118af0=_0x3504af(_0xc90d7d),_0x3c1857={'anchor':_0x47f040,'markDeletions':!0x1,'context':_0x53a1b3(0x223)},_0x195aa3=_0x217a4a[_0x53a1b3(0x270)][_0x53a1b3(0x172)](_0x1babb5)[_0x53a1b3(0x26c)](_0x4859f1,_0x118af0,_0x3c1857)[_0x53a1b3(0x156)]();if(!_0x195aa3[_0x53a1b3(0x220)])return null;_0x217a4a[_0x53a1b3(0x228)][_0x53a1b3(0x20d)](_0x421e7c=>{const _0xf3e467=_0x53a1b3;for(const _0x1622fc of _0x195aa3)if(_0xf3e467(0x179)==_0x1622fc[_0xf3e467(0x2a2)]){const _0x1f3851=_0x1622fc[_0xf3e467(0x1aa)],_0x3964bf=_0x1622fc[_0xf3e467(0x1a5)],_0x1f01f6=new _0x2b55d7(_0x1f3851,_0x3964bf);_0x421e7c[_0xf3e467(0x236)][_0xf3e467(0x14c)](_0x1f01f6),_0x217a4a[_0xf3e467(0x228)][_0xf3e467(0x1a0)](_0x1f01f6);}else _0xf3e467(0x28d)!==_0x1622fc[_0xf3e467(0x2a2)]&&(_0x1622fc[_0xf3e467(0x150)]=null,_0x1622fc[_0xf3e467(0x1b9)]=!0x1,_0x421e7c[_0xf3e467(0x236)][_0xf3e467(0x14c)](_0x1622fc),_0x217a4a[_0xf3e467(0x228)][_0xf3e467(0x1a0)](_0x1622fc));});const _0x53e56c=_0x379857(_0x217a4a,_0x195aa3,_0x13229d);_0x152571(_0x217a4a[_0x53a1b3(0x228)],_0x53e56c);const _0x4dc97d=_0x53e56c[_0x53a1b3(0x201)]()[_0x53a1b3(0x27d)][_0x53a1b3(0x1d3)][_0x53a1b3(0x1f5)](),_0x5400ca=_0x53e56c[_0x53a1b3(0x201)]()[_0x53a1b3(0x143)][_0x53a1b3(0x1d3)][_0x53a1b3(0x1f5)](),_0xbbcb53=[];let _0x2bc7a1=_0x13229d,_0x4f52d5=_0x463438;for(let _0x35451e=0x0;_0x35451e<_0x5400ca[_0x53a1b3(0x220)];_0x35451e++){const _0x4149b9=_0x2bc7a1[_0x53a1b3(0x18a)]-_0x5400ca[_0x35451e];_0xbbcb53[_0x35451e]=_0x4f52d5[_0x53a1b3(0x18a)]-_0x4149b9,_0x2bc7a1=_0x2bc7a1[_0x53a1b3(0x1ce)](_0x5400ca[_0x35451e]),_0x4f52d5=_0x4f52d5[_0x53a1b3(0x1ce)](_0xbbcb53[_0x35451e]);}const _0x37c4dc=_0x217a4a[_0x53a1b3(0x228)][_0x53a1b3(0x1dc)](_0x217a4a[_0x53a1b3(0x228)][_0x53a1b3(0x1b4)](_0x463438,_0x4dc97d),_0x217a4a[_0x53a1b3(0x228)][_0x53a1b3(0x1b4)](_0x463438,_0xbbcb53)),_0xd15fdc=_0x463438[_0x53a1b3(0x1bd)](0x0)[_0x53a1b3(0x1a7)](_0xb93237),_0x567ae8=Array[_0x53a1b3(0x1a9)](_0x4d2dcb[_0x53a1b3(0x1f8)]())[_0x53a1b3(0x27c)](_0x20584a=>_0x20584a[_0x53a1b3(0x1a7)](_0xb93237)==_0xd15fdc)[_0x53a1b3(0x247)](),_0x53c876=_0x37c4dc[_0x53a1b3(0x27d)][_0x53a1b3(0x1d3)][_0x53a1b3(0x1f5)](),_0x55bbbe=_0x37c4dc[_0x53a1b3(0x143)][_0x53a1b3(0x1d3)][_0x53a1b3(0x1f5)]();_0x53c876[0x0]=_0x567ae8[0x0]+_0x53c876[0x0],_0x55bbbe[0x0]=_0x567ae8[0x0]+_0x55bbbe[0x0];let _0x4b1f1f=_0x217a4a[_0x53a1b3(0x228)][_0x53a1b3(0x1dc)](_0x217a4a[_0x53a1b3(0x228)][_0x53a1b3(0x1b4)](_0x217a4a[_0x53a1b3(0x228)][_0x53a1b3(0x1f1)][_0x53a1b3(0x1cd)](),_0x53c876),_0x217a4a[_0x53a1b3(0x228)][_0x53a1b3(0x1b4)](_0x217a4a[_0x53a1b3(0x228)][_0x53a1b3(0x1f1)][_0x53a1b3(0x1cd)](),_0x55bbbe));const _0x23b1f3=_0x217a4a[_0x53a1b3(0x228)][_0x53a1b3(0x1f1)][_0x53a1b3(0x1b7)][_0x53a1b3(0x156)](_0x2fcd91[_0x53a1b3(0x1b3)]);for(const _0x20e959 of _0x23b1f3)_0x4b1f1f=_0x59a3c3[_0x53a1b3(0x28f)](_0x4b1f1f[_0x53a1b3(0x1b1)](_0x20e959));return{'range':_0x4b1f1f,'currentIndex':_0x203dc2};}[_0x210fe3(0x1ef)](_0x471a2e){const _0xad1f73=_0x210fe3;if(!_0x471a2e[_0xad1f73(0x270)][_0xad1f73(0x1e8)](_0xad1f73(0x168)))return;const _0x49d746=_0x471a2e[_0xad1f73(0x16d)][_0xad1f73(0x172)](_0xad1f73(0x177)),_0x29fd80=_0x471a2e[_0xad1f73(0x16d)][_0xad1f73(0x172)](_0xad1f73(0x248));this[_0xad1f73(0x14d)](_0x49d746,_0xad1f73(0x137),(_0x2890a1,_0x3191c4,_0x8c4205)=>{const _0x28816e=_0xad1f73,_0x4ee20b=this[_0x28816e(0x21c)][_0x28816e(0x172)](_0x3191c4);if(!_0x4ee20b)return;const _0x15a202=this[_0x28816e(0x286)][_0x28816e(0x231)](_0x4ee20b[_0x28816e(0x160)])[_0x28816e(0x19c)](_0x4ee20b[_0x28816e(0x1ec)]);_0x4ee20b[_0x28816e(0x155)][_0x28816e(0x230)](_0xfc81e0=>_0x15a202[_0x28816e(0x1ab)](_0xfc81e0,_0x28816e(0x166))),this[_0x28816e(0x21c)][_0x28816e(0x245)](_0x3191c4),this[_0x28816e(0x21c)][_0x28816e(0x1c9)](_0x8c4205,_0x4ee20b);}),this[_0xad1f73(0x14d)](_0x29fd80,_0xad1f73(0x137),(_0x5cc453,_0x32dd38,_0xd524d0)=>{const _0x58c842=_0xad1f73,_0x14b269=this[_0x58c842(0x21c)][_0x58c842(0x172)](_0x32dd38);if(!_0x14b269)return;const _0x5e1812=this[_0x58c842(0x286)][_0x58c842(0x231)](_0x14b269[_0x58c842(0x160)])[_0x58c842(0x19c)](_0x14b269[_0x58c842(0x1ec)]);_0x14b269[_0x58c842(0x155)][_0x58c842(0x230)](_0x6c2979=>_0x5e1812[_0x58c842(0x1ab)](_0x6c2979,_0x58c842(0x185))),this[_0x58c842(0x21c)][_0x58c842(0x245)](_0x32dd38),this[_0x58c842(0x21c)][_0x58c842(0x1c9)](_0xd524d0,_0x14b269);});}async[_0x210fe3(0x265)](_0x187fab){const _0x30580d=_0x210fe3;this[_0x30580d(0x27b)][_0x30580d(0x270)][_0x30580d(0x172)](_0xcbcbb3)[_0x30580d(0x209)](),this[_0x30580d(0x1d1)][_0x30580d(0x22f)](_0x30580d(0x29b)),this[_0x30580d(0x1d1)][_0x30580d(0x225)](!0x0),await this[_0x30580d(0x17b)]();try{await this[_0x30580d(0x188)][_0x30580d(0x1a2)](_0x187fab)[_0x30580d(0x159)](),await this[_0x30580d(0x23d)](_0x187fab),this[_0x30580d(0x199)]('\x20');const {sessionId:_0x391de7}=this[_0x30580d(0x1e1)][_0x30580d(0x1f4)]();await this[_0x30580d(0x286)][_0x30580d(0x216)](_0x187fab,_0x391de7),this[_0x30580d(0x286)][_0x30580d(0x14f)]()&&this[_0x30580d(0x286)][_0x30580d(0x174)](_0x565b7e(this[_0x30580d(0x27b)][_0x30580d(0x20f)],_0x30580d(0x1e0)));}catch(_0x456b7b){this[_0x30580d(0x1d1)][_0x30580d(0x1f3)]({'errorMessage':_0x565b7e(this[_0x30580d(0x27b)][_0x30580d(0x20f)],_0x30580d(0x15b)),'id':_0x187fab}),this[_0x30580d(0x1a4)](new _0x37f91a(_0x30580d(0x217),this,{'error':_0x456b7b}));}finally{this[_0x30580d(0x27b)][_0x30580d(0x270)][_0x30580d(0x172)](_0x52fc81)[_0x30580d(0x169)][_0x30580d(0x20e)](_0x30580d(0x258)),this[_0x30580d(0x1d1)][_0x30580d(0x1da)](),this[_0x30580d(0x1d1)][_0x30580d(0x22f)](_0x30580d(0x226)),this[_0x30580d(0x1d1)][_0x30580d(0x225)](!0x1);}}[_0x210fe3(0x2a0)](_0x126211){const _0x4e2ec5=_0x210fe3;this[_0x4e2ec5(0x286)]['id']===_0x126211&&this[_0x4e2ec5(0x23d)]();}async[_0x210fe3(0x22c)](){const _0x2c434f=_0x210fe3,_0x547e6b=this[_0x2c434f(0x1e1)][_0x2c434f(0x14a)]();this[_0x2c434f(0x286)]?.[_0x2c434f(0x16c)](_0x547e6b),this[_0x2c434f(0x286)]?.[_0x2c434f(0x174)](_0x565b7e(this[_0x2c434f(0x27b)][_0x2c434f(0x20f)],_0x2c434f(0x1e0)));}[_0x210fe3(0x173)](){const _0x53f9f1=_0x210fe3;this[_0x53f9f1(0x286)]?.[_0x53f9f1(0x26e)]();}[_0x210fe3(0x25e)](){const _0x18b917=_0x210fe3;this[_0x18b917(0x1d1)][_0x18b917(0x25e)]();}async[_0x210fe3(0x161)](){const _0x3cc7d2=_0x210fe3;await this[_0x3cc7d2(0x23d)]();}async[_0x210fe3(0x1fe)]({message:_0x7e86a,quickActionData:_0x24777b}){const _0x341a6f=_0x210fe3;await this[_0x341a6f(0x283)]({'userMessage':_0x7e86a,'quickActionData':_0x24777b});}[_0x210fe3(0x1e6)](){const _0x500725=_0x210fe3,_0x30b382=this[_0x500725(0x27b)][_0x500725(0x162)][_0x500725(0x172)](_0x500725(0x1bb));if(!_0x30b382)throw new _0x37f91a(_0x500725(0x277),this);return _0x30b382;}async[_0x210fe3(0x23d)](_0x16c08c){const _0x2b6302=_0x210fe3;try{this[_0x2b6302(0x1d1)][_0x2b6302(0x16e)](),await this[_0x2b6302(0x242)](_0x16c08c);}catch(_0x46a7cd){this[_0x2b6302(0x1d1)][_0x2b6302(0x1f3)]({'errorMessage':_0x565b7e(this[_0x2b6302(0x27b)][_0x2b6302(0x20f)],_0x2b6302(0x198)),'id':_0x16c08c||_0x392c34()}),console[_0x2b6302(0x240)](_0x46a7cd),this[_0x2b6302(0x286)]=void 0x0,this[_0x2b6302(0x1d1)][_0x2b6302(0x261)]();}}async[_0x210fe3(0x242)](_0x42b8cd){const _0x36c8b1=_0x210fe3,_0x6b13d5=this[_0x36c8b1(0x27b)][_0x36c8b1(0x270)][_0x36c8b1(0x172)](_0xcbcbb3);let _0x5ceaf9;_0x6b13d5[_0x36c8b1(0x295)]&&_0x6b13d5[_0x36c8b1(0x209)](),_0x42b8cd||!this[_0x36c8b1(0x286)]?_0x5ceaf9=this[_0x36c8b1(0x27b)][_0x36c8b1(0x162)][_0x36c8b1(0x172)](_0x36c8b1(0x249)):this[_0x36c8b1(0x1d1)][_0x36c8b1(0x1f0)]&&(_0x5ceaf9=this[_0x36c8b1(0x286)][_0x36c8b1(0x1a8)]['id']),await this[_0x36c8b1(0x17b)]();const _0x8cdc9=this[_0x36c8b1(0x1e6)](),_0xe06907=_0x42b8cd||_0x392c34();this[_0x36c8b1(0x286)]=new _0x504764({'connector':this[_0x36c8b1(0x188)],'chatModels':this[_0x36c8b1(0x23f)],'selectedModelId':_0x5ceaf9,'conversationId':_0xe06907,'group':_0x8cdc9,'getEditor':()=>_0x471cc3(this[_0x36c8b1(0x27b)])}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x1ea),(_0xbcc2fc,_0x2e260b)=>{const _0x54605e=_0x36c8b1;this[_0x54605e(0x1d1)][_0x54605e(0x1cb)](_0x2e260b),this[_0x54605e(0x1d1)][_0x54605e(0x147)](),this[_0x54605e(0x1d1)][_0x54605e(0x191)](),this[_0x54605e(0x1d1)][_0x54605e(0x1e9)](),_0x42b8cd||(this[_0x54605e(0x1d1)][_0x54605e(0x212)](),this[_0x54605e(0x286)]?.[_0x54605e(0x174)](_0x565b7e(this[_0x54605e(0x27b)][_0x54605e(0x20f)],_0x54605e(0x1e0))));}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x237),(_0x3f6b68,_0x239502)=>{const _0x558ea5=_0x36c8b1;this[_0x558ea5(0x1d1)][_0x558ea5(0x139)](_0x239502[_0x558ea5(0x208)]);}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x272),(_0x3ec328,_0xd14228)=>{const _0x1f2d40=_0x36c8b1;this[_0x1f2d40(0x1d1)][_0x1f2d40(0x1b6)](_0xd14228);}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x1c5),()=>{const _0x1a5389=_0x36c8b1;this[_0x1a5389(0x1d1)][_0x1a5389(0x218)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x284),()=>{const _0x38a303=_0x36c8b1;this[_0x38a303(0x1d1)][_0x38a303(0x218)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x211),(_0x2837cb,_0xd842b1)=>{const _0x55ffb7=_0x36c8b1;this[_0x55ffb7(0x1d1)][_0x55ffb7(0x29d)](_0xd842b1,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x165),(_0x471ad1,_0x2bae10)=>{const _0xd32c2b=_0x36c8b1;this[_0xd32c2b(0x1d1)][_0xd32c2b(0x29d)](_0x2bae10,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x273),()=>{const _0x50be3e=_0x36c8b1;this[_0x50be3e(0x1d1)][_0x50be3e(0x135)]();}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x25f),async()=>{const _0x2eab9b=_0x36c8b1;await this[_0x2eab9b(0x1d1)][_0x2eab9b(0x1fd)]();}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x25a),(_0x10bbd3,_0x1c0c7e)=>{const _0x4f1be5=_0x36c8b1;this[_0x4f1be5(0x1d1)][_0x4f1be5(0x1c1)](_0x1c0c7e['id']);}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x15f),(_0x333bd7,_0x4b9370,_0xbc94c7)=>{const _0x8dcdab=_0x36c8b1;this[_0x8dcdab(0x199)](_0x4b9370,_0xbc94c7);}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x170),(_0x1b1f89,_0x36b87f)=>{const _0x3a33c7=_0x36c8b1;_0x3a33c7(0x13a)===_0x36b87f[_0x3a33c7(0x2a2)]?this[_0x3a33c7(0x1d1)][_0x3a33c7(0x213)](_0x36b87f):this[_0x3a33c7(0x1d1)][_0x3a33c7(0x23a)](_0x36b87f);}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x27e),async(_0x4f11cb,_0x5337a3)=>{const _0x418c89=_0x36c8b1;await this[_0x418c89(0x1fc)]({'reply':_0x5337a3});}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x203),(_0x3d3bc6,{reply:_0x2e6321,index:_0x4f1455,state:_0x4ef51d})=>{const _0x286717=_0x36c8b1;this[_0x286717(0x1d1)][_0x286717(0x25c)]({'id':_0x2e6321['id'],'index':_0x4f1455,'state':_0x4ef51d});}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x141),(_0x239848,_0x1a392d)=>{const _0x43ca73=_0x36c8b1;if(this[_0x43ca73(0x1d1)][_0x43ca73(0x144)](_0x1a392d[_0x43ca73(0x29f)],_0x1a392d[_0x43ca73(0x171)]),_0x43ca73(0x264)===_0x1a392d[_0x43ca73(0x29f)][_0x43ca73(0x2a2)]){const _0x312ae0=[..._0x471cc3(this[_0x43ca73(0x27b)])[_0x43ca73(0x228)][_0x43ca73(0x1f1)][_0x43ca73(0x264)][_0x43ca73(0x1d7)]()];this[_0x43ca73(0x1e1)][_0x43ca73(0x289)](_0x312ae0,_0x43ca73(0x1ca)+this[_0x43ca73(0x286)]?.['id']);}}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x26b),(_0x14583b,_0x23f1ff)=>{const _0x9087b6=_0x36c8b1;this[_0x9087b6(0x1d1)][_0x9087b6(0x26f)](_0x23f1ff[_0x9087b6(0x187)]),_0x9087b6(0x195)==_0x23f1ff[_0x9087b6(0x187)]&&this[_0x9087b6(0x173)](),_0x9087b6(0x264)===_0x23f1ff[_0x9087b6(0x2a2)]&&this[_0x9087b6(0x1e1)][_0x9087b6(0x181)](_0x9087b6(0x1ca)+this[_0x9087b6(0x286)]?.['id']);}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x1b5),(_0x2d4bdc,_0x34092b)=>{const _0x3be9d5=_0x36c8b1;this[_0x3be9d5(0x1d1)][_0x3be9d5(0x17d)](_0x34092b[_0x3be9d5(0x29f)][_0x3be9d5(0x187)],_0x34092b[_0x3be9d5(0x171)]);}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x22a),(_0x1c6132,_0xa1867f)=>{const _0x4dfe6b=_0x36c8b1;this[_0x4dfe6b(0x1d1)][_0x4dfe6b(0x290)](_0xa1867f[_0x4dfe6b(0x17f)]);}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x193),(_0x2c5ed8,_0x4a0044)=>{const _0x32c2ed=_0x36c8b1;this[_0x32c2ed(0x1d1)][_0x32c2ed(0x163)](_0x4a0044[_0x32c2ed(0x24f)]);}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x267),(_0x5ad753,_0x5e9ba3)=>{const _0x50a03e=_0x36c8b1;this[_0x50a03e(0x1d1)][_0x50a03e(0x21e)](_0x5e9ba3[_0x50a03e(0x292)],_0x5e9ba3[_0x50a03e(0x206)],_0x5e9ba3[_0x50a03e(0x1c2)],_0x5e9ba3[_0x50a03e(0x29e)]);}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x1df),(_0x3f3395,_0x274cec)=>{const _0x3344e5=_0x36c8b1;this[_0x3344e5(0x1d1)][_0x3344e5(0x17a)](_0x274cec[_0x3344e5(0x292)],_0x274cec[_0x3344e5(0x200)],_0x274cec[_0x3344e5(0x246)]);}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x154),(_0x11e118,_0x362ff7)=>{const _0x6ea0b9=_0x36c8b1;this[_0x6ea0b9(0x1d1)][_0x6ea0b9(0x15a)](_0x362ff7);}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x133),(_0x1a1b20,_0x2d6278)=>{const _0x307d83=_0x36c8b1;this[_0x307d83(0x1d1)][_0x307d83(0x1d0)](_0x2d6278[_0x307d83(0x1a8)],_0x2d6278[_0x307d83(0x1dd)]);}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x240),(_0x1304c8,{error:_0xadc2ce,interactionId:_0x5b92b5,fileName:_0x3adc0e,url:_0xc7eebd,sourceId:_0x64f780,sourceLabel:_0xf406bb})=>{const _0x4320dc=_0x36c8b1,_0x5bae04=_0x5b92b5?_0x5b92b5+':'+_0x392c34():_0x392c34();_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x1ac))?this[_0x4320dc(0x1d1)][_0x4320dc(0x1c6)]({'staticMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x23b)),'id':_0x5bae04}):_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x274))||_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x16f))?(this[_0x4320dc(0x1d1)][_0x4320dc(0x1f3)]({'errorMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x198)),'id':_0x5bae04}),this[_0x4320dc(0x1a4)](_0xadc2ce)):_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x16b))?this[_0x4320dc(0x1d1)][_0x4320dc(0x1f3)]({'errorMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x288),_0x3adc0e),'id':_0x5bae04}):_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x282))?this[_0x4320dc(0x1d1)][_0x4320dc(0x1f3)]({'errorMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x17c),_0xc7eebd),'id':_0x5bae04}):_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x1f7))?this[_0x4320dc(0x1d1)][_0x4320dc(0x1f3)]({'errorMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x215)),'id':_0x5bae04}):_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x29c))?this[_0x4320dc(0x1d1)][_0x4320dc(0x1f3)]({'errorMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x1e5)),'id':_0x5bae04}):_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x1fa))?(_0x64f780&&this[_0x4320dc(0x1d1)][_0x4320dc(0x1be)](_0x64f780),this[_0x4320dc(0x1d1)][_0x4320dc(0x1f3)]({'errorMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x1e3),_0xf406bb||_0x4320dc(0x206)),'id':_0x5bae04}),this[_0x4320dc(0x1a4)](_0xadc2ce)):_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x1d2))?(this[_0x4320dc(0x1d1)][_0x4320dc(0x1f3)]({'errorMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x1f2)),'id':_0x5bae04}),this[_0x4320dc(0x1a4)](_0xadc2ce)):_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x24b))?(this[_0x4320dc(0x1d1)][_0x4320dc(0x1f3)]({'errorMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x167)),'id':_0x5bae04}),this[_0x4320dc(0x1a4)](_0xadc2ce)):_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x1bf))?(this[_0x4320dc(0x1d1)][_0x4320dc(0x1f3)]({'errorMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x140)),'id':_0x5bae04}),this[_0x4320dc(0x1a4)](_0xadc2ce)):_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x22d))?(this[_0x4320dc(0x1d1)][_0x4320dc(0x1f3)]({'errorMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x243)),'id':_0x5bae04}),this[_0x4320dc(0x1a4)](_0xadc2ce)):_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x280))?(this[_0x4320dc(0x1d1)][_0x4320dc(0x1f3)]({'errorMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x18c)),'id':_0x5bae04}),this[_0x4320dc(0x1a4)](_0xadc2ce)):_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x224))?(this[_0x4320dc(0x1d1)][_0x4320dc(0x1f3)]({'errorMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x266)),'id':_0x5bae04}),this[_0x4320dc(0x1a4)](_0xadc2ce)):(this[_0x4320dc(0x1d1)][_0x4320dc(0x1f3)]({'errorMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x1d6)),'id':_0x5bae04}),this[_0x4320dc(0x1a4)](_0xadc2ce));}),await this[_0x36c8b1(0x286)][_0x36c8b1(0x2a1)](this[_0x36c8b1(0x27b)][_0x36c8b1(0x162)][_0x36c8b1(0x172)](_0x36c8b1(0x14e))),_0x42b8cd||await this[_0x36c8b1(0x286)][_0x36c8b1(0x27d)]();}async[_0x210fe3(0x283)]({userMessage:_0x23c819,quickActionData:_0x24f9aa}){const _0x35ca7b=_0x210fe3;if(!this[_0x35ca7b(0x286)])throw new _0x37f91a(_0x35ca7b(0x153));this[_0x35ca7b(0x286)][_0x35ca7b(0x275)]()&&await this[_0x35ca7b(0x286)][_0x35ca7b(0x1ed)](this[_0x35ca7b(0x1e1)][_0x35ca7b(0x1f4)]()),this[_0x35ca7b(0x286)]['id']&&this[_0x35ca7b(0x286)][_0x35ca7b(0x18f)]&&await this[_0x35ca7b(0x286)][_0x35ca7b(0x134)]({'userMessage':_0x23c819,'quickActionData':_0x24f9aa}),this[_0x35ca7b(0x279)]();}[_0x210fe3(0x279)](){const _0x1e38e1=_0x210fe3,_0x47d905=_0x471cc3(this[_0x1e38e1(0x27b)])[_0x1e38e1(0x228)],_0x305d4a=Array[_0x1e38e1(0x1a9)](_0x47d905[_0x1e38e1(0x17e)][_0x1e38e1(0x21b)](_0x1c0281));_0x47d905[_0x1e38e1(0x20d)](_0x33bda6=>{const _0x64380d=_0x1e38e1;_0x305d4a[_0x64380d(0x230)](_0x2fd4eb=>_0x33bda6[_0x64380d(0x18e)](_0x2fd4eb));});}[_0x210fe3(0x1e4)](){const _0x1a7a3a=_0x210fe3;console[_0x1a7a3a(0x233)](_0x1a7a3a(0x182));}[_0x210fe3(0x1c0)](_0x16d662){const _0x42ea26=_0x210fe3;this[_0x42ea26(0x1d1)][_0x42ea26(0x132)](_0x16d662);}[_0x210fe3(0x1a4)](_0x1a67e2){const _0x41725f=_0x210fe3;_0x142f79(_0x1a67e2[_0x41725f(0x296)]);}[_0x210fe3(0x148)](_0x43dc03){const _0xbf6ade=_0x210fe3;this[_0xbf6ade(0x286)]?.[_0xbf6ade(0x285)](_0x43dc03);}[_0x210fe3(0x28e)](){const _0x3bec27=_0x210fe3;this[_0x3bec27(0x286)]?.[_0x3bec27(0x1ad)]();}[_0x210fe3(0x1ee)](){const _0x151fab=_0x210fe3;this[_0x151fab(0x286)]?.[_0x151fab(0x190)]();}[_0x210fe3(0x136)](_0x8bafbe){const _0x1f5b1a=_0x210fe3,[_0x5c8424,_0x3c57a2]=_0x8bafbe[_0x1f5b1a(0x192)](':'),_0x103281=this[_0x1f5b1a(0x286)][_0x1f5b1a(0x231)](_0x5c8424),_0x339626=_0x103281[_0x1f5b1a(0x19c)](_0x3c57a2);return{'interaction':_0x103281,'reply':_0x339626};}[_0x210fe3(0x1cc)](_0x48b418,_0x3cb61f=!0x1){const _0x376e2d=_0x210fe3,_0x479a69=_0x471cc3(this[_0x376e2d(0x27b)]),_0x271d33={'target':_0x479a69[_0x376e2d(0x152)][_0x376e2d(0x169)][_0x376e2d(0x271)][_0x376e2d(0x19e)](_0x479a69[_0x376e2d(0x152)][_0x376e2d(0x1d4)][_0x376e2d(0x13c)](_0x48b418)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x3cb61f};_0x3cb61f&&(_0x271d33[_0x376e2d(0x145)]=!0x0),_0x1f314a(_0x271d33);}[_0x210fe3(0x199)](_0x38c765,_0x11f22b=!0x1){const _0x2b2780=_0x210fe3;this[_0x2b2780(0x1d1)][_0x2b2780(0x15f)](_0x38c765||_0x565b7e(this[_0x2b2780(0x27b)][_0x2b2780(0x20f)],_0x2b2780(0x1a1)),_0x11f22b);}async[_0x210fe3(0x1fc)]({reply:_0x4c98bd,renderingStrategy:_0x5da955}){const _0x5cb157=_0x210fe3,{id:_0x2a5c5d,isDone:_0xdf0a7e,type:_0x3ab2f3,parsedContent:_0x137426}=_0x4c98bd;if(_0x5cb157(0x1d5)===_0x3ab2f3){const _0x2f9988=_0x4c98bd[_0x5cb157(0x260)]({'showDiff':this[_0x5cb157(0x1d1)][_0x5cb157(0x1ff)]});await this[_0x5cb157(0x1d1)][_0x5cb157(0x29a)]({'id':_0x2a5c5d,'parts':_0x2f9988,'renderingStrategy':_0x5da955,'isDone':_0xdf0a7e});}else _0x5cb157(0x13a)===_0x3ab2f3&&await this[_0x5cb157(0x1d1)][_0x5cb157(0x1ae)]({'id':_0x2a5c5d,'parsedContent':_0x137426,'renderingStrategy':_0x5da955,'isDone':_0xdf0a7e});_0xdf0a7e&&_0x4c98bd[_0x5cb157(0x149)][_0x5cb157(0x220)]>0x0&&this[_0x5cb157(0x1d1)][_0x5cb157(0x1cf)](_0x2a5c5d,_0x4c98bd[_0x5cb157(0x149)]);}async[_0x210fe3(0x17b)](){const _0x48bea3=_0x210fe3,_0x298ae1=this[_0x48bea3(0x286)]?.[_0x48bea3(0x1e2)];_0x298ae1&&(_0x298ae1[_0x48bea3(0x19f)](),this[_0x48bea3(0x1d1)][_0x48bea3(0x176)](_0x298ae1));}async[_0x210fe3(0x227)](){const _0x17d558=_0x210fe3,_0x185fb9=this[_0x17d558(0x286)]?.[_0x17d558(0x1e2)];if(_0x185fb9){for await(const _0x4c252e of _0x185fb9[_0x17d558(0x22b)])await this[_0x17d558(0x1fc)]({'reply':_0x4c252e,'renderingStrategy':_0x17d558(0x29b)});}}[_0x210fe3(0x235)](_0x652cac){const _0x43dbb7=_0x210fe3,_0x2445b2={'positiveCount':_0x652cac[_0x43dbb7(0x298)][_0x43dbb7(0x1eb)](_0x3ffdff=>_0x43dbb7(0x185)===_0x3ffdff[_0x43dbb7(0x138)])[_0x43dbb7(0x220)],'totalCount':_0x652cac[_0x43dbb7(0x298)][_0x43dbb7(0x220)],'modificationId':_0x652cac['id']},_0x3930d0=this[_0x43dbb7(0x286)][_0x43dbb7(0x231)](_0x652cac[_0x43dbb7(0x160)])[_0x43dbb7(0x24a)];this[_0x43dbb7(0x188)][_0x43dbb7(0x15e)](this[_0x43dbb7(0x286)]['id'],_0x3930d0,_0x2445b2);}}
|
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5b7ac7=_0x5879;(function(_0xef6f3,_0x3f5d4f){const _0x31e4d9=_0x5879,_0x1b0d50=_0xef6f3();while(!![]){try{const _0x22f68d=-parseInt(_0x31e4d9(0xe2))/0x1*(-parseInt(_0x31e4d9(0xaf))/0x2)+-parseInt(_0x31e4d9(0xf7))/0x3+-parseInt(_0x31e4d9(0xf5))/0x4*(-parseInt(_0x31e4d9(0xd9))/0x5)+-parseInt(_0x31e4d9(0xcc))/0x6*(parseInt(_0x31e4d9(0xfd))/0x7)+-parseInt(_0x31e4d9(0x8a))/0x8+-parseInt(_0x31e4d9(0xde))/0x9*(-parseInt(_0x31e4d9(0xfa))/0xa)+parseInt(_0x31e4d9(0xb9))/0xb*(parseInt(_0x31e4d9(0xa9))/0xc);if(_0x22f68d===_0x3f5d4f)break;else _0x1b0d50['push'](_0x1b0d50['shift']());}catch(_0x1b314e){_0x1b0d50['push'](_0x1b0d50['shift']());}}}(_0x5353,0xbf70b));import{ContextPlugin as _0x258788}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x2cccc6}from'ckeditor5/src/utils.js';function _0x5353(){const _0x35db0a=['updateSuggestionItem','chatFeed','values','createConversation','has','markFeedItemAsDone','addFeedItemAIReply','startsWith','_titleAnimationInterval','TrackChanges','addFeedItemError','setModelList','9883104Htmqgq','_getLoadingMessage','chatControls','isLoading','abort','isPremiumPlugin','ai-suggestion-reply','children','setWebSearch','removeFeedInteraction','removeContextItem','isDisabled','updateFeedItemAIReplySuggestionPartState','last','disableModelSelector','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','areActionsDisabled','populateSourceResourceBalloon','clear','updateFeedItemAIReplySuggestionContent','setAddContextOptions','addTab','closeSourceResourceBalloon','isModelAvailable','updateFeedInteractionHeader','value','scrollFeedToSuggestion','</p>','addFeedItemAISuggestion','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','72ivHsnJ','_interactionPromiseResolver','conversation-start','resetConversationTitle','locale','setSelectedModel','58qruexN','updateFeedItemAIReplySources','removeItem','then','setConversationTitle','context','interactionId','quickActionData','getItemIds','enableModelSelector','2440570EDoURU','find','ai.chat.context.searchInputVisibleFrom','setLoadingMessage','AI_CHAT_WELCOME_MESSAGE','ai-reply','addItem','renderingStrategy','showDiff','setInputPlaceholder','availableModels','feedItemRenderingStrategy','stopAutoScroll','addFeedItemStaticMessage','stopInteraction','updateCapabilities','displayedPrompt','commands','label','10014SbEsGc','isBusy','updateWebSources','isOfficialPlugin','<p>','_isTrackChangesCommandValueBound','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','setModel','isMaximized','forEach','options','isDone','isWebSearchEnabled','10NBHjXC','updateResourceState','filter','disableControls','focusPromptInput','63trdsfb','config','setIsMaximized','setIsUploadInProgress','45181QQuutq','updateSuggestionPartState','startInteraction','error-message','finishInteraction','isVisible','addContextItem','AIChatUI','enableControls','startAutoScroll','capabilities','setConversationContext','enqueue','contextItems','userMessage','resetMessageInput','markItemAsDone','queueEmptyPromise','ai.chat.models.modelSelectorAlwaysVisible','1837912pHogIG','addFeedInteractionHeader','4200318CnbkZR','bind','_animateConversationTitle','11070kwURqr','toggleLoadingSkeleton','isPending','623kMCQJh','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','chat','clearPendingContextUI','isReasoningEnabled','scrollToSuggestion','setContextItemLoading','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','insertSuggestion','user-message','updateFeedItemAIReplyContent','requires','pluginName','set','showResizeButton','trackChanges','streaming','get','toggleSuggestionDisplayMode','remove','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','setReasoning','ai.availableReplyActions','view','updateReplyItem','clearConversationContextUI','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','setFeedItemRenderingStrategy','_getInputPlaceholder','delegate','_view','from','addFeedItemUserMessage','AITabs','destroy','interaction-header','_promiseQueue','length','AI_CHAT_HEADING','chatHeader','isTrackChangesOn','plugins'];_0x5353=function(){return _0x35db0a;};return _0x5353();}import{AIChatView as _0x328fd9}from'./ui/aichatview.js';import{AITabs as _0x8b4893}from'../aitabs/aitabs.js';import{getTranslation as _0x1dc508}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x2deb04}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x8be7fa}from'./ui/feed/aichatfeedinteractionheaderview.js';function _0x5879(_0x1add57,_0x4efd66){const _0x53537d=_0x5353();return _0x5879=function(_0x58796c,_0x4e0be5){_0x58796c=_0x58796c-0x64;let _0x16cd92=_0x53537d[_0x58796c];return _0x16cd92;},_0x5879(_0x1add57,_0x4efd66);}import{PromiseQueue as _0x1297b0}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3db798}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x208884}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x2c0081}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x258788{static get[_0x5b7ac7(0x108)](){return[_0x8b4893];}[_0x5b7ac7(0x72)];static get[_0x5b7ac7(0x109)](){const _0x52b570=_0x5b7ac7;return _0x52b570(0xe9);}static get[_0x5b7ac7(0xcf)](){return!0x0;}static get[_0x5b7ac7(0x8f)](){return!0x0;}[_0x5b7ac7(0xc4)]=_0x5b7ac7(0x64);[_0x5b7ac7(0xc1)]=!0x0;[_0x5b7ac7(0x78)];[_0x5b7ac7(0xaa)];[_0x5b7ac7(0x86)]=void 0x0;[_0x5b7ac7(0xd1)]=!0x1;constructor(_0x3c9d9b){const _0x3dd25f=_0x5b7ac7;super(_0x3c9d9b);const _0x5260b5=this[_0x3dd25f(0xb4)][_0x3dd25f(0x7d)][_0x3dd25f(0x65)](_0x3dd25f(0x75));this[_0x3dd25f(0x10a)](_0x3dd25f(0xcd),!0x1),this[_0x3dd25f(0x78)]=new _0x1297b0(),this[_0x3dd25f(0x72)]=new _0x328fd9(this[_0x3dd25f(0xb4)][_0x3dd25f(0xad)],{'showResizeButton':_0x5260b5[_0x3dd25f(0x10b)],'contextResourcesSearchInputVisibleFrom':this[_0x3dd25f(0xb4)][_0x3dd25f(0xdf)][_0x3dd25f(0x65)](_0x3dd25f(0xbb))}),this[_0x3dd25f(0x72)][_0x3dd25f(0x71)](..._0x3db798)['to'](this),this[_0x3dd25f(0x72)]['on'](_0x3dd25f(0x66),(_0x2516ba,{showDiff:_0x12d6ac})=>{const _0x1fb3d3=_0x3dd25f;this[_0x1fb3d3(0xc1)]=_0x12d6ac;}),_0x5260b5[_0x3dd25f(0x6b)][_0x3dd25f(0x9f)]({'id':_0x3dd25f(0xff),'buttonLabel':_0x1dc508(this[_0x3dd25f(0xb4)][_0x3dd25f(0xad)],_0x3dd25f(0x7a)),'buttonIcon':_0x2deb04,'order':0x0,'content':this[_0x3dd25f(0x72)]}),this[_0x3dd25f(0x72)][_0x3dd25f(0x8c)][_0x3dd25f(0xf8)](_0x3dd25f(0x8d))['to'](this,_0x3dd25f(0xcd),_0x3709d1=>_0x3709d1),this[_0x3dd25f(0x72)][_0x3dd25f(0x7f)][_0x3dd25f(0xf8)](_0x3dd25f(0xfc))['to'](this,_0x3dd25f(0xcd),_0x45f513=>_0x45f513),this[_0x3dd25f(0x72)][_0x3dd25f(0x8c)][_0x3dd25f(0xc2)](this[_0x3dd25f(0x70)]()),this[_0x3dd25f(0xf8)](_0x3dd25f(0xa1))['to'](this[_0x3dd25f(0x72)][_0x3dd25f(0x8c)],_0x3dd25f(0xa1));}[_0x5b7ac7(0x76)](){const _0x168f24=_0x5b7ac7;super[_0x168f24(0x76)](),this[_0x168f24(0x86)]&&clearInterval(this[_0x168f24(0x86)]);}[_0x5b7ac7(0x81)](_0x3fadcf){const _0xcf9906=_0x5b7ac7;this[_0xcf9906(0x72)][_0xcf9906(0x7f)][_0xcf9906(0x9c)](),this[_0xcf9906(0x72)][_0xcf9906(0x8c)][_0xcf9906(0xb8)](),this[_0xcf9906(0x72)][_0xcf9906(0x8c)][_0xcf9906(0x89)](_0x3fadcf[_0xcf9906(0xc3)],!this[_0xcf9906(0xb4)][_0xcf9906(0xdf)][_0xcf9906(0x65)](_0xcf9906(0xf4))),this[_0xcf9906(0xc6)]({'id':_0xcf9906(0xab),'staticMessage':_0x1dc508(this[_0xcf9906(0xb4)][_0xcf9906(0xad)],_0xcf9906(0xbd))});}[_0x5b7ac7(0xc6)]({id:_0x41e839,staticMessage:_0x6caa0d}){const _0x37d52e=_0x5b7ac7;this[_0x37d52e(0x72)][_0x37d52e(0x7f)][_0x37d52e(0xbf)](_0x37d52e(0xbe),{'id':_0x41e839,'initialContent':_0x37d52e(0xd0)+_0x6caa0d+_0x37d52e(0xa5)});}[_0x5b7ac7(0x74)](_0x492f2c){const _0x416ea8=_0x5b7ac7,_0x194686=_0x492f2c[_0x416ea8(0xb6)]?.[_0x416ea8(0xc9)]||_0x492f2c[_0x416ea8(0xf0)];this[_0x416ea8(0x72)][_0x416ea8(0x7f)][_0x416ea8(0xbf)](_0x416ea8(0x106),{'contextItems':Array[_0x416ea8(0x73)](_0x492f2c[_0x416ea8(0xef)][_0x416ea8(0x80)]()),'initialContent':_0x416ea8(0xd0)+_0x194686+_0x416ea8(0xa5),'id':_0x492f2c['id']});}[_0x5b7ac7(0x88)]({errorMessage:_0xfb1870,id:_0x40e0e4}){const _0x5a1b15=_0x5b7ac7;this[_0x5a1b15(0x72)][_0x5a1b15(0x7f)][_0x5a1b15(0xbf)](_0x5a1b15(0xe5),{'initialContent':_0x5a1b15(0xd0)+_0xfb1870+_0x5a1b15(0xa5),'id':_0x40e0e4});}[_0x5b7ac7(0x84)](_0x4689af){const _0x26dc87=_0x5b7ac7;return this[_0x26dc87(0x78)][_0x26dc87(0xee)](async()=>{const _0x2342b3=_0x26dc87;this[_0x2342b3(0x72)][_0x2342b3(0x7f)][_0x2342b3(0xbf)](_0x2342b3(0xbe),{'id':_0x4689af[_0x2342b3(0xb5)]+':'+_0x4689af['id']}),this[_0x2342b3(0xbc)](null);});}async[_0x5b7ac7(0xa6)](_0x39b7fc){const _0x56a63a=_0x5b7ac7,_0x2e6f27=_0x208884(this[_0x56a63a(0xb4)]);let _0x6e21ad=_0x2e6f27[_0x56a63a(0xdf)][_0x56a63a(0x65)](_0x56a63a(0x6a))||[..._0x2c0081];if(_0x2e6f27[_0x56a63a(0x7d)][_0x56a63a(0x82)](_0x56a63a(0x87))){if(!this[_0x56a63a(0xd1)]){this[_0x56a63a(0xd1)]=!0x0;const _0x2406ef=_0x2e6f27[_0x56a63a(0xca)][_0x56a63a(0x65)](_0x56a63a(0x10c));this[_0x56a63a(0x72)][_0x56a63a(0x7f)][_0x56a63a(0xf8)](_0x56a63a(0x7c))['to'](_0x2406ef,_0x56a63a(0xa3));}}else _0x6e21ad=_0x6e21ad[_0x56a63a(0xdb)](_0x509ae5=>_0x56a63a(0x105)!=_0x509ae5);return this[_0x56a63a(0x78)][_0x56a63a(0xee)](async()=>{const _0x3157e3=_0x56a63a;this[_0x3157e3(0x72)][_0x3157e3(0x7f)][_0x3157e3(0xbf)](_0x3157e3(0x90),{'id':_0x39b7fc[_0x3157e3(0xb5)]+':'+_0x39b7fc['id'],'areActionsDisabled':_0x39b7fc[_0x3157e3(0x9a)],'showDiff':this[_0x3157e3(0xc1)],'availableActions':_0x6e21ad}),this[_0x3157e3(0xbc)](null);});}[_0x5b7ac7(0xf6)](_0x16548b,_0x307ab3){const _0x2c7595=_0x5b7ac7,_0xf3d4a7=this[_0x2c7595(0x72)][_0x2c7595(0x7f)][_0x2c7595(0x91)][_0x2c7595(0x97)];if(_0xf3d4a7 instanceof _0x8be7fa)return this[_0x2c7595(0x72)][_0x2c7595(0x7f)][_0x2c7595(0x91)][_0x2c7595(0x67)](_0xf3d4a7),void this[_0x2c7595(0x72)][_0x2c7595(0x7f)][_0x2c7595(0xbf)](_0x2c7595(0x77),{'id':_0x16548b['id'],'capabilities':{'isWebSearchEnabled':_0xf3d4a7[_0x2c7595(0xec)][_0x2c7595(0xd8)]||_0x307ab3[_0x2c7595(0xd8)],'isReasoningEnabled':_0xf3d4a7[_0x2c7595(0xec)][_0x2c7595(0x101)]||_0x307ab3[_0x2c7595(0x101)]}});this[_0x2c7595(0x72)][_0x2c7595(0x7f)][_0x2c7595(0xbf)](_0x2c7595(0x77),{'id':_0x16548b['id'],'capabilities':_0x307ab3});}[_0x5b7ac7(0xa2)](_0x4b912b){const _0x201d67=_0x5b7ac7,_0x2243f0=this[_0x201d67(0x72)][_0x201d67(0x7f)][_0x201d67(0x91)][_0x201d67(0xba)](_0x48494e=>_0x48494e[_0x201d67(0xd6)]['id']==_0x4b912b['id']&&_0x48494e instanceof _0x8be7fa);_0x2243f0&&_0x2243f0[_0x201d67(0x10a)](_0x201d67(0xe7),_0x4b912b[_0x201d67(0xe7)]);}async[_0x5b7ac7(0x107)](_0x36e3a1){const _0x5cbaad=_0x5b7ac7,_0x124878=_0x36e3a1[_0x5cbaad(0xc0)]||this[_0x5cbaad(0xc4)];return this[_0x5cbaad(0x78)][_0x5cbaad(0xee)](async _0x2092ee=>{const _0x289a46=_0x5cbaad;await this[_0x289a46(0x72)][_0x289a46(0x7f)][_0x289a46(0x6c)]({..._0x36e3a1,'abortSignal':_0x2092ee,'renderingStrategy':_0x124878}),_0x36e3a1[_0x289a46(0xd7)]&&this[_0x289a46(0x83)](_0x36e3a1['id']);});}[_0x5b7ac7(0xb0)](_0x48b48a,_0x5e98b0){const _0x5ef134=_0x5b7ac7;this[_0x5ef134(0x72)][_0x5ef134(0x7f)][_0x5ef134(0xce)](_0x48b48a,_0x5e98b0);}async[_0x5b7ac7(0x9d)](_0x57ee46){const _0x4a3b1c=_0x5b7ac7,_0xa73cf5=_0x57ee46[_0x4a3b1c(0xc0)]||this[_0x4a3b1c(0xc4)];return this[_0x4a3b1c(0x78)][_0x4a3b1c(0xee)](async _0x5d6f0c=>{const _0x35c170=_0x4a3b1c;await this[_0x35c170(0x72)][_0x35c170(0x7f)][_0x35c170(0x7e)]({..._0x57ee46,'abortSignal':_0x5d6f0c,'renderingStrategy':_0xa73cf5}),_0x57ee46[_0x35c170(0xd7)]&&this[_0x35c170(0x83)](_0x57ee46['id']);});}[_0x5b7ac7(0x96)](_0x48ef31){const _0xdf411e=_0x5b7ac7;this[_0xdf411e(0x72)][_0xdf411e(0x7f)][_0xdf411e(0xe3)](_0x48ef31);}[_0x5b7ac7(0x83)](_0x2856bf){const _0x56a2c1=_0x5b7ac7;this[_0x56a2c1(0x72)][_0x56a2c1(0x7f)][_0x56a2c1(0xf2)](_0x2856bf);}[_0x5b7ac7(0x93)](_0x592974){const _0x4f03b7=_0x5b7ac7;this[_0x4f03b7(0x72)][_0x4f03b7(0x7f)][_0x4f03b7(0xb7)]()[_0x4f03b7(0xdb)](_0x3af23e=>_0x3af23e[_0x4f03b7(0x85)](_0x592974))[_0x4f03b7(0xd5)](_0x3dec71=>this[_0x4f03b7(0x72)][_0x4f03b7(0x7f)][_0x4f03b7(0xb1)](_0x3dec71));}[_0x5b7ac7(0xe4)](){const _0x5e6996=_0x5b7ac7;this[_0x5e6996(0xbc)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x5e6996(0x72)][_0x5e6996(0x8c)][_0x5e6996(0x98)](!this[_0x5e6996(0xb4)][_0x5e6996(0xdf)][_0x5e6996(0x65)](_0x5e6996(0xf4))),this[_0x5e6996(0xcd)]=!0x0,this[_0x5e6996(0x72)][_0x5e6996(0x7f)][_0x5e6996(0xeb)]();}[_0x5b7ac7(0xc7)](_0x27ddb4){const _0x55b7c5=_0x5b7ac7;this[_0x55b7c5(0x78)][_0x55b7c5(0x8e)](),this[_0x55b7c5(0x72)][_0x55b7c5(0x7f)][_0x55b7c5(0xb7)]()[_0x55b7c5(0xdb)](_0x209f64=>_0x209f64[_0x55b7c5(0x85)](_0x27ddb4['id']))[_0x55b7c5(0xd5)](_0x511787=>this[_0x55b7c5(0x83)](_0x511787)),this[_0x55b7c5(0xcd)]=!0x1,this[_0x55b7c5(0x72)][_0x55b7c5(0x7f)][_0x55b7c5(0xc5)]();}async[_0x5b7ac7(0xe6)](){const _0x58974b=_0x5b7ac7;return this[_0x58974b(0x78)][_0x58974b(0xf3)][_0x58974b(0xb2)](()=>{const _0xe5c97=_0x58974b;this[_0xe5c97(0xcd)]=!0x1,this[_0xe5c97(0x72)][_0xe5c97(0x7f)][_0xe5c97(0xc5)]();});}[_0x5b7ac7(0xe8)](_0x19f817,_0x327078){const _0x55ff36=_0x5b7ac7;this[_0x55ff36(0x72)][_0x55ff36(0x8c)][_0x55ff36(0xe8)](_0x19f817,_0x327078);}[_0x5b7ac7(0x94)](_0x2e4009){const _0x16aedd=_0x5b7ac7;this[_0x16aedd(0x72)][_0x16aedd(0x8c)][_0x16aedd(0x94)](_0x2e4009);}[_0x5b7ac7(0x103)](_0x38528d,_0x3ca9cc){const _0x3ac5b3=_0x5b7ac7;this[_0x3ac5b3(0x72)][_0x3ac5b3(0x8c)][_0x3ac5b3(0x103)](_0x38528d,_0x3ca9cc);}[_0x5b7ac7(0xe1)](_0x5159a5){const _0x5ce103=_0x5b7ac7;this[_0x5ce103(0x72)][_0x5ce103(0x8c)][_0x5ce103(0xe1)](_0x5159a5);}[_0x5b7ac7(0xed)](_0x237dc2){const _0x46e3cb=_0x5b7ac7;this[_0x46e3cb(0x72)][_0x46e3cb(0x8c)][_0x46e3cb(0xed)](_0x237dc2);}[_0x5b7ac7(0x100)](){const _0x49f78f=_0x5b7ac7;this[_0x49f78f(0x72)][_0x49f78f(0x8c)][_0x49f78f(0x100)]();}[_0x5b7ac7(0x6d)](){const _0x11834e=_0x5b7ac7;this[_0x11834e(0x72)][_0x11834e(0x8c)][_0x11834e(0x6d)]();}[_0x5b7ac7(0xda)](_0x15adb8,_0x2c3ee6,_0x57faa8){const _0x322299=_0x5b7ac7;this[_0x322299(0x72)][_0x322299(0x8c)][_0x322299(0xda)](_0x15adb8,_0x2c3ee6,_0x57faa8);}[_0x5b7ac7(0xf1)](){const _0x33a528=_0x5b7ac7;this[_0x33a528(0x72)][_0x33a528(0x8c)][_0x33a528(0xf1)](),this[_0x33a528(0x72)][_0x33a528(0x8c)][_0x33a528(0xc2)](this[_0x33a528(0x70)]());}[_0x5b7ac7(0x9e)](_0x184a2b){const _0x1163bc=_0x5b7ac7;this[_0x1163bc(0x72)][_0x1163bc(0x8c)][_0x1163bc(0x9e)](_0x184a2b);}[_0x5b7ac7(0xc8)](_0x17d76a){const _0x591470=_0x5b7ac7;this[_0x591470(0x72)][_0x591470(0x8c)][_0x591470(0x92)](_0x17d76a[_0x591470(0xd8)]),this[_0x591470(0x72)][_0x591470(0x8c)][_0x591470(0x69)](_0x17d76a[_0x591470(0x101)]),this[_0x591470(0x72)][_0x591470(0x8c)][_0x591470(0xc2)](this[_0x591470(0x70)](_0x17d76a));}[_0x5b7ac7(0xae)](_0x49c19c,_0x60bf18){const _0x57908d=_0x5b7ac7;this[_0x57908d(0x72)][_0x57908d(0x8c)][_0x57908d(0xd3)](_0x49c19c),_0x60bf18&&this[_0x57908d(0x72)][_0x57908d(0x8c)][_0x57908d(0x98)](!0x1);}[_0x5b7ac7(0x6f)](_0x5d979f){const _0x176fa1=_0x5b7ac7;this[_0x176fa1(0xc4)]=_0x5d979f;}[_0x5b7ac7(0xfb)](_0x1ae1d6){const _0x339ec4=_0x5b7ac7;this[_0x339ec4(0x72)][_0x339ec4(0x7f)][_0x339ec4(0xfb)](_0x1ae1d6);}[_0x5b7ac7(0xac)](){const _0x4d149e=_0x5b7ac7;this[_0x4d149e(0xb3)](_0x1dc508(this[_0x4d149e(0xb4)][_0x4d149e(0xad)],_0x4d149e(0x7a)));}[_0x5b7ac7(0xb3)](_0x3a85e0,_0xf5c4ab=!0x1){const _0x46bda4=_0x5b7ac7;if(_0xf5c4ab&&!_0x2cccc6()&&_0x3a85e0[_0x46bda4(0x79)])return this[_0x46bda4(0x72)][_0x46bda4(0x7b)][_0x46bda4(0xcb)]='',void this[_0x46bda4(0xf9)](_0x3a85e0);this[_0x46bda4(0x72)][_0x46bda4(0x7b)][_0x46bda4(0xcb)]=_0x3a85e0;}[_0x5b7ac7(0xbc)](_0x1bb1a3){const _0x2e5954=_0x5b7ac7,_0x583945=this[_0x2e5954(0x8b)](_0x1bb1a3);this[_0x2e5954(0x72)][_0x2e5954(0x7f)][_0x2e5954(0xbc)](_0x583945);}[_0x5b7ac7(0xf9)](_0x4bd544){const _0xd1f24f=_0x5b7ac7;let _0x58df4a=0x0;clearInterval(this[_0xd1f24f(0x86)]),this[_0xd1f24f(0x86)]=setInterval(()=>{const _0xa0552b=_0xd1f24f;this[_0xa0552b(0x72)][_0xa0552b(0x7b)][_0xa0552b(0xcb)]=this[_0xa0552b(0x72)][_0xa0552b(0x7b)][_0xa0552b(0xcb)]+_0x4bd544[_0x58df4a],_0x58df4a++,_0x58df4a===_0x4bd544[_0xa0552b(0x79)]&&clearInterval(this[_0xa0552b(0x86)]);},0x1e);}[_0x5b7ac7(0xe0)](_0x5c92ce){const _0x2fe7f8=_0x5b7ac7;this[_0x2fe7f8(0x72)][_0x2fe7f8(0x7b)][_0x2fe7f8(0xd4)]=_0x5c92ce;}[_0x5b7ac7(0x8b)](_0x381607){const _0xda447a=_0x5b7ac7;return _0x381607?_0x381607[_0xda447a(0xd8)]&&_0x381607[_0xda447a(0x101)]?_0x1dc508(this[_0xda447a(0xb4)][_0xda447a(0xad)],_0xda447a(0xa8)):_0x381607[_0xda447a(0xd8)]?_0x1dc508(this[_0xda447a(0xb4)][_0xda447a(0xad)],_0xda447a(0xd2)):_0x381607[_0xda447a(0x101)]?_0x1dc508(this[_0xda447a(0xb4)][_0xda447a(0xad)],_0xda447a(0x6e)):_0x1dc508(this[_0xda447a(0xb4)][_0xda447a(0xad)],_0xda447a(0xa7)):'';}[_0x5b7ac7(0x70)](_0x52fd34){const _0x544589=_0x5b7ac7;return _0x52fd34?_0x52fd34[_0x544589(0xd8)]&&_0x52fd34[_0x544589(0x101)]?_0x1dc508(this[_0x544589(0xb4)][_0x544589(0xad)],_0x544589(0x104)):_0x52fd34[_0x544589(0xd8)]?_0x1dc508(this[_0x544589(0xb4)][_0x544589(0xad)],_0x544589(0x99)):_0x52fd34[_0x544589(0x101)]?_0x1dc508(this[_0x544589(0xb4)][_0x544589(0xad)],_0x544589(0xfe)):_0x1dc508(this[_0x544589(0xb4)][_0x544589(0xad)],_0x544589(0x68)):_0x1dc508(this[_0x544589(0xb4)][_0x544589(0xad)],_0x544589(0x68));}[_0x5b7ac7(0x9b)](_0x16bbb9,_0xce0b9e,_0x5e42c9,_0x442935){const _0x218710=_0x5b7ac7;this[_0x218710(0x72)][_0x218710(0x9b)](_0x16bbb9,_0xce0b9e,_0x5e42c9,_0x442935);}[_0x5b7ac7(0xa0)](_0x173591){const _0x337440=_0x5b7ac7;this[_0x337440(0x72)][_0x337440(0xa0)](_0x173591);}[_0x5b7ac7(0xdd)](){const _0x3e90aa=_0x5b7ac7;this[_0x3e90aa(0x72)][_0x3e90aa(0x8c)][_0x3e90aa(0xdd)]();}[_0x5b7ac7(0xa4)](_0x53ffd3,_0x567225){const _0x26f9f9=_0x5b7ac7;this[_0x26f9f9(0x72)][_0x26f9f9(0x7f)][_0x26f9f9(0x102)](_0x53ffd3,_0x567225);}[_0x5b7ac7(0xeb)](){const _0x40a979=_0x5b7ac7;this[_0x40a979(0x72)][_0x40a979(0x7f)][_0x40a979(0xeb)]();}[_0x5b7ac7(0xdc)](){const _0x115c47=_0x5b7ac7;this[_0x115c47(0x72)][_0x115c47(0x8c)][_0x115c47(0x95)]=!0x0;}[_0x5b7ac7(0xea)](){const _0x2dfd70=_0x5b7ac7;this[_0x2dfd70(0x72)][_0x2dfd70(0x8c)][_0x2dfd70(0x95)]=!0x1;}}
|
|
23
|
+
const _0x284095=_0x5c35;(function(_0x13f952,_0x2447bb){const _0x1e504e=_0x5c35,_0x48b564=_0x13f952();while(!![]){try{const _0x2e009a=parseInt(_0x1e504e(0xf4))/0x1+parseInt(_0x1e504e(0xc5))/0x2+parseInt(_0x1e504e(0xc8))/0x3*(parseInt(_0x1e504e(0xc7))/0x4)+parseInt(_0x1e504e(0xf9))/0x5*(parseInt(_0x1e504e(0xcf))/0x6)+parseInt(_0x1e504e(0x153))/0x7+parseInt(_0x1e504e(0xe5))/0x8+-parseInt(_0x1e504e(0xcd))/0x9;if(_0x2e009a===_0x2447bb)break;else _0x48b564['push'](_0x48b564['shift']());}catch(_0x3113e4){_0x48b564['push'](_0x48b564['shift']());}}}(_0x11a4,0xd2122));import{ContextPlugin as _0x2eb5d0}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x54eabc}from'ckeditor5/src/utils.js';import{AIChatView as _0x3c7c76}from'./ui/aichatview.js';import{AITabs as _0x226e44}from'../aitabs/aitabs.js';import{getTranslation as _0x16ac82}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x5ab702}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x2e91da}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x3e5cf6}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5cbaab}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';function _0x11a4(){const _0x18d188=['context','interaction-header','AI_CHAT_HEADING','setIsMaximized','isLoading','addFeedItemError','config','value','insertSuggestion','AI_CHAT_WELCOME_MESSAGE','isPremiumPlugin','_promiseQueue','TrackChanges','chatFeed','startsWith','setModel','_titleAnimationInterval','markFeedItemAsDone','removeContextItem','trackChanges','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','userMessage','markItemAsDone','isOfficialPlugin','setConversationTitle','stopAutoScroll','updateFeedItemAIReplyContent','forEach','setReasoning','addFeedItemStaticMessage','view','addFeedItemAIReply','isTrackChangesOn','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','updateSuggestionPartState','label','addFeedItemAISuggestion','remove','pluginName','updateCapabilities','populateSourceResourceBalloon','isReasoningEnabled','scrollFeedToSuggestion','addTab','interactionId','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','commands','removeItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','8611610mVzTpF','startInteraction','user-message','ai.chat.context.searchInputVisibleFrom','addItem','enableControls','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','ai-suggestion-reply','values','resetMessageInput','isMaximized','updateReplyItem','availableModels','clearPendingContextUI','bind','finishInteraction','updateFeedItemAIReplySuggestionPartState','ai.chat.models.modelSelectorAlwaysVisible','requires','ai-reply','updateFeedInteractionHeader','setLoadingMessage','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','AITabs','2773804kKyfaw','removeFeedInteraction','12dHVutF','1117083CTBRIy','_getLoadingMessage','capabilities','startAutoScroll','setAddContextOptions','53508843imRfFq','_getInputPlaceholder','6yOphKL','updateSuggestionItem','find','quickActionData','isBusy','from','clearConversationContextUI','setFeedItemRenderingStrategy','options','renderingStrategy','updateFeedItemAIReplySources','closeSourceResourceBalloon','has','addContextItem','setContextItemLoading','_view','streaming','isDone','AIChatUI','addFeedItemUserMessage','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','enqueue','9521176FQtiWh','_animateConversationTitle','contextItems','locale','setConversationContext','conversation-start','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','length','isDisabled','<p>','disableControls','updateWebSources','children','showDiff','updateFeedItemAIReplySuggestionContent','263526UKfeMY','toggleSuggestionDisplayMode','setIsUploadInProgress','clear','setModelList','8089945qEhXvO','resetConversationTitle','chatControls','displayedPrompt','delegate','setSelectedModel','areActionsDisabled','then','showResizeButton','chatHeader','_isTrackChangesCommandValueBound','stopInteraction','isModelAvailable','last','ai.availableReplyActions','</p>','enableModelSelector','updateResourceState','isVisible','feedItemRenderingStrategy','destroy','filter','focusPromptInput','setInputPlaceholder','isWebSearchEnabled','set','disableModelSelector','_interactionPromiseResolver','addFeedInteractionHeader','getItemIds','plugins','createConversation','abort','scrollToSuggestion','chat','get','error-message','isPending','setWebSearch','queueEmptyPromise','toggleLoadingSkeleton'];_0x11a4=function(){return _0x18d188;};return _0x11a4();}import{getEditorFromContext as _0x521fdc}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x1662c1}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x5c35(_0x507ff8,_0x62befc){const _0x11a46f=_0x11a4();return _0x5c35=function(_0x5c3533,_0x4f11b1){_0x5c3533=_0x5c3533-0xc2;let _0x3c9e0e=_0x11a46f[_0x5c3533];return _0x3c9e0e;},_0x5c35(_0x507ff8,_0x62befc);}export class AIChatUI extends _0x2eb5d0{static get[_0x284095(0x165)](){return[_0x226e44];}[_0x284095(0xde)];static get[_0x284095(0x148)](){const _0x5e84b0=_0x284095;return _0x5e84b0(0xe1);}static get[_0x284095(0x139)](){return!0x0;}static get[_0x284095(0x12c)](){return!0x0;}[_0x284095(0x10c)]=_0x284095(0xdf);[_0x284095(0xf2)]=!0x0;[_0x284095(0x12d)];[_0x284095(0x114)];[_0x284095(0x132)]=void 0x0;[_0x284095(0x103)]=!0x1;constructor(_0x5aa657){const _0x29a67c=_0x284095;super(_0x5aa657);const _0x334648=this[_0x29a67c(0x122)][_0x29a67c(0x117)][_0x29a67c(0x11c)](_0x29a67c(0xc4));this[_0x29a67c(0x112)](_0x29a67c(0xd3),!0x1),this[_0x29a67c(0x12d)]=new _0x3e5cf6(),this[_0x29a67c(0xde)]=new _0x3c7c76(this[_0x29a67c(0x122)][_0x29a67c(0xe8)],{'showResizeButton':_0x334648[_0x29a67c(0x101)],'contextResourcesSearchInputVisibleFrom':this[_0x29a67c(0x122)][_0x29a67c(0x128)][_0x29a67c(0x11c)](_0x29a67c(0x156))}),this[_0x29a67c(0xde)][_0x29a67c(0xfd)](..._0x5cbaab)['to'](this),this[_0x29a67c(0xde)]['on'](_0x29a67c(0xf5),(_0x238216,{showDiff:_0x43eff2})=>{const _0x2d2204=_0x29a67c;this[_0x2d2204(0xf2)]=_0x43eff2;}),_0x334648[_0x29a67c(0x140)][_0x29a67c(0x14d)]({'id':_0x29a67c(0x11b),'buttonLabel':_0x16ac82(this[_0x29a67c(0x122)][_0x29a67c(0xe8)],_0x29a67c(0x124)),'buttonIcon':_0x5ab702,'order':0x0,'content':this[_0x29a67c(0xde)]}),this[_0x29a67c(0xde)][_0x29a67c(0xfb)][_0x29a67c(0x161)](_0x29a67c(0x126))['to'](this,_0x29a67c(0xd3),_0x385ca8=>_0x385ca8),this[_0x29a67c(0xde)][_0x29a67c(0x12f)][_0x29a67c(0x161)](_0x29a67c(0x11e))['to'](this,_0x29a67c(0xd3),_0x175ce9=>_0x175ce9),this[_0x29a67c(0xde)][_0x29a67c(0xfb)][_0x29a67c(0x110)](this[_0x29a67c(0xce)]()),this[_0x29a67c(0x161)](_0x29a67c(0x105))['to'](this[_0x29a67c(0xde)][_0x29a67c(0xfb)],_0x29a67c(0x105));}[_0x284095(0x10d)](){const _0x91a86d=_0x284095;super[_0x91a86d(0x10d)](),this[_0x91a86d(0x132)]&&clearInterval(this[_0x91a86d(0x132)]);}[_0x284095(0x118)](_0x598a05){const _0x24b998=_0x284095;this[_0x24b998(0xde)][_0x24b998(0x12f)][_0x24b998(0xf7)](),this[_0x24b998(0xde)][_0x24b998(0xfb)][_0x24b998(0x109)](),this[_0x24b998(0xde)][_0x24b998(0xfb)][_0x24b998(0xf8)](_0x598a05[_0x24b998(0x15f)],!this[_0x24b998(0x122)][_0x24b998(0x128)][_0x24b998(0x11c)](_0x24b998(0x164))),this[_0x24b998(0x13f)]({'id':_0x24b998(0xea),'staticMessage':_0x16ac82(this[_0x24b998(0x122)][_0x24b998(0xe8)],_0x24b998(0x12b))});}[_0x284095(0x13f)]({id:_0xadcf04,staticMessage:_0x212a6d}){const _0x585859=_0x284095;this[_0x585859(0xde)][_0x585859(0x12f)][_0x585859(0x157)](_0x585859(0x166),{'id':_0xadcf04,'initialContent':_0x585859(0xee)+_0x212a6d+_0x585859(0x108)});}[_0x284095(0xe2)](_0x4ac0c1){const _0x4383c8=_0x284095,_0x4c7db8=_0x4ac0c1[_0x4383c8(0xd2)]?.[_0x4383c8(0xfc)]||_0x4ac0c1[_0x4383c8(0x137)];this[_0x4383c8(0xde)][_0x4383c8(0x12f)][_0x4383c8(0x157)](_0x4383c8(0x155),{'contextItems':Array[_0x4383c8(0xd4)](_0x4ac0c1[_0x4383c8(0xe7)][_0x4383c8(0x15b)]()),'initialContent':_0x4383c8(0xee)+_0x4c7db8+_0x4383c8(0x108),'id':_0x4ac0c1['id']});}[_0x284095(0x127)]({errorMessage:_0x779cc8,id:_0x32a2fb}){const _0x250ce2=_0x284095;this[_0x250ce2(0xde)][_0x250ce2(0x12f)][_0x250ce2(0x157)](_0x250ce2(0x11d),{'initialContent':_0x250ce2(0xee)+_0x779cc8+_0x250ce2(0x108),'id':_0x32a2fb});}[_0x284095(0x141)](_0x3fc7b6){const _0x49b1a7=_0x284095;return this[_0x49b1a7(0x12d)][_0x49b1a7(0xe4)](async()=>{const _0x186607=_0x49b1a7;this[_0x186607(0xde)][_0x186607(0x12f)][_0x186607(0x157)](_0x186607(0x166),{'id':_0x3fc7b6[_0x186607(0x14e)]+':'+_0x3fc7b6['id']}),this[_0x186607(0xc2)](null);});}async[_0x284095(0x146)](_0x533764){const _0x22b550=_0x284095,_0x1a2475=_0x521fdc(this[_0x22b550(0x122)]);let _0x427539=_0x1a2475[_0x22b550(0x128)][_0x22b550(0x11c)](_0x22b550(0x107))||[..._0x1662c1];if(_0x1a2475[_0x22b550(0x117)][_0x22b550(0xdb)](_0x22b550(0x12e))){if(!this[_0x22b550(0x103)]){this[_0x22b550(0x103)]=!0x0;const _0x321a42=_0x1a2475[_0x22b550(0x150)][_0x22b550(0x11c)](_0x22b550(0x135));this[_0x22b550(0xde)][_0x22b550(0x12f)][_0x22b550(0x161)](_0x22b550(0x142))['to'](_0x321a42,_0x22b550(0x129));}}else _0x427539=_0x427539[_0x22b550(0x10e)](_0x485627=>_0x22b550(0x12a)!=_0x485627);return this[_0x22b550(0x12d)][_0x22b550(0xe4)](async()=>{const _0x249fb8=_0x22b550;this[_0x249fb8(0xde)][_0x249fb8(0x12f)][_0x249fb8(0x157)](_0x249fb8(0x15a),{'id':_0x533764[_0x249fb8(0x14e)]+':'+_0x533764['id'],'areActionsDisabled':_0x533764[_0x249fb8(0xff)],'showDiff':this[_0x249fb8(0xf2)],'availableActions':_0x427539}),this[_0x249fb8(0xc2)](null);});}[_0x284095(0x115)](_0x49beb7,_0x53889b){const _0x4be234=_0x284095,_0x5ebb1a=this[_0x4be234(0xde)][_0x4be234(0x12f)][_0x4be234(0xf1)][_0x4be234(0x106)];if(_0x5ebb1a instanceof _0x2e91da)return this[_0x4be234(0xde)][_0x4be234(0x12f)][_0x4be234(0xf1)][_0x4be234(0x147)](_0x5ebb1a),void this[_0x4be234(0xde)][_0x4be234(0x12f)][_0x4be234(0x157)](_0x4be234(0x123),{'id':_0x49beb7['id'],'capabilities':{'isWebSearchEnabled':_0x5ebb1a[_0x4be234(0xca)][_0x4be234(0x111)]||_0x53889b[_0x4be234(0x111)],'isReasoningEnabled':_0x5ebb1a[_0x4be234(0xca)][_0x4be234(0x14b)]||_0x53889b[_0x4be234(0x14b)]}});this[_0x4be234(0xde)][_0x4be234(0x12f)][_0x4be234(0x157)](_0x4be234(0x123),{'id':_0x49beb7['id'],'capabilities':_0x53889b});}[_0x284095(0x167)](_0x2c5aa8){const _0x3c7b54=_0x284095,_0x53630d=this[_0x3c7b54(0xde)][_0x3c7b54(0x12f)][_0x3c7b54(0xf1)][_0x3c7b54(0xd1)](_0x326be3=>_0x326be3[_0x3c7b54(0xd7)]['id']==_0x2c5aa8['id']&&_0x326be3 instanceof _0x2e91da);_0x53630d&&_0x53630d[_0x3c7b54(0x112)](_0x3c7b54(0x10b),_0x2c5aa8[_0x3c7b54(0x10b)]);}async[_0x284095(0x13c)](_0x2d7549){const _0x437b8f=_0x284095,_0x458e59=_0x2d7549[_0x437b8f(0xd8)]||this[_0x437b8f(0x10c)];return this[_0x437b8f(0x12d)][_0x437b8f(0xe4)](async _0x1a26c1=>{const _0x583be5=_0x437b8f;await this[_0x583be5(0xde)][_0x583be5(0x12f)][_0x583be5(0x15e)]({..._0x2d7549,'abortSignal':_0x1a26c1,'renderingStrategy':_0x458e59}),_0x2d7549[_0x583be5(0xe0)]&&this[_0x583be5(0x133)](_0x2d7549['id']);});}[_0x284095(0xd9)](_0x2f8917,_0x28a1ec){const _0x34e2ce=_0x284095;this[_0x34e2ce(0xde)][_0x34e2ce(0x12f)][_0x34e2ce(0xf0)](_0x2f8917,_0x28a1ec);}async[_0x284095(0xf3)](_0x5952fe){const _0x53364f=_0x284095,_0xbafe2e=_0x5952fe[_0x53364f(0xd8)]||this[_0x53364f(0x10c)];return this[_0x53364f(0x12d)][_0x53364f(0xe4)](async _0x3aa652=>{const _0x507ff8=_0x53364f;await this[_0x507ff8(0xde)][_0x507ff8(0x12f)][_0x507ff8(0xd0)]({..._0x5952fe,'abortSignal':_0x3aa652,'renderingStrategy':_0xbafe2e}),_0x5952fe[_0x507ff8(0xe0)]&&this[_0x507ff8(0x133)](_0x5952fe['id']);});}[_0x284095(0x163)](_0x145622){const _0x346c7c=_0x284095;this[_0x346c7c(0xde)][_0x346c7c(0x12f)][_0x346c7c(0x144)](_0x145622);}[_0x284095(0x133)](_0x254aea){const _0x129f67=_0x284095;this[_0x129f67(0xde)][_0x129f67(0x12f)][_0x129f67(0x138)](_0x254aea);}[_0x284095(0xc6)](_0x5d0f62){const _0x2c0d80=_0x284095;this[_0x2c0d80(0xde)][_0x2c0d80(0x12f)][_0x2c0d80(0x116)]()[_0x2c0d80(0x10e)](_0x11e91b=>_0x11e91b[_0x2c0d80(0x130)](_0x5d0f62))[_0x2c0d80(0x13d)](_0x547ff1=>this[_0x2c0d80(0xde)][_0x2c0d80(0x12f)][_0x2c0d80(0x151)](_0x547ff1));}[_0x284095(0x154)](){const _0x444cdf=_0x284095;this[_0x444cdf(0xc2)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x444cdf(0xde)][_0x444cdf(0xfb)][_0x444cdf(0x113)](!this[_0x444cdf(0x122)][_0x444cdf(0x128)][_0x444cdf(0x11c)](_0x444cdf(0x164))),this[_0x444cdf(0xd3)]=!0x0,this[_0x444cdf(0xde)][_0x444cdf(0x12f)][_0x444cdf(0xcb)]();}[_0x284095(0x104)](_0x3b122a){const _0x27d795=_0x284095;this[_0x27d795(0x12d)][_0x27d795(0x119)](),this[_0x27d795(0xde)][_0x27d795(0x12f)][_0x27d795(0x116)]()[_0x27d795(0x10e)](_0x2f36f5=>_0x2f36f5[_0x27d795(0x130)](_0x3b122a['id']))[_0x27d795(0x13d)](_0x45c045=>this[_0x27d795(0x133)](_0x45c045)),this[_0x27d795(0xd3)]=!0x1,this[_0x27d795(0xde)][_0x27d795(0x12f)][_0x27d795(0x13b)]();}async[_0x284095(0x162)](){const _0x4e9f5c=_0x284095;return this[_0x4e9f5c(0x12d)][_0x4e9f5c(0x120)][_0x4e9f5c(0x100)](()=>{const _0xeba6e3=_0x4e9f5c;this[_0xeba6e3(0xd3)]=!0x1,this[_0xeba6e3(0xde)][_0xeba6e3(0x12f)][_0xeba6e3(0x13b)]();});}[_0x284095(0xdc)](_0x4d8174,_0x59a99e){const _0xad97ec=_0x284095;this[_0xad97ec(0xde)][_0xad97ec(0xfb)][_0xad97ec(0xdc)](_0x4d8174,_0x59a99e);}[_0x284095(0x134)](_0x1e663e){const _0x1d6152=_0x284095;this[_0x1d6152(0xde)][_0x1d6152(0xfb)][_0x1d6152(0x134)](_0x1e663e);}[_0x284095(0xdd)](_0x23d57d,_0x9319aa){const _0x13753b=_0x284095;this[_0x13753b(0xde)][_0x13753b(0xfb)][_0x13753b(0xdd)](_0x23d57d,_0x9319aa);}[_0x284095(0xf6)](_0x3b41c3){const _0x413baa=_0x284095;this[_0x413baa(0xde)][_0x413baa(0xfb)][_0x413baa(0xf6)](_0x3b41c3);}[_0x284095(0xe9)](_0x72dd2f){const _0x4e3901=_0x284095;this[_0x4e3901(0xde)][_0x4e3901(0xfb)][_0x4e3901(0xe9)](_0x72dd2f);}[_0x284095(0x160)](){const _0x2b6c36=_0x284095;this[_0x2b6c36(0xde)][_0x2b6c36(0xfb)][_0x2b6c36(0x160)]();}[_0x284095(0xd5)](){const _0x2a85c9=_0x284095;this[_0x2a85c9(0xde)][_0x2a85c9(0xfb)][_0x2a85c9(0xd5)]();}[_0x284095(0x10a)](_0x55698f,_0x7841a1,_0x1c96ce){const _0x32e7e6=_0x284095;this[_0x32e7e6(0xde)][_0x32e7e6(0xfb)][_0x32e7e6(0x10a)](_0x55698f,_0x7841a1,_0x1c96ce);}[_0x284095(0x15c)](){const _0x557d10=_0x284095;this[_0x557d10(0xde)][_0x557d10(0xfb)][_0x557d10(0x15c)](),this[_0x557d10(0xde)][_0x557d10(0xfb)][_0x557d10(0x110)](this[_0x557d10(0xce)]());}[_0x284095(0xcc)](_0x3a0e18){const _0x4737bf=_0x284095;this[_0x4737bf(0xde)][_0x4737bf(0xfb)][_0x4737bf(0xcc)](_0x3a0e18);}[_0x284095(0x149)](_0x55c62e){const _0x4d246b=_0x284095;this[_0x4d246b(0xde)][_0x4d246b(0xfb)][_0x4d246b(0x11f)](_0x55c62e[_0x4d246b(0x111)]),this[_0x4d246b(0xde)][_0x4d246b(0xfb)][_0x4d246b(0x13e)](_0x55c62e[_0x4d246b(0x14b)]),this[_0x4d246b(0xde)][_0x4d246b(0xfb)][_0x4d246b(0x110)](this[_0x4d246b(0xce)](_0x55c62e));}[_0x284095(0xfe)](_0x5f2297,_0x496afc){const _0x343d35=_0x284095;this[_0x343d35(0xde)][_0x343d35(0xfb)][_0x343d35(0x131)](_0x5f2297),_0x496afc&&this[_0x343d35(0xde)][_0x343d35(0xfb)][_0x343d35(0x113)](!0x1);}[_0x284095(0xd6)](_0x3a6f76){const _0x5f2130=_0x284095;this[_0x5f2130(0x10c)]=_0x3a6f76;}[_0x284095(0x121)](_0x374c8c){const _0x869096=_0x284095;this[_0x869096(0xde)][_0x869096(0x12f)][_0x869096(0x121)](_0x374c8c);}[_0x284095(0xfa)](){const _0x46d9f2=_0x284095;this[_0x46d9f2(0x13a)](_0x16ac82(this[_0x46d9f2(0x122)][_0x46d9f2(0xe8)],_0x46d9f2(0x124)));}[_0x284095(0x13a)](_0x48ac67,_0x354c00=!0x1){const _0x383d69=_0x284095;if(_0x354c00&&!_0x54eabc()&&_0x48ac67[_0x383d69(0xec)])return this[_0x383d69(0xde)][_0x383d69(0x102)][_0x383d69(0x145)]='',void this[_0x383d69(0xe6)](_0x48ac67);this[_0x383d69(0xde)][_0x383d69(0x102)][_0x383d69(0x145)]=_0x48ac67;}[_0x284095(0xc2)](_0xc7d15e){const _0x20ff2d=_0x284095,_0x41f973=this[_0x20ff2d(0xc9)](_0xc7d15e);this[_0x20ff2d(0xde)][_0x20ff2d(0x12f)][_0x20ff2d(0xc2)](_0x41f973);}[_0x284095(0xe6)](_0x3f1211){const _0x21e23c=_0x284095;let _0x317d2d=0x0;clearInterval(this[_0x21e23c(0x132)]),this[_0x21e23c(0x132)]=setInterval(()=>{const _0x133876=_0x21e23c;this[_0x133876(0xde)][_0x133876(0x102)][_0x133876(0x145)]=this[_0x133876(0xde)][_0x133876(0x102)][_0x133876(0x145)]+_0x3f1211[_0x317d2d],_0x317d2d++,_0x317d2d===_0x3f1211[_0x133876(0xec)]&&clearInterval(this[_0x133876(0x132)]);},0x1e);}[_0x284095(0x125)](_0x451477){const _0x418954=_0x284095;this[_0x418954(0xde)][_0x418954(0x102)][_0x418954(0x15d)]=_0x451477;}[_0x284095(0xc9)](_0x3037a7){const _0x37e58a=_0x284095;return _0x3037a7?_0x3037a7[_0x37e58a(0x111)]&&_0x3037a7[_0x37e58a(0x14b)]?_0x16ac82(this[_0x37e58a(0x122)][_0x37e58a(0xe8)],_0x37e58a(0x143)):_0x3037a7[_0x37e58a(0x111)]?_0x16ac82(this[_0x37e58a(0x122)][_0x37e58a(0xe8)],_0x37e58a(0xeb)):_0x3037a7[_0x37e58a(0x14b)]?_0x16ac82(this[_0x37e58a(0x122)][_0x37e58a(0xe8)],_0x37e58a(0x159)):_0x16ac82(this[_0x37e58a(0x122)][_0x37e58a(0xe8)],_0x37e58a(0x14f)):'';}[_0x284095(0xce)](_0x171905){const _0x2248b4=_0x284095;return _0x171905?_0x171905[_0x2248b4(0x111)]&&_0x171905[_0x2248b4(0x14b)]?_0x16ac82(this[_0x2248b4(0x122)][_0x2248b4(0xe8)],_0x2248b4(0xe3)):_0x171905[_0x2248b4(0x111)]?_0x16ac82(this[_0x2248b4(0x122)][_0x2248b4(0xe8)],_0x2248b4(0x152)):_0x171905[_0x2248b4(0x14b)]?_0x16ac82(this[_0x2248b4(0x122)][_0x2248b4(0xe8)],_0x2248b4(0x136)):_0x16ac82(this[_0x2248b4(0x122)][_0x2248b4(0xe8)],_0x2248b4(0xc3)):_0x16ac82(this[_0x2248b4(0x122)][_0x2248b4(0xe8)],_0x2248b4(0xc3));}[_0x284095(0x14a)](_0x383138,_0x3242c3,_0x24abff,_0x28adfc){const _0x5b405e=_0x284095;this[_0x5b405e(0xde)][_0x5b405e(0x14a)](_0x383138,_0x3242c3,_0x24abff,_0x28adfc);}[_0x284095(0xda)](_0x3ba3aa){const _0xd5b7f0=_0x284095;this[_0xd5b7f0(0xde)][_0xd5b7f0(0xda)](_0x3ba3aa);}[_0x284095(0x10f)](){const _0x540017=_0x284095;this[_0x540017(0xde)][_0x540017(0xfb)][_0x540017(0x10f)]();}[_0x284095(0x14c)](_0x3be29e,_0x4608bc){const _0x35f038=_0x284095;this[_0x35f038(0xde)][_0x35f038(0x12f)][_0x35f038(0x11a)](_0x3be29e,_0x4608bc);}[_0x284095(0xcb)](){const _0x355a74=_0x284095;this[_0x355a74(0xde)][_0x355a74(0x12f)][_0x355a74(0xcb)]();}[_0x284095(0xef)](){const _0x146368=_0x284095;this[_0x146368(0xde)][_0x146368(0xfb)][_0x146368(0xed)]=!0x0;}[_0x284095(0x158)](){const _0x4a3059=_0x284095;this[_0x4a3059(0xde)][_0x4a3059(0xfb)][_0x4a3059(0xed)]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3ada10=_0x42a5;function _0x1f1d(){const _0x2137c9=['addUrlToContext','name','contextItemAdded','ai-chat-source-not-found','_config','isCurrentDocumentInContext','_connector','_conversationContextItems','enabled','addContextOptionsChanged','ai-chat-context-unsupported-type','isSelectionInContext','addResourceToContext','uploadDocument','sourceResourcesLoaded','_finishUploadOperation','updateCurrentDocument','set','100530TKwgln','clearPendingContextItems','ai-chat-source-resources-load-failed','removeFromContext','content','values','getPendingContextItems','_ownerId','1738568cpflzV','_pendingContextItems','_addContextOptionsState','_isResourceInContext','attributes','text/html','length','_updateResourceInContextState','_getCustomSourcesInitialState','uiId','size','2bEjtHZ','TEXT','uploadUrl','MARKDOWN','contextSent','object\x20with\x20content\x20and\x20type\x20properties','contextItemLoadingEnded','SELECTION','_convertTextResourceToFile','sources','contextItemRemoved','fetchDocument','378BDhztf','abort','get','842980MisyNi','all','map','ai-chat-context-invalid-data','addSelectionToContext','getSentContextItems','current-document','text/markdown','3493MBLqFP','ai-chat-resource-no-data','_setAddContextOptionsDefaultState','getDocument','_startUploadOperation','FILE','HTML','startsWith','getData','find','ai-chat-file-upload-failed','url-','resourceStateChanged','stack','from','2489913ZxyImw','removeSelectionFromContext','files','_mapContextItemToRequestData','end','DOCUMENT','Current\x20document','addCurrentDocumentToContext','isCurrentDocumentInConversation','init','type','label','forEach','document','sessionId','_createContextItemFromContent','getId','_findSourceIdsByResourceId','ai-request-aborted','populateFromMessage','_addToConversationContextItem','7096HKmGpG','abortController','ai-chat-resource-load-failed','delete','fire','URL','addToConversationContext','file-','_addContextItem','push','addFilesToContext','File','loadSourceResources','11220381xfoiHn','filter','selection','uploadFile','isInContext','error','url','ai-chat-document-upload-failed','string','mapContextItemsToRequestData','version','data','_toggleAddCurrentDocumentOptionVisibility','59285Otdppb','ai-chat-url-upload-failed','resourceId','uploadProgressChanged','resources','message','object','isHidden','start','code','_ongoingUploads','_removeContextItem','_finishContextItemLoading','_ongoingUploadOperations','files-','urls','1177giKIGD','has','hidden','isReadOnly','text/plain','getResources'];_0x1f1d=function(){return _0x2137c9;};return _0x1f1d();}(function(_0x5c7dfd,_0x21a866){const _0x17356d=_0x42a5,_0x42c54d=_0x5c7dfd();while(!![]){try{const _0xc45738=parseInt(_0x17356d(0x137))/0x1*(parseInt(_0x17356d(0x128))/0x2)+parseInt(_0x17356d(0x14e))/0x3+parseInt(_0x17356d(0x11d))/0x4+parseInt(_0x17356d(0x17d))/0x5*(-parseInt(_0x17356d(0x134))/0x6)+parseInt(_0x17356d(0x13f))/0x7*(-parseInt(_0x17356d(0x163))/0x8)+-parseInt(_0x17356d(0x170))/0x9+-parseInt(_0x17356d(0x115))/0xa*(-parseInt(_0x17356d(0xfd))/0xb);if(_0xc45738===_0x21a866)break;else _0x42c54d['push'](_0x42c54d['shift']());}catch(_0x5f271a){_0x42c54d['push'](_0x42c54d['shift']());}}}(_0x1f1d,0xb65c7));import{CKEditorError as _0x56a256,ObservableMixin as _0x355e10,uid as _0x14a39e}from'ckeditor5/src/utils.js';function _0x42a5(_0x30f8d0,_0x3c6ab9){const _0x1f1d27=_0x1f1d();return _0x42a5=function(_0x42a530,_0x2f13f4){_0x42a530=_0x42a530-0xfd;let _0x115865=_0x1f1d27[_0x42a530];return _0x115865;},_0x42a5(_0x30f8d0,_0x3c6ab9);}import{AIContextItemType as _0x4675a6,AIContextTextResourceType as _0x23fc08}from'../../aicore/model/aicontext.js';import{escape as _0x288202}from'es-toolkit/compat';import{errorsMap as _0xb16c61}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x3ada10(0x105),_0x3ada10(0x132),_0x3ada10(0x12e),_0x3ada10(0x12c),_0x3ada10(0x175),_0x3ada10(0x10c),_0x3ada10(0x111),_0x3ada10(0x14b),_0x3ada10(0x180)];export class AIChatContext extends _0x355e10(){[_0x3ada10(0x109)];[_0x3ada10(0x107)];[_0x3ada10(0x11c)];constructor({connector:_0x5cf5a2,config:_0x439adf,ownerId:_0x6cca96}){const _0x344e70=_0x3ada10;super(),this[_0x344e70(0x109)]=_0x5cf5a2,this[_0x344e70(0x107)]=_0x439adf,this[_0x344e70(0x11c)]=_0x6cca96;}[_0x3ada10(0x157)](){const _0x4856e5=_0x3ada10;this[_0x4856e5(0x11e)]=new Map(),this[_0x4856e5(0x10a)]=new Map(),this[_0x4856e5(0x187)]=new Map(),this[_0x4856e5(0x18a)]=new Map(),this[_0x4856e5(0x141)]();}[_0x3ada10(0x11b)](){const _0x4b4cdc=_0x3ada10;return this[_0x4b4cdc(0x11e)];}async[_0x3ada10(0x161)](_0x2d1155){const _0x265da8=_0x3ada10,_0x2c95f8=await this[_0x265da8(0x15d)](_0x2d1155);return this[_0x265da8(0x162)](_0x2c95f8),_0x265da8(0x13d)===_0x2c95f8[_0x265da8(0x126)]&&this[_0x265da8(0x17c)](),_0x2c95f8;}async[_0x3ada10(0x15d)](_0x108bf0){const _0x5e822d=_0x3ada10;if(_0x108bf0[_0x5e822d(0x158)]===_0x4675a6[_0x5e822d(0x153)]){const _0x5841c2=await this[_0x5e822d(0x109)][_0x5e822d(0x133)](this[_0x5e822d(0x11c)],_0x108bf0['id'])[_0x5e822d(0x142)]();return{'id':_0x5e822d(0x13d),'uiId':_0x5e822d(0x13d),'label':_0x5e822d(0x154),'type':_0x108bf0[_0x5e822d(0x158)],'content':_0x5841c2[_0x5e822d(0x119)],'hidden':this[_0x5e822d(0x10a)][_0x5e822d(0xfe)](_0x5e822d(0x13d)),'version':_0x5841c2[_0x5e822d(0x121)]?.[_0x5e822d(0x17a)],'sessionId':_0x5841c2[_0x5e822d(0x121)]?.[_0x5e822d(0x15c)]};}return{'id':_0x108bf0['id'],'uiId':_0x108bf0['id'],'label':_0x108bf0[_0x5e822d(0x121)]?.[_0x5e822d(0x159)]||_0x108bf0[_0x5e822d(0x104)]||_0x108bf0[_0x5e822d(0x176)]||_0x108bf0['id'],'type':_0x108bf0[_0x5e822d(0x158)],..._0x108bf0?.[_0x5e822d(0x121)]?.[_0x5e822d(0x17f)]?{'resourceId':_0x108bf0[_0x5e822d(0x121)]?.[_0x5e822d(0x17f)]}:{}};}[_0x3ada10(0x13c)](){const _0x2e7972=_0x3ada10;return new Map(this[_0x2e7972(0x10a)]);}[_0x3ada10(0x118)](_0x2644cb){const _0x299fb0=_0x3ada10,_0x1163ca=this[_0x299fb0(0x11e)][_0x299fb0(0x136)](_0x2644cb);_0x1163ca?.[_0x299fb0(0x100)]||this[_0x299fb0(0x188)](_0x2644cb);}[_0x3ada10(0x116)](){const _0x23e072=_0x3ada10;if(0x0===this[_0x23e072(0x11e)][_0x23e072(0x127)])return;for(const _0x41db7b of this[_0x23e072(0x11e)][_0x23e072(0x11a)]())this[_0x23e072(0x188)](_0x41db7b[_0x23e072(0x126)]);const _0x280836=this[_0x23e072(0x10a)][_0x23e072(0x136)](_0x23e072(0x13d))||this[_0x23e072(0x11e)][_0x23e072(0x136)](_0x23e072(0x13d));_0x280836&&this[_0x23e072(0x16b)]({..._0x280836,'isReadOnly':!0x0,'hidden':!0x0});}[_0x3ada10(0x169)](_0x4cf52c){const _0x50a876=_0x3ada10;for(const _0xc426a8 of _0x4cf52c[_0x50a876(0x11a)]())this[_0x50a876(0x162)](_0xc426a8);this[_0x50a876(0x116)](),this[_0x50a876(0x167)](_0x50a876(0x12c),{'contextItems':Array[_0x50a876(0x14d)](this[_0x50a876(0x13c)]()[_0x50a876(0x11a)]())});}[_0x3ada10(0x108)](){const _0x29f1ef=_0x3ada10;return this[_0x29f1ef(0x11e)][_0x29f1ef(0xfe)](_0x29f1ef(0x13d));}[_0x3ada10(0x10e)](){const _0x376e1e=_0x3ada10;return this[_0x376e1e(0x11e)][_0x376e1e(0xfe)](_0x376e1e(0x172));}[_0x3ada10(0x156)](){const _0x221360=_0x3ada10;return this[_0x221360(0x10a)][_0x221360(0xfe)](_0x221360(0x13d));}static[_0x3ada10(0x179)](_0x4a70a1){const _0x3b2a02=_0x3ada10;return Array[_0x3b2a02(0x14d)](_0x4a70a1[_0x3b2a02(0x11a)]())[_0x3b2a02(0x139)](_0x258917=>this[_0x3b2a02(0x151)](_0x258917))[_0x3b2a02(0x171)](_0x21963f=>null!==_0x21963f);}async[_0x3ada10(0x16d)](_0x1ea2e2,_0x146dc3,_0xf1cb09=_0x4675a6[_0x3ada10(0x144)]){const _0x39a285=_0x3ada10,_0x5c7550=_0x39a285(0x18b)+_0x14a39e();this[_0x39a285(0x143)](_0x5c7550);try{await Promise[_0x39a285(0x138)](_0x1ea2e2[_0x39a285(0x139)](async _0x302756=>{const _0xbb8813=_0x39a285,_0x176a9a=_0xbb8813(0x16a)+_0x14a39e(),_0x4ac654=_0x288202(_0x302756[_0xbb8813(0x104)]);try{this[_0xbb8813(0x16b)]({'type':_0xf1cb09,'label':_0x146dc3?.[_0xbb8813(0x159)]||_0x4ac654,'uiId':_0x176a9a,'resourceId':_0x146dc3?.[_0xbb8813(0x17f)]},!0x0);const _0x4bfb2d=this[_0xbb8813(0x109)][_0xbb8813(0x173)](this[_0xbb8813(0x11c)],_0x302756,_0x146dc3);this[_0xbb8813(0x187)][_0xbb8813(0x114)](_0x176a9a,_0x4bfb2d[_0xbb8813(0x164)]);const {id:_0x5a596a}=await _0x4bfb2d[_0xbb8813(0x15e)]();this[_0xbb8813(0x187)][_0xbb8813(0x166)](_0x176a9a),this[_0xbb8813(0x189)]({'type':_0xf1cb09,'id':_0x5a596a,'label':_0x146dc3?.[_0xbb8813(0x159)]||_0x4ac654,'uiId':_0x176a9a,'resourceId':_0x146dc3?.[_0xbb8813(0x17f)]},!0x1);}catch(_0x3b6814){this[_0xbb8813(0x187)][_0xbb8813(0x166)](_0x176a9a);if(!(_0x3b6814 instanceof _0x56a256&&_0x3b6814[_0xbb8813(0x182)][_0xbb8813(0x146)](_0xbb8813(0x160)))){const _0x3bc903=_0xb16c61[_0xbb8813(0x136)](_0x3b6814[_0xbb8813(0x186)])||_0xbb8813(0x149),_0x58dacd=new _0x56a256(_0x3bc903,null,{'fileName':_0x4ac654,..._0x3b6814});_0x58dacd[_0xbb8813(0x14c)]=_0x3b6814[_0xbb8813(0x14c)],this[_0xbb8813(0x167)](_0xbb8813(0x175),{'error':_0x58dacd});}this[_0xbb8813(0x188)](_0x176a9a);}}));}finally{this[_0x39a285(0x112)](_0x5c7550);}}[_0x3ada10(0x155)](_0x4621b2){const _0x297dcc=_0x3ada10;if(this[_0x297dcc(0x108)]()||!this[_0x297dcc(0x11f)][_0x297dcc(0x15b)][_0x297dcc(0x10b)])return;const _0x30607b={'type':_0x4675a6[_0x297dcc(0x153)],'uiId':_0x297dcc(0x13d),'label':_0x4621b2,'isReadOnly':this[_0x297dcc(0x10a)][_0x297dcc(0xfe)](_0x297dcc(0x13d)),'hidden':this[_0x297dcc(0x10a)][_0x297dcc(0xfe)](_0x297dcc(0x13d))};this[_0x297dcc(0x16b)](_0x30607b);}async[_0x3ada10(0x113)](_0x17306c,_0x5d82fa,_0x2fd8ad,_0x4a591a){const _0x554bb2=_0x3ada10,_0x163806=this[_0x554bb2(0x11e)][_0x554bb2(0x136)](_0x554bb2(0x13d));if(_0x163806&&_0x17306c){_0x163806[_0x554bb2(0x172)]=_0x4a591a?_0x4a591a[_0x554bb2(0x139)](_0x23d9df=>({'start':_0x23d9df[_0x554bb2(0x185)],'end':_0x23d9df[_0x554bb2(0x152)]})):[];try{if(_0x163806[_0x554bb2(0x17a)]===_0x5d82fa)return;const {id:_0x2fe01a}=await this[_0x554bb2(0x109)][_0x554bb2(0x110)](this[_0x554bb2(0x11c)],_0x17306c,{'version':_0x5d82fa,'sessionId':_0x2fd8ad})[_0x554bb2(0x15e)]();_0x163806['id']=_0x2fe01a,_0x163806[_0x554bb2(0x119)]=_0x17306c,_0x163806[_0x554bb2(0x17a)]=_0x5d82fa,_0x163806[_0x554bb2(0x15c)]=_0x2fd8ad;}catch(_0x518eef){const _0x180f88=new _0x56a256(_0x554bb2(0x177),null);_0x180f88[_0x554bb2(0x14c)]=_0x518eef[_0x554bb2(0x14c)],this[_0x554bb2(0x167)](_0x554bb2(0x175),{'error':_0x180f88});}}}[_0x3ada10(0x13b)](_0x317b8f){const _0x59f2fa=_0x3ada10;this[_0x59f2fa(0x16b)]({'type':_0x4675a6[_0x59f2fa(0x12f)],'label':_0x317b8f,'uiId':_0x59f2fa(0x172),'content':_0x317b8f});}[_0x3ada10(0x14f)](){const _0x443d48=_0x3ada10;this[_0x443d48(0x188)](_0x443d48(0x172));}async[_0x3ada10(0x103)](_0x383bd9,_0x424504){const _0x3efdf6=_0x3ada10,_0x2c125e=_0x3efdf6(0x14a)+_0x14a39e();this[_0x3efdf6(0x143)](_0x2c125e);const _0x4aef0e=_0x3efdf6(0x14a)+_0x14a39e();try{this[_0x3efdf6(0x16b)]({'type':_0x4675a6[_0x3efdf6(0x168)],'label':_0x424504?.[_0x3efdf6(0x159)]||_0x383bd9,'uiId':_0x4aef0e,'resourceId':_0x424504?.[_0x3efdf6(0x17f)]},!0x0);const _0x36521b=this[_0x3efdf6(0x109)][_0x3efdf6(0x12a)](this[_0x3efdf6(0x11c)],_0x383bd9,_0x424504);this[_0x3efdf6(0x187)][_0x3efdf6(0x114)](_0x4aef0e,_0x36521b[_0x3efdf6(0x164)]);const {id:_0x5ed344}=await _0x36521b[_0x3efdf6(0x15e)]();this[_0x3efdf6(0x187)][_0x3efdf6(0x166)](_0x4aef0e),this[_0x3efdf6(0x189)]({'type':_0x4675a6[_0x3efdf6(0x168)],'id':_0x5ed344,'label':_0x424504?.[_0x3efdf6(0x159)]||_0x383bd9,'uiId':_0x4aef0e,'resourceId':_0x424504?.[_0x3efdf6(0x17f)]},!0x1);}catch(_0x4a2730){this[_0x3efdf6(0x187)][_0x3efdf6(0x166)](_0x4aef0e),(_0x4a2730[_0x3efdf6(0x182)][_0x3efdf6(0x146)](_0x3efdf6(0x160))||this[_0x3efdf6(0x167)](_0x3efdf6(0x175),{'error':new _0x56a256(_0x3efdf6(0x17e),this,{'url':_0x383bd9,'originalError':_0x4a2730}),'url':_0x383bd9}),this[_0x3efdf6(0x188)](_0x4aef0e));}finally{this[_0x3efdf6(0x112)](_0x2c125e);}}async[_0x3ada10(0x16f)](_0x1f4762,_0x55699a,_0xbc9750){const _0x374951=_0x3ada10,_0x5264dc=this[_0x374951(0x11f)][_0x374951(0x131)][_0x374951(0x148)](_0x35d956=>_0x35d956['id']===_0x1f4762);if(!_0x5264dc)return this[_0x374951(0x167)](_0x374951(0x175),{'error':new _0x56a256(_0x374951(0x106),this,{'sourceId':_0x1f4762}),'sourceId':_0x1f4762}),[];try{const _0x446f52=(await _0x5264dc[_0x374951(0x102)](_0x55699a))[_0x374951(0x139)](_0x1a4a1d=>{const _0x209565=_0x374951,_0x55fcb8=this[_0x209565(0x120)](_0x1a4a1d['id']);return{..._0x1a4a1d,'isInContext':_0x55fcb8};});return _0x5264dc[_0x374951(0x181)]=_0x446f52,this[_0x374951(0x167)](_0x374951(0x111),{'sourceId':_0x1f4762,'source':_0x5264dc,'resources':_0x446f52,'uid':_0xbc9750}),_0x446f52;}catch(_0x171dcb){return this[_0x374951(0x167)](_0x374951(0x175),{'error':new _0x56a256(_0x374951(0x117),this,{'sourceId':_0x1f4762,'originalError':_0x171dcb}),'sourceId':_0x1f4762,'sourceLabel':_0x5264dc[_0x374951(0x159)]}),[];}}async[_0x3ada10(0x10f)](_0x5a3532,_0x1a42a6){const _0x27613b=_0x3ada10;if(this[_0x27613b(0x120)](_0x1a42a6['id']))return;let _0x17b3d7=_0x1a42a6[_0x27613b(0x17b)];if(!_0x17b3d7&&_0x5a3532[_0x27613b(0x147)])try{_0x17b3d7=await _0x5a3532[_0x27613b(0x147)](_0x1a42a6['id']);}catch(_0x5b1e07){return void this[_0x27613b(0x167)](_0x27613b(0x175),{'error':new _0x56a256(_0x27613b(0x165),this,{'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id'],'originalError':_0x5b1e07}),'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id']});}if(_0x17b3d7)switch(_0x1a42a6[_0x27613b(0x158)]){case _0x4675a6[_0x27613b(0x168)]:if(_0x27613b(0x178)!=typeof _0x17b3d7)return void this[_0x27613b(0x167)](_0x27613b(0x175),{'error':new _0x56a256(_0x27613b(0x13a),this,{'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id'],'expectedType':_0x27613b(0x178),'actualType':typeof _0x17b3d7}),'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id']});await this[_0x27613b(0x103)](_0x17b3d7,{'label':_0x1a42a6[_0x27613b(0x159)],'resourceId':_0x1a42a6['id']});break;case _0x4675a6[_0x27613b(0x144)]:if(!(_0x17b3d7 instanceof File))return void this[_0x27613b(0x167)](_0x27613b(0x175),{'error':new _0x56a256(_0x27613b(0x13a),this,{'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id'],'expectedType':_0x27613b(0x16e),'actualType':typeof _0x17b3d7}),'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id']});await this[_0x27613b(0x16d)]([_0x17b3d7],{'label':_0x1a42a6[_0x27613b(0x159)],'resourceId':_0x1a42a6['id']});break;case _0x4675a6[_0x27613b(0x129)]:if(_0x27613b(0x183)!=typeof _0x17b3d7||!(_0x27613b(0x119)in _0x17b3d7)||!(_0x27613b(0x158)in _0x17b3d7))return void this[_0x27613b(0x167)](_0x27613b(0x175),{'error':new _0x56a256(_0x27613b(0x13a),this,{'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id'],'expectedType':_0x27613b(0x12d),'actualType':typeof _0x17b3d7}),'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id']});_0x17b3d7=AIChatContext[_0x27613b(0x130)](_0x17b3d7,_0x1a42a6[_0x27613b(0x159)]),await this[_0x27613b(0x16d)]([_0x17b3d7],{'label':_0x1a42a6[_0x27613b(0x159)],'resourceId':_0x1a42a6['id']},_0x4675a6[_0x27613b(0x129)]);break;default:this[_0x27613b(0x167)](_0x27613b(0x175),{'error':new _0x56a256(_0x27613b(0x10d),this,{'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id'],'resourceType':_0x1a42a6[_0x27613b(0x158)]}),'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id']});}else this[_0x27613b(0x167)](_0x27613b(0x175),{'error':new _0x56a256(_0x27613b(0x140),this,{'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id']}),'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id']});}static[_0x3ada10(0x130)](_0xd23547,_0x361c0d){const _0x12cca5=_0x3ada10;switch(_0xd23547[_0x12cca5(0x158)]){case _0x23fc08[_0x12cca5(0x12b)]:return new File([_0xd23547[_0x12cca5(0x119)]],_0x361c0d,{'type':_0x12cca5(0x13e)});case _0x23fc08[_0x12cca5(0x145)]:return new File([_0xd23547[_0x12cca5(0x119)]],_0x361c0d,{'type':_0x12cca5(0x122)});default:return new File([_0xd23547[_0x12cca5(0x119)]],_0x361c0d,{'type':_0x12cca5(0x101)});}}static[_0x3ada10(0x151)](_0x78845){const _0x122198=_0x3ada10;switch(_0x78845[_0x122198(0x158)]){case _0x4675a6[_0x122198(0x144)]:return{'type':_0x4675a6[_0x122198(0x144)],'id':_0x78845['id']};case _0x4675a6[_0x122198(0x168)]:return{'type':_0x4675a6[_0x122198(0x168)],'id':_0x78845['id']};case _0x4675a6[_0x122198(0x153)]:return{'type':_0x4675a6[_0x122198(0x153)],'id':_0x78845['id'],..._0x78845[_0x122198(0x172)]?.[_0x122198(0x123)]&&{'selection':_0x78845[_0x122198(0x172)]}};case _0x4675a6[_0x122198(0x129)]:return{'type':_0x4675a6[_0x122198(0x144)],'id':_0x78845['id']};default:return null;}}[_0x3ada10(0x16b)](_0x48730d,_0x373937=!0x1){const _0x5360a8=_0x3ada10;if(this[_0x5360a8(0x11e)][_0x5360a8(0x114)](_0x48730d[_0x5360a8(0x126)],_0x48730d),_0x48730d[_0x5360a8(0xff)]||this[_0x5360a8(0x167)](_0x5360a8(0x105),{'contextItem':_0x48730d,'isLoading':_0x373937}),_0x5360a8(0x13d)===_0x48730d[_0x5360a8(0x126)]&&this[_0x5360a8(0x17c)](),_0x48730d[_0x5360a8(0x17f)]){const _0x189101=this[_0x5360a8(0x15f)](_0x48730d[_0x5360a8(0x17f)]);_0x189101&&_0x189101[_0x5360a8(0x15a)](_0xad4524=>{const _0xbbe87c=_0x5360a8;this[_0xbbe87c(0x124)](_0xad4524,_0x48730d[_0xbbe87c(0x17f)],!0x0);});}}[_0x3ada10(0x188)](_0x484615){const _0x5b284a=_0x3ada10,_0x4d67ba=this[_0x5b284a(0x11e)][_0x5b284a(0x136)](_0x484615),_0x34b8ca=this[_0x5b284a(0x187)][_0x5b284a(0x136)](_0x484615);if(_0x34b8ca&&(_0x34b8ca[_0x5b284a(0x135)](),this[_0x5b284a(0x187)][_0x5b284a(0x166)](_0x484615)),_0x4d67ba?.[_0x5b284a(0x17f)]){const _0x365de2=this[_0x5b284a(0x15f)](_0x4d67ba[_0x5b284a(0x17f)]);_0x365de2&&_0x365de2[_0x5b284a(0x15a)](_0x1aa07c=>{const _0x3007fa=_0x5b284a;this[_0x3007fa(0x124)](_0x1aa07c,_0x4d67ba[_0x3007fa(0x17f)],!0x1);});}this[_0x5b284a(0x11e)][_0x5b284a(0x166)](_0x484615),this[_0x5b284a(0x167)](_0x5b284a(0x132),{'uiId':_0x484615,'type':_0x4d67ba?.[_0x5b284a(0x158)]}),_0x5b284a(0x13d)===_0x484615&&this[_0x5b284a(0x17c)]();}[_0x3ada10(0x189)](_0x33abd1,_0x2b3cbe){const _0x42b908=_0x3ada10;if(this[_0x42b908(0x11e)][_0x42b908(0xfe)](_0x33abd1[_0x42b908(0x126)])&&(this[_0x42b908(0x11e)][_0x42b908(0x114)](_0x33abd1[_0x42b908(0x126)],_0x33abd1),this[_0x42b908(0x167)](_0x42b908(0x12e),{'contextItem':_0x33abd1,'isLoading':_0x2b3cbe}),_0x33abd1[_0x42b908(0x17f)])){const _0xda4fc6=this[_0x42b908(0x15f)](_0x33abd1[_0x42b908(0x17f)]);_0xda4fc6&&_0xda4fc6[_0x42b908(0x15a)](_0x2be14a=>{const _0x5e8873=_0x42b908;this[_0x5e8873(0x124)](_0x2be14a,_0x33abd1[_0x5e8873(0x17f)],!0x0);});}}[_0x3ada10(0x162)](_0x1455e4){const _0x2fc7cf=_0x3ada10;this[_0x2fc7cf(0x10a)][_0x2fc7cf(0x114)](_0x1455e4[_0x2fc7cf(0x126)],_0x1455e4);}[_0x3ada10(0x141)](){const _0x205565=_0x3ada10;this[_0x205565(0x11f)]={'document':{'enabled':!0x1!==this[_0x205565(0x107)]?.[_0x205565(0x15b)]?.[_0x205565(0x10b)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x205565(0x107)]?.[_0x205565(0x18c)]?.[_0x205565(0x10b)]},'files':{'enabled':!0x1!==this[_0x205565(0x107)]?.[_0x205565(0x150)]?.[_0x205565(0x10b)]},'sources':this[_0x205565(0x125)]()},this[_0x205565(0x167)](_0x205565(0x10c),{'options':this[_0x205565(0x11f)]});}[_0x3ada10(0x125)](){const _0x1193d8=_0x3ada10;return this[_0x1193d8(0x107)]?.[_0x1193d8(0x131)]?.[_0x1193d8(0x139)](_0x45e177=>({..._0x45e177,'resources':[]}))??[];}[_0x3ada10(0x17c)](){const _0x4840e7=_0x3ada10,_0x83590e=this[_0x4840e7(0x108)]()||this[_0x4840e7(0x156)]();this[_0x4840e7(0x11f)][_0x4840e7(0x15b)][_0x4840e7(0x184)]=_0x83590e,this[_0x4840e7(0x167)](_0x4840e7(0x10c),{'options':this[_0x4840e7(0x11f)]});}[_0x3ada10(0x120)](_0x216d89){const _0x21ed85=_0x3ada10;for(const _0xe5f36b of this[_0x21ed85(0x11e)][_0x21ed85(0x11a)]())if(_0xe5f36b[_0x21ed85(0x17f)]===_0x216d89)return!0x0;for(const _0x1037c8 of this[_0x21ed85(0x10a)][_0x21ed85(0x11a)]())if(_0x1037c8[_0x21ed85(0x17f)]===_0x216d89)return!0x0;return!0x1;}[_0x3ada10(0x15f)](_0x4ddc2e){const _0x10b1bd=_0x3ada10,_0x341d82=[];for(const _0x1e3be0 of this[_0x10b1bd(0x11f)][_0x10b1bd(0x131)]){_0x1e3be0[_0x10b1bd(0x181)][_0x10b1bd(0x148)](_0x3e296a=>_0x3e296a['id']===_0x4ddc2e)&&_0x341d82[_0x10b1bd(0x16c)](_0x1e3be0['id']);}return 0x0===_0x341d82[_0x10b1bd(0x123)]?null:_0x341d82;}[_0x3ada10(0x124)](_0x411416,_0x2a24cc,_0x20cddc){const _0x4d7bab=_0x3ada10,_0x48c38e=this[_0x4d7bab(0x11f)][_0x4d7bab(0x131)][_0x4d7bab(0x148)](_0x2e1ee2=>_0x2e1ee2['id']===_0x411416);if(!_0x48c38e)return;const _0x3c30f9=_0x48c38e[_0x4d7bab(0x181)][_0x4d7bab(0x148)](_0x533131=>_0x533131['id']===_0x2a24cc);_0x3c30f9&&(_0x3c30f9[_0x4d7bab(0x174)]=_0x20cddc,this[_0x4d7bab(0x167)](_0x4d7bab(0x14b),{'sourceId':_0x411416,'resourceId':_0x2a24cc,'isInContext':_0x20cddc}));}[_0x3ada10(0x143)](_0xbda23d){const _0x425f40=_0x3ada10;this[_0x425f40(0x18a)][_0x425f40(0x114)](_0xbda23d,!0x0),this[_0x425f40(0x18a)][_0x425f40(0x127)]&&this[_0x425f40(0x167)](_0x425f40(0x180),{'isUploadInProgress':!0x0});}[_0x3ada10(0x112)](_0x113009){const _0x7fa43f=_0x3ada10;this[_0x7fa43f(0x18a)][_0x7fa43f(0x166)](_0x113009),0x0===this[_0x7fa43f(0x18a)][_0x7fa43f(0x127)]&&this[_0x7fa43f(0x167)](_0x7fa43f(0x180),{'isUploadInProgress':!0x1});}}
|
|
23
|
+
const _0x2ea2d0=_0x5e2e;(function(_0x3cc9c0,_0x21b6f7){const _0x31ac90=_0x5e2e,_0x1664c4=_0x3cc9c0();while(!![]){try{const _0x1dc3a9=parseInt(_0x31ac90(0x1b9))/0x1+parseInt(_0x31ac90(0x222))/0x2+parseInt(_0x31ac90(0x229))/0x3+-parseInt(_0x31ac90(0x1d0))/0x4*(-parseInt(_0x31ac90(0x1ff))/0x5)+parseInt(_0x31ac90(0x1ad))/0x6*(-parseInt(_0x31ac90(0x206))/0x7)+-parseInt(_0x31ac90(0x22c))/0x8+parseInt(_0x31ac90(0x225))/0x9*(-parseInt(_0x31ac90(0x1cf))/0xa);if(_0x1dc3a9===_0x21b6f7)break;else _0x1664c4['push'](_0x1664c4['shift']());}catch(_0x274d37){_0x1664c4['push'](_0x1664c4['shift']());}}}(_0x1d56,0x8a752));function _0x5e2e(_0x46a816,_0x4be863){const _0x1d56d1=_0x1d56();return _0x5e2e=function(_0x5e2e26,_0x81ec8e){_0x5e2e26=_0x5e2e26-0x1a4;let _0x50f789=_0x1d56d1[_0x5e2e26];return _0x50f789;},_0x5e2e(_0x46a816,_0x4be863);}import{CKEditorError as _0x36262f,ObservableMixin as _0x2f3c0a,uid as _0x2aaa18}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x36b57b,AIContextTextResourceType as _0x1b09ae}from'../../aicore/model/aicontext.js';import{escape as _0x1ea844}from'es-toolkit/compat';import{errorsMap as _0x4b27f9}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x2ea2d0(0x214),_0x2ea2d0(0x1dc),_0x2ea2d0(0x20f),_0x2ea2d0(0x1d7),_0x2ea2d0(0x1c0),_0x2ea2d0(0x1a6),_0x2ea2d0(0x1c8),_0x2ea2d0(0x205),_0x2ea2d0(0x1f7)];export class AIChatContext extends _0x2f3c0a(){[_0x2ea2d0(0x1d5)];[_0x2ea2d0(0x1c1)];[_0x2ea2d0(0x20b)];constructor({connector:_0x45f423,config:_0x4abca2,ownerId:_0x81cc06}){const _0x183d6e=_0x2ea2d0;super(),this[_0x183d6e(0x1d5)]=_0x45f423,this[_0x183d6e(0x1c1)]=_0x4abca2,this[_0x183d6e(0x20b)]=_0x81cc06;}[_0x2ea2d0(0x203)](){const _0x1ca0b0=_0x2ea2d0;this[_0x1ca0b0(0x1b8)]=new Map(),this[_0x1ca0b0(0x20c)]=new Map(),this[_0x1ca0b0(0x231)]=new Map(),this[_0x1ca0b0(0x210)]=new Map(),this[_0x1ca0b0(0x1e1)]();}[_0x2ea2d0(0x1f5)](){const _0x30783b=_0x2ea2d0;return this[_0x30783b(0x1b8)];}async[_0x2ea2d0(0x1fd)](_0x4812f9){const _0x333fea=_0x2ea2d0,_0x25a380=await this[_0x333fea(0x1a8)](_0x4812f9);return this[_0x333fea(0x1bc)](_0x25a380),_0x333fea(0x1aa)===_0x25a380[_0x333fea(0x1ae)]&&this[_0x333fea(0x202)](),_0x25a380;}async[_0x2ea2d0(0x1a8)](_0x806b35){const _0x362364=_0x2ea2d0;if(_0x806b35[_0x362364(0x1da)]===_0x36b57b[_0x362364(0x1c7)]){const _0x3ce736=await this[_0x362364(0x1d5)][_0x362364(0x209)](this[_0x362364(0x20b)],_0x806b35['id'])[_0x362364(0x1af)]();return{'id':_0x362364(0x1aa),'uiId':_0x362364(0x1aa),'label':_0x362364(0x1c6),'type':_0x806b35[_0x362364(0x1da)],'content':_0x3ce736[_0x362364(0x1f8)],'hidden':this[_0x362364(0x20c)][_0x362364(0x1ed)](_0x362364(0x1aa)),'version':_0x3ce736[_0x362364(0x1f3)]?.[_0x362364(0x1f9)],'sessionId':_0x3ce736[_0x362364(0x1f3)]?.[_0x362364(0x1ea)]};}return{'id':_0x806b35['id'],'uiId':_0x806b35['id'],'label':_0x806b35[_0x362364(0x1f3)]?.[_0x362364(0x21c)]||_0x806b35[_0x362364(0x1b7)]||_0x806b35[_0x362364(0x1ee)]||_0x806b35['id'],'type':_0x806b35[_0x362364(0x1da)],..._0x806b35?.[_0x362364(0x1f3)]?.[_0x362364(0x1f0)]?{'resourceId':_0x806b35[_0x362364(0x1f3)]?.[_0x362364(0x1f0)]}:{}};}[_0x2ea2d0(0x1c2)](){const _0xe82849=_0x2ea2d0;return new Map(this[_0xe82849(0x20c)]);}[_0x2ea2d0(0x1bb)](_0x194d7a){const _0x29120c=_0x2ea2d0,_0x561920=this[_0x29120c(0x1b8)][_0x29120c(0x213)](_0x194d7a);_0x561920?.[_0x29120c(0x1b2)]||this[_0x29120c(0x1cc)](_0x194d7a);}[_0x2ea2d0(0x1d3)](){const _0x458e9=_0x2ea2d0;if(0x0===this[_0x458e9(0x1b8)][_0x458e9(0x204)])return;for(const _0x461ce2 of this[_0x458e9(0x1b8)][_0x458e9(0x1d6)]())this[_0x458e9(0x1cc)](_0x461ce2[_0x458e9(0x1ae)]);const _0x3bdb90=this[_0x458e9(0x20c)][_0x458e9(0x213)](_0x458e9(0x1aa))||this[_0x458e9(0x1b8)][_0x458e9(0x213)](_0x458e9(0x1aa));_0x3bdb90&&this[_0x458e9(0x1b1)]({..._0x3bdb90,'isReadOnly':!0x0,'hidden':!0x0});}[_0x2ea2d0(0x21d)](_0x2412f0){const _0x1fdc47=_0x2ea2d0;for(const _0x3966c5 of _0x2412f0[_0x1fdc47(0x1d6)]())this[_0x1fdc47(0x1bc)](_0x3966c5);this[_0x1fdc47(0x1d3)](),this[_0x1fdc47(0x1fc)](_0x1fdc47(0x1d7),{'contextItems':Array[_0x1fdc47(0x212)](this[_0x1fdc47(0x1c2)]()[_0x1fdc47(0x1d6)]())});}[_0x2ea2d0(0x1a4)](){const _0xbdb70b=_0x2ea2d0;return this[_0xbdb70b(0x1b8)][_0xbdb70b(0x1ed)](_0xbdb70b(0x1aa));}[_0x2ea2d0(0x1df)](){const _0x253af2=_0x2ea2d0;return this[_0x253af2(0x1b8)][_0x253af2(0x1ed)](_0x253af2(0x219));}[_0x2ea2d0(0x1b6)](){const _0x2b80a3=_0x2ea2d0;return this[_0x2b80a3(0x20c)][_0x2b80a3(0x1ed)](_0x2b80a3(0x1aa));}static[_0x2ea2d0(0x20d)](_0x304f70){const _0x27d0bc=_0x2ea2d0;return Array[_0x27d0bc(0x212)](_0x304f70[_0x27d0bc(0x1d6)]())[_0x27d0bc(0x1fe)](_0x1a52e4=>this[_0x27d0bc(0x1ba)](_0x1a52e4))[_0x27d0bc(0x1dd)](_0x597624=>null!==_0x597624);}async[_0x2ea2d0(0x207)](_0x173d80,_0x164208,_0x5df278=_0x36b57b[_0x2ea2d0(0x1cd)]){const _0xceb25f=_0x2ea2d0,_0xd015fb=_0xceb25f(0x1e9)+_0x2aaa18();this[_0xceb25f(0x208)](_0xd015fb);try{await Promise[_0xceb25f(0x22e)](_0x173d80[_0xceb25f(0x1fe)](async _0x1ce45e=>{const _0x151c0a=_0xceb25f,_0x549c4d=_0x151c0a(0x226)+_0x2aaa18(),_0x12dcff=_0x1ea844(_0x1ce45e[_0x151c0a(0x1b7)]);try{this[_0x151c0a(0x1b1)]({'type':_0x5df278,'label':_0x164208?.[_0x151c0a(0x21c)]||_0x12dcff,'uiId':_0x549c4d,'resourceId':_0x164208?.[_0x151c0a(0x1f0)]},!0x0);const _0x1fec18=this[_0x151c0a(0x1d5)][_0x151c0a(0x20a)](this[_0x151c0a(0x20b)],_0x1ce45e,_0x164208);this[_0x151c0a(0x231)][_0x151c0a(0x1ef)](_0x549c4d,_0x1fec18[_0x151c0a(0x22d)]);const {id:_0x42fa8a}=await _0x1fec18[_0x151c0a(0x21b)]();this[_0x151c0a(0x231)][_0x151c0a(0x1d8)](_0x549c4d),this[_0x151c0a(0x1a7)]({'type':_0x5df278,'id':_0x42fa8a,'label':_0x164208?.[_0x151c0a(0x21c)]||_0x12dcff,'uiId':_0x549c4d,'resourceId':_0x164208?.[_0x151c0a(0x1f0)]},!0x1);}catch(_0x4d8217){this[_0x151c0a(0x231)][_0x151c0a(0x1d8)](_0x549c4d);if(!(_0x4d8217 instanceof _0x36262f&&_0x4d8217[_0x151c0a(0x223)][_0x151c0a(0x1e6)](_0x151c0a(0x216)))){const _0x5147eb=_0x4b27f9[_0x151c0a(0x213)](_0x4d8217[_0x151c0a(0x1d2)])||_0x151c0a(0x1de),_0x2f9c14=new _0x36262f(_0x5147eb,null,{'fileName':_0x12dcff,..._0x4d8217});_0x2f9c14[_0x151c0a(0x1cb)]=_0x4d8217[_0x151c0a(0x1cb)],this[_0x151c0a(0x1fc)](_0x151c0a(0x1c0),{'error':_0x2f9c14});}this[_0x151c0a(0x1cc)](_0x549c4d);}}));}finally{this[_0xceb25f(0x1b0)](_0xd015fb);}}[_0x2ea2d0(0x1f6)](_0x136b69){const _0x4aa578=_0x2ea2d0;if(this[_0x4aa578(0x1a4)]()||!this[_0x4aa578(0x1e5)][_0x4aa578(0x227)][_0x4aa578(0x217)])return;const _0x5d6634={'type':_0x36b57b[_0x4aa578(0x1c7)],'uiId':_0x4aa578(0x1aa),'label':_0x136b69,'isReadOnly':this[_0x4aa578(0x20c)][_0x4aa578(0x1ed)](_0x4aa578(0x1aa)),'hidden':this[_0x4aa578(0x20c)][_0x4aa578(0x1ed)](_0x4aa578(0x1aa))};this[_0x4aa578(0x1b1)](_0x5d6634);}async[_0x2ea2d0(0x1db)](_0x28b73b,_0x522141,_0x5c9db4,_0x34db8c){const _0x520f12=_0x2ea2d0,_0x359307=this[_0x520f12(0x1b8)][_0x520f12(0x213)](_0x520f12(0x1aa));if(_0x359307&&_0x28b73b){_0x359307[_0x520f12(0x219)]=_0x34db8c?_0x34db8c[_0x520f12(0x1fe)](_0x63fe62=>({'start':_0x63fe62[_0x520f12(0x1d4)],'end':_0x63fe62[_0x520f12(0x1e4)]})):[];try{if(_0x359307[_0x520f12(0x1f9)]===_0x522141)return;const {id:_0x3049a1}=await this[_0x520f12(0x1d5)][_0x520f12(0x1f4)](this[_0x520f12(0x20b)],_0x28b73b,{'version':_0x522141,'sessionId':_0x5c9db4})[_0x520f12(0x21b)]();_0x359307['id']=_0x3049a1,_0x359307[_0x520f12(0x1f8)]=_0x28b73b,_0x359307[_0x520f12(0x1f9)]=_0x522141,_0x359307[_0x520f12(0x1ea)]=_0x5c9db4;}catch(_0x5399a2){const _0x5cc73e=new _0x36262f(_0x520f12(0x1e0),null);_0x5cc73e[_0x520f12(0x1cb)]=_0x5399a2[_0x520f12(0x1cb)],this[_0x520f12(0x1fc)](_0x520f12(0x1c0),{'error':_0x5cc73e});}}}[_0x2ea2d0(0x228)](_0x122fbe){const _0x50eafb=_0x2ea2d0;this[_0x50eafb(0x1b1)]({'type':_0x36b57b[_0x50eafb(0x215)],'label':_0x122fbe,'uiId':_0x50eafb(0x219),'content':_0x122fbe});}[_0x2ea2d0(0x1ce)](){const _0x2b3fdd=_0x2ea2d0;this[_0x2b3fdd(0x1cc)](_0x2b3fdd(0x219));}async[_0x2ea2d0(0x22b)](_0x4d2bbe,_0x3347f1){const _0xd35b23=_0x2ea2d0,_0x5b55f0=_0xd35b23(0x1e7)+_0x2aaa18();this[_0xd35b23(0x208)](_0x5b55f0);const _0x141378=_0xd35b23(0x1e7)+_0x2aaa18();try{this[_0xd35b23(0x1b1)]({'type':_0x36b57b[_0xd35b23(0x1bd)],'label':_0x3347f1?.[_0xd35b23(0x21c)]||_0x4d2bbe,'uiId':_0x141378,'resourceId':_0x3347f1?.[_0xd35b23(0x1f0)]},!0x0);const _0x15c2a2=this[_0xd35b23(0x1d5)][_0xd35b23(0x1ac)](this[_0xd35b23(0x20b)],_0x4d2bbe,_0x3347f1);this[_0xd35b23(0x231)][_0xd35b23(0x1ef)](_0x141378,_0x15c2a2[_0xd35b23(0x22d)]);const {id:_0x41cea4}=await _0x15c2a2[_0xd35b23(0x21b)]();this[_0xd35b23(0x231)][_0xd35b23(0x1d8)](_0x141378),this[_0xd35b23(0x1a7)]({'type':_0x36b57b[_0xd35b23(0x1bd)],'id':_0x41cea4,'label':_0x3347f1?.[_0xd35b23(0x21c)]||_0x4d2bbe,'uiId':_0x141378,'resourceId':_0x3347f1?.[_0xd35b23(0x1f0)]},!0x1);}catch(_0x34bb58){this[_0xd35b23(0x231)][_0xd35b23(0x1d8)](_0x141378),(_0x34bb58[_0xd35b23(0x223)][_0xd35b23(0x1e6)](_0xd35b23(0x216))||this[_0xd35b23(0x1fc)](_0xd35b23(0x1c0),{'error':new _0x36262f(_0xd35b23(0x1c4),this,{'url':_0x4d2bbe,'originalError':_0x34bb58}),'url':_0x4d2bbe}),this[_0xd35b23(0x1cc)](_0x141378));}finally{this[_0xd35b23(0x1b0)](_0x5b55f0);}}async[_0x2ea2d0(0x20e)](_0x3be106,_0x3955be,_0x48fec8){const _0x394c29=_0x2ea2d0,_0x5dec83=this[_0x394c29(0x1e5)][_0x394c29(0x232)][_0x394c29(0x211)](_0x3e6d21=>_0x3e6d21['id']===_0x3be106);if(!_0x5dec83)return this[_0x394c29(0x1fc)](_0x394c29(0x1c0),{'error':new _0x36262f(_0x394c29(0x21a),this,{'sourceId':_0x3be106}),'sourceId':_0x3be106}),[];try{const _0x25a091=(await _0x5dec83[_0x394c29(0x1ca)](_0x3955be))[_0x394c29(0x1fe)](_0x4e5199=>{const _0x114f55=_0x394c29,_0x52d6c2=this[_0x114f55(0x21f)](_0x4e5199['id']);return{..._0x4e5199,'isInContext':_0x52d6c2};});return _0x5dec83[_0x394c29(0x1d9)]=_0x25a091,this[_0x394c29(0x1fc)](_0x394c29(0x1c8),{'sourceId':_0x3be106,'source':_0x5dec83,'resources':_0x25a091,'uid':_0x48fec8}),_0x25a091;}catch(_0xd44e48){return this[_0x394c29(0x1fc)](_0x394c29(0x1c0),{'error':new _0x36262f(_0x394c29(0x22a),this,{'sourceId':_0x3be106,'originalError':_0xd44e48}),'sourceId':_0x3be106,'sourceLabel':_0x5dec83[_0x394c29(0x21c)]}),[];}}async[_0x2ea2d0(0x1e3)](_0x4a4c8b,_0xe92e7d){const _0x4d2247=_0x2ea2d0;if(this[_0x4d2247(0x21f)](_0xe92e7d['id']))return;let _0x3930c1=_0xe92e7d[_0x4d2247(0x1fb)];if(!_0x3930c1&&_0x4a4c8b[_0x4d2247(0x1c9)])try{_0x3930c1=await _0x4a4c8b[_0x4d2247(0x1c9)](_0xe92e7d['id']);}catch(_0x536dc1){return void this[_0x4d2247(0x1fc)](_0x4d2247(0x1c0),{'error':new _0x36262f(_0x4d2247(0x1eb),this,{'resourceId':_0xe92e7d['id'],'sourceId':_0x4a4c8b['id'],'originalError':_0x536dc1}),'resourceId':_0xe92e7d['id'],'sourceId':_0x4a4c8b['id']});}if(_0x3930c1)switch(_0xe92e7d[_0x4d2247(0x1da)]){case _0x36b57b[_0x4d2247(0x1bd)]:if(_0x4d2247(0x1c5)!=typeof _0x3930c1)return void this[_0x4d2247(0x1fc)](_0x4d2247(0x1c0),{'error':new _0x36262f(_0x4d2247(0x1a9),this,{'resourceId':_0xe92e7d['id'],'sourceId':_0x4a4c8b['id'],'expectedType':_0x4d2247(0x1c5),'actualType':typeof _0x3930c1}),'resourceId':_0xe92e7d['id'],'sourceId':_0x4a4c8b['id']});await this[_0x4d2247(0x22b)](_0x3930c1,{'label':_0xe92e7d[_0x4d2247(0x21c)],'resourceId':_0xe92e7d['id']});break;case _0x36b57b[_0x4d2247(0x1cd)]:if(!(_0x3930c1 instanceof File))return void this[_0x4d2247(0x1fc)](_0x4d2247(0x1c0),{'error':new _0x36262f(_0x4d2247(0x1a9),this,{'resourceId':_0xe92e7d['id'],'sourceId':_0x4a4c8b['id'],'expectedType':_0x4d2247(0x1ab),'actualType':typeof _0x3930c1}),'resourceId':_0xe92e7d['id'],'sourceId':_0x4a4c8b['id']});await this[_0x4d2247(0x207)]([_0x3930c1],{'label':_0xe92e7d[_0x4d2247(0x21c)],'resourceId':_0xe92e7d['id']});break;case _0x36b57b[_0x4d2247(0x1a5)]:if(_0x4d2247(0x200)!=typeof _0x3930c1||!(_0x4d2247(0x1f8)in _0x3930c1)||!(_0x4d2247(0x1da)in _0x3930c1))return void this[_0x4d2247(0x1fc)](_0x4d2247(0x1c0),{'error':new _0x36262f(_0x4d2247(0x1a9),this,{'resourceId':_0xe92e7d['id'],'sourceId':_0x4a4c8b['id'],'expectedType':_0x4d2247(0x221),'actualType':typeof _0x3930c1}),'resourceId':_0xe92e7d['id'],'sourceId':_0x4a4c8b['id']});_0x3930c1=AIChatContext[_0x4d2247(0x1be)](_0x3930c1,_0xe92e7d[_0x4d2247(0x21c)]),await this[_0x4d2247(0x207)]([_0x3930c1],{'label':_0xe92e7d[_0x4d2247(0x21c)],'resourceId':_0xe92e7d['id']},_0x36b57b[_0x4d2247(0x1a5)]);break;default:this[_0x4d2247(0x1fc)](_0x4d2247(0x1c0),{'error':new _0x36262f(_0x4d2247(0x22f),this,{'resourceId':_0xe92e7d['id'],'sourceId':_0x4a4c8b['id'],'resourceType':_0xe92e7d[_0x4d2247(0x1da)]}),'resourceId':_0xe92e7d['id'],'sourceId':_0x4a4c8b['id']});}else this[_0x4d2247(0x1fc)](_0x4d2247(0x1c0),{'error':new _0x36262f(_0x4d2247(0x1f1),this,{'resourceId':_0xe92e7d['id'],'sourceId':_0x4a4c8b['id']}),'resourceId':_0xe92e7d['id'],'sourceId':_0x4a4c8b['id']});}static[_0x2ea2d0(0x1be)](_0x2730aa,_0x16cacc){const _0x266a99=_0x2ea2d0;switch(_0x2730aa[_0x266a99(0x1da)]){case _0x1b09ae[_0x266a99(0x201)]:return new File([_0x2730aa[_0x266a99(0x1f8)]],_0x16cacc,{'type':_0x266a99(0x1ec)});case _0x1b09ae[_0x266a99(0x224)]:return new File([_0x2730aa[_0x266a99(0x1f8)]],_0x16cacc,{'type':_0x266a99(0x1b4)});default:return new File([_0x2730aa[_0x266a99(0x1f8)]],_0x16cacc,{'type':_0x266a99(0x230)});}}static[_0x2ea2d0(0x1ba)](_0x5a2c45){const _0x43491d=_0x2ea2d0;switch(_0x5a2c45[_0x43491d(0x1da)]){case _0x36b57b[_0x43491d(0x1cd)]:return{'type':_0x36b57b[_0x43491d(0x1cd)],'id':_0x5a2c45['id']};case _0x36b57b[_0x43491d(0x1bd)]:return{'type':_0x36b57b[_0x43491d(0x1bd)],'id':_0x5a2c45['id']};case _0x36b57b[_0x43491d(0x1c7)]:return{'type':_0x36b57b[_0x43491d(0x1c7)],'id':_0x5a2c45['id'],..._0x5a2c45[_0x43491d(0x219)]?.[_0x43491d(0x220)]&&{'selection':_0x5a2c45[_0x43491d(0x219)]}};case _0x36b57b[_0x43491d(0x1a5)]:return{'type':_0x36b57b[_0x43491d(0x1cd)],'id':_0x5a2c45['id']};default:return null;}}[_0x2ea2d0(0x1b1)](_0x5eeb25,_0x3613a4=!0x1){const _0x1ae416=_0x2ea2d0;if(this[_0x1ae416(0x1b8)][_0x1ae416(0x1ef)](_0x5eeb25[_0x1ae416(0x1ae)],_0x5eeb25),_0x5eeb25[_0x1ae416(0x1b3)]||this[_0x1ae416(0x1fc)](_0x1ae416(0x214),{'contextItem':_0x5eeb25,'isLoading':_0x3613a4}),_0x1ae416(0x1aa)===_0x5eeb25[_0x1ae416(0x1ae)]&&this[_0x1ae416(0x202)](),_0x5eeb25[_0x1ae416(0x1f0)]){const _0x4d0edf=this[_0x1ae416(0x1f2)](_0x5eeb25[_0x1ae416(0x1f0)]);_0x4d0edf&&_0x4d0edf[_0x1ae416(0x1e2)](_0x5e0588=>{const _0x374328=_0x1ae416;this[_0x374328(0x218)](_0x5e0588,_0x5eeb25[_0x374328(0x1f0)],!0x0);});}}[_0x2ea2d0(0x1cc)](_0x50f944){const _0x20c842=_0x2ea2d0,_0x4b7453=this[_0x20c842(0x1b8)][_0x20c842(0x213)](_0x50f944),_0x1e3589=this[_0x20c842(0x231)][_0x20c842(0x213)](_0x50f944);if(_0x1e3589&&(_0x1e3589[_0x20c842(0x1b5)](),this[_0x20c842(0x231)][_0x20c842(0x1d8)](_0x50f944)),_0x4b7453?.[_0x20c842(0x1f0)]){const _0x57e9da=this[_0x20c842(0x1f2)](_0x4b7453[_0x20c842(0x1f0)]);_0x57e9da&&_0x57e9da[_0x20c842(0x1e2)](_0x3b1012=>{const _0x22c9b4=_0x20c842;this[_0x22c9b4(0x218)](_0x3b1012,_0x4b7453[_0x22c9b4(0x1f0)],!0x1);});}this[_0x20c842(0x1b8)][_0x20c842(0x1d8)](_0x50f944),this[_0x20c842(0x1fc)](_0x20c842(0x1dc),{'uiId':_0x50f944,'type':_0x4b7453?.[_0x20c842(0x1da)]}),_0x20c842(0x1aa)===_0x50f944&&this[_0x20c842(0x202)]();}[_0x2ea2d0(0x1a7)](_0x156ac4,_0x4215e3){const _0x534e0b=_0x2ea2d0;if(this[_0x534e0b(0x1b8)][_0x534e0b(0x1ed)](_0x156ac4[_0x534e0b(0x1ae)])&&(this[_0x534e0b(0x1b8)][_0x534e0b(0x1ef)](_0x156ac4[_0x534e0b(0x1ae)],_0x156ac4),this[_0x534e0b(0x1fc)](_0x534e0b(0x20f),{'contextItem':_0x156ac4,'isLoading':_0x4215e3}),_0x156ac4[_0x534e0b(0x1f0)])){const _0x591c09=this[_0x534e0b(0x1f2)](_0x156ac4[_0x534e0b(0x1f0)]);_0x591c09&&_0x591c09[_0x534e0b(0x1e2)](_0x5126cb=>{const _0x54cd87=_0x534e0b;this[_0x54cd87(0x218)](_0x5126cb,_0x156ac4[_0x54cd87(0x1f0)],!0x0);});}}[_0x2ea2d0(0x1bc)](_0x582dac){const _0x26f408=_0x2ea2d0;this[_0x26f408(0x20c)][_0x26f408(0x1ef)](_0x582dac[_0x26f408(0x1ae)],_0x582dac);}[_0x2ea2d0(0x1e1)](){const _0x2eed21=_0x2ea2d0;this[_0x2eed21(0x1e5)]={'document':{'enabled':!0x1!==this[_0x2eed21(0x1c1)]?.[_0x2eed21(0x227)]?.[_0x2eed21(0x217)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x2eed21(0x1c1)]?.[_0x2eed21(0x1fa)]?.[_0x2eed21(0x217)]},'files':{'enabled':!0x1!==this[_0x2eed21(0x1c1)]?.[_0x2eed21(0x1e8)]?.[_0x2eed21(0x217)]},'sources':this[_0x2eed21(0x21e)]()},this[_0x2eed21(0x1fc)](_0x2eed21(0x1a6),{'options':this[_0x2eed21(0x1e5)]});}[_0x2ea2d0(0x21e)](){const _0x1ef218=_0x2ea2d0;return this[_0x1ef218(0x1c1)]?.[_0x1ef218(0x232)]?.[_0x1ef218(0x1fe)](_0xf7eaec=>({..._0xf7eaec,'resources':[]}))??[];}[_0x2ea2d0(0x202)](){const _0x585ee2=_0x2ea2d0,_0x37a138=this[_0x585ee2(0x1a4)]()||this[_0x585ee2(0x1b6)]();this[_0x585ee2(0x1e5)][_0x585ee2(0x227)][_0x585ee2(0x1d1)]=_0x37a138,this[_0x585ee2(0x1fc)](_0x585ee2(0x1a6),{'options':this[_0x585ee2(0x1e5)]});}[_0x2ea2d0(0x21f)](_0x58b626){const _0x96805=_0x2ea2d0;for(const _0x43cf2c of this[_0x96805(0x1b8)][_0x96805(0x1d6)]())if(_0x43cf2c[_0x96805(0x1f0)]===_0x58b626)return!0x0;for(const _0x311964 of this[_0x96805(0x20c)][_0x96805(0x1d6)]())if(_0x311964[_0x96805(0x1f0)]===_0x58b626)return!0x0;return!0x1;}[_0x2ea2d0(0x1f2)](_0x5b13a2){const _0x25284a=_0x2ea2d0,_0x1e3763=[];for(const _0x27226a of this[_0x25284a(0x1e5)][_0x25284a(0x232)]){_0x27226a[_0x25284a(0x1d9)][_0x25284a(0x211)](_0x65cdbc=>_0x65cdbc['id']===_0x5b13a2)&&_0x1e3763[_0x25284a(0x1c3)](_0x27226a['id']);}return 0x0===_0x1e3763[_0x25284a(0x220)]?null:_0x1e3763;}[_0x2ea2d0(0x218)](_0x4d4164,_0x375132,_0x4a7465){const _0x1db19f=_0x2ea2d0,_0x59b4f9=this[_0x1db19f(0x1e5)][_0x1db19f(0x232)][_0x1db19f(0x211)](_0x376b07=>_0x376b07['id']===_0x4d4164);if(!_0x59b4f9)return;const _0x484bb2=_0x59b4f9[_0x1db19f(0x1d9)][_0x1db19f(0x211)](_0x23e98b=>_0x23e98b['id']===_0x375132);_0x484bb2&&(_0x484bb2[_0x1db19f(0x1bf)]=_0x4a7465,this[_0x1db19f(0x1fc)](_0x1db19f(0x205),{'sourceId':_0x4d4164,'resourceId':_0x375132,'isInContext':_0x4a7465}));}[_0x2ea2d0(0x208)](_0x578e4e){const _0x5ad91f=_0x2ea2d0;this[_0x5ad91f(0x210)][_0x5ad91f(0x1ef)](_0x578e4e,!0x0),this[_0x5ad91f(0x210)][_0x5ad91f(0x204)]&&this[_0x5ad91f(0x1fc)](_0x5ad91f(0x1f7),{'isUploadInProgress':!0x0});}[_0x2ea2d0(0x1b0)](_0x36b0c7){const _0x4ba6a4=_0x2ea2d0;this[_0x4ba6a4(0x210)][_0x4ba6a4(0x1d8)](_0x36b0c7),0x0===this[_0x4ba6a4(0x210)][_0x4ba6a4(0x204)]&&this[_0x4ba6a4(0x1fc)](_0x4ba6a4(0x1f7),{'isUploadInProgress':!0x1});}}function _0x1d56(){const _0x1aed7c=['31326UhttPt','uiId','getDocument','_finishUploadOperation','_addContextItem','isReadOnly','hidden','text/html','abort','isCurrentDocumentInConversation','name','_pendingContextItems','373175ihXJjr','_mapContextItemToRequestData','removeFromContext','_addToConversationContextItem','URL','_convertTextResourceToFile','isInContext','error','_config','getSentContextItems','push','ai-chat-url-upload-failed','string','Current\x20document','DOCUMENT','sourceResourcesLoaded','getData','getResources','stack','_removeContextItem','FILE','removeSelectionFromContext','735580lCAWiM','4dXXpZg','isHidden','code','clearPendingContextItems','start','_connector','values','contextSent','delete','resources','type','updateCurrentDocument','contextItemRemoved','filter','ai-chat-file-upload-failed','isSelectionInContext','ai-chat-document-upload-failed','_setAddContextOptionsDefaultState','forEach','addResourceToContext','end','_addContextOptionsState','startsWith','url-','files','files-','sessionId','ai-chat-resource-load-failed','text/markdown','has','url','set','resourceId','ai-chat-resource-no-data','_findSourceIdsByResourceId','attributes','uploadDocument','getPendingContextItems','addCurrentDocumentToContext','uploadProgressChanged','content','version','urls','data','fire','populateFromMessage','map','938715cZHFAu','object','MARKDOWN','_toggleAddCurrentDocumentOptionVisibility','init','size','resourceStateChanged','532zGlNzL','addFilesToContext','_startUploadOperation','fetchDocument','uploadFile','_ownerId','_conversationContextItems','mapContextItemsToRequestData','loadSourceResources','contextItemLoadingEnded','_ongoingUploadOperations','find','from','get','contextItemAdded','SELECTION','ai-request-aborted','enabled','_updateResourceInContextState','selection','ai-chat-source-not-found','getId','label','addToConversationContext','_getCustomSourcesInitialState','_isResourceInContext','length','object\x20with\x20content\x20and\x20type\x20properties','2027254eBinRo','message','HTML','117aLougY','file-','document','addSelectionToContext','3016089iOPGpE','ai-chat-source-resources-load-failed','addUrlToContext','5277888PwbuRc','abortController','all','ai-chat-context-unsupported-type','text/plain','_ongoingUploads','sources','isCurrentDocumentInContext','TEXT','addContextOptionsChanged','_finishContextItemLoading','_createContextItemFromContent','ai-chat-context-invalid-data','current-document','File','uploadUrl'];_0x1d56=function(){return _0x1aed7c;};return _0x1d56();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x123db2=_0x472a;function _0x472a(_0x3f53e8,_0x7a2107){const _0x717dbf=_0x717d();return _0x472a=function(_0x472a08,_0x5cce01){_0x472a08=_0x472a08-0x124;let _0x4869a5=_0x717dbf[_0x472a08];return _0x4869a5;},_0x472a(_0x3f53e8,_0x7a2107);}function _0x717d(){const _0x2ed14f=['fire','interactionCreated','getMessages','currentInteraction','init','indexOf','getAll','ai-chat-handle-user-interaction-already-in-progress','isCurrentDocumentInContext','loadSourceResources','content','removeFromContext','653919qGysmt','delegate','chatModels','text-delta','addUrlToContext','get','getEditor','text','ai-chat-handle-user-interaction-start-failed','error','updateCurrentDocumentInContext','toLowerCase','role','16kFDIYM','fetchConversation','hasOwn','isSelectionInContext','contextItems','10TMafSp','getPendingContextItems','setConversationTitle','code','ai-chat-handle-user-conversation-not-initialized','assistant','find','reset','chatContext','populateFromMessage','startConversation','message','toggleWebSearch','lastInteraction','isAvailable','1802124kMMboT','addFilesToContext','982534jufUvX','toggleReasoning','addSelectionToContext','isCurrentDocumentInConversation','selectedModel','selectedModelId','stack','isStarted','connector','getInteraction','90598ivgZsl','prompt','push','getCurrentDocumentContext','636LHQKlH','219901dIJkqj','group','model','quickActionData','fetchConversationMessages','webSearch','createReply','ai-chat-conversation-start-failed','addToConversationContext','title','user','_extractContextItems','1845zArZjo','modelSelected','createInteraction','appendContent','addCurrentDocumentToContext','getDocumentContext','interactions','setModel','ai-chat-conversation-init-from-id-failed','sessionId','ai-chat-conversation-start-no-model-selected','removeInteraction','addResourceToContext','length','ai-chat-conversation-init-failed','set','currentReply','attributes','removeSelectionFromContext','modification-delta','getAvailableModels','getConversation','ai-chat-conversation-set-model-not-available','splice','chatCapabilities','_processMessagesToInteractions','conversationInitialized','21960jTQWZt','type','ai-chat-conversation-set-model-null','options','10EbVcuz','6791580GJQpfs','start','destroy','conversationId','updateCurrentDocument','conversationStarted','getModel','getCapabilitiesConfig','stop','ai-chat-conversation-already-started','handleUserInteraction','capabilities','reasoning','load'];_0x717d=function(){return _0x2ed14f;};return _0x717d();}(function(_0x21d3e1,_0xc2aea2){const _0x2c248c=_0x472a,_0x39a987=_0x21d3e1();while(!![]){try{const _0x172dad=-parseInt(_0x2c248c(0x169))/0x1*(-parseInt(_0x2c248c(0x139))/0x2)+parseInt(_0x2c248c(0x184))/0x3*(-parseInt(_0x2c248c(0x191))/0x4)+parseInt(_0x2c248c(0x196))/0x5*(parseInt(_0x2c248c(0x12d))/0x6)+parseInt(_0x2c248c(0x12f))/0x7+-parseInt(_0x2c248c(0x165))/0x8*(-parseInt(_0x2c248c(0x14a))/0x9)+parseInt(_0x2c248c(0x16a))/0xa+-parseInt(_0x2c248c(0x13e))/0xb*(parseInt(_0x2c248c(0x13d))/0xc);if(_0x172dad===_0xc2aea2)break;else _0x39a987['push'](_0x39a987['shift']());}catch(_0x4e37aa){_0x39a987['push'](_0x39a987['shift']());}}}(_0x717d,0x7b2d0));import{CKEditorError as _0x18ba14,EmitterMixin as _0x3efd10,logWarning as _0x128e89}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x55fdae}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3f533b,AI_CONTEXT_MODEL_EVENT_NAMES as _0x54d1f1}from'./aichatcontext.js';import{AICapabilities as _0x4b235f,CAPABILITIES_MODEL_EVENT_NAMES as _0x2aead0}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x100734}from'./aichatinteraction.js';import{errorsMap as _0x294bea}from'../../errorsmap.js';export class AIChatConversation extends _0x3efd10(){['id'];[_0x123db2(0x136)]=!0x1;[_0x123db2(0x150)]=[];[_0x123db2(0x17b)];[_0x123db2(0x133)];[_0x123db2(0x137)];[_0x123db2(0x168)];constructor(_0x517016){const _0x362746=_0x123db2;super(),this[_0x362746(0x168)]=_0x517016,this[_0x362746(0x137)]=_0x517016[_0x362746(0x137)],this[_0x362746(0x186)]=_0x517016[_0x362746(0x186)],this['id']=_0x517016[_0x362746(0x16d)];}async[_0x123db2(0x17c)](_0x23c548){const _0x1d532b=_0x123db2;try{this[_0x1d532b(0x126)]=new _0x3f533b({'connector':this[_0x1d532b(0x137)],'config':_0x23c548,'ownerId':this['id']}),this[_0x1d532b(0x126)][_0x1d532b(0x185)](..._0x54d1f1)['to'](this),this[_0x1d532b(0x126)][_0x1d532b(0x17c)](),this[_0x1d532b(0x162)]=new _0x4b235f(),this[_0x1d532b(0x162)][_0x1d532b(0x185)](..._0x2aead0)['to'](this),this[_0x1d532b(0x162)][_0x1d532b(0x17c)]();const _0x18212c=await this[_0x1d532b(0x186)][_0x1d532b(0x15e)]();this[_0x1d532b(0x178)](_0x1d532b(0x164),{'availableModels':_0x18212c});const _0x56e4aa=await this[_0x1d532b(0x186)][_0x1d532b(0x170)](this[_0x1d532b(0x168)][_0x1d532b(0x134)]);_0x56e4aa&&await this[_0x1d532b(0x151)](_0x56e4aa);}catch(_0x201ee5){const _0x2511f8=new _0x18ba14(_0x1d532b(0x158),null,{'message':_0x201ee5[_0x1d532b(0x129)]||_0x201ee5});_0x2511f8[_0x1d532b(0x135)]=_0x201ee5[_0x1d532b(0x135)],this[_0x1d532b(0x178)](_0x1d532b(0x18d),{'error':_0x2511f8});}}async[_0x123db2(0x16b)](){const _0x13cfd9=_0x123db2;if(this[_0x13cfd9(0x136)])throw new _0x18ba14(_0x13cfd9(0x173),null,{'conversation':this});if(!this[_0x13cfd9(0x133)])throw new _0x18ba14(_0x13cfd9(0x154),null,{'conversation':this});try{const {id:_0x2385f9}=await this[_0x13cfd9(0x137)][_0x13cfd9(0x128)](this['id'],this[_0x13cfd9(0x168)][_0x13cfd9(0x13f)])[_0x13cfd9(0x15f)]();this['id']=_0x2385f9,this[_0x13cfd9(0x136)]=!0x0,this[_0x13cfd9(0x178)](_0x13cfd9(0x16f),{'conversationId':this['id'],'selectedModel':this[_0x13cfd9(0x133)]});}catch(_0x4fe3e1){const _0x422127=new _0x18ba14(_0x13cfd9(0x145),null,{'message':_0x4fe3e1[_0x13cfd9(0x129)],'conversationId':this['id']});throw _0x422127[_0x13cfd9(0x135)]=_0x4fe3e1[_0x13cfd9(0x135)],this[_0x13cfd9(0x178)](_0x13cfd9(0x18d),{'error':_0x422127}),_0x422127;}}async[_0x123db2(0x177)](_0x62882e,_0x265739){const _0x32cafb=_0x123db2;try{const _0x3174b3=await this[_0x32cafb(0x137)][_0x32cafb(0x192)](_0x62882e)[_0x32cafb(0x15f)](),_0x41fd8c=await this[_0x32cafb(0x137)][_0x32cafb(0x142)](_0x62882e)[_0x32cafb(0x17a)](),_0x13be40=_0x41fd8c[0x0][_0x32cafb(0x140)];this[_0x32cafb(0x136)]=!0x0,this['id']=_0x3174b3['id'],_0x32cafb(0x147)in _0x3174b3?this[_0x32cafb(0x178)](_0x32cafb(0x198),_0x3174b3[_0x32cafb(0x147)],!0x0):this[_0x32cafb(0x178)](_0x32cafb(0x198),'',!0x0);const _0x2711bc=(await this[_0x32cafb(0x186)][_0x32cafb(0x17e)]())[_0x32cafb(0x124)](_0x2e0b22=>_0x2e0b22['id'][_0x32cafb(0x18f)]()===_0x13be40[_0x32cafb(0x18f)]());return this[_0x32cafb(0x133)]=_0x2711bc,this[_0x32cafb(0x178)](_0x32cafb(0x14b),{'selectedModel':_0x2711bc,'isDisabled':!0x0}),await this[_0x32cafb(0x163)](_0x41fd8c,_0x265739,_0x13be40),this[_0x32cafb(0x17b)]=void 0x0,this;}catch(_0x4e896e){const _0x1a0d9e=new _0x18ba14(_0x32cafb(0x152),null,{'message':_0x4e896e[_0x32cafb(0x129)],'conversationId':_0x62882e});throw _0x1a0d9e[_0x32cafb(0x135)]=_0x4e896e[_0x32cafb(0x135)],this[_0x32cafb(0x178)](_0x32cafb(0x18d),{'error':_0x1a0d9e}),_0x1a0d9e;}}async[_0x123db2(0x163)](_0x2d8075,_0x46627b,_0x5b30b8){const _0x39cbe2=_0x123db2;let _0x524a51;for(const _0x260066 of _0x2d8075)if(_0x39cbe2(0x148)===_0x260066[_0x39cbe2(0x190)]){const _0x4afa5e=await this[_0x39cbe2(0x149)](_0x260066),_0x54828b={'isReasoningEnabled':Object[_0x39cbe2(0x193)](_0x260066[_0x39cbe2(0x175)],_0x39cbe2(0x176)),'isWebSearchEnabled':Object[_0x39cbe2(0x193)](_0x260066[_0x39cbe2(0x175)],_0x39cbe2(0x143))};_0x524a51=this[_0x39cbe2(0x14c)]({'userMessage':_0x260066[_0x39cbe2(0x13a)],'contextItems':_0x4afa5e,'capabilities':_0x54828b,'modelId':_0x5b30b8,'quickActionData':_0x260066[_0x39cbe2(0x15b)]?.[_0x39cbe2(0x141)]}),this[_0x39cbe2(0x17b)]=_0x524a51,this[_0x39cbe2(0x126)][_0x39cbe2(0x146)](this[_0x39cbe2(0x17b)][_0x39cbe2(0x195)]);}else{if(_0x39cbe2(0x19b)===_0x260066[_0x39cbe2(0x190)]&&_0x524a51)for(const _0x27ca5c of _0x260066[_0x39cbe2(0x182)]){const _0x286dbe=_0x39cbe2(0x18b)===_0x27ca5c[_0x39cbe2(0x166)]?_0x39cbe2(0x187):_0x39cbe2(0x15d),_0x504808=_0x524a51[_0x39cbe2(0x14f)]()?.[_0x39cbe2(0x153)]!==_0x46627b;_0x524a51[_0x39cbe2(0x15a)]=_0x524a51[_0x39cbe2(0x144)]({'type':_0x286dbe,'isDone':!0x0,'interactionId':_0x524a51['id'],'areActionsDisabled':_0x504808}),_0x524a51[_0x39cbe2(0x15a)][_0x39cbe2(0x14d)](_0x27ca5c[_0x39cbe2(0x182)]);}}}async[_0x123db2(0x149)](_0x1ad1ed){const _0x19f1f4=_0x123db2,_0x56dcd0=new Map();if(!_0x1ad1ed[_0x19f1f4(0x182)])return _0x56dcd0;for(const _0x56f051 of _0x1ad1ed[_0x19f1f4(0x182)]){const _0x30947e=await this[_0x19f1f4(0x126)][_0x19f1f4(0x127)](_0x56f051);_0x30947e&&_0x56dcd0[_0x19f1f4(0x159)](_0x30947e['id'],_0x30947e);}return _0x56dcd0;}async[_0x123db2(0x174)]({userMessage:_0xca9dc0,quickActionData:_0x278eb9}){const _0x3f5575=_0x123db2;if(!this[_0x3f5575(0x136)])throw new _0x18ba14(_0x3f5575(0x19a),null,{'conversation':this});if(this[_0x3f5575(0x17b)])throw new _0x18ba14(_0x3f5575(0x17f),null,{'conversation':this});try{const _0x107c85=this[_0x3f5575(0x126)][_0x3f5575(0x197)](),_0x5d55a7=this[_0x3f5575(0x162)][_0x3f5575(0x171)](),_0x5448d0=this[_0x3f5575(0x133)]['id'];this[_0x3f5575(0x17b)]=this[_0x3f5575(0x14c)]({'userMessage':_0xca9dc0,'contextItems':_0x107c85,'capabilities':_0x5d55a7,'modelId':_0x5448d0,'quickActionData':_0x278eb9}),await this[_0x3f5575(0x17b)][_0x3f5575(0x16b)](),this[_0x3f5575(0x126)][_0x3f5575(0x146)](this[_0x3f5575(0x17b)][_0x3f5575(0x195)]);}catch(_0x594e99){if(_0x594e99 instanceof _0x18ba14)this[_0x3f5575(0x178)](_0x3f5575(0x18d),{'interactionId':this[_0x3f5575(0x17b)]?this[_0x3f5575(0x17b)]['id']:void 0x0,'error':_0x594e99});else{const _0x3cefbc=_0x294bea[_0x3f5575(0x189)](_0x594e99[_0x3f5575(0x199)])||_0x3f5575(0x18c);this[_0x3f5575(0x178)](_0x3f5575(0x18d),{'interactionId':this[_0x3f5575(0x17b)]?this[_0x3f5575(0x17b)]['id']:void 0x0,'error':new _0x18ba14(_0x3cefbc,null,{'error':_0x594e99})});}}finally{this[_0x3f5575(0x17b)]?.[_0x3f5575(0x172)](),this[_0x3f5575(0x17b)]=void 0x0;}}[_0x123db2(0x14c)]({userMessage:_0x50ffda,contextItems:_0x62b25d,capabilities:_0x10007a,modelId:_0x312ba9,quickActionData:_0x162a4b}){const _0x12c796=_0x123db2,_0x4f2be4=new _0x100734({'userMessage':_0x50ffda,'contextItems':_0x62b25d,'capabilities':_0x10007a,'conversationId':this['id'],'connector':this[_0x12c796(0x137)],'editor':this[_0x12c796(0x168)][_0x12c796(0x18a)]&&this[_0x12c796(0x168)][_0x12c796(0x18a)](),'model':_0x312ba9,'quickActionData':_0x162a4b});return _0x4f2be4[_0x12c796(0x185)](..._0x55fdae)['to'](this),this[_0x12c796(0x150)][_0x12c796(0x13b)](_0x4f2be4),this[_0x12c796(0x178)](_0x12c796(0x179),_0x4f2be4),_0x4f2be4;}[_0x123db2(0x138)](_0x560171){const _0x1048be=_0x123db2;return this[_0x1048be(0x150)][_0x1048be(0x124)](_0x36d784=>_0x36d784['id']===_0x560171);}[_0x123db2(0x155)](_0x119097){const _0x1e41a1=_0x123db2,_0x56cb22=this[_0x1e41a1(0x138)](_0x119097);_0x56cb22&&(_0x56cb22[_0x1e41a1(0x16c)](),this[_0x1e41a1(0x150)][_0x1e41a1(0x161)](this[_0x1e41a1(0x150)][_0x1e41a1(0x17d)](_0x56cb22),0x1));}get[_0x123db2(0x12b)](){const _0xd5b310=_0x123db2;return this[_0xd5b310(0x150)][this[_0xd5b310(0x150)][_0xd5b310(0x157)]-0x1];}[_0x123db2(0x14e)](_0xd0fa84){const _0x5a78a9=_0x123db2;this[_0x5a78a9(0x126)][_0x5a78a9(0x14e)](_0xd0fa84);}async[_0x123db2(0x18e)]({content:_0x5f9297,version:_0x3a6741,sessionId:_0x1132ff,selections:_0x25270f}){const _0x4ee3d3=_0x123db2;await this[_0x4ee3d3(0x126)][_0x4ee3d3(0x16e)](_0x5f9297,_0x3a6741,_0x1132ff,_0x25270f);}[_0x123db2(0x13c)](){const _0x3d600e=_0x123db2;return this[_0x3d600e(0x17b)]?.[_0x3d600e(0x14f)]()?.[_0x3d600e(0x182)]||'';}[_0x123db2(0x131)](_0x46f514){const _0x567a39=_0x123db2;this[_0x567a39(0x126)][_0x567a39(0x131)](_0x46f514);}[_0x123db2(0x15c)](){const _0xe51e8c=_0x123db2;this[_0xe51e8c(0x126)][_0xe51e8c(0x15c)]();}[_0x123db2(0x12e)](_0x2b4daa){const _0xf9fbc5=_0x123db2;this[_0xf9fbc5(0x126)][_0xf9fbc5(0x12e)](_0x2b4daa);}[_0x123db2(0x188)](_0xb31cac){const _0x266518=_0x123db2;this[_0x266518(0x126)][_0x266518(0x188)](_0xb31cac);}[_0x123db2(0x156)](_0x1b6e66,_0x5e62dd){const _0x24b4dd=_0x123db2;this[_0x24b4dd(0x126)][_0x24b4dd(0x156)](_0x1b6e66,_0x5e62dd);}[_0x123db2(0x181)](_0xe598b3,_0x512f77,_0x57e196){const _0x3adc9e=_0x123db2;return this[_0x3adc9e(0x126)][_0x3adc9e(0x181)](_0xe598b3,_0x512f77,_0x57e196);}[_0x123db2(0x183)](_0x6d6462){const _0x4d45f6=_0x123db2;this[_0x4d45f6(0x126)][_0x4d45f6(0x183)](_0x6d6462);}[_0x123db2(0x12a)](){const _0x31c12e=_0x123db2;this[_0x31c12e(0x162)][_0x31c12e(0x12a)]();}[_0x123db2(0x130)](){const _0x3f4bcb=_0x123db2;this[_0x3f4bcb(0x162)][_0x3f4bcb(0x130)]();}[_0x123db2(0x180)](){const _0x1c70da=_0x123db2;return this[_0x1c70da(0x126)][_0x1c70da(0x180)]();}[_0x123db2(0x132)](){const _0x38d3f2=_0x123db2;return this[_0x38d3f2(0x126)][_0x38d3f2(0x132)]();}[_0x123db2(0x194)](){const _0x27bbaa=_0x123db2;return this[_0x27bbaa(0x126)][_0x27bbaa(0x194)]();}async[_0x123db2(0x151)](_0x1f87d8){const _0x189e20=_0x123db2;_0x1f87d8?!0x1===await this[_0x189e20(0x186)][_0x189e20(0x12c)](_0x1f87d8)&&(_0x128e89(_0x189e20(0x160),{'conversation':this,'model':_0x1f87d8}),_0x1f87d8=(await this[_0x189e20(0x186)][_0x189e20(0x15e)]())[0x0]):(_0x128e89(_0x189e20(0x167),{'conversation':this}),_0x1f87d8=(await this[_0x189e20(0x186)][_0x189e20(0x15e)]())[0x0]),_0x1f87d8['id']!==this[_0x189e20(0x133)]?.['id']&&(this[_0x189e20(0x133)]=_0x1f87d8,this[_0x189e20(0x162)][_0x189e20(0x125)](),this[_0x189e20(0x178)](_0x189e20(0x14b),{'selectedModel':_0x1f87d8}));}}
|
|
23
|
+
const _0x1c478c=_0x4210;(function(_0x24b11a,_0x21c345){const _0x3630f7=_0x4210,_0xcf6ef1=_0x24b11a();while(!![]){try{const _0x587d03=parseInt(_0x3630f7(0xb5))/0x1+parseInt(_0x3630f7(0x9e))/0x2+parseInt(_0x3630f7(0xb6))/0x3+-parseInt(_0x3630f7(0xd7))/0x4*(parseInt(_0x3630f7(0xe9))/0x5)+-parseInt(_0x3630f7(0xcd))/0x6+parseInt(_0x3630f7(0xf7))/0x7+-parseInt(_0x3630f7(0xcb))/0x8;if(_0x587d03===_0x21c345)break;else _0xcf6ef1['push'](_0xcf6ef1['shift']());}catch(_0x294e88){_0xcf6ef1['push'](_0xcf6ef1['shift']());}}}(_0x485d,0xe0ffe));function _0x4210(_0x1e22c6,_0x1fb5c7){const _0x485dd2=_0x485d();return _0x4210=function(_0x4210a8,_0x1d89cf){_0x4210a8=_0x4210a8-0x90;let _0x1e3c34=_0x485dd2[_0x4210a8];return _0x1e3c34;},_0x4210(_0x1e22c6,_0x1fb5c7);}import{CKEditorError as _0x4741c8,EmitterMixin as _0xea83ef,logWarning as _0x3e36d7}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x36564f}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0xf98e7d,AI_CONTEXT_MODEL_EVENT_NAMES as _0x108ddc}from'./aichatcontext.js';function _0x485d(){const _0x4691f9=['ai-chat-conversation-set-model-not-available','loadSourceResources','conversationStarted','message','hasOwn','isCurrentDocumentInContext','delegate','8846752sRVsAO','currentReply','1020216gNMHKz','fetchConversationMessages','stop','text','model','_extractContextItems','isCurrentDocumentInConversation','stack','text-delta','isAvailable','1034428bmShlv','fire','role','reset','removeInteraction','code','isSelectionInContext','_processMessagesToInteractions','selectedModel','attributes','sessionId','getCurrentDocumentContext','assistant','reasoning','quickActionData','addUrlToContext','destroy','startConversation','10PHqTTs','options','getDocumentContext','removeFromContext','conversationInitialized','push','createInteraction','setModel','load','ai-chat-conversation-start-failed','updateCurrentDocumentInContext','getAll','setConversationTitle','modification-delta','1576141fcBCfO','chatModels','webSearch','set','toggleReasoning','populateFromMessage','find','title','chatCapabilities','user','lastInteraction','ai-chat-handle-user-interaction-start-failed','modelSelected','getPendingContextItems','init','connector','toLowerCase','group','splice','addToConversationContext','getMessages','addSelectionToContext','ai-chat-conversation-start-no-model-selected','fetchConversation','ai-chat-conversation-already-started','getEditor','contextItems','2053140GtcrJX','toggleWebSearch','chatContext','content','length','prompt','addCurrentDocumentToContext','ai-chat-handle-user-conversation-not-initialized','ai-chat-conversation-init-from-id-failed','interactions','getCapabilitiesConfig','appendContent','getAvailableModels','selectedModelId','handleUserInteraction','getInteraction','type','conversationId','start','get','ai-chat-conversation-init-failed','interactionCreated','addResourceToContext','606954cbrzns','2568015VktijE','createReply','getConversation','ai-chat-handle-user-interaction-already-in-progress','updateCurrentDocument','getModel','addFilesToContext','indexOf','currentInteraction','capabilities','isStarted','removeSelectionFromContext','error','ai-chat-conversation-set-model-null'];_0x485d=function(){return _0x4691f9;};return _0x485d();}import{AICapabilities as _0x5ae3cd,CAPABILITIES_MODEL_EVENT_NAMES as _0x5aeae3}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x31093f}from'./aichatinteraction.js';import{errorsMap as _0x434df7}from'../../errorsmap.js';export class AIChatConversation extends _0xea83ef(){['id'];[_0x1c478c(0xc0)]=!0x1;[_0x1c478c(0xa7)]=[];[_0x1c478c(0xbe)];[_0x1c478c(0xdf)];[_0x1c478c(0x92)];[_0x1c478c(0xea)];constructor(_0x56ac77){const _0x31f02f=_0x1c478c;super(),this[_0x31f02f(0xea)]=_0x56ac77,this[_0x31f02f(0x92)]=_0x56ac77[_0x31f02f(0x92)],this[_0x31f02f(0xf8)]=_0x56ac77[_0x31f02f(0xf8)],this['id']=_0x56ac77[_0x31f02f(0xaf)];}async[_0x1c478c(0x91)](_0x3df9b2){const _0x5555d1=_0x1c478c;try{this[_0x5555d1(0xa0)]=new _0xf98e7d({'connector':this[_0x5555d1(0x92)],'config':_0x3df9b2,'ownerId':this['id']}),this[_0x5555d1(0xa0)][_0x5555d1(0xca)](..._0x108ddc)['to'](this),this[_0x5555d1(0xa0)][_0x5555d1(0x91)](),this[_0x5555d1(0xff)]=new _0x5ae3cd(),this[_0x5555d1(0xff)][_0x5555d1(0xca)](..._0x5aeae3)['to'](this),this[_0x5555d1(0xff)][_0x5555d1(0x91)]();const _0x9a72b1=await this[_0x5555d1(0xf8)][_0x5555d1(0xaa)]();this[_0x5555d1(0xd8)](_0x5555d1(0xed),{'availableModels':_0x9a72b1});const _0x508708=await this[_0x5555d1(0xf8)][_0x5555d1(0xbb)](this[_0x5555d1(0xea)][_0x5555d1(0xab)]);_0x508708&&await this[_0x5555d1(0xf0)](_0x508708);}catch(_0x32d869){const _0x522731=new _0x4741c8(_0x5555d1(0xb2),null,{'message':_0x32d869[_0x5555d1(0xc7)]||_0x32d869});_0x522731[_0x5555d1(0xd4)]=_0x32d869[_0x5555d1(0xd4)],this[_0x5555d1(0xd8)](_0x5555d1(0xc2),{'error':_0x522731});}}async[_0x1c478c(0xb0)](){const _0x2974fa=_0x1c478c;if(this[_0x2974fa(0xc0)])throw new _0x4741c8(_0x2974fa(0x9b),null,{'conversation':this});if(!this[_0x2974fa(0xdf)])throw new _0x4741c8(_0x2974fa(0x99),null,{'conversation':this});try{const {id:_0x83f013}=await this[_0x2974fa(0x92)][_0x2974fa(0xe8)](this['id'],this[_0x2974fa(0xea)][_0x2974fa(0x94)])[_0x2974fa(0xb8)]();this['id']=_0x83f013,this[_0x2974fa(0xc0)]=!0x0,this[_0x2974fa(0xd8)](_0x2974fa(0xc6),{'conversationId':this['id'],'selectedModel':this[_0x2974fa(0xdf)]});}catch(_0x4f0ab0){const _0x58e011=new _0x4741c8(_0x2974fa(0xf2),null,{'message':_0x4f0ab0[_0x2974fa(0xc7)],'conversationId':this['id']});throw _0x58e011[_0x2974fa(0xd4)]=_0x4f0ab0[_0x2974fa(0xd4)],this[_0x2974fa(0xd8)](_0x2974fa(0xc2),{'error':_0x58e011}),_0x58e011;}}async[_0x1c478c(0xf1)](_0x44a0ea,_0x56538c){const _0x2d9245=_0x1c478c;try{const _0x4d48bd=await this[_0x2d9245(0x92)][_0x2d9245(0x9a)](_0x44a0ea)[_0x2d9245(0xb8)](),_0xcd5af2=await this[_0x2d9245(0x92)][_0x2d9245(0xce)](_0x44a0ea)[_0x2d9245(0x97)](),_0x526fca=_0xcd5af2[0x0][_0x2d9245(0xd1)];this[_0x2d9245(0xc0)]=!0x0,this['id']=_0x4d48bd['id'],_0x2d9245(0xfe)in _0x4d48bd?this[_0x2d9245(0xd8)](_0x2d9245(0xf5),_0x4d48bd[_0x2d9245(0xfe)],!0x0):this[_0x2d9245(0xd8)](_0x2d9245(0xf5),'',!0x0);const _0x236f6e=(await this[_0x2d9245(0xf8)][_0x2d9245(0xf4)]())[_0x2d9245(0xfd)](_0x448f58=>_0x448f58['id'][_0x2d9245(0x93)]()===_0x526fca[_0x2d9245(0x93)]());return this[_0x2d9245(0xdf)]=_0x236f6e,this[_0x2d9245(0xd8)](_0x2d9245(0x103),{'selectedModel':_0x236f6e,'isDisabled':!0x0}),await this[_0x2d9245(0xde)](_0xcd5af2,_0x56538c,_0x526fca),this[_0x2d9245(0xbe)]=void 0x0,this;}catch(_0x22cd84){const _0x2a1cb8=new _0x4741c8(_0x2d9245(0xa6),null,{'message':_0x22cd84[_0x2d9245(0xc7)],'conversationId':_0x44a0ea});throw _0x2a1cb8[_0x2d9245(0xd4)]=_0x22cd84[_0x2d9245(0xd4)],this[_0x2d9245(0xd8)](_0x2d9245(0xc2),{'error':_0x2a1cb8}),_0x2a1cb8;}}async[_0x1c478c(0xde)](_0x42233e,_0x2a685,_0x4450ee){const _0x379b89=_0x1c478c;let _0xf3ffe9;for(const _0x311b45 of _0x42233e)if(_0x379b89(0x100)===_0x311b45[_0x379b89(0xd9)]){const _0x5e669a=await this[_0x379b89(0xd2)](_0x311b45),_0x16a281={'isReasoningEnabled':Object[_0x379b89(0xc8)](_0x311b45[_0x379b89(0xbf)],_0x379b89(0xe4)),'isWebSearchEnabled':Object[_0x379b89(0xc8)](_0x311b45[_0x379b89(0xbf)],_0x379b89(0xf9))};_0xf3ffe9=this[_0x379b89(0xef)]({'userMessage':_0x311b45[_0x379b89(0xa3)],'contextItems':_0x5e669a,'capabilities':_0x16a281,'modelId':_0x4450ee,'quickActionData':_0x311b45[_0x379b89(0xe0)]?.[_0x379b89(0xe5)]}),this[_0x379b89(0xbe)]=_0xf3ffe9,this[_0x379b89(0xa0)][_0x379b89(0x96)](this[_0x379b89(0xbe)][_0x379b89(0x9d)]);}else{if(_0x379b89(0xe3)===_0x311b45[_0x379b89(0xd9)]&&_0xf3ffe9)for(const _0x3431bd of _0x311b45[_0x379b89(0xa1)]){const _0x288c38=_0x379b89(0xd0)===_0x3431bd[_0x379b89(0xae)]?_0x379b89(0xd5):_0x379b89(0xf6),_0x11279f=_0xf3ffe9[_0x379b89(0xeb)]()?.[_0x379b89(0xe1)]!==_0x2a685;_0xf3ffe9[_0x379b89(0xcc)]=_0xf3ffe9[_0x379b89(0xb7)]({'type':_0x288c38,'isDone':!0x0,'interactionId':_0xf3ffe9['id'],'areActionsDisabled':_0x11279f}),_0xf3ffe9[_0x379b89(0xcc)][_0x379b89(0xa9)](_0x3431bd[_0x379b89(0xa1)]);}}}async[_0x1c478c(0xd2)](_0x204ffc){const _0x104b06=_0x1c478c,_0x19dabf=new Map();if(!_0x204ffc[_0x104b06(0xa1)])return _0x19dabf;for(const _0x3ce4e1 of _0x204ffc[_0x104b06(0xa1)]){const _0x401f1d=await this[_0x104b06(0xa0)][_0x104b06(0xfc)](_0x3ce4e1);_0x401f1d&&_0x19dabf[_0x104b06(0xfa)](_0x401f1d['id'],_0x401f1d);}return _0x19dabf;}async[_0x1c478c(0xac)]({userMessage:_0x1cdd39,quickActionData:_0x41bb29}){const _0xa8876=_0x1c478c;if(!this[_0xa8876(0xc0)])throw new _0x4741c8(_0xa8876(0xa5),null,{'conversation':this});if(this[_0xa8876(0xbe)])throw new _0x4741c8(_0xa8876(0xb9),null,{'conversation':this});try{const _0x53f5c3=this[_0xa8876(0xa0)][_0xa8876(0x90)](),_0x5587b4=this[_0xa8876(0xff)][_0xa8876(0xa8)](),_0x50805c=this[_0xa8876(0xdf)]['id'];this[_0xa8876(0xbe)]=this[_0xa8876(0xef)]({'userMessage':_0x1cdd39,'contextItems':_0x53f5c3,'capabilities':_0x5587b4,'modelId':_0x50805c,'quickActionData':_0x41bb29}),await this[_0xa8876(0xbe)][_0xa8876(0xb0)](),this[_0xa8876(0xa0)][_0xa8876(0x96)](this[_0xa8876(0xbe)][_0xa8876(0x9d)]);}catch(_0xdea7e5){if(_0xdea7e5 instanceof _0x4741c8)this[_0xa8876(0xd8)](_0xa8876(0xc2),{'interactionId':this[_0xa8876(0xbe)]?this[_0xa8876(0xbe)]['id']:void 0x0,'error':_0xdea7e5});else{const _0xd06c67=_0x434df7[_0xa8876(0xb1)](_0xdea7e5[_0xa8876(0xdc)])||_0xa8876(0x102);this[_0xa8876(0xd8)](_0xa8876(0xc2),{'interactionId':this[_0xa8876(0xbe)]?this[_0xa8876(0xbe)]['id']:void 0x0,'error':new _0x4741c8(_0xd06c67,null,{'error':_0xdea7e5})});}}finally{this[_0xa8876(0xbe)]?.[_0xa8876(0xcf)](),this[_0xa8876(0xbe)]=void 0x0;}}[_0x1c478c(0xef)]({userMessage:_0x4eb45a,contextItems:_0x133edd,capabilities:_0x1cb789,modelId:_0x4ea87f,quickActionData:_0x2df2ce}){const _0x1e5fe6=_0x1c478c,_0x27fcb5=new _0x31093f({'userMessage':_0x4eb45a,'contextItems':_0x133edd,'capabilities':_0x1cb789,'conversationId':this['id'],'connector':this[_0x1e5fe6(0x92)],'editor':this[_0x1e5fe6(0xea)][_0x1e5fe6(0x9c)]&&this[_0x1e5fe6(0xea)][_0x1e5fe6(0x9c)](),'model':_0x4ea87f,'quickActionData':_0x2df2ce});return _0x27fcb5[_0x1e5fe6(0xca)](..._0x36564f)['to'](this),this[_0x1e5fe6(0xa7)][_0x1e5fe6(0xee)](_0x27fcb5),this[_0x1e5fe6(0xd8)](_0x1e5fe6(0xb3),_0x27fcb5),_0x27fcb5;}[_0x1c478c(0xad)](_0xf30b48){const _0x1114e6=_0x1c478c;return this[_0x1114e6(0xa7)][_0x1114e6(0xfd)](_0x3a6496=>_0x3a6496['id']===_0xf30b48);}[_0x1c478c(0xdb)](_0x1d130a){const _0x1c0752=_0x1c478c,_0x194db6=this[_0x1c0752(0xad)](_0x1d130a);_0x194db6&&(_0x194db6[_0x1c0752(0xe7)](),this[_0x1c0752(0xa7)][_0x1c0752(0x95)](this[_0x1c0752(0xa7)][_0x1c0752(0xbd)](_0x194db6),0x1));}get[_0x1c478c(0x101)](){const _0x35c5d7=_0x1c478c;return this[_0x35c5d7(0xa7)][this[_0x35c5d7(0xa7)][_0x35c5d7(0xa2)]-0x1];}[_0x1c478c(0xa4)](_0x2831f5){const _0x1e2548=_0x1c478c;this[_0x1e2548(0xa0)][_0x1e2548(0xa4)](_0x2831f5);}async[_0x1c478c(0xf3)]({content:_0x1f06c1,version:_0x7d98da,sessionId:_0x4de887,selections:_0x48790b}){const _0x241910=_0x1c478c;await this[_0x241910(0xa0)][_0x241910(0xba)](_0x1f06c1,_0x7d98da,_0x4de887,_0x48790b);}[_0x1c478c(0xe2)](){const _0x319265=_0x1c478c;return this[_0x319265(0xbe)]?.[_0x319265(0xeb)]()?.[_0x319265(0xa1)]||'';}[_0x1c478c(0x98)](_0x5ad968){const _0x333f0f=_0x1c478c;this[_0x333f0f(0xa0)][_0x333f0f(0x98)](_0x5ad968);}[_0x1c478c(0xc1)](){const _0x5e11ed=_0x1c478c;this[_0x5e11ed(0xa0)][_0x5e11ed(0xc1)]();}[_0x1c478c(0xbc)](_0x45409d){const _0x58e78f=_0x1c478c;this[_0x58e78f(0xa0)][_0x58e78f(0xbc)](_0x45409d);}[_0x1c478c(0xe6)](_0x13d5b4){const _0x579ff4=_0x1c478c;this[_0x579ff4(0xa0)][_0x579ff4(0xe6)](_0x13d5b4);}[_0x1c478c(0xb4)](_0xca0eda,_0x22d7b5){const _0x546859=_0x1c478c;this[_0x546859(0xa0)][_0x546859(0xb4)](_0xca0eda,_0x22d7b5);}[_0x1c478c(0xc5)](_0x5ca1f4,_0xd0d60e,_0x345ea8){const _0x48fc4c=_0x1c478c;return this[_0x48fc4c(0xa0)][_0x48fc4c(0xc5)](_0x5ca1f4,_0xd0d60e,_0x345ea8);}[_0x1c478c(0xec)](_0x3bd13f){const _0x1bb59c=_0x1c478c;this[_0x1bb59c(0xa0)][_0x1bb59c(0xec)](_0x3bd13f);}[_0x1c478c(0x9f)](){const _0x138495=_0x1c478c;this[_0x138495(0xff)][_0x138495(0x9f)]();}[_0x1c478c(0xfb)](){const _0x4b9209=_0x1c478c;this[_0x4b9209(0xff)][_0x4b9209(0xfb)]();}[_0x1c478c(0xc9)](){const _0x10a9a4=_0x1c478c;return this[_0x10a9a4(0xa0)][_0x10a9a4(0xc9)]();}[_0x1c478c(0xd3)](){const _0x4bb7dd=_0x1c478c;return this[_0x4bb7dd(0xa0)][_0x4bb7dd(0xd3)]();}[_0x1c478c(0xdd)](){const _0x4401b5=_0x1c478c;return this[_0x4401b5(0xa0)][_0x4401b5(0xdd)]();}async[_0x1c478c(0xf0)](_0x1a875a){const _0x47cb8c=_0x1c478c;_0x1a875a?!0x1===await this[_0x47cb8c(0xf8)][_0x47cb8c(0xd6)](_0x1a875a)&&(_0x3e36d7(_0x47cb8c(0xc4),{'conversation':this,'model':_0x1a875a}),_0x1a875a=(await this[_0x47cb8c(0xf8)][_0x47cb8c(0xaa)]())[0x0]):(_0x3e36d7(_0x47cb8c(0xc3),{'conversation':this}),_0x1a875a=(await this[_0x47cb8c(0xf8)][_0x47cb8c(0xaa)]())[0x0]),_0x1a875a['id']!==this[_0x47cb8c(0xdf)]?.['id']&&(this[_0x47cb8c(0xdf)]=_0x1a875a,this[_0x47cb8c(0xff)][_0x47cb8c(0xda)](),this[_0x47cb8c(0xd8)](_0x47cb8c(0x103),{'selectedModel':_0x1a875a}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4ab42f=_0x4ef5;(function(_0x8fab5a,_0x5a4c15){var _0x52bcf4=_0x4ef5,_0x56447c=_0x8fab5a();while(!![]){try{var _0x4c4f47=-parseInt(_0x52bcf4(0x177))/0x1+parseInt(_0x52bcf4(0x17e))/0x2+-parseInt(_0x52bcf4(0x170))/0x3+parseInt(_0x52bcf4(0x180))/0x4*(parseInt(_0x52bcf4(0x17b))/0x5)+-parseInt(_0x52bcf4(0x181))/0x6*(parseInt(_0x52bcf4(0x172))/0x7)+-parseInt(_0x52bcf4(0x175))/0x8*(-parseInt(_0x52bcf4(0x176))/0x9)+parseInt(_0x52bcf4(0x17c))/0xa;if(_0x4c4f47===_0x5a4c15)break;else _0x56447c['push'](_0x56447c['shift']());}catch(_0x4c1e77){_0x56447c['push'](_0x56447c['shift']());}}}(_0x3286,0x24eee));function _0x3286(){var _0x2c12c0=['contextItems','connector','mapContextItemsToRequestData','queryAssistant','491949vbSwyq','sendRequest','3955nKCqJq','model','conversationId','292104qEVWal','36RqXFnh','265673bpKwss','capabilities','userMessage','getDocumentContext','36605iAYKvz','3859040ghULKW','getCapabilitiesRequestData','585034hmXRhd','get','4XrXxzT','2664POZePa','current-document','quickActionData'];_0x3286=function(){return _0x2c12c0;};return _0x3286();}import{AICapabilities as _0x2a0c32}from'../../aicore/model/aicapabilities.js';function _0x4ef5(_0x20ca59,_0x21230){var _0x32867f=_0x3286();return _0x4ef5=function(_0x4ef55f,_0x14db76){_0x4ef55f=_0x4ef55f-0x16a;var _0x5ddf79=_0x32867f[_0x4ef55f];return _0x5ddf79;},_0x4ef5(_0x20ca59,_0x21230);}import{AIInteraction as _0x4b58b9}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x320e67}from'./aichatcontext.js';export class AIChatInteraction extends _0x4b58b9{[_0x4ab42f(0x179)];[_0x4ab42f(0x174)];[_0x4ab42f(0x16c)]=new Map();[_0x4ab42f(0x173)];[_0x4ab42f(0x16b)];constructor(_0x442817){var _0xce9f78=_0x4ab42f;super(_0x442817),this[_0xce9f78(0x174)]=_0x442817[_0xce9f78(0x174)],this[_0xce9f78(0x16c)]=_0x442817[_0xce9f78(0x16c)],this[_0xce9f78(0x178)]=_0x442817[_0xce9f78(0x178)],this[_0xce9f78(0x179)]=_0x442817[_0xce9f78(0x179)],this[_0xce9f78(0x173)]=_0x442817[_0xce9f78(0x173)],this[_0xce9f78(0x16b)]=_0x442817[_0xce9f78(0x16b)];}async[_0x4ab42f(0x171)](){var _0x1ab5b0=_0x4ab42f;return this[_0x1ab5b0(0x16d)][_0x1ab5b0(0x16f)]({'message':this[_0x1ab5b0(0x179)],'conversationId':this[_0x1ab5b0(0x174)],'parts':_0x320e67[_0x1ab5b0(0x16e)](this[_0x1ab5b0(0x16c)]),'capabilities':_0x2a0c32[_0x1ab5b0(0x17d)](this[_0x1ab5b0(0x178)]),'model':this[_0x1ab5b0(0x173)],'quickActionData':this[_0x1ab5b0(0x16b)]});}[_0x4ab42f(0x17a)](){var _0x3702e3=_0x4ab42f;return this[_0x3702e3(0x16c)][_0x3702e3(0x17f)](_0x3702e3(0x16a));}}
|