@ckeditor/ckeditor5-ai 47.1.0-alpha.2 → 47.1.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 (114) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +4 -4
  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/awstextadapter.js +1 -1
  8. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  9. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  10. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  11. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  12. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  13. package/src/aiassistant/ui/form/aiformview.js +1 -1
  14. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  15. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  16. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  17. package/src/aiballoon/aiballoon.js +1 -1
  18. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  19. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  20. package/src/aiballoon/ui/aiballoonview.js +1 -1
  21. package/src/aichat/aichat.js +1 -1
  22. package/src/aichat/aichatcontroller.js +1 -1
  23. package/src/aichat/aichatui.js +1 -1
  24. package/src/aichat/model/aichatcontext.js +1 -1
  25. package/src/aichat/model/aichatconversation.js +1 -1
  26. package/src/aichat/model/aichatinteraction.js +1 -1
  27. package/src/aichat/model/aichatmodels.js +1 -1
  28. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  29. package/src/aichat/ui/aichatfeedview.js +1 -1
  30. package/src/aichat/ui/aichatheaderview.js +1 -1
  31. package/src/aichat/ui/aichatview.js +1 -1
  32. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  33. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  34. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  35. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  36. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  37. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  38. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  39. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  40. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  41. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  42. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  43. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  44. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  45. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  46. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  47. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  48. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  49. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  50. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  53. package/src/aichat/utils/eventnames.js +1 -1
  54. package/src/aichat/utils/promisequeue.js +1 -1
  55. package/src/aichathistory/aichathistory.js +1 -1
  56. package/src/aichathistory/aichathistorycontroller.js +1 -1
  57. package/src/aichathistory/aichathistoryui.js +1 -1
  58. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  59. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  60. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  61. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  62. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  63. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  64. package/src/aicore/aiconnector.js +1 -1
  65. package/src/aicore/aiediting.js +1 -1
  66. package/src/aicore/model/aicapabilities.js +1 -1
  67. package/src/aicore/model/aiinteraction.js +1 -1
  68. package/src/aicore/model/aireply.js +1 -1
  69. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  70. package/src/aicore/pipeline/airesponseparser.js +2 -2
  71. package/src/aicore/ui/aidisclaimerview.js +1 -1
  72. package/src/aicore/ui/aiskeleton.js +1 -1
  73. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  74. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  75. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  76. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  77. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  78. package/src/aicore/utils/createresizebutton.js +1 -1
  79. package/src/aicore/utils/documentposition.js +1 -1
  80. package/src/aicore/utils/documentrange.js +1 -1
  81. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  82. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  83. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  84. package/src/aicore/utils/htmlparser.js +1 -1
  85. package/src/aicore/utils/htmlstreamer.js +1 -1
  86. package/src/aieditorintegration/aieditorintegration.js +1 -1
  87. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  88. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  89. package/src/aiquickactions/aiquickactions.js +1 -1
  90. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  91. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  92. package/src/aiquickactions/aiquickactionsui.js +1 -1
  93. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  94. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  95. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  96. package/src/aireviewmode/aireviewmode.js +1 -1
  97. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  98. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  99. package/src/aireviewmode/aireviewmodeui.js +1 -1
  100. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  101. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  102. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  103. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  104. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  105. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  106. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  107. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  108. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  109. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  110. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  111. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  112. package/src/aitabs/aitabs.js +1 -1
  113. package/src/aitabs/tabs/aitabsview.js +1 -1
  114. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2959fe=_0x3cb2;(function(_0x90bfeb,_0x36bf0e){const _0x22d784=_0x3cb2,_0x2cc018=_0x90bfeb();while(!![]){try{const _0x5bd652=-parseInt(_0x22d784(0xc4))/0x1+parseInt(_0x22d784(0x1ba))/0x2+-parseInt(_0x22d784(0xb9))/0x3*(-parseInt(_0x22d784(0x108))/0x4)+-parseInt(_0x22d784(0x1e4))/0x5*(parseInt(_0x22d784(0x13e))/0x6)+parseInt(_0x22d784(0x10e))/0x7*(-parseInt(_0x22d784(0x13d))/0x8)+parseInt(_0x22d784(0x1a0))/0x9+parseInt(_0x22d784(0x1e3))/0xa;if(_0x5bd652===_0x36bf0e)break;else _0x2cc018['push'](_0x2cc018['shift']());}catch(_0x38b62e){_0x2cc018['push'](_0x2cc018['shift']());}}}(_0x3ec8,0xa315e));import{ContextPlugin as _0x3bc28d,Editor as _0x154d8f}from'ckeditor5/src/core.js';import{CKEditorError as _0x5f5d65,logError as _0x11d9f0,scrollViewportToShowTarget as _0x51d042,uid as _0x206d05}from'ckeditor5/src/utils.js';function _0x3ec8(){const _0x9883eb=['node','addFeedItemAIReply','requires','maxOffset','map','resetMessageInput','contextItems','toggleSuggestionDisplayMode','sources','showDiff','path','ai-chat-controller-no-active-conversation','getInteraction','listenTo','ai-chat-resource-load-failed','_removeAISelectionMarkers','has','Disliked\x20response','sourceResourcesLoaded','config','isCurrentDocumentInContext','collaboration.channelId','DocumentCompare','AI_CHAT_ABORTED_MESSAGE','query','range','addSelectionToContext','children','ai-request-aborted','isPremiumPlugin','domConverter','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','1787104MIQUkY','217734gBjPHa','forEach','updateCurrentDocumentInContext','AI_CHAT_CONTEXT_INVALID_DATA','AI_CHAT_UNTITLED_CONVERSATION','baseVersion','ai-conversation-','AIEditing','ai-chat-context-unsupported-type','sourcePosition','isModelAvailable','getRanges','updateFeedItemAIReplySuggestionPartState','plugins','get','showChangeInText','editors','locale','_handleStartConversation','model','getRoot','loadConversation','changeGroups','getReply','selectModel','_scrollToSuggestionRange','filter','ai-chat-source-resources-load-failed','webSearchStarted','removeFromContext','resource','contextSent','like','_stopLastInteraction','undo','startsWith','_aiChatModels','AIChatController','rootName','content','load','_handleUIUserMessage','getAttribute','getChildren','find','contextItemAdded','addResourceToContext','end','clearConversationContextUI','disableControls','setChangeGroupState','uid','setLoadingMessage','documentContextContent','reasoningStarted','startInteraction','_createFromRanges','updateCapabilities','getPath','sendUserMessage','finishInteraction','history','hideFakeVisualSelection','insertSuggestion','updateFeedItemAIReplyContent','replyContentUpdated','isDocumentOperation','start','addDocumentToContext','toggleWebSearch','uploadProgressChanged','delete','setSelectedModel','dialogClosed','streaming','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','updateContent','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','interactionStarted','_applyOperationsAsSuggestions','replyCreated','replies','howMany','isLoading','add','addFileToContext','dislike','full','setModel','setConversationTitle','AITabs','_aiChatUi','populateSourceResourceBalloon','close','applySuggestion','createPositionFromPath','ai-chat-controller-mouse-over','version','1888092GNnahj','mouseOverSuggestion','addFeedItemUserMessage','data','isOfficialPlugin','getTransformedByOperation','closeSourceResourceBalloon','ai-chat-file-upload-failed','partIndex','setContextItemLoading','rejectSuggestion','nextSibling','_insertSuggestion','cloneNode','getMarkersGroup','removeFeedInteraction','Undo','createConversation','stopListening','toggleReasoning','clearPendingContextUI','unshift','rejected','context','log','push','958602WPdWYQ','getDocumentContext','addFilesToContext','AIConnector','activeConversation','contextItem','setIsMaximized','error','addContextOptionsChanged','current-document','toViewRange','mouseLeaveSuggestion','ai-chat-missing-channel-id','AI_CHAT_GENERIC_ERROR','showNext','changes','upsertAIChatRating','ai.chat.models.displayedModels','_updateReplyContent','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','change','isOpen','_openBalloonFor','alignToTop','isDisabled','ready','isUploadInProgress','removeSelectionFromChatContext','isInContext','anchorId','resetConversationTitle','new','interactionDestroyed','parse','addCurrentDocumentToContext','handleRemovedConversation','text-delta','markers','modelSelected','addUrlToContext','showPrevious','13429600fKVfhn','170qKveVc','setFeedItemRenderingStrategy','data-id','revert','resourceId','resizeTabs','startConversation','indexOf','addOperation','mapper','interactionId','updateResourceState','accepted','_applySuggestion','updateFeedItemAIReplySuggestionContent','updateConversationTitle','AIChatUI','root','ai-chat-context-invalid-data','getOperations','createPositionAt','applyOperation','updateFeedItemAIReplySources','addFeedItemAISuggestion','AI_CHAT_UNABLE_TO_START_CONVERSATION','_getDocumentRangeForReplyChanges','_logError','addFeedInteractionHeader','removeMarker','stop','pending','focusPromptInput','toggleLoadingSkeleton','handleUserInteraction','set','remove','reasoningFinished','_aiEditing','setAddContextOptions','afterInit','viewRangeToDom','createRange','toString','replyId','436470dWbZNe','contextItemLoadingEnded','_batchToChanges','static','batch','ai.chat.context','ai-chat-url-upload-failed','activateTab','getDocumentData','length','showFakeVisualSelection','410899YWFAOy','abortPromptStream','slice','replyChangeGroupStateUpdated','removeSelectionFromContext','ai-chat-conversation-start-failed','type','interactionFinished','resources','resize','capabilitiesUpdated','message','main','_flushLastInteractionUI','isCurrentDocumentInConversation','getFirstRange','Showing\x20conversation\x20history...','sourceId','resourceStateChanged','split','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','getInteractionAndReplyById','getSelectionText','Failed\x20to\x20load\x20conversation','removeContextItem','_integrateEditor','lastInteraction','marker','options','_previewedChangeGroup','$graveyard','_aiConnector','isStarted','addSelectionToChatContext','getChildAtOffset','contextItemRemoved','document','conversationInitialized','_toggleReasoning','sendMessage','source','_balloonShowDiff','pluginName','stopInteraction','ai-chat-conversation-init-failed','scrollFeedToSuggestion','getGroupId','modification-delta','getChild','view','addFeedItemError','addContextItem','outdated','redo','setConversationContext','addFeedItemStaticMessage','open','from','getDiff','messageId','editing','state','_toggleWebSearch','enableControls','resizedTabs','loadSourceResources','Liked\x20response','AI_BALLOON_HEADER_TITLE','20qONmYQ','_removeFromContext','chat','setIsUploadInProgress','ai.chat.models.defaultModelId','removed','14SfnhfM','commands','_startConversationSafely','_showConversationHistory','_setIsMaximized','AI_CHAT_RESOURCE_LOAD_FAILED','selectedModel','selection','indexes','TrackChangesEditing','init','_updateRatings','webSearchFinished','uiId','interactionCreated'];_0x3ec8=function(){return _0x9883eb;};return _0x3ec8();}import{AIConnector as _0x3490d3}from'../aicore/aiconnector.js';import{AITabs as _0x26399c}from'../aitabs/aitabs.js';import{AIChatConversation as _0x2606c7}from'./model/aichatconversation.js';function _0x3cb2(_0x50f553,_0x9d9da){const _0x3ec81b=_0x3ec8();return _0x3cb2=function(_0x3cb2de,_0x14665a){_0x3cb2de=_0x3cb2de-0xb3;let _0x167c44=_0x3ec81b[_0x3cb2de];return _0x167c44;},_0x3cb2(_0x50f553,_0x9d9da);}import{getTranslation as _0x551fe0}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x1acfd1}from'../aicore/aiediting.js';import{AIChatModels as _0x5bc5e8}from'./model/aichatmodels.js';import{getEditorFromContext as _0x2ef871}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x59eb4a,DATA_ID_MODEL_ATTRIBUTE as _0x597eef}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x489a7d}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x40c1c7,getMinimalSelection as _0x57681d,getSuggestionPartsFromReply as _0x53055b}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x257a5e,_DetachOperation as _0x4fc256}from'ckeditor5/src/engine.js';import{findOne as _0x30d9ab,getAttribute as _0xf55265,serialize as _0x19df6a,Document as _0x3f36a5,findByAttribute as _0x29445a}from'../aicore/utils/htmlparser.js';import{IconAI as _0x223375}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0xeb076d}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x456468}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x3bc28d{[_0x2959fe(0x209)];[_0x2959fe(0xe3)];[_0x2959fe(0x199)];[_0x2959fe(0x162)];[_0x2959fe(0xbb)]=new Map();[_0x2959fe(0xe1)]=null;[_0x2959fe(0xed)]=!0x1;static get[_0x2959fe(0x11f)](){return[_0x3490d3,_0x456468,_0x59eb4a];}static get[_0x2959fe(0xee)](){const _0xc96560=_0x2959fe;return _0xc96560(0x163);}static get[_0x2959fe(0x1a4)](){return!0x0;}static get[_0x2959fe(0x13a)](){return!0x0;}[_0x2959fe(0x118)](){const _0x105620=_0x2959fe;this[_0x105620(0xe3)]=this[_0x105620(0x1b7)][_0x105620(0x14b)][_0x105620(0x14c)](_0x105620(0x1bd)),this[_0x105620(0x199)]=this[_0x105620(0x1b7)][_0x105620(0x14b)][_0x105620(0x14c)](_0x105620(0x1f4)),this[_0x105620(0x209)]=this[_0x105620(0x1b7)][_0x105620(0x14b)][_0x105620(0x14c)](_0x105620(0x145)),this[_0x105620(0x162)]=new _0x5bc5e8({'connector':this[_0x105620(0xe3)],'displayedModels':this[_0x105620(0x1b7)][_0x105620(0x130)][_0x105620(0x14c)](_0x105620(0x1cb)),'defaultModelId':this[_0x105620(0x1b7)][_0x105620(0x130)][_0x105620(0x14c)](_0x105620(0x10c))});const _0x2c6c1b=this[_0x105620(0x1b7)][_0x105620(0x14b)][_0x105620(0x14c)](_0x105620(0x198));this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x1ea),()=>{const _0x4a11c2=_0x105620;this[_0x4a11c2(0x110)]();}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x179),(_0x469283,_0x1a29cf)=>{const _0x5aec23=_0x105620;this[_0x5aec23(0x167)]({'userMessage':_0x1a29cf});}),this[_0x105620(0x12a)](_0x2c6c1b,_0x105620(0x104),(_0x7344f5,_0x544892)=>{const _0x896a9d=_0x105620;this[_0x896a9d(0x112)](_0x544892);}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x1e9),()=>{const _0x4000db=_0x105620;_0x2c6c1b[_0x4000db(0xcd)]();}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0xc5),async()=>{const _0x3d15f4=_0x105620;await this[_0x3d15f4(0x15f)](),await this[_0x3d15f4(0xd1)]();}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x182),()=>{const _0xb4d286=_0x105620;this[_0xb4d286(0x1be)]?.[_0xb4d286(0x1dc)](_0x551fe0(this[_0xb4d286(0x1b7)][_0xb4d286(0x14f)],_0xb4d286(0x1cd)));}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x193),(_0x37c942,_0x49645d)=>{const _0x505165=_0x105620;this[_0x505165(0x1be)]?.[_0x505165(0x1bc)](Array[_0x505165(0xfd)](_0x49645d));}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x1e1),(_0x1c8363,_0x530f80)=>{const _0x35e56b=_0x105620;this[_0x35e56b(0x1be)]?.[_0x35e56b(0x1e1)](_0x530f80);}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x16c),(_0x5f29b9,_0x1cc5a3)=>{const _0xaf2ddb=_0x105620;this[_0xaf2ddb(0x1be)]?.[_0xaf2ddb(0x16c)](_0x1cc5a3[_0xaf2ddb(0xec)],_0x1cc5a3[_0xaf2ddb(0x15c)]);}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0xdc),(_0x20d6a8,_0x5c2845)=>{const _0xe7fbf2=_0x105620;this[_0xe7fbf2(0x109)](_0x5c2845);}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x105),(_0x8c85ac,_0x3c7170)=>{const _0x8e63e1=_0x105620;this[_0x8e63e1(0x1be)]?.[_0x8e63e1(0x105)](_0x3c7170[_0x8e63e1(0xd5)],_0x3c7170[_0x8e63e1(0x135)],_0x3c7170[_0x8e63e1(0x171)]);}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x183),()=>{const _0x1be702=_0x105620;this[_0x1be702(0x102)]();}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x1b3),()=>{const _0x351ceb=_0x105620;this[_0x351ceb(0xea)]();}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x156),(_0x50408a,_0x541300)=>{const _0x52d8f3=_0x105620;this[_0x52d8f3(0x1be)]?.[_0x52d8f3(0x196)](_0x541300);}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x15e),(_0x5021e8,{replyId:_0x3a2079})=>{const _0x1aac86=_0x105620;console[_0x1aac86(0x1b8)](_0x1aac86(0x106),_0x3a2079);}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x194),(_0x1029bc,{replyId:_0x1e2d58})=>{const _0xc4718a=_0x105620;console[_0xc4718a(0x1b8)](_0xc4718a(0x12e),_0x1e2d58);}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x17d),(_0x91b1b3,_0x3fa172)=>{const _0x57a966=_0x105620;this[_0x57a966(0x1b7)][_0x57a966(0x14b)][_0x57a966(0x14c)](_0x456468)[_0x57a966(0x19b)](),this[_0x57a966(0x1ac)](_0x3fa172);}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x14d),(_0x13191f,{replyId:_0xc30147,partIndex:_0x185218})=>{const _0x248e41=_0x105620;this[_0x248e41(0xed)]=this[_0x248e41(0x199)][_0x248e41(0x126)],this[_0x248e41(0x1d0)](_0xc30147,_0x185218);}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x1a1),(_0x51da18,{replyId:_0x564c79,partIndex:_0x5c96b5})=>{const _0x46b0cf=_0x105620,_0x47e158=this[_0x46b0cf(0x1fd)](_0x564c79,_0x5c96b5);_0x47e158&&_0x46b0cf(0xe2)!=_0x47e158[_0x46b0cf(0x136)][_0x46b0cf(0x1f5)][_0x46b0cf(0x164)]&&this[_0x46b0cf(0x209)][_0x46b0cf(0xc3)]([_0x47e158[_0x46b0cf(0x136)]],_0x46b0cf(0x19e));}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x1c5),()=>{const _0x4aff55=_0x105620;this[_0x4aff55(0x209)][_0x4aff55(0x17c)](_0x4aff55(0x19e));}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x19c),(_0xe47c2c,_0x3705c1)=>{const _0x1b32cc=_0x105620;this[_0x1b32cc(0x1b7)][_0x1b32cc(0x14b)][_0x1b32cc(0x14c)](_0x456468)[_0x1b32cc(0x19b)](),this[_0x1b32cc(0x1f1)](_0x3705c1);}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x124),async(_0x18bdad,_0x30d51a)=>{const _0x3034ee=_0x105620,{reply:_0x5d1c92}=this[_0x3034ee(0xd9)](_0x30d51a[_0x3034ee(0xb8)]),_0x5bdf2a=_0x2ef871(this[_0x3034ee(0x1b7)]),_0x52db42=_0x53055b({'editor':_0x5bdf2a,'changeGroups':_0x5d1c92[_0x3034ee(0x154)],'documentContextContent':_0x5d1c92[_0x3034ee(0x173)],'showDiff':_0x30d51a[_0x3034ee(0x126)]});await this[_0x3034ee(0x199)][_0x3034ee(0x1f2)]({'id':_0x5d1c92['id'],'parts':_0x52db42,'renderingStrategy':_0x3034ee(0xbc)});}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x1aa),(_0x363f35,{replyId:_0x57a26f,partIndex:_0x20050a})=>{const _0x3977cd=_0x105620;this[_0x3977cd(0xe1)]?.[_0x3977cd(0xb8)]==_0x57a26f&&this[_0x3977cd(0xe1)]?.[_0x3977cd(0x1a8)]==_0x20050a&&this[_0x3977cd(0x1b7)][_0x3977cd(0x14b)][_0x3977cd(0x14c)](_0x456468)[_0x3977cd(0x19b)]();const {reply:_0x573a62}=this[_0x3977cd(0xd9)](_0x57a26f);_0x573a62[_0x3977cd(0x170)](_0x20050a,_0x3977cd(0x1b6)),this[_0x3977cd(0x209)][_0x3977cd(0x17c)](_0x3977cd(0x19e));});}async[_0x2959fe(0xb4)](){const _0x48e406=_0x2959fe;this[_0x48e406(0x1b7)]instanceof _0x154d8f?this[_0x48e406(0xdd)](this[_0x48e406(0x1b7)]):this[_0x48e406(0x12a)](this[_0x48e406(0x1b7)][_0x48e406(0x14e)],_0x48e406(0x192),(_0x2ca8e1,_0x3f57ec)=>{const _0x55f13b=_0x48e406;_0x3f57ec['on'](_0x55f13b(0x1d3),()=>{const _0x302d7b=_0x55f13b;this[_0x302d7b(0xdd)](_0x3f57ec);});}),await this[_0x48e406(0x110)]();}[_0x2959fe(0x1ac)](_0x3edadc){const _0x34a34b=_0x2959fe,_0x7275b4=_0x2ef871(this[_0x34a34b(0x1b7)]);if(!_0x7275b4[_0x34a34b(0x14b)][_0x34a34b(0x12d)](_0x34a34b(0x117)))return;const _0x26d785=this[_0x34a34b(0x1b7)][_0x34a34b(0x14b)][_0x34a34b(0x14c)](_0x34a34b(0x133)),{reply:_0x126a8f,interaction:_0x37fdf4}=this[_0x34a34b(0xd9)](_0x3edadc[_0x34a34b(0xb8)]),_0x23ae24=this[_0x34a34b(0x1fd)](_0x3edadc[_0x34a34b(0xb8)],_0x3edadc[_0x34a34b(0x1a8)]),_0x347dbf=void 0x0!==_0x3edadc[_0x34a34b(0x1a8)]?[_0x126a8f[_0x34a34b(0x154)][_0x3edadc[_0x34a34b(0x1a8)]]]:_0x126a8f[_0x34a34b(0x154)][_0x34a34b(0x158)](_0x2fa1aa=>_0x34a34b(0x202)==_0x2fa1aa[_0x34a34b(0x101)]),_0x948a97=_0x347dbf[_0x34a34b(0x121)](_0x208c66=>_0x126a8f[_0x34a34b(0x154)][_0x34a34b(0x1eb)](_0x208c66));if(!_0x23ae24||_0x34a34b(0xe2)==_0x23ae24[_0x34a34b(0x136)][_0x34a34b(0x1f5)][_0x34a34b(0x164)])return void _0x948a97[_0x34a34b(0x13f)](_0x45e5be=>_0x126a8f[_0x34a34b(0x170)](_0x45e5be,_0x34a34b(0xf8)));_0x948a97[_0x34a34b(0x13f)](_0x15ff3c=>_0x126a8f[_0x34a34b(0x170)](_0x15ff3c,_0x34a34b(0x1f0)));const _0x352a31=_0x489a7d({'editor':_0x7275b4,'reply':_0x126a8f,'interaction':_0x37fdf4,'groups':_0x347dbf,'transform':!0x0,'documentCompare':_0x26d785,'documentCompareOptions':{'anchor':_0x34a34b(0xd0),'markDeletions':!0x0}});let _0x4899f0;_0x23ae24&&this[_0x34a34b(0x157)](_0x23ae24[_0x34a34b(0x136)]),_0x7275b4[_0x34a34b(0x151)][_0x34a34b(0x1ce)](_0x225011=>{const _0x2f0c5c=_0x34a34b;_0x4899f0=_0x225011[_0x2f0c5c(0xbd)],_0x7275b4[_0x2f0c5c(0x14b)][_0x2f0c5c(0x14c)](_0x2f0c5c(0x117))[_0x2f0c5c(0x18d)](_0x352a31),this[_0x2f0c5c(0x209)][_0x2f0c5c(0x17c)](_0x2f0c5c(0x19e));}),this[_0x34a34b(0xbb)][_0x34a34b(0x206)](_0x4899f0,{'interactionId':_0x37fdf4['id'],'replyId':_0x126a8f['id'],'indexes':_0x948a97[_0x34a34b(0xc6)]()}),this[_0x34a34b(0x119)](_0x126a8f);}[_0x2959fe(0x1f1)](_0xde7f4c){const _0x83be3c=_0x2959fe,_0x98870c=_0x2ef871(this[_0x83be3c(0x1b7)]),_0x34c75d=this[_0x83be3c(0x1b7)][_0x83be3c(0x14b)][_0x83be3c(0x14c)](_0x59eb4a),{reply:_0x363750,interaction:_0x4cfdf8}=this[_0x83be3c(0xd9)](_0xde7f4c[_0x83be3c(0xb8)]),_0x42f965=this[_0x83be3c(0x1fd)](_0xde7f4c[_0x83be3c(0xb8)],_0xde7f4c[_0x83be3c(0x1a8)]),_0x3d7d9b=void 0x0!==_0xde7f4c[_0x83be3c(0x1a8)]?[_0x363750[_0x83be3c(0x154)][_0xde7f4c[_0x83be3c(0x1a8)]]]:_0x363750[_0x83be3c(0x154)][_0x83be3c(0x158)](_0x21c9f8=>_0x83be3c(0x202)==_0x21c9f8[_0x83be3c(0x101)]),_0x5ada43=_0x3d7d9b[_0x83be3c(0x121)](_0x518859=>_0x363750[_0x83be3c(0x154)][_0x83be3c(0x1eb)](_0x518859));if(!_0x42f965||_0x83be3c(0xe2)==_0x42f965[_0x83be3c(0x136)][_0x83be3c(0x1f5)][_0x83be3c(0x164)])return void _0x5ada43[_0x83be3c(0x13f)](_0x23a099=>_0x363750[_0x83be3c(0x170)](_0x23a099,_0x83be3c(0xf8)));_0x5ada43[_0x83be3c(0x13f)](_0x397cd1=>_0x363750[_0x83be3c(0x170)](_0x397cd1,_0x83be3c(0x1f0)));const _0x3ffde5=_0x489a7d({'editor':_0x98870c,'reply':_0x363750,'interaction':_0x4cfdf8,'groups':_0x3d7d9b,'transform':!0x0,'documentCompare':_0x34c75d,'documentCompareOptions':{'anchor':_0x83be3c(0xd0),'markDeletions':!0x1}});let _0x39f395;_0x42f965&&this[_0x83be3c(0x157)](_0x42f965[_0x83be3c(0x136)]),_0x98870c[_0x83be3c(0x151)][_0x83be3c(0x1ce)](_0x2cb564=>{const _0x1e2b66=_0x83be3c;_0x39f395=_0x2cb564[_0x1e2b66(0xbd)];for(const _0x2da4ad of _0x3ffde5)_0x2da4ad[_0x1e2b66(0x143)]=_0x98870c[_0x1e2b66(0x151)][_0x1e2b66(0xe8)][_0x1e2b66(0x19f)],_0x2cb564[_0x1e2b66(0xbd)][_0x1e2b66(0x1ec)](_0x2da4ad),_0x98870c[_0x1e2b66(0x151)][_0x1e2b66(0x1f9)](_0x2da4ad);}),this[_0x83be3c(0xbb)][_0x83be3c(0x206)](_0x39f395,{'interactionId':_0x4cfdf8['id'],'replyId':_0x363750['id'],'indexes':_0x5ada43[_0x83be3c(0xc6)]()}),this[_0x83be3c(0x119)](_0x363750);}[_0x2959fe(0x1d0)](_0x9c9c6f,_0x5e7c04){const _0x2259f1=_0x2959fe,_0x6158e9=_0x2ef871(this[_0x2259f1(0x1b7)]),_0x3135b1=this[_0x2259f1(0x1fd)](_0x9c9c6f,_0x5e7c04),_0x385cdb=this[_0x2259f1(0x1b7)][_0x2259f1(0x14b)][_0x2259f1(0x14c)](_0x456468);if(!_0x3135b1)return void _0x385cdb[_0x2259f1(0x19b)]();const {range:_0x31ec89,currentIndex:_0x378253,previousIndex:_0x2dbb93,nextIndex:_0x2ccbb3}=_0x3135b1;if(_0x2259f1(0xe2)==_0x31ec89[_0x2259f1(0x1f5)][_0x2259f1(0x164)]){const {reply:_0x481668}=this[_0x2259f1(0xd9)](_0x9c9c6f);return _0x481668[_0x2259f1(0x170)](_0x378253,_0x2259f1(0xf8)),void _0x385cdb[_0x2259f1(0x19b)]();}if(this[_0x2259f1(0xe1)]?.[_0x2259f1(0xb8)]==_0x9c9c6f&&this[_0x2259f1(0xe1)]?.[_0x2259f1(0x1a8)]==_0x378253)return;this[_0x2259f1(0xe1)]={'replyId':_0x9c9c6f,'partIndex':_0x378253};const _0xf00882=new _0xeb076d(_0x6158e9[_0x2259f1(0x14f)],{'showDiff':this[_0x2259f1(0xed)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x2259f1(0x195)},'hideHeader':!0x0}),{reply:_0xf1b705}=this[_0x2259f1(0xd9)](_0x9c9c6f),_0x3a9f19=_0x53055b({'editor':_0x6158e9,'changeGroups':[_0xf1b705[_0x2259f1(0x154)][_0x378253]],'documentContextContent':_0xf1b705[_0x2259f1(0x173)],'showDiff':this[_0x2259f1(0xed)]});_0xf00882[_0x2259f1(0x18a)]({'parts':_0x3a9f19,'renderingStrategy':_0x2259f1(0xbc)});const _0x1976cf=_0x378253!==_0x2dbb93;this[_0x2259f1(0x157)](_0x31ec89,!0x0),_0x385cdb[_0x2259f1(0xfc)]({'index':_0x378253,'title':_0x551fe0(this[_0x2259f1(0x1b7)][_0x2259f1(0x14f)],_0x2259f1(0x107),(_0x378253+0x1)[_0x2259f1(0xb7)]()),'icon':_0x223375,'mainView':_0xf00882,'showRotator':_0x1976cf,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x31ec89]}),this[_0x2259f1(0x199)][_0x2259f1(0xf1)](_0x9c9c6f,_0x378253),this[_0x2259f1(0x12a)](_0xf00882,_0x2259f1(0x124),(_0x14500f,{showDiff:_0x2ddb09})=>{const _0x566c18=_0x2259f1;this[_0x566c18(0xed)]=_0x2ddb09;const {reply:_0x271569}=this[_0x566c18(0xd9)](_0x9c9c6f),_0x3ae910=_0x53055b({'editor':_0x6158e9,'changeGroups':[_0x271569[_0x566c18(0x154)][_0x378253]],'documentContextContent':_0x271569[_0x566c18(0x173)],'showDiff':_0x2ddb09});_0xf00882[_0x566c18(0x18a)]({'parts':_0x3ae910,'renderingStrategy':_0x566c18(0xbc)});}),this[_0x2259f1(0x12a)](_0x385cdb,_0x2259f1(0x19c),()=>{const _0x5213ee=_0x2259f1;this[_0x5213ee(0x1f1)]({'replyId':_0x9c9c6f,'partIndex':_0x378253}),_0x1976cf?this[_0x5213ee(0x1d0)](_0x9c9c6f,_0x2ccbb3):_0x385cdb[_0x5213ee(0x19b)]();}),this[_0x2259f1(0x12a)](_0x385cdb,_0x2259f1(0x17d),()=>{const _0x5b4b1c=_0x2259f1;this[_0x5b4b1c(0x1ac)]({'replyId':_0x9c9c6f,'partIndex':_0x378253}),_0x1976cf?this[_0x5b4b1c(0x1d0)](_0x9c9c6f,_0x2ccbb3):_0x385cdb[_0x5b4b1c(0x19b)]();}),_0x1976cf&&(this[_0x2259f1(0x12a)](_0x385cdb,_0x2259f1(0x1c8),()=>{const _0xb0dc68=_0x2259f1;this[_0xb0dc68(0x1d0)](_0x9c9c6f,_0x2ccbb3);}),this[_0x2259f1(0x12a)](_0x385cdb,_0x2259f1(0x1e2),()=>{const _0x519b18=_0x2259f1;this[_0x519b18(0x1d0)](_0x9c9c6f,_0x2dbb93);})),this[_0x2259f1(0x12a)](_0x385cdb,_0x2259f1(0x187),()=>{const _0x419c4d=_0x2259f1;this[_0x419c4d(0x1b2)](_0x385cdb),this[_0x419c4d(0x1b2)](_0xf00882),this[_0x419c4d(0xe1)]=null;});}[_0x2959fe(0x1fd)](_0x10b174,_0x52dda6){const _0x2578fd=_0x2959fe,_0x3fc402=_0x2ef871(this[_0x2578fd(0x1b7)]),{reply:_0x147812,interaction:_0x53b788}=this[_0x2578fd(0xd9)](_0x10b174),_0x294c86=_0x147812[_0x2578fd(0x154)][_0x2578fd(0x158)](_0x3a7bac=>_0x2578fd(0x202)==_0x3a7bac[_0x2578fd(0x101)]),_0x57e48f=_0x294c86[_0x2578fd(0x121)](_0x101b2c=>_0x147812[_0x2578fd(0x154)][_0x2578fd(0x1eb)](_0x101b2c));void 0x0===_0x52dda6&&(_0x52dda6=_0x57e48f[0x0]);const _0x44519c=_0x57e48f[_0x2578fd(0x1eb)](_0x52dda6);if(-0x1==_0x44519c)return null;const _0x6149ca=0x0==_0x44519c?_0x57e48f[_0x57e48f[_0x2578fd(0xc2)]-0x1]:_0x57e48f[_0x44519c-0x1],_0x16e04f=_0x44519c==_0x57e48f[_0x2578fd(0xc2)]-0x1?_0x57e48f[0x0]:_0x57e48f[_0x44519c+0x1],_0x30e6ec=_0x294c86[_0x44519c],_0x4222e8=new _0x3f36a5([]),_0x4ccfa8=new _0x3f36a5([]);for(const _0x4c581c of _0x30e6ec[_0x2578fd(0x1c9)])if(_0x2578fd(0x10d)!=_0x4c581c[_0x2578fd(0xca)]&&_0x4ccfa8[_0x2578fd(0x138)][_0x2578fd(0x1b9)](_0x4c581c[_0x2578fd(0x11d)][_0x2578fd(0x1ad)](!0x0)),_0x2578fd(0x1d9)!=_0x4c581c[_0x2578fd(0xca)]){const _0x4a65c5=_0x30d9ab(_0x2893ad=>_0xf55265(_0x2893ad,_0x2578fd(0x1e6))==_0x4c581c['id'],_0x147812[_0x2578fd(0x173)],!0x0);_0x4222e8[_0x2578fd(0x138)][_0x2578fd(0x1b9)](_0x4a65c5[_0x2578fd(0x1ad)](!0x0));}if(0x0==_0x4222e8[_0x2578fd(0x138)][_0x2578fd(0xc2)]){if(_0x30e6ec[_0x2578fd(0x1c9)][0x0][_0x2578fd(0x1d7)]){const _0x155faa=_0x29445a(_0x2578fd(0x1e6),_0x30e6ec[_0x2578fd(0x1c9)][0x0][_0x2578fd(0x1d7)],_0x147812[_0x2578fd(0x173)]);_0x4222e8[_0x2578fd(0x138)][_0x2578fd(0x1b5)](_0x155faa[_0x2578fd(0x1ad)](!0x0)),_0x4ccfa8[_0x2578fd(0x138)][_0x2578fd(0x1b5)](_0x155faa[_0x2578fd(0x1ad)](!0x0)),_0x155faa[_0x2578fd(0x1ab)]&&(_0x4222e8[_0x2578fd(0x138)][_0x2578fd(0x1b9)](_0x155faa[_0x2578fd(0x1ab)][_0x2578fd(0x1ad)](!0x0)),_0x4ccfa8[_0x2578fd(0x138)][_0x2578fd(0x1b9)](_0x155faa[_0x2578fd(0x1ab)][_0x2578fd(0x1ad)](!0x0)));}else{const _0x414e2e=_0x147812[_0x2578fd(0x173)][_0x2578fd(0x138)][0x0];if(!_0x414e2e)return null;_0x4222e8[_0x2578fd(0x138)][_0x2578fd(0x1b9)](_0x414e2e[_0x2578fd(0x1ad)](!0x0)),_0x4ccfa8[_0x2578fd(0x138)][_0x2578fd(0x1b9)](_0x414e2e[_0x2578fd(0x1ad)](!0x0));}}const _0x12e6ce=_0x53b788[_0x2578fd(0x1bb)](),_0x33bda0=_0x3fc402[_0x2578fd(0x1a3)][_0x2578fd(0x1db)](_0x12e6ce[_0x2578fd(0x165)]),_0x34958b=_0x19df6a(_0x4222e8),_0x253ee0=_0x3fc402[_0x2578fd(0x1a3)][_0x2578fd(0x1db)](_0x34958b),_0x1ee05b=_0x3fc402[_0x2578fd(0x1a3)][_0x2578fd(0x1db)](_0x34958b),_0x10df93=_0x3fc402[_0x2578fd(0x151)][_0x2578fd(0x1f8)](_0x253ee0,0x0),_0x3672ed=_0x19df6a(_0x4ccfa8),_0x551bfa={'anchor':_0x10df93,'markDeletions':!0x1},_0x35b880=_0x3fc402[_0x2578fd(0x14b)][_0x2578fd(0x14c)](_0x59eb4a)[_0x2578fd(0xfe)](_0x34958b,_0x3672ed,_0x551bfa)[_0x2578fd(0x1f7)]();if(!_0x35b880[_0x2578fd(0xc2)])return null;_0x3fc402[_0x2578fd(0x151)][_0x2578fd(0x1ce)](_0x2ff83e=>{const _0x4c7827=_0x2578fd;for(const _0x5a63b3 of _0x35b880)if(_0x4c7827(0x207)==_0x5a63b3[_0x4c7827(0xca)]){const _0x558739=_0x5a63b3[_0x4c7827(0x147)],_0x4473bb=_0x5a63b3[_0x4c7827(0x190)],_0x34dc51=new _0x4fc256(_0x558739,_0x4473bb);_0x2ff83e[_0x4c7827(0xbd)][_0x4c7827(0x1ec)](_0x34dc51),_0x3fc402[_0x4c7827(0x151)][_0x4c7827(0x1f9)](_0x34dc51);}else _0x4c7827(0xdf)!==_0x5a63b3[_0x4c7827(0xca)]&&(_0x5a63b3[_0x4c7827(0x143)]=null,_0x5a63b3[_0x4c7827(0x180)]=!0x1,_0x2ff83e[_0x4c7827(0xbd)][_0x4c7827(0x1ec)](_0x5a63b3),_0x3fc402[_0x4c7827(0x151)][_0x4c7827(0x1f9)](_0x5a63b3));});const _0x17a831=_0x57681d(_0x3fc402,_0x35b880,_0x253ee0);_0x40c1c7(_0x3fc402[_0x2578fd(0x151)],_0x17a831);const _0x59d54c=_0x17a831[_0x2578fd(0xd3)]()[_0x2578fd(0x181)][_0x2578fd(0x127)][_0x2578fd(0xc6)](),_0x581bef=_0x17a831[_0x2578fd(0xd3)]()[_0x2578fd(0x16d)][_0x2578fd(0x127)][_0x2578fd(0xc6)](),_0x468779=[];let _0xfc83e8=_0x253ee0,_0x5121e5=_0x1ee05b;for(let _0x45072c=0x0;_0x45072c<_0x581bef[_0x2578fd(0xc2)];_0x45072c++){const _0x128b95=_0xfc83e8[_0x2578fd(0x120)]-_0x581bef[_0x45072c];_0x468779[_0x45072c]=_0x5121e5[_0x2578fd(0x120)]-_0x128b95,_0xfc83e8=_0xfc83e8[_0x2578fd(0xe6)](_0x581bef[_0x45072c]),_0x5121e5=_0x5121e5[_0x2578fd(0xe6)](_0x468779[_0x45072c]);}const _0x31c6f5=_0x3fc402[_0x2578fd(0x151)][_0x2578fd(0xb6)](_0x3fc402[_0x2578fd(0x151)][_0x2578fd(0x19d)](_0x1ee05b,_0x59d54c),_0x3fc402[_0x2578fd(0x151)][_0x2578fd(0x19d)](_0x1ee05b,_0x468779)),_0x3c623e=_0x1ee05b[_0x2578fd(0xf4)](0x0)[_0x2578fd(0x168)](_0x597eef),_0x342031=Array[_0x2578fd(0xfd)](_0x33bda0[_0x2578fd(0x169)]())[_0x2578fd(0x16a)](_0x66345e=>_0x66345e[_0x2578fd(0x168)](_0x597eef)==_0x3c623e)[_0x2578fd(0x178)](),_0x5882d9=_0x31c6f5[_0x2578fd(0x181)][_0x2578fd(0x127)][_0x2578fd(0xc6)](),_0x1a52e6=_0x31c6f5[_0x2578fd(0x16d)][_0x2578fd(0x127)][_0x2578fd(0xc6)]();_0x5882d9[0x0]=_0x342031[0x0]+_0x5882d9[0x0],_0x1a52e6[0x0]=_0x342031[0x0]+_0x1a52e6[0x0];let _0x2aa0ac=_0x3fc402[_0x2578fd(0x151)][_0x2578fd(0xb6)](_0x3fc402[_0x2578fd(0x151)][_0x2578fd(0x19d)](_0x3fc402[_0x2578fd(0x151)][_0x2578fd(0xe8)][_0x2578fd(0x152)](),_0x5882d9),_0x3fc402[_0x2578fd(0x151)][_0x2578fd(0x19d)](_0x3fc402[_0x2578fd(0x151)][_0x2578fd(0xe8)][_0x2578fd(0x152)](),_0x1a52e6));const _0x4f8deb=_0x3fc402[_0x2578fd(0x151)][_0x2578fd(0xe8)][_0x2578fd(0x17b)][_0x2578fd(0x1f7)](_0x12e6ce[_0x2578fd(0x19f)]);for(const _0x21d9d6 of _0x4f8deb)_0x2aa0ac=_0x257a5e[_0x2578fd(0x176)](_0x2aa0ac[_0x2578fd(0x1a5)](_0x21d9d6));return{'range':_0x2aa0ac,'previousIndex':_0x6149ca,'nextIndex':_0x16e04f,'currentIndex':_0x52dda6};}[_0x2959fe(0xdd)](_0x464f91){const _0x15f72b=_0x2959fe;if(!_0x464f91[_0x15f72b(0x14b)][_0x15f72b(0x12d)](_0x15f72b(0x1b0)))return;const _0x1bd31e=_0x464f91[_0x15f72b(0x10f)][_0x15f72b(0x14c)](_0x15f72b(0x160)),_0x233c1c=_0x464f91[_0x15f72b(0x10f)][_0x15f72b(0x14c)](_0x15f72b(0xf9));this[_0x15f72b(0x12a)](_0x1bd31e,_0x15f72b(0x1e7),(_0x1f91c2,_0x4b29c8,_0x5cfcb8)=>{const _0x4e1883=_0x15f72b,_0x556ea6=this[_0x4e1883(0xbb)][_0x4e1883(0x14c)](_0x4b29c8);if(!_0x556ea6)return;const _0x91d6ee=this[_0x4e1883(0x1be)][_0x4e1883(0x129)](_0x556ea6[_0x4e1883(0x1ee)])[_0x4e1883(0x155)](_0x556ea6[_0x4e1883(0xb8)]);_0x556ea6[_0x4e1883(0x116)][_0x4e1883(0x13f)](_0x797ad6=>_0x91d6ee[_0x4e1883(0x170)](_0x797ad6,_0x4e1883(0x202))),this[_0x4e1883(0xbb)][_0x4e1883(0x185)](_0x4b29c8),this[_0x4e1883(0xbb)][_0x4e1883(0x206)](_0x5cfcb8,_0x556ea6);}),this[_0x15f72b(0x12a)](_0x233c1c,_0x15f72b(0x1e7),(_0x2b74b5,_0x497a3d,_0x53e8d1)=>{const _0x5a609a=_0x15f72b,_0x2fd06a=this[_0x5a609a(0xbb)][_0x5a609a(0x14c)](_0x497a3d);if(!_0x2fd06a)return;const _0x3a3aa2=this[_0x5a609a(0x1be)][_0x5a609a(0x129)](_0x2fd06a[_0x5a609a(0x1ee)])[_0x5a609a(0x155)](_0x2fd06a[_0x5a609a(0xb8)]);_0x2fd06a[_0x5a609a(0x116)][_0x5a609a(0x13f)](_0x16e53c=>_0x3a3aa2[_0x5a609a(0x170)](_0x16e53c,_0x5a609a(0x1f0))),this[_0x5a609a(0xbb)][_0x5a609a(0x185)](_0x497a3d),this[_0x5a609a(0xbb)][_0x5a609a(0x206)](_0x53e8d1,_0x2fd06a);});}async[_0x2959fe(0x153)](_0x4c5fa8){const _0x136a8f=_0x2959fe;this[_0x136a8f(0x1b7)][_0x136a8f(0x14b)][_0x136a8f(0x14c)](_0x456468)[_0x136a8f(0x19b)](),this[_0x136a8f(0x199)][_0x136a8f(0x1e5)](_0x136a8f(0xbc)),this[_0x136a8f(0x199)][_0x136a8f(0x204)](!0x0),await this[_0x136a8f(0x15f)]();try{const _0x29b463=this[_0x136a8f(0x1b7)][_0x136a8f(0x14b)][_0x136a8f(0x14c)](_0x26399c);this[_0x136a8f(0x1f3)]('\x20'),_0x29b463[_0x136a8f(0xf5)][_0x136a8f(0xc0)](_0x136a8f(0x10a)),await this[_0x136a8f(0x110)](_0x4c5fa8);const {sessionId:_0x523df7}=this[_0x136a8f(0x209)][_0x136a8f(0xc1)]();await this[_0x136a8f(0x1be)][_0x136a8f(0x166)](_0x4c5fa8,_0x523df7),this[_0x136a8f(0x1be)][_0x136a8f(0xd2)]()&&this[_0x136a8f(0x1be)][_0x136a8f(0x1dc)](_0x551fe0(this[_0x136a8f(0x1b7)][_0x136a8f(0x14f)],_0x136a8f(0x1cd)));}catch(_0x3e1af2){console[_0x136a8f(0x1c1)](_0x136a8f(0xdb),_0x3e1af2);}finally{this[_0x136a8f(0x199)][_0x136a8f(0x1e5)](_0x136a8f(0x188)),this[_0x136a8f(0x199)][_0x136a8f(0x204)](!0x1);}}[_0x2959fe(0x1dd)](_0x535f1b){const _0x5244bb=_0x2959fe;this[_0x5244bb(0x1be)]['id']===_0x535f1b&&this[_0x5244bb(0x110)]();}async[_0x2959fe(0xe5)](){const _0x1cf702=_0x2959fe,_0x57c1c0=this[_0x1cf702(0x209)][_0x1cf702(0xda)]();this[_0x1cf702(0x1be)]?.[_0x1cf702(0x137)](_0x57c1c0),this[_0x1cf702(0x1be)]?.[_0x1cf702(0x1dc)](_0x551fe0(this[_0x1cf702(0x1b7)][_0x1cf702(0x14f)],_0x1cf702(0x1cd)));}[_0x2959fe(0x1d5)](){const _0x173fa6=_0x2959fe;this[_0x173fa6(0x1be)]?.[_0x173fa6(0xc8)]();}[_0x2959fe(0x203)](){const _0x529d9a=_0x2959fe;this[_0x529d9a(0x199)][_0x529d9a(0x203)]();}async[_0x2959fe(0x1ea)](){const _0x2883f2=_0x2959fe;await this[_0x2883f2(0x110)]();}async[_0x2959fe(0xeb)]({message:_0x182555,quickActionData:_0x345e91}){const _0x41b6ee=_0x2959fe;await this[_0x41b6ee(0x167)]({'userMessage':_0x182555,'quickActionData':_0x345e91});}[_0x2959fe(0xf2)](){const _0x539475=_0x2959fe,_0x58e1d1=this[_0x539475(0x1b7)][_0x539475(0x130)][_0x539475(0x14c)](_0x539475(0x132));if(!_0x58e1d1)throw new _0x5f5d65(_0x539475(0x1c6),this);return _0x58e1d1;}async[_0x2959fe(0x110)](_0x21cca9){const _0x4f6b5b=_0x2959fe;try{this[_0x4f6b5b(0x199)][_0x4f6b5b(0x103)](),await this[_0x4f6b5b(0x150)](_0x21cca9);}catch(_0x329135){_0x11d9f0(_0x4f6b5b(0xc9),_0x329135),this[_0x4f6b5b(0x1be)]=void 0x0,this[_0x4f6b5b(0x199)][_0x4f6b5b(0x16f)]();}}async[_0x2959fe(0x150)](_0x1f2fb7){const _0x399e85=_0x2959fe,_0x390e4f=this[_0x399e85(0x1b7)][_0x399e85(0x14b)][_0x399e85(0x14c)](_0x456468);let _0x47aedb;_0x390e4f[_0x399e85(0x1cf)]&&_0x390e4f[_0x399e85(0x19b)](),_0x1f2fb7||!this[_0x399e85(0x1be)]?_0x47aedb=this[_0x399e85(0x1b7)][_0x399e85(0x130)][_0x399e85(0x14c)](_0x399e85(0x10c)):this[_0x399e85(0x199)][_0x399e85(0x148)]&&(_0x47aedb=this[_0x399e85(0x1be)][_0x399e85(0x114)]['id']),await this[_0x399e85(0x15f)]();const _0x2fd02c=this[_0x399e85(0xf2)](),_0x51717e=_0x1f2fb7||_0x206d05();this[_0x399e85(0x1be)]=new _0x2606c7({'connector':this[_0x399e85(0xe3)],'chatModels':this[_0x399e85(0x162)],'selectedModelId':_0x47aedb,'conversationId':_0x51717e,'group':_0x2fd02c,'getEditor':()=>_0x2ef871(this[_0x399e85(0x1b7)])}),this[_0x399e85(0x1be)]['on'](_0x399e85(0xe9),(_0x684c80,_0x14eb71)=>{const _0x4f0ec8=_0x399e85;this[_0x4f0ec8(0x199)][_0x4f0ec8(0x1b1)](_0x14eb71),this[_0x4f0ec8(0x199)][_0x4f0ec8(0x122)](),this[_0x4f0ec8(0x199)][_0x4f0ec8(0x1b4)](),this[_0x4f0ec8(0x199)][_0x4f0ec8(0x16e)](),_0x1f2fb7||(this[_0x4f0ec8(0x199)][_0x4f0ec8(0x1d8)](),this[_0x4f0ec8(0x1be)]?.[_0x4f0ec8(0x1dc)](_0x551fe0(this[_0x4f0ec8(0x1b7)][_0x4f0ec8(0x14f)],_0x4f0ec8(0x1cd))));}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x184),(_0x565a43,_0x15a34a)=>{const _0x27f95d=_0x399e85;this[_0x27f95d(0x199)][_0x27f95d(0x10b)](_0x15a34a[_0x27f95d(0x1d4)]);}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x11c),(_0x21da89,_0x1a3fee)=>{const _0x371f6c=_0x399e85;this[_0x371f6c(0x199)][_0x371f6c(0x1a2)](_0x1a3fee);}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x15a),()=>{const _0x3b52c6=_0x399e85;this[_0x3b52c6(0x199)][_0x3b52c6(0x172)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x174),()=>{const _0x54f7de=_0x399e85;this[_0x54f7de(0x199)][_0x54f7de(0x172)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x11a),(_0x316786,_0x5ce372)=>{const _0x3fec5f=_0x399e85;this[_0x3fec5f(0x199)][_0x3fec5f(0x1ff)](_0x5ce372,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x208),(_0x4372fe,_0x240a3b)=>{const _0x483d74=_0x399e85;this[_0x483d74(0x199)][_0x483d74(0x1ff)](_0x240a3b,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x18c),()=>{const _0x3200e7=_0x399e85;this[_0x3200e7(0x199)][_0x3200e7(0x175)]();}),this[_0x399e85(0x1be)]['on'](_0x399e85(0xcb),async()=>{const _0x1951b2=_0x399e85;await this[_0x1951b2(0x199)][_0x1951b2(0x17a)]();}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x1da),(_0x57b515,_0x23fc46)=>{const _0xd03d32=_0x399e85;this[_0xd03d32(0x199)][_0xd03d32(0x1af)](_0x23fc46['id']);}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x197),(_0x2a18c1,_0x55b0ca,_0x26a327)=>{const _0x276a9d=_0x399e85;this[_0x276a9d(0x1f3)](_0x55b0ca,_0x26a327);}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x18e),(_0x221f83,_0x3cc18b)=>{const _0x57e7b1=_0x399e85;_0x57e7b1(0x1de)===_0x3cc18b[_0x57e7b1(0xca)]?this[_0x57e7b1(0x199)][_0x57e7b1(0x11e)](_0x3cc18b):this[_0x57e7b1(0x199)][_0x57e7b1(0x1fb)](_0x3cc18b);}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x17f),async(_0x2ea904,_0x4b3165,_0x1dfd99)=>{const _0x556233=_0x399e85;await this[_0x556233(0x1cc)]({'reply':_0x4b3165,'changeGroups':_0x1dfd99});}),this[_0x399e85(0x1be)]['on'](_0x399e85(0xc7),(_0x378d00,{reply:_0x1262ef,index:_0x54e6e5,state:_0x22e682})=>{const _0xc22da0=_0x399e85;this[_0xc22da0(0x199)][_0xc22da0(0x14a)]({'id':_0x1262ef['id'],'index':_0x54e6e5,'state':_0x22e682});}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x16b),(_0xb031d4,_0x22d1b1)=>{const _0x4eb02d=_0x399e85;if(this[_0x4eb02d(0x199)][_0x4eb02d(0xf7)](_0x22d1b1[_0x4eb02d(0x1bf)],_0x22d1b1[_0x4eb02d(0x191)]),_0x4eb02d(0x115)===_0x22d1b1[_0x4eb02d(0x1bf)][_0x4eb02d(0xca)]){const _0x579688=[..._0x2ef871(this[_0x4eb02d(0x1b7)])[_0x4eb02d(0x151)][_0x4eb02d(0xe8)][_0x4eb02d(0x115)][_0x4eb02d(0x149)]()];this[_0x4eb02d(0x209)][_0x4eb02d(0xc3)](_0x579688,_0x4eb02d(0x144)+this[_0x4eb02d(0x1be)]?.['id']);}}),this[_0x399e85(0x1be)]['on'](_0x399e85(0xe7),(_0x2e5716,_0x250ec4)=>{const _0x2d1433=_0x399e85;this[_0x2d1433(0x199)][_0x2d1433(0xdc)](_0x250ec4[_0x2d1433(0x11b)]),_0x2d1433(0x1c3)==_0x250ec4[_0x2d1433(0x11b)]&&this[_0x2d1433(0x1d5)](),_0x2d1433(0x115)===_0x250ec4[_0x2d1433(0xca)]&&this[_0x2d1433(0x209)][_0x2d1433(0x17c)](_0x2d1433(0x144)+this[_0x2d1433(0x1be)]?.['id']);}),this[_0x399e85(0x1be)]['on'](_0x399e85(0xba),(_0x5379cd,_0x53c6aa)=>{const _0x3c03db=_0x399e85;this[_0x3c03db(0x199)][_0x3c03db(0x1a9)](_0x53c6aa[_0x3c03db(0x1bf)][_0x3c03db(0x11b)],_0x53c6aa[_0x3c03db(0x191)]);}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x15d),(_0x3620f8,_0x53c372)=>{const _0x3b7e03=_0x399e85;this[_0x3b7e03(0x199)][_0x3b7e03(0xfa)](_0x53c372[_0x3b7e03(0x123)]);}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x1c2),(_0xc8ebdb,_0x351ea7)=>{const _0x4de075=_0x399e85;this[_0x4de075(0x199)][_0x4de075(0xb3)](_0x351ea7[_0x4de075(0xe0)]);}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x12f),(_0x118190,_0x1d1f16)=>{const _0x168959=_0x399e85;this[_0x168959(0x199)][_0x168959(0x19a)](_0x1d1f16[_0x168959(0xd5)],_0x1d1f16[_0x168959(0xec)],_0x1d1f16[_0x168959(0xcc)],_0x1d1f16[_0x168959(0x171)]);}),this[_0x399e85(0x1be)]['on'](_0x399e85(0xd6),(_0x3f7b15,_0x20f6a0)=>{const _0x1e2d56=_0x399e85;this[_0x1e2d56(0x199)][_0x1e2d56(0x1ef)](_0x20f6a0[_0x1e2d56(0xd5)],_0x20f6a0[_0x1e2d56(0x1e8)],_0x20f6a0[_0x1e2d56(0x1d6)]);}),this[_0x399e85(0x1be)]['on'](_0x399e85(0xce),(_0x5bbc8c,_0x552ea1)=>{const _0x109698=_0x399e85;this[_0x109698(0x199)][_0x109698(0x177)](_0x552ea1);}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x1e0),(_0x3d05ac,_0x11ba49)=>{const _0x1c64f5=_0x399e85;this[_0x1c64f5(0x199)][_0x1c64f5(0x186)](_0x11ba49[_0x1c64f5(0x114)],_0x11ba49[_0x1c64f5(0x1d2)]);}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x1c1),(_0x452b7a,{error:_0xbb1dfe,interactionId:_0x22c592,fileName:_0x264491,url:_0x1dc0ef,sourceId:_0x169691,sourceLabel:_0x1cb240})=>{const _0x4fc2d2=_0x399e85,_0x1b6494=_0x22c592?_0x22c592+':'+_0x206d05():_0x206d05();_0xbb1dfe[_0x4fc2d2(0xcf)][_0x4fc2d2(0x161)](_0x4fc2d2(0x139))?this[_0x4fc2d2(0x199)][_0x4fc2d2(0xfb)]({'staticMessage':_0x551fe0(this[_0x4fc2d2(0x1b7)][_0x4fc2d2(0x14f)],_0x4fc2d2(0x134)),'id':_0x1b6494}):_0xbb1dfe[_0x4fc2d2(0xcf)][_0x4fc2d2(0x161)](_0x4fc2d2(0xf0))||_0xbb1dfe[_0x4fc2d2(0xcf)][_0x4fc2d2(0x161)](_0x4fc2d2(0xc9))?(this[_0x4fc2d2(0x199)][_0x4fc2d2(0xf6)]({'errorMessage':_0x551fe0(this[_0x4fc2d2(0x1b7)][_0x4fc2d2(0x14f)],_0x4fc2d2(0x1fc)),'id':_0x1b6494}),this[_0x4fc2d2(0x1fe)](_0xbb1dfe)):_0xbb1dfe[_0x4fc2d2(0xcf)][_0x4fc2d2(0x161)](_0x4fc2d2(0x1a7))?this[_0x4fc2d2(0x199)][_0x4fc2d2(0xf6)]({'errorMessage':_0x551fe0(this[_0x4fc2d2(0x1b7)][_0x4fc2d2(0x14f)],_0x4fc2d2(0x18b),_0x264491),'id':_0x1b6494}):_0xbb1dfe[_0x4fc2d2(0xcf)][_0x4fc2d2(0x161)](_0x4fc2d2(0xbf))?this[_0x4fc2d2(0x199)][_0x4fc2d2(0xf6)]({'errorMessage':_0x551fe0(this[_0x4fc2d2(0x1b7)][_0x4fc2d2(0x14f)],_0x4fc2d2(0x13c),_0x1dc0ef),'id':_0x1b6494}):_0xbb1dfe[_0x4fc2d2(0xcf)][_0x4fc2d2(0x161)](_0x4fc2d2(0x1f6))?this[_0x4fc2d2(0x199)][_0x4fc2d2(0xf6)]({'errorMessage':_0x551fe0(this[_0x4fc2d2(0x1b7)][_0x4fc2d2(0x14f)],_0x4fc2d2(0x141)),'id':_0x1b6494}):_0xbb1dfe[_0x4fc2d2(0xcf)][_0x4fc2d2(0x161)](_0x4fc2d2(0x146))?this[_0x4fc2d2(0x199)][_0x4fc2d2(0xf6)]({'errorMessage':_0x551fe0(this[_0x4fc2d2(0x1b7)][_0x4fc2d2(0x14f)],_0x4fc2d2(0xd8)),'id':_0x1b6494}):_0xbb1dfe[_0x4fc2d2(0xcf)][_0x4fc2d2(0x161)](_0x4fc2d2(0x159))?(_0x169691&&this[_0x4fc2d2(0x199)][_0x4fc2d2(0x1a6)](_0x169691),this[_0x4fc2d2(0x199)][_0x4fc2d2(0xf6)]({'errorMessage':_0x551fe0(this[_0x4fc2d2(0x1b7)][_0x4fc2d2(0x14f)],_0x4fc2d2(0x189),_0x1cb240||_0x4fc2d2(0xec)),'id':_0x1b6494}),this[_0x4fc2d2(0x1fe)](_0xbb1dfe)):_0xbb1dfe[_0x4fc2d2(0xcf)][_0x4fc2d2(0x161)](_0x4fc2d2(0x12b))?(this[_0x4fc2d2(0x199)][_0x4fc2d2(0xf6)]({'errorMessage':_0x551fe0(this[_0x4fc2d2(0x1b7)][_0x4fc2d2(0x14f)],_0x4fc2d2(0x113)),'id':_0x1b6494}),this[_0x4fc2d2(0x1fe)](_0xbb1dfe)):(this[_0x4fc2d2(0x199)][_0x4fc2d2(0xf6)]({'errorMessage':_0x551fe0(this[_0x4fc2d2(0x1b7)][_0x4fc2d2(0x14f)],_0x4fc2d2(0x1c7)),'id':_0x1b6494}),this[_0x4fc2d2(0x1fe)](_0xbb1dfe));}),await this[_0x399e85(0x1be)][_0x399e85(0x118)](this[_0x399e85(0x1b7)][_0x399e85(0x130)][_0x399e85(0x14c)](_0x399e85(0xbe))),_0x1f2fb7||await this[_0x399e85(0x1be)][_0x399e85(0x181)]();}async[_0x2959fe(0x167)]({userMessage:_0x2a63ca,quickActionData:_0x47f5cc}){const _0x545caf=_0x2959fe;if(!this[_0x545caf(0x1be)])throw new _0x5f5d65(_0x545caf(0x128));this[_0x545caf(0x1be)][_0x545caf(0x131)]()&&await this[_0x545caf(0x1be)][_0x545caf(0x140)](this[_0x545caf(0x209)][_0x545caf(0xc1)]()),this[_0x545caf(0x1be)]['id']&&this[_0x545caf(0x1be)][_0x545caf(0xe4)]&&await this[_0x545caf(0x1be)][_0x545caf(0x205)]({'userMessage':_0x2a63ca,'quickActionData':_0x47f5cc}),this[_0x545caf(0x12c)]();}[_0x2959fe(0x12c)](){const _0x32f0ff=_0x2959fe,_0x4de66c=_0x2ef871(this[_0x32f0ff(0x1b7)])[_0x32f0ff(0x151)],_0x2dea04=Array[_0x32f0ff(0xfd)](_0x4de66c[_0x32f0ff(0x1df)][_0x32f0ff(0x1ae)](_0x1acfd1));_0x4de66c[_0x32f0ff(0x1ce)](_0x450964=>{const _0x561117=_0x32f0ff;_0x2dea04[_0x561117(0x13f)](_0x4590b2=>_0x450964[_0x561117(0x200)](_0x4590b2));});}[_0x2959fe(0x111)](){const _0x4ad8e1=_0x2959fe;console[_0x4ad8e1(0x1b8)](_0x4ad8e1(0xd4));}[_0x2959fe(0x112)](_0x1b72a0){const _0x5cfc02=_0x2959fe;this[_0x5cfc02(0x199)][_0x5cfc02(0x1c0)](_0x1b72a0);}[_0x2959fe(0x1fe)](_0x24265d){const _0x5d5f2a=_0x2959fe;_0x11d9f0(_0x24265d[_0x5d5f2a(0xcf)]);}[_0x2959fe(0x109)](_0x29f259){const _0x43b0a0=_0x2959fe;this[_0x43b0a0(0x1be)]?.[_0x43b0a0(0x15b)](_0x29f259);}[_0x2959fe(0x102)](){const _0x1b2b60=_0x2959fe;this[_0x1b2b60(0x1be)]?.[_0x1b2b60(0x183)]();}[_0x2959fe(0xea)](){const _0x4bdcb1=_0x2959fe;this[_0x4bdcb1(0x1be)]?.[_0x4bdcb1(0x1b3)]();}[_0x2959fe(0xd9)](_0x537b8c){const _0x3ac332=_0x2959fe,[_0x2fb562,_0xd7340b]=_0x537b8c[_0x3ac332(0xd7)](':'),_0x2ef1d4=this[_0x3ac332(0x1be)][_0x3ac332(0x129)](_0x2fb562),_0x3afd2f=_0x2ef1d4[_0x3ac332(0x155)](_0xd7340b);return{'interaction':_0x2ef1d4,'reply':_0x3afd2f};}[_0x2959fe(0x157)](_0x277e59,_0x182071=!0x1){const _0x3970be=_0x2959fe,_0xcf2b65=_0x2ef871(this[_0x3970be(0x1b7)]),_0x1c907c={'target':_0xcf2b65[_0x3970be(0x100)][_0x3970be(0xf5)][_0x3970be(0x13b)][_0x3970be(0xb5)](_0xcf2b65[_0x3970be(0x100)][_0x3970be(0x1ed)][_0x3970be(0x1c4)](_0x277e59)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x182071};_0x182071&&(_0x1c907c[_0x3970be(0x1d1)]=!0x0),_0x51d042(_0x1c907c);}[_0x2959fe(0x1f3)](_0x46b95b,_0xe58bc1=!0x1){const _0x3ee7ad=_0x2959fe;this[_0x3ee7ad(0x199)][_0x3ee7ad(0x197)](_0x46b95b||_0x551fe0(this[_0x3ee7ad(0x1b7)][_0x3ee7ad(0x14f)],_0x3ee7ad(0x142)),_0xe58bc1);}async[_0x2959fe(0x1cc)]({reply:_0x2bfc08,changeGroups:_0x49ed29,renderingStrategy:_0x39a377}){const _0x48c06e=_0x2959fe,{id:_0x4200bf,isDone:_0x2c856e,type:_0x146ac3,parsedContent:_0x1e0421}=_0x2bfc08;if(_0x48c06e(0xf3)===_0x146ac3){const _0x57e9e7=_0x2ef871(this[_0x48c06e(0x1b7)]),_0x2e98bb=_0x53055b({'editor':_0x57e9e7,'showDiff':this[_0x48c06e(0x199)][_0x48c06e(0x126)],'changeGroups':_0x49ed29,'documentContextContent':_0x2bfc08[_0x48c06e(0x173)]});await this[_0x48c06e(0x199)][_0x48c06e(0x1f2)]({'id':_0x4200bf,'parts':_0x2e98bb,'renderingStrategy':_0x39a377,'isDone':_0x2c856e});}else _0x48c06e(0x1de)===_0x146ac3&&await this[_0x48c06e(0x199)][_0x48c06e(0x17e)]({'id':_0x4200bf,'parsedContent':_0x1e0421,'renderingStrategy':_0x39a377,'isDone':_0x2c856e});_0x2c856e&&_0x2bfc08[_0x48c06e(0x125)][_0x48c06e(0xc2)]>0x0&&this[_0x48c06e(0x199)][_0x48c06e(0x1fa)](_0x4200bf,_0x2bfc08[_0x48c06e(0x125)]);}async[_0x2959fe(0x15f)](){const _0x27ad48=_0x2959fe,_0x1b30b2=this[_0x27ad48(0x1be)]?.[_0x27ad48(0xde)];_0x1b30b2&&(_0x1b30b2[_0x27ad48(0x201)](),this[_0x27ad48(0x199)][_0x27ad48(0xef)](_0x1b30b2));}async[_0x2959fe(0xd1)](){const _0x3ee2c6=_0x2959fe,_0x585579=this[_0x3ee2c6(0x1be)]?.[_0x3ee2c6(0xde)];if(_0x585579){for await(const _0x86a8bb of _0x585579[_0x3ee2c6(0x18f)])await this[_0x3ee2c6(0x1cc)]({'reply':_0x86a8bb,'changeGroups':_0x86a8bb[_0x3ee2c6(0x154)],'renderingStrategy':_0x3ee2c6(0xbc)});}}[_0x2959fe(0x119)](_0x2817d0){const _0x1816f1=_0x2959fe,_0x4e5335={'positiveCount':_0x2817d0[_0x1816f1(0x154)][_0x1816f1(0x158)](_0x5f44de=>_0x1816f1(0x1f0)===_0x5f44de[_0x1816f1(0x101)])[_0x1816f1(0xc2)],'totalCount':_0x2817d0[_0x1816f1(0x154)][_0x1816f1(0xc2)]},_0x52f1d7=this[_0x1816f1(0x1be)][_0x1816f1(0x129)](_0x2817d0[_0x1816f1(0x1ee)])[_0x1816f1(0xff)];this[_0x1816f1(0xe3)][_0x1816f1(0x1ca)](this[_0x1816f1(0x1be)]['id'],_0x52f1d7,_0x4e5335);}}
