@ckeditor/ckeditor5-ai 47.3.0-alpha.3 → 47.3.0-alpha.5

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 (94) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/aiassistantediting.js +1 -1
  8. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  9. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  10. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  11. package/src/aiassistant/ui/form/aiformview.js +1 -1
  12. package/src/aiballoon/aiballoon.js +1 -1
  13. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  14. package/src/aiballoon/ui/aiballoonview.js +1 -1
  15. package/src/aichat/aichat.js +1 -1
  16. package/src/aichat/aichatcontroller.js +1 -1
  17. package/src/aichat/aichatui.js +1 -1
  18. package/src/aichat/model/aichatcontext.js +1 -1
  19. package/src/aichat/model/aichatconversation.js +1 -1
  20. package/src/aichat/model/aichatinteraction.js +1 -1
  21. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  22. package/src/aichat/ui/aichatfeedview.js +1 -1
  23. package/src/aichat/ui/aichatheaderview.js +1 -1
  24. package/src/aichat/ui/aichatview.js +1 -1
  25. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  26. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  27. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  28. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  29. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  30. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  31. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  32. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  33. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  34. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  35. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  36. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  37. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  38. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  39. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  40. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  41. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  42. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  43. package/src/aichat/utils/eventnames.js +1 -1
  44. package/src/aichathistory/aichathistory.js +1 -1
  45. package/src/aichathistory/aichathistorycontroller.js +1 -1
  46. package/src/aichathistory/aichathistoryui.js +1 -1
  47. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  48. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  49. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  50. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  51. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  52. package/src/aicore/aiconnector.js +1 -1
  53. package/src/aicore/aiediting.js +1 -1
  54. package/src/aicore/model/aiinteraction.js +1 -1
  55. package/src/aicore/model/aimodels.js +1 -1
  56. package/src/aicore/model/aireply.js +1 -1
  57. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  58. package/src/aicore/pipeline/airesponseparser.js +2 -2
  59. package/src/aicore/ui/aidisclaimerview.js +1 -1
  60. package/src/aicore/ui/aiskeleton.js +1 -1
  61. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  62. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  63. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  64. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  65. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  66. package/src/aicore/utils/documentrange.js +1 -1
  67. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  68. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  69. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  70. package/src/aicore/utils/htmlparser.js +1 -1
  71. package/src/aicore/utils/htmlstreamer.js +1 -1
  72. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  73. package/src/aiquickactions/aiquickactionsui.js +1 -1
  74. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  75. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  76. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  77. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  78. package/src/aireviewmode/aireviewmode.js +1 -1
  79. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  80. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  81. package/src/aireviewmode/aireviewmodeui.js +1 -1
  82. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  83. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  84. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  85. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  86. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  87. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  88. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  89. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  90. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  91. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  92. package/src/aitabs/aitabs.js +1 -1
  93. package/src/aitabs/tabs/aitabsview.js +1 -1
  94. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x131c27=_0x2307;(function(_0x3979a0,_0x2f4aef){const _0x546889=_0x2307,_0x27ec12=_0x3979a0();while(!![]){try{const _0x2a3b6f=-parseInt(_0x546889(0x1d3))/0x1+parseInt(_0x546889(0x1cf))/0x2+parseInt(_0x546889(0x1d2))/0x3*(parseInt(_0x546889(0x221))/0x4)+parseInt(_0x546889(0x1b4))/0x5+parseInt(_0x546889(0x1b1))/0x6+-parseInt(_0x546889(0x1b8))/0x7*(parseInt(_0x546889(0x222))/0x8)+-parseInt(_0x546889(0x1f2))/0x9;if(_0x2a3b6f===_0x2f4aef)break;else _0x27ec12['push'](_0x27ec12['shift']());}catch(_0x231ca0){_0x27ec12['push'](_0x27ec12['shift']());}}}(_0x2df1,0x44aa9));import{ContextPlugin as _0x420470}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x43525b}from'ckeditor5/src/utils.js';function _0x2307(_0x4d3e97,_0x5d8ac1){const _0x2df1ee=_0x2df1();return _0x2307=function(_0x2307ed,_0x3e5a83){_0x2307ed=_0x2307ed-0x185;let _0x4294bd=_0x2df1ee[_0x2307ed];return _0x4294bd;},_0x2307(_0x4d3e97,_0x5d8ac1);}import{AIChatView as _0x4d4700}from'./ui/aichatview.js';import{AITabs as _0x460375}from'../aitabs/aitabs.js';import{getTranslation as _0x1ba9bd}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x22b432}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x5598d7}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x300ef5}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3f2091}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';function _0x2df1(){const _0x1572ca=['startsWith','value','quickActionData','</p>','setWebSearch','enableModelSelector','resetMessageInput','_isTrackChangesCommandValueBound','toggleSuggestionDisplayMode','ai.chat.context.searchInputVisibleFrom','contextItems','queueEmptyPromise','plugins','_animateConversationTitle','ai.chat.models.modelSelectorAlwaysVisible','bind','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','availableModels','ai-suggestion-reply','isPending','addFeedItemAISuggestion','commands','setSelectedModel','_view','updateWebSources','closeSourceResourceBalloon','addFeedItemUserMessage','scrollFeedToSuggestion','addItem','setInputPlaceholder','children','3340326XwBSNo','chatHeader','createConversation','1466900Eiohun','isTrackChangesOn','removeContextItem','filter','376194RvcBVY','AIChatUI','stopInteraction','set','chat','startAutoScroll','setLoadingMessage','toggleLoadingSkeleton','addFeedItemAIReply','updateResourceState','isMaximized','isOfficialPlugin','clearPendingContextUI','ai.availableReplyActions','streaming','removeFeedInteraction','areActionsDisabled','isWebSearchEnabled','remove','setAddContextOptions','context','updateCapabilities','resetConversationTitle','844882lCLHRf','clearConversationContextUI','requires','27lUzlUA','229202YKuawQ','setModelList','addFeedInteractionHeader','_getLoadingMessage','displayedPrompt','delegate','length','chatFeed','renderingStrategy','setModel','updateFeedInteractionHeader','insertSuggestion','removeItem','showDiff','has','markItemAsDone','AITabs','_promiseQueue','setConversationTitle','updateFeedItemAIReplySources','get','error-message','updateFeedItemAIReplySuggestionPartState','updateReplyItem','pluginName','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','setFeedItemRenderingStrategy','isPremiumPlugin','markFeedItemAsDone','ai-reply','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','2128968gqLgSx','startInteraction','user-message','addTab','interaction-header','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','TrackChanges','isLoading','populateSourceResourceBalloon','updateFeedItemAIReplySuggestionContent','userMessage','disableModelSelector','isVisible','isDone','conversation-start','chatControls','AI_CHAT_WELCOME_MESSAGE','values','isBusy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','updateSuggestionPartState','getItemIds','finishInteraction','addFeedItemStaticMessage','scrollToSuggestion','label','isDisabled','trackChanges','showResizeButton','view','destroy','last','setContextItemLoading','AI_CHAT_HEADING','clear','stopAutoScroll','options','addContextItem','isReasoningEnabled','capabilities','from','_getInputPlaceholder','disableControls','enqueue','find','_interactionPromiseResolver','updateSuggestionItem','5284NEsmaA','80NCbWmO','addFeedItemError','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','abort','_titleAnimationInterval','feedItemRenderingStrategy','interactionId','locale','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','setConversationContext','focusPromptInput','then','isModelAvailable','forEach','updateFeedItemAIReplyContent','setIsUploadInProgress','setIsMaximized','setReasoning','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','<p>','config','enableControls'];_0x2df1=function(){return _0x1572ca;};return _0x2df1();}import{getEditorFromContext as _0x3566ff}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x424639}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x420470{static get[_0x131c27(0x1d1)](){return[_0x460375];}[_0x131c27(0x1a9)];static get[_0x131c27(0x1eb)](){const _0x9aef64=_0x131c27;return _0x9aef64(0x1b9);}static get[_0x131c27(0x1c3)](){return!0x0;}static get[_0x131c27(0x1ee)](){return!0x0;}[_0x131c27(0x227)]=_0x131c27(0x1c6);[_0x131c27(0x1e0)]=!0x0;[_0x131c27(0x1e4)];[_0x131c27(0x21f)];[_0x131c27(0x226)]=void 0x0;[_0x131c27(0x199)]=!0x1;constructor(_0x25ac81){const _0x83618b=_0x131c27;super(_0x25ac81);const _0x2b937b=this[_0x83618b(0x1cc)][_0x83618b(0x19e)][_0x83618b(0x1e7)](_0x83618b(0x1e3));this[_0x83618b(0x1bb)](_0x83618b(0x204),!0x1),this[_0x83618b(0x1e4)]=new _0x300ef5(),this[_0x83618b(0x1a9)]=new _0x4d4700(this[_0x83618b(0x1cc)][_0x83618b(0x229)],{'showResizeButton':_0x2b937b[_0x83618b(0x20e)],'contextResourcesSearchInputVisibleFrom':this[_0x83618b(0x1cc)][_0x83618b(0x190)][_0x83618b(0x1e7)](_0x83618b(0x19b))}),this[_0x83618b(0x1a9)][_0x83618b(0x1d8)](..._0x3f2091)['to'](this),this[_0x83618b(0x1a9)]['on'](_0x83618b(0x19a),(_0x394d21,{showDiff:_0x33b253})=>{const _0x4418d6=_0x83618b;this[_0x4418d6(0x1e0)]=_0x33b253;}),_0x2b937b[_0x83618b(0x20f)][_0x83618b(0x1f5)]({'id':_0x83618b(0x1bc),'buttonLabel':_0x1ba9bd(this[_0x83618b(0x1cc)][_0x83618b(0x229)],_0x83618b(0x213)),'buttonIcon':_0x22b432,'order':0x0,'content':this[_0x83618b(0x1a9)]}),this[_0x83618b(0x1a9)][_0x83618b(0x201)][_0x83618b(0x1a1)](_0x83618b(0x1f9))['to'](this,_0x83618b(0x204),_0x453c62=>_0x453c62),this[_0x83618b(0x1a9)][_0x83618b(0x1da)][_0x83618b(0x1a1)](_0x83618b(0x1a5))['to'](this,_0x83618b(0x204),_0x130d6c=>_0x130d6c),this[_0x83618b(0x1a9)][_0x83618b(0x201)][_0x83618b(0x1af)](this[_0x83618b(0x21b)]()),this[_0x83618b(0x1a1)](_0x83618b(0x188))['to'](this[_0x83618b(0x1a9)][_0x83618b(0x201)],_0x83618b(0x188));}[_0x131c27(0x210)](){const _0x3aae57=_0x131c27;super[_0x3aae57(0x210)](),this[_0x3aae57(0x226)]&&clearInterval(this[_0x3aae57(0x226)]);}[_0x131c27(0x1b3)](_0x2a62d7){const _0x55b233=_0x131c27;this[_0x55b233(0x1a9)][_0x55b233(0x1da)][_0x55b233(0x214)](),this[_0x55b233(0x1a9)][_0x55b233(0x201)][_0x55b233(0x197)](),this[_0x55b233(0x1a9)][_0x55b233(0x201)][_0x55b233(0x1d4)](_0x2a62d7[_0x55b233(0x1a3)],!this[_0x55b233(0x1cc)][_0x55b233(0x190)][_0x55b233(0x1e7)](_0x55b233(0x1a0))),this[_0x55b233(0x209)]({'id':_0x55b233(0x200),'staticMessage':_0x1ba9bd(this[_0x55b233(0x1cc)][_0x55b233(0x229)],_0x55b233(0x202))});}[_0x131c27(0x209)]({id:_0x4ab7ac,staticMessage:_0x27eb77}){const _0x26a769=_0x131c27;this[_0x26a769(0x1a9)][_0x26a769(0x1da)][_0x26a769(0x1ae)](_0x26a769(0x1f0),{'id':_0x4ab7ac,'initialContent':_0x26a769(0x18f)+_0x27eb77+_0x26a769(0x195)});}[_0x131c27(0x1ac)](_0x3b5c1c){const _0x5f4418=_0x131c27,_0x497ecf=_0x3b5c1c[_0x5f4418(0x194)]?.[_0x5f4418(0x1d7)]||_0x3b5c1c[_0x5f4418(0x1fc)];this[_0x5f4418(0x1a9)][_0x5f4418(0x1da)][_0x5f4418(0x1ae)](_0x5f4418(0x1f4),{'contextItems':Array[_0x5f4418(0x21a)](_0x3b5c1c[_0x5f4418(0x19c)][_0x5f4418(0x203)]()),'initialContent':_0x5f4418(0x18f)+_0x497ecf+_0x5f4418(0x195),'id':_0x3b5c1c['id']});}[_0x131c27(0x223)]({errorMessage:_0x2bae81,id:_0x25f984}){const _0x154c62=_0x131c27;this[_0x154c62(0x1a9)][_0x154c62(0x1da)][_0x154c62(0x1ae)](_0x154c62(0x1e8),{'initialContent':_0x154c62(0x18f)+_0x2bae81+_0x154c62(0x195),'id':_0x25f984});}[_0x131c27(0x1c0)](_0x5cb3b7){const _0xca6ef9=_0x131c27;return this[_0xca6ef9(0x1e4)][_0xca6ef9(0x21d)](async()=>{const _0x5ef6c4=_0xca6ef9;this[_0x5ef6c4(0x1a9)][_0x5ef6c4(0x1da)][_0x5ef6c4(0x1ae)](_0x5ef6c4(0x1f0),{'id':_0x5cb3b7[_0x5ef6c4(0x228)]+':'+_0x5cb3b7['id']}),this[_0x5ef6c4(0x1be)](null);});}async[_0x131c27(0x1a6)](_0x263806){const _0x41517e=_0x131c27,_0x2b0553=_0x3566ff(this[_0x41517e(0x1cc)]);let _0x94e7e=_0x2b0553[_0x41517e(0x190)][_0x41517e(0x1e7)](_0x41517e(0x1c5))||[..._0x424639];if(_0x2b0553[_0x41517e(0x19e)][_0x41517e(0x1e1)](_0x41517e(0x1f8))){if(!this[_0x41517e(0x199)]){this[_0x41517e(0x199)]=!0x0;const _0x248f5c=_0x2b0553[_0x41517e(0x1a7)][_0x41517e(0x1e7)](_0x41517e(0x20d));this[_0x41517e(0x1a9)][_0x41517e(0x1da)][_0x41517e(0x1a1)](_0x41517e(0x1b5))['to'](_0x248f5c,_0x41517e(0x193));}}else _0x94e7e=_0x94e7e[_0x41517e(0x1b7)](_0x49c870=>_0x41517e(0x1de)!=_0x49c870);return this[_0x41517e(0x1e4)][_0x41517e(0x21d)](async()=>{const _0x51765b=_0x41517e;this[_0x51765b(0x1a9)][_0x51765b(0x1da)][_0x51765b(0x1ae)](_0x51765b(0x1a4),{'id':_0x263806[_0x51765b(0x228)]+':'+_0x263806['id'],'areActionsDisabled':_0x263806[_0x51765b(0x1c8)],'showDiff':this[_0x51765b(0x1e0)],'availableActions':_0x94e7e}),this[_0x51765b(0x1be)](null);});}[_0x131c27(0x1d5)](_0x8050c3,_0x3bc9c7){const _0x29dc05=_0x131c27,_0x1e03af=this[_0x29dc05(0x1a9)][_0x29dc05(0x1da)][_0x29dc05(0x1b0)][_0x29dc05(0x211)];if(_0x1e03af instanceof _0x5598d7)return this[_0x29dc05(0x1a9)][_0x29dc05(0x1da)][_0x29dc05(0x1b0)][_0x29dc05(0x1ca)](_0x1e03af),void this[_0x29dc05(0x1a9)][_0x29dc05(0x1da)][_0x29dc05(0x1ae)](_0x29dc05(0x1f6),{'id':_0x8050c3['id'],'capabilities':{'isWebSearchEnabled':_0x1e03af[_0x29dc05(0x219)][_0x29dc05(0x1c9)]||_0x3bc9c7[_0x29dc05(0x1c9)],'isReasoningEnabled':_0x1e03af[_0x29dc05(0x219)][_0x29dc05(0x218)]||_0x3bc9c7[_0x29dc05(0x218)]}});this[_0x29dc05(0x1a9)][_0x29dc05(0x1da)][_0x29dc05(0x1ae)](_0x29dc05(0x1f6),{'id':_0x8050c3['id'],'capabilities':_0x3bc9c7});}[_0x131c27(0x1dd)](_0x3af63e){const _0x1c33c6=_0x131c27,_0x23ba73=this[_0x1c33c6(0x1a9)][_0x1c33c6(0x1da)][_0x1c33c6(0x1b0)][_0x1c33c6(0x21e)](_0x50a274=>_0x50a274[_0x1c33c6(0x216)]['id']==_0x3af63e['id']&&_0x50a274 instanceof _0x5598d7);_0x23ba73&&_0x23ba73[_0x1c33c6(0x1bb)](_0x1c33c6(0x1fe),_0x3af63e[_0x1c33c6(0x1fe)]);}async[_0x131c27(0x18a)](_0x51e4b0){const _0xb5c64f=_0x131c27,_0x510054=_0x51e4b0[_0xb5c64f(0x1db)]||this[_0xb5c64f(0x227)];return this[_0xb5c64f(0x1e4)][_0xb5c64f(0x21d)](async _0x24ffe6=>{const _0x5a8d2e=_0xb5c64f;await this[_0x5a8d2e(0x1a9)][_0x5a8d2e(0x1da)][_0x5a8d2e(0x1ea)]({..._0x51e4b0,'abortSignal':_0x24ffe6,'renderingStrategy':_0x510054}),_0x51e4b0[_0x5a8d2e(0x1ff)]&&this[_0x5a8d2e(0x1ef)](_0x51e4b0['id']);});}[_0x131c27(0x1e6)](_0x28042f,_0xc71af6){const _0x481889=_0x131c27;this[_0x481889(0x1a9)][_0x481889(0x1da)][_0x481889(0x1aa)](_0x28042f,_0xc71af6);}async[_0x131c27(0x1fb)](_0x2730a4){const _0x517d91=_0x131c27,_0x1bda93=_0x2730a4[_0x517d91(0x1db)]||this[_0x517d91(0x227)];return this[_0x517d91(0x1e4)][_0x517d91(0x21d)](async _0x25011d=>{const _0x50c4b5=_0x517d91;await this[_0x50c4b5(0x1a9)][_0x50c4b5(0x1da)][_0x50c4b5(0x220)]({..._0x2730a4,'abortSignal':_0x25011d,'renderingStrategy':_0x1bda93}),_0x2730a4[_0x50c4b5(0x1ff)]&&this[_0x50c4b5(0x1ef)](_0x2730a4['id']);});}[_0x131c27(0x1e9)](_0x4c814b){const _0x81b2d3=_0x131c27;this[_0x81b2d3(0x1a9)][_0x81b2d3(0x1da)][_0x81b2d3(0x206)](_0x4c814b);}[_0x131c27(0x1ef)](_0x56111e){const _0x5eb86b=_0x131c27;this[_0x5eb86b(0x1a9)][_0x5eb86b(0x1da)][_0x5eb86b(0x1e2)](_0x56111e);}[_0x131c27(0x1c7)](_0x38152b){const _0x49a19b=_0x131c27;this[_0x49a19b(0x1a9)][_0x49a19b(0x1da)][_0x49a19b(0x207)]()[_0x49a19b(0x1b7)](_0x44ca78=>_0x44ca78[_0x49a19b(0x192)](_0x38152b))[_0x49a19b(0x189)](_0x48ceda=>this[_0x49a19b(0x1a9)][_0x49a19b(0x1da)][_0x49a19b(0x1df)](_0x48ceda));}[_0x131c27(0x1f3)](){const _0x502fb8=_0x131c27;this[_0x502fb8(0x1be)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x502fb8(0x1a9)][_0x502fb8(0x201)][_0x502fb8(0x1fd)](!this[_0x502fb8(0x1cc)][_0x502fb8(0x190)][_0x502fb8(0x1e7)](_0x502fb8(0x1a0))),this[_0x502fb8(0x204)]=!0x0,this[_0x502fb8(0x1a9)][_0x502fb8(0x1da)][_0x502fb8(0x1bd)]();}[_0x131c27(0x1ba)](_0x551000){const _0x2cd798=_0x131c27;this[_0x2cd798(0x1e4)][_0x2cd798(0x225)](),this[_0x2cd798(0x1a9)][_0x2cd798(0x1da)][_0x2cd798(0x207)]()[_0x2cd798(0x1b7)](_0x276e7c=>_0x276e7c[_0x2cd798(0x192)](_0x551000['id']))[_0x2cd798(0x189)](_0x2f51d2=>this[_0x2cd798(0x1ef)](_0x2f51d2)),this[_0x2cd798(0x204)]=!0x1,this[_0x2cd798(0x1a9)][_0x2cd798(0x1da)][_0x2cd798(0x215)]();}async[_0x131c27(0x208)](){const _0x99643=_0x131c27;return this[_0x99643(0x1e4)][_0x99643(0x19d)][_0x99643(0x187)](()=>{const _0x1c5048=_0x99643;this[_0x1c5048(0x204)]=!0x1,this[_0x1c5048(0x1a9)][_0x1c5048(0x1da)][_0x1c5048(0x215)]();});}[_0x131c27(0x217)](_0x18f134,_0x2aa1b6){const _0x15e8c7=_0x131c27;this[_0x15e8c7(0x1a9)][_0x15e8c7(0x201)][_0x15e8c7(0x217)](_0x18f134,_0x2aa1b6);}[_0x131c27(0x1b6)](_0x1d5f7c){const _0x30b525=_0x131c27;this[_0x30b525(0x1a9)][_0x30b525(0x201)][_0x30b525(0x1b6)](_0x1d5f7c);}[_0x131c27(0x212)](_0x428805,_0xccc7d1){const _0x481523=_0x131c27;this[_0x481523(0x1a9)][_0x481523(0x201)][_0x481523(0x212)](_0x428805,_0xccc7d1);}[_0x131c27(0x18b)](_0x52c72d){const _0x5ee84d=_0x131c27;this[_0x5ee84d(0x1a9)][_0x5ee84d(0x201)][_0x5ee84d(0x18b)](_0x52c72d);}[_0x131c27(0x185)](_0x128b63){const _0x358ec9=_0x131c27;this[_0x358ec9(0x1a9)][_0x358ec9(0x201)][_0x358ec9(0x185)](_0x128b63);}[_0x131c27(0x1c4)](){const _0xd25b4a=_0x131c27;this[_0xd25b4a(0x1a9)][_0xd25b4a(0x201)][_0xd25b4a(0x1c4)]();}[_0x131c27(0x1d0)](){const _0x24edc2=_0x131c27;this[_0x24edc2(0x1a9)][_0x24edc2(0x201)][_0x24edc2(0x1d0)]();}[_0x131c27(0x1c1)](_0x2fe131,_0x69e66,_0x5ed7b8){const _0x1419ee=_0x131c27;this[_0x1419ee(0x1a9)][_0x1419ee(0x201)][_0x1419ee(0x1c1)](_0x2fe131,_0x69e66,_0x5ed7b8);}[_0x131c27(0x198)](){const _0x18e8f8=_0x131c27;this[_0x18e8f8(0x1a9)][_0x18e8f8(0x201)][_0x18e8f8(0x198)](),this[_0x18e8f8(0x1a9)][_0x18e8f8(0x201)][_0x18e8f8(0x1af)](this[_0x18e8f8(0x21b)]());}[_0x131c27(0x1cb)](_0x16572f){const _0x3000a6=_0x131c27;this[_0x3000a6(0x1a9)][_0x3000a6(0x201)][_0x3000a6(0x1cb)](_0x16572f);}[_0x131c27(0x1cd)](_0x3bf8aa){const _0x45df41=_0x131c27;this[_0x45df41(0x1a9)][_0x45df41(0x201)][_0x45df41(0x196)](_0x3bf8aa[_0x45df41(0x1c9)]),this[_0x45df41(0x1a9)][_0x45df41(0x201)][_0x45df41(0x18d)](_0x3bf8aa[_0x45df41(0x218)]),this[_0x45df41(0x1a9)][_0x45df41(0x201)][_0x45df41(0x1af)](this[_0x45df41(0x21b)](_0x3bf8aa));}[_0x131c27(0x1a8)](_0x51edc2,_0x20d325){const _0x2cc6c8=_0x131c27;this[_0x2cc6c8(0x1a9)][_0x2cc6c8(0x201)][_0x2cc6c8(0x1dc)](_0x51edc2),_0x20d325&&this[_0x2cc6c8(0x1a9)][_0x2cc6c8(0x201)][_0x2cc6c8(0x1fd)](!0x1);}[_0x131c27(0x1ed)](_0x4c7da8){const _0x56db4d=_0x131c27;this[_0x56db4d(0x227)]=_0x4c7da8;}[_0x131c27(0x1bf)](_0x28ceb8){const _0x3d6da9=_0x131c27;this[_0x3d6da9(0x1a9)][_0x3d6da9(0x1da)][_0x3d6da9(0x1bf)](_0x28ceb8);}[_0x131c27(0x1ce)](){const _0x2d4019=_0x131c27;this[_0x2d4019(0x1e5)](_0x1ba9bd(this[_0x2d4019(0x1cc)][_0x2d4019(0x229)],_0x2d4019(0x213)));}[_0x131c27(0x1e5)](_0x5f4287,_0x1a8409=!0x1){const _0x86e99e=_0x131c27;if(_0x1a8409&&!_0x43525b()&&_0x5f4287[_0x86e99e(0x1d9)])return this[_0x86e99e(0x1a9)][_0x86e99e(0x1b2)][_0x86e99e(0x20b)]='',void this[_0x86e99e(0x19f)](_0x5f4287);this[_0x86e99e(0x1a9)][_0x86e99e(0x1b2)][_0x86e99e(0x20b)]=_0x5f4287;}[_0x131c27(0x1be)](_0x17db17){const _0x4b4c23=_0x131c27,_0x170227=this[_0x4b4c23(0x1d6)](_0x17db17);this[_0x4b4c23(0x1a9)][_0x4b4c23(0x1da)][_0x4b4c23(0x1be)](_0x170227);}[_0x131c27(0x19f)](_0x37dd62){const _0x380261=_0x131c27;let _0x4f7ba1=0x0;clearInterval(this[_0x380261(0x226)]),this[_0x380261(0x226)]=setInterval(()=>{const _0x43e390=_0x380261;this[_0x43e390(0x1a9)][_0x43e390(0x1b2)][_0x43e390(0x20b)]=this[_0x43e390(0x1a9)][_0x43e390(0x1b2)][_0x43e390(0x20b)]+_0x37dd62[_0x4f7ba1],_0x4f7ba1++,_0x4f7ba1===_0x37dd62[_0x43e390(0x1d9)]&&clearInterval(this[_0x43e390(0x226)]);},0x1e);}[_0x131c27(0x18c)](_0x53ee99){const _0x59d1b7=_0x131c27;this[_0x59d1b7(0x1a9)][_0x59d1b7(0x1b2)][_0x59d1b7(0x1c2)]=_0x53ee99;}[_0x131c27(0x1d6)](_0x499f24){const _0x36768b=_0x131c27;return _0x499f24?_0x499f24[_0x36768b(0x1c9)]&&_0x499f24[_0x36768b(0x218)]?_0x1ba9bd(this[_0x36768b(0x1cc)][_0x36768b(0x229)],_0x36768b(0x224)):_0x499f24[_0x36768b(0x1c9)]?_0x1ba9bd(this[_0x36768b(0x1cc)][_0x36768b(0x229)],_0x36768b(0x1f1)):_0x499f24[_0x36768b(0x218)]?_0x1ba9bd(this[_0x36768b(0x1cc)][_0x36768b(0x229)],_0x36768b(0x18e)):_0x1ba9bd(this[_0x36768b(0x1cc)][_0x36768b(0x229)],_0x36768b(0x1a2)):'';}[_0x131c27(0x21b)](_0x502229){const _0x2c2b2e=_0x131c27;return _0x502229?_0x502229[_0x2c2b2e(0x1c9)]&&_0x502229[_0x2c2b2e(0x218)]?_0x1ba9bd(this[_0x2c2b2e(0x1cc)][_0x2c2b2e(0x229)],_0x2c2b2e(0x22a)):_0x502229[_0x2c2b2e(0x1c9)]?_0x1ba9bd(this[_0x2c2b2e(0x1cc)][_0x2c2b2e(0x229)],_0x2c2b2e(0x1ec)):_0x502229[_0x2c2b2e(0x218)]?_0x1ba9bd(this[_0x2c2b2e(0x1cc)][_0x2c2b2e(0x229)],_0x2c2b2e(0x1f7)):_0x1ba9bd(this[_0x2c2b2e(0x1cc)][_0x2c2b2e(0x229)],_0x2c2b2e(0x205)):_0x1ba9bd(this[_0x2c2b2e(0x1cc)][_0x2c2b2e(0x229)],_0x2c2b2e(0x205));}[_0x131c27(0x1fa)](_0x22bf25,_0x2245ee,_0x5c1dde,_0x537ae7){const _0x5e8afd=_0x131c27;this[_0x5e8afd(0x1a9)][_0x5e8afd(0x1fa)](_0x22bf25,_0x2245ee,_0x5c1dde,_0x537ae7);}[_0x131c27(0x1ab)](_0x3ee1ae){const _0x178ccb=_0x131c27;this[_0x178ccb(0x1a9)][_0x178ccb(0x1ab)](_0x3ee1ae);}[_0x131c27(0x186)](){const _0xcfdd69=_0x131c27;this[_0xcfdd69(0x1a9)][_0xcfdd69(0x201)][_0xcfdd69(0x186)]();}[_0x131c27(0x1ad)](_0x16d975,_0x34e731){const _0x7385f1=_0x131c27;this[_0x7385f1(0x1a9)][_0x7385f1(0x1da)][_0x7385f1(0x20a)](_0x16d975,_0x34e731);}[_0x131c27(0x1bd)](){const _0x5b3709=_0x131c27;this[_0x5b3709(0x1a9)][_0x5b3709(0x1da)][_0x5b3709(0x1bd)]();}[_0x131c27(0x21c)](){const _0x29e909=_0x131c27;this[_0x29e909(0x1a9)][_0x29e909(0x201)][_0x29e909(0x20c)]=!0x0;}[_0x131c27(0x191)](){const _0x2f7dc2=_0x131c27;this[_0x2f7dc2(0x1a9)][_0x2f7dc2(0x201)][_0x2f7dc2(0x20c)]=!0x1;}}
