@ckeditor/ckeditor5-ai 47.4.0-alpha.5 → 47.4.0

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.
Files changed (134) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/aiadapter.js +1 -1
  8. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  9. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  10. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  11. package/src/aiassistant/aiassistant.js +1 -1
  12. package/src/aiassistant/aiassistantediting.js +1 -1
  13. package/src/aiassistant/aiassistantui.js +1 -1
  14. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  15. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  16. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  17. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  19. package/src/aiassistant/ui/form/aiformview.js +1 -1
  20. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  21. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  22. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  23. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  24. package/src/aiballoon/aiballoon.js +1 -1
  25. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  26. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  27. package/src/aiballoon/ui/aiballoonview.js +1 -1
  28. package/src/aichat/aichat.js +1 -1
  29. package/src/aichat/aichatcontroller.js +1 -1
  30. package/src/aichat/aichatui.js +1 -1
  31. package/src/aichat/model/aichatcontext.js +1 -1
  32. package/src/aichat/model/aichatconversation.js +1 -1
  33. package/src/aichat/model/aichatinteraction.js +1 -1
  34. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  35. package/src/aichat/ui/aichatfeedview.js +1 -1
  36. package/src/aichat/ui/aichatheaderview.js +1 -1
  37. package/src/aichat/ui/aichatview.js +1 -1
  38. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  39. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  42. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  43. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  45. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  50. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  57. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  58. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  59. package/src/aichat/utils/eventnames.js +1 -1
  60. package/src/aichat/utils/promisequeue.js +1 -1
  61. package/src/aichathistory/aichathistory.js +1 -1
  62. package/src/aichathistory/aichathistorycontroller.js +1 -1
  63. package/src/aichathistory/aichathistoryui.js +1 -1
  64. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  65. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  66. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  67. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  68. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  69. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  70. package/src/aicore/aiconnector.js +1 -1
  71. package/src/aicore/aiediting.js +1 -1
  72. package/src/aicore/model/aicapabilities.js +1 -1
  73. package/src/aicore/model/aiinteraction.js +1 -1
  74. package/src/aicore/model/aimodels.js +1 -1
  75. package/src/aicore/model/aireply.js +1 -1
  76. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  77. package/src/aicore/pipeline/airesponseparser.js +2 -2
  78. package/src/aicore/ui/aidisclaimerview.js +1 -1
  79. package/src/aicore/ui/aiskeleton.js +1 -1
  80. package/src/aicore/ui/aispinner.js +1 -1
  81. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  84. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  85. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  86. package/src/aicore/utils/createresizebutton.js +1 -1
  87. package/src/aicore/utils/documentposition.js +1 -1
  88. package/src/aicore/utils/documentrange.js +1 -1
  89. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  90. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  91. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  92. package/src/aicore/utils/htmlparser.js +1 -1
  93. package/src/aicore/utils/htmlstreamer.js +1 -1
  94. package/src/aicore/utils/scrollmanager.js +1 -1
  95. package/src/aieditorintegration/aieditorintegration.js +1 -1
  96. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  97. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  98. package/src/aiquickactions/aiquickactions.js +1 -1
  99. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  100. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  101. package/src/aiquickactions/aiquickactionsui.js +1 -1
  102. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  103. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  104. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  105. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  106. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  107. package/src/aireviewmode/aireviewmode.js +1 -1
  108. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  109. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  110. package/src/aireviewmode/aireviewmodeui.js +1 -1
  111. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  112. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  113. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  114. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  115. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  116. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  117. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  118. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  119. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  120. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  121. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  122. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  123. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  124. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  125. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  126. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  127. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  128. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  129. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  130. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  131. package/src/aitabs/aitabs.js +1 -1
  132. package/src/aitabs/tabs/aitabsview.js +1 -1
  133. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  134. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ed2b1=_0x43e0;(function(_0x211fbd,_0x132ee2){const _0x2055ba=_0x43e0,_0x2714d8=_0x211fbd();while(!![]){try{const _0x2f3a98=parseInt(_0x2055ba(0x2fb))/0x1+parseInt(_0x2055ba(0x1d6))/0x2*(parseInt(_0x2055ba(0x258))/0x3)+-parseInt(_0x2055ba(0x21a))/0x4*(-parseInt(_0x2055ba(0x2b0))/0x5)+-parseInt(_0x2055ba(0x2b6))/0x6+parseInt(_0x2055ba(0x1e3))/0x7*(-parseInt(_0x2055ba(0x228))/0x8)+parseInt(_0x2055ba(0x203))/0x9*(-parseInt(_0x2055ba(0x1b3))/0xa)+parseInt(_0x2055ba(0x2e8))/0xb*(parseInt(_0x2055ba(0x27d))/0xc);if(_0x2f3a98===_0x132ee2)break;else _0x2714d8['push'](_0x2714d8['shift']());}catch(_0x2bc762){_0x2714d8['push'](_0x2714d8['shift']());}}}(_0x37ff,0x6ca28));import{ContextPlugin as _0x3df393,Editor as _0x458652}from'ckeditor5/src/core.js';import{BodyCollection as _0x557983}from'ckeditor5/src/ui.js';import{CKEditorError as _0x56335c,logError as _0x5678bd,scrollViewportToShowTarget as _0x168f9e,uid as _0x3c32fe}from'ckeditor5/src/utils.js';import{AIConnector as _0x184352}from'../aicore/aiconnector.js';import{AITabs as _0x19b00d}from'../aitabs/aitabs.js';import{AIChatConversation as _0x38cc37}from'./model/aichatconversation.js';import{getTranslation as _0x293bcb}from'../aicore/utils/common-translations.js';function _0x43e0(_0x54c9f0,_0x292144){const _0x37ffed=_0x37ff();return _0x43e0=function(_0x43e08e,_0x4736c4){_0x43e08e=_0x43e08e-0x199;let _0x11ac07=_0x37ffed[_0x43e08e];return _0x11ac07;},_0x43e0(_0x54c9f0,_0x292144);}import{AI_VISUAL_SELECTION_MARKER_NAME as _0x46d8a9}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x1176cb}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIModels as _0xc38e}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x5aabc3}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x55ea8c,DATA_ID_MODEL_ATTRIBUTE as _0xf63df4}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x594803,getOperationsFromReply as _0x3706be}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x260592,getMinimalSelection as _0x3d329c}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x23f00f,_DetachOperation as _0x2eb90c}from'ckeditor5/src/engine.js';function _0x37ff(){const _0x2a992d=['getConversation','reasoningFinished','addFeedItemUserMessage','replies','resetConversationTitle','fetchConversation','AI_CHAT_UNTITLED_CONVERSATION','isPremiumPlugin','addOperation','cloneNode','accepted','scrollFeedToSuggestion','addFeedItemError','_startConversationSafely','updateResourceState','ai-no-track-changes','AI_CHAT_UNABLE_TO_START_CONVERSATION','contextItemRemoved','webSearchStarted','ai-chat-context-unsupported-type','_setIsMaximized','range','15rWKWBm','upsertAIChatRating','_aiEditing','DocumentCompare','toggleSuggestionDisplayMode','ai-chat-context-unsupported-file-type','4882740cfNaiU','Liked\x20response','addSelectionToContext','destroy','getContentParts','contextItems','contextItem','$graveyard','undo','changes','interactionId','removeFromContext','mouseOverSuggestion','ai-chat-file-upload-failed','ai.chat.models.displayedModels','viewRangeToDom','_insertSuggestion','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','contextItemAdded','updateCurrentDocumentInContext','content','modification-delta','conversationInitialized','setChangeGroupState','anchorId','chat','current-document','_removeFromContext','delete','batch','AIChatController','filter','replyContentUpdated','toViewRange','getPath','addSelectionToChatContext','open','addContextOptionsChanged','afterInit','webSearchFinished','_stopLastInteraction','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','view','data-id','interactionDestroyed','ai-chat-missing-channel-id','lastInteraction','log','setIsUploadInProgress','plugins','17210237bolsvo','_toggleReasoning','_balloonShowDiff','uploadProgressChanged','updateCapabilities','AI_CHAT_GENERIC_ERROR','AI_BALLOON_HEADER_TITLE','add','ai-chat-source-resources-load-failed','full','_applySuggestion','index','reasoningStarted','showFakeVisualSelection','_flushLastInteractionUI','markers','revert','loadConversation','abortPromptStream','509951UjTCXT','getFirstRange','updateConversationTitle','resourceId','children','howMany','removeSelectionFromChatContext','rejectSuggestion','error','setConversationTitle','replyChangeGroupStateUpdated','rootName','pending','model','AI_CHAT_ABORTED_MESSAGE','ai-chat-context-file-too-large','unshift','showDiff','remove','version','addFeedItemAIReply','get','showPrevious','_openBalloonFor','AI_CHAT_CONTEXT_FILE_TOO_LARGE','replyCreated','close','main','getDiff','AI_CHAT_CONTEXT_INVALID_DATA','changeGroups','isUploadInProgress','sourcePosition','documentContextContent','_updateRatings','toggleWebSearch','interactionStarted','sources','push','getInteractionAndReplyById','redo','maxOffset','130tiwQYS','ai.chat.models.defaultModelId','ai-chat-resource-load-failed','_aiChatUi','attachToDom','_handleUIUserMessage','end','_updateReplyContent','startsWith','state','removed','setFeedItemRenderingStrategy','updateContent','ai-chat-controller-mouse-over','AI_CHAT_INVALID_REQUEST','applySuggestion','activeConversation','updateFeedItemAIReplySources','getAttribute','sendUserMessage','outdated','ai-chat-url-upload-failed','addFilesToContext','TrackChanges','source','ai-chat-controller-no-active-conversation','_createFromRanges','focusPromptInput','addDocumentToContext','rejected','_integrateEditor','slice','stop','_removeAISelectionMarkers','interactionCreated','8486KPvtYf','like','toString','uid','setModel','ai-chat-conversation-init-failed','hideFakeVisualSelection','parse','selection','ai-chat-invalid-request','createPositionFromPath','addFileToContext','addContextItem','26551FLyMSq','root','init','handleRemovedConversation','replyId','Showing\x20conversation\x20history...','addResourceToContext','new','getMarkersGroup','pluginName','setSelectedModel','type','document','sendMessage','Disliked\x20response','contextSent','isCurrentDocumentInConversation','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','resize','stopListening','resizeTabs','setIsMaximized','editors','streaming','enableControls','clearPendingContextUI','addCurrentDocumentToContext','addUrlToContext','AIConnector','getChildAtOffset','setContextItemLoading','showNext','432612nEopJS','getDocumentContext','history','sourceResourcesLoaded','ai.chat.context','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','set','indexOf','stopInteraction','hasChanges','dialogClosed','mapper','_showConversationHistory','config','load','removeSelectionFromContext','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','_scrollToSuggestionRange','modelSelected','start','createPositionAt','AITabs','_previewedChangeGroup','33340NYPpLc','context','map','ai.availableReplyActions','isLoading','nextSibling','domConverter','mouseLeaveSuggestion','activateTab','ai-chat-context-file-too-many-pages','contextItemLoadingEnded','ai-conversation-','updateFeedItemAIReplyContent','isOpen','1216DyPWcI','createConversation','getSelectionText','getOperations','from','resourceStateChanged','isDisabled','AI_CHAT_RESOURCE_LOAD_FAILED','text-delta','finishInteraction','_logError','ai-chat-conversation-start-failed','has','interactionFinished','find','getDocumentData','AIEditing','change','applyOperation','forEach','insertSuggestion','getChildren','setAddContextOptions','addFeedItemStaticMessage','getReply','data','resources','editing','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','collaboration.channelId','marker','isStarted','locale','startAutoScroll','ai-request-aborted','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','startInteraction','isModelAvailable','_applyOperationsAsSuggestions','requires','updateFeedItemAIReplySuggestionContent','updateFeedItemAIReplySuggestionPartState','ready','loadSourceResources','removeMarker','message','ai-chat-context-form-data-size-limits-exceeded','isOfficialPlugin','255rsiMqv','closeSourceResourceBalloon','dislike','_bodyCollection','clearConversationContextUI','detachFromDom','sourceId','messageId','setConversationContext','_aiChatModels','resizedTabs','getInteraction','capabilitiesUpdated','createRange','selectModel','getTransformedByOperation','uiId','query','handleUserInteraction','getRoot','indexes','_aiConnector','_getDocumentRangeForReplyChanges','removeContextItem','Undo','addFeedInteractionHeader','resetMessageInput','isCurrentDocumentInContext','getGroupId','baseVersion','alignToTop','addFeedItemAISuggestion','isDocumentOperation','AIChatUI','options','getRanges','findIndex','12ZMhSfu','ai-chat-conversation-not-found','resource','listenTo','removeFeedInteraction','partIndex','toggleLoadingSkeleton','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','getChild','selectedModel','path','startConversation','toggleReasoning','TrackChangesEditing','node','populateSourceResourceBalloon','setLoadingMessage','_batchToChanges','disableControls','split','_handleStartConversation','showChangeInText','static','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','isInContext','_toggleWebSearch','length','ai-chat-context-invalid-data','commands'];_0x37ff=function(){return _0x2a992d;};return _0x37ff();}import{findOne as _0x5e8914,getAttribute as _0x1a7623,serialize as _0x42c957,Document as _0x5bc963,findByAttribute as _0x49e6f5}from'../aicore/utils/htmlparser.js';import{IconAI as _0x49ff7c}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x3bc644}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x4b5329}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x3df393{[_0x2ed2b1(0x2b2)];[_0x2ed2b1(0x26d)];[_0x2ed2b1(0x1b6)];[_0x2ed2b1(0x261)];[_0x2ed2b1(0x28e)]=new Map();[_0x2ed2b1(0x219)]=null;[_0x2ed2b1(0x2ea)]=!0x1;[_0x2ed2b1(0x25b)];static get[_0x2ed2b1(0x24f)](){return[_0x184352,_0x4b5329,_0x55ea8c];}static get[_0x2ed2b1(0x1ec)](){const _0x479988=_0x2ed2b1;return _0x479988(0x2d4);}static get[_0x2ed2b1(0x257)](){return!0x0;}static get[_0x2ed2b1(0x2a1)](){return!0x0;}[_0x2ed2b1(0x1e5)](){const _0x23f62a=_0x2ed2b1;this[_0x23f62a(0x25b)]=new _0x557983(this[_0x23f62a(0x21b)][_0x23f62a(0x248)]),this[_0x23f62a(0x25b)][_0x23f62a(0x1b7)](),this[_0x23f62a(0x26d)]=this[_0x23f62a(0x21b)][_0x23f62a(0x2e7)][_0x23f62a(0x19e)](_0x23f62a(0x1ff)),this[_0x23f62a(0x1b6)]=this[_0x23f62a(0x21b)][_0x23f62a(0x2e7)][_0x23f62a(0x19e)](_0x23f62a(0x279)),this[_0x23f62a(0x2b2)]=this[_0x23f62a(0x21b)][_0x23f62a(0x2e7)][_0x23f62a(0x19e)](_0x23f62a(0x238)),this[_0x23f62a(0x261)]=new _0xc38e({'connector':this[_0x23f62a(0x26d)],'availableModels':this[_0x23f62a(0x21b)][_0x23f62a(0x210)][_0x23f62a(0x19e)](_0x23f62a(0x2c4)),'defaultModelId':this[_0x23f62a(0x21b)][_0x23f62a(0x210)][_0x23f62a(0x19e)](_0x23f62a(0x1b4)),'locale':this[_0x23f62a(0x21b)][_0x23f62a(0x248)]});const _0xc3fb6d=this[_0x23f62a(0x21b)][_0x23f62a(0x2e7)][_0x23f62a(0x19e)](_0x23f62a(0x218));this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x288),()=>{const _0x28dffe=_0x23f62a;this[_0x28dffe(0x2a7)]();}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x1c6),(_0x41d517,_0x41e6c8)=>{const _0x30888c=_0x23f62a;this[_0x30888c(0x1b8)]({'userMessage':_0x41e6c8});}),this[_0x23f62a(0x280)](_0xc3fb6d,_0x23f62a(0x262),(_0x2fc106,_0x217f29)=>{const _0x2d4207=_0x23f62a;this[_0x2d4207(0x2ae)](_0x217f29);}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x1f7),()=>{const _0x58c22d=_0x23f62a;_0xc3fb6d[_0x58c22d(0x1f5)]();}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x2fa),async()=>{const _0x4636c9=_0x23f62a;await this[_0x4636c9(0x2de)](),await this[_0x4636c9(0x2f6)](),this[_0x4636c9(0x301)]();}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x1cf),()=>{const _0x2c69c0=_0x23f62a;this[_0x2c69c0(0x1c3)]?.[_0x2c69c0(0x1fd)](_0x293bcb(this[_0x2c69c0(0x21b)][_0x2c69c0(0x248)],_0x2c69c0(0x2c7)));}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x1e1),(_0x20a6d6,_0x4fce8d)=>{const _0x5a3999=_0x23f62a;this[_0x5a3999(0x1c3)]?.[_0x5a3999(0x1c9)](Array[_0x5a3999(0x22c)](_0x4fce8d));}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x1fe),(_0x25b2a5,_0x4a957d)=>{const _0x1e0a60=_0x23f62a;this[_0x1e0a60(0x1c3)]?.[_0x1e0a60(0x1fe)](_0x4a957d);}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x1e9),(_0xf96bbf,_0x53d3ac)=>{const _0x36f3a9=_0x23f62a;this[_0x36f3a9(0x1c3)]?.[_0x36f3a9(0x1e9)](_0x53d3ac[_0x36f3a9(0x1cb)],_0x53d3ac[_0x36f3a9(0x27f)]);}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x26f),(_0x5c086d,_0x648062)=>{const _0x1e8d25=_0x23f62a;this[_0x1e8d25(0x2d1)](_0x648062);}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x253),(_0x1fface,_0x396fa7)=>{const _0x53d9e4=_0x23f62a;this[_0x53d9e4(0x1c3)]?.[_0x53d9e4(0x253)](_0x396fa7[_0x53d9e4(0x25e)],_0x396fa7[_0x53d9e4(0x269)],_0x396fa7[_0x53d9e4(0x1d9)]);}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x1ac),()=>{const _0x18f7ed=_0x23f62a;this[_0x18f7ed(0x296)]();}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x289),()=>{const _0x3e5050=_0x23f62a;this[_0x3e5050(0x2e9)]();}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x266),(_0x413ed0,_0x3a4dbe)=>{const _0x57f85f=_0x23f62a;this[_0x57f85f(0x1c3)]?.[_0x57f85f(0x1da)](_0x3a4dbe);}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x1d7),(_0x1b17c6,{replyId:_0x1f1651})=>{const _0x478583=_0x23f62a;console[_0x478583(0x2e5)](_0x478583(0x2b7),_0x1f1651);}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x25a),(_0x47bff4,{replyId:_0x4676ce})=>{const _0x3af815=_0x23f62a;console[_0x3af815(0x2e5)](_0x3af815(0x1f1),_0x4676ce);}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x23c),(_0x1a8452,_0x102d85)=>{const _0x25d497=_0x23f62a;this[_0x25d497(0x21b)][_0x25d497(0x2e7)][_0x25d497(0x19e)](_0x4b5329)[_0x25d497(0x1a3)](),this[_0x25d497(0x2c6)](_0x102d85);}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x292),(_0x1cf627,{replyId:_0x1b261a,partIndex:_0x110f7b})=>{const _0x4e9f6f=_0x23f62a;this[_0x4e9f6f(0x2ea)]=this[_0x4e9f6f(0x1b6)][_0x4e9f6f(0x19a)],this[_0x4e9f6f(0x1a0)](_0x1b261a,_0x110f7b);}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x2c2),(_0xfab209,{replyId:_0x5535f5,partIndex:_0x1d18ae})=>{const _0x674428=_0x23f62a,_0x3da3c7=this[_0x674428(0x26e)](_0x5535f5,_0x1d18ae);_0x3da3c7&&_0x674428(0x2bd)!=_0x3da3c7[_0x674428(0x2af)][_0x674428(0x1e4)][_0x674428(0x306)]&&this[_0x674428(0x2b2)][_0x674428(0x2f5)]([_0x3da3c7[_0x674428(0x2af)]],_0x674428(0x1c0));}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x221),()=>{const _0x3e41da=_0x23f62a;this[_0x3e41da(0x2b2)][_0x3e41da(0x1dc)](_0x3e41da(0x1c0));}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x1c2),(_0x11bc06,_0x101f3e)=>{const _0x35fd3a=_0x23f62a;this[_0x35fd3a(0x21b)][_0x35fd3a(0x2e7)][_0x35fd3a(0x19e)](_0x4b5329)[_0x35fd3a(0x1a3)](),this[_0x35fd3a(0x2f2)](_0x101f3e);}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x2b4),async(_0x3b4237,{replyId:_0x2c18d5,showDiff:_0x302aaa})=>{const _0x3ea5e1=_0x23f62a,{reply:_0x12e57e}=this[_0x3ea5e1(0x1b0)](_0x2c18d5),_0x815810=_0x12e57e[_0x3ea5e1(0x2ba)]({'showDiff':_0x302aaa});await this[_0x3ea5e1(0x1b6)][_0x3ea5e1(0x250)]({'id':_0x12e57e['id'],'parts':_0x815810,'renderingStrategy':_0x3ea5e1(0x293)});}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x302),(_0x2f5401,{replyId:_0x2d3e2d,partIndex:_0x3e0920})=>{const _0x178945=_0x23f62a;this[_0x178945(0x219)]?.[_0x178945(0x1e7)]==_0x2d3e2d&&this[_0x178945(0x219)]?.[_0x178945(0x282)]==_0x3e0920&&this[_0x178945(0x21b)][_0x178945(0x2e7)][_0x178945(0x19e)](_0x4b5329)[_0x178945(0x1a3)]();const {reply:_0xff4ddc}=this[_0x178945(0x1b0)](_0x2d3e2d);_0xff4ddc[_0x178945(0x2cd)](_0x3e0920,_0x178945(0x1d0)),this[_0x178945(0x2b2)][_0x178945(0x1dc)](_0x178945(0x1c0));});}async[_0x2ed2b1(0x2dc)](){const _0xc7fa35=_0x2ed2b1;this[_0xc7fa35(0x21b)]instanceof _0x458652?this[_0xc7fa35(0x1d1)](this[_0xc7fa35(0x21b)]):this[_0xc7fa35(0x280)](this[_0xc7fa35(0x21b)][_0xc7fa35(0x1f9)],_0xc7fa35(0x2ef),(_0x5634e2,_0x2a5ec0)=>{const _0x3cbacc=_0xc7fa35;_0x2a5ec0['on'](_0x3cbacc(0x252),()=>{const _0x491bd8=_0x3cbacc;this[_0x491bd8(0x1d1)](_0x2a5ec0);});}),await this[_0xc7fa35(0x2a7)]();}[_0x2ed2b1(0x2b9)](){const _0x44869c=_0x2ed2b1;this[_0x44869c(0x25b)][_0x44869c(0x25d)](),super[_0x44869c(0x2b9)]();}[_0x2ed2b1(0x2c6)](_0x3c283b){const _0x391a56=_0x2ed2b1,_0x14f375=_0x5aabc3(this[_0x391a56(0x21b)]);if(!_0x14f375[_0x391a56(0x2e7)][_0x391a56(0x234)](_0x391a56(0x1ca)))throw new _0x56335c(_0x391a56(0x2a9),null);const _0x59fe37=this[_0x391a56(0x21b)][_0x391a56(0x2e7)][_0x391a56(0x19e)](_0x391a56(0x2b3)),{reply:_0x3e52ca,interaction:_0xa44f71}=this[_0x391a56(0x1b0)](_0x3c283b[_0x391a56(0x1e7)]),_0x392ab3=this[_0x391a56(0x26e)](_0x3c283b[_0x391a56(0x1e7)],_0x3c283b[_0x391a56(0x282)]),_0x5b9b8c=void 0x0!==_0x3c283b[_0x391a56(0x282)]?[_0x3e52ca[_0x391a56(0x1a7)][_0x3c283b[_0x391a56(0x282)]]]:_0x3e52ca[_0x391a56(0x1a7)][_0x391a56(0x2d5)](_0xd14d83=>_0x391a56(0x307)==_0xd14d83[_0x391a56(0x1bc)]),_0x3954f0=_0x5b9b8c[_0x391a56(0x21c)](_0x377e02=>_0x3e52ca[_0x391a56(0x1a7)][_0x391a56(0x20a)](_0x377e02));if(!_0x392ab3||_0x391a56(0x2bd)==_0x392ab3[_0x391a56(0x2af)][_0x391a56(0x1e4)][_0x391a56(0x306)])return void _0x3954f0[_0x391a56(0x23b)](_0x40be16=>_0x3e52ca[_0x391a56(0x2cd)](_0x40be16,_0x391a56(0x1c7)));_0x3954f0[_0x391a56(0x23b)](_0x24e085=>_0x3e52ca[_0x391a56(0x2cd)](_0x24e085,_0x391a56(0x2a4)));const _0x43ba1d=_0x3706be({'editor':_0x14f375,'reply':_0x3e52ca,'interaction':_0xa44f71,'groups':_0x5b9b8c,'transform':!0x0,'documentCompare':_0x59fe37,'documentCompareOptions':{'anchor':_0x391a56(0x1a4),'markDeletions':!0x0}});let _0x44c0c4;_0x392ab3&&this[_0x391a56(0x214)](_0x392ab3[_0x391a56(0x2af)]),_0x14f375[_0x391a56(0x308)][_0x391a56(0x239)](_0x17c4ee=>{const _0x4331c4=_0x391a56;_0x44c0c4=_0x17c4ee[_0x4331c4(0x2d3)],_0x14f375[_0x4331c4(0x2e7)][_0x4331c4(0x19e)](_0x4331c4(0x28a))[_0x4331c4(0x24e)](_0x43ba1d),this[_0x4331c4(0x2b2)][_0x4331c4(0x1dc)](_0x4331c4(0x1c0));}),this[_0x391a56(0x28e)][_0x391a56(0x209)](_0x44c0c4,{'interactionId':_0xa44f71['id'],'replyId':_0x3e52ca['id'],'indexes':_0x3954f0[_0x391a56(0x1d2)]()}),this[_0x391a56(0x1ab)](_0x3e52ca);}[_0x2ed2b1(0x2f2)](_0x4434fd){const _0x33ee6f=_0x2ed2b1,_0x201ca5=_0x5aabc3(this[_0x33ee6f(0x21b)]),_0x33447c=this[_0x33ee6f(0x21b)][_0x33ee6f(0x2e7)][_0x33ee6f(0x19e)](_0x55ea8c),{reply:_0x55c6f2,interaction:_0x5b2d91}=this[_0x33ee6f(0x1b0)](_0x4434fd[_0x33ee6f(0x1e7)]),_0x35862b=this[_0x33ee6f(0x26e)](_0x4434fd[_0x33ee6f(0x1e7)],_0x4434fd[_0x33ee6f(0x282)]),_0x6d57e8=void 0x0!==_0x4434fd[_0x33ee6f(0x282)]?[_0x55c6f2[_0x33ee6f(0x1a7)][_0x4434fd[_0x33ee6f(0x282)]]]:_0x55c6f2[_0x33ee6f(0x1a7)][_0x33ee6f(0x2d5)](_0x34fc10=>_0x33ee6f(0x307)==_0x34fc10[_0x33ee6f(0x1bc)]),_0x5ec119=_0x6d57e8[_0x33ee6f(0x21c)](_0x26e1c5=>_0x55c6f2[_0x33ee6f(0x1a7)][_0x33ee6f(0x20a)](_0x26e1c5));if(!_0x35862b||_0x33ee6f(0x2bd)==_0x35862b[_0x33ee6f(0x2af)][_0x33ee6f(0x1e4)][_0x33ee6f(0x306)])return void _0x5ec119[_0x33ee6f(0x23b)](_0x2413a8=>_0x55c6f2[_0x33ee6f(0x2cd)](_0x2413a8,_0x33ee6f(0x1c7)));_0x5ec119[_0x33ee6f(0x23b)](_0x1f7e24=>_0x55c6f2[_0x33ee6f(0x2cd)](_0x1f7e24,_0x33ee6f(0x2a4)));const _0x4c2166=_0x3706be({'editor':_0x201ca5,'reply':_0x55c6f2,'interaction':_0x5b2d91,'groups':_0x6d57e8,'transform':!0x0,'documentCompare':_0x33447c,'documentCompareOptions':{'anchor':_0x33ee6f(0x1a4),'markDeletions':!0x1}});let _0x1cb82f;_0x35862b&&this[_0x33ee6f(0x214)](_0x35862b[_0x33ee6f(0x2af)]),_0x201ca5[_0x33ee6f(0x308)][_0x33ee6f(0x239)](_0x467e15=>{const _0x3b1cf9=_0x33ee6f;_0x1cb82f=_0x467e15[_0x3b1cf9(0x2d3)];for(const _0x275b27 of _0x4c2166)_0x275b27[_0x3b1cf9(0x275)]=_0x201ca5[_0x3b1cf9(0x308)][_0x3b1cf9(0x1ef)][_0x3b1cf9(0x19c)],_0x594803(_0x201ca5,_0x275b27),_0x467e15[_0x3b1cf9(0x2d3)][_0x3b1cf9(0x2a2)](_0x275b27),_0x201ca5[_0x3b1cf9(0x308)][_0x3b1cf9(0x23a)](_0x275b27);}),this[_0x33ee6f(0x28e)][_0x33ee6f(0x209)](_0x1cb82f,{'interactionId':_0x5b2d91['id'],'replyId':_0x55c6f2['id'],'indexes':_0x5ec119[_0x33ee6f(0x1d2)]()}),this[_0x33ee6f(0x1ab)](_0x55c6f2);}[_0x2ed2b1(0x1a0)](_0x4f09f1,_0x160da7){const _0x5a6448=_0x2ed2b1,_0x1ba34a=_0x5aabc3(this[_0x5a6448(0x21b)]),_0x1e9764=this[_0x5a6448(0x26e)](_0x4f09f1,_0x160da7),_0x5e06b4=this[_0x5a6448(0x21b)][_0x5a6448(0x2e7)][_0x5a6448(0x19e)](_0x4b5329);if(!_0x1e9764)return void _0x5e06b4[_0x5a6448(0x1a3)]();const {range:_0x10632a,currentIndex:_0x1dad21}=_0x1e9764;if(_0x5a6448(0x2bd)==_0x10632a[_0x5a6448(0x1e4)][_0x5a6448(0x306)]){const {reply:_0xfbc672}=this[_0x5a6448(0x1b0)](_0x4f09f1);return _0xfbc672[_0x5a6448(0x2cd)](_0x1dad21,_0x5a6448(0x1c7)),void _0x5e06b4[_0x5a6448(0x1a3)]();}if(this[_0x5a6448(0x219)]?.[_0x5a6448(0x1e7)]==_0x4f09f1&&this[_0x5a6448(0x219)]?.[_0x5a6448(0x282)]==_0x1dad21)return;this[_0x5a6448(0x1f6)](_0x5e06b4),this[_0x5a6448(0x219)]={'replyId':_0x4f09f1,'partIndex':_0x1dad21};let _0x5848f9=_0x1ba34a[_0x5a6448(0x210)][_0x5a6448(0x19e)](_0x5a6448(0x21d))||[..._0x1176cb];_0x1ba34a[_0x5a6448(0x2e7)][_0x5a6448(0x234)](_0x5a6448(0x1ca))||(_0x5848f9=_0x5848f9[_0x5a6448(0x2d5)](_0x279915=>_0x5a6448(0x23c)!=_0x279915));const _0x1d556e=new _0x3bc644(_0x1ba34a[_0x5a6448(0x248)],{'showDiff':this[_0x5a6448(0x2ea)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x5a6448(0x2f1)},'hideHeader':!0x0,'availableActions':_0x5848f9},this[_0x5a6448(0x25b)]);this[_0x5a6448(0x1f6)](_0x1d556e);const {reply:_0x5bf715}=this[_0x5a6448(0x1b0)](_0x4f09f1),_0x5ce60b=_0x5bf715[_0x5a6448(0x2ba)]({'showDiff':this[_0x5a6448(0x2ea)]})[_0x5a6448(0x2d5)](_0x770478=>_0x770478[_0x5a6448(0x20c)]),_0x314d88=_0x5ce60b[_0x5a6448(0x27c)](_0x5c3e6c=>_0x5c3e6c[_0x5a6448(0x2f3)]==_0x1dad21);if(-0x1==_0x314d88)return;const _0x5a794d=_0x5ce60b[_0x314d88],_0x5fd359=_0x5ce60b['at']((_0x314d88-0x1)%_0x5ce60b[_0x5a6448(0x297)])?.[_0x5a6448(0x2f3)],_0x193ae4=_0x5ce60b['at']((_0x314d88+0x1)%_0x5ce60b[_0x5a6448(0x297)])?.[_0x5a6448(0x2f3)];_0x1d556e[_0x5a6448(0x1bf)]({'parts':[_0x5a794d],'renderingStrategy':_0x5a6448(0x293)});const _0x5b1049=_0x1dad21!==_0x5fd359;this[_0x5a6448(0x214)](_0x10632a,!0x0),_0x5e06b4[_0x5a6448(0x2da)]({'index':_0x1dad21,'title':_0x293bcb(this[_0x5a6448(0x21b)][_0x5a6448(0x248)],_0x5a6448(0x2ee),(_0x314d88+0x1)[_0x5a6448(0x1d8)]()),'icon':_0x49ff7c,'mainView':_0x1d556e,'showRotator':_0x5b1049,'showApplyButton':!0x0,'showSuggestButton':_0x1ba34a[_0x5a6448(0x2e7)][_0x5a6448(0x234)](_0x5a6448(0x1ca)),'ranges':[_0x10632a]}),this[_0x5a6448(0x1b6)][_0x5a6448(0x2a5)](_0x4f09f1,_0x1dad21),this[_0x5a6448(0x280)](_0x1d556e,_0x5a6448(0x2b4),(_0x580659,{showDiff:_0x198472})=>{const _0x40c5c8=_0x5a6448;this[_0x40c5c8(0x2ea)]=_0x198472;const {reply:_0x43ad90}=this[_0x40c5c8(0x1b0)](_0x4f09f1),_0x64bd48=_0x43ad90[_0x40c5c8(0x2ba)]({'showDiff':_0x198472,'groupIndex':_0x1dad21});_0x1d556e[_0x40c5c8(0x1bf)]({'parts':_0x64bd48,'renderingStrategy':_0x40c5c8(0x293)});}),this[_0x5a6448(0x280)](_0x5e06b4,_0x5a6448(0x1c2),()=>{const _0x2bb1a4=_0x5a6448;this[_0x2bb1a4(0x2f2)]({'replyId':_0x4f09f1,'partIndex':_0x1dad21}),_0x5b1049?this[_0x2bb1a4(0x1a0)](_0x4f09f1,_0x193ae4):_0x5e06b4[_0x2bb1a4(0x1a3)]();}),this[_0x5a6448(0x280)](_0x5e06b4,_0x5a6448(0x23c),()=>{const _0x2b1746=_0x5a6448;this[_0x2b1746(0x2c6)]({'replyId':_0x4f09f1,'partIndex':_0x1dad21}),_0x5b1049?this[_0x2b1746(0x1a0)](_0x4f09f1,_0x193ae4):_0x5e06b4[_0x2b1746(0x1a3)]();}),_0x5b1049&&(this[_0x5a6448(0x280)](_0x5e06b4,_0x5a6448(0x202),()=>{const _0x73aa5e=_0x5a6448;this[_0x73aa5e(0x1a0)](_0x4f09f1,_0x193ae4);}),this[_0x5a6448(0x280)](_0x5e06b4,_0x5a6448(0x19f),()=>{const _0x113de9=_0x5a6448;this[_0x113de9(0x1a0)](_0x4f09f1,_0x5fd359);})),this[_0x5a6448(0x280)](_0x5e06b4,_0x5a6448(0x20d),()=>{const _0x579174=_0x5a6448;this[_0x579174(0x1f6)](_0x5e06b4),this[_0x579174(0x1f6)](_0x1d556e),this[_0x579174(0x219)]=null;});}[_0x2ed2b1(0x26e)](_0x16a63d,_0x1c7d60){const _0x1227ca=_0x2ed2b1,_0x56782a=_0x5aabc3(this[_0x1227ca(0x21b)]),{reply:_0x4a2935,interaction:_0xec6865}=this[_0x1227ca(0x1b0)](_0x16a63d),_0x15e78e=_0x4a2935[_0x1227ca(0x1a7)][_0x1227ca(0x2d5)](_0x218aff=>_0x1227ca(0x307)==_0x218aff[_0x1227ca(0x1bc)]),_0x4e847b=_0x15e78e[_0x1227ca(0x21c)](_0x3c458d=>_0x4a2935[_0x1227ca(0x1a7)][_0x1227ca(0x20a)](_0x3c458d));void 0x0===_0x1c7d60&&(_0x1c7d60=_0x4e847b[0x0]);const _0x5f2433=_0x4e847b[_0x1227ca(0x20a)](_0x1c7d60);if(-0x1==_0x5f2433)return null;const _0xdde262=_0x15e78e[_0x5f2433],_0x13e3a6=new _0x5bc963([]),_0x272cd8=new _0x5bc963([]);for(const _0x49438e of _0xdde262[_0x1227ca(0x2bf)])if(_0x1227ca(0x1bd)!=_0x49438e[_0x1227ca(0x1ee)]&&_0x272cd8[_0x1227ca(0x2ff)][_0x1227ca(0x1af)](_0x49438e[_0x1227ca(0x28b)][_0x1227ca(0x2a3)](!0x0)),_0x1227ca(0x1ea)!=_0x49438e[_0x1227ca(0x1ee)]){const _0xfb541=_0x5e8914(_0x5d223e=>_0x1a7623(_0x5d223e,_0x1227ca(0x2e1))==_0x49438e['id'],_0x4a2935[_0x1227ca(0x1aa)],!0x0);_0x13e3a6[_0x1227ca(0x2ff)][_0x1227ca(0x1af)](_0xfb541[_0x1227ca(0x2a3)](!0x0));}if(0x0==_0x13e3a6[_0x1227ca(0x2ff)][_0x1227ca(0x297)]){if(_0xdde262[_0x1227ca(0x2bf)][0x0][_0x1227ca(0x2ce)]){const _0x54fb98=_0x49e6f5(_0x1227ca(0x2e1),_0xdde262[_0x1227ca(0x2bf)][0x0][_0x1227ca(0x2ce)],_0x4a2935[_0x1227ca(0x1aa)]);_0x13e3a6[_0x1227ca(0x2ff)][_0x1227ca(0x199)](_0x54fb98[_0x1227ca(0x2a3)](!0x0)),_0x272cd8[_0x1227ca(0x2ff)][_0x1227ca(0x199)](_0x54fb98[_0x1227ca(0x2a3)](!0x0)),_0x54fb98[_0x1227ca(0x21f)]&&(_0x13e3a6[_0x1227ca(0x2ff)][_0x1227ca(0x1af)](_0x54fb98[_0x1227ca(0x21f)][_0x1227ca(0x2a3)](!0x0)),_0x272cd8[_0x1227ca(0x2ff)][_0x1227ca(0x1af)](_0x54fb98[_0x1227ca(0x21f)][_0x1227ca(0x2a3)](!0x0)));}else{const _0x43c7b7=_0x4a2935[_0x1227ca(0x1aa)][_0x1227ca(0x2ff)][0x0];if(!_0x43c7b7)return null;_0x13e3a6[_0x1227ca(0x2ff)][_0x1227ca(0x1af)](_0x43c7b7[_0x1227ca(0x2a3)](!0x0)),_0x272cd8[_0x1227ca(0x2ff)][_0x1227ca(0x1af)](_0x43c7b7[_0x1227ca(0x2a3)](!0x0));}}const _0x174339=_0xec6865[_0x1227ca(0x204)](),_0x502276=_0x56782a[_0x1227ca(0x241)][_0x1227ca(0x1dd)](_0x174339[_0x1227ca(0x2ca)]),_0x16fcef=_0x42c957(_0x13e3a6),_0x56488c=_0x56782a[_0x1227ca(0x241)][_0x1227ca(0x1dd)](_0x16fcef),_0xaf6f6f=_0x56782a[_0x1227ca(0x241)][_0x1227ca(0x1dd)](_0x16fcef),_0x5af3dc=_0x56782a[_0x1227ca(0x308)][_0x1227ca(0x217)](_0x56488c,0x0),_0x376ea0=_0x42c957(_0x272cd8),_0x270192={'anchor':_0x5af3dc,'markDeletions':!0x1},_0x2480f8=_0x56782a[_0x1227ca(0x2e7)][_0x1227ca(0x19e)](_0x55ea8c)[_0x1227ca(0x1a5)](_0x16fcef,_0x376ea0,_0x270192)[_0x1227ca(0x22b)]();if(!_0x2480f8[_0x1227ca(0x297)])return null;_0x56782a[_0x1227ca(0x308)][_0x1227ca(0x239)](_0x13acd7=>{const _0x3250fa=_0x1227ca;for(const _0x1a04d6 of _0x2480f8)if(_0x3250fa(0x19b)==_0x1a04d6[_0x3250fa(0x1ee)]){const _0x13c0d8=_0x1a04d6[_0x3250fa(0x1a9)],_0x486a57=_0x1a04d6[_0x3250fa(0x300)],_0x4e48f3=new _0x2eb90c(_0x13c0d8,_0x486a57);_0x13acd7[_0x3250fa(0x2d3)][_0x3250fa(0x2a2)](_0x4e48f3),_0x56782a[_0x3250fa(0x308)][_0x3250fa(0x23a)](_0x4e48f3);}else _0x3250fa(0x246)!==_0x1a04d6[_0x3250fa(0x1ee)]&&(_0x1a04d6[_0x3250fa(0x275)]=null,_0x1a04d6[_0x3250fa(0x278)]=!0x1,_0x13acd7[_0x3250fa(0x2d3)][_0x3250fa(0x2a2)](_0x1a04d6),_0x56782a[_0x3250fa(0x308)][_0x3250fa(0x23a)](_0x1a04d6));});const _0x89559=_0x3d329c(_0x56782a,_0x2480f8,_0x56488c);_0x260592(_0x56782a[_0x1227ca(0x308)],_0x89559);const _0x2410ea=_0x89559[_0x1227ca(0x2fc)]()[_0x1227ca(0x216)][_0x1227ca(0x287)][_0x1227ca(0x1d2)](),_0x16a111=_0x89559[_0x1227ca(0x2fc)]()[_0x1227ca(0x1b9)][_0x1227ca(0x287)][_0x1227ca(0x1d2)](),_0x41d31e=[];let _0x47bec0=_0x56488c,_0x175d47=_0xaf6f6f;for(let _0xd953b6=0x0;_0xd953b6<_0x16a111[_0x1227ca(0x297)];_0xd953b6++){const _0xac74be=_0x47bec0[_0x1227ca(0x1b2)]-_0x16a111[_0xd953b6];_0x41d31e[_0xd953b6]=_0x175d47[_0x1227ca(0x1b2)]-_0xac74be,_0x47bec0=_0x47bec0[_0x1227ca(0x200)](_0x16a111[_0xd953b6]),_0x175d47=_0x175d47[_0x1227ca(0x200)](_0x41d31e[_0xd953b6]);}const _0x55401c=_0x56782a[_0x1227ca(0x308)][_0x1227ca(0x265)](_0x56782a[_0x1227ca(0x308)][_0x1227ca(0x1e0)](_0xaf6f6f,_0x2410ea),_0x56782a[_0x1227ca(0x308)][_0x1227ca(0x1e0)](_0xaf6f6f,_0x41d31e)),_0x26d7c0=_0xaf6f6f[_0x1227ca(0x285)](0x0)[_0x1227ca(0x1c5)](_0xf63df4),_0x2e7702=Array[_0x1227ca(0x22c)](_0x502276[_0x1227ca(0x23d)]())[_0x1227ca(0x236)](_0x4e065a=>_0x4e065a[_0x1227ca(0x1c5)](_0xf63df4)==_0x26d7c0)[_0x1227ca(0x2d8)](),_0x388f9d=_0x55401c[_0x1227ca(0x216)][_0x1227ca(0x287)][_0x1227ca(0x1d2)](),_0x40ff34=_0x55401c[_0x1227ca(0x1b9)][_0x1227ca(0x287)][_0x1227ca(0x1d2)]();_0x388f9d[0x0]=_0x2e7702[0x0]+_0x388f9d[0x0],_0x40ff34[0x0]=_0x2e7702[0x0]+_0x40ff34[0x0];let _0x21add4=_0x56782a[_0x1227ca(0x308)][_0x1227ca(0x265)](_0x56782a[_0x1227ca(0x308)][_0x1227ca(0x1e0)](_0x56782a[_0x1227ca(0x308)][_0x1227ca(0x1ef)][_0x1227ca(0x26b)](),_0x388f9d),_0x56782a[_0x1227ca(0x308)][_0x1227ca(0x1e0)](_0x56782a[_0x1227ca(0x308)][_0x1227ca(0x1ef)][_0x1227ca(0x26b)](),_0x40ff34));const _0x106243=_0x56782a[_0x1227ca(0x308)][_0x1227ca(0x1ef)][_0x1227ca(0x205)][_0x1227ca(0x22b)](_0x174339[_0x1227ca(0x19c)]);for(const _0x5835a9 of _0x106243)_0x21add4=_0x23f00f[_0x1227ca(0x1cd)](_0x21add4[_0x1227ca(0x267)](_0x5835a9));return{'range':_0x21add4,'currentIndex':_0x1c7d60};}[_0x2ed2b1(0x1d1)](_0x4bad2a){const _0x2d6922=_0x2ed2b1;if(!_0x4bad2a[_0x2d6922(0x2e7)][_0x2d6922(0x234)](_0x2d6922(0x270)))return;const _0x56b439=_0x4bad2a[_0x2d6922(0x299)][_0x2d6922(0x19e)](_0x2d6922(0x2be)),_0x1791c8=_0x4bad2a[_0x2d6922(0x299)][_0x2d6922(0x19e)](_0x2d6922(0x1b1));this[_0x2d6922(0x280)](_0x56b439,_0x2d6922(0x2f8),(_0x17a59c,_0x5fd5a5,_0x5b01ba)=>{const _0x3d2f46=_0x2d6922,_0x366ab2=this[_0x3d2f46(0x28e)][_0x3d2f46(0x19e)](_0x5fd5a5);if(!_0x366ab2)return;const _0x2dcd42=this[_0x3d2f46(0x1c3)][_0x3d2f46(0x263)](_0x366ab2[_0x3d2f46(0x2c0)])[_0x3d2f46(0x240)](_0x366ab2[_0x3d2f46(0x1e7)]);_0x366ab2[_0x3d2f46(0x26c)][_0x3d2f46(0x23b)](_0x2b813e=>_0x2dcd42[_0x3d2f46(0x2cd)](_0x2b813e,_0x3d2f46(0x307))),this[_0x3d2f46(0x28e)][_0x3d2f46(0x2d2)](_0x5fd5a5),this[_0x3d2f46(0x28e)][_0x3d2f46(0x209)](_0x5b01ba,_0x366ab2);}),this[_0x2d6922(0x280)](_0x1791c8,_0x2d6922(0x2f8),(_0x147ac9,_0x248483,_0x1e0a3a)=>{const _0x47d147=_0x2d6922,_0x2afa7c=this[_0x47d147(0x28e)][_0x47d147(0x19e)](_0x248483);if(!_0x2afa7c)return;const _0x7ff216=this[_0x47d147(0x1c3)][_0x47d147(0x263)](_0x2afa7c[_0x47d147(0x2c0)])[_0x47d147(0x240)](_0x2afa7c[_0x47d147(0x1e7)]);_0x2afa7c[_0x47d147(0x26c)][_0x47d147(0x23b)](_0x227e1e=>_0x7ff216[_0x47d147(0x2cd)](_0x227e1e,_0x47d147(0x2a4))),this[_0x47d147(0x28e)][_0x47d147(0x2d2)](_0x248483),this[_0x47d147(0x28e)][_0x47d147(0x209)](_0x1e0a3a,_0x2afa7c);});}async[_0x2ed2b1(0x2f9)](_0x3582b0){const _0x466089=_0x2ed2b1;this[_0x466089(0x21b)][_0x466089(0x2e7)][_0x466089(0x19e)](_0x4b5329)[_0x466089(0x1a3)](),this[_0x466089(0x1b6)][_0x466089(0x1be)](_0x466089(0x293)),this[_0x466089(0x1b6)][_0x466089(0x283)](!0x0),await this[_0x466089(0x2de)]();try{await this[_0x466089(0x26d)][_0x466089(0x29f)](_0x3582b0)[_0x466089(0x29a)](),await this[_0x466089(0x2a7)](_0x3582b0),this[_0x466089(0x2fd)]('\x20');const {sessionId:_0xc366e2}=this[_0x466089(0x2b2)][_0x466089(0x237)]();await this[_0x466089(0x1c3)][_0x466089(0x211)](_0x3582b0,_0xc366e2),this[_0x466089(0x1c3)][_0x466089(0x1f3)]()&&this[_0x466089(0x1c3)][_0x466089(0x1fd)](_0x293bcb(this[_0x466089(0x21b)][_0x466089(0x248)],_0x466089(0x2c7)));}catch(_0x3c0c31){this[_0x466089(0x1b6)][_0x466089(0x2a6)]({'errorMessage':_0x293bcb(this[_0x466089(0x21b)][_0x466089(0x248)],_0x466089(0x2df)),'id':_0x3582b0}),this[_0x466089(0x232)](new _0x56335c(_0x466089(0x27e),this,{'error':_0x3c0c31}));}finally{this[_0x466089(0x21b)][_0x466089(0x2e7)][_0x466089(0x19e)](_0x19b00d)[_0x466089(0x2e0)][_0x466089(0x222)](_0x466089(0x2cf)),this[_0x466089(0x1b6)][_0x466089(0x249)](),this[_0x466089(0x1b6)][_0x466089(0x1be)](_0x466089(0x1fa)),this[_0x466089(0x1b6)][_0x466089(0x283)](!0x1);}}[_0x2ed2b1(0x1e6)](_0x47ad1d){const _0x1b9616=_0x2ed2b1;this[_0x1b9616(0x1c3)]['id']===_0x47ad1d&&this[_0x1b9616(0x2a7)]();}async[_0x2ed2b1(0x2d9)](){const _0x41342d=_0x2ed2b1,_0x2ce839=this[_0x41342d(0x2b2)][_0x41342d(0x22a)]();this[_0x41342d(0x1c3)]?.[_0x41342d(0x2b8)](_0x2ce839),this[_0x41342d(0x1c3)]?.[_0x41342d(0x1fd)](_0x293bcb(this[_0x41342d(0x21b)][_0x41342d(0x248)],_0x41342d(0x2c7)));}[_0x2ed2b1(0x301)](){const _0x1d16eb=_0x2ed2b1;this[_0x1d16eb(0x1c3)]?.[_0x1d16eb(0x212)]();}[_0x2ed2b1(0x1ce)](){const _0x3b1073=_0x2ed2b1;this[_0x3b1073(0x1b6)][_0x3b1073(0x1ce)]();}async[_0x2ed2b1(0x288)](){const _0x5105b6=_0x2ed2b1;await this[_0x5105b6(0x2a7)]();}async[_0x2ed2b1(0x1f0)]({message:_0x3447fc,quickActionData:_0x2cb4e2}){const _0x2a026d=_0x2ed2b1;await this[_0x2a026d(0x1b8)]({'userMessage':_0x3447fc,'quickActionData':_0x2cb4e2});}[_0x2ed2b1(0x274)](){const _0x29af49=_0x2ed2b1,_0x2a0b10=this[_0x29af49(0x21b)][_0x29af49(0x210)][_0x29af49(0x19e)](_0x29af49(0x245));if(!_0x2a0b10)throw new _0x56335c(_0x29af49(0x2e3),this);return _0x2a0b10;}async[_0x2ed2b1(0x2a7)](_0x5e4831){const _0x5a7d75=_0x2ed2b1;try{this[_0x5a7d75(0x1b6)][_0x5a7d75(0x1fb)](),await this[_0x5a7d75(0x291)](_0x5e4831);}catch(_0xdf02f9){this[_0x5a7d75(0x1b6)][_0x5a7d75(0x2a6)]({'errorMessage':_0x293bcb(this[_0x5a7d75(0x21b)][_0x5a7d75(0x248)],_0x5a7d75(0x2aa)),'id':_0x5e4831||_0x3c32fe()}),console[_0x5a7d75(0x303)](_0xdf02f9),this[_0x5a7d75(0x1c3)]=void 0x0,this[_0x5a7d75(0x1b6)][_0x5a7d75(0x28f)]();}}async[_0x2ed2b1(0x291)](_0x4bc952){const _0x2898c6=_0x2ed2b1,_0x5814f8=this[_0x2898c6(0x21b)][_0x2898c6(0x2e7)][_0x2898c6(0x19e)](_0x4b5329);let _0x5a809b;_0x5814f8[_0x2898c6(0x227)]&&_0x5814f8[_0x2898c6(0x1a3)](),_0x4bc952||!this[_0x2898c6(0x1c3)]?_0x5a809b=this[_0x2898c6(0x21b)][_0x2898c6(0x210)][_0x2898c6(0x19e)](_0x2898c6(0x1b4)):this[_0x2898c6(0x1b6)][_0x2898c6(0x24d)]&&(_0x5a809b=this[_0x2898c6(0x1c3)][_0x2898c6(0x286)]['id']),await this[_0x2898c6(0x2de)]();const _0x3870f6=this[_0x2898c6(0x274)](),_0x59732c=_0x4bc952||_0x3c32fe();this[_0x2898c6(0x1c3)]=new _0x38cc37({'connector':this[_0x2898c6(0x26d)],'chatModels':this[_0x2898c6(0x261)],'selectedModelId':_0x5a809b,'conversationId':_0x59732c,'group':_0x3870f6,'getEditor':()=>_0x5aabc3(this[_0x2898c6(0x21b)])}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x2cc),(_0x1f00d7,_0x2d3000)=>{const _0x4876e8=_0x2898c6;this[_0x4876e8(0x1b6)][_0x4876e8(0x229)](_0x2d3000),this[_0x4876e8(0x1b6)][_0x4876e8(0x272)](),this[_0x4876e8(0x1b6)][_0x4876e8(0x1fc)](),this[_0x4876e8(0x1b6)][_0x4876e8(0x25c)](),_0x4bc952||(this[_0x4876e8(0x1b6)][_0x4876e8(0x29e)](),this[_0x4876e8(0x1c3)]?.[_0x4876e8(0x1fd)](_0x293bcb(this[_0x4876e8(0x21b)][_0x4876e8(0x248)],_0x4876e8(0x2c7))));}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x2eb),(_0x301092,_0x456cdd)=>{const _0x4b32e0=_0x2898c6;this[_0x4b32e0(0x1b6)][_0x4b32e0(0x2e6)](_0x456cdd[_0x4b32e0(0x1a8)]);}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x1d5),(_0x35c8cb,_0x229a24)=>{const _0x4318d6=_0x2898c6;this[_0x4318d6(0x1b6)][_0x4318d6(0x29c)](_0x229a24);}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x2ac),()=>{const _0x4a3b8c=_0x2898c6;this[_0x4a3b8c(0x1b6)][_0x4a3b8c(0x28d)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x2f4),()=>{const _0x1a8783=_0x2898c6;this[_0x1a8783(0x1b6)][_0x1a8783(0x28d)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x2dd),(_0x1f11fc,_0x55358a)=>{const _0x40e4d0=_0x2898c6;this[_0x40e4d0(0x1b6)][_0x40e4d0(0x271)](_0x55358a,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x29b),(_0x2bb094,_0x555ea9)=>{const _0x5c2fc9=_0x2898c6;this[_0x5c2fc9(0x1b6)][_0x5c2fc9(0x271)](_0x555ea9,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x1ad),()=>{const _0x83ab2=_0x2898c6;this[_0x83ab2(0x1b6)][_0x83ab2(0x24c)]();}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x235),async()=>{const _0x2811ad=_0x2898c6;await this[_0x2811ad(0x1b6)][_0x2811ad(0x231)]();}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x2e2),(_0x13b110,_0x3919e6)=>{const _0x826471=_0x2898c6;this[_0x826471(0x1b6)][_0x826471(0x281)](_0x3919e6['id']);}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x304),(_0x1fed78,_0x4162b1,_0x245266)=>{const _0x17d87a=_0x2898c6;this[_0x17d87a(0x2fd)](_0x4162b1,_0x245266);}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x1a2),(_0x400827,_0x5028e4)=>{const _0x4dfdea=_0x2898c6;_0x4dfdea(0x230)===_0x5028e4[_0x4dfdea(0x1ee)]?this[_0x4dfdea(0x1b6)][_0x4dfdea(0x19d)](_0x5028e4):this[_0x4dfdea(0x1b6)][_0x4dfdea(0x277)](_0x5028e4);}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x2d6),async(_0x24eeb5,_0x162118)=>{const _0x5e4192=_0x2898c6;await this[_0x5e4192(0x1ba)]({'reply':_0x162118});}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x305),(_0x26bc73,{reply:_0x214b59,index:_0x3eeaa2,state:_0x5bff1f})=>{const _0x2708a5=_0x2898c6;this[_0x2708a5(0x1b6)][_0x2708a5(0x251)]({'id':_0x214b59['id'],'index':_0x3eeaa2,'state':_0x5bff1f});}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x2c8),(_0x2fb8a0,_0xb39178)=>{const _0x2aa41d=_0x2898c6;if(this[_0x2aa41d(0x1b6)][_0x2aa41d(0x1e2)](_0xb39178[_0x2aa41d(0x2bc)],_0xb39178[_0x2aa41d(0x21e)]),_0x2aa41d(0x1de)===_0xb39178[_0x2aa41d(0x2bc)][_0x2aa41d(0x1ee)]){const _0x1a0f18=[..._0x5aabc3(this[_0x2aa41d(0x21b)])[_0x2aa41d(0x308)][_0x2aa41d(0x1ef)][_0x2aa41d(0x1de)][_0x2aa41d(0x27b)]()];this[_0x2aa41d(0x2b2)][_0x2aa41d(0x2f5)](_0x1a0f18,_0x2aa41d(0x225)+this[_0x2aa41d(0x1c3)]?.['id']);}}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x2ab),(_0x6c36d5,_0x4f2a5d)=>{const _0x462578=_0x2898c6;this[_0x462578(0x1b6)][_0x462578(0x26f)](_0x4f2a5d[_0x462578(0x268)]),_0x462578(0x2d0)==_0x4f2a5d[_0x462578(0x268)]&&this[_0x462578(0x301)](),_0x462578(0x1de)===_0x4f2a5d[_0x462578(0x1ee)]&&this[_0x462578(0x2b2)][_0x462578(0x1dc)](_0x462578(0x225)+this[_0x462578(0x1c3)]?.['id']);}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x224),(_0x201fad,_0x16a043)=>{const _0x344ed2=_0x2898c6;this[_0x344ed2(0x1b6)][_0x344ed2(0x201)](_0x16a043[_0x344ed2(0x2bc)][_0x344ed2(0x268)],_0x16a043[_0x344ed2(0x21e)]);}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x1f2),(_0x2b8b84,_0x45ca73)=>{const _0x4f447c=_0x2898c6;this[_0x4f447c(0x1b6)][_0x4f447c(0x260)](_0x45ca73[_0x4f447c(0x2bb)]);}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x2db),(_0x332076,_0x314b7e)=>{const _0xdcbf82=_0x2898c6;this[_0xdcbf82(0x1b6)][_0xdcbf82(0x23e)](_0x314b7e[_0xdcbf82(0x27a)]);}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x206),(_0xa0f178,_0x140e24)=>{const _0x41c76c=_0x2898c6;this[_0x41c76c(0x1b6)][_0x41c76c(0x28c)](_0x140e24[_0x41c76c(0x25e)],_0x140e24[_0x41c76c(0x1cb)],_0x140e24[_0x41c76c(0x242)],_0x140e24[_0x41c76c(0x1d9)]);}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x22d),(_0x559c3e,_0xc21f0c)=>{const _0x22e8dc=_0x2898c6;this[_0x22e8dc(0x1b6)][_0x22e8dc(0x2a8)](_0xc21f0c[_0x22e8dc(0x25e)],_0xc21f0c[_0x22e8dc(0x2fe)],_0xc21f0c[_0x22e8dc(0x295)]);}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x264),(_0x5ef6f3,_0x314413)=>{const _0x32b406=_0x2898c6;this[_0x32b406(0x1b6)][_0x32b406(0x2ec)](_0x314413);}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x215),(_0x471b97,_0x52d850)=>{const _0x33f2d7=_0x2898c6;this[_0x33f2d7(0x1b6)][_0x33f2d7(0x1ed)](_0x52d850[_0x33f2d7(0x286)],_0x52d850[_0x33f2d7(0x22e)]);}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x303),(_0x8ce69,{error:_0x5c9497,interactionId:_0x21b91f,fileName:_0x46a9dc,url:_0x4aa57c,sourceId:_0x355dbb,sourceLabel:_0x51cb4b})=>{const _0x37ca3e=_0x2898c6,_0x19d5b1=_0x21b91f?_0x21b91f+':'+_0x3c32fe():_0x3c32fe();_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x24a))?this[_0x37ca3e(0x1b6)][_0x37ca3e(0x23f)]({'staticMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x309)),'id':_0x19d5b1}):_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x1db))||_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x233))?(this[_0x37ca3e(0x1b6)][_0x37ca3e(0x2a6)]({'errorMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x2aa)),'id':_0x19d5b1}),this[_0x37ca3e(0x232)](_0x5c9497)):_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x2c3))?this[_0x37ca3e(0x1b6)][_0x37ca3e(0x2a6)]({'errorMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x213),_0x46a9dc),'id':_0x19d5b1}):_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x1c8))?this[_0x37ca3e(0x1b6)][_0x37ca3e(0x2a6)]({'errorMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x244),_0x4aa57c),'id':_0x19d5b1}):_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x298))?this[_0x37ca3e(0x1b6)][_0x37ca3e(0x2a6)]({'errorMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x1a6)),'id':_0x19d5b1}):_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x2ad))?this[_0x37ca3e(0x1b6)][_0x37ca3e(0x2a6)]({'errorMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x284)),'id':_0x19d5b1}):_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x2f0))?(_0x355dbb&&this[_0x37ca3e(0x1b6)][_0x37ca3e(0x259)](_0x355dbb),this[_0x37ca3e(0x1b6)][_0x37ca3e(0x2a6)]({'errorMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x1f4),_0x51cb4b||_0x37ca3e(0x1cb)),'id':_0x19d5b1}),this[_0x37ca3e(0x232)](_0x5c9497)):_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x1b5))?(this[_0x37ca3e(0x1b6)][_0x37ca3e(0x2a6)]({'errorMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x22f)),'id':_0x19d5b1}),this[_0x37ca3e(0x232)](_0x5c9497)):_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x1df))?(this[_0x37ca3e(0x1b6)][_0x37ca3e(0x2a6)]({'errorMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x1c1)),'id':_0x19d5b1}),this[_0x37ca3e(0x232)](_0x5c9497)):_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x2b5))?(this[_0x37ca3e(0x1b6)][_0x37ca3e(0x2a6)]({'errorMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x294)),'id':_0x19d5b1}),this[_0x37ca3e(0x232)](_0x5c9497)):_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x30a))?(this[_0x37ca3e(0x1b6)][_0x37ca3e(0x2a6)]({'errorMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x1a1)),'id':_0x19d5b1}),this[_0x37ca3e(0x232)](_0x5c9497)):_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x223))?(this[_0x37ca3e(0x1b6)][_0x37ca3e(0x2a6)]({'errorMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x208)),'id':_0x19d5b1}),this[_0x37ca3e(0x232)](_0x5c9497)):_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x256))?(this[_0x37ca3e(0x1b6)][_0x37ca3e(0x2a6)]({'errorMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x24b)),'id':_0x19d5b1}),this[_0x37ca3e(0x232)](_0x5c9497)):(this[_0x37ca3e(0x1b6)][_0x37ca3e(0x2a6)]({'errorMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x2ed)),'id':_0x19d5b1}),this[_0x37ca3e(0x232)](_0x5c9497));}),await this[_0x2898c6(0x1c3)][_0x2898c6(0x1e5)](this[_0x2898c6(0x21b)][_0x2898c6(0x210)][_0x2898c6(0x19e)](_0x2898c6(0x207))),_0x4bc952||await this[_0x2898c6(0x1c3)][_0x2898c6(0x216)]();}async[_0x2ed2b1(0x1b8)]({userMessage:_0x58bf4a,quickActionData:_0x2ef835}){const _0x3de21e=_0x2ed2b1;if(!this[_0x3de21e(0x1c3)])throw new _0x56335c(_0x3de21e(0x1cc));this[_0x3de21e(0x1c3)][_0x3de21e(0x273)]()&&await this[_0x3de21e(0x1c3)][_0x3de21e(0x2c9)](this[_0x3de21e(0x2b2)][_0x3de21e(0x237)]()),this[_0x3de21e(0x1c3)]['id']&&this[_0x3de21e(0x1c3)][_0x3de21e(0x247)]&&await this[_0x3de21e(0x1c3)][_0x3de21e(0x26a)]({'userMessage':_0x58bf4a,'quickActionData':_0x2ef835}),this[_0x3de21e(0x1d4)]();}[_0x2ed2b1(0x1d4)](){const _0x286254=_0x2ed2b1,_0x46c933=_0x5aabc3(this[_0x286254(0x21b)])[_0x286254(0x308)],_0x5ee183=Array[_0x286254(0x22c)](_0x46c933[_0x286254(0x2f7)][_0x286254(0x1eb)](_0x46d8a9));_0x46c933[_0x286254(0x239)](_0x35663f=>{const _0x1a6cec=_0x286254;_0x5ee183[_0x1a6cec(0x23b)](_0x32cb49=>_0x35663f[_0x1a6cec(0x254)](_0x32cb49));});}[_0x2ed2b1(0x20f)](){const _0x4b838e=_0x2ed2b1;console[_0x4b838e(0x2e5)](_0x4b838e(0x1e8));}[_0x2ed2b1(0x2ae)](_0x5a4a1b){const _0x21cf4c=_0x2ed2b1;this[_0x21cf4c(0x1b6)][_0x21cf4c(0x1f8)](_0x5a4a1b);}[_0x2ed2b1(0x232)](_0x45927e){const _0x2b6d70=_0x2ed2b1;_0x5678bd(_0x45927e[_0x2b6d70(0x255)]);}[_0x2ed2b1(0x2d1)](_0x2d026d){const _0x1ddb6b=_0x2ed2b1;this[_0x1ddb6b(0x1c3)]?.[_0x1ddb6b(0x2c1)](_0x2d026d);}[_0x2ed2b1(0x296)](){const _0x54143=_0x2ed2b1;this[_0x54143(0x1c3)]?.[_0x54143(0x1ac)]();}[_0x2ed2b1(0x2e9)](){const _0x20dd29=_0x2ed2b1;this[_0x20dd29(0x1c3)]?.[_0x20dd29(0x289)]();}[_0x2ed2b1(0x1b0)](_0x45ae18){const _0x518b02=_0x2ed2b1,[_0x181d3d,_0xe26af2]=_0x45ae18[_0x518b02(0x290)](':'),_0x4ff122=this[_0x518b02(0x1c3)][_0x518b02(0x263)](_0x181d3d),_0x441131=_0x4ff122[_0x518b02(0x240)](_0xe26af2);return{'interaction':_0x4ff122,'reply':_0x441131};}[_0x2ed2b1(0x214)](_0xe367a8,_0x30b051=!0x1){const _0x420aa2=_0x2ed2b1,_0x19f6f0=_0x5aabc3(this[_0x420aa2(0x21b)]),_0x323647={'target':_0x19f6f0[_0x420aa2(0x243)][_0x420aa2(0x2e0)][_0x420aa2(0x220)][_0x420aa2(0x2c5)](_0x19f6f0[_0x420aa2(0x243)][_0x420aa2(0x20e)][_0x420aa2(0x2d7)](_0xe367a8)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x30b051};_0x30b051&&(_0x323647[_0x420aa2(0x276)]=!0x0),_0x168f9e(_0x323647);}[_0x2ed2b1(0x2fd)](_0x16dce6,_0x403459=!0x1){const _0x2f16ec=_0x2ed2b1;this[_0x2f16ec(0x1b6)][_0x2f16ec(0x304)](_0x16dce6||_0x293bcb(this[_0x2f16ec(0x21b)][_0x2f16ec(0x248)],_0x2f16ec(0x2a0)),_0x403459);}async[_0x2ed2b1(0x1ba)]({reply:_0x411320,renderingStrategy:_0x5b268b}){const _0x6f375b=_0x2ed2b1,{id:_0x4519ba,isDone:_0x355e05,type:_0x16176f,parsedContent:_0xeddecd}=_0x411320;if(_0x6f375b(0x2cb)===_0x16176f){const _0x1057f1=_0x411320[_0x6f375b(0x2ba)]({'showDiff':this[_0x6f375b(0x1b6)][_0x6f375b(0x19a)]});await this[_0x6f375b(0x1b6)][_0x6f375b(0x250)]({'id':_0x4519ba,'parts':_0x1057f1,'renderingStrategy':_0x5b268b,'isDone':_0x355e05});}else _0x6f375b(0x230)===_0x16176f&&await this[_0x6f375b(0x1b6)][_0x6f375b(0x226)]({'id':_0x4519ba,'parsedContent':_0xeddecd,'renderingStrategy':_0x5b268b,'isDone':_0x355e05});_0x355e05&&_0x411320[_0x6f375b(0x1ae)][_0x6f375b(0x297)]>0x0&&this[_0x6f375b(0x1b6)][_0x6f375b(0x1c4)](_0x4519ba,_0x411320[_0x6f375b(0x1ae)]);}async[_0x2ed2b1(0x2de)](){const _0x189bcc=_0x2ed2b1,_0x221bbf=this[_0x189bcc(0x1c3)]?.[_0x189bcc(0x2e4)];_0x221bbf&&(_0x221bbf[_0x189bcc(0x1d3)](),this[_0x189bcc(0x1b6)][_0x189bcc(0x20b)](_0x221bbf));}async[_0x2ed2b1(0x2f6)](){const _0xed86f3=_0x2ed2b1,_0x2b1d1a=this[_0xed86f3(0x1c3)]?.[_0xed86f3(0x2e4)];if(_0x2b1d1a){for await(const _0x1481f5 of _0x2b1d1a[_0xed86f3(0x29d)])await this[_0xed86f3(0x1ba)]({'reply':_0x1481f5,'renderingStrategy':_0xed86f3(0x293)});}}[_0x2ed2b1(0x1ab)](_0x5667c6){const _0x1ffd00=_0x2ed2b1,_0x28853e={'positiveCount':_0x5667c6[_0x1ffd00(0x1a7)][_0x1ffd00(0x2d5)](_0x4c763a=>_0x1ffd00(0x2a4)===_0x4c763a[_0x1ffd00(0x1bc)])[_0x1ffd00(0x297)],'totalCount':_0x5667c6[_0x1ffd00(0x1a7)][_0x1ffd00(0x297)],'modificationId':_0x5667c6['id']},_0x3494be=this[_0x1ffd00(0x1c3)][_0x1ffd00(0x263)](_0x5667c6[_0x1ffd00(0x2c0)])[_0x1ffd00(0x25f)];this[_0x1ffd00(0x26d)][_0x1ffd00(0x2b1)](this[_0x1ffd00(0x1c3)]['id'],_0x3494be,_0x28853e);}}