23
+ const _0x2c4a56=_0x2432;(function(_0x368909,_0xf1c8f1){const _0x44197c=_0x2432,_0x25bca5=_0x368909();while(!![]){try{const _0x2bec96=-parseInt(_0x44197c(0x26b))/0x1+parseInt(_0x44197c(0x2b4))/0x2*(parseInt(_0x44197c(0x2a2))/0x3)+-parseInt(_0x44197c(0x28c))/0x4*(parseInt(_0x44197c(0x25d))/0x5)+-parseInt(_0x44197c(0x228))/0x6*(parseInt(_0x44197c(0x226))/0x7)+-parseInt(_0x44197c(0x203))/0x8*(parseInt(_0x44197c(0x219))/0x9)+-parseInt(_0x44197c(0x23d))/0xa+-parseInt(_0x44197c(0x27e))/0xb*(-parseInt(_0x44197c(0x227))/0xc);if(_0x2bec96===_0xf1c8f1)break;else _0x25bca5['push'](_0x25bca5['shift']());}catch(_0x3a4ee2){_0x25bca5['push'](_0x25bca5['shift']());}}}(_0x5d6c,0x4daef));import{ContextPlugin as _0x21d8ed,Editor as _0x27a92a}from'ckeditor5/src/core.js';import{CKEditorError as _0x13f2ac,logError as _0xbcf11b,scrollViewportToShowTarget as _0x59c6ad,uid as _0x38bd85}from'ckeditor5/src/utils.js';import{AIConnector as _0x2d2c2e}from'../aicore/aiconnector.js';import{AITabs as _0x44b1ea}from'../aitabs/aitabs.js';import{AIChatConversation as _0x2f446f}from'./model/aichatconversation.js';import{getTranslation as _0x1523b1}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x3a377a}from'../aicore/aiediting.js';import{AIChatModels as _0x291dd3}from'./model/aichatmodels.js';import{getEditorFromContext as _0x40cd09}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x4fad48,DATA_ID_MODEL_ATTRIBUTE as _0x144524}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x44190b}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0xee9603,getMinimalSelection as _0x31f8ce,getSuggestionPartsFromReply as _0x2b2350}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x5bf0a5,_DetachOperation as _0xf7d8c}from'ckeditor5/src/engine.js';import{findOne as _0x37f9bf,getAttribute as _0x366774,serialize as _0x1007e6,Document as _0x3d00cc,findByAttribute as _0xa2728e}from'../aicore/utils/htmlparser.js';import{IconAI as _0x5e93f1}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x5e61a5}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x2432(_0x3bbebe,_0x46e960){const _0x5d6c83=_0x5d6c();return _0x2432=function(_0x243239,_0x3ae7fd){_0x243239=_0x243239-0x1b0;let _0x424ab3=_0x5d6c83[_0x243239];return _0x424ab3;},_0x2432(_0x3bbebe,_0x46e960);}import{AIBalloon as _0x48b72c}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x21d8ed{[_0x2c4a56(0x1ce)];[_0x2c4a56(0x1f2)];[_0x2c4a56(0x2b3)];[_0x2c4a56(0x295)];[_0x2c4a56(0x205)]=new Map();[_0x2c4a56(0x207)]=null;[_0x2c4a56(0x25e)]=!0x1;static get[_0x2c4a56(0x244)](){return[_0x2d2c2e,_0x48b72c,_0x4fad48];}static get[_0x2c4a56(0x1bc)](){const _0x31ec0d=_0x2c4a56;return _0x31ec0d(0x2d2);}static get[_0x2c4a56(0x2ec)](){return!0x0;}static get[_0x2c4a56(0x2d9)](){return!0x0;}[_0x2c4a56(0x1e5)](){const _0x412031=_0x2c4a56;this[_0x412031(0x1f2)]=this[_0x412031(0x2fa)][_0x412031(0x2e3)][_0x412031(0x1b3)](_0x412031(0x26c)),this[_0x412031(0x2b3)]=this[_0x412031(0x2fa)][_0x412031(0x2e3)][_0x412031(0x1b3)](_0x412031(0x1c4)),this[_0x412031(0x1ce)]=this[_0x412031(0x2fa)][_0x412031(0x2e3)][_0x412031(0x1b3)](_0x412031(0x300)),this[_0x412031(0x295)]=new _0x291dd3({'connector':this[_0x412031(0x1f2)],'displayedModels':this[_0x412031(0x2fa)][_0x412031(0x2c3)][_0x412031(0x1b3)](_0x412031(0x2a0)),'defaultModelId':this[_0x412031(0x2fa)][_0x412031(0x2c3)][_0x412031(0x1b3)](_0x412031(0x1fa))});const _0x3bb6e0=this[_0x412031(0x2fa)][_0x412031(0x2e3)][_0x412031(0x1b3)](_0x412031(0x242));this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x1e9),()=>{const _0x41acfb=_0x412031;this[_0x41acfb(0x2f2)]();}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x301),(_0x5ca84f,_0x2e9506)=>{const _0x179279=_0x412031;this[_0x179279(0x212)]({'userMessage':_0x2e9506});}),this[_0x412031(0x21e)](_0x3bb6e0,_0x412031(0x277),(_0x24df47,_0x4c9818)=>{const _0x1d5167=_0x412031;this[_0x1d5167(0x257)](_0x4c9818);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x25c),()=>{const _0x2c36f5=_0x412031;_0x3bb6e0[_0x2c36f5(0x2ac)]();}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x239),async()=>{const _0x371696=_0x412031;await this[_0x371696(0x1c9)](),await this[_0x371696(0x1e2)]();}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x2e9),()=>{const _0x2bff2f=_0x412031;this[_0x2bff2f(0x267)]?.[_0x2bff2f(0x304)](_0x1523b1(this[_0x2bff2f(0x2fa)][_0x2bff2f(0x284)],_0x2bff2f(0x2f8)));}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x2b1),(_0x4c5014,_0x2b52fb)=>{const _0x391932=_0x412031;this[_0x391932(0x267)]?.[_0x391932(0x2de)](Array[_0x391932(0x1ea)](_0x2b52fb));}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x225),(_0x5a4696,_0x1df7ee)=>{const _0x546783=_0x412031;this[_0x546783(0x267)]?.[_0x546783(0x225)](_0x1df7ee);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x232),(_0x155d98,_0x387bf0)=>{const _0xba6fe5=_0x412031;this[_0xba6fe5(0x267)]?.[_0xba6fe5(0x232)](_0x387bf0[_0xba6fe5(0x1e0)],_0x387bf0[_0xba6fe5(0x303)]);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x246),(_0x42549d,_0x599a6f)=>{const _0x11f621=_0x412031;this[_0x11f621(0x24b)](_0x599a6f);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x1c7),(_0x35db47,_0x2257f6)=>{const _0x131c53=_0x412031;this[_0x131c53(0x267)]?.[_0x131c53(0x1c7)](_0x2257f6[_0x131c53(0x298)],_0x2257f6[_0x131c53(0x29c)],_0x2257f6[_0x131c53(0x1c0)]);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x1d3),()=>{const _0x430e30=_0x412031;this[_0x430e30(0x2b5)]();}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x27b),()=>{const _0x18e06a=_0x412031;this[_0x18e06a(0x2a9)]();}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x2f1),(_0x22db90,_0x7c2f74)=>{const _0x231ab1=_0x412031;this[_0x231ab1(0x267)]?.[_0x231ab1(0x1d6)](_0x7c2f74);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x305),(_0x5aa41f,{replyId:_0x2abb08})=>{const _0x4d058a=_0x412031;console[_0x4d058a(0x23b)](_0x4d058a(0x204),_0x2abb08);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x2c4),(_0x4eab41,{replyId:_0x1f3bc2})=>{const _0x4ded23=_0x412031;console[_0x4ded23(0x23b)](_0x4ded23(0x27f),_0x1f3bc2);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x241),(_0x537ba8,_0xa8af17)=>{const _0x4e3b3a=_0x412031;this[_0x4e3b3a(0x2fa)][_0x4e3b3a(0x2e3)][_0x4e3b3a(0x1b3)](_0x48b72c)[_0x4e3b3a(0x2e5)](),this[_0x4e3b3a(0x280)](_0xa8af17);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x2d3),(_0x1bb8c6,{replyId:_0x3d8cf4,partIndex:_0x4007e1})=>{const _0x584b40=_0x412031;this[_0x584b40(0x25e)]=this[_0x584b40(0x2b3)][_0x584b40(0x1ec)],this[_0x584b40(0x278)](_0x3d8cf4,_0x4007e1);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x2ed),(_0x54ad76,{replyId:_0xfd2e78,partIndex:_0x2a7013})=>{const _0x268dfa=_0x412031,_0x2628e5=this[_0x268dfa(0x1fb)](_0xfd2e78,_0x2a7013);_0x2628e5&&_0x268dfa(0x290)!=_0x2628e5[_0x268dfa(0x2ad)][_0x268dfa(0x2cf)][_0x268dfa(0x2d4)]&&this[_0x268dfa(0x1ce)][_0x268dfa(0x2dc)]([_0x2628e5[_0x268dfa(0x2ad)]],_0x268dfa(0x23a));}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x283),()=>{const _0x52e978=_0x412031;this[_0x52e978(0x1ce)][_0x52e978(0x306)](_0x52e978(0x23a));}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x221),(_0x14c549,_0x3f462a)=>{const _0x1f1368=_0x412031;this[_0x1f1368(0x2fa)][_0x1f1368(0x2e3)][_0x1f1368(0x1b3)](_0x48b72c)[_0x1f1368(0x2e5)](),this[_0x1f1368(0x1b9)](_0x3f462a);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x297),async(_0x4fbd38,_0x3369f1)=>{const _0x312c24=_0x412031,{reply:_0x1d49bb}=this[_0x312c24(0x206)](_0x3369f1[_0x312c24(0x2d0)]),_0x589337=_0x40cd09(this[_0x312c24(0x2fa)]),_0x43a9dd=_0x2b2350({'editor':_0x589337,'changeGroups':_0x1d49bb[_0x312c24(0x2df)],'documentContextContent':_0x1d49bb[_0x312c24(0x25a)],'showDiff':_0x3369f1[_0x312c24(0x1ec)]});await this[_0x312c24(0x2b3)][_0x312c24(0x1c1)]({'id':_0x1d49bb['id'],'parts':_0x43a9dd,'renderingStrategy':_0x312c24(0x288)});}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x224),(_0x452063,{replyId:_0x1fa3b8,partIndex:_0x2a276c})=>{const _0x328d8f=_0x412031;this[_0x328d8f(0x207)]?.[_0x328d8f(0x2d0)]==_0x1fa3b8&&this[_0x328d8f(0x207)]?.[_0x328d8f(0x208)]==_0x2a276c&&this[_0x328d8f(0x2fa)][_0x328d8f(0x2e3)][_0x328d8f(0x1b3)](_0x48b72c)[_0x328d8f(0x2e5)]();const {reply:_0x4503d3}=this[_0x328d8f(0x206)](_0x1fa3b8);_0x4503d3[_0x328d8f(0x27a)](_0x2a276c,_0x328d8f(0x287)),this[_0x328d8f(0x1ce)][_0x328d8f(0x306)](_0x328d8f(0x23a));});}async[_0x2c4a56(0x234)](){const _0x584531=_0x2c4a56;this[_0x584531(0x2fa)]instanceof _0x27a92a?this[_0x584531(0x265)](this[_0x584531(0x2fa)]):this[_0x584531(0x21e)](this[_0x584531(0x2fa)][_0x584531(0x2ee)],_0x584531(0x255),(_0x349cd1,_0x1a8e7d)=>{const _0x287529=_0x584531;_0x1a8e7d['on'](_0x287529(0x24a),()=>{const _0x13e355=_0x287529;this[_0x13e355(0x265)](_0x1a8e7d);});}),await this[_0x584531(0x2f2)]();}[_0x2c4a56(0x280)](_0x17faf9){const _0xd488ee=_0x2c4a56,_0x48952b=_0x40cd09(this[_0xd488ee(0x2fa)]);if(!_0x48952b[_0xd488ee(0x2e3)][_0xd488ee(0x26f)](_0xd488ee(0x2aa)))return;const _0x2de736=this[_0xd488ee(0x2fa)][_0xd488ee(0x2e3)][_0xd488ee(0x1b3)](_0xd488ee(0x26d)),{reply:_0x1221f1,interaction:_0x5d420d}=this[_0xd488ee(0x206)](_0x17faf9[_0xd488ee(0x2d0)]),_0x2c9bae=this[_0xd488ee(0x1fb)](_0x17faf9[_0xd488ee(0x2d0)],_0x17faf9[_0xd488ee(0x208)]),_0x325bc2=void 0x0!==_0x17faf9[_0xd488ee(0x208)]?[_0x1221f1[_0xd488ee(0x2df)][_0x17faf9[_0xd488ee(0x208)]]]:_0x1221f1[_0xd488ee(0x2df)][_0xd488ee(0x1f3)](_0x1b705b=>_0xd488ee(0x1bb)==_0x1b705b[_0xd488ee(0x26a)]),_0x49ffa1=_0x325bc2[_0xd488ee(0x23e)](_0x4b1cc0=>_0x1221f1[_0xd488ee(0x2df)][_0xd488ee(0x1e3)](_0x4b1cc0));if(!_0x2c9bae||_0xd488ee(0x290)==_0x2c9bae[_0xd488ee(0x2ad)][_0xd488ee(0x2cf)][_0xd488ee(0x2d4)])return void _0x49ffa1[_0xd488ee(0x264)](_0x25f9f7=>_0x1221f1[_0xd488ee(0x27a)](_0x25f9f7,_0xd488ee(0x229)));_0x49ffa1[_0xd488ee(0x264)](_0x99de46=>_0x1221f1[_0xd488ee(0x27a)](_0x99de46,_0xd488ee(0x275)));const _0x340900=_0x44190b({'editor':_0x48952b,'reply':_0x1221f1,'interaction':_0x5d420d,'groups':_0x325bc2,'transform':!0x0,'documentCompare':_0x2de736,'documentCompareOptions':{'anchor':_0xd488ee(0x1e7),'markDeletions':!0x0}});let _0x519e0d;_0x2c9bae&&this[_0xd488ee(0x22a)](_0x2c9bae[_0xd488ee(0x2ad)]),_0x48952b[_0xd488ee(0x1f5)][_0xd488ee(0x29e)](_0x381829=>{const _0x18c6fc=_0xd488ee;_0x519e0d=_0x381829[_0x18c6fc(0x22e)],_0x48952b[_0x18c6fc(0x2e3)][_0x18c6fc(0x1b3)](_0x18c6fc(0x2aa))[_0x18c6fc(0x254)](_0x340900),this[_0x18c6fc(0x1ce)][_0x18c6fc(0x306)](_0x18c6fc(0x23a));}),this[_0xd488ee(0x205)][_0xd488ee(0x279)](_0x519e0d,{'interactionId':_0x5d420d['id'],'replyId':_0x1221f1['id'],'indexes':_0x49ffa1[_0xd488ee(0x23c)]()}),this[_0xd488ee(0x276)](_0x1221f1);}[_0x2c4a56(0x1b9)](_0x283218){const _0x4d2ace=_0x2c4a56,_0x198fae=_0x40cd09(this[_0x4d2ace(0x2fa)]),_0x41b8a3=this[_0x4d2ace(0x2fa)][_0x4d2ace(0x2e3)][_0x4d2ace(0x1b3)](_0x4fad48),{reply:_0x29334b,interaction:_0x5c53a7}=this[_0x4d2ace(0x206)](_0x283218[_0x4d2ace(0x2d0)]),_0x306661=this[_0x4d2ace(0x1fb)](_0x283218[_0x4d2ace(0x2d0)],_0x283218[_0x4d2ace(0x208)]),_0xc51f0a=void 0x0!==_0x283218[_0x4d2ace(0x208)]?[_0x29334b[_0x4d2ace(0x2df)][_0x283218[_0x4d2ace(0x208)]]]:_0x29334b[_0x4d2ace(0x2df)][_0x4d2ace(0x1f3)](_0x481fd0=>_0x4d2ace(0x1bb)==_0x481fd0[_0x4d2ace(0x26a)]),_0x41649c=_0xc51f0a[_0x4d2ace(0x23e)](_0x19e4e5=>_0x29334b[_0x4d2ace(0x2df)][_0x4d2ace(0x1e3)](_0x19e4e5));if(!_0x306661||_0x4d2ace(0x290)==_0x306661[_0x4d2ace(0x2ad)][_0x4d2ace(0x2cf)][_0x4d2ace(0x2d4)])return void _0x41649c[_0x4d2ace(0x264)](_0x5dea67=>_0x29334b[_0x4d2ace(0x27a)](_0x5dea67,_0x4d2ace(0x229)));_0x41649c[_0x4d2ace(0x264)](_0x1977b5=>_0x29334b[_0x4d2ace(0x27a)](_0x1977b5,_0x4d2ace(0x275)));const _0x42b283=_0x44190b({'editor':_0x198fae,'reply':_0x29334b,'interaction':_0x5c53a7,'groups':_0xc51f0a,'transform':!0x0,'documentCompare':_0x41b8a3,'documentCompareOptions':{'anchor':_0x4d2ace(0x1e7),'markDeletions':!0x1}});let _0x13f20a;_0x306661&&this[_0x4d2ace(0x22a)](_0x306661[_0x4d2ace(0x2ad)]),_0x198fae[_0x4d2ace(0x1f5)][_0x4d2ace(0x29e)](_0x5f149c=>{const _0x1c0400=_0x4d2ace;_0x13f20a=_0x5f149c[_0x1c0400(0x22e)];for(const _0x3e34ca of _0x42b283)_0x3e34ca[_0x1c0400(0x202)]=_0x198fae[_0x1c0400(0x1f5)][_0x1c0400(0x2a3)][_0x1c0400(0x2e6)],_0x5f149c[_0x1c0400(0x22e)][_0x1c0400(0x299)](_0x3e34ca),_0x198fae[_0x1c0400(0x1f5)][_0x1c0400(0x286)](_0x3e34ca);}),this[_0x4d2ace(0x205)][_0x4d2ace(0x279)](_0x13f20a,{'interactionId':_0x5c53a7['id'],'replyId':_0x29334b['id'],'indexes':_0x41649c[_0x4d2ace(0x23c)]()}),this[_0x4d2ace(0x276)](_0x29334b);}[_0x2c4a56(0x278)](_0x3cb7a5,_0xbfb1be){const _0x1526a6=_0x2c4a56,_0x1c9cfd=_0x40cd09(this[_0x1526a6(0x2fa)]),_0x302654=this[_0x1526a6(0x1fb)](_0x3cb7a5,_0xbfb1be),_0x2e5239=this[_0x1526a6(0x2fa)][_0x1526a6(0x2e3)][_0x1526a6(0x1b3)](_0x48b72c);if(!_0x302654)return void _0x2e5239[_0x1526a6(0x2e5)]();const {range:_0x3507d4,currentIndex:_0x2c248a,previousIndex:_0x45747e,nextIndex:_0x497460}=_0x302654;if(_0x1526a6(0x290)==_0x3507d4[_0x1526a6(0x2cf)][_0x1526a6(0x2d4)]){const {reply:_0x36c463}=this[_0x1526a6(0x206)](_0x3cb7a5);return _0x36c463[_0x1526a6(0x27a)](_0x2c248a,_0x1526a6(0x229)),void _0x2e5239[_0x1526a6(0x2e5)]();}if(this[_0x1526a6(0x207)]?.[_0x1526a6(0x2d0)]==_0x3cb7a5&&this[_0x1526a6(0x207)]?.[_0x1526a6(0x208)]==_0x2c248a)return;this[_0x1526a6(0x207)]={'replyId':_0x3cb7a5,'partIndex':_0x2c248a};const _0xc16f5e=new _0x5e61a5(_0x1c9cfd[_0x1526a6(0x284)],{'showDiff':this[_0x1526a6(0x25e)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x1526a6(0x248)},'hideHeader':!0x0}),{reply:_0x5ba0de}=this[_0x1526a6(0x206)](_0x3cb7a5),_0x4b0efa=_0x2b2350({'editor':_0x1c9cfd,'changeGroups':[_0x5ba0de[_0x1526a6(0x2df)][_0x2c248a]],'documentContextContent':_0x5ba0de[_0x1526a6(0x25a)],'showDiff':this[_0x1526a6(0x25e)]});_0xc16f5e[_0x1526a6(0x231)]({'parts':_0x4b0efa,'renderingStrategy':_0x1526a6(0x288)});const _0x1d5d5f=_0x2c248a!==_0x45747e;this[_0x1526a6(0x22a)](_0x3507d4,!0x0),_0x2e5239[_0x1526a6(0x2d6)]({'index':_0x2c248a,'title':_0x1523b1(this[_0x1526a6(0x2fa)][_0x1526a6(0x284)],_0x1526a6(0x292),(_0x2c248a+0x1)[_0x1526a6(0x2dd)]()),'icon':_0x5e93f1,'mainView':_0xc16f5e,'showRotator':_0x1d5d5f,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x3507d4]}),this[_0x1526a6(0x2b3)][_0x1526a6(0x1f8)](_0x3cb7a5,_0x2c248a),this[_0x1526a6(0x21e)](_0xc16f5e,_0x1526a6(0x297),(_0x17e29e,{showDiff:_0x2ed248})=>{const _0x14cdf2=_0x1526a6;this[_0x14cdf2(0x25e)]=_0x2ed248;const {reply:_0x42afa2}=this[_0x14cdf2(0x206)](_0x3cb7a5),_0x4355b0=_0x2b2350({'editor':_0x1c9cfd,'changeGroups':[_0x42afa2[_0x14cdf2(0x2df)][_0x2c248a]],'documentContextContent':_0x42afa2[_0x14cdf2(0x25a)],'showDiff':_0x2ed248});_0xc16f5e[_0x14cdf2(0x231)]({'parts':_0x4355b0,'renderingStrategy':_0x14cdf2(0x288)});}),this[_0x1526a6(0x21e)](_0x2e5239,_0x1526a6(0x221),()=>{const _0x1ea9d8=_0x1526a6;this[_0x1ea9d8(0x1b9)]({'replyId':_0x3cb7a5,'partIndex':_0x2c248a}),_0x1d5d5f?this[_0x1ea9d8(0x278)](_0x3cb7a5,_0x497460):_0x2e5239[_0x1ea9d8(0x2e5)]();}),this[_0x1526a6(0x21e)](_0x2e5239,_0x1526a6(0x241),()=>{const _0x1f1158=_0x1526a6;this[_0x1f1158(0x280)]({'replyId':_0x3cb7a5,'partIndex':_0x2c248a}),_0x1d5d5f?this[_0x1f1158(0x278)](_0x3cb7a5,_0x497460):_0x2e5239[_0x1f1158(0x2e5)]();}),_0x1d5d5f&&(this[_0x1526a6(0x21e)](_0x2e5239,_0x1526a6(0x2bc),()=>{const _0x35f78b=_0x1526a6;this[_0x35f78b(0x278)](_0x3cb7a5,_0x497460);}),this[_0x1526a6(0x21e)](_0x2e5239,_0x1526a6(0x2ba),()=>{const _0x236a33=_0x1526a6;this[_0x236a33(0x278)](_0x3cb7a5,_0x45747e);})),this[_0x1526a6(0x21e)](_0x2e5239,_0x1526a6(0x247),()=>{const _0x34fe3b=_0x1526a6;this[_0x34fe3b(0x2c1)](_0x2e5239),this[_0x34fe3b(0x2c1)](_0xc16f5e),this[_0x34fe3b(0x207)]=null;});}[_0x2c4a56(0x1fb)](_0x2c9baa,_0x573c24){const _0x3b964f=_0x2c4a56,_0x34f13d=_0x40cd09(this[_0x3b964f(0x2fa)]),{reply:_0x14c031,interaction:_0x51408a}=this[_0x3b964f(0x206)](_0x2c9baa),_0x34997e=_0x14c031[_0x3b964f(0x2df)][_0x3b964f(0x1f3)](_0xd21e85=>_0x3b964f(0x1bb)==_0xd21e85[_0x3b964f(0x26a)]),_0x10b880=_0x34997e[_0x3b964f(0x23e)](_0x139a30=>_0x14c031[_0x3b964f(0x2df)][_0x3b964f(0x1e3)](_0x139a30));void 0x0===_0x573c24&&(_0x573c24=_0x10b880[0x0]);const _0x567ce0=_0x10b880[_0x3b964f(0x1e3)](_0x573c24);if(-0x1==_0x567ce0)return null;const _0x113c59=0x0==_0x567ce0?_0x10b880[_0x10b880[_0x3b964f(0x1f0)]-0x1]:_0x10b880[_0x567ce0-0x1],_0xf72e3c=_0x567ce0==_0x10b880[_0x3b964f(0x1f0)]-0x1?_0x10b880[0x0]:_0x10b880[_0x567ce0+0x1],_0x58e215=_0x34997e[_0x567ce0],_0x1c8f2c=new _0x3d00cc([]),_0xb98c17=new _0x3d00cc([]);for(const _0x544504 of _0x58e215[_0x3b964f(0x1b4)])if(_0x3b964f(0x2b2)!=_0x544504[_0x3b964f(0x2b9)]&&_0xb98c17[_0x3b964f(0x235)][_0x3b964f(0x22f)](_0x544504[_0x3b964f(0x1cd)][_0x3b964f(0x20c)](!0x0)),_0x3b964f(0x27c)!=_0x544504[_0x3b964f(0x2b9)]){const _0x49bdf6=_0x37f9bf(_0x4a244d=>_0x366774(_0x4a244d,_0x3b964f(0x2f3))==_0x544504['id'],_0x14c031[_0x3b964f(0x25a)],!0x0);_0x1c8f2c[_0x3b964f(0x235)][_0x3b964f(0x22f)](_0x49bdf6[_0x3b964f(0x20c)](!0x0));}if(0x0==_0x1c8f2c[_0x3b964f(0x235)][_0x3b964f(0x1f0)]){if(_0x58e215[_0x3b964f(0x1b4)][0x0][_0x3b964f(0x2ff)]){const _0x241e01=_0xa2728e(_0x3b964f(0x2f3),_0x58e215[_0x3b964f(0x1b4)][0x0][_0x3b964f(0x2ff)],_0x14c031[_0x3b964f(0x25a)]);_0x1c8f2c[_0x3b964f(0x235)][_0x3b964f(0x294)](_0x241e01[_0x3b964f(0x20c)](!0x0)),_0xb98c17[_0x3b964f(0x235)][_0x3b964f(0x294)](_0x241e01[_0x3b964f(0x20c)](!0x0)),_0x241e01[_0x3b964f(0x2fb)]&&(_0x1c8f2c[_0x3b964f(0x235)][_0x3b964f(0x22f)](_0x241e01[_0x3b964f(0x2fb)][_0x3b964f(0x20c)](!0x0)),_0xb98c17[_0x3b964f(0x235)][_0x3b964f(0x22f)](_0x241e01[_0x3b964f(0x2fb)][_0x3b964f(0x20c)](!0x0)));}else{const _0x5ab2a2=_0x14c031[_0x3b964f(0x25a)][_0x3b964f(0x235)][0x0];if(!_0x5ab2a2)return null;_0x1c8f2c[_0x3b964f(0x235)][_0x3b964f(0x22f)](_0x5ab2a2[_0x3b964f(0x20c)](!0x0)),_0xb98c17[_0x3b964f(0x235)][_0x3b964f(0x22f)](_0x5ab2a2[_0x3b964f(0x20c)](!0x0));}}const _0x50b363=_0x51408a[_0x3b964f(0x2bd)](),_0x3f5e2a=_0x34f13d[_0x3b964f(0x217)][_0x3b964f(0x2cd)](_0x50b363[_0x3b964f(0x1b8)]),_0x8d4862=_0x1007e6(_0x1c8f2c),_0x5da925=_0x34f13d[_0x3b964f(0x217)][_0x3b964f(0x2cd)](_0x8d4862),_0x153af4=_0x34f13d[_0x3b964f(0x217)][_0x3b964f(0x2cd)](_0x8d4862),_0x52a5f2=_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x1ca)](_0x5da925,0x0),_0x9b2790=_0x1007e6(_0xb98c17),_0x2a4414={'anchor':_0x52a5f2,'markDeletions':!0x1},_0x963b2f=_0x34f13d[_0x3b964f(0x2e3)][_0x3b964f(0x1b3)](_0x4fad48)[_0x3b964f(0x2e1)](_0x8d4862,_0x9b2790,_0x2a4414)[_0x3b964f(0x1fc)]();if(!_0x963b2f[_0x3b964f(0x1f0)])return null;_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x29e)](_0x515d7d=>{const _0x38e6bb=_0x3b964f;for(const _0x49ed5a of _0x963b2f)if(_0x38e6bb(0x2c7)==_0x49ed5a[_0x38e6bb(0x2b9)]){const _0x3e66d1=_0x49ed5a[_0x38e6bb(0x249)],_0x2d83a9=_0x49ed5a[_0x38e6bb(0x245)],_0x5f1495=new _0xf7d8c(_0x3e66d1,_0x2d83a9);_0x515d7d[_0x38e6bb(0x22e)][_0x38e6bb(0x299)](_0x5f1495),_0x34f13d[_0x38e6bb(0x1f5)][_0x38e6bb(0x286)](_0x5f1495);}else _0x38e6bb(0x2b0)!==_0x49ed5a[_0x38e6bb(0x2b9)]&&(_0x49ed5a[_0x38e6bb(0x202)]=null,_0x49ed5a[_0x38e6bb(0x1d4)]=!0x1,_0x515d7d[_0x38e6bb(0x22e)][_0x38e6bb(0x299)](_0x49ed5a),_0x34f13d[_0x38e6bb(0x1f5)][_0x38e6bb(0x286)](_0x49ed5a));});const _0xfd6ffa=_0x31f8ce(_0x34f13d,_0x963b2f,_0x5da925);_0xee9603(_0x34f13d[_0x3b964f(0x1f5)],_0xfd6ffa);const _0x3eee37=_0xfd6ffa[_0x3b964f(0x291)]()[_0x3b964f(0x237)][_0x3b964f(0x1bd)][_0x3b964f(0x23c)](),_0x176a52=_0xfd6ffa[_0x3b964f(0x291)]()[_0x3b964f(0x282)][_0x3b964f(0x1bd)][_0x3b964f(0x23c)](),_0x3ddd8d=[];let _0x4e72e9=_0x5da925,_0x18a0c7=_0x153af4;for(let _0x163192=0x0;_0x163192<_0x176a52[_0x3b964f(0x1f0)];_0x163192++){const _0x2af8b3=_0x4e72e9[_0x3b964f(0x269)]-_0x176a52[_0x163192];_0x3ddd8d[_0x163192]=_0x18a0c7[_0x3b964f(0x269)]-_0x2af8b3,_0x4e72e9=_0x4e72e9[_0x3b964f(0x2f5)](_0x176a52[_0x163192]),_0x18a0c7=_0x18a0c7[_0x3b964f(0x2f5)](_0x3ddd8d[_0x163192]);}const _0x2df56c=_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x2ea)](_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x210)](_0x153af4,_0x3eee37),_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x210)](_0x153af4,_0x3ddd8d)),_0x2e7c9c=_0x153af4[_0x3b964f(0x1ed)](0x0)[_0x3b964f(0x28d)](_0x144524),_0xe853e8=Array[_0x3b964f(0x1ea)](_0x3f5e2a[_0x3b964f(0x1ef)]())[_0x3b964f(0x1b5)](_0x1a9fb4=>_0x1a9fb4[_0x3b964f(0x28d)](_0x144524)==_0x2e7c9c)[_0x3b964f(0x2a8)](),_0x491fe2=_0x2df56c[_0x3b964f(0x237)][_0x3b964f(0x1bd)][_0x3b964f(0x23c)](),_0x9fd9e8=_0x2df56c[_0x3b964f(0x282)][_0x3b964f(0x1bd)][_0x3b964f(0x23c)]();_0x491fe2[0x0]=_0xe853e8[0x0]+_0x491fe2[0x0],_0x9fd9e8[0x0]=_0xe853e8[0x0]+_0x9fd9e8[0x0];let _0x462e24=_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x2ea)](_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x210)](_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x2a3)][_0x3b964f(0x2bf)](),_0x491fe2),_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x210)](_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x2a3)][_0x3b964f(0x2bf)](),_0x9fd9e8));const _0x568d22=_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x2a3)][_0x3b964f(0x2c9)][_0x3b964f(0x1fc)](_0x50b363[_0x3b964f(0x2e6)]);for(const _0x416790 of _0x568d22)_0x462e24=_0x5bf0a5[_0x3b964f(0x1d2)](_0x462e24[_0x3b964f(0x2b7)](_0x416790));return{'range':_0x462e24,'previousIndex':_0x113c59,'nextIndex':_0xf72e3c,'currentIndex':_0x573c24};}[_0x2c4a56(0x265)](_0x394039){const _0x42a918=_0x2c4a56;if(!_0x394039[_0x42a918(0x2e3)][_0x42a918(0x26f)](_0x42a918(0x1dc)))return;const _0x170d7d=_0x394039[_0x42a918(0x1b1)][_0x42a918(0x1b3)](_0x42a918(0x2eb)),_0x1c9387=_0x394039[_0x42a918(0x1b1)][_0x42a918(0x1b3)](_0x42a918(0x25b));this[_0x42a918(0x21e)](_0x170d7d,_0x42a918(0x1cc),(_0x31aa69,_0x6789d5,_0x382254)=>{const _0x366479=_0x42a918,_0x1d5b99=this[_0x366479(0x205)][_0x366479(0x1b3)](_0x6789d5);if(!_0x1d5b99)return;const _0xd3c447=this[_0x366479(0x267)][_0x366479(0x2fd)](_0x1d5b99[_0x366479(0x1f9)])[_0x366479(0x2b6)](_0x1d5b99[_0x366479(0x2d0)]);_0x1d5b99[_0x366479(0x2be)][_0x366479(0x264)](_0x477bee=>_0xd3c447[_0x366479(0x27a)](_0x477bee,_0x366479(0x1bb))),this[_0x366479(0x205)][_0x366479(0x1e4)](_0x6789d5),this[_0x366479(0x205)][_0x366479(0x279)](_0x382254,_0x1d5b99);}),this[_0x42a918(0x21e)](_0x1c9387,_0x42a918(0x1cc),(_0x22e83c,_0x42a5c1,_0x2a12aa)=>{const _0x32d4a2=_0x42a918,_0x595244=this[_0x32d4a2(0x205)][_0x32d4a2(0x1b3)](_0x42a5c1);if(!_0x595244)return;const _0x52ae83=this[_0x32d4a2(0x267)][_0x32d4a2(0x2fd)](_0x595244[_0x32d4a2(0x1f9)])[_0x32d4a2(0x2b6)](_0x595244[_0x32d4a2(0x2d0)]);_0x595244[_0x32d4a2(0x2be)][_0x32d4a2(0x264)](_0x3607b8=>_0x52ae83[_0x32d4a2(0x27a)](_0x3607b8,_0x32d4a2(0x275))),this[_0x32d4a2(0x205)][_0x32d4a2(0x1e4)](_0x42a5c1),this[_0x32d4a2(0x205)][_0x32d4a2(0x279)](_0x2a12aa,_0x595244);});}async[_0x2c4a56(0x218)](_0x53c82e){const _0x33de7d=_0x2c4a56;this[_0x33de7d(0x2fa)][_0x33de7d(0x2e3)][_0x33de7d(0x1b3)](_0x48b72c)[_0x33de7d(0x2e5)](),this[_0x33de7d(0x2b3)][_0x33de7d(0x243)](_0x33de7d(0x288)),this[_0x33de7d(0x2b3)][_0x33de7d(0x2ae)](!0x0),await this[_0x33de7d(0x1c9)]();try{const _0xe727b6=this[_0x33de7d(0x2fa)][_0x33de7d(0x2e3)][_0x33de7d(0x1b3)](_0x44b1ea);this[_0x33de7d(0x27d)]('\x20'),_0xe727b6[_0x33de7d(0x2c2)][_0x33de7d(0x268)](_0x33de7d(0x214)),await this[_0x33de7d(0x2f2)](_0x53c82e);const {sessionId:_0x243da1}=this[_0x33de7d(0x1ce)][_0x33de7d(0x259)]();await this[_0x33de7d(0x267)][_0x33de7d(0x209)](_0x53c82e,_0x243da1),this[_0x33de7d(0x267)][_0x33de7d(0x23f)]()&&this[_0x33de7d(0x267)][_0x33de7d(0x304)](_0x1523b1(this[_0x33de7d(0x2fa)][_0x33de7d(0x284)],_0x33de7d(0x2f8)));}catch(_0x3836e4){console[_0x33de7d(0x2f9)](_0x33de7d(0x2ca),_0x3836e4);}finally{this[_0x33de7d(0x2b3)][_0x33de7d(0x243)](_0x33de7d(0x1d9)),this[_0x33de7d(0x2b3)][_0x33de7d(0x2ae)](!0x1);}}[_0x2c4a56(0x2f4)](_0x27c728){const _0x27d88b=_0x2c4a56;this[_0x27d88b(0x267)]['id']===_0x27c728&&this[_0x27d88b(0x2f2)]();}async[_0x2c4a56(0x1b0)](){const _0xd68cb9=_0x2c4a56,_0x38f9af=this[_0xd68cb9(0x1ce)][_0xd68cb9(0x2b8)]();this[_0xd68cb9(0x267)]?.[_0xd68cb9(0x22c)](_0x38f9af),this[_0xd68cb9(0x267)]?.[_0xd68cb9(0x304)](_0x1523b1(this[_0xd68cb9(0x2fa)][_0xd68cb9(0x284)],_0xd68cb9(0x2f8)));}[_0x2c4a56(0x1df)](){const _0x46002d=_0x2c4a56;this[_0x46002d(0x267)]?.[_0x46002d(0x1ee)]();}[_0x2c4a56(0x2fc)](){const _0x5f3656=_0x2c4a56;this[_0x5f3656(0x2b3)][_0x5f3656(0x2fc)]();}async[_0x2c4a56(0x1e9)](){const _0x2ae599=_0x2c4a56;await this[_0x2ae599(0x2f2)]();}async[_0x2c4a56(0x20e)]({message:_0x39785f,quickActionData:_0x1b09c8}){const _0x273ac4=_0x2c4a56;await this[_0x273ac4(0x212)]({'userMessage':_0x39785f,'quickActionData':_0x1b09c8});}[_0x2c4a56(0x20a)](){const _0x1042ff=_0x2c4a56,_0x52f641=this[_0x1042ff(0x2fa)][_0x1042ff(0x2c3)][_0x1042ff(0x1b3)](_0x1042ff(0x296));if(!_0x52f641)throw new _0x13f2ac(_0x1042ff(0x211),this);return _0x52f641;}async[_0x2c4a56(0x2f2)](_0xc8e3ff){const _0x39cb70=_0x2c4a56;try{this[_0x39cb70(0x2b3)][_0x39cb70(0x21b)](),await this[_0x39cb70(0x236)](_0xc8e3ff);}catch(_0x28bf19){_0xbcf11b(_0x39cb70(0x24f),_0x28bf19),this[_0x39cb70(0x267)]=void 0x0,this[_0x39cb70(0x2b3)][_0x39cb70(0x2c8)]();}}async[_0x2c4a56(0x236)](_0xf483ae){const _0x10b41c=_0x2c4a56,_0x814a4a=this[_0x10b41c(0x2fa)][_0x10b41c(0x2e3)][_0x10b41c(0x1b3)](_0x48b72c);let _0x2e5d4a;_0x814a4a[_0x10b41c(0x2d5)]&&_0x814a4a[_0x10b41c(0x2e5)](),_0xf483ae||!this[_0x10b41c(0x267)]?_0x2e5d4a=this[_0x10b41c(0x2fa)][_0x10b41c(0x2c3)][_0x10b41c(0x1b3)](_0x10b41c(0x1fa)):this[_0x10b41c(0x2b3)][_0x10b41c(0x2cb)]&&(_0x2e5d4a=this[_0x10b41c(0x267)][_0x10b41c(0x2f7)]['id']),await this[_0x10b41c(0x1c9)]();const _0x12e6a0=this[_0x10b41c(0x20a)](),_0x6198ac=_0xf483ae||_0x38bd85();this[_0x10b41c(0x267)]=new _0x2f446f({'connector':this[_0x10b41c(0x1f2)],'chatModels':this[_0x10b41c(0x295)],'selectedModelId':_0x2e5d4a,'conversationId':_0x6198ac,'group':_0x12e6a0,'getEditor':()=>_0x40cd09(this[_0x10b41c(0x2fa)])}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1dd),(_0x384115,_0x3399da)=>{const _0x7e1548=_0x10b41c;this[_0x7e1548(0x2b3)][_0x7e1548(0x274)](_0x3399da),this[_0x7e1548(0x2b3)][_0x7e1548(0x250)](),this[_0x7e1548(0x2b3)][_0x7e1548(0x25f)](),this[_0x7e1548(0x2b3)][_0x7e1548(0x261)](),_0xf483ae||(this[_0x7e1548(0x2b3)][_0x7e1548(0x2f6)](),this[_0x7e1548(0x267)]?.[_0x7e1548(0x304)](_0x1523b1(this[_0x7e1548(0x2fa)][_0x7e1548(0x284)],_0x7e1548(0x2f8))));}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x2ab),(_0x321a5d,_0x48f06e)=>{const _0x26107e=_0x10b41c;this[_0x26107e(0x2b3)][_0x26107e(0x24c)](_0x48f06e[_0x26107e(0x220)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x2c6),(_0x59d1be,_0x2b6480)=>{const _0x220ef8=_0x10b41c;this[_0x220ef8(0x2b3)][_0x220ef8(0x1f7)](_0x2b6480);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x272),()=>{const _0x291bb7=_0x10b41c;this[_0x291bb7(0x2b3)][_0x291bb7(0x1c2)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x240),()=>{const _0x2dc194=_0x10b41c;this[_0x2dc194(0x2b3)][_0x2dc194(0x1c2)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x271),(_0x37948d,_0x4a4402)=>{const _0x4fca44=_0x10b41c;this[_0x4fca44(0x2b3)][_0x4fca44(0x21f)](_0x4a4402,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1be),(_0x255ad8,_0x26630d)=>{const _0x8aa71=_0x10b41c;this[_0x8aa71(0x2b3)][_0x8aa71(0x21f)](_0x26630d,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x238),()=>{const _0x9165b3=_0x10b41c;this[_0x9165b3(0x2b3)][_0x9165b3(0x1de)]();}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x2d8),async()=>{const _0x477bb8=_0x10b41c;await this[_0x477bb8(0x2b3)][_0x477bb8(0x302)]();}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1f1),(_0x18ab4f,_0xe7dce5)=>{const _0x4bcdc1=_0x10b41c;this[_0x4bcdc1(0x2b3)][_0x4bcdc1(0x1cb)](_0xe7dce5['id']);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x201),(_0xc45bf1,_0x2e09a4,_0x9922a2)=>{const _0x316c64=_0x10b41c;this[_0x316c64(0x27d)](_0x2e09a4,_0x9922a2);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1e6),(_0x598ee5,_0x7daf68)=>{const _0x2d83ac=_0x10b41c;_0x2d83ac(0x263)===_0x7daf68[_0x2d83ac(0x2b9)]?this[_0x2d83ac(0x2b3)][_0x2d83ac(0x20b)](_0x7daf68):this[_0x2d83ac(0x2b3)][_0x2d83ac(0x1c5)](_0x7daf68);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x20f),async(_0x1fd8c9,_0x44243a,_0x3fd7f1)=>{const _0x4faedd=_0x10b41c;await this[_0x4faedd(0x28b)]({'reply':_0x44243a,'changeGroups':_0x3fd7f1});}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x233),(_0x5462e7,{reply:_0x2cf2d8,index:_0x4bff0c,state:_0x446f30})=>{const _0x4ea1b9=_0x10b41c;this[_0x4ea1b9(0x2b3)][_0x4ea1b9(0x289)]({'id':_0x2cf2d8['id'],'index':_0x4bff0c,'state':_0x446f30});}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x2e0),(_0x512ebd,_0x51784d)=>{const _0x1984a3=_0x10b41c;if(this[_0x1984a3(0x2b3)][_0x1984a3(0x2ce)](_0x51784d[_0x1984a3(0x262)],_0x51784d[_0x1984a3(0x2f0)]),_0x1984a3(0x273)===_0x51784d[_0x1984a3(0x262)][_0x1984a3(0x2b9)]){const _0x4096ff=[..._0x40cd09(this[_0x1984a3(0x2fa)])[_0x1984a3(0x1f5)][_0x1984a3(0x2a3)][_0x1984a3(0x273)][_0x1984a3(0x1d1)]()];this[_0x1984a3(0x1ce)][_0x1984a3(0x2dc)](_0x4096ff,_0x1984a3(0x21d)+this[_0x1984a3(0x267)]?.['id']);}}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x266),(_0x35abbe,_0x2c6643)=>{const _0x35df4b=_0x10b41c;this[_0x35df4b(0x2b3)][_0x35df4b(0x246)](_0x2c6643[_0x35df4b(0x281)]),_0x35df4b(0x1c6)==_0x2c6643[_0x35df4b(0x281)]&&this[_0x35df4b(0x1df)](),_0x35df4b(0x273)===_0x2c6643[_0x35df4b(0x2b9)]&&this[_0x35df4b(0x1ce)][_0x35df4b(0x306)](_0x35df4b(0x21d)+this[_0x35df4b(0x267)]?.['id']);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x308),(_0x134942,_0x463dee)=>{const _0x1df380=_0x10b41c;this[_0x1df380(0x2b3)][_0x1df380(0x260)](_0x463dee[_0x1df380(0x262)][_0x1df380(0x281)],_0x463dee[_0x1df380(0x2f0)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x28a),(_0x595b7f,_0x4aabb9)=>{const _0x40882f=_0x10b41c;this[_0x40882f(0x2b3)][_0x40882f(0x2e2)](_0x4aabb9[_0x40882f(0x1f6)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1fd),(_0xcf881f,_0x20af4d)=>{const _0x1a9908=_0x10b41c;this[_0x1a9908(0x2b3)][_0x1a9908(0x1eb)](_0x20af4d[_0x1a9908(0x2cc)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1f4),(_0x23341b,_0x4075bf)=>{const _0x1b1eee=_0x10b41c;this[_0x1b1eee(0x2b3)][_0x1b1eee(0x256)](_0x4075bf[_0x1b1eee(0x298)],_0x4075bf[_0x1b1eee(0x1e0)],_0x4075bf[_0x1b1eee(0x2c5)],_0x4075bf[_0x1b1eee(0x1c0)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1c8),(_0x339239,_0x3cc2b3)=>{const _0x18aa06=_0x10b41c;this[_0x18aa06(0x2b3)][_0x18aa06(0x1bf)](_0x3cc2b3[_0x18aa06(0x298)],_0x3cc2b3[_0x18aa06(0x2a5)],_0x3cc2b3[_0x18aa06(0x2a4)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x223),(_0x30cfec,_0x5a9d51)=>{const _0x5a3812=_0x10b41c;this[_0x5a3812(0x2b3)][_0x5a3812(0x20d)](_0x5a9d51);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x285),(_0x2ccba9,_0xe449ff)=>{const _0x3a754d=_0x10b41c;this[_0x3a754d(0x2b3)][_0x3a754d(0x1d8)](_0xe449ff[_0x3a754d(0x2f7)],_0xe449ff[_0x3a754d(0x216)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x2f9),(_0x1a9f30,{error:_0x5cbc06,interactionId:_0x5d40de,fileName:_0x47acdc,url:_0xd56a21,sourceId:_0x48ef32,sourceLabel:_0x391208})=>{const _0x48e496=_0x10b41c,_0x3d15a4=_0x5d40de?_0x5d40de+':'+_0x38bd85():_0x38bd85();_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x29f))?this[_0x48e496(0x2b3)][_0x48e496(0x1d0)]({'staticMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x1d5)),'id':_0x3d15a4}):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x2e7))||_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x24f))?(this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x2d7)),'id':_0x3d15a4}),this[_0x48e496(0x2e4)](_0x5cbc06)):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x258))?this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x28e),_0x47acdc),'id':_0x3d15a4}):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x1db))?this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x2fe),_0xd56a21),'id':_0x3d15a4}):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x307))?this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x24d)),'id':_0x3d15a4}):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x2a1))?this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x253)),'id':_0x3d15a4}):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x26e))?(_0x48ef32&&this[_0x48e496(0x2b3)][_0x48e496(0x2bb)](_0x48ef32),this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x2ef),_0x391208||_0x48e496(0x1e0)),'id':_0x3d15a4}),this[_0x48e496(0x2e4)](_0x5cbc06)):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x24e))?(this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x2db)),'id':_0x3d15a4}),this[_0x48e496(0x2e4)](_0x5cbc06)):(this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x1fe)),'id':_0x3d15a4}),this[_0x48e496(0x2e4)](_0x5cbc06));}),await this[_0x10b41c(0x267)][_0x10b41c(0x1e5)](this[_0x10b41c(0x2fa)][_0x10b41c(0x2c3)][_0x10b41c(0x1b3)](_0x10b41c(0x1b7))),_0xf483ae||await this[_0x10b41c(0x267)][_0x10b41c(0x237)]();}async[_0x2c4a56(0x212)]({userMessage:_0x420648,quickActionData:_0x7ec0d}){const _0xe3a38c=_0x2c4a56;if(!this[_0xe3a38c(0x267)])throw new _0x13f2ac(_0xe3a38c(0x28f));this[_0xe3a38c(0x267)][_0xe3a38c(0x21c)]()&&await this[_0xe3a38c(0x267)][_0xe3a38c(0x22b)](this[_0xe3a38c(0x1ce)][_0xe3a38c(0x259)]()),this[_0xe3a38c(0x267)]['id']&&this[_0xe3a38c(0x267)][_0xe3a38c(0x293)]&&await this[_0xe3a38c(0x267)][_0xe3a38c(0x22d)]({'userMessage':_0x420648,'quickActionData':_0x7ec0d}),this[_0xe3a38c(0x2d1)]();}[_0x2c4a56(0x2d1)](){const _0xae9582=_0x2c4a56,_0x1a6f55=_0x40cd09(this[_0xae9582(0x2fa)])[_0xae9582(0x1f5)],_0x22e596=Array[_0xae9582(0x1ea)](_0x1a6f55[_0xae9582(0x2c0)][_0xae9582(0x222)](_0x3a377a));_0x1a6f55[_0xae9582(0x29e)](_0x5e2541=>{const _0x8fd253=_0xae9582;_0x22e596[_0x8fd253(0x264)](_0x23ec37=>_0x5e2541[_0x8fd253(0x29d)](_0x23ec37));});}[_0x2c4a56(0x1e8)](){const _0x535e53=_0x2c4a56;console[_0x535e53(0x23b)](_0x535e53(0x230));}[_0x2c4a56(0x257)](_0x5b8dab){const _0x3b53b9=_0x2c4a56;this[_0x3b53b9(0x2b3)][_0x3b53b9(0x1c3)](_0x5b8dab);}[_0x2c4a56(0x2e4)](_0x167251){const _0x18f637=_0x2c4a56;_0xbcf11b(_0x167251[_0x18f637(0x29a)]);}[_0x2c4a56(0x24b)](_0x1c6a61){const _0x33be45=_0x2c4a56;this[_0x33be45(0x267)]?.[_0x33be45(0x1d7)](_0x1c6a61);}[_0x2c4a56(0x2b5)](){const _0x1bde47=_0x2c4a56;this[_0x1bde47(0x267)]?.[_0x1bde47(0x1d3)]();}[_0x2c4a56(0x2a9)](){const _0x4d971d=_0x2c4a56;this[_0x4d971d(0x267)]?.[_0x4d971d(0x27b)]();}[_0x2c4a56(0x206)](_0x2aaf40){const _0x3de75b=_0x2c4a56,[_0x342ee7,_0x18f512]=_0x2aaf40[_0x3de75b(0x1b6)](':'),_0x272283=this[_0x3de75b(0x267)][_0x3de75b(0x2fd)](_0x342ee7),_0x47a4cc=_0x272283[_0x3de75b(0x2b6)](_0x18f512);return{'interaction':_0x272283,'reply':_0x47a4cc};}[_0x2c4a56(0x22a)](_0x2a8dfc,_0x28bc19=!0x1){const _0x527121=_0x2c4a56,_0x3dd663=_0x40cd09(this[_0x527121(0x2fa)]),_0x3085a8={'target':_0x3dd663[_0x527121(0x1b2)][_0x527121(0x2c2)][_0x527121(0x21a)][_0x527121(0x2da)](_0x3dd663[_0x527121(0x1b2)][_0x527121(0x2a6)][_0x527121(0x29b)](_0x2a8dfc)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x28bc19};_0x28bc19&&(_0x3085a8[_0x527121(0x215)]=!0x0),_0x59c6ad(_0x3085a8);}[_0x2c4a56(0x27d)](_0x30f391,_0x1ef6d9=!0x1){const _0x3f82a0=_0x2c4a56;this[_0x3f82a0(0x2b3)][_0x3f82a0(0x201)](_0x30f391||_0x1523b1(this[_0x3f82a0(0x2fa)][_0x3f82a0(0x284)],_0x3f82a0(0x1ff)),_0x1ef6d9);}async[_0x2c4a56(0x28b)]({reply:_0x218b65,changeGroups:_0x592f38,renderingStrategy:_0x420936}){const _0x24e052=_0x2c4a56,{id:_0x9a0c77,isDone:_0x1a5e52,type:_0x388c9c,parsedContent:_0x369217}=_0x218b65;if(_0x24e052(0x213)===_0x388c9c){const _0x480c57=_0x40cd09(this[_0x24e052(0x2fa)]),_0x1aa1a3=_0x2b2350({'editor':_0x480c57,'showDiff':this[_0x24e052(0x2b3)][_0x24e052(0x1ec)],'changeGroups':_0x592f38,'documentContextContent':_0x218b65[_0x24e052(0x25a)]});await this[_0x24e052(0x2b3)][_0x24e052(0x1c1)]({'id':_0x9a0c77,'parts':_0x1aa1a3,'renderingStrategy':_0x420936,'isDone':_0x1a5e52});}else _0x24e052(0x263)===_0x388c9c&&await this[_0x24e052(0x2b3)][_0x24e052(0x1e1)]({'id':_0x9a0c77,'parsedContent':_0x369217,'renderingStrategy':_0x420936,'isDone':_0x1a5e52});_0x1a5e52&&_0x218b65[_0x24e052(0x1ba)][_0x24e052(0x1f0)]>0x0&&this[_0x24e052(0x2b3)][_0x24e052(0x251)](_0x9a0c77,_0x218b65[_0x24e052(0x1ba)]);}async[_0x2c4a56(0x1c9)](){const _0x2c97f4=_0x2c4a56,_0x1296ce=this[_0x2c97f4(0x267)]?.[_0x2c97f4(0x270)];_0x1296ce&&(_0x1296ce[_0x2c97f4(0x2e8)](),this[_0x2c97f4(0x2b3)][_0x2c97f4(0x2af)](_0x1296ce));}async[_0x2c4a56(0x1e2)](){const _0x5444ff=_0x2c4a56,_0x4bb465=this[_0x5444ff(0x267)]?.[_0x5444ff(0x270)];if(_0x4bb465){for await(const _0x4b8f0d of _0x4bb465[_0x5444ff(0x2a7)])await this[_0x5444ff(0x28b)]({'reply':_0x4b8f0d,'changeGroups':_0x4b8f0d[_0x5444ff(0x2df)],'renderingStrategy':_0x5444ff(0x288)});}}[_0x2c4a56(0x276)](_0x398468){const _0x1aa8d0=_0x2c4a56,_0x3cde4d={'positiveCount':_0x398468[_0x1aa8d0(0x2df)][_0x1aa8d0(0x1f3)](_0xedf94a=>_0x1aa8d0(0x275)===_0xedf94a[_0x1aa8d0(0x26a)])[_0x1aa8d0(0x1f0)],'totalCount':_0x398468[_0x1aa8d0(0x2df)][_0x1aa8d0(0x1f0)]},_0x472ce9=this[_0x1aa8d0(0x267)][_0x1aa8d0(0x2fd)](_0x398468[_0x1aa8d0(0x1f9)])[_0x1aa8d0(0x1da)];this[_0x1aa8d0(0x1f2)][_0x1aa8d0(0x200)](this[_0x1aa8d0(0x267)]['id'],_0x472ce9,_0x3cde4d);}}function _0x5d6c(){const _0x288cf1=['AI_CHAT_GENERIC_ERROR','AI_CHAT_UNTITLED_CONVERSATION','upsertAIChatRating','setConversationTitle','baseVersion','88KasHXK','Liked\x20response','_batchToChanges','getInteractionAndReplyById','_previewedChangeGroup','partIndex','load','getGroupId','addFeedItemAIReply','cloneNode','updateCapabilities','sendMessage','replyContentUpdated','createPositionFromPath','ai-chat-missing-channel-id','_handleUIUserMessage','modification-delta','chat','alignToTop','isDisabled','data','loadConversation','323667VrWxWu','domConverter','enableControls','isCurrentDocumentInContext','ai-conversation-','listenTo','addFeedInteractionHeader','isUploadInProgress','applySuggestion','getMarkersGroup','capabilitiesUpdated','rejectSuggestion','addUrlToContext','7VFhjcX','492ZFeMwM','3533826iFgtdl','outdated','_scrollToSuggestionRange','updateCurrentDocumentInContext','addSelectionToContext','handleUserInteraction','batch','push','Showing\x20conversation\x20history...','updateContent','addResourceToContext','replyChangeGroupStateUpdated','afterInit','children','_handleStartConversation','start','interactionStarted','abortPromptStream','ai-chat-controller-mouse-over','log','slice','1296010FmCamu','map','isCurrentDocumentInConversation','reasoningStarted','insertSuggestion','AITabs','setFeedItemRenderingStrategy','requires','howMany','removeContextItem','dialogClosed','full','sourcePosition','ready','_removeFromContext','setIsUploadInProgress','AI_CHAT_CONTEXT_INVALID_DATA','ai-chat-resource-load-failed','ai-chat-conversation-start-failed','resetMessageInput','updateFeedItemAIReplySources','startsWith','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','_applyOperationsAsSuggestions','add','populateSourceResourceBalloon','_setIsMaximized','ai-chat-file-upload-failed','getDocumentData','documentContextContent','redo','resizeTabs','240275JlCiWR','_balloonShowDiff','clearPendingContextUI','setContextItemLoading','clearConversationContextUI','contextItem','text-delta','forEach','_integrateEditor','contextItemRemoved','activeConversation','activateTab','maxOffset','state','48580hVKHUg','AIConnector','DocumentCompare','ai-chat-source-resources-load-failed','has','lastInteraction','webSearchFinished','webSearchStarted','selection','createConversation','accepted','_updateRatings','resizedTabs','_openBalloonFor','set','setChangeGroupState','toggleReasoning','new','updateConversationTitle','264308dDsgrN','Disliked\x20response','_insertSuggestion','uiId','end','mouseLeaveSuggestion','locale','modelSelected','applyOperation','rejected','static','updateFeedItemAIReplySuggestionPartState','contextSent','_updateReplyContent','4uAFbti','getAttribute','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','ai-chat-controller-no-active-conversation','$graveyard','getFirstRange','AI_BALLOON_HEADER_TITLE','isStarted','unshift','_aiChatModels','collaboration.channelId','toggleSuggestionDisplayMode','sourceId','addOperation','message','toViewRange','query','removeMarker','change','ai-request-aborted','ai.chat.models.displayedModels','ai-chat-context-unsupported-type','3PogMVy','document','isInContext','resourceId','mapper','replies','getPath','_toggleReasoning','TrackChangesEditing','uploadProgressChanged','resize','range','toggleLoadingSkeleton','stopInteraction','marker','addFileToContext','removed','_aiChatUi','1087686kBWMBG','_toggleWebSearch','getReply','getTransformedByOperation','getSelectionText','type','showPrevious','closeSourceResourceBalloon','showNext','getDocumentContext','indexes','getRoot','markers','stopListening','view','config','dislike','resources','interactionCreated','remove','disableControls','history','Failed\x20to\x20load\x20conversation','isModelAvailable','options','parse','addContextItem','root','replyId','_removeAISelectionMarkers','AIChatController','showChangeInText','rootName','isOpen','open','AI_CHAT_UNABLE_TO_START_CONVERSATION','interactionFinished','isPremiumPlugin','viewRangeToDom','AI_CHAT_RESOURCE_LOAD_FAILED','showFakeVisualSelection','toString','addFilesToContext','changeGroups','contextItemAdded','getDiff','setConversationContext','plugins','_logError','close','version','ai-chat-conversation-init-failed','stop','addDocumentToContext','createRange','undo','isOfficialPlugin','mouseOverSuggestion','editors','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','isLoading','selectModel','_startConversationSafely','data-id','handleRemovedConversation','getChildAtOffset','resetConversationTitle','selectedModel','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','error','context','nextSibling','focusPromptInput','getInteraction','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','anchorId','AIEditing','sendUserMessage','finishInteraction','resource','addCurrentDocumentToContext','like','hideFakeVisualSelection','ai-chat-context-invalid-data','contextItemLoadingEnded','addSelectionToChatContext','commands','editing','get','changes','find','split','ai.chat.context','content','_applySuggestion','sources','pending','pluginName','path','reasoningFinished','updateResourceState','uid','updateFeedItemAIReplySuggestionContent','setLoadingMessage','setIsMaximized','AIChatUI','addFeedItemAISuggestion','current-document','loadSourceResources','resourceStateChanged','_stopLastInteraction','createPositionAt','removeFeedInteraction','revert','node','_aiEditing','addFeedItemError','addFeedItemStaticMessage','getRanges','_createFromRanges','toggleWebSearch','isDocumentOperation','AI_CHAT_ABORTED_MESSAGE','setModel','removeFromContext','setSelectedModel','streaming','messageId','ai-chat-url-upload-failed','Undo','conversationInitialized','startInteraction','removeSelectionFromChatContext','source','updateFeedItemAIReplyContent','_flushLastInteractionUI','indexOf','delete','init','replyCreated','main','_showConversationHistory','startConversation','from','setAddContextOptions','showDiff','getChild','removeSelectionFromContext','getChildren','length','interactionDestroyed','_aiConnector','filter','sourceResourcesLoaded','model','contextItems','addFeedItemUserMessage','scrollFeedToSuggestion','interactionId','ai.chat.models.defaultModelId','_getDocumentRangeForReplyChanges','getOperations','addContextOptionsChanged'];_0x5d6c=function(){return _0x288cf1;};return _0x5d6c();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x317f(_0xef0f69,_0x583454){const _0x5db964=_0x5db9();return _0x317f=function(_0x317fc5,_0x2b8f47){_0x317fc5=_0x317fc5-0x116;let _0x5537ce=_0x5db964[_0x317fc5];return _0x5537ce;},_0x317f(_0xef0f69,_0x583454);}const _0x15cfda=_0x317f;function _0x5db9(){const _0x111cca=['AITabs','removeContextItem','updateFeedItemAIReplySuggestionPartState','10uWkdBp','setSelectedModel','updateFeedInteractionHeader','scrollFeedToSuggestion','isTrackChangesOn','isVisible','2713945nILeYS','setModelList','bind','markFeedItemAsDone','destroy','139686cLzPnr','updateSuggestionItem','queueEmptyPromise','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','stopAutoScroll','enqueue','startAutoScroll','_view','populateSourceResourceBalloon','isReasoningEnabled','conversation-start','ai.availableReplyActions','_interactionPromiseResolver','isDone','<p>','addFeedItemAIReply','locale','closeSourceResourceBalloon','updateFeedItemAIReplySources','updateCapabilities','filter','updateFeedItemAIReplyContent','_titleAnimationInterval','requires','value','setFeedItemRenderingStrategy','interaction-header','AIChatUI','capabilities','isBusy','plugins','pluginName','view','removeFeedInteraction','showDiff','isWebSearchEnabled','setModel','clearConversationContextUI','clearPendingContextUI','chatFeed','stopInteraction','setIsUploadInProgress','values','isLoading','displayedPrompt','setReasoning','_promiseQueue','finishInteraction','resetMessageInput','toggleSuggestionDisplayMode','children','setAddContextOptions','5141277FiIwhV','addFeedInteractionHeader','addFeedItemUserMessage','updateWebSources','_animateConversationTitle','isMaximized','isOfficialPlugin','contextItems','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','delegate','disableControls','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','availableModels','322EXUyeM','ai-suggestion-reply','userMessage','chat','areActionsDisabled','61044wpLdtj','updateSuggestionPartState','quickActionData','startInteraction','setWebSearch','AI_CHAT_WELCOME_MESSAGE','label','addItem','chatControls','isPremiumPlugin','updateReplyItem','setConversationTitle','getItemIds','enableModelSelector','resetConversationTitle','6471960aViJsk','ai.chat.models.modelSelectorAlwaysVisible','addFeedItemAISuggestion','trackChanges','setInputPlaceholder','isPending','streaming','ai-reply','options','interactionId','config','feedItemRenderingStrategy','_getLoadingMessage','disableModelSelector','addContextItem','setConversationContext','createConversation','error-message','user-message','find','284790tPcakh','setIsMaximized','startsWith','set','_getInputPlaceholder','setContextItemLoading','updateFeedItemAIReplySuggestionContent','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','addTab','32GZoUVJ','context','get','1006118YGSnig','commands','showResizeButton','renderingStrategy','scrollToSuggestion','abort','</p>','removeItem','toggleLoadingSkeleton','addFeedItemStaticMessage','markItemAsDone','from','enableControls','isModelAvailable','forEach','setLoadingMessage','then','updateResourceState','length','clear','addFeedItemError','AI_CHAT_HEADING','_isTrackChangesCommandValueBound','chatHeader','focusPromptInput','remove','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','last','isDisabled'];_0x5db9=function(){return _0x111cca;};return _0x5db9();}(function(_0x28727a,_0xa60b2b){const _0x57eab4=_0x317f,_0x5c47eb=_0x28727a();while(!![]){try{const _0x4b6bed=parseInt(_0x57eab4(0x1a6))/0x1+parseInt(_0x57eab4(0x1b2))/0x2+-parseInt(_0x57eab4(0x13a))/0x3*(parseInt(_0x57eab4(0x1af))/0x4)+-parseInt(_0x57eab4(0x135))/0x5+-parseInt(_0x57eab4(0x183))/0x6*(-parseInt(_0x57eab4(0x17e))/0x7)+parseInt(_0x57eab4(0x192))/0x8+-parseInt(_0x57eab4(0x16e))/0x9*(parseInt(_0x57eab4(0x12f))/0xa);if(_0x4b6bed===_0xa60b2b)break;else _0x5c47eb['push'](_0x5c47eb['shift']());}catch(_0x56e4be){_0x5c47eb['push'](_0x5c47eb['shift']());}}}(_0x5db9,0x8d306));import{ContextPlugin as _0x11c542}from'ckeditor5/src/core.js';import{_isMotionReduced as _0xa24e23}from'ckeditor5/src/utils.js';import{AIChatView as _0x22f521}from'./ui/aichatview.js';import{AITabs as _0x450a79}from'../aitabs/aitabs.js';import{getTranslation as _0x32fc48}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x113774}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x195c52}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x3946a5}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x24869b}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x2c484e}from'../aicore/utils/geteditorfromcontext.js';export class AIChatUI extends _0x11c542{static get[_0x15cfda(0x151)](){return[_0x450a79];}[_0x15cfda(0x141)];static get[_0x15cfda(0x159)](){const _0xb031cf=_0x15cfda;return _0xb031cf(0x155);}static get[_0x15cfda(0x174)](){return!0x0;}static get[_0x15cfda(0x18c)](){return!0x0;}[_0x15cfda(0x19d)]=_0x15cfda(0x198);[_0x15cfda(0x15c)]=!0x0;[_0x15cfda(0x168)];[_0x15cfda(0x146)];[_0x15cfda(0x150)]=void 0x0;[_0x15cfda(0x125)]=!0x1;constructor(_0x246291){const _0x49aebd=_0x15cfda;super(_0x246291);const _0x10d043=this[_0x49aebd(0x1b0)][_0x49aebd(0x158)][_0x49aebd(0x1b1)](_0x49aebd(0x12c));this[_0x49aebd(0x1a9)](_0x49aebd(0x157),!0x1),this[_0x49aebd(0x168)]=new _0x3946a5(),this[_0x49aebd(0x141)]=new _0x22f521(this[_0x49aebd(0x1b0)][_0x49aebd(0x14a)],_0x10d043[_0x49aebd(0x1b4)]),this[_0x49aebd(0x141)][_0x49aebd(0x179)](..._0x24869b)['to'](this),this[_0x49aebd(0x141)]['on'](_0x49aebd(0x16b),(_0x4d5374,{showDiff:_0x6602f0})=>{const _0x4d34cf=_0x49aebd;this[_0x4d34cf(0x15c)]=_0x6602f0;}),_0x10d043[_0x49aebd(0x15a)][_0x49aebd(0x1ae)]({'id':_0x49aebd(0x181),'buttonLabel':_0x32fc48(this[_0x49aebd(0x1b0)][_0x49aebd(0x14a)],_0x49aebd(0x124)),'buttonIcon':_0x113774,'order':0x0,'content':this[_0x49aebd(0x141)]}),this[_0x49aebd(0x141)][_0x49aebd(0x18b)][_0x49aebd(0x137)](_0x49aebd(0x165))['to'](this,_0x49aebd(0x157),_0x2be6d8=>_0x2be6d8),this[_0x49aebd(0x141)][_0x49aebd(0x161)][_0x49aebd(0x137)](_0x49aebd(0x197))['to'](this,_0x49aebd(0x157),_0x20335e=>_0x20335e),this[_0x49aebd(0x141)][_0x49aebd(0x18b)][_0x49aebd(0x196)](this[_0x49aebd(0x1aa)]()),this[_0x49aebd(0x137)](_0x49aebd(0x11c))['to'](this[_0x49aebd(0x141)][_0x49aebd(0x18b)],_0x49aebd(0x11c));}[_0x15cfda(0x139)](){const _0x1588da=_0x15cfda;super[_0x1588da(0x139)](),this[_0x1588da(0x150)]&&clearInterval(this[_0x1588da(0x150)]);}[_0x15cfda(0x1a2)](_0xfbda63){const _0x41eab4=_0x15cfda;this[_0x41eab4(0x141)][_0x41eab4(0x161)][_0x41eab4(0x122)](),this[_0x41eab4(0x141)][_0x41eab4(0x18b)][_0x41eab4(0x190)](),this[_0x41eab4(0x141)][_0x41eab4(0x18b)][_0x41eab4(0x136)](_0xfbda63[_0x41eab4(0x17d)],!this[_0x41eab4(0x1b0)][_0x41eab4(0x19c)][_0x41eab4(0x1b1)](_0x41eab4(0x193))),this[_0x41eab4(0x118)]({'id':_0x41eab4(0x144),'staticMessage':_0x32fc48(this[_0x41eab4(0x1b0)][_0x41eab4(0x14a)],_0x41eab4(0x188))});}[_0x15cfda(0x118)]({id:_0x175d82,staticMessage:_0x21ad55}){const _0x272f75=_0x15cfda;this[_0x272f75(0x141)][_0x272f75(0x161)][_0x272f75(0x18a)](_0x272f75(0x199),{'id':_0x175d82,'initialContent':_0x272f75(0x148)+_0x21ad55+_0x272f75(0x1b8)});}[_0x15cfda(0x170)](_0x3893c8){const _0x9b0441=_0x15cfda,_0x2a5a27=_0x3893c8[_0x9b0441(0x185)]?.[_0x9b0441(0x166)]||_0x3893c8[_0x9b0441(0x180)];this[_0x9b0441(0x141)][_0x9b0441(0x161)][_0x9b0441(0x18a)](_0x9b0441(0x1a4),{'contextItems':Array[_0x9b0441(0x11a)](_0x3893c8[_0x9b0441(0x175)][_0x9b0441(0x164)]()),'initialContent':_0x9b0441(0x148)+_0x2a5a27+_0x9b0441(0x1b8),'id':_0x3893c8['id']});}[_0x15cfda(0x123)]({errorMessage:_0x5d80fe,id:_0x1c9591}){const _0x171ee5=_0x15cfda;this[_0x171ee5(0x141)][_0x171ee5(0x161)][_0x171ee5(0x18a)](_0x171ee5(0x1a3),{'initialContent':_0x171ee5(0x148)+_0x5d80fe+_0x171ee5(0x1b8),'id':_0x1c9591});}[_0x15cfda(0x149)](_0x4ca9d3){const _0x131732=_0x15cfda;return this[_0x131732(0x168)][_0x131732(0x13f)](async()=>{const _0x4cf073=_0x131732;this[_0x4cf073(0x141)][_0x4cf073(0x161)][_0x4cf073(0x18a)](_0x4cf073(0x199),{'id':_0x4ca9d3[_0x4cf073(0x19b)]+':'+_0x4ca9d3['id']}),this[_0x4cf073(0x11e)](null);});}async[_0x15cfda(0x194)](_0x8c28b3){const _0x1aa316=_0x15cfda,_0x4d599e=_0x2c484e(this[_0x1aa316(0x1b0)]);if(_0x4d599e){const _0x1b560c=_0x4d599e[_0x1aa316(0x1b3)][_0x1aa316(0x1b1)](_0x1aa316(0x195));_0x1b560c&&!this[_0x1aa316(0x125)]&&(this[_0x1aa316(0x125)]=!0x0,this[_0x1aa316(0x141)][_0x1aa316(0x161)][_0x1aa316(0x137)](_0x1aa316(0x133))['to'](_0x1b560c,_0x1aa316(0x152)));}return this[_0x1aa316(0x168)][_0x1aa316(0x13f)](async()=>{const _0x565e35=_0x1aa316;this[_0x565e35(0x141)][_0x565e35(0x161)][_0x565e35(0x18a)](_0x565e35(0x17f),{'id':_0x8c28b3[_0x565e35(0x19b)]+':'+_0x8c28b3['id'],'areActionsDisabled':_0x8c28b3[_0x565e35(0x182)],'showDiff':this[_0x565e35(0x15c)],'dropdownConfig':this[_0x565e35(0x1b0)][_0x565e35(0x19c)][_0x565e35(0x1b1)](_0x565e35(0x145))}),this[_0x565e35(0x11e)](null);});}[_0x15cfda(0x16f)](_0x4d3e17,_0x3537f6){const _0x14f7e4=_0x15cfda,_0xf8242d=this[_0x14f7e4(0x141)][_0x14f7e4(0x161)][_0x14f7e4(0x16c)][_0x14f7e4(0x12a)];if(_0xf8242d instanceof _0x195c52)return this[_0x14f7e4(0x141)][_0x14f7e4(0x161)][_0x14f7e4(0x16c)][_0x14f7e4(0x128)](_0xf8242d),void this[_0x14f7e4(0x141)][_0x14f7e4(0x161)][_0x14f7e4(0x18a)](_0x14f7e4(0x154),{'id':_0x4d3e17['id'],'capabilities':{'isWebSearchEnabled':_0xf8242d[_0x14f7e4(0x156)][_0x14f7e4(0x15d)]||_0x3537f6[_0x14f7e4(0x15d)],'isReasoningEnabled':_0xf8242d[_0x14f7e4(0x156)][_0x14f7e4(0x143)]||_0x3537f6[_0x14f7e4(0x143)]}});this[_0x14f7e4(0x141)][_0x14f7e4(0x161)][_0x14f7e4(0x18a)](_0x14f7e4(0x154),{'id':_0x4d3e17['id'],'capabilities':_0x3537f6});}[_0x15cfda(0x131)](_0x4a5f3c){const _0x5eb3b2=_0x15cfda,_0x2b861f=this[_0x5eb3b2(0x141)][_0x5eb3b2(0x161)][_0x5eb3b2(0x16c)][_0x5eb3b2(0x1a5)](_0x89edab=>_0x89edab[_0x5eb3b2(0x19a)]['id']==_0x4a5f3c['id']&&_0x89edab instanceof _0x195c52);_0x2b861f&&_0x2b861f[_0x5eb3b2(0x1a9)](_0x5eb3b2(0x134),_0x4a5f3c[_0x5eb3b2(0x134)]);}async[_0x15cfda(0x14f)](_0x3f821e){const _0x261e52=_0x15cfda,_0x3c56de=_0x3f821e[_0x261e52(0x1b5)]||this[_0x261e52(0x19d)];return this[_0x261e52(0x168)][_0x261e52(0x13f)](async _0x8b5679=>{const _0x20af09=_0x261e52;await this[_0x20af09(0x141)][_0x20af09(0x161)][_0x20af09(0x18d)]({..._0x3f821e,'abortSignal':_0x8b5679,'renderingStrategy':_0x3c56de}),_0x3f821e[_0x20af09(0x147)]&&this[_0x20af09(0x138)](_0x3f821e['id']);});}[_0x15cfda(0x14c)](_0x4d3e49,_0x39dbbf){const _0x4c4d40=_0x15cfda;this[_0x4c4d40(0x141)][_0x4c4d40(0x161)][_0x4c4d40(0x171)](_0x4d3e49,_0x39dbbf);}async[_0x15cfda(0x1ac)](_0xc0d0c2){const _0x105058=_0x15cfda,_0x53f90c=_0xc0d0c2[_0x105058(0x1b5)]||this[_0x105058(0x19d)];return this[_0x105058(0x168)][_0x105058(0x13f)](async _0x555da3=>{const _0x3d88e1=_0x105058;await this[_0x3d88e1(0x141)][_0x3d88e1(0x161)][_0x3d88e1(0x13b)]({..._0xc0d0c2,'abortSignal':_0x555da3,'renderingStrategy':_0x53f90c}),_0xc0d0c2[_0x3d88e1(0x147)]&&this[_0x3d88e1(0x138)](_0xc0d0c2['id']);});}[_0x15cfda(0x12e)](_0x51bc06){const _0x1103ea=_0x15cfda;this[_0x1103ea(0x141)][_0x1103ea(0x161)][_0x1103ea(0x184)](_0x51bc06);}[_0x15cfda(0x138)](_0x5dcd41){const _0xd148a9=_0x15cfda;this[_0xd148a9(0x141)][_0xd148a9(0x161)][_0xd148a9(0x119)](_0x5dcd41);}[_0x15cfda(0x15b)](_0x11867f){const _0x180523=_0x15cfda;this[_0x180523(0x141)][_0x180523(0x161)][_0x180523(0x18f)]()[_0x180523(0x14e)](_0x2839ee=>_0x2839ee[_0x180523(0x1a8)](_0x11867f))[_0x180523(0x11d)](_0x21a0d7=>this[_0x180523(0x141)][_0x180523(0x161)][_0x180523(0x116)](_0x21a0d7));}[_0x15cfda(0x186)](){const _0x2b247b=_0x15cfda;this[_0x2b247b(0x11e)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x2b247b(0x141)][_0x2b247b(0x18b)][_0x2b247b(0x19f)](!this[_0x2b247b(0x1b0)][_0x2b247b(0x19c)][_0x2b247b(0x1b1)](_0x2b247b(0x193))),this[_0x2b247b(0x157)]=!0x0,this[_0x2b247b(0x141)][_0x2b247b(0x161)][_0x2b247b(0x140)]();}[_0x15cfda(0x162)](_0x44925f){const _0x3041c6=_0x15cfda;this[_0x3041c6(0x168)][_0x3041c6(0x1b7)](),this[_0x3041c6(0x141)][_0x3041c6(0x161)][_0x3041c6(0x18f)]()[_0x3041c6(0x14e)](_0x48c56b=>_0x48c56b[_0x3041c6(0x1a8)](_0x44925f['id']))[_0x3041c6(0x11d)](_0x26f09d=>this[_0x3041c6(0x138)](_0x26f09d)),this[_0x3041c6(0x157)]=!0x1,this[_0x3041c6(0x141)][_0x3041c6(0x161)][_0x3041c6(0x13e)]();}async[_0x15cfda(0x169)](){const _0x41aa6e=_0x15cfda;return this[_0x41aa6e(0x168)][_0x41aa6e(0x13c)][_0x41aa6e(0x11f)](()=>{const _0x18c69e=_0x41aa6e;this[_0x18c69e(0x157)]=!0x1,this[_0x18c69e(0x141)][_0x18c69e(0x161)][_0x18c69e(0x13e)]();});}[_0x15cfda(0x1a0)](_0x2a84a7,_0x3ae6f8){const _0x34cfb6=_0x15cfda;this[_0x34cfb6(0x141)][_0x34cfb6(0x18b)][_0x34cfb6(0x1a0)](_0x2a84a7,_0x3ae6f8);}[_0x15cfda(0x12d)](_0xa521df){const _0x10d557=_0x15cfda;this[_0x10d557(0x141)][_0x10d557(0x18b)][_0x10d557(0x12d)](_0xa521df);}[_0x15cfda(0x1ab)](_0x207ee2,_0xf3d987){const _0x4ed670=_0x15cfda;this[_0x4ed670(0x141)][_0x4ed670(0x18b)][_0x4ed670(0x1ab)](_0x207ee2,_0xf3d987);}[_0x15cfda(0x163)](_0x4e738c){const _0x43b2c0=_0x15cfda;this[_0x43b2c0(0x141)][_0x43b2c0(0x18b)][_0x43b2c0(0x163)](_0x4e738c);}[_0x15cfda(0x1a1)](_0x3f23d4){const _0x58624d=_0x15cfda;this[_0x58624d(0x141)][_0x58624d(0x18b)][_0x58624d(0x1a1)](_0x3f23d4);}[_0x15cfda(0x160)](){const _0x44d10a=_0x15cfda;this[_0x44d10a(0x141)][_0x44d10a(0x18b)][_0x44d10a(0x160)]();}[_0x15cfda(0x15f)](){const _0x52db84=_0x15cfda;this[_0x52db84(0x141)][_0x52db84(0x18b)][_0x52db84(0x15f)]();}[_0x15cfda(0x120)](_0x4615ad,_0x402c6e,_0x43812b){const _0x42ba52=_0x15cfda;this[_0x42ba52(0x141)][_0x42ba52(0x18b)][_0x42ba52(0x120)](_0x4615ad,_0x402c6e,_0x43812b);}[_0x15cfda(0x16a)](){const _0x1729ae=_0x15cfda;this[_0x1729ae(0x141)][_0x1729ae(0x18b)][_0x1729ae(0x16a)](),this[_0x1729ae(0x141)][_0x1729ae(0x18b)][_0x1729ae(0x196)](this[_0x1729ae(0x1aa)]());}[_0x15cfda(0x16d)](_0x276ea0){const _0x341b26=_0x15cfda;this[_0x341b26(0x141)][_0x341b26(0x18b)][_0x341b26(0x16d)](_0x276ea0);}[_0x15cfda(0x14d)](_0x36397c){const _0x2fde9a=_0x15cfda;this[_0x2fde9a(0x141)][_0x2fde9a(0x18b)][_0x2fde9a(0x187)](_0x36397c[_0x2fde9a(0x15d)]),this[_0x2fde9a(0x141)][_0x2fde9a(0x18b)][_0x2fde9a(0x167)](_0x36397c[_0x2fde9a(0x143)]),this[_0x2fde9a(0x141)][_0x2fde9a(0x18b)][_0x2fde9a(0x196)](this[_0x2fde9a(0x1aa)](_0x36397c));}[_0x15cfda(0x130)](_0x2ab94f,_0x235410){const _0x2b791e=_0x15cfda;this[_0x2b791e(0x141)][_0x2b791e(0x18b)][_0x2b791e(0x15e)](_0x2ab94f),_0x235410&&this[_0x2b791e(0x141)][_0x2b791e(0x18b)][_0x2b791e(0x19f)](!0x1);}[_0x15cfda(0x153)](_0x31405e){const _0x436529=_0x15cfda;this[_0x436529(0x19d)]=_0x31405e;}[_0x15cfda(0x117)](_0x127464){const _0x48e618=_0x15cfda;this[_0x48e618(0x141)][_0x48e618(0x161)][_0x48e618(0x117)](_0x127464);}[_0x15cfda(0x191)](){const _0x5a7709=_0x15cfda;this[_0x5a7709(0x18e)](_0x32fc48(this[_0x5a7709(0x1b0)][_0x5a7709(0x14a)],_0x5a7709(0x124)));}[_0x15cfda(0x18e)](_0x68fcc2,_0x14f8ba=!0x1){const _0x347d61=_0x15cfda;if(_0x14f8ba&&!_0xa24e23()&&_0x68fcc2[_0x347d61(0x121)])return this[_0x347d61(0x141)][_0x347d61(0x126)][_0x347d61(0x189)]='',void this[_0x347d61(0x172)](_0x68fcc2);this[_0x347d61(0x141)][_0x347d61(0x126)][_0x347d61(0x189)]=_0x68fcc2;}[_0x15cfda(0x11e)](_0x1d44fb){const _0x306b32=_0x15cfda,_0x19bd25=this[_0x306b32(0x19e)](_0x1d44fb);this[_0x306b32(0x141)][_0x306b32(0x161)][_0x306b32(0x11e)](_0x19bd25);}[_0x15cfda(0x172)](_0x4ce9ff){const _0x1e90ac=_0x15cfda;let _0x247126=0x0;clearInterval(this[_0x1e90ac(0x150)]),this[_0x1e90ac(0x150)]=setInterval(()=>{const _0x4e4e11=_0x1e90ac;this[_0x4e4e11(0x141)][_0x4e4e11(0x126)][_0x4e4e11(0x189)]=this[_0x4e4e11(0x141)][_0x4e4e11(0x126)][_0x4e4e11(0x189)]+_0x4ce9ff[_0x247126],_0x247126++,_0x247126===_0x4ce9ff[_0x4e4e11(0x121)]&&clearInterval(this[_0x4e4e11(0x150)]);},0x1e);}[_0x15cfda(0x1a7)](_0x53f318){const _0x1d73b7=_0x15cfda;this[_0x1d73b7(0x141)][_0x1d73b7(0x126)][_0x1d73b7(0x173)]=_0x53f318;}[_0x15cfda(0x19e)](_0x585702){const _0x1b292a=_0x15cfda;return _0x585702?_0x585702[_0x1b292a(0x15d)]&&_0x585702[_0x1b292a(0x143)]?_0x32fc48(this[_0x1b292a(0x1b0)][_0x1b292a(0x14a)],_0x1b292a(0x1ad)):_0x585702[_0x1b292a(0x15d)]?_0x32fc48(this[_0x1b292a(0x1b0)][_0x1b292a(0x14a)],_0x1b292a(0x129)):_0x585702[_0x1b292a(0x143)]?_0x32fc48(this[_0x1b292a(0x1b0)][_0x1b292a(0x14a)],_0x1b292a(0x17b)):_0x32fc48(this[_0x1b292a(0x1b0)][_0x1b292a(0x14a)],_0x1b292a(0x178)):'';}[_0x15cfda(0x1aa)](_0x3eba0f){const _0x2cb4e1=_0x15cfda;return _0x3eba0f?_0x3eba0f[_0x2cb4e1(0x15d)]&&_0x3eba0f[_0x2cb4e1(0x143)]?_0x32fc48(this[_0x2cb4e1(0x1b0)][_0x2cb4e1(0x14a)],_0x2cb4e1(0x17c)):_0x3eba0f[_0x2cb4e1(0x15d)]?_0x32fc48(this[_0x2cb4e1(0x1b0)][_0x2cb4e1(0x14a)],_0x2cb4e1(0x177)):_0x3eba0f[_0x2cb4e1(0x143)]?_0x32fc48(this[_0x2cb4e1(0x1b0)][_0x2cb4e1(0x14a)],_0x2cb4e1(0x13d)):_0x32fc48(this[_0x2cb4e1(0x1b0)][_0x2cb4e1(0x14a)],_0x2cb4e1(0x176)):_0x32fc48(this[_0x2cb4e1(0x1b0)][_0x2cb4e1(0x14a)],_0x2cb4e1(0x176));}[_0x15cfda(0x142)](_0x4c7ebe,_0x50b580,_0x21f494,_0x5e7102){const _0x2c6fc7=_0x15cfda;this[_0x2c6fc7(0x141)][_0x2c6fc7(0x142)](_0x4c7ebe,_0x50b580,_0x21f494,_0x5e7102);}[_0x15cfda(0x14b)](_0x5cef41){const _0x2a2f10=_0x15cfda;this[_0x2a2f10(0x141)][_0x2a2f10(0x14b)](_0x5cef41);}[_0x15cfda(0x127)](){const _0x28380e=_0x15cfda;this[_0x28380e(0x141)][_0x28380e(0x18b)][_0x28380e(0x127)]();}[_0x15cfda(0x132)](_0x4474b5,_0x4400d1){const _0x2e0175=_0x15cfda;this[_0x2e0175(0x141)][_0x2e0175(0x161)][_0x2e0175(0x1b6)](_0x4474b5,_0x4400d1);}[_0x15cfda(0x17a)](){const _0x1c47c2=_0x15cfda;this[_0x1c47c2(0x141)][_0x1c47c2(0x18b)][_0x1c47c2(0x12b)]=!0x0;}[_0x15cfda(0x11b)](){const _0x361703=_0x15cfda;this[_0x361703(0x141)][_0x361703(0x18b)][_0x361703(0x12b)]=!0x1;}}
23
+ const _0xa384c0=_0x1b70;(function(_0x5e1099,_0x1a57a4){const _0xaa5233=_0x1b70,_0x3460ed=_0x5e1099();while(!![]){try{const _0x2872fc=parseInt(_0xaa5233(0x215))/0x1*(-parseInt(_0xaa5233(0x1d9))/0x2)+-parseInt(_0xaa5233(0x25f))/0x3+parseInt(_0xaa5233(0x230))/0x4*(parseInt(_0xaa5233(0x1df))/0x5)+-parseInt(_0xaa5233(0x212))/0x6+parseInt(_0xaa5233(0x1c5))/0x7+-parseInt(_0xaa5233(0x264))/0x8*(parseInt(_0xaa5233(0x205))/0x9)+-parseInt(_0xaa5233(0x242))/0xa*(-parseInt(_0xaa5233(0x1f8))/0xb);if(_0x2872fc===_0x1a57a4)break;else _0x3460ed['push'](_0x3460ed['shift']());}catch(_0x4b73c0){_0x3460ed['push'](_0x3460ed['shift']());}}}(_0x44f0,0xc146d));import{ContextPlugin as _0x3d32e1}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x461e7a}from'ckeditor5/src/utils.js';import{AIChatView as _0x20a1a8}from'./ui/aichatview.js';import{AITabs as _0x529d51}from'../aitabs/aitabs.js';import{getTranslation as _0x5aef7e}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x384bbe}from'ckeditor5/src/icons.js';function _0x44f0(){const _0x49e6c0=['startAutoScroll','setIsUploadInProgress','streaming','803224RXvybp','setSelectedModel','stopAutoScroll','isDone','stopInteraction','1489985OEcTbi','addFeedItemAISuggestion','updateFeedInteractionHeader','setIsMaximized','populateSourceResourceBalloon','ai-suggestion-reply','setModelList','plugins','pluginName','startsWith','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','conversation-start','length','updateFeedItemAIReplySuggestionPartState','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','feedItemRenderingStrategy','user-message','ai-reply','AIChatUI','AI_CHAT_WELCOME_MESSAGE','315346GORzZi','setModel','clearPendingContextUI','addTab','children','abort','145cgYAmh','setConversationTitle','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','_interactionPromiseResolver','interactionId','destroy','addItem','filter','availableModels','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','isMaximized','userMessage','isWebSearchEnabled','toggleSuggestionDisplayMode','addContextItem','setLoadingMessage','chatFeed','updateReplyItem','removeFeedInteraction','</p>','_animateConversationTitle','disableControls','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','quickActionData','markItemAsDone','11MokrTV','markFeedItemAsDone','updateFeedItemAIReplyContent','addFeedItemUserMessage','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','_getInputPlaceholder','_isTrackChangesCommandValueBound','resetConversationTitle','areActionsDisabled','then','_view','isVisible','setConversationContext','135cMhfVX','isOfficialPlugin','closeSourceResourceBalloon','showResizeButton','enableModelSelector','_titleAnimationInterval','removeItem','queueEmptyPromise','values','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','addFeedInteractionHeader','setReasoning','chat','3804132EVWPQG','config','getItemIds','1sQwXxq','addFeedItemAIReply','removeContextItem','updateSuggestionItem','startInteraction','_getLoadingMessage','scrollToSuggestion','showDiff','_promiseQueue','clearConversationContextUI','context','isModelAvailable','updateCapabilities','commands','enqueue','find','setContextItemLoading','setFeedItemRenderingStrategy','focusPromptInput','from','error-message','<p>','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','bind','enableControls','clear','isDisabled','118596EgaBVB','trackChanges','label','setInputPlaceholder','renderingStrategy','locale','AITabs','value','interaction-header','updateSuggestionPartState','set','toggleLoadingSkeleton','disableModelSelector','updateFeedItemAIReplySuggestionContent','createConversation','view','get','ai.availableReplyActions','22509230HzMwCS','setAddContextOptions','remove','updateResourceState','isLoading','updateFeedItemAIReplySources','delegate','requires','forEach','isBusy','last','options','chatControls','finishInteraction','setWebSearch','displayedPrompt','isPending','contextItems','isReasoningEnabled','chatHeader','scrollFeedToSuggestion','addFeedItemStaticMessage','AI_CHAT_HEADING','resetMessageInput','addFeedItemError','updateWebSources','capabilities','isTrackChangesOn','isPremiumPlugin','702594JByJUK','ai.chat.models.modelSelectorAlwaysVisible'];_0x44f0=function(){return _0x49e6c0;};return _0x44f0();}function _0x1b70(_0x199757,_0x8dbd43){const _0x44f0ee=_0x44f0();return _0x1b70=function(_0x1b70dc,_0x378e11){_0x1b70dc=_0x1b70dc-0x1c2;let _0x2a425b=_0x44f0ee[_0x1b70dc];return _0x2a425b;},_0x1b70(_0x199757,_0x8dbd43);}import{AIChatFeedInteractionHeaderView as _0x5d9f77}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x387e61}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3f54a5}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x19ab48}from'../aicore/utils/geteditorfromcontext.js';export class AIChatUI extends _0x3d32e1{static get[_0xa384c0(0x249)](){return[_0x529d51];}[_0xa384c0(0x202)];static get[_0xa384c0(0x1cd)](){const _0x36b7df=_0xa384c0;return _0x36b7df(0x1d7);}static get[_0xa384c0(0x206)](){return!0x0;}static get[_0xa384c0(0x25e)](){return!0x0;}[_0xa384c0(0x1d4)]=_0xa384c0(0x263);[_0xa384c0(0x21c)]=!0x0;[_0xa384c0(0x21d)];[_0xa384c0(0x1e2)];[_0xa384c0(0x20a)]=void 0x0;[_0xa384c0(0x1fe)]=!0x1;constructor(_0x3d71f0){const _0x516d30=_0xa384c0;super(_0x3d71f0);const _0x476ea5=this[_0x516d30(0x21f)][_0x516d30(0x1cc)][_0x516d30(0x240)](_0x516d30(0x236));this[_0x516d30(0x23a)](_0x516d30(0x24b),!0x1),this[_0x516d30(0x21d)]=new _0x387e61(),this[_0x516d30(0x202)]=new _0x20a1a8(this[_0x516d30(0x21f)][_0x516d30(0x235)],_0x476ea5[_0x516d30(0x208)]),this[_0x516d30(0x202)][_0x516d30(0x248)](..._0x3f54a5)['to'](this),this[_0x516d30(0x202)]['on'](_0x516d30(0x1ec),(_0xdffe85,{showDiff:_0x3abb0a})=>{const _0xcc08c5=_0x516d30;this[_0xcc08c5(0x21c)]=_0x3abb0a;}),_0x476ea5[_0x516d30(0x23f)][_0x516d30(0x1dc)]({'id':_0x516d30(0x211),'buttonLabel':_0x5aef7e(this[_0x516d30(0x21f)][_0x516d30(0x235)],_0x516d30(0x258)),'buttonIcon':_0x384bbe,'order':0x0,'content':this[_0x516d30(0x202)]}),this[_0x516d30(0x202)][_0x516d30(0x24e)][_0x516d30(0x22c)](_0x516d30(0x246))['to'](this,_0x516d30(0x24b),_0x9e7fc2=>_0x9e7fc2),this[_0x516d30(0x202)][_0x516d30(0x1ef)][_0x516d30(0x22c)](_0x516d30(0x252))['to'](this,_0x516d30(0x24b),_0x5ea0b9=>_0x5ea0b9),this[_0x516d30(0x202)][_0x516d30(0x24e)][_0x516d30(0x233)](this[_0x516d30(0x1fd)]()),this[_0x516d30(0x22c)](_0x516d30(0x220))['to'](this[_0x516d30(0x202)][_0x516d30(0x24e)],_0x516d30(0x220));}[_0xa384c0(0x1e4)](){const _0x53e3ca=_0xa384c0;super[_0x53e3ca(0x1e4)](),this[_0x53e3ca(0x20a)]&&clearInterval(this[_0x53e3ca(0x20a)]);}[_0xa384c0(0x23e)](_0x184093){const _0x4ea481=_0xa384c0;this[_0x4ea481(0x202)][_0x4ea481(0x1ef)][_0x4ea481(0x22e)](),this[_0x4ea481(0x202)][_0x4ea481(0x24e)][_0x4ea481(0x209)](),this[_0x4ea481(0x202)][_0x4ea481(0x24e)][_0x4ea481(0x1cb)](_0x184093[_0x4ea481(0x1e7)],!this[_0x4ea481(0x21f)][_0x4ea481(0x213)][_0x4ea481(0x240)](_0x4ea481(0x260))),this[_0x4ea481(0x257)]({'id':_0x4ea481(0x1d0),'staticMessage':_0x5aef7e(this[_0x4ea481(0x21f)][_0x4ea481(0x235)],_0x4ea481(0x1d8))});}[_0xa384c0(0x257)]({id:_0x33f49d,staticMessage:_0xb5e5ed}){const _0xbf7c67=_0xa384c0;this[_0xbf7c67(0x202)][_0xbf7c67(0x1ef)][_0xbf7c67(0x1e5)](_0xbf7c67(0x1d6),{'id':_0x33f49d,'initialContent':_0xbf7c67(0x22a)+_0xb5e5ed+_0xbf7c67(0x1f2)});}[_0xa384c0(0x1fb)](_0x310aec){const _0x493e93=_0xa384c0,_0x52879c=_0x310aec[_0x493e93(0x1f6)]?.[_0x493e93(0x251)]||_0x310aec[_0x493e93(0x1ea)];this[_0x493e93(0x202)][_0x493e93(0x1ef)][_0x493e93(0x1e5)](_0x493e93(0x1d5),{'contextItems':Array[_0x493e93(0x228)](_0x310aec[_0x493e93(0x253)][_0x493e93(0x20d)]()),'initialContent':_0x493e93(0x22a)+_0x52879c+_0x493e93(0x1f2),'id':_0x310aec['id']});}[_0xa384c0(0x25a)]({errorMessage:_0x3a8f6b,id:_0x26cdd5}){const _0x5e3760=_0xa384c0;this[_0x5e3760(0x202)][_0x5e3760(0x1ef)][_0x5e3760(0x1e5)](_0x5e3760(0x229),{'initialContent':_0x5e3760(0x22a)+_0x3a8f6b+_0x5e3760(0x1f2),'id':_0x26cdd5});}[_0xa384c0(0x216)](_0x1abcbf){const _0x4f7e8b=_0xa384c0;return this[_0x4f7e8b(0x21d)][_0x4f7e8b(0x223)](async()=>{const _0x268ece=_0x4f7e8b;this[_0x268ece(0x202)][_0x268ece(0x1ef)][_0x268ece(0x1e5)](_0x268ece(0x1d6),{'id':_0x1abcbf[_0x268ece(0x1e3)]+':'+_0x1abcbf['id']}),this[_0x268ece(0x1ee)](null);});}async[_0xa384c0(0x1c6)](_0x595ac5){const _0x157ef6=_0xa384c0,_0x946b8e=_0x19ab48(this[_0x157ef6(0x21f)]);if(_0x946b8e){const _0x413ab9=_0x946b8e[_0x157ef6(0x222)][_0x157ef6(0x240)](_0x157ef6(0x231));_0x413ab9&&!this[_0x157ef6(0x1fe)]&&(this[_0x157ef6(0x1fe)]=!0x0,this[_0x157ef6(0x202)][_0x157ef6(0x1ef)][_0x157ef6(0x22c)](_0x157ef6(0x25d))['to'](_0x413ab9,_0x157ef6(0x237)));}return this[_0x157ef6(0x21d)][_0x157ef6(0x223)](async()=>{const _0x15c6a3=_0x157ef6;this[_0x15c6a3(0x202)][_0x15c6a3(0x1ef)][_0x15c6a3(0x1e5)](_0x15c6a3(0x1ca),{'id':_0x595ac5[_0x15c6a3(0x1e3)]+':'+_0x595ac5['id'],'areActionsDisabled':_0x595ac5[_0x15c6a3(0x200)],'showDiff':this[_0x15c6a3(0x21c)],'dropdownConfig':this[_0x15c6a3(0x21f)][_0x15c6a3(0x213)][_0x15c6a3(0x240)](_0x15c6a3(0x241))}),this[_0x15c6a3(0x1ee)](null);});}[_0xa384c0(0x20f)](_0x3ed2a7,_0x39be7d){const _0xd05749=_0xa384c0,_0x35f6af=this[_0xd05749(0x202)][_0xd05749(0x1ef)][_0xd05749(0x1dd)][_0xd05749(0x24c)];if(_0x35f6af instanceof _0x5d9f77)return this[_0xd05749(0x202)][_0xd05749(0x1ef)][_0xd05749(0x1dd)][_0xd05749(0x244)](_0x35f6af),void this[_0xd05749(0x202)][_0xd05749(0x1ef)][_0xd05749(0x1e5)](_0xd05749(0x238),{'id':_0x3ed2a7['id'],'capabilities':{'isWebSearchEnabled':_0x35f6af[_0xd05749(0x25c)][_0xd05749(0x1eb)]||_0x39be7d[_0xd05749(0x1eb)],'isReasoningEnabled':_0x35f6af[_0xd05749(0x25c)][_0xd05749(0x254)]||_0x39be7d[_0xd05749(0x254)]}});this[_0xd05749(0x202)][_0xd05749(0x1ef)][_0xd05749(0x1e5)](_0xd05749(0x238),{'id':_0x3ed2a7['id'],'capabilities':_0x39be7d});}[_0xa384c0(0x1c7)](_0xf9a825){const _0x47a5bb=_0xa384c0,_0x35df38=this[_0x47a5bb(0x202)][_0x47a5bb(0x1ef)][_0x47a5bb(0x1dd)][_0x47a5bb(0x224)](_0x44c1b2=>_0x44c1b2[_0x47a5bb(0x24d)]['id']==_0xf9a825['id']&&_0x44c1b2 instanceof _0x5d9f77);_0x35df38&&_0x35df38[_0x47a5bb(0x23a)](_0x47a5bb(0x203),_0xf9a825[_0x47a5bb(0x203)]);}async[_0xa384c0(0x1fa)](_0x69e857){const _0x4bbec8=_0xa384c0,_0x536b7c=_0x69e857[_0x4bbec8(0x234)]||this[_0x4bbec8(0x1d4)];return this[_0x4bbec8(0x21d)][_0x4bbec8(0x223)](async _0x2ad151=>{const _0x464f22=_0x4bbec8;await this[_0x464f22(0x202)][_0x464f22(0x1ef)][_0x464f22(0x1f0)]({..._0x69e857,'abortSignal':_0x2ad151,'renderingStrategy':_0x536b7c}),_0x69e857[_0x464f22(0x1c3)]&&this[_0x464f22(0x1f9)](_0x69e857['id']);});}[_0xa384c0(0x247)](_0x1ee557,_0x557e35){const _0x5f2209=_0xa384c0;this[_0x5f2209(0x202)][_0x5f2209(0x1ef)][_0x5f2209(0x25b)](_0x1ee557,_0x557e35);}async[_0xa384c0(0x23d)](_0x45e9b5){const _0x405d04=_0xa384c0,_0x247857=_0x45e9b5[_0x405d04(0x234)]||this[_0x405d04(0x1d4)];return this[_0x405d04(0x21d)][_0x405d04(0x223)](async _0x1814eb=>{const _0x35f168=_0x405d04;await this[_0x35f168(0x202)][_0x35f168(0x1ef)][_0x35f168(0x218)]({..._0x45e9b5,'abortSignal':_0x1814eb,'renderingStrategy':_0x247857}),_0x45e9b5[_0x35f168(0x1c3)]&&this[_0x35f168(0x1f9)](_0x45e9b5['id']);});}[_0xa384c0(0x1d2)](_0x5bfa12){const _0x530ae1=_0xa384c0;this[_0x530ae1(0x202)][_0x530ae1(0x1ef)][_0x530ae1(0x239)](_0x5bfa12);}[_0xa384c0(0x1f9)](_0x15aae8){const _0x1e5879=_0xa384c0;this[_0x1e5879(0x202)][_0x1e5879(0x1ef)][_0x1e5879(0x1f7)](_0x15aae8);}[_0xa384c0(0x1f1)](_0x2b9361){const _0x591596=_0xa384c0;this[_0x591596(0x202)][_0x591596(0x1ef)][_0x591596(0x214)]()[_0x591596(0x1e6)](_0x2700d1=>_0x2700d1[_0x591596(0x1ce)](_0x2b9361))[_0x591596(0x24a)](_0x5478e6=>this[_0x591596(0x202)][_0x591596(0x1ef)][_0x591596(0x20b)](_0x5478e6));}[_0xa384c0(0x219)](){const _0x2f9f6e=_0xa384c0;this[_0x2f9f6e(0x1ee)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x2f9f6e(0x202)][_0x2f9f6e(0x24e)][_0x2f9f6e(0x23c)](!this[_0x2f9f6e(0x21f)][_0x2f9f6e(0x213)][_0x2f9f6e(0x240)](_0x2f9f6e(0x260))),this[_0x2f9f6e(0x24b)]=!0x0,this[_0x2f9f6e(0x202)][_0x2f9f6e(0x1ef)][_0x2f9f6e(0x261)]();}[_0xa384c0(0x1c4)](_0x5145c2){const _0x49a667=_0xa384c0;this[_0x49a667(0x21d)][_0x49a667(0x1de)](),this[_0x49a667(0x202)][_0x49a667(0x1ef)][_0x49a667(0x214)]()[_0x49a667(0x1e6)](_0x547947=>_0x547947[_0x49a667(0x1ce)](_0x5145c2['id']))[_0x49a667(0x24a)](_0x5d3266=>this[_0x49a667(0x1f9)](_0x5d3266)),this[_0x49a667(0x24b)]=!0x1,this[_0x49a667(0x202)][_0x49a667(0x1ef)][_0x49a667(0x1c2)]();}async[_0xa384c0(0x24f)](){const _0x49deba=_0xa384c0;return this[_0x49deba(0x21d)][_0x49deba(0x20c)][_0x49deba(0x201)](()=>{const _0x5763e3=_0x49deba;this[_0x5763e3(0x24b)]=!0x1,this[_0x5763e3(0x202)][_0x5763e3(0x1ef)][_0x5763e3(0x1c2)]();});}[_0xa384c0(0x1ed)](_0x5b26cd,_0x1475ed){const _0x337758=_0xa384c0;this[_0x337758(0x202)][_0x337758(0x24e)][_0x337758(0x1ed)](_0x5b26cd,_0x1475ed);}[_0xa384c0(0x217)](_0x2c1c0d){const _0xef920=_0xa384c0;this[_0xef920(0x202)][_0xef920(0x24e)][_0xef920(0x217)](_0x2c1c0d);}[_0xa384c0(0x225)](_0x5e8c7d,_0x1c90bd){const _0x527044=_0xa384c0;this[_0x527044(0x202)][_0x527044(0x24e)][_0x527044(0x225)](_0x5e8c7d,_0x1c90bd);}[_0xa384c0(0x262)](_0xafb41d){const _0x129391=_0xa384c0;this[_0x129391(0x202)][_0x129391(0x24e)][_0x129391(0x262)](_0xafb41d);}[_0xa384c0(0x204)](_0x5cb66f){const _0x50198d=_0xa384c0;this[_0x50198d(0x202)][_0x50198d(0x24e)][_0x50198d(0x204)](_0x5cb66f);}[_0xa384c0(0x1db)](){const _0x2a9c5f=_0xa384c0;this[_0x2a9c5f(0x202)][_0x2a9c5f(0x24e)][_0x2a9c5f(0x1db)]();}[_0xa384c0(0x21e)](){const _0x494b68=_0xa384c0;this[_0x494b68(0x202)][_0x494b68(0x24e)][_0x494b68(0x21e)]();}[_0xa384c0(0x245)](_0x294a49,_0xb3402d,_0x3e9572){const _0x5a5a9a=_0xa384c0;this[_0x5a5a9a(0x202)][_0x5a5a9a(0x24e)][_0x5a5a9a(0x245)](_0x294a49,_0xb3402d,_0x3e9572);}[_0xa384c0(0x259)](){const _0x11a8db=_0xa384c0;this[_0x11a8db(0x202)][_0x11a8db(0x24e)][_0x11a8db(0x259)](),this[_0x11a8db(0x202)][_0x11a8db(0x24e)][_0x11a8db(0x233)](this[_0x11a8db(0x1fd)]());}[_0xa384c0(0x243)](_0x1b5a1d){const _0x1fbecc=_0xa384c0;this[_0x1fbecc(0x202)][_0x1fbecc(0x24e)][_0x1fbecc(0x243)](_0x1b5a1d);}[_0xa384c0(0x221)](_0x3cfdae){const _0x1383d3=_0xa384c0;this[_0x1383d3(0x202)][_0x1383d3(0x24e)][_0x1383d3(0x250)](_0x3cfdae[_0x1383d3(0x1eb)]),this[_0x1383d3(0x202)][_0x1383d3(0x24e)][_0x1383d3(0x210)](_0x3cfdae[_0x1383d3(0x254)]),this[_0x1383d3(0x202)][_0x1383d3(0x24e)][_0x1383d3(0x233)](this[_0x1383d3(0x1fd)](_0x3cfdae));}[_0xa384c0(0x265)](_0x4d1cc5,_0x2442cb){const _0x5e2a15=_0xa384c0;this[_0x5e2a15(0x202)][_0x5e2a15(0x24e)][_0x5e2a15(0x1da)](_0x4d1cc5),_0x2442cb&&this[_0x5e2a15(0x202)][_0x5e2a15(0x24e)][_0x5e2a15(0x23c)](!0x1);}[_0xa384c0(0x226)](_0x11eb77){const _0x5be38d=_0xa384c0;this[_0x5be38d(0x1d4)]=_0x11eb77;}[_0xa384c0(0x23b)](_0x4d5c20){const _0xa38563=_0xa384c0;this[_0xa38563(0x202)][_0xa38563(0x1ef)][_0xa38563(0x23b)](_0x4d5c20);}[_0xa384c0(0x1ff)](){const _0x553e2e=_0xa384c0;this[_0x553e2e(0x1e0)](_0x5aef7e(this[_0x553e2e(0x21f)][_0x553e2e(0x235)],_0x553e2e(0x258)));}[_0xa384c0(0x1e0)](_0x1dcf48,_0x4acaa6=!0x1){const _0x4424f5=_0xa384c0;if(_0x4acaa6&&!_0x461e7a()&&_0x1dcf48[_0x4424f5(0x1d1)])return this[_0x4424f5(0x202)][_0x4424f5(0x255)][_0x4424f5(0x232)]='',void this[_0x4424f5(0x1f3)](_0x1dcf48);this[_0x4424f5(0x202)][_0x4424f5(0x255)][_0x4424f5(0x232)]=_0x1dcf48;}[_0xa384c0(0x1ee)](_0x1bdc0c){const _0x325507=_0xa384c0,_0x389615=this[_0x325507(0x21a)](_0x1bdc0c);this[_0x325507(0x202)][_0x325507(0x1ef)][_0x325507(0x1ee)](_0x389615);}[_0xa384c0(0x1f3)](_0x3d6976){const _0x3f3dc0=_0xa384c0;let _0x5bc9f5=0x0;clearInterval(this[_0x3f3dc0(0x20a)]),this[_0x3f3dc0(0x20a)]=setInterval(()=>{const _0x37dbcf=_0x3f3dc0;this[_0x37dbcf(0x202)][_0x37dbcf(0x255)][_0x37dbcf(0x232)]=this[_0x37dbcf(0x202)][_0x37dbcf(0x255)][_0x37dbcf(0x232)]+_0x3d6976[_0x5bc9f5],_0x5bc9f5++,_0x5bc9f5===_0x3d6976[_0x37dbcf(0x1d1)]&&clearInterval(this[_0x37dbcf(0x20a)]);},0x1e);}[_0xa384c0(0x1c8)](_0x3fd256){const _0x414b36=_0xa384c0;this[_0x414b36(0x202)][_0x414b36(0x255)][_0x414b36(0x1e9)]=_0x3fd256;}[_0xa384c0(0x21a)](_0x2727c5){const _0x4eb208=_0xa384c0;return _0x2727c5?_0x2727c5[_0x4eb208(0x1eb)]&&_0x2727c5[_0x4eb208(0x254)]?_0x5aef7e(this[_0x4eb208(0x21f)][_0x4eb208(0x235)],_0x4eb208(0x20e)):_0x2727c5[_0x4eb208(0x1eb)]?_0x5aef7e(this[_0x4eb208(0x21f)][_0x4eb208(0x235)],_0x4eb208(0x1cf)):_0x2727c5[_0x4eb208(0x254)]?_0x5aef7e(this[_0x4eb208(0x21f)][_0x4eb208(0x235)],_0x4eb208(0x1f5)):_0x5aef7e(this[_0x4eb208(0x21f)][_0x4eb208(0x235)],_0x4eb208(0x1e1)):'';}[_0xa384c0(0x1fd)](_0x2c4955){const _0x51280c=_0xa384c0;return _0x2c4955?_0x2c4955[_0x51280c(0x1eb)]&&_0x2c4955[_0x51280c(0x254)]?_0x5aef7e(this[_0x51280c(0x21f)][_0x51280c(0x235)],_0x51280c(0x1d3)):_0x2c4955[_0x51280c(0x1eb)]?_0x5aef7e(this[_0x51280c(0x21f)][_0x51280c(0x235)],_0x51280c(0x22b)):_0x2c4955[_0x51280c(0x254)]?_0x5aef7e(this[_0x51280c(0x21f)][_0x51280c(0x235)],_0x51280c(0x1fc)):_0x5aef7e(this[_0x51280c(0x21f)][_0x51280c(0x235)],_0x51280c(0x1e8)):_0x5aef7e(this[_0x51280c(0x21f)][_0x51280c(0x235)],_0x51280c(0x1e8));}[_0xa384c0(0x1c9)](_0x4b5db7,_0x515ef0,_0x5cb129,_0x51fd7c){const _0x4af56e=_0xa384c0;this[_0x4af56e(0x202)][_0x4af56e(0x1c9)](_0x4b5db7,_0x515ef0,_0x5cb129,_0x51fd7c);}[_0xa384c0(0x207)](_0x53350b){const _0x5cc757=_0xa384c0;this[_0x5cc757(0x202)][_0x5cc757(0x207)](_0x53350b);}[_0xa384c0(0x227)](){const _0xd1abf6=_0xa384c0;this[_0xd1abf6(0x202)][_0xd1abf6(0x24e)][_0xd1abf6(0x227)]();}[_0xa384c0(0x256)](_0x25c9e2,_0x16b46e){const _0x204a90=_0xa384c0;this[_0x204a90(0x202)][_0x204a90(0x1ef)][_0x204a90(0x21b)](_0x25c9e2,_0x16b46e);}[_0xa384c0(0x1f4)](){const _0x51bcad=_0xa384c0;this[_0x51bcad(0x202)][_0x51bcad(0x24e)][_0x51bcad(0x22f)]=!0x0;}[_0xa384c0(0x22d)](){const _0x1e12df=_0xa384c0;this[_0x1e12df(0x202)][_0x1e12df(0x24e)][_0x1e12df(0x22f)]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b8728=_0x4c05;(function(_0x1520cc,_0x1634df){const _0x3229c2=_0x4c05,_0x461b20=_0x1520cc();while(!![]){try{const _0x495839=-parseInt(_0x3229c2(0x17a))/0x1*(-parseInt(_0x3229c2(0x16f))/0x2)+-parseInt(_0x3229c2(0x171))/0x3*(-parseInt(_0x3229c2(0x125))/0x4)+parseInt(_0x3229c2(0x12c))/0x5+parseInt(_0x3229c2(0x15f))/0x6*(parseInt(_0x3229c2(0x139))/0x7)+parseInt(_0x3229c2(0x147))/0x8+parseInt(_0x3229c2(0x1a4))/0x9*(parseInt(_0x3229c2(0x178))/0xa)+-parseInt(_0x3229c2(0x143))/0xb*(parseInt(_0x3229c2(0x154))/0xc);if(_0x495839===_0x1634df)break;else _0x461b20['push'](_0x461b20['shift']());}catch(_0xaf8eff){_0x461b20['push'](_0x461b20['shift']());}}}(_0x20bc,0xad9a7));import{CKEditorError as _0xbb59fd,ObservableMixin as _0x22106e,uid as _0x4791d7}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x39495c,AIContextTextResourceType as _0x2ec68a}from'../../aicore/model/aicontext.js';function _0x4c05(_0x5b26f2,_0x33b652){const _0x20bc90=_0x20bc();return _0x4c05=function(_0x4c0586,_0x12de5f){_0x4c0586=_0x4c0586-0x11c;let _0x2b0d82=_0x20bc90[_0x4c0586];return _0x2b0d82;},_0x4c05(_0x5b26f2,_0x33b652);}import{escape as _0x4554ef}from'es-toolkit/compat';function _0x20bc(){const _0x15fc53=['_toggleAddCurrentDocumentOptionVisibility','_ownerId','SELECTION','4776324ZBSACa','data','isInContext','values','abort','TEXT','stack','resourceStateChanged','mapContextItemsToRequestData','sources','1499003mPmccu','find','from','_createContextItemFromContent','11095024VHhmch','set','init','getId','uploadProgressChanged','addResourceToContext','enabled','_startUploadOperation','size','_finishUploadOperation','_convertTextResourceToFile','sessionId','label','444GYfmdP','attributes','_addContextOptionsState','getDocument','ai-chat-resource-no-data','_addContextItem','isCurrentDocumentInContext','push','message','text/html','_addToConversationContextItem','6zMevxS','FILE','isHidden','all','current-document','_updateResourceInContextState','object\x20with\x20content\x20and\x20type\x20properties','ai-request-aborted','abortController','text/plain','selection','error','addContextOptionsChanged','url-','forEach','uploadUrl','26PCskyy','uploadFile','4809iktGwX','URL','name','_isResourceInContext','files','urls','contextItemRemoved','10nqzRGy','contextSent','52471JDdJrg','_findSourceIdsByResourceId','contextItemAdded','_config','MARKDOWN','_removeContextItem','removeFromContext','object','resources','File','isReadOnly','ai-chat-resource-load-failed','url','uploadDocument','sourceResourcesLoaded','length','isCurrentDocumentInConversation','ai-chat-file-upload-failed','uiId','get','loadSourceResources','has','removeSelectionFromContext','_conversationContextItems','getSentContextItems','filter','_pendingContextItems','_setAddContextOptionsDefaultState','addFilesToContext','ai-chat-source-resources-load-failed','contextItemLoadingEnded','Current\x20document','files-','_connector','version','getResources','resourceId','ai-chat-url-upload-failed','getData','clearPendingContextItems','DOCUMENT','document','5496669JFoBgh','fetchDocument','_ongoingUploads','file-','ai-chat-source-not-found','isSelectionInContext','delete','_finishContextItemLoading','_getCustomSourcesInitialState','addSelectionToContext','addCurrentDocumentToContext','hidden','ai-chat-context-invalid-data','string','_ongoingUploadOperations','populateFromMessage','end','2644EebzFe','addToConversationContext','getPendingContextItems','updateCurrentDocument','map','startsWith','type','6657615YhdJPI','content','addUrlToContext','ai-chat-context-unsupported-type','ai-chat-document-upload-failed','fire','_mapContextItemToRequestData','text/markdown','HTML','start'];_0x20bc=function(){return _0x15fc53;};return _0x20bc();}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x1b8728(0x17c),_0x1b8728(0x177),_0x1b8728(0x198),_0x1b8728(0x179),_0x1b8728(0x16a),_0x1b8728(0x16b),_0x1b8728(0x188),_0x1b8728(0x140),_0x1b8728(0x14b)];export class AIChatContext extends _0x22106e(){[_0x1b8728(0x19b)];[_0x1b8728(0x17d)];[_0x1b8728(0x137)];constructor({connector:_0x21ac7e,config:_0x65a409,ownerId:_0x363ac6}){const _0x20b2b2=_0x1b8728;super(),this[_0x20b2b2(0x19b)]=_0x21ac7e,this[_0x20b2b2(0x17d)]=_0x65a409,this[_0x20b2b2(0x137)]=_0x363ac6;}[_0x1b8728(0x149)](){const _0x27149e=_0x1b8728;this[_0x27149e(0x194)]=new Map(),this[_0x27149e(0x191)]=new Map(),this[_0x27149e(0x1a6)]=new Map(),this[_0x27149e(0x122)]=new Map(),this[_0x27149e(0x195)]();}[_0x1b8728(0x127)](){const _0x372e11=_0x1b8728;return this[_0x372e11(0x194)];}async[_0x1b8728(0x123)](_0x5b01ff){const _0x452922=_0x1b8728,_0xcfe53d=await this[_0x452922(0x146)](_0x5b01ff);return this[_0x452922(0x15e)](_0xcfe53d),_0x452922(0x163)===_0xcfe53d[_0x452922(0x18c)]&&this[_0x452922(0x136)](),_0xcfe53d;}async[_0x1b8728(0x146)](_0x497c9f){const _0x52b6d6=_0x1b8728;if(_0x497c9f[_0x52b6d6(0x12b)]===_0x39495c[_0x52b6d6(0x1a2)]){const _0x59c0db=await this[_0x52b6d6(0x19b)][_0x52b6d6(0x1a5)](this[_0x52b6d6(0x137)],_0x497c9f['id'])[_0x52b6d6(0x157)]();return{'id':_0x52b6d6(0x163),'uiId':_0x52b6d6(0x163),'label':_0x52b6d6(0x199),'type':_0x497c9f[_0x52b6d6(0x12b)],'content':_0x59c0db[_0x52b6d6(0x12d)],'hidden':this[_0x52b6d6(0x191)][_0x52b6d6(0x18f)](_0x52b6d6(0x163)),'version':_0x59c0db[_0x52b6d6(0x155)]?.[_0x52b6d6(0x19c)],'sessionId':_0x59c0db[_0x52b6d6(0x155)]?.[_0x52b6d6(0x152)]};}return{'id':_0x497c9f['id'],'uiId':_0x497c9f['id'],'label':_0x497c9f[_0x52b6d6(0x155)]?.[_0x52b6d6(0x153)]||_0x497c9f[_0x52b6d6(0x173)]||_0x497c9f[_0x52b6d6(0x186)]||_0x497c9f['id'],'type':_0x497c9f[_0x52b6d6(0x12b)],..._0x497c9f?.[_0x52b6d6(0x155)]?.[_0x52b6d6(0x19e)]?{'resourceId':_0x497c9f[_0x52b6d6(0x155)]?.[_0x52b6d6(0x19e)]}:{}};}[_0x1b8728(0x192)](){const _0x38af96=_0x1b8728;return new Map(this[_0x38af96(0x191)]);}[_0x1b8728(0x180)](_0x4444e0){const _0x1c7b50=_0x1b8728,_0x147dc1=this[_0x1c7b50(0x194)][_0x1c7b50(0x18d)](_0x4444e0);_0x147dc1?.[_0x1c7b50(0x184)]||this[_0x1c7b50(0x17f)](_0x4444e0);}[_0x1b8728(0x1a1)](){const _0x22a40e=_0x1b8728;if(0x0===this[_0x22a40e(0x194)][_0x22a40e(0x14f)])return;for(const _0x37347a of this[_0x22a40e(0x194)][_0x22a40e(0x13c)]())this[_0x22a40e(0x17f)](_0x37347a[_0x22a40e(0x18c)]);const _0xf090d0=this[_0x22a40e(0x191)][_0x22a40e(0x18d)](_0x22a40e(0x163))||this[_0x22a40e(0x194)][_0x22a40e(0x18d)](_0x22a40e(0x163));_0xf090d0&&this[_0x22a40e(0x159)]({..._0xf090d0,'isReadOnly':!0x0,'hidden':!0x0});}[_0x1b8728(0x126)](_0xada9b5){const _0x391174=_0x1b8728;for(const _0x1ed949 of _0xada9b5[_0x391174(0x13c)]())this[_0x391174(0x15e)](_0x1ed949);this[_0x391174(0x1a1)](),this[_0x391174(0x131)](_0x391174(0x179),{'contextItems':Array[_0x391174(0x145)](this[_0x391174(0x192)]()[_0x391174(0x13c)]())});}[_0x1b8728(0x15a)](){const _0x13ebab=_0x1b8728;return this[_0x13ebab(0x194)][_0x13ebab(0x18f)](_0x13ebab(0x163));}[_0x1b8728(0x1a9)](){const _0x3bd714=_0x1b8728;return this[_0x3bd714(0x194)][_0x3bd714(0x18f)](_0x3bd714(0x169));}[_0x1b8728(0x18a)](){const _0x42cb64=_0x1b8728;return this[_0x42cb64(0x191)][_0x42cb64(0x18f)](_0x42cb64(0x163));}static[_0x1b8728(0x141)](_0x2f7f97){const _0x3a56d7=_0x1b8728;return Array[_0x3a56d7(0x145)](_0x2f7f97[_0x3a56d7(0x13c)]())[_0x3a56d7(0x129)](_0x17c79e=>this[_0x3a56d7(0x132)](_0x17c79e))[_0x3a56d7(0x193)](_0xf3b229=>null!==_0xf3b229);}async[_0x1b8728(0x196)](_0x1ca516,_0x37bae9,_0x3866e4=_0x39495c[_0x1b8728(0x160)]){const _0x45ee5c=_0x1b8728,_0x484ec4=_0x45ee5c(0x19a)+_0x4791d7();this[_0x45ee5c(0x14e)](_0x484ec4);try{await Promise[_0x45ee5c(0x162)](_0x1ca516[_0x45ee5c(0x129)](async _0x215d90=>{const _0x5c77b4=_0x45ee5c,_0x5e97e6=_0x5c77b4(0x1a7)+_0x4791d7(),_0x2a0e11=_0x4554ef(_0x215d90[_0x5c77b4(0x173)]);try{this[_0x5c77b4(0x159)]({'type':_0x3866e4,'label':_0x37bae9?.[_0x5c77b4(0x153)]||_0x2a0e11,'uiId':_0x5e97e6,'resourceId':_0x37bae9?.[_0x5c77b4(0x19e)]},!0x0);const _0x3d2cf8=this[_0x5c77b4(0x19b)][_0x5c77b4(0x170)](this[_0x5c77b4(0x137)],_0x215d90,_0x37bae9);this[_0x5c77b4(0x1a6)][_0x5c77b4(0x148)](_0x5e97e6,_0x3d2cf8[_0x5c77b4(0x167)]);const {id:_0x2020b7}=await _0x3d2cf8[_0x5c77b4(0x14a)]();this[_0x5c77b4(0x1a6)][_0x5c77b4(0x1aa)](_0x5e97e6),this[_0x5c77b4(0x1ab)]({'type':_0x3866e4,'id':_0x2020b7,'label':_0x37bae9?.[_0x5c77b4(0x153)]||_0x2a0e11,'uiId':_0x5e97e6,'resourceId':_0x37bae9?.[_0x5c77b4(0x19e)]},!0x1);}catch(_0x5b86f8){this[_0x5c77b4(0x1a6)][_0x5c77b4(0x1aa)](_0x5e97e6);if(!_0x5b86f8[_0x5c77b4(0x15c)][_0x5c77b4(0x12a)](_0x5c77b4(0x166))){const _0x52874a=new _0xbb59fd(_0x5c77b4(0x18b),null,{'fileName':_0x2a0e11});_0x52874a[_0x5c77b4(0x13f)]=_0x5b86f8[_0x5c77b4(0x13f)],this[_0x5c77b4(0x131)](_0x5c77b4(0x16a),{'error':_0x52874a,'fileName':_0x2a0e11});}this[_0x5c77b4(0x17f)](_0x5e97e6);}}));}finally{this[_0x45ee5c(0x150)](_0x484ec4);}}[_0x1b8728(0x11e)](_0x14121b){const _0x380d8e=_0x1b8728;if(this[_0x380d8e(0x15a)]())return;const _0xcc512f={'type':_0x39495c[_0x380d8e(0x1a2)],'uiId':_0x380d8e(0x163),'label':_0x14121b,'isReadOnly':this[_0x380d8e(0x191)][_0x380d8e(0x18f)](_0x380d8e(0x163)),'hidden':this[_0x380d8e(0x191)][_0x380d8e(0x18f)](_0x380d8e(0x163))};this[_0x380d8e(0x159)](_0xcc512f);}async[_0x1b8728(0x128)](_0x441cb9,_0x52b9ed,_0x12dedc,_0x5d4bca){const _0x4471a1=_0x1b8728,_0x1733ae=this[_0x4471a1(0x194)][_0x4471a1(0x18d)](_0x4471a1(0x163));if(_0x1733ae&&_0x441cb9){_0x1733ae[_0x4471a1(0x169)]=_0x5d4bca?_0x5d4bca[_0x4471a1(0x129)](_0xa2634b=>({'start':_0xa2634b[_0x4471a1(0x135)],'end':_0xa2634b[_0x4471a1(0x124)]})):[];try{if(_0x1733ae[_0x4471a1(0x19c)]===_0x52b9ed)return;const {id:_0x52e179}=await this[_0x4471a1(0x19b)][_0x4471a1(0x187)](this[_0x4471a1(0x137)],_0x441cb9,{'version':_0x52b9ed,'sessionId':_0x12dedc})[_0x4471a1(0x14a)]();_0x1733ae['id']=_0x52e179,_0x1733ae[_0x4471a1(0x12d)]=_0x441cb9,_0x1733ae[_0x4471a1(0x19c)]=_0x52b9ed,_0x1733ae[_0x4471a1(0x152)]=_0x12dedc;}catch(_0x3436c1){const _0x7f29ee=new _0xbb59fd(_0x4471a1(0x130),null);_0x7f29ee[_0x4471a1(0x13f)]=_0x3436c1[_0x4471a1(0x13f)],this[_0x4471a1(0x131)](_0x4471a1(0x16a),{'error':_0x7f29ee});}}}[_0x1b8728(0x11d)](_0x1bb30f){const _0x189976=_0x1b8728;this[_0x189976(0x159)]({'type':_0x39495c[_0x189976(0x138)],'label':_0x1bb30f,'uiId':_0x189976(0x169),'content':_0x1bb30f});}[_0x1b8728(0x190)](){const _0xc63a50=_0x1b8728;this[_0xc63a50(0x17f)](_0xc63a50(0x169));}async[_0x1b8728(0x12e)](_0x3ea734,_0x1b9bd5){const _0x277b63=_0x1b8728,_0xd43644=_0x277b63(0x16c)+_0x4791d7();this[_0x277b63(0x14e)](_0xd43644);const _0x1e7155=_0x277b63(0x16c)+_0x4791d7();try{this[_0x277b63(0x159)]({'type':_0x39495c[_0x277b63(0x172)],'label':_0x1b9bd5?.[_0x277b63(0x153)]||_0x3ea734,'uiId':_0x1e7155,'resourceId':_0x1b9bd5?.[_0x277b63(0x19e)]},!0x0);const _0x37191d=this[_0x277b63(0x19b)][_0x277b63(0x16e)](this[_0x277b63(0x137)],_0x3ea734,_0x1b9bd5);this[_0x277b63(0x1a6)][_0x277b63(0x148)](_0x1e7155,_0x37191d[_0x277b63(0x167)]);const {id:_0x50b68c}=await _0x37191d[_0x277b63(0x14a)]();this[_0x277b63(0x1a6)][_0x277b63(0x1aa)](_0x1e7155),this[_0x277b63(0x1ab)]({'type':_0x39495c[_0x277b63(0x172)],'id':_0x50b68c,'label':_0x1b9bd5?.[_0x277b63(0x153)]||_0x3ea734,'uiId':_0x1e7155,'resourceId':_0x1b9bd5?.[_0x277b63(0x19e)]},!0x1);}catch(_0x560f37){this[_0x277b63(0x1a6)][_0x277b63(0x1aa)](_0x1e7155),(_0x560f37[_0x277b63(0x15c)][_0x277b63(0x12a)](_0x277b63(0x166))||this[_0x277b63(0x131)](_0x277b63(0x16a),{'error':new _0xbb59fd(_0x277b63(0x19f),this,{'url':_0x3ea734,'originalError':_0x560f37}),'url':_0x3ea734}),this[_0x277b63(0x17f)](_0x1e7155));}finally{this[_0x277b63(0x150)](_0xd43644);}}async[_0x1b8728(0x18e)](_0x3ebc54,_0x434d57,_0x32331e){const _0x1841e5=_0x1b8728,_0x248a17=this[_0x1841e5(0x156)][_0x1841e5(0x142)][_0x1841e5(0x144)](_0x47d092=>_0x47d092['id']===_0x3ebc54);if(!_0x248a17)return this[_0x1841e5(0x131)](_0x1841e5(0x16a),{'error':new _0xbb59fd(_0x1841e5(0x1a8),this,{'sourceId':_0x3ebc54}),'sourceId':_0x3ebc54}),[];try{const _0x5be2a8=(await _0x248a17[_0x1841e5(0x19d)](_0x434d57))[_0x1841e5(0x129)](_0x5958a6=>{const _0x53823f=_0x1841e5,_0x5e5780=this[_0x53823f(0x174)](_0x5958a6['id']);return{..._0x5958a6,'isInContext':_0x5e5780};});return _0x248a17[_0x1841e5(0x182)]=_0x5be2a8,this[_0x1841e5(0x131)](_0x1841e5(0x188),{'sourceId':_0x3ebc54,'source':_0x248a17,'resources':_0x5be2a8,'uid':_0x32331e}),_0x5be2a8;}catch(_0x1cb50c){return this[_0x1841e5(0x131)](_0x1841e5(0x16a),{'error':new _0xbb59fd(_0x1841e5(0x197),this,{'sourceId':_0x3ebc54,'originalError':_0x1cb50c}),'sourceId':_0x3ebc54,'sourceLabel':_0x248a17[_0x1841e5(0x153)]}),[];}}async[_0x1b8728(0x14c)](_0x536a48,_0x18abf0){const _0x39182d=_0x1b8728;if(this[_0x39182d(0x174)](_0x18abf0['id']))return;let _0x4ab72b=_0x18abf0[_0x39182d(0x13a)];if(!_0x4ab72b&&_0x536a48[_0x39182d(0x1a0)])try{_0x4ab72b=await _0x536a48[_0x39182d(0x1a0)](_0x18abf0['id']);}catch(_0x25a480){return void this[_0x39182d(0x131)](_0x39182d(0x16a),{'error':new _0xbb59fd(_0x39182d(0x185),this,{'resourceId':_0x18abf0['id'],'sourceId':_0x536a48['id'],'originalError':_0x25a480}),'resourceId':_0x18abf0['id'],'sourceId':_0x536a48['id']});}if(_0x4ab72b)switch(_0x18abf0[_0x39182d(0x12b)]){case _0x39495c[_0x39182d(0x172)]:if(_0x39182d(0x121)!=typeof _0x4ab72b)return void this[_0x39182d(0x131)](_0x39182d(0x16a),{'error':new _0xbb59fd(_0x39182d(0x120),this,{'resourceId':_0x18abf0['id'],'sourceId':_0x536a48['id'],'expectedType':_0x39182d(0x121),'actualType':typeof _0x4ab72b}),'resourceId':_0x18abf0['id'],'sourceId':_0x536a48['id']});await this[_0x39182d(0x12e)](_0x4ab72b,{'label':_0x18abf0[_0x39182d(0x153)],'resourceId':_0x18abf0['id']});break;case _0x39495c[_0x39182d(0x160)]:if(!(_0x4ab72b instanceof File))return void this[_0x39182d(0x131)](_0x39182d(0x16a),{'error':new _0xbb59fd(_0x39182d(0x120),this,{'resourceId':_0x18abf0['id'],'sourceId':_0x536a48['id'],'expectedType':_0x39182d(0x183),'actualType':typeof _0x4ab72b}),'resourceId':_0x18abf0['id'],'sourceId':_0x536a48['id']});await this[_0x39182d(0x196)]([_0x4ab72b],{'label':_0x18abf0[_0x39182d(0x153)],'resourceId':_0x18abf0['id']});break;case _0x39495c[_0x39182d(0x13e)]:if(_0x39182d(0x181)!=typeof _0x4ab72b||!(_0x39182d(0x12d)in _0x4ab72b)||!(_0x39182d(0x12b)in _0x4ab72b))return void this[_0x39182d(0x131)](_0x39182d(0x16a),{'error':new _0xbb59fd(_0x39182d(0x120),this,{'resourceId':_0x18abf0['id'],'sourceId':_0x536a48['id'],'expectedType':_0x39182d(0x165),'actualType':typeof _0x4ab72b}),'resourceId':_0x18abf0['id'],'sourceId':_0x536a48['id']});_0x4ab72b=AIChatContext[_0x39182d(0x151)](_0x4ab72b,_0x18abf0[_0x39182d(0x153)]),await this[_0x39182d(0x196)]([_0x4ab72b],{'label':_0x18abf0[_0x39182d(0x153)],'resourceId':_0x18abf0['id']},_0x39495c[_0x39182d(0x13e)]);break;default:this[_0x39182d(0x131)](_0x39182d(0x16a),{'error':new _0xbb59fd(_0x39182d(0x12f),this,{'resourceId':_0x18abf0['id'],'sourceId':_0x536a48['id'],'resourceType':_0x18abf0[_0x39182d(0x12b)]}),'resourceId':_0x18abf0['id'],'sourceId':_0x536a48['id']});}else this[_0x39182d(0x131)](_0x39182d(0x16a),{'error':new _0xbb59fd(_0x39182d(0x158),this,{'resourceId':_0x18abf0['id'],'sourceId':_0x536a48['id']}),'resourceId':_0x18abf0['id'],'sourceId':_0x536a48['id']});}static[_0x1b8728(0x151)](_0xe24c99,_0x41f63d){const _0xe3a6=_0x1b8728;switch(_0xe24c99[_0xe3a6(0x12b)]){case _0x2ec68a[_0xe3a6(0x17e)]:return new File([_0xe24c99[_0xe3a6(0x12d)]],_0x41f63d,{'type':_0xe3a6(0x133)});case _0x2ec68a[_0xe3a6(0x134)]:return new File([_0xe24c99[_0xe3a6(0x12d)]],_0x41f63d,{'type':_0xe3a6(0x15d)});default:return new File([_0xe24c99[_0xe3a6(0x12d)]],_0x41f63d,{'type':_0xe3a6(0x168)});}}static[_0x1b8728(0x132)](_0x5043f4){const _0x3bc9eb=_0x1b8728;switch(_0x5043f4[_0x3bc9eb(0x12b)]){case _0x39495c[_0x3bc9eb(0x160)]:return{'type':_0x39495c[_0x3bc9eb(0x160)],'id':_0x5043f4['id']};case _0x39495c[_0x3bc9eb(0x172)]:return{'type':_0x39495c[_0x3bc9eb(0x172)],'id':_0x5043f4['id']};case _0x39495c[_0x3bc9eb(0x1a2)]:return{'type':_0x39495c[_0x3bc9eb(0x1a2)],'id':_0x5043f4['id'],..._0x5043f4[_0x3bc9eb(0x169)]?.[_0x3bc9eb(0x189)]&&{'selection':_0x5043f4[_0x3bc9eb(0x169)]}};case _0x39495c[_0x3bc9eb(0x13e)]:return{'type':_0x39495c[_0x3bc9eb(0x160)],'id':_0x5043f4['id']};default:return null;}}[_0x1b8728(0x159)](_0x556725,_0x14ff3b=!0x1){const _0x33da4a=_0x1b8728;if(this[_0x33da4a(0x194)][_0x33da4a(0x148)](_0x556725[_0x33da4a(0x18c)],_0x556725),_0x556725[_0x33da4a(0x11f)]||this[_0x33da4a(0x131)](_0x33da4a(0x17c),{'contextItem':_0x556725,'isLoading':_0x14ff3b}),_0x33da4a(0x163)===_0x556725[_0x33da4a(0x18c)]&&this[_0x33da4a(0x136)](),_0x556725[_0x33da4a(0x19e)]){const _0x28c7ad=this[_0x33da4a(0x17b)](_0x556725[_0x33da4a(0x19e)]);_0x28c7ad&&_0x28c7ad[_0x33da4a(0x16d)](_0x9a2bdd=>{const _0x39fadf=_0x33da4a;this[_0x39fadf(0x164)](_0x9a2bdd,_0x556725[_0x39fadf(0x19e)],!0x0);});}}[_0x1b8728(0x17f)](_0x21484d){const _0x237e5d=_0x1b8728,_0x10431f=this[_0x237e5d(0x194)][_0x237e5d(0x18d)](_0x21484d),_0x59ae77=this[_0x237e5d(0x1a6)][_0x237e5d(0x18d)](_0x21484d);if(_0x59ae77&&(_0x59ae77[_0x237e5d(0x13d)](),this[_0x237e5d(0x1a6)][_0x237e5d(0x1aa)](_0x21484d)),_0x10431f?.[_0x237e5d(0x19e)]){const _0xb66b41=this[_0x237e5d(0x17b)](_0x10431f[_0x237e5d(0x19e)]);_0xb66b41&&_0xb66b41[_0x237e5d(0x16d)](_0x162973=>{const _0x3e4121=_0x237e5d;this[_0x3e4121(0x164)](_0x162973,_0x10431f[_0x3e4121(0x19e)],!0x1);});}this[_0x237e5d(0x194)][_0x237e5d(0x1aa)](_0x21484d),this[_0x237e5d(0x131)](_0x237e5d(0x177),{'uiId':_0x21484d,'type':_0x10431f?.[_0x237e5d(0x12b)]}),_0x237e5d(0x163)===_0x21484d&&this[_0x237e5d(0x136)]();}[_0x1b8728(0x1ab)](_0x530bc9,_0x267c7d){const _0x19e667=_0x1b8728;if(this[_0x19e667(0x194)][_0x19e667(0x18f)](_0x530bc9[_0x19e667(0x18c)])&&(this[_0x19e667(0x194)][_0x19e667(0x148)](_0x530bc9[_0x19e667(0x18c)],_0x530bc9),this[_0x19e667(0x131)](_0x19e667(0x198),{'contextItem':_0x530bc9,'isLoading':_0x267c7d}),_0x530bc9[_0x19e667(0x19e)])){const _0x3a6319=this[_0x19e667(0x17b)](_0x530bc9[_0x19e667(0x19e)]);_0x3a6319&&_0x3a6319[_0x19e667(0x16d)](_0x20493e=>{const _0x199f21=_0x19e667;this[_0x199f21(0x164)](_0x20493e,_0x530bc9[_0x199f21(0x19e)],!0x0);});}}[_0x1b8728(0x15e)](_0x1a1f73){const _0x215884=_0x1b8728;this[_0x215884(0x191)][_0x215884(0x148)](_0x1a1f73[_0x215884(0x18c)],_0x1a1f73);}[_0x1b8728(0x195)](){const _0x5a288e=_0x1b8728;this[_0x5a288e(0x156)]={'document':{'enabled':!0x1!==this[_0x5a288e(0x17d)]?.[_0x5a288e(0x1a3)]?.[_0x5a288e(0x14d)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x5a288e(0x17d)]?.[_0x5a288e(0x176)]?.[_0x5a288e(0x14d)]},'files':{'enabled':!0x1!==this[_0x5a288e(0x17d)]?.[_0x5a288e(0x175)]?.[_0x5a288e(0x14d)]},'sources':this[_0x5a288e(0x11c)]()},this[_0x5a288e(0x131)](_0x5a288e(0x16b),{'options':this[_0x5a288e(0x156)]});}[_0x1b8728(0x11c)](){const _0x408c3b=_0x1b8728;return this[_0x408c3b(0x17d)]?.[_0x408c3b(0x142)]?.[_0x408c3b(0x129)](_0x5b10f8=>({..._0x5b10f8,'resources':[]}))??[];}[_0x1b8728(0x136)](){const _0x5ec798=_0x1b8728,_0x3b8926=this[_0x5ec798(0x15a)]()||this[_0x5ec798(0x18a)]();this[_0x5ec798(0x156)][_0x5ec798(0x1a3)][_0x5ec798(0x161)]=_0x3b8926,this[_0x5ec798(0x131)](_0x5ec798(0x16b),{'options':this[_0x5ec798(0x156)]});}[_0x1b8728(0x174)](_0x22bb76){const _0x3cfde7=_0x1b8728;for(const _0x5294a9 of this[_0x3cfde7(0x194)][_0x3cfde7(0x13c)]())if(_0x5294a9[_0x3cfde7(0x19e)]===_0x22bb76)return!0x0;for(const _0x1ffbc7 of this[_0x3cfde7(0x191)][_0x3cfde7(0x13c)]())if(_0x1ffbc7[_0x3cfde7(0x19e)]===_0x22bb76)return!0x0;return!0x1;}[_0x1b8728(0x17b)](_0x35b891){const _0x5460ef=_0x1b8728,_0x48bf57=[];for(const _0x42ab08 of this[_0x5460ef(0x156)][_0x5460ef(0x142)]){_0x42ab08[_0x5460ef(0x182)][_0x5460ef(0x144)](_0x3876e0=>_0x3876e0['id']===_0x35b891)&&_0x48bf57[_0x5460ef(0x15b)](_0x42ab08['id']);}return 0x0===_0x48bf57[_0x5460ef(0x189)]?null:_0x48bf57;}[_0x1b8728(0x164)](_0x1e18c2,_0x18a8ca,_0x20a599){const _0x5e321b=_0x1b8728,_0x3f8f07=this[_0x5e321b(0x156)][_0x5e321b(0x142)][_0x5e321b(0x144)](_0x4f3661=>_0x4f3661['id']===_0x1e18c2);if(!_0x3f8f07)return;const _0x3878ed=_0x3f8f07[_0x5e321b(0x182)][_0x5e321b(0x144)](_0xfee1ee=>_0xfee1ee['id']===_0x18a8ca);_0x3878ed&&(_0x3878ed[_0x5e321b(0x13b)]=_0x20a599,this[_0x5e321b(0x131)](_0x5e321b(0x140),{'sourceId':_0x1e18c2,'resourceId':_0x18a8ca,'isInContext':_0x20a599}));}[_0x1b8728(0x14e)](_0x1d6b82){const _0x12a507=_0x1b8728;this[_0x12a507(0x122)][_0x12a507(0x148)](_0x1d6b82,!0x0),this[_0x12a507(0x122)][_0x12a507(0x14f)]&&this[_0x12a507(0x131)](_0x12a507(0x14b),{'isUploadInProgress':!0x0});}[_0x1b8728(0x150)](_0x19f12d){const _0x477efe=_0x1b8728;this[_0x477efe(0x122)][_0x477efe(0x1aa)](_0x19f12d),0x0===this[_0x477efe(0x122)][_0x477efe(0x14f)]&&this[_0x477efe(0x131)](_0x477efe(0x14b),{'isUploadInProgress':!0x1});}}
23
+ const _0x3f905d=_0x3d21;(function(_0xf8b4fa,_0x18f096){const _0x3febc2=_0x3d21,_0x564ea7=_0xf8b4fa();while(!![]){try{const _0x1259d2=-parseInt(_0x3febc2(0x17f))/0x1+parseInt(_0x3febc2(0x189))/0x2+parseInt(_0x3febc2(0x1a4))/0x3+parseInt(_0x3febc2(0x181))/0x4+-parseInt(_0x3febc2(0x198))/0x5*(parseInt(_0x3febc2(0x186))/0x6)+parseInt(_0x3febc2(0x1b0))/0x7+-parseInt(_0x3febc2(0x185))/0x8;if(_0x1259d2===_0x18f096)break;else _0x564ea7['push'](_0x564ea7['shift']());}catch(_0x4bc397){_0x564ea7['push'](_0x564ea7['shift']());}}}(_0x7f3a,0x628dc));import{CKEditorError as _0x6ff7d9,ObservableMixin as _0xc05edb,uid as _0x48b52e}from'ckeditor5/src/utils.js';function _0x3d21(_0x7613af,_0x324e4c){const _0x7f3a7e=_0x7f3a();return _0x3d21=function(_0x3d219c,_0x5c7af1){_0x3d219c=_0x3d219c-0x15e;let _0x53ca84=_0x7f3a7e[_0x3d219c];return _0x53ca84;},_0x3d21(_0x7613af,_0x324e4c);}function _0x7f3a(){const _0x322c3b=['message','isCurrentDocumentInContext','addFilesToContext','filter','fetchDocument','length','ai-chat-resource-no-data','getId','getSentContextItems','ai-chat-resource-load-failed','push','enabled','map','files','set','uploadUrl','name','isHidden','uiId','FILE','addResourceToContext','Current\x20document','uploadFile','_config','uploadDocument','_finishUploadOperation','_pendingContextItems','sourceResourcesLoaded','ai-chat-source-not-found','url-','from','clearPendingContextItems','TEXT','delete','type','getDocument','HTML','mapContextItemsToRequestData','contextItemLoadingEnded','size','end','has','_addToConversationContextItem','populateFromMessage','_removeContextItem','_setAddContextOptionsDefaultState','text/html','text/plain','ai-chat-context-invalid-data','_addContextItem','version','updateCurrentDocument','SELECTION','stack','_updateResourceInContextState','_createContextItemFromContent','abort','startsWith','all','addContextOptionsChanged','resources','get','sources','label','ai-request-aborted','forEach','ai-chat-source-resources-load-failed','63880uxQynE','isReadOnly','1835596qOHmOJ','_ongoingUploads','urls','uploadProgressChanged','12210544aiMIpu','60aXFzkM','files-','values','714666aHeckn','File','addToConversationContext','sessionId','addSelectionToContext','object\x20with\x20content\x20and\x20type\x20properties','fire','selection','isInContext','_conversationContextItems','URL','_startUploadOperation','contextItemAdded','_finishContextItemLoading','attributes','94745uSJdcm','getResources','getPendingContextItems','isSelectionInContext','_convertTextResourceToFile','_toggleAddCurrentDocumentOptionVisibility','object','contextSent','_ownerId','content','_mapContextItemToRequestData','removeSelectionFromContext','1795788OPYpMi','start','string','url','contextItemRemoved','_addContextOptionsState','data','_getCustomSourcesInitialState','isCurrentDocumentInConversation','hidden','abortController','loadSourceResources','5379752cHIPOk','_isResourceInContext','resourceId','getData','ai-chat-file-upload-failed','current-document','file-','_findSourceIdsByResourceId','error','resourceStateChanged','_connector','addUrlToContext','text/markdown','_ongoingUploadOperations','ai-chat-context-unsupported-type','ai-chat-url-upload-failed','addCurrentDocumentToContext','document','init','removeFromContext','ai-chat-document-upload-failed','find','DOCUMENT','MARKDOWN'];_0x7f3a=function(){return _0x322c3b;};return _0x7f3a();}import{AIContextItemType as _0x2f6bc3,AIContextTextResourceType as _0x59b10e}from'../../aicore/model/aicontext.js';import{escape as _0x2860e7}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x3f905d(0x195),_0x3f905d(0x1a8),_0x3f905d(0x162),_0x3f905d(0x19f),_0x3f905d(0x1b8),_0x3f905d(0x177),_0x3f905d(0x1e3),_0x3f905d(0x1b9),_0x3f905d(0x184)];export class AIChatContext extends _0xc05edb(){[_0x3f905d(0x1ba)];[_0x3f905d(0x1df)];[_0x3f905d(0x1a0)];constructor({connector:_0x3b6b7b,config:_0x201f4b,ownerId:_0x44ef58}){const _0x59ebe3=_0x3f905d;super(),this[_0x59ebe3(0x1ba)]=_0x3b6b7b,this[_0x59ebe3(0x1df)]=_0x201f4b,this[_0x59ebe3(0x1a0)]=_0x44ef58;}[_0x3f905d(0x1c2)](){const _0x42b00e=_0x3f905d;this[_0x42b00e(0x1e2)]=new Map(),this[_0x42b00e(0x192)]=new Map(),this[_0x42b00e(0x182)]=new Map(),this[_0x42b00e(0x1bd)]=new Map(),this[_0x42b00e(0x169)]();}[_0x3f905d(0x19a)](){const _0x5246f6=_0x3f905d;return this[_0x5246f6(0x1e2)];}async[_0x3f905d(0x167)](_0x5a9824){const _0x3a1400=_0x3f905d,_0x44c2c5=await this[_0x3a1400(0x173)](_0x5a9824);return this[_0x3a1400(0x166)](_0x44c2c5),_0x3a1400(0x1b5)===_0x44c2c5[_0x3a1400(0x1da)]&&this[_0x3a1400(0x19d)](),_0x44c2c5;}async[_0x3f905d(0x173)](_0x5cec0e){const _0x5a415f=_0x3f905d;if(_0x5cec0e[_0x5a415f(0x15e)]===_0x2f6bc3[_0x5a415f(0x1c6)]){const _0x4ffa20=await this[_0x5a415f(0x1ba)][_0x5a415f(0x1cc)](this[_0x5a415f(0x1a0)],_0x5cec0e['id'])[_0x5a415f(0x15f)]();return{'id':_0x5a415f(0x1b5),'uiId':_0x5a415f(0x1b5),'label':_0x5a415f(0x1dd),'type':_0x5cec0e[_0x5a415f(0x15e)],'content':_0x4ffa20[_0x5a415f(0x1a1)],'hidden':this[_0x5a415f(0x192)][_0x5a415f(0x165)](_0x5a415f(0x1b5)),'version':_0x4ffa20[_0x5a415f(0x197)]?.[_0x5a415f(0x16e)],'sessionId':_0x4ffa20[_0x5a415f(0x197)]?.[_0x5a415f(0x18c)]};}return{'id':_0x5cec0e['id'],'uiId':_0x5cec0e['id'],'label':_0x5cec0e[_0x5a415f(0x197)]?.[_0x5a415f(0x17b)]||_0x5cec0e[_0x5a415f(0x1d8)]||_0x5cec0e[_0x5a415f(0x1a7)]||_0x5cec0e['id'],'type':_0x5cec0e[_0x5a415f(0x15e)],..._0x5cec0e?.[_0x5a415f(0x197)]?.[_0x5a415f(0x1b2)]?{'resourceId':_0x5cec0e[_0x5a415f(0x197)]?.[_0x5a415f(0x1b2)]}:{}};}[_0x3f905d(0x1d0)](){const _0x33f743=_0x3f905d;return new Map(this[_0x33f743(0x192)]);}[_0x3f905d(0x1c3)](_0xe7bfa3){const _0x5d9719=_0x3f905d,_0x57e081=this[_0x5d9719(0x1e2)][_0x5d9719(0x179)](_0xe7bfa3);_0x57e081?.[_0x5d9719(0x180)]||this[_0x5d9719(0x168)](_0xe7bfa3);}[_0x3f905d(0x1e7)](){const _0x5a4a4b=_0x3f905d;if(0x0===this[_0x5a4a4b(0x1e2)][_0x5a4a4b(0x163)])return;for(const _0x137ebc of this[_0x5a4a4b(0x1e2)][_0x5a4a4b(0x188)]())this[_0x5a4a4b(0x168)](_0x137ebc[_0x5a4a4b(0x1da)]);const _0x39cca0=this[_0x5a4a4b(0x192)][_0x5a4a4b(0x179)](_0x5a4a4b(0x1b5))||this[_0x5a4a4b(0x1e2)][_0x5a4a4b(0x179)](_0x5a4a4b(0x1b5));_0x39cca0&&this[_0x5a4a4b(0x16d)]({..._0x39cca0,'isReadOnly':!0x0,'hidden':!0x0});}[_0x3f905d(0x18b)](_0x59ead7){const _0x2dd530=_0x3f905d;for(const _0x1abf6 of _0x59ead7[_0x2dd530(0x188)]())this[_0x2dd530(0x166)](_0x1abf6);this[_0x2dd530(0x1e7)](),this[_0x2dd530(0x18f)](_0x2dd530(0x19f),{'contextItems':Array[_0x2dd530(0x1e6)](this[_0x2dd530(0x1d0)]()[_0x2dd530(0x188)]())});}[_0x3f905d(0x1c9)](){const _0x3ec319=_0x3f905d;return this[_0x3ec319(0x1e2)][_0x3ec319(0x165)](_0x3ec319(0x1b5));}[_0x3f905d(0x19b)](){const _0x1545fa=_0x3f905d;return this[_0x1545fa(0x1e2)][_0x1545fa(0x165)](_0x1545fa(0x190));}[_0x3f905d(0x1ac)](){const _0x2bd453=_0x3f905d;return this[_0x2bd453(0x192)][_0x2bd453(0x165)](_0x2bd453(0x1b5));}static[_0x3f905d(0x161)](_0x5661dc){const _0x47be00=_0x3f905d;return Array[_0x47be00(0x1e6)](_0x5661dc[_0x47be00(0x188)]())[_0x47be00(0x1d4)](_0x4647ef=>this[_0x47be00(0x1a2)](_0x4647ef))[_0x47be00(0x1cb)](_0x2712a7=>null!==_0x2712a7);}async[_0x3f905d(0x1ca)](_0x3df38a,_0x49802d,_0x1f089e=_0x2f6bc3[_0x3f905d(0x1db)]){const _0x53e15a=_0x3f905d,_0x42dc33=_0x53e15a(0x187)+_0x48b52e();this[_0x53e15a(0x194)](_0x42dc33);try{await Promise[_0x53e15a(0x176)](_0x3df38a[_0x53e15a(0x1d4)](async _0x3a8599=>{const _0xa4d109=_0x53e15a,_0x1a207a=_0xa4d109(0x1b6)+_0x48b52e(),_0x4885c9=_0x2860e7(_0x3a8599[_0xa4d109(0x1d8)]);try{this[_0xa4d109(0x16d)]({'type':_0x1f089e,'label':_0x49802d?.[_0xa4d109(0x17b)]||_0x4885c9,'uiId':_0x1a207a,'resourceId':_0x49802d?.[_0xa4d109(0x1b2)]},!0x0);const _0x4569ca=this[_0xa4d109(0x1ba)][_0xa4d109(0x1de)](this[_0xa4d109(0x1a0)],_0x3a8599,_0x49802d);this[_0xa4d109(0x182)][_0xa4d109(0x1d6)](_0x1a207a,_0x4569ca[_0xa4d109(0x1ae)]);const {id:_0x41c8c2}=await _0x4569ca[_0xa4d109(0x1cf)]();this[_0xa4d109(0x182)][_0xa4d109(0x1e9)](_0x1a207a),this[_0xa4d109(0x196)]({'type':_0x1f089e,'id':_0x41c8c2,'label':_0x49802d?.[_0xa4d109(0x17b)]||_0x4885c9,'uiId':_0x1a207a,'resourceId':_0x49802d?.[_0xa4d109(0x1b2)]},!0x1);}catch(_0x2232e9){this[_0xa4d109(0x182)][_0xa4d109(0x1e9)](_0x1a207a);if(!_0x2232e9[_0xa4d109(0x1c8)][_0xa4d109(0x175)](_0xa4d109(0x17c))){const _0x2996ab=new _0x6ff7d9(_0xa4d109(0x1b4),null,{'fileName':_0x4885c9});_0x2996ab[_0xa4d109(0x171)]=_0x2232e9[_0xa4d109(0x171)],this[_0xa4d109(0x18f)](_0xa4d109(0x1b8),{'error':_0x2996ab,'fileName':_0x4885c9});}this[_0xa4d109(0x168)](_0x1a207a);}}));}finally{this[_0x53e15a(0x1e1)](_0x42dc33);}}[_0x3f905d(0x1c0)](_0x2d4764){const _0x4f91bb=_0x3f905d;if(this[_0x4f91bb(0x1c9)]())return;const _0x1b9520={'type':_0x2f6bc3[_0x4f91bb(0x1c6)],'uiId':_0x4f91bb(0x1b5),'label':_0x2d4764,'isReadOnly':this[_0x4f91bb(0x192)][_0x4f91bb(0x165)](_0x4f91bb(0x1b5)),'hidden':this[_0x4f91bb(0x192)][_0x4f91bb(0x165)](_0x4f91bb(0x1b5))};this[_0x4f91bb(0x16d)](_0x1b9520);}async[_0x3f905d(0x16f)](_0x87c00,_0x4bb9ae,_0x1cb4f1,_0x4c7407){const _0x7aa733=_0x3f905d,_0x53d3ab=this[_0x7aa733(0x1e2)][_0x7aa733(0x179)](_0x7aa733(0x1b5));if(_0x53d3ab&&_0x87c00){_0x53d3ab[_0x7aa733(0x190)]=_0x4c7407?_0x4c7407[_0x7aa733(0x1d4)](_0x2b83ee=>({'start':_0x2b83ee[_0x7aa733(0x1a5)],'end':_0x2b83ee[_0x7aa733(0x164)]})):[];try{if(_0x53d3ab[_0x7aa733(0x16e)]===_0x4bb9ae)return;const {id:_0x4c3035}=await this[_0x7aa733(0x1ba)][_0x7aa733(0x1e0)](this[_0x7aa733(0x1a0)],_0x87c00,{'version':_0x4bb9ae,'sessionId':_0x1cb4f1})[_0x7aa733(0x1cf)]();_0x53d3ab['id']=_0x4c3035,_0x53d3ab[_0x7aa733(0x1a1)]=_0x87c00,_0x53d3ab[_0x7aa733(0x16e)]=_0x4bb9ae,_0x53d3ab[_0x7aa733(0x18c)]=_0x1cb4f1;}catch(_0x3e0c17){const _0x40fefa=new _0x6ff7d9(_0x7aa733(0x1c4),null);_0x40fefa[_0x7aa733(0x171)]=_0x3e0c17[_0x7aa733(0x171)],this[_0x7aa733(0x18f)](_0x7aa733(0x1b8),{'error':_0x40fefa});}}}[_0x3f905d(0x18d)](_0x4d0136){const _0x54e387=_0x3f905d;this[_0x54e387(0x16d)]({'type':_0x2f6bc3[_0x54e387(0x170)],'label':_0x4d0136,'uiId':_0x54e387(0x190),'content':_0x4d0136});}[_0x3f905d(0x1a3)](){const _0x2136b0=_0x3f905d;this[_0x2136b0(0x168)](_0x2136b0(0x190));}async[_0x3f905d(0x1bb)](_0x2175f1,_0x543768){const _0x19818d=_0x3f905d,_0xc1cfb5=_0x19818d(0x1e5)+_0x48b52e();this[_0x19818d(0x194)](_0xc1cfb5);const _0x54fd18=_0x19818d(0x1e5)+_0x48b52e();try{this[_0x19818d(0x16d)]({'type':_0x2f6bc3[_0x19818d(0x193)],'label':_0x543768?.[_0x19818d(0x17b)]||_0x2175f1,'uiId':_0x54fd18,'resourceId':_0x543768?.[_0x19818d(0x1b2)]},!0x0);const _0x27632e=this[_0x19818d(0x1ba)][_0x19818d(0x1d7)](this[_0x19818d(0x1a0)],_0x2175f1,_0x543768);this[_0x19818d(0x182)][_0x19818d(0x1d6)](_0x54fd18,_0x27632e[_0x19818d(0x1ae)]);const {id:_0x1d77ca}=await _0x27632e[_0x19818d(0x1cf)]();this[_0x19818d(0x182)][_0x19818d(0x1e9)](_0x54fd18),this[_0x19818d(0x196)]({'type':_0x2f6bc3[_0x19818d(0x193)],'id':_0x1d77ca,'label':_0x543768?.[_0x19818d(0x17b)]||_0x2175f1,'uiId':_0x54fd18,'resourceId':_0x543768?.[_0x19818d(0x1b2)]},!0x1);}catch(_0x5b40d5){this[_0x19818d(0x182)][_0x19818d(0x1e9)](_0x54fd18),(_0x5b40d5[_0x19818d(0x1c8)][_0x19818d(0x175)](_0x19818d(0x17c))||this[_0x19818d(0x18f)](_0x19818d(0x1b8),{'error':new _0x6ff7d9(_0x19818d(0x1bf),this,{'url':_0x2175f1,'originalError':_0x5b40d5}),'url':_0x2175f1}),this[_0x19818d(0x168)](_0x54fd18));}finally{this[_0x19818d(0x1e1)](_0xc1cfb5);}}async[_0x3f905d(0x1af)](_0x2fc0ed,_0x30ee0b,_0x3aefee){const _0x491962=_0x3f905d,_0x5bbe94=this[_0x491962(0x1a9)][_0x491962(0x17a)][_0x491962(0x1c5)](_0x66af4f=>_0x66af4f['id']===_0x2fc0ed);if(!_0x5bbe94)return this[_0x491962(0x18f)](_0x491962(0x1b8),{'error':new _0x6ff7d9(_0x491962(0x1e4),this,{'sourceId':_0x2fc0ed}),'sourceId':_0x2fc0ed}),[];try{const _0x53e974=(await _0x5bbe94[_0x491962(0x199)](_0x30ee0b))[_0x491962(0x1d4)](_0x2773f1=>{const _0x31689d=_0x491962,_0x2687df=this[_0x31689d(0x1b1)](_0x2773f1['id']);return{..._0x2773f1,'isInContext':_0x2687df};});return _0x5bbe94[_0x491962(0x178)]=_0x53e974,this[_0x491962(0x18f)](_0x491962(0x1e3),{'sourceId':_0x2fc0ed,'source':_0x5bbe94,'resources':_0x53e974,'uid':_0x3aefee}),_0x53e974;}catch(_0x1b6d1f){return this[_0x491962(0x18f)](_0x491962(0x1b8),{'error':new _0x6ff7d9(_0x491962(0x17e),this,{'sourceId':_0x2fc0ed,'originalError':_0x1b6d1f}),'sourceId':_0x2fc0ed,'sourceLabel':_0x5bbe94[_0x491962(0x17b)]}),[];}}async[_0x3f905d(0x1dc)](_0x3cd34b,_0x1a9e77){const _0x1ca901=_0x3f905d;if(this[_0x1ca901(0x1b1)](_0x1a9e77['id']))return;let _0x1aebe5=_0x1a9e77[_0x1ca901(0x1aa)];if(!_0x1aebe5&&_0x3cd34b[_0x1ca901(0x1b3)])try{_0x1aebe5=await _0x3cd34b[_0x1ca901(0x1b3)](_0x1a9e77['id']);}catch(_0x375ef){return void this[_0x1ca901(0x18f)](_0x1ca901(0x1b8),{'error':new _0x6ff7d9(_0x1ca901(0x1d1),this,{'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id'],'originalError':_0x375ef}),'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']});}if(_0x1aebe5)switch(_0x1a9e77[_0x1ca901(0x15e)]){case _0x2f6bc3[_0x1ca901(0x193)]:if(_0x1ca901(0x1a6)!=typeof _0x1aebe5)return void this[_0x1ca901(0x18f)](_0x1ca901(0x1b8),{'error':new _0x6ff7d9(_0x1ca901(0x16c),this,{'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id'],'expectedType':_0x1ca901(0x1a6),'actualType':typeof _0x1aebe5}),'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']});await this[_0x1ca901(0x1bb)](_0x1aebe5,{'label':_0x1a9e77[_0x1ca901(0x17b)],'resourceId':_0x1a9e77['id']});break;case _0x2f6bc3[_0x1ca901(0x1db)]:if(!(_0x1aebe5 instanceof File))return void this[_0x1ca901(0x18f)](_0x1ca901(0x1b8),{'error':new _0x6ff7d9(_0x1ca901(0x16c),this,{'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id'],'expectedType':_0x1ca901(0x18a),'actualType':typeof _0x1aebe5}),'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']});await this[_0x1ca901(0x1ca)]([_0x1aebe5],{'label':_0x1a9e77[_0x1ca901(0x17b)],'resourceId':_0x1a9e77['id']});break;case _0x2f6bc3[_0x1ca901(0x1e8)]:if(_0x1ca901(0x19e)!=typeof _0x1aebe5||!(_0x1ca901(0x1a1)in _0x1aebe5)||!(_0x1ca901(0x15e)in _0x1aebe5))return void this[_0x1ca901(0x18f)](_0x1ca901(0x1b8),{'error':new _0x6ff7d9(_0x1ca901(0x16c),this,{'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id'],'expectedType':_0x1ca901(0x18e),'actualType':typeof _0x1aebe5}),'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']});_0x1aebe5=AIChatContext[_0x1ca901(0x19c)](_0x1aebe5,_0x1a9e77[_0x1ca901(0x17b)]),await this[_0x1ca901(0x1ca)]([_0x1aebe5],{'label':_0x1a9e77[_0x1ca901(0x17b)],'resourceId':_0x1a9e77['id']},_0x2f6bc3[_0x1ca901(0x1e8)]);break;default:this[_0x1ca901(0x18f)](_0x1ca901(0x1b8),{'error':new _0x6ff7d9(_0x1ca901(0x1be),this,{'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id'],'resourceType':_0x1a9e77[_0x1ca901(0x15e)]}),'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']});}else this[_0x1ca901(0x18f)](_0x1ca901(0x1b8),{'error':new _0x6ff7d9(_0x1ca901(0x1ce),this,{'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']}),'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']});}static[_0x3f905d(0x19c)](_0x2c39fd,_0xbee453){const _0x426fac=_0x3f905d;switch(_0x2c39fd[_0x426fac(0x15e)]){case _0x59b10e[_0x426fac(0x1c7)]:return new File([_0x2c39fd[_0x426fac(0x1a1)]],_0xbee453,{'type':_0x426fac(0x1bc)});case _0x59b10e[_0x426fac(0x160)]:return new File([_0x2c39fd[_0x426fac(0x1a1)]],_0xbee453,{'type':_0x426fac(0x16a)});default:return new File([_0x2c39fd[_0x426fac(0x1a1)]],_0xbee453,{'type':_0x426fac(0x16b)});}}static[_0x3f905d(0x1a2)](_0x3ebb4b){const _0x109206=_0x3f905d;switch(_0x3ebb4b[_0x109206(0x15e)]){case _0x2f6bc3[_0x109206(0x1db)]:return{'type':_0x2f6bc3[_0x109206(0x1db)],'id':_0x3ebb4b['id']};case _0x2f6bc3[_0x109206(0x193)]:return{'type':_0x2f6bc3[_0x109206(0x193)],'id':_0x3ebb4b['id']};case _0x2f6bc3[_0x109206(0x1c6)]:return{'type':_0x2f6bc3[_0x109206(0x1c6)],'id':_0x3ebb4b['id'],..._0x3ebb4b[_0x109206(0x190)]?.[_0x109206(0x1cd)]&&{'selection':_0x3ebb4b[_0x109206(0x190)]}};case _0x2f6bc3[_0x109206(0x1e8)]:return{'type':_0x2f6bc3[_0x109206(0x1db)],'id':_0x3ebb4b['id']};default:return null;}}[_0x3f905d(0x16d)](_0x3c1f15,_0x5b4a04=!0x1){const _0x4fc5f7=_0x3f905d;if(this[_0x4fc5f7(0x1e2)][_0x4fc5f7(0x1d6)](_0x3c1f15[_0x4fc5f7(0x1da)],_0x3c1f15),_0x3c1f15[_0x4fc5f7(0x1ad)]||this[_0x4fc5f7(0x18f)](_0x4fc5f7(0x195),{'contextItem':_0x3c1f15,'isLoading':_0x5b4a04}),_0x4fc5f7(0x1b5)===_0x3c1f15[_0x4fc5f7(0x1da)]&&this[_0x4fc5f7(0x19d)](),_0x3c1f15[_0x4fc5f7(0x1b2)]){const _0x4639cf=this[_0x4fc5f7(0x1b7)](_0x3c1f15[_0x4fc5f7(0x1b2)]);_0x4639cf&&_0x4639cf[_0x4fc5f7(0x17d)](_0x340657=>{const _0xaa620a=_0x4fc5f7;this[_0xaa620a(0x172)](_0x340657,_0x3c1f15[_0xaa620a(0x1b2)],!0x0);});}}[_0x3f905d(0x168)](_0x26dbd4){const _0x41aed3=_0x3f905d,_0x5a2db0=this[_0x41aed3(0x1e2)][_0x41aed3(0x179)](_0x26dbd4),_0x54736f=this[_0x41aed3(0x182)][_0x41aed3(0x179)](_0x26dbd4);if(_0x54736f&&(_0x54736f[_0x41aed3(0x174)](),this[_0x41aed3(0x182)][_0x41aed3(0x1e9)](_0x26dbd4)),_0x5a2db0?.[_0x41aed3(0x1b2)]){const _0x539a0e=this[_0x41aed3(0x1b7)](_0x5a2db0[_0x41aed3(0x1b2)]);_0x539a0e&&_0x539a0e[_0x41aed3(0x17d)](_0x5ac443=>{const _0x2d7169=_0x41aed3;this[_0x2d7169(0x172)](_0x5ac443,_0x5a2db0[_0x2d7169(0x1b2)],!0x1);});}this[_0x41aed3(0x1e2)][_0x41aed3(0x1e9)](_0x26dbd4),this[_0x41aed3(0x18f)](_0x41aed3(0x1a8),{'uiId':_0x26dbd4,'type':_0x5a2db0?.[_0x41aed3(0x15e)]}),_0x41aed3(0x1b5)===_0x26dbd4&&this[_0x41aed3(0x19d)]();}[_0x3f905d(0x196)](_0x194ffe,_0x5f4347){const _0x5772ee=_0x3f905d;if(this[_0x5772ee(0x1e2)][_0x5772ee(0x165)](_0x194ffe[_0x5772ee(0x1da)])&&(this[_0x5772ee(0x1e2)][_0x5772ee(0x1d6)](_0x194ffe[_0x5772ee(0x1da)],_0x194ffe),this[_0x5772ee(0x18f)](_0x5772ee(0x162),{'contextItem':_0x194ffe,'isLoading':_0x5f4347}),_0x194ffe[_0x5772ee(0x1b2)])){const _0x1b18a5=this[_0x5772ee(0x1b7)](_0x194ffe[_0x5772ee(0x1b2)]);_0x1b18a5&&_0x1b18a5[_0x5772ee(0x17d)](_0x5c4929=>{const _0x4b5ff2=_0x5772ee;this[_0x4b5ff2(0x172)](_0x5c4929,_0x194ffe[_0x4b5ff2(0x1b2)],!0x0);});}}[_0x3f905d(0x166)](_0x5c7e01){const _0x3a8c79=_0x3f905d;this[_0x3a8c79(0x192)][_0x3a8c79(0x1d6)](_0x5c7e01[_0x3a8c79(0x1da)],_0x5c7e01);}[_0x3f905d(0x169)](){const _0x99081f=_0x3f905d;this[_0x99081f(0x1a9)]={'document':{'enabled':!0x1!==this[_0x99081f(0x1df)]?.[_0x99081f(0x1c1)]?.[_0x99081f(0x1d3)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x99081f(0x1df)]?.[_0x99081f(0x183)]?.[_0x99081f(0x1d3)]},'files':{'enabled':!0x1!==this[_0x99081f(0x1df)]?.[_0x99081f(0x1d5)]?.[_0x99081f(0x1d3)]},'sources':this[_0x99081f(0x1ab)]()},this[_0x99081f(0x18f)](_0x99081f(0x177),{'options':this[_0x99081f(0x1a9)]});}[_0x3f905d(0x1ab)](){const _0x1ea756=_0x3f905d;return this[_0x1ea756(0x1df)]?.[_0x1ea756(0x17a)]?.[_0x1ea756(0x1d4)](_0xed4b86=>({..._0xed4b86,'resources':[]}))??[];}[_0x3f905d(0x19d)](){const _0x36a3fc=_0x3f905d,_0x2adfd1=this[_0x36a3fc(0x1c9)]()||this[_0x36a3fc(0x1ac)]();this[_0x36a3fc(0x1a9)][_0x36a3fc(0x1c1)][_0x36a3fc(0x1d9)]=_0x2adfd1,this[_0x36a3fc(0x18f)](_0x36a3fc(0x177),{'options':this[_0x36a3fc(0x1a9)]});}[_0x3f905d(0x1b1)](_0x5af946){const _0x36f18e=_0x3f905d;for(const _0x3381de of this[_0x36f18e(0x1e2)][_0x36f18e(0x188)]())if(_0x3381de[_0x36f18e(0x1b2)]===_0x5af946)return!0x0;for(const _0x3efb89 of this[_0x36f18e(0x192)][_0x36f18e(0x188)]())if(_0x3efb89[_0x36f18e(0x1b2)]===_0x5af946)return!0x0;return!0x1;}[_0x3f905d(0x1b7)](_0x3a45d8){const _0x5b890b=_0x3f905d,_0x4e61e6=[];for(const _0x1cf325 of this[_0x5b890b(0x1a9)][_0x5b890b(0x17a)]){_0x1cf325[_0x5b890b(0x178)][_0x5b890b(0x1c5)](_0x56c611=>_0x56c611['id']===_0x3a45d8)&&_0x4e61e6[_0x5b890b(0x1d2)](_0x1cf325['id']);}return 0x0===_0x4e61e6[_0x5b890b(0x1cd)]?null:_0x4e61e6;}[_0x3f905d(0x172)](_0x2c83b3,_0x177b92,_0x207fc0){const _0x71f066=_0x3f905d,_0x41d0b8=this[_0x71f066(0x1a9)][_0x71f066(0x17a)][_0x71f066(0x1c5)](_0x267504=>_0x267504['id']===_0x2c83b3);if(!_0x41d0b8)return;const _0x4f68ef=_0x41d0b8[_0x71f066(0x178)][_0x71f066(0x1c5)](_0x295144=>_0x295144['id']===_0x177b92);_0x4f68ef&&(_0x4f68ef[_0x71f066(0x191)]=_0x207fc0,this[_0x71f066(0x18f)](_0x71f066(0x1b9),{'sourceId':_0x2c83b3,'resourceId':_0x177b92,'isInContext':_0x207fc0}));}[_0x3f905d(0x194)](_0x1c0c50){const _0x34c056=_0x3f905d;this[_0x34c056(0x1bd)][_0x34c056(0x1d6)](_0x1c0c50,!0x0),this[_0x34c056(0x1bd)][_0x34c056(0x163)]&&this[_0x34c056(0x18f)](_0x34c056(0x184),{'isUploadInProgress':!0x0});}[_0x3f905d(0x1e1)](_0x516a7b){const _0x23bf43=_0x3f905d;this[_0x23bf43(0x1bd)][_0x23bf43(0x1e9)](_0x516a7b),0x0===this[_0x23bf43(0x1bd)][_0x23bf43(0x163)]&&this[_0x23bf43(0x18f)](_0x23bf43(0x184),{'isUploadInProgress':!0x1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d35bb=_0x4108;(function(_0x30aff0,_0x346f96){const _0x5059b2=_0x4108,_0x446833=_0x30aff0();while(!![]){try{const _0x518f28=-parseInt(_0x5059b2(0x22a))/0x1*(-parseInt(_0x5059b2(0x216))/0x2)+-parseInt(_0x5059b2(0x1ff))/0x3+parseInt(_0x5059b2(0x1f1))/0x4*(parseInt(_0x5059b2(0x242))/0x5)+parseInt(_0x5059b2(0x23e))/0x6+parseInt(_0x5059b2(0x227))/0x7+parseInt(_0x5059b2(0x213))/0x8+-parseInt(_0x5059b2(0x215))/0x9*(parseInt(_0x5059b2(0x22b))/0xa);if(_0x518f28===_0x346f96)break;else _0x446833['push'](_0x446833['shift']());}catch(_0xfa7766){_0x446833['push'](_0x446833['shift']());}}}(_0x36d4,0x5d069));import{CKEditorError as _0x3300af,EmitterMixin as _0x552bcd,logWarning as _0x4e7658}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x3b86b1}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x48455b,AI_CONTEXT_MODEL_EVENT_NAMES as _0xf5b5ec}from'./aichatcontext.js';import{AICapabilities as _0x323252,CAPABILITIES_MODEL_EVENT_NAMES as _0x4a513c}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x25023b}from'./aichatinteraction.js';function _0x4108(_0x27cb61,_0x470305){const _0x36d475=_0x36d4();return _0x4108=function(_0x4108bb,_0x4fcaa0){_0x4108bb=_0x4108bb-0x1d5;let _0x264f16=_0x36d475[_0x4108bb];return _0x264f16;},_0x4108(_0x27cb61,_0x470305);}function _0x36d4(){const _0x360f28=['user','addResourceToContext','destroy','assistant','toggleReasoning','chatModels','_extractContextItems','modelSelected','attributes','splice','updateCurrentDocumentInContext','toggleWebSearch','contextItems','appendContent','push','toLowerCase','title','ai-chat-conversation-init-from-id-failed','quickActionData','webSearch','prompt','fetchConversation','selectedModelId','interactions','getModel','ai-chat-handle-user-interaction-already-in-progress','length','conversationInitialized','fire','removeSelectionFromContext','type','isSelectionInContext','4FvsLUz','load','getInteraction','getPendingContextItems','conversationId','text','getCurrentDocumentContext','addSelectionToContext','ai-chat-conversation-already-started','model','capabilities','startConversation','updateCurrentDocument','getAll','1318431orBYgT','createReply','sessionId','getMessages','removeFromContext','getConversation','stack','role','getEditor','handleUserInteraction','ai-chat-conversation-set-model-null','hasOwn','message','delegate','stop','lastInteraction','content','loadSourceResources','isCurrentDocumentInConversation','getCapabilitiesConfig','3530352ltwsVb','addToConversationContext','9963621dksvjR','12hGxEev','createInteraction','selectedModel','addUrlToContext','ai-chat-conversation-init-failed','reasoning','group','populateFromMessage','ai-chat-conversation-start-failed','find','setConversationTitle','setModel','ai-chat-conversation-start-no-model-selected','currentReply','getDocumentContext','addCurrentDocumentToContext','indexOf','2989812KTmbYy','isAvailable','_processMessagesToInteractions','13277kQLDum','10hzbqjT','start','isStarted','error','connector','text-delta','addFilesToContext','currentInteraction','getAvailableModels','options','interactionCreated','conversationStarted','modification-delta','chatCapabilities','set','reset','removeInteraction','ai-chat-conversation-set-model-not-available','init','1314504zdGqtU','isCurrentDocumentInContext','fetchConversationMessages','chatContext','3802115kIPJqF','ai-chat-handle-user-conversation-not-initialized'];_0x36d4=function(){return _0x360f28;};return _0x36d4();}export class AIChatConversation extends _0x552bcd(){['id'];[_0x5d35bb(0x22d)]=!0x1;[_0x5d35bb(0x1e8)]=[];[_0x5d35bb(0x232)];[_0x5d35bb(0x218)];[_0x5d35bb(0x22f)];[_0x5d35bb(0x234)];constructor(_0x18f98d){const _0x22b091=_0x5d35bb;super(),this[_0x22b091(0x234)]=_0x18f98d,this[_0x22b091(0x22f)]=_0x18f98d[_0x22b091(0x22f)],this[_0x22b091(0x1d6)]=_0x18f98d[_0x22b091(0x1d6)],this['id']=_0x18f98d[_0x22b091(0x1f5)];}async[_0x5d35bb(0x23d)](_0x414b11){const _0x15db03=_0x5d35bb;try{this[_0x15db03(0x241)]=new _0x48455b({'connector':this[_0x15db03(0x22f)],'config':_0x414b11,'ownerId':this['id']}),this[_0x15db03(0x241)][_0x15db03(0x20c)](..._0xf5b5ec)['to'](this),this[_0x15db03(0x241)][_0x15db03(0x23d)](),this[_0x15db03(0x238)]=new _0x323252(),this[_0x15db03(0x238)][_0x15db03(0x20c)](..._0x4a513c)['to'](this),this[_0x15db03(0x238)][_0x15db03(0x23d)]();const _0x5f2c67=await this[_0x15db03(0x1d6)][_0x15db03(0x233)]();this[_0x15db03(0x1ed)](_0x15db03(0x1ec),{'availableModels':_0x5f2c67});const _0x41c2e1=await this[_0x15db03(0x1d6)][_0x15db03(0x1e9)](this[_0x15db03(0x234)][_0x15db03(0x1e7)]);_0x41c2e1&&await this[_0x15db03(0x221)](_0x41c2e1);}catch(_0x4e0c35){const _0x211198=new _0x3300af(_0x15db03(0x21a),null,{'message':_0x4e0c35[_0x15db03(0x20b)]});_0x211198[_0x15db03(0x205)]=_0x4e0c35[_0x15db03(0x205)],this[_0x15db03(0x1ed)](_0x15db03(0x22e),{'error':_0x211198});}}async[_0x5d35bb(0x22c)](){const _0x3ab90a=_0x5d35bb;if(this[_0x3ab90a(0x22d)])throw new _0x3300af(_0x3ab90a(0x1f9),null,{'conversation':this});if(!this[_0x3ab90a(0x218)])throw new _0x3300af(_0x3ab90a(0x222),null,{'conversation':this});try{const {id:_0x33810a}=await this[_0x3ab90a(0x22f)][_0x3ab90a(0x1fc)](this['id'],this[_0x3ab90a(0x234)][_0x3ab90a(0x21c)])[_0x3ab90a(0x204)]();this['id']=_0x33810a,this[_0x3ab90a(0x22d)]=!0x0,this[_0x3ab90a(0x1ed)](_0x3ab90a(0x236),{'conversationId':this['id'],'selectedModel':this[_0x3ab90a(0x218)]});}catch(_0x4c94ff){const _0x3e59de=new _0x3300af(_0x3ab90a(0x21e),null,{'message':_0x4c94ff[_0x3ab90a(0x20b)]});_0x3e59de[_0x3ab90a(0x205)]=_0x4c94ff[_0x3ab90a(0x205)],this[_0x3ab90a(0x1ed)](_0x3ab90a(0x22e),{'error':_0x3e59de});}}async[_0x5d35bb(0x1f2)](_0x36c71c,_0x47b183){const _0x26e0e1=_0x5d35bb;try{const _0x45487c=await this[_0x26e0e1(0x22f)][_0x26e0e1(0x1e6)](_0x36c71c)[_0x26e0e1(0x204)](),_0x341506=await this[_0x26e0e1(0x22f)][_0x26e0e1(0x240)](_0x36c71c)[_0x26e0e1(0x202)](),_0x33ba6c=_0x341506[0x0][_0x26e0e1(0x1fa)];this[_0x26e0e1(0x22d)]=!0x0,this['id']=_0x45487c['id'],_0x26e0e1(0x1e1)in _0x45487c?this[_0x26e0e1(0x1ed)](_0x26e0e1(0x220),_0x45487c[_0x26e0e1(0x1e1)],!0x0):this[_0x26e0e1(0x1ed)](_0x26e0e1(0x220),'',!0x0);const _0x48e1a1=(await this[_0x26e0e1(0x1d6)][_0x26e0e1(0x1fe)]())[_0x26e0e1(0x21f)](_0x372d91=>_0x372d91['id'][_0x26e0e1(0x1e0)]()===_0x33ba6c[_0x26e0e1(0x1e0)]());return this[_0x26e0e1(0x218)]=_0x48e1a1,this[_0x26e0e1(0x1ed)](_0x26e0e1(0x1d8),{'selectedModel':_0x48e1a1,'isDisabled':!0x0}),await this[_0x26e0e1(0x229)](_0x341506,_0x47b183,_0x33ba6c),this[_0x26e0e1(0x232)]=void 0x0,this;}catch(_0x560ced){const _0x444f2e=new _0x3300af(_0x26e0e1(0x1e2),null,{'message':_0x560ced[_0x26e0e1(0x20b)],'conversationId':_0x36c71c});throw _0x444f2e[_0x26e0e1(0x205)]=_0x560ced[_0x26e0e1(0x205)],this[_0x26e0e1(0x1ed)](_0x26e0e1(0x22e),{'error':_0x444f2e}),_0x444f2e;}}async[_0x5d35bb(0x229)](_0x4a495f,_0x53e0b9,_0x30714e){const _0x36f756=_0x5d35bb;let _0xe2ec0a;for(const _0x5df7b4 of _0x4a495f)if(_0x36f756(0x244)===_0x5df7b4[_0x36f756(0x206)]){const _0x178eac=await this[_0x36f756(0x1d7)](_0x5df7b4),_0x54a69c={'isReasoningEnabled':Object[_0x36f756(0x20a)](_0x5df7b4[_0x36f756(0x1fb)],_0x36f756(0x21b)),'isWebSearchEnabled':Object[_0x36f756(0x20a)](_0x5df7b4[_0x36f756(0x1fb)],_0x36f756(0x1e4))};_0xe2ec0a=this[_0x36f756(0x217)]({'userMessage':_0x5df7b4[_0x36f756(0x1e5)],'contextItems':_0x178eac,'capabilities':_0x54a69c,'modelId':_0x30714e,'quickActionData':_0x5df7b4[_0x36f756(0x1d9)]?.[_0x36f756(0x1e3)]}),this[_0x36f756(0x232)]=_0xe2ec0a,this[_0x36f756(0x241)][_0x36f756(0x214)](this[_0x36f756(0x232)][_0x36f756(0x1dd)]);}else{if(_0x36f756(0x247)===_0x5df7b4[_0x36f756(0x206)]&&_0xe2ec0a)for(const _0x32daea of _0x5df7b4[_0x36f756(0x20f)]){const _0x26bf36=_0x36f756(0x1f6)===_0x32daea[_0x36f756(0x1ef)]?_0x36f756(0x230):_0x36f756(0x237),_0x3296cd=_0xe2ec0a[_0x36f756(0x224)]()?.[_0x36f756(0x201)]!==_0x53e0b9;_0xe2ec0a[_0x36f756(0x223)]=_0xe2ec0a[_0x36f756(0x200)]({'type':_0x26bf36,'isDone':!0x0,'interactionId':_0xe2ec0a['id'],'areActionsDisabled':_0x3296cd}),_0xe2ec0a[_0x36f756(0x223)][_0x36f756(0x1de)](_0x32daea[_0x36f756(0x20f)]);}}}async[_0x5d35bb(0x1d7)](_0x55963b){const _0x1aa94b=_0x5d35bb,_0x12e3d4=new Map();if(!_0x55963b[_0x1aa94b(0x20f)])return _0x12e3d4;for(const _0x578431 of _0x55963b[_0x1aa94b(0x20f)]){const _0x47df96=await this[_0x1aa94b(0x241)][_0x1aa94b(0x21d)](_0x578431);_0x47df96&&_0x12e3d4[_0x1aa94b(0x239)](_0x47df96['id'],_0x47df96);}return _0x12e3d4;}async[_0x5d35bb(0x208)]({userMessage:_0x10a9e1,quickActionData:_0x2b73fc}){const _0x4e1ca0=_0x5d35bb;if(!this[_0x4e1ca0(0x22d)])throw new _0x3300af(_0x4e1ca0(0x243),null,{'conversation':this});if(this[_0x4e1ca0(0x232)])throw new _0x3300af(_0x4e1ca0(0x1ea),null,{'conversation':this});try{const _0x49cdc6=this[_0x4e1ca0(0x241)][_0x4e1ca0(0x1f4)](),_0x2c8a44=this[_0x4e1ca0(0x238)][_0x4e1ca0(0x212)](),_0xe84670=this[_0x4e1ca0(0x218)]['id'];this[_0x4e1ca0(0x232)]=this[_0x4e1ca0(0x217)]({'userMessage':_0x10a9e1,'contextItems':_0x49cdc6,'capabilities':_0x2c8a44,'modelId':_0xe84670,'quickActionData':_0x2b73fc}),await this[_0x4e1ca0(0x232)][_0x4e1ca0(0x22c)](),this[_0x4e1ca0(0x241)][_0x4e1ca0(0x214)](this[_0x4e1ca0(0x232)][_0x4e1ca0(0x1dd)]);}catch(_0x41ee3a){this[_0x4e1ca0(0x1ed)](_0x4e1ca0(0x22e),{'interactionId':this[_0x4e1ca0(0x232)]?this[_0x4e1ca0(0x232)]['id']:void 0x0,'error':_0x41ee3a});}finally{this[_0x4e1ca0(0x232)]?.[_0x4e1ca0(0x20d)](),this[_0x4e1ca0(0x232)]=void 0x0;}}[_0x5d35bb(0x217)]({userMessage:_0x200ffc,contextItems:_0x325e04,capabilities:_0x112657,modelId:_0x50cfc5,quickActionData:_0xacbfd2}){const _0x4ba607=_0x5d35bb,_0x185a70=new _0x25023b({'userMessage':_0x200ffc,'contextItems':_0x325e04,'capabilities':_0x112657,'conversationId':this['id'],'connector':this[_0x4ba607(0x22f)],'editor':this[_0x4ba607(0x234)][_0x4ba607(0x207)]&&this[_0x4ba607(0x234)][_0x4ba607(0x207)](),'model':_0x50cfc5,'quickActionData':_0xacbfd2});return _0x185a70[_0x4ba607(0x20c)](..._0x3b86b1)['to'](this),this[_0x4ba607(0x1e8)][_0x4ba607(0x1df)](_0x185a70),this[_0x4ba607(0x1ed)](_0x4ba607(0x235),_0x185a70),_0x185a70;}[_0x5d35bb(0x1f3)](_0xdd2eae){const _0x5a0073=_0x5d35bb;return this[_0x5a0073(0x1e8)][_0x5a0073(0x21f)](_0x202802=>_0x202802['id']===_0xdd2eae);}[_0x5d35bb(0x23b)](_0x33d6c9){const _0x454a9b=_0x5d35bb,_0x2237e1=this[_0x454a9b(0x1f3)](_0x33d6c9);_0x2237e1&&(_0x2237e1[_0x454a9b(0x246)](),this[_0x454a9b(0x1e8)][_0x454a9b(0x1da)](this[_0x454a9b(0x1e8)][_0x454a9b(0x226)](_0x2237e1),0x1));}get[_0x5d35bb(0x20e)](){const _0x47d521=_0x5d35bb;return this[_0x47d521(0x1e8)][this[_0x47d521(0x1e8)][_0x47d521(0x1eb)]-0x1];}[_0x5d35bb(0x225)](_0x9d1b9){const _0x4dfdcc=_0x5d35bb;this[_0x4dfdcc(0x241)][_0x4dfdcc(0x225)](_0x9d1b9);}async[_0x5d35bb(0x1db)]({content:_0x526df1,version:_0x56b86a,sessionId:_0x376167,selections:_0x17a598}){const _0x3e8fb7=_0x5d35bb;await this[_0x3e8fb7(0x241)][_0x3e8fb7(0x1fd)](_0x526df1,_0x56b86a,_0x376167,_0x17a598);}[_0x5d35bb(0x1f7)](){const _0x3b1e58=_0x5d35bb;return this[_0x3b1e58(0x232)]?.[_0x3b1e58(0x224)]()?.[_0x3b1e58(0x20f)]||'';}[_0x5d35bb(0x1f8)](_0x387763){const _0x3e24cd=_0x5d35bb;this[_0x3e24cd(0x241)][_0x3e24cd(0x1f8)](_0x387763);}[_0x5d35bb(0x1ee)](){const _0x40f1f5=_0x5d35bb;this[_0x40f1f5(0x241)][_0x40f1f5(0x1ee)]();}[_0x5d35bb(0x231)](_0x170bc4){const _0x51e298=_0x5d35bb;this[_0x51e298(0x241)][_0x51e298(0x231)](_0x170bc4);}[_0x5d35bb(0x219)](_0x44f123){const _0x27f3ba=_0x5d35bb;this[_0x27f3ba(0x241)][_0x27f3ba(0x219)](_0x44f123);}[_0x5d35bb(0x245)](_0x559d7c,_0x14c6da){const _0x182730=_0x5d35bb;this[_0x182730(0x241)][_0x182730(0x245)](_0x559d7c,_0x14c6da);}[_0x5d35bb(0x210)](_0x4bfd2e,_0x348931,_0x5b2caf){const _0x5a9940=_0x5d35bb;return this[_0x5a9940(0x241)][_0x5a9940(0x210)](_0x4bfd2e,_0x348931,_0x5b2caf);}[_0x5d35bb(0x203)](_0x3c14c9){const _0xd1e15=_0x5d35bb;this[_0xd1e15(0x241)][_0xd1e15(0x203)](_0x3c14c9);}[_0x5d35bb(0x1dc)](){const _0x311bc7=_0x5d35bb;this[_0x311bc7(0x238)][_0x311bc7(0x1dc)]();}[_0x5d35bb(0x1d5)](){const _0xbf79d9=_0x5d35bb;this[_0xbf79d9(0x238)][_0xbf79d9(0x1d5)]();}[_0x5d35bb(0x23f)](){const _0x57007c=_0x5d35bb;return this[_0x57007c(0x241)][_0x57007c(0x23f)]();}[_0x5d35bb(0x211)](){const _0x41ad9a=_0x5d35bb;return this[_0x41ad9a(0x241)][_0x41ad9a(0x211)]();}[_0x5d35bb(0x1f0)](){const _0x564b50=_0x5d35bb;return this[_0x564b50(0x241)][_0x564b50(0x1f0)]();}async[_0x5d35bb(0x221)](_0x4e7125){const _0x391683=_0x5d35bb;_0x4e7125?!0x1===await this[_0x391683(0x1d6)][_0x391683(0x228)](_0x4e7125)&&(_0x4e7658(_0x391683(0x23c),{'conversation':this,'model':_0x4e7125}),_0x4e7125=(await this[_0x391683(0x1d6)][_0x391683(0x233)]())[0x0]):(_0x4e7658(_0x391683(0x209),{'conversation':this}),_0x4e7125=(await this[_0x391683(0x1d6)][_0x391683(0x233)]())[0x0]),_0x4e7125['id']!==this[_0x391683(0x218)]?.['id']&&(this[_0x391683(0x218)]=_0x4e7125,this[_0x391683(0x238)][_0x391683(0x23a)](),this[_0x391683(0x1ed)](_0x391683(0x1d8),{'selectedModel':_0x4e7125}));}}
23
+ const _0x3d8b17=_0x7e14;(function(_0x9f2140,_0x2a6829){const _0x40baaa=_0x7e14,_0x2fd8f1=_0x9f2140();while(!![]){try{const _0x141d9e=parseInt(_0x40baaa(0x18c))/0x1+parseInt(_0x40baaa(0x1b9))/0x2+-parseInt(_0x40baaa(0x1b2))/0x3*(parseInt(_0x40baaa(0x17d))/0x4)+-parseInt(_0x40baaa(0x19a))/0x5+-parseInt(_0x40baaa(0x189))/0x6*(parseInt(_0x40baaa(0x161))/0x7)+-parseInt(_0x40baaa(0x177))/0x8+parseInt(_0x40baaa(0x1aa))/0x9*(parseInt(_0x40baaa(0x15e))/0xa);if(_0x141d9e===_0x2a6829)break;else _0x2fd8f1['push'](_0x2fd8f1['shift']());}catch(_0x3b4eb3){_0x2fd8f1['push'](_0x2fd8f1['shift']());}}}(_0x50b5,0xbf467));function _0x50b5(){const _0x4de6f8=['updateCurrentDocument','isCurrentDocumentInContext','getConversation','modification-delta','destroy','3763730zDzJkO','sessionId','ai-chat-conversation-already-started','7ApVdRh','reset','startConversation','error','getAll','getInteraction','getDocumentContext','hasOwn','contextItems','chatCapabilities','model','_extractContextItems','attributes','isAvailable','lastInteraction','selectedModel','interactions','getCapabilitiesConfig','ai-chat-conversation-init-from-id-failed','ai-chat-handle-user-conversation-not-initialized','_processMessagesToInteractions','addFilesToContext','12489240xfEKkC','fire','group','indexOf','conversationInitialized','addUrlToContext','3988888wsyySR','conversationStarted','addSelectionToContext','getAvailableModels','ai-chat-conversation-set-model-null','createReply','removeInteraction','ai-chat-conversation-set-model-not-available','addResourceToContext','options','reasoning','text','5786448ETQuLt','ai-chat-conversation-start-failed','modelSelected','472397aUwLXN','stop','content','webSearch','getEditor','ai-chat-conversation-init-failed','delegate','getPendingContextItems','conversationId','message','appendContent','addToConversationContext','find','prompt','5632320XlGEPD','toggleWebSearch','isStarted','currentInteraction','loadSourceResources','ai-chat-handle-user-interaction-already-in-progress','toLowerCase','interactionCreated','currentReply','removeSelectionFromContext','createInteraction','init','quickActionData','capabilities','user','toggleReasoning','117hqVSGO','push','role','title','connector','set','isSelectionInContext','type','3kfqjYP','length','chatContext','load','isCurrentDocumentInConversation','updateCurrentDocumentInContext','text-delta','134932mXxBug','getCurrentDocumentContext','setModel','stack','chatModels','assistant','getModel','fetchConversationMessages','removeFromContext','selectedModelId','splice','ai-chat-conversation-start-no-model-selected','handleUserInteraction','getMessages','setConversationTitle','start','populateFromMessage','fetchConversation','addCurrentDocumentToContext'];_0x50b5=function(){return _0x4de6f8;};return _0x50b5();}import{CKEditorError as _0x5cd399,EmitterMixin as _0x4ccff6,logWarning as _0x4c944b}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x4b5fbe}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x31de19,AI_CONTEXT_MODEL_EVENT_NAMES as _0x8b9e8b}from'./aichatcontext.js';function _0x7e14(_0x19fbe8,_0x7e7b06){const _0x50b520=_0x50b5();return _0x7e14=function(_0x7e14e7,_0x4ed6ee){_0x7e14e7=_0x7e14e7-0x147;let _0x39d9fd=_0x50b520[_0x7e14e7];return _0x39d9fd;},_0x7e14(_0x19fbe8,_0x7e7b06);}import{AICapabilities as _0x1f24d1,CAPABILITIES_MODEL_EVENT_NAMES as _0x5b0eb5}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x111896}from'./aichatinteraction.js';export class AIChatConversation extends _0x4ccff6(){['id'];[_0x3d8b17(0x19c)]=!0x1;[_0x3d8b17(0x171)]=[];[_0x3d8b17(0x19d)];[_0x3d8b17(0x170)];[_0x3d8b17(0x1ae)];[_0x3d8b17(0x186)];constructor(_0x530b0f){const _0x4ac02a=_0x3d8b17;super(),this[_0x4ac02a(0x186)]=_0x530b0f,this[_0x4ac02a(0x1ae)]=_0x530b0f[_0x4ac02a(0x1ae)],this[_0x4ac02a(0x14a)]=_0x530b0f[_0x4ac02a(0x14a)],this['id']=_0x530b0f[_0x4ac02a(0x194)];}async[_0x3d8b17(0x1a5)](_0x16b680){const _0x1b6bea=_0x3d8b17;try{this[_0x1b6bea(0x1b4)]=new _0x31de19({'connector':this[_0x1b6bea(0x1ae)],'config':_0x16b680,'ownerId':this['id']}),this[_0x1b6bea(0x1b4)][_0x1b6bea(0x192)](..._0x8b9e8b)['to'](this),this[_0x1b6bea(0x1b4)][_0x1b6bea(0x1a5)](),this[_0x1b6bea(0x16a)]=new _0x1f24d1(),this[_0x1b6bea(0x16a)][_0x1b6bea(0x192)](..._0x5b0eb5)['to'](this),this[_0x1b6bea(0x16a)][_0x1b6bea(0x1a5)]();const _0x2c2c5b=await this[_0x1b6bea(0x14a)][_0x1b6bea(0x180)]();this[_0x1b6bea(0x178)](_0x1b6bea(0x17b),{'availableModels':_0x2c2c5b});const _0x25fc41=await this[_0x1b6bea(0x14a)][_0x1b6bea(0x14c)](this[_0x1b6bea(0x186)][_0x1b6bea(0x14f)]);_0x25fc41&&await this[_0x1b6bea(0x148)](_0x25fc41);}catch(_0x443ec2){const _0x4e0f8c=new _0x5cd399(_0x1b6bea(0x191),null,{'message':_0x443ec2[_0x1b6bea(0x195)]});_0x4e0f8c[_0x1b6bea(0x149)]=_0x443ec2[_0x1b6bea(0x149)],this[_0x1b6bea(0x178)](_0x1b6bea(0x164),{'error':_0x4e0f8c});}}async[_0x3d8b17(0x155)](){const _0x5865d5=_0x3d8b17;if(this[_0x5865d5(0x19c)])throw new _0x5cd399(_0x5865d5(0x160),null,{'conversation':this});if(!this[_0x5865d5(0x170)])throw new _0x5cd399(_0x5865d5(0x151),null,{'conversation':this});try{const {id:_0x3fbd63}=await this[_0x5865d5(0x1ae)][_0x5865d5(0x163)](this['id'],this[_0x5865d5(0x186)][_0x5865d5(0x179)])[_0x5865d5(0x15b)]();this['id']=_0x3fbd63,this[_0x5865d5(0x19c)]=!0x0,this[_0x5865d5(0x178)](_0x5865d5(0x17e),{'conversationId':this['id'],'selectedModel':this[_0x5865d5(0x170)]});}catch(_0x22f4a1){const _0x3476d6=new _0x5cd399(_0x5865d5(0x18a),null,{'message':_0x22f4a1[_0x5865d5(0x195)]});_0x3476d6[_0x5865d5(0x149)]=_0x22f4a1[_0x5865d5(0x149)],this[_0x5865d5(0x178)](_0x5865d5(0x164),{'error':_0x3476d6});}}async[_0x3d8b17(0x1b5)](_0x24df5c,_0x2e77e9){const _0x345c31=_0x3d8b17;try{const _0x3c8dfc=await this[_0x345c31(0x1ae)][_0x345c31(0x157)](_0x24df5c)[_0x345c31(0x15b)](),_0x3bfa42=await this[_0x345c31(0x1ae)][_0x345c31(0x14d)](_0x24df5c)[_0x345c31(0x153)](),_0x45ab4a=_0x3bfa42[0x0][_0x345c31(0x16b)];this[_0x345c31(0x19c)]=!0x0,this['id']=_0x3c8dfc['id'],_0x345c31(0x1ad)in _0x3c8dfc?this[_0x345c31(0x178)](_0x345c31(0x154),_0x3c8dfc[_0x345c31(0x1ad)],!0x0):this[_0x345c31(0x178)](_0x345c31(0x154),'',!0x0);const _0x4d7892=(await this[_0x345c31(0x14a)][_0x345c31(0x165)]())[_0x345c31(0x198)](_0x39ca9a=>_0x39ca9a['id'][_0x345c31(0x1a0)]()===_0x45ab4a[_0x345c31(0x1a0)]());return this[_0x345c31(0x170)]=_0x4d7892,this[_0x345c31(0x178)](_0x345c31(0x18b),{'selectedModel':_0x4d7892,'isDisabled':!0x0}),await this[_0x345c31(0x175)](_0x3bfa42,_0x2e77e9,_0x45ab4a),this[_0x345c31(0x19d)]=void 0x0,this;}catch(_0x4a4d42){const _0x133d11=new _0x5cd399(_0x345c31(0x173),null,{'message':_0x4a4d42[_0x345c31(0x195)],'conversationId':_0x24df5c});throw _0x133d11[_0x345c31(0x149)]=_0x4a4d42[_0x345c31(0x149)],this[_0x345c31(0x178)](_0x345c31(0x164),{'error':_0x133d11}),_0x133d11;}}async[_0x3d8b17(0x175)](_0x5c76b8,_0x4929ea,_0x267c2c){const _0x5d4ffb=_0x3d8b17;let _0x202122;for(const _0x39d162 of _0x5c76b8)if(_0x5d4ffb(0x1a8)===_0x39d162[_0x5d4ffb(0x1ac)]){const _0x4f1e05=await this[_0x5d4ffb(0x16c)](_0x39d162),_0x38fbdd={'isReasoningEnabled':Object[_0x5d4ffb(0x168)](_0x39d162[_0x5d4ffb(0x1a7)],_0x5d4ffb(0x187)),'isWebSearchEnabled':Object[_0x5d4ffb(0x168)](_0x39d162[_0x5d4ffb(0x1a7)],_0x5d4ffb(0x18f))};_0x202122=this[_0x5d4ffb(0x1a4)]({'userMessage':_0x39d162[_0x5d4ffb(0x199)],'contextItems':_0x4f1e05,'capabilities':_0x38fbdd,'modelId':_0x267c2c,'quickActionData':_0x39d162[_0x5d4ffb(0x16d)]?.[_0x5d4ffb(0x1a6)]}),this[_0x5d4ffb(0x19d)]=_0x202122,this[_0x5d4ffb(0x1b4)][_0x5d4ffb(0x197)](this[_0x5d4ffb(0x19d)][_0x5d4ffb(0x169)]);}else{if(_0x5d4ffb(0x14b)===_0x39d162[_0x5d4ffb(0x1ac)]&&_0x202122)for(const _0x21e6cc of _0x39d162[_0x5d4ffb(0x18e)]){const _0x468299=_0x5d4ffb(0x188)===_0x21e6cc[_0x5d4ffb(0x1b1)]?_0x5d4ffb(0x1b8):_0x5d4ffb(0x15c),_0x274bfb=_0x202122[_0x5d4ffb(0x167)]()?.[_0x5d4ffb(0x15f)]!==_0x4929ea;_0x202122[_0x5d4ffb(0x1a2)]=_0x202122[_0x5d4ffb(0x182)]({'type':_0x468299,'isDone':!0x0,'interactionId':_0x202122['id'],'areActionsDisabled':_0x274bfb}),_0x202122[_0x5d4ffb(0x1a2)][_0x5d4ffb(0x196)](_0x21e6cc[_0x5d4ffb(0x18e)]);}}}async[_0x3d8b17(0x16c)](_0x2a36be){const _0x5949fb=_0x3d8b17,_0x2248ab=new Map();if(!_0x2a36be[_0x5949fb(0x18e)])return _0x2248ab;for(const _0x13bc13 of _0x2a36be[_0x5949fb(0x18e)]){const _0x123321=await this[_0x5949fb(0x1b4)][_0x5949fb(0x156)](_0x13bc13);_0x123321&&_0x2248ab[_0x5949fb(0x1af)](_0x123321['id'],_0x123321);}return _0x2248ab;}async[_0x3d8b17(0x152)]({userMessage:_0x18d782,quickActionData:_0x39c718}){const _0x5024b4=_0x3d8b17;if(!this[_0x5024b4(0x19c)])throw new _0x5cd399(_0x5024b4(0x174),null,{'conversation':this});if(this[_0x5024b4(0x19d)])throw new _0x5cd399(_0x5024b4(0x19f),null,{'conversation':this});try{const _0x1b0a41=this[_0x5024b4(0x1b4)][_0x5024b4(0x193)](),_0x473d15=this[_0x5024b4(0x16a)][_0x5024b4(0x172)](),_0x48d51c=this[_0x5024b4(0x170)]['id'];this[_0x5024b4(0x19d)]=this[_0x5024b4(0x1a4)]({'userMessage':_0x18d782,'contextItems':_0x1b0a41,'capabilities':_0x473d15,'modelId':_0x48d51c,'quickActionData':_0x39c718}),await this[_0x5024b4(0x19d)][_0x5024b4(0x155)](),this[_0x5024b4(0x1b4)][_0x5024b4(0x197)](this[_0x5024b4(0x19d)][_0x5024b4(0x169)]);}catch(_0xf05fc5){this[_0x5024b4(0x178)](_0x5024b4(0x164),{'interactionId':this[_0x5024b4(0x19d)]?this[_0x5024b4(0x19d)]['id']:void 0x0,'error':_0xf05fc5});}finally{this[_0x5024b4(0x19d)]?.[_0x5024b4(0x18d)](),this[_0x5024b4(0x19d)]=void 0x0;}}[_0x3d8b17(0x1a4)]({userMessage:_0x782412,contextItems:_0x586aed,capabilities:_0x531c49,modelId:_0x523ddc,quickActionData:_0x475e31}){const _0x52011b=_0x3d8b17,_0x303b67=new _0x111896({'userMessage':_0x782412,'contextItems':_0x586aed,'capabilities':_0x531c49,'conversationId':this['id'],'connector':this[_0x52011b(0x1ae)],'editor':this[_0x52011b(0x186)][_0x52011b(0x190)]&&this[_0x52011b(0x186)][_0x52011b(0x190)](),'model':_0x523ddc,'quickActionData':_0x475e31});return _0x303b67[_0x52011b(0x192)](..._0x4b5fbe)['to'](this),this[_0x52011b(0x171)][_0x52011b(0x1ab)](_0x303b67),this[_0x52011b(0x178)](_0x52011b(0x1a1),_0x303b67),_0x303b67;}[_0x3d8b17(0x166)](_0x527be4){const _0x42d38a=_0x3d8b17;return this[_0x42d38a(0x171)][_0x42d38a(0x198)](_0x56a59b=>_0x56a59b['id']===_0x527be4);}[_0x3d8b17(0x183)](_0x5a42f2){const _0x5e79f8=_0x3d8b17,_0x55fc1a=this[_0x5e79f8(0x166)](_0x5a42f2);_0x55fc1a&&(_0x55fc1a[_0x5e79f8(0x15d)](),this[_0x5e79f8(0x171)][_0x5e79f8(0x150)](this[_0x5e79f8(0x171)][_0x5e79f8(0x17a)](_0x55fc1a),0x1));}get[_0x3d8b17(0x16f)](){const _0x1fbc8e=_0x3d8b17;return this[_0x1fbc8e(0x171)][this[_0x1fbc8e(0x171)][_0x1fbc8e(0x1b3)]-0x1];}[_0x3d8b17(0x158)](_0x17f94d){const _0x2c37f8=_0x3d8b17;this[_0x2c37f8(0x1b4)][_0x2c37f8(0x158)](_0x17f94d);}async[_0x3d8b17(0x1b7)]({content:_0x36b959,version:_0x58b395,sessionId:_0x584c71,selections:_0x4681fe}){const _0x9ee41a=_0x3d8b17;await this[_0x9ee41a(0x1b4)][_0x9ee41a(0x159)](_0x36b959,_0x58b395,_0x584c71,_0x4681fe);}[_0x3d8b17(0x147)](){const _0xc1b83b=_0x3d8b17;return this[_0xc1b83b(0x19d)]?.[_0xc1b83b(0x167)]()?.[_0xc1b83b(0x18e)]||'';}[_0x3d8b17(0x17f)](_0x14b905){const _0x2ec0eb=_0x3d8b17;this[_0x2ec0eb(0x1b4)][_0x2ec0eb(0x17f)](_0x14b905);}[_0x3d8b17(0x1a3)](){const _0x43b5f9=_0x3d8b17;this[_0x43b5f9(0x1b4)][_0x43b5f9(0x1a3)]();}[_0x3d8b17(0x176)](_0x3422ef){const _0x425e63=_0x3d8b17;this[_0x425e63(0x1b4)][_0x425e63(0x176)](_0x3422ef);}[_0x3d8b17(0x17c)](_0x37ec73){const _0x17d899=_0x3d8b17;this[_0x17d899(0x1b4)][_0x17d899(0x17c)](_0x37ec73);}[_0x3d8b17(0x185)](_0x15be05,_0x383728){const _0x18e68a=_0x3d8b17;this[_0x18e68a(0x1b4)][_0x18e68a(0x185)](_0x15be05,_0x383728);}[_0x3d8b17(0x19e)](_0x2c27c6,_0x4afe9c,_0x3fee95){const _0xa7980a=_0x3d8b17;return this[_0xa7980a(0x1b4)][_0xa7980a(0x19e)](_0x2c27c6,_0x4afe9c,_0x3fee95);}[_0x3d8b17(0x14e)](_0x216de7){const _0x5ee816=_0x3d8b17;this[_0x5ee816(0x1b4)][_0x5ee816(0x14e)](_0x216de7);}[_0x3d8b17(0x19b)](){const _0x5be922=_0x3d8b17;this[_0x5be922(0x16a)][_0x5be922(0x19b)]();}[_0x3d8b17(0x1a9)](){const _0x562973=_0x3d8b17;this[_0x562973(0x16a)][_0x562973(0x1a9)]();}[_0x3d8b17(0x15a)](){const _0xc27dc0=_0x3d8b17;return this[_0xc27dc0(0x1b4)][_0xc27dc0(0x15a)]();}[_0x3d8b17(0x1b6)](){const _0x2c99ba=_0x3d8b17;return this[_0x2c99ba(0x1b4)][_0x2c99ba(0x1b6)]();}[_0x3d8b17(0x1b0)](){const _0x51e7d3=_0x3d8b17;return this[_0x51e7d3(0x1b4)][_0x51e7d3(0x1b0)]();}async[_0x3d8b17(0x148)](_0x10f5be){const _0xd154db=_0x3d8b17;_0x10f5be?!0x1===await this[_0xd154db(0x14a)][_0xd154db(0x16e)](_0x10f5be)&&(_0x4c944b(_0xd154db(0x184),{'conversation':this,'model':_0x10f5be}),_0x10f5be=(await this[_0xd154db(0x14a)][_0xd154db(0x180)]())[0x0]):(_0x4c944b(_0xd154db(0x181),{'conversation':this}),_0x10f5be=(await this[_0xd154db(0x14a)][_0xd154db(0x180)]())[0x0]),_0x10f5be['id']!==this[_0xd154db(0x170)]?.['id']&&(this[_0xd154db(0x170)]=_0x10f5be,this[_0xd154db(0x16a)][_0xd154db(0x162)](),this[_0xd154db(0x178)](_0xd154db(0x18b),{'selectedModel':_0x10f5be}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1659a6=_0x6fd5;(function(_0x2f59eb,_0x2a2ff6){var _0x463d84=_0x6fd5,_0x4c2b52=_0x2f59eb();while(!![]){try{var _0x230df3=parseInt(_0x463d84(0xdd))/0x1+-parseInt(_0x463d84(0xd4))/0x2*(parseInt(_0x463d84(0xd0))/0x3)+parseInt(_0x463d84(0xcd))/0x4+-parseInt(_0x463d84(0xdb))/0x5*(-parseInt(_0x463d84(0xcf))/0x6)+parseInt(_0x463d84(0xe0))/0x7*(parseInt(_0x463d84(0xda))/0x8)+-parseInt(_0x463d84(0xd1))/0x9+parseInt(_0x463d84(0xd8))/0xa*(parseInt(_0x463d84(0xce))/0xb);if(_0x230df3===_0x2a2ff6)break;else _0x4c2b52['push'](_0x4c2b52['shift']());}catch(_0x18439e){_0x4c2b52['push'](_0x4c2b52['shift']());}}}(_0x4e97,0x9f425));function _0x4e97(){var _0x3c18d3=['2718tLVwbf','3219693gWONsb','7514352SlBcUt','contextItems','quickActionData','2QVMpeU','getCapabilitiesRequestData','conversationId','queryAssistant','10309190kopbwz','capabilities','1168mHRAyv','4745fRdStM','current-document','59393WVxyZC','connector','sendRequest','25018rwrhID','get','getDocumentContext','mapContextItemsToRequestData','userMessage','model','2073884QGHgqq','11Yaqiwk'];_0x4e97=function(){return _0x3c18d3;};return _0x4e97();}import{AICapabilities as _0x18d4e3}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x4af503}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x2f3be7}from'./aichatcontext.js';function _0x6fd5(_0x47b483,_0xe5db34){var _0x4e978c=_0x4e97();return _0x6fd5=function(_0x6fd5f1,_0x2d3990){_0x6fd5f1=_0x6fd5f1-0xc8;var _0x49a989=_0x4e978c[_0x6fd5f1];return _0x49a989;},_0x6fd5(_0x47b483,_0xe5db34);}export class AIChatInteraction extends _0x4af503{[_0x1659a6(0xcb)];[_0x1659a6(0xd6)];[_0x1659a6(0xd2)]=new Map();[_0x1659a6(0xcc)];[_0x1659a6(0xd3)];constructor(_0x32f4af){var _0x3c2b57=_0x1659a6;super(_0x32f4af),this[_0x3c2b57(0xd6)]=_0x32f4af[_0x3c2b57(0xd6)],this[_0x3c2b57(0xd2)]=_0x32f4af[_0x3c2b57(0xd2)],this[_0x3c2b57(0xd9)]=_0x32f4af[_0x3c2b57(0xd9)],this[_0x3c2b57(0xcb)]=_0x32f4af[_0x3c2b57(0xcb)],this[_0x3c2b57(0xcc)]=_0x32f4af[_0x3c2b57(0xcc)],this[_0x3c2b57(0xd3)]=_0x32f4af[_0x3c2b57(0xd3)];}async[_0x1659a6(0xdf)](){var _0x197ded=_0x1659a6;return this[_0x197ded(0xde)][_0x197ded(0xd7)]({'message':this[_0x197ded(0xcb)],'conversationId':this[_0x197ded(0xd6)],'parts':_0x2f3be7[_0x197ded(0xca)](this[_0x197ded(0xd2)]),'capabilities':_0x18d4e3[_0x197ded(0xd5)](this[_0x197ded(0xd9)]),'model':this[_0x197ded(0xcc)],'quickActionData':this[_0x197ded(0xd3)]});}[_0x1659a6(0xc9)](){var _0x56cc63=_0x1659a6;return this[_0x56cc63(0xd2)][_0x56cc63(0xc8)](_0x56cc63(0xdc));}}
23
+ var _0x205777=_0x4ae5;function _0x3a9e(){var _0xb7d563=['queryAssistant','mapContextItemsToRequestData','2959380zNuvwn','conversationId','sendRequest','current-document','quickActionData','contextItems','capabilities','433650aniTuR','get','getCapabilitiesRequestData','738594GRjSOe','2514RXaIVX','537HOKjSV','connector','16637710MjsvTe','165328WkDVrQ','getDocumentContext','model','userMessage','634QDEZLP','273kwUEWp','7880vqAhUh'];_0x3a9e=function(){return _0xb7d563;};return _0x3a9e();}function _0x4ae5(_0x384667,_0x325797){var _0x3a9ed5=_0x3a9e();return _0x4ae5=function(_0x4ae585,_0x350d67){_0x4ae585=_0x4ae585-0x178;var _0x2fc83d=_0x3a9ed5[_0x4ae585];return _0x2fc83d;},_0x4ae5(_0x384667,_0x325797);}(function(_0x281007,_0x9032df){var _0x2ec7ac=_0x4ae5,_0x264fa5=_0x281007();while(!![]){try{var _0x2cc064=-parseInt(_0x2ec7ac(0x17d))/0x1+-parseInt(_0x2ec7ac(0x189))/0x2*(-parseInt(_0x2ec7ac(0x182))/0x3)+-parseInt(_0x2ec7ac(0x18e))/0x4+parseInt(_0x2ec7ac(0x18b))/0x5*(parseInt(_0x2ec7ac(0x181))/0x6)+-parseInt(_0x2ec7ac(0x18a))/0x7*(parseInt(_0x2ec7ac(0x185))/0x8)+parseInt(_0x2ec7ac(0x180))/0x9+parseInt(_0x2ec7ac(0x184))/0xa;if(_0x2cc064===_0x9032df)break;else _0x264fa5['push'](_0x264fa5['shift']());}catch(_0x255902){_0x264fa5['push'](_0x264fa5['shift']());}}}(_0x3a9e,0x7607f));import{AICapabilities as _0xa67426}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x4be0fd}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x57ebc4}from'./aichatcontext.js';export class AIChatInteraction extends _0x4be0fd{[_0x205777(0x188)];[_0x205777(0x18f)];[_0x205777(0x17b)]=new Map();[_0x205777(0x187)];[_0x205777(0x17a)];constructor(_0x402985){var _0x481f25=_0x205777;super(_0x402985),this[_0x481f25(0x18f)]=_0x402985[_0x481f25(0x18f)],this[_0x481f25(0x17b)]=_0x402985[_0x481f25(0x17b)],this[_0x481f25(0x17c)]=_0x402985[_0x481f25(0x17c)],this[_0x481f25(0x188)]=_0x402985[_0x481f25(0x188)],this[_0x481f25(0x187)]=_0x402985[_0x481f25(0x187)],this[_0x481f25(0x17a)]=_0x402985[_0x481f25(0x17a)];}async[_0x205777(0x178)](){var _0x2a4ce6=_0x205777;return this[_0x2a4ce6(0x183)][_0x2a4ce6(0x18c)]({'message':this[_0x2a4ce6(0x188)],'conversationId':this[_0x2a4ce6(0x18f)],'parts':_0x57ebc4[_0x2a4ce6(0x18d)](this[_0x2a4ce6(0x17b)]),'capabilities':_0xa67426[_0x2a4ce6(0x17f)](this[_0x2a4ce6(0x17c)]),'model':this[_0x2a4ce6(0x187)],'quickActionData':this[_0x2a4ce6(0x17a)]});}[_0x205777(0x186)](){var _0x188ad3=_0x205777;return this[_0x188ad3(0x17b)][_0x188ad3(0x17e)](_0x188ad3(0x179));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x495f61=_0x55d1;function _0x55d1(_0x15fa8e,_0x280ce3){const _0x1cafa5=_0x1caf();return _0x55d1=function(_0x55d141,_0x15c2ee){_0x55d141=_0x55d141-0x18e;let _0x177df1=_0x1cafa5[_0x55d141];return _0x177df1;},_0x55d1(_0x15fa8e,_0x280ce3);}(function(_0x149775,_0x401a69){const _0x4dd1dc=_0x55d1,_0x16976a=_0x149775();while(!![]){try{const _0x44d340=parseInt(_0x4dd1dc(0x1a9))/0x1+-parseInt(_0x4dd1dc(0x191))/0x2*(parseInt(_0x4dd1dc(0x1a7))/0x3)+-parseInt(_0x4dd1dc(0x1ab))/0x4+-parseInt(_0x4dd1dc(0x1a0))/0x5*(-parseInt(_0x4dd1dc(0x19f))/0x6)+parseInt(_0x4dd1dc(0x19b))/0x7+-parseInt(_0x4dd1dc(0x1af))/0x8+parseInt(_0x4dd1dc(0x1b4))/0x9;if(_0x44d340===_0x401a69)break;else _0x16976a['push'](_0x16976a['shift']());}catch(_0x1df173){_0x16976a['push'](_0x16976a['shift']());}}}(_0x1caf,0x5c332));function _0x1caf(){const _0x95bd72=['ai-chat-model-id-unrecognized','push','_modelList','3mHbPVU','name','740990fCLaas','provider','2248552xGmbtO','startsWith','map','_displayedModels','1726096SMvdrZ','_connector','getModels','values','list','1090629emZBVz','capabilities','toLocaleLowerCase','some','427106dsxuGg','find','getAll','sort','enabled','items','length','isAvailable','getAvailableModels','ai-chat-default-model-id-unrecognized','2927596RQoPpH','_defaultModelId','filter','getDefault','38016JdOBIi','70otjzcm','getModel','string','_filterModels'];_0x1caf=function(){return _0x95bd72;};return _0x1caf();}import{EmitterMixin as _0x4cce7e,logWarning as _0x2ddb62}from'ckeditor5/src/utils.js';export class AIChatModels extends _0x4cce7e(){[_0x495f61(0x1a6)]=[];[_0x495f61(0x1b0)];[_0x495f61(0x1ae)];[_0x495f61(0x19c)];constructor({connector:_0x1d3a4b,displayedModels:_0x166a32,defaultModelId:_0x40abc1}){const _0x13f712=_0x495f61;super(),this[_0x13f712(0x1b0)]=_0x1d3a4b,this[_0x13f712(0x1ae)]=_0x166a32,this[_0x13f712(0x19c)]=_0x40abc1;}async[_0x495f61(0x193)](){const _0x5b838e=_0x495f61;if(!this[_0x5b838e(0x1a6)][_0x5b838e(0x197)]){const _0x392a87=this[_0x5b838e(0x1b0)][_0x5b838e(0x1b1)](),_0x384eea=(await _0x392a87[_0x5b838e(0x1b3)]())[_0x5b838e(0x196)][_0x5b838e(0x194)]((_0x1c69a8,_0x1a853c)=>{const _0x739fa6=_0x5b838e,_0x22680a=Object[_0x739fa6(0x1b2)](_0x1c69a8[_0x739fa6(0x18e)])[_0x739fa6(0x19d)](_0xa93e7=>_0xa93e7[_0x739fa6(0x195)])[_0x739fa6(0x197)];return Object[_0x739fa6(0x1b2)](_0x1a853c[_0x739fa6(0x18e)])[_0x739fa6(0x19d)](_0x42513a=>_0x42513a[_0x739fa6(0x195)])[_0x739fa6(0x197)]-_0x22680a;});this[_0x5b838e(0x1a6)]=_0x384eea;}return this[_0x5b838e(0x1a6)];}async[_0x495f61(0x199)](){const _0x114a98=_0x495f61,_0x4ed99c=await this[_0x114a98(0x193)]();return this[_0x114a98(0x1a3)](_0x4ed99c,this[_0x114a98(0x1ae)]);}async[_0x495f61(0x1a1)](_0x338bca){const _0x2990dd=_0x495f61,_0x3f1985=await this[_0x2990dd(0x193)]();if(!_0x3f1985[_0x2990dd(0x197)])return null;if(_0x338bca){const _0x3abc62=_0x3f1985[_0x2990dd(0x192)](_0x1d9ad9=>_0x1d9ad9['id']===_0x338bca);if(_0x3abc62)return _0x3abc62;_0x2ddb62(_0x2990dd(0x1a4),{'modelId':_0x338bca,'fallBackModelId':this[_0x2990dd(0x19c)]});}return this[_0x2990dd(0x19e)]();}async[_0x495f61(0x19e)](){const _0x394a8a=_0x495f61,_0x64ea56=await this[_0x394a8a(0x199)]();if(!_0x64ea56[_0x394a8a(0x197)])return null;if(this[_0x394a8a(0x19c)]){const _0x3a4398=_0x64ea56[_0x394a8a(0x192)](_0xa0928=>_0xa0928['id']===this[_0x394a8a(0x19c)]);if(_0x3a4398)return _0x3a4398;_0x2ddb62(_0x394a8a(0x19a),{'defaultModelId':this[_0x394a8a(0x19c)],'fallBackModelId':_0x64ea56[0x0]['id']});}return _0x64ea56[0x0];}async[_0x495f61(0x198)](_0x1fc33b){const _0x5c2819=_0x495f61;return(await this[_0x5c2819(0x199)]())[_0x5c2819(0x190)](_0x1bbb59=>_0x1bbb59[_0x5c2819(0x1a8)]===_0x1fc33b[_0x5c2819(0x1a8)]&&_0x1bbb59[_0x5c2819(0x1aa)]===_0x1fc33b[_0x5c2819(0x1aa)]);}[_0x495f61(0x1a3)](_0x2aeb0e,_0x13ded0){const _0x398eda=_0x495f61;let _0x299bf0;if(_0x13ded0){_0x299bf0=[];const _0x5339fc=_0x398eda(0x1a2)==typeof _0x13ded0?[_0x13ded0[_0x398eda(0x18f)]()]:_0x13ded0[_0x398eda(0x1ad)](_0xf69cf3=>_0xf69cf3[_0x398eda(0x18f)]());for(const _0x4187ba of _0x5339fc)for(const _0x279b38 of _0x2aeb0e)(_0x279b38['id'][_0x398eda(0x18f)]()===_0x4187ba||_0x279b38[_0x398eda(0x1a8)][_0x398eda(0x18f)]()===_0x4187ba||_0x279b38[_0x398eda(0x1aa)][_0x398eda(0x18f)]()===_0x4187ba||_0x279b38['id'][_0x398eda(0x18f)]()[_0x398eda(0x1ac)](_0x4187ba))&&_0x299bf0[_0x398eda(0x1a5)](_0x279b38);}else _0x299bf0=_0x2aeb0e;return _0x299bf0;}}
23
+ const _0x1fd068=_0x3d24;function _0x5b0a(){const _0x1d14a9=['getModels','toLocaleLowerCase','getAll','find','startsWith','5415096sPkOYa','length','247667DgrrbE','provider','name','list','ai-chat-model-id-unrecognized','_filterModels','10876455LJUZGE','getDefault','2174658xTWRPW','5NHorOR','15587BXHzwn','_connector','getAvailableModels','isAvailable','sort','_defaultModelId','capabilities','3008986Diilps','getModel','_modelList','1323124LPIheg','ai-chat-default-model-id-unrecognized','1NbaafF','_displayedModels','string','enabled','some','368gAPYFn','push','items','map','values','filter','5980GKXMVy'];_0x5b0a=function(){return _0x1d14a9;};return _0x5b0a();}(function(_0x17d798,_0x23c7cf){const _0x11974e=_0x3d24,_0x47a197=_0x17d798();while(!![]){try{const _0x48e8d5=parseInt(_0x11974e(0x131))/0x1*(-parseInt(_0x11974e(0x12c))/0x2)+parseInt(_0x11974e(0x123))/0x3+parseInt(_0x11974e(0x12f))/0x4*(parseInt(_0x11974e(0x124))/0x5)+parseInt(_0x11974e(0x119))/0x6+-parseInt(_0x11974e(0x11b))/0x7*(parseInt(_0x11974e(0x136))/0x8)+parseInt(_0x11974e(0x121))/0x9+parseInt(_0x11974e(0x13c))/0xa*(parseInt(_0x11974e(0x125))/0xb);if(_0x48e8d5===_0x23c7cf)break;else _0x47a197['push'](_0x47a197['shift']());}catch(_0x587686){_0x47a197['push'](_0x47a197['shift']());}}}(_0x5b0a,0xd7569));function _0x3d24(_0x47607a,_0x3d1b17){const _0x5b0a56=_0x5b0a();return _0x3d24=function(_0x3d243d,_0x15c2c4){_0x3d243d=_0x3d243d-0x116;let _0x4090f4=_0x5b0a56[_0x3d243d];return _0x4090f4;},_0x3d24(_0x47607a,_0x3d1b17);}import{EmitterMixin as _0x1941d7,logWarning as _0x1194ae}from'ckeditor5/src/utils.js';export class AIChatModels extends _0x1941d7(){[_0x1fd068(0x12e)]=[];[_0x1fd068(0x126)];[_0x1fd068(0x132)];[_0x1fd068(0x12a)];constructor({connector:_0x182c38,displayedModels:_0x570a39,defaultModelId:_0x267b46}){const _0xf7bb9b=_0x1fd068;super(),this[_0xf7bb9b(0x126)]=_0x182c38,this[_0xf7bb9b(0x132)]=_0x570a39,this[_0xf7bb9b(0x12a)]=_0x267b46;}async[_0x1fd068(0x116)](){const _0xc09729=_0x1fd068;if(!this[_0xc09729(0x12e)][_0xc09729(0x11a)]){const _0x9e512=this[_0xc09729(0x126)][_0xc09729(0x13d)](),_0x5d3bce=(await _0x9e512[_0xc09729(0x11e)]())[_0xc09729(0x138)][_0xc09729(0x129)]((_0x272c06,_0xbea1b0)=>{const _0xe0d767=_0xc09729,_0x468ffa=Object[_0xe0d767(0x13a)](_0x272c06[_0xe0d767(0x12b)])[_0xe0d767(0x13b)](_0x12866a=>_0x12866a[_0xe0d767(0x134)])[_0xe0d767(0x11a)];return Object[_0xe0d767(0x13a)](_0xbea1b0[_0xe0d767(0x12b)])[_0xe0d767(0x13b)](_0x334329=>_0x334329[_0xe0d767(0x134)])[_0xe0d767(0x11a)]-_0x468ffa;});this[_0xc09729(0x12e)]=_0x5d3bce;}return this[_0xc09729(0x12e)];}async[_0x1fd068(0x127)](){const _0x19c36e=_0x1fd068,_0xcaeedb=await this[_0x19c36e(0x116)]();return this[_0x19c36e(0x120)](_0xcaeedb,this[_0x19c36e(0x132)]);}async[_0x1fd068(0x12d)](_0x23cf3f){const _0x340084=_0x1fd068,_0x5d2f0d=await this[_0x340084(0x116)]();if(!_0x5d2f0d[_0x340084(0x11a)])return null;if(_0x23cf3f){const _0x2d0c92=_0x5d2f0d[_0x340084(0x117)](_0x271d2e=>_0x271d2e['id']===_0x23cf3f);if(_0x2d0c92)return _0x2d0c92;_0x1194ae(_0x340084(0x11f),{'modelId':_0x23cf3f,'fallBackModelId':this[_0x340084(0x12a)]});}return this[_0x340084(0x122)]();}async[_0x1fd068(0x122)](){const _0x542c5a=_0x1fd068,_0x43fcdc=await this[_0x542c5a(0x127)]();if(!_0x43fcdc[_0x542c5a(0x11a)])return null;if(this[_0x542c5a(0x12a)]){const _0x1cf38f=_0x43fcdc[_0x542c5a(0x117)](_0x25ce63=>_0x25ce63['id']===this[_0x542c5a(0x12a)]);if(_0x1cf38f)return _0x1cf38f;_0x1194ae(_0x542c5a(0x130),{'defaultModelId':this[_0x542c5a(0x12a)],'fallBackModelId':_0x43fcdc[0x0]['id']});}return _0x43fcdc[0x0];}async[_0x1fd068(0x128)](_0x49c5d9){const _0x519042=_0x1fd068;return(await this[_0x519042(0x127)]())[_0x519042(0x135)](_0x5ed009=>_0x5ed009[_0x519042(0x11d)]===_0x49c5d9[_0x519042(0x11d)]&&_0x5ed009[_0x519042(0x11c)]===_0x49c5d9[_0x519042(0x11c)]);}[_0x1fd068(0x120)](_0x21e2c6,_0x47d691){const _0x445fa7=_0x1fd068;let _0x543290;if(_0x47d691){_0x543290=[];const _0x247a14=_0x445fa7(0x133)==typeof _0x47d691?[_0x47d691[_0x445fa7(0x13e)]()]:_0x47d691[_0x445fa7(0x139)](_0x4842d5=>_0x4842d5[_0x445fa7(0x13e)]());for(const _0x2942a4 of _0x247a14)for(const _0x3c02f7 of _0x21e2c6)(_0x3c02f7['id'][_0x445fa7(0x13e)]()===_0x2942a4||_0x3c02f7[_0x445fa7(0x11d)][_0x445fa7(0x13e)]()===_0x2942a4||_0x3c02f7[_0x445fa7(0x11c)][_0x445fa7(0x13e)]()===_0x2942a4||_0x3c02f7['id'][_0x445fa7(0x13e)]()[_0x445fa7(0x118)](_0x2942a4))&&_0x543290[_0x445fa7(0x137)](_0x3c02f7);}else _0x543290=_0x21e2c6;return _0x543290;}}