23
+ const _0x20bb56=_0x505e;function _0x505e(_0x479c1a,_0x409360){const _0x525887=_0x5258();return _0x505e=function(_0x505e62,_0x42d0fd){_0x505e62=_0x505e62-0x12e;let _0x382a38=_0x525887[_0x505e62];return _0x382a38;},_0x505e(_0x479c1a,_0x409360);}function _0x5258(){const _0x5f3b38=['_interactionPromiseResolver','areActionsDisabled','4314150tElMuc','populateSourceResourceBalloon','streaming','interactionId','setFeedItemRenderingStrategy','scrollToSuggestion','_promiseQueue','isLoading','stopInteraction','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','_getLoadingMessage','addFeedItemUserMessage','setContextItemLoading','forEach','removeFeedInteraction','addFeedInteractionHeader','setIsUploadInProgress','_getInputPlaceholder','last','clearPendingContextUI','AI_CHAT_WELCOME_MESSAGE','ai.availableReplyActions','length','removeContextItem','destroy','_animateConversationTitle','14724XVhdyT','conversation-start','isMaximized','88jMWlUF','config','chat','setLoadingMessage','view','feedItemRenderingStrategy','insertSuggestion','updateWebSources','_view','toggleSuggestionDisplayMode','ai-reply','resetMessageInput','setAddContextOptions','updateFeedInteractionHeader','updateSuggestionPartState','closeSourceResourceBalloon','setInputPlaceholder','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','values','delegate','remove','addFeedItemAIReply','startAutoScroll','disableModelSelector','setConversationContext','updateFeedItemAIReplyContent','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','clear','1516419ivXSak','interaction-header','set','startInteraction','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','markFeedItemAsDone','5189268qmledL','isModelAvailable','isWebSearchEnabled','userMessage','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','isReasoningEnabled','trackChanges','scrollFeedToSuggestion','</p>','children','label','has','isTrackChangesOn','showDiff','addFeedItemError','user-message','addTab','pluginName','chatHeader','quickActionData','showResizeButton','capabilities','value','isDone','displayedPrompt','AI_CHAT_HEADING','updateFeedItemAIReplySuggestionPartState','isPremiumPlugin','isDisabled','queueEmptyPromise','stopAutoScroll','bind','TrackChanges','setReasoning','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','commands','<p>','setSelectedModel','setWebSearch','resetConversationTitle','addFeedItemStaticMessage','updateCapabilities','655TWpgtL','locale','focusPromptInput','contextItems','options','isPending','setModelList','121155ZwzXEz','isVisible','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','addFeedItemAISuggestion','find','markItemAsDone','setModel','filter','disableControls','enableModelSelector','chatFeed','createConversation','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','chatControls','plugins','addItem','finishInteraction','3293900Hltciv','AIChatUI','isOfficialPlugin','availableModels','error-message','removeItem','updateFeedItemAIReplySuggestionContent','_isTrackChangesCommandValueBound','AITabs','renderingStrategy','toggleLoadingSkeleton','ai-suggestion-reply','updateResourceState','168881kokTMx','setConversationTitle','ai.chat.models.modelSelectorAlwaysVisible','requires','updateReplyItem','startsWith','ai.chat.context.searchInputVisibleFrom','6OJkqeC','get','context','8OoTzSP','enableControls','isBusy','clearConversationContextUI','then','updateSuggestionItem','from','enqueue','_titleAnimationInterval','getItemIds','abort','setIsMaximized','updateFeedItemAIReplySources','addContextItem'];_0x5258=function(){return _0x5f3b38;};return _0x5258();}(function(_0x1a7ab7,_0x452ffd){const _0x31d71a=_0x505e,_0x3bfb4a=_0x1a7ab7();while(!![]){try{const _0x196694=-parseInt(_0x31d71a(0x185))/0x1*(parseInt(_0x31d71a(0x18c))/0x2)+parseInt(_0x31d71a(0x167))/0x3+parseInt(_0x31d71a(0x1b9))/0x4*(-parseInt(_0x31d71a(0x160))/0x5)+-parseInt(_0x31d71a(0x19f))/0x6+-parseInt(_0x31d71a(0x136))/0x7+-parseInt(_0x31d71a(0x18f))/0x8*(-parseInt(_0x31d71a(0x130))/0x9)+parseInt(_0x31d71a(0x178))/0xa*(parseInt(_0x31d71a(0x1bc))/0xb);if(_0x196694===_0x452ffd)break;else _0x3bfb4a['push'](_0x3bfb4a['shift']());}catch(_0x12ada4){_0x3bfb4a['push'](_0x3bfb4a['shift']());}}}(_0x5258,0x60629));import{ContextPlugin as _0x25ff34}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x52e168}from'ckeditor5/src/utils.js';import{AIChatView as _0x49cec3}from'./ui/aichatview.js';import{AITabs as _0x5265e0}from'../aitabs/aitabs.js';import{getTranslation as _0x45c9d6}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x22c53c}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x1530dc}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x2949d2}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x4d811d}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x334a5a}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x1011f5}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x25ff34{static get[_0x20bb56(0x188)](){return[_0x5265e0];}[_0x20bb56(0x1c4)];static get[_0x20bb56(0x147)](){const _0x3626b2=_0x20bb56;return _0x3626b2(0x179);}static get[_0x20bb56(0x17a)](){return!0x0;}static get[_0x20bb56(0x151)](){return!0x0;}[_0x20bb56(0x1c1)]=_0x20bb56(0x1a1);[_0x20bb56(0x143)]=!0x0;[_0x20bb56(0x1a5)];[_0x20bb56(0x19d)];[_0x20bb56(0x197)]=void 0x0;[_0x20bb56(0x17f)]=!0x1;constructor(_0x4242ee){const _0x4fb6f1=_0x20bb56;super(_0x4242ee);const _0xb6479c=this[_0x4fb6f1(0x18e)][_0x4fb6f1(0x175)][_0x4fb6f1(0x18d)](_0x4fb6f1(0x180));this[_0x4fb6f1(0x132)](_0x4fb6f1(0x191),!0x1),this[_0x4fb6f1(0x1a5)]=new _0x2949d2(),this[_0x4fb6f1(0x1c4)]=new _0x49cec3(this[_0x4fb6f1(0x18e)][_0x4fb6f1(0x161)],{'showResizeButton':_0xb6479c[_0x4fb6f1(0x14a)],'contextResourcesSearchInputVisibleFrom':this[_0x4fb6f1(0x18e)][_0x4fb6f1(0x1bd)][_0x4fb6f1(0x18d)](_0x4fb6f1(0x18b))}),this[_0x4fb6f1(0x1c4)][_0x4fb6f1(0x1cf)](..._0x4d811d)['to'](this),this[_0x4fb6f1(0x1c4)]['on'](_0x4fb6f1(0x1c5),(_0x48135f,{showDiff:_0x664736})=>{const _0x177666=_0x4fb6f1;this[_0x177666(0x143)]=_0x664736;}),_0xb6479c[_0x4fb6f1(0x1c0)][_0x4fb6f1(0x146)]({'id':_0x4fb6f1(0x1be),'buttonLabel':_0x45c9d6(this[_0x4fb6f1(0x18e)][_0x4fb6f1(0x161)],_0x4fb6f1(0x14f)),'buttonIcon':_0x22c53c,'order':0x0,'content':this[_0x4fb6f1(0x1c4)]}),this[_0x4fb6f1(0x1c4)][_0x4fb6f1(0x174)][_0x4fb6f1(0x155)](_0x4fb6f1(0x1a6))['to'](this,_0x4fb6f1(0x191),_0x344481=>_0x344481),this[_0x4fb6f1(0x1c4)][_0x4fb6f1(0x171)][_0x4fb6f1(0x155)](_0x4fb6f1(0x165))['to'](this,_0x4fb6f1(0x191),_0x3278a0=>_0x3278a0),this[_0x4fb6f1(0x1c4)][_0x4fb6f1(0x174)][_0x4fb6f1(0x1cc)](this[_0x4fb6f1(0x1b0)]()),this[_0x4fb6f1(0x155)](_0x4fb6f1(0x137))['to'](this[_0x4fb6f1(0x1c4)][_0x4fb6f1(0x174)],_0x4fb6f1(0x137));}[_0x20bb56(0x1b7)](){const _0x3eb909=_0x20bb56;super[_0x3eb909(0x1b7)](),this[_0x3eb909(0x197)]&&clearInterval(this[_0x3eb909(0x197)]);}[_0x20bb56(0x172)](_0x1812a0){const _0x1fc1ee=_0x20bb56;this[_0x1fc1ee(0x1c4)][_0x1fc1ee(0x171)][_0x1fc1ee(0x12f)](),this[_0x1fc1ee(0x1c4)][_0x1fc1ee(0x174)][_0x1fc1ee(0x170)](),this[_0x1fc1ee(0x1c4)][_0x1fc1ee(0x174)][_0x1fc1ee(0x166)](_0x1812a0[_0x1fc1ee(0x17b)],!this[_0x1fc1ee(0x18e)][_0x1fc1ee(0x1bd)][_0x1fc1ee(0x18d)](_0x1fc1ee(0x187))),this[_0x1fc1ee(0x15e)]({'id':_0x1fc1ee(0x1ba),'staticMessage':_0x45c9d6(this[_0x1fc1ee(0x18e)][_0x1fc1ee(0x161)],_0x1fc1ee(0x1b3))});}[_0x20bb56(0x15e)]({id:_0x433e3e,staticMessage:_0x892ec5}){const _0x1e8de6=_0x20bb56;this[_0x1e8de6(0x1c4)][_0x1e8de6(0x171)][_0x1e8de6(0x176)](_0x1e8de6(0x1c6),{'id':_0x433e3e,'initialContent':_0x1e8de6(0x15a)+_0x892ec5+_0x1e8de6(0x13e)});}[_0x20bb56(0x1aa)](_0x94e623){const _0x281fe0=_0x20bb56,_0x262eb2=_0x94e623[_0x281fe0(0x149)]?.[_0x281fe0(0x14e)]||_0x94e623[_0x281fe0(0x139)];this[_0x281fe0(0x1c4)][_0x281fe0(0x171)][_0x281fe0(0x176)](_0x281fe0(0x145),{'contextItems':Array[_0x281fe0(0x195)](_0x94e623[_0x281fe0(0x163)][_0x281fe0(0x1ce)]()),'initialContent':_0x281fe0(0x15a)+_0x262eb2+_0x281fe0(0x13e),'id':_0x94e623['id']});}[_0x20bb56(0x144)]({errorMessage:_0xfeba6d,id:_0x251383}){const _0x163a22=_0x20bb56;this[_0x163a22(0x1c4)][_0x163a22(0x171)][_0x163a22(0x176)](_0x163a22(0x17c),{'initialContent':_0x163a22(0x15a)+_0xfeba6d+_0x163a22(0x13e),'id':_0x251383});}[_0x20bb56(0x1d1)](_0x468de0){const _0x104b31=_0x20bb56;return this[_0x104b31(0x1a5)][_0x104b31(0x196)](async()=>{const _0x137744=_0x104b31;this[_0x137744(0x1c4)][_0x137744(0x171)][_0x137744(0x176)](_0x137744(0x1c6),{'id':_0x468de0[_0x137744(0x1a2)]+':'+_0x468de0['id']}),this[_0x137744(0x1bf)](null);});}async[_0x20bb56(0x16a)](_0x327d48){const _0x17c5ae=_0x20bb56,_0xb05434=_0x334a5a(this[_0x17c5ae(0x18e)]);let _0x877f21=_0xb05434[_0x17c5ae(0x1bd)][_0x17c5ae(0x18d)](_0x17c5ae(0x1b4))||[..._0x1011f5];if(_0xb05434[_0x17c5ae(0x175)][_0x17c5ae(0x141)](_0x17c5ae(0x156))){if(!this[_0x17c5ae(0x17f)]){this[_0x17c5ae(0x17f)]=!0x0;const _0xb8fd49=_0xb05434[_0x17c5ae(0x159)][_0x17c5ae(0x18d)](_0x17c5ae(0x13c));this[_0x17c5ae(0x1c4)][_0x17c5ae(0x171)][_0x17c5ae(0x155)](_0x17c5ae(0x142))['to'](_0xb8fd49,_0x17c5ae(0x14c));}}else _0x877f21=_0x877f21[_0x17c5ae(0x16e)](_0x553ad4=>_0x17c5ae(0x1c2)!=_0x553ad4);return this[_0x17c5ae(0x1a5)][_0x17c5ae(0x196)](async()=>{const _0x4467fb=_0x17c5ae;this[_0x4467fb(0x1c4)][_0x4467fb(0x171)][_0x4467fb(0x176)](_0x4467fb(0x183),{'id':_0x327d48[_0x4467fb(0x1a2)]+':'+_0x327d48['id'],'areActionsDisabled':_0x327d48[_0x4467fb(0x19e)],'showDiff':this[_0x4467fb(0x143)],'availableActions':_0x877f21}),this[_0x4467fb(0x1bf)](null);});}[_0x20bb56(0x1ae)](_0x8f22df,_0x290588){const _0x35fb6b=_0x20bb56,_0x2907bb=this[_0x35fb6b(0x1c4)][_0x35fb6b(0x171)][_0x35fb6b(0x13f)][_0x35fb6b(0x1b1)];if(_0x2907bb instanceof _0x1530dc)return this[_0x35fb6b(0x1c4)][_0x35fb6b(0x171)][_0x35fb6b(0x13f)][_0x35fb6b(0x1d0)](_0x2907bb),void this[_0x35fb6b(0x1c4)][_0x35fb6b(0x171)][_0x35fb6b(0x176)](_0x35fb6b(0x131),{'id':_0x8f22df['id'],'capabilities':{'isWebSearchEnabled':_0x2907bb[_0x35fb6b(0x14b)][_0x35fb6b(0x138)]||_0x290588[_0x35fb6b(0x138)],'isReasoningEnabled':_0x2907bb[_0x35fb6b(0x14b)][_0x35fb6b(0x13b)]||_0x290588[_0x35fb6b(0x13b)]}});this[_0x35fb6b(0x1c4)][_0x35fb6b(0x171)][_0x35fb6b(0x176)](_0x35fb6b(0x131),{'id':_0x8f22df['id'],'capabilities':_0x290588});}[_0x20bb56(0x1c9)](_0x3981d3){const _0x535cb6=_0x20bb56,_0x57063c=this[_0x535cb6(0x1c4)][_0x535cb6(0x171)][_0x535cb6(0x13f)][_0x535cb6(0x16b)](_0x512ac1=>_0x512ac1[_0x535cb6(0x164)]['id']==_0x3981d3['id']&&_0x512ac1 instanceof _0x1530dc);_0x57063c&&_0x57063c[_0x535cb6(0x132)](_0x535cb6(0x168),_0x3981d3[_0x535cb6(0x168)]);}async[_0x20bb56(0x1d5)](_0x46da36){const _0x5128e8=_0x20bb56,_0x697156=_0x46da36[_0x5128e8(0x181)]||this[_0x5128e8(0x1c1)];return this[_0x5128e8(0x1a5)][_0x5128e8(0x196)](async _0x5c0420=>{const _0x8fbf4=_0x5128e8;await this[_0x8fbf4(0x1c4)][_0x8fbf4(0x171)][_0x8fbf4(0x189)]({..._0x46da36,'abortSignal':_0x5c0420,'renderingStrategy':_0x697156}),_0x46da36[_0x8fbf4(0x14d)]&&this[_0x8fbf4(0x135)](_0x46da36['id']);});}[_0x20bb56(0x19b)](_0x5749c8,_0x28620d){const _0x28ac0f=_0x20bb56;this[_0x28ac0f(0x1c4)][_0x28ac0f(0x171)][_0x28ac0f(0x1c3)](_0x5749c8,_0x28620d);}async[_0x20bb56(0x17e)](_0x5b434f){const _0x33e2b7=_0x20bb56,_0x491746=_0x5b434f[_0x33e2b7(0x181)]||this[_0x33e2b7(0x1c1)];return this[_0x33e2b7(0x1a5)][_0x33e2b7(0x196)](async _0x3cfd4d=>{const _0x146473=_0x33e2b7;await this[_0x146473(0x1c4)][_0x146473(0x171)][_0x146473(0x194)]({..._0x5b434f,'abortSignal':_0x3cfd4d,'renderingStrategy':_0x491746}),_0x5b434f[_0x146473(0x14d)]&&this[_0x146473(0x135)](_0x5b434f['id']);});}[_0x20bb56(0x150)](_0x45e0db){const _0x51e2c2=_0x20bb56;this[_0x51e2c2(0x1c4)][_0x51e2c2(0x171)][_0x51e2c2(0x1ca)](_0x45e0db);}[_0x20bb56(0x135)](_0x142f72){const _0x126656=_0x20bb56;this[_0x126656(0x1c4)][_0x126656(0x171)][_0x126656(0x16c)](_0x142f72);}[_0x20bb56(0x1ad)](_0x422bc0){const _0x39c38b=_0x20bb56;this[_0x39c38b(0x1c4)][_0x39c38b(0x171)][_0x39c38b(0x198)]()[_0x39c38b(0x16e)](_0x47d875=>_0x47d875[_0x39c38b(0x18a)](_0x422bc0))[_0x39c38b(0x1ac)](_0x2cd652=>this[_0x39c38b(0x1c4)][_0x39c38b(0x171)][_0x39c38b(0x17d)](_0x2cd652));}[_0x20bb56(0x133)](){const _0x5d5a38=_0x20bb56;this[_0x5d5a38(0x1bf)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x5d5a38(0x1c4)][_0x5d5a38(0x174)][_0x5d5a38(0x1d3)](!this[_0x5d5a38(0x18e)][_0x5d5a38(0x1bd)][_0x5d5a38(0x18d)](_0x5d5a38(0x187))),this[_0x5d5a38(0x191)]=!0x0,this[_0x5d5a38(0x1c4)][_0x5d5a38(0x171)][_0x5d5a38(0x1d2)]();}[_0x20bb56(0x1a7)](_0x41c39d){const _0x4eac0e=_0x20bb56;this[_0x4eac0e(0x1a5)][_0x4eac0e(0x199)](),this[_0x4eac0e(0x1c4)][_0x4eac0e(0x171)][_0x4eac0e(0x198)]()[_0x4eac0e(0x16e)](_0x32b9c8=>_0x32b9c8[_0x4eac0e(0x18a)](_0x41c39d['id']))[_0x4eac0e(0x1ac)](_0x41b1be=>this[_0x4eac0e(0x135)](_0x41b1be)),this[_0x4eac0e(0x191)]=!0x1,this[_0x4eac0e(0x1c4)][_0x4eac0e(0x171)][_0x4eac0e(0x154)]();}async[_0x20bb56(0x177)](){const _0x2ce2eb=_0x20bb56;return this[_0x2ce2eb(0x1a5)][_0x2ce2eb(0x153)][_0x2ce2eb(0x193)](()=>{const _0x4ca036=_0x2ce2eb;this[_0x4ca036(0x191)]=!0x1,this[_0x4ca036(0x1c4)][_0x4ca036(0x171)][_0x4ca036(0x154)]();});}[_0x20bb56(0x19c)](_0x4ca866,_0x26a2db){const _0x342c18=_0x20bb56;this[_0x342c18(0x1c4)][_0x342c18(0x174)][_0x342c18(0x19c)](_0x4ca866,_0x26a2db);}[_0x20bb56(0x1b6)](_0x1b4ebb){const _0x5ce19f=_0x20bb56;this[_0x5ce19f(0x1c4)][_0x5ce19f(0x174)][_0x5ce19f(0x1b6)](_0x1b4ebb);}[_0x20bb56(0x1ab)](_0x58f8af,_0x495bc2){const _0x190860=_0x20bb56;this[_0x190860(0x1c4)][_0x190860(0x174)][_0x190860(0x1ab)](_0x58f8af,_0x495bc2);}[_0x20bb56(0x1af)](_0x3a97a3){const _0x1adf57=_0x20bb56;this[_0x1adf57(0x1c4)][_0x1adf57(0x174)][_0x1adf57(0x1af)](_0x3a97a3);}[_0x20bb56(0x1d4)](_0x54da62){const _0x392add=_0x20bb56;this[_0x392add(0x1c4)][_0x392add(0x174)][_0x392add(0x1d4)](_0x54da62);}[_0x20bb56(0x1b2)](){const _0x826b6b=_0x20bb56;this[_0x826b6b(0x1c4)][_0x826b6b(0x174)][_0x826b6b(0x1b2)]();}[_0x20bb56(0x192)](){const _0xaf8c20=_0x20bb56;this[_0xaf8c20(0x1c4)][_0xaf8c20(0x174)][_0xaf8c20(0x192)]();}[_0x20bb56(0x184)](_0x2374ae,_0x555357,_0x2f4d04){const _0x38b663=_0x20bb56;this[_0x38b663(0x1c4)][_0x38b663(0x174)][_0x38b663(0x184)](_0x2374ae,_0x555357,_0x2f4d04);}[_0x20bb56(0x1c7)](){const _0x4a6e55=_0x20bb56;this[_0x4a6e55(0x1c4)][_0x4a6e55(0x174)][_0x4a6e55(0x1c7)](),this[_0x4a6e55(0x1c4)][_0x4a6e55(0x174)][_0x4a6e55(0x1cc)](this[_0x4a6e55(0x1b0)]());}[_0x20bb56(0x1c8)](_0x12a690){const _0x5d063d=_0x20bb56;this[_0x5d063d(0x1c4)][_0x5d063d(0x174)][_0x5d063d(0x1c8)](_0x12a690);}[_0x20bb56(0x15f)](_0x36d572){const _0x70a8c1=_0x20bb56;this[_0x70a8c1(0x1c4)][_0x70a8c1(0x174)][_0x70a8c1(0x15c)](_0x36d572[_0x70a8c1(0x138)]),this[_0x70a8c1(0x1c4)][_0x70a8c1(0x174)][_0x70a8c1(0x157)](_0x36d572[_0x70a8c1(0x13b)]),this[_0x70a8c1(0x1c4)][_0x70a8c1(0x174)][_0x70a8c1(0x1cc)](this[_0x70a8c1(0x1b0)](_0x36d572));}[_0x20bb56(0x15b)](_0x4ac1a3,_0x1e8262){const _0x411d67=_0x20bb56;this[_0x411d67(0x1c4)][_0x411d67(0x174)][_0x411d67(0x16d)](_0x4ac1a3),_0x1e8262&&this[_0x411d67(0x1c4)][_0x411d67(0x174)][_0x411d67(0x1d3)](!0x1);}[_0x20bb56(0x1a3)](_0x1016a3){const _0x3b346d=_0x20bb56;this[_0x3b346d(0x1c1)]=_0x1016a3;}[_0x20bb56(0x182)](_0x5dbf77){const _0x54e18d=_0x20bb56;this[_0x54e18d(0x1c4)][_0x54e18d(0x171)][_0x54e18d(0x182)](_0x5dbf77);}[_0x20bb56(0x15d)](){const _0x2cb1d7=_0x20bb56;this[_0x2cb1d7(0x186)](_0x45c9d6(this[_0x2cb1d7(0x18e)][_0x2cb1d7(0x161)],_0x2cb1d7(0x14f)));}[_0x20bb56(0x186)](_0x443160,_0x5596a9=!0x1){const _0x596544=_0x20bb56;if(_0x5596a9&&!_0x52e168()&&_0x443160[_0x596544(0x1b5)])return this[_0x596544(0x1c4)][_0x596544(0x148)][_0x596544(0x140)]='',void this[_0x596544(0x1b8)](_0x443160);this[_0x596544(0x1c4)][_0x596544(0x148)][_0x596544(0x140)]=_0x443160;}[_0x20bb56(0x1bf)](_0x38aa60){const _0x1fc7f3=_0x20bb56,_0x2707d2=this[_0x1fc7f3(0x1a9)](_0x38aa60);this[_0x1fc7f3(0x1c4)][_0x1fc7f3(0x171)][_0x1fc7f3(0x1bf)](_0x2707d2);}[_0x20bb56(0x1b8)](_0xe309a6){const _0x1d52c0=_0x20bb56;let _0x461e03=0x0;clearInterval(this[_0x1d52c0(0x197)]),this[_0x1d52c0(0x197)]=setInterval(()=>{const _0x13a8c6=_0x1d52c0;this[_0x13a8c6(0x1c4)][_0x13a8c6(0x148)][_0x13a8c6(0x140)]=this[_0x13a8c6(0x1c4)][_0x13a8c6(0x148)][_0x13a8c6(0x140)]+_0xe309a6[_0x461e03],_0x461e03++,_0x461e03===_0xe309a6[_0x13a8c6(0x1b5)]&&clearInterval(this[_0x13a8c6(0x197)]);},0x1e);}[_0x20bb56(0x19a)](_0xd4fbaf){const _0x4103ac=_0x20bb56;this[_0x4103ac(0x1c4)][_0x4103ac(0x148)][_0x4103ac(0x1bb)]=_0xd4fbaf;}[_0x20bb56(0x1a9)](_0x515e9d){const _0x19fb40=_0x20bb56;return _0x515e9d?_0x515e9d[_0x19fb40(0x138)]&&_0x515e9d[_0x19fb40(0x13b)]?_0x45c9d6(this[_0x19fb40(0x18e)][_0x19fb40(0x161)],_0x19fb40(0x12e)):_0x515e9d[_0x19fb40(0x138)]?_0x45c9d6(this[_0x19fb40(0x18e)][_0x19fb40(0x161)],_0x19fb40(0x134)):_0x515e9d[_0x19fb40(0x13b)]?_0x45c9d6(this[_0x19fb40(0x18e)][_0x19fb40(0x161)],_0x19fb40(0x1a8)):_0x45c9d6(this[_0x19fb40(0x18e)][_0x19fb40(0x161)],_0x19fb40(0x13a)):'';}[_0x20bb56(0x1b0)](_0x2b72c8){const _0x4d8362=_0x20bb56;return _0x2b72c8?_0x2b72c8[_0x4d8362(0x138)]&&_0x2b72c8[_0x4d8362(0x13b)]?_0x45c9d6(this[_0x4d8362(0x18e)][_0x4d8362(0x161)],_0x4d8362(0x169)):_0x2b72c8[_0x4d8362(0x138)]?_0x45c9d6(this[_0x4d8362(0x18e)][_0x4d8362(0x161)],_0x4d8362(0x1cd)):_0x2b72c8[_0x4d8362(0x13b)]?_0x45c9d6(this[_0x4d8362(0x18e)][_0x4d8362(0x161)],_0x4d8362(0x158)):_0x45c9d6(this[_0x4d8362(0x18e)][_0x4d8362(0x161)],_0x4d8362(0x173)):_0x45c9d6(this[_0x4d8362(0x18e)][_0x4d8362(0x161)],_0x4d8362(0x173));}[_0x20bb56(0x1a0)](_0xcdd90,_0x168cdc,_0x1cd633,_0x244b32){const _0x11c6aa=_0x20bb56;this[_0x11c6aa(0x1c4)][_0x11c6aa(0x1a0)](_0xcdd90,_0x168cdc,_0x1cd633,_0x244b32);}[_0x20bb56(0x1cb)](_0x27d383){const _0x218861=_0x20bb56;this[_0x218861(0x1c4)][_0x218861(0x1cb)](_0x27d383);}[_0x20bb56(0x162)](){const _0x2785f2=_0x20bb56;this[_0x2785f2(0x1c4)][_0x2785f2(0x174)][_0x2785f2(0x162)]();}[_0x20bb56(0x13d)](_0x5a147a,_0x4689b4){const _0x3490a3=_0x20bb56;this[_0x3490a3(0x1c4)][_0x3490a3(0x171)][_0x3490a3(0x1a4)](_0x5a147a,_0x4689b4);}[_0x20bb56(0x1d2)](){const _0xda573=_0x20bb56;this[_0xda573(0x1c4)][_0xda573(0x171)][_0xda573(0x1d2)]();}[_0x20bb56(0x16f)](){const _0x16fe8d=_0x20bb56;this[_0x16fe8d(0x1c4)][_0x16fe8d(0x174)][_0x16fe8d(0x152)]=!0x0;}[_0x20bb56(0x190)](){const _0x1043a1=_0x20bb56;this[_0x1043a1(0x1c4)][_0x1043a1(0x174)][_0x1043a1(0x152)]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x112097=_0xd856;(function(_0x543351,_0x16b8c7){const _0xe522cd=_0xd856,_0x4e1b38=_0x543351();while(!![]){try{const _0x178e5f=-parseInt(_0xe522cd(0x24a))/0x1+-parseInt(_0xe522cd(0x23c))/0x2+parseInt(_0xe522cd(0x255))/0x3*(-parseInt(_0xe522cd(0x1e5))/0x4)+-parseInt(_0xe522cd(0x1e7))/0x5+-parseInt(_0xe522cd(0x259))/0x6*(-parseInt(_0xe522cd(0x211))/0x7)+-parseInt(_0xe522cd(0x25d))/0x8+-parseInt(_0xe522cd(0x1f0))/0x9*(-parseInt(_0xe522cd(0x220))/0xa);if(_0x178e5f===_0x16b8c7)break;else _0x4e1b38['push'](_0x4e1b38['shift']());}catch(_0x28bb13){_0x4e1b38['push'](_0x4e1b38['shift']());}}}(_0x227f,0x2a054));function _0x227f(){const _0x5c6946=['isInContext','filter','size','enabled','getResources','end','text/markdown','addCurrentDocumentToContext','_mapContextItemToRequestData','type','_ownerId','data','6737930ydbfPG','addUrlToContext','files-','object','_finishUploadOperation','HTML','text/plain','sourceResourcesLoaded','clearPendingContextItems','document','_setAddContextOptionsDefaultState','contextItemLoadingEnded','addFilesToContext','selection','resources','string','map','ai-request-aborted','ai-chat-source-resources-load-failed','isCurrentDocumentInConversation','SELECTION','_ongoingUploads','getDocument','ai-chat-url-upload-failed','mapContextItemsToRequestData','ai-chat-context-unsupported-type','ai-chat-document-upload-failed','_conversationContextItems','236602LyqnvJ','name','sources','isReadOnly','sessionId','current-document','find','file-','label','contextItemAdded','MARKDOWN','forEach','length','contextSent','337972qmGqYe','fetchDocument','_addContextItem','code','getId','loadSourceResources','uiId','message','start','contextItemRemoved','has','6osSLvF','push','removeSelectionFromContext','_pendingContextItems','6wVnjUo','_updateResourceInContextState','_ongoingUploadOperations','url','480208rwJBcL','getPendingContextItems','ai-chat-resource-no-data','set','from','addResourceToContext','updateCurrentDocument','removeFromContext','DOCUMENT','content','ai-chat-file-upload-failed','abort','ai-chat-source-not-found','urls','_toggleAddCurrentDocumentOptionVisibility','_convertTextResourceToFile','getData','_connector','fire','resourceId','error','ai-chat-context-invalid-data','_getCustomSourcesInitialState','462732SftFqZ','addSelectionToContext','343925zrDelx','values','resourceStateChanged','getSentContextItems','_findSourceIdsByResourceId','delete','Current\x20document','all','_removeContextItem','9OOTDRh','addToConversationContext','attributes','get','uploadUrl','populateFromMessage','isSelectionInContext','isCurrentDocumentInContext','uploadProgressChanged','url-','_startUploadOperation','TEXT','files','startsWith','URL','init','uploadDocument','stack','_addToConversationContextItem','hidden','File','_addContextOptionsState','FILE','isHidden','_finishContextItemLoading','_isResourceInContext','_createContextItemFromContent','_config','text/html','version','object\x20with\x20content\x20and\x20type\x20properties','ai-chat-resource-load-failed','uploadFile','2203411gOBRjy','addContextOptionsChanged','abortController'];_0x227f=function(){return _0x5c6946;};return _0x227f();}import{CKEditorError as _0x3c7f74,ObservableMixin as _0x5a1d5f,uid as _0xe5ba27}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x4c0062,AIContextTextResourceType as _0x26dfe0}from'../../aicore/model/aicontext.js';function _0xd856(_0x424023,_0x12cdb4){const _0x227f50=_0x227f();return _0xd856=function(_0xd8567b,_0x35a040){_0xd8567b=_0xd8567b-0x1e3;let _0x81fc60=_0x227f50[_0xd8567b];return _0x81fc60;},_0xd856(_0x424023,_0x12cdb4);}import{escape as _0x142173}from'es-toolkit/compat';import{errorsMap as _0x27310e}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x112097(0x245),_0x112097(0x253),_0x112097(0x22b),_0x112097(0x249),_0x112097(0x271),_0x112097(0x212),_0x112097(0x227),_0x112097(0x1e9),_0x112097(0x1f8)];export class AIChatContext extends _0x5a1d5f(){[_0x112097(0x26e)];[_0x112097(0x20b)];[_0x112097(0x21e)];constructor({connector:_0x168d90,config:_0x3dfad3,ownerId:_0x21a7fd}){const _0x183707=_0x112097;super(),this[_0x183707(0x26e)]=_0x168d90,this[_0x183707(0x20b)]=_0x3dfad3,this[_0x183707(0x21e)]=_0x21a7fd;}[_0x112097(0x1ff)](){const _0x2d1184=_0x112097;this[_0x2d1184(0x258)]=new Map(),this[_0x2d1184(0x23b)]=new Map(),this[_0x2d1184(0x235)]=new Map(),this[_0x2d1184(0x25b)]=new Map(),this[_0x2d1184(0x22a)]();}[_0x112097(0x25e)](){const _0x387097=_0x112097;return this[_0x387097(0x258)];}async[_0x112097(0x1f5)](_0x3b5777){const _0x40b39f=_0x112097,_0x4dfbde=await this[_0x40b39f(0x20a)](_0x3b5777);return this[_0x40b39f(0x202)](_0x4dfbde),_0x40b39f(0x241)===_0x4dfbde[_0x40b39f(0x250)]&&this[_0x40b39f(0x26b)](),_0x4dfbde;}async[_0x112097(0x20a)](_0x382c14){const _0x122ecb=_0x112097;if(_0x382c14[_0x122ecb(0x21d)]===_0x4c0062[_0x122ecb(0x265)]){const _0x401d54=await this[_0x122ecb(0x26e)][_0x122ecb(0x24b)](this[_0x122ecb(0x21e)],_0x382c14['id'])[_0x122ecb(0x236)]();return{'id':_0x122ecb(0x241),'uiId':_0x122ecb(0x241),'label':_0x122ecb(0x1ed),'type':_0x382c14[_0x122ecb(0x21d)],'content':_0x401d54[_0x122ecb(0x266)],'hidden':this[_0x122ecb(0x23b)][_0x122ecb(0x254)](_0x122ecb(0x241)),'version':_0x401d54[_0x122ecb(0x1f2)]?.[_0x122ecb(0x20d)],'sessionId':_0x401d54[_0x122ecb(0x1f2)]?.[_0x122ecb(0x240)]};}return{'id':_0x382c14['id'],'uiId':_0x382c14['id'],'label':_0x382c14[_0x122ecb(0x1f2)]?.[_0x122ecb(0x244)]||_0x382c14[_0x122ecb(0x23d)]||_0x382c14[_0x122ecb(0x25c)]||_0x382c14['id'],'type':_0x382c14[_0x122ecb(0x21d)],..._0x382c14?.[_0x122ecb(0x1f2)]?.[_0x122ecb(0x270)]?{'resourceId':_0x382c14[_0x122ecb(0x1f2)]?.[_0x122ecb(0x270)]}:{}};}[_0x112097(0x1ea)](){const _0xf0a629=_0x112097;return new Map(this[_0xf0a629(0x23b)]);}[_0x112097(0x264)](_0x27af91){const _0x4ebe88=_0x112097,_0x559c69=this[_0x4ebe88(0x258)][_0x4ebe88(0x1f3)](_0x27af91);_0x559c69?.[_0x4ebe88(0x23f)]||this[_0x4ebe88(0x1ef)](_0x27af91);}[_0x112097(0x228)](){const _0x1746aa=_0x112097;if(0x0===this[_0x1746aa(0x258)][_0x1746aa(0x216)])return;for(const _0x5c32db of this[_0x1746aa(0x258)][_0x1746aa(0x1e8)]())this[_0x1746aa(0x1ef)](_0x5c32db[_0x1746aa(0x250)]);const _0xeac5d6=this[_0x1746aa(0x23b)][_0x1746aa(0x1f3)](_0x1746aa(0x241))||this[_0x1746aa(0x258)][_0x1746aa(0x1f3)](_0x1746aa(0x241));_0xeac5d6&&this[_0x1746aa(0x24c)]({..._0xeac5d6,'isReadOnly':!0x0,'hidden':!0x0});}[_0x112097(0x1f1)](_0x1bd276){const _0x1768dd=_0x112097;for(const _0x4b94fa of _0x1bd276[_0x1768dd(0x1e8)]())this[_0x1768dd(0x202)](_0x4b94fa);this[_0x1768dd(0x228)](),this[_0x1768dd(0x26f)](_0x1768dd(0x249),{'contextItems':Array[_0x1768dd(0x261)](this[_0x1768dd(0x1ea)]()[_0x1768dd(0x1e8)]())});}[_0x112097(0x1f7)](){const _0x4525=_0x112097;return this[_0x4525(0x258)][_0x4525(0x254)](_0x4525(0x241));}[_0x112097(0x1f6)](){const _0x5cb7d1=_0x112097;return this[_0x5cb7d1(0x258)][_0x5cb7d1(0x254)](_0x5cb7d1(0x22d));}[_0x112097(0x233)](){const _0x5f41a6=_0x112097;return this[_0x5f41a6(0x23b)][_0x5f41a6(0x254)](_0x5f41a6(0x241));}static[_0x112097(0x238)](_0x13cf1e){const _0x1afe64=_0x112097;return Array[_0x1afe64(0x261)](_0x13cf1e[_0x1afe64(0x1e8)]())[_0x1afe64(0x230)](_0x3c5dab=>this[_0x1afe64(0x21c)](_0x3c5dab))[_0x1afe64(0x215)](_0x5e6264=>null!==_0x5e6264);}async[_0x112097(0x22c)](_0x24fe98,_0xd0e758,_0x38ef35=_0x4c0062[_0x112097(0x206)]){const _0x32a137=_0x112097,_0x545404=_0x32a137(0x222)+_0xe5ba27();this[_0x32a137(0x1fa)](_0x545404);try{await Promise[_0x32a137(0x1ee)](_0x24fe98[_0x32a137(0x230)](async _0x3b9f32=>{const _0x50b229=_0x32a137,_0x8f5615=_0x50b229(0x243)+_0xe5ba27(),_0x1e1288=_0x142173(_0x3b9f32[_0x50b229(0x23d)]);try{this[_0x50b229(0x24c)]({'type':_0x38ef35,'label':_0xd0e758?.[_0x50b229(0x244)]||_0x1e1288,'uiId':_0x8f5615,'resourceId':_0xd0e758?.[_0x50b229(0x270)]},!0x0);const _0x3e6404=this[_0x50b229(0x26e)][_0x50b229(0x210)](this[_0x50b229(0x21e)],_0x3b9f32,_0xd0e758);this[_0x50b229(0x235)][_0x50b229(0x260)](_0x8f5615,_0x3e6404[_0x50b229(0x213)]);const {id:_0x120dab}=await _0x3e6404[_0x50b229(0x24e)]();this[_0x50b229(0x235)][_0x50b229(0x1ec)](_0x8f5615),this[_0x50b229(0x208)]({'type':_0x38ef35,'id':_0x120dab,'label':_0xd0e758?.[_0x50b229(0x244)]||_0x1e1288,'uiId':_0x8f5615,'resourceId':_0xd0e758?.[_0x50b229(0x270)]},!0x1);}catch(_0x8d22a4){this[_0x50b229(0x235)][_0x50b229(0x1ec)](_0x8f5615);if(!(_0x8d22a4 instanceof _0x3c7f74&&_0x8d22a4[_0x50b229(0x251)][_0x50b229(0x1fd)](_0x50b229(0x231)))){const _0x53c5c3=_0x27310e[_0x50b229(0x1f3)](_0x8d22a4[_0x50b229(0x24d)])||_0x50b229(0x267),_0x24158d=new _0x3c7f74(_0x53c5c3,null,{'fileName':_0x1e1288,..._0x8d22a4});_0x24158d[_0x50b229(0x201)]=_0x8d22a4[_0x50b229(0x201)],this[_0x50b229(0x26f)](_0x50b229(0x271),{'error':_0x24158d});}this[_0x50b229(0x1ef)](_0x8f5615);}}));}finally{this[_0x32a137(0x224)](_0x545404);}}[_0x112097(0x21b)](_0x2bbec5){const _0x5baaef=_0x112097;if(this[_0x5baaef(0x1f7)]())return;const _0x11a226={'type':_0x4c0062[_0x5baaef(0x265)],'uiId':_0x5baaef(0x241),'label':_0x2bbec5,'isReadOnly':this[_0x5baaef(0x23b)][_0x5baaef(0x254)](_0x5baaef(0x241)),'hidden':this[_0x5baaef(0x23b)][_0x5baaef(0x254)](_0x5baaef(0x241))};this[_0x5baaef(0x24c)](_0x11a226);}async[_0x112097(0x263)](_0x460c95,_0x1cc3f0,_0x104dad,_0x36267c){const _0x2e9659=_0x112097,_0x517637=this[_0x2e9659(0x258)][_0x2e9659(0x1f3)](_0x2e9659(0x241));if(_0x517637&&_0x460c95){_0x517637[_0x2e9659(0x22d)]=_0x36267c?_0x36267c[_0x2e9659(0x230)](_0x3e929b=>({'start':_0x3e929b[_0x2e9659(0x252)],'end':_0x3e929b[_0x2e9659(0x219)]})):[];try{if(_0x517637[_0x2e9659(0x20d)]===_0x1cc3f0)return;const {id:_0x653a6e}=await this[_0x2e9659(0x26e)][_0x2e9659(0x200)](this[_0x2e9659(0x21e)],_0x460c95,{'version':_0x1cc3f0,'sessionId':_0x104dad})[_0x2e9659(0x24e)]();_0x517637['id']=_0x653a6e,_0x517637[_0x2e9659(0x266)]=_0x460c95,_0x517637[_0x2e9659(0x20d)]=_0x1cc3f0,_0x517637[_0x2e9659(0x240)]=_0x104dad;}catch(_0x1ff481){const _0x2098a3=new _0x3c7f74(_0x2e9659(0x23a),null);_0x2098a3[_0x2e9659(0x201)]=_0x1ff481[_0x2e9659(0x201)],this[_0x2e9659(0x26f)](_0x2e9659(0x271),{'error':_0x2098a3});}}}[_0x112097(0x1e6)](_0x4636b0){const _0x117175=_0x112097;this[_0x117175(0x24c)]({'type':_0x4c0062[_0x117175(0x234)],'label':_0x4636b0,'uiId':_0x117175(0x22d),'content':_0x4636b0});}[_0x112097(0x257)](){const _0x18f6be=_0x112097;this[_0x18f6be(0x1ef)](_0x18f6be(0x22d));}async[_0x112097(0x221)](_0x30ab5c,_0x809454){const _0x2f80b2=_0x112097,_0x1055e0=_0x2f80b2(0x1f9)+_0xe5ba27();this[_0x2f80b2(0x1fa)](_0x1055e0);const _0x2386e5=_0x2f80b2(0x1f9)+_0xe5ba27();try{this[_0x2f80b2(0x24c)]({'type':_0x4c0062[_0x2f80b2(0x1fe)],'label':_0x809454?.[_0x2f80b2(0x244)]||_0x30ab5c,'uiId':_0x2386e5,'resourceId':_0x809454?.[_0x2f80b2(0x270)]},!0x0);const _0xcecb82=this[_0x2f80b2(0x26e)][_0x2f80b2(0x1f4)](this[_0x2f80b2(0x21e)],_0x30ab5c,_0x809454);this[_0x2f80b2(0x235)][_0x2f80b2(0x260)](_0x2386e5,_0xcecb82[_0x2f80b2(0x213)]);const {id:_0x1037c7}=await _0xcecb82[_0x2f80b2(0x24e)]();this[_0x2f80b2(0x235)][_0x2f80b2(0x1ec)](_0x2386e5),this[_0x2f80b2(0x208)]({'type':_0x4c0062[_0x2f80b2(0x1fe)],'id':_0x1037c7,'label':_0x809454?.[_0x2f80b2(0x244)]||_0x30ab5c,'uiId':_0x2386e5,'resourceId':_0x809454?.[_0x2f80b2(0x270)]},!0x1);}catch(_0x2799dc){this[_0x2f80b2(0x235)][_0x2f80b2(0x1ec)](_0x2386e5),(_0x2799dc[_0x2f80b2(0x251)][_0x2f80b2(0x1fd)](_0x2f80b2(0x231))||this[_0x2f80b2(0x26f)](_0x2f80b2(0x271),{'error':new _0x3c7f74(_0x2f80b2(0x237),this,{'url':_0x30ab5c,'originalError':_0x2799dc}),'url':_0x30ab5c}),this[_0x2f80b2(0x1ef)](_0x2386e5));}finally{this[_0x2f80b2(0x224)](_0x1055e0);}}async[_0x112097(0x24f)](_0x13f825,_0x2934a1,_0x4eab0d){const _0x4be432=_0x112097,_0x458fb8=this[_0x4be432(0x205)][_0x4be432(0x23e)][_0x4be432(0x242)](_0x3ce996=>_0x3ce996['id']===_0x13f825);if(!_0x458fb8)return this[_0x4be432(0x26f)](_0x4be432(0x271),{'error':new _0x3c7f74(_0x4be432(0x269),this,{'sourceId':_0x13f825}),'sourceId':_0x13f825}),[];try{const _0x45469a=(await _0x458fb8[_0x4be432(0x218)](_0x2934a1))[_0x4be432(0x230)](_0x5689fa=>{const _0x5ce90f=_0x4be432,_0x3adbda=this[_0x5ce90f(0x209)](_0x5689fa['id']);return{..._0x5689fa,'isInContext':_0x3adbda};});return _0x458fb8[_0x4be432(0x22e)]=_0x45469a,this[_0x4be432(0x26f)](_0x4be432(0x227),{'sourceId':_0x13f825,'source':_0x458fb8,'resources':_0x45469a,'uid':_0x4eab0d}),_0x45469a;}catch(_0x49310d){return this[_0x4be432(0x26f)](_0x4be432(0x271),{'error':new _0x3c7f74(_0x4be432(0x232),this,{'sourceId':_0x13f825,'originalError':_0x49310d}),'sourceId':_0x13f825,'sourceLabel':_0x458fb8[_0x4be432(0x244)]}),[];}}async[_0x112097(0x262)](_0x1176fd,_0x4c77fa){const _0xe05189=_0x112097;if(this[_0xe05189(0x209)](_0x4c77fa['id']))return;let _0x41f896=_0x4c77fa[_0xe05189(0x21f)];if(!_0x41f896&&_0x1176fd[_0xe05189(0x26d)])try{_0x41f896=await _0x1176fd[_0xe05189(0x26d)](_0x4c77fa['id']);}catch(_0x13b766){return void this[_0xe05189(0x26f)](_0xe05189(0x271),{'error':new _0x3c7f74(_0xe05189(0x20f),this,{'resourceId':_0x4c77fa['id'],'sourceId':_0x1176fd['id'],'originalError':_0x13b766}),'resourceId':_0x4c77fa['id'],'sourceId':_0x1176fd['id']});}if(_0x41f896)switch(_0x4c77fa[_0xe05189(0x21d)]){case _0x4c0062[_0xe05189(0x1fe)]:if(_0xe05189(0x22f)!=typeof _0x41f896)return void this[_0xe05189(0x26f)](_0xe05189(0x271),{'error':new _0x3c7f74(_0xe05189(0x1e3),this,{'resourceId':_0x4c77fa['id'],'sourceId':_0x1176fd['id'],'expectedType':_0xe05189(0x22f),'actualType':typeof _0x41f896}),'resourceId':_0x4c77fa['id'],'sourceId':_0x1176fd['id']});await this[_0xe05189(0x221)](_0x41f896,{'label':_0x4c77fa[_0xe05189(0x244)],'resourceId':_0x4c77fa['id']});break;case _0x4c0062[_0xe05189(0x206)]:if(!(_0x41f896 instanceof File))return void this[_0xe05189(0x26f)](_0xe05189(0x271),{'error':new _0x3c7f74(_0xe05189(0x1e3),this,{'resourceId':_0x4c77fa['id'],'sourceId':_0x1176fd['id'],'expectedType':_0xe05189(0x204),'actualType':typeof _0x41f896}),'resourceId':_0x4c77fa['id'],'sourceId':_0x1176fd['id']});await this[_0xe05189(0x22c)]([_0x41f896],{'label':_0x4c77fa[_0xe05189(0x244)],'resourceId':_0x4c77fa['id']});break;case _0x4c0062[_0xe05189(0x1fb)]:if(_0xe05189(0x223)!=typeof _0x41f896||!(_0xe05189(0x266)in _0x41f896)||!(_0xe05189(0x21d)in _0x41f896))return void this[_0xe05189(0x26f)](_0xe05189(0x271),{'error':new _0x3c7f74(_0xe05189(0x1e3),this,{'resourceId':_0x4c77fa['id'],'sourceId':_0x1176fd['id'],'expectedType':_0xe05189(0x20e),'actualType':typeof _0x41f896}),'resourceId':_0x4c77fa['id'],'sourceId':_0x1176fd['id']});_0x41f896=AIChatContext[_0xe05189(0x26c)](_0x41f896,_0x4c77fa[_0xe05189(0x244)]),await this[_0xe05189(0x22c)]([_0x41f896],{'label':_0x4c77fa[_0xe05189(0x244)],'resourceId':_0x4c77fa['id']},_0x4c0062[_0xe05189(0x1fb)]);break;default:this[_0xe05189(0x26f)](_0xe05189(0x271),{'error':new _0x3c7f74(_0xe05189(0x239),this,{'resourceId':_0x4c77fa['id'],'sourceId':_0x1176fd['id'],'resourceType':_0x4c77fa[_0xe05189(0x21d)]}),'resourceId':_0x4c77fa['id'],'sourceId':_0x1176fd['id']});}else this[_0xe05189(0x26f)](_0xe05189(0x271),{'error':new _0x3c7f74(_0xe05189(0x25f),this,{'resourceId':_0x4c77fa['id'],'sourceId':_0x1176fd['id']}),'resourceId':_0x4c77fa['id'],'sourceId':_0x1176fd['id']});}static[_0x112097(0x26c)](_0xb7a7d4,_0x4221c4){const _0x4510c9=_0x112097;switch(_0xb7a7d4[_0x4510c9(0x21d)]){case _0x26dfe0[_0x4510c9(0x246)]:return new File([_0xb7a7d4[_0x4510c9(0x266)]],_0x4221c4,{'type':_0x4510c9(0x21a)});case _0x26dfe0[_0x4510c9(0x225)]:return new File([_0xb7a7d4[_0x4510c9(0x266)]],_0x4221c4,{'type':_0x4510c9(0x20c)});default:return new File([_0xb7a7d4[_0x4510c9(0x266)]],_0x4221c4,{'type':_0x4510c9(0x226)});}}static[_0x112097(0x21c)](_0x48cf5d){const _0x4afb58=_0x112097;switch(_0x48cf5d[_0x4afb58(0x21d)]){case _0x4c0062[_0x4afb58(0x206)]:return{'type':_0x4c0062[_0x4afb58(0x206)],'id':_0x48cf5d['id']};case _0x4c0062[_0x4afb58(0x1fe)]:return{'type':_0x4c0062[_0x4afb58(0x1fe)],'id':_0x48cf5d['id']};case _0x4c0062[_0x4afb58(0x265)]:return{'type':_0x4c0062[_0x4afb58(0x265)],'id':_0x48cf5d['id'],..._0x48cf5d[_0x4afb58(0x22d)]?.[_0x4afb58(0x248)]&&{'selection':_0x48cf5d[_0x4afb58(0x22d)]}};case _0x4c0062[_0x4afb58(0x1fb)]:return{'type':_0x4c0062[_0x4afb58(0x206)],'id':_0x48cf5d['id']};default:return null;}}[_0x112097(0x24c)](_0x478270,_0x23d35d=!0x1){const _0xe946b6=_0x112097;if(this[_0xe946b6(0x258)][_0xe946b6(0x260)](_0x478270[_0xe946b6(0x250)],_0x478270),_0x478270[_0xe946b6(0x203)]||this[_0xe946b6(0x26f)](_0xe946b6(0x245),{'contextItem':_0x478270,'isLoading':_0x23d35d}),_0xe946b6(0x241)===_0x478270[_0xe946b6(0x250)]&&this[_0xe946b6(0x26b)](),_0x478270[_0xe946b6(0x270)]){const _0xdc7b19=this[_0xe946b6(0x1eb)](_0x478270[_0xe946b6(0x270)]);_0xdc7b19&&_0xdc7b19[_0xe946b6(0x247)](_0x3a5176=>{const _0x4208bb=_0xe946b6;this[_0x4208bb(0x25a)](_0x3a5176,_0x478270[_0x4208bb(0x270)],!0x0);});}}[_0x112097(0x1ef)](_0x38cdd6){const _0x3d2f9c=_0x112097,_0x278409=this[_0x3d2f9c(0x258)][_0x3d2f9c(0x1f3)](_0x38cdd6),_0x2434b4=this[_0x3d2f9c(0x235)][_0x3d2f9c(0x1f3)](_0x38cdd6);if(_0x2434b4&&(_0x2434b4[_0x3d2f9c(0x268)](),this[_0x3d2f9c(0x235)][_0x3d2f9c(0x1ec)](_0x38cdd6)),_0x278409?.[_0x3d2f9c(0x270)]){const _0x57c8e5=this[_0x3d2f9c(0x1eb)](_0x278409[_0x3d2f9c(0x270)]);_0x57c8e5&&_0x57c8e5[_0x3d2f9c(0x247)](_0x6aba1d=>{const _0x3bcdbe=_0x3d2f9c;this[_0x3bcdbe(0x25a)](_0x6aba1d,_0x278409[_0x3bcdbe(0x270)],!0x1);});}this[_0x3d2f9c(0x258)][_0x3d2f9c(0x1ec)](_0x38cdd6),this[_0x3d2f9c(0x26f)](_0x3d2f9c(0x253),{'uiId':_0x38cdd6,'type':_0x278409?.[_0x3d2f9c(0x21d)]}),_0x3d2f9c(0x241)===_0x38cdd6&&this[_0x3d2f9c(0x26b)]();}[_0x112097(0x208)](_0x4dcc3f,_0x401905){const _0x43084e=_0x112097;if(this[_0x43084e(0x258)][_0x43084e(0x254)](_0x4dcc3f[_0x43084e(0x250)])&&(this[_0x43084e(0x258)][_0x43084e(0x260)](_0x4dcc3f[_0x43084e(0x250)],_0x4dcc3f),this[_0x43084e(0x26f)](_0x43084e(0x22b),{'contextItem':_0x4dcc3f,'isLoading':_0x401905}),_0x4dcc3f[_0x43084e(0x270)])){const _0x1578e6=this[_0x43084e(0x1eb)](_0x4dcc3f[_0x43084e(0x270)]);_0x1578e6&&_0x1578e6[_0x43084e(0x247)](_0x48030c=>{const _0x36ec4f=_0x43084e;this[_0x36ec4f(0x25a)](_0x48030c,_0x4dcc3f[_0x36ec4f(0x270)],!0x0);});}}[_0x112097(0x202)](_0x567c9a){const _0x10e592=_0x112097;this[_0x10e592(0x23b)][_0x10e592(0x260)](_0x567c9a[_0x10e592(0x250)],_0x567c9a);}[_0x112097(0x22a)](){const _0x50e5d6=_0x112097;this[_0x50e5d6(0x205)]={'document':{'enabled':!0x1!==this[_0x50e5d6(0x20b)]?.[_0x50e5d6(0x229)]?.[_0x50e5d6(0x217)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x50e5d6(0x20b)]?.[_0x50e5d6(0x26a)]?.[_0x50e5d6(0x217)]},'files':{'enabled':!0x1!==this[_0x50e5d6(0x20b)]?.[_0x50e5d6(0x1fc)]?.[_0x50e5d6(0x217)]},'sources':this[_0x50e5d6(0x1e4)]()},this[_0x50e5d6(0x26f)](_0x50e5d6(0x212),{'options':this[_0x50e5d6(0x205)]});}[_0x112097(0x1e4)](){const _0x343f1b=_0x112097;return this[_0x343f1b(0x20b)]?.[_0x343f1b(0x23e)]?.[_0x343f1b(0x230)](_0x5707ba=>({..._0x5707ba,'resources':[]}))??[];}[_0x112097(0x26b)](){const _0x5c1c8f=_0x112097,_0x551d22=this[_0x5c1c8f(0x1f7)]()||this[_0x5c1c8f(0x233)]();this[_0x5c1c8f(0x205)][_0x5c1c8f(0x229)][_0x5c1c8f(0x207)]=_0x551d22,this[_0x5c1c8f(0x26f)](_0x5c1c8f(0x212),{'options':this[_0x5c1c8f(0x205)]});}[_0x112097(0x209)](_0x330cb0){const _0x1b057f=_0x112097;for(const _0x14a1ed of this[_0x1b057f(0x258)][_0x1b057f(0x1e8)]())if(_0x14a1ed[_0x1b057f(0x270)]===_0x330cb0)return!0x0;for(const _0x20222d of this[_0x1b057f(0x23b)][_0x1b057f(0x1e8)]())if(_0x20222d[_0x1b057f(0x270)]===_0x330cb0)return!0x0;return!0x1;}[_0x112097(0x1eb)](_0x41432){const _0x523d23=_0x112097,_0x25f2ff=[];for(const _0x5d7a41 of this[_0x523d23(0x205)][_0x523d23(0x23e)]){_0x5d7a41[_0x523d23(0x22e)][_0x523d23(0x242)](_0x18a676=>_0x18a676['id']===_0x41432)&&_0x25f2ff[_0x523d23(0x256)](_0x5d7a41['id']);}return 0x0===_0x25f2ff[_0x523d23(0x248)]?null:_0x25f2ff;}[_0x112097(0x25a)](_0x136b3d,_0x2c1f9d,_0x4bcdc9){const _0x37220c=_0x112097,_0x8399f1=this[_0x37220c(0x205)][_0x37220c(0x23e)][_0x37220c(0x242)](_0x1c1e45=>_0x1c1e45['id']===_0x136b3d);if(!_0x8399f1)return;const _0x4f2e0f=_0x8399f1[_0x37220c(0x22e)][_0x37220c(0x242)](_0x1cd4be=>_0x1cd4be['id']===_0x2c1f9d);_0x4f2e0f&&(_0x4f2e0f[_0x37220c(0x214)]=_0x4bcdc9,this[_0x37220c(0x26f)](_0x37220c(0x1e9),{'sourceId':_0x136b3d,'resourceId':_0x2c1f9d,'isInContext':_0x4bcdc9}));}[_0x112097(0x1fa)](_0x1086d2){const _0xd58040=_0x112097;this[_0xd58040(0x25b)][_0xd58040(0x260)](_0x1086d2,!0x0),this[_0xd58040(0x25b)][_0xd58040(0x216)]&&this[_0xd58040(0x26f)](_0xd58040(0x1f8),{'isUploadInProgress':!0x0});}[_0x112097(0x224)](_0x1ac065){const _0x1cc133=_0x112097;this[_0x1cc133(0x25b)][_0x1cc133(0x1ec)](_0x1ac065),0x0===this[_0x1cc133(0x25b)][_0x1cc133(0x216)]&&this[_0x1cc133(0x26f)](_0x1cc133(0x1f8),{'isUploadInProgress':!0x1});}}
23
+ const _0x328029=_0x18de;(function(_0x1970f0,_0x4796aa){const _0x26bea5=_0x18de,_0x70e460=_0x1970f0();while(!![]){try{const _0x53654f=parseInt(_0x26bea5(0x13b))/0x1+parseInt(_0x26bea5(0xf8))/0x2+parseInt(_0x26bea5(0xdc))/0x3*(parseInt(_0x26bea5(0xef))/0x4)+parseInt(_0x26bea5(0x137))/0x5+-parseInt(_0x26bea5(0x14c))/0x6*(-parseInt(_0x26bea5(0xd8))/0x7)+parseInt(_0x26bea5(0x156))/0x8+parseInt(_0x26bea5(0xf7))/0x9*(-parseInt(_0x26bea5(0xf9))/0xa);if(_0x53654f===_0x4796aa)break;else _0x70e460['push'](_0x70e460['shift']());}catch(_0x48c524){_0x70e460['push'](_0x70e460['shift']());}}}(_0x3177,0x4fac8));import{CKEditorError as _0x9e7702,ObservableMixin as _0x45dd7b,uid as _0x1f91d7}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x558573,AIContextTextResourceType as _0x26de67}from'../../aicore/model/aicontext.js';import{escape as _0x3b1600}from'es-toolkit/compat';function _0x3177(){const _0x2360d7=['all','_finishUploadOperation','addUrlToContext','populateFromMessage','1608712jhTQPq','ai-chat-resource-load-failed','HTML','abort','object','set','_createContextItemFromContent','Current\x20document','code','isHidden','contextItemLoadingEnded','contextItemAdded','stack','isSelectionInContext','start','removeSelectionFromContext','size','3702202wGJeNL','resourceStateChanged','addCurrentDocumentToContext','getId','39oVejZR','url','enabled','uploadFile','_addContextItem','attributes','length','urls','uploadDocument','removeFromContext','_ongoingUploadOperations','SELECTION','FILE','File','string','error','_removeContextItem','document','clearPendingContextItems','88524IkzoXy','uploadProgressChanged','current-document','hidden','ai-chat-file-upload-failed','end','mapContextItemsToRequestData','map','9tPBoWg','883578MQXZXY','16422660CZwLDe','ai-chat-document-upload-failed','getDocument','ai-chat-context-invalid-data','type','_connector','getSentContextItems','ai-chat-source-not-found','fetchDocument','file-','_ownerId','text/html','ai-chat-source-resources-load-failed','addContextOptionsChanged','from','_conversationContextItems','DOCUMENT','_startUploadOperation','URL','startsWith','ai-chat-resource-no-data','addSelectionToContext','_isResourceInContext','_findSourceIdsByResourceId','_pendingContextItems','loadSourceResources','forEach','_addContextOptionsState','content','ai-chat-url-upload-failed','getData','resources','sources','MARKDOWN','fire','_config','isCurrentDocumentInConversation','uploadUrl','addFilesToContext','isInContext','_finishContextItemLoading','_getCustomSourcesInitialState','message','resourceId','addToConversationContext','_setAddContextOptionsDefaultState','updateCurrentDocument','_convertTextResourceToFile','uiId','data','TEXT','sourceResourcesLoaded','init','selection','_updateResourceInContextState','label','url-','getResources','ai-request-aborted','filter','text/plain','ai-chat-context-unsupported-type','424930uqGFbl','files','find','name','424157Fnzbpi','contextItemRemoved','isCurrentDocumentInContext','push','_addToConversationContextItem','_toggleAddCurrentDocumentOptionVisibility','has','files-','_mapContextItemToRequestData','version','abortController','isReadOnly','object\x20with\x20content\x20and\x20type\x20properties','delete','get','getPendingContextItems','sessionId','6PwSKKE','text/markdown','addResourceToContext','_ongoingUploads','contextSent','values'];_0x3177=function(){return _0x2360d7;};return _0x3177();}import{errorsMap as _0x431612}from'../../errorsmap.js';function _0x18de(_0x390cf1,_0x3d3b35){const _0x317707=_0x3177();return _0x18de=function(_0x18de3d,_0x416491){_0x18de3d=_0x18de3d-0xd0;let _0x175e69=_0x317707[_0x18de3d];return _0x175e69;},_0x18de(_0x390cf1,_0x3d3b35);}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x328029(0xd2),_0x328029(0x13c),_0x328029(0xd1),_0x328029(0x150),_0x328029(0xeb),_0x328029(0x106),_0x328029(0x12c),_0x328029(0xd9),_0x328029(0xf0)];export class AIChatContext extends _0x45dd7b(){[_0x328029(0xfe)];[_0x328029(0x11c)];[_0x328029(0x103)];constructor({connector:_0x19d7f1,config:_0x24d00d,ownerId:_0x386b14}){const _0x1212d6=_0x328029;super(),this[_0x1212d6(0xfe)]=_0x19d7f1,this[_0x1212d6(0x11c)]=_0x24d00d,this[_0x1212d6(0x103)]=_0x386b14;}[_0x328029(0x12d)](){const _0x528fbe=_0x328029;this[_0x528fbe(0x111)]=new Map(),this[_0x528fbe(0x108)]=new Map(),this[_0x528fbe(0x14f)]=new Map(),this[_0x528fbe(0xe6)]=new Map(),this[_0x528fbe(0x126)]();}[_0x328029(0x14a)](){const _0x3e9fff=_0x328029;return this[_0x3e9fff(0x111)];}async[_0x328029(0x155)](_0x488c13){const _0x427fa1=_0x328029,_0x5ad11a=await this[_0x427fa1(0x15c)](_0x488c13);return this[_0x427fa1(0x13f)](_0x5ad11a),_0x427fa1(0xf1)===_0x5ad11a[_0x427fa1(0x129)]&&this[_0x427fa1(0x140)](),_0x5ad11a;}async[_0x328029(0x15c)](_0x239e0d){const _0x52ec24=_0x328029;if(_0x239e0d[_0x52ec24(0xfd)]===_0x558573[_0x52ec24(0x109)]){const _0x4b8e3a=await this[_0x52ec24(0xfe)][_0x52ec24(0x101)](this[_0x52ec24(0x103)],_0x239e0d['id'])[_0x52ec24(0xfb)]();return{'id':_0x52ec24(0xf1),'uiId':_0x52ec24(0xf1),'label':_0x52ec24(0x15d),'type':_0x239e0d[_0x52ec24(0xfd)],'content':_0x4b8e3a[_0x52ec24(0x115)],'hidden':this[_0x52ec24(0x108)][_0x52ec24(0x141)](_0x52ec24(0xf1)),'version':_0x4b8e3a[_0x52ec24(0xe1)]?.[_0x52ec24(0x144)],'sessionId':_0x4b8e3a[_0x52ec24(0xe1)]?.[_0x52ec24(0x14b)]};}return{'id':_0x239e0d['id'],'uiId':_0x239e0d['id'],'label':_0x239e0d[_0x52ec24(0xe1)]?.[_0x52ec24(0x130)]||_0x239e0d[_0x52ec24(0x13a)]||_0x239e0d[_0x52ec24(0xdd)]||_0x239e0d['id'],'type':_0x239e0d[_0x52ec24(0xfd)],..._0x239e0d?.[_0x52ec24(0xe1)]?.[_0x52ec24(0x124)]?{'resourceId':_0x239e0d[_0x52ec24(0xe1)]?.[_0x52ec24(0x124)]}:{}};}[_0x328029(0xff)](){const _0x3fa13b=_0x328029;return new Map(this[_0x3fa13b(0x108)]);}[_0x328029(0xe5)](_0x4b09bd){const _0x4c6225=_0x328029,_0x56b343=this[_0x4c6225(0x111)][_0x4c6225(0x149)](_0x4b09bd);_0x56b343?.[_0x4c6225(0x146)]||this[_0x4c6225(0xec)](_0x4b09bd);}[_0x328029(0xee)](){const _0x2cfd62=_0x328029;if(0x0===this[_0x2cfd62(0x111)][_0x2cfd62(0xd7)])return;for(const _0x281deb of this[_0x2cfd62(0x111)][_0x2cfd62(0x151)]())this[_0x2cfd62(0xec)](_0x281deb[_0x2cfd62(0x129)]);const _0x11f564=this[_0x2cfd62(0x108)][_0x2cfd62(0x149)](_0x2cfd62(0xf1))||this[_0x2cfd62(0x111)][_0x2cfd62(0x149)](_0x2cfd62(0xf1));_0x11f564&&this[_0x2cfd62(0xe0)]({..._0x11f564,'isReadOnly':!0x0,'hidden':!0x0});}[_0x328029(0x125)](_0x265e5b){const _0x30dfcd=_0x328029;for(const _0x4d4c94 of _0x265e5b[_0x30dfcd(0x151)]())this[_0x30dfcd(0x13f)](_0x4d4c94);this[_0x30dfcd(0xee)](),this[_0x30dfcd(0x11b)](_0x30dfcd(0x150),{'contextItems':Array[_0x30dfcd(0x107)](this[_0x30dfcd(0xff)]()[_0x30dfcd(0x151)]())});}[_0x328029(0x13d)](){const _0x9212b8=_0x328029;return this[_0x9212b8(0x111)][_0x9212b8(0x141)](_0x9212b8(0xf1));}[_0x328029(0xd4)](){const _0x435128=_0x328029;return this[_0x435128(0x111)][_0x435128(0x141)](_0x435128(0x12e));}[_0x328029(0x11d)](){const _0x279cbf=_0x328029;return this[_0x279cbf(0x108)][_0x279cbf(0x141)](_0x279cbf(0xf1));}static[_0x328029(0xf5)](_0x122ab4){const _0x313ced=_0x328029;return Array[_0x313ced(0x107)](_0x122ab4[_0x313ced(0x151)]())[_0x313ced(0xf6)](_0x1863e4=>this[_0x313ced(0x143)](_0x1863e4))[_0x313ced(0x134)](_0x459969=>null!==_0x459969);}async[_0x328029(0x11f)](_0x160151,_0x236309,_0x1d1465=_0x558573[_0x328029(0xe8)]){const _0x47cd6f=_0x328029,_0x454644=_0x47cd6f(0x142)+_0x1f91d7();this[_0x47cd6f(0x10a)](_0x454644);try{await Promise[_0x47cd6f(0x152)](_0x160151[_0x47cd6f(0xf6)](async _0x265a77=>{const _0x393cf6=_0x47cd6f,_0x417fce=_0x393cf6(0x102)+_0x1f91d7(),_0x2a4bfd=_0x3b1600(_0x265a77[_0x393cf6(0x13a)]);try{this[_0x393cf6(0xe0)]({'type':_0x1d1465,'label':_0x236309?.[_0x393cf6(0x130)]||_0x2a4bfd,'uiId':_0x417fce,'resourceId':_0x236309?.[_0x393cf6(0x124)]},!0x0);const _0x1f5a15=this[_0x393cf6(0xfe)][_0x393cf6(0xdf)](this[_0x393cf6(0x103)],_0x265a77,_0x236309);this[_0x393cf6(0x14f)][_0x393cf6(0x15b)](_0x417fce,_0x1f5a15[_0x393cf6(0x145)]);const {id:_0x2949c2}=await _0x1f5a15[_0x393cf6(0xdb)]();this[_0x393cf6(0x14f)][_0x393cf6(0x148)](_0x417fce),this[_0x393cf6(0x121)]({'type':_0x1d1465,'id':_0x2949c2,'label':_0x236309?.[_0x393cf6(0x130)]||_0x2a4bfd,'uiId':_0x417fce,'resourceId':_0x236309?.[_0x393cf6(0x124)]},!0x1);}catch(_0x5f061a){this[_0x393cf6(0x14f)][_0x393cf6(0x148)](_0x417fce);if(!(_0x5f061a instanceof _0x9e7702&&_0x5f061a[_0x393cf6(0x123)][_0x393cf6(0x10c)](_0x393cf6(0x133)))){const _0x473ff9=_0x431612[_0x393cf6(0x149)](_0x5f061a[_0x393cf6(0x15e)])||_0x393cf6(0xf3),_0x55c76f=new _0x9e7702(_0x473ff9,null,{'fileName':_0x2a4bfd,..._0x5f061a});_0x55c76f[_0x393cf6(0xd3)]=_0x5f061a[_0x393cf6(0xd3)],this[_0x393cf6(0x11b)](_0x393cf6(0xeb),{'error':_0x55c76f});}this[_0x393cf6(0xec)](_0x417fce);}}));}finally{this[_0x47cd6f(0x153)](_0x454644);}}[_0x328029(0xda)](_0x2d8fd0){const _0x300689=_0x328029;if(this[_0x300689(0x13d)]())return;const _0x4bc1fb={'type':_0x558573[_0x300689(0x109)],'uiId':_0x300689(0xf1),'label':_0x2d8fd0,'isReadOnly':this[_0x300689(0x108)][_0x300689(0x141)](_0x300689(0xf1)),'hidden':this[_0x300689(0x108)][_0x300689(0x141)](_0x300689(0xf1))};this[_0x300689(0xe0)](_0x4bc1fb);}async[_0x328029(0x127)](_0x27ed3b,_0x467322,_0x2133ca,_0x29f726){const _0x41187=_0x328029,_0x5a3cf5=this[_0x41187(0x111)][_0x41187(0x149)](_0x41187(0xf1));if(_0x5a3cf5&&_0x27ed3b){_0x5a3cf5[_0x41187(0x12e)]=_0x29f726?_0x29f726[_0x41187(0xf6)](_0x46f580=>({'start':_0x46f580[_0x41187(0xd5)],'end':_0x46f580[_0x41187(0xf4)]})):[];try{if(_0x5a3cf5[_0x41187(0x144)]===_0x467322)return;const {id:_0x1ff82d}=await this[_0x41187(0xfe)][_0x41187(0xe4)](this[_0x41187(0x103)],_0x27ed3b,{'version':_0x467322,'sessionId':_0x2133ca})[_0x41187(0xdb)]();_0x5a3cf5['id']=_0x1ff82d,_0x5a3cf5[_0x41187(0x115)]=_0x27ed3b,_0x5a3cf5[_0x41187(0x144)]=_0x467322,_0x5a3cf5[_0x41187(0x14b)]=_0x2133ca;}catch(_0x3b2bf){const _0x55f1b3=new _0x9e7702(_0x41187(0xfa),null);_0x55f1b3[_0x41187(0xd3)]=_0x3b2bf[_0x41187(0xd3)],this[_0x41187(0x11b)](_0x41187(0xeb),{'error':_0x55f1b3});}}}[_0x328029(0x10e)](_0x100f82){const _0x12e799=_0x328029;this[_0x12e799(0xe0)]({'type':_0x558573[_0x12e799(0xe7)],'label':_0x100f82,'uiId':_0x12e799(0x12e),'content':_0x100f82});}[_0x328029(0xd6)](){const _0xfa50fe=_0x328029;this[_0xfa50fe(0xec)](_0xfa50fe(0x12e));}async[_0x328029(0x154)](_0x21cc9d,_0x4556ef){const _0x4a5478=_0x328029,_0xb635f4=_0x4a5478(0x131)+_0x1f91d7();this[_0x4a5478(0x10a)](_0xb635f4);const _0x25b629=_0x4a5478(0x131)+_0x1f91d7();try{this[_0x4a5478(0xe0)]({'type':_0x558573[_0x4a5478(0x10b)],'label':_0x4556ef?.[_0x4a5478(0x130)]||_0x21cc9d,'uiId':_0x25b629,'resourceId':_0x4556ef?.[_0x4a5478(0x124)]},!0x0);const _0x5a7df0=this[_0x4a5478(0xfe)][_0x4a5478(0x11e)](this[_0x4a5478(0x103)],_0x21cc9d,_0x4556ef);this[_0x4a5478(0x14f)][_0x4a5478(0x15b)](_0x25b629,_0x5a7df0[_0x4a5478(0x145)]);const {id:_0xf2ab11}=await _0x5a7df0[_0x4a5478(0xdb)]();this[_0x4a5478(0x14f)][_0x4a5478(0x148)](_0x25b629),this[_0x4a5478(0x121)]({'type':_0x558573[_0x4a5478(0x10b)],'id':_0xf2ab11,'label':_0x4556ef?.[_0x4a5478(0x130)]||_0x21cc9d,'uiId':_0x25b629,'resourceId':_0x4556ef?.[_0x4a5478(0x124)]},!0x1);}catch(_0x589515){this[_0x4a5478(0x14f)][_0x4a5478(0x148)](_0x25b629),(_0x589515[_0x4a5478(0x123)][_0x4a5478(0x10c)](_0x4a5478(0x133))||this[_0x4a5478(0x11b)](_0x4a5478(0xeb),{'error':new _0x9e7702(_0x4a5478(0x116),this,{'url':_0x21cc9d,'originalError':_0x589515}),'url':_0x21cc9d}),this[_0x4a5478(0xec)](_0x25b629));}finally{this[_0x4a5478(0x153)](_0xb635f4);}}async[_0x328029(0x112)](_0xfc85cb,_0x5b8e10,_0x41d45b){const _0x49c821=_0x328029,_0x56ed5e=this[_0x49c821(0x114)][_0x49c821(0x119)][_0x49c821(0x139)](_0x21f39c=>_0x21f39c['id']===_0xfc85cb);if(!_0x56ed5e)return this[_0x49c821(0x11b)](_0x49c821(0xeb),{'error':new _0x9e7702(_0x49c821(0x100),this,{'sourceId':_0xfc85cb}),'sourceId':_0xfc85cb}),[];try{const _0x5085f8=(await _0x56ed5e[_0x49c821(0x132)](_0x5b8e10))[_0x49c821(0xf6)](_0x3d63a3=>{const _0x3088f2=_0x49c821,_0x42b1b1=this[_0x3088f2(0x10f)](_0x3d63a3['id']);return{..._0x3d63a3,'isInContext':_0x42b1b1};});return _0x56ed5e[_0x49c821(0x118)]=_0x5085f8,this[_0x49c821(0x11b)](_0x49c821(0x12c),{'sourceId':_0xfc85cb,'source':_0x56ed5e,'resources':_0x5085f8,'uid':_0x41d45b}),_0x5085f8;}catch(_0x1c5ea7){return this[_0x49c821(0x11b)](_0x49c821(0xeb),{'error':new _0x9e7702(_0x49c821(0x105),this,{'sourceId':_0xfc85cb,'originalError':_0x1c5ea7}),'sourceId':_0xfc85cb,'sourceLabel':_0x56ed5e[_0x49c821(0x130)]}),[];}}async[_0x328029(0x14e)](_0x36c45f,_0x2b7f40){const _0x4743=_0x328029;if(this[_0x4743(0x10f)](_0x2b7f40['id']))return;let _0x795d29=_0x2b7f40[_0x4743(0x12a)];if(!_0x795d29&&_0x36c45f[_0x4743(0x117)])try{_0x795d29=await _0x36c45f[_0x4743(0x117)](_0x2b7f40['id']);}catch(_0x341e60){return void this[_0x4743(0x11b)](_0x4743(0xeb),{'error':new _0x9e7702(_0x4743(0x157),this,{'resourceId':_0x2b7f40['id'],'sourceId':_0x36c45f['id'],'originalError':_0x341e60}),'resourceId':_0x2b7f40['id'],'sourceId':_0x36c45f['id']});}if(_0x795d29)switch(_0x2b7f40[_0x4743(0xfd)]){case _0x558573[_0x4743(0x10b)]:if(_0x4743(0xea)!=typeof _0x795d29)return void this[_0x4743(0x11b)](_0x4743(0xeb),{'error':new _0x9e7702(_0x4743(0xfc),this,{'resourceId':_0x2b7f40['id'],'sourceId':_0x36c45f['id'],'expectedType':_0x4743(0xea),'actualType':typeof _0x795d29}),'resourceId':_0x2b7f40['id'],'sourceId':_0x36c45f['id']});await this[_0x4743(0x154)](_0x795d29,{'label':_0x2b7f40[_0x4743(0x130)],'resourceId':_0x2b7f40['id']});break;case _0x558573[_0x4743(0xe8)]:if(!(_0x795d29 instanceof File))return void this[_0x4743(0x11b)](_0x4743(0xeb),{'error':new _0x9e7702(_0x4743(0xfc),this,{'resourceId':_0x2b7f40['id'],'sourceId':_0x36c45f['id'],'expectedType':_0x4743(0xe9),'actualType':typeof _0x795d29}),'resourceId':_0x2b7f40['id'],'sourceId':_0x36c45f['id']});await this[_0x4743(0x11f)]([_0x795d29],{'label':_0x2b7f40[_0x4743(0x130)],'resourceId':_0x2b7f40['id']});break;case _0x558573[_0x4743(0x12b)]:if(_0x4743(0x15a)!=typeof _0x795d29||!(_0x4743(0x115)in _0x795d29)||!(_0x4743(0xfd)in _0x795d29))return void this[_0x4743(0x11b)](_0x4743(0xeb),{'error':new _0x9e7702(_0x4743(0xfc),this,{'resourceId':_0x2b7f40['id'],'sourceId':_0x36c45f['id'],'expectedType':_0x4743(0x147),'actualType':typeof _0x795d29}),'resourceId':_0x2b7f40['id'],'sourceId':_0x36c45f['id']});_0x795d29=AIChatContext[_0x4743(0x128)](_0x795d29,_0x2b7f40[_0x4743(0x130)]),await this[_0x4743(0x11f)]([_0x795d29],{'label':_0x2b7f40[_0x4743(0x130)],'resourceId':_0x2b7f40['id']},_0x558573[_0x4743(0x12b)]);break;default:this[_0x4743(0x11b)](_0x4743(0xeb),{'error':new _0x9e7702(_0x4743(0x136),this,{'resourceId':_0x2b7f40['id'],'sourceId':_0x36c45f['id'],'resourceType':_0x2b7f40[_0x4743(0xfd)]}),'resourceId':_0x2b7f40['id'],'sourceId':_0x36c45f['id']});}else this[_0x4743(0x11b)](_0x4743(0xeb),{'error':new _0x9e7702(_0x4743(0x10d),this,{'resourceId':_0x2b7f40['id'],'sourceId':_0x36c45f['id']}),'resourceId':_0x2b7f40['id'],'sourceId':_0x36c45f['id']});}static[_0x328029(0x128)](_0x5ddc72,_0x4d38c8){const _0xa547ee=_0x328029;switch(_0x5ddc72[_0xa547ee(0xfd)]){case _0x26de67[_0xa547ee(0x11a)]:return new File([_0x5ddc72[_0xa547ee(0x115)]],_0x4d38c8,{'type':_0xa547ee(0x14d)});case _0x26de67[_0xa547ee(0x158)]:return new File([_0x5ddc72[_0xa547ee(0x115)]],_0x4d38c8,{'type':_0xa547ee(0x104)});default:return new File([_0x5ddc72[_0xa547ee(0x115)]],_0x4d38c8,{'type':_0xa547ee(0x135)});}}static[_0x328029(0x143)](_0x41d732){const _0x1d6540=_0x328029;switch(_0x41d732[_0x1d6540(0xfd)]){case _0x558573[_0x1d6540(0xe8)]:return{'type':_0x558573[_0x1d6540(0xe8)],'id':_0x41d732['id']};case _0x558573[_0x1d6540(0x10b)]:return{'type':_0x558573[_0x1d6540(0x10b)],'id':_0x41d732['id']};case _0x558573[_0x1d6540(0x109)]:return{'type':_0x558573[_0x1d6540(0x109)],'id':_0x41d732['id'],..._0x41d732[_0x1d6540(0x12e)]?.[_0x1d6540(0xe2)]&&{'selection':_0x41d732[_0x1d6540(0x12e)]}};case _0x558573[_0x1d6540(0x12b)]:return{'type':_0x558573[_0x1d6540(0xe8)],'id':_0x41d732['id']};default:return null;}}[_0x328029(0xe0)](_0x8e1315,_0x3689a9=!0x1){const _0x25c0d1=_0x328029;if(this[_0x25c0d1(0x111)][_0x25c0d1(0x15b)](_0x8e1315[_0x25c0d1(0x129)],_0x8e1315),_0x8e1315[_0x25c0d1(0xf2)]||this[_0x25c0d1(0x11b)](_0x25c0d1(0xd2),{'contextItem':_0x8e1315,'isLoading':_0x3689a9}),_0x25c0d1(0xf1)===_0x8e1315[_0x25c0d1(0x129)]&&this[_0x25c0d1(0x140)](),_0x8e1315[_0x25c0d1(0x124)]){const _0xbc0c2b=this[_0x25c0d1(0x110)](_0x8e1315[_0x25c0d1(0x124)]);_0xbc0c2b&&_0xbc0c2b[_0x25c0d1(0x113)](_0x64505e=>{const _0x5d2841=_0x25c0d1;this[_0x5d2841(0x12f)](_0x64505e,_0x8e1315[_0x5d2841(0x124)],!0x0);});}}[_0x328029(0xec)](_0x524b33){const _0x1671b4=_0x328029,_0x2632bb=this[_0x1671b4(0x111)][_0x1671b4(0x149)](_0x524b33),_0x9d3c4c=this[_0x1671b4(0x14f)][_0x1671b4(0x149)](_0x524b33);if(_0x9d3c4c&&(_0x9d3c4c[_0x1671b4(0x159)](),this[_0x1671b4(0x14f)][_0x1671b4(0x148)](_0x524b33)),_0x2632bb?.[_0x1671b4(0x124)]){const _0x111510=this[_0x1671b4(0x110)](_0x2632bb[_0x1671b4(0x124)]);_0x111510&&_0x111510[_0x1671b4(0x113)](_0x17eb71=>{const _0x587937=_0x1671b4;this[_0x587937(0x12f)](_0x17eb71,_0x2632bb[_0x587937(0x124)],!0x1);});}this[_0x1671b4(0x111)][_0x1671b4(0x148)](_0x524b33),this[_0x1671b4(0x11b)](_0x1671b4(0x13c),{'uiId':_0x524b33,'type':_0x2632bb?.[_0x1671b4(0xfd)]}),_0x1671b4(0xf1)===_0x524b33&&this[_0x1671b4(0x140)]();}[_0x328029(0x121)](_0x4d3d29,_0x555a3e){const _0x51d026=_0x328029;if(this[_0x51d026(0x111)][_0x51d026(0x141)](_0x4d3d29[_0x51d026(0x129)])&&(this[_0x51d026(0x111)][_0x51d026(0x15b)](_0x4d3d29[_0x51d026(0x129)],_0x4d3d29),this[_0x51d026(0x11b)](_0x51d026(0xd1),{'contextItem':_0x4d3d29,'isLoading':_0x555a3e}),_0x4d3d29[_0x51d026(0x124)])){const _0x2e8397=this[_0x51d026(0x110)](_0x4d3d29[_0x51d026(0x124)]);_0x2e8397&&_0x2e8397[_0x51d026(0x113)](_0x18c406=>{const _0xe8f18d=_0x51d026;this[_0xe8f18d(0x12f)](_0x18c406,_0x4d3d29[_0xe8f18d(0x124)],!0x0);});}}[_0x328029(0x13f)](_0x46cc90){const _0x159f0e=_0x328029;this[_0x159f0e(0x108)][_0x159f0e(0x15b)](_0x46cc90[_0x159f0e(0x129)],_0x46cc90);}[_0x328029(0x126)](){const _0x342a7a=_0x328029;this[_0x342a7a(0x114)]={'document':{'enabled':!0x1!==this[_0x342a7a(0x11c)]?.[_0x342a7a(0xed)]?.[_0x342a7a(0xde)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x342a7a(0x11c)]?.[_0x342a7a(0xe3)]?.[_0x342a7a(0xde)]},'files':{'enabled':!0x1!==this[_0x342a7a(0x11c)]?.[_0x342a7a(0x138)]?.[_0x342a7a(0xde)]},'sources':this[_0x342a7a(0x122)]()},this[_0x342a7a(0x11b)](_0x342a7a(0x106),{'options':this[_0x342a7a(0x114)]});}[_0x328029(0x122)](){const _0x71cbbc=_0x328029;return this[_0x71cbbc(0x11c)]?.[_0x71cbbc(0x119)]?.[_0x71cbbc(0xf6)](_0x2f41be=>({..._0x2f41be,'resources':[]}))??[];}[_0x328029(0x140)](){const _0x5cd7ad=_0x328029,_0x338526=this[_0x5cd7ad(0x13d)]()||this[_0x5cd7ad(0x11d)]();this[_0x5cd7ad(0x114)][_0x5cd7ad(0xed)][_0x5cd7ad(0xd0)]=_0x338526,this[_0x5cd7ad(0x11b)](_0x5cd7ad(0x106),{'options':this[_0x5cd7ad(0x114)]});}[_0x328029(0x10f)](_0x4311fa){const _0x1e627c=_0x328029;for(const _0x242a2a of this[_0x1e627c(0x111)][_0x1e627c(0x151)]())if(_0x242a2a[_0x1e627c(0x124)]===_0x4311fa)return!0x0;for(const _0x23502a of this[_0x1e627c(0x108)][_0x1e627c(0x151)]())if(_0x23502a[_0x1e627c(0x124)]===_0x4311fa)return!0x0;return!0x1;}[_0x328029(0x110)](_0x5a91f9){const _0x23ebdb=_0x328029,_0x263a84=[];for(const _0x3619c9 of this[_0x23ebdb(0x114)][_0x23ebdb(0x119)]){_0x3619c9[_0x23ebdb(0x118)][_0x23ebdb(0x139)](_0x2d7990=>_0x2d7990['id']===_0x5a91f9)&&_0x263a84[_0x23ebdb(0x13e)](_0x3619c9['id']);}return 0x0===_0x263a84[_0x23ebdb(0xe2)]?null:_0x263a84;}[_0x328029(0x12f)](_0x19beec,_0x4d658f,_0xa8b99d){const _0x55eac0=_0x328029,_0x18d192=this[_0x55eac0(0x114)][_0x55eac0(0x119)][_0x55eac0(0x139)](_0x22992d=>_0x22992d['id']===_0x19beec);if(!_0x18d192)return;const _0x3bff72=_0x18d192[_0x55eac0(0x118)][_0x55eac0(0x139)](_0x14934d=>_0x14934d['id']===_0x4d658f);_0x3bff72&&(_0x3bff72[_0x55eac0(0x120)]=_0xa8b99d,this[_0x55eac0(0x11b)](_0x55eac0(0xd9),{'sourceId':_0x19beec,'resourceId':_0x4d658f,'isInContext':_0xa8b99d}));}[_0x328029(0x10a)](_0x5509ea){const _0x55cadc=_0x328029;this[_0x55cadc(0xe6)][_0x55cadc(0x15b)](_0x5509ea,!0x0),this[_0x55cadc(0xe6)][_0x55cadc(0xd7)]&&this[_0x55cadc(0x11b)](_0x55cadc(0xf0),{'isUploadInProgress':!0x0});}[_0x328029(0x153)](_0x37b479){const _0x4d90a1=_0x328029;this[_0x4d90a1(0xe6)][_0x4d90a1(0x148)](_0x37b479),0x0===this[_0x4d90a1(0xe6)][_0x4d90a1(0xd7)]&&this[_0x4d90a1(0x11b)](_0x4d90a1(0xf0),{'isUploadInProgress':!0x1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x29e7(){const _0x4493d0=['isStarted','lastInteraction','message','237910fNDhqq','ai-chat-conversation-set-model-null','getCurrentDocumentContext','addCurrentDocumentToContext','ai-chat-handle-user-conversation-not-initialized','ai-chat-conversation-set-model-not-available','addResourceToContext','handleUserInteraction','ai-chat-handle-user-interaction-already-in-progress','loadSourceResources','currentReply','type','removeSelectionFromContext','model','createReply','sessionId','getConversation','isAvailable','title','getCapabilitiesConfig','ai-chat-conversation-start-failed','capabilities','createInteraction','delegate','ai-chat-handle-user-interaction-start-failed','conversationStarted','fire','setModel','891104uAdVAL','getEditor','error','quickActionData','removeInteraction','modelSelected','populateFromMessage','isSelectionInContext','chatCapabilities','isCurrentDocumentInContext','interactionCreated','setConversationTitle','content','reset','_processMessagesToInteractions','addToConversationContext','updateCurrentDocument','group','65872tdXgBn','user','modification-delta','81sSAjjY','chatContext','init','6iRNpwL','selectedModelId','find','startConversation','length','updateCurrentDocumentInContext','prompt','getModel','start','toLowerCase','fetchConversation','conversationId','selectedModel','addUrlToContext','text','contextItems','3491940kpDDGP','ai-chat-conversation-init-from-id-failed','set','getInteraction','options','removeFromContext','stack','ai-chat-conversation-init-failed','toggleWebSearch','fetchConversationMessages','code','destroy','push','ai-chat-conversation-start-no-model-selected','reasoning','attributes','indexOf','text-delta','isCurrentDocumentInConversation','18HokEdJ','conversationInitialized','currentInteraction','connector','getPendingContextItems','chatModels','getAvailableModels','addSelectionToContext','stop','_extractContextItems','getMessages','addFilesToContext','get','appendContent','webSearch','assistant','899481SvVmHQ','2349858yjAsRN','780056YolyVG','ai-chat-conversation-already-started','hasOwn','splice','toggleReasoning','getDocumentContext','role','getAll','interactions','load'];_0x29e7=function(){return _0x4493d0;};return _0x29e7();}const _0x27180e=_0x46c7;(function(_0x52fc7f,_0x17b6ae){const _0x55904d=_0x46c7,_0x864039=_0x52fc7f();while(!![]){try{const _0x3130f1=parseInt(_0x55904d(0x1a8))/0x1+parseInt(_0x55904d(0x16f))/0x2*(parseInt(_0x55904d(0x198))/0x3)+-parseInt(_0x55904d(0x15d))/0x4+parseInt(_0x55904d(0x1b7))/0x5*(-parseInt(_0x55904d(0x175))/0x6)+parseInt(_0x55904d(0x1a9))/0x7+parseInt(_0x55904d(0x1aa))/0x8*(-parseInt(_0x55904d(0x172))/0x9)+parseInt(_0x55904d(0x185))/0xa;if(_0x3130f1===_0x17b6ae)break;else _0x864039['push'](_0x864039['shift']());}catch(_0x5986fc){_0x864039['push'](_0x864039['shift']());}}}(_0x29e7,0x9acd0));function _0x46c7(_0x2396db,_0x43ee06){const _0x29e7a9=_0x29e7();return _0x46c7=function(_0x46c786,_0x2e1762){_0x46c786=_0x46c786-0x158;let _0x35dc4=_0x29e7a9[_0x46c786];return _0x35dc4;},_0x46c7(_0x2396db,_0x43ee06);}import{CKEditorError as _0x58cf55,EmitterMixin as _0x392dce,logWarning as _0x3e202a}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x37efe1}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x501822,AI_CONTEXT_MODEL_EVENT_NAMES as _0x33dd08}from'./aichatcontext.js';import{AICapabilities as _0x59e187,CAPABILITIES_MODEL_EVENT_NAMES as _0x58600e}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x35f633}from'./aichatinteraction.js';import{errorsMap as _0xb34857}from'../../errorsmap.js';export class AIChatConversation extends _0x392dce(){['id'];[_0x27180e(0x1b4)]=!0x1;[_0x27180e(0x1b2)]=[];[_0x27180e(0x19a)];[_0x27180e(0x181)];[_0x27180e(0x19b)];[_0x27180e(0x189)];constructor(_0x468cc0){const _0x5f4ee6=_0x27180e;super(),this[_0x5f4ee6(0x189)]=_0x468cc0,this[_0x5f4ee6(0x19b)]=_0x468cc0[_0x5f4ee6(0x19b)],this[_0x5f4ee6(0x19d)]=_0x468cc0[_0x5f4ee6(0x19d)],this['id']=_0x468cc0[_0x5f4ee6(0x180)];}async[_0x27180e(0x174)](_0x1b2b6c){const _0x508473=_0x27180e;try{this[_0x508473(0x173)]=new _0x501822({'connector':this[_0x508473(0x19b)],'config':_0x1b2b6c,'ownerId':this['id']}),this[_0x508473(0x173)][_0x508473(0x158)](..._0x33dd08)['to'](this),this[_0x508473(0x173)][_0x508473(0x174)](),this[_0x508473(0x165)]=new _0x59e187(),this[_0x508473(0x165)][_0x508473(0x158)](..._0x58600e)['to'](this),this[_0x508473(0x165)][_0x508473(0x174)]();const _0x56c6b5=await this[_0x508473(0x19d)][_0x508473(0x19e)]();this[_0x508473(0x15b)](_0x508473(0x199),{'availableModels':_0x56c6b5});const _0x1d6f69=await this[_0x508473(0x19d)][_0x508473(0x17c)](this[_0x508473(0x189)][_0x508473(0x176)]);_0x1d6f69&&await this[_0x508473(0x15c)](_0x1d6f69);}catch(_0x5b82fb){const _0x33d983=new _0x58cf55(_0x508473(0x18c),null,{'message':_0x5b82fb[_0x508473(0x1b6)]||_0x5b82fb});_0x33d983[_0x508473(0x18b)]=_0x5b82fb[_0x508473(0x18b)],this[_0x508473(0x15b)](_0x508473(0x15f),{'error':_0x33d983});}}async[_0x27180e(0x17d)](){const _0x56d21e=_0x27180e;if(this[_0x56d21e(0x1b4)])throw new _0x58cf55(_0x56d21e(0x1ab),null,{'conversation':this});if(!this[_0x56d21e(0x181)])throw new _0x58cf55(_0x56d21e(0x192),null,{'conversation':this});try{const {id:_0x41b3f5}=await this[_0x56d21e(0x19b)][_0x56d21e(0x178)](this['id'],this[_0x56d21e(0x189)][_0x56d21e(0x16e)])[_0x56d21e(0x1c7)]();this['id']=_0x41b3f5,this[_0x56d21e(0x1b4)]=!0x0,this[_0x56d21e(0x15b)](_0x56d21e(0x15a),{'conversationId':this['id'],'selectedModel':this[_0x56d21e(0x181)]});}catch(_0x4da94e){const _0x1332a7=new _0x58cf55(_0x56d21e(0x1cb),null,{'message':_0x4da94e[_0x56d21e(0x1b6)],'conversationId':this['id']});throw _0x1332a7[_0x56d21e(0x18b)]=_0x4da94e[_0x56d21e(0x18b)],this[_0x56d21e(0x15b)](_0x56d21e(0x15f),{'error':_0x1332a7}),_0x1332a7;}}async[_0x27180e(0x1b3)](_0x214c2a,_0x888c60){const _0x3cc737=_0x27180e;try{const _0x3b5ca3=await this[_0x3cc737(0x19b)][_0x3cc737(0x17f)](_0x214c2a)[_0x3cc737(0x1c7)](),_0x5ef02d=await this[_0x3cc737(0x19b)][_0x3cc737(0x18e)](_0x214c2a)[_0x3cc737(0x1a2)](),_0x5522bf=_0x5ef02d[0x0][_0x3cc737(0x1c4)];this[_0x3cc737(0x1b4)]=!0x0,this['id']=_0x3b5ca3['id'],_0x3cc737(0x1c9)in _0x3b5ca3?this[_0x3cc737(0x15b)](_0x3cc737(0x168),_0x3b5ca3[_0x3cc737(0x1c9)],!0x0):this[_0x3cc737(0x15b)](_0x3cc737(0x168),'',!0x0);const _0x411087=(await this[_0x3cc737(0x19d)][_0x3cc737(0x1b1)]())[_0x3cc737(0x177)](_0x893406=>_0x893406['id'][_0x3cc737(0x17e)]()===_0x5522bf[_0x3cc737(0x17e)]());return this[_0x3cc737(0x181)]=_0x411087,this[_0x3cc737(0x15b)](_0x3cc737(0x162),{'selectedModel':_0x411087,'isDisabled':!0x0}),await this[_0x3cc737(0x16b)](_0x5ef02d,_0x888c60,_0x5522bf),this[_0x3cc737(0x19a)]=void 0x0,this;}catch(_0x1baf8f){const _0x280900=new _0x58cf55(_0x3cc737(0x186),null,{'message':_0x1baf8f[_0x3cc737(0x1b6)],'conversationId':_0x214c2a});throw _0x280900[_0x3cc737(0x18b)]=_0x1baf8f[_0x3cc737(0x18b)],this[_0x3cc737(0x15b)](_0x3cc737(0x15f),{'error':_0x280900}),_0x280900;}}async[_0x27180e(0x16b)](_0x4796bb,_0x1a7a3b,_0x436cf8){const _0x1345f4=_0x27180e;let _0x4711a5;for(const _0xea1e72 of _0x4796bb)if(_0x1345f4(0x170)===_0xea1e72[_0x1345f4(0x1b0)]){const _0x42ab69=await this[_0x1345f4(0x1a1)](_0xea1e72),_0x1c22cc={'isReasoningEnabled':Object[_0x1345f4(0x1ac)](_0xea1e72[_0x1345f4(0x1cc)],_0x1345f4(0x193)),'isWebSearchEnabled':Object[_0x1345f4(0x1ac)](_0xea1e72[_0x1345f4(0x1cc)],_0x1345f4(0x1a6))};_0x4711a5=this[_0x1345f4(0x1cd)]({'userMessage':_0xea1e72[_0x1345f4(0x17b)],'contextItems':_0x42ab69,'capabilities':_0x1c22cc,'modelId':_0x436cf8,'quickActionData':_0xea1e72[_0x1345f4(0x194)]?.[_0x1345f4(0x160)]}),this[_0x1345f4(0x19a)]=_0x4711a5,this[_0x1345f4(0x173)][_0x1345f4(0x16c)](this[_0x1345f4(0x19a)][_0x1345f4(0x184)]);}else{if(_0x1345f4(0x1a7)===_0xea1e72[_0x1345f4(0x1b0)]&&_0x4711a5)for(const _0x5ce84e of _0xea1e72[_0x1345f4(0x169)]){const _0x51fe54=_0x1345f4(0x183)===_0x5ce84e[_0x1345f4(0x1c2)]?_0x1345f4(0x196):_0x1345f4(0x171),_0x3b7632=_0x4711a5[_0x1345f4(0x1af)]()?.[_0x1345f4(0x1c6)]!==_0x1a7a3b;_0x4711a5[_0x1345f4(0x1c1)]=_0x4711a5[_0x1345f4(0x1c5)]({'type':_0x51fe54,'isDone':!0x0,'interactionId':_0x4711a5['id'],'areActionsDisabled':_0x3b7632}),_0x4711a5[_0x1345f4(0x1c1)][_0x1345f4(0x1a5)](_0x5ce84e[_0x1345f4(0x169)]);}}}async[_0x27180e(0x1a1)](_0x32631){const _0x5e17b9=_0x27180e,_0x38818b=new Map();if(!_0x32631[_0x5e17b9(0x169)])return _0x38818b;for(const _0x37b4d8 of _0x32631[_0x5e17b9(0x169)]){const _0x352133=await this[_0x5e17b9(0x173)][_0x5e17b9(0x163)](_0x37b4d8);_0x352133&&_0x38818b[_0x5e17b9(0x187)](_0x352133['id'],_0x352133);}return _0x38818b;}async[_0x27180e(0x1be)]({userMessage:_0x4bface,quickActionData:_0x2934c5}){const _0x154b6d=_0x27180e;if(!this[_0x154b6d(0x1b4)])throw new _0x58cf55(_0x154b6d(0x1bb),null,{'conversation':this});if(this[_0x154b6d(0x19a)])throw new _0x58cf55(_0x154b6d(0x1bf),null,{'conversation':this});try{const _0xe10324=this[_0x154b6d(0x173)][_0x154b6d(0x19c)](),_0x23b05d=this[_0x154b6d(0x165)][_0x154b6d(0x1ca)](),_0x4b501d=this[_0x154b6d(0x181)]['id'];this[_0x154b6d(0x19a)]=this[_0x154b6d(0x1cd)]({'userMessage':_0x4bface,'contextItems':_0xe10324,'capabilities':_0x23b05d,'modelId':_0x4b501d,'quickActionData':_0x2934c5}),await this[_0x154b6d(0x19a)][_0x154b6d(0x17d)](),this[_0x154b6d(0x173)][_0x154b6d(0x16c)](this[_0x154b6d(0x19a)][_0x154b6d(0x184)]);}catch(_0x569b8f){if(_0x569b8f instanceof _0x58cf55)this[_0x154b6d(0x15b)](_0x154b6d(0x15f),{'interactionId':this[_0x154b6d(0x19a)]?this[_0x154b6d(0x19a)]['id']:void 0x0,'error':_0x569b8f});else{const _0x4e6f5b=_0xb34857[_0x154b6d(0x1a4)](_0x569b8f[_0x154b6d(0x18f)])||_0x154b6d(0x159);this[_0x154b6d(0x15b)](_0x154b6d(0x15f),{'interactionId':this[_0x154b6d(0x19a)]?this[_0x154b6d(0x19a)]['id']:void 0x0,'error':new _0x58cf55(_0x4e6f5b,null,{'error':_0x569b8f})});}}finally{this[_0x154b6d(0x19a)]?.[_0x154b6d(0x1a0)](),this[_0x154b6d(0x19a)]=void 0x0;}}[_0x27180e(0x1cd)]({userMessage:_0x43b6c7,contextItems:_0x203548,capabilities:_0x446bd9,modelId:_0x2a4d03,quickActionData:_0x1e16a1}){const _0x5ee99b=_0x27180e,_0x549c5f=new _0x35f633({'userMessage':_0x43b6c7,'contextItems':_0x203548,'capabilities':_0x446bd9,'conversationId':this['id'],'connector':this[_0x5ee99b(0x19b)],'editor':this[_0x5ee99b(0x189)][_0x5ee99b(0x15e)]&&this[_0x5ee99b(0x189)][_0x5ee99b(0x15e)](),'model':_0x2a4d03,'quickActionData':_0x1e16a1});return _0x549c5f[_0x5ee99b(0x158)](..._0x37efe1)['to'](this),this[_0x5ee99b(0x1b2)][_0x5ee99b(0x191)](_0x549c5f),this[_0x5ee99b(0x15b)](_0x5ee99b(0x167),_0x549c5f),_0x549c5f;}[_0x27180e(0x188)](_0x2b257c){const _0x28f0a7=_0x27180e;return this[_0x28f0a7(0x1b2)][_0x28f0a7(0x177)](_0x166945=>_0x166945['id']===_0x2b257c);}[_0x27180e(0x161)](_0xd5a194){const _0x504bc0=_0x27180e,_0x436f8a=this[_0x504bc0(0x188)](_0xd5a194);_0x436f8a&&(_0x436f8a[_0x504bc0(0x190)](),this[_0x504bc0(0x1b2)][_0x504bc0(0x1ad)](this[_0x504bc0(0x1b2)][_0x504bc0(0x195)](_0x436f8a),0x1));}get[_0x27180e(0x1b5)](){const _0x284aa5=_0x27180e;return this[_0x284aa5(0x1b2)][this[_0x284aa5(0x1b2)][_0x284aa5(0x179)]-0x1];}[_0x27180e(0x1ba)](_0x419894){const _0x5c2425=_0x27180e;this[_0x5c2425(0x173)][_0x5c2425(0x1ba)](_0x419894);}async[_0x27180e(0x17a)]({content:_0x1d2fde,version:_0x530824,sessionId:_0xf42416,selections:_0x84ad8c}){const _0x245eff=_0x27180e;await this[_0x245eff(0x173)][_0x245eff(0x16d)](_0x1d2fde,_0x530824,_0xf42416,_0x84ad8c);}[_0x27180e(0x1b9)](){const _0x1fb163=_0x27180e;return this[_0x1fb163(0x19a)]?.[_0x1fb163(0x1af)]()?.[_0x1fb163(0x169)]||'';}[_0x27180e(0x19f)](_0x547215){const _0x46edd2=_0x27180e;this[_0x46edd2(0x173)][_0x46edd2(0x19f)](_0x547215);}[_0x27180e(0x1c3)](){const _0x53372e=_0x27180e;this[_0x53372e(0x173)][_0x53372e(0x1c3)]();}[_0x27180e(0x1a3)](_0xb2d724){const _0x52ffd7=_0x27180e;this[_0x52ffd7(0x173)][_0x52ffd7(0x1a3)](_0xb2d724);}[_0x27180e(0x182)](_0xeb8f21){const _0x1a9314=_0x27180e;this[_0x1a9314(0x173)][_0x1a9314(0x182)](_0xeb8f21);}[_0x27180e(0x1bd)](_0x4a8b77,_0x4f77bf){const _0x22de47=_0x27180e;this[_0x22de47(0x173)][_0x22de47(0x1bd)](_0x4a8b77,_0x4f77bf);}[_0x27180e(0x1c0)](_0x5e87ac,_0x2a92d2,_0x32ae01){const _0x545bb3=_0x27180e;return this[_0x545bb3(0x173)][_0x545bb3(0x1c0)](_0x5e87ac,_0x2a92d2,_0x32ae01);}[_0x27180e(0x18a)](_0x154758){const _0x10404d=_0x27180e;this[_0x10404d(0x173)][_0x10404d(0x18a)](_0x154758);}[_0x27180e(0x18d)](){const _0xd2632f=_0x27180e;this[_0xd2632f(0x165)][_0xd2632f(0x18d)]();}[_0x27180e(0x1ae)](){const _0xf2771e=_0x27180e;this[_0xf2771e(0x165)][_0xf2771e(0x1ae)]();}[_0x27180e(0x166)](){const _0x2e87d8=_0x27180e;return this[_0x2e87d8(0x173)][_0x2e87d8(0x166)]();}[_0x27180e(0x197)](){const _0x35660c=_0x27180e;return this[_0x35660c(0x173)][_0x35660c(0x197)]();}[_0x27180e(0x164)](){const _0x457ac8=_0x27180e;return this[_0x457ac8(0x173)][_0x457ac8(0x164)]();}async[_0x27180e(0x15c)](_0x24bda3){const _0x5b54a9=_0x27180e;_0x24bda3?!0x1===await this[_0x5b54a9(0x19d)][_0x5b54a9(0x1c8)](_0x24bda3)&&(_0x3e202a(_0x5b54a9(0x1bc),{'conversation':this,'model':_0x24bda3}),_0x24bda3=(await this[_0x5b54a9(0x19d)][_0x5b54a9(0x19e)]())[0x0]):(_0x3e202a(_0x5b54a9(0x1b8),{'conversation':this}),_0x24bda3=(await this[_0x5b54a9(0x19d)][_0x5b54a9(0x19e)]())[0x0]),_0x24bda3['id']!==this[_0x5b54a9(0x181)]?.['id']&&(this[_0x5b54a9(0x181)]=_0x24bda3,this[_0x5b54a9(0x165)][_0x5b54a9(0x16a)](),this[_0x5b54a9(0x15b)](_0x5b54a9(0x162),{'selectedModel':_0x24bda3}));}}
23
+ const _0x2918e4=_0x1fb5;(function(_0x154c83,_0x572e8a){const _0x81527c=_0x1fb5,_0x4505b5=_0x154c83();while(!![]){try{const _0x5dbff6=-parseInt(_0x81527c(0x146))/0x1*(-parseInt(_0x81527c(0x12b))/0x2)+-parseInt(_0x81527c(0x17d))/0x3*(-parseInt(_0x81527c(0x11e))/0x4)+parseInt(_0x81527c(0x16c))/0x5*(parseInt(_0x81527c(0x13f))/0x6)+-parseInt(_0x81527c(0x148))/0x7+parseInt(_0x81527c(0x15e))/0x8*(-parseInt(_0x81527c(0x142))/0x9)+-parseInt(_0x81527c(0x164))/0xa*(-parseInt(_0x81527c(0x170))/0xb)+parseInt(_0x81527c(0x144))/0xc*(-parseInt(_0x81527c(0x136))/0xd);if(_0x5dbff6===_0x572e8a)break;else _0x4505b5['push'](_0x4505b5['shift']());}catch(_0x264982){_0x4505b5['push'](_0x4505b5['shift']());}}}(_0x4104,0xd3842));import{CKEditorError as _0x252a34,EmitterMixin as _0x15519f,logWarning as _0x6acb}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x13ace8}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x4a912c,AI_CONTEXT_MODEL_EVENT_NAMES as _0x2af3da}from'./aichatcontext.js';import{AICapabilities as _0x3b6257,CAPABILITIES_MODEL_EVENT_NAMES as _0x272746}from'../../aicore/model/aicapabilities.js';function _0x1fb5(_0x436924,_0x50806f){const _0x4104d1=_0x4104();return _0x1fb5=function(_0x1fb5b5,_0x393841){_0x1fb5b5=_0x1fb5b5-0x10c;let _0x3fbe1d=_0x4104d1[_0x1fb5b5];return _0x3fbe1d;},_0x1fb5(_0x436924,_0x50806f);}import{AIChatInteraction as _0x11a905}from'./aichatinteraction.js';import{errorsMap as _0x2d0718}from'../../errorsmap.js';export class AIChatConversation extends _0x15519f(){['id'];[_0x2918e4(0x14b)]=!0x1;[_0x2918e4(0x10f)]=[];[_0x2918e4(0x119)];[_0x2918e4(0x156)];[_0x2918e4(0x11d)];[_0x2918e4(0x125)];constructor(_0x25a574){const _0x545f5f=_0x2918e4;super(),this[_0x545f5f(0x125)]=_0x25a574,this[_0x545f5f(0x11d)]=_0x25a574[_0x545f5f(0x11d)],this[_0x545f5f(0x13d)]=_0x25a574[_0x545f5f(0x13d)],this['id']=_0x25a574[_0x545f5f(0x130)];}async[_0x2918e4(0x179)](_0x5d7c3d){const _0x11d1fe=_0x2918e4;try{this[_0x11d1fe(0x14e)]=new _0x4a912c({'connector':this[_0x11d1fe(0x11d)],'config':_0x5d7c3d,'ownerId':this['id']}),this[_0x11d1fe(0x14e)][_0x11d1fe(0x13e)](..._0x2af3da)['to'](this),this[_0x11d1fe(0x14e)][_0x11d1fe(0x179)](),this[_0x11d1fe(0x14c)]=new _0x3b6257(),this[_0x11d1fe(0x14c)][_0x11d1fe(0x13e)](..._0x272746)['to'](this),this[_0x11d1fe(0x14c)][_0x11d1fe(0x179)]();const _0x1868c8=await this[_0x11d1fe(0x13d)][_0x11d1fe(0x157)]();this[_0x11d1fe(0x114)](_0x11d1fe(0x153),{'availableModels':_0x1868c8});const _0x309348=await this[_0x11d1fe(0x13d)][_0x11d1fe(0x12c)](this[_0x11d1fe(0x125)][_0x11d1fe(0x14d)]);_0x309348&&await this[_0x11d1fe(0x16f)](_0x309348);}catch(_0x6e673e){const _0x52f86d=new _0x252a34(_0x11d1fe(0x173),null,{'message':_0x6e673e[_0x11d1fe(0x14a)]||_0x6e673e});_0x52f86d[_0x11d1fe(0x181)]=_0x6e673e[_0x11d1fe(0x181)],this[_0x11d1fe(0x114)](_0x11d1fe(0x112),{'error':_0x52f86d});}}async[_0x2918e4(0x15a)](){const _0xff85=_0x2918e4;if(this[_0xff85(0x14b)])throw new _0x252a34(_0xff85(0x163),null,{'conversation':this});if(!this[_0xff85(0x156)])throw new _0x252a34(_0xff85(0x16d),null,{'conversation':this});try{const {id:_0x3eee04}=await this[_0xff85(0x11d)][_0xff85(0x147)](this['id'],this[_0xff85(0x125)][_0xff85(0x13a)])[_0xff85(0x11f)]();this['id']=_0x3eee04,this[_0xff85(0x14b)]=!0x0,this[_0xff85(0x114)](_0xff85(0x160),{'conversationId':this['id'],'selectedModel':this[_0xff85(0x156)]});}catch(_0xbc480){const _0x19cc18=new _0x252a34(_0xff85(0x11b),null,{'message':_0xbc480[_0xff85(0x14a)],'conversationId':this['id']});throw _0x19cc18[_0xff85(0x181)]=_0xbc480[_0xff85(0x181)],this[_0xff85(0x114)](_0xff85(0x112),{'error':_0x19cc18}),_0x19cc18;}}async[_0x2918e4(0x17b)](_0x84635e,_0x2f5678){const _0x5dd5c1=_0x2918e4;try{const _0x24ec61=await this[_0x5dd5c1(0x11d)][_0x5dd5c1(0x171)](_0x84635e)[_0x5dd5c1(0x11f)](),_0x2cec1b=await this[_0x5dd5c1(0x11d)][_0x5dd5c1(0x155)](_0x84635e)[_0x5dd5c1(0x124)](),_0x27531b=_0x2cec1b[0x0][_0x5dd5c1(0x127)];this[_0x5dd5c1(0x14b)]=!0x0,this['id']=_0x24ec61['id'],_0x5dd5c1(0x117)in _0x24ec61?this[_0x5dd5c1(0x114)](_0x5dd5c1(0x135),_0x24ec61[_0x5dd5c1(0x117)],!0x0):this[_0x5dd5c1(0x114)](_0x5dd5c1(0x135),'',!0x0);const _0xeddf9b=(await this[_0x5dd5c1(0x13d)][_0x5dd5c1(0x149)]())[_0x5dd5c1(0x169)](_0x24ee58=>_0x24ee58['id'][_0x5dd5c1(0x172)]()===_0x27531b[_0x5dd5c1(0x172)]());return this[_0x5dd5c1(0x156)]=_0xeddf9b,this[_0x5dd5c1(0x114)](_0x5dd5c1(0x17f),{'selectedModel':_0xeddf9b,'isDisabled':!0x0}),await this[_0x5dd5c1(0x12e)](_0x2cec1b,_0x2f5678,_0x27531b),this[_0x5dd5c1(0x119)]=void 0x0,this;}catch(_0x4c8050){const _0x101985=new _0x252a34(_0x5dd5c1(0x16e),null,{'message':_0x4c8050[_0x5dd5c1(0x14a)],'conversationId':_0x84635e});throw _0x101985[_0x5dd5c1(0x181)]=_0x4c8050[_0x5dd5c1(0x181)],this[_0x5dd5c1(0x114)](_0x5dd5c1(0x112),{'error':_0x101985}),_0x101985;}}async[_0x2918e4(0x12e)](_0x376e15,_0xb33f85,_0x255820){const _0x16bf6b=_0x2918e4;let _0x3a068e;for(const _0x28cff7 of _0x376e15)if(_0x16bf6b(0x161)===_0x28cff7[_0x16bf6b(0x12d)]){const _0x4ab91d=await this[_0x16bf6b(0x165)](_0x28cff7),_0x7ee4f7={'isReasoningEnabled':Object[_0x16bf6b(0x16b)](_0x28cff7[_0x16bf6b(0x178)],_0x16bf6b(0x118)),'isWebSearchEnabled':Object[_0x16bf6b(0x16b)](_0x28cff7[_0x16bf6b(0x178)],_0x16bf6b(0x122))};_0x3a068e=this[_0x16bf6b(0x111)]({'userMessage':_0x28cff7[_0x16bf6b(0x162)],'contextItems':_0x4ab91d,'capabilities':_0x7ee4f7,'modelId':_0x255820,'quickActionData':_0x28cff7[_0x16bf6b(0x123)]?.[_0x16bf6b(0x150)]}),this[_0x16bf6b(0x119)]=_0x3a068e,this[_0x16bf6b(0x14e)][_0x16bf6b(0x129)](this[_0x16bf6b(0x119)][_0x16bf6b(0x133)]);}else{if(_0x16bf6b(0x131)===_0x28cff7[_0x16bf6b(0x12d)]&&_0x3a068e)for(const _0xd82aee of _0x28cff7[_0x16bf6b(0x132)]){const _0x1d4b91=_0x16bf6b(0x137)===_0xd82aee[_0x16bf6b(0x11a)]?_0x16bf6b(0x17e):_0x16bf6b(0x134),_0x1b0c1c=_0x3a068e[_0x16bf6b(0x10d)]()?.[_0x16bf6b(0x15b)]!==_0xb33f85;_0x3a068e[_0x16bf6b(0x10e)]=_0x3a068e[_0x16bf6b(0x143)]({'type':_0x1d4b91,'isDone':!0x0,'interactionId':_0x3a068e['id'],'areActionsDisabled':_0x1b0c1c}),_0x3a068e[_0x16bf6b(0x10e)][_0x16bf6b(0x175)](_0xd82aee[_0x16bf6b(0x132)]);}}}async[_0x2918e4(0x165)](_0x3a561e){const _0x632ec9=_0x2918e4,_0x40b6ee=new Map();if(!_0x3a561e[_0x632ec9(0x132)])return _0x40b6ee;for(const _0x5cdf1b of _0x3a561e[_0x632ec9(0x132)]){const _0x5df87f=await this[_0x632ec9(0x14e)][_0x632ec9(0x184)](_0x5cdf1b);_0x5df87f&&_0x40b6ee[_0x632ec9(0x158)](_0x5df87f['id'],_0x5df87f);}return _0x40b6ee;}async[_0x2918e4(0x138)]({userMessage:_0x21f69a,quickActionData:_0x134939}){const _0x584238=_0x2918e4;if(!this[_0x584238(0x14b)])throw new _0x252a34(_0x584238(0x168),null,{'conversation':this});if(this[_0x584238(0x119)])throw new _0x252a34(_0x584238(0x183),null,{'conversation':this});try{const _0x48e59b=this[_0x584238(0x14e)][_0x584238(0x174)](),_0x300c01=this[_0x584238(0x14c)][_0x584238(0x14f)](),_0xf68374=this[_0x584238(0x156)]['id'];this[_0x584238(0x119)]=this[_0x584238(0x111)]({'userMessage':_0x21f69a,'contextItems':_0x48e59b,'capabilities':_0x300c01,'modelId':_0xf68374,'quickActionData':_0x134939}),await this[_0x584238(0x119)][_0x584238(0x15a)](),this[_0x584238(0x14e)][_0x584238(0x129)](this[_0x584238(0x119)][_0x584238(0x133)]);}catch(_0x1ad73e){if(_0x1ad73e instanceof _0x252a34)this[_0x584238(0x114)](_0x584238(0x112),{'interactionId':this[_0x584238(0x119)]?this[_0x584238(0x119)]['id']:void 0x0,'error':_0x1ad73e});else{const _0x73f883=_0x2d0718[_0x584238(0x139)](_0x1ad73e[_0x584238(0x116)])||_0x584238(0x154);this[_0x584238(0x114)](_0x584238(0x112),{'interactionId':this[_0x584238(0x119)]?this[_0x584238(0x119)]['id']:void 0x0,'error':new _0x252a34(_0x73f883,null,{'error':_0x1ad73e})});}}finally{this[_0x584238(0x119)]?.[_0x584238(0x152)](),this[_0x584238(0x119)]=void 0x0;}}[_0x2918e4(0x111)]({userMessage:_0x3805ca,contextItems:_0x57bbf0,capabilities:_0x2f4a28,modelId:_0x218459,quickActionData:_0x1e91c6}){const _0x255876=_0x2918e4,_0x5ab138=new _0x11a905({'userMessage':_0x3805ca,'contextItems':_0x57bbf0,'capabilities':_0x2f4a28,'conversationId':this['id'],'connector':this[_0x255876(0x11d)],'editor':this[_0x255876(0x125)][_0x255876(0x13c)]&&this[_0x255876(0x125)][_0x255876(0x13c)](),'model':_0x218459,'quickActionData':_0x1e91c6});return _0x5ab138[_0x255876(0x13e)](..._0x13ace8)['to'](this),this[_0x255876(0x10f)][_0x255876(0x121)](_0x5ab138),this[_0x255876(0x114)](_0x255876(0x140),_0x5ab138),_0x5ab138;}[_0x2918e4(0x15f)](_0x1046b0){const _0x5aca5c=_0x2918e4;return this[_0x5aca5c(0x10f)][_0x5aca5c(0x169)](_0x298693=>_0x298693['id']===_0x1046b0);}[_0x2918e4(0x180)](_0x535d50){const _0x482345=_0x2918e4,_0x244630=this[_0x482345(0x15f)](_0x535d50);_0x244630&&(_0x244630[_0x482345(0x126)](),this[_0x482345(0x10f)][_0x482345(0x110)](this[_0x482345(0x10f)][_0x482345(0x141)](_0x244630),0x1));}get[_0x2918e4(0x115)](){const _0x2ad3ad=_0x2918e4;return this[_0x2ad3ad(0x10f)][this[_0x2ad3ad(0x10f)][_0x2ad3ad(0x15c)]-0x1];}[_0x2918e4(0x120)](_0x2ad8fa){const _0x5cb8bf=_0x2918e4;this[_0x5cb8bf(0x14e)][_0x5cb8bf(0x120)](_0x2ad8fa);}async[_0x2918e4(0x145)]({content:_0x16fc31,version:_0x16a91a,sessionId:_0x1c8515,selections:_0x52d347}){const _0xc3988=_0x2918e4;await this[_0xc3988(0x14e)][_0xc3988(0x166)](_0x16fc31,_0x16a91a,_0x1c8515,_0x52d347);}[_0x2918e4(0x128)](){const _0x273a86=_0x2918e4;return this[_0x273a86(0x119)]?.[_0x273a86(0x10d)]()?.[_0x273a86(0x132)]||'';}[_0x2918e4(0x12f)](_0x1c39b8){const _0x1d9eac=_0x2918e4;this[_0x1d9eac(0x14e)][_0x1d9eac(0x12f)](_0x1c39b8);}[_0x2918e4(0x159)](){const _0x18130d=_0x2918e4;this[_0x18130d(0x14e)][_0x18130d(0x159)]();}[_0x2918e4(0x12a)](_0x7e563){const _0x19c2d9=_0x2918e4;this[_0x19c2d9(0x14e)][_0x19c2d9(0x12a)](_0x7e563);}[_0x2918e4(0x13b)](_0x2abd1d){const _0xd89449=_0x2918e4;this[_0xd89449(0x14e)][_0xd89449(0x13b)](_0x2abd1d);}[_0x2918e4(0x167)](_0x17968f,_0x3c6973){const _0x4c66b9=_0x2918e4;this[_0x4c66b9(0x14e)][_0x4c66b9(0x167)](_0x17968f,_0x3c6973);}[_0x2918e4(0x151)](_0x5a92fd,_0x55f181,_0x145e7d){const _0x4dbe07=_0x2918e4;return this[_0x4dbe07(0x14e)][_0x4dbe07(0x151)](_0x5a92fd,_0x55f181,_0x145e7d);}[_0x2918e4(0x176)](_0x3d3d31){const _0x3addb8=_0x2918e4;this[_0x3addb8(0x14e)][_0x3addb8(0x176)](_0x3d3d31);}[_0x2918e4(0x113)](){const _0x9e3997=_0x2918e4;this[_0x9e3997(0x14c)][_0x9e3997(0x113)]();}[_0x2918e4(0x17a)](){const _0x36e64d=_0x2918e4;this[_0x36e64d(0x14c)][_0x36e64d(0x17a)]();}[_0x2918e4(0x177)](){const _0xa639e7=_0x2918e4;return this[_0xa639e7(0x14e)][_0xa639e7(0x177)]();}[_0x2918e4(0x15d)](){const _0x46fef2=_0x2918e4;return this[_0x46fef2(0x14e)][_0x46fef2(0x15d)]();}[_0x2918e4(0x11c)](){const _0x303138=_0x2918e4;return this[_0x303138(0x14e)][_0x303138(0x11c)]();}async[_0x2918e4(0x16f)](_0x14f78a){const _0x1f3738=_0x2918e4;_0x14f78a?!0x1===await this[_0x1f3738(0x13d)][_0x1f3738(0x16a)](_0x14f78a)&&(_0x6acb(_0x1f3738(0x182),{'conversation':this,'model':_0x14f78a}),_0x14f78a=(await this[_0x1f3738(0x13d)][_0x1f3738(0x157)]())[0x0]):(_0x6acb(_0x1f3738(0x10c),{'conversation':this}),_0x14f78a=(await this[_0x1f3738(0x13d)][_0x1f3738(0x157)]())[0x0]),_0x14f78a['id']!==this[_0x1f3738(0x156)]?.['id']&&(this[_0x1f3738(0x156)]=_0x14f78a,this[_0x1f3738(0x14c)][_0x1f3738(0x17c)](),this[_0x1f3738(0x114)](_0x1f3738(0x17f),{'selectedModel':_0x14f78a}));}}function _0x4104(){const _0x3bd68d=['interactions','splice','createInteraction','error','toggleWebSearch','fire','lastInteraction','code','title','reasoning','currentInteraction','type','ai-chat-conversation-start-failed','isSelectionInContext','connector','24884QomPAZ','getConversation','addCurrentDocumentToContext','push','webSearch','attributes','getMessages','options','destroy','model','getCurrentDocumentContext','addToConversationContext','addFilesToContext','19340PJetIj','getModel','role','_processMessagesToInteractions','addSelectionToContext','conversationId','assistant','content','contextItems','modification-delta','setConversationTitle','923XLLPgW','text','handleUserInteraction','get','group','addUrlToContext','getEditor','chatModels','delegate','821388jtXIhF','interactionCreated','indexOf','3951NXWlra','createReply','341148BmXcXV','updateCurrentDocumentInContext','147ONWOoq','startConversation','1326262BmipOf','getAll','message','isStarted','chatCapabilities','selectedModelId','chatContext','getCapabilitiesConfig','quickActionData','loadSourceResources','stop','conversationInitialized','ai-chat-handle-user-interaction-start-failed','fetchConversationMessages','selectedModel','getAvailableModels','set','removeSelectionFromContext','start','sessionId','length','isCurrentDocumentInConversation','14008TareRi','getInteraction','conversationStarted','user','prompt','ai-chat-conversation-already-started','11147600XzdbjA','_extractContextItems','updateCurrentDocument','addResourceToContext','ai-chat-handle-user-conversation-not-initialized','find','isAvailable','hasOwn','45YYARJd','ai-chat-conversation-start-no-model-selected','ai-chat-conversation-init-from-id-failed','setModel','11OCqInR','fetchConversation','toLowerCase','ai-chat-conversation-init-failed','getPendingContextItems','appendContent','removeFromContext','isCurrentDocumentInContext','capabilities','init','toggleReasoning','load','reset','36LQnwyP','text-delta','modelSelected','removeInteraction','stack','ai-chat-conversation-set-model-not-available','ai-chat-handle-user-interaction-already-in-progress','populateFromMessage','ai-chat-conversation-set-model-null','getDocumentContext','currentReply'];_0x4104=function(){return _0x3bd68d;};return _0x4104();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x33b8bf=_0x4175;(function(_0x437d41,_0xe86151){var _0x14c473=_0x4175,_0x11894b=_0x437d41();while(!![]){try{var _0x6c6386=parseInt(_0x14c473(0x154))/0x1*(-parseInt(_0x14c473(0x15d))/0x2)+parseInt(_0x14c473(0x152))/0x3*(-parseInt(_0x14c473(0x150))/0x4)+parseInt(_0x14c473(0x157))/0x5+-parseInt(_0x14c473(0x15c))/0x6+-parseInt(_0x14c473(0x164))/0x7*(-parseInt(_0x14c473(0x168))/0x8)+parseInt(_0x14c473(0x162))/0x9+parseInt(_0x14c473(0x15b))/0xa*(parseInt(_0x14c473(0x155))/0xb);if(_0x6c6386===_0xe86151)break;else _0x11894b['push'](_0x11894b['shift']());}catch(_0x44c280){_0x11894b['push'](_0x11894b['shift']());}}}(_0x4c02,0x33d2e));import{AICapabilities as _0x49017d}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x4e871a}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x1be0ca}from'./aichatcontext.js';function _0x4175(_0x340be0,_0xff027e){var _0x4c028b=_0x4c02();return _0x4175=function(_0x41754a,_0x3aa0f6){_0x41754a=_0x41754a-0x150;var _0x1541d0=_0x4c028b[_0x41754a];return _0x1541d0;},_0x4175(_0x340be0,_0xff027e);}function _0x4c02(){var _0x5edcd0=['4yqMMFG','current-document','get','capabilities','sendRequest','3106377ZxJjBT','quickActionData','106225AWCqyn','getDocumentContext','userMessage','mapContextItemsToRequestData','64jYHrQa','4gAnTxO','contextItems','567723kQSUny','model','19993oQgjqO','913QjguET','conversationId','1319595DluDhx','getCapabilitiesRequestData','queryAssistant','connector','7510CNTXdX','2107848ZnHZcL'];_0x4c02=function(){return _0x5edcd0;};return _0x4c02();}export class AIChatInteraction extends _0x4e871a{[_0x33b8bf(0x166)];[_0x33b8bf(0x156)];[_0x33b8bf(0x151)]=new Map();[_0x33b8bf(0x153)];[_0x33b8bf(0x163)];constructor(_0x2e6f4b){var _0x29060a=_0x33b8bf;super(_0x2e6f4b),this[_0x29060a(0x156)]=_0x2e6f4b[_0x29060a(0x156)],this[_0x29060a(0x151)]=_0x2e6f4b[_0x29060a(0x151)],this[_0x29060a(0x160)]=_0x2e6f4b[_0x29060a(0x160)],this[_0x29060a(0x166)]=_0x2e6f4b[_0x29060a(0x166)],this[_0x29060a(0x153)]=_0x2e6f4b[_0x29060a(0x153)],this[_0x29060a(0x163)]=_0x2e6f4b[_0x29060a(0x163)];}async[_0x33b8bf(0x161)](){var _0x179943=_0x33b8bf;return this[_0x179943(0x15a)][_0x179943(0x159)]({'message':this[_0x179943(0x166)],'conversationId':this[_0x179943(0x156)],'parts':_0x1be0ca[_0x179943(0x167)](this[_0x179943(0x151)]),'capabilities':_0x49017d[_0x179943(0x158)](this[_0x179943(0x160)]),'model':this[_0x179943(0x153)],'quickActionData':this[_0x179943(0x163)]});}[_0x33b8bf(0x165)](){var _0x1170e7=_0x33b8bf;return this[_0x1170e7(0x151)][_0x1170e7(0x15f)](_0x1170e7(0x15e));}}
23
+ var _0x4e0d4c=_0x2fbc;(function(_0x15038d,_0x3a384b){var _0x238255=_0x2fbc,_0x58de33=_0x15038d();while(!![]){try{var _0x260b19=-parseInt(_0x238255(0x185))/0x1+parseInt(_0x238255(0x182))/0x2*(-parseInt(_0x238255(0x184))/0x3)+parseInt(_0x238255(0x186))/0x4+parseInt(_0x238255(0x18e))/0x5+parseInt(_0x238255(0x181))/0x6+parseInt(_0x238255(0x183))/0x7*(parseInt(_0x238255(0x188))/0x8)+-parseInt(_0x238255(0x17f))/0x9;if(_0x260b19===_0x3a384b)break;else _0x58de33['push'](_0x58de33['shift']());}catch(_0x4c49b0){_0x58de33['push'](_0x58de33['shift']());}}}(_0x28ae,0x46cf8));import{AICapabilities as _0x4753c4}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x2069e7}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x599198}from'./aichatcontext.js';export class AIChatInteraction extends _0x2069e7{[_0x4e0d4c(0x179)];[_0x4e0d4c(0x17e)];[_0x4e0d4c(0x18d)]=new Map();[_0x4e0d4c(0x17b)];[_0x4e0d4c(0x17a)];constructor(_0x4fafe7){var _0x198a0b=_0x4e0d4c;super(_0x4fafe7),this[_0x198a0b(0x17e)]=_0x4fafe7[_0x198a0b(0x17e)],this[_0x198a0b(0x18d)]=_0x4fafe7[_0x198a0b(0x18d)],this[_0x198a0b(0x18a)]=_0x4fafe7[_0x198a0b(0x18a)],this[_0x198a0b(0x179)]=_0x4fafe7[_0x198a0b(0x179)],this[_0x198a0b(0x17b)]=_0x4fafe7[_0x198a0b(0x17b)],this[_0x198a0b(0x17a)]=_0x4fafe7[_0x198a0b(0x17a)];}async[_0x4e0d4c(0x17c)](){var _0x224661=_0x4e0d4c;return this[_0x224661(0x18b)][_0x224661(0x18f)]({'message':this[_0x224661(0x179)],'conversationId':this[_0x224661(0x17e)],'parts':_0x599198[_0x224661(0x17d)](this[_0x224661(0x18d)]),'capabilities':_0x4753c4[_0x224661(0x180)](this[_0x224661(0x18a)]),'model':this[_0x224661(0x17b)],'quickActionData':this[_0x224661(0x17a)]});}[_0x4e0d4c(0x18c)](){var _0x1b986d=_0x4e0d4c;return this[_0x1b986d(0x18d)][_0x1b986d(0x189)](_0x1b986d(0x187));}}function _0x2fbc(_0x4b5997,_0x271e47){var _0x28ae7a=_0x28ae();return _0x2fbc=function(_0x2fbc6b,_0x4932f7){_0x2fbc6b=_0x2fbc6b-0x179;var _0x58f631=_0x28ae7a[_0x2fbc6b];return _0x58f631;},_0x2fbc(_0x4b5997,_0x271e47);}function _0x28ae(){var _0x375458=['getDocumentContext','contextItems','2732350RJuqXk','queryAssistant','userMessage','quickActionData','model','sendRequest','mapContextItemsToRequestData','conversationId','7743789CJLnlh','getCapabilitiesRequestData','2833656dALuLJ','36020jaYfHS','14YleVyp','39sIJRYx','187294rLVhfC','1468268EnGbHD','current-document','744288vQXYqd','get','capabilities','connector'];_0x28ae=function(){return _0x375458;};return _0x28ae();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f5caf=_0x19b4;(function(_0x36c855,_0x6325f9){const _0x473a85=_0x19b4,_0x3c70ff=_0x36c855();while(!![]){try{const _0x4a31a8=parseInt(_0x473a85(0x1b6))/0x1+parseInt(_0x473a85(0x1c8))/0x2*(-parseInt(_0x473a85(0x1b1))/0x3)+parseInt(_0x473a85(0x1c4))/0x4+-parseInt(_0x473a85(0x186))/0x5+-parseInt(_0x473a85(0x1a6))/0x6+-parseInt(_0x473a85(0x19b))/0x7+parseInt(_0x473a85(0x197))/0x8;if(_0x4a31a8===_0x6325f9)break;else _0x3c70ff['push'](_0x3c70ff['shift']());}catch(_0x41985e){_0x3c70ff['push'](_0x3c70ff['shift']());}}}(_0x4071,0x4f25b));function _0x19b4(_0x143d4b,_0x3b5df8){const _0x4071bd=_0x4071();return _0x19b4=function(_0x19b40b,_0xde0467){_0x19b40b=_0x19b40b-0x180;let _0xd13aa6=_0x4071bd[_0x19b40b];return _0xd13aa6;},_0x19b4(_0x143d4b,_0x3b5df8);}function _0x4071(){const _0x515b09=['change:isLoading','startConversation','execute','clearCurrentContextItems','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','element','_createContextPanelView','setInputPlaceholder','locale','enableModelSelector','set','_createPromptCapabilitiesView','1504412BWKgpD','delegate','setReasoning','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','214070RqfuGU','setModel','setContextItemLoading','_createLoaderView','form','isLoading','bindTemplate','isDisabled','sendUserMessage','clearPendingContextUI','_createPromptInputView','toggleReasoning','focus','2274680geozUd','ck-ai-chat-controls__start-new-chat-button','resetMessageInput','addContextButtonView','ck-ai-chat-controls','abortPromptStream','populateSourceResourceBalloon','_createModelUnavailableMessageView','ck-hidden','bodyCollection','setWebSearch','isModelAvailable','_handlePromptInputFocus','setTemplate','setConversationContext','setAddContextOptions','addContextItem','11323456bZPTvI','_displayedModels','_promptInputView','focusPromptInput','2667175zHphVH','removeContextItem','updateResourceState','ck-ai-chat-controls-disabled','_modelUnavailableMessageView','div','_promptCapabilitiesView','disableModelSelector','startsWith','reset','find','2748558kHhTMZ','ck-ai-chat-controls-model-unavailable-message','setIsUploadInProgress','toggleWebSearch','closeSourceResourceBalloon','low','agent','contextResourcesSearchInputVisibleFrom','_loaderView','setModelList','selectModel','15egDOyJ','clearConversationContextItems','_contextPanelView','clearConversationContextUI','setPlaceholderText','361881SfXTtM','_shouldRestorePromptInputFocus'];_0x4071=function(){return _0x515b09;};return _0x4071();}import{ButtonView as _0x1458ac,clickOutsideHandler as _0x1d2825,View as _0x5ed3a6}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x1669d5}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x1d160c}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x454e8c,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x169b97}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x5e5394}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x4e8f19}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x5ed3a6{[_0x1f5caf(0x198)]=[];[_0x1f5caf(0x1b3)];[_0x1f5caf(0x199)];[_0x1f5caf(0x1a1)];[_0x1f5caf(0x1ae)];[_0x1f5caf(0x19f)];[_0x1f5caf(0x1b7)];constructor(_0xda5b27,_0x591bf2){const _0x3e52ae=_0x1f5caf;super(_0xda5b27),this[_0x3e52ae(0x1b3)]=this[_0x3e52ae(0x1be)](_0xda5b27,{'bodyCollection':_0x591bf2[_0x3e52ae(0x18f)],'searchInputVisibleFrom':_0x591bf2[_0x3e52ae(0x1ad)]}),this[_0x3e52ae(0x199)]=this[_0x3e52ae(0x183)](_0xda5b27),this[_0x3e52ae(0x1a1)]=this[_0x3e52ae(0x1c3)](_0xda5b27),this[_0x3e52ae(0x1ae)]=this[_0x3e52ae(0x1cb)](_0xda5b27),this[_0x3e52ae(0x19f)]=this[_0x3e52ae(0x18d)](_0xda5b27),this[_0x3e52ae(0x1b7)]=!0x1,this[_0x3e52ae(0x199)][_0x3e52ae(0x1c5)](_0x3e52ae(0x181))['to'](this),this[_0x3e52ae(0x1ae)][_0x3e52ae(0x1c5)](_0x3e52ae(0x18b))['to'](this),this[_0x3e52ae(0x1a1)][_0x3e52ae(0x1c5)](_0x3e52ae(0x1a9))['to'](this),this[_0x3e52ae(0x1a1)][_0x3e52ae(0x1c5)](_0x3e52ae(0x184))['to'](this),this[_0x3e52ae(0x1a1)][_0x3e52ae(0x1c5)](_0x3e52ae(0x1b0))['to'](this),this[_0x3e52ae(0x1b3)][_0x3e52ae(0x1c5)](..._0x169b97)['to'](this),this[_0x3e52ae(0x1c2)](_0x3e52ae(0x191),!0x0),this[_0x3e52ae(0x1c2)](_0x3e52ae(0x180),!0x1);const _0x50ea1f=this[_0x3e52ae(0x1ce)];this[_0x3e52ae(0x193)]({'tag':_0x3e52ae(0x1cc),'attributes':{'class':['ck',_0x3e52ae(0x18a),_0x50ea1f['if'](_0x3e52ae(0x180),_0x3e52ae(0x19e))]},'children':[{'tag':_0x3e52ae(0x1a0),'attributes':{'class':[_0x50ea1f['if'](_0x3e52ae(0x1cd),_0x3e52ae(0x18e),_0x509616=>_0x509616||!this[_0x3e52ae(0x191)]),_0x50ea1f['if'](_0x3e52ae(0x191),_0x3e52ae(0x18e),_0x24d8f6=>!_0x24d8f6||this[_0x3e52ae(0x1cd)])]},'children':[this[_0x3e52ae(0x1b3)],this[_0x3e52ae(0x199)],this[_0x3e52ae(0x1a1)]]},{'tag':_0x3e52ae(0x1a0),'attributes':{'class':[_0x50ea1f['if'](_0x3e52ae(0x1cd),_0x3e52ae(0x18e),_0x1d2c5a=>!_0x1d2c5a)]},'children':[this[_0x3e52ae(0x1ae)]]},{'tag':_0x3e52ae(0x1a0),'attributes':{'class':[_0x50ea1f['if'](_0x3e52ae(0x191),_0x3e52ae(0x18e),_0xc55e08=>_0xc55e08)]},'children':[this[_0x3e52ae(0x19f)]]}]}),_0x1d2825({'emitter':this[_0x3e52ae(0x199)],'activator':()=>this[_0x3e52ae(0x1cd)],'contextElements':()=>[this[_0x3e52ae(0x1bd)]],'callback':()=>{const _0x187ef8=_0x3e52ae;this[_0x187ef8(0x1b7)]=!0x1;}}),this['on'](_0x3e52ae(0x1b8),this[_0x3e52ae(0x192)],{'priority':_0x3e52ae(0x1ab)});}[_0x1f5caf(0x1be)](_0x5cbc27,_0x30c827){return new _0x454e8c(_0x5cbc27,_0x30c827);}[_0x1f5caf(0x183)](_0x318bfe){const _0x589f8a=_0x1f5caf;return new _0x1669d5(_0x318bfe,this[_0x589f8a(0x1b3)][_0x589f8a(0x189)]);}[_0x1f5caf(0x1c3)](_0x142607){return new _0x1d160c(_0x142607);}[_0x1f5caf(0x1cb)](_0x3e0122){return new _0x5e5394(_0x3e0122);}[_0x1f5caf(0x18d)](_0x63ce30){const _0x47cbbe=_0x1f5caf,_0x44f796=new ws(_0x63ce30);return _0x44f796[_0x47cbbe(0x1c5)](_0x47cbbe(0x1b9))['to'](this),_0x44f796;}[_0x1f5caf(0x192)](_0x261167,_0x2f959e,_0xa4d8ee){const _0x266891=_0x1f5caf;_0xa4d8ee?this[_0x266891(0x1b7)]=!0x0:this[_0x266891(0x1b7)]&&this[_0x266891(0x199)][_0x266891(0x185)]();}[_0x1f5caf(0x196)](_0x1eca9e,_0x5d6932){const _0x1525cf=_0x1f5caf;this[_0x1525cf(0x1b3)][_0x1525cf(0x196)](_0x1eca9e,_0x5d6932);}[_0x1f5caf(0x19c)](_0x16a130){const _0x5b6a29=_0x1f5caf;this[_0x5b6a29(0x1b3)][_0x5b6a29(0x19c)](_0x16a130);}[_0x1f5caf(0x1ca)](_0x5da8b2,_0xf18485){const _0x4cc645=_0x1f5caf;this[_0x4cc645(0x1b3)][_0x4cc645(0x1ca)](_0x5da8b2,_0xf18485);}[_0x1f5caf(0x1a8)](_0x23b995){const _0x39cc41=_0x1f5caf;this[_0x39cc41(0x199)][_0x39cc41(0x1a8)](_0x23b995);}[_0x1f5caf(0x194)](_0x1784ee){const _0x437274=_0x1f5caf;this[_0x437274(0x1b3)][_0x437274(0x194)](_0x1784ee);}[_0x1f5caf(0x182)](){const _0x2aa612=_0x1f5caf;this[_0x2aa612(0x1b3)][_0x2aa612(0x1bb)]();}[_0x1f5caf(0x1b4)](){const _0x1a2cb7=_0x1f5caf;this[_0x1a2cb7(0x1b3)][_0x1a2cb7(0x1b2)]();}[_0x1f5caf(0x19d)](_0x301733,_0x231681,_0x4d3b0f){const _0x54b13f=_0x1f5caf;this[_0x54b13f(0x1b3)][_0x54b13f(0x19d)](_0x301733,_0x231681,_0x4d3b0f);}[_0x1f5caf(0x190)](_0xc66e9){const _0x4ea6ea=_0x1f5caf;this[_0x4ea6ea(0x1a1)][_0x4ea6ea(0x190)](_0xc66e9);}[_0x1f5caf(0x1c6)](_0x950dc2){const _0x23f5bf=_0x1f5caf;this[_0x23f5bf(0x1a1)][_0x23f5bf(0x1c6)](_0x950dc2);}[_0x1f5caf(0x188)](){const _0xa9cd0b=_0x1f5caf;this[_0xa9cd0b(0x199)][_0xa9cd0b(0x1a4)]();}[_0x1f5caf(0x195)](_0x1882ed){const _0x51532c=_0x1f5caf;this[_0x51532c(0x1b3)][_0x51532c(0x195)](_0x1882ed);}[_0x1f5caf(0x1bf)](_0x41c48b){const _0x3666c8=_0x1f5caf;this[_0x3666c8(0x199)][_0x3666c8(0x1b5)](_0x41c48b);}[_0x1f5caf(0x1af)](_0x1eafff,_0x5af887){const _0x2448da=_0x1f5caf;this[_0x2448da(0x198)]=_0x1eafff,this[_0x2448da(0x1a1)][_0x2448da(0x1af)](_0x1eafff,_0x5af887);}[_0x1f5caf(0x1c9)](_0x450531){const _0x276405=_0x1f5caf;(_0x450531?this[_0x276405(0x198)][_0x276405(0x1a5)](_0x5b5bb7=>_0x5b5bb7['id']===_0x450531['id']):null)?(this[_0x276405(0x191)]=!0x0,this[_0x276405(0x1a1)][_0x276405(0x1c9)](_0x450531)):_0x450531?.['id'][_0x276405(0x1a3)](_0x276405(0x1ac))?(this[_0x276405(0x191)]=!0x0,this[_0x276405(0x1a1)][_0x276405(0x1c9)](this[_0x276405(0x198)][0x0])):this[_0x276405(0x191)]=!0x1;}[_0x1f5caf(0x1c1)](){const _0x41e27b=_0x1f5caf;this[_0x41e27b(0x1a1)][_0x41e27b(0x1c1)]();}[_0x1f5caf(0x1a2)](_0x2d131a){const _0x3e0412=_0x1f5caf;this[_0x3e0412(0x1a1)][_0x3e0412(0x1a2)](_0x2d131a);}[_0x1f5caf(0x18c)](_0x25f705,_0x55ae56,_0x3d97c6,_0x2a5c65){const _0x565826=_0x1f5caf;this[_0x565826(0x1b3)][_0x565826(0x18c)](_0x25f705,_0x55ae56,_0x3d97c6,_0x2a5c65);}[_0x1f5caf(0x1aa)](_0x890f2b){const _0x4ae559=_0x1f5caf;this[_0x4ae559(0x1b3)][_0x4ae559(0x1aa)](_0x890f2b);}[_0x1f5caf(0x19a)](){const _0x982952=_0x1f5caf;this[_0x982952(0x199)][_0x982952(0x185)]();}}class ws extends _0x5ed3a6{constructor(_0x4e725e){const _0x2cdc48=_0x1f5caf;super(_0x4e725e);const _0xbff7a6=new _0x1458ac(_0x4e725e);_0xbff7a6[_0x2cdc48(0x1c2)]({'label':_0x4e8f19(this[_0x2cdc48(0x1c0)],_0x2cdc48(0x1bc)),'withText':!0x0,'class':[_0x2cdc48(0x187)],'tooltip':''}),_0xbff7a6[_0x2cdc48(0x1c5)](_0x2cdc48(0x1ba))['to'](this,_0x2cdc48(0x1b9)),this[_0x2cdc48(0x193)]({'tag':_0x2cdc48(0x1a0),'attributes':{'class':['ck',_0x2cdc48(0x1a7)]},'children':[{'tag':'p','children':[{'text':_0x4e8f19(this[_0x2cdc48(0x1c0)],_0x2cdc48(0x1c7))+'\x20'},_0xbff7a6]}]});}}
23
+ const _0x584ace=_0x1a22;(function(_0x4dd34f,_0x1a3ebe){const _0x424ea6=_0x1a22,_0x498e90=_0x4dd34f();while(!![]){try{const _0xba7912=parseInt(_0x424ea6(0x1d9))/0x1*(parseInt(_0x424ea6(0x1d2))/0x2)+-parseInt(_0x424ea6(0x1fe))/0x3+-parseInt(_0x424ea6(0x1cd))/0x4*(-parseInt(_0x424ea6(0x202))/0x5)+-parseInt(_0x424ea6(0x1d4))/0x6*(parseInt(_0x424ea6(0x1e4))/0x7)+-parseInt(_0x424ea6(0x1c6))/0x8*(parseInt(_0x424ea6(0x1d6))/0x9)+-parseInt(_0x424ea6(0x1d7))/0xa+parseInt(_0x424ea6(0x1c2))/0xb*(parseInt(_0x424ea6(0x1fd))/0xc);if(_0xba7912===_0x1a3ebe)break;else _0x498e90['push'](_0x498e90['shift']());}catch(_0x481453){_0x498e90['push'](_0x498e90['shift']());}}}(_0x379e,0x631ad));function _0x379e(){const _0xdff50c=['ck-ai-chat-controls','_handlePromptInputFocus','433448tQMmjo','addContextButtonView','_contextPanelView','bindTemplate','setAddContextOptions','2aYgtDz','_promptCapabilitiesView','204HPioPF','setWebSearch','495NOeYRu','7763680Obttoz','setTemplate','509861CEbBbP','div','populateSourceResourceBalloon','_createLoaderView','delegate','ck-ai-chat-controls-model-unavailable-message','contextResourcesSearchInputVisibleFrom','focusPromptInput','setContextItemLoading','clearConversationContextUI','_loaderView','31038PNxKuS','isDisabled','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','_displayedModels','toggleWebSearch','toggleReasoning','setIsUploadInProgress','_modelUnavailableMessageView','form','startConversation','agent','_createPromptCapabilitiesView','clearConversationContextItems','reset','isLoading','_createModelUnavailableMessageView','resetMessageInput','setModel','selectModel','disableModelSelector','sendUserMessage','setReasoning','startsWith','setConversationContext','ck-ai-chat-controls-disabled','5044836KJNBUY','2193174AbosiS','updateResourceState','ck-ai-chat-controls__start-new-chat-button','element','25ePuLtB','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','find','abortPromptStream','execute','locale','isModelAvailable','setPlaceholderText','setInputPlaceholder','removeContextItem','clearCurrentContextItems','set','closeSourceResourceBalloon','_createPromptInputView','ck-hidden','_shouldRestorePromptInputFocus','addContextItem','low','focus','33dBhShJ','bodyCollection','_promptInputView','change:isLoading','36184esyyJZ','enableModelSelector','setModelList','_createContextPanelView','clearPendingContextUI'];_0x379e=function(){return _0xdff50c;};return _0x379e();}import{ButtonView as _0xce73dd,clickOutsideHandler as _0x45a81e,View as _0x4a1f35}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x15231c}from'./controls/aichatpromptinputview.js';function _0x1a22(_0x2f116a,_0x8e3cfb){const _0x379e33=_0x379e();return _0x1a22=function(_0x1a22b0,_0x4cd0c0){_0x1a22b0=_0x1a22b0-0x1b8;let _0x276281=_0x379e33[_0x1a22b0];return _0x276281;},_0x1a22(_0x2f116a,_0x8e3cfb);}import{AIChatPromptCapabilitiesView as _0x1a4362}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x250f7e,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x2b1293}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x2c8136}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x15ab7a}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x4a1f35{[_0x584ace(0x1e7)]=[];[_0x584ace(0x1cf)];[_0x584ace(0x1c4)];[_0x584ace(0x1d3)];[_0x584ace(0x1e3)];[_0x584ace(0x1eb)];[_0x584ace(0x1be)];constructor(_0x2aed8d,_0x14856c){const _0x35446a=_0x584ace;super(_0x2aed8d),this[_0x35446a(0x1cf)]=this[_0x35446a(0x1c9)](_0x2aed8d,{'bodyCollection':_0x14856c[_0x35446a(0x1c3)],'searchInputVisibleFrom':_0x14856c[_0x35446a(0x1df)]}),this[_0x35446a(0x1c4)]=this[_0x35446a(0x1bc)](_0x2aed8d),this[_0x35446a(0x1d3)]=this[_0x35446a(0x1ef)](_0x2aed8d),this[_0x35446a(0x1e3)]=this[_0x35446a(0x1dc)](_0x2aed8d),this[_0x35446a(0x1eb)]=this[_0x35446a(0x1f3)](_0x2aed8d),this[_0x35446a(0x1be)]=!0x1,this[_0x35446a(0x1c4)][_0x35446a(0x1dd)](_0x35446a(0x1f8))['to'](this),this[_0x35446a(0x1e3)][_0x35446a(0x1dd)](_0x35446a(0x205))['to'](this),this[_0x35446a(0x1d3)][_0x35446a(0x1dd)](_0x35446a(0x1e8))['to'](this),this[_0x35446a(0x1d3)][_0x35446a(0x1dd)](_0x35446a(0x1e9))['to'](this),this[_0x35446a(0x1d3)][_0x35446a(0x1dd)](_0x35446a(0x1f6))['to'](this),this[_0x35446a(0x1cf)][_0x35446a(0x1dd)](..._0x2b1293)['to'](this),this[_0x35446a(0x1ba)](_0x35446a(0x208),!0x0),this[_0x35446a(0x1ba)](_0x35446a(0x1e5),!0x1);const _0x10424d=this[_0x35446a(0x1d0)];this[_0x35446a(0x1d8)]({'tag':_0x35446a(0x1ec),'attributes':{'class':['ck',_0x35446a(0x1cb),_0x10424d['if'](_0x35446a(0x1e5),_0x35446a(0x1fc))]},'children':[{'tag':_0x35446a(0x1da),'attributes':{'class':[_0x10424d['if'](_0x35446a(0x1f2),_0x35446a(0x1bd),_0x5a0685=>_0x5a0685||!this[_0x35446a(0x208)]),_0x10424d['if'](_0x35446a(0x208),_0x35446a(0x1bd),_0x466570=>!_0x466570||this[_0x35446a(0x1f2)])]},'children':[this[_0x35446a(0x1cf)],this[_0x35446a(0x1c4)],this[_0x35446a(0x1d3)]]},{'tag':_0x35446a(0x1da),'attributes':{'class':[_0x10424d['if'](_0x35446a(0x1f2),_0x35446a(0x1bd),_0x2c4e5f=>!_0x2c4e5f)]},'children':[this[_0x35446a(0x1e3)]]},{'tag':_0x35446a(0x1da),'attributes':{'class':[_0x10424d['if'](_0x35446a(0x208),_0x35446a(0x1bd),_0x548b50=>_0x548b50)]},'children':[this[_0x35446a(0x1eb)]]}]}),_0x45a81e({'emitter':this[_0x35446a(0x1c4)],'activator':()=>this[_0x35446a(0x1f2)],'contextElements':()=>[this[_0x35446a(0x201)]],'callback':()=>{const _0x4beb71=_0x35446a;this[_0x4beb71(0x1be)]=!0x1;}}),this['on'](_0x35446a(0x1c5),this[_0x35446a(0x1cc)],{'priority':_0x35446a(0x1c0)});}[_0x584ace(0x1c9)](_0x46ae23,_0x3da0ba){return new _0x250f7e(_0x46ae23,_0x3da0ba);}[_0x584ace(0x1bc)](_0x514741){const _0x2d6ba4=_0x584ace;return new _0x15231c(_0x514741,this[_0x2d6ba4(0x1cf)][_0x2d6ba4(0x1ce)]);}[_0x584ace(0x1ef)](_0x13aca2){return new _0x1a4362(_0x13aca2);}[_0x584ace(0x1dc)](_0x176931){return new _0x2c8136(_0x176931);}[_0x584ace(0x1f3)](_0x36f5af){const _0x1216e4=_0x584ace,_0x39cda4=new ws(_0x36f5af);return _0x39cda4[_0x1216e4(0x1dd)](_0x1216e4(0x1ed))['to'](this),_0x39cda4;}[_0x584ace(0x1cc)](_0x159cba,_0x1a1310,_0x4ecbbb){const _0x23acc7=_0x584ace;_0x4ecbbb?this[_0x23acc7(0x1be)]=!0x0:this[_0x23acc7(0x1be)]&&this[_0x23acc7(0x1c4)][_0x23acc7(0x1c1)]();}[_0x584ace(0x1bf)](_0x29b716,_0x250a6c){const _0x567e31=_0x584ace;this[_0x567e31(0x1cf)][_0x567e31(0x1bf)](_0x29b716,_0x250a6c);}[_0x584ace(0x1b8)](_0x25ecc5){const _0x23469d=_0x584ace;this[_0x23469d(0x1cf)][_0x23469d(0x1b8)](_0x25ecc5);}[_0x584ace(0x1e1)](_0x5140ba,_0x5ed7e0){const _0xef2a3e=_0x584ace;this[_0xef2a3e(0x1cf)][_0xef2a3e(0x1e1)](_0x5140ba,_0x5ed7e0);}[_0x584ace(0x1ea)](_0xb19289){const _0x8b393c=_0x584ace;this[_0x8b393c(0x1c4)][_0x8b393c(0x1ea)](_0xb19289);}[_0x584ace(0x1fb)](_0x2c0ebf){const _0x333ce2=_0x584ace;this[_0x333ce2(0x1cf)][_0x333ce2(0x1fb)](_0x2c0ebf);}[_0x584ace(0x1ca)](){const _0x53c04d=_0x584ace;this[_0x53c04d(0x1cf)][_0x53c04d(0x1b9)]();}[_0x584ace(0x1e2)](){const _0x3f8750=_0x584ace;this[_0x3f8750(0x1cf)][_0x3f8750(0x1f0)]();}[_0x584ace(0x1ff)](_0xe3430c,_0x4c3c76,_0x122ea7){const _0x4a40b7=_0x584ace;this[_0x4a40b7(0x1cf)][_0x4a40b7(0x1ff)](_0xe3430c,_0x4c3c76,_0x122ea7);}[_0x584ace(0x1d5)](_0x223f8d){const _0x4bf2d5=_0x584ace;this[_0x4bf2d5(0x1d3)][_0x4bf2d5(0x1d5)](_0x223f8d);}[_0x584ace(0x1f9)](_0x3329c7){const _0x448b42=_0x584ace;this[_0x448b42(0x1d3)][_0x448b42(0x1f9)](_0x3329c7);}[_0x584ace(0x1f4)](){const _0xb18d86=_0x584ace;this[_0xb18d86(0x1c4)][_0xb18d86(0x1f1)]();}[_0x584ace(0x1d1)](_0x5dc58d){const _0x2bb07b=_0x584ace;this[_0x2bb07b(0x1cf)][_0x2bb07b(0x1d1)](_0x5dc58d);}[_0x584ace(0x20a)](_0x1f7d13){const _0x462854=_0x584ace;this[_0x462854(0x1c4)][_0x462854(0x209)](_0x1f7d13);}[_0x584ace(0x1c8)](_0x7fa92e,_0x4dea3e){const _0x352919=_0x584ace;this[_0x352919(0x1e7)]=_0x7fa92e,this[_0x352919(0x1d3)][_0x352919(0x1c8)](_0x7fa92e,_0x4dea3e);}[_0x584ace(0x1f5)](_0x2c3bde){const _0x2f9e91=_0x584ace;(_0x2c3bde?this[_0x2f9e91(0x1e7)][_0x2f9e91(0x204)](_0x5ed4f1=>_0x5ed4f1['id']===_0x2c3bde['id']):null)?(this[_0x2f9e91(0x208)]=!0x0,this[_0x2f9e91(0x1d3)][_0x2f9e91(0x1f5)](_0x2c3bde)):_0x2c3bde?.['id'][_0x2f9e91(0x1fa)](_0x2f9e91(0x1ee))?(this[_0x2f9e91(0x208)]=!0x0,this[_0x2f9e91(0x1d3)][_0x2f9e91(0x1f5)](this[_0x2f9e91(0x1e7)][0x0])):this[_0x2f9e91(0x208)]=!0x1;}[_0x584ace(0x1c7)](){const _0x14ee17=_0x584ace;this[_0x14ee17(0x1d3)][_0x14ee17(0x1c7)]();}[_0x584ace(0x1f7)](_0x5420c1){const _0x4e16e3=_0x584ace;this[_0x4e16e3(0x1d3)][_0x4e16e3(0x1f7)](_0x5420c1);}[_0x584ace(0x1db)](_0x9e0408,_0x242a80,_0x37a920,_0x3b6f29){const _0x110145=_0x584ace;this[_0x110145(0x1cf)][_0x110145(0x1db)](_0x9e0408,_0x242a80,_0x37a920,_0x3b6f29);}[_0x584ace(0x1bb)](_0x14f5f9){const _0x5ece83=_0x584ace;this[_0x5ece83(0x1cf)][_0x5ece83(0x1bb)](_0x14f5f9);}[_0x584ace(0x1e0)](){const _0x3dd7d0=_0x584ace;this[_0x3dd7d0(0x1c4)][_0x3dd7d0(0x1c1)]();}}class ws extends _0x4a1f35{constructor(_0x3de5f6){const _0x5a4972=_0x584ace;super(_0x3de5f6);const _0x193956=new _0xce73dd(_0x3de5f6);_0x193956[_0x5a4972(0x1ba)]({'label':_0x15ab7a(this[_0x5a4972(0x207)],_0x5a4972(0x203)),'withText':!0x0,'class':[_0x5a4972(0x200)],'tooltip':''}),_0x193956[_0x5a4972(0x1dd)](_0x5a4972(0x206))['to'](this,_0x5a4972(0x1ed)),this[_0x5a4972(0x1d8)]({'tag':_0x5a4972(0x1da),'attributes':{'class':['ck',_0x5a4972(0x1de)]},'children':[{'tag':'p','children':[{'text':_0x15ab7a(this[_0x5a4972(0x207)],_0x5a4972(0x1e6))+'\x20'},_0x193956]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4dd6(){const _0x504eb2=['start','updateSuggestionPartState','createCollection','_createSkeletonLoader','445461OeZiLA','addItem','startAutoScroll','_setupTemplate','div','updateReplyItem','ck-ai-chat__feed__items','span','getItemIds','2198791nTCIWr','ai-chat-feed-view-item-not-a-reply-item','getItemById','includes','updateSources','scrollToSuggestion','ck-hidden','isTrackChangesOn','ai-suggestion-reply','_createTemplateChildren','updatePartState','bindTemplate','markAsDone','_bodyCollection','ai-reply','interaction-header','3656840KPakYl','_createLoaderChildren','aiFeed','stop','ck-ai-chat__feed','_createFeedItems','getPartView','children','ai-chat-feed-view-item-not-found','scrollManager','234744RdPxiU','set','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','updateContent','stopAutoScroll','isVisible','map','markItemAsDone','setTemplate','ai-chat-feed-view-item-not-a-suggestion-item','3665uOzLgi','updateSuggestionItem','setLoadingMessage','ck-ai-chat__loader-text','306fjxKBn','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','options','_createFeedLoader','user-message','find','ck-ai-chat__loader','render','isPending','loadingMessage','700790CgdVhK','updateWebSources','bind','remove','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','locale','isLoadingSkeletonVisible','extendTemplate','element','removeItem','delegate','add','toggleLoadingSkeleton','destroy','clear','534496zsoNgg'];_0x4dd6=function(){return _0x504eb2;};return _0x4dd6();}const _0x3a7f64=_0x31c4;(function(_0x380209,_0x14e60e){const _0x3343b5=_0x31c4,_0xd368d6=_0x380209();while(!![]){try{const _0x344f74=-parseInt(_0x3343b5(0xfd))/0x1+-parseInt(_0x3343b5(0xc6))/0x2+-parseInt(_0x3343b5(0xda))/0x3+parseInt(_0x3343b5(0xd5))/0x4+-parseInt(_0x3343b5(0x107))/0x5*(-parseInt(_0x3343b5(0x10b))/0x6)+parseInt(_0x3343b5(0xe3))/0x7+parseInt(_0x3343b5(0xf3))/0x8;if(_0x344f74===_0x14e60e)break;else _0xd368d6['push'](_0xd368d6['shift']());}catch(_0x34b3da){_0xd368d6['push'](_0xd368d6['shift']());}}}(_0x4dd6,0x32ed7));import{CKEditorError as _0x13d8f3,logWarning as _0xc6cfbc,scrollViewportToShowTarget as _0x42d3d8}from'ckeditor5/src/utils.js';import{View as _0x1b5f20}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x16eb8f}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x255af7}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x42530b}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x9fd0b9}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x3f8ae4}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x570efb}from'./feed/aichatfeedinteractionheaderview.js';function _0x31c4(_0x141894,_0x5ac2de){const _0x4dd600=_0x4dd6();return _0x31c4=function(_0x31c42c,_0x3c2f4c){_0x31c42c=_0x31c42c-0xc2;let _0x1b06a5=_0x4dd600[_0x31c42c];return _0x1b06a5;},_0x31c4(_0x141894,_0x5ac2de);}import{ScrollManager as _0x4d91a8}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x5a677f,SKELETON_DEFINITIONS as _0x19a3fb}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0xe6c98f}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x1b5f20{[_0x3a7f64(0xfa)];[_0x3a7f64(0xfc)];[_0x3a7f64(0xf0)];constructor(_0x5526ca,_0x2033e0){const _0x4ae642=_0x3a7f64;super(_0x5526ca),this[_0x4ae642(0xf0)]=_0x2033e0,this[_0x4ae642(0xfe)](_0x4ae642(0xc4),!0x1),this[_0x4ae642(0xfe)](_0x4ae642(0xc5),''),this[_0x4ae642(0xfe)](_0x4ae642(0xcc),!0x1),this[_0x4ae642(0xfe)](_0x4ae642(0xea),!0x1),this[_0x4ae642(0xfa)]=this[_0x4ae642(0xd8)](),this[_0x4ae642(0xfa)][_0x4ae642(0xd0)](..._0x16eb8f)['to'](this),this[_0x4ae642(0xdd)]();}[_0x3a7f64(0xc3)](){const _0xe93af=_0x3a7f64;super[_0xe93af(0xc3)](),this[_0xe93af(0xfc)]=new _0x4d91a8(this[_0xe93af(0xce)]);}[_0x3a7f64(0xd3)](){const _0x539c10=_0x3a7f64;super[_0x539c10(0xd3)](),this[_0x539c10(0xfc)][_0x539c10(0xd3)]();}[_0x3a7f64(0xd4)](){const _0x37b5a2=_0x3a7f64;this[_0x37b5a2(0xfa)][_0x37b5a2(0xd4)]();}[_0x3a7f64(0xdb)](_0x4d8804,_0x76e6bc){const _0x49b1a9=_0x3a7f64;let _0x1c7bd7;_0x49b1a9(0xf1)===_0x4d8804?_0x1c7bd7=new _0x42530b(this[_0x49b1a9(0xcb)],_0x76e6bc):_0x49b1a9(0xeb)===_0x4d8804?(_0x1c7bd7=new _0x255af7(this[_0x49b1a9(0xcb)],_0x76e6bc),_0x1c7bd7[_0x49b1a9(0xc8)](_0x49b1a9(0xea))['to'](this,_0x49b1a9(0xea))):_0x1c7bd7=_0x49b1a9(0x10f)===_0x4d8804?new _0x9fd0b9(this[_0x49b1a9(0xcb)],_0x76e6bc,this[_0x49b1a9(0xf0)]):_0x49b1a9(0xf2)===_0x4d8804?new _0x570efb(this[_0x49b1a9(0xcb)],_0x76e6bc):new _0x3f8ae4(_0x76e6bc),this[_0x49b1a9(0xfa)][_0x49b1a9(0xd1)](_0x1c7bd7);}async[_0x3a7f64(0xdf)]({id:_0x5edc71,parsedContent:_0x1a4ba3,renderingStrategy:_0x39355b,abortSignal:_0x138b3f}){const _0x1b5598=_0x3a7f64,_0x383a74=this[_0x1b5598(0xe5)](_0x5edc71);if(!(_0x383a74 instanceof _0x42530b))throw new _0x13d8f3(_0x1b5598(0xe4),null,{'itemView':_0x383a74,'id':_0x5edc71,'parsedContent':_0x1a4ba3});await _0x383a74[_0x1b5598(0x100)]({'parsedContent':_0x1a4ba3,'renderingStrategy':_0x39355b,'abortSignal':_0x138b3f});}async[_0x3a7f64(0xc7)](_0x2f1f69,_0x41693b){const _0x860733=_0x3a7f64,_0x13042f=this[_0x860733(0xe5)](_0x2f1f69);if(_0x13042f instanceof _0x255af7)_0x13042f[_0x860733(0xe7)](_0x41693b);else{if(!(_0x13042f instanceof _0x42530b))throw new _0x13d8f3(_0x860733(0xff),null,{'itemView':_0x13042f,'id':_0x2f1f69,'sources':_0x41693b});_0x13042f[_0x860733(0xe7)](_0x41693b);}}async[_0x3a7f64(0x108)]({id:_0x216e7a,parts:_0x20c553,renderingStrategy:_0x19a8cd,abortSignal:_0x36de43}){const _0xe43550=_0x3a7f64,_0x21958e=this[_0xe43550(0xe5)](_0x216e7a);if(!(_0x21958e instanceof _0x255af7))throw new _0x13d8f3(_0xe43550(0x106),null,{'itemView':_0x21958e,'id':_0x216e7a,'parts':_0x20c553});await _0x21958e[_0xe43550(0x100)]({'parts':_0x20c553,'renderingStrategy':_0x19a8cd,'abortSignal':_0x36de43});}[_0x3a7f64(0xd7)]({id:_0x3adf06,index:_0x47596f,state:_0x251626}){const _0x3d4640=_0x3a7f64,_0x114d3c=this[_0x3d4640(0xe5)](_0x3adf06);if(!(_0x114d3c instanceof _0x255af7))throw new _0x13d8f3(_0x3d4640(0x106),this,{'id':_0x3adf06});_0x114d3c[_0x3d4640(0xed)](_0x47596f,_0x251626);}[_0x3a7f64(0x104)](_0x3a341a){const _0x2fe03f=_0x3a7f64;this[_0x2fe03f(0xe5)](_0x3a341a)[_0x2fe03f(0xef)]();}[_0x3a7f64(0xe2)](){const _0x579587=_0x3a7f64;return this[_0x579587(0xfa)][_0x579587(0x103)](_0x81f8ec=>_0x81f8ec[_0x579587(0x10d)]['id']);}[_0x3a7f64(0xcf)](_0xaf8d0a){const _0x34507e=_0x3a7f64;this[_0x34507e(0xfa)][_0x34507e(0xc9)](this[_0x34507e(0xe5)](_0xaf8d0a));}[_0x3a7f64(0xe8)](_0x163b9f,_0x4d16d5){const _0x5e8ed5=_0x3a7f64,_0x592a36=this[_0x5e8ed5(0xe5)](_0x163b9f);if(!(_0x592a36 instanceof _0x255af7))return void _0xc6cfbc(_0x5e8ed5(0x10c),{'replyId':_0x163b9f,'partIndex':_0x4d16d5});const _0x370545=_0x592a36[_0x5e8ed5(0xf9)](_0x4d16d5);_0x370545?_0x42d3d8({'target':_0x370545[_0x5e8ed5(0xce)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0xc6cfbc(_0x5e8ed5(0xca),{'replyId':_0x163b9f,'partIndex':_0x4d16d5});}[_0x3a7f64(0xdd)](){const _0x44277a=_0x3a7f64;this[_0x44277a(0x105)]({'tag':_0x44277a(0xde),'attributes':{'class':['ck',_0x44277a(0xf7)]},'children':this[_0x44277a(0xec)]()});}[_0x3a7f64(0xec)](){const _0x55d780=_0x3a7f64,_0x13644e=this[_0x55d780(0xd9)]();return[this[_0x55d780(0xf8)](),_0x13644e,this[_0x55d780(0x10e)]()];}[_0x3a7f64(0xd9)](){const _0x37d8d0=_0x3a7f64,_0x4b1224=new _0x5a677f(this[_0x37d8d0(0xcb)],_0x19a3fb[_0x37d8d0(0xf5)]);return _0x4b1224[_0x37d8d0(0xcd)]({'attributes':{'class':[this[_0x37d8d0(0xee)]['if'](_0x37d8d0(0xcc),_0x37d8d0(0xe9),_0x5deaee=>!_0x5deaee)]}}),_0x4b1224;}[_0x3a7f64(0xf8)](){const _0x5ef9c8=_0x3a7f64,_0x740338=new _0x1b5f20(this[_0x5ef9c8(0xcb)]);return _0x740338[_0x5ef9c8(0x105)]({'tag':_0x5ef9c8(0xde),'attributes':{'class':['ck',_0x5ef9c8(0xe0),this[_0x5ef9c8(0xee)]['if'](_0x5ef9c8(0xcc),_0x5ef9c8(0xe9))]},'children':this[_0x5ef9c8(0xfa)]}),_0x740338;}[_0x3a7f64(0x10e)](){const _0x205ef9=_0x3a7f64,_0x2c837f=new _0x1b5f20(this[_0x205ef9(0xcb)]);return _0x2c837f[_0x205ef9(0x105)]({'tag':_0x205ef9(0xde),'attributes':{'class':['ck',_0x205ef9(0xc2),this[_0x205ef9(0xee)]['if'](_0x205ef9(0xc4),_0x205ef9(0xe9),_0xb95f05=>!_0xb95f05)]},'children':this[_0x205ef9(0xf4)]()}),_0x2c837f;}[_0x3a7f64(0xf4)](){const _0xc5b20=_0x3a7f64,_0x4019f3=new _0xe6c98f();return _0x4019f3[_0xc5b20(0x102)]=!0x0,[_0x4019f3,{'tag':_0xc5b20(0xe1),'attributes':{'class':['ck',_0xc5b20(0x10a)]},'children':[{'text':this[_0xc5b20(0xee)]['to'](_0xc5b20(0xc5))}]}];}[_0x3a7f64(0xe5)](_0x56d3e0){const _0xa8d8d0=_0x3a7f64,_0x4db689=this[_0xa8d8d0(0xfa)][_0xa8d8d0(0x110)](_0x1ab7cc=>_0x1ab7cc[_0xa8d8d0(0x10d)]['id'][_0xa8d8d0(0xe6)](_0x56d3e0));if(!_0x4db689)throw new _0x13d8f3(_0xa8d8d0(0xfb),this,{'id':_0x56d3e0});return _0x4db689;}[_0x3a7f64(0x109)](_0x50803f){const _0x65daa4=_0x3a7f64;this[_0x65daa4(0xfe)](_0x65daa4(0xc5),_0x50803f);}[_0x3a7f64(0xd2)](_0x51e5a2){const _0x52d716=_0x3a7f64;this[_0x52d716(0xfe)](_0x52d716(0xcc),_0x51e5a2);}[_0x3a7f64(0xdc)](){const _0xbcc81a=_0x3a7f64;this[_0xbcc81a(0xfc)][_0xbcc81a(0xd6)]();}[_0x3a7f64(0x101)](){const _0x9ca6e7=_0x3a7f64;this[_0x9ca6e7(0xfc)][_0x9ca6e7(0xf6)]();}}
23
+ const _0xd2dd64=_0x30c3;(function(_0x462682,_0x4d0ded){const _0xeffcca=_0x30c3,_0x43b881=_0x462682();while(!![]){try{const _0x4c07e4=-parseInt(_0xeffcca(0xb3))/0x1+parseInt(_0xeffcca(0xcb))/0x2+parseInt(_0xeffcca(0xe6))/0x3+-parseInt(_0xeffcca(0xae))/0x4+-parseInt(_0xeffcca(0xab))/0x5+-parseInt(_0xeffcca(0xd8))/0x6+parseInt(_0xeffcca(0xb4))/0x7*(parseInt(_0xeffcca(0xee))/0x8);if(_0x4c07e4===_0x4d0ded)break;else _0x43b881['push'](_0x43b881['shift']());}catch(_0x182c50){_0x43b881['push'](_0x43b881['shift']());}}}(_0x3ac5,0x36d9b));import{CKEditorError as _0x10929f,logWarning as _0x5882ea,scrollViewportToShowTarget as _0x1cdbbd}from'ckeditor5/src/utils.js';import{View as _0x32b5dd}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x56043d}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x159c08}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x2014e8}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x4f6bc7}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x19820c}from'./feed/aichatfeederroritemview.js';function _0x30c3(_0x2189ec,_0x3e6890){const _0x3ac51c=_0x3ac5();return _0x30c3=function(_0x30c3f2,_0x210f95){_0x30c3f2=_0x30c3f2-0xaa;let _0x4144b1=_0x3ac51c[_0x30c3f2];return _0x4144b1;},_0x30c3(_0x2189ec,_0x3e6890);}import{AIChatFeedInteractionHeaderView as _0x5c05ac}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x22ffd0}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x24d3e0,SKELETON_DEFINITIONS as _0x18d1da}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x1100b9}from'../../aicore/ui/aispinner.js';function _0x3ac5(){const _0x3e9feb=['_bodyCollection','_createTemplateChildren','777060etLHUP','_createFeedLoader','loadingMessage','1198760HBjxGX','markAsDone','ai-suggestion-reply','div','bind','38750QaruDn','763JrtlFi','_setupTemplate','find','interaction-header','createCollection','set','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','updateSources','ck-ai-chat__loader-text','clear','updateWebSources','updatePartState','removeItem','getItemIds','updateSuggestionItem','children','getItemById','render','add','ai-chat-feed-view-item-not-a-reply-item','element','delegate','startAutoScroll','63384InjzUU','remove','map','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','ai-chat-feed-view-item-not-a-suggestion-item','destroy','_createFeedItems','ck-ai-chat__loader','getPartView','stop','ai-reply','locale','toggleLoadingSkeleton','415824gQJBYh','extendTemplate','scrollManager','bindTemplate','ck-hidden','scrollToSuggestion','updateContent','setTemplate','user-message','isPending','isLoadingSkeletonVisible','isTrackChangesOn','ck-ai-chat__feed__items','_createSkeletonLoader','737706lwUWza','isVisible','aiFeed','ck-ai-chat__feed','span','updateReplyItem','includes','ai-chat-feed-view-item-not-found','37448OwPJkE','setLoadingMessage','_createLoaderChildren','start','markItemAsDone','updateSuggestionPartState','stopAutoScroll','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','options','addItem'];_0x3ac5=function(){return _0x3e9feb;};return _0x3ac5();}export class AIChatFeedView extends _0x32b5dd{[_0xd2dd64(0xc3)];[_0xd2dd64(0xda)];[_0xd2dd64(0xf8)];constructor(_0x461c59,_0x234e2d){const _0x5466e2=_0xd2dd64;super(_0x461c59),this[_0x5466e2(0xf8)]=_0x234e2d,this[_0x5466e2(0xb9)](_0x5466e2(0xe1),!0x1),this[_0x5466e2(0xb9)](_0x5466e2(0xad),''),this[_0x5466e2(0xb9)](_0x5466e2(0xe2),!0x1),this[_0x5466e2(0xb9)](_0x5466e2(0xe3),!0x1),this[_0x5466e2(0xc3)]=this[_0x5466e2(0xb8)](),this[_0x5466e2(0xc3)][_0x5466e2(0xc9)](..._0x56043d)['to'](this),this[_0x5466e2(0xb5)]();}[_0xd2dd64(0xc5)](){const _0x40a8df=_0xd2dd64;super[_0x40a8df(0xc5)](),this[_0x40a8df(0xda)]=new _0x22ffd0(this[_0x40a8df(0xc8)]);}[_0xd2dd64(0xd0)](){const _0xf6f924=_0xd2dd64;super[_0xf6f924(0xd0)](),this[_0xf6f924(0xda)][_0xf6f924(0xd0)]();}[_0xd2dd64(0xbd)](){const _0xfde941=_0xd2dd64;this[_0xfde941(0xc3)][_0xfde941(0xbd)]();}[_0xd2dd64(0xf7)](_0x22adb3,_0x25c428){const _0x436222=_0xd2dd64;let _0x494c6f;_0x436222(0xd5)===_0x22adb3?_0x494c6f=new _0x2014e8(this[_0x436222(0xd6)],_0x25c428):_0x436222(0xb0)===_0x22adb3?(_0x494c6f=new _0x159c08(this[_0x436222(0xd6)],_0x25c428),_0x494c6f[_0x436222(0xb2)](_0x436222(0xe3))['to'](this,_0x436222(0xe3))):_0x494c6f=_0x436222(0xe0)===_0x22adb3?new _0x4f6bc7(this[_0x436222(0xd6)],_0x25c428,this[_0x436222(0xf8)]):_0x436222(0xb7)===_0x22adb3?new _0x5c05ac(this[_0x436222(0xd6)],_0x25c428):new _0x19820c(_0x25c428),this[_0x436222(0xc3)][_0x436222(0xc6)](_0x494c6f);}async[_0xd2dd64(0xeb)]({id:_0x3ee8e8,parsedContent:_0x5acf00,renderingStrategy:_0x1ab89f,abortSignal:_0x111e4c}){const _0x1e3c4d=_0xd2dd64,_0x1a675a=this[_0x1e3c4d(0xc4)](_0x3ee8e8);if(!(_0x1a675a instanceof _0x2014e8))throw new _0x10929f(_0x1e3c4d(0xc7),null,{'itemView':_0x1a675a,'id':_0x3ee8e8,'parsedContent':_0x5acf00});await _0x1a675a[_0x1e3c4d(0xde)]({'parsedContent':_0x5acf00,'renderingStrategy':_0x1ab89f,'abortSignal':_0x111e4c});}async[_0xd2dd64(0xbe)](_0x49909c,_0x1750bb){const _0x5048ae=_0xd2dd64,_0x2b0994=this[_0x5048ae(0xc4)](_0x49909c);if(_0x2b0994 instanceof _0x159c08)_0x2b0994[_0x5048ae(0xbb)](_0x1750bb);else{if(!(_0x2b0994 instanceof _0x2014e8))throw new _0x10929f(_0x5048ae(0xf5),null,{'itemView':_0x2b0994,'id':_0x49909c,'sources':_0x1750bb});_0x2b0994[_0x5048ae(0xbb)](_0x1750bb);}}async[_0xd2dd64(0xc2)]({id:_0xf28767,parts:_0x2d1bbb,renderingStrategy:_0x605610,abortSignal:_0x4f82d3}){const _0xdc6bf5=_0xd2dd64,_0x5f4be0=this[_0xdc6bf5(0xc4)](_0xf28767);if(!(_0x5f4be0 instanceof _0x159c08))throw new _0x10929f(_0xdc6bf5(0xcf),null,{'itemView':_0x5f4be0,'id':_0xf28767,'parts':_0x2d1bbb});await _0x5f4be0[_0xdc6bf5(0xde)]({'parts':_0x2d1bbb,'renderingStrategy':_0x605610,'abortSignal':_0x4f82d3});}[_0xd2dd64(0xf3)]({id:_0x9c4c2e,index:_0xa6c2c4,state:_0x2b6e12}){const _0x472ff1=_0xd2dd64,_0x489d02=this[_0x472ff1(0xc4)](_0x9c4c2e);if(!(_0x489d02 instanceof _0x159c08))throw new _0x10929f(_0x472ff1(0xcf),this,{'id':_0x9c4c2e});_0x489d02[_0x472ff1(0xbf)](_0xa6c2c4,_0x2b6e12);}[_0xd2dd64(0xf2)](_0xbc9a7a){const _0x443e0a=_0xd2dd64;this[_0x443e0a(0xc4)](_0xbc9a7a)[_0x443e0a(0xaf)]();}[_0xd2dd64(0xc1)](){const _0x2f37c0=_0xd2dd64;return this[_0x2f37c0(0xc3)][_0x2f37c0(0xcd)](_0x396fa6=>_0x396fa6[_0x2f37c0(0xf6)]['id']);}[_0xd2dd64(0xc0)](_0x11fb01){const _0x2c14fc=_0xd2dd64;this[_0x2c14fc(0xc3)][_0x2c14fc(0xcc)](this[_0x2c14fc(0xc4)](_0x11fb01));}[_0xd2dd64(0xdd)](_0x3cc740,_0x1a7140){const _0x3e2f93=_0xd2dd64,_0xa4d879=this[_0x3e2f93(0xc4)](_0x3cc740);if(!(_0xa4d879 instanceof _0x159c08))return void _0x5882ea(_0x3e2f93(0xce),{'replyId':_0x3cc740,'partIndex':_0x1a7140});const _0x414ba4=_0xa4d879[_0x3e2f93(0xd3)](_0x1a7140);_0x414ba4?_0x1cdbbd({'target':_0x414ba4[_0x3e2f93(0xc8)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x5882ea(_0x3e2f93(0xba),{'replyId':_0x3cc740,'partIndex':_0x1a7140});}[_0xd2dd64(0xb5)](){const _0x19eabf=_0xd2dd64;this[_0x19eabf(0xdf)]({'tag':_0x19eabf(0xb1),'attributes':{'class':['ck',_0x19eabf(0xe9)]},'children':this[_0x19eabf(0xaa)]()});}[_0xd2dd64(0xaa)](){const _0x42f272=_0xd2dd64,_0xdec815=this[_0x42f272(0xe5)]();return[this[_0x42f272(0xd1)](),_0xdec815,this[_0x42f272(0xac)]()];}[_0xd2dd64(0xe5)](){const _0x1467ff=_0xd2dd64,_0x42751c=new _0x24d3e0(this[_0x1467ff(0xd6)],_0x18d1da[_0x1467ff(0xe8)]);return _0x42751c[_0x1467ff(0xd9)]({'attributes':{'class':[this[_0x1467ff(0xdb)]['if'](_0x1467ff(0xe2),_0x1467ff(0xdc),_0x1ec5d3=>!_0x1ec5d3)]}}),_0x42751c;}[_0xd2dd64(0xd1)](){const _0x59c7b3=_0xd2dd64,_0x248041=new _0x32b5dd(this[_0x59c7b3(0xd6)]);return _0x248041[_0x59c7b3(0xdf)]({'tag':_0x59c7b3(0xb1),'attributes':{'class':['ck',_0x59c7b3(0xe4),this[_0x59c7b3(0xdb)]['if'](_0x59c7b3(0xe2),_0x59c7b3(0xdc))]},'children':this[_0x59c7b3(0xc3)]}),_0x248041;}[_0xd2dd64(0xac)](){const _0x5e8bee=_0xd2dd64,_0x55fecc=new _0x32b5dd(this[_0x5e8bee(0xd6)]);return _0x55fecc[_0x5e8bee(0xdf)]({'tag':_0x5e8bee(0xb1),'attributes':{'class':['ck',_0x5e8bee(0xd2),this[_0x5e8bee(0xdb)]['if'](_0x5e8bee(0xe1),_0x5e8bee(0xdc),_0x3778bb=>!_0x3778bb)]},'children':this[_0x5e8bee(0xf0)]()}),_0x55fecc;}[_0xd2dd64(0xf0)](){const _0x4d34a8=_0xd2dd64,_0x565c67=new _0x1100b9();return _0x565c67[_0x4d34a8(0xe7)]=!0x0,[_0x565c67,{'tag':_0x4d34a8(0xea),'attributes':{'class':['ck',_0x4d34a8(0xbc)]},'children':[{'text':this[_0x4d34a8(0xdb)]['to'](_0x4d34a8(0xad))}]}];}[_0xd2dd64(0xc4)](_0x4084e1){const _0x4deae4=_0xd2dd64,_0x25a0aa=this[_0x4deae4(0xc3)][_0x4deae4(0xb6)](_0x634dc6=>_0x634dc6[_0x4deae4(0xf6)]['id'][_0x4deae4(0xec)](_0x4084e1));if(!_0x25a0aa)throw new _0x10929f(_0x4deae4(0xed),this,{'id':_0x4084e1});return _0x25a0aa;}[_0xd2dd64(0xef)](_0x51eb9f){const _0x41362e=_0xd2dd64;this[_0x41362e(0xb9)](_0x41362e(0xad),_0x51eb9f);}[_0xd2dd64(0xd7)](_0x37b3c2){const _0x337024=_0xd2dd64;this[_0x337024(0xb9)](_0x337024(0xe2),_0x37b3c2);}[_0xd2dd64(0xca)](){const _0x3b5569=_0xd2dd64;this[_0x3b5569(0xda)][_0x3b5569(0xf1)]();}[_0xd2dd64(0xf4)](){const _0x19e992=_0xd2dd64;this[_0x19e992(0xda)][_0x19e992(0xd4)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x36188a=_0x59ec;(function(_0x506c7a,_0x143bf3){const _0x41d51d=_0x59ec,_0x5d7ca6=_0x506c7a();while(!![]){try{const _0x3b9633=-parseInt(_0x41d51d(0x123))/0x1+-parseInt(_0x41d51d(0x127))/0x2*(parseInt(_0x41d51d(0x110))/0x3)+parseInt(_0x41d51d(0x114))/0x4*(-parseInt(_0x41d51d(0x120))/0x5)+-parseInt(_0x41d51d(0x111))/0x6*(-parseInt(_0x41d51d(0x113))/0x7)+-parseInt(_0x41d51d(0x125))/0x8*(-parseInt(_0x41d51d(0x11e))/0x9)+-parseInt(_0x41d51d(0x119))/0xa+-parseInt(_0x41d51d(0x11c))/0xb;if(_0x3b9633===_0x143bf3)break;else _0x5d7ca6['push'](_0x5d7ca6['shift']());}catch(_0x1cb583){_0x5d7ca6['push'](_0x5d7ca6['shift']());}}}(_0x3a37,0xed2e4));import{ButtonView as _0x1e45ee,FormHeaderView as _0x2aac63}from'ckeditor5/src/ui.js';import{IconPlus as _0x33cace,IconAIChat as _0x3b8f59}from'ckeditor5/src/icons.js';import{getTranslation as _0x2cb585}from'../../aicore/utils/common-translations.js';function _0x59ec(_0x26c0c1,_0x54a969){const _0x3a3730=_0x3a37();return _0x59ec=function(_0x59ecc4,_0x2d9680){_0x59ecc4=_0x59ecc4-0x110;let _0x47c5c3=_0x3a3730[_0x59ecc4];return _0x47c5c3;},_0x59ec(_0x26c0c1,_0x54a969);}function _0x3a37(){const _0x409b3f=['AI_CHAT_HEADING','1062KbDKdV','AI_CHAT_LABEL_NEW_CHAT','25AsCgvJ','isMaximized','conversationStartButton','177716CdRElm','startConversation','91072kGGbLC','ck-ai-header\x20ck-ai-header_chat','14tpxoJC','add','execute','28839vJkkjp','2598JGjyCL','children','29071hIKzBM','387852IehYZg','resizeButton','fire','_createStartConversationButton','ck-ai-chat__start-conversation','2863690OXXaRB','locale','set','12692658QfwrVy'];_0x3a37=function(){return _0x409b3f;};return _0x3a37();}import{createResizeButton as _0x51d54a}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x2aac63{[_0x36188a(0x122)];[_0x36188a(0x115)];constructor(_0xc932da,_0x32ce1d){const _0x2deecd=_0x36188a;super(_0xc932da,{'label':_0x2cb585(_0xc932da,_0x2deecd(0x11d)),'class':_0x2deecd(0x126),'icon':_0x3b8f59}),this[_0x2deecd(0x11b)](_0x2deecd(0x121),!0x1),this[_0x2deecd(0x122)]=this[_0x2deecd(0x117)](_0xc932da),this[_0x2deecd(0x112)][_0x2deecd(0x128)](this[_0x2deecd(0x122)]),_0x32ce1d&&(this[_0x2deecd(0x115)]=_0x51d54a(_0xc932da,this),this[_0x2deecd(0x112)][_0x2deecd(0x128)](this[_0x2deecd(0x115)]));}[_0x36188a(0x117)](_0x46bab6){const _0x117c0c=_0x36188a,_0x2b561=new _0x1e45ee(_0x46bab6);return _0x2b561[_0x117c0c(0x11b)]({'label':_0x2cb585(this[_0x117c0c(0x11a)],_0x117c0c(0x11f)),'withText':!0x0,'icon':_0x33cace,'class':_0x117c0c(0x118)}),_0x2b561['on'](_0x117c0c(0x129),()=>{const _0x45f30d=_0x117c0c;this[_0x45f30d(0x116)](_0x45f30d(0x124));}),_0x2b561;}}
23
+ const _0x3915f9=_0x2f7a;(function(_0x244c84,_0x35e733){const _0x4b4716=_0x2f7a,_0x408f41=_0x244c84();while(!![]){try{const _0x8a8adf=parseInt(_0x4b4716(0x187))/0x1*(parseInt(_0x4b4716(0x17c))/0x2)+-parseInt(_0x4b4716(0x18e))/0x3*(parseInt(_0x4b4716(0x18b))/0x4)+parseInt(_0x4b4716(0x18c))/0x5+parseInt(_0x4b4716(0x180))/0x6+parseInt(_0x4b4716(0x176))/0x7*(-parseInt(_0x4b4716(0x183))/0x8)+-parseInt(_0x4b4716(0x184))/0x9+-parseInt(_0x4b4716(0x18d))/0xa*(-parseInt(_0x4b4716(0x189))/0xb);if(_0x8a8adf===_0x35e733)break;else _0x408f41['push'](_0x408f41['shift']());}catch(_0x544db0){_0x408f41['push'](_0x408f41['shift']());}}}(_0x4892,0x31045));import{ButtonView as _0x2176dc,FormHeaderView as _0x35f86d}from'ckeditor5/src/ui.js';import{IconPlus as _0x5e5355,IconAIChat as _0x4e3723}from'ckeditor5/src/icons.js';import{getTranslation as _0x31d215}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x1312fc}from'../../aicore/utils/createresizebutton.js';function _0x2f7a(_0x3a7dcb,_0xf4472e){const _0x489207=_0x4892();return _0x2f7a=function(_0x2f7a92,_0x4b75c5){_0x2f7a92=_0x2f7a92-0x175;let _0x30c22f=_0x489207[_0x2f7a92];return _0x30c22f;},_0x2f7a(_0x3a7dcb,_0xf4472e);}function _0x4892(){const _0x4f91b9=['add','2971GeNKvR','_createStartConversationButton','334653btAgHV','execute','4TmbNek','307570ruZppX','40ubeSiL','70779dgrepM','AI_CHAT_HEADING','7GZAkIH','set','AI_CHAT_LABEL_NEW_CHAT','startConversation','isMaximized','resizeButton','56aSNIFT','fire','conversationStartButton','children','2357250SNTtgb','locale','ck-ai-chat__start-conversation','677608xGFwnv','3151818SDSeTl','ck-ai-header\x20ck-ai-header_chat'];_0x4892=function(){return _0x4f91b9;};return _0x4892();}export class AIChatHeaderView extends _0x35f86d{[_0x3915f9(0x17e)];[_0x3915f9(0x17b)];constructor(_0x956aaf,_0x41724b){const _0x1e977c=_0x3915f9;super(_0x956aaf,{'label':_0x31d215(_0x956aaf,_0x1e977c(0x175)),'class':_0x1e977c(0x185),'icon':_0x4e3723}),this[_0x1e977c(0x177)](_0x1e977c(0x17a),!0x1),this[_0x1e977c(0x17e)]=this[_0x1e977c(0x188)](_0x956aaf),this[_0x1e977c(0x17f)][_0x1e977c(0x186)](this[_0x1e977c(0x17e)]),_0x41724b&&(this[_0x1e977c(0x17b)]=_0x1312fc(_0x956aaf,this),this[_0x1e977c(0x17f)][_0x1e977c(0x186)](this[_0x1e977c(0x17b)]));}[_0x3915f9(0x188)](_0x2a3bf8){const _0x95f8df=_0x3915f9,_0x533e9c=new _0x2176dc(_0x2a3bf8);return _0x533e9c[_0x95f8df(0x177)]({'label':_0x31d215(this[_0x95f8df(0x181)],_0x95f8df(0x178)),'withText':!0x0,'icon':_0x5e5355,'class':_0x95f8df(0x182)}),_0x533e9c['on'](_0x95f8df(0x18a),()=>{const _0xd59152=_0x95f8df;this[_0xd59152(0x17d)](_0xd59152(0x179));}),_0x533e9c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1834f0=_0x5bf3;(function(_0x5ccc8b,_0x52b2f5){var _0x409830=_0x5bf3,_0x1a4ae6=_0x5ccc8b();while(!![]){try{var _0x35ecfe=-parseInt(_0x409830(0x146))/0x1+parseInt(_0x409830(0x15c))/0x2+parseInt(_0x409830(0x155))/0x3*(parseInt(_0x409830(0x158))/0x4)+-parseInt(_0x409830(0x145))/0x5*(parseInt(_0x409830(0x15e))/0x6)+-parseInt(_0x409830(0x15a))/0x7+-parseInt(_0x409830(0x15d))/0x8+parseInt(_0x409830(0x154))/0x9;if(_0x35ecfe===_0x52b2f5)break;else _0x1a4ae6['push'](_0x1a4ae6['shift']());}catch(_0x327efd){_0x1a4ae6['push'](_0x1a4ae6['shift']());}}}(_0x4786,0x22a7a));import{View as _0x1aa37e,BodyCollection as _0x137712}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x17a9bf}from'../utils/eventnames.js';import{AIChatFeedView as _0x307138}from'./aichatfeedview.js';import{AIChatControlsView as _0x59c8c9}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x29fc37}from'./aichatheaderview.js';import{AIDisclaimerView as _0x2ff9bf}from'../../aicore/ui/aidisclaimerview.js';function _0x5bf3(_0x26ee59,_0x3c3cbe){var _0x478674=_0x4786();return _0x5bf3=function(_0x5bf396,_0xd511f3){_0x5bf396=_0x5bf396-0x145;var _0x3e2883=_0x478674[_0x5bf396];return _0x3e2883;},_0x5bf3(_0x26ee59,_0x3c3cbe);}function _0x4786(){var _0x5ac388=['1684eqLRGs','chatControls','441763GSJeds','contextResourcesSearchInputVisibleFrom','282214Ryrnln','1596808zRiUCn','6JtCEsw','ck-ai-chat','chatHeader','1363970lRhFJF','205680TNDTCs','chatFeed','destroy','closeSourceResourceBalloon','populateSourceResourceBalloon','_bodyCollection','setTemplate','showResizeButton','chatDisclaimer','ck-rounded-corners','div','ck-reset_all','detachFromDom','delegate','6409188DcBeBG','213uHZRhU','attachToDom','uiLanguageDirection'];_0x4786=function(){return _0x5ac388;};return _0x4786();}export class AIChatView extends _0x1aa37e{[_0x1834f0(0x160)];[_0x1834f0(0x147)];[_0x1834f0(0x159)];[_0x1834f0(0x14e)];[_0x1834f0(0x14b)];constructor(_0x20ba2b,_0x49e68a){var _0x311bba=_0x1834f0;super(_0x20ba2b),this[_0x311bba(0x14b)]=new _0x137712(_0x20ba2b),this[_0x311bba(0x14b)][_0x311bba(0x156)](),this[_0x311bba(0x160)]=new _0x29fc37(_0x20ba2b,_0x49e68a[_0x311bba(0x14d)]),this[_0x311bba(0x160)][_0x311bba(0x153)](..._0x17a9bf)['to'](this),this[_0x311bba(0x147)]=new _0x307138(_0x20ba2b,this[_0x311bba(0x14b)]),this[_0x311bba(0x147)][_0x311bba(0x153)](..._0x17a9bf)['to'](this),this[_0x311bba(0x159)]=new _0x59c8c9(_0x20ba2b,{'bodyCollection':this[_0x311bba(0x14b)],'contextResourcesSearchInputVisibleFrom':_0x49e68a[_0x311bba(0x15b)]}),this[_0x311bba(0x159)][_0x311bba(0x153)](..._0x17a9bf)['to'](this),this[_0x311bba(0x14e)]=new _0x2ff9bf(_0x20ba2b),this[_0x311bba(0x14c)]({'tag':_0x311bba(0x150),'attributes':{'class':['ck',_0x311bba(0x151),_0x311bba(0x15f),_0x311bba(0x14f)],'dir':_0x20ba2b[_0x311bba(0x157)]},'children':[this[_0x311bba(0x160)],this[_0x311bba(0x147)],this[_0x311bba(0x159)],this[_0x311bba(0x14e)]]});}[_0x1834f0(0x14a)](_0x5938e7,_0x1095c9,_0x1c94bb,_0xa171){var _0x25b5f8=_0x1834f0;this[_0x25b5f8(0x159)][_0x25b5f8(0x14a)](_0x5938e7,_0x1095c9,_0x1c94bb,_0xa171);}[_0x1834f0(0x149)](_0x5acc6){var _0x36ab87=_0x1834f0;this[_0x36ab87(0x159)][_0x36ab87(0x149)](_0x5acc6);}[_0x1834f0(0x148)](){var _0x298217=_0x1834f0;this[_0x298217(0x14b)][_0x298217(0x152)](),super[_0x298217(0x148)]();}}
23
+ var _0xdb7ad2=_0xa68f;(function(_0x105cc6,_0x3b2b2d){var _0x27dbeb=_0xa68f,_0x54ac8f=_0x105cc6();while(!![]){try{var _0x3d6a28=-parseInt(_0x27dbeb(0xf4))/0x1*(-parseInt(_0x27dbeb(0xed))/0x2)+-parseInt(_0x27dbeb(0xf5))/0x3+parseInt(_0x27dbeb(0x100))/0x4*(-parseInt(_0x27dbeb(0xec))/0x5)+parseInt(_0x27dbeb(0xf6))/0x6*(-parseInt(_0x27dbeb(0x102))/0x7)+-parseInt(_0x27dbeb(0x105))/0x8*(-parseInt(_0x27dbeb(0xeb))/0x9)+parseInt(_0x27dbeb(0x104))/0xa*(-parseInt(_0x27dbeb(0xe8))/0xb)+-parseInt(_0x27dbeb(0xf8))/0xc*(-parseInt(_0x27dbeb(0xee))/0xd);if(_0x3d6a28===_0x3b2b2d)break;else _0x54ac8f['push'](_0x54ac8f['shift']());}catch(_0x3bbf39){_0x54ac8f['push'](_0x54ac8f['shift']());}}}(_0x406a,0xb75c6));import{View as _0x943f85,BodyCollection as _0x5854b8}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x464e90}from'../utils/eventnames.js';import{AIChatFeedView as _0x57a75b}from'./aichatfeedview.js';function _0xa68f(_0x59f0b9,_0x17dde7){var _0x406a25=_0x406a();return _0xa68f=function(_0xa68f1c,_0x221544){_0xa68f1c=_0xa68f1c-0xe8;var _0x2ff0f0=_0x406a25[_0xa68f1c];return _0x2ff0f0;},_0xa68f(_0x59f0b9,_0x17dde7);}import{AIChatControlsView as _0x57aea4}from'./aichatcontrolsview.js';function _0x406a(){var _0x380f39=['detachFromDom','230SazoEj','40kqDNYw','chatHeader','uiLanguageDirection','511478ThQkNI','chatFeed','ck-reset_all','234162FCJiNg','5FTgzCj','38014nsXToq','3954665OTqOTF','showResizeButton','_bodyCollection','populateSourceResourceBalloon','setTemplate','chatControls','37lVWxmK','1509777yhRBgh','12oOSRNB','destroy','132qCOScB','closeSourceResourceBalloon','contextResourcesSearchInputVisibleFrom','attachToDom','chatDisclaimer','ck-rounded-corners','delegate','div','5859876aQFyLU','ck-ai-chat','1368066ePmaAd'];_0x406a=function(){return _0x380f39;};return _0x406a();}import{AIChatHeaderView as _0xff15cf}from'./aichatheaderview.js';import{AIDisclaimerView as _0x5afa0a}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x943f85{[_0xdb7ad2(0x106)];[_0xdb7ad2(0xe9)];[_0xdb7ad2(0xf3)];[_0xdb7ad2(0xfc)];[_0xdb7ad2(0xf0)];constructor(_0x3cefde,_0xbb3127){var _0x391790=_0xdb7ad2;super(_0x3cefde),this[_0x391790(0xf0)]=new _0x5854b8(_0x3cefde),this[_0x391790(0xf0)][_0x391790(0xfb)](),this[_0x391790(0x106)]=new _0xff15cf(_0x3cefde,_0xbb3127[_0x391790(0xef)]),this[_0x391790(0x106)][_0x391790(0xfe)](..._0x464e90)['to'](this),this[_0x391790(0xe9)]=new _0x57a75b(_0x3cefde,this[_0x391790(0xf0)]),this[_0x391790(0xe9)][_0x391790(0xfe)](..._0x464e90)['to'](this),this[_0x391790(0xf3)]=new _0x57aea4(_0x3cefde,{'bodyCollection':this[_0x391790(0xf0)],'contextResourcesSearchInputVisibleFrom':_0xbb3127[_0x391790(0xfa)]}),this[_0x391790(0xf3)][_0x391790(0xfe)](..._0x464e90)['to'](this),this[_0x391790(0xfc)]=new _0x5afa0a(_0x3cefde),this[_0x391790(0xf2)]({'tag':_0x391790(0xff),'attributes':{'class':['ck',_0x391790(0xea),_0x391790(0x101),_0x391790(0xfd)],'dir':_0x3cefde[_0x391790(0x107)]},'children':[this[_0x391790(0x106)],this[_0x391790(0xe9)],this[_0x391790(0xf3)],this[_0x391790(0xfc)]]});}[_0xdb7ad2(0xf1)](_0x3fe8d7,_0x42d2bd,_0xf35c19,_0x84fbb2){var _0x1c08c3=_0xdb7ad2;this[_0x1c08c3(0xf3)][_0x1c08c3(0xf1)](_0x3fe8d7,_0x42d2bd,_0xf35c19,_0x84fbb2);}[_0xdb7ad2(0xf9)](_0x1e7c84){var _0x1745a1=_0xdb7ad2;this[_0x1745a1(0xf3)][_0x1745a1(0xf9)](_0x1e7c84);}[_0xdb7ad2(0xf7)](){var _0x2df4ab=_0xdb7ad2;this[_0x2df4ab(0xf0)][_0x2df4ab(0x103)](),super[_0x2df4ab(0xf7)]();}}