23
+ const _0x169e6d=_0x4cf5;(function(_0x66ba7,_0x2a82a6){const _0x4eb860=_0x4cf5,_0x22c9fe=_0x66ba7();while(!![]){try{const _0x23ea98=parseInt(_0x4eb860(0x20d))/0x1+parseInt(_0x4eb860(0x1b4))/0x2*(parseInt(_0x4eb860(0x23e))/0x3)+-parseInt(_0x4eb860(0x1e8))/0x4+parseInt(_0x4eb860(0x164))/0x5+-parseInt(_0x4eb860(0x221))/0x6+-parseInt(_0x4eb860(0x186))/0x7+-parseInt(_0x4eb860(0x213))/0x8*(-parseInt(_0x4eb860(0x1b6))/0x9);if(_0x23ea98===_0x2a82a6)break;else _0x22c9fe['push'](_0x22c9fe['shift']());}catch(_0x14fa53){_0x22c9fe['push'](_0x22c9fe['shift']());}}}(_0x1b93,0x56448));import{ContextPlugin as _0x3b7bad,Editor as _0x2b3f80}from'ckeditor5/src/core.js';function _0x1b93(){const _0x3e625a=['open','clearConversationContextUI','ai-chat-context-form-data-size-limits-exceeded','_aiEditing','uploadProgressChanged','_stopLastInteraction','change','ai-chat-invalid-request','remove','ready','data','setFeedItemRenderingStrategy','applySuggestion','end','contextItems','_integrateEditor','ai-chat-resource-load-failed','webSearchFinished','sendMessage','isDocumentOperation','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','removeFromContext','data-id','contextSent','72736hpPazQ','ai-chat-url-upload-failed','uid','hasChanges','_balloonShowDiff','config','184uzqSNV','handleRemovedConversation','changes','setIsUploadInProgress','Liked\x20response','message','editing','removeContextItem','showPrevious','resize','text-delta','unshift','filter','messageId','1009572tLzcWG','partIndex','view','updateFeedItemAIReplySuggestionContent','populateSourceResourceBalloon','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','insertSuggestion','addFeedItemAIReply','addUrlToContext','like','addOperation','fetchConversation','replyCreated','options','_aiConnector','activateTab','getDocumentContext','_toggleWebSearch','getReply','ai-chat-context-file-too-many-pages','alignToTop','removeFeedInteraction','accepted','resizeTabs','toViewRange','node','hideFakeVisualSelection','new','cloneNode','7932VrEtZi','slice','getChildren','setIsMaximized','isPremiumPlugin','updateResourceState','addDocumentToContext','domConverter','start','isDisabled','conversationInitialized','reasoningStarted','setConversationContext','getSelectionText','ai-chat-context-file-too-large','contextItemAdded','query','resetConversationTitle','updateCapabilities','history','finishInteraction','dislike','add','clearPendingContextUI','content','AIEditing','addSelectionToContext','addFeedItemUserMessage','activeConversation','resizedTabs','getDiff','_handleUIUserMessage','ai-no-track-changes','setLoadingMessage','pluginName','$graveyard','showNext','ai.chat.context','from','commands','_bodyCollection','startsWith','replyId','rootName','getChild','AI_CHAT_CONTEXT_FILE_TOO_LARGE','_setIsMaximized','addContextOptionsChanged','createConversation','TrackChangesEditing','version','interactionStarted','_aiChatUi','selection','AI_CHAT_GENERIC_ERROR','ai-chat-conversation-not-found','sourceId','state','ai.chat.models.defaultModelId','mapper','interactionDestroyed','delete','AI_BALLOON_HEADER_TITLE','markers','isInContext','AI_CHAT_UNTITLED_CONVERSATION','current-document','outdated','abortPromptStream','showDiff','getAttribute','baseVersion','updateFeedItemAIReplyContent','findIndex','_flushLastInteractionUI','rejected','isOpen','collaboration.channelId','type','contextItem','resourceStateChanged','AI_CHAT_ABORTED_MESSAGE','set','mouseLeaveSuggestion','getDocumentData','sourceResourcesLoaded','toString','has','static','locale','changeGroups','AIChatUI','AIChatController','updateFeedItemAIReplySources','addFeedItemStaticMessage','nextSibling','_removeAISelectionMarkers','mouseOverSuggestion','redo','addCurrentDocumentToContext','showChangeInText','_openBalloonFor','viewRangeToDom','ai-conversation-','startAutoScroll','requires','getOperations','getTransformedByOperation','enableControls','resources','split','close','getRanges','get','lastInteraction','editors','forEach','removeMarker','error','showFakeVisualSelection','ai-chat-context-unsupported-type','indexOf','isStarted','resourceId','ai-request-aborted','_applyOperationsAsSuggestions','createRange','main','contextItemLoadingEnded','interactionId','disableControls','log','DocumentCompare','ai-chat-missing-channel-id','_startConversationSafely','setSelectedModel','AIConnector','destroy','_updateRatings','removeSelectionFromChatContext','webSearchStarted','ai-chat-context-unsupported-file-type','addSelectionToChatContext','modelSelected','scrollFeedToSuggestion','isUploadInProgress','removed','addFileToContext','loadSourceResources','1985140FhMpdD','model','replies','afterInit','setChangeGroupState','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','setConversationTitle','updateConversationTitle','isCurrentDocumentInContext','ai.chat.models.displayedModels','isCurrentDocumentInConversation','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','chat','_showConversationHistory','children','addResourceToContext','marker','root','plugins','getGroupId','setModel','_aiChatModels','stop','attachToDom','ai-chat-conversation-start-failed','init','handleUserInteraction','ai-chat-controller-mouse-over','listenTo','find','ai-chat-context-invalid-data','_insertSuggestion','focusPromptInput','_previewedChangeGroup','3510325lICkQu','uiId','full','isLoading','toggleWebSearch','pending','getContentParts','maxOffset','capabilitiesUpdated','_removeFromContext','ai-chat-source-resources-load-failed','getPath','document','getMarkersGroup','load','TrackChanges','getRoot','anchorId','sources','replyChangeGroupStateUpdated','_getDocumentRangeForReplyChanges','revert','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','resetMessageInput','updateCurrentDocumentInContext','_handleStartConversation','setContextItemLoading','streaming','Disliked\x20response','interactionFinished','AI_CHAT_RESOURCE_LOAD_FAILED','upsertAIChatRating','_createFromRanges','AI_CHAT_INVALID_REQUEST','toggleReasoning','getChildAtOffset','getInteractionAndReplyById','replyContentUpdated','_updateReplyContent','loadConversation','context','howMany','reasoningFinished','AI_CHAT_UNABLE_TO_START_CONVERSATION','closeSourceResourceBalloon','addFeedItemAISuggestion','154HFMLfj','AI_CHAT_CONTEXT_INVALID_DATA','145377ZerSfk','detachFromDom','push','AITabs','applyOperation','removeSelectionFromContext','selectedModel','startInteraction','addFilesToContext','stopInteraction','undo','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','stopListening','length','isOfficialPlugin','addFeedInteractionHeader','ai-chat-conversation-init-failed','_scrollToSuggestionRange','source','sendUserMessage','updateFeedItemAIReplySuggestionPartState','ai.availableReplyActions','ai-chat-controller-no-active-conversation','batch','parse','interactionCreated','setAddContextOptions','_batchToChanges','getFirstRange','createPositionAt','getInteraction','selectModel','dialogClosed','indexes','isModelAvailable','ai-chat-file-upload-failed','createPositionFromPath','contextItemRemoved','addFeedItemError','index','Undo','range','_toggleReasoning','updateContent','_applySuggestion','toggleSuggestionDisplayMode','documentContextContent','path','startConversation','resource','87128EVZHkR','sourcePosition','Showing\x20conversation\x20history...','getConversation','_logError','toggleLoadingSkeleton','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','map','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','modification-delta','rejectSuggestion','addContextItem'];_0x1b93=function(){return _0x3e625a;};return _0x1b93();}import{BodyCollection as _0x4c78ae}from'ckeditor5/src/ui.js';import{CKEditorError as _0x28a72d,logError as _0x4cc11e,scrollViewportToShowTarget as _0x586101,uid as _0x58e462}from'ckeditor5/src/utils.js';import{AIConnector as _0x2e5bc4}from'../aicore/aiconnector.js';import{AITabs as _0x5cf0be}from'../aitabs/aitabs.js';import{AIChatConversation as _0x4ffdd5}from'./model/aichatconversation.js';import{getTranslation as _0x9da48b}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x1d99ea}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x496b0d}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIModels as _0x44bc48}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0xb6cbe3}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x15b59e,DATA_ID_MODEL_ATTRIBUTE as _0x1b060b}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x4cf5(_0x5d1c16,_0x23c578){const _0x1b93df=_0x1b93();return _0x4cf5=function(_0x4cf524,_0x87d784){_0x4cf524=_0x4cf524-0x13e;let _0x4b4572=_0x1b93df[_0x4cf524];return _0x4b4572;},_0x4cf5(_0x5d1c16,_0x23c578);}import{fixMarkerOperationOldRange as _0x43fff4,getOperationsFromReply as _0x2aaf4d}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x53f173,getMinimalSelection as _0x8c2588}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x54a3a8,_DetachOperation as _0x3fb04c}from'ckeditor5/src/engine.js';import{findOne as _0x40bece,getAttribute as _0x3cdfc8,serialize as _0x278fde,Document as _0x50d221,findByAttribute as _0x5f16e7}from'../aicore/utils/htmlparser.js';import{IconAI as _0x45d4f7}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x360299}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x22fd61}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x3b7bad{[_0x169e6d(0x1f8)];[_0x169e6d(0x22f)];[_0x169e6d(0x272)];[_0x169e6d(0x179)];[_0x169e6d(0x1d1)]=new Map();[_0x169e6d(0x185)]=null;[_0x169e6d(0x211)]=!0x1;[_0x169e6d(0x266)];static get[_0x169e6d(0x2a7)](){return[_0x2e5bc4,_0x22fd61,_0x15b59e];}static get[_0x169e6d(0x260)](){const _0x3e29e2=_0x169e6d;return _0x3e29e2(0x29a);}static get[_0x169e6d(0x1c4)](){return!0x0;}static get[_0x169e6d(0x242)](){return!0x0;}[_0x169e6d(0x17d)](){const _0x445376=_0x169e6d;this[_0x445376(0x266)]=new _0x4c78ae(this[_0x445376(0x1ae)][_0x445376(0x297)]),this[_0x445376(0x266)][_0x445376(0x17b)](),this[_0x445376(0x22f)]=this[_0x445376(0x1ae)][_0x445376(0x176)][_0x445376(0x140)](_0x445376(0x157)),this[_0x445376(0x272)]=this[_0x445376(0x1ae)][_0x445376(0x176)][_0x445376(0x140)](_0x445376(0x299)),this[_0x445376(0x1f8)]=this[_0x445376(0x1ae)][_0x445376(0x176)][_0x445376(0x140)](_0x445376(0x257)),this[_0x445376(0x179)]=new _0x44bc48({'connector':this[_0x445376(0x22f)],'availableModels':this[_0x445376(0x1ae)][_0x445376(0x212)][_0x445376(0x140)](_0x445376(0x16d)),'defaultModelId':this[_0x445376(0x1ae)][_0x445376(0x212)][_0x445376(0x140)](_0x445376(0x278)),'locale':this[_0x445376(0x1ae)][_0x445376(0x297)]});const _0x217b1f=this[_0x445376(0x1ae)][_0x445376(0x176)][_0x445376(0x140)](_0x445376(0x1b9));this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x1e6),()=>{const _0x48f76f=_0x445376;this[_0x48f76f(0x155)]();}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x1c9),(_0x5e6ac5,_0x2f3dc7)=>{const _0x5e43b2=_0x445376;this[_0x5e43b2(0x25d)]({'userMessage':_0x2f3dc7});}),this[_0x445376(0x180)](_0x217b1f,_0x445376(0x25b),(_0x15506b,_0x44ad1a)=>{const _0x5e85f9=_0x445376;this[_0x5e85f9(0x26c)](_0x44ad1a);}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x238),()=>{const _0x5c66ba=_0x445376;_0x217b1f[_0x5c66ba(0x21c)]();}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x282),async()=>{const _0x1d1c97=_0x445376;await this[_0x1d1c97(0x1fa)](),await this[_0x1d1c97(0x288)](),this[_0x1d1c97(0x15a)]();}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x244),()=>{const _0x235df5=_0x445376;this[_0x235df5(0x25a)]?.[_0x235df5(0x2a1)](_0x9da48b(this[_0x235df5(0x1ae)][_0x235df5(0x297)],_0x235df5(0x226)));}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x162),(_0xb8d401,_0x2de883)=>{const _0x448664=_0x445376;this[_0x448664(0x25a)]?.[_0x448664(0x1be)](Array[_0x448664(0x264)](_0x2de883));}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x229),(_0x13c9e9,_0x327ed4)=>{const _0x3287c5=_0x445376;this[_0x3287c5(0x25a)]?.[_0x3287c5(0x229)](_0x327ed4);}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x173),(_0x5ad3b9,_0x17ac0d)=>{const _0x50281a=_0x445376;this[_0x50281a(0x25a)]?.[_0x50281a(0x173)](_0x17ac0d[_0x50281a(0x1c8)],_0x17ac0d[_0x50281a(0x1e7)]);}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x21a),(_0x35b95e,_0x3e78d3)=>{const _0x3c4f6a=_0x445376;this[_0x3c4f6a(0x18f)](_0x3e78d3);}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x163),(_0x1b09af,_0x20a75c)=>{const _0x55ce78=_0x445376;this[_0x55ce78(0x25a)]?.[_0x55ce78(0x163)](_0x20a75c[_0x55ce78(0x276)],_0x20a75c[_0x55ce78(0x24e)],_0x20a75c[_0x55ce78(0x20f)]);}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x18a),()=>{const _0x3680b6=_0x445376;this[_0x3680b6(0x232)]();}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x1a8),()=>{const _0x299de6=_0x445376;this[_0x299de6(0x1e0)]();}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x1d5),(_0x2e0539,_0x526f67)=>{const _0x1d3f67=_0x445376;this[_0x1d3f67(0x25a)]?.[_0x1d3f67(0x178)](_0x526f67);}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x22a),(_0x581442,{replyId:_0x24ffdf})=>{const _0x5395a1=_0x445376;console[_0x5395a1(0x152)](_0x5395a1(0x217),_0x24ffdf);}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x253),(_0xa12271,{replyId:_0x3d14ae})=>{const _0x57a665=_0x445376;console[_0x57a665(0x152)](_0x57a665(0x1a2),_0x3d14ae);}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x227),(_0x4752a8,_0x4a0d0b)=>{const _0xb23b4f=_0x445376;this[_0xb23b4f(0x1ae)][_0xb23b4f(0x176)][_0xb23b4f(0x140)](_0x22fd61)[_0xb23b4f(0x13e)](),this[_0xb23b4f(0x183)](_0x4a0d0b);}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x2a2),(_0x4a2246,{replyId:_0x22138b,partIndex:_0x23b2dc})=>{const _0x272008=_0x445376;this[_0x272008(0x211)]=this[_0x272008(0x272)][_0x272008(0x283)],this[_0x272008(0x2a3)](_0x22138b,_0x23b2dc);}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x29f),(_0x175258,{replyId:_0x164ad0,partIndex:_0x3915ff})=>{const _0x27cc7b=_0x445376,_0x369c54=this[_0x27cc7b(0x19a)](_0x164ad0,_0x3915ff);_0x369c54&&_0x27cc7b(0x261)!=_0x369c54[_0x27cc7b(0x1df)][_0x27cc7b(0x175)][_0x27cc7b(0x269)]&&this[_0x27cc7b(0x1f8)][_0x27cc7b(0x146)]([_0x369c54[_0x27cc7b(0x1df)]],_0x27cc7b(0x17f));}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x291),()=>{const _0x346883=_0x445376;this[_0x346883(0x1f8)][_0x346883(0x23b)](_0x346883(0x17f));}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x201),(_0x1cc383,_0x429f5e)=>{const _0x53ff73=_0x445376;this[_0x53ff73(0x1ae)][_0x53ff73(0x176)][_0x53ff73(0x140)](_0x22fd61)[_0x53ff73(0x13e)](),this[_0x53ff73(0x1e2)](_0x429f5e);}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x1e3),async(_0x29c782,{replyId:_0x45c022,showDiff:_0x43ef68})=>{const _0x311def=_0x445376,{reply:_0xc23eb3}=this[_0x311def(0x1aa)](_0x45c022),_0x4660d0=_0xc23eb3[_0x311def(0x18c)]({'showDiff':_0x43ef68});await this[_0x311def(0x272)][_0x311def(0x224)]({'id':_0xc23eb3['id'],'parts':_0x4660d0,'renderingStrategy':_0x311def(0x296)});}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x1f3),(_0x53040c,{replyId:_0x2c14c3,partIndex:_0x3d4d15})=>{const _0x169923=_0x445376;this[_0x169923(0x185)]?.[_0x169923(0x268)]==_0x2c14c3&&this[_0x169923(0x185)]?.[_0x169923(0x222)]==_0x3d4d15&&this[_0x169923(0x1ae)][_0x169923(0x176)][_0x169923(0x140)](_0x22fd61)[_0x169923(0x13e)]();const {reply:_0x4e07a7}=this[_0x169923(0x1aa)](_0x2c14c3);_0x4e07a7[_0x169923(0x168)](_0x3d4d15,_0x169923(0x289)),this[_0x169923(0x1f8)][_0x169923(0x23b)](_0x169923(0x17f));});}async[_0x169e6d(0x167)](){const _0x4000e0=_0x169e6d;this[_0x4000e0(0x1ae)]instanceof _0x2b3f80?this[_0x4000e0(0x204)](this[_0x4000e0(0x1ae)]):this[_0x4000e0(0x180)](this[_0x4000e0(0x1ae)][_0x4000e0(0x142)],_0x4000e0(0x254),(_0x492f4e,_0x29e7a8)=>{const _0x21482e=_0x4000e0;_0x29e7a8['on'](_0x21482e(0x1fe),()=>{const _0x3b7992=_0x21482e;this[_0x3b7992(0x204)](_0x29e7a8);});}),await this[_0x4000e0(0x155)]();}[_0x169e6d(0x158)](){const _0x1a257c=_0x169e6d;this[_0x1a257c(0x266)][_0x1a257c(0x1b7)](),super[_0x1a257c(0x158)]();}[_0x169e6d(0x183)](_0x2c5685){const _0x38466b=_0x169e6d,_0xa681dc=_0xb6cbe3(this[_0x38466b(0x1ae)]);if(!_0xa681dc[_0x38466b(0x176)][_0x38466b(0x295)](_0x38466b(0x195)))throw new _0x28a72d(_0x38466b(0x25e),null);const _0x30c40d=this[_0x38466b(0x1ae)][_0x38466b(0x176)][_0x38466b(0x140)](_0x38466b(0x153)),{reply:_0x91cf9d,interaction:_0x5631bd}=this[_0x38466b(0x1aa)](_0x2c5685[_0x38466b(0x268)]),_0x105ec2=this[_0x38466b(0x19a)](_0x2c5685[_0x38466b(0x268)],_0x2c5685[_0x38466b(0x222)]),_0xfe570c=void 0x0!==_0x2c5685[_0x38466b(0x222)]?[_0x91cf9d[_0x38466b(0x298)][_0x2c5685[_0x38466b(0x222)]]]:_0x91cf9d[_0x38466b(0x298)][_0x38466b(0x21f)](_0x29d65d=>_0x38466b(0x18b)==_0x29d65d[_0x38466b(0x277)]),_0x2c5373=_0xfe570c[_0x38466b(0x1ef)](_0x2a95b1=>_0x91cf9d[_0x38466b(0x298)][_0x38466b(0x148)](_0x2a95b1));if(!_0x105ec2||_0x38466b(0x261)==_0x105ec2[_0x38466b(0x1df)][_0x38466b(0x175)][_0x38466b(0x269)])return void _0x2c5373[_0x38466b(0x143)](_0x4a7827=>_0x91cf9d[_0x38466b(0x168)](_0x4a7827,_0x38466b(0x281)));_0x2c5373[_0x38466b(0x143)](_0x226481=>_0x91cf9d[_0x38466b(0x168)](_0x226481,_0x38466b(0x237)));const _0x38457b=_0x2aaf4d({'editor':_0xa681dc,'reply':_0x91cf9d,'interaction':_0x5631bd,'groups':_0xfe570c,'transform':!0x0,'documentCompare':_0x30c40d,'documentCompareOptions':{'anchor':_0x38466b(0x14e),'markDeletions':!0x0}});let _0x1ab873;_0x105ec2&&this[_0x38466b(0x1c7)](_0x105ec2[_0x38466b(0x1df)]),_0xa681dc[_0x38466b(0x165)][_0x38466b(0x1fb)](_0x1c79b6=>{const _0x2fc6a7=_0x38466b;_0x1ab873=_0x1c79b6[_0x2fc6a7(0x1cd)],_0xa681dc[_0x2fc6a7(0x176)][_0x2fc6a7(0x140)](_0x2fc6a7(0x26f))[_0x2fc6a7(0x14c)](_0x38457b),this[_0x2fc6a7(0x1f8)][_0x2fc6a7(0x23b)](_0x2fc6a7(0x17f));}),this[_0x38466b(0x1d1)][_0x38466b(0x290)](_0x1ab873,{'interactionId':_0x5631bd['id'],'replyId':_0x91cf9d['id'],'indexes':_0x2c5373[_0x38466b(0x23f)]()}),this[_0x38466b(0x159)](_0x91cf9d);}[_0x169e6d(0x1e2)](_0x28b366){const _0x2b3dfe=_0x169e6d,_0x5d59a6=_0xb6cbe3(this[_0x2b3dfe(0x1ae)]),_0x2e241b=this[_0x2b3dfe(0x1ae)][_0x2b3dfe(0x176)][_0x2b3dfe(0x140)](_0x15b59e),{reply:_0x17d1b7,interaction:_0x5f1d3a}=this[_0x2b3dfe(0x1aa)](_0x28b366[_0x2b3dfe(0x268)]),_0x2b7fe6=this[_0x2b3dfe(0x19a)](_0x28b366[_0x2b3dfe(0x268)],_0x28b366[_0x2b3dfe(0x222)]),_0x4041b4=void 0x0!==_0x28b366[_0x2b3dfe(0x222)]?[_0x17d1b7[_0x2b3dfe(0x298)][_0x28b366[_0x2b3dfe(0x222)]]]:_0x17d1b7[_0x2b3dfe(0x298)][_0x2b3dfe(0x21f)](_0x21271b=>_0x2b3dfe(0x18b)==_0x21271b[_0x2b3dfe(0x277)]),_0x130aa1=_0x4041b4[_0x2b3dfe(0x1ef)](_0x2005b1=>_0x17d1b7[_0x2b3dfe(0x298)][_0x2b3dfe(0x148)](_0x2005b1));if(!_0x2b7fe6||_0x2b3dfe(0x261)==_0x2b7fe6[_0x2b3dfe(0x1df)][_0x2b3dfe(0x175)][_0x2b3dfe(0x269)])return void _0x130aa1[_0x2b3dfe(0x143)](_0x48325e=>_0x17d1b7[_0x2b3dfe(0x168)](_0x48325e,_0x2b3dfe(0x281)));_0x130aa1[_0x2b3dfe(0x143)](_0x45a425=>_0x17d1b7[_0x2b3dfe(0x168)](_0x45a425,_0x2b3dfe(0x237)));const _0x46c2dd=_0x2aaf4d({'editor':_0x5d59a6,'reply':_0x17d1b7,'interaction':_0x5f1d3a,'groups':_0x4041b4,'transform':!0x0,'documentCompare':_0x2e241b,'documentCompareOptions':{'anchor':_0x2b3dfe(0x14e),'markDeletions':!0x1}});let _0xdf7548;_0x2b7fe6&&this[_0x2b3dfe(0x1c7)](_0x2b7fe6[_0x2b3dfe(0x1df)]),_0x5d59a6[_0x2b3dfe(0x165)][_0x2b3dfe(0x1fb)](_0xf4cf8d=>{const _0x22a0bd=_0x2b3dfe;_0xdf7548=_0xf4cf8d[_0x22a0bd(0x1cd)];for(const _0x46c2e4 of _0x46c2dd)_0x46c2e4[_0x22a0bd(0x285)]=_0x5d59a6[_0x22a0bd(0x165)][_0x22a0bd(0x192)][_0x22a0bd(0x270)],_0x43fff4(_0x5d59a6,_0x46c2e4),_0xf4cf8d[_0x22a0bd(0x1cd)][_0x22a0bd(0x22b)](_0x46c2e4),_0x5d59a6[_0x22a0bd(0x165)][_0x22a0bd(0x1ba)](_0x46c2e4);}),this[_0x2b3dfe(0x1d1)][_0x2b3dfe(0x290)](_0xdf7548,{'interactionId':_0x5f1d3a['id'],'replyId':_0x17d1b7['id'],'indexes':_0x130aa1[_0x2b3dfe(0x23f)]()}),this[_0x2b3dfe(0x159)](_0x17d1b7);}[_0x169e6d(0x2a3)](_0x219493,_0x4cc221){const _0x51ff7f=_0x169e6d,_0x2fd8f5=_0xb6cbe3(this[_0x51ff7f(0x1ae)]),_0x1072cb=this[_0x51ff7f(0x19a)](_0x219493,_0x4cc221),_0x2688b2=this[_0x51ff7f(0x1ae)][_0x51ff7f(0x176)][_0x51ff7f(0x140)](_0x22fd61);if(!_0x1072cb)return void _0x2688b2[_0x51ff7f(0x13e)]();const {range:_0x5da1ec,currentIndex:_0x581e78}=_0x1072cb;if(_0x51ff7f(0x261)==_0x5da1ec[_0x51ff7f(0x175)][_0x51ff7f(0x269)]){const {reply:_0x7b02a3}=this[_0x51ff7f(0x1aa)](_0x219493);return _0x7b02a3[_0x51ff7f(0x168)](_0x581e78,_0x51ff7f(0x281)),void _0x2688b2[_0x51ff7f(0x13e)]();}if(this[_0x51ff7f(0x185)]?.[_0x51ff7f(0x268)]==_0x219493&&this[_0x51ff7f(0x185)]?.[_0x51ff7f(0x222)]==_0x581e78)return;this[_0x51ff7f(0x1c2)](_0x2688b2),this[_0x51ff7f(0x185)]={'replyId':_0x219493,'partIndex':_0x581e78};let _0x49aeb4=_0x2fd8f5[_0x51ff7f(0x212)][_0x51ff7f(0x140)](_0x51ff7f(0x1cb))||[..._0x496b0d];_0x2fd8f5[_0x51ff7f(0x176)][_0x51ff7f(0x295)](_0x51ff7f(0x195))||(_0x49aeb4=_0x49aeb4[_0x51ff7f(0x21f)](_0x1cc27f=>_0x51ff7f(0x227)!=_0x1cc27f));const _0x420141=new _0x360299(_0x2fd8f5[_0x51ff7f(0x297)],{'showDiff':this[_0x51ff7f(0x211)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x51ff7f(0x188)},'hideHeader':!0x0,'availableActions':_0x49aeb4},this[_0x51ff7f(0x266)]);this[_0x51ff7f(0x1c2)](_0x420141);const {reply:_0x5128a1}=this[_0x51ff7f(0x1aa)](_0x219493),_0x536d5a=_0x5128a1[_0x51ff7f(0x18c)]({'showDiff':this[_0x51ff7f(0x211)]})[_0x51ff7f(0x21f)](_0x5ca4c6=>_0x5ca4c6[_0x51ff7f(0x210)]),_0x53d6a5=_0x536d5a[_0x51ff7f(0x287)](_0xd443b=>_0xd443b[_0x51ff7f(0x1dd)]==_0x581e78);if(-0x1==_0x53d6a5)return;const _0x51fc70=_0x536d5a[_0x53d6a5],_0x14d971=_0x536d5a['at']((_0x53d6a5-0x1)%_0x536d5a[_0x51ff7f(0x1c3)])?.[_0x51ff7f(0x1dd)],_0x809e99=_0x536d5a['at']((_0x53d6a5+0x1)%_0x536d5a[_0x51ff7f(0x1c3)])?.[_0x51ff7f(0x1dd)];_0x420141[_0x51ff7f(0x1e1)]({'parts':[_0x51fc70],'renderingStrategy':_0x51ff7f(0x296)});const _0xe59507=_0x581e78!==_0x14d971;this[_0x51ff7f(0x1c7)](_0x5da1ec,!0x0),_0x2688b2[_0x51ff7f(0x1f5)]({'index':_0x581e78,'title':_0x9da48b(this[_0x51ff7f(0x1ae)][_0x51ff7f(0x297)],_0x51ff7f(0x27c),(_0x53d6a5+0x1)[_0x51ff7f(0x294)]()),'icon':_0x45d4f7,'mainView':_0x420141,'showRotator':_0xe59507,'showApplyButton':!0x0,'showSuggestButton':_0x2fd8f5[_0x51ff7f(0x176)][_0x51ff7f(0x295)](_0x51ff7f(0x195)),'ranges':[_0x5da1ec]}),this[_0x51ff7f(0x272)][_0x51ff7f(0x15f)](_0x219493,_0x581e78),this[_0x51ff7f(0x180)](_0x420141,_0x51ff7f(0x1e3),(_0x28e0e6,{showDiff:_0x4132f0})=>{const _0x57d9d9=_0x51ff7f;this[_0x57d9d9(0x211)]=_0x4132f0;const {reply:_0xa48c17}=this[_0x57d9d9(0x1aa)](_0x219493),_0xf15f3b=_0xa48c17[_0x57d9d9(0x18c)]({'showDiff':_0x4132f0,'groupIndex':_0x581e78});_0x420141[_0x57d9d9(0x1e1)]({'parts':_0xf15f3b,'renderingStrategy':_0x57d9d9(0x296)});}),this[_0x51ff7f(0x180)](_0x2688b2,_0x51ff7f(0x201),()=>{const _0x40d5b5=_0x51ff7f;this[_0x40d5b5(0x1e2)]({'replyId':_0x219493,'partIndex':_0x581e78}),_0xe59507?this[_0x40d5b5(0x2a3)](_0x219493,_0x809e99):_0x2688b2[_0x40d5b5(0x13e)]();}),this[_0x51ff7f(0x180)](_0x2688b2,_0x51ff7f(0x227),()=>{const _0x35c3e0=_0x51ff7f;this[_0x35c3e0(0x183)]({'replyId':_0x219493,'partIndex':_0x581e78}),_0xe59507?this[_0x35c3e0(0x2a3)](_0x219493,_0x809e99):_0x2688b2[_0x35c3e0(0x13e)]();}),_0xe59507&&(this[_0x51ff7f(0x180)](_0x2688b2,_0x51ff7f(0x262),()=>{const _0x4b5165=_0x51ff7f;this[_0x4b5165(0x2a3)](_0x219493,_0x809e99);}),this[_0x51ff7f(0x180)](_0x2688b2,_0x51ff7f(0x21b),()=>{const _0x7ccfed=_0x51ff7f;this[_0x7ccfed(0x2a3)](_0x219493,_0x14d971);})),this[_0x51ff7f(0x180)](_0x2688b2,_0x51ff7f(0x1d6),()=>{const _0xb83aa2=_0x51ff7f;this[_0xb83aa2(0x1c2)](_0x2688b2),this[_0xb83aa2(0x1c2)](_0x420141),this[_0xb83aa2(0x185)]=null;});}[_0x169e6d(0x19a)](_0x43f821,_0x59e3f2){const _0x47a789=_0x169e6d,_0x49bcc3=_0xb6cbe3(this[_0x47a789(0x1ae)]),{reply:_0x5cee9d,interaction:_0x57c043}=this[_0x47a789(0x1aa)](_0x43f821),_0x4404e7=_0x5cee9d[_0x47a789(0x298)][_0x47a789(0x21f)](_0x20112f=>_0x47a789(0x18b)==_0x20112f[_0x47a789(0x277)]),_0x2fe144=_0x4404e7[_0x47a789(0x1ef)](_0x20ab33=>_0x5cee9d[_0x47a789(0x298)][_0x47a789(0x148)](_0x20ab33));void 0x0===_0x59e3f2&&(_0x59e3f2=_0x2fe144[0x0]);const _0x5d5844=_0x2fe144[_0x47a789(0x148)](_0x59e3f2);if(-0x1==_0x5d5844)return null;const _0x1770dc=_0x4404e7[_0x5d5844],_0x23d3a2=new _0x50d221([]),_0x437a68=new _0x50d221([]);for(const _0x5c8a47 of _0x1770dc[_0x47a789(0x215)])if(_0x47a789(0x161)!=_0x5c8a47[_0x47a789(0x28c)]&&_0x437a68[_0x47a789(0x172)][_0x47a789(0x1b8)](_0x5c8a47[_0x47a789(0x23a)][_0x47a789(0x23d)](!0x0)),_0x47a789(0x23c)!=_0x5c8a47[_0x47a789(0x28c)]){const _0x285380=_0x40bece(_0x4865c7=>_0x3cdfc8(_0x4865c7,_0x47a789(0x20b))==_0x5c8a47['id'],_0x5cee9d[_0x47a789(0x1e4)],!0x0);_0x23d3a2[_0x47a789(0x172)][_0x47a789(0x1b8)](_0x285380[_0x47a789(0x23d)](!0x0));}if(0x0==_0x23d3a2[_0x47a789(0x172)][_0x47a789(0x1c3)]){if(_0x1770dc[_0x47a789(0x215)][0x0][_0x47a789(0x197)]){const _0x296168=_0x5f16e7(_0x47a789(0x20b),_0x1770dc[_0x47a789(0x215)][0x0][_0x47a789(0x197)],_0x5cee9d[_0x47a789(0x1e4)]);_0x23d3a2[_0x47a789(0x172)][_0x47a789(0x21e)](_0x296168[_0x47a789(0x23d)](!0x0)),_0x437a68[_0x47a789(0x172)][_0x47a789(0x21e)](_0x296168[_0x47a789(0x23d)](!0x0)),_0x296168[_0x47a789(0x29d)]&&(_0x23d3a2[_0x47a789(0x172)][_0x47a789(0x1b8)](_0x296168[_0x47a789(0x29d)][_0x47a789(0x23d)](!0x0)),_0x437a68[_0x47a789(0x172)][_0x47a789(0x1b8)](_0x296168[_0x47a789(0x29d)][_0x47a789(0x23d)](!0x0)));}else{const _0x3e85ad=_0x5cee9d[_0x47a789(0x1e4)][_0x47a789(0x172)][0x0];if(!_0x3e85ad)return null;_0x23d3a2[_0x47a789(0x172)][_0x47a789(0x1b8)](_0x3e85ad[_0x47a789(0x23d)](!0x0)),_0x437a68[_0x47a789(0x172)][_0x47a789(0x1b8)](_0x3e85ad[_0x47a789(0x23d)](!0x0));}}const _0x131b22=_0x57c043[_0x47a789(0x231)](),_0x54dec7=_0x49bcc3[_0x47a789(0x1ff)][_0x47a789(0x1ce)](_0x131b22[_0x47a789(0x256)]),_0x229722=_0x278fde(_0x23d3a2),_0x276437=_0x49bcc3[_0x47a789(0x1ff)][_0x47a789(0x1ce)](_0x229722),_0x398792=_0x49bcc3[_0x47a789(0x1ff)][_0x47a789(0x1ce)](_0x229722),_0x779a71=_0x49bcc3[_0x47a789(0x165)][_0x47a789(0x1d3)](_0x276437,0x0),_0x5e180f=_0x278fde(_0x437a68),_0x38349b={'anchor':_0x779a71,'markDeletions':!0x1},_0x12c22c=_0x49bcc3[_0x47a789(0x176)][_0x47a789(0x140)](_0x15b59e)[_0x47a789(0x25c)](_0x229722,_0x5e180f,_0x38349b)[_0x47a789(0x2a8)]();if(!_0x12c22c[_0x47a789(0x1c3)])return null;_0x49bcc3[_0x47a789(0x165)][_0x47a789(0x1fb)](_0x1a32cc=>{const _0x17cb63=_0x47a789;for(const _0x400e58 of _0x12c22c)if(_0x17cb63(0x1fd)==_0x400e58[_0x17cb63(0x28c)]){const _0xa0a875=_0x400e58[_0x17cb63(0x1e9)],_0x167d86=_0x400e58[_0x17cb63(0x1af)],_0x2e94c6=new _0x3fb04c(_0xa0a875,_0x167d86);_0x1a32cc[_0x17cb63(0x1cd)][_0x17cb63(0x22b)](_0x2e94c6),_0x49bcc3[_0x17cb63(0x165)][_0x17cb63(0x1ba)](_0x2e94c6);}else _0x17cb63(0x174)!==_0x400e58[_0x17cb63(0x28c)]&&(_0x400e58[_0x17cb63(0x285)]=null,_0x400e58[_0x17cb63(0x208)]=!0x1,_0x1a32cc[_0x17cb63(0x1cd)][_0x17cb63(0x22b)](_0x400e58),_0x49bcc3[_0x17cb63(0x165)][_0x17cb63(0x1ba)](_0x400e58));});const _0x196d9d=_0x8c2588(_0x49bcc3,_0x12c22c,_0x276437);_0x53f173(_0x49bcc3[_0x47a789(0x165)],_0x196d9d);const _0x27b16b=_0x196d9d[_0x47a789(0x1d2)]()[_0x47a789(0x246)][_0x47a789(0x1e5)][_0x47a789(0x23f)](),_0x59bc2f=_0x196d9d[_0x47a789(0x1d2)]()[_0x47a789(0x202)][_0x47a789(0x1e5)][_0x47a789(0x23f)](),_0x48f4ed=[];let _0x3817a0=_0x276437,_0x2aaffc=_0x398792;for(let _0x29bccd=0x0;_0x29bccd<_0x59bc2f[_0x47a789(0x1c3)];_0x29bccd++){const _0x36e386=_0x3817a0[_0x47a789(0x18d)]-_0x59bc2f[_0x29bccd];_0x48f4ed[_0x29bccd]=_0x2aaffc[_0x47a789(0x18d)]-_0x36e386,_0x3817a0=_0x3817a0[_0x47a789(0x1a9)](_0x59bc2f[_0x29bccd]),_0x2aaffc=_0x2aaffc[_0x47a789(0x1a9)](_0x48f4ed[_0x29bccd]);}const _0x44c9ef=_0x49bcc3[_0x47a789(0x165)][_0x47a789(0x14d)](_0x49bcc3[_0x47a789(0x165)][_0x47a789(0x1da)](_0x398792,_0x27b16b),_0x49bcc3[_0x47a789(0x165)][_0x47a789(0x1da)](_0x398792,_0x48f4ed)),_0x19f96b=_0x398792[_0x47a789(0x26a)](0x0)[_0x47a789(0x284)](_0x1b060b),_0x3faca0=Array[_0x47a789(0x264)](_0x54dec7[_0x47a789(0x240)]())[_0x47a789(0x181)](_0x48cf90=>_0x48cf90[_0x47a789(0x284)](_0x1b060b)==_0x19f96b)[_0x47a789(0x191)](),_0x5e9de4=_0x44c9ef[_0x47a789(0x246)][_0x47a789(0x1e5)][_0x47a789(0x23f)](),_0x1134a0=_0x44c9ef[_0x47a789(0x202)][_0x47a789(0x1e5)][_0x47a789(0x23f)]();_0x5e9de4[0x0]=_0x3faca0[0x0]+_0x5e9de4[0x0],_0x1134a0[0x0]=_0x3faca0[0x0]+_0x1134a0[0x0];let _0x58b4da=_0x49bcc3[_0x47a789(0x165)][_0x47a789(0x14d)](_0x49bcc3[_0x47a789(0x165)][_0x47a789(0x1da)](_0x49bcc3[_0x47a789(0x165)][_0x47a789(0x192)][_0x47a789(0x196)](),_0x5e9de4),_0x49bcc3[_0x47a789(0x165)][_0x47a789(0x1da)](_0x49bcc3[_0x47a789(0x165)][_0x47a789(0x192)][_0x47a789(0x196)](),_0x1134a0));const _0xc547e7=_0x49bcc3[_0x47a789(0x165)][_0x47a789(0x192)][_0x47a789(0x251)][_0x47a789(0x2a8)](_0x131b22[_0x47a789(0x270)]);for(const _0x24a219 of _0xc547e7)_0x58b4da=_0x54a3a8[_0x47a789(0x1a6)](_0x58b4da[_0x47a789(0x2a9)](_0x24a219));return{'range':_0x58b4da,'currentIndex':_0x59e3f2};}[_0x169e6d(0x204)](_0x192d2b){const _0x479a45=_0x169e6d;if(!_0x192d2b[_0x479a45(0x176)][_0x479a45(0x295)](_0x479a45(0x1de)))return;const _0x4b24bf=_0x192d2b[_0x479a45(0x265)][_0x479a45(0x140)](_0x479a45(0x1c0)),_0x375053=_0x192d2b[_0x479a45(0x265)][_0x479a45(0x140)](_0x479a45(0x2a0));this[_0x479a45(0x180)](_0x4b24bf,_0x479a45(0x19b),(_0x125d79,_0x9dca27,_0x5ed0bc)=>{const _0x3edd42=_0x479a45,_0x2a9ff7=this[_0x3edd42(0x1d1)][_0x3edd42(0x140)](_0x9dca27);if(!_0x2a9ff7)return;const _0x54071a=this[_0x3edd42(0x25a)][_0x3edd42(0x1d4)](_0x2a9ff7[_0x3edd42(0x150)])[_0x3edd42(0x233)](_0x2a9ff7[_0x3edd42(0x268)]);_0x2a9ff7[_0x3edd42(0x1d7)][_0x3edd42(0x143)](_0x58eb71=>_0x54071a[_0x3edd42(0x168)](_0x58eb71,_0x3edd42(0x18b))),this[_0x3edd42(0x1d1)][_0x3edd42(0x27b)](_0x9dca27),this[_0x3edd42(0x1d1)][_0x3edd42(0x290)](_0x5ed0bc,_0x2a9ff7);}),this[_0x479a45(0x180)](_0x375053,_0x479a45(0x19b),(_0x40f092,_0x23373c,_0x2c151a)=>{const _0x20cae3=_0x479a45,_0x1cf9f9=this[_0x20cae3(0x1d1)][_0x20cae3(0x140)](_0x23373c);if(!_0x1cf9f9)return;const _0x4f9906=this[_0x20cae3(0x25a)][_0x20cae3(0x1d4)](_0x1cf9f9[_0x20cae3(0x150)])[_0x20cae3(0x233)](_0x1cf9f9[_0x20cae3(0x268)]);_0x1cf9f9[_0x20cae3(0x1d7)][_0x20cae3(0x143)](_0x24439b=>_0x4f9906[_0x20cae3(0x168)](_0x24439b,_0x20cae3(0x237))),this[_0x20cae3(0x1d1)][_0x20cae3(0x27b)](_0x23373c),this[_0x20cae3(0x1d1)][_0x20cae3(0x290)](_0x2c151a,_0x1cf9f9);});}async[_0x169e6d(0x1ad)](_0x2e6050){const _0x3b9ce0=_0x169e6d;this[_0x3b9ce0(0x1ae)][_0x3b9ce0(0x176)][_0x3b9ce0(0x140)](_0x22fd61)[_0x3b9ce0(0x13e)](),this[_0x3b9ce0(0x272)][_0x3b9ce0(0x200)](_0x3b9ce0(0x296)),this[_0x3b9ce0(0x272)][_0x3b9ce0(0x1ed)](!0x0),await this[_0x3b9ce0(0x1fa)]();try{await this[_0x3b9ce0(0x22f)][_0x3b9ce0(0x22c)](_0x2e6050)[_0x3b9ce0(0x1eb)](),await this[_0x3b9ce0(0x155)](_0x2e6050),this[_0x3b9ce0(0x16b)]('\x20');const {sessionId:_0x4e683a}=this[_0x3b9ce0(0x1f8)][_0x3b9ce0(0x292)]();await this[_0x3b9ce0(0x25a)][_0x3b9ce0(0x194)](_0x2e6050,_0x4e683a),this[_0x3b9ce0(0x25a)][_0x3b9ce0(0x16e)]()&&this[_0x3b9ce0(0x25a)][_0x3b9ce0(0x2a1)](_0x9da48b(this[_0x3b9ce0(0x1ae)][_0x3b9ce0(0x297)],_0x3b9ce0(0x226)));}catch(_0x5a5243){this[_0x3b9ce0(0x272)][_0x3b9ce0(0x1dc)]({'errorMessage':_0x9da48b(this[_0x3b9ce0(0x1ae)][_0x3b9ce0(0x297)],_0x3b9ce0(0x16f)),'id':_0x2e6050}),this[_0x3b9ce0(0x1ec)](new _0x28a72d(_0x3b9ce0(0x275),this,{'error':_0x5a5243}));}finally{this[_0x3b9ce0(0x1ae)][_0x3b9ce0(0x176)][_0x3b9ce0(0x140)](_0x5cf0be)[_0x3b9ce0(0x223)][_0x3b9ce0(0x230)](_0x3b9ce0(0x170)),this[_0x3b9ce0(0x272)][_0x3b9ce0(0x2a6)](),this[_0x3b9ce0(0x272)][_0x3b9ce0(0x200)](_0x3b9ce0(0x1a1)),this[_0x3b9ce0(0x272)][_0x3b9ce0(0x1ed)](!0x1);}}[_0x169e6d(0x214)](_0x5af082){const _0x22a808=_0x169e6d;this[_0x22a808(0x25a)]['id']===_0x5af082&&this[_0x22a808(0x155)]();}async[_0x169e6d(0x15d)](){const _0x1d8115=_0x169e6d,_0x5253fd=this[_0x1d8115(0x1f8)][_0x1d8115(0x24b)]();this[_0x1d8115(0x25a)]?.[_0x1d8115(0x258)](_0x5253fd),this[_0x1d8115(0x25a)]?.[_0x1d8115(0x2a1)](_0x9da48b(this[_0x1d8115(0x1ae)][_0x1d8115(0x297)],_0x1d8115(0x226)));}[_0x169e6d(0x15a)](){const _0x36fc27=_0x169e6d;this[_0x36fc27(0x25a)]?.[_0x36fc27(0x1bb)]();}[_0x169e6d(0x184)](){const _0x53b74e=_0x169e6d;this[_0x53b74e(0x272)][_0x53b74e(0x184)]();}async[_0x169e6d(0x1e6)](){const _0x91da4b=_0x169e6d;await this[_0x91da4b(0x155)]();}async[_0x169e6d(0x207)]({message:_0x4d2265,quickActionData:_0x5652fb}){const _0x55a568=_0x169e6d;await this[_0x55a568(0x25d)]({'userMessage':_0x4d2265,'quickActionData':_0x5652fb});}[_0x169e6d(0x177)](){const _0x570180=_0x169e6d,_0xc0209c=this[_0x570180(0x1ae)][_0x570180(0x212)][_0x570180(0x140)](_0x570180(0x28b));if(!_0xc0209c)throw new _0x28a72d(_0x570180(0x154),this);return _0xc0209c;}async[_0x169e6d(0x155)](_0x47ade9){const _0x2ddaf7=_0x169e6d;try{this[_0x2ddaf7(0x272)][_0x2ddaf7(0x2aa)](),await this[_0x2ddaf7(0x19f)](_0x47ade9);}catch(_0x123dcc){this[_0x2ddaf7(0x272)][_0x2ddaf7(0x1dc)]({'errorMessage':_0x9da48b(this[_0x2ddaf7(0x1ae)][_0x2ddaf7(0x297)],_0x2ddaf7(0x1b1)),'id':_0x47ade9||_0x58e462()}),console[_0x2ddaf7(0x145)](_0x123dcc),this[_0x2ddaf7(0x25a)]=void 0x0,this[_0x2ddaf7(0x272)][_0x2ddaf7(0x151)]();}}async[_0x169e6d(0x19f)](_0x570fa8){const _0xe4796d=_0x169e6d,_0x41f3f4=this[_0xe4796d(0x1ae)][_0xe4796d(0x176)][_0xe4796d(0x140)](_0x22fd61);let _0x392a49;_0x41f3f4[_0xe4796d(0x28a)]&&_0x41f3f4[_0xe4796d(0x13e)](),_0x570fa8||!this[_0xe4796d(0x25a)]?_0x392a49=this[_0xe4796d(0x1ae)][_0xe4796d(0x212)][_0xe4796d(0x140)](_0xe4796d(0x278)):this[_0xe4796d(0x272)][_0xe4796d(0x1d8)]&&(_0x392a49=this[_0xe4796d(0x25a)][_0xe4796d(0x1bc)]['id']),await this[_0xe4796d(0x1fa)]();const _0x4290c4=this[_0xe4796d(0x177)](),_0x16dbf0=_0x570fa8||_0x58e462();this[_0xe4796d(0x25a)]=new _0x4ffdd5({'connector':this[_0xe4796d(0x22f)],'chatModels':this[_0xe4796d(0x179)],'selectedModelId':_0x392a49,'conversationId':_0x16dbf0,'group':_0x4290c4,'getEditor':()=>_0xb6cbe3(this[_0xe4796d(0x1ae)])}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x248),(_0x145f29,_0x55dcaf)=>{const _0x41909a=_0xe4796d;this[_0x41909a(0x272)][_0x41909a(0x26e)](_0x55dcaf),this[_0x41909a(0x272)][_0x41909a(0x19d)](),this[_0x41909a(0x272)][_0x41909a(0x255)](),this[_0x41909a(0x272)][_0x41909a(0x1f6)](),_0x570fa8||(this[_0x41909a(0x272)][_0x41909a(0x24f)](),this[_0x41909a(0x25a)]?.[_0x41909a(0x2a1)](_0x9da48b(this[_0x41909a(0x1ae)][_0x41909a(0x297)],_0x41909a(0x226))));}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x1f9),(_0x3bc792,_0x4b833f)=>{const _0x5007e3=_0xe4796d;this[_0x5007e3(0x272)][_0x5007e3(0x216)](_0x4b833f[_0x5007e3(0x160)]);}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x1cf),(_0x325ef7,_0x1a3f68)=>{const _0x436041=_0xe4796d;this[_0x436041(0x272)][_0x436041(0x259)](_0x1a3f68);}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x15b),()=>{const _0x203f77=_0xe4796d;this[_0x203f77(0x272)][_0x203f77(0x25f)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x249),()=>{const _0x12c56e=_0xe4796d;this[_0x12c56e(0x272)][_0x12c56e(0x25f)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x206),(_0x1a9158,_0x45d108)=>{const _0x1d918a=_0xe4796d;this[_0x1d918a(0x272)][_0x1d918a(0x1c5)](_0x45d108,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x1b0),(_0x301528,_0x2c4a87)=>{const _0x387dc7=_0xe4796d;this[_0x387dc7(0x272)][_0x387dc7(0x1c5)](_0x2c4a87,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x271),()=>{const _0x50c0b4=_0xe4796d;this[_0x50c0b4(0x272)][_0x50c0b4(0x1bd)]();}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x1a3),async()=>{const _0x5060ae=_0xe4796d;await this[_0x5060ae(0x272)][_0x5060ae(0x252)]();}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x27a),(_0x363ffb,_0x4f426a)=>{const _0x55aec9=_0xe4796d;this[_0x55aec9(0x272)][_0x55aec9(0x236)](_0x4f426a['id']);}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x16a),(_0x5c8d7d,_0x13312f,_0x1c9e6c)=>{const _0x2081a6=_0xe4796d;this[_0x2081a6(0x16b)](_0x13312f,_0x1c9e6c);}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x22d),(_0x54f4be,_0x549b40)=>{const _0x311494=_0xe4796d;_0x311494(0x21d)===_0x549b40[_0x311494(0x28c)]?this[_0x311494(0x272)][_0x311494(0x228)](_0x549b40):this[_0x311494(0x272)][_0x311494(0x1b3)](_0x549b40);}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x1ab),async(_0xf06094,_0xbacb36)=>{const _0x37ae43=_0xe4796d;await this[_0x37ae43(0x1ac)]({'reply':_0xbacb36});}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x199),(_0x26fa20,{reply:_0x3ef783,index:_0x3bb0f2,state:_0x12cc75})=>{const _0x2a1cf2=_0xe4796d;this[_0x2a1cf2(0x272)][_0x2a1cf2(0x1ca)]({'id':_0x3ef783['id'],'index':_0x3bb0f2,'state':_0x12cc75});}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x24d),(_0x19cad1,_0x489e71)=>{const _0x48f442=_0xe4796d;if(this[_0x48f442(0x272)][_0x48f442(0x1f4)](_0x489e71[_0x48f442(0x28d)],_0x489e71[_0x48f442(0x189)]),_0x48f442(0x273)===_0x489e71[_0x48f442(0x28d)][_0x48f442(0x28c)]){const _0x2322ec=[..._0xb6cbe3(this[_0x48f442(0x1ae)])[_0x48f442(0x165)][_0x48f442(0x192)][_0x48f442(0x273)][_0x48f442(0x13f)]()];this[_0x48f442(0x1f8)][_0x48f442(0x146)](_0x2322ec,_0x48f442(0x2a5)+this[_0x48f442(0x25a)]?.['id']);}}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x1db),(_0x238d7a,_0x469a61)=>{const _0x54edff=_0xe4796d;this[_0x54edff(0x272)][_0x54edff(0x21a)](_0x469a61[_0x54edff(0x187)]),_0x54edff(0x280)==_0x469a61[_0x54edff(0x187)]&&this[_0x54edff(0x15a)](),_0x54edff(0x273)===_0x469a61[_0x54edff(0x28c)]&&this[_0x54edff(0x1f8)][_0x54edff(0x23b)](_0x54edff(0x2a5)+this[_0x54edff(0x25a)]?.['id']);}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x14f),(_0x1fbd80,_0x1e2b1c)=>{const _0x2b3c9a=_0xe4796d;this[_0x2b3c9a(0x272)][_0x2b3c9a(0x1a0)](_0x1e2b1c[_0x2b3c9a(0x28d)][_0x2b3c9a(0x187)],_0x1e2b1c[_0x2b3c9a(0x189)]);}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x20c),(_0x388812,_0x513d3d)=>{const _0x3b146f=_0xe4796d;this[_0x3b146f(0x272)][_0x3b146f(0x24a)](_0x513d3d[_0x3b146f(0x203)]);}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x26d),(_0x2258d0,_0x4fca32)=>{const _0x5ee61e=_0xe4796d;this[_0x5ee61e(0x272)][_0x5ee61e(0x1d0)](_0x4fca32[_0x5ee61e(0x22e)]);}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x293),(_0x10a7da,_0x2eff47)=>{const _0x2575c5=_0xe4796d;this[_0x2575c5(0x272)][_0x2575c5(0x225)](_0x2eff47[_0x2575c5(0x276)],_0x2eff47[_0x2575c5(0x1c8)],_0x2eff47[_0x2575c5(0x2ab)],_0x2eff47[_0x2575c5(0x20f)]);}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x28e),(_0x49af37,_0x58a985)=>{const _0x112712=_0xe4796d;this[_0x112712(0x272)][_0x112712(0x243)](_0x58a985[_0x112712(0x276)],_0x58a985[_0x112712(0x14a)],_0x58a985[_0x112712(0x27e)]);}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x18e),(_0x298ccf,_0x5553f9)=>{const _0x290576=_0xe4796d;this[_0x290576(0x272)][_0x290576(0x250)](_0x5553f9);}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x15e),(_0x3004d3,_0x4bd2d6)=>{const _0x47849f=_0xe4796d;this[_0x47849f(0x272)][_0x47849f(0x156)](_0x4bd2d6[_0x47849f(0x1bc)],_0x4bd2d6[_0x47849f(0x247)]);}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x145),(_0x134132,{error:_0x3cc716,interactionId:_0xd17258,fileName:_0xdae4ad,url:_0x398b4,sourceId:_0x1ac132,sourceLabel:_0x3bb4a1})=>{const _0x119764=_0xe4796d,_0x2a84a1=_0xd17258?_0xd17258+':'+_0x58e462():_0x58e462();_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x14b))?this[_0x119764(0x272)][_0x119764(0x29c)]({'staticMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x28f)),'id':_0x2a84a1}):_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x1c6))||_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x17c))?(this[_0x119764(0x272)][_0x119764(0x1dc)]({'errorMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x1b1)),'id':_0x2a84a1}),this[_0x119764(0x1ec)](_0x3cc716)):_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x1d9))?this[_0x119764(0x272)][_0x119764(0x1dc)]({'errorMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x169),_0xdae4ad),'id':_0x2a84a1}):_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x20e))?this[_0x119764(0x272)][_0x119764(0x1dc)]({'errorMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x19c),_0x398b4),'id':_0x2a84a1}):_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x182))?this[_0x119764(0x272)][_0x119764(0x1dc)]({'errorMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x1b5)),'id':_0x2a84a1}):_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x147))?this[_0x119764(0x272)][_0x119764(0x1dc)]({'errorMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x1ee)),'id':_0x2a84a1}):_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x190))?(_0x1ac132&&this[_0x119764(0x272)][_0x119764(0x1b2)](_0x1ac132),this[_0x119764(0x272)][_0x119764(0x1dc)]({'errorMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x209),_0x3bb4a1||_0x119764(0x1c8)),'id':_0x2a84a1}),this[_0x119764(0x1ec)](_0x3cc716)):_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x205))?(this[_0x119764(0x272)][_0x119764(0x1dc)]({'errorMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x1a4)),'id':_0x2a84a1}),this[_0x119764(0x1ec)](_0x3cc716)):_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x1fc))?(this[_0x119764(0x272)][_0x119764(0x1dc)]({'errorMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x1a7)),'id':_0x2a84a1}),this[_0x119764(0x1ec)](_0x3cc716)):_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x15c))?(this[_0x119764(0x272)][_0x119764(0x1dc)]({'errorMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x1c1)),'id':_0x2a84a1}),this[_0x119764(0x1ec)](_0x3cc716)):_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x24c))?(this[_0x119764(0x272)][_0x119764(0x1dc)]({'errorMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x26b)),'id':_0x2a84a1}),this[_0x119764(0x1ec)](_0x3cc716)):_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x234))?(this[_0x119764(0x272)][_0x119764(0x1dc)]({'errorMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x1f0)),'id':_0x2a84a1}),this[_0x119764(0x1ec)](_0x3cc716)):_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x1f7))?(this[_0x119764(0x272)][_0x119764(0x1dc)]({'errorMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x1f1)),'id':_0x2a84a1}),this[_0x119764(0x1ec)](_0x3cc716)):(this[_0x119764(0x272)][_0x119764(0x1dc)]({'errorMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x274)),'id':_0x2a84a1}),this[_0x119764(0x1ec)](_0x3cc716));}),await this[_0xe4796d(0x25a)][_0xe4796d(0x17d)](this[_0xe4796d(0x1ae)][_0xe4796d(0x212)][_0xe4796d(0x140)](_0xe4796d(0x263))),_0x570fa8||await this[_0xe4796d(0x25a)][_0xe4796d(0x246)]();}async[_0x169e6d(0x25d)]({userMessage:_0x461154,quickActionData:_0x1c296f}){const _0x513253=_0x169e6d;if(!this[_0x513253(0x25a)])throw new _0x28a72d(_0x513253(0x1cc));this[_0x513253(0x25a)][_0x513253(0x16c)]()&&await this[_0x513253(0x25a)][_0x513253(0x19e)](this[_0x513253(0x1f8)][_0x513253(0x292)]()),this[_0x513253(0x25a)]['id']&&this[_0x513253(0x25a)][_0x513253(0x149)]&&await this[_0x513253(0x25a)][_0x513253(0x17e)]({'userMessage':_0x461154,'quickActionData':_0x1c296f}),this[_0x513253(0x29e)]();}[_0x169e6d(0x29e)](){const _0x55a944=_0x169e6d,_0x5c9310=_0xb6cbe3(this[_0x55a944(0x1ae)])[_0x55a944(0x165)],_0x2ac47e=Array[_0x55a944(0x264)](_0x5c9310[_0x55a944(0x27d)][_0x55a944(0x193)](_0x1d99ea));_0x5c9310[_0x55a944(0x1fb)](_0x4afbe6=>{const _0xca7752=_0x55a944;_0x2ac47e[_0xca7752(0x143)](_0x311a58=>_0x4afbe6[_0xca7752(0x144)](_0x311a58));});}[_0x169e6d(0x171)](){const _0x109f63=_0x169e6d;console[_0x109f63(0x152)](_0x109f63(0x1ea));}[_0x169e6d(0x26c)](_0x1cf25d){const _0x5d7cdf=_0x169e6d;this[_0x5d7cdf(0x272)][_0x5d7cdf(0x241)](_0x1cf25d);}[_0x169e6d(0x1ec)](_0x4f92db){const _0x5467f8=_0x169e6d;_0x4cc11e(_0x4f92db[_0x5467f8(0x218)]);}[_0x169e6d(0x18f)](_0x50be53){const _0x27a838=_0x169e6d;this[_0x27a838(0x25a)]?.[_0x27a838(0x20a)](_0x50be53);}[_0x169e6d(0x232)](){const _0x456b99=_0x169e6d;this[_0x456b99(0x25a)]?.[_0x456b99(0x18a)]();}[_0x169e6d(0x1e0)](){const _0x563270=_0x169e6d;this[_0x563270(0x25a)]?.[_0x563270(0x1a8)]();}[_0x169e6d(0x1aa)](_0x16f343){const _0x27e85c=_0x169e6d,[_0x44a3df,_0x56fef7]=_0x16f343[_0x27e85c(0x2ac)](':'),_0x23b4ae=this[_0x27e85c(0x25a)][_0x27e85c(0x1d4)](_0x44a3df),_0x3f347d=_0x23b4ae[_0x27e85c(0x233)](_0x56fef7);return{'interaction':_0x23b4ae,'reply':_0x3f347d};}[_0x169e6d(0x1c7)](_0x3dd039,_0x300458=!0x1){const _0x1644b7=_0x169e6d,_0x2e75be=_0xb6cbe3(this[_0x1644b7(0x1ae)]),_0x4f89d4={'target':_0x2e75be[_0x1644b7(0x219)][_0x1644b7(0x223)][_0x1644b7(0x245)][_0x1644b7(0x2a4)](_0x2e75be[_0x1644b7(0x219)][_0x1644b7(0x279)][_0x1644b7(0x239)](_0x3dd039)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x300458};_0x300458&&(_0x4f89d4[_0x1644b7(0x235)]=!0x0),_0x586101(_0x4f89d4);}[_0x169e6d(0x16b)](_0x9694ef,_0x14c612=!0x1){const _0x2e4597=_0x169e6d;this[_0x2e4597(0x272)][_0x2e4597(0x16a)](_0x9694ef||_0x9da48b(this[_0x2e4597(0x1ae)][_0x2e4597(0x297)],_0x2e4597(0x27f)),_0x14c612);}async[_0x169e6d(0x1ac)]({reply:_0x36cb8d,renderingStrategy:_0x4aa5dd}){const _0x7fa55e=_0x169e6d,{id:_0x91542e,isDone:_0x1ee8af,type:_0x9a5984,parsedContent:_0x3f0498}=_0x36cb8d;if(_0x7fa55e(0x1f2)===_0x9a5984){const _0x595f98=_0x36cb8d[_0x7fa55e(0x18c)]({'showDiff':this[_0x7fa55e(0x272)][_0x7fa55e(0x283)]});await this[_0x7fa55e(0x272)][_0x7fa55e(0x224)]({'id':_0x91542e,'parts':_0x595f98,'renderingStrategy':_0x4aa5dd,'isDone':_0x1ee8af});}else _0x7fa55e(0x21d)===_0x9a5984&&await this[_0x7fa55e(0x272)][_0x7fa55e(0x286)]({'id':_0x91542e,'parsedContent':_0x3f0498,'renderingStrategy':_0x4aa5dd,'isDone':_0x1ee8af});_0x1ee8af&&_0x36cb8d[_0x7fa55e(0x198)][_0x7fa55e(0x1c3)]>0x0&&this[_0x7fa55e(0x272)][_0x7fa55e(0x29b)](_0x91542e,_0x36cb8d[_0x7fa55e(0x198)]);}async[_0x169e6d(0x1fa)](){const _0x255a6f=_0x169e6d,_0x31749a=this[_0x255a6f(0x25a)]?.[_0x255a6f(0x141)];_0x31749a&&(_0x31749a[_0x255a6f(0x17a)](),this[_0x255a6f(0x272)][_0x255a6f(0x1bf)](_0x31749a));}async[_0x169e6d(0x288)](){const _0xc5cca1=_0x169e6d,_0x295574=this[_0xc5cca1(0x25a)]?.[_0xc5cca1(0x141)];if(_0x295574){for await(const _0x532efe of _0x295574[_0xc5cca1(0x166)])await this[_0xc5cca1(0x1ac)]({'reply':_0x532efe,'renderingStrategy':_0xc5cca1(0x296)});}}[_0x169e6d(0x159)](_0x1e8234){const _0x18f896=_0x169e6d,_0x1e55be={'positiveCount':_0x1e8234[_0x18f896(0x298)][_0x18f896(0x21f)](_0x2d50cb=>_0x18f896(0x237)===_0x2d50cb[_0x18f896(0x277)])[_0x18f896(0x1c3)],'totalCount':_0x1e8234[_0x18f896(0x298)][_0x18f896(0x1c3)],'modificationId':_0x1e8234['id']},_0x52ed49=this[_0x18f896(0x25a)][_0x18f896(0x1d4)](_0x1e8234[_0x18f896(0x150)])[_0x18f896(0x220)];this[_0x18f896(0x22f)][_0x18f896(0x1a5)](this[_0x18f896(0x25a)]['id'],_0x52ed49,_0x1e55be);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f44c5=_0x3982;(function(_0x2b4890,_0x172529){const _0xc50c07=_0x3982,_0x71f7d8=_0x2b4890();while(!![]){try{const _0x3e89fc=-parseInt(_0xc50c07(0xc9))/0x1*(-parseInt(_0xc50c07(0xf4))/0x2)+parseInt(_0xc50c07(0xd2))/0x3+parseInt(_0xc50c07(0xbe))/0x4+-parseInt(_0xc50c07(0xb6))/0x5+-parseInt(_0xc50c07(0xa3))/0x6*(parseInt(_0xc50c07(0x124))/0x7)+-parseInt(_0xc50c07(0xfd))/0x8+parseInt(_0xc50c07(0xd1))/0x9;if(_0x3e89fc===_0x172529)break;else _0x71f7d8['push'](_0x71f7d8['shift']());}catch(_0x5c8893){_0x71f7d8['push'](_0x71f7d8['shift']());}}}(_0x2483,0x78bbb));function _0x3982(_0x3af9bd,_0x1ed7fc){const _0x248313=_0x2483();return _0x3982=function(_0x39827f,_0x9a74c4){_0x39827f=_0x39827f-0x80;let _0x1ae4bd=_0x248313[_0x39827f];return _0x1ae4bd;},_0x3982(_0x3af9bd,_0x1ed7fc);}function _0x2483(){const _0x2c6772=['updateFeedItemAIReplySuggestionContent','createConversation','clearConversationContextUI','bind','children','removeFeedInteraction','config','updateReplyItem','_animateConversationTitle','_interactionPromiseResolver','last','isLoading','clearPendingContextUI','_isTrackChangesCommandValueBound','options','setFeedItemRenderingStrategy','user-message','setModelList','pluginName','setIsMaximized','addFeedItemStaticMessage','getItemIds','scrollFeedToSuggestion','locale','addFeedItemAISuggestion','</p>','enableControls','resetConversationTitle','conversation-start','requires','displayedPrompt','interaction-header','setInputPlaceholder','addFeedItemUserMessage','enqueue','527051SVRhXb','startsWith','error-message','updateFeedItemAIReplySuggestionPartState','isMaximized','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','TrackChanges','setIsUploadInProgress','isDisabled','get','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','isReasoningEnabled','showDiff','interactionId','updateFeedInteractionHeader','abort','isVisible','setModel','areActionsDisabled','removeContextItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','availableModels','setContextItemLoading','values','ai-suggestion-reply','toggleSuggestionDisplayMode','removeItem','enableModelSelector','showResizeButton','isOfficialPlugin','startAutoScroll','_view','stopInteraction','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','delegate','chatControls','from','36dYsRwz','find','updateResourceState','_promiseQueue','isModelAvailable','streaming','ai.availableReplyActions','updateFeedItemAIReplyContent','setSelectedModel','setConversationContext','disableModelSelector','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','AIChatUI','forEach','setAddContextOptions','then','ai-reply','AI_CHAT_WELCOME_MESSAGE','AITabs','3512785jnBEbk','chatFeed','renderingStrategy','_getInputPlaceholder','_titleAnimationInterval','isTrackChangesOn','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','trackChanges','3540216mPvKKd','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','plugins','isPremiumPlugin','addFeedInteractionHeader','feedItemRenderingStrategy','length','setWebSearch','view','addItem','destroy','9352OCiHHg','set','markFeedItemAsDone','value','insertSuggestion','startInteraction','isBusy','userMessage','4563999mSwPlO','2531472QxVmgR','updateSuggestionItem','quickActionData','clear','focusPromptInput','updateWebSources','chat','populateSourceResourceBalloon','markItemAsDone','ai.chat.models.modelSelectorAlwaysVisible','addTab','addFeedItemError','queueEmptyPromise','resetMessageInput','setConversationTitle','filter','disableControls','updateSuggestionPartState','remove','isWebSearchEnabled','addFeedItemAIReply','isDone','AI_CHAT_HEADING','chatHeader','label','context','_getLoadingMessage','updateCapabilities','setReasoning','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','finishInteraction','scrollToSuggestion','<p>','stopAutoScroll','22kIbslF','contextItems','closeSourceResourceBalloon','isPending','ai.chat.context.searchInputVisibleFrom','commands','addContextItem','toggleLoadingSkeleton','updateFeedItemAIReplySources','5520184MBWbkC','capabilities','setLoadingMessage','has'];_0x2483=function(){return _0x2c6772;};return _0x2483();}import{ContextPlugin as _0x4250d7}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x1399fe}from'ckeditor5/src/utils.js';import{AIChatView as _0x21367a}from'./ui/aichatview.js';import{AITabs as _0x369df8}from'../aitabs/aitabs.js';import{getTranslation as _0x28daa3}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x51f07a}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x243b94}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x5521c1}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x35df6b}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x172c34}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x3ecfc2}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x4250d7{static get[_0x4f44c5(0x11e)](){return[_0x369df8];}[_0x4f44c5(0x9d)];static get[_0x4f44c5(0x113)](){const _0x5c63ea=_0x4f44c5;return _0x5c63ea(0xaf);}static get[_0x4f44c5(0x9b)](){return!0x0;}static get[_0x4f44c5(0xc1)](){return!0x0;}[_0x4f44c5(0xc3)]=_0x4f44c5(0xa8);[_0x4f44c5(0x8a)]=!0x0;[_0x4f44c5(0xa6)];[_0x4f44c5(0x10a)];[_0x4f44c5(0xba)]=void 0x0;[_0x4f44c5(0x10e)]=!0x1;constructor(_0x2ce3aa){const _0x2b1ae8=_0x4f44c5;super(_0x2ce3aa);const _0x5f3b4f=this[_0x2b1ae8(0xeb)][_0x2b1ae8(0xc0)][_0x2b1ae8(0x87)](_0x2b1ae8(0xb5));this[_0x2b1ae8(0xca)](_0x2b1ae8(0xcf),!0x1),this[_0x2b1ae8(0xa6)]=new _0x5521c1(),this[_0x2b1ae8(0x9d)]=new _0x21367a(this[_0x2b1ae8(0xeb)][_0x2b1ae8(0x118)],{'showResizeButton':_0x5f3b4f[_0x2b1ae8(0x9a)],'contextResourcesSearchInputVisibleFrom':this[_0x2b1ae8(0xeb)][_0x2b1ae8(0x107)][_0x2b1ae8(0x87)](_0x2b1ae8(0xf8))}),this[_0x2b1ae8(0x9d)][_0x2b1ae8(0xa0)](..._0x35df6b)['to'](this),this[_0x2b1ae8(0x9d)]['on'](_0x2b1ae8(0x97),(_0x42439e,{showDiff:_0x140b41})=>{const _0x28a8b3=_0x2b1ae8;this[_0x28a8b3(0x8a)]=_0x140b41;}),_0x5f3b4f[_0x2b1ae8(0xc6)][_0x2b1ae8(0xdc)]({'id':_0x2b1ae8(0xd8),'buttonLabel':_0x28daa3(this[_0x2b1ae8(0xeb)][_0x2b1ae8(0x118)],_0x2b1ae8(0xe8)),'buttonIcon':_0x51f07a,'order':0x0,'content':this[_0x2b1ae8(0x9d)]}),this[_0x2b1ae8(0x9d)][_0x2b1ae8(0xa1)][_0x2b1ae8(0x104)](_0x2b1ae8(0x10c))['to'](this,_0x2b1ae8(0xcf),_0x288f37=>_0x288f37),this[_0x2b1ae8(0x9d)][_0x2b1ae8(0xb7)][_0x2b1ae8(0x104)](_0x2b1ae8(0xf7))['to'](this,_0x2b1ae8(0xcf),_0xace069=>_0xace069),this[_0x2b1ae8(0x9d)][_0x2b1ae8(0xa1)][_0x2b1ae8(0x121)](this[_0x2b1ae8(0xb9)]()),this[_0x2b1ae8(0x104)](_0x2b1ae8(0xa7))['to'](this[_0x2b1ae8(0x9d)][_0x2b1ae8(0xa1)],_0x2b1ae8(0xa7));}[_0x4f44c5(0xc8)](){const _0x4e02f2=_0x4f44c5;super[_0x4e02f2(0xc8)](),this[_0x4e02f2(0xba)]&&clearInterval(this[_0x4e02f2(0xba)]);}[_0x4f44c5(0x102)](_0x1863c1){const _0x30b373=_0x4f44c5;this[_0x30b373(0x9d)][_0x30b373(0xb7)][_0x30b373(0xd5)](),this[_0x30b373(0x9d)][_0x30b373(0xa1)][_0x30b373(0x99)](),this[_0x30b373(0x9d)][_0x30b373(0xa1)][_0x30b373(0x112)](_0x1863c1[_0x30b373(0x93)],!this[_0x30b373(0xeb)][_0x30b373(0x107)][_0x30b373(0x87)](_0x30b373(0xdb))),this[_0x30b373(0x115)]({'id':_0x30b373(0x11d),'staticMessage':_0x28daa3(this[_0x30b373(0xeb)][_0x30b373(0x118)],_0x30b373(0xb4))});}[_0x4f44c5(0x115)]({id:_0x28f370,staticMessage:_0x2602a2}){const _0x2a815e=_0x4f44c5;this[_0x2a815e(0x9d)][_0x2a815e(0xb7)][_0x2a815e(0xc7)](_0x2a815e(0xb3),{'id':_0x28f370,'initialContent':_0x2a815e(0xf2)+_0x2602a2+_0x2a815e(0x11a)});}[_0x4f44c5(0x122)](_0x42f11a){const _0x3e75b7=_0x4f44c5,_0x58f71f=_0x42f11a[_0x3e75b7(0xd4)]?.[_0x3e75b7(0x11f)]||_0x42f11a[_0x3e75b7(0xd0)];this[_0x3e75b7(0x9d)][_0x3e75b7(0xb7)][_0x3e75b7(0xc7)](_0x3e75b7(0x111),{'contextItems':Array[_0x3e75b7(0xa2)](_0x42f11a[_0x3e75b7(0xf5)][_0x3e75b7(0x95)]()),'initialContent':_0x3e75b7(0xf2)+_0x58f71f+_0x3e75b7(0x11a),'id':_0x42f11a['id']});}[_0x4f44c5(0xdd)]({errorMessage:_0x2adf09,id:_0x415d2e}){const _0x11ae29=_0x4f44c5;this[_0x11ae29(0x9d)][_0x11ae29(0xb7)][_0x11ae29(0xc7)](_0x11ae29(0x80),{'initialContent':_0x11ae29(0xf2)+_0x2adf09+_0x11ae29(0x11a),'id':_0x415d2e});}[_0x4f44c5(0xe6)](_0x2e3ff5){const _0x4ad937=_0x4f44c5;return this[_0x4ad937(0xa6)][_0x4ad937(0x123)](async()=>{const _0x4c1d37=_0x4ad937;this[_0x4c1d37(0x9d)][_0x4c1d37(0xb7)][_0x4c1d37(0xc7)](_0x4c1d37(0xb3),{'id':_0x2e3ff5[_0x4c1d37(0x8b)]+':'+_0x2e3ff5['id']}),this[_0x4c1d37(0xff)](null);});}async[_0x4f44c5(0x119)](_0x2c4447){const _0x14272c=_0x4f44c5,_0x4e91e3=_0x172c34(this[_0x14272c(0xeb)]);let _0x38aa5a=_0x4e91e3[_0x14272c(0x107)][_0x14272c(0x87)](_0x14272c(0xa9))||[..._0x3ecfc2];if(_0x4e91e3[_0x14272c(0xc0)][_0x14272c(0x100)](_0x14272c(0x84))){if(!this[_0x14272c(0x10e)]){this[_0x14272c(0x10e)]=!0x0;const _0x2cd0ae=_0x4e91e3[_0x14272c(0xf9)][_0x14272c(0x87)](_0x14272c(0xbd));this[_0x14272c(0x9d)][_0x14272c(0xb7)][_0x14272c(0x104)](_0x14272c(0xbb))['to'](_0x2cd0ae,_0x14272c(0xcc));}}else _0x38aa5a=_0x38aa5a[_0x14272c(0xe1)](_0x169cf2=>_0x14272c(0xcd)!=_0x169cf2);return this[_0x14272c(0xa6)][_0x14272c(0x123)](async()=>{const _0x1fc88a=_0x14272c;this[_0x1fc88a(0x9d)][_0x1fc88a(0xb7)][_0x1fc88a(0xc7)](_0x1fc88a(0x96),{'id':_0x2c4447[_0x1fc88a(0x8b)]+':'+_0x2c4447['id'],'areActionsDisabled':_0x2c4447[_0x1fc88a(0x90)],'showDiff':this[_0x1fc88a(0x8a)],'availableActions':_0x38aa5a}),this[_0x1fc88a(0xff)](null);});}[_0x4f44c5(0xc2)](_0x3af371,_0x1a9d4c){const _0xb914ee=_0x4f44c5,_0x11d078=this[_0xb914ee(0x9d)][_0xb914ee(0xb7)][_0xb914ee(0x105)][_0xb914ee(0x10b)];if(_0x11d078 instanceof _0x243b94)return this[_0xb914ee(0x9d)][_0xb914ee(0xb7)][_0xb914ee(0x105)][_0xb914ee(0xe4)](_0x11d078),void this[_0xb914ee(0x9d)][_0xb914ee(0xb7)][_0xb914ee(0xc7)](_0xb914ee(0x120),{'id':_0x3af371['id'],'capabilities':{'isWebSearchEnabled':_0x11d078[_0xb914ee(0xfe)][_0xb914ee(0xe5)]||_0x1a9d4c[_0xb914ee(0xe5)],'isReasoningEnabled':_0x11d078[_0xb914ee(0xfe)][_0xb914ee(0x89)]||_0x1a9d4c[_0xb914ee(0x89)]}});this[_0xb914ee(0x9d)][_0xb914ee(0xb7)][_0xb914ee(0xc7)](_0xb914ee(0x120),{'id':_0x3af371['id'],'capabilities':_0x1a9d4c});}[_0x4f44c5(0x8c)](_0x35edcf){const _0x57e5af=_0x4f44c5,_0x161bc8=this[_0x57e5af(0x9d)][_0x57e5af(0xb7)][_0x57e5af(0x105)][_0x57e5af(0xa4)](_0xf7e5d4=>_0xf7e5d4[_0x57e5af(0x10f)]['id']==_0x35edcf['id']&&_0xf7e5d4 instanceof _0x243b94);_0x161bc8&&_0x161bc8[_0x57e5af(0xca)](_0x57e5af(0x8e),_0x35edcf[_0x57e5af(0x8e)]);}async[_0x4f44c5(0xaa)](_0x377e12){const _0x58db7b=_0x4f44c5,_0x50c7f5=_0x377e12[_0x58db7b(0xb8)]||this[_0x58db7b(0xc3)];return this[_0x58db7b(0xa6)][_0x58db7b(0x123)](async _0x7ac27a=>{const _0x2460b5=_0x58db7b;await this[_0x2460b5(0x9d)][_0x2460b5(0xb7)][_0x2460b5(0x108)]({..._0x377e12,'abortSignal':_0x7ac27a,'renderingStrategy':_0x50c7f5}),_0x377e12[_0x2460b5(0xe7)]&&this[_0x2460b5(0xcb)](_0x377e12['id']);});}[_0x4f44c5(0xfc)](_0x137221,_0x2b3937){const _0x16518b=_0x4f44c5;this[_0x16518b(0x9d)][_0x16518b(0xb7)][_0x16518b(0xd7)](_0x137221,_0x2b3937);}async[_0x4f44c5(0x101)](_0x46b3b8){const _0xe694ec=_0x4f44c5,_0x58e00e=_0x46b3b8[_0xe694ec(0xb8)]||this[_0xe694ec(0xc3)];return this[_0xe694ec(0xa6)][_0xe694ec(0x123)](async _0x261e3e=>{const _0x246519=_0xe694ec;await this[_0x246519(0x9d)][_0x246519(0xb7)][_0x246519(0xd3)]({..._0x46b3b8,'abortSignal':_0x261e3e,'renderingStrategy':_0x58e00e}),_0x46b3b8[_0x246519(0xe7)]&&this[_0x246519(0xcb)](_0x46b3b8['id']);});}[_0x4f44c5(0x81)](_0x48228d){const _0x3c6394=_0x4f44c5;this[_0x3c6394(0x9d)][_0x3c6394(0xb7)][_0x3c6394(0xe3)](_0x48228d);}[_0x4f44c5(0xcb)](_0x4ecc68){const _0x4540c2=_0x4f44c5;this[_0x4540c2(0x9d)][_0x4540c2(0xb7)][_0x4540c2(0xda)](_0x4ecc68);}[_0x4f44c5(0x106)](_0x1c93db){const _0x28eae0=_0x4f44c5;this[_0x28eae0(0x9d)][_0x28eae0(0xb7)][_0x28eae0(0x116)]()[_0x28eae0(0xe1)](_0x4158c0=>_0x4158c0[_0x28eae0(0x125)](_0x1c93db))[_0x28eae0(0xb0)](_0x459ed0=>this[_0x28eae0(0x9d)][_0x28eae0(0xb7)][_0x28eae0(0x98)](_0x459ed0));}[_0x4f44c5(0xce)](){const _0x5d36b6=_0x4f44c5;this[_0x5d36b6(0xff)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x5d36b6(0x9d)][_0x5d36b6(0xa1)][_0x5d36b6(0xad)](!this[_0x5d36b6(0xeb)][_0x5d36b6(0x107)][_0x5d36b6(0x87)](_0x5d36b6(0xdb))),this[_0x5d36b6(0xcf)]=!0x0,this[_0x5d36b6(0x9d)][_0x5d36b6(0xb7)][_0x5d36b6(0x9c)]();}[_0x4f44c5(0x9e)](_0x12af74){const _0x3e31e4=_0x4f44c5;this[_0x3e31e4(0xa6)][_0x3e31e4(0x8d)](),this[_0x3e31e4(0x9d)][_0x3e31e4(0xb7)][_0x3e31e4(0x116)]()[_0x3e31e4(0xe1)](_0x1d0aef=>_0x1d0aef[_0x3e31e4(0x125)](_0x12af74['id']))[_0x3e31e4(0xb0)](_0x85bcdd=>this[_0x3e31e4(0xcb)](_0x85bcdd)),this[_0x3e31e4(0xcf)]=!0x1,this[_0x3e31e4(0x9d)][_0x3e31e4(0xb7)][_0x3e31e4(0xf3)]();}async[_0x4f44c5(0xf0)](){const _0x543034=_0x4f44c5;return this[_0x543034(0xa6)][_0x543034(0xde)][_0x543034(0xb2)](()=>{const _0x278807=_0x543034;this[_0x278807(0xcf)]=!0x1,this[_0x278807(0x9d)][_0x278807(0xb7)][_0x278807(0xf3)]();});}[_0x4f44c5(0xfa)](_0x3158ee,_0x3695cf){const _0x224d6a=_0x4f44c5;this[_0x224d6a(0x9d)][_0x224d6a(0xa1)][_0x224d6a(0xfa)](_0x3158ee,_0x3695cf);}[_0x4f44c5(0x91)](_0x47ce2d){const _0x1a1292=_0x4f44c5;this[_0x1a1292(0x9d)][_0x1a1292(0xa1)][_0x1a1292(0x91)](_0x47ce2d);}[_0x4f44c5(0x94)](_0x294246,_0x2d0572){const _0x9c3868=_0x4f44c5;this[_0x9c3868(0x9d)][_0x9c3868(0xa1)][_0x9c3868(0x94)](_0x294246,_0x2d0572);}[_0x4f44c5(0x85)](_0x4c8a87){const _0x3b3577=_0x4f44c5;this[_0x3b3577(0x9d)][_0x3b3577(0xa1)][_0x3b3577(0x85)](_0x4c8a87);}[_0x4f44c5(0xac)](_0x5c8db2){const _0x523958=_0x4f44c5;this[_0x523958(0x9d)][_0x523958(0xa1)][_0x523958(0xac)](_0x5c8db2);}[_0x4f44c5(0x10d)](){const _0x41e117=_0x4f44c5;this[_0x41e117(0x9d)][_0x41e117(0xa1)][_0x41e117(0x10d)]();}[_0x4f44c5(0x103)](){const _0x2200a2=_0x4f44c5;this[_0x2200a2(0x9d)][_0x2200a2(0xa1)][_0x2200a2(0x103)]();}[_0x4f44c5(0xa5)](_0x67f471,_0x2325b2,_0x3ce2aa){const _0x555cb4=_0x4f44c5;this[_0x555cb4(0x9d)][_0x555cb4(0xa1)][_0x555cb4(0xa5)](_0x67f471,_0x2325b2,_0x3ce2aa);}[_0x4f44c5(0xdf)](){const _0x485164=_0x4f44c5;this[_0x485164(0x9d)][_0x485164(0xa1)][_0x485164(0xdf)](),this[_0x485164(0x9d)][_0x485164(0xa1)][_0x485164(0x121)](this[_0x485164(0xb9)]());}[_0x4f44c5(0xb1)](_0x42a9e8){const _0x4de199=_0x4f44c5;this[_0x4de199(0x9d)][_0x4de199(0xa1)][_0x4de199(0xb1)](_0x42a9e8);}[_0x4f44c5(0xed)](_0x11bdac){const _0x1a9f21=_0x4f44c5;this[_0x1a9f21(0x9d)][_0x1a9f21(0xa1)][_0x1a9f21(0xc5)](_0x11bdac[_0x1a9f21(0xe5)]),this[_0x1a9f21(0x9d)][_0x1a9f21(0xa1)][_0x1a9f21(0xee)](_0x11bdac[_0x1a9f21(0x89)]),this[_0x1a9f21(0x9d)][_0x1a9f21(0xa1)][_0x1a9f21(0x121)](this[_0x1a9f21(0xb9)](_0x11bdac));}[_0x4f44c5(0xab)](_0x3c1476,_0x1d46ba){const _0x2c136d=_0x4f44c5;this[_0x2c136d(0x9d)][_0x2c136d(0xa1)][_0x2c136d(0x8f)](_0x3c1476),_0x1d46ba&&this[_0x2c136d(0x9d)][_0x2c136d(0xa1)][_0x2c136d(0xad)](!0x1);}[_0x4f44c5(0x110)](_0x41a8d8){const _0x511bd1=_0x4f44c5;this[_0x511bd1(0xc3)]=_0x41a8d8;}[_0x4f44c5(0xfb)](_0x4f8c09){const _0x3cdaff=_0x4f44c5;this[_0x3cdaff(0x9d)][_0x3cdaff(0xb7)][_0x3cdaff(0xfb)](_0x4f8c09);}[_0x4f44c5(0x11c)](){const _0x458539=_0x4f44c5;this[_0x458539(0xe0)](_0x28daa3(this[_0x458539(0xeb)][_0x458539(0x118)],_0x458539(0xe8)));}[_0x4f44c5(0xe0)](_0x24308a,_0x3ef379=!0x1){const _0x194af6=_0x4f44c5;if(_0x3ef379&&!_0x1399fe()&&_0x24308a[_0x194af6(0xc4)])return this[_0x194af6(0x9d)][_0x194af6(0xe9)][_0x194af6(0xea)]='',void this[_0x194af6(0x109)](_0x24308a);this[_0x194af6(0x9d)][_0x194af6(0xe9)][_0x194af6(0xea)]=_0x24308a;}[_0x4f44c5(0xff)](_0x2b24bf){const _0x38087f=_0x4f44c5,_0x45f4a6=this[_0x38087f(0xec)](_0x2b24bf);this[_0x38087f(0x9d)][_0x38087f(0xb7)][_0x38087f(0xff)](_0x45f4a6);}[_0x4f44c5(0x109)](_0x2e098d){const _0x32456c=_0x4f44c5;let _0x4d8711=0x0;clearInterval(this[_0x32456c(0xba)]),this[_0x32456c(0xba)]=setInterval(()=>{const _0x526b2d=_0x32456c;this[_0x526b2d(0x9d)][_0x526b2d(0xe9)][_0x526b2d(0xea)]=this[_0x526b2d(0x9d)][_0x526b2d(0xe9)][_0x526b2d(0xea)]+_0x2e098d[_0x4d8711],_0x4d8711++,_0x4d8711===_0x2e098d[_0x526b2d(0xc4)]&&clearInterval(this[_0x526b2d(0xba)]);},0x1e);}[_0x4f44c5(0x114)](_0x5a9fa4){const _0x5af8cb=_0x4f44c5;this[_0x5af8cb(0x9d)][_0x5af8cb(0xe9)][_0x5af8cb(0x82)]=_0x5a9fa4;}[_0x4f44c5(0xec)](_0x595b2d){const _0x55b140=_0x4f44c5;return _0x595b2d?_0x595b2d[_0x55b140(0xe5)]&&_0x595b2d[_0x55b140(0x89)]?_0x28daa3(this[_0x55b140(0xeb)][_0x55b140(0x118)],_0x55b140(0x83)):_0x595b2d[_0x55b140(0xe5)]?_0x28daa3(this[_0x55b140(0xeb)][_0x55b140(0x118)],_0x55b140(0xef)):_0x595b2d[_0x55b140(0x89)]?_0x28daa3(this[_0x55b140(0xeb)][_0x55b140(0x118)],_0x55b140(0x9f)):_0x28daa3(this[_0x55b140(0xeb)][_0x55b140(0x118)],_0x55b140(0xae)):'';}[_0x4f44c5(0xb9)](_0x458de7){const _0xe45358=_0x4f44c5;return _0x458de7?_0x458de7[_0xe45358(0xe5)]&&_0x458de7[_0xe45358(0x89)]?_0x28daa3(this[_0xe45358(0xeb)][_0xe45358(0x118)],_0xe45358(0x88)):_0x458de7[_0xe45358(0xe5)]?_0x28daa3(this[_0xe45358(0xeb)][_0xe45358(0x118)],_0xe45358(0x92)):_0x458de7[_0xe45358(0x89)]?_0x28daa3(this[_0xe45358(0xeb)][_0xe45358(0x118)],_0xe45358(0xbc)):_0x28daa3(this[_0xe45358(0xeb)][_0xe45358(0x118)],_0xe45358(0xbf)):_0x28daa3(this[_0xe45358(0xeb)][_0xe45358(0x118)],_0xe45358(0xbf));}[_0x4f44c5(0xd9)](_0xd319f8,_0x3b1281,_0x33927d,_0x3ce3d1){const _0x1680c9=_0x4f44c5;this[_0x1680c9(0x9d)][_0x1680c9(0xd9)](_0xd319f8,_0x3b1281,_0x33927d,_0x3ce3d1);}[_0x4f44c5(0xf6)](_0x1dd576){const _0x2095ef=_0x4f44c5;this[_0x2095ef(0x9d)][_0x2095ef(0xf6)](_0x1dd576);}[_0x4f44c5(0xd6)](){const _0x124d9c=_0x4f44c5;this[_0x124d9c(0x9d)][_0x124d9c(0xa1)][_0x124d9c(0xd6)]();}[_0x4f44c5(0x117)](_0x194e5e,_0x475429){const _0x5a4167=_0x4f44c5;this[_0x5a4167(0x9d)][_0x5a4167(0xb7)][_0x5a4167(0xf1)](_0x194e5e,_0x475429);}[_0x4f44c5(0x9c)](){const _0x6d159c=_0x4f44c5;this[_0x6d159c(0x9d)][_0x6d159c(0xb7)][_0x6d159c(0x9c)]();}[_0x4f44c5(0xe2)](){const _0x179849=_0x4f44c5;this[_0x179849(0x9d)][_0x179849(0xa1)][_0x179849(0x86)]=!0x0;}[_0x4f44c5(0x11b)](){const _0x107060=_0x4f44c5;this[_0x107060(0x9d)][_0x107060(0xa1)][_0x107060(0x86)]=!0x1;}}
23
+ const _0x38b7c1=_0x323c;(function(_0x6896f2,_0x30ef74){const _0x25ae83=_0x323c,_0x41fc32=_0x6896f2();while(!![]){try{const _0x26ef99=-parseInt(_0x25ae83(0x16b))/0x1+parseInt(_0x25ae83(0x199))/0x2+-parseInt(_0x25ae83(0x1c2))/0x3+parseInt(_0x25ae83(0x1dd))/0x4+parseInt(_0x25ae83(0x1db))/0x5+parseInt(_0x25ae83(0x1ae))/0x6+-parseInt(_0x25ae83(0x1c4))/0x7*(parseInt(_0x25ae83(0x15e))/0x8);if(_0x26ef99===_0x30ef74)break;else _0x41fc32['push'](_0x41fc32['shift']());}catch(_0x38eeab){_0x41fc32['push'](_0x41fc32['shift']());}}}(_0x22a4,0x1df5e));import{ContextPlugin as _0x11e43a}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x5c0d32}from'ckeditor5/src/utils.js';import{AIChatView as _0x400e8a}from'./ui/aichatview.js';import{AITabs as _0x15069f}from'../aitabs/aitabs.js';import{getTranslation as _0x197f9f}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x51e880}from'ckeditor5/src/icons.js';function _0x22a4(){const _0x5b4d0d=['areActionsDisabled','value','</p>','showDiff','addFeedItemAIReply','enableControls','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','showResizeButton','enqueue','setWebSearch','35560ofMRDe','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','isPremiumPlugin','setLoadingMessage','TrackChanges','_promiseQueue','userMessage','startsWith','clearConversationContextUI','children','AITabs','updateFeedItemAIReplySources','setModelList','resetConversationTitle','clear','setConversationContext','updateFeedItemAIReplyContent','queueEmptyPromise','closeSourceResourceBalloon','addItem','setConversationTitle','setReasoning','removeContextItem','capabilities','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','markFeedItemAsDone','stopInteraction','updateFeedItemAIReplySuggestionContent','trackChanges','remove','interaction-header','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','AIChatUI','renderingStrategy','setInputPlaceholder','addContextItem','addFeedItemStaticMessage','addFeedItemAISuggestion','ai-reply','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','setModel','plugins','isDone','last','isReasoningEnabled','streaming','116402ZnmLXc','requires','stopAutoScroll','ai.availableReplyActions','isVisible','updateSuggestionItem','updateFeedItemAIReplySuggestionPartState','chatControls','markItemAsDone','<p>','removeItem','createConversation','addFeedInteractionHeader','options','AI_CHAT_HEADING','delegate','error-message','updateCapabilities','conversation-start','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','_getInputPlaceholder','528450axvPHl','addFeedItemUserMessage','view','find','_interactionPromiseResolver','_titleAnimationInterval','chat','isPending','chatFeed','abort','setContextItemLoading','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','_animateConversationTitle','get','quickActionData','filter','populateSourceResourceBalloon','enableModelSelector','AI_CHAT_WELCOME_MESSAGE','from','545787EglLbZ','config','292894FXjMbM','disableModelSelector','then','ai-suggestion-reply','isLoading','scrollToSuggestion','addTab','isMaximized','clearPendingContextUI','length','setFeedItemRenderingStrategy','chatHeader','locale','bind','getItemIds','set','values','isModelAvailable','availableModels','scrollFeedToSuggestion','setSelectedModel','resetMessageInput','pluginName','1086330BhKEgZ','isTrackChangesOn','576132RRxDfC','isOfficialPlugin','startInteraction','forEach','label','destroy','context','updateResourceState','addFeedItemError','_view','updateSuggestionPartState','finishInteraction','displayedPrompt','insertSuggestion','disableControls','commands','focusPromptInput','startAutoScroll','isBusy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','toggleSuggestionDisplayMode','isWebSearchEnabled','setIsUploadInProgress','ai.chat.models.modelSelectorAlwaysVisible','updateFeedInteractionHeader','_isTrackChangesCommandValueBound','user-message','removeFeedInteraction','updateReplyItem','ai.chat.context.searchInputVisibleFrom','updateWebSources','setIsMaximized','setAddContextOptions','feedItemRenderingStrategy','toggleLoadingSkeleton','interactionId','has','isDisabled','32RozLAg','contextItems','_getLoadingMessage'];_0x22a4=function(){return _0x5b4d0d;};return _0x22a4();}import{AIChatFeedInteractionHeaderView as _0x245042}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x1a7663}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x212e28}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x324200}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x48ae6c}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x323c(_0x16a084,_0x4b96d5){const _0x22a4db=_0x22a4();return _0x323c=function(_0x323c0f,_0x539a80){_0x323c0f=_0x323c0f-0x143;let _0x17c7b4=_0x22a4db[_0x323c0f];return _0x17c7b4;},_0x323c(_0x16a084,_0x4b96d5);}export class AIChatUI extends _0x11e43a{static get[_0x38b7c1(0x19a)](){return[_0x15069f];}[_0x38b7c1(0x1e6)];static get[_0x38b7c1(0x1da)](){const _0x5c89c8=_0x38b7c1;return _0x5c89c8(0x18b);}static get[_0x38b7c1(0x1de)](){return!0x0;}static get[_0x38b7c1(0x16d)](){return!0x0;}[_0x38b7c1(0x159)]=_0x38b7c1(0x198);[_0x38b7c1(0x164)]=!0x0;[_0x38b7c1(0x170)];[_0x38b7c1(0x1b2)];[_0x38b7c1(0x1b3)]=void 0x0;[_0x38b7c1(0x151)]=!0x1;constructor(_0x99a87d){const _0x3befd7=_0x38b7c1;super(_0x99a87d);const _0x5e7569=this[_0x3befd7(0x1e3)][_0x3befd7(0x194)][_0x3befd7(0x1bb)](_0x3befd7(0x175));this[_0x3befd7(0x1d3)](_0x3befd7(0x14a),!0x1),this[_0x3befd7(0x170)]=new _0x1a7663(),this[_0x3befd7(0x1e6)]=new _0x400e8a(this[_0x3befd7(0x1e3)][_0x3befd7(0x1d0)],{'showResizeButton':_0x5e7569[_0x3befd7(0x168)],'contextResourcesSearchInputVisibleFrom':this[_0x3befd7(0x1e3)][_0x3befd7(0x1c3)][_0x3befd7(0x1bb)](_0x3befd7(0x155))}),this[_0x3befd7(0x1e6)][_0x3befd7(0x1a8)](..._0x212e28)['to'](this),this[_0x3befd7(0x1e6)]['on'](_0x3befd7(0x14c),(_0x11d3aa,{showDiff:_0x3002e6})=>{const _0x461739=_0x3befd7;this[_0x461739(0x164)]=_0x3002e6;}),_0x5e7569[_0x3befd7(0x1b0)][_0x3befd7(0x1ca)]({'id':_0x3befd7(0x1b4),'buttonLabel':_0x197f9f(this[_0x3befd7(0x1e3)][_0x3befd7(0x1d0)],_0x3befd7(0x1a7)),'buttonIcon':_0x51e880,'order':0x0,'content':this[_0x3befd7(0x1e6)]}),this[_0x3befd7(0x1e6)][_0x3befd7(0x1a0)][_0x3befd7(0x1d1)](_0x3befd7(0x1c8))['to'](this,_0x3befd7(0x14a),_0x26aa31=>_0x26aa31),this[_0x3befd7(0x1e6)][_0x3befd7(0x1b6)][_0x3befd7(0x1d1)](_0x3befd7(0x1b5))['to'](this,_0x3befd7(0x14a),_0x12a357=>_0x12a357),this[_0x3befd7(0x1e6)][_0x3befd7(0x1a0)][_0x3befd7(0x18d)](this[_0x3befd7(0x1ad)]()),this[_0x3befd7(0x1d1)](_0x3befd7(0x1d5))['to'](this[_0x3befd7(0x1e6)][_0x3befd7(0x1a0)],_0x3befd7(0x1d5));}[_0x38b7c1(0x1e2)](){const _0x1d7cf0=_0x38b7c1;super[_0x1d7cf0(0x1e2)](),this[_0x1d7cf0(0x1b3)]&&clearInterval(this[_0x1d7cf0(0x1b3)]);}[_0x38b7c1(0x1a4)](_0x1e076c){const _0xfdf9d5=_0x38b7c1;this[_0xfdf9d5(0x1e6)][_0xfdf9d5(0x1b6)][_0xfdf9d5(0x179)](),this[_0xfdf9d5(0x1e6)][_0xfdf9d5(0x1a0)][_0xfdf9d5(0x1bf)](),this[_0xfdf9d5(0x1e6)][_0xfdf9d5(0x1a0)][_0xfdf9d5(0x177)](_0x1e076c[_0xfdf9d5(0x1d6)],!this[_0xfdf9d5(0x1e3)][_0xfdf9d5(0x1c3)][_0xfdf9d5(0x1bb)](_0xfdf9d5(0x14f))),this[_0xfdf9d5(0x18f)]({'id':_0xfdf9d5(0x1ab),'staticMessage':_0x197f9f(this[_0xfdf9d5(0x1e3)][_0xfdf9d5(0x1d0)],_0xfdf9d5(0x1c0))});}[_0x38b7c1(0x18f)]({id:_0x53af4a,staticMessage:_0x15181f}){const _0x28b9f4=_0x38b7c1;this[_0x28b9f4(0x1e6)][_0x28b9f4(0x1b6)][_0x28b9f4(0x17e)](_0x28b9f4(0x191),{'id':_0x53af4a,'initialContent':_0x28b9f4(0x1a2)+_0x15181f+_0x28b9f4(0x163)});}[_0x38b7c1(0x1af)](_0x591228){const _0x2a5749=_0x38b7c1,_0x5083d7=_0x591228[_0x2a5749(0x1bc)]?.[_0x2a5749(0x144)]||_0x591228[_0x2a5749(0x171)];this[_0x2a5749(0x1e6)][_0x2a5749(0x1b6)][_0x2a5749(0x17e)](_0x2a5749(0x152),{'contextItems':Array[_0x2a5749(0x1c1)](_0x591228[_0x2a5749(0x15f)][_0x2a5749(0x1d4)]()),'initialContent':_0x2a5749(0x1a2)+_0x5083d7+_0x2a5749(0x163),'id':_0x591228['id']});}[_0x38b7c1(0x1e5)]({errorMessage:_0x5dcc6c,id:_0x53a8c2}){const _0xf04dc2=_0x38b7c1;this[_0xf04dc2(0x1e6)][_0xf04dc2(0x1b6)][_0xf04dc2(0x17e)](_0xf04dc2(0x1a9),{'initialContent':_0xf04dc2(0x1a2)+_0x5dcc6c+_0xf04dc2(0x163),'id':_0x53a8c2});}[_0x38b7c1(0x165)](_0x3453ff){const _0x5e8a2a=_0x38b7c1;return this[_0x5e8a2a(0x170)][_0x5e8a2a(0x169)](async()=>{const _0x5a3167=_0x5e8a2a;this[_0x5a3167(0x1e6)][_0x5a3167(0x1b6)][_0x5a3167(0x17e)](_0x5a3167(0x191),{'id':_0x3453ff[_0x5a3167(0x15b)]+':'+_0x3453ff['id']}),this[_0x5a3167(0x16e)](null);});}async[_0x38b7c1(0x190)](_0xd489ac){const _0xa6e00a=_0x38b7c1,_0x5f0fae=_0x324200(this[_0xa6e00a(0x1e3)]);let _0x200e2a=_0x5f0fae[_0xa6e00a(0x1c3)][_0xa6e00a(0x1bb)](_0xa6e00a(0x19c))||[..._0x48ae6c];if(_0x5f0fae[_0xa6e00a(0x194)][_0xa6e00a(0x15c)](_0xa6e00a(0x16f))){if(!this[_0xa6e00a(0x151)]){this[_0xa6e00a(0x151)]=!0x0;const _0x1965b9=_0x5f0fae[_0xa6e00a(0x147)][_0xa6e00a(0x1bb)](_0xa6e00a(0x187));this[_0xa6e00a(0x1e6)][_0xa6e00a(0x1b6)][_0xa6e00a(0x1d1)](_0xa6e00a(0x1dc))['to'](_0x1965b9,_0xa6e00a(0x162));}}else _0x200e2a=_0x200e2a[_0xa6e00a(0x1bd)](_0x504be5=>_0xa6e00a(0x145)!=_0x504be5);return this[_0xa6e00a(0x170)][_0xa6e00a(0x169)](async()=>{const _0x1d2d7a=_0xa6e00a;this[_0x1d2d7a(0x1e6)][_0x1d2d7a(0x1b6)][_0x1d2d7a(0x17e)](_0x1d2d7a(0x1c7),{'id':_0xd489ac[_0x1d2d7a(0x15b)]+':'+_0xd489ac['id'],'areActionsDisabled':_0xd489ac[_0x1d2d7a(0x161)],'showDiff':this[_0x1d2d7a(0x164)],'availableActions':_0x200e2a}),this[_0x1d2d7a(0x16e)](null);});}[_0x38b7c1(0x1a5)](_0x3920cb,_0x499a21){const _0x3c3a56=_0x38b7c1,_0x2a8a7a=this[_0x3c3a56(0x1e6)][_0x3c3a56(0x1b6)][_0x3c3a56(0x174)][_0x3c3a56(0x196)];if(_0x2a8a7a instanceof _0x245042)return this[_0x3c3a56(0x1e6)][_0x3c3a56(0x1b6)][_0x3c3a56(0x174)][_0x3c3a56(0x188)](_0x2a8a7a),void this[_0x3c3a56(0x1e6)][_0x3c3a56(0x1b6)][_0x3c3a56(0x17e)](_0x3c3a56(0x189),{'id':_0x3920cb['id'],'capabilities':{'isWebSearchEnabled':_0x2a8a7a[_0x3c3a56(0x182)][_0x3c3a56(0x14d)]||_0x499a21[_0x3c3a56(0x14d)],'isReasoningEnabled':_0x2a8a7a[_0x3c3a56(0x182)][_0x3c3a56(0x197)]||_0x499a21[_0x3c3a56(0x197)]}});this[_0x3c3a56(0x1e6)][_0x3c3a56(0x1b6)][_0x3c3a56(0x17e)](_0x3c3a56(0x189),{'id':_0x3920cb['id'],'capabilities':_0x499a21});}[_0x38b7c1(0x150)](_0x16ddfc){const _0x2a5da8=_0x38b7c1,_0x2056d8=this[_0x2a5da8(0x1e6)][_0x2a5da8(0x1b6)][_0x2a5da8(0x174)][_0x2a5da8(0x1b1)](_0x4fc1c2=>_0x4fc1c2[_0x2a5da8(0x1a6)]['id']==_0x16ddfc['id']&&_0x4fc1c2 instanceof _0x245042);_0x2056d8&&_0x2056d8[_0x2a5da8(0x1d3)](_0x2a5da8(0x19d),_0x16ddfc[_0x2a5da8(0x19d)]);}async[_0x38b7c1(0x17b)](_0x497297){const _0x30c63c=_0x38b7c1,_0x41076f=_0x497297[_0x30c63c(0x18c)]||this[_0x30c63c(0x159)];return this[_0x30c63c(0x170)][_0x30c63c(0x169)](async _0x3757e7=>{const _0x314447=_0x30c63c;await this[_0x314447(0x1e6)][_0x314447(0x1b6)][_0x314447(0x154)]({..._0x497297,'abortSignal':_0x3757e7,'renderingStrategy':_0x41076f}),_0x497297[_0x314447(0x195)]&&this[_0x314447(0x184)](_0x497297['id']);});}[_0x38b7c1(0x176)](_0x8129e6,_0x209f3c){const _0x3a9b88=_0x38b7c1;this[_0x3a9b88(0x1e6)][_0x3a9b88(0x1b6)][_0x3a9b88(0x156)](_0x8129e6,_0x209f3c);}async[_0x38b7c1(0x186)](_0x35d78f){const _0x45fe4c=_0x38b7c1,_0x4ce43b=_0x35d78f[_0x45fe4c(0x18c)]||this[_0x45fe4c(0x159)];return this[_0x45fe4c(0x170)][_0x45fe4c(0x169)](async _0x476a51=>{const _0x1d8b02=_0x45fe4c;await this[_0x1d8b02(0x1e6)][_0x1d8b02(0x1b6)][_0x1d8b02(0x19e)]({..._0x35d78f,'abortSignal':_0x476a51,'renderingStrategy':_0x4ce43b}),_0x35d78f[_0x1d8b02(0x195)]&&this[_0x1d8b02(0x184)](_0x35d78f['id']);});}[_0x38b7c1(0x19f)](_0x3a13c4){const _0x46a1c1=_0x38b7c1;this[_0x46a1c1(0x1e6)][_0x46a1c1(0x1b6)][_0x46a1c1(0x1e7)](_0x3a13c4);}[_0x38b7c1(0x184)](_0x2e1d46){const _0x5977b3=_0x38b7c1;this[_0x5977b3(0x1e6)][_0x5977b3(0x1b6)][_0x5977b3(0x1a1)](_0x2e1d46);}[_0x38b7c1(0x153)](_0xc0d345){const _0x17d02b=_0x38b7c1;this[_0x17d02b(0x1e6)][_0x17d02b(0x1b6)][_0x17d02b(0x1d2)]()[_0x17d02b(0x1bd)](_0x566e38=>_0x566e38[_0x17d02b(0x172)](_0xc0d345))[_0x17d02b(0x1e0)](_0x1973e1=>this[_0x17d02b(0x1e6)][_0x17d02b(0x1b6)][_0x17d02b(0x1a3)](_0x1973e1));}[_0x38b7c1(0x1df)](){const _0x4a3c22=_0x38b7c1;this[_0x4a3c22(0x16e)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x4a3c22(0x1e6)][_0x4a3c22(0x1a0)][_0x4a3c22(0x1c5)](!this[_0x4a3c22(0x1e3)][_0x4a3c22(0x1c3)][_0x4a3c22(0x1bb)](_0x4a3c22(0x14f))),this[_0x4a3c22(0x14a)]=!0x0,this[_0x4a3c22(0x1e6)][_0x4a3c22(0x1b6)][_0x4a3c22(0x149)]();}[_0x38b7c1(0x185)](_0x2c7f8f){const _0x272580=_0x38b7c1;this[_0x272580(0x170)][_0x272580(0x1b7)](),this[_0x272580(0x1e6)][_0x272580(0x1b6)][_0x272580(0x1d2)]()[_0x272580(0x1bd)](_0x225380=>_0x225380[_0x272580(0x172)](_0x2c7f8f['id']))[_0x272580(0x1e0)](_0x6fefc0=>this[_0x272580(0x184)](_0x6fefc0)),this[_0x272580(0x14a)]=!0x1,this[_0x272580(0x1e6)][_0x272580(0x1b6)][_0x272580(0x19b)]();}async[_0x38b7c1(0x143)](){const _0x43acd1=_0x38b7c1;return this[_0x43acd1(0x170)][_0x43acd1(0x17c)][_0x43acd1(0x1c6)](()=>{const _0x18ae64=_0x43acd1;this[_0x18ae64(0x14a)]=!0x1,this[_0x18ae64(0x1e6)][_0x18ae64(0x1b6)][_0x18ae64(0x19b)]();});}[_0x38b7c1(0x18e)](_0x43ca23,_0x12233d){const _0x9b169b=_0x38b7c1;this[_0x9b169b(0x1e6)][_0x9b169b(0x1a0)][_0x9b169b(0x18e)](_0x43ca23,_0x12233d);}[_0x38b7c1(0x181)](_0x4b9665){const _0x1438a0=_0x38b7c1;this[_0x1438a0(0x1e6)][_0x1438a0(0x1a0)][_0x1438a0(0x181)](_0x4b9665);}[_0x38b7c1(0x1b8)](_0x5a38c7,_0x4ed17b){const _0x41bf49=_0x38b7c1;this[_0x41bf49(0x1e6)][_0x41bf49(0x1a0)][_0x41bf49(0x1b8)](_0x5a38c7,_0x4ed17b);}[_0x38b7c1(0x14e)](_0x2b94){const _0x380b96=_0x38b7c1;this[_0x380b96(0x1e6)][_0x380b96(0x1a0)][_0x380b96(0x14e)](_0x2b94);}[_0x38b7c1(0x17a)](_0x15c3cb){const _0x3a2dbb=_0x38b7c1;this[_0x3a2dbb(0x1e6)][_0x3a2dbb(0x1a0)][_0x3a2dbb(0x17a)](_0x15c3cb);}[_0x38b7c1(0x1cc)](){const _0x43131f=_0x38b7c1;this[_0x43131f(0x1e6)][_0x43131f(0x1a0)][_0x43131f(0x1cc)]();}[_0x38b7c1(0x173)](){const _0x491718=_0x38b7c1;this[_0x491718(0x1e6)][_0x491718(0x1a0)][_0x491718(0x173)]();}[_0x38b7c1(0x1e4)](_0x3612dc,_0x1af743,_0x15de7b){const _0x468b3a=_0x38b7c1;this[_0x468b3a(0x1e6)][_0x468b3a(0x1a0)][_0x468b3a(0x1e4)](_0x3612dc,_0x1af743,_0x15de7b);}[_0x38b7c1(0x1d9)](){const _0x27c9c0=_0x38b7c1;this[_0x27c9c0(0x1e6)][_0x27c9c0(0x1a0)][_0x27c9c0(0x1d9)](),this[_0x27c9c0(0x1e6)][_0x27c9c0(0x1a0)][_0x27c9c0(0x18d)](this[_0x27c9c0(0x1ad)]());}[_0x38b7c1(0x158)](_0x40232a){const _0x3e0633=_0x38b7c1;this[_0x3e0633(0x1e6)][_0x3e0633(0x1a0)][_0x3e0633(0x158)](_0x40232a);}[_0x38b7c1(0x1aa)](_0x5dd612){const _0x4100dc=_0x38b7c1;this[_0x4100dc(0x1e6)][_0x4100dc(0x1a0)][_0x4100dc(0x16a)](_0x5dd612[_0x4100dc(0x14d)]),this[_0x4100dc(0x1e6)][_0x4100dc(0x1a0)][_0x4100dc(0x180)](_0x5dd612[_0x4100dc(0x197)]),this[_0x4100dc(0x1e6)][_0x4100dc(0x1a0)][_0x4100dc(0x18d)](this[_0x4100dc(0x1ad)](_0x5dd612));}[_0x38b7c1(0x1d8)](_0x3ea400,_0x2d0ce4){const _0xf53b74=_0x38b7c1;this[_0xf53b74(0x1e6)][_0xf53b74(0x1a0)][_0xf53b74(0x193)](_0x3ea400),_0x2d0ce4&&this[_0xf53b74(0x1e6)][_0xf53b74(0x1a0)][_0xf53b74(0x1c5)](!0x1);}[_0x38b7c1(0x1ce)](_0x2ac6e8){const _0x49b3c2=_0x38b7c1;this[_0x49b3c2(0x159)]=_0x2ac6e8;}[_0x38b7c1(0x15a)](_0x2ecf7d){const _0x56ff0c=_0x38b7c1;this[_0x56ff0c(0x1e6)][_0x56ff0c(0x1b6)][_0x56ff0c(0x15a)](_0x2ecf7d);}[_0x38b7c1(0x178)](){const _0x49e176=_0x38b7c1;this[_0x49e176(0x17f)](_0x197f9f(this[_0x49e176(0x1e3)][_0x49e176(0x1d0)],_0x49e176(0x1a7)));}[_0x38b7c1(0x17f)](_0x34ae3b,_0x2e6988=!0x1){const _0x28f4e=_0x38b7c1;if(_0x2e6988&&!_0x5c0d32()&&_0x34ae3b[_0x28f4e(0x1cd)])return this[_0x28f4e(0x1e6)][_0x28f4e(0x1cf)][_0x28f4e(0x1e1)]='',void this[_0x28f4e(0x1ba)](_0x34ae3b);this[_0x28f4e(0x1e6)][_0x28f4e(0x1cf)][_0x28f4e(0x1e1)]=_0x34ae3b;}[_0x38b7c1(0x16e)](_0x521ddb){const _0x43b047=_0x38b7c1,_0x82319d=this[_0x43b047(0x160)](_0x521ddb);this[_0x43b047(0x1e6)][_0x43b047(0x1b6)][_0x43b047(0x16e)](_0x82319d);}[_0x38b7c1(0x1ba)](_0x4e042e){const _0x452433=_0x38b7c1;let _0x5e8132=0x0;clearInterval(this[_0x452433(0x1b3)]),this[_0x452433(0x1b3)]=setInterval(()=>{const _0x1b3ac6=_0x452433;this[_0x1b3ac6(0x1e6)][_0x1b3ac6(0x1cf)][_0x1b3ac6(0x1e1)]=this[_0x1b3ac6(0x1e6)][_0x1b3ac6(0x1cf)][_0x1b3ac6(0x1e1)]+_0x4e042e[_0x5e8132],_0x5e8132++,_0x5e8132===_0x4e042e[_0x1b3ac6(0x1cd)]&&clearInterval(this[_0x1b3ac6(0x1b3)]);},0x1e);}[_0x38b7c1(0x157)](_0xe040ce){const _0x5bf9b0=_0x38b7c1;this[_0x5bf9b0(0x1e6)][_0x5bf9b0(0x1cf)][_0x5bf9b0(0x1cb)]=_0xe040ce;}[_0x38b7c1(0x160)](_0x2ef42f){const _0x3f3fc4=_0x38b7c1;return _0x2ef42f?_0x2ef42f[_0x3f3fc4(0x14d)]&&_0x2ef42f[_0x3f3fc4(0x197)]?_0x197f9f(this[_0x3f3fc4(0x1e3)][_0x3f3fc4(0x1d0)],_0x3f3fc4(0x192)):_0x2ef42f[_0x3f3fc4(0x14d)]?_0x197f9f(this[_0x3f3fc4(0x1e3)][_0x3f3fc4(0x1d0)],_0x3f3fc4(0x183)):_0x2ef42f[_0x3f3fc4(0x197)]?_0x197f9f(this[_0x3f3fc4(0x1e3)][_0x3f3fc4(0x1d0)],_0x3f3fc4(0x167)):_0x197f9f(this[_0x3f3fc4(0x1e3)][_0x3f3fc4(0x1d0)],_0x3f3fc4(0x18a)):'';}[_0x38b7c1(0x1ad)](_0x38e385){const _0x48d1d1=_0x38b7c1;return _0x38e385?_0x38e385[_0x48d1d1(0x14d)]&&_0x38e385[_0x48d1d1(0x197)]?_0x197f9f(this[_0x48d1d1(0x1e3)][_0x48d1d1(0x1d0)],_0x48d1d1(0x14b)):_0x38e385[_0x48d1d1(0x14d)]?_0x197f9f(this[_0x48d1d1(0x1e3)][_0x48d1d1(0x1d0)],_0x48d1d1(0x1ac)):_0x38e385[_0x48d1d1(0x197)]?_0x197f9f(this[_0x48d1d1(0x1e3)][_0x48d1d1(0x1d0)],_0x48d1d1(0x16c)):_0x197f9f(this[_0x48d1d1(0x1e3)][_0x48d1d1(0x1d0)],_0x48d1d1(0x1b9)):_0x197f9f(this[_0x48d1d1(0x1e3)][_0x48d1d1(0x1d0)],_0x48d1d1(0x1b9));}[_0x38b7c1(0x1be)](_0x3f79f7,_0x546ad5,_0x224fda,_0x4fa246){const _0x5c39a1=_0x38b7c1;this[_0x5c39a1(0x1e6)][_0x5c39a1(0x1be)](_0x3f79f7,_0x546ad5,_0x224fda,_0x4fa246);}[_0x38b7c1(0x17d)](_0x248a8e){const _0x58f503=_0x38b7c1;this[_0x58f503(0x1e6)][_0x58f503(0x17d)](_0x248a8e);}[_0x38b7c1(0x148)](){const _0x3ee84d=_0x38b7c1;this[_0x3ee84d(0x1e6)][_0x3ee84d(0x1a0)][_0x3ee84d(0x148)]();}[_0x38b7c1(0x1d7)](_0x199aee,_0x23ffee){const _0x28e5be=_0x38b7c1;this[_0x28e5be(0x1e6)][_0x28e5be(0x1b6)][_0x28e5be(0x1c9)](_0x199aee,_0x23ffee);}[_0x38b7c1(0x149)](){const _0x2ae409=_0x38b7c1;this[_0x2ae409(0x1e6)][_0x2ae409(0x1b6)][_0x2ae409(0x149)]();}[_0x38b7c1(0x146)](){const _0x546ae9=_0x38b7c1;this[_0x546ae9(0x1e6)][_0x546ae9(0x1a0)][_0x546ae9(0x15d)]=!0x0;}[_0x38b7c1(0x166)](){const _0x11b068=_0x38b7c1;this[_0x11b068(0x1e6)][_0x11b068(0x1a0)][_0x11b068(0x15d)]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5740aa=_0x3ed1;(function(_0x1d0926,_0x4ecba2){const _0x180f8d=_0x3ed1,_0x185540=_0x1d0926();while(!![]){try{const _0x58bb71=-parseInt(_0x180f8d(0x156))/0x1*(-parseInt(_0x180f8d(0x130))/0x2)+-parseInt(_0x180f8d(0x111))/0x3*(parseInt(_0x180f8d(0x118))/0x4)+-parseInt(_0x180f8d(0x110))/0x5*(-parseInt(_0x180f8d(0x164))/0x6)+-parseInt(_0x180f8d(0x165))/0x7*(-parseInt(_0x180f8d(0x147))/0x8)+parseInt(_0x180f8d(0x155))/0x9+parseInt(_0x180f8d(0x193))/0xa+-parseInt(_0x180f8d(0x175))/0xb*(parseInt(_0x180f8d(0x153))/0xc);if(_0x58bb71===_0x4ecba2)break;else _0x185540['push'](_0x185540['shift']());}catch(_0xe68ba4){_0x185540['push'](_0x185540['shift']());}}}(_0x2696,0xe5c18));function _0x3ed1(_0x225f33,_0x4acc9b){const _0x2696d1=_0x2696();return _0x3ed1=function(_0x3ed1b1,_0x1a71d7){_0x3ed1b1=_0x3ed1b1-0x107;let _0x141a7d=_0x2696d1[_0x3ed1b1];return _0x141a7d;},_0x3ed1(_0x225f33,_0x4acc9b);}import{CKEditorError as _0x2a5557,ObservableMixin as _0x10d4e3,uid as _0x57fc2b}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x4a8329,AIContextTextResourceType as _0x2f8119}from'../../aicore/model/aicontext.js';import{escape as _0x5036fd}from'es-toolkit/compat';import{errorsMap as _0x4ffe61}from'../../errorsmap.js';function _0x2696(){const _0x53c61e=['addFilesToContext','fire','_createContextItemFromContent','_updateResourceInContextState','contextSent','getDocument','find','Current\x20document','code','ai-chat-source-not-found','type','text/plain','updateCurrentDocument','ai-chat-resource-load-failed','delete','values','getData','_finishUploadOperation','text/markdown','ai-request-aborted','8468632gnvBiN','uploadProgressChanged','resourceStateChanged','url-','removeFromContext','sources','set','ai-chat-context-unsupported-type','clearPendingContextItems','files-','selection','SELECTION','50364wdJmKO','_mapContextItemToRequestData','3630528MDREZI','14NrDCoN','filter','_convertTextResourceToFile','removeSelectionFromContext','map','uploadDocument','addSelectionToContext','mapContextItemsToRequestData','stack','URL','uiId','_addToConversationContextItem','isReadOnly','abortController','66tjVqGi','7KYHAbl','text/html','_startUploadOperation','init','isHidden','_ongoingUploadOperations','File','addCurrentDocumentToContext','from','_finishContextItemLoading','getPendingContextItems','isInContext','message','uploadFile','data','_addContextOptionsState','10351pALTan','FILE','_setAddContextOptionsDefaultState','document','contextItemAdded','addUrlToContext','_pendingContextItems','abort','urls','isCurrentDocumentInContext','forEach','_conversationContextItems','error','sourceResourcesLoaded','_config','_removeContextItem','_toggleAddCurrentDocumentOptionVisibility','url','loadSourceResources','_findSourceIdsByResourceId','sessionId','object\x20with\x20content\x20and\x20type\x20properties','get','fetchDocument','current-document','getId','ai-chat-url-upload-failed','_addContextItem','getResources','has','6136630SZlfBM','addContextOptionsChanged','_isResourceInContext','start','populateFromMessage','object','MARKDOWN','push','TEXT','ai-chat-resource-no-data','addToConversationContext','length','ai-chat-document-upload-failed','isCurrentDocumentInConversation','668165uuvJaB','175704eHEmFm','_ongoingUploads','string','files','ai-chat-file-upload-failed','name','file-','24DEfPcw','resources','contextItemLoadingEnded','HTML','size','contextItemRemoved','_ownerId','version','enabled','ai-chat-context-invalid-data','_connector','end','_getCustomSourcesInitialState','ai-chat-source-resources-load-failed','hidden','getSentContextItems','DOCUMENT','resourceId','addResourceToContext','content','startsWith','uploadUrl','attributes','all','242324IjtZhg','isSelectionInContext','label'];_0x2696=function(){return _0x53c61e;};return _0x2696();}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x5740aa(0x179),_0x5740aa(0x11d),_0x5740aa(0x11a),_0x5740aa(0x137),_0x5740aa(0x181),_0x5740aa(0x194),_0x5740aa(0x182),_0x5740aa(0x149),_0x5740aa(0x148)];export class AIChatContext extends _0x10d4e3(){[_0x5740aa(0x122)];[_0x5740aa(0x183)];[_0x5740aa(0x11e)];constructor({connector:_0x34a9ff,config:_0xef53cc,ownerId:_0x2006d9}){const _0x3f6bc4=_0x5740aa;super(),this[_0x3f6bc4(0x122)]=_0x34a9ff,this[_0x3f6bc4(0x183)]=_0xef53cc,this[_0x3f6bc4(0x11e)]=_0x2006d9;}[_0x5740aa(0x168)](){const _0x4cdd6f=_0x5740aa;this[_0x4cdd6f(0x17b)]=new Map(),this[_0x4cdd6f(0x180)]=new Map(),this[_0x4cdd6f(0x112)]=new Map(),this[_0x4cdd6f(0x16a)]=new Map(),this[_0x4cdd6f(0x177)]();}[_0x5740aa(0x16f)](){const _0x3d4ec0=_0x5740aa;return this[_0x3d4ec0(0x17b)];}async[_0x5740aa(0x197)](_0x539a61){const _0x2b26f8=_0x5740aa,_0x53c591=await this[_0x2b26f8(0x135)](_0x539a61);return this[_0x2b26f8(0x161)](_0x53c591),_0x2b26f8(0x18d)===_0x53c591[_0x2b26f8(0x160)]&&this[_0x2b26f8(0x185)](),_0x53c591;}async[_0x5740aa(0x135)](_0x93ac0){const _0x3084ba=_0x5740aa;if(_0x93ac0[_0x3084ba(0x13d)]===_0x4a8329[_0x3084ba(0x128)]){const _0x565d03=await this[_0x3084ba(0x122)][_0x3084ba(0x18c)](this[_0x3084ba(0x11e)],_0x93ac0['id'])[_0x3084ba(0x138)]();return{'id':_0x3084ba(0x18d),'uiId':_0x3084ba(0x18d),'label':_0x3084ba(0x13a),'type':_0x93ac0[_0x3084ba(0x13d)],'content':_0x565d03[_0x3084ba(0x12b)],'hidden':this[_0x3084ba(0x180)][_0x3084ba(0x192)](_0x3084ba(0x18d)),'version':_0x565d03[_0x3084ba(0x12e)]?.[_0x3084ba(0x11f)],'sessionId':_0x565d03[_0x3084ba(0x12e)]?.[_0x3084ba(0x189)]};}return{'id':_0x93ac0['id'],'uiId':_0x93ac0['id'],'label':_0x93ac0[_0x3084ba(0x12e)]?.[_0x3084ba(0x132)]||_0x93ac0[_0x3084ba(0x116)]||_0x93ac0[_0x3084ba(0x186)]||_0x93ac0['id'],'type':_0x93ac0[_0x3084ba(0x13d)],..._0x93ac0?.[_0x3084ba(0x12e)]?.[_0x3084ba(0x129)]?{'resourceId':_0x93ac0[_0x3084ba(0x12e)]?.[_0x3084ba(0x129)]}:{}};}[_0x5740aa(0x127)](){const _0x1802a7=_0x5740aa;return new Map(this[_0x1802a7(0x180)]);}[_0x5740aa(0x14b)](_0x271253){const _0x1b0e8d=_0x5740aa,_0x269fb2=this[_0x1b0e8d(0x17b)][_0x1b0e8d(0x18b)](_0x271253);_0x269fb2?.[_0x1b0e8d(0x162)]||this[_0x1b0e8d(0x184)](_0x271253);}[_0x5740aa(0x14f)](){const _0x2a93b3=_0x5740aa;if(0x0===this[_0x2a93b3(0x17b)][_0x2a93b3(0x11c)])return;for(const _0x424aa3 of this[_0x2a93b3(0x17b)][_0x2a93b3(0x142)]())this[_0x2a93b3(0x184)](_0x424aa3[_0x2a93b3(0x160)]);const _0x52d215=this[_0x2a93b3(0x180)][_0x2a93b3(0x18b)](_0x2a93b3(0x18d))||this[_0x2a93b3(0x17b)][_0x2a93b3(0x18b)](_0x2a93b3(0x18d));_0x52d215&&this[_0x2a93b3(0x190)]({..._0x52d215,'isReadOnly':!0x0,'hidden':!0x0});}[_0x5740aa(0x10c)](_0x18d115){const _0x3d3696=_0x5740aa;for(const _0x175e3f of _0x18d115[_0x3d3696(0x142)]())this[_0x3d3696(0x161)](_0x175e3f);this[_0x3d3696(0x14f)](),this[_0x3d3696(0x134)](_0x3d3696(0x137),{'contextItems':Array[_0x3d3696(0x16d)](this[_0x3d3696(0x127)]()[_0x3d3696(0x142)]())});}[_0x5740aa(0x17e)](){const _0x42b2b1=_0x5740aa;return this[_0x42b2b1(0x17b)][_0x42b2b1(0x192)](_0x42b2b1(0x18d));}[_0x5740aa(0x131)](){const _0x457861=_0x5740aa;return this[_0x457861(0x17b)][_0x457861(0x192)](_0x457861(0x151));}[_0x5740aa(0x10f)](){const _0x2dc626=_0x5740aa;return this[_0x2dc626(0x180)][_0x2dc626(0x192)](_0x2dc626(0x18d));}static[_0x5740aa(0x15d)](_0x2615ce){const _0x1590e4=_0x5740aa;return Array[_0x1590e4(0x16d)](_0x2615ce[_0x1590e4(0x142)]())[_0x1590e4(0x15a)](_0x56b115=>this[_0x1590e4(0x154)](_0x56b115))[_0x1590e4(0x157)](_0x48e095=>null!==_0x48e095);}async[_0x5740aa(0x133)](_0x314bf7,_0x36bed1,_0xadb6f0=_0x4a8329[_0x5740aa(0x176)]){const _0x4149d2=_0x5740aa,_0x59af53=_0x4149d2(0x150)+_0x57fc2b();this[_0x4149d2(0x167)](_0x59af53);try{await Promise[_0x4149d2(0x12f)](_0x314bf7[_0x4149d2(0x15a)](async _0x23f43d=>{const _0x28eaf0=_0x4149d2,_0x28c748=_0x28eaf0(0x117)+_0x57fc2b(),_0x32dec6=_0x5036fd(_0x23f43d[_0x28eaf0(0x116)]);try{this[_0x28eaf0(0x190)]({'type':_0xadb6f0,'label':_0x36bed1?.[_0x28eaf0(0x132)]||_0x32dec6,'uiId':_0x28c748,'resourceId':_0x36bed1?.[_0x28eaf0(0x129)]},!0x0);const _0x454bb1=this[_0x28eaf0(0x122)][_0x28eaf0(0x172)](this[_0x28eaf0(0x11e)],_0x23f43d,_0x36bed1);this[_0x28eaf0(0x112)][_0x28eaf0(0x14d)](_0x28c748,_0x454bb1[_0x28eaf0(0x163)]);const {id:_0x573bfa}=await _0x454bb1[_0x28eaf0(0x18e)]();this[_0x28eaf0(0x112)][_0x28eaf0(0x141)](_0x28c748),this[_0x28eaf0(0x16e)]({'type':_0xadb6f0,'id':_0x573bfa,'label':_0x36bed1?.[_0x28eaf0(0x132)]||_0x32dec6,'uiId':_0x28c748,'resourceId':_0x36bed1?.[_0x28eaf0(0x129)]},!0x1);}catch(_0x326169){this[_0x28eaf0(0x112)][_0x28eaf0(0x141)](_0x28c748);if(!(_0x326169 instanceof _0x2a5557&&_0x326169[_0x28eaf0(0x171)][_0x28eaf0(0x12c)](_0x28eaf0(0x146)))){const _0xff7cd4=_0x4ffe61[_0x28eaf0(0x18b)](_0x326169[_0x28eaf0(0x13b)])||_0x28eaf0(0x115),_0x230693=new _0x2a5557(_0xff7cd4,null,{'fileName':_0x32dec6,..._0x326169});_0x230693[_0x28eaf0(0x15e)]=_0x326169[_0x28eaf0(0x15e)],this[_0x28eaf0(0x134)](_0x28eaf0(0x181),{'error':_0x230693});}this[_0x28eaf0(0x184)](_0x28c748);}}));}finally{this[_0x4149d2(0x144)](_0x59af53);}}[_0x5740aa(0x16c)](_0x31fece){const _0xaa7fc6=_0x5740aa;if(this[_0xaa7fc6(0x17e)]()||!this[_0xaa7fc6(0x174)][_0xaa7fc6(0x178)][_0xaa7fc6(0x120)])return;const _0x37a28f={'type':_0x4a8329[_0xaa7fc6(0x128)],'uiId':_0xaa7fc6(0x18d),'label':_0x31fece,'isReadOnly':this[_0xaa7fc6(0x180)][_0xaa7fc6(0x192)](_0xaa7fc6(0x18d)),'hidden':this[_0xaa7fc6(0x180)][_0xaa7fc6(0x192)](_0xaa7fc6(0x18d))};this[_0xaa7fc6(0x190)](_0x37a28f);}async[_0x5740aa(0x13f)](_0x4e95c3,_0x3ad3b8,_0x2bf4fc,_0x481219){const _0x33ded1=_0x5740aa,_0x483b79=this[_0x33ded1(0x17b)][_0x33ded1(0x18b)](_0x33ded1(0x18d));if(_0x483b79&&_0x4e95c3){_0x483b79[_0x33ded1(0x151)]=_0x481219?_0x481219[_0x33ded1(0x15a)](_0x5a84a2=>({'start':_0x5a84a2[_0x33ded1(0x196)],'end':_0x5a84a2[_0x33ded1(0x123)]})):[];try{if(_0x483b79[_0x33ded1(0x11f)]===_0x3ad3b8)return;const {id:_0x5ee9e}=await this[_0x33ded1(0x122)][_0x33ded1(0x15b)](this[_0x33ded1(0x11e)],_0x4e95c3,{'version':_0x3ad3b8,'sessionId':_0x2bf4fc})[_0x33ded1(0x18e)]();_0x483b79['id']=_0x5ee9e,_0x483b79[_0x33ded1(0x12b)]=_0x4e95c3,_0x483b79[_0x33ded1(0x11f)]=_0x3ad3b8,_0x483b79[_0x33ded1(0x189)]=_0x2bf4fc;}catch(_0x4a6b5c){const _0xadfd8f=new _0x2a5557(_0x33ded1(0x10e),null);_0xadfd8f[_0x33ded1(0x15e)]=_0x4a6b5c[_0x33ded1(0x15e)],this[_0x33ded1(0x134)](_0x33ded1(0x181),{'error':_0xadfd8f});}}}[_0x5740aa(0x15c)](_0x2c6922){const _0x44cc78=_0x5740aa;this[_0x44cc78(0x190)]({'type':_0x4a8329[_0x44cc78(0x152)],'label':_0x2c6922,'uiId':_0x44cc78(0x151),'content':_0x2c6922});}[_0x5740aa(0x159)](){const _0x493b03=_0x5740aa;this[_0x493b03(0x184)](_0x493b03(0x151));}async[_0x5740aa(0x17a)](_0x20789f,_0x1b03f5){const _0x87ae51=_0x5740aa,_0xd51db4=_0x87ae51(0x14a)+_0x57fc2b();this[_0x87ae51(0x167)](_0xd51db4);const _0xad6e31=_0x87ae51(0x14a)+_0x57fc2b();try{this[_0x87ae51(0x190)]({'type':_0x4a8329[_0x87ae51(0x15f)],'label':_0x1b03f5?.[_0x87ae51(0x132)]||_0x20789f,'uiId':_0xad6e31,'resourceId':_0x1b03f5?.[_0x87ae51(0x129)]},!0x0);const _0x277b35=this[_0x87ae51(0x122)][_0x87ae51(0x12d)](this[_0x87ae51(0x11e)],_0x20789f,_0x1b03f5);this[_0x87ae51(0x112)][_0x87ae51(0x14d)](_0xad6e31,_0x277b35[_0x87ae51(0x163)]);const {id:_0x52a679}=await _0x277b35[_0x87ae51(0x18e)]();this[_0x87ae51(0x112)][_0x87ae51(0x141)](_0xad6e31),this[_0x87ae51(0x16e)]({'type':_0x4a8329[_0x87ae51(0x15f)],'id':_0x52a679,'label':_0x1b03f5?.[_0x87ae51(0x132)]||_0x20789f,'uiId':_0xad6e31,'resourceId':_0x1b03f5?.[_0x87ae51(0x129)]},!0x1);}catch(_0x2b87a7){this[_0x87ae51(0x112)][_0x87ae51(0x141)](_0xad6e31),(_0x2b87a7[_0x87ae51(0x171)][_0x87ae51(0x12c)](_0x87ae51(0x146))||this[_0x87ae51(0x134)](_0x87ae51(0x181),{'error':new _0x2a5557(_0x87ae51(0x18f),this,{'url':_0x20789f,'originalError':_0x2b87a7}),'url':_0x20789f}),this[_0x87ae51(0x184)](_0xad6e31));}finally{this[_0x87ae51(0x144)](_0xd51db4);}}async[_0x5740aa(0x187)](_0x27e95d,_0x5d3dd0,_0x1b7826){const _0x2df96a=_0x5740aa,_0x29519f=this[_0x2df96a(0x174)][_0x2df96a(0x14c)][_0x2df96a(0x139)](_0xee6b45=>_0xee6b45['id']===_0x27e95d);if(!_0x29519f)return this[_0x2df96a(0x134)](_0x2df96a(0x181),{'error':new _0x2a5557(_0x2df96a(0x13c),this,{'sourceId':_0x27e95d}),'sourceId':_0x27e95d}),[];try{const _0xd9c874=(await _0x29519f[_0x2df96a(0x191)](_0x5d3dd0))[_0x2df96a(0x15a)](_0x532dd2=>{const _0x161669=_0x2df96a,_0x4dbfc3=this[_0x161669(0x195)](_0x532dd2['id']);return{..._0x532dd2,'isInContext':_0x4dbfc3};});return _0x29519f[_0x2df96a(0x119)]=_0xd9c874,this[_0x2df96a(0x134)](_0x2df96a(0x182),{'sourceId':_0x27e95d,'source':_0x29519f,'resources':_0xd9c874,'uid':_0x1b7826}),_0xd9c874;}catch(_0x452645){return this[_0x2df96a(0x134)](_0x2df96a(0x181),{'error':new _0x2a5557(_0x2df96a(0x125),this,{'sourceId':_0x27e95d,'originalError':_0x452645}),'sourceId':_0x27e95d,'sourceLabel':_0x29519f[_0x2df96a(0x132)]}),[];}}async[_0x5740aa(0x12a)](_0x4ed33c,_0x50187e){const _0xe93d72=_0x5740aa;if(this[_0xe93d72(0x195)](_0x50187e['id']))return;let _0x38c81d=_0x50187e[_0xe93d72(0x173)];if(!_0x38c81d&&_0x4ed33c[_0xe93d72(0x143)])try{_0x38c81d=await _0x4ed33c[_0xe93d72(0x143)](_0x50187e['id']);}catch(_0x542d2a){return void this[_0xe93d72(0x134)](_0xe93d72(0x181),{'error':new _0x2a5557(_0xe93d72(0x140),this,{'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id'],'originalError':_0x542d2a}),'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id']});}if(_0x38c81d)switch(_0x50187e[_0xe93d72(0x13d)]){case _0x4a8329[_0xe93d72(0x15f)]:if(_0xe93d72(0x113)!=typeof _0x38c81d)return void this[_0xe93d72(0x134)](_0xe93d72(0x181),{'error':new _0x2a5557(_0xe93d72(0x121),this,{'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id'],'expectedType':_0xe93d72(0x113),'actualType':typeof _0x38c81d}),'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id']});await this[_0xe93d72(0x17a)](_0x38c81d,{'label':_0x50187e[_0xe93d72(0x132)],'resourceId':_0x50187e['id']});break;case _0x4a8329[_0xe93d72(0x176)]:if(!(_0x38c81d instanceof File))return void this[_0xe93d72(0x134)](_0xe93d72(0x181),{'error':new _0x2a5557(_0xe93d72(0x121),this,{'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id'],'expectedType':_0xe93d72(0x16b),'actualType':typeof _0x38c81d}),'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id']});await this[_0xe93d72(0x133)]([_0x38c81d],{'label':_0x50187e[_0xe93d72(0x132)],'resourceId':_0x50187e['id']});break;case _0x4a8329[_0xe93d72(0x10a)]:if(_0xe93d72(0x107)!=typeof _0x38c81d||!(_0xe93d72(0x12b)in _0x38c81d)||!(_0xe93d72(0x13d)in _0x38c81d))return void this[_0xe93d72(0x134)](_0xe93d72(0x181),{'error':new _0x2a5557(_0xe93d72(0x121),this,{'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id'],'expectedType':_0xe93d72(0x18a),'actualType':typeof _0x38c81d}),'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id']});_0x38c81d=AIChatContext[_0xe93d72(0x158)](_0x38c81d,_0x50187e[_0xe93d72(0x132)]),await this[_0xe93d72(0x133)]([_0x38c81d],{'label':_0x50187e[_0xe93d72(0x132)],'resourceId':_0x50187e['id']},_0x4a8329[_0xe93d72(0x10a)]);break;default:this[_0xe93d72(0x134)](_0xe93d72(0x181),{'error':new _0x2a5557(_0xe93d72(0x14e),this,{'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id'],'resourceType':_0x50187e[_0xe93d72(0x13d)]}),'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id']});}else this[_0xe93d72(0x134)](_0xe93d72(0x181),{'error':new _0x2a5557(_0xe93d72(0x10b),this,{'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id']}),'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id']});}static[_0x5740aa(0x158)](_0x17cbca,_0xe32b23){const _0x1c3ceb=_0x5740aa;switch(_0x17cbca[_0x1c3ceb(0x13d)]){case _0x2f8119[_0x1c3ceb(0x108)]:return new File([_0x17cbca[_0x1c3ceb(0x12b)]],_0xe32b23,{'type':_0x1c3ceb(0x145)});case _0x2f8119[_0x1c3ceb(0x11b)]:return new File([_0x17cbca[_0x1c3ceb(0x12b)]],_0xe32b23,{'type':_0x1c3ceb(0x166)});default:return new File([_0x17cbca[_0x1c3ceb(0x12b)]],_0xe32b23,{'type':_0x1c3ceb(0x13e)});}}static[_0x5740aa(0x154)](_0x11d2ac){const _0xae013b=_0x5740aa;switch(_0x11d2ac[_0xae013b(0x13d)]){case _0x4a8329[_0xae013b(0x176)]:return{'type':_0x4a8329[_0xae013b(0x176)],'id':_0x11d2ac['id']};case _0x4a8329[_0xae013b(0x15f)]:return{'type':_0x4a8329[_0xae013b(0x15f)],'id':_0x11d2ac['id']};case _0x4a8329[_0xae013b(0x128)]:return{'type':_0x4a8329[_0xae013b(0x128)],'id':_0x11d2ac['id'],..._0x11d2ac[_0xae013b(0x151)]?.[_0xae013b(0x10d)]&&{'selection':_0x11d2ac[_0xae013b(0x151)]}};case _0x4a8329[_0xae013b(0x10a)]:return{'type':_0x4a8329[_0xae013b(0x176)],'id':_0x11d2ac['id']};default:return null;}}[_0x5740aa(0x190)](_0x432858,_0x4d52e0=!0x1){const _0x183017=_0x5740aa;if(this[_0x183017(0x17b)][_0x183017(0x14d)](_0x432858[_0x183017(0x160)],_0x432858),_0x432858[_0x183017(0x126)]||this[_0x183017(0x134)](_0x183017(0x179),{'contextItem':_0x432858,'isLoading':_0x4d52e0}),_0x183017(0x18d)===_0x432858[_0x183017(0x160)]&&this[_0x183017(0x185)](),_0x432858[_0x183017(0x129)]){const _0x3048fa=this[_0x183017(0x188)](_0x432858[_0x183017(0x129)]);_0x3048fa&&_0x3048fa[_0x183017(0x17f)](_0x3afbaf=>{const _0x50dd25=_0x183017;this[_0x50dd25(0x136)](_0x3afbaf,_0x432858[_0x50dd25(0x129)],!0x0);});}}[_0x5740aa(0x184)](_0x5c55e3){const _0x43fb0f=_0x5740aa,_0x1240f6=this[_0x43fb0f(0x17b)][_0x43fb0f(0x18b)](_0x5c55e3),_0x9672ef=this[_0x43fb0f(0x112)][_0x43fb0f(0x18b)](_0x5c55e3);if(_0x9672ef&&(_0x9672ef[_0x43fb0f(0x17c)](),this[_0x43fb0f(0x112)][_0x43fb0f(0x141)](_0x5c55e3)),_0x1240f6?.[_0x43fb0f(0x129)]){const _0x275086=this[_0x43fb0f(0x188)](_0x1240f6[_0x43fb0f(0x129)]);_0x275086&&_0x275086[_0x43fb0f(0x17f)](_0x4e0913=>{const _0x5158b0=_0x43fb0f;this[_0x5158b0(0x136)](_0x4e0913,_0x1240f6[_0x5158b0(0x129)],!0x1);});}this[_0x43fb0f(0x17b)][_0x43fb0f(0x141)](_0x5c55e3),this[_0x43fb0f(0x134)](_0x43fb0f(0x11d),{'uiId':_0x5c55e3,'type':_0x1240f6?.[_0x43fb0f(0x13d)]}),_0x43fb0f(0x18d)===_0x5c55e3&&this[_0x43fb0f(0x185)]();}[_0x5740aa(0x16e)](_0x2fa98f,_0x35bcec){const _0x38a680=_0x5740aa;if(this[_0x38a680(0x17b)][_0x38a680(0x192)](_0x2fa98f[_0x38a680(0x160)])&&(this[_0x38a680(0x17b)][_0x38a680(0x14d)](_0x2fa98f[_0x38a680(0x160)],_0x2fa98f),this[_0x38a680(0x134)](_0x38a680(0x11a),{'contextItem':_0x2fa98f,'isLoading':_0x35bcec}),_0x2fa98f[_0x38a680(0x129)])){const _0x27a763=this[_0x38a680(0x188)](_0x2fa98f[_0x38a680(0x129)]);_0x27a763&&_0x27a763[_0x38a680(0x17f)](_0xeb8ea8=>{const _0x14e276=_0x38a680;this[_0x14e276(0x136)](_0xeb8ea8,_0x2fa98f[_0x14e276(0x129)],!0x0);});}}[_0x5740aa(0x161)](_0x3abb6f){const _0x17a9c4=_0x5740aa;this[_0x17a9c4(0x180)][_0x17a9c4(0x14d)](_0x3abb6f[_0x17a9c4(0x160)],_0x3abb6f);}[_0x5740aa(0x177)](){const _0x27c7e=_0x5740aa;this[_0x27c7e(0x174)]={'document':{'enabled':!0x1!==this[_0x27c7e(0x183)]?.[_0x27c7e(0x178)]?.[_0x27c7e(0x120)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x27c7e(0x183)]?.[_0x27c7e(0x17d)]?.[_0x27c7e(0x120)]},'files':{'enabled':!0x1!==this[_0x27c7e(0x183)]?.[_0x27c7e(0x114)]?.[_0x27c7e(0x120)]},'sources':this[_0x27c7e(0x124)]()},this[_0x27c7e(0x134)](_0x27c7e(0x194),{'options':this[_0x27c7e(0x174)]});}[_0x5740aa(0x124)](){const _0x1993c9=_0x5740aa;return this[_0x1993c9(0x183)]?.[_0x1993c9(0x14c)]?.[_0x1993c9(0x15a)](_0x2f37b4=>({..._0x2f37b4,'resources':[]}))??[];}[_0x5740aa(0x185)](){const _0x31b211=_0x5740aa,_0x3e892a=this[_0x31b211(0x17e)]()||this[_0x31b211(0x10f)]();this[_0x31b211(0x174)][_0x31b211(0x178)][_0x31b211(0x169)]=_0x3e892a,this[_0x31b211(0x134)](_0x31b211(0x194),{'options':this[_0x31b211(0x174)]});}[_0x5740aa(0x195)](_0x2f1c5a){const _0x43d838=_0x5740aa;for(const _0x24f00c of this[_0x43d838(0x17b)][_0x43d838(0x142)]())if(_0x24f00c[_0x43d838(0x129)]===_0x2f1c5a)return!0x0;for(const _0x1b8e9b of this[_0x43d838(0x180)][_0x43d838(0x142)]())if(_0x1b8e9b[_0x43d838(0x129)]===_0x2f1c5a)return!0x0;return!0x1;}[_0x5740aa(0x188)](_0x5039dc){const _0x17dc68=_0x5740aa,_0x5c2703=[];for(const _0x3d8ba9 of this[_0x17dc68(0x174)][_0x17dc68(0x14c)]){_0x3d8ba9[_0x17dc68(0x119)][_0x17dc68(0x139)](_0x596050=>_0x596050['id']===_0x5039dc)&&_0x5c2703[_0x17dc68(0x109)](_0x3d8ba9['id']);}return 0x0===_0x5c2703[_0x17dc68(0x10d)]?null:_0x5c2703;}[_0x5740aa(0x136)](_0xacc381,_0x545faf,_0x1b0ddd){const _0x39ae65=_0x5740aa,_0x512eea=this[_0x39ae65(0x174)][_0x39ae65(0x14c)][_0x39ae65(0x139)](_0x1c88a8=>_0x1c88a8['id']===_0xacc381);if(!_0x512eea)return;const _0x1b4056=_0x512eea[_0x39ae65(0x119)][_0x39ae65(0x139)](_0x125737=>_0x125737['id']===_0x545faf);_0x1b4056&&(_0x1b4056[_0x39ae65(0x170)]=_0x1b0ddd,this[_0x39ae65(0x134)](_0x39ae65(0x149),{'sourceId':_0xacc381,'resourceId':_0x545faf,'isInContext':_0x1b0ddd}));}[_0x5740aa(0x167)](_0x6ce028){const _0x32edf9=_0x5740aa;this[_0x32edf9(0x16a)][_0x32edf9(0x14d)](_0x6ce028,!0x0),this[_0x32edf9(0x16a)][_0x32edf9(0x11c)]&&this[_0x32edf9(0x134)](_0x32edf9(0x148),{'isUploadInProgress':!0x0});}[_0x5740aa(0x144)](_0x400dee){const _0x3e047b=_0x5740aa;this[_0x3e047b(0x16a)][_0x3e047b(0x141)](_0x400dee),0x0===this[_0x3e047b(0x16a)][_0x3e047b(0x11c)]&&this[_0x3e047b(0x134)](_0x3e047b(0x148),{'isUploadInProgress':!0x1});}}
23
+ const _0x5ec5ae=_0x3ea5;(function(_0xdfa081,_0x1531b9){const _0x3dc568=_0x3ea5,_0x6c895a=_0xdfa081();while(!![]){try{const _0x45c54b=parseInt(_0x3dc568(0xf1))/0x1*(parseInt(_0x3dc568(0xfb))/0x2)+-parseInt(_0x3dc568(0x178))/0x3*(-parseInt(_0x3dc568(0x15b))/0x4)+parseInt(_0x3dc568(0x124))/0x5*(-parseInt(_0x3dc568(0x103))/0x6)+-parseInt(_0x3dc568(0x15f))/0x7+-parseInt(_0x3dc568(0x106))/0x8+parseInt(_0x3dc568(0x160))/0x9+-parseInt(_0x3dc568(0x156))/0xa*(-parseInt(_0x3dc568(0x11f))/0xb);if(_0x45c54b===_0x1531b9)break;else _0x6c895a['push'](_0x6c895a['shift']());}catch(_0x1af625){_0x6c895a['push'](_0x6c895a['shift']());}}}(_0x539d,0x5f83e));function _0x3ea5(_0x340c52,_0x31c179){const _0x539d1d=_0x539d();return _0x3ea5=function(_0x3ea545,_0x3d907b){_0x3ea545=_0x3ea545-0xf0;let _0x16da66=_0x539d1d[_0x3ea545];return _0x16da66;},_0x3ea5(_0x340c52,_0x31c179);}import{CKEditorError as _0x3604db,ObservableMixin as _0x29fa72,uid as _0x4c1841}from'ckeditor5/src/utils.js';function _0x539d(){const _0x374b88=['addSelectionToContext','document','_toggleAddCurrentDocumentOptionVisibility','text/plain','enabled','files','file-','_finishUploadOperation','1829476BQSrrX','delete','selection','_config','set','8745wWXCbM','addToConversationContext','_finishContextItemLoading','url-','ai-chat-context-invalid-data','uploadProgressChanged','data','length','text/markdown','isCurrentDocumentInContext','ai-chat-file-upload-failed','_isResourceInContext','ai-chat-source-resources-load-failed','uiId','_pendingContextItems','updateCurrentDocument','getDocument','uploadDocument','getResources','File','filter','sources','uploadUrl','HTML','getSentContextItems','isHidden','populateFromMessage','contextItemRemoved','message','isSelectionInContext','ai-chat-context-unsupported-type','_ongoingUploads','loadSourceResources','DOCUMENT','urls','_startUploadOperation','_conversationContextItems','map','push','text/html','uploadFile','url','TEXT','sessionId','ai-request-aborted','mapContextItemsToRequestData','_updateResourceInContextState','current-document','ai-chat-source-not-found','getPendingContextItems','20TVRxOm','abort','values','getId','FILE','764bVNqom','addResourceToContext','_findSourceIdsByResourceId','type','2154600KAfecG','441306QxyDUx','removeFromContext','ai-chat-document-upload-failed','_getCustomSourcesInitialState','stack','has','version','_createContextItemFromContent','sourceResourcesLoaded','object','startsWith','getData','contextItemLoadingEnded','forEach','start','name','isReadOnly','files-','ai-chat-resource-load-failed','SELECTION','_mapContextItemToRequestData','end','fetchDocument','_connector','1131IqYuMc','addUrlToContext','abortController','MARKDOWN','size','code','_ongoingUploadOperations','attributes','addContextOptionsChanged','615225FSTogM','_addContextItem','contextSent','removeSelectionFromContext','content','error','_removeContextItem','_addToConversationContextItem','object\x20with\x20content\x20and\x20type\x20properties','addCurrentDocumentToContext','2bEBfMu','URL','isInContext','contextItemAdded','addFilesToContext','resourceId','ai-chat-url-upload-failed','ai-chat-resource-no-data','948UXyutV','resourceStateChanged','isCurrentDocumentInConversation','748208dQFFyL','find','_convertTextResourceToFile','Current\x20document','fire','label','all','resources','hidden','_setAddContextOptionsDefaultState','clearPendingContextItems','_ownerId','_addContextOptionsState','string','get','init','from'];_0x539d=function(){return _0x374b88;};return _0x539d();}import{AIContextItemType as _0x3d2906,AIContextTextResourceType as _0x157c6b}from'../../aicore/model/aicontext.js';import{escape as _0x82beee}from'es-toolkit/compat';import{errorsMap as _0x3605a1}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x5ec5ae(0xfe),_0x5ec5ae(0x13f),_0x5ec5ae(0x16c),_0x5ec5ae(0xf3),_0x5ec5ae(0xf6),_0x5ec5ae(0xf0),_0x5ec5ae(0x168),_0x5ec5ae(0x104),_0x5ec5ae(0x129)];export class AIChatContext extends _0x29fa72(){[_0x5ec5ae(0x177)];[_0x5ec5ae(0x122)];[_0x5ec5ae(0x111)];constructor({connector:_0x550206,config:_0x2c2121,ownerId:_0x19301d}){const _0xa49030=_0x5ec5ae;super(),this[_0xa49030(0x177)]=_0x550206,this[_0xa49030(0x122)]=_0x2c2121,this[_0xa49030(0x111)]=_0x19301d;}[_0x5ec5ae(0x115)](){const _0x26a87b=_0x5ec5ae;this[_0x26a87b(0x132)]=new Map(),this[_0x26a87b(0x148)]=new Map(),this[_0x26a87b(0x143)]=new Map(),this[_0x26a87b(0x17e)]=new Map(),this[_0x26a87b(0x10f)]();}[_0x5ec5ae(0x155)](){const _0x23d999=_0x5ec5ae;return this[_0x23d999(0x132)];}async[_0x5ec5ae(0x13e)](_0x388689){const _0x59d03f=_0x5ec5ae,_0x3c2bd0=await this[_0x59d03f(0x167)](_0x388689);return this[_0x59d03f(0xf8)](_0x3c2bd0),_0x59d03f(0x153)===_0x3c2bd0[_0x59d03f(0x131)]&&this[_0x59d03f(0x119)](),_0x3c2bd0;}async[_0x5ec5ae(0x167)](_0x2229e5){const _0x470295=_0x5ec5ae;if(_0x2229e5[_0x470295(0x15e)]===_0x3d2906[_0x470295(0x145)]){const _0x21eb36=await this[_0x470295(0x177)][_0x470295(0x176)](this[_0x470295(0x111)],_0x2229e5['id'])[_0x470295(0x134)]();return{'id':_0x470295(0x153),'uiId':_0x470295(0x153),'label':_0x470295(0x109),'type':_0x2229e5[_0x470295(0x15e)],'content':_0x21eb36[_0x470295(0xf5)],'hidden':this[_0x470295(0x148)][_0x470295(0x165)](_0x470295(0x153)),'version':_0x21eb36[_0x470295(0x17f)]?.[_0x470295(0x166)],'sessionId':_0x21eb36[_0x470295(0x17f)]?.[_0x470295(0x14f)]};}return{'id':_0x2229e5['id'],'uiId':_0x2229e5['id'],'label':_0x2229e5[_0x470295(0x17f)]?.[_0x470295(0x10b)]||_0x2229e5[_0x470295(0x16f)]||_0x2229e5[_0x470295(0x14d)]||_0x2229e5['id'],'type':_0x2229e5[_0x470295(0x15e)],..._0x2229e5?.[_0x470295(0x17f)]?.[_0x470295(0x100)]?{'resourceId':_0x2229e5[_0x470295(0x17f)]?.[_0x470295(0x100)]}:{}};}[_0x5ec5ae(0x13c)](){const _0x4b1e26=_0x5ec5ae;return new Map(this[_0x4b1e26(0x148)]);}[_0x5ec5ae(0x161)](_0x372ff7){const _0x4f1a4d=_0x5ec5ae,_0x1d5829=this[_0x4f1a4d(0x132)][_0x4f1a4d(0x114)](_0x372ff7);_0x1d5829?.[_0x4f1a4d(0x170)]||this[_0x4f1a4d(0xf7)](_0x372ff7);}[_0x5ec5ae(0x110)](){const _0x4499f6=_0x5ec5ae;if(0x0===this[_0x4499f6(0x132)][_0x4499f6(0x17c)])return;for(const _0x59f59f of this[_0x4499f6(0x132)][_0x4499f6(0x158)]())this[_0x4499f6(0xf7)](_0x59f59f[_0x4499f6(0x131)]);const _0x1de774=this[_0x4499f6(0x148)][_0x4499f6(0x114)](_0x4499f6(0x153))||this[_0x4499f6(0x132)][_0x4499f6(0x114)](_0x4499f6(0x153));_0x1de774&&this[_0x4499f6(0xf2)]({..._0x1de774,'isReadOnly':!0x0,'hidden':!0x0});}[_0x5ec5ae(0x125)](_0x41f288){const _0x419096=_0x5ec5ae;for(const _0x5c970e of _0x41f288[_0x419096(0x158)]())this[_0x419096(0xf8)](_0x5c970e);this[_0x419096(0x110)](),this[_0x419096(0x10a)](_0x419096(0xf3),{'contextItems':Array[_0x419096(0x116)](this[_0x419096(0x13c)]()[_0x419096(0x158)]())});}[_0x5ec5ae(0x12d)](){const _0x1b1d89=_0x5ec5ae;return this[_0x1b1d89(0x132)][_0x1b1d89(0x165)](_0x1b1d89(0x153));}[_0x5ec5ae(0x141)](){const _0x4d2cf1=_0x5ec5ae;return this[_0x4d2cf1(0x132)][_0x4d2cf1(0x165)](_0x4d2cf1(0x121));}[_0x5ec5ae(0x105)](){const _0x3836c2=_0x5ec5ae;return this[_0x3836c2(0x148)][_0x3836c2(0x165)](_0x3836c2(0x153));}static[_0x5ec5ae(0x151)](_0xda882f){const _0x7f41c5=_0x5ec5ae;return Array[_0x7f41c5(0x116)](_0xda882f[_0x7f41c5(0x158)]())[_0x7f41c5(0x149)](_0x4e1c57=>this[_0x7f41c5(0x174)](_0x4e1c57))[_0x7f41c5(0x138)](_0x792c60=>null!==_0x792c60);}async[_0x5ec5ae(0xff)](_0x4bd56b,_0x281995,_0x266267=_0x3d2906[_0x5ec5ae(0x15a)]){const _0xcc0941=_0x5ec5ae,_0x416dcf=_0xcc0941(0x171)+_0x4c1841();this[_0xcc0941(0x147)](_0x416dcf);try{await Promise[_0xcc0941(0x10c)](_0x4bd56b[_0xcc0941(0x149)](async _0xbbcb44=>{const _0x4f9b17=_0xcc0941,_0x392ae6=_0x4f9b17(0x11d)+_0x4c1841(),_0x939baa=_0x82beee(_0xbbcb44[_0x4f9b17(0x16f)]);try{this[_0x4f9b17(0xf2)]({'type':_0x266267,'label':_0x281995?.[_0x4f9b17(0x10b)]||_0x939baa,'uiId':_0x392ae6,'resourceId':_0x281995?.[_0x4f9b17(0x100)]},!0x0);const _0x4e282f=this[_0x4f9b17(0x177)][_0x4f9b17(0x14c)](this[_0x4f9b17(0x111)],_0xbbcb44,_0x281995);this[_0x4f9b17(0x143)][_0x4f9b17(0x123)](_0x392ae6,_0x4e282f[_0x4f9b17(0x17a)]);const {id:_0x5cc323}=await _0x4e282f[_0x4f9b17(0x159)]();this[_0x4f9b17(0x143)][_0x4f9b17(0x120)](_0x392ae6),this[_0x4f9b17(0x126)]({'type':_0x266267,'id':_0x5cc323,'label':_0x281995?.[_0x4f9b17(0x10b)]||_0x939baa,'uiId':_0x392ae6,'resourceId':_0x281995?.[_0x4f9b17(0x100)]},!0x1);}catch(_0x160335){this[_0x4f9b17(0x143)][_0x4f9b17(0x120)](_0x392ae6);if(!(_0x160335 instanceof _0x3604db&&_0x160335[_0x4f9b17(0x140)][_0x4f9b17(0x16a)](_0x4f9b17(0x150)))){const _0x11b3fa=_0x3605a1[_0x4f9b17(0x114)](_0x160335[_0x4f9b17(0x17d)])||_0x4f9b17(0x12e),_0x208ca4=new _0x3604db(_0x11b3fa,null,{'fileName':_0x939baa,..._0x160335});_0x208ca4[_0x4f9b17(0x164)]=_0x160335[_0x4f9b17(0x164)],this[_0x4f9b17(0x10a)](_0x4f9b17(0xf6),{'error':_0x208ca4});}this[_0x4f9b17(0xf7)](_0x392ae6);}}));}finally{this[_0xcc0941(0x11e)](_0x416dcf);}}[_0x5ec5ae(0xfa)](_0x158004){const _0x4eb3cf=_0x5ec5ae;if(this[_0x4eb3cf(0x12d)]()||!this[_0x4eb3cf(0x112)][_0x4eb3cf(0x118)][_0x4eb3cf(0x11b)])return;const _0x474389={'type':_0x3d2906[_0x4eb3cf(0x145)],'uiId':_0x4eb3cf(0x153),'label':_0x158004,'isReadOnly':this[_0x4eb3cf(0x148)][_0x4eb3cf(0x165)](_0x4eb3cf(0x153)),'hidden':this[_0x4eb3cf(0x148)][_0x4eb3cf(0x165)](_0x4eb3cf(0x153))};this[_0x4eb3cf(0xf2)](_0x474389);}async[_0x5ec5ae(0x133)](_0x597da5,_0x18a734,_0x430dfe,_0x501928){const _0x3b14f3=_0x5ec5ae,_0x1728c7=this[_0x3b14f3(0x132)][_0x3b14f3(0x114)](_0x3b14f3(0x153));if(_0x1728c7&&_0x597da5){_0x1728c7[_0x3b14f3(0x121)]=_0x501928?_0x501928[_0x3b14f3(0x149)](_0x3dcec3=>({'start':_0x3dcec3[_0x3b14f3(0x16e)],'end':_0x3dcec3[_0x3b14f3(0x175)]})):[];try{if(_0x1728c7[_0x3b14f3(0x166)]===_0x18a734)return;const {id:_0x410f6c}=await this[_0x3b14f3(0x177)][_0x3b14f3(0x135)](this[_0x3b14f3(0x111)],_0x597da5,{'version':_0x18a734,'sessionId':_0x430dfe})[_0x3b14f3(0x159)]();_0x1728c7['id']=_0x410f6c,_0x1728c7[_0x3b14f3(0xf5)]=_0x597da5,_0x1728c7[_0x3b14f3(0x166)]=_0x18a734,_0x1728c7[_0x3b14f3(0x14f)]=_0x430dfe;}catch(_0x3d4af2){const _0x1726f0=new _0x3604db(_0x3b14f3(0x162),null);_0x1726f0[_0x3b14f3(0x164)]=_0x3d4af2[_0x3b14f3(0x164)],this[_0x3b14f3(0x10a)](_0x3b14f3(0xf6),{'error':_0x1726f0});}}}[_0x5ec5ae(0x117)](_0x2a8778){const _0x4355cb=_0x5ec5ae;this[_0x4355cb(0xf2)]({'type':_0x3d2906[_0x4355cb(0x173)],'label':_0x2a8778,'uiId':_0x4355cb(0x121),'content':_0x2a8778});}[_0x5ec5ae(0xf4)](){const _0x2798d6=_0x5ec5ae;this[_0x2798d6(0xf7)](_0x2798d6(0x121));}async[_0x5ec5ae(0x179)](_0x35d6be,_0x2c4100){const _0x25c115=_0x5ec5ae,_0x4da8fb=_0x25c115(0x127)+_0x4c1841();this[_0x25c115(0x147)](_0x4da8fb);const _0x440cc8=_0x25c115(0x127)+_0x4c1841();try{this[_0x25c115(0xf2)]({'type':_0x3d2906[_0x25c115(0xfc)],'label':_0x2c4100?.[_0x25c115(0x10b)]||_0x35d6be,'uiId':_0x440cc8,'resourceId':_0x2c4100?.[_0x25c115(0x100)]},!0x0);const _0x3f329b=this[_0x25c115(0x177)][_0x25c115(0x13a)](this[_0x25c115(0x111)],_0x35d6be,_0x2c4100);this[_0x25c115(0x143)][_0x25c115(0x123)](_0x440cc8,_0x3f329b[_0x25c115(0x17a)]);const {id:_0x10a84a}=await _0x3f329b[_0x25c115(0x159)]();this[_0x25c115(0x143)][_0x25c115(0x120)](_0x440cc8),this[_0x25c115(0x126)]({'type':_0x3d2906[_0x25c115(0xfc)],'id':_0x10a84a,'label':_0x2c4100?.[_0x25c115(0x10b)]||_0x35d6be,'uiId':_0x440cc8,'resourceId':_0x2c4100?.[_0x25c115(0x100)]},!0x1);}catch(_0x19b13e){this[_0x25c115(0x143)][_0x25c115(0x120)](_0x440cc8),(_0x19b13e[_0x25c115(0x140)][_0x25c115(0x16a)](_0x25c115(0x150))||this[_0x25c115(0x10a)](_0x25c115(0xf6),{'error':new _0x3604db(_0x25c115(0x101),this,{'url':_0x35d6be,'originalError':_0x19b13e}),'url':_0x35d6be}),this[_0x25c115(0xf7)](_0x440cc8));}finally{this[_0x25c115(0x11e)](_0x4da8fb);}}async[_0x5ec5ae(0x144)](_0x346f17,_0x2c562d,_0x829ed){const _0x5690bd=_0x5ec5ae,_0x52551e=this[_0x5690bd(0x112)][_0x5690bd(0x139)][_0x5690bd(0x107)](_0x59f5de=>_0x59f5de['id']===_0x346f17);if(!_0x52551e)return this[_0x5690bd(0x10a)](_0x5690bd(0xf6),{'error':new _0x3604db(_0x5690bd(0x154),this,{'sourceId':_0x346f17}),'sourceId':_0x346f17}),[];try{const _0x2a6a69=(await _0x52551e[_0x5690bd(0x136)](_0x2c562d))[_0x5690bd(0x149)](_0x59b670=>{const _0x1c82d6=_0x5690bd,_0x4b8255=this[_0x1c82d6(0x12f)](_0x59b670['id']);return{..._0x59b670,'isInContext':_0x4b8255};});return _0x52551e[_0x5690bd(0x10d)]=_0x2a6a69,this[_0x5690bd(0x10a)](_0x5690bd(0x168),{'sourceId':_0x346f17,'source':_0x52551e,'resources':_0x2a6a69,'uid':_0x829ed}),_0x2a6a69;}catch(_0x328c51){return this[_0x5690bd(0x10a)](_0x5690bd(0xf6),{'error':new _0x3604db(_0x5690bd(0x130),this,{'sourceId':_0x346f17,'originalError':_0x328c51}),'sourceId':_0x346f17,'sourceLabel':_0x52551e[_0x5690bd(0x10b)]}),[];}}async[_0x5ec5ae(0x15c)](_0x344c8d,_0x2869d6){const _0x576f7c=_0x5ec5ae;if(this[_0x576f7c(0x12f)](_0x2869d6['id']))return;let _0x46256c=_0x2869d6[_0x576f7c(0x12a)];if(!_0x46256c&&_0x344c8d[_0x576f7c(0x16b)])try{_0x46256c=await _0x344c8d[_0x576f7c(0x16b)](_0x2869d6['id']);}catch(_0x58e907){return void this[_0x576f7c(0x10a)](_0x576f7c(0xf6),{'error':new _0x3604db(_0x576f7c(0x172),this,{'resourceId':_0x2869d6['id'],'sourceId':_0x344c8d['id'],'originalError':_0x58e907}),'resourceId':_0x2869d6['id'],'sourceId':_0x344c8d['id']});}if(_0x46256c)switch(_0x2869d6[_0x576f7c(0x15e)]){case _0x3d2906[_0x576f7c(0xfc)]:if(_0x576f7c(0x113)!=typeof _0x46256c)return void this[_0x576f7c(0x10a)](_0x576f7c(0xf6),{'error':new _0x3604db(_0x576f7c(0x128),this,{'resourceId':_0x2869d6['id'],'sourceId':_0x344c8d['id'],'expectedType':_0x576f7c(0x113),'actualType':typeof _0x46256c}),'resourceId':_0x2869d6['id'],'sourceId':_0x344c8d['id']});await this[_0x576f7c(0x179)](_0x46256c,{'label':_0x2869d6[_0x576f7c(0x10b)],'resourceId':_0x2869d6['id']});break;case _0x3d2906[_0x576f7c(0x15a)]:if(!(_0x46256c instanceof File))return void this[_0x576f7c(0x10a)](_0x576f7c(0xf6),{'error':new _0x3604db(_0x576f7c(0x128),this,{'resourceId':_0x2869d6['id'],'sourceId':_0x344c8d['id'],'expectedType':_0x576f7c(0x137),'actualType':typeof _0x46256c}),'resourceId':_0x2869d6['id'],'sourceId':_0x344c8d['id']});await this[_0x576f7c(0xff)]([_0x46256c],{'label':_0x2869d6[_0x576f7c(0x10b)],'resourceId':_0x2869d6['id']});break;case _0x3d2906[_0x576f7c(0x14e)]:if(_0x576f7c(0x169)!=typeof _0x46256c||!(_0x576f7c(0xf5)in _0x46256c)||!(_0x576f7c(0x15e)in _0x46256c))return void this[_0x576f7c(0x10a)](_0x576f7c(0xf6),{'error':new _0x3604db(_0x576f7c(0x128),this,{'resourceId':_0x2869d6['id'],'sourceId':_0x344c8d['id'],'expectedType':_0x576f7c(0xf9),'actualType':typeof _0x46256c}),'resourceId':_0x2869d6['id'],'sourceId':_0x344c8d['id']});_0x46256c=AIChatContext[_0x576f7c(0x108)](_0x46256c,_0x2869d6[_0x576f7c(0x10b)]),await this[_0x576f7c(0xff)]([_0x46256c],{'label':_0x2869d6[_0x576f7c(0x10b)],'resourceId':_0x2869d6['id']},_0x3d2906[_0x576f7c(0x14e)]);break;default:this[_0x576f7c(0x10a)](_0x576f7c(0xf6),{'error':new _0x3604db(_0x576f7c(0x142),this,{'resourceId':_0x2869d6['id'],'sourceId':_0x344c8d['id'],'resourceType':_0x2869d6[_0x576f7c(0x15e)]}),'resourceId':_0x2869d6['id'],'sourceId':_0x344c8d['id']});}else this[_0x576f7c(0x10a)](_0x576f7c(0xf6),{'error':new _0x3604db(_0x576f7c(0x102),this,{'resourceId':_0x2869d6['id'],'sourceId':_0x344c8d['id']}),'resourceId':_0x2869d6['id'],'sourceId':_0x344c8d['id']});}static[_0x5ec5ae(0x108)](_0x2e14a5,_0x452765){const _0x3f7c2c=_0x5ec5ae;switch(_0x2e14a5[_0x3f7c2c(0x15e)]){case _0x157c6b[_0x3f7c2c(0x17b)]:return new File([_0x2e14a5[_0x3f7c2c(0xf5)]],_0x452765,{'type':_0x3f7c2c(0x12c)});case _0x157c6b[_0x3f7c2c(0x13b)]:return new File([_0x2e14a5[_0x3f7c2c(0xf5)]],_0x452765,{'type':_0x3f7c2c(0x14b)});default:return new File([_0x2e14a5[_0x3f7c2c(0xf5)]],_0x452765,{'type':_0x3f7c2c(0x11a)});}}static[_0x5ec5ae(0x174)](_0x1c8853){const _0x2b1d36=_0x5ec5ae;switch(_0x1c8853[_0x2b1d36(0x15e)]){case _0x3d2906[_0x2b1d36(0x15a)]:return{'type':_0x3d2906[_0x2b1d36(0x15a)],'id':_0x1c8853['id']};case _0x3d2906[_0x2b1d36(0xfc)]:return{'type':_0x3d2906[_0x2b1d36(0xfc)],'id':_0x1c8853['id']};case _0x3d2906[_0x2b1d36(0x145)]:return{'type':_0x3d2906[_0x2b1d36(0x145)],'id':_0x1c8853['id'],..._0x1c8853[_0x2b1d36(0x121)]?.[_0x2b1d36(0x12b)]&&{'selection':_0x1c8853[_0x2b1d36(0x121)]}};case _0x3d2906[_0x2b1d36(0x14e)]:return{'type':_0x3d2906[_0x2b1d36(0x15a)],'id':_0x1c8853['id']};default:return null;}}[_0x5ec5ae(0xf2)](_0x432fe1,_0xfdb6c0=!0x1){const _0x307127=_0x5ec5ae;if(this[_0x307127(0x132)][_0x307127(0x123)](_0x432fe1[_0x307127(0x131)],_0x432fe1),_0x432fe1[_0x307127(0x10e)]||this[_0x307127(0x10a)](_0x307127(0xfe),{'contextItem':_0x432fe1,'isLoading':_0xfdb6c0}),_0x307127(0x153)===_0x432fe1[_0x307127(0x131)]&&this[_0x307127(0x119)](),_0x432fe1[_0x307127(0x100)]){const _0x317c1d=this[_0x307127(0x15d)](_0x432fe1[_0x307127(0x100)]);_0x317c1d&&_0x317c1d[_0x307127(0x16d)](_0x53447c=>{const _0x23eca1=_0x307127;this[_0x23eca1(0x152)](_0x53447c,_0x432fe1[_0x23eca1(0x100)],!0x0);});}}[_0x5ec5ae(0xf7)](_0xf0c70b){const _0x9d4818=_0x5ec5ae,_0x2bcf4d=this[_0x9d4818(0x132)][_0x9d4818(0x114)](_0xf0c70b),_0x108a87=this[_0x9d4818(0x143)][_0x9d4818(0x114)](_0xf0c70b);if(_0x108a87&&(_0x108a87[_0x9d4818(0x157)](),this[_0x9d4818(0x143)][_0x9d4818(0x120)](_0xf0c70b)),_0x2bcf4d?.[_0x9d4818(0x100)]){const _0x3a2ba1=this[_0x9d4818(0x15d)](_0x2bcf4d[_0x9d4818(0x100)]);_0x3a2ba1&&_0x3a2ba1[_0x9d4818(0x16d)](_0x4e8d9d=>{const _0x5a22b5=_0x9d4818;this[_0x5a22b5(0x152)](_0x4e8d9d,_0x2bcf4d[_0x5a22b5(0x100)],!0x1);});}this[_0x9d4818(0x132)][_0x9d4818(0x120)](_0xf0c70b),this[_0x9d4818(0x10a)](_0x9d4818(0x13f),{'uiId':_0xf0c70b,'type':_0x2bcf4d?.[_0x9d4818(0x15e)]}),_0x9d4818(0x153)===_0xf0c70b&&this[_0x9d4818(0x119)]();}[_0x5ec5ae(0x126)](_0x2871d2,_0x24b4eb){const _0x2af29c=_0x5ec5ae;if(this[_0x2af29c(0x132)][_0x2af29c(0x165)](_0x2871d2[_0x2af29c(0x131)])&&(this[_0x2af29c(0x132)][_0x2af29c(0x123)](_0x2871d2[_0x2af29c(0x131)],_0x2871d2),this[_0x2af29c(0x10a)](_0x2af29c(0x16c),{'contextItem':_0x2871d2,'isLoading':_0x24b4eb}),_0x2871d2[_0x2af29c(0x100)])){const _0x1d4280=this[_0x2af29c(0x15d)](_0x2871d2[_0x2af29c(0x100)]);_0x1d4280&&_0x1d4280[_0x2af29c(0x16d)](_0x3cae09=>{const _0x2b2238=_0x2af29c;this[_0x2b2238(0x152)](_0x3cae09,_0x2871d2[_0x2b2238(0x100)],!0x0);});}}[_0x5ec5ae(0xf8)](_0x28e880){const _0x3716f2=_0x5ec5ae;this[_0x3716f2(0x148)][_0x3716f2(0x123)](_0x28e880[_0x3716f2(0x131)],_0x28e880);}[_0x5ec5ae(0x10f)](){const _0x2b9fda=_0x5ec5ae;this[_0x2b9fda(0x112)]={'document':{'enabled':!0x1!==this[_0x2b9fda(0x122)]?.[_0x2b9fda(0x118)]?.[_0x2b9fda(0x11b)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x2b9fda(0x122)]?.[_0x2b9fda(0x146)]?.[_0x2b9fda(0x11b)]},'files':{'enabled':!0x1!==this[_0x2b9fda(0x122)]?.[_0x2b9fda(0x11c)]?.[_0x2b9fda(0x11b)]},'sources':this[_0x2b9fda(0x163)]()},this[_0x2b9fda(0x10a)](_0x2b9fda(0xf0),{'options':this[_0x2b9fda(0x112)]});}[_0x5ec5ae(0x163)](){const _0x31c1d2=_0x5ec5ae;return this[_0x31c1d2(0x122)]?.[_0x31c1d2(0x139)]?.[_0x31c1d2(0x149)](_0x3e8845=>({..._0x3e8845,'resources':[]}))??[];}[_0x5ec5ae(0x119)](){const _0xc95723=_0x5ec5ae,_0x1f5168=this[_0xc95723(0x12d)]()||this[_0xc95723(0x105)]();this[_0xc95723(0x112)][_0xc95723(0x118)][_0xc95723(0x13d)]=_0x1f5168,this[_0xc95723(0x10a)](_0xc95723(0xf0),{'options':this[_0xc95723(0x112)]});}[_0x5ec5ae(0x12f)](_0x43f7f7){const _0x35ac46=_0x5ec5ae;for(const _0x15aad7 of this[_0x35ac46(0x132)][_0x35ac46(0x158)]())if(_0x15aad7[_0x35ac46(0x100)]===_0x43f7f7)return!0x0;for(const _0x1d2439 of this[_0x35ac46(0x148)][_0x35ac46(0x158)]())if(_0x1d2439[_0x35ac46(0x100)]===_0x43f7f7)return!0x0;return!0x1;}[_0x5ec5ae(0x15d)](_0x4ee959){const _0x5bc3a4=_0x5ec5ae,_0xf13383=[];for(const _0x37e05a of this[_0x5bc3a4(0x112)][_0x5bc3a4(0x139)]){_0x37e05a[_0x5bc3a4(0x10d)][_0x5bc3a4(0x107)](_0x50d05f=>_0x50d05f['id']===_0x4ee959)&&_0xf13383[_0x5bc3a4(0x14a)](_0x37e05a['id']);}return 0x0===_0xf13383[_0x5bc3a4(0x12b)]?null:_0xf13383;}[_0x5ec5ae(0x152)](_0x5a02f1,_0x44597c,_0x34dda0){const _0x211596=_0x5ec5ae,_0x515240=this[_0x211596(0x112)][_0x211596(0x139)][_0x211596(0x107)](_0x518d25=>_0x518d25['id']===_0x5a02f1);if(!_0x515240)return;const _0x262309=_0x515240[_0x211596(0x10d)][_0x211596(0x107)](_0x4875c1=>_0x4875c1['id']===_0x44597c);_0x262309&&(_0x262309[_0x211596(0xfd)]=_0x34dda0,this[_0x211596(0x10a)](_0x211596(0x104),{'sourceId':_0x5a02f1,'resourceId':_0x44597c,'isInContext':_0x34dda0}));}[_0x5ec5ae(0x147)](_0xd0379f){const _0x368190=_0x5ec5ae;this[_0x368190(0x17e)][_0x368190(0x123)](_0xd0379f,!0x0),this[_0x368190(0x17e)][_0x368190(0x17c)]&&this[_0x368190(0x10a)](_0x368190(0x129),{'isUploadInProgress':!0x0});}[_0x5ec5ae(0x11e)](_0x35759b){const _0x1163a2=_0x5ec5ae;this[_0x1163a2(0x17e)][_0x1163a2(0x120)](_0x35759b),0x0===this[_0x1163a2(0x17e)][_0x1163a2(0x17c)]&&this[_0x1163a2(0x10a)](_0x1163a2(0x129),{'isUploadInProgress':!0x1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x520ee2=_0x2daa;function _0x2daa(_0x3faf66,_0xa5061b){const _0x4c493d=_0x4c49();return _0x2daa=function(_0x2daace,_0x2d85f1){_0x2daace=_0x2daace-0x170;let _0x36ade2=_0x4c493d[_0x2daace];return _0x36ade2;},_0x2daa(_0x3faf66,_0xa5061b);}(function(_0x3cdb8c,_0x3752e2){const _0x568834=_0x2daa,_0x178ab8=_0x3cdb8c();while(!![]){try{const _0x510f2c=-parseInt(_0x568834(0x171))/0x1+parseInt(_0x568834(0x1b8))/0x2+-parseInt(_0x568834(0x17f))/0x3+-parseInt(_0x568834(0x1c6))/0x4+parseInt(_0x568834(0x182))/0x5*(parseInt(_0x568834(0x199))/0x6)+parseInt(_0x568834(0x1be))/0x7+parseInt(_0x568834(0x1cc))/0x8;if(_0x510f2c===_0x3752e2)break;else _0x178ab8['push'](_0x178ab8['shift']());}catch(_0x57ac2a){_0x178ab8['push'](_0x178ab8['shift']());}}}(_0x4c49,0x5497b));import{CKEditorError as _0x218c11,EmitterMixin as _0x101ef9,logWarning as _0x9c61de}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x20b2c3}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x457b4f,AI_CONTEXT_MODEL_EVENT_NAMES as _0xc7e11}from'./aichatcontext.js';function _0x4c49(){const _0xffc244=['setModel','contextItems','800730YUHBqL','conversationStarted','ai-chat-handle-user-conversation-not-initialized','message','_extractContextItems','modification-delta','type','fetchConversationMessages','getConversation','getMessages','fire','ai-chat-conversation-already-started','chatContext','interactions','content','push','isStarted','load','addSelectionToContext','reset','toggleWebSearch','ai-chat-conversation-set-model-not-available','updateCurrentDocument','init','destroy','reasoning','find','getCurrentDocumentContext','addResourceToContext','modelSelected','set','891440shzPKv','addCurrentDocumentToContext','addFilesToContext','stop','indexOf','capabilities','3609207IZzcZg','createReply','conversationId','lastInteraction','attributes','handleUserInteraction','quickActionData','_processMessagesToInteractions','2247048wxjeVo','splice','ai-chat-handle-user-interaction-already-in-progress','isSelectionInContext','interactionCreated','title','4095520RZUwIW','assistant','hasOwn','getInteraction','delegate','options','currentInteraction','ai-chat-conversation-start-failed','chatCapabilities','populateFromMessage','webSearch','selectedModelId','removeInteraction','removeFromContext','toLowerCase','setConversationTitle','text','getAvailableModels','conversationInitialized','sessionId','code','prompt','getAll','toggleReasoning','ai-chat-conversation-set-model-null','547209AqYqps','connector','isAvailable','chatModels','ai-chat-conversation-init-failed','updateCurrentDocumentInContext','fetchConversation','getPendingContextItems','loadSourceResources','createInteraction','getModel','length','model','getCapabilitiesConfig','1254492CplyYe','ai-chat-handle-user-interaction-start-failed','addUrlToContext','15ayOWZr','text-delta','getDocumentContext','removeSelectionFromContext','isCurrentDocumentInConversation','start','selectedModel','role','error','get','getEditor','startConversation','appendContent','addToConversationContext','ai-chat-conversation-init-from-id-failed','group','ai-chat-conversation-start-no-model-selected','currentReply','isCurrentDocumentInContext','user','stack'];_0x4c49=function(){return _0xffc244;};return _0x4c49();}import{AICapabilities as _0x1a1978,CAPABILITIES_MODEL_EVENT_NAMES as _0x1f2153}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x171660}from'./aichatinteraction.js';import{errorsMap as _0x2923af}from'../../errorsmap.js';export class AIChatConversation extends _0x101ef9(){['id'];[_0x520ee2(0x1a9)]=!0x1;[_0x520ee2(0x1a6)]=[];[_0x520ee2(0x1d2)];[_0x520ee2(0x188)];[_0x520ee2(0x172)];[_0x520ee2(0x1d1)];constructor(_0x1512b3){const _0x2a3ce0=_0x520ee2;super(),this[_0x2a3ce0(0x1d1)]=_0x1512b3,this[_0x2a3ce0(0x172)]=_0x1512b3[_0x2a3ce0(0x172)],this[_0x2a3ce0(0x174)]=_0x1512b3[_0x2a3ce0(0x174)],this['id']=_0x1512b3[_0x2a3ce0(0x1c0)];}async[_0x520ee2(0x1b0)](_0x301737){const _0x1750f2=_0x520ee2;try{this[_0x1750f2(0x1a5)]=new _0x457b4f({'connector':this[_0x1750f2(0x172)],'config':_0x301737,'ownerId':this['id']}),this[_0x1750f2(0x1a5)][_0x1750f2(0x1d0)](..._0xc7e11)['to'](this),this[_0x1750f2(0x1a5)][_0x1750f2(0x1b0)](),this[_0x1750f2(0x1d4)]=new _0x1a1978(),this[_0x1750f2(0x1d4)][_0x1750f2(0x1d0)](..._0x1f2153)['to'](this),this[_0x1750f2(0x1d4)][_0x1750f2(0x1b0)]();const _0x50289a=await this[_0x1750f2(0x174)][_0x1750f2(0x1dd)]();this[_0x1750f2(0x1a3)](_0x1750f2(0x1de),{'availableModels':_0x50289a});const _0x202f0b=await this[_0x1750f2(0x174)][_0x1750f2(0x17b)](this[_0x1750f2(0x1d1)][_0x1750f2(0x1d7)]);_0x202f0b&&await this[_0x1750f2(0x197)](_0x202f0b);}catch(_0xcb734c){const _0x4e9b2d=new _0x218c11(_0x1750f2(0x175),null,{'message':_0xcb734c[_0x1750f2(0x19c)]||_0xcb734c});_0x4e9b2d[_0x1750f2(0x196)]=_0xcb734c[_0x1750f2(0x196)],this[_0x1750f2(0x1a3)](_0x1750f2(0x18a),{'error':_0x4e9b2d});}}async[_0x520ee2(0x187)](){const _0x1e886f=_0x520ee2;if(this[_0x1e886f(0x1a9)])throw new _0x218c11(_0x1e886f(0x1a4),null,{'conversation':this});if(!this[_0x1e886f(0x188)])throw new _0x218c11(_0x1e886f(0x192),null,{'conversation':this});try{const {id:_0x443378}=await this[_0x1e886f(0x172)][_0x1e886f(0x18d)](this['id'],this[_0x1e886f(0x1d1)][_0x1e886f(0x191)])[_0x1e886f(0x1a1)]();this['id']=_0x443378,this[_0x1e886f(0x1a9)]=!0x0,this[_0x1e886f(0x1a3)](_0x1e886f(0x19a),{'conversationId':this['id'],'selectedModel':this[_0x1e886f(0x188)]});}catch(_0x3fe9fe){const _0x8422b7=new _0x218c11(_0x1e886f(0x1d3),null,{'message':_0x3fe9fe[_0x1e886f(0x19c)],'conversationId':this['id']});throw _0x8422b7[_0x1e886f(0x196)]=_0x3fe9fe[_0x1e886f(0x196)],this[_0x1e886f(0x1a3)](_0x1e886f(0x18a),{'error':_0x8422b7}),_0x8422b7;}}async[_0x520ee2(0x1aa)](_0x2ca34a,_0x4dca6f){const _0x1acbfe=_0x520ee2;try{const _0x231199=await this[_0x1acbfe(0x172)][_0x1acbfe(0x177)](_0x2ca34a)[_0x1acbfe(0x1a1)](),_0x1e61d3=await this[_0x1acbfe(0x172)][_0x1acbfe(0x1a0)](_0x2ca34a)[_0x1acbfe(0x1a2)](),_0x5cd7c3=_0x1e61d3[0x0][_0x1acbfe(0x17d)];this[_0x1acbfe(0x1a9)]=!0x0,this['id']=_0x231199['id'],_0x1acbfe(0x1cb)in _0x231199?this[_0x1acbfe(0x1a3)](_0x1acbfe(0x1db),_0x231199[_0x1acbfe(0x1cb)],!0x0):this[_0x1acbfe(0x1a3)](_0x1acbfe(0x1db),'',!0x0);const _0x2cf204=(await this[_0x1acbfe(0x174)][_0x1acbfe(0x1e2)]())[_0x1acbfe(0x1b3)](_0x45dc9d=>_0x45dc9d['id'][_0x1acbfe(0x1da)]()===_0x5cd7c3[_0x1acbfe(0x1da)]());return this[_0x1acbfe(0x188)]=_0x2cf204,this[_0x1acbfe(0x1a3)](_0x1acbfe(0x1b6),{'selectedModel':_0x2cf204,'isDisabled':!0x0}),await this[_0x1acbfe(0x1c5)](_0x1e61d3,_0x4dca6f,_0x5cd7c3),this[_0x1acbfe(0x1d2)]=void 0x0,this;}catch(_0x7c6007){const _0x1ac078=new _0x218c11(_0x1acbfe(0x190),null,{'message':_0x7c6007[_0x1acbfe(0x19c)],'conversationId':_0x2ca34a});throw _0x1ac078[_0x1acbfe(0x196)]=_0x7c6007[_0x1acbfe(0x196)],this[_0x1acbfe(0x1a3)](_0x1acbfe(0x18a),{'error':_0x1ac078}),_0x1ac078;}}async[_0x520ee2(0x1c5)](_0x437d5d,_0x379d36,_0x49e10e){const _0x56b450=_0x520ee2;let _0x3aa6ff;for(const _0x39c6e4 of _0x437d5d)if(_0x56b450(0x195)===_0x39c6e4[_0x56b450(0x189)]){const _0x2e9aa8=await this[_0x56b450(0x19d)](_0x39c6e4),_0x417d51={'isReasoningEnabled':Object[_0x56b450(0x1ce)](_0x39c6e4[_0x56b450(0x1bd)],_0x56b450(0x1b2)),'isWebSearchEnabled':Object[_0x56b450(0x1ce)](_0x39c6e4[_0x56b450(0x1bd)],_0x56b450(0x1d6))};_0x3aa6ff=this[_0x56b450(0x17a)]({'userMessage':_0x39c6e4[_0x56b450(0x1e1)],'contextItems':_0x2e9aa8,'capabilities':_0x417d51,'modelId':_0x49e10e,'quickActionData':_0x39c6e4[_0x56b450(0x1c2)]?.[_0x56b450(0x1c4)]}),this[_0x56b450(0x1d2)]=_0x3aa6ff,this[_0x56b450(0x1a5)][_0x56b450(0x18f)](this[_0x56b450(0x1d2)][_0x56b450(0x198)]);}else{if(_0x56b450(0x1cd)===_0x39c6e4[_0x56b450(0x189)]&&_0x3aa6ff)for(const _0x5eb448 of _0x39c6e4[_0x56b450(0x1a7)]){const _0x2f8cce=_0x56b450(0x1dc)===_0x5eb448[_0x56b450(0x19f)]?_0x56b450(0x183):_0x56b450(0x19e),_0x2455c6=_0x3aa6ff[_0x56b450(0x184)]()?.[_0x56b450(0x1df)]!==_0x379d36;_0x3aa6ff[_0x56b450(0x193)]=_0x3aa6ff[_0x56b450(0x1bf)]({'type':_0x2f8cce,'isDone':!0x0,'interactionId':_0x3aa6ff['id'],'areActionsDisabled':_0x2455c6}),_0x3aa6ff[_0x56b450(0x193)][_0x56b450(0x18e)](_0x5eb448[_0x56b450(0x1a7)]);}}}async[_0x520ee2(0x19d)](_0x153a34){const _0x453d67=_0x520ee2,_0x147eba=new Map();if(!_0x153a34[_0x453d67(0x1a7)])return _0x147eba;for(const _0x660da3 of _0x153a34[_0x453d67(0x1a7)]){const _0x28695f=await this[_0x453d67(0x1a5)][_0x453d67(0x1d5)](_0x660da3);_0x28695f&&_0x147eba[_0x453d67(0x1b7)](_0x28695f['id'],_0x28695f);}return _0x147eba;}async[_0x520ee2(0x1c3)]({userMessage:_0x158f7f,quickActionData:_0x3bb3de}){const _0x2c5453=_0x520ee2;if(!this[_0x2c5453(0x1a9)])throw new _0x218c11(_0x2c5453(0x19b),null,{'conversation':this});if(this[_0x2c5453(0x1d2)])throw new _0x218c11(_0x2c5453(0x1c8),null,{'conversation':this});try{const _0x1ce271=this[_0x2c5453(0x1a5)][_0x2c5453(0x178)](),_0x54ff9e=this[_0x2c5453(0x1d4)][_0x2c5453(0x17e)](),_0x5a3bdb=this[_0x2c5453(0x188)]['id'];this[_0x2c5453(0x1d2)]=this[_0x2c5453(0x17a)]({'userMessage':_0x158f7f,'contextItems':_0x1ce271,'capabilities':_0x54ff9e,'modelId':_0x5a3bdb,'quickActionData':_0x3bb3de}),await this[_0x2c5453(0x1d2)][_0x2c5453(0x187)](),this[_0x2c5453(0x1a5)][_0x2c5453(0x18f)](this[_0x2c5453(0x1d2)][_0x2c5453(0x198)]);}catch(_0x1a21d6){if(_0x1a21d6 instanceof _0x218c11)this[_0x2c5453(0x1a3)](_0x2c5453(0x18a),{'interactionId':this[_0x2c5453(0x1d2)]?this[_0x2c5453(0x1d2)]['id']:void 0x0,'error':_0x1a21d6});else{const _0x1ae1d0=_0x2923af[_0x2c5453(0x18b)](_0x1a21d6[_0x2c5453(0x1e0)])||_0x2c5453(0x180);this[_0x2c5453(0x1a3)](_0x2c5453(0x18a),{'interactionId':this[_0x2c5453(0x1d2)]?this[_0x2c5453(0x1d2)]['id']:void 0x0,'error':new _0x218c11(_0x1ae1d0,null,{'error':_0x1a21d6})});}}finally{this[_0x2c5453(0x1d2)]?.[_0x2c5453(0x1bb)](),this[_0x2c5453(0x1d2)]=void 0x0;}}[_0x520ee2(0x17a)]({userMessage:_0x3d8640,contextItems:_0x1cd1ba,capabilities:_0x33115e,modelId:_0x31e3a0,quickActionData:_0x3582da}){const _0x54c674=_0x520ee2,_0x201c61=new _0x171660({'userMessage':_0x3d8640,'contextItems':_0x1cd1ba,'capabilities':_0x33115e,'conversationId':this['id'],'connector':this[_0x54c674(0x172)],'editor':this[_0x54c674(0x1d1)][_0x54c674(0x18c)]&&this[_0x54c674(0x1d1)][_0x54c674(0x18c)](),'model':_0x31e3a0,'quickActionData':_0x3582da});return _0x201c61[_0x54c674(0x1d0)](..._0x20b2c3)['to'](this),this[_0x54c674(0x1a6)][_0x54c674(0x1a8)](_0x201c61),this[_0x54c674(0x1a3)](_0x54c674(0x1ca),_0x201c61),_0x201c61;}[_0x520ee2(0x1cf)](_0x3dda55){const _0x10a754=_0x520ee2;return this[_0x10a754(0x1a6)][_0x10a754(0x1b3)](_0x3bceeb=>_0x3bceeb['id']===_0x3dda55);}[_0x520ee2(0x1d8)](_0xca8aa4){const _0x5c31bd=_0x520ee2,_0x4b4027=this[_0x5c31bd(0x1cf)](_0xca8aa4);_0x4b4027&&(_0x4b4027[_0x5c31bd(0x1b1)](),this[_0x5c31bd(0x1a6)][_0x5c31bd(0x1c7)](this[_0x5c31bd(0x1a6)][_0x5c31bd(0x1bc)](_0x4b4027),0x1));}get[_0x520ee2(0x1c1)](){const _0x89b73d=_0x520ee2;return this[_0x89b73d(0x1a6)][this[_0x89b73d(0x1a6)][_0x89b73d(0x17c)]-0x1];}[_0x520ee2(0x1b9)](_0x1a2a32){const _0x27a132=_0x520ee2;this[_0x27a132(0x1a5)][_0x27a132(0x1b9)](_0x1a2a32);}async[_0x520ee2(0x176)]({content:_0x45c300,version:_0x1ddcd4,sessionId:_0x2a4c72,selections:_0x4621c7}){const _0x34fdf0=_0x520ee2;await this[_0x34fdf0(0x1a5)][_0x34fdf0(0x1af)](_0x45c300,_0x1ddcd4,_0x2a4c72,_0x4621c7);}[_0x520ee2(0x1b4)](){const _0x31648a=_0x520ee2;return this[_0x31648a(0x1d2)]?.[_0x31648a(0x184)]()?.[_0x31648a(0x1a7)]||'';}[_0x520ee2(0x1ab)](_0x207b18){const _0x47d5f9=_0x520ee2;this[_0x47d5f9(0x1a5)][_0x47d5f9(0x1ab)](_0x207b18);}[_0x520ee2(0x185)](){const _0x3f2a08=_0x520ee2;this[_0x3f2a08(0x1a5)][_0x3f2a08(0x185)]();}[_0x520ee2(0x1ba)](_0x370d07){const _0x13758e=_0x520ee2;this[_0x13758e(0x1a5)][_0x13758e(0x1ba)](_0x370d07);}[_0x520ee2(0x181)](_0x288937){const _0x53a86b=_0x520ee2;this[_0x53a86b(0x1a5)][_0x53a86b(0x181)](_0x288937);}[_0x520ee2(0x1b5)](_0x11476f,_0x47e8d0){const _0x3da49d=_0x520ee2;this[_0x3da49d(0x1a5)][_0x3da49d(0x1b5)](_0x11476f,_0x47e8d0);}[_0x520ee2(0x179)](_0x547d08,_0x51eecf,_0x139e40){const _0x5454d6=_0x520ee2;return this[_0x5454d6(0x1a5)][_0x5454d6(0x179)](_0x547d08,_0x51eecf,_0x139e40);}[_0x520ee2(0x1d9)](_0x4da6bb){const _0x5a3f97=_0x520ee2;this[_0x5a3f97(0x1a5)][_0x5a3f97(0x1d9)](_0x4da6bb);}[_0x520ee2(0x1ad)](){const _0xba900e=_0x520ee2;this[_0xba900e(0x1d4)][_0xba900e(0x1ad)]();}[_0x520ee2(0x1e3)](){const _0x2eed=_0x520ee2;this[_0x2eed(0x1d4)][_0x2eed(0x1e3)]();}[_0x520ee2(0x194)](){const _0x5eaa7e=_0x520ee2;return this[_0x5eaa7e(0x1a5)][_0x5eaa7e(0x194)]();}[_0x520ee2(0x186)](){const _0x55ed26=_0x520ee2;return this[_0x55ed26(0x1a5)][_0x55ed26(0x186)]();}[_0x520ee2(0x1c9)](){const _0x278f60=_0x520ee2;return this[_0x278f60(0x1a5)][_0x278f60(0x1c9)]();}async[_0x520ee2(0x197)](_0x11f41a){const _0x4693a2=_0x520ee2;_0x11f41a?!0x1===await this[_0x4693a2(0x174)][_0x4693a2(0x173)](_0x11f41a)&&(_0x9c61de(_0x4693a2(0x1ae),{'conversation':this,'model':_0x11f41a}),_0x11f41a=(await this[_0x4693a2(0x174)][_0x4693a2(0x1dd)]())[0x0]):(_0x9c61de(_0x4693a2(0x170),{'conversation':this}),_0x11f41a=(await this[_0x4693a2(0x174)][_0x4693a2(0x1dd)]())[0x0]),_0x11f41a['id']!==this[_0x4693a2(0x188)]?.['id']&&(this[_0x4693a2(0x188)]=_0x11f41a,this[_0x4693a2(0x1d4)][_0x4693a2(0x1ac)](),this[_0x4693a2(0x1a3)](_0x4693a2(0x1b6),{'selectedModel':_0x11f41a}));}}
23
+ const _0x920cf9=_0x3f65;(function(_0x184a8d,_0x277de7){const _0x4b7ae1=_0x3f65,_0x3a1dcd=_0x184a8d();while(!![]){try{const _0x1d0913=-parseInt(_0x4b7ae1(0x124))/0x1*(parseInt(_0x4b7ae1(0x137))/0x2)+-parseInt(_0x4b7ae1(0x101))/0x3*(-parseInt(_0x4b7ae1(0x111))/0x4)+parseInt(_0x4b7ae1(0x144))/0x5+-parseInt(_0x4b7ae1(0x131))/0x6*(parseInt(_0x4b7ae1(0x163))/0x7)+parseInt(_0x4b7ae1(0x13b))/0x8+parseInt(_0x4b7ae1(0x143))/0x9+-parseInt(_0x4b7ae1(0x148))/0xa*(parseInt(_0x4b7ae1(0x13c))/0xb);if(_0x1d0913===_0x277de7)break;else _0x3a1dcd['push'](_0x3a1dcd['shift']());}catch(_0x27b301){_0x3a1dcd['push'](_0x3a1dcd['shift']());}}}(_0x1478,0xa9d1f));function _0x1478(){const _0x42da39=['push','prompt','interactions','updateCurrentDocumentInContext','handleUserInteraction','getAvailableModels','hasOwn','removeFromContext','content','getDocumentContext','set','loadSourceResources','getModel','ai-chat-conversation-already-started','interactionCreated','modelSelected','code','24038ljxgOo','startConversation','toggleReasoning','ai-chat-conversation-init-failed','fetchConversationMessages','title','isStarted','populateFromMessage','group','ai-chat-handle-user-conversation-not-initialized','options','addSelectionToContext','_extractContextItems','addUrlToContext','webSearch','toggleWebSearch','getAll','ai-chat-handle-user-interaction-already-in-progress','setModel','ai-chat-conversation-set-model-not-available','length','6MLMQda','addToConversationContext','conversationStarted','indexOf','fire','user','model','isCurrentDocumentInConversation','assistant','currentInteraction','find','addFilesToContext','stack','splice','getMessages','appendContent','739432vqqChL','removeInteraction','message','sessionId','isCurrentDocumentInContext','getInteraction','createReply','_processMessagesToInteractions','quickActionData','type','error','conversationId','conversationInitialized','start','destroy','currentReply','addResourceToContext','attributes','role','925289JyNzOr','isAvailable','init','createInteraction','chatModels','isSelectionInContext','reset','modification-delta','get','getCurrentDocumentContext','ai-chat-conversation-init-from-id-failed','capabilities','ai-chat-conversation-start-no-model-selected','396rIfkOO','getPendingContextItems','getCapabilitiesConfig','connector','fetchConversation','text','2dDfGyZ','lastInteraction','contextItems','selectedModel','4310336WXpgjg','1133VKWfoV','getEditor','selectedModelId','load','updateCurrentDocument','addCurrentDocumentToContext','reasoning','4200201KrtdIo','3538370GfIqtd','removeSelectionFromContext','setConversationTitle','ai-chat-conversation-set-model-null','22850gNIcgk','ai-chat-handle-user-interaction-start-failed','chatContext','text-delta','delegate','stop','chatCapabilities','toLowerCase','getConversation','ai-chat-conversation-start-failed'];_0x1478=function(){return _0x42da39;};return _0x1478();}function _0x3f65(_0x5488d2,_0x1fbe3e){const _0x147801=_0x1478();return _0x3f65=function(_0x3f65f3,_0x5616ef){_0x3f65f3=_0x3f65f3-0xf6;let _0xd67f9f=_0x147801[_0x3f65f3];return _0xd67f9f;},_0x3f65(_0x5488d2,_0x1fbe3e);}import{CKEditorError as _0x121e54,EmitterMixin as _0x1a8a3,logWarning as _0x267554}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x57550d}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x149315,AI_CONTEXT_MODEL_EVENT_NAMES as _0x27ba63}from'./aichatcontext.js';import{AICapabilities as _0x1ec4ca,CAPABILITIES_MODEL_EVENT_NAMES as _0x253430}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x1a3021}from'./aichatinteraction.js';import{errorsMap as _0x27b0e4}from'../../errorsmap.js';export class AIChatConversation extends _0x1a8a3(){['id'];[_0x920cf9(0x169)]=!0x1;[_0x920cf9(0x154)]=[];[_0x920cf9(0x10a)];[_0x920cf9(0x13a)];[_0x920cf9(0x134)];[_0x920cf9(0xf6)];constructor(_0xf193ba){const _0x3320ad=_0x920cf9;super(),this[_0x3320ad(0xf6)]=_0xf193ba,this[_0x3320ad(0x134)]=_0xf193ba[_0x3320ad(0x134)],this[_0x3320ad(0x128)]=_0xf193ba[_0x3320ad(0x128)],this['id']=_0xf193ba[_0x3320ad(0x11c)];}async[_0x920cf9(0x126)](_0x33c062){const _0x4424cc=_0x920cf9;try{this[_0x4424cc(0x14a)]=new _0x149315({'connector':this[_0x4424cc(0x134)],'config':_0x33c062,'ownerId':this['id']}),this[_0x4424cc(0x14a)][_0x4424cc(0x14c)](..._0x27ba63)['to'](this),this[_0x4424cc(0x14a)][_0x4424cc(0x126)](),this[_0x4424cc(0x14e)]=new _0x1ec4ca(),this[_0x4424cc(0x14e)][_0x4424cc(0x14c)](..._0x253430)['to'](this),this[_0x4424cc(0x14e)][_0x4424cc(0x126)]();const _0x1ed1e2=await this[_0x4424cc(0x128)][_0x4424cc(0x157)]();this[_0x4424cc(0x105)](_0x4424cc(0x11d),{'availableModels':_0x1ed1e2});const _0x3c4e39=await this[_0x4424cc(0x128)][_0x4424cc(0x15e)](this[_0x4424cc(0xf6)][_0x4424cc(0x13e)]);_0x3c4e39&&await this[_0x4424cc(0xfe)](_0x3c4e39);}catch(_0x406d88){const _0x38fb71=new _0x121e54(_0x4424cc(0x166),null,{'message':_0x406d88[_0x4424cc(0x113)]||_0x406d88});_0x38fb71[_0x4424cc(0x10d)]=_0x406d88[_0x4424cc(0x10d)],this[_0x4424cc(0x105)](_0x4424cc(0x11b),{'error':_0x38fb71});}}async[_0x920cf9(0x11e)](){const _0x3ce8c2=_0x920cf9;if(this[_0x3ce8c2(0x169)])throw new _0x121e54(_0x3ce8c2(0x15f),null,{'conversation':this});if(!this[_0x3ce8c2(0x13a)])throw new _0x121e54(_0x3ce8c2(0x130),null,{'conversation':this});try{const {id:_0x396f51}=await this[_0x3ce8c2(0x134)][_0x3ce8c2(0x164)](this['id'],this[_0x3ce8c2(0xf6)][_0x3ce8c2(0x16b)])[_0x3ce8c2(0x150)]();this['id']=_0x396f51,this[_0x3ce8c2(0x169)]=!0x0,this[_0x3ce8c2(0x105)](_0x3ce8c2(0x103),{'conversationId':this['id'],'selectedModel':this[_0x3ce8c2(0x13a)]});}catch(_0x4760b0){const _0x3b9fb4=new _0x121e54(_0x3ce8c2(0x151),null,{'message':_0x4760b0[_0x3ce8c2(0x113)],'conversationId':this['id']});throw _0x3b9fb4[_0x3ce8c2(0x10d)]=_0x4760b0[_0x3ce8c2(0x10d)],this[_0x3ce8c2(0x105)](_0x3ce8c2(0x11b),{'error':_0x3b9fb4}),_0x3b9fb4;}}async[_0x920cf9(0x13f)](_0x18bb8b,_0x11b378){const _0x9ab58e=_0x920cf9;try{const _0x4f3408=await this[_0x9ab58e(0x134)][_0x9ab58e(0x135)](_0x18bb8b)[_0x9ab58e(0x150)](),_0xc9fb68=await this[_0x9ab58e(0x134)][_0x9ab58e(0x167)](_0x18bb8b)[_0x9ab58e(0x10f)](),_0x2f2b77=_0xc9fb68[0x0][_0x9ab58e(0x107)];this[_0x9ab58e(0x169)]=!0x0,this['id']=_0x4f3408['id'],_0x9ab58e(0x168)in _0x4f3408?this[_0x9ab58e(0x105)](_0x9ab58e(0x146),_0x4f3408[_0x9ab58e(0x168)],!0x0):this[_0x9ab58e(0x105)](_0x9ab58e(0x146),'',!0x0);const _0x38d5eb=(await this[_0x9ab58e(0x128)][_0x9ab58e(0xfc)]())[_0x9ab58e(0x10b)](_0x11998a=>_0x11998a['id'][_0x9ab58e(0x14f)]()===_0x2f2b77[_0x9ab58e(0x14f)]());return this[_0x9ab58e(0x13a)]=_0x38d5eb,this[_0x9ab58e(0x105)](_0x9ab58e(0x161),{'selectedModel':_0x38d5eb,'isDisabled':!0x0}),await this[_0x9ab58e(0x118)](_0xc9fb68,_0x11b378,_0x2f2b77),this[_0x9ab58e(0x10a)]=void 0x0,this;}catch(_0x5141f9){const _0x32ea0e=new _0x121e54(_0x9ab58e(0x12e),null,{'message':_0x5141f9[_0x9ab58e(0x113)],'conversationId':_0x18bb8b});throw _0x32ea0e[_0x9ab58e(0x10d)]=_0x5141f9[_0x9ab58e(0x10d)],this[_0x9ab58e(0x105)](_0x9ab58e(0x11b),{'error':_0x32ea0e}),_0x32ea0e;}}async[_0x920cf9(0x118)](_0x34d239,_0x14bcd8,_0x116f6c){const _0x3225db=_0x920cf9;let _0x5a9dd9;for(const _0x35c082 of _0x34d239)if(_0x3225db(0x106)===_0x35c082[_0x3225db(0x123)]){const _0x3aefde=await this[_0x3225db(0xf8)](_0x35c082),_0x129c28={'isReasoningEnabled':Object[_0x3225db(0x158)](_0x35c082[_0x3225db(0x12f)],_0x3225db(0x142)),'isWebSearchEnabled':Object[_0x3225db(0x158)](_0x35c082[_0x3225db(0x12f)],_0x3225db(0xfa))};_0x5a9dd9=this[_0x3225db(0x127)]({'userMessage':_0x35c082[_0x3225db(0x153)],'contextItems':_0x3aefde,'capabilities':_0x129c28,'modelId':_0x116f6c,'quickActionData':_0x35c082[_0x3225db(0x122)]?.[_0x3225db(0x119)]}),this[_0x3225db(0x10a)]=_0x5a9dd9,this[_0x3225db(0x14a)][_0x3225db(0x102)](this[_0x3225db(0x10a)][_0x3225db(0x139)]);}else{if(_0x3225db(0x109)===_0x35c082[_0x3225db(0x123)]&&_0x5a9dd9)for(const _0x1ce530 of _0x35c082[_0x3225db(0x15a)]){const _0x31f5db=_0x3225db(0x136)===_0x1ce530[_0x3225db(0x11a)]?_0x3225db(0x14b):_0x3225db(0x12b),_0x9cd1b1=_0x5a9dd9[_0x3225db(0x15b)]()?.[_0x3225db(0x114)]!==_0x14bcd8;_0x5a9dd9[_0x3225db(0x120)]=_0x5a9dd9[_0x3225db(0x117)]({'type':_0x31f5db,'isDone':!0x0,'interactionId':_0x5a9dd9['id'],'areActionsDisabled':_0x9cd1b1}),_0x5a9dd9[_0x3225db(0x120)][_0x3225db(0x110)](_0x1ce530[_0x3225db(0x15a)]);}}}async[_0x920cf9(0xf8)](_0x5e1772){const _0x4d4fe7=_0x920cf9,_0x5ea0d7=new Map();if(!_0x5e1772[_0x4d4fe7(0x15a)])return _0x5ea0d7;for(const _0x48cc06 of _0x5e1772[_0x4d4fe7(0x15a)]){const _0x33482d=await this[_0x4d4fe7(0x14a)][_0x4d4fe7(0x16a)](_0x48cc06);_0x33482d&&_0x5ea0d7[_0x4d4fe7(0x15c)](_0x33482d['id'],_0x33482d);}return _0x5ea0d7;}async[_0x920cf9(0x156)]({userMessage:_0x153760,quickActionData:_0x85fae6}){const _0x3c9f7d=_0x920cf9;if(!this[_0x3c9f7d(0x169)])throw new _0x121e54(_0x3c9f7d(0x16c),null,{'conversation':this});if(this[_0x3c9f7d(0x10a)])throw new _0x121e54(_0x3c9f7d(0xfd),null,{'conversation':this});try{const _0x2c88dd=this[_0x3c9f7d(0x14a)][_0x3c9f7d(0x132)](),_0x4c6261=this[_0x3c9f7d(0x14e)][_0x3c9f7d(0x133)](),_0x1f3d23=this[_0x3c9f7d(0x13a)]['id'];this[_0x3c9f7d(0x10a)]=this[_0x3c9f7d(0x127)]({'userMessage':_0x153760,'contextItems':_0x2c88dd,'capabilities':_0x4c6261,'modelId':_0x1f3d23,'quickActionData':_0x85fae6}),await this[_0x3c9f7d(0x10a)][_0x3c9f7d(0x11e)](),this[_0x3c9f7d(0x14a)][_0x3c9f7d(0x102)](this[_0x3c9f7d(0x10a)][_0x3c9f7d(0x139)]);}catch(_0x281b6e){if(_0x281b6e instanceof _0x121e54)this[_0x3c9f7d(0x105)](_0x3c9f7d(0x11b),{'interactionId':this[_0x3c9f7d(0x10a)]?this[_0x3c9f7d(0x10a)]['id']:void 0x0,'error':_0x281b6e});else{const _0x473784=_0x27b0e4[_0x3c9f7d(0x12c)](_0x281b6e[_0x3c9f7d(0x162)])||_0x3c9f7d(0x149);this[_0x3c9f7d(0x105)](_0x3c9f7d(0x11b),{'interactionId':this[_0x3c9f7d(0x10a)]?this[_0x3c9f7d(0x10a)]['id']:void 0x0,'error':new _0x121e54(_0x473784,null,{'error':_0x281b6e})});}}finally{this[_0x3c9f7d(0x10a)]?.[_0x3c9f7d(0x14d)](),this[_0x3c9f7d(0x10a)]=void 0x0;}}[_0x920cf9(0x127)]({userMessage:_0xc54e28,contextItems:_0x15e82f,capabilities:_0x449f8f,modelId:_0x56988d,quickActionData:_0x3f8e6b}){const _0x49dae0=_0x920cf9,_0x1f12ed=new _0x1a3021({'userMessage':_0xc54e28,'contextItems':_0x15e82f,'capabilities':_0x449f8f,'conversationId':this['id'],'connector':this[_0x49dae0(0x134)],'editor':this[_0x49dae0(0xf6)][_0x49dae0(0x13d)]&&this[_0x49dae0(0xf6)][_0x49dae0(0x13d)](),'model':_0x56988d,'quickActionData':_0x3f8e6b});return _0x1f12ed[_0x49dae0(0x14c)](..._0x57550d)['to'](this),this[_0x49dae0(0x154)][_0x49dae0(0x152)](_0x1f12ed),this[_0x49dae0(0x105)](_0x49dae0(0x160),_0x1f12ed),_0x1f12ed;}[_0x920cf9(0x116)](_0xc53be9){const _0x432702=_0x920cf9;return this[_0x432702(0x154)][_0x432702(0x10b)](_0x4742d1=>_0x4742d1['id']===_0xc53be9);}[_0x920cf9(0x112)](_0x22c0d0){const _0x47ab83=_0x920cf9,_0x7eaed3=this[_0x47ab83(0x116)](_0x22c0d0);_0x7eaed3&&(_0x7eaed3[_0x47ab83(0x11f)](),this[_0x47ab83(0x154)][_0x47ab83(0x10e)](this[_0x47ab83(0x154)][_0x47ab83(0x104)](_0x7eaed3),0x1));}get[_0x920cf9(0x138)](){const _0x5e293f=_0x920cf9;return this[_0x5e293f(0x154)][this[_0x5e293f(0x154)][_0x5e293f(0x100)]-0x1];}[_0x920cf9(0x141)](_0x428e70){const _0x599f16=_0x920cf9;this[_0x599f16(0x14a)][_0x599f16(0x141)](_0x428e70);}async[_0x920cf9(0x155)]({content:_0x271fd4,version:_0x5893e2,sessionId:_0x3091ee,selections:_0x516a00}){const _0x517a32=_0x920cf9;await this[_0x517a32(0x14a)][_0x517a32(0x140)](_0x271fd4,_0x5893e2,_0x3091ee,_0x516a00);}[_0x920cf9(0x12d)](){const _0x3a5dff=_0x920cf9;return this[_0x3a5dff(0x10a)]?.[_0x3a5dff(0x15b)]()?.[_0x3a5dff(0x15a)]||'';}[_0x920cf9(0xf7)](_0xe928bb){const _0x234ba6=_0x920cf9;this[_0x234ba6(0x14a)][_0x234ba6(0xf7)](_0xe928bb);}[_0x920cf9(0x145)](){const _0x2b458d=_0x920cf9;this[_0x2b458d(0x14a)][_0x2b458d(0x145)]();}[_0x920cf9(0x10c)](_0x140c9a){const _0x19dbcb=_0x920cf9;this[_0x19dbcb(0x14a)][_0x19dbcb(0x10c)](_0x140c9a);}[_0x920cf9(0xf9)](_0x11d484){const _0x3ec7ef=_0x920cf9;this[_0x3ec7ef(0x14a)][_0x3ec7ef(0xf9)](_0x11d484);}[_0x920cf9(0x121)](_0x5c15f0,_0xd9c16){const _0x58cdd8=_0x920cf9;this[_0x58cdd8(0x14a)][_0x58cdd8(0x121)](_0x5c15f0,_0xd9c16);}[_0x920cf9(0x15d)](_0x549674,_0x33c741,_0x4e2bdd){const _0x208640=_0x920cf9;return this[_0x208640(0x14a)][_0x208640(0x15d)](_0x549674,_0x33c741,_0x4e2bdd);}[_0x920cf9(0x159)](_0x271cc3){const _0x321ba1=_0x920cf9;this[_0x321ba1(0x14a)][_0x321ba1(0x159)](_0x271cc3);}[_0x920cf9(0xfb)](){const _0xfacb6=_0x920cf9;this[_0xfacb6(0x14e)][_0xfacb6(0xfb)]();}[_0x920cf9(0x165)](){const _0xd85bff=_0x920cf9;this[_0xd85bff(0x14e)][_0xd85bff(0x165)]();}[_0x920cf9(0x115)](){const _0x334a6a=_0x920cf9;return this[_0x334a6a(0x14a)][_0x334a6a(0x115)]();}[_0x920cf9(0x108)](){const _0x1458bc=_0x920cf9;return this[_0x1458bc(0x14a)][_0x1458bc(0x108)]();}[_0x920cf9(0x129)](){const _0x22807d=_0x920cf9;return this[_0x22807d(0x14a)][_0x22807d(0x129)]();}async[_0x920cf9(0xfe)](_0x3b5aff){const _0x228691=_0x920cf9;_0x3b5aff?!0x1===await this[_0x228691(0x128)][_0x228691(0x125)](_0x3b5aff)&&(_0x267554(_0x228691(0xff),{'conversation':this,'model':_0x3b5aff}),_0x3b5aff=(await this[_0x228691(0x128)][_0x228691(0x157)]())[0x0]):(_0x267554(_0x228691(0x147),{'conversation':this}),_0x3b5aff=(await this[_0x228691(0x128)][_0x228691(0x157)]())[0x0]),_0x3b5aff['id']!==this[_0x228691(0x13a)]?.['id']&&(this[_0x228691(0x13a)]=_0x3b5aff,this[_0x228691(0x14e)][_0x228691(0x12a)](),this[_0x228691(0x105)](_0x228691(0x161),{'selectedModel':_0x3b5aff}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5c4eeb=_0x451b;function _0x376c(){var _0x49d291=['2709311xBmggi','4261352cTNGrR','4472469njQRYF','7195xdDWpa','conversationId','96tatoXp','980wgWILw','model','5710tmozOH','get','connector','getDocumentContext','queryAssistant','mapContextItemsToRequestData','2996hbwhum','430272vQbtGO','userMessage','sendRequest','126jPJoEP','getCapabilitiesRequestData','quickActionData','20uhhNDh','current-document','capabilities','contextItems'];_0x376c=function(){return _0x49d291;};return _0x376c();}(function(_0xae4155,_0x163317){var _0x564edd=_0x451b,_0x181915=_0xae4155();while(!![]){try{var _0x5ae53c=parseInt(_0x564edd(0x13c))/0x1*(parseInt(_0x564edd(0x13f))/0x2)+-parseInt(_0x564edd(0x12d))/0x3+parseInt(_0x564edd(0x13d))/0x4*(-parseInt(_0x564edd(0x13a))/0x5)+-parseInt(_0x564edd(0x130))/0x6*(parseInt(_0x564edd(0x145))/0x7)+parseInt(_0x564edd(0x138))/0x8+-parseInt(_0x564edd(0x139))/0x9+-parseInt(_0x564edd(0x133))/0xa*(-parseInt(_0x564edd(0x137))/0xb);if(_0x5ae53c===_0x163317)break;else _0x181915['push'](_0x181915['shift']());}catch(_0x5321f3){_0x181915['push'](_0x181915['shift']());}}}(_0x376c,0x489e3));import{AICapabilities as _0x217141}from'../../aicore/model/aicapabilities.js';function _0x451b(_0x2d320c,_0x29200c){var _0x376c18=_0x376c();return _0x451b=function(_0x451be6,_0x5520e2){_0x451be6=_0x451be6-0x12d;var _0x5ac809=_0x376c18[_0x451be6];return _0x5ac809;},_0x451b(_0x2d320c,_0x29200c);}import{AIInteraction as _0x385771}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x5be586}from'./aichatcontext.js';export class AIChatInteraction extends _0x385771{[_0x5c4eeb(0x12e)];[_0x5c4eeb(0x13b)];[_0x5c4eeb(0x136)]=new Map();[_0x5c4eeb(0x13e)];[_0x5c4eeb(0x132)];constructor(_0x554246){var _0x2fc20b=_0x5c4eeb;super(_0x554246),this[_0x2fc20b(0x13b)]=_0x554246[_0x2fc20b(0x13b)],this[_0x2fc20b(0x136)]=_0x554246[_0x2fc20b(0x136)],this[_0x2fc20b(0x135)]=_0x554246[_0x2fc20b(0x135)],this[_0x2fc20b(0x12e)]=_0x554246[_0x2fc20b(0x12e)],this[_0x2fc20b(0x13e)]=_0x554246[_0x2fc20b(0x13e)],this[_0x2fc20b(0x132)]=_0x554246[_0x2fc20b(0x132)];}async[_0x5c4eeb(0x12f)](){var _0x29b4a8=_0x5c4eeb;return this[_0x29b4a8(0x141)][_0x29b4a8(0x143)]({'message':this[_0x29b4a8(0x12e)],'conversationId':this[_0x29b4a8(0x13b)],'parts':_0x5be586[_0x29b4a8(0x144)](this[_0x29b4a8(0x136)]),'capabilities':_0x217141[_0x29b4a8(0x131)](this[_0x29b4a8(0x135)]),'model':this[_0x29b4a8(0x13e)],'quickActionData':this[_0x29b4a8(0x132)]});}[_0x5c4eeb(0x142)](){var _0x529d36=_0x5c4eeb;return this[_0x529d36(0x136)][_0x529d36(0x140)](_0x529d36(0x134));}}
23
+ function _0x1715(_0x6f0df3,_0x3010ad){var _0x13bdb6=_0x13bd();return _0x1715=function(_0x171528,_0x2200bf){_0x171528=_0x171528-0x13c;var _0x2d7df4=_0x13bdb6[_0x171528];return _0x2d7df4;},_0x1715(_0x6f0df3,_0x3010ad);}var _0x55b3f2=_0x1715;(function(_0x2fd950,_0x2f1b9b){var _0x2abe17=_0x1715,_0x40a724=_0x2fd950();while(!![]){try{var _0x26e01c=-parseInt(_0x2abe17(0x153))/0x1*(parseInt(_0x2abe17(0x145))/0x2)+-parseInt(_0x2abe17(0x14a))/0x3*(-parseInt(_0x2abe17(0x13e))/0x4)+parseInt(_0x2abe17(0x14f))/0x5*(-parseInt(_0x2abe17(0x14c))/0x6)+parseInt(_0x2abe17(0x14e))/0x7+-parseInt(_0x2abe17(0x14b))/0x8+parseInt(_0x2abe17(0x148))/0x9+parseInt(_0x2abe17(0x152))/0xa*(parseInt(_0x2abe17(0x141))/0xb);if(_0x26e01c===_0x2f1b9b)break;else _0x40a724['push'](_0x40a724['shift']());}catch(_0x222ac6){_0x40a724['push'](_0x40a724['shift']());}}}(_0x13bd,0x3afcd));import{AICapabilities as _0x433e9f}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x4dde3d}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x39f054}from'./aichatcontext.js';export class AIChatInteraction extends _0x4dde3d{[_0x55b3f2(0x151)];[_0x55b3f2(0x140)];[_0x55b3f2(0x13d)]=new Map();[_0x55b3f2(0x144)];[_0x55b3f2(0x149)];constructor(_0x64dc71){var _0x257968=_0x55b3f2;super(_0x64dc71),this[_0x257968(0x140)]=_0x64dc71[_0x257968(0x140)],this[_0x257968(0x13d)]=_0x64dc71[_0x257968(0x13d)],this[_0x257968(0x146)]=_0x64dc71[_0x257968(0x146)],this[_0x257968(0x151)]=_0x64dc71[_0x257968(0x151)],this[_0x257968(0x144)]=_0x64dc71[_0x257968(0x144)],this[_0x257968(0x149)]=_0x64dc71[_0x257968(0x149)];}async[_0x55b3f2(0x13f)](){var _0x4a88d2=_0x55b3f2;return this[_0x4a88d2(0x13c)][_0x4a88d2(0x14d)]({'message':this[_0x4a88d2(0x151)],'conversationId':this[_0x4a88d2(0x140)],'parts':_0x39f054[_0x4a88d2(0x142)](this[_0x4a88d2(0x13d)]),'capabilities':_0x433e9f[_0x4a88d2(0x150)](this[_0x4a88d2(0x146)]),'model':this[_0x4a88d2(0x144)],'quickActionData':this[_0x4a88d2(0x149)]});}[_0x55b3f2(0x147)](){var _0x4bb1b6=_0x55b3f2;return this[_0x4bb1b6(0x13d)][_0x4bb1b6(0x154)](_0x4bb1b6(0x143));}}function _0x13bd(){var _0x279806=['350962CYXhgm','capabilities','getDocumentContext','2203281sMxRyX','quickActionData','1695RgYKJF','1136344LrxOpp','6UiCGDW','queryAssistant','996485rriKcy','2363305ZLpFxg','getCapabilitiesRequestData','userMessage','11890HJLgrC','1erBvTC','get','connector','contextItems','2956eQpKIi','sendRequest','conversationId','2101cRKSXW','mapContextItemsToRequestData','current-document','model'];_0x13bd=function(){return _0x279806;};return _0x13bd();}