@ckeditor/ckeditor5-ai 47.7.0-alpha.0 → 47.7.0-alpha.1

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 (151) 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/model/aiactionsinteraction.js +1 -1
  5. package/src/aiactions/model/aiactionsreply.js +1 -1
  6. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  7. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  8. package/src/aiassistant/aiassistant.js +1 -1
  9. package/src/aiassistant/aiassistantediting.js +1 -1
  10. package/src/aiassistant/aiassistantui.js +1 -1
  11. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  12. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  13. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  14. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  15. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  16. package/src/aiassistant/ui/form/aiformview.js +1 -1
  17. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  18. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  19. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  20. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  21. package/src/aiballoon/aiballoon.js +1 -1
  22. package/src/aiballoon/ui/aiballoonview.js +1 -1
  23. package/src/aichat/aichat.js +1 -1
  24. package/src/aichat/aichatballoon.js +1 -1
  25. package/src/aichat/aichatcontroller.js +1 -1
  26. package/src/aichat/aichatui.js +1 -1
  27. package/src/aichat/model/aichatcontext.js +1 -1
  28. package/src/aichat/model/aichatconversation.js +1 -1
  29. package/src/aichat/model/aichatinteraction.js +1 -1
  30. package/src/aichat/ui/aichatballoonview.js +1 -1
  31. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  32. package/src/aichat/ui/aichatfeedview.js +1 -1
  33. package/src/aichat/ui/aichatheaderview.js +1 -1
  34. package/src/aichat/ui/aichatview.js +1 -1
  35. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  36. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  37. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  38. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  39. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  40. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  41. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  42. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  43. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  44. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  45. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  48. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  49. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  50. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  57. package/src/aichat/utils/eventnames.js +1 -1
  58. package/src/aichat/utils/promisequeue.js +1 -1
  59. package/src/aichathistory/aichathistory.js +1 -1
  60. package/src/aichathistory/aichathistorycontroller.js +1 -1
  61. package/src/aichathistory/aichathistoryui.js +1 -1
  62. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  63. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  64. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  65. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  66. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  67. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  68. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  69. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  70. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  71. package/src/aicore/aiconnector.js +1 -1
  72. package/src/aicore/aiediting.js +1 -1
  73. package/src/aicore/model/aicapabilities.js +1 -1
  74. package/src/aicore/model/aiinteraction.js +1 -1
  75. package/src/aicore/model/aimodels.js +1 -1
  76. package/src/aicore/model/aireply.js +1 -1
  77. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  78. package/src/aicore/pipeline/airesponseparser.js +2 -2
  79. package/src/aicore/ui/aidisclaimerview.js +1 -1
  80. package/src/aicore/ui/aiskeleton.js +1 -1
  81. package/src/aicore/ui/aispinner.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  84. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  85. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  86. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  87. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  88. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  89. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  90. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  91. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  92. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  93. package/src/aicore/utils/createresizebutton.js +1 -1
  94. package/src/aicore/utils/documentrange.js +1 -1
  95. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  96. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  97. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  98. package/src/aicore/utils/htmlparser.js +1 -1
  99. package/src/aicore/utils/htmlstreamer.js +1 -1
  100. package/src/aieditorintegration/aieditorintegration.js +1 -1
  101. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  102. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  103. package/src/aiquickactions/aiquickactions.js +1 -1
  104. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  105. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  106. package/src/aiquickactions/aiquickactionsui.js +1 -1
  107. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  108. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  109. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  110. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  111. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  112. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  113. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  114. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  115. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  116. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  117. package/src/aireviewcore/aireviewcoreui.js +1 -1
  118. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  119. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  120. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  121. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  122. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  123. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  124. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  125. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  126. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  127. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  128. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  129. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  130. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  131. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  132. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  133. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  134. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  135. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  136. package/src/aireviewmode/aireviewmode.js +1 -1
  137. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  138. package/src/aireviewmode/aireviewmodeui.js +1 -1
  139. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  140. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  141. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  142. package/src/aitabs/aitabs.js +1 -1
  143. package/src/aitabs/tabs/aitabsview.js +1 -1
  144. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  145. package/src/aitabs/tabs/tabpanelview.js +1 -1
  146. package/src/aitranslate/aitranslate.js +1 -1
  147. package/src/aitranslate/aitranslatecontroller.js +1 -1
  148. package/src/aitranslate/aitranslateui.js +1 -1
  149. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  150. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  151. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52b282=_0x1cfd;(function(_0x26c59c,_0x2b56ad){const _0x2cd00f=_0x1cfd,_0x3e70af=_0x26c59c();while(!![]){try{const _0x14baa8=-parseInt(_0x2cd00f(0xf0))/0x1*(-parseInt(_0x2cd00f(0xfc))/0x2)+parseInt(_0x2cd00f(0xe5))/0x3*(parseInt(_0x2cd00f(0xd7))/0x4)+-parseInt(_0x2cd00f(0xf5))/0x5+parseInt(_0x2cd00f(0xec))/0x6*(-parseInt(_0x2cd00f(0x10b))/0x7)+parseInt(_0x2cd00f(0xd8))/0x8+-parseInt(_0x2cd00f(0xd9))/0x9+-parseInt(_0x2cd00f(0xdb))/0xa*(-parseInt(_0x2cd00f(0x104))/0xb);if(_0x14baa8===_0x2b56ad)break;else _0x3e70af['push'](_0x3e70af['shift']());}catch(_0x4a7026){_0x3e70af['push'](_0x3e70af['shift']());}}}(_0x27f6,0xcca5c));import{Plugin as _0x58fe0d}from'ckeditor5/src/core.js';import{AIBalloon as _0x287dae}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0x19f564}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x1cfd(_0x3b691f,_0x2b0eb7){const _0x27f613=_0x27f6();return _0x1cfd=function(_0x1cfdd3,_0xa550dd){_0x1cfdd3=_0x1cfdd3-0xd0;let _0x4013b=_0x27f613[_0x1cfdd3];return _0x4013b;},_0x1cfd(_0x3b691f,_0x2b0eb7);}import{AIChatBalloonView as _0x2ff865}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4d23e3}from'../aicore/utils/eventnames.js';function _0x27f6(){const _0x55244e=['has','TrackChanges','config','showPrevious','focus','updateContent','get','_toggleRotatorButtonsInDialogHeader','headerView','3MBMjmq','_createChatBalloonView','isOfficialPlugin','commands','bind','ck-ai-chat-balloon','rejectSuggestion','378aRunwd','close','togglePartToolbarEnabled','showNext','37127mGdMaz','pluginName','open','areActionsDisabled','previousButtonView','1651810oJDHCO','remove','applySuggestion','AIBalloon','set','insertSuggestion','setState','20JdNZAl','value','render','beforeDialogClosed','plugins','view','editor','delegate','7148449NemxVP','requires','showRotator','toggleRotatorButtonsVisibility','AIChatBalloon','ai.availableReplyActions','dialogClosed','164563kbimhq','aiChatBalloon','showDiff','nextButtonView','once','locale','Dialog','isPremiumPlugin','trackChanges','children','addMany','_restoreDefaultViewFocus','isTrackChangesOn','filter','5649544MLipir','7576056mTXCSm','6577713wLYrkk','_chatBalloonView','10CgmaNu'];_0x27f6=function(){return _0x55244e;};return _0x27f6();}import{Dialog as _0x30b2dd}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x58fe0d{static get[_0x52b282(0x105)](){return[_0x30b2dd,_0x287dae];}static get[_0x52b282(0xf1)](){const _0x4bcdf2=_0x52b282;return _0x4bcdf2(0x108);}static get[_0x52b282(0xe7)](){return!0x0;}static get[_0x52b282(0xd0)](){return!0x0;}[_0x52b282(0xda)];constructor(_0x2e638c){const _0x512a51=_0x52b282;super(_0x2e638c),this[_0x512a51(0xf9)](_0x512a51(0x10d),!0x1);}[_0x52b282(0xf2)](_0x472db0){const _0x3b8fbd=_0x52b282,_0x5a999b=this[_0x3b8fbd(0x102)];this[_0x3b8fbd(0xda)]||(this[_0x3b8fbd(0xda)]=this[_0x3b8fbd(0xe6)]()),_0x5a999b[_0x3b8fbd(0x100)][_0x3b8fbd(0xe2)](_0x3b8fbd(0xf8))[_0x3b8fbd(0xf2)]({..._0x472db0,'id':_0x3b8fbd(0x10c),'class':_0x3b8fbd(0xea),'mainView':this[_0x3b8fbd(0xda)]}),this[_0x3b8fbd(0xe3)](_0x472db0[_0x3b8fbd(0x106)]),this[_0x3b8fbd(0xda)][_0x3b8fbd(0xee)](!_0x472db0[_0x3b8fbd(0xf3)]),this[_0x3b8fbd(0xd4)]();}[_0x52b282(0xed)](){const _0x14b70d=_0x52b282;this[_0x14b70d(0x102)][_0x14b70d(0x100)][_0x14b70d(0xe2)](_0x14b70d(0xf8))[_0x14b70d(0xed)]();}[_0x52b282(0xe1)](_0x1cce8f){const _0x41700d=_0x52b282;return this[_0x41700d(0xda)]||(this[_0x41700d(0xda)]=this[_0x41700d(0xe6)]()),this[_0x41700d(0xda)][_0x41700d(0xe1)](_0x1cce8f);}[_0x52b282(0xfb)](_0x24aef0){const _0x30aeb1=_0x52b282;this[_0x30aeb1(0xda)]&&this[_0x30aeb1(0xda)][_0x30aeb1(0xfb)](_0x24aef0);}[_0x52b282(0xe6)](){const _0x3fc59b=_0x52b282,_0x21ebd6=this[_0x3fc59b(0x102)],_0x4f2e75=_0x21ebd6[_0x3fc59b(0x100)][_0x3fc59b(0xe2)](_0x3fc59b(0xf8)),_0x3f6617=_0x21ebd6[_0x3fc59b(0xe8)][_0x3fc59b(0xe2)](_0x3fc59b(0xd1));let _0x77e5d5=_0x21ebd6[_0x3fc59b(0xde)][_0x3fc59b(0xe2)](_0x3fc59b(0x109))||[..._0x19f564];_0x21ebd6[_0x3fc59b(0x100)][_0x3fc59b(0xdc)](_0x3fc59b(0xdd))||(_0x77e5d5=_0x77e5d5[_0x3fc59b(0xd6)](_0x1569f3=>_0x3fc59b(0xfa)!=_0x1569f3));const _0x3b2957=new _0x2ff865(_0x21ebd6[_0x3fc59b(0x110)],{'availableActions':_0x77e5d5,'showApplyButton':!0x0,'showSuggestButton':!!_0x3f6617});return _0x3b2957[_0x3fc59b(0xe9)](_0x3fc59b(0x10d))['to'](this),_0x3b2957[_0x3fc59b(0x103)](..._0x4d23e3)['to'](this),_0x3b2957[_0x3fc59b(0x103)](_0x3fc59b(0xdf),_0x3fc59b(0xef))['to'](this),_0x4f2e75[_0x3fc59b(0x103)](_0x3fc59b(0x10a))['to'](this),_0x3b2957['on'](_0x3fc59b(0xf7),this[_0x3fc59b(0xd4)][_0x3fc59b(0xe9)](this)),_0x3b2957['on'](_0x3fc59b(0xfa),this[_0x3fc59b(0xd4)][_0x3fc59b(0xe9)](this)),_0x3b2957['on'](_0x3fc59b(0xeb),this[_0x3fc59b(0xd4)][_0x3fc59b(0xe9)](this)),_0x3f6617&&_0x3b2957[_0x3fc59b(0xe9)](_0x3fc59b(0xd5))['to'](_0x3f6617,_0x3fc59b(0xfd)),_0x3b2957[_0x3fc59b(0xfe)](),_0x3b2957;}[_0x52b282(0xe3)](_0x2e69ce){const _0x546d29=_0x52b282,_0xefee5f=this[_0x546d29(0x102)],_0x21209f=_0xefee5f[_0x546d29(0x100)][_0x546d29(0xe2)](_0x546d29(0x111))[_0x546d29(0x101)][_0x546d29(0xe4)][_0x546d29(0xd2)];this[_0x546d29(0xda)][_0x546d29(0x107)](_0x2e69ce),_0x21209f[_0x546d29(0xdc)](this[_0x546d29(0xda)][_0x546d29(0xf4)])||(_0x21209f[_0x546d29(0xd3)]([this[_0x546d29(0xda)][_0x546d29(0xf4)],this[_0x546d29(0xda)][_0x546d29(0x10e)]],0x0),_0xefee5f[_0x546d29(0x100)][_0x546d29(0xe2)](_0x546d29(0xf8))[_0x546d29(0x10f)](_0x546d29(0xff),()=>{const _0x3cf24b=_0x546d29;_0x21209f[_0x3cf24b(0xf6)](this[_0x3cf24b(0xda)][_0x3cf24b(0xf4)]),_0x21209f[_0x3cf24b(0xf6)](this[_0x3cf24b(0xda)][_0x3cf24b(0x10e)]);}));}[_0x52b282(0xd4)](){const _0x32b9f6=_0x52b282;this[_0x32b9f6(0xda)][_0x32b9f6(0xe0)]();}}
23
+ const _0x3a83b2=_0xe6bb;(function(_0xbe659d,_0xe05e4f){const _0x5161e9=_0xe6bb,_0x5d703d=_0xbe659d();while(!![]){try{const _0x1d5133=-parseInt(_0x5161e9(0xba))/0x1+parseInt(_0x5161e9(0xc8))/0x2*(parseInt(_0x5161e9(0xd9))/0x3)+parseInt(_0x5161e9(0xbe))/0x4+-parseInt(_0x5161e9(0xd1))/0x5+-parseInt(_0x5161e9(0xaf))/0x6*(-parseInt(_0x5161e9(0xd4))/0x7)+parseInt(_0x5161e9(0xea))/0x8+-parseInt(_0x5161e9(0xb5))/0x9;if(_0x1d5133===_0xe05e4f)break;else _0x5d703d['push'](_0x5d703d['shift']());}catch(_0x500e3b){_0x5d703d['push'](_0x5d703d['shift']());}}}(_0x1a5a,0x524e3));import{Plugin as _0x2e123d}from'ckeditor5/src/core.js';import{AIBalloon as _0x235938}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0x42d5ff}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x3c57d0}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x3b6c5a}from'../aicore/utils/eventnames.js';function _0xe6bb(_0x5fe5a5,_0x41602c){const _0x1a5a7d=_0x1a5a();return _0xe6bb=function(_0xe6bbde,_0xc4098c){_0xe6bbde=_0xe6bbde-0xae;let _0x6bddf7=_0x1a5a7d[_0xe6bbde];return _0x6bddf7;},_0xe6bb(_0x5fe5a5,_0x41602c);}import{Dialog as _0xcc4fc0}from'ckeditor5/src/ui.js';function _0x1a5a(){const _0x56df5a=['showDiff','areActionsDisabled','requires','updateContent','children','plugins','bind','previousButtonView','dialogClosed','2tZKoTG','config','rejectSuggestion','focus','showRotator','_createChatBalloonView','open','_restoreDefaultViewFocus','delegate','322915fshEBF','showNext','get','84wizoOS','_toggleRotatorButtonsInDialogHeader','AIChatBalloon','AIBalloon','close','1044486cjpGkg','addMany','toggleRotatorButtonsVisibility','locale','commands','nextButtonView','beforeDialogClosed','showPrevious','trackChanges','setState','ai.availableReplyActions','set','isPremiumPlugin','applySuggestion','value','has','ck-ai-chat-balloon','3073000nEeXfx','editor','headerView','Dialog','pluginName','327960DPLlCN','isOfficialPlugin','view','remove','filter','_chatBalloonView','6334983rMFGZo','aiChatBalloon','render','once','insertSuggestion','580594TFasny','isTrackChangesOn','TrackChanges','togglePartToolbarEnabled','1191920KLRofs'];_0x1a5a=function(){return _0x56df5a;};return _0x1a5a();}export class AIChatBalloon extends _0x2e123d{static get[_0x3a83b2(0xc1)](){return[_0xcc4fc0,_0x235938];}static get[_0x3a83b2(0xae)](){const _0x4c01a3=_0x3a83b2;return _0x4c01a3(0xd6);}static get[_0x3a83b2(0xb0)](){return!0x0;}static get[_0x3a83b2(0xe5)](){return!0x0;}[_0x3a83b2(0xb4)];constructor(_0x5a5a4c){const _0x5b177b=_0x3a83b2;super(_0x5a5a4c),this[_0x5b177b(0xe4)](_0x5b177b(0xbf),!0x1);}[_0x3a83b2(0xce)](_0x2a4b03){const _0x5e3669=_0x3a83b2,_0x12acf2=this[_0x5e3669(0xeb)];this[_0x5e3669(0xb4)]||(this[_0x5e3669(0xb4)]=this[_0x5e3669(0xcd)]()),_0x12acf2[_0x5e3669(0xc4)][_0x5e3669(0xd3)](_0x5e3669(0xd7))[_0x5e3669(0xce)]({..._0x2a4b03,'id':_0x5e3669(0xb6),'class':_0x5e3669(0xe9),'mainView':this[_0x5e3669(0xb4)]}),this[_0x5e3669(0xd5)](_0x2a4b03[_0x5e3669(0xcc)]),this[_0x5e3669(0xb4)][_0x5e3669(0xbd)](!_0x2a4b03[_0x5e3669(0xc0)]),this[_0x5e3669(0xcf)]();}[_0x3a83b2(0xd8)](){const _0x37014c=_0x3a83b2;this[_0x37014c(0xeb)][_0x37014c(0xc4)][_0x37014c(0xd3)](_0x37014c(0xd7))[_0x37014c(0xd8)]();}[_0x3a83b2(0xc2)](_0x2cdbb1){const _0x485e24=_0x3a83b2;return this[_0x485e24(0xb4)]||(this[_0x485e24(0xb4)]=this[_0x485e24(0xcd)]()),this[_0x485e24(0xb4)][_0x485e24(0xc2)](_0x2cdbb1);}[_0x3a83b2(0xe2)](_0x2b3880){const _0x1726fa=_0x3a83b2;this[_0x1726fa(0xb4)]&&this[_0x1726fa(0xb4)][_0x1726fa(0xe2)](_0x2b3880);}[_0x3a83b2(0xcd)](){const _0x23c09b=_0x3a83b2,_0x22c910=this[_0x23c09b(0xeb)],_0x242b57=_0x22c910[_0x23c09b(0xc4)][_0x23c09b(0xd3)](_0x23c09b(0xd7)),_0xb989fe=_0x22c910[_0x23c09b(0xdd)][_0x23c09b(0xd3)](_0x23c09b(0xe1));let _0x21a870=_0x22c910[_0x23c09b(0xc9)][_0x23c09b(0xd3)](_0x23c09b(0xe3))||[..._0x42d5ff];_0x22c910[_0x23c09b(0xc4)][_0x23c09b(0xe8)](_0x23c09b(0xbc))||(_0x21a870=_0x21a870[_0x23c09b(0xb3)](_0x29702c=>_0x23c09b(0xb9)!=_0x29702c));const _0x3b11f6=new _0x3c57d0(_0x22c910[_0x23c09b(0xdc)],{'availableActions':_0x21a870,'showApplyButton':!0x0,'showSuggestButton':!!_0xb989fe});return _0x3b11f6[_0x23c09b(0xc5)](_0x23c09b(0xbf))['to'](this),_0x3b11f6[_0x23c09b(0xd0)](..._0x3b6c5a)['to'](this),_0x3b11f6[_0x23c09b(0xd0)](_0x23c09b(0xe0),_0x23c09b(0xd2))['to'](this),_0x242b57[_0x23c09b(0xd0)](_0x23c09b(0xc7))['to'](this),_0x3b11f6['on'](_0x23c09b(0xe6),this[_0x23c09b(0xcf)][_0x23c09b(0xc5)](this)),_0x3b11f6['on'](_0x23c09b(0xb9),this[_0x23c09b(0xcf)][_0x23c09b(0xc5)](this)),_0x3b11f6['on'](_0x23c09b(0xca),this[_0x23c09b(0xcf)][_0x23c09b(0xc5)](this)),_0xb989fe&&_0x3b11f6[_0x23c09b(0xc5)](_0x23c09b(0xbb))['to'](_0xb989fe,_0x23c09b(0xe7)),_0x3b11f6[_0x23c09b(0xb7)](),_0x3b11f6;}[_0x3a83b2(0xd5)](_0x50fd41){const _0x2b93cd=_0x3a83b2,_0x596743=this[_0x2b93cd(0xeb)],_0x323523=_0x596743[_0x2b93cd(0xc4)][_0x2b93cd(0xd3)](_0x2b93cd(0xed))[_0x2b93cd(0xb1)][_0x2b93cd(0xec)][_0x2b93cd(0xc3)];this[_0x2b93cd(0xb4)][_0x2b93cd(0xdb)](_0x50fd41),_0x323523[_0x2b93cd(0xe8)](this[_0x2b93cd(0xb4)][_0x2b93cd(0xc6)])||(_0x323523[_0x2b93cd(0xda)]([this[_0x2b93cd(0xb4)][_0x2b93cd(0xc6)],this[_0x2b93cd(0xb4)][_0x2b93cd(0xde)]],0x0),_0x596743[_0x2b93cd(0xc4)][_0x2b93cd(0xd3)](_0x2b93cd(0xd7))[_0x2b93cd(0xb8)](_0x2b93cd(0xdf),()=>{const _0x3bed92=_0x2b93cd;_0x323523[_0x3bed92(0xb2)](this[_0x3bed92(0xb4)][_0x3bed92(0xc6)]),_0x323523[_0x3bed92(0xb2)](this[_0x3bed92(0xb4)][_0x3bed92(0xde)]);}));}[_0x3a83b2(0xcf)](){const _0x5e2ab4=_0x3a83b2;this[_0x5e2ab4(0xb4)][_0x5e2ab4(0xcb)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x18ef55=_0x14d5;function _0x2879(){const _0x2dc7c8=['_getPresentableSiblingContentPartIndex','viewRangeToDom','scrollFeedToSuggestion','ai-chat-context-invalid-data','getContentParts','AI_CHAT_UNABLE_TO_START_CONVERSATION','_integrateEditor','79044cqgNbM','_getUserPresentableContentPartDocumentRange','isDisabled','addSelectionToChatContext','pending','toViewRange','baseVersion','setModel','focusPromptInput','find','uploadProgressChanged','executeCustomItemCallback','interactionFinished','interactionId','toggleLoadingSkeleton','getTransformedByOperation','path','done','toString','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','getChild','attachToDom','_getDocumentRangeForReplyChanges','setAddContextOptions','addFilesToContext','isOfficialPlugin','accepted','end','sendMessage','ai-chat-context-form-data-size-limits-exceeded','addCurrentDocumentToContext','uiId','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','toolDataReceived','lastCreated','set','parse','clearPendingContextUI','getAll','_handleUIUserMessage','fetchConversations','toggleWebSearch','ai.models.defaultModelId','AI_CHAT_CONTEXT_INVALID_DATA','ai-chat-conversation-not-found','updateFeedItemAIReplySuggestionPartState','toggleReasoning','resources','setContextItemLoading','context','AITabs','redo','documentContextContent','init','data-id','startsWith','editors','push','getRoot','aiChatBalloon','detachFromDom','state','_updateRatings','isCurrentDocumentInContext','_aiChatBalloonShowDiff','_toggleReasoning','prepareLoadingMessage','ai-chat-missing-channel-id','getFirstRange','loadSourceResources','AI_BALLOON_HEADER_TITLE','handleRemovedConversation','abortPromptStream','has','add','ai-chat-context-file-too-many-pages','_batchToChanges','setState','options','length','addContextOptionsChanged','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','2737902sVTaGK','dislike','root','TrackChangesEditing','_aiConnector','ai-chat-url-upload-failed','replyCreated','getDocumentContext','new','ai-chat-controller-mouse-over','_aiChatBalloon','hasChanges','ai.chat.initialConversation','plugins','enableControls','getAttribute','upsertAIChatRating','Liked\x20response','mouseOverSuggestion','batch','clearLoadingMessage','resetWebSearchState','listenTo','getRanges','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','sourceId','content','changeGroups','startAutoScroll','undo','mapper','populateSourceResourceBalloon','AI_CHAT_RESOURCE_LOAD_FAILED','ai-chat-conversation-init-failed','callback','createRange','AIConnector','load','resizeTabs','activateTab','2744052FyIBuj','get','resetReasoningState','selectedModel','applyOperation','interactionCreated','close','indexOf','startConversation','setConversationContext','static','setChangeGroupState','history','delegate','contextItemRemoved','main','AI_CHAT_INVALID_REQUEST','Disliked\x20response','capabilitiesUpdated','interactionDestroyed','ai-chat-invalid-request','_startConversationSafely','messageId','replyId','isPremiumPlugin','streaming','getOperations','setFeedItemRenderingStrategy','TrackChanges','AI_CHAT_ABORTED_MESSAGE','_aiChatModels','replyChangeGroupStateUpdated','updateFeedItemAIReplySuggestionContent','isCurrentDocumentInConversation','modelSelected','addSelectionToContext','lastInteraction','findIndex','closeSourceResourceBalloon','Showing\x20conversation\x20history...','updateConversationTitle','alignToTop','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','cloneNode','next','collaboration.channelId','handleUserInteraction','addFeedItemCustomElement','addFileToContext','removeContextItem','bind','ai-chat-file-upload-failed','config','resourceStateChanged','isStarted','ai-request-aborted','sendUserMessage','showDiff','_scrollToSuggestionRange','insertSuggestion','_bodyCollection','updateContent','error','showFakeVisualSelection','selection','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','AI_CHAT_CONTEXT_FILE_TOO_LARGE','requires','commands','updateFeedItemAIReplySources','_handleStartConversation','rejectSuggestion','slice','contextItemLoadingEnded','rootName','reasoningStarted','conversationInitialized','updateCapabilities','_getLastCreatedConversationId','isLoading','resetMessageInput','loadConversation','contextSent','text','ai-chat-context-unsupported-file-type','Undo','like','startInteraction','getInteractionAndReplyById','stop','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','split','setConversationTitle','_insertSuggestion','type','_showConversationHistory','current-document','includes','addFeedInteractionHeader','799582fndbYN','from','afterInit','marker','_flushLastInteractionUI','map','addFeedItemUserMessage','fetchConversation','createdAt','activeConversation','AI_CHAT_UNTITLED_CONVERSATION','removeSelectionFromContext','domConverter','sources','createPositionFromPath','getInteraction','sourceResourcesLoaded','resizedTabs','_aiChatUi','createConversation','_logError','index','partIndex','removeFromContext','getChildren','addFeedItemAIReply','addOperation','contextItemAdded','getPath','resize','isModelAvailable','_setIsMaximized','ai-chat-context-unsupported-type','updateCurrentDocumentInContext','contextItem','remove','replyContentUpdated','forEach','rejected','reasoningFinished','isDocumentOperation','node','pluginName','_removeFromContext','webSearchFinished','unshift','_updateReplyContent','change','removeSelectionFromChatContext','isInContext','getGroupId','modification','addFeedItemError','showChangeInText','indexes','view','areActionsDisabled','setSelectedModel','dialogClosed','sourcePosition','delete','outdated','webSearchStarted','ai.chat.context','addDocumentToContext','chat','hideFakeVisualSelection','$graveyard','_applyOperationsAsSuggestions','_getAIChatInteractionAPI','ready','setIsMaximized','message','contextItems','_toggleWebSearch','AIChatUI','howMany','addFeedItemAISuggestion','4033824vqxLez','AIEditing','resetConversationTitle','_rejectSuggestion','editing','finishInteraction','ai.models','updateResourceState','clearConversationContextUI','_stopLastInteraction','toggleSuggestionDisplayMode','log','95590PuveiA','isUploadInProgress','applySuggestion','getConversation','addResourceToContext','maxOffset','version','addCurrentDocumentToChatContext','ai-chat-conversation-start-failed','1226440ldkAvy','_currentPreviewedChangeGroup','disableControls','ai-chat-resource-load-failed','range','showNext','getSelectionText','anchorId','model','_applySuggestion','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','showPrevious','open','mouseLeaveSuggestion','data','ai-chat-context-file-too-large','getReply','_aiEditing','ai-no-track-changes','ai-conversation-','updateFeedItemAIReplyContent','addFeedItemStaticMessage','AIChatController','replies','ai-chat-controller-no-active-conversation','start','resourceId','ai-chat-source-resources-load-failed','locale','nextSibling','setLoadingMessage','removeFeedInteraction','createPositionAt','currentReply','children','getChildAtOffset','_openBalloonFor','filter','setIsUploadInProgress','query','addUrlToContext','AIChatBalloon','DocumentCompare','sessionId','changes','resource','selectModel','source','getDiff','previous','revert','document','createReply','70jaQMdF','AI_CHAT_GENERIC_ERROR','removed','stopInteraction','getDocumentData','_createFromRanges','_registerToolDataCallback','destroy','getConversations','addContextItem','setFeedItemAIReplySuggestionPartActive','interactionStarted','uid'];_0x2879=function(){return _0x2dc7c8;};return _0x2879();}(function(_0x1f8fca,_0x389662){const _0x2602c7=_0x14d5,_0xed13d=_0x1f8fca();while(!![]){try{const _0xbcd9d8=parseInt(_0x2602c7(0x1e5))/0x1+parseInt(_0x2602c7(0x2c2))/0x2+-parseInt(_0x2602c7(0x25f))/0x3+-parseInt(_0x2602c7(0x310))/0x4+-parseInt(_0x2602c7(0x31c))/0x5+parseInt(_0x2602c7(0x237))/0x6+-parseInt(_0x2602c7(0x1d1))/0x7*(-parseInt(_0x2602c7(0x19b))/0x8);if(_0xbcd9d8===_0x389662)break;else _0xed13d['push'](_0xed13d['shift']());}catch(_0x28779b){_0xed13d['push'](_0xed13d['shift']());}}}(_0x2879,0x80678));function _0x14d5(_0x571aa9,_0x2d03db){const _0x2879bc=_0x2879();return _0x14d5=function(_0x14d5b1,_0x1c00d4){_0x14d5b1=_0x14d5b1-0x194;let _0x18fca9=_0x2879bc[_0x14d5b1];return _0x18fca9;},_0x14d5(_0x571aa9,_0x2d03db);}import{ContextPlugin as _0x256a68,Editor as _0x2d24c9}from'ckeditor5/src/core.js';import{BodyCollection as _0x348e94}from'ckeditor5/src/ui.js';import{CKEditorError as _0x28fffa,logError as _0x2a7396,scrollViewportToShowTarget as _0xd00776,uid as _0x1c2e87}from'ckeditor5/src/utils.js';import{AIConnector as _0x2c1613}from'../aicore/aiconnector.js';import{AITabs as _0x48cd0d}from'../aitabs/aitabs.js';import{AIChatConversation as _0x2a92ed}from'./model/aichatconversation.js';import{getTranslation as _0x38b507}from'../aicore/utils/common-translations.js';import{AIModels as _0x1e0f8b}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x408387}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x411323,DATA_ID_MODEL_ATTRIBUTE as _0x2cd343}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x1e59cd,getOperationsFromReply as _0x5acd3e}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x589116,getMinimalSelection as _0x2058a7}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x76749,_DetachOperation as _0x42eab9}from'ckeditor5/src/engine.js';import{findOne as _0x4fa18a,getAttribute as _0x54996d,serialize as _0x4cddf6,Document as _0x539ee1,findByAttribute as _0x1bbf33}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x256a68{[_0x18ef55(0x1ad)];[_0x18ef55(0x23b)];[_0x18ef55(0x2d4)];[_0x18ef55(0x27d)];[_0x18ef55(0x241)];[_0x18ef55(0x231)]=new Map();[_0x18ef55(0x19c)]=null;[_0x18ef55(0x29b)];static get[_0x18ef55(0x2a2)](){return[_0x2c1613,_0x411323];}static get[_0x18ef55(0x2ec)](){const _0x4f9723=_0x18ef55;return _0x4f9723(0x1b2);}static get[_0x18ef55(0x1fe)](){return!0x0;}static get[_0x18ef55(0x277)](){return!0x0;}[_0x18ef55(0x21a)](){const _0x2ac36c=_0x18ef55;this[_0x2ac36c(0x29b)]=new _0x348e94(this[_0x2ac36c(0x216)][_0x2ac36c(0x1b8)]),this[_0x2ac36c(0x29b)][_0x2ac36c(0x1fa)](),this[_0x2ac36c(0x23b)]=this[_0x2ac36c(0x216)][_0x2ac36c(0x244)][_0x2ac36c(0x260)](_0x2ac36c(0x25b)),this[_0x2ac36c(0x2d4)]=this[_0x2ac36c(0x216)][_0x2ac36c(0x244)][_0x2ac36c(0x260)](_0x2ac36c(0x30d)),this[_0x2ac36c(0x1ad)]=this[_0x2ac36c(0x216)][_0x2ac36c(0x244)][_0x2ac36c(0x260)](_0x2ac36c(0x311)),this[_0x2ac36c(0x27d)]=new _0x1e0f8b({'connector':this[_0x2ac36c(0x23b)],'config':this[_0x2ac36c(0x216)][_0x2ac36c(0x293)][_0x2ac36c(0x260)](_0x2ac36c(0x316)),'locale':this[_0x2ac36c(0x216)][_0x2ac36c(0x1b8)]});const _0x2e1f4a=this[_0x2ac36c(0x216)][_0x2ac36c(0x244)][_0x2ac36c(0x260)](_0x2ac36c(0x217));this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x267),()=>{const _0x12c600=_0x2ac36c;this[_0x12c600(0x274)]();}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x297),(_0x20c85b,_0x53d6c3)=>{const _0x5d3986=_0x2ac36c;this[_0x5d3986(0x20c)]({'userMessage':_0x53d6c3});}),this[_0x2ac36c(0x24d)](_0x2e1f4a,_0x2ac36c(0x2d3),(_0x269d71,_0xc41da1)=>{const _0x13b36b=_0x2ac36c;this[_0x13b36b(0x2e1)](_0xc41da1);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x25d),()=>{const _0x1fde59=_0x2ac36c;_0x2e1f4a[_0x1fde59(0x2df)]();}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x22d),async()=>{const _0x2e7e74=_0x2ac36c;await this[_0x2e7e74(0x319)](),await this[_0x2e7e74(0x2c6)](),this[_0x2e7e74(0x2f2)]();}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x302),()=>{const _0x4e8cc8=_0x2ac36c;this[_0x4e8cc8(0x199)]();}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x28f),(_0x151ca7,_0x1f0499)=>{const _0x3ce319=_0x2ac36c;this[_0x3ce319(0x2cb)]?.[_0x3ce319(0x1fd)](Array[_0x3ce319(0x2c3)](_0x1f0499));}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x1c4),(_0x5553dd,_0x4b0a5c)=>{const _0x40a26d=_0x2ac36c;this[_0x40a26d(0x2cb)]?.[_0x40a26d(0x1c4)](_0x4b0a5c);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x1f0),(_0x1bf19c,_0xa9d1c1)=>{const _0x2fad0b=_0x2ac36c;_0xa9d1c1[_0x2fad0b(0x259)](this[_0x2fad0b(0x216)]);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x196),(_0x3fe7c5,_0x7bf12a)=>{const _0x1e9064=_0x2ac36c;this[_0x1e9064(0x2cb)]?.[_0x1e9064(0x196)](_0x7bf12a[_0x1e9064(0x1cb)],_0x7bf12a[_0x1e9064(0x1c9)]);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x290),(_0x1987d3,_0x31d388)=>{const _0x2da628=_0x2ac36c;this[_0x2da628(0x2ed)](_0x31d388);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x22a),(_0x224d0c,_0xfda8fd)=>{const _0x3c5fbe=_0x2ac36c;this[_0x3c5fbe(0x2cb)]?.[_0x3c5fbe(0x22a)](_0xfda8fd[_0x3c5fbe(0x250)],_0xfda8fd[_0x3c5fbe(0x1c3)],_0xfda8fd[_0x3c5fbe(0x1dd)]);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x20e),()=>{const _0x11f0f1=_0x2ac36c;this[_0x11f0f1(0x30c)]();}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x213),()=>{const _0x5e7344=_0x2ac36c;this[_0x5e7344(0x226)]();}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x1ca),(_0x209034,_0x50c6dc)=>{const _0x18444d=_0x2ac36c;this[_0x18444d(0x2cb)]?.[_0x18444d(0x1ec)](_0x50c6dc);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x2b5),(_0x51a2e9,{replyId:_0x54ada0})=>{const _0x5cbd5c=_0x2ac36c;console[_0x5cbd5c(0x31b)](_0x5cbd5c(0x248),_0x54ada0);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x238),(_0xbf44a0,{replyId:_0x3f4c6b})=>{const _0x548297=_0x2ac36c;console[_0x548297(0x31b)](_0x548297(0x270),_0x3f4c6b);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x29a),(_0x59596d,_0x3db8a1)=>{const _0x22ae2b=_0x2ac36c;this[_0x22ae2b(0x2bc)](_0x3db8a1);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x2f7),(_0x11ef6d,{replyId:_0x1ad650,partIndex:_0x35f6c8})=>{const _0x3eeb1e=_0x2ac36c;this[_0x3eeb1e(0x225)]=this[_0x3eeb1e(0x2d4)][_0x3eeb1e(0x298)],this[_0x3eeb1e(0x1c0)](_0x1ad650,_0x35f6c8);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x249),(_0x6efafb,{replyId:_0x28b625,partIndex:_0x124d49})=>{const _0x2a26d0=_0x2ac36c,_0x1cd0f4=this[_0x2a26d0(0x1fb)](_0x28b625,_0x124d49);_0x1cd0f4&&_0x2a26d0(0x305)!=_0x1cd0f4[_0x2a26d0(0x19f)][_0x2a26d0(0x239)][_0x2a26d0(0x2a9)]&&this[_0x2a26d0(0x1ad)][_0x2a26d0(0x29e)]([_0x1cd0f4[_0x2a26d0(0x19f)]],_0x2a26d0(0x240));}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x1a9),()=>{const _0x3e190a=_0x2ac36c;this[_0x3e190a(0x1ad)][_0x3e190a(0x304)](_0x3e190a(0x240));}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x194),(_0x4f9819,_0x1e0016)=>{const _0x25bf2f=_0x2ac36c;this[_0x25bf2f(0x1ad)][_0x25bf2f(0x304)](_0x25bf2f(0x240)),this[_0x25bf2f(0x1a4)](_0x1e0016);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x31a),async(_0x16296b,{replyId:_0x2a4cc3,showDiff:_0x28a6db})=>{const _0x2f6336=_0x2ac36c,{reply:_0x380ff4}=this[_0x2f6336(0x2b7)](_0x2a4cc3),_0xde7c67=_0x380ff4[_0x2f6336(0x1e2)]({'showDiff':_0x28a6db});await this[_0x2f6336(0x2d4)][_0x2f6336(0x27f)]({'id':_0x380ff4['id'],'parts':_0xde7c67,'renderingStrategy':_0x2f6336(0x269)});}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x2a6),(_0x59b72a,{replyId:_0x2c072b,partIndex:_0x4b6731})=>{const _0x58f983=_0x2ac36c;this[_0x58f983(0x313)]({'replyId':_0x2c072b,'partIndex':_0x4b6731}),this[_0x58f983(0x1ad)][_0x58f983(0x304)](_0x58f983(0x240));}),this[_0x2ac36c(0x216)][_0x2ac36c(0x244)][_0x2ac36c(0x22e)](_0x2ac36c(0x1c5))&&(this[_0x2ac36c(0x241)]=this[_0x2ac36c(0x216)][_0x2ac36c(0x244)][_0x2ac36c(0x260)](_0x2ac36c(0x1c5)),this[_0x2ac36c(0x208)](_0x2ac36c(0x225),!0x1),this[_0x2ac36c(0x241)][_0x2ac36c(0x291)](_0x2ac36c(0x298))['to'](this,_0x2ac36c(0x225)),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x241)],_0x2ac36c(0x31a),()=>{const _0x8378fc=_0x2ac36c,{replyId:_0x2c62db,partIndex:_0xb63fa7}=this[_0x8378fc(0x19c)];this[_0x8378fc(0x225)]=!this[_0x8378fc(0x225)];const {reply:_0xb16380}=this[_0x8378fc(0x2b7)](_0x2c62db),_0x1f22d2=_0xb16380[_0x8378fc(0x1e2)]({'showDiff':this[_0x8378fc(0x225)],'groupIndex':_0xb63fa7});this[_0x8378fc(0x241)][_0x8378fc(0x29c)]({'part':_0x1f22d2[0x0],'renderingStrategy':_0x8378fc(0x269),'keepErrors':!0x0});}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x241)],_0x2ac36c(0x194),()=>{const _0x5cc11b=_0x2ac36c,{replyId:_0x2e8f85,partIndex:_0x247dfb}=this[_0x5cc11b(0x19c)];this[_0x5cc11b(0x1a4)]({'replyId':_0x2e8f85,'partIndex':_0x247dfb}),this[_0x5cc11b(0x241)][_0x5cc11b(0x232)](_0x5cc11b(0x1ff));}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x241)],_0x2ac36c(0x29a),()=>{const _0x5452a4=_0x2ac36c,{replyId:_0x57a1ef,partIndex:_0x3282ea}=this[_0x5452a4(0x19c)];this[_0x5452a4(0x2bc)]({'replyId':_0x57a1ef,'partIndex':_0x3282ea}),this[_0x5452a4(0x241)][_0x5452a4(0x232)](_0x5452a4(0x1ff));}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x241)],_0x2ac36c(0x2a6),()=>{const _0x28d6ef=_0x2ac36c,{replyId:_0xf9b62f,partIndex:_0x5d1226}=this[_0x28d6ef(0x19c)];this[_0x28d6ef(0x313)]({'replyId':_0xf9b62f,'partIndex':_0x5d1226}),this[_0x28d6ef(0x241)][_0x28d6ef(0x232)](_0x28d6ef(0x2e8));}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x241)],_0x2ac36c(0x1a0),()=>{const _0x260b85=_0x2ac36c,{replyId:_0x32d919,partIndex:_0x1919ee}=this[_0x260b85(0x19c)],_0x45ece5=this[_0x260b85(0x1de)](_0x32d919,_0x1919ee,_0x260b85(0x28b));null!==_0x45ece5&&this[_0x260b85(0x1c0)](_0x32d919,_0x45ece5);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x241)],_0x2ac36c(0x1a7),()=>{const _0x3807d8=_0x2ac36c,{replyId:_0x1135dc,partIndex:_0x5afae3}=this[_0x3807d8(0x19c)],_0x484f71=this[_0x3807d8(0x1de)](_0x1135dc,_0x5afae3,_0x3807d8(0x1cd));null!==_0x484f71&&this[_0x3807d8(0x1c0)](_0x1135dc,_0x484f71);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x241)],_0x2ac36c(0x2fc),(_0x172360,{id:_0xd582ac})=>{const _0x3ed964=_0x2ac36c;if(_0x3ed964(0x220)!==_0xd582ac)return;const {replyId:_0x184707,partIndex:_0x119c59}=this[_0x3ed964(0x19c)];this[_0x3ed964(0x19c)]=null,this[_0x3ed964(0x2d4)][_0x3ed964(0x1db)]({'id':_0x184707,'index':_0x119c59,'isActive':!0x1});}));}async[_0x18ef55(0x2c4)](){const _0x3ea5b7=_0x18ef55;this[_0x3ea5b7(0x216)]instanceof _0x2d24c9?this[_0x3ea5b7(0x1e4)](this[_0x3ea5b7(0x216)]):this[_0x3ea5b7(0x24d)](this[_0x3ea5b7(0x216)][_0x3ea5b7(0x21d)],_0x3ea5b7(0x22f),(_0x3c81ec,_0x14a999)=>{const _0x275293=_0x3ea5b7;_0x14a999['on'](_0x275293(0x308),()=>{const _0x5a16ad=_0x275293;this[_0x5a16ad(0x1e4)](_0x14a999);});});const _0x4e1c78=this[_0x3ea5b7(0x216)][_0x3ea5b7(0x293)][_0x3ea5b7(0x260)](_0x3ea5b7(0x243));let _0x54193e=_0x4e1c78;if(_0x3ea5b7(0x207)!=_0x4e1c78||(_0x54193e=await this[_0x3ea5b7(0x2ad)](),_0x54193e))return _0x3ea5b7(0x23f)==_0x54193e?this[_0x3ea5b7(0x274)]():this[_0x3ea5b7(0x2b0)](_0x54193e);}async[_0x18ef55(0x1d8)](){const _0x3cf827=_0x18ef55;return await this[_0x3cf827(0x319)](),this[_0x3cf827(0x29b)][_0x3cf827(0x221)](),super[_0x3cf827(0x1d8)]();}[_0x18ef55(0x2bc)](_0x571a83){const _0x414007=_0x18ef55,_0x451e29=_0x408387(this[_0x414007(0x216)]);if(!_0x451e29[_0x414007(0x244)][_0x414007(0x22e)](_0x414007(0x27b)))throw new _0x28fffa(_0x414007(0x1ae),null);const _0x26e3e2=this[_0x414007(0x216)][_0x414007(0x244)][_0x414007(0x260)](_0x414007(0x1c6)),{reply:_0x57bfd8,interaction:_0x17901a}=this[_0x414007(0x2b7)](_0x571a83[_0x414007(0x276)]),_0x1ac8cc=this[_0x414007(0x1fb)](_0x571a83[_0x414007(0x276)],_0x571a83[_0x414007(0x2d8)]),_0x2c438f=void 0x0!==_0x571a83[_0x414007(0x2d8)]?[_0x57bfd8[_0x414007(0x252)][_0x571a83[_0x414007(0x2d8)]]]:_0x57bfd8[_0x414007(0x252)][_0x414007(0x1c1)](_0x5c05a0=>_0x414007(0x1e9)==_0x5c05a0[_0x414007(0x222)]),_0x5b4e7b=_0x2c438f[_0x414007(0x2c7)](_0x47bc53=>_0x57bfd8[_0x414007(0x252)][_0x414007(0x266)](_0x47bc53));if(!_0x1ac8cc||_0x414007(0x305)==_0x1ac8cc[_0x414007(0x19f)][_0x414007(0x239)][_0x414007(0x2a9)])return void _0x5b4e7b[_0x414007(0x2e7)](_0x3c8c15=>_0x57bfd8[_0x414007(0x26a)](_0x3c8c15,_0x414007(0x2ff)));_0x5b4e7b[_0x414007(0x2e7)](_0x593f33=>_0x57bfd8[_0x414007(0x26a)](_0x593f33,_0x414007(0x1ff)));const _0x2c19dc=_0x5acd3e({'editor':_0x451e29,'reply':_0x57bfd8,'interaction':_0x17901a,'groups':_0x2c438f,'transform':!0x0,'documentCompare':_0x26e3e2,'documentCompareOptions':{'anchor':_0x414007(0x26e),'markDeletions':!0x0}});let _0x11b91c;_0x1ac8cc&&this[_0x414007(0x299)](_0x1ac8cc[_0x414007(0x19f)]),_0x451e29[_0x414007(0x1a3)][_0x414007(0x2f1)](_0x1be441=>{const _0x165614=_0x414007;_0x11b91c=_0x1be441[_0x165614(0x24a)],_0x451e29[_0x165614(0x244)][_0x165614(0x260)](_0x165614(0x23a))[_0x165614(0x306)](_0x2c19dc),this[_0x165614(0x1ad)][_0x165614(0x304)](_0x165614(0x240));}),this[_0x414007(0x231)][_0x414007(0x208)](_0x11b91c,{'interactionId':_0x17901a['id'],'replyId':_0x57bfd8['id'],'indexes':_0x5b4e7b[_0x414007(0x2a7)]()}),this[_0x414007(0x223)](_0x57bfd8);}[_0x18ef55(0x1a4)](_0x15f928){const _0x44918e=_0x18ef55,_0x827d40=_0x408387(this[_0x44918e(0x216)]),_0x895692=this[_0x44918e(0x216)][_0x44918e(0x244)][_0x44918e(0x260)](_0x411323),{reply:_0x24f2b1,interaction:_0x46ecc2}=this[_0x44918e(0x2b7)](_0x15f928[_0x44918e(0x276)]),_0x560fcf=this[_0x44918e(0x1fb)](_0x15f928[_0x44918e(0x276)],_0x15f928[_0x44918e(0x2d8)]),_0x23da6f=void 0x0!==_0x15f928[_0x44918e(0x2d8)]?[_0x24f2b1[_0x44918e(0x252)][_0x15f928[_0x44918e(0x2d8)]]]:_0x24f2b1[_0x44918e(0x252)][_0x44918e(0x1c1)](_0x5ae47c=>_0x44918e(0x1e9)==_0x5ae47c[_0x44918e(0x222)]),_0x5a4868=_0x23da6f[_0x44918e(0x2c7)](_0x2d897d=>_0x24f2b1[_0x44918e(0x252)][_0x44918e(0x266)](_0x2d897d));if(!_0x560fcf||_0x44918e(0x305)==_0x560fcf[_0x44918e(0x19f)][_0x44918e(0x239)][_0x44918e(0x2a9)])return void _0x5a4868[_0x44918e(0x2e7)](_0x44b13a=>_0x24f2b1[_0x44918e(0x26a)](_0x44b13a,_0x44918e(0x2ff)));_0x5a4868[_0x44918e(0x2e7)](_0x3386f4=>_0x24f2b1[_0x44918e(0x26a)](_0x3386f4,_0x44918e(0x1ff)));const _0x4ff22d=_0x5acd3e({'editor':_0x827d40,'reply':_0x24f2b1,'interaction':_0x46ecc2,'groups':_0x23da6f,'transform':!0x0,'documentCompare':_0x895692,'documentCompareOptions':{'anchor':_0x44918e(0x26e),'markDeletions':!0x1}});let _0x51baa2;_0x560fcf&&this[_0x44918e(0x299)](_0x560fcf[_0x44918e(0x19f)]),_0x827d40[_0x44918e(0x1a3)][_0x44918e(0x2f1)](_0xfdb1ee=>{const _0x26f228=_0x44918e;_0x51baa2=_0xfdb1ee[_0x26f228(0x24a)];for(const _0x28c5cf of _0x4ff22d)_0x28c5cf[_0x26f228(0x1eb)]=_0x827d40[_0x26f228(0x1a3)][_0x26f228(0x1cf)][_0x26f228(0x198)],_0x1e59cd(_0x827d40,_0x28c5cf),_0xfdb1ee[_0x26f228(0x24a)][_0x26f228(0x2dc)](_0x28c5cf),_0x827d40[_0x26f228(0x1a3)][_0x26f228(0x263)](_0x28c5cf);}),this[_0x44918e(0x231)][_0x44918e(0x208)](_0x51baa2,{'interactionId':_0x46ecc2['id'],'replyId':_0x24f2b1['id'],'indexes':_0x5a4868[_0x44918e(0x2a7)]()}),this[_0x44918e(0x223)](_0x24f2b1);}[_0x18ef55(0x313)](_0x42b72e){const _0x417182=_0x18ef55,{reply:_0x23a142}=this[_0x417182(0x2b7)](_0x42b72e[_0x417182(0x276)]);_0x23a142[_0x417182(0x26a)](_0x42b72e[_0x417182(0x2d8)],_0x417182(0x2e8));}[_0x18ef55(0x1c0)](_0x70d1eb,_0xd63097){const _0x20962e=_0x18ef55;if(!this[_0x20962e(0x241)])return;const {reply:_0x543377}=this[_0x20962e(0x2b7)](_0x70d1eb),_0x3ec21d=_0x543377[_0x20962e(0x1e2)]({'showDiff':this[_0x20962e(0x225)]});let _0x203b02,_0x19a601;if(void 0x0!==_0xd63097?(_0x19a601=_0x3ec21d[_0x20962e(0x1ee)](_0x5ad099=>_0x5ad099[_0x20962e(0x2d7)]==_0xd63097),_0x203b02=_0x19a601?.[_0x20962e(0x2d7)]):(_0x19a601=_0x3ec21d[0x0],_0x203b02=_0x19a601[_0x20962e(0x2d7)]),this[_0x20962e(0x19c)]?.[_0x20962e(0x276)]==_0x70d1eb&&this[_0x20962e(0x19c)]?.[_0x20962e(0x2d8)]==_0x203b02)return;const _0x2bbf61=this[_0x20962e(0x1e6)](_0x70d1eb,_0x543377,_0x19a601);if(!_0x2bbf61)return void this[_0x20962e(0x241)][_0x20962e(0x265)]();this[_0x20962e(0x19c)]={'replyId':_0x70d1eb,'partIndex':_0x203b02},this[_0x20962e(0x299)](_0x2bbf61,!0x0);const _0x5dccad=this[_0x20962e(0x1de)](_0x70d1eb,_0x203b02,_0x20962e(0x28b));this[_0x20962e(0x241)][_0x20962e(0x29c)]({'part':_0x19a601,'renderingStrategy':_0x20962e(0x269)}),this[_0x20962e(0x241)][_0x20962e(0x1a8)]({'index':_0x203b02,'title':_0x38b507(this[_0x20962e(0x216)][_0x20962e(0x1b8)],_0x20962e(0x22b),(_0x203b02+0x1)[_0x20962e(0x1f7)]()),'showRotator':null!==_0x5dccad,'ranges':[_0x2bbf61],'areActionsDisabled':_0x543377[_0x20962e(0x2fa)]}),this[_0x20962e(0x241)][_0x20962e(0x232)](_0x20962e(0x1e9)),this[_0x20962e(0x2d4)][_0x20962e(0x1e0)](_0x70d1eb,_0x203b02),this[_0x20962e(0x2d4)][_0x20962e(0x1db)]({'id':_0x70d1eb,'index':_0x203b02,'isActive':!0x0});}[_0x18ef55(0x1de)](_0x2d1fd5,_0x116eec,_0x15c2bf){const _0x5f4196=_0x18ef55,{reply:_0x23e2fb}=this[_0x5f4196(0x2b7)](_0x2d1fd5),_0x58cdb2=_0x23e2fb[_0x5f4196(0x1e2)]({'showDiff':this[_0x5f4196(0x225)]});if(0x1==_0x58cdb2[_0x5f4196(0x234)])return null;const _0x5ddb81=_0x58cdb2[_0x5f4196(0x284)](_0x3206e0=>_0x3206e0[_0x5f4196(0x2d7)]==_0x116eec),_0x1ca8f5=_0x5f4196(0x28b)==_0x15c2bf?0x1:-0x1;let _0x2d7eee=_0x58cdb2['at']((_0x5ddb81+_0x1ca8f5)%_0x58cdb2[_0x5f4196(0x234)])[_0x5f4196(0x2d7)],_0x2ee1b6=_0x58cdb2[_0x2d7eee];for(;!this[_0x5f4196(0x1e6)](_0x2d1fd5,_0x23e2fb,_0x2ee1b6);){if(_0x2d7eee=_0x58cdb2['at']((_0x2d7eee+_0x1ca8f5)%_0x58cdb2[_0x5f4196(0x234)])[_0x5f4196(0x2d7)],_0x2d7eee===_0x5ddb81)return null;_0x2ee1b6=_0x58cdb2[_0x2d7eee];}return _0x2d7eee;}[_0x18ef55(0x1e6)](_0xcb5ef0,_0x56ebd8,_0x171103){const _0x1506ac=_0x18ef55,_0x4c90e0=_0x56ebd8[_0x1506ac(0x252)];if(!_0x171103[_0x1506ac(0x242)])return null;const _0x585ed2=_0x4c90e0[_0x1506ac(0x1ee)](_0x48d54e=>_0x48d54e[_0x1506ac(0x2d7)]==_0x171103[_0x1506ac(0x2d7)]);if(_0x1506ac(0x1e9)!==_0x585ed2?.[_0x1506ac(0x222)])return null;const _0x4b64d9=this[_0x1506ac(0x1fb)](_0xcb5ef0,_0x171103[_0x1506ac(0x2d7)]);if(!_0x4b64d9)return null;const {range:_0x2db0c6,currentIndex:_0x2b3caa}=_0x4b64d9;return _0x1506ac(0x305)==_0x2db0c6[_0x1506ac(0x239)][_0x1506ac(0x2a9)]?(_0x56ebd8[_0x1506ac(0x26a)](_0x2b3caa,_0x1506ac(0x2ff)),null):_0x4b64d9[_0x1506ac(0x19f)];}[_0x18ef55(0x1fb)](_0x3f035f,_0x193292){const _0x50586c=_0x18ef55,_0x427c83=_0x408387(this[_0x50586c(0x216)]),{reply:_0x1be22d,interaction:_0x19babd}=this[_0x50586c(0x2b7)](_0x3f035f),_0x427d38=_0x1be22d[_0x50586c(0x252)][_0x50586c(0x1c1)](_0xf33cb3=>_0x50586c(0x1e9)==_0xf33cb3[_0x50586c(0x222)]),_0x190436=_0x427d38[_0x50586c(0x2c7)](_0xb69754=>_0x1be22d[_0x50586c(0x252)][_0x50586c(0x266)](_0xb69754));void 0x0===_0x193292&&(_0x193292=_0x190436[0x0]);const _0x407fae=_0x190436[_0x50586c(0x266)](_0x193292);if(-0x1==_0x407fae)return null;const _0x408ca3=_0x427d38[_0x407fae],_0x563b25=new _0x539ee1([]),_0x40a677=new _0x539ee1([]);for(const _0x378925 of _0x408ca3[_0x50586c(0x1c8)])if(_0x50586c(0x1d3)!=_0x378925[_0x50586c(0x2bd)]&&_0x40a677[_0x50586c(0x1be)][_0x50586c(0x21e)](_0x378925[_0x50586c(0x2eb)][_0x50586c(0x28a)](!0x0)),_0x50586c(0x23f)!=_0x378925[_0x50586c(0x2bd)]){const _0x52f504=_0x4fa18a(_0x2d76eb=>_0x54996d(_0x2d76eb,_0x50586c(0x21b))==_0x378925['id'],_0x1be22d[_0x50586c(0x219)],!0x0);_0x563b25[_0x50586c(0x1be)][_0x50586c(0x21e)](_0x52f504[_0x50586c(0x28a)](!0x0));}if(0x0==_0x563b25[_0x50586c(0x1be)][_0x50586c(0x234)]){if(_0x408ca3[_0x50586c(0x1c8)][0x0][_0x50586c(0x1a2)]){const _0x25908c=_0x1bbf33(_0x50586c(0x21b),_0x408ca3[_0x50586c(0x1c8)][0x0][_0x50586c(0x1a2)],_0x1be22d[_0x50586c(0x219)]);_0x563b25[_0x50586c(0x1be)][_0x50586c(0x2ef)](_0x25908c[_0x50586c(0x28a)](!0x0)),_0x40a677[_0x50586c(0x1be)][_0x50586c(0x2ef)](_0x25908c[_0x50586c(0x28a)](!0x0)),_0x25908c[_0x50586c(0x1b9)]&&(_0x563b25[_0x50586c(0x1be)][_0x50586c(0x21e)](_0x25908c[_0x50586c(0x1b9)][_0x50586c(0x28a)](!0x0)),_0x40a677[_0x50586c(0x1be)][_0x50586c(0x21e)](_0x25908c[_0x50586c(0x1b9)][_0x50586c(0x28a)](!0x0)));}else{const _0x2a37d4=_0x1be22d[_0x50586c(0x219)][_0x50586c(0x1be)][0x0];if(!_0x2a37d4)return null;_0x563b25[_0x50586c(0x1be)][_0x50586c(0x21e)](_0x2a37d4[_0x50586c(0x28a)](!0x0)),_0x40a677[_0x50586c(0x1be)][_0x50586c(0x21e)](_0x2a37d4[_0x50586c(0x28a)](!0x0));}}const _0x2baa93=_0x19babd[_0x50586c(0x23e)](),_0x493610=_0x427c83[_0x50586c(0x1aa)][_0x50586c(0x209)](_0x2baa93[_0x50586c(0x251)]),_0x4f5b41=_0x4cddf6(_0x563b25),_0x5af1f0=_0x427c83[_0x50586c(0x1aa)][_0x50586c(0x209)](_0x4f5b41),_0x599ae2=_0x427c83[_0x50586c(0x1aa)][_0x50586c(0x209)](_0x4f5b41),_0x4d1d02=_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x1bc)](_0x5af1f0,0x0),_0x3ac7b5=_0x4cddf6(_0x40a677),_0x3fcd1e={'anchor':_0x4d1d02,'markDeletions':!0x1},_0x52396d=_0x427c83[_0x50586c(0x244)][_0x50586c(0x260)](_0x411323)[_0x50586c(0x1cc)](_0x4f5b41,_0x3ac7b5,_0x3fcd1e)[_0x50586c(0x279)]();if(!_0x52396d[_0x50586c(0x234)])return null;_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x2f1)](_0x26cd94=>{const _0x41f768=_0x50586c;for(const _0x5e5a8e of _0x52396d)if(_0x41f768(0x2e5)==_0x5e5a8e[_0x41f768(0x2bd)]){const _0xf0a3cc=_0x5e5a8e[_0x41f768(0x2fd)],_0x419f1f=_0x5e5a8e[_0x41f768(0x30e)],_0x489fe4=new _0x42eab9(_0xf0a3cc,_0x419f1f);_0x26cd94[_0x41f768(0x24a)][_0x41f768(0x2dc)](_0x489fe4),_0x427c83[_0x41f768(0x1a3)][_0x41f768(0x263)](_0x489fe4);}else _0x41f768(0x2c5)!==_0x5e5a8e[_0x41f768(0x2bd)]&&(_0x5e5a8e[_0x41f768(0x1eb)]=null,_0x5e5a8e[_0x41f768(0x2ea)]=!0x1,_0x26cd94[_0x41f768(0x24a)][_0x41f768(0x2dc)](_0x5e5a8e),_0x427c83[_0x41f768(0x1a3)][_0x41f768(0x263)](_0x5e5a8e));});const _0x35a3ce=_0x2058a7(_0x427c83,_0x52396d,_0x5af1f0);_0x589116(_0x427c83[_0x50586c(0x1a3)],_0x35a3ce);const _0x9023ca=_0x35a3ce[_0x50586c(0x229)]()[_0x50586c(0x1b5)][_0x50586c(0x1f5)][_0x50586c(0x2a7)](),_0x362941=_0x35a3ce[_0x50586c(0x229)]()[_0x50586c(0x200)][_0x50586c(0x1f5)][_0x50586c(0x2a7)](),_0x27ad07=[];let _0x15bcdf=_0x5af1f0,_0x1a1eaa=_0x599ae2;for(let _0x40f9b8=0x0;_0x40f9b8<_0x362941[_0x50586c(0x234)];_0x40f9b8++){const _0x109ed2=_0x15bcdf[_0x50586c(0x197)]-_0x362941[_0x40f9b8];_0x27ad07[_0x40f9b8]=_0x1a1eaa[_0x50586c(0x197)]-_0x109ed2,_0x15bcdf=_0x15bcdf[_0x50586c(0x1bf)](_0x362941[_0x40f9b8]),_0x1a1eaa=_0x1a1eaa[_0x50586c(0x1bf)](_0x27ad07[_0x40f9b8]);}const _0x27072d=_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x25a)](_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x2d0)](_0x599ae2,_0x9023ca),_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x2d0)](_0x599ae2,_0x27ad07)),_0xd05134=_0x599ae2[_0x50586c(0x1f9)](0x0)[_0x50586c(0x246)](_0x2cd343),_0x212709=Array[_0x50586c(0x2c3)](_0x493610[_0x50586c(0x2da)]())[_0x50586c(0x1ee)](_0x7617de=>_0x7617de[_0x50586c(0x246)](_0x2cd343)==_0xd05134)[_0x50586c(0x2de)](),_0x5791e3=_0x27072d[_0x50586c(0x1b5)][_0x50586c(0x1f5)][_0x50586c(0x2a7)](),_0x5000e7=_0x27072d[_0x50586c(0x200)][_0x50586c(0x1f5)][_0x50586c(0x2a7)]();_0x5791e3[0x0]=_0x212709[0x0]+_0x5791e3[0x0],_0x5000e7[0x0]=_0x212709[0x0]+_0x5000e7[0x0];let _0x224dfc=_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x25a)](_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x2d0)](_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x1cf)][_0x50586c(0x21f)](),_0x5791e3),_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x2d0)](_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x1cf)][_0x50586c(0x21f)](),_0x5000e7));const _0xe34253=_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x1cf)][_0x50586c(0x26b)][_0x50586c(0x279)](_0x2baa93[_0x50586c(0x198)]);for(const _0x401758 of _0xe34253)_0x224dfc=_0x76749[_0x50586c(0x1d6)](_0x224dfc[_0x50586c(0x1f4)](_0x401758));return{'range':_0x224dfc,'currentIndex':_0x193292};}[_0x18ef55(0x1e4)](_0x3a2db9){const _0x1f585=_0x18ef55;if(!_0x3a2db9[_0x1f585(0x244)][_0x1f585(0x22e)](_0x1f585(0x2b4)))return;const _0x3458e7=_0x3a2db9[_0x1f585(0x2a3)][_0x1f585(0x260)](_0x1f585(0x254)),_0x59222a=_0x3a2db9[_0x1f585(0x2a3)][_0x1f585(0x260)](_0x1f585(0x218));this[_0x1f585(0x24d)](_0x3458e7,_0x1f585(0x1ce),(_0x2c18b3,_0x28e29b,_0x16fb2a)=>{const _0x14f564=_0x1f585,_0x50a92a=this[_0x14f564(0x231)][_0x14f564(0x260)](_0x28e29b);if(!_0x50a92a)return;const _0x3ed7f7=this[_0x14f564(0x2cb)][_0x14f564(0x2d1)](_0x50a92a[_0x14f564(0x1f2)])[_0x14f564(0x1ac)](_0x50a92a[_0x14f564(0x276)]);_0x50a92a[_0x14f564(0x2f8)][_0x14f564(0x2e7)](_0x2d4724=>_0x3ed7f7[_0x14f564(0x26a)](_0x2d4724,_0x14f564(0x1e9))),this[_0x14f564(0x231)][_0x14f564(0x2fe)](_0x28e29b),this[_0x14f564(0x231)][_0x14f564(0x208)](_0x16fb2a,_0x50a92a);}),this[_0x1f585(0x24d)](_0x59222a,_0x1f585(0x1ce),(_0x264502,_0x4579a7,_0x401e21)=>{const _0x3150f7=_0x1f585,_0x557118=this[_0x3150f7(0x231)][_0x3150f7(0x260)](_0x4579a7);if(!_0x557118)return;const _0x42d412=this[_0x3150f7(0x2cb)][_0x3150f7(0x2d1)](_0x557118[_0x3150f7(0x1f2)])[_0x3150f7(0x1ac)](_0x557118[_0x3150f7(0x276)]);_0x557118[_0x3150f7(0x2f8)][_0x3150f7(0x2e7)](_0x565b17=>_0x42d412[_0x3150f7(0x26a)](_0x565b17,_0x3150f7(0x1ff))),this[_0x3150f7(0x231)][_0x3150f7(0x2fe)](_0x4579a7),this[_0x3150f7(0x231)][_0x3150f7(0x208)](_0x401e21,_0x557118);});}async[_0x18ef55(0x2b0)](_0x491482){const _0x2c95b2=_0x18ef55;this[_0x2c95b2(0x216)][_0x2c95b2(0x244)][_0x2c95b2(0x22e)](_0x2c95b2(0x1c5))&&this[_0x2c95b2(0x216)][_0x2c95b2(0x244)][_0x2c95b2(0x260)](_0x2c95b2(0x1c5))[_0x2c95b2(0x265)](),(this[_0x2c95b2(0x216)][_0x2c95b2(0x244)][_0x2c95b2(0x260)](_0x48cd0d)[_0x2c95b2(0x2f9)][_0x2c95b2(0x25e)](_0x2c95b2(0x303)),this[_0x2c95b2(0x2d4)][_0x2c95b2(0x27a)](_0x2c95b2(0x269)),this[_0x2c95b2(0x2d4)][_0x2c95b2(0x1f3)](!0x0),await this[_0x2c95b2(0x319)]());try{await this[_0x2c95b2(0x23b)][_0x2c95b2(0x2c9)](_0x491482)[_0x2c95b2(0x195)](),await this[_0x2c95b2(0x274)](_0x491482),this[_0x2c95b2(0x287)]('\x20'),await this[_0x2c95b2(0x2cb)][_0x2c95b2(0x25c)](_0x491482,this[_0x2c95b2(0x1ad)][_0x2c95b2(0x1c7)]),this[_0x2c95b2(0x2cb)][_0x2c95b2(0x280)]()&&this[_0x2c95b2(0x199)]();}catch(_0x185e0f){this[_0x2c95b2(0x2d4)][_0x2c95b2(0x2f6)]({'errorMessage':_0x38b507(this[_0x2c95b2(0x216)][_0x2c95b2(0x1b8)],_0x2c95b2(0x236)),'id':_0x491482}),this[_0x2c95b2(0x2d6)](new _0x28fffa(_0x2c95b2(0x211),this,{'error':_0x185e0f}));}finally{this[_0x2c95b2(0x2d4)][_0x2c95b2(0x253)](),this[_0x2c95b2(0x2d4)][_0x2c95b2(0x27a)](_0x2c95b2(0x278)),this[_0x2c95b2(0x2d4)][_0x2c95b2(0x1f3)](!0x1);}}async[_0x18ef55(0x2ad)](){const _0xb78562=_0x18ef55,_0x1e1d84=this[_0xb78562(0x23b)][_0xb78562(0x20d)](this[_0xb78562(0x2f4)](),{'limit':0x1,'sortBy':_0xb78562(0x2ca)});try{const _0x1f5250=await _0x1e1d84[_0xb78562(0x1d9)]();return _0x1f5250[_0xb78562(0x234)]?_0x1f5250[0x0]['id']:_0xb78562(0x23f);}catch(_0x5622ac){return this[_0xb78562(0x2d4)][_0xb78562(0x2f6)]({'errorMessage':_0x38b507(this[_0xb78562(0x216)][_0xb78562(0x1b8)],_0xb78562(0x236)),'id':_0x1c2e87()}),this[_0xb78562(0x2d6)](new _0x28fffa(_0xb78562(0x258),this,{'error':_0x5622ac})),this[_0xb78562(0x2d4)][_0xb78562(0x1f3)](!0x1),this[_0xb78562(0x2d4)][_0xb78562(0x19d)](),null;}}[_0x18ef55(0x22c)](_0x5768c2){const _0x2c3ae5=_0x18ef55;this[_0x2c3ae5(0x2cb)]['id']===_0x5768c2&&this[_0x2c3ae5(0x274)]();}[_0x18ef55(0x199)](){const _0x496e08=_0x18ef55;this[_0x496e08(0x2cb)]?.[_0x496e08(0x203)](_0x38b507(this[_0x496e08(0x216)][_0x496e08(0x1b8)],_0x496e08(0x1a6)));}async[_0x18ef55(0x1e8)](){const _0x55fee1=_0x18ef55,_0x421aab=this[_0x55fee1(0x1ad)][_0x55fee1(0x1a1)]();this[_0x55fee1(0x2cb)]?.[_0x55fee1(0x282)](_0x421aab),this[_0x55fee1(0x199)]();}[_0x18ef55(0x2f2)](){const _0x53ff6f=_0x18ef55;this[_0x53ff6f(0x2cb)]?.[_0x53ff6f(0x2cd)]();}[_0x18ef55(0x1ed)](){const _0x4d45c9=_0x18ef55;this[_0x4d45c9(0x2d4)][_0x4d45c9(0x1ed)]();}async[_0x18ef55(0x267)](){const _0x3161ba=_0x18ef55;await this[_0x3161ba(0x274)]();}async[_0x18ef55(0x201)]({message:_0x2e291a,attributes:_0x26d75d}){const _0x5d20f5=_0x18ef55;await this[_0x5d20f5(0x20c)]({'userMessage':_0x2e291a,'attributes':_0x26d75d});}[_0x18ef55(0x2f4)](){const _0xaf28=_0x18ef55,_0x4d5f6a=this[_0xaf28(0x216)][_0xaf28(0x293)][_0xaf28(0x260)](_0xaf28(0x28c));if(!_0x4d5f6a)throw new _0x28fffa(_0xaf28(0x228),this);return _0x4d5f6a;}async[_0x18ef55(0x274)](_0x1af12e){const _0x4e167d=_0x18ef55;try{this[_0x4e167d(0x2d4)][_0x4e167d(0x245)](),await this[_0x4e167d(0x2a5)](_0x1af12e);}catch(_0xaac7e0){this[_0x4e167d(0x2d4)][_0x4e167d(0x2f6)]({'errorMessage':_0x38b507(this[_0x4e167d(0x216)][_0x4e167d(0x1b8)],_0x4e167d(0x1e3)),'id':_0x1af12e||_0x1c2e87()}),console[_0x4e167d(0x29d)](_0xaac7e0),this[_0x4e167d(0x2cb)]=void 0x0,this[_0x4e167d(0x2d4)][_0x4e167d(0x19d)]();}}async[_0x18ef55(0x2a5)](_0x56f534){const _0x1f1183=_0x18ef55;let _0x1e47c7;this[_0x1f1183(0x216)][_0x1f1183(0x244)][_0x1f1183(0x22e)](_0x1f1183(0x1c5))&&this[_0x1f1183(0x216)][_0x1f1183(0x244)][_0x1f1183(0x260)](_0x1f1183(0x1c5))[_0x1f1183(0x265)](),_0x56f534||!this[_0x1f1183(0x2cb)]?_0x1e47c7=this[_0x1f1183(0x216)][_0x1f1183(0x293)][_0x1f1183(0x260)](_0x1f1183(0x20f)):this[_0x1f1183(0x2d4)][_0x1f1183(0x2e0)]&&(_0x1e47c7=this[_0x1f1183(0x2cb)][_0x1f1183(0x262)]['id']),await this[_0x1f1183(0x319)]();const _0xe9cb4b=this[_0x1f1183(0x2f4)](),_0x657b4f=_0x56f534||_0x1c2e87();this[_0x1f1183(0x2cb)]=new _0x2a92ed({'connector':this[_0x1f1183(0x23b)],'chatModels':this[_0x1f1183(0x27d)],'selectedModelId':_0x1e47c7,'conversationId':_0x657b4f,'group':_0xe9cb4b,'getEditor':()=>_0x408387(this[_0x1f1183(0x216)]),'isFromHistory':!!_0x56f534}),this[_0x1f1183(0x2cb)][_0x1f1183(0x26c)](_0x1f1183(0x206),_0x1f1183(0x1dc))['to'](this),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2ab),(_0x460dc3,_0x4958f4)=>{const _0x2198c9=_0x1f1183;this[_0x2198c9(0x2d4)][_0x2198c9(0x2d5)](_0x4958f4),this[_0x2198c9(0x2d4)][_0x2198c9(0x2af)](),this[_0x2198c9(0x2d4)][_0x2198c9(0x20a)](),this[_0x2198c9(0x2d4)][_0x2198c9(0x318)](),_0x56f534||(this[_0x2198c9(0x2d4)][_0x2198c9(0x312)](),this[_0x2198c9(0x199)]());}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x1ef),(_0xfb3e2,_0x33aea8)=>{const _0x3458e5=_0x1f1183;this[_0x3458e5(0x2d4)][_0x3458e5(0x1c2)](_0x33aea8[_0x3458e5(0x31d)]);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x264),(_0x4e2a55,_0x19e1d7)=>{const _0x5b898e=_0x1f1183;this[_0x5b898e(0x2d4)][_0x5b898e(0x2c8)](_0x19e1d7);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x300),()=>{const _0x478db4=_0x1f1183,_0x4989dd=this[_0x478db4(0x2d4)][_0x478db4(0x227)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x478db4(0x2d4)][_0x478db4(0x1ba)](_0x4989dd);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2aa),()=>{const _0x10ee66=_0x1f1183,_0x31098b=this[_0x10ee66(0x2d4)][_0x10ee66(0x227)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x10ee66(0x2d4)][_0x10ee66(0x1ba)](_0x31098b);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2ee),(_0x4b8fbd,_0x4af394)=>{const _0x13a551=_0x1f1183;this[_0x13a551(0x2d4)][_0x13a551(0x2c1)](_0x4af394,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2e9),(_0x560369,_0x48e5ee)=>{const _0x3331c2=_0x1f1183;this[_0x3331c2(0x2d4)][_0x3331c2(0x2c1)](_0x48e5ee,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x1dc),()=>{const _0xf7fadc=_0x1f1183;this[_0xf7fadc(0x2d4)][_0xf7fadc(0x2b6)]();}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x1f1),async()=>{const _0xe839c4=_0x1f1183;await this[_0xe839c4(0x2d4)][_0xe839c4(0x315)]();}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x272),(_0x2a7b10,_0x4a37fa)=>{const _0x4c3670=_0x1f1183;this[_0x4c3670(0x2d4)][_0x4c3670(0x1bb)](_0x4a37fa['id']);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2bb),(_0x3cc603,_0x2a02f1,_0x2330db)=>{const _0x5b03c1=_0x1f1183;this[_0x5b03c1(0x287)](_0x2a02f1,_0x2330db);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x23d),(_0x49c25b,_0x28c783)=>{const _0x24cc09=_0x1f1183;_0x24cc09(0x2b2)===_0x28c783[_0x24cc09(0x2bd)]?this[_0x24cc09(0x2d4)][_0x24cc09(0x2db)](_0x28c783):this[_0x24cc09(0x2d4)][_0x24cc09(0x30f)](_0x28c783);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2e6),async(_0x12b46a,_0x678492)=>{const _0x1650de=_0x1f1183;await this[_0x1650de(0x2f0)]({'reply':_0x678492});}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x27e),(_0x41af17,{reply:_0x513126,index:_0xde19c4,state:_0x3287e6})=>{const _0x11a555=_0x1f1183;this[_0x11a555(0x2d4)][_0x11a555(0x212)]({'id':_0x513126['id'],'index':_0xde19c4,'state':_0x3287e6}),this[_0x11a555(0x19c)]?.[_0x11a555(0x276)][_0x11a555(0x2c0)](_0x513126['id'])&&this[_0x11a555(0x19c)]?.[_0x11a555(0x2d8)]==_0xde19c4&&this[_0x11a555(0x241)]?.[_0x11a555(0x232)](_0x3287e6);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2dd),(_0x1830a4,_0x44e213)=>{const _0x4d4e44=_0x1f1183;if(this[_0x4d4e44(0x2d4)][_0x4d4e44(0x1da)](_0x44e213[_0x4d4e44(0x2e4)],_0x44e213[_0x4d4e44(0x2ae)]),_0x4d4e44(0x29f)===_0x44e213[_0x4d4e44(0x2e4)][_0x4d4e44(0x2bd)]){const _0x2f0ce=[..._0x408387(this[_0x4d4e44(0x216)])[_0x4d4e44(0x1a3)][_0x4d4e44(0x1cf)][_0x4d4e44(0x29f)][_0x4d4e44(0x24e)]()];this[_0x4d4e44(0x1ad)][_0x4d4e44(0x29e)](_0x2f0ce,_0x4d4e44(0x1af)+this[_0x4d4e44(0x2cb)]?.['id']);}}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x26d),(_0x5e71a8,_0x1191f4)=>{const _0x54b4c4=_0x1f1183;this[_0x54b4c4(0x2d4)][_0x54b4c4(0x290)](_0x1191f4[_0x54b4c4(0x204)]),_0x54b4c4(0x2bf)==_0x1191f4[_0x54b4c4(0x204)]&&this[_0x54b4c4(0x2f2)](),_0x54b4c4(0x29f)===_0x1191f4[_0x54b4c4(0x2bd)]&&this[_0x54b4c4(0x1ad)][_0x54b4c4(0x304)](_0x54b4c4(0x1af)+this[_0x54b4c4(0x2cb)]?.['id']);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2a8),(_0x5c7b64,_0x19c989)=>{const _0x12b4c5=_0x1f1183;this[_0x12b4c5(0x2d4)][_0x12b4c5(0x215)](_0x19c989[_0x12b4c5(0x2e4)][_0x12b4c5(0x204)],_0x19c989[_0x12b4c5(0x2ae)]);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2b1),(_0x231dc5,_0xf6a6c8)=>{const _0x56660d=_0x1f1183;this[_0x56660d(0x2d4)][_0x56660d(0x268)](_0xf6a6c8[_0x56660d(0x30b)]);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x235),(_0x1641d4,_0x26717b)=>{const _0x956f8a=_0x1f1183;this[_0x956f8a(0x2d4)][_0x956f8a(0x1fc)](_0x26717b[_0x956f8a(0x233)]);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2d2),(_0x3cc2f5,_0x44b9d4)=>{const _0x4c2f5f=_0x1f1183;this[_0x4c2f5f(0x2d4)][_0x4c2f5f(0x256)](_0x44b9d4[_0x4c2f5f(0x250)],_0x44b9d4[_0x4c2f5f(0x1cb)],_0x44b9d4[_0x4c2f5f(0x214)],_0x44b9d4[_0x4c2f5f(0x1dd)]);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x294),(_0x15f8fb,_0x20e5c7)=>{const _0x82ee86=_0x1f1183;this[_0x82ee86(0x2d4)][_0x82ee86(0x317)](_0x20e5c7[_0x82ee86(0x250)],_0x20e5c7[_0x82ee86(0x1b6)],_0x20e5c7[_0x82ee86(0x2f3)]);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x271),(_0x59a1b6,_0x44373c)=>{const _0x1fd87f=_0x1f1183;this[_0x1fd87f(0x2d4)][_0x1fd87f(0x2ac)](_0x44373c);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x281),async(_0x56b681,_0x45c871)=>{const _0x29c6aa=_0x1f1183,_0x4c9dbd=(await this[_0x29c6aa(0x27d)][_0x29c6aa(0x20b)]())[_0x29c6aa(0x1ee)](_0x916e52=>_0x916e52['id']===_0x45c871[_0x29c6aa(0x262)]?.['id'])||null;this[_0x29c6aa(0x2d4)][_0x29c6aa(0x2fb)](_0x4c9dbd,_0x45c871[_0x29c6aa(0x1e7)]);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x29d),(_0x939e4,{error:_0x23aa73,interactionId:_0x3fd0d1,fileName:_0xc06372,url:_0x58f27b,sourceId:_0x1f9610,sourceLabel:_0x421ee2})=>{const _0x285a36=_0x1f1183,_0x3ac77c=_0x3fd0d1?_0x3fd0d1+':'+_0x1c2e87():_0x1c2e87();_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x296))?this[_0x285a36(0x2d4)][_0x285a36(0x1b1)]({'staticMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x27c)),'id':_0x3ac77c}):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x258))||_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x19a))?(this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x1e3)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73)):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x292))?this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x205),_0xc06372),'id':_0x3ac77c}):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x23c))?this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x2a0),_0x58f27b),'id':_0x3ac77c}):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x1e1))?this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x210)),'id':_0x3ac77c}):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x2e2))?this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x1a5)),'id':_0x3ac77c}):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x1b7))?(_0x1f9610&&this[_0x285a36(0x2d4)][_0x285a36(0x285)](_0x1f9610),this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x24f),_0x421ee2||_0x285a36(0x1cb)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73)):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x19e))?(this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x257)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73)):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x273))?(this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x26f)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73)):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x2b3))?(this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x1f8)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73)):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x1ab))?(this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x2a1)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73)):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x230))?(this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x289)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73)):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x202))?(this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x2b9)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73)):(this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x1d2)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73));}),await this[_0x1f1183(0x2cb)][_0x1f1183(0x21a)](this[_0x1f1183(0x216)][_0x1f1183(0x293)][_0x1f1183(0x260)](_0x1f1183(0x301))),_0x56f534||await this[_0x1f1183(0x2cb)][_0x1f1183(0x1b5)]();}async[_0x18ef55(0x20c)]({userMessage:_0x1e0e84,attributes:_0x1fcc15}){const _0x1e8148=_0x18ef55;if(!this[_0x1e8148(0x2cb)])throw new _0x28fffa(_0x1e8148(0x1b4));if(this[_0x1e8148(0x2cb)][_0x1e8148(0x224)]()){const _0x3becd7=await this[_0x1e8148(0x1ad)][_0x1e8148(0x1d5)]();await this[_0x1e8148(0x2cb)][_0x1e8148(0x2e3)](_0x3becd7);}this[_0x1e8148(0x2cb)]['id']&&this[_0x1e8148(0x2cb)][_0x1e8148(0x295)]&&await this[_0x1e8148(0x2cb)][_0x1e8148(0x28d)]({'userMessage':_0x1e0e84,'attributes':_0x1fcc15});}[_0x18ef55(0x2be)](){const _0x2b167c=_0x18ef55;console[_0x2b167c(0x31b)](_0x2b167c(0x286));}[_0x18ef55(0x2e1)](_0x30f677){const _0x359eae=_0x18ef55;this[_0x359eae(0x2d4)][_0x359eae(0x309)](_0x30f677);}[_0x18ef55(0x2d6)](_0x17507e){const _0xa8797c=_0x18ef55;_0x2a7396(_0x17507e[_0xa8797c(0x30a)]);}[_0x18ef55(0x2ed)](_0x106108){const _0x3c5c15=_0x18ef55;this[_0x3c5c15(0x2cb)]?.[_0x3c5c15(0x2d9)](_0x106108);}[_0x18ef55(0x30c)](){const _0x5608b1=_0x18ef55;this[_0x5608b1(0x2cb)]?.[_0x5608b1(0x20e)]();}[_0x18ef55(0x226)](){const _0x1474ac=_0x18ef55;this[_0x1474ac(0x2cb)]?.[_0x1474ac(0x213)]();}[_0x18ef55(0x2b7)](_0x23c83d){const _0xd8fcfb=_0x18ef55,[_0x233493,_0x5bc5c1]=_0x23c83d[_0xd8fcfb(0x2ba)](':'),_0x2243c4=this[_0xd8fcfb(0x2cb)][_0xd8fcfb(0x2d1)](_0x233493),_0x51a447=_0x2243c4[_0xd8fcfb(0x1ac)](_0x5bc5c1);return{'interaction':_0x2243c4,'reply':_0x51a447};}[_0x18ef55(0x299)](_0x4f3fce,_0x547178=!0x1){const _0x1efedf=_0x18ef55,_0xd26eee=_0x408387(this[_0x1efedf(0x216)]),_0x5d8343={'target':_0xd26eee[_0x1efedf(0x314)][_0x1efedf(0x2f9)][_0x1efedf(0x2ce)][_0x1efedf(0x1df)](_0xd26eee[_0x1efedf(0x314)][_0x1efedf(0x255)][_0x1efedf(0x1ea)](_0x4f3fce)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x547178};_0x547178&&(_0x5d8343[_0x1efedf(0x288)]=!0x0),_0xd00776(_0x5d8343);}[_0x18ef55(0x287)](_0x13eef5,_0x1d2a75=!0x1){const _0x3e6564=_0x18ef55;this[_0x3e6564(0x2d4)][_0x3e6564(0x2bb)](_0x13eef5||_0x38b507(this[_0x3e6564(0x216)][_0x3e6564(0x1b8)],_0x3e6564(0x2cc)),_0x1d2a75);}async[_0x18ef55(0x2f0)]({reply:_0x56402d,renderingStrategy:_0xaf429a}){const _0xa02281=_0x18ef55,{id:_0x45c395,interactionId:_0xa66cff,isDone:_0x42a874,type:_0x5046aa,parsedContent:_0x1ae65f}=_0x56402d,_0x423453=_0xa66cff+':'+_0x45c395;if(_0xa02281(0x2f5)===_0x5046aa){const _0x203bed=_0x56402d[_0xa02281(0x1e2)]({'showDiff':this[_0xa02281(0x2d4)][_0xa02281(0x298)]});await this[_0xa02281(0x2d4)][_0xa02281(0x27f)]({'id':_0x423453,'parts':_0x203bed,'renderingStrategy':_0xaf429a,'isDone':_0x42a874});}else _0xa02281(0x2b2)===_0x5046aa&&await this[_0xa02281(0x2d4)][_0xa02281(0x1b0)]({'id':_0x423453,'parsedContent':_0x1ae65f,'renderingStrategy':_0xaf429a,'isDone':_0x42a874});_0x42a874&&_0x56402d[_0xa02281(0x2cf)][_0xa02281(0x234)]>0x0&&this[_0xa02281(0x2d4)][_0xa02281(0x2a4)](_0x423453,_0x56402d[_0xa02281(0x2cf)]);}async[_0x18ef55(0x319)](){const _0x5f2eb4=_0x18ef55,_0x434b9b=this[_0x5f2eb4(0x2cb)]?.[_0x5f2eb4(0x283)];_0x434b9b&&(_0x434b9b[_0x5f2eb4(0x2b8)](),this[_0x5f2eb4(0x2d4)][_0x5f2eb4(0x1d4)](_0x434b9b));}async[_0x18ef55(0x2c6)](){const _0x2625ae=_0x18ef55,_0x37183b=this[_0x2625ae(0x2cb)]?.[_0x2625ae(0x283)];if(_0x37183b){for await(const _0x575077 of _0x37183b[_0x2625ae(0x1b3)])await this[_0x2625ae(0x2f0)]({'reply':_0x575077,'renderingStrategy':_0x2625ae(0x269)});}}[_0x18ef55(0x223)](_0x38517c){const _0x499323=_0x18ef55,_0x168979={'positiveCount':_0x38517c[_0x499323(0x252)][_0x499323(0x1c1)](_0x8ed7ef=>_0x499323(0x1ff)===_0x8ed7ef[_0x499323(0x222)])[_0x499323(0x234)],'totalCount':_0x38517c[_0x499323(0x252)][_0x499323(0x234)],'modificationId':_0x38517c['id']},_0x53ec9a=this[_0x499323(0x2cb)][_0x499323(0x2d1)](_0x38517c[_0x499323(0x1f2)])[_0x499323(0x275)];_0x53ec9a&&this[_0x499323(0x23b)][_0x499323(0x247)](this[_0x499323(0x2cb)]['id'],_0x53ec9a,_0x168979);}[_0x18ef55(0x1d7)](_0x4302a3){const _0x476d82=_0x18ef55;let _0x5af208=null,_0x25bb3e=null;this['on'](_0x476d82(0x206),(_0x3ef48e,_0x286fe8,_0x37b8b6)=>{const _0xe8996b=_0x476d82;_0x37b8b6['id']!==_0x5af208&&(_0x5af208=_0x37b8b6['id'],_0x25bb3e=this[_0xe8996b(0x307)](_0x37b8b6)),_0x4302a3(_0x286fe8,_0x25bb3e);});}[_0x18ef55(0x307)](_0x4a82e7){const _0x4bfdf6=_0x18ef55,_0x5a324e=this[_0x4bfdf6(0x2d4)],_0x37be67=()=>{const _0x1def6e=_0x4bfdf6;_0x4a82e7[_0x1def6e(0x24c)](),_0x4a82e7[_0x1def6e(0x261)](),_0x5a324e[_0x1def6e(0x24b)]();},_0x3c681a=()=>{const _0x3b7f02=_0x4bfdf6;_0x4a82e7[_0x3b7f02(0x1bd)]&&(_0x4a82e7[_0x3b7f02(0x1bd)][_0x3b7f02(0x1f6)](),_0x4a82e7[_0x3b7f02(0x1bd)]=void 0x0);};return{'insertTextReply':(_0x55c3fa,_0x7639c1)=>{const _0x50bb40=_0x4bfdf6;_0x3c681a(),_0x37be67();const _0x382594=_0x4a82e7[_0x50bb40(0x1bd)]=_0x4a82e7[_0x50bb40(0x1d0)]({'type':_0x50bb40(0x2b2),'interactionId':_0x4a82e7['id'],'content':_0x55c3fa,'id':_0x7639c1||_0x1c2e87()});return _0x3c681a(),_0x382594;},'insertCustomElement':async(_0x57b721,_0x5014e3)=>(_0x3c681a(),_0x37be67(),_0x5a324e[_0x4bfdf6(0x28e)](_0x57b721,_0x5014e3||_0x1c2e87())),'setLoadingMessage':_0x56d417=>{const _0x3ea59b=_0x4bfdf6;_0x5a324e[_0x3ea59b(0x1ba)](_0x56d417);},'clearLoadingMessage':()=>{const _0x142515=_0x4bfdf6;_0x5a324e[_0x142515(0x24b)]();}};}}
23
+ const _0x5027f0=_0x1799;(function(_0x526011,_0x3c6c16){const _0x317aaf=_0x1799,_0x14b5a1=_0x526011();while(!![]){try{const _0x349421=parseInt(_0x317aaf(0x29b))/0x1+parseInt(_0x317aaf(0x259))/0x2+parseInt(_0x317aaf(0x30b))/0x3+-parseInt(_0x317aaf(0x2d3))/0x4+-parseInt(_0x317aaf(0x241))/0x5+-parseInt(_0x317aaf(0x2f8))/0x6+-parseInt(_0x317aaf(0x2ab))/0x7*(parseInt(_0x317aaf(0x27b))/0x8);if(_0x349421===_0x3c6c16)break;else _0x14b5a1['push'](_0x14b5a1['shift']());}catch(_0x487909){_0x14b5a1['push'](_0x14b5a1['shift']());}}}(_0x38d9,0x84de5));import{ContextPlugin as _0x236b46,Editor as _0x1e36b8}from'ckeditor5/src/core.js';import{BodyCollection as _0x3f7636}from'ckeditor5/src/ui.js';function _0x38d9(){const _0x5178d3=['mouseLeaveSuggestion','filter','fetchConversation','areActionsDisabled','setFeedItemAIReplySuggestionPartActive','done','callback','changeGroups','ai-chat-invalid-request','_currentPreviewedChangeGroup','text','setIsMaximized','replyContentUpdated','interactionCreated','6272jrfyoO','getAttribute','conversationInitialized','replyCreated','modification','webSearchFinished','contextItemRemoved','resetMessageInput','ai-chat-controller-no-active-conversation','mapper','log','_registerToolDataCallback','replyChangeGroupStateUpdated','uploadProgressChanged','resize','ai.chat.initialConversation','ai-chat-context-unsupported-file-type','prepareLoadingMessage','_aiChatBalloon','replies','_scrollToSuggestionRange','detachFromDom','_aiChatUi','locale','sendMessage','ai-conversation-','marker','lastCreated','maxOffset','isOfficialPlugin','_getDocumentRangeForReplyChanges','loadSourceResources','source','contextItemAdded','populateSourceResourceBalloon','addFeedItemAIReply','uid','interactionId','document','_updateRatings','1873592reAeMd','ai.models.defaultModelId','_toggleWebSearch','index','_toggleReasoning','howMany','_startConversationSafely','updateFeedItemAIReplySources','reasoningFinished','_getUserPresentableContentPartDocumentRange','AI_CHAT_CONTEXT_FILE_TOO_LARGE','createReply','showDiff','ai.models','removeSelectionFromContext','createdAt','parse','ai-chat-context-file-too-many-pages','sources','isUploadInProgress','getChildAtOffset','has','message','addDocumentToContext','unshift','closeSourceResourceBalloon','addUrlToContext','toViewRange','setConversationTitle','updateFeedItemAIReplyContent','setIsUploadInProgress','upsertAIChatRating','map','clearConversationContextUI','options','setAddContextOptions','Disliked\x20response','6211416LcjiPC','AIEditing','ai-chat-file-upload-failed','children','toString','_aiEditing','resetWebSearchState','isPremiumPlugin','open','_applySuggestion','afterInit','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','getGroupId','messageId','updateResourceState','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','commands','_applyOperationsAsSuggestions','change','1789539djsRbr','error','toggleLoadingSkeleton','rejectSuggestion','ai-chat-source-resources-load-failed','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','config','close','interactionFinished','updateFeedItemAIReplySuggestionContent','nextSibling','version','attachToDom','removeFeedInteraction','Showing\x20conversation\x20history...','getTransformedByOperation','stop','from','ai-chat-context-invalid-data','AIChatController','collaboration.channelId','replyId','ai.chat.context','_openBalloonFor','reasoningStarted','query','_getPresentableSiblingContentPartIndex','rejected','interactionDestroyed','ai-chat-resource-load-failed','contextItem','push','resources','getDocumentContext','like','AI_CHAT_UNABLE_TO_START_CONVERSATION','revert','changes','includes','sourcePosition','activeConversation','getInteractionAndReplyById','streaming','getContentParts','add','pluginName','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','insertSuggestion','getRanges','createPositionAt','mouseOverSuggestion','_batchToChanges','toggleReasoning','getPath','next','updateCapabilities','disableControls','AIChatBalloon','node','_handleStartConversation','handleUserInteraction','AI_CHAT_RESOURCE_LOAD_FAILED','startAutoScroll','getInteraction','set','data','fetchConversations','startsWith','clearLoadingMessage','selectedModel','getOperations','selectModel','resizedTabs','outdated','addCurrentDocumentToChatContext','applyOperation','ai-chat-context-form-data-size-limits-exceeded','isStarted','applySuggestion','end','addFeedInteractionHeader','Liked\x20response','updateFeedItemAIReplySuggestionPartState','chat','requires','batch','focusPromptInput','_getAIChatInteractionAPI','load','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','ai-chat-context-unsupported-type','getRoot','resourceStateChanged','removed','delete','model','currentReply','isCurrentDocumentInContext','AI_CHAT_CONTEXT_INVALID_DATA','loadConversation','slice','_removeFromContext','_updateReplyContent','resourceId','toggleWebSearch','setModel','content','getFirstRange','updateCurrentDocumentInContext','AI_CHAT_UNTITLED_CONVERSATION','sourceId','removeSelectionFromChatContext','addFeedItemAISuggestion','hasChanges','abortPromptStream','forEach','modelSelected','bind','addFileToContext','capabilitiesUpdated','_bodyCollection','dialogClosed','_aiConnector','addFeedItemUserMessage','_handleUIUserMessage','documentContextContent','_showConversationHistory','_aiChatBalloonShowDiff','ai-chat-missing-channel-id','delegate','updateContent','_getLastCreatedConversationId','isDisabled','getDiff','DocumentCompare','root','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','editing','cloneNode','selection','ai-chat-context-file-too-large','Undo','isLoading','getReply','ai-chat-controller-mouse-over','alignToTop','updateConversationTitle','context','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','setConversationContext','showNext','_stopLastInteraction','length','aiChatBalloon','createRange','ai-no-track-changes','previous','getConversation','addOperation','start','findIndex','AI_CHAT_INVALID_REQUEST','range','resizeTabs','handleRemovedConversation','setLoadingMessage','viewRangeToDom','anchorId','setSelectedModel','getChild','createConversation','undo','addContextOptionsChanged','main','type','_aiChatModels','getSelectionText','get','removeContextItem','init','ai-chat-conversation-init-failed','uiId','activateTab','setState','AIConnector','TrackChanges','$graveyard','isCurrentDocumentInConversation','addResourceToContext','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','indexOf','editors','2310160FvHeyl','AITabs','pending','toolDataReceived','new','accepted','showFakeVisualSelection','startInteraction','AIChatUI','plugins','setFeedItemRenderingStrategy','resetReasoningState','clearPendingContextUI','contextSent','static','rootName','AI_BALLOON_HEADER_TITLE','enableControls','getDocumentData','scrollFeedToSuggestion','resource','addSelectionToChatContext','redo','view','2107342aDIGQx','isInContext','path','_logError','ai-chat-conversation-not-found','sourceResourcesLoaded','split','ai-chat-conversation-start-failed','_flushLastInteractionUI','sendUserMessage','lastInteraction','data-id','addFilesToContext','_rejectSuggestion','partIndex','_setIsMaximized','setContextItemLoading','contextItems','toggleSuggestionDisplayMode','setChangeGroupState','showChangeInText','addFeedItemCustomElement','TrackChangesEditing','destroy','getChildren','_insertSuggestion','resetConversationTitle','AI_CHAT_GENERIC_ERROR','dislike','find','_createFromRanges','domConverter','isModelAvailable','addContextItem','344ivtTbd','_integrateEditor','addFeedItemStaticMessage','ai-request-aborted','current-document','listenTo','addSelectionToContext','stopInteraction','indexes','ai-chat-url-upload-failed','AI_CHAT_ABORTED_MESSAGE','removeFromContext','webSearchStarted','baseVersion','contextItemLoadingEnded','hideFakeVisualSelection','createPositionFromPath','history','startConversation','isDocumentOperation','addCurrentDocumentToContext','remove','executeCustomItemCallback','finishInteraction','showPrevious','ready','getAll','addFeedItemError','interactionStarted','getConversations','state','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','898239BUozSv','sessionId'];_0x38d9=function(){return _0x5178d3;};return _0x38d9();}import{CKEditorError as _0x1cac1d,logError as _0x5d39d3,scrollViewportToShowTarget as _0x2d5201,uid as _0xc400fc}from'ckeditor5/src/utils.js';function _0x1799(_0x12adca,_0x1e1d81){const _0x38d9be=_0x38d9();return _0x1799=function(_0x17991e,_0x5d25cf){_0x17991e=_0x17991e-0x1a5;let _0x4be4be=_0x38d9be[_0x17991e];return _0x4be4be;},_0x1799(_0x12adca,_0x1e1d81);}import{AIConnector as _0x344017}from'../aicore/aiconnector.js';import{AITabs as _0x620505}from'../aitabs/aitabs.js';import{AIChatConversation as _0x126b86}from'./model/aichatconversation.js';import{getTranslation as _0x4e370c}from'../aicore/utils/common-translations.js';import{AIModels as _0x3404d3}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x22d5bb}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x1b0eca,DATA_ID_MODEL_ATTRIBUTE as _0x213e06}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x4e9a85,getOperationsFromReply as _0x4c9494}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x22d854,getMinimalSelection as _0x2b3d24}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x29ade5,_DetachOperation as _0x568343}from'ckeditor5/src/engine.js';import{findOne as _0x323a6d,getAttribute as _0x68ecf9,serialize as _0x417201,Document as _0x128a28,findByAttribute as _0x25ed47}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x236b46{[_0x5027f0(0x2fd)];[_0x5027f0(0x1fb)];[_0x5027f0(0x2c1)];[_0x5027f0(0x230)];[_0x5027f0(0x2bd)];[_0x5027f0(0x1b4)]=new Map();[_0x5027f0(0x2a6)]=null;[_0x5027f0(0x1f9)];static get[_0x5027f0(0x1d5)](){return[_0x344017,_0x1b0eca];}static get[_0x5027f0(0x1ae)](){const _0x42d8c4=_0x5027f0;return _0x42d8c4(0x31e);}static get[_0x5027f0(0x2c8)](){return!0x0;}static get[_0x5027f0(0x2ff)](){return!0x0;}[_0x5027f0(0x234)](){const _0x19d41e=_0x5027f0;this[_0x19d41e(0x1f9)]=new _0x3f7636(this[_0x19d41e(0x214)][_0x19d41e(0x2c2)]),this[_0x19d41e(0x1f9)][_0x19d41e(0x317)](),this[_0x19d41e(0x1fb)]=this[_0x19d41e(0x214)][_0x19d41e(0x24a)][_0x19d41e(0x232)](_0x19d41e(0x239)),this[_0x19d41e(0x2c1)]=this[_0x19d41e(0x214)][_0x19d41e(0x24a)][_0x19d41e(0x232)](_0x19d41e(0x249)),this[_0x19d41e(0x2fd)]=this[_0x19d41e(0x214)][_0x19d41e(0x24a)][_0x19d41e(0x232)](_0x19d41e(0x2f9)),this[_0x19d41e(0x230)]=new _0x3404d3({'connector':this[_0x19d41e(0x1fb)],'config':this[_0x19d41e(0x214)][_0x19d41e(0x311)][_0x19d41e(0x232)](_0x19d41e(0x2e0)),'locale':this[_0x19d41e(0x214)][_0x19d41e(0x2c2)]});const _0x196ad0=this[_0x19d41e(0x214)][_0x19d41e(0x24a)][_0x19d41e(0x232)](_0x19d41e(0x242));this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x28d),()=>{const _0x2dbabe=_0x19d41e;this[_0x2dbabe(0x2d9)]();}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x262),(_0x52f359,_0x4125e0)=>{const _0x6a6648=_0x19d41e;this[_0x6a6648(0x1fd)]({'userMessage':_0x4125e0});}),this[_0x19d41e(0x280)](_0x196ad0,_0x19d41e(0x1c9),(_0x157569,_0x21d333)=>{const _0x52d66c=_0x19d41e;this[_0x52d66c(0x268)](_0x21d333);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x224),()=>{const _0x514c06=_0x19d41e;_0x196ad0[_0x514c06(0x2b9)]();}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x1f3),async()=>{const _0x42a140=_0x19d41e;await this[_0x42a140(0x218)](),await this[_0x42a140(0x261)](),this[_0x42a140(0x1f0)]();}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x2ea),()=>{const _0x2ca215=_0x19d41e;this[_0x2ca215(0x1cb)]();}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x1f7),(_0x125251,_0x3217ce)=>{const _0x2a3182=_0x19d41e;this[_0x2a3182(0x1a9)]?.[_0x2a3182(0x265)](Array[_0x2a3182(0x31c)](_0x3217ce));}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x2ed),(_0x4f71c5,_0x2c9b19)=>{const _0x292185=_0x19d41e;this[_0x292185(0x1a9)]?.[_0x292185(0x2ed)](_0x2c9b19);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x291),(_0x5a3934,_0x559bfc)=>{const _0x80656a=_0x19d41e;_0x559bfc[_0x80656a(0x2a3)](this[_0x80656a(0x214)]);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x23d),(_0x4a8c8a,_0x5df2c4)=>{const _0x24c724=_0x19d41e;this[_0x24c724(0x1a9)]?.[_0x24c724(0x23d)](_0x5df2c4[_0x24c724(0x2cb)],_0x5df2c4[_0x24c724(0x255)]);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x233),(_0x58d49b,_0x3f3c4f)=>{const _0x405422=_0x19d41e;this[_0x405422(0x1e6)](_0x3f3c4f);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x2ca),(_0x142b80,_0x56caae)=>{const _0x5b08a6=_0x19d41e;this[_0x5b08a6(0x1a9)]?.[_0x5b08a6(0x2ca)](_0x56caae[_0x5b08a6(0x1ef)],_0x56caae[_0x5b08a6(0x324)],_0x56caae[_0x5b08a6(0x2cf)]);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x1e9),()=>{const _0x3900d0=_0x19d41e;this[_0x3900d0(0x2d5)]();}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x1b5),()=>{const _0x3c905c=_0x19d41e;this[_0x3c905c(0x2d7)]();}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x1c8),(_0x26a362,_0x5243a9)=>{const _0x5984c3=_0x19d41e;this[_0x5984c3(0x1a9)]?.[_0x5984c3(0x1ea)](_0x5243a9);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x32d),(_0x7c6539,{replyId:_0x2e4950})=>{const _0x127973=_0x19d41e;console[_0x127973(0x2b5)](_0x127973(0x1d2),_0x2e4950);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x275),(_0x428d62,{replyId:_0x180353})=>{const _0x289a40=_0x19d41e;console[_0x289a40(0x2b5)](_0x289a40(0x2f7),_0x180353);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x1b0),(_0x169d11,_0x3338e3)=>{const _0x5021e7=_0x19d41e;this[_0x5021e7(0x272)](_0x3338e3);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x26d),(_0x421f24,{replyId:_0xa31f0f,partIndex:_0x2288a6})=>{const _0x41557b=_0x19d41e;this[_0x41557b(0x200)]=this[_0x41557b(0x2c1)][_0x41557b(0x2df)],this[_0x41557b(0x322)](_0xa31f0f,_0x2288a6);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x1b3),(_0x1ea6bc,{replyId:_0x41337b,partIndex:_0xaa1bb9})=>{const _0x107008=_0x19d41e,_0x409862=this[_0x107008(0x2c9)](_0x41337b,_0xaa1bb9);_0x409862&&_0x107008(0x23b)!=_0x409862[_0x107008(0x223)][_0x107008(0x208)][_0x107008(0x250)]&&this[_0x107008(0x2fd)][_0x107008(0x247)]([_0x409862[_0x107008(0x223)]],_0x107008(0x211));}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x29d),()=>{const _0xb9f25c=_0x19d41e;this[_0xb9f25c(0x2fd)][_0xb9f25c(0x28a)](_0xb9f25c(0x211));}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x1cf),(_0x1450b0,_0x50ba66)=>{const _0x1c0a5e=_0x19d41e;this[_0x1c0a5e(0x2fd)][_0x1c0a5e(0x28a)](_0x1c0a5e(0x211)),this[_0x1c0a5e(0x301)](_0x50ba66);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x26b),async(_0x2b1d11,{replyId:_0x508def,showDiff:_0xeb9bbc})=>{const _0x555f81=_0x19d41e,{reply:_0x285005}=this[_0x555f81(0x1aa)](_0x508def),_0x26e021=_0x285005[_0x555f81(0x1ac)]({'showDiff':_0xeb9bbc});await this[_0x555f81(0x2c1)][_0x555f81(0x314)]({'id':_0x285005['id'],'parts':_0x26e021,'renderingStrategy':_0x555f81(0x24f)});}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x30e),(_0x5deae4,{replyId:_0x123926,partIndex:_0x523ea8})=>{const _0x15170b=_0x19d41e;this[_0x15170b(0x266)]({'replyId':_0x123926,'partIndex':_0x523ea8}),this[_0x15170b(0x2fd)][_0x15170b(0x28a)](_0x15170b(0x211));}),this[_0x19d41e(0x214)][_0x19d41e(0x24a)][_0x19d41e(0x2e8)](_0x19d41e(0x1ba))&&(this[_0x19d41e(0x2bd)]=this[_0x19d41e(0x214)][_0x19d41e(0x24a)][_0x19d41e(0x232)](_0x19d41e(0x1ba)),this[_0x19d41e(0x1c1)](_0x19d41e(0x200),!0x1),this[_0x19d41e(0x2bd)][_0x19d41e(0x1f6)](_0x19d41e(0x2df))['to'](this,_0x19d41e(0x200)),this[_0x19d41e(0x280)](this[_0x19d41e(0x2bd)],_0x19d41e(0x26b),()=>{const _0x49751b=_0x19d41e,{replyId:_0x537209,partIndex:_0x2bcb74}=this[_0x49751b(0x2a6)];this[_0x49751b(0x200)]=!this[_0x49751b(0x200)];const {reply:_0xebfd5f}=this[_0x49751b(0x1aa)](_0x537209),_0x1f64ad=_0xebfd5f[_0x49751b(0x1ac)]({'showDiff':this[_0x49751b(0x200)],'groupIndex':_0x2bcb74});this[_0x49751b(0x2bd)][_0x49751b(0x203)]({'part':_0x1f64ad[0x0],'renderingStrategy':_0x49751b(0x24f),'keepErrors':!0x0});}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2bd)],_0x19d41e(0x1cf),()=>{const _0x38ea59=_0x19d41e,{replyId:_0x29f3a2,partIndex:_0x3f562f}=this[_0x38ea59(0x2a6)];this[_0x38ea59(0x301)]({'replyId':_0x29f3a2,'partIndex':_0x3f562f}),this[_0x38ea59(0x2bd)][_0x38ea59(0x238)](_0x38ea59(0x246));}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2bd)],_0x19d41e(0x1b0),()=>{const _0x28a5fc=_0x19d41e,{replyId:_0x230550,partIndex:_0x3c2892}=this[_0x28a5fc(0x2a6)];this[_0x28a5fc(0x272)]({'replyId':_0x230550,'partIndex':_0x3c2892}),this[_0x28a5fc(0x2bd)][_0x28a5fc(0x238)](_0x28a5fc(0x246));}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2bd)],_0x19d41e(0x30e),()=>{const _0x1bab2a=_0x19d41e,{replyId:_0x280b91,partIndex:_0x37190a}=this[_0x1bab2a(0x2a6)];this[_0x1bab2a(0x266)]({'replyId':_0x280b91,'partIndex':_0x37190a}),this[_0x1bab2a(0x2bd)][_0x1bab2a(0x238)](_0x1bab2a(0x326));}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2bd)],_0x19d41e(0x217),()=>{const _0xa527fc=_0x19d41e,{replyId:_0x252f62,partIndex:_0x636846}=this[_0xa527fc(0x2a6)],_0x101221=this[_0xa527fc(0x325)](_0x252f62,_0x636846,_0xa527fc(0x1b7));null!==_0x101221&&this[_0xa527fc(0x322)](_0x252f62,_0x101221);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2bd)],_0x19d41e(0x293),()=>{const _0x534d4c=_0x19d41e,{replyId:_0x261b2c,partIndex:_0x3ccb46}=this[_0x534d4c(0x2a6)],_0x3c6caf=this[_0x534d4c(0x325)](_0x261b2c,_0x3ccb46,_0x534d4c(0x21d));null!==_0x3c6caf&&this[_0x534d4c(0x322)](_0x261b2c,_0x3c6caf);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2bd)],_0x19d41e(0x1fa),(_0x408265,{id:_0x597848})=>{const _0x5a583a=_0x19d41e;if(_0x5a583a(0x21a)!==_0x597848)return;const {replyId:_0x4e627c,partIndex:_0x3449a0}=this[_0x5a583a(0x2a6)];this[_0x5a583a(0x2a6)]=null,this[_0x5a583a(0x2c1)][_0x5a583a(0x2a1)]({'id':_0x4e627c,'index':_0x3449a0,'isActive':!0x1});}));}async[_0x5027f0(0x302)](){const _0x17be73=_0x5027f0;this[_0x17be73(0x214)]instanceof _0x1e36b8?this[_0x17be73(0x27c)](this[_0x17be73(0x214)]):this[_0x17be73(0x280)](this[_0x17be73(0x214)][_0x17be73(0x240)],_0x17be73(0x1ad),(_0x1453a2,_0x1e5d09)=>{const _0x31fd63=_0x17be73;_0x1e5d09['on'](_0x31fd63(0x294),()=>{const _0xeebca3=_0x31fd63;this[_0xeebca3(0x27c)](_0x1e5d09);});});const _0x322ba3=this[_0x17be73(0x214)][_0x17be73(0x311)][_0x17be73(0x232)](_0x17be73(0x2ba));let _0x52c9f3=_0x322ba3;if(_0x17be73(0x2c6)!=_0x322ba3||(_0x52c9f3=await this[_0x17be73(0x204)](),_0x52c9f3))return _0x17be73(0x245)==_0x52c9f3?this[_0x17be73(0x2d9)]():this[_0x17be73(0x1e4)](_0x52c9f3);}async[_0x5027f0(0x270)](){const _0x19ca13=_0x5027f0;return await this[_0x19ca13(0x218)](),this[_0x19ca13(0x1f9)][_0x19ca13(0x2c0)](),super[_0x19ca13(0x270)]();}[_0x5027f0(0x272)](_0x20dccd){const _0x237776=_0x5027f0,_0x52d5c1=_0x22d5bb(this[_0x237776(0x214)]);if(!_0x52d5c1[_0x237776(0x24a)][_0x237776(0x2e8)](_0x237776(0x23a)))throw new _0x1cac1d(_0x237776(0x21c),null);const _0x530adb=this[_0x237776(0x214)][_0x237776(0x24a)][_0x237776(0x232)](_0x237776(0x207)),{reply:_0x3bf25b,interaction:_0x35b404}=this[_0x237776(0x1aa)](_0x20dccd[_0x237776(0x320)]),_0x3d1ab6=this[_0x237776(0x2c9)](_0x20dccd[_0x237776(0x320)],_0x20dccd[_0x237776(0x267)]),_0x3e5af7=void 0x0!==_0x20dccd[_0x237776(0x267)]?[_0x3bf25b[_0x237776(0x2a4)][_0x20dccd[_0x237776(0x267)]]]:_0x3bf25b[_0x237776(0x2a4)][_0x237776(0x29e)](_0x1aa9f0=>_0x237776(0x243)==_0x1aa9f0[_0x237776(0x299)]),_0x55a270=_0x3e5af7[_0x237776(0x2f3)](_0xaa15d9=>_0x3bf25b[_0x237776(0x2a4)][_0x237776(0x23f)](_0xaa15d9));if(!_0x3d1ab6||_0x237776(0x23b)==_0x3d1ab6[_0x237776(0x223)][_0x237776(0x208)][_0x237776(0x250)])return void _0x55a270[_0x237776(0x1f4)](_0x418b31=>_0x3bf25b[_0x237776(0x26c)](_0x418b31,_0x237776(0x1ca)));_0x55a270[_0x237776(0x1f4)](_0x57e663=>_0x3bf25b[_0x237776(0x26c)](_0x57e663,_0x237776(0x246)));const _0x1a92a4=_0x4c9494({'editor':_0x52d5c1,'reply':_0x3bf25b,'interaction':_0x35b404,'groups':_0x3e5af7,'transform':!0x0,'documentCompare':_0x530adb,'documentCompareOptions':{'anchor':_0x237776(0x22e),'markDeletions':!0x0}});let _0x40006a;_0x3d1ab6&&this[_0x237776(0x2bf)](_0x3d1ab6[_0x237776(0x223)]),_0x52d5c1[_0x237776(0x1e0)][_0x237776(0x30a)](_0x3a59b4=>{const _0x551577=_0x237776;_0x40006a=_0x3a59b4[_0x551577(0x1d6)],_0x52d5c1[_0x551577(0x24a)][_0x551577(0x232)](_0x551577(0x26f))[_0x551577(0x309)](_0x1a92a4),this[_0x551577(0x2fd)][_0x551577(0x28a)](_0x551577(0x211));}),this[_0x237776(0x1b4)][_0x237776(0x1c1)](_0x40006a,{'interactionId':_0x35b404['id'],'replyId':_0x3bf25b['id'],'indexes':_0x55a270[_0x237776(0x1e5)]()}),this[_0x237776(0x2d2)](_0x3bf25b);}[_0x5027f0(0x301)](_0x348229){const _0x2c4f48=_0x5027f0,_0x5756a1=_0x22d5bb(this[_0x2c4f48(0x214)]),_0x390a14=this[_0x2c4f48(0x214)][_0x2c4f48(0x24a)][_0x2c4f48(0x232)](_0x1b0eca),{reply:_0x30eb92,interaction:_0x3e2d2e}=this[_0x2c4f48(0x1aa)](_0x348229[_0x2c4f48(0x320)]),_0x5456bd=this[_0x2c4f48(0x2c9)](_0x348229[_0x2c4f48(0x320)],_0x348229[_0x2c4f48(0x267)]),_0x4d4edc=void 0x0!==_0x348229[_0x2c4f48(0x267)]?[_0x30eb92[_0x2c4f48(0x2a4)][_0x348229[_0x2c4f48(0x267)]]]:_0x30eb92[_0x2c4f48(0x2a4)][_0x2c4f48(0x29e)](_0x40bd60=>_0x2c4f48(0x243)==_0x40bd60[_0x2c4f48(0x299)]),_0x192537=_0x4d4edc[_0x2c4f48(0x2f3)](_0x2b6f34=>_0x30eb92[_0x2c4f48(0x2a4)][_0x2c4f48(0x23f)](_0x2b6f34));if(!_0x5456bd||_0x2c4f48(0x23b)==_0x5456bd[_0x2c4f48(0x223)][_0x2c4f48(0x208)][_0x2c4f48(0x250)])return void _0x192537[_0x2c4f48(0x1f4)](_0x118251=>_0x30eb92[_0x2c4f48(0x26c)](_0x118251,_0x2c4f48(0x1ca)));_0x192537[_0x2c4f48(0x1f4)](_0x558941=>_0x30eb92[_0x2c4f48(0x26c)](_0x558941,_0x2c4f48(0x246)));const _0x452c4=_0x4c9494({'editor':_0x5756a1,'reply':_0x30eb92,'interaction':_0x3e2d2e,'groups':_0x4d4edc,'transform':!0x0,'documentCompare':_0x390a14,'documentCompareOptions':{'anchor':_0x2c4f48(0x22e),'markDeletions':!0x1}});let _0x2ce87e;_0x5456bd&&this[_0x2c4f48(0x2bf)](_0x5456bd[_0x2c4f48(0x223)]),_0x5756a1[_0x2c4f48(0x1e0)][_0x2c4f48(0x30a)](_0x152561=>{const _0x5ee0c7=_0x2c4f48;_0x2ce87e=_0x152561[_0x5ee0c7(0x1d6)];for(const _0x4d04e8 of _0x452c4)_0x4d04e8[_0x5ee0c7(0x288)]=_0x5756a1[_0x5ee0c7(0x1e0)][_0x5ee0c7(0x2d1)][_0x5ee0c7(0x316)],_0x4e9a85(_0x5756a1,_0x4d04e8),_0x152561[_0x5ee0c7(0x1d6)][_0x5ee0c7(0x21f)](_0x4d04e8),_0x5756a1[_0x5ee0c7(0x1e0)][_0x5ee0c7(0x1cc)](_0x4d04e8);}),this[_0x2c4f48(0x1b4)][_0x2c4f48(0x1c1)](_0x2ce87e,{'interactionId':_0x3e2d2e['id'],'replyId':_0x30eb92['id'],'indexes':_0x192537[_0x2c4f48(0x1e5)]()}),this[_0x2c4f48(0x2d2)](_0x30eb92);}[_0x5027f0(0x266)](_0x5a7d5f){const _0xa3cfd9=_0x5027f0,{reply:_0x52db6e}=this[_0xa3cfd9(0x1aa)](_0x5a7d5f[_0xa3cfd9(0x320)]);_0x52db6e[_0xa3cfd9(0x26c)](_0x5a7d5f[_0xa3cfd9(0x267)],_0xa3cfd9(0x326));}[_0x5027f0(0x322)](_0x5d16b8,_0x199d36){const _0x466928=_0x5027f0;if(!this[_0x466928(0x2bd)])return;const {reply:_0x1ca728}=this[_0x466928(0x1aa)](_0x5d16b8),_0x216e8f=_0x1ca728[_0x466928(0x1ac)]({'showDiff':this[_0x466928(0x200)]});let _0x53ed6d,_0x345268;if(void 0x0!==_0x199d36?(_0x345268=_0x216e8f[_0x466928(0x276)](_0x1e2c7d=>_0x1e2c7d[_0x466928(0x2d6)]==_0x199d36),_0x53ed6d=_0x345268?.[_0x466928(0x2d6)]):(_0x345268=_0x216e8f[0x0],_0x53ed6d=_0x345268[_0x466928(0x2d6)]),this[_0x466928(0x2a6)]?.[_0x466928(0x320)]==_0x5d16b8&&this[_0x466928(0x2a6)]?.[_0x466928(0x267)]==_0x53ed6d)return;const _0x3c7410=this[_0x466928(0x2dc)](_0x5d16b8,_0x1ca728,_0x345268);if(!_0x3c7410)return void this[_0x466928(0x2bd)][_0x466928(0x312)]();this[_0x466928(0x2a6)]={'replyId':_0x5d16b8,'partIndex':_0x53ed6d},this[_0x466928(0x2bf)](_0x3c7410,!0x0);const _0x29fb91=this[_0x466928(0x325)](_0x5d16b8,_0x53ed6d,_0x466928(0x1b7));this[_0x466928(0x2bd)][_0x466928(0x203)]({'part':_0x345268,'renderingStrategy':_0x466928(0x24f)}),this[_0x466928(0x2bd)][_0x466928(0x300)]({'index':_0x53ed6d,'title':_0x4e370c(this[_0x466928(0x214)][_0x466928(0x2c2)],_0x466928(0x251),(_0x53ed6d+0x1)[_0x466928(0x2fc)]()),'showRotator':null!==_0x29fb91,'ranges':[_0x3c7410],'areActionsDisabled':_0x1ca728[_0x466928(0x2a0)]}),this[_0x466928(0x2bd)][_0x466928(0x238)](_0x466928(0x243)),this[_0x466928(0x2c1)][_0x466928(0x254)](_0x5d16b8,_0x53ed6d),this[_0x466928(0x2c1)][_0x466928(0x2a1)]({'id':_0x5d16b8,'index':_0x53ed6d,'isActive':!0x0});}[_0x5027f0(0x325)](_0x3645ad,_0x41b7a9,_0x1404ce){const _0xa8c104=_0x5027f0,{reply:_0x1b9832}=this[_0xa8c104(0x1aa)](_0x3645ad),_0x5a42e0=_0x1b9832[_0xa8c104(0x1ac)]({'showDiff':this[_0xa8c104(0x200)]});if(0x1==_0x5a42e0[_0xa8c104(0x219)])return null;const _0x4bdad1=_0x5a42e0[_0xa8c104(0x221)](_0x1ba417=>_0x1ba417[_0xa8c104(0x2d6)]==_0x41b7a9),_0xa5a99f=_0xa8c104(0x1b7)==_0x1404ce?0x1:-0x1;let _0x242ba9=_0x5a42e0['at']((_0x4bdad1+_0xa5a99f)%_0x5a42e0[_0xa8c104(0x219)])[_0xa8c104(0x2d6)],_0x45a6b8=_0x5a42e0[_0x242ba9];for(;!this[_0xa8c104(0x2dc)](_0x3645ad,_0x1b9832,_0x45a6b8);){if(_0x242ba9=_0x5a42e0['at']((_0x242ba9+_0xa5a99f)%_0x5a42e0[_0xa8c104(0x219)])[_0xa8c104(0x2d6)],_0x242ba9===_0x4bdad1)return null;_0x45a6b8=_0x5a42e0[_0x242ba9];}return _0x242ba9;}[_0x5027f0(0x2dc)](_0x57988f,_0x2057c7,_0xb967d1){const _0x4c53bb=_0x5027f0,_0x440797=_0x2057c7[_0x4c53bb(0x2a4)];if(!_0xb967d1[_0x4c53bb(0x1f2)])return null;const _0x39f2ed=_0x440797[_0x4c53bb(0x276)](_0x380056=>_0x380056[_0x4c53bb(0x2d6)]==_0xb967d1[_0x4c53bb(0x2d6)]);if(_0x4c53bb(0x243)!==_0x39f2ed?.[_0x4c53bb(0x299)])return null;const _0x4b7123=this[_0x4c53bb(0x2c9)](_0x57988f,_0xb967d1[_0x4c53bb(0x2d6)]);if(!_0x4b7123)return null;const {range:_0x52f971,currentIndex:_0x23f244}=_0x4b7123;return _0x4c53bb(0x23b)==_0x52f971[_0x4c53bb(0x208)][_0x4c53bb(0x250)]?(_0x2057c7[_0x4c53bb(0x26c)](_0x23f244,_0x4c53bb(0x1ca)),null):_0x4b7123[_0x4c53bb(0x223)];}[_0x5027f0(0x2c9)](_0x393371,_0x1517ab){const _0x315e3f=_0x5027f0,_0x5e8e44=_0x22d5bb(this[_0x315e3f(0x214)]),{reply:_0x57acb8,interaction:_0x58cdc5}=this[_0x315e3f(0x1aa)](_0x393371),_0x81f660=_0x57acb8[_0x315e3f(0x2a4)][_0x315e3f(0x29e)](_0x5aaca9=>_0x315e3f(0x243)==_0x5aaca9[_0x315e3f(0x299)]),_0x2d58b3=_0x81f660[_0x315e3f(0x2f3)](_0x3ff419=>_0x57acb8[_0x315e3f(0x2a4)][_0x315e3f(0x23f)](_0x3ff419));void 0x0===_0x1517ab&&(_0x1517ab=_0x2d58b3[0x0]);const _0x121ae7=_0x2d58b3[_0x315e3f(0x23f)](_0x1517ab);if(-0x1==_0x121ae7)return null;const _0x793827=_0x81f660[_0x121ae7],_0x390dbb=new _0x128a28([]),_0x31a6cf=new _0x128a28([]);for(const _0x1923d5 of _0x793827[_0x315e3f(0x1a6)])if(_0x315e3f(0x1de)!=_0x1923d5[_0x315e3f(0x22f)]&&_0x31a6cf[_0x315e3f(0x2fb)][_0x315e3f(0x32a)](_0x1923d5[_0x315e3f(0x1bb)][_0x315e3f(0x20b)](!0x0)),_0x315e3f(0x245)!=_0x1923d5[_0x315e3f(0x22f)]){const _0xa2cfa0=_0x323a6d(_0x5bb4d=>_0x68ecf9(_0x5bb4d,_0x315e3f(0x264))==_0x1923d5['id'],_0x57acb8[_0x315e3f(0x1fe)],!0x0);_0x390dbb[_0x315e3f(0x2fb)][_0x315e3f(0x32a)](_0xa2cfa0[_0x315e3f(0x20b)](!0x0));}if(0x0==_0x390dbb[_0x315e3f(0x2fb)][_0x315e3f(0x219)]){if(_0x793827[_0x315e3f(0x1a6)][0x0][_0x315e3f(0x228)]){const _0x4fde13=_0x25ed47(_0x315e3f(0x264),_0x793827[_0x315e3f(0x1a6)][0x0][_0x315e3f(0x228)],_0x57acb8[_0x315e3f(0x1fe)]);_0x390dbb[_0x315e3f(0x2fb)][_0x315e3f(0x2eb)](_0x4fde13[_0x315e3f(0x20b)](!0x0)),_0x31a6cf[_0x315e3f(0x2fb)][_0x315e3f(0x2eb)](_0x4fde13[_0x315e3f(0x20b)](!0x0)),_0x4fde13[_0x315e3f(0x315)]&&(_0x390dbb[_0x315e3f(0x2fb)][_0x315e3f(0x32a)](_0x4fde13[_0x315e3f(0x315)][_0x315e3f(0x20b)](!0x0)),_0x31a6cf[_0x315e3f(0x2fb)][_0x315e3f(0x32a)](_0x4fde13[_0x315e3f(0x315)][_0x315e3f(0x20b)](!0x0)));}else{const _0x24188c=_0x57acb8[_0x315e3f(0x1fe)][_0x315e3f(0x2fb)][0x0];if(!_0x24188c)return null;_0x390dbb[_0x315e3f(0x2fb)][_0x315e3f(0x32a)](_0x24188c[_0x315e3f(0x20b)](!0x0)),_0x31a6cf[_0x315e3f(0x2fb)][_0x315e3f(0x32a)](_0x24188c[_0x315e3f(0x20b)](!0x0));}}const _0x10fc85=_0x58cdc5[_0x315e3f(0x32c)](),_0x28a3fe=_0x5e8e44[_0x315e3f(0x1c2)][_0x315e3f(0x2e3)](_0x10fc85[_0x315e3f(0x1eb)]),_0x3763d1=_0x417201(_0x390dbb),_0x107dd2=_0x5e8e44[_0x315e3f(0x1c2)][_0x315e3f(0x2e3)](_0x3763d1),_0x4a3c37=_0x5e8e44[_0x315e3f(0x1c2)][_0x315e3f(0x2e3)](_0x3763d1),_0x2b29ee=_0x5e8e44[_0x315e3f(0x1e0)][_0x315e3f(0x1b2)](_0x107dd2,0x0),_0x5b5752=_0x417201(_0x31a6cf),_0x4cf678={'anchor':_0x2b29ee,'markDeletions':!0x1},_0x37c793=_0x5e8e44[_0x315e3f(0x24a)][_0x315e3f(0x232)](_0x1b0eca)[_0x315e3f(0x206)](_0x3763d1,_0x5b5752,_0x4cf678)[_0x315e3f(0x1c7)]();if(!_0x37c793[_0x315e3f(0x219)])return null;_0x5e8e44[_0x315e3f(0x1e0)][_0x315e3f(0x30a)](_0x906524=>{const _0x3a9c00=_0x315e3f;for(const _0xc75d36 of _0x37c793)if(_0x3a9c00(0x290)==_0xc75d36[_0x3a9c00(0x22f)]){const _0x254970=_0xc75d36[_0x3a9c00(0x1a8)],_0x4be89e=_0xc75d36[_0x3a9c00(0x2d8)],_0x83e501=new _0x568343(_0x254970,_0x4be89e);_0x906524[_0x3a9c00(0x1d6)][_0x3a9c00(0x21f)](_0x83e501),_0x5e8e44[_0x3a9c00(0x1e0)][_0x3a9c00(0x1cc)](_0x83e501);}else _0x3a9c00(0x2c5)!==_0xc75d36[_0x3a9c00(0x22f)]&&(_0xc75d36[_0x3a9c00(0x288)]=null,_0xc75d36[_0x3a9c00(0x28e)]=!0x1,_0x906524[_0x3a9c00(0x1d6)][_0x3a9c00(0x21f)](_0xc75d36),_0x5e8e44[_0x3a9c00(0x1e0)][_0x3a9c00(0x1cc)](_0xc75d36));});const _0x58fb6b=_0x2b3d24(_0x5e8e44,_0x37c793,_0x107dd2);_0x22d854(_0x5e8e44[_0x315e3f(0x1e0)],_0x58fb6b);const _0x573a49=_0x58fb6b[_0x315e3f(0x1ec)]()[_0x315e3f(0x220)][_0x315e3f(0x25b)][_0x315e3f(0x1e5)](),_0x22d568=_0x58fb6b[_0x315e3f(0x1ec)]()[_0x315e3f(0x1d0)][_0x315e3f(0x25b)][_0x315e3f(0x1e5)](),_0x5bc0f9=[];let _0x2e7470=_0x107dd2,_0x32002b=_0x4a3c37;for(let _0x1d95aa=0x0;_0x1d95aa<_0x22d568[_0x315e3f(0x219)];_0x1d95aa++){const _0x378e1b=_0x2e7470[_0x315e3f(0x2c7)]-_0x22d568[_0x1d95aa];_0x5bc0f9[_0x1d95aa]=_0x32002b[_0x315e3f(0x2c7)]-_0x378e1b,_0x2e7470=_0x2e7470[_0x315e3f(0x2e7)](_0x22d568[_0x1d95aa]),_0x32002b=_0x32002b[_0x315e3f(0x2e7)](_0x5bc0f9[_0x1d95aa]);}const _0x135d7d=_0x5e8e44[_0x315e3f(0x1e0)][_0x315e3f(0x21b)](_0x5e8e44[_0x315e3f(0x1e0)][_0x315e3f(0x28b)](_0x4a3c37,_0x573a49),_0x5e8e44[_0x315e3f(0x1e0)][_0x315e3f(0x28b)](_0x4a3c37,_0x5bc0f9)),_0x313ea9=_0x4a3c37[_0x315e3f(0x22a)](0x0)[_0x315e3f(0x2ac)](_0x213e06),_0x599206=Array[_0x315e3f(0x31c)](_0x28a3fe[_0x315e3f(0x271)]())[_0x315e3f(0x276)](_0x1aba9e=>_0x1aba9e[_0x315e3f(0x2ac)](_0x213e06)==_0x313ea9)[_0x315e3f(0x1b6)](),_0xbf1f94=_0x135d7d[_0x315e3f(0x220)][_0x315e3f(0x25b)][_0x315e3f(0x1e5)](),_0x526a6e=_0x135d7d[_0x315e3f(0x1d0)][_0x315e3f(0x25b)][_0x315e3f(0x1e5)]();_0xbf1f94[0x0]=_0x599206[0x0]+_0xbf1f94[0x0],_0x526a6e[0x0]=_0x599206[0x0]+_0x526a6e[0x0];let _0x20c0bc=_0x5e8e44[_0x315e3f(0x1e0)][_0x315e3f(0x21b)](_0x5e8e44[_0x315e3f(0x1e0)][_0x315e3f(0x28b)](_0x5e8e44[_0x315e3f(0x1e0)][_0x315e3f(0x2d1)][_0x315e3f(0x1dc)](),_0xbf1f94),_0x5e8e44[_0x315e3f(0x1e0)][_0x315e3f(0x28b)](_0x5e8e44[_0x315e3f(0x1e0)][_0x315e3f(0x2d1)][_0x315e3f(0x1dc)](),_0x526a6e));const _0x156389=_0x5e8e44[_0x315e3f(0x1e0)][_0x315e3f(0x2d1)][_0x315e3f(0x28c)][_0x315e3f(0x1c7)](_0x10fc85[_0x315e3f(0x316)]);for(const _0x1f5839 of _0x156389)_0x20c0bc=_0x29ade5[_0x315e3f(0x277)](_0x20c0bc[_0x315e3f(0x31a)](_0x1f5839));return{'range':_0x20c0bc,'currentIndex':_0x1517ab};}[_0x5027f0(0x27c)](_0x4a1f4d){const _0x3eedb0=_0x5027f0;if(!_0x4a1f4d[_0x3eedb0(0x24a)][_0x3eedb0(0x2e8)](_0x3eedb0(0x20e)))return;const _0x19a493=_0x4a1f4d[_0x3eedb0(0x308)][_0x3eedb0(0x232)](_0x3eedb0(0x22c)),_0x375845=_0x4a1f4d[_0x3eedb0(0x308)][_0x3eedb0(0x232)](_0x3eedb0(0x257));this[_0x3eedb0(0x280)](_0x19a493,_0x3eedb0(0x1a5),(_0x4bdeff,_0x37a3e7,_0x537a00)=>{const _0x262485=_0x3eedb0,_0x43c4c4=this[_0x262485(0x1b4)][_0x262485(0x232)](_0x37a3e7);if(!_0x43c4c4)return;const _0x5eac72=this[_0x262485(0x1a9)][_0x262485(0x1c0)](_0x43c4c4[_0x262485(0x2d0)])[_0x262485(0x210)](_0x43c4c4[_0x262485(0x320)]);_0x43c4c4[_0x262485(0x283)][_0x262485(0x1f4)](_0x1c1357=>_0x5eac72[_0x262485(0x26c)](_0x1c1357,_0x262485(0x243))),this[_0x262485(0x1b4)][_0x262485(0x1df)](_0x37a3e7),this[_0x262485(0x1b4)][_0x262485(0x1c1)](_0x537a00,_0x43c4c4);}),this[_0x3eedb0(0x280)](_0x375845,_0x3eedb0(0x1a5),(_0x2aa665,_0xe23d22,_0x6e143c)=>{const _0x231fb8=_0x3eedb0,_0x9df0be=this[_0x231fb8(0x1b4)][_0x231fb8(0x232)](_0xe23d22);if(!_0x9df0be)return;const _0x2ef81b=this[_0x231fb8(0x1a9)][_0x231fb8(0x1c0)](_0x9df0be[_0x231fb8(0x2d0)])[_0x231fb8(0x210)](_0x9df0be[_0x231fb8(0x320)]);_0x9df0be[_0x231fb8(0x283)][_0x231fb8(0x1f4)](_0xa85068=>_0x2ef81b[_0x231fb8(0x26c)](_0xa85068,_0x231fb8(0x246))),this[_0x231fb8(0x1b4)][_0x231fb8(0x1df)](_0xe23d22),this[_0x231fb8(0x1b4)][_0x231fb8(0x1c1)](_0x6e143c,_0x9df0be);});}async[_0x5027f0(0x1e4)](_0x521d2c){const _0x1d8095=_0x5027f0;this[_0x1d8095(0x214)][_0x1d8095(0x24a)][_0x1d8095(0x2e8)](_0x1d8095(0x1ba))&&this[_0x1d8095(0x214)][_0x1d8095(0x24a)][_0x1d8095(0x232)](_0x1d8095(0x1ba))[_0x1d8095(0x312)](),(this[_0x1d8095(0x214)][_0x1d8095(0x24a)][_0x1d8095(0x232)](_0x620505)[_0x1d8095(0x258)][_0x1d8095(0x237)](_0x1d8095(0x1d4)),this[_0x1d8095(0x2c1)][_0x1d8095(0x24b)](_0x1d8095(0x24f)),this[_0x1d8095(0x2c1)][_0x1d8095(0x30d)](!0x0),await this[_0x1d8095(0x218)]());try{await this[_0x1d8095(0x1fb)][_0x1d8095(0x29f)](_0x521d2c)[_0x1d8095(0x21e)](),await this[_0x1d8095(0x2d9)](_0x521d2c),this[_0x1d8095(0x213)]('\x20'),await this[_0x1d8095(0x1a9)][_0x1d8095(0x1d9)](_0x521d2c,this[_0x1d8095(0x2fd)][_0x1d8095(0x29c)]),this[_0x1d8095(0x1a9)][_0x1d8095(0x23c)]()&&this[_0x1d8095(0x1cb)]();}catch(_0x2189fb){this[_0x1d8095(0x2c1)][_0x1d8095(0x296)]({'errorMessage':_0x4e370c(this[_0x1d8095(0x214)][_0x1d8095(0x2c2)],_0x1d8095(0x1da)),'id':_0x521d2c}),this[_0x1d8095(0x25c)](new _0x1cac1d(_0x1d8095(0x25d),this,{'error':_0x2189fb}));}finally{this[_0x1d8095(0x2c1)][_0x1d8095(0x1bf)](),this[_0x1d8095(0x2c1)][_0x1d8095(0x24b)](_0x1d8095(0x1ab)),this[_0x1d8095(0x2c1)][_0x1d8095(0x30d)](!0x1);}}async[_0x5027f0(0x204)](){const _0x5a7605=_0x5027f0,_0x4f2857=this[_0x5a7605(0x1fb)][_0x5a7605(0x1c3)](this[_0x5a7605(0x304)](),{'limit':0x1,'sortBy':_0x5a7605(0x2e2)});try{const _0x7453bf=await _0x4f2857[_0x5a7605(0x298)]();return _0x7453bf[_0x5a7605(0x219)]?_0x7453bf[0x0]['id']:_0x5a7605(0x245);}catch(_0x4c85c2){return this[_0x5a7605(0x2c1)][_0x5a7605(0x296)]({'errorMessage':_0x4e370c(this[_0x5a7605(0x214)][_0x5a7605(0x2c2)],_0x5a7605(0x1da)),'id':_0xc400fc()}),this[_0x5a7605(0x25c)](new _0x1cac1d(_0x5a7605(0x235),this,{'error':_0x4c85c2})),this[_0x5a7605(0x2c1)][_0x5a7605(0x30d)](!0x1),this[_0x5a7605(0x2c1)][_0x5a7605(0x1b9)](),null;}}[_0x5027f0(0x225)](_0xe3605d){const _0x4ffbc4=_0x5027f0;this[_0x4ffbc4(0x1a9)]['id']===_0xe3605d&&this[_0x4ffbc4(0x2d9)]();}[_0x5027f0(0x1cb)](){const _0x17cae5=_0x5027f0;this[_0x17cae5(0x1a9)]?.[_0x17cae5(0x28f)](_0x4e370c(this[_0x17cae5(0x214)][_0x17cae5(0x2c2)],_0x17cae5(0x307)));}async[_0x5027f0(0x256)](){const _0x334cf8=_0x5027f0,_0x2452a6=this[_0x334cf8(0x2fd)][_0x334cf8(0x231)]();this[_0x334cf8(0x1a9)]?.[_0x334cf8(0x281)](_0x2452a6),this[_0x334cf8(0x1cb)]();}[_0x5027f0(0x1f0)](){const _0x1da89e=_0x5027f0;this[_0x1da89e(0x1a9)]?.[_0x1da89e(0x2e1)]();}[_0x5027f0(0x1d7)](){const _0x26a183=_0x5027f0;this[_0x26a183(0x2c1)][_0x26a183(0x1d7)]();}async[_0x5027f0(0x28d)](){const _0x116e01=_0x5027f0;await this[_0x116e01(0x2d9)]();}async[_0x5027f0(0x2c3)]({message:_0x12dde6,attributes:_0x202bb5}){const _0x18cb1d=_0x5027f0;await this[_0x18cb1d(0x1fd)]({'userMessage':_0x12dde6,'attributes':_0x202bb5});}[_0x5027f0(0x304)](){const _0xc23f48=_0x5027f0,_0x5a2833=this[_0xc23f48(0x214)][_0xc23f48(0x311)][_0xc23f48(0x232)](_0xc23f48(0x31f));if(!_0x5a2833)throw new _0x1cac1d(_0xc23f48(0x201),this);return _0x5a2833;}async[_0x5027f0(0x2d9)](_0xa8c65c){const _0x39a383=_0x5027f0;try{this[_0x39a383(0x2c1)][_0x39a383(0x252)](),await this[_0x39a383(0x1bc)](_0xa8c65c);}catch(_0x120e05){this[_0x39a383(0x2c1)][_0x39a383(0x296)]({'errorMessage':_0x4e370c(this[_0x39a383(0x214)][_0x39a383(0x2c2)],_0x39a383(0x32e)),'id':_0xa8c65c||_0xc400fc()}),console[_0x39a383(0x30c)](_0x120e05),this[_0x39a383(0x1a9)]=void 0x0,this[_0x39a383(0x2c1)][_0x39a383(0x1b9)]();}}async[_0x5027f0(0x1bc)](_0x161138){const _0x50ffe7=_0x5027f0;let _0x1b2d7e;this[_0x50ffe7(0x214)][_0x50ffe7(0x24a)][_0x50ffe7(0x2e8)](_0x50ffe7(0x1ba))&&this[_0x50ffe7(0x214)][_0x50ffe7(0x24a)][_0x50ffe7(0x232)](_0x50ffe7(0x1ba))[_0x50ffe7(0x312)](),_0x161138||!this[_0x50ffe7(0x1a9)]?_0x1b2d7e=this[_0x50ffe7(0x214)][_0x50ffe7(0x311)][_0x50ffe7(0x232)](_0x50ffe7(0x2d4)):this[_0x50ffe7(0x2c1)][_0x50ffe7(0x279)]&&(_0x1b2d7e=this[_0x50ffe7(0x1a9)][_0x50ffe7(0x1c6)]['id']),await this[_0x50ffe7(0x218)]();const _0x1ea9cd=this[_0x50ffe7(0x304)](),_0x35428a=_0x161138||_0xc400fc();this[_0x50ffe7(0x1a9)]=new _0x126b86({'connector':this[_0x50ffe7(0x1fb)],'chatModels':this[_0x50ffe7(0x230)],'selectedModelId':_0x1b2d7e,'conversationId':_0x35428a,'group':_0x1ea9cd,'getEditor':()=>_0x22d5bb(this[_0x50ffe7(0x214)]),'isFromHistory':!!_0x161138}),this[_0x50ffe7(0x1a9)][_0x50ffe7(0x202)](_0x50ffe7(0x244),_0x50ffe7(0x297))['to'](this),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x2ad),(_0x4e462a,_0x118de5)=>{const _0x2ad52a=_0x50ffe7;this[_0x2ad52a(0x2c1)][_0x2ad52a(0x22b)](_0x118de5),this[_0x2ad52a(0x2c1)][_0x2ad52a(0x2b2)](),this[_0x2ad52a(0x2c1)][_0x2ad52a(0x24d)](),this[_0x2ad52a(0x2c1)][_0x2ad52a(0x2f4)](),_0x161138||(this[_0x2ad52a(0x2c1)][_0x2ad52a(0x273)](),this[_0x2ad52a(0x1cb)]());}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x2b8),(_0x1838c0,_0x32feb4)=>{const _0x316e0e=_0x50ffe7;this[_0x316e0e(0x2c1)][_0x316e0e(0x2f1)](_0x32feb4[_0x316e0e(0x2e6)]);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x2aa),(_0x314ab4,_0x4a60bf)=>{const _0x5f310b=_0x50ffe7;this[_0x5f310b(0x2c1)][_0x5f310b(0x1fc)](_0x4a60bf);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x287),()=>{const _0x422dfb=_0x50ffe7,_0xb45227=this[_0x422dfb(0x2c1)][_0x422dfb(0x2bc)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x422dfb(0x2c1)][_0x422dfb(0x226)](_0xb45227);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x323),()=>{const _0x46be7b=_0x50ffe7,_0x23c5fd=this[_0x46be7b(0x2c1)][_0x46be7b(0x2bc)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x46be7b(0x2c1)][_0x46be7b(0x226)](_0x23c5fd);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x2b0),(_0x19f9c9,_0x277199)=>{const _0x5ce8dc=_0x50ffe7;this[_0x5ce8dc(0x2c1)][_0x5ce8dc(0x1d1)](_0x277199,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x2db),(_0x5af0fe,_0x24b545)=>{const _0x53ab03=_0x50ffe7;this[_0x53ab03(0x2c1)][_0x53ab03(0x1d1)](_0x24b545,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x297),()=>{const _0x15d6d4=_0x50ffe7;this[_0x15d6d4(0x2c1)][_0x15d6d4(0x248)]();}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x313),async()=>{const _0x3c33f2=_0x50ffe7;await this[_0x3c33f2(0x2c1)][_0x3c33f2(0x292)]();}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x327),(_0x1c58a2,_0x154d1b)=>{const _0x3c49e0=_0x50ffe7;this[_0x3c49e0(0x2c1)][_0x3c49e0(0x318)](_0x154d1b['id']);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x2ef),(_0x26b9ec,_0x46748c,_0x55dd8c)=>{const _0x495039=_0x50ffe7;this[_0x495039(0x213)](_0x46748c,_0x55dd8c);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x2ae),(_0x119354,_0x48d092)=>{const _0x2c3a92=_0x50ffe7;_0x2c3a92(0x2a7)===_0x48d092[_0x2c3a92(0x22f)]?this[_0x2c3a92(0x2c1)][_0x2c3a92(0x2ce)](_0x48d092):this[_0x2c3a92(0x2c1)][_0x2c3a92(0x1f1)](_0x48d092);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x2a9),async(_0x2d03e3,_0x48e912)=>{const _0xd5cd0c=_0x50ffe7;await this[_0xd5cd0c(0x1e7)]({'reply':_0x48e912});}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x2b7),(_0x55cd02,{reply:_0x8851db,index:_0x2dcbab,state:_0x35c5bf})=>{const _0x2701a4=_0x50ffe7;this[_0x2701a4(0x2c1)][_0x2701a4(0x1d3)]({'id':_0x8851db['id'],'index':_0x2dcbab,'state':_0x35c5bf}),this[_0x2701a4(0x2a6)]?.[_0x2701a4(0x320)][_0x2701a4(0x1a7)](_0x8851db['id'])&&this[_0x2701a4(0x2a6)]?.[_0x2701a4(0x267)]==_0x2dcbab&&this[_0x2701a4(0x2bd)]?.[_0x2701a4(0x238)](_0x35c5bf);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x2cc),(_0x3f903b,_0x47771e)=>{const _0x21e40a=_0x50ffe7;if(this[_0x21e40a(0x2c1)][_0x21e40a(0x27a)](_0x47771e[_0x21e40a(0x329)],_0x47771e[_0x21e40a(0x20f)]),_0x21e40a(0x20c)===_0x47771e[_0x21e40a(0x329)][_0x21e40a(0x22f)]){const _0x17ed2f=[..._0x22d5bb(this[_0x21e40a(0x214)])[_0x21e40a(0x1e0)][_0x21e40a(0x2d1)][_0x21e40a(0x20c)][_0x21e40a(0x1b1)]()];this[_0x21e40a(0x2fd)][_0x21e40a(0x247)](_0x17ed2f,_0x21e40a(0x2c4)+this[_0x21e40a(0x1a9)]?.['id']);}}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x2b1),(_0x58b39c,_0x422d01)=>{const _0x3a21bc=_0x50ffe7;this[_0x3a21bc(0x2c1)][_0x3a21bc(0x233)](_0x422d01[_0x3a21bc(0x236)]),_0x3a21bc(0x27f)==_0x422d01[_0x3a21bc(0x236)]&&this[_0x3a21bc(0x1f0)](),_0x3a21bc(0x20c)===_0x422d01[_0x3a21bc(0x22f)]&&this[_0x3a21bc(0x2fd)][_0x3a21bc(0x28a)](_0x3a21bc(0x2c4)+this[_0x3a21bc(0x1a9)]?.['id']);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x289),(_0x82092b,_0x239909)=>{const _0x2e1570=_0x50ffe7;this[_0x2e1570(0x2c1)][_0x2e1570(0x269)](_0x239909[_0x2e1570(0x329)][_0x2e1570(0x236)],_0x239909[_0x2e1570(0x20f)]);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x24e),(_0x1490e6,_0x1d3798)=>{const _0x3f02e4=_0x50ffe7;this[_0x3f02e4(0x2c1)][_0x3f02e4(0x216)](_0x1d3798[_0x3f02e4(0x26a)]);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x22d),(_0x500f53,_0x391dbc)=>{const _0x40b19c=_0x50ffe7;this[_0x40b19c(0x2c1)][_0x40b19c(0x2f6)](_0x391dbc[_0x40b19c(0x2f5)]);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x25e),(_0x4dab87,_0x40a04c)=>{const _0x15d708=_0x50ffe7;this[_0x15d708(0x2c1)][_0x15d708(0x2cd)](_0x40a04c[_0x15d708(0x1ef)],_0x40a04c[_0x15d708(0x2cb)],_0x40a04c[_0x15d708(0x32b)],_0x40a04c[_0x15d708(0x2cf)]);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x1dd),(_0x2be9bd,_0xf66d9a)=>{const _0x17d499=_0x50ffe7;this[_0x17d499(0x2c1)][_0x17d499(0x306)](_0xf66d9a[_0x17d499(0x1ef)],_0xf66d9a[_0x17d499(0x1e8)],_0xf66d9a[_0x17d499(0x25a)]);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x1f8),(_0x38485f,_0x327e4d)=>{const _0x3456a9=_0x50ffe7;this[_0x3456a9(0x2c1)][_0x3456a9(0x1b8)](_0x327e4d);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x1f5),async(_0x5b85bd,_0x16b18c)=>{const _0x1c1e39=_0x50ffe7,_0x230a27=(await this[_0x1c1e39(0x230)][_0x1c1e39(0x295)]())[_0x1c1e39(0x276)](_0x13ee6d=>_0x13ee6d['id']===_0x16b18c[_0x1c1e39(0x1c6)]?.['id'])||null;this[_0x1c1e39(0x2c1)][_0x1c1e39(0x229)](_0x230a27,_0x16b18c[_0x1c1e39(0x205)]);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x30c),(_0x56b90b,{error:_0xf38d8c,interactionId:_0x1ca3de,fileName:_0x11d636,url:_0x51e044,sourceId:_0x59cb85,sourceLabel:_0x2f63f8})=>{const _0x5031a0=_0x50ffe7,_0x1abee9=_0x1ca3de?_0x1ca3de+':'+_0xc400fc():_0xc400fc();_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x27e))?this[_0x5031a0(0x2c1)][_0x5031a0(0x27d)]({'staticMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x285)),'id':_0x1abee9}):_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x235))||_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x260))?(this[_0x5031a0(0x2c1)][_0x5031a0(0x296)]({'errorMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x32e)),'id':_0x1abee9}),this[_0x5031a0(0x25c)](_0xf38d8c)):_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x2fa))?this[_0x5031a0(0x2c1)][_0x5031a0(0x296)]({'errorMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x209),_0x11d636),'id':_0x1abee9}):_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x284))?this[_0x5031a0(0x2c1)][_0x5031a0(0x296)]({'errorMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x29a),_0x51e044),'id':_0x1abee9}):_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x31d))?this[_0x5031a0(0x2c1)][_0x5031a0(0x296)]({'errorMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x1e3)),'id':_0x1abee9}):_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x1db))?this[_0x5031a0(0x2c1)][_0x5031a0(0x296)]({'errorMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x303)),'id':_0x1abee9}):_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x30f))?(_0x59cb85&&this[_0x5031a0(0x2c1)][_0x5031a0(0x2ec)](_0x59cb85),this[_0x5031a0(0x2c1)][_0x5031a0(0x296)]({'errorMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x23e),_0x2f63f8||_0x5031a0(0x2cb)),'id':_0x1abee9}),this[_0x5031a0(0x25c)](_0xf38d8c)):_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x328))?(this[_0x5031a0(0x2c1)][_0x5031a0(0x296)]({'errorMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x1be)),'id':_0x1abee9}),this[_0x5031a0(0x25c)](_0xf38d8c)):_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x2a5))?(this[_0x5031a0(0x2c1)][_0x5031a0(0x296)]({'errorMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x222)),'id':_0x1abee9}),this[_0x5031a0(0x25c)](_0xf38d8c)):_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x2bb))?(this[_0x5031a0(0x2c1)][_0x5031a0(0x296)]({'errorMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x215)),'id':_0x1abee9}),this[_0x5031a0(0x25c)](_0xf38d8c)):_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x20d))?(this[_0x5031a0(0x2c1)][_0x5031a0(0x296)]({'errorMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x2dd)),'id':_0x1abee9}),this[_0x5031a0(0x25c)](_0xf38d8c)):_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x2e4))?(this[_0x5031a0(0x2c1)][_0x5031a0(0x296)]({'errorMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x310)),'id':_0x1abee9}),this[_0x5031a0(0x25c)](_0xf38d8c)):_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x1cd))?(this[_0x5031a0(0x2c1)][_0x5031a0(0x296)]({'errorMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x1af)),'id':_0x1abee9}),this[_0x5031a0(0x25c)](_0xf38d8c)):(this[_0x5031a0(0x2c1)][_0x5031a0(0x296)]({'errorMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x274)),'id':_0x1abee9}),this[_0x5031a0(0x25c)](_0xf38d8c));}),await this[_0x50ffe7(0x1a9)][_0x50ffe7(0x234)](this[_0x50ffe7(0x214)][_0x50ffe7(0x311)][_0x50ffe7(0x232)](_0x50ffe7(0x321))),_0x161138||await this[_0x50ffe7(0x1a9)][_0x50ffe7(0x220)]();}async[_0x5027f0(0x1fd)]({userMessage:_0x4c13f6,attributes:_0x39503b}){const _0x49ec95=_0x5027f0;if(!this[_0x49ec95(0x1a9)])throw new _0x1cac1d(_0x49ec95(0x2b3));if(this[_0x49ec95(0x1a9)][_0x49ec95(0x1e2)]()){const _0xce98f8=await this[_0x49ec95(0x2fd)][_0x49ec95(0x253)]();await this[_0x49ec95(0x1a9)][_0x49ec95(0x1ed)](_0xce98f8);}this[_0x49ec95(0x1a9)]['id']&&this[_0x49ec95(0x1a9)][_0x49ec95(0x1ce)]&&await this[_0x49ec95(0x1a9)][_0x49ec95(0x1bd)]({'userMessage':_0x4c13f6,'attributes':_0x39503b});}[_0x5027f0(0x1ff)](){const _0x4fad0d=_0x5027f0;console[_0x4fad0d(0x2b5)](_0x4fad0d(0x319));}[_0x5027f0(0x268)](_0x19f736){const _0x3ed95d=_0x5027f0;this[_0x3ed95d(0x2c1)][_0x3ed95d(0x2a8)](_0x19f736);}[_0x5027f0(0x25c)](_0x27d80d){const _0x5ee159=_0x5027f0;_0x5d39d3(_0x27d80d[_0x5ee159(0x2e9)]);}[_0x5027f0(0x1e6)](_0x4be07a){const _0x3b6c02=_0x5027f0;this[_0x3b6c02(0x1a9)]?.[_0x3b6c02(0x286)](_0x4be07a);}[_0x5027f0(0x2d5)](){const _0x555cbb=_0x5027f0;this[_0x555cbb(0x1a9)]?.[_0x555cbb(0x1e9)]();}[_0x5027f0(0x2d7)](){const _0x3b0955=_0x5027f0;this[_0x3b0955(0x1a9)]?.[_0x3b0955(0x1b5)]();}[_0x5027f0(0x1aa)](_0x1fbd43){const _0x35f1a6=_0x5027f0,[_0x189731,_0xf5ee14]=_0x1fbd43[_0x35f1a6(0x25f)](':'),_0x501d12=this[_0x35f1a6(0x1a9)][_0x35f1a6(0x1c0)](_0x189731),_0x44656f=_0x501d12[_0x35f1a6(0x210)](_0xf5ee14);return{'interaction':_0x501d12,'reply':_0x44656f};}[_0x5027f0(0x2bf)](_0x43cbf5,_0x31d935=!0x1){const _0x514d09=_0x5027f0,_0x481c77=_0x22d5bb(this[_0x514d09(0x214)]),_0x1ba5f1={'target':_0x481c77[_0x514d09(0x20a)][_0x514d09(0x258)][_0x514d09(0x278)][_0x514d09(0x227)](_0x481c77[_0x514d09(0x20a)][_0x514d09(0x2b4)][_0x514d09(0x2ee)](_0x43cbf5)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x31d935};_0x31d935&&(_0x1ba5f1[_0x514d09(0x212)]=!0x0),_0x2d5201(_0x1ba5f1);}[_0x5027f0(0x213)](_0x410831,_0x2b702c=!0x1){const _0x1690fb=_0x5027f0;this[_0x1690fb(0x2c1)][_0x1690fb(0x2ef)](_0x410831||_0x4e370c(this[_0x1690fb(0x214)][_0x1690fb(0x2c2)],_0x1690fb(0x1ee)),_0x2b702c);}async[_0x5027f0(0x1e7)]({reply:_0x49d3e7,renderingStrategy:_0xa62801}){const _0x51f90e=_0x5027f0,{id:_0x345af0,interactionId:_0x238ce8,isDone:_0x373d9d,type:_0x11016e,parsedContent:_0x6cc0be}=_0x49d3e7,_0xf965a7=_0x238ce8+':'+_0x345af0;if(_0x51f90e(0x2af)===_0x11016e){const _0x2ec9fd=_0x49d3e7[_0x51f90e(0x1ac)]({'showDiff':this[_0x51f90e(0x2c1)][_0x51f90e(0x2df)]});await this[_0x51f90e(0x2c1)][_0x51f90e(0x314)]({'id':_0xf965a7,'parts':_0x2ec9fd,'renderingStrategy':_0xa62801,'isDone':_0x373d9d});}else _0x51f90e(0x2a7)===_0x11016e&&await this[_0x51f90e(0x2c1)][_0x51f90e(0x2f0)]({'id':_0xf965a7,'parsedContent':_0x6cc0be,'renderingStrategy':_0xa62801,'isDone':_0x373d9d});_0x373d9d&&_0x49d3e7[_0x51f90e(0x2e5)][_0x51f90e(0x219)]>0x0&&this[_0x51f90e(0x2c1)][_0x51f90e(0x2da)](_0xf965a7,_0x49d3e7[_0x51f90e(0x2e5)]);}async[_0x5027f0(0x218)](){const _0x1913c6=_0x5027f0,_0x2b52a5=this[_0x1913c6(0x1a9)]?.[_0x1913c6(0x263)];_0x2b52a5&&(_0x2b52a5[_0x1913c6(0x31b)](),this[_0x1913c6(0x2c1)][_0x1913c6(0x282)](_0x2b52a5));}async[_0x5027f0(0x261)](){const _0x13bef6=_0x5027f0,_0x590fe2=this[_0x13bef6(0x1a9)]?.[_0x13bef6(0x263)];if(_0x590fe2){for await(const _0x5af297 of _0x590fe2[_0x13bef6(0x2be)])await this[_0x13bef6(0x1e7)]({'reply':_0x5af297,'renderingStrategy':_0x13bef6(0x24f)});}}[_0x5027f0(0x2d2)](_0x31a737){const _0x365923=_0x5027f0,_0x2a2c45={'positiveCount':_0x31a737[_0x365923(0x2a4)][_0x365923(0x29e)](_0x5b0194=>_0x365923(0x246)===_0x5b0194[_0x365923(0x299)])[_0x365923(0x219)],'totalCount':_0x31a737[_0x365923(0x2a4)][_0x365923(0x219)],'modificationId':_0x31a737['id']},_0xdd06ef=this[_0x365923(0x1a9)][_0x365923(0x1c0)](_0x31a737[_0x365923(0x2d0)])[_0x365923(0x305)];_0xdd06ef&&this[_0x365923(0x1fb)][_0x365923(0x2f2)](this[_0x365923(0x1a9)]['id'],_0xdd06ef,_0x2a2c45);}[_0x5027f0(0x2b6)](_0x36d585){const _0x2d398d=_0x5027f0;let _0x4bc403=null,_0x463a40=null;this['on'](_0x2d398d(0x244),(_0x18eb2f,_0x383f35,_0xfa60b)=>{const _0x5b80a2=_0x2d398d;_0xfa60b['id']!==_0x4bc403&&(_0x4bc403=_0xfa60b['id'],_0x463a40=this[_0x5b80a2(0x1d8)](_0xfa60b)),_0x36d585(_0x383f35,_0x463a40);});}[_0x5027f0(0x1d8)](_0x4e4638){const _0x344f20=_0x5027f0,_0x4296ef=this[_0x344f20(0x2c1)],_0x1a4110=()=>{const _0x4c55b1=_0x344f20;_0x4e4638[_0x4c55b1(0x2fe)](),_0x4e4638[_0x4c55b1(0x24c)](),_0x4296ef[_0x4c55b1(0x1c5)]();},_0x3ac5f2=()=>{const _0x172671=_0x344f20;_0x4e4638[_0x172671(0x1e1)]&&(_0x4e4638[_0x172671(0x1e1)][_0x172671(0x2a2)](),_0x4e4638[_0x172671(0x1e1)]=void 0x0);};return{'insertTextReply':(_0x4f1a1a,_0x1066ab)=>{const _0x107bc6=_0x344f20;_0x3ac5f2(),_0x1a4110();const _0x47cebb=_0x4e4638[_0x107bc6(0x1e1)]=_0x4e4638[_0x107bc6(0x2de)]({'type':_0x107bc6(0x2a7),'interactionId':_0x4e4638['id'],'content':_0x4f1a1a,'id':_0x1066ab||_0xc400fc()});return _0x3ac5f2(),_0x47cebb;},'insertCustomElement':async(_0x314e34,_0x596ec9)=>(_0x3ac5f2(),_0x1a4110(),_0x4296ef[_0x344f20(0x26e)](_0x314e34,_0x596ec9||_0xc400fc())),'setLoadingMessage':_0x180ecc=>{const _0x5b2186=_0x344f20;_0x4296ef[_0x5b2186(0x226)](_0x180ecc);},'clearLoadingMessage':()=>{const _0xdaf9d3=_0x344f20;_0x4296ef[_0xdaf9d3(0x1c5)]();}};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x371550=_0x2cfd;(function(_0x2f0c50,_0x3bc0ff){const _0x5cdb94=_0x2cfd,_0x403c23=_0x2f0c50();while(!![]){try{const _0x49784f=parseInt(_0x5cdb94(0x281))/0x1*(-parseInt(_0x5cdb94(0x1fe))/0x2)+parseInt(_0x5cdb94(0x1e3))/0x3*(-parseInt(_0x5cdb94(0x206))/0x4)+-parseInt(_0x5cdb94(0x257))/0x5*(parseInt(_0x5cdb94(0x1fa))/0x6)+-parseInt(_0x5cdb94(0x21d))/0x7*(parseInt(_0x5cdb94(0x1f1))/0x8)+parseInt(_0x5cdb94(0x21f))/0x9+-parseInt(_0x5cdb94(0x23f))/0xa+parseInt(_0x5cdb94(0x20c))/0xb;if(_0x49784f===_0x3bc0ff)break;else _0x403c23['push'](_0x403c23['shift']());}catch(_0x3dfe9c){_0x403c23['push'](_0x403c23['shift']());}}}(_0x6dc5,0x5987a));import{ContextPlugin as _0x1d0f1f}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x5d2f19}from'ckeditor5/src/utils.js';import{AIChatView as _0x3a4af7}from'./ui/aichatview.js';import{AITabs as _0xac0f71}from'../aitabs/aitabs.js';function _0x6dc5(){const _0x298d5a=['AI_CHAT_FEED_LOADING_MESSAGE_REASONING','custom-element','closeSourceResourceBalloon','clear','AI_CHAT_WELCOME_MESSAGE','isReasoningEnabled','clearPendingContextUI','enableControls','_interactionPromiseResolver','stopInteraction','chatControls','_titleAnimationInterval','63400jwgwBc','disableControls','isOfficialPlugin','addFeedItemUserMessage','setConversationTitle','find','_promiseQueue','isVisible','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','_animateConversationTitle','interaction-header','updateSuggestionPartState','scrollToSuggestion','isBusy','updateFeedItemAIReplySources','updateFeedItemAIReplySuggestionContent','isDisabled','fire','isTrackChangesOn','chatHeader','isModelAvailable','isPremiumPlugin','setReasoning','addItem','124720UInRwL','isPending','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','displayedPrompt','ai.chat.welcomeMessage','get','from','removeFeedItem','updateFeedItemAIReplySuggestionPartState','prepareLoadingMessage','updateReplyItem','addFeedItemAISuggestion','context','setWebSearch','setContextItemLoading','delegate','contextItems','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','capabilities','ai.chat.context.searchInputVisibleFrom','addFeedInteractionHeader','config','removeItem','showDiff','addTab','setModelList','addFeedItemError','AI_CHAT_HEADING','chat','resetMessageInput','startInteraction','filter','abort','toggleLoadingSkeleton','attributes','updateCapabilities','AIChatUI','children','setFeedItemAIReplySuggestionPartActive','hasItem','remove','markFeedItemAsDone','7624XvdaBD','setConversationContext','forEach','updateWebSources','ai.models.showModelSelector','trackChanges','bind','addContextItem','populateSourceResourceBalloon','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','<p>','isWebSearchEnabled','interactionId','options','toggleSuggestionDisplayMode','createConversation','finishInteraction','values','areActionsDisabled','hasFeedItem','clearLoadingMessage','</p>','2658wEGjlr','setSelectedModel','last','addFeedItemAIReply','queueEmptyPromise','showResizeButton','view','setModel','plugins','isMaximized','ai.availableReplyActions','setPromptInputValue','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','insertSuggestion','3518072SDSHhu','_view','error-message','resetConversationTitle','ai-suggestion-reply','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','stopAutoScroll','commands','ai-reply','24ZWNeOe','destroy','addFeedItemCustomElement','setSuggestionPartActive','78vWwQHU','TrackChanges','markItemAsDone','has','userMessage','requires','isLoading','streaming','128UWfLZs','label','_getInputPlaceholder','value','updateSuggestionItem','startsWith','11516725jOvhfJ','conversation-start','length','_isTrackChangesCommandValueBound','clearConversationContextUI','setLoadingMessage','updateResourceState','setAddContextOptions','feedItemRenderingStrategy','conversationCreated','renderingStrategy','removeContextItem','chatFeed','availableModels','startAutoScroll','setInputPlaceholder','addFeedItemStaticMessage','7iAwUas','pluginName','1721718pMnbGq','isDone','scrollFeedToSuggestion','set','enqueue','enableModelSelector','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','updateFeedItemAIReplyContent','removeFeedInteraction','setIsMaximized','setFeedItemRenderingStrategy','focusPromptInput','updateFeedInteractionHeader','disableModelSelector','getItemIds','locale','setIsUploadInProgress','then','AITabs','user-message'];_0x6dc5=function(){return _0x298d5a;};return _0x6dc5();}import{getTranslation as _0x1aecdb}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x3c43f7}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x19b61b}from'./ui/feed/aichatfeedinteractionheaderview.js';function _0x2cfd(_0x358a1a,_0x38994f){const _0x6dc5e9=_0x6dc5();return _0x2cfd=function(_0x2cfd0c,_0xdb29cb){_0x2cfd0c=_0x2cfd0c-0x1e1;let _0x4db65e=_0x6dc5e9[_0x2cfd0c];return _0x4db65e;},_0x2cfd(_0x358a1a,_0x38994f);}import{PromiseQueue as _0xce8bbf}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x52cbbc}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0xd538e}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x5970c4}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x1d0f1f{static get[_0x371550(0x203)](){return[_0xac0f71];}[_0x371550(0x1f2)];static get[_0x371550(0x21e)](){const _0x56ab75=_0x371550;return _0x56ab75(0x27b);}static get[_0x371550(0x241)](){return!0x0;}static get[_0x371550(0x254)](){return!0x0;}[_0x371550(0x214)]=_0x371550(0x205);[_0x371550(0x26e)]=!0x0;[_0x371550(0x245)];[_0x371550(0x23b)];[_0x371550(0x23e)]=void 0x0;[_0x371550(0x20f)]=!0x1;constructor(_0xf4c829){const _0xea671=_0x371550;super(_0xf4c829);const _0x1ff5b1=this[_0xea671(0x263)][_0xea671(0x1eb)][_0xea671(0x25c)](_0xea671(0x231));this[_0xea671(0x222)](_0xea671(0x24c),!0x1),this[_0xea671(0x245)]=new _0xce8bbf(),this[_0xea671(0x1f2)]=new _0x3a4af7(this[_0xea671(0x263)][_0xea671(0x22e)],{'showResizeButton':_0x1ff5b1[_0xea671(0x1e8)],'contextResourcesSearchInputVisibleFrom':this[_0xea671(0x263)][_0xea671(0x26c)][_0xea671(0x25c)](_0xea671(0x26a))}),this[_0xea671(0x1f2)][_0xea671(0x266)](..._0x52cbbc)['to'](this),this[_0xea671(0x1f2)]['on'](_0xea671(0x28f),(_0x3df196,{showDiff:_0x5a1b55})=>{const _0x5aa1b6=_0xea671;this[_0x5aa1b6(0x26e)]=_0x5a1b55;}),_0x1ff5b1[_0xea671(0x1e9)][_0xea671(0x26f)]({'id':_0xea671(0x273),'buttonLabel':_0x1aecdb(this[_0xea671(0x263)][_0xea671(0x22e)],_0xea671(0x272)),'buttonIcon':_0x3c43f7,'order':0x0,'content':this[_0xea671(0x1f2)]}),this[_0xea671(0x1f2)][_0xea671(0x23d)][_0xea671(0x287)](_0xea671(0x204))['to'](this,_0xea671(0x24c),_0x2cde52=>_0x2cde52),this[_0xea671(0x1f2)][_0xea671(0x218)][_0xea671(0x287)](_0xea671(0x258))['to'](this,_0xea671(0x24c),_0x2322a0=>_0x2322a0),this[_0xea671(0x1f2)][_0xea671(0x23d)][_0xea671(0x21b)](this[_0xea671(0x208)]()),this[_0xea671(0x287)](_0xea671(0x253))['to'](this[_0xea671(0x1f2)][_0xea671(0x23d)],_0xea671(0x253));}[_0x371550(0x1fb)](){const _0x4f6187=_0x371550;super[_0x4f6187(0x1fb)](),this[_0x4f6187(0x23e)]&&clearInterval(this[_0x4f6187(0x23e)]);}[_0x371550(0x290)](_0x2fa347){const _0x237938=_0x371550,_0x3b6f58=this[_0x237938(0x263)][_0x237938(0x26c)][_0x237938(0x25c)](_0x237938(0x25b))??_0x1aecdb(this[_0x237938(0x263)][_0x237938(0x22e)],_0x237938(0x237));this[_0x237938(0x1f2)][_0x237938(0x218)][_0x237938(0x236)](),this[_0x237938(0x1f2)][_0x237938(0x23d)][_0x237938(0x224)](),this[_0x237938(0x1f2)][_0x237938(0x23d)][_0x237938(0x270)](_0x2fa347[_0x237938(0x219)],!this[_0x237938(0x263)][_0x237938(0x26c)][_0x237938(0x25c)](_0x237938(0x285))),this[_0x237938(0x21c)]({'id':_0x237938(0x20d),'staticMessage':_0x3b6f58}),this[_0x237938(0x250)](_0x237938(0x215));}[_0x371550(0x21c)]({id:_0x533aa4,staticMessage:_0x1fa86b}){const _0x6e5670=_0x371550;this[_0x6e5670(0x1f2)][_0x6e5670(0x218)][_0x6e5670(0x256)](_0x6e5670(0x1f9),{'id':_0x533aa4,'initialContent':_0x6e5670(0x28b)+_0x1fa86b+_0x6e5670(0x1e2)});}[_0x371550(0x242)](_0x31f19f){const _0x2091c3=_0x371550,_0x456845=_0x31f19f[_0x2091c3(0x279)]?.[_0x2091c3(0x25a)]||_0x31f19f[_0x2091c3(0x202)];this[_0x2091c3(0x1f2)][_0x2091c3(0x218)][_0x2091c3(0x256)](_0x2091c3(0x232),{'contextItems':Array[_0x2091c3(0x25d)](_0x31f19f[_0x2091c3(0x267)][_0x2091c3(0x292)]()),'initialContent':_0x2091c3(0x28b)+_0x456845+_0x2091c3(0x1e2),'id':_0x31f19f['id']});}[_0x371550(0x271)]({errorMessage:_0x3297a4,id:_0xea70a0}){const _0x502749=_0x371550;this[_0x502749(0x1f2)][_0x502749(0x218)][_0x502749(0x256)](_0x502749(0x1f3),{'initialContent':_0x502749(0x28b)+_0x3297a4+_0x502749(0x1e2),'id':_0xea70a0});}[_0x371550(0x1e6)](_0x53ca86){const _0x138e30=_0x371550;return this[_0x138e30(0x245)][_0x138e30(0x223)](async()=>{const _0x5be332=_0x138e30;this[_0x5be332(0x1f2)][_0x5be332(0x218)][_0x5be332(0x256)](_0x5be332(0x1f9),{'id':_0x53ca86[_0x5be332(0x28d)]+':'+_0x53ca86['id']}),this[_0x5be332(0x1e1)]();});}async[_0x371550(0x262)](_0x5393ef){const _0x2af656=_0x371550,_0x522fd9=_0xd538e(this[_0x2af656(0x263)]);let _0x1a813c=_0x522fd9[_0x2af656(0x26c)][_0x2af656(0x25c)](_0x2af656(0x1ed))||[..._0x5970c4];if(_0x522fd9[_0x2af656(0x1eb)][_0x2af656(0x201)](_0x2af656(0x1ff))){if(!this[_0x2af656(0x20f)]){this[_0x2af656(0x20f)]=!0x0;const _0x11b452=_0x522fd9[_0x2af656(0x1f8)][_0x2af656(0x25c)](_0x2af656(0x286));this[_0x2af656(0x1f2)][_0x2af656(0x218)][_0x2af656(0x287)](_0x2af656(0x251))['to'](_0x11b452,_0x2af656(0x209));}}else _0x1a813c=_0x1a813c[_0x2af656(0x276)](_0xa7ee81=>_0x2af656(0x1f0)!=_0xa7ee81);return this[_0x2af656(0x245)][_0x2af656(0x223)](async()=>{const _0x4c80aa=_0x2af656;this[_0x4c80aa(0x1f2)][_0x4c80aa(0x218)][_0x4c80aa(0x256)](_0x4c80aa(0x1f5),{'id':_0x5393ef[_0x4c80aa(0x28d)]+':'+_0x5393ef['id'],'areActionsDisabled':_0x5393ef[_0x4c80aa(0x293)],'showDiff':this[_0x4c80aa(0x26e)],'availableActions':_0x1a813c}),this[_0x4c80aa(0x1e1)]();});}[_0x371550(0x26b)](_0xdc8df3,_0x3c5664){const _0x2bd4b0=_0x371550,_0x30329d=this[_0x2bd4b0(0x1f2)][_0x2bd4b0(0x218)][_0x2bd4b0(0x27c)][_0x2bd4b0(0x1e5)];if(_0x30329d instanceof _0x19b61b)return this[_0x2bd4b0(0x1f2)][_0x2bd4b0(0x218)][_0x2bd4b0(0x27c)][_0x2bd4b0(0x27f)](_0x30329d),void this[_0x2bd4b0(0x1f2)][_0x2bd4b0(0x218)][_0x2bd4b0(0x256)](_0x2bd4b0(0x249),{'id':_0xdc8df3['id'],'capabilities':{'isWebSearchEnabled':_0x30329d[_0x2bd4b0(0x269)][_0x2bd4b0(0x28c)]||_0x3c5664[_0x2bd4b0(0x28c)],'isReasoningEnabled':_0x30329d[_0x2bd4b0(0x269)][_0x2bd4b0(0x238)]||_0x3c5664[_0x2bd4b0(0x238)]}});this[_0x2bd4b0(0x1f2)][_0x2bd4b0(0x218)][_0x2bd4b0(0x256)](_0x2bd4b0(0x249),{'id':_0xdc8df3['id'],'capabilities':_0x3c5664});}async[_0x371550(0x1fc)](_0x15637e,_0x4e268f){const _0x49795f=_0x371550;let _0x20d5a9;return await this[_0x49795f(0x245)][_0x49795f(0x223)](async()=>{const _0x18f6ab=_0x49795f;_0x20d5a9=this[_0x18f6ab(0x1f2)][_0x18f6ab(0x218)][_0x18f6ab(0x256)](_0x18f6ab(0x234),{'content':_0x15637e,'id':_0x4e268f});}),_0x20d5a9;}[_0x371550(0x25e)](_0x58bd3e){const _0x218e91=_0x371550;this[_0x218e91(0x1f2)][_0x218e91(0x218)][_0x218e91(0x26d)](_0x58bd3e);}[_0x371550(0x294)](_0x585937){const _0x389a2b=_0x371550;return this[_0x389a2b(0x1f2)][_0x389a2b(0x218)][_0x389a2b(0x27e)](_0x585937);}[_0x371550(0x22b)](_0x1608da){const _0x5ebcc5=_0x371550,_0x254200=this[_0x5ebcc5(0x1f2)][_0x5ebcc5(0x218)][_0x5ebcc5(0x27c)][_0x5ebcc5(0x244)](_0x1d6a5c=>_0x1d6a5c[_0x5ebcc5(0x28e)]['id']==_0x1608da['id']&&_0x1d6a5c instanceof _0x19b61b);_0x254200&&_0x254200[_0x5ebcc5(0x222)](_0x5ebcc5(0x246),_0x1608da[_0x5ebcc5(0x246)]);}async[_0x371550(0x226)](_0x543292){const _0x521aaa=_0x371550,_0x42f198=_0x543292[_0x521aaa(0x216)]||this[_0x521aaa(0x214)];return this[_0x521aaa(0x245)][_0x521aaa(0x223)](async _0x26ab6e=>{const _0x398737=_0x521aaa;await this[_0x398737(0x1f2)][_0x398737(0x218)][_0x398737(0x261)]({..._0x543292,'abortSignal':_0x26ab6e,'renderingStrategy':_0x42f198}),_0x543292[_0x398737(0x220)]&&this[_0x398737(0x280)](_0x543292['id']);});}[_0x371550(0x24d)](_0x58b401,_0x1bf69c){const _0x2d66b0=_0x371550;this[_0x2d66b0(0x1f2)][_0x2d66b0(0x218)][_0x2d66b0(0x284)](_0x58b401,_0x1bf69c);}async[_0x371550(0x24e)](_0x274bd4){const _0x4a12ac=_0x371550,_0x210f99=_0x274bd4[_0x4a12ac(0x216)]||this[_0x4a12ac(0x214)];return this[_0x4a12ac(0x245)][_0x4a12ac(0x223)](async _0x408d55=>{const _0x350481=_0x4a12ac;await this[_0x350481(0x1f2)][_0x350481(0x218)][_0x350481(0x20a)]({..._0x274bd4,'abortSignal':_0x408d55,'renderingStrategy':_0x210f99}),_0x274bd4[_0x350481(0x220)]&&this[_0x350481(0x280)](_0x274bd4['id']);});}[_0x371550(0x25f)](_0xf64b5){const _0x5cc946=_0x371550;this[_0x5cc946(0x1f2)][_0x5cc946(0x218)][_0x5cc946(0x24a)](_0xf64b5);}[_0x371550(0x27d)](_0x5f0019){const _0x21d89b=_0x371550;this[_0x21d89b(0x1f2)][_0x21d89b(0x218)][_0x21d89b(0x1fd)](_0x5f0019);}[_0x371550(0x280)](_0x3ea85c){const _0x4d4189=_0x371550;this[_0x4d4189(0x1f2)][_0x4d4189(0x218)][_0x4d4189(0x200)](_0x3ea85c);}[_0x371550(0x227)](_0x4bf460){const _0x402899=_0x371550;this[_0x402899(0x1f2)][_0x402899(0x218)][_0x402899(0x22d)]()[_0x402899(0x276)](_0x1c8554=>_0x1c8554[_0x402899(0x20b)](_0x4bf460))[_0x402899(0x283)](_0x42c989=>this[_0x402899(0x1f2)][_0x402899(0x218)][_0x402899(0x26d)](_0x42c989));}[_0x371550(0x275)](){const _0x1e4851=_0x371550,_0x10cbe8=this[_0x1e4851(0x260)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x1e4851(0x211)](_0x10cbe8),this[_0x1e4851(0x1f2)][_0x1e4851(0x23d)][_0x1e4851(0x22c)](!this[_0x1e4851(0x263)][_0x1e4851(0x26c)][_0x1e4851(0x25c)](_0x1e4851(0x285))),this[_0x1e4851(0x24c)]=!0x0,this[_0x1e4851(0x1f2)][_0x1e4851(0x218)][_0x1e4851(0x21a)]();}[_0x371550(0x23c)](_0x322e76){const _0x303809=_0x371550;this[_0x303809(0x245)][_0x303809(0x277)](),this[_0x303809(0x1f2)][_0x303809(0x218)][_0x303809(0x22d)]()[_0x303809(0x276)](_0x5e53f2=>_0x5e53f2[_0x303809(0x20b)](_0x322e76['id']))[_0x303809(0x283)](_0x5c7660=>this[_0x303809(0x280)](_0x5c7660)),this[_0x303809(0x24c)]=!0x1,this[_0x303809(0x1f2)][_0x303809(0x218)][_0x303809(0x1f7)]();}async[_0x371550(0x291)](){const _0x4125df=_0x371550;return this[_0x4125df(0x245)][_0x4125df(0x1e7)][_0x4125df(0x230)](()=>{const _0xbb12dc=_0x4125df;this[_0xbb12dc(0x24c)]=!0x1,this[_0xbb12dc(0x1f2)][_0xbb12dc(0x218)][_0xbb12dc(0x1f7)]();});}[_0x371550(0x288)](_0x170a19,_0x1dda81){const _0x4871d2=_0x371550;this[_0x4871d2(0x1f2)][_0x4871d2(0x23d)][_0x4871d2(0x288)](_0x170a19,_0x1dda81);}[_0x371550(0x217)](_0x4bf696){const _0x22192f=_0x371550;this[_0x22192f(0x1f2)][_0x22192f(0x23d)][_0x22192f(0x217)](_0x4bf696);}[_0x371550(0x265)](_0x5a46cd,_0x154628){const _0xe7cbf7=_0x371550;this[_0xe7cbf7(0x1f2)][_0xe7cbf7(0x23d)][_0xe7cbf7(0x265)](_0x5a46cd,_0x154628);}[_0x371550(0x22f)](_0x17b056){const _0x8f1828=_0x371550;this[_0x8f1828(0x1f2)][_0x8f1828(0x23d)][_0x8f1828(0x22f)](_0x17b056);}[_0x371550(0x282)](_0x9f3262){const _0x38deac=_0x371550;this[_0x38deac(0x1f2)][_0x38deac(0x23d)][_0x38deac(0x282)](_0x9f3262);}[_0x371550(0x239)](){const _0x3f131f=_0x371550;this[_0x3f131f(0x1f2)][_0x3f131f(0x23d)][_0x3f131f(0x239)]();}[_0x371550(0x210)](){const _0x5b2b7a=_0x371550;this[_0x5b2b7a(0x1f2)][_0x5b2b7a(0x23d)][_0x5b2b7a(0x210)]();}[_0x371550(0x212)](_0x5304b8,_0x200473,_0x53f803){const _0x36b809=_0x371550;this[_0x36b809(0x1f2)][_0x36b809(0x23d)][_0x36b809(0x212)](_0x5304b8,_0x200473,_0x53f803);}[_0x371550(0x274)](){const _0x2aacd8=_0x371550;this[_0x2aacd8(0x1f2)][_0x2aacd8(0x23d)][_0x2aacd8(0x274)](),this[_0x2aacd8(0x1f2)][_0x2aacd8(0x23d)][_0x2aacd8(0x21b)](this[_0x2aacd8(0x208)]());}[_0x371550(0x213)](_0x325298){const _0x84c6b0=_0x371550;this[_0x84c6b0(0x1f2)][_0x84c6b0(0x23d)][_0x84c6b0(0x213)](_0x325298);}[_0x371550(0x27a)](_0x53af0e){const _0x4d1f00=_0x371550;this[_0x4d1f00(0x1f2)][_0x4d1f00(0x23d)][_0x4d1f00(0x264)](_0x53af0e[_0x4d1f00(0x28c)]),this[_0x4d1f00(0x1f2)][_0x4d1f00(0x23d)][_0x4d1f00(0x255)](_0x53af0e[_0x4d1f00(0x238)]),this[_0x4d1f00(0x1f2)][_0x4d1f00(0x23d)][_0x4d1f00(0x21b)](this[_0x4d1f00(0x208)](_0x53af0e));}[_0x371550(0x1e4)](_0x170978,_0x545ccd){const _0x5b3226=_0x371550;this[_0x5b3226(0x1f2)][_0x5b3226(0x23d)][_0x5b3226(0x1ea)](_0x170978),_0x545ccd&&this[_0x5b3226(0x1f2)][_0x5b3226(0x23d)][_0x5b3226(0x22c)](!0x1);}[_0x371550(0x229)](_0x2cb039){const _0xdd5130=_0x371550;this[_0xdd5130(0x214)]=_0x2cb039;}[_0x371550(0x278)](_0x173914){const _0x5278da=_0x371550;this[_0x5278da(0x1f2)][_0x5278da(0x218)][_0x5278da(0x278)](_0x173914);}[_0x371550(0x1f4)](){const _0x2d3378=_0x371550;this[_0x2d3378(0x243)](_0x1aecdb(this[_0x2d3378(0x263)][_0x2d3378(0x22e)],_0x2d3378(0x272)));}[_0x371550(0x243)](_0x5bdbc5,_0x249258=!0x1){const _0x306e73=_0x371550;if(_0x249258&&!_0x5d2f19()&&_0x5bdbc5[_0x306e73(0x20e)])return this[_0x306e73(0x1f2)][_0x306e73(0x252)][_0x306e73(0x207)]='',void this[_0x306e73(0x248)](_0x5bdbc5);this[_0x306e73(0x1f2)][_0x306e73(0x252)][_0x306e73(0x207)]=_0x5bdbc5;}[_0x371550(0x211)](_0x240a0b){const _0x33c4ff=_0x371550;this[_0x33c4ff(0x1f2)][_0x33c4ff(0x218)][_0x33c4ff(0x211)](_0x240a0b);}[_0x371550(0x1e1)](){const _0x47164b=_0x371550;this[_0x47164b(0x1f2)][_0x47164b(0x218)][_0x47164b(0x211)]('');}[_0x371550(0x248)](_0x127bbb){const _0x506b26=_0x371550;let _0x23e78a=0x0;clearInterval(this[_0x506b26(0x23e)]),this[_0x506b26(0x23e)]=setInterval(()=>{const _0x1175ff=_0x506b26;this[_0x1175ff(0x1f2)][_0x1175ff(0x252)][_0x1175ff(0x207)]=this[_0x1175ff(0x1f2)][_0x1175ff(0x252)][_0x1175ff(0x207)]+_0x127bbb[_0x23e78a],_0x23e78a++,_0x23e78a===_0x127bbb[_0x1175ff(0x20e)]&&clearInterval(this[_0x1175ff(0x23e)]);},0x1e);}[_0x371550(0x228)](_0x2277d2){const _0x3bd073=_0x371550;this[_0x3bd073(0x1f2)][_0x3bd073(0x252)][_0x3bd073(0x1ec)]=_0x2277d2;}[_0x371550(0x260)](_0x5982c6){const _0x2ac5a4=_0x371550;return _0x5982c6[_0x2ac5a4(0x28c)]&&_0x5982c6[_0x2ac5a4(0x238)]?_0x1aecdb(this[_0x2ac5a4(0x263)][_0x2ac5a4(0x22e)],_0x2ac5a4(0x247)):_0x5982c6[_0x2ac5a4(0x28c)]?_0x1aecdb(this[_0x2ac5a4(0x263)][_0x2ac5a4(0x22e)],_0x2ac5a4(0x268)):_0x5982c6[_0x2ac5a4(0x238)]?_0x1aecdb(this[_0x2ac5a4(0x263)][_0x2ac5a4(0x22e)],_0x2ac5a4(0x233)):_0x1aecdb(this[_0x2ac5a4(0x263)][_0x2ac5a4(0x22e)],_0x2ac5a4(0x28a));}[_0x371550(0x208)](_0x163c33){const _0x596096=_0x371550;return _0x163c33?_0x163c33[_0x596096(0x28c)]&&_0x163c33[_0x596096(0x238)]?_0x1aecdb(this[_0x596096(0x263)][_0x596096(0x22e)],_0x596096(0x225)):_0x163c33[_0x596096(0x28c)]?_0x1aecdb(this[_0x596096(0x263)][_0x596096(0x22e)],_0x596096(0x1f6)):_0x163c33[_0x596096(0x238)]?_0x1aecdb(this[_0x596096(0x263)][_0x596096(0x22e)],_0x596096(0x1ef)):_0x1aecdb(this[_0x596096(0x263)][_0x596096(0x22e)],_0x596096(0x259)):_0x1aecdb(this[_0x596096(0x263)][_0x596096(0x22e)],_0x596096(0x259));}[_0x371550(0x289)](_0x3052bd,_0x29f880,_0xfc6fae,_0x5c1148){const _0x3b6278=_0x371550;this[_0x3b6278(0x1f2)][_0x3b6278(0x289)](_0x3052bd,_0x29f880,_0xfc6fae,_0x5c1148);}[_0x371550(0x235)](_0x4b8282){const _0x40ee7b=_0x371550;this[_0x40ee7b(0x1f2)][_0x40ee7b(0x235)](_0x4b8282);}[_0x371550(0x1ee)](_0x4a8f77){const _0x5ad791=_0x371550;this[_0x5ad791(0x1f2)][_0x5ad791(0x23d)][_0x5ad791(0x1ee)](_0x4a8f77);}[_0x371550(0x22a)](_0x502b90=!0x1){const _0xef5f74=_0x371550;this[_0xef5f74(0x1f2)][_0xef5f74(0x23d)][_0xef5f74(0x22a)](_0x502b90);}[_0x371550(0x221)](_0x4dfd92,_0x12b1b4){const _0x57af7f=_0x371550;this[_0x57af7f(0x1f2)][_0x57af7f(0x218)][_0x57af7f(0x24b)](_0x4dfd92,_0x12b1b4);}[_0x371550(0x21a)](){const _0x5b6586=_0x371550;this[_0x5b6586(0x1f2)][_0x5b6586(0x218)][_0x5b6586(0x21a)]();}[_0x371550(0x240)](){const _0x401297=_0x371550;this[_0x401297(0x1f2)][_0x401297(0x23d)][_0x401297(0x24f)]=!0x0;}[_0x371550(0x23a)](){const _0x4a1265=_0x371550;this[_0x4a1265(0x1f2)][_0x4a1265(0x23d)][_0x4a1265(0x24f)]=!0x1;}}
23
+ const _0x6176ee=_0x3372;(function(_0x330b34,_0x3f6a03){const _0x4e8583=_0x3372,_0x1daa2d=_0x330b34();while(!![]){try{const _0x5ab1b3=parseInt(_0x4e8583(0x134))/0x1*(parseInt(_0x4e8583(0x1a7))/0x2)+-parseInt(_0x4e8583(0x14b))/0x3*(parseInt(_0x4e8583(0x1c8))/0x4)+parseInt(_0x4e8583(0x1d2))/0x5+parseInt(_0x4e8583(0x1a6))/0x6*(-parseInt(_0x4e8583(0x1e4))/0x7)+-parseInt(_0x4e8583(0x1d7))/0x8+-parseInt(_0x4e8583(0x17e))/0x9*(parseInt(_0x4e8583(0x163))/0xa)+parseInt(_0x4e8583(0x1a9))/0xb;if(_0x5ab1b3===_0x3f6a03)break;else _0x1daa2d['push'](_0x1daa2d['shift']());}catch(_0x2b52ff){_0x1daa2d['push'](_0x1daa2d['shift']());}}}(_0x2c6e,0xe8ada));function _0x3372(_0x146efa,_0x4c2446){const _0x2c6e2a=_0x2c6e();return _0x3372=function(_0x3372dc,_0x413e4b){_0x3372dc=_0x3372dc-0x133;let _0x52d912=_0x2c6e2a[_0x3372dc];return _0x52d912;},_0x3372(_0x146efa,_0x4c2446);}import{ContextPlugin as _0x1569d2}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x528ce3}from'ckeditor5/src/utils.js';import{AIChatView as _0x5e1a78}from'./ui/aichatview.js';function _0x2c6e(){const _0x2f0755=['isReasoningEnabled','updateFeedInteractionHeader','setFeedItemRenderingStrategy','locale','_getInputPlaceholder','interaction-header','config','renderingStrategy','populateSourceResourceBalloon','ai.availableReplyActions','isPending','<p>','88lcodXs','updateReplyItem','setPromptInputValue','isPremiumPlugin','from','TrackChanges','AI_CHAT_WELCOME_MESSAGE','updateCapabilities','enqueue','updateFeedItemAIReplyContent','3640075vcryXs','value','remove','focusPromptInput','markFeedItemAsDone','13083760ToOQSF','isLoading','AIChatUI','chatControls','setModel','addFeedItemAISuggestion','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','destroy','_animateConversationTitle','displayedPrompt','isModelAvailable','toggleSuggestionDisplayMode','view','70826EXHwgI','isOfficialPlugin','interactionId','conversation-start','404945YGgLpa','enableModelSelector','last','chatHeader','requires','updateSuggestionItem','set','toggleLoadingSkeleton','user-message','resetMessageInput','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','AITabs','get','custom-element','abort','startInteraction','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','streaming','plugins','contextItems','areActionsDisabled','options','showResizeButton','247404DpYbKP','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','removeContextItem','disableControls','length','setIsUploadInProgress','updateSuggestionPartState','setSelectedModel','_isTrackChangesCommandValueBound','filter','updateFeedItemAIReplySources','setReasoning','ai.chat.context.searchInputVisibleFrom','updateResourceState','AI_CHAT_HEADING','conversationCreated','finishInteraction','feedItemRenderingStrategy','isMaximized','setFeedItemAIReplySuggestionPartActive','isDisabled','_titleAnimationInterval','has','queueEmptyPromise','5903990oeDSUG','context','trackChanges','createConversation','find','addFeedItemStaticMessage','forEach','hasFeedItem','addItem','clearLoadingMessage','stopInteraction','addFeedItemUserMessage','capabilities','setInputPlaceholder','addFeedItemAIReply','isDone','attributes','</p>','isWebSearchEnabled','startsWith','removeFeedItem','ai.models.showModelSelector','pluginName','setConversationTitle','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','clearConversationContextUI','setWebSearch','9NoHUEQ','clear','enableControls','setConversationContext','updateFeedItemAIReplySuggestionContent','insertSuggestion','isTrackChangesOn','then','setLoadingMessage','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','setSuggestionPartActive','addFeedItemCustomElement','startAutoScroll','stopAutoScroll','ai-reply','scrollFeedToSuggestion','commands','error-message','setContextItemLoading','fire','chatFeed','bind','userMessage','showDiff','setIsMaximized','getItemIds','addFeedInteractionHeader','chat','hasItem','updateWebSources','setAddContextOptions','_interactionPromiseResolver','children','closeSourceResourceBalloon','addContextItem','_view','addFeedItemError','isBusy','prepareLoadingMessage','delegate','516gtofWR','2EhHMLX','removeItem','52034433GcAfRj','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','clearPendingContextUI','ai.chat.welcomeMessage','removeFeedInteraction','scrollToSuggestion','markItemAsDone','label','disableModelSelector','ai-suggestion-reply','addTab','availableModels','updateFeedItemAIReplySuggestionPartState','resetConversationTitle','isVisible','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','setModelList','values','_promiseQueue'];_0x2c6e=function(){return _0x2f0755;};return _0x2c6e();}import{AITabs as _0x1b72fe}from'../aitabs/aitabs.js';import{getTranslation as _0x14725c}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x306729}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x1be2dc}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x232a0b}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3ddcd3}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0xb3b154}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x5b5cb1}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x1569d2{static get[_0x6176ee(0x138)](){return[_0x1b72fe];}[_0x6176ee(0x1a1)];static get[_0x6176ee(0x179)](){const _0x513d3c=_0x6176ee;return _0x513d3c(0x1d9);}static get[_0x6176ee(0x1e5)](){return!0x0;}static get[_0x6176ee(0x1cb)](){return!0x0;}[_0x6176ee(0x15c)]=_0x6176ee(0x145);[_0x6176ee(0x195)]=!0x0;[_0x6176ee(0x1bb)];[_0x6176ee(0x19d)];[_0x6176ee(0x160)]=void 0x0;[_0x6176ee(0x153)]=!0x1;constructor(_0xf3cb99){const _0x423615=_0x6176ee;super(_0xf3cb99);const _0x30d50d=this[_0x423615(0x164)][_0x423615(0x146)][_0x423615(0x140)](_0x423615(0x13f));this[_0x423615(0x13a)](_0x423615(0x1a3),!0x1),this[_0x423615(0x1bb)]=new _0x232a0b(),this[_0x423615(0x1a1)]=new _0x5e1a78(this[_0x423615(0x164)][_0x423615(0x1bf)],{'showResizeButton':_0x30d50d[_0x423615(0x14a)],'contextResourcesSearchInputVisibleFrom':this[_0x423615(0x164)][_0x423615(0x1c2)][_0x423615(0x140)](_0x423615(0x157))}),this[_0x423615(0x1a1)][_0x423615(0x1a5)](..._0x3ddcd3)['to'](this),this[_0x423615(0x1a1)]['on'](_0x423615(0x1e2),(_0x4917f1,{showDiff:_0x8b5343})=>{const _0x2a7857=_0x423615;this[_0x2a7857(0x195)]=_0x8b5343;}),_0x30d50d[_0x423615(0x1e3)][_0x423615(0x1b3)]({'id':_0x423615(0x199),'buttonLabel':_0x14725c(this[_0x423615(0x164)][_0x423615(0x1bf)],_0x423615(0x159)),'buttonIcon':_0x306729,'order':0x0,'content':this[_0x423615(0x1a1)]}),this[_0x423615(0x1a1)][_0x423615(0x1da)][_0x423615(0x193)](_0x423615(0x1d8))['to'](this,_0x423615(0x1a3),_0x96e94e=>_0x96e94e),this[_0x423615(0x1a1)][_0x423615(0x192)][_0x423615(0x193)](_0x423615(0x1c6))['to'](this,_0x423615(0x1a3),_0x51fdc1=>_0x51fdc1),this[_0x423615(0x1a1)][_0x423615(0x1da)][_0x423615(0x170)](this[_0x423615(0x1c0)]()),this[_0x423615(0x193)](_0x423615(0x1e1))['to'](this[_0x423615(0x1a1)][_0x423615(0x1da)],_0x423615(0x1e1));}[_0x6176ee(0x1de)](){const _0x2878cc=_0x6176ee;super[_0x2878cc(0x1de)](),this[_0x2878cc(0x160)]&&clearInterval(this[_0x2878cc(0x160)]);}[_0x6176ee(0x166)](_0x430fd6){const _0x459b2b=_0x6176ee,_0x56f416=this[_0x459b2b(0x164)][_0x459b2b(0x1c2)][_0x459b2b(0x140)](_0x459b2b(0x1ac))??_0x14725c(this[_0x459b2b(0x164)][_0x459b2b(0x1bf)],_0x459b2b(0x1ce));this[_0x459b2b(0x1a1)][_0x459b2b(0x192)][_0x459b2b(0x17f)](),this[_0x459b2b(0x1a1)][_0x459b2b(0x1da)][_0x459b2b(0x135)](),this[_0x459b2b(0x1a1)][_0x459b2b(0x1da)][_0x459b2b(0x1b9)](_0x430fd6[_0x459b2b(0x1b4)],!this[_0x459b2b(0x164)][_0x459b2b(0x1c2)][_0x459b2b(0x140)](_0x459b2b(0x178))),this[_0x459b2b(0x168)]({'id':_0x459b2b(0x133),'staticMessage':_0x56f416}),this[_0x459b2b(0x191)](_0x459b2b(0x15a));}[_0x6176ee(0x168)]({id:_0x5c399d,staticMessage:_0x1b581e}){const _0xa0dada=_0x6176ee;this[_0xa0dada(0x1a1)][_0xa0dada(0x192)][_0xa0dada(0x16b)](_0xa0dada(0x18c),{'id':_0x5c399d,'initialContent':_0xa0dada(0x1c7)+_0x1b581e+_0xa0dada(0x174)});}[_0x6176ee(0x16e)](_0xcfceeb){const _0xfbe76a=_0x6176ee,_0x83cc8a=_0xcfceeb[_0xfbe76a(0x173)]?.[_0xfbe76a(0x1e0)]||_0xcfceeb[_0xfbe76a(0x194)];this[_0xfbe76a(0x1a1)][_0xfbe76a(0x192)][_0xfbe76a(0x16b)](_0xfbe76a(0x13c),{'contextItems':Array[_0xfbe76a(0x1cc)](_0xcfceeb[_0xfbe76a(0x147)][_0xfbe76a(0x1ba)]()),'initialContent':_0xfbe76a(0x1c7)+_0x83cc8a+_0xfbe76a(0x174),'id':_0xcfceeb['id']});}[_0x6176ee(0x1a2)]({errorMessage:_0x333121,id:_0x1efd07}){const _0x448de7=_0x6176ee;this[_0x448de7(0x1a1)][_0x448de7(0x192)][_0x448de7(0x16b)](_0x448de7(0x18f),{'initialContent':_0x448de7(0x1c7)+_0x333121+_0x448de7(0x174),'id':_0x1efd07});}[_0x6176ee(0x171)](_0x3e0c18){const _0x445668=_0x6176ee;return this[_0x445668(0x1bb)][_0x445668(0x1d0)](async()=>{const _0x33437c=_0x445668;this[_0x33437c(0x1a1)][_0x33437c(0x192)][_0x33437c(0x16b)](_0x33437c(0x18c),{'id':_0x3e0c18[_0x33437c(0x1e6)]+':'+_0x3e0c18['id']}),this[_0x33437c(0x16c)]();});}async[_0x6176ee(0x1dc)](_0x416653){const _0x3c8f4b=_0x6176ee,_0x326c72=_0xb3b154(this[_0x3c8f4b(0x164)]);let _0x5f49f0=_0x326c72[_0x3c8f4b(0x1c2)][_0x3c8f4b(0x140)](_0x3c8f4b(0x1c5))||[..._0x5b5cb1];if(_0x326c72[_0x3c8f4b(0x146)][_0x3c8f4b(0x161)](_0x3c8f4b(0x1cd))){if(!this[_0x3c8f4b(0x153)]){this[_0x3c8f4b(0x153)]=!0x0;const _0x9e09f1=_0x326c72[_0x3c8f4b(0x18e)][_0x3c8f4b(0x140)](_0x3c8f4b(0x165));this[_0x3c8f4b(0x1a1)][_0x3c8f4b(0x192)][_0x3c8f4b(0x193)](_0x3c8f4b(0x184))['to'](_0x9e09f1,_0x3c8f4b(0x1d3));}}else _0x5f49f0=_0x5f49f0[_0x3c8f4b(0x154)](_0x12f09b=>_0x3c8f4b(0x183)!=_0x12f09b);return this[_0x3c8f4b(0x1bb)][_0x3c8f4b(0x1d0)](async()=>{const _0x36b366=_0x3c8f4b;this[_0x36b366(0x1a1)][_0x36b366(0x192)][_0x36b366(0x16b)](_0x36b366(0x1b2),{'id':_0x416653[_0x36b366(0x1e6)]+':'+_0x416653['id'],'areActionsDisabled':_0x416653[_0x36b366(0x148)],'showDiff':this[_0x36b366(0x195)],'availableActions':_0x5f49f0}),this[_0x36b366(0x16c)]();});}[_0x6176ee(0x198)](_0x3b0493,_0x5ba4b8){const _0x1f17a5=_0x6176ee,_0x508704=this[_0x1f17a5(0x1a1)][_0x1f17a5(0x192)][_0x1f17a5(0x19e)][_0x1f17a5(0x136)];if(_0x508704 instanceof _0x1be2dc)return this[_0x1f17a5(0x1a1)][_0x1f17a5(0x192)][_0x1f17a5(0x19e)][_0x1f17a5(0x1d4)](_0x508704),void this[_0x1f17a5(0x1a1)][_0x1f17a5(0x192)][_0x1f17a5(0x16b)](_0x1f17a5(0x1c1),{'id':_0x3b0493['id'],'capabilities':{'isWebSearchEnabled':_0x508704[_0x1f17a5(0x16f)][_0x1f17a5(0x175)]||_0x5ba4b8[_0x1f17a5(0x175)],'isReasoningEnabled':_0x508704[_0x1f17a5(0x16f)][_0x1f17a5(0x1bc)]||_0x5ba4b8[_0x1f17a5(0x1bc)]}});this[_0x1f17a5(0x1a1)][_0x1f17a5(0x192)][_0x1f17a5(0x16b)](_0x1f17a5(0x1c1),{'id':_0x3b0493['id'],'capabilities':_0x5ba4b8});}async[_0x6176ee(0x189)](_0x330de9,_0x40fb13){const _0x589265=_0x6176ee;let _0xbafbad;return await this[_0x589265(0x1bb)][_0x589265(0x1d0)](async()=>{const _0x3705ca=_0x589265;_0xbafbad=this[_0x3705ca(0x1a1)][_0x3705ca(0x192)][_0x3705ca(0x16b)](_0x3705ca(0x141),{'content':_0x330de9,'id':_0x40fb13});}),_0xbafbad;}[_0x6176ee(0x177)](_0x5aae1b){const _0x38f87a=_0x6176ee;this[_0x38f87a(0x1a1)][_0x38f87a(0x192)][_0x38f87a(0x1a8)](_0x5aae1b);}[_0x6176ee(0x16a)](_0x367ad4){const _0x3c6438=_0x6176ee;return this[_0x3c6438(0x1a1)][_0x3c6438(0x192)][_0x3c6438(0x19a)](_0x367ad4);}[_0x6176ee(0x1bd)](_0x57cd34){const _0x167208=_0x6176ee,_0xf7b64c=this[_0x167208(0x1a1)][_0x167208(0x192)][_0x167208(0x19e)][_0x167208(0x167)](_0x3ddb3b=>_0x3ddb3b[_0x167208(0x149)]['id']==_0x57cd34['id']&&_0x3ddb3b instanceof _0x1be2dc);_0xf7b64c&&_0xf7b64c[_0x167208(0x13a)](_0x167208(0x1b7),_0x57cd34[_0x167208(0x1b7)]);}async[_0x6176ee(0x1d1)](_0x382487){const _0x456289=_0x6176ee,_0x3ef3e6=_0x382487[_0x456289(0x1c3)]||this[_0x456289(0x15c)];return this[_0x456289(0x1bb)][_0x456289(0x1d0)](async _0x14e4b4=>{const _0x42a398=_0x456289;await this[_0x42a398(0x1a1)][_0x42a398(0x192)][_0x42a398(0x1c9)]({..._0x382487,'abortSignal':_0x14e4b4,'renderingStrategy':_0x3ef3e6}),_0x382487[_0x42a398(0x172)]&&this[_0x42a398(0x1d6)](_0x382487['id']);});}[_0x6176ee(0x155)](_0x1a13d2,_0x3d66e6){const _0x1894b9=_0x6176ee;this[_0x1894b9(0x1a1)][_0x1894b9(0x192)][_0x1894b9(0x19b)](_0x1a13d2,_0x3d66e6);}async[_0x6176ee(0x182)](_0x4110a7){const _0x15561b=_0x6176ee,_0x50e8c8=_0x4110a7[_0x15561b(0x1c3)]||this[_0x15561b(0x15c)];return this[_0x15561b(0x1bb)][_0x15561b(0x1d0)](async _0x246d1e=>{const _0x25c137=_0x15561b;await this[_0x25c137(0x1a1)][_0x25c137(0x192)][_0x25c137(0x139)]({..._0x4110a7,'abortSignal':_0x246d1e,'renderingStrategy':_0x50e8c8}),_0x4110a7[_0x25c137(0x172)]&&this[_0x25c137(0x1d6)](_0x4110a7['id']);});}[_0x6176ee(0x1b5)](_0x3607ab){const _0x1991fb=_0x6176ee;this[_0x1991fb(0x1a1)][_0x1991fb(0x192)][_0x1991fb(0x151)](_0x3607ab);}[_0x6176ee(0x15e)](_0xb88e58){const _0x10f148=_0x6176ee;this[_0x10f148(0x1a1)][_0x10f148(0x192)][_0x10f148(0x188)](_0xb88e58);}[_0x6176ee(0x1d6)](_0x9b3874){const _0x36f9bf=_0x6176ee;this[_0x36f9bf(0x1a1)][_0x36f9bf(0x192)][_0x36f9bf(0x1af)](_0x9b3874);}[_0x6176ee(0x1ad)](_0x4a1fea){const _0x18869e=_0x6176ee;this[_0x18869e(0x1a1)][_0x18869e(0x192)][_0x18869e(0x197)]()[_0x18869e(0x154)](_0x52ad8b=>_0x52ad8b[_0x18869e(0x176)](_0x4a1fea))[_0x18869e(0x169)](_0x2cef57=>this[_0x18869e(0x1a1)][_0x18869e(0x192)][_0x18869e(0x1a8)](_0x2cef57));}[_0x6176ee(0x143)](){const _0x3a6123=_0x6176ee,_0x349840=this[_0x3a6123(0x1a4)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x3a6123(0x186)](_0x349840),this[_0x3a6123(0x1a1)][_0x3a6123(0x1da)][_0x3a6123(0x1b1)](!this[_0x3a6123(0x164)][_0x3a6123(0x1c2)][_0x3a6123(0x140)](_0x3a6123(0x178))),this[_0x3a6123(0x1a3)]=!0x0,this[_0x3a6123(0x1a1)][_0x3a6123(0x192)][_0x3a6123(0x18a)]();}[_0x6176ee(0x16d)](_0x28e7ec){const _0x1da42b=_0x6176ee;this[_0x1da42b(0x1bb)][_0x1da42b(0x142)](),this[_0x1da42b(0x1a1)][_0x1da42b(0x192)][_0x1da42b(0x197)]()[_0x1da42b(0x154)](_0x5d3d65=>_0x5d3d65[_0x1da42b(0x176)](_0x28e7ec['id']))[_0x1da42b(0x169)](_0x2b4387=>this[_0x1da42b(0x1d6)](_0x2b4387)),this[_0x1da42b(0x1a3)]=!0x1,this[_0x1da42b(0x1a1)][_0x1da42b(0x192)][_0x1da42b(0x18b)]();}async[_0x6176ee(0x15b)](){const _0x2be500=_0x6176ee;return this[_0x2be500(0x1bb)][_0x2be500(0x162)][_0x2be500(0x185)](()=>{const _0x11a149=_0x2be500;this[_0x11a149(0x1a3)]=!0x1,this[_0x11a149(0x1a1)][_0x11a149(0x192)][_0x11a149(0x18b)]();});}[_0x6176ee(0x1a0)](_0x3f1cbb,_0x3b2736){const _0xa29896=_0x6176ee;this[_0xa29896(0x1a1)][_0xa29896(0x1da)][_0xa29896(0x1a0)](_0x3f1cbb,_0x3b2736);}[_0x6176ee(0x14d)](_0x1ab714){const _0x469bb8=_0x6176ee;this[_0x469bb8(0x1a1)][_0x469bb8(0x1da)][_0x469bb8(0x14d)](_0x1ab714);}[_0x6176ee(0x190)](_0x139771,_0x3bcaa5){const _0x192d83=_0x6176ee;this[_0x192d83(0x1a1)][_0x192d83(0x1da)][_0x192d83(0x190)](_0x139771,_0x3bcaa5);}[_0x6176ee(0x150)](_0x302fec){const _0x80c778=_0x6176ee;this[_0x80c778(0x1a1)][_0x80c778(0x1da)][_0x80c778(0x150)](_0x302fec);}[_0x6176ee(0x181)](_0x2f8d56){const _0x31e5cd=_0x6176ee;this[_0x31e5cd(0x1a1)][_0x31e5cd(0x1da)][_0x31e5cd(0x181)](_0x2f8d56);}[_0x6176ee(0x1ab)](){const _0x459309=_0x6176ee;this[_0x459309(0x1a1)][_0x459309(0x1da)][_0x459309(0x1ab)]();}[_0x6176ee(0x17c)](){const _0x44849a=_0x6176ee;this[_0x44849a(0x1a1)][_0x44849a(0x1da)][_0x44849a(0x17c)]();}[_0x6176ee(0x158)](_0xd983b8,_0x10c61f,_0x5204ee){const _0x466d1f=_0x6176ee;this[_0x466d1f(0x1a1)][_0x466d1f(0x1da)][_0x466d1f(0x158)](_0xd983b8,_0x10c61f,_0x5204ee);}[_0x6176ee(0x13d)](){const _0x19bfa8=_0x6176ee;this[_0x19bfa8(0x1a1)][_0x19bfa8(0x1da)][_0x19bfa8(0x13d)](),this[_0x19bfa8(0x1a1)][_0x19bfa8(0x1da)][_0x19bfa8(0x170)](this[_0x19bfa8(0x1c0)]());}[_0x6176ee(0x19c)](_0x8f028d){const _0x3ea6d0=_0x6176ee;this[_0x3ea6d0(0x1a1)][_0x3ea6d0(0x1da)][_0x3ea6d0(0x19c)](_0x8f028d);}[_0x6176ee(0x1cf)](_0x850559){const _0x548a1c=_0x6176ee;this[_0x548a1c(0x1a1)][_0x548a1c(0x1da)][_0x548a1c(0x17d)](_0x850559[_0x548a1c(0x175)]),this[_0x548a1c(0x1a1)][_0x548a1c(0x1da)][_0x548a1c(0x156)](_0x850559[_0x548a1c(0x1bc)]),this[_0x548a1c(0x1a1)][_0x548a1c(0x1da)][_0x548a1c(0x170)](this[_0x548a1c(0x1c0)](_0x850559));}[_0x6176ee(0x152)](_0x531099,_0x279a9b){const _0xf7a342=_0x6176ee;this[_0xf7a342(0x1a1)][_0xf7a342(0x1da)][_0xf7a342(0x1db)](_0x531099),_0x279a9b&&this[_0xf7a342(0x1a1)][_0xf7a342(0x1da)][_0xf7a342(0x1b1)](!0x1);}[_0x6176ee(0x1be)](_0x5aa570){const _0x128f59=_0x6176ee;this[_0x128f59(0x15c)]=_0x5aa570;}[_0x6176ee(0x13b)](_0x544f4a){const _0x51ef6d=_0x6176ee;this[_0x51ef6d(0x1a1)][_0x51ef6d(0x192)][_0x51ef6d(0x13b)](_0x544f4a);}[_0x6176ee(0x1b6)](){const _0x4849cd=_0x6176ee;this[_0x4849cd(0x17a)](_0x14725c(this[_0x4849cd(0x164)][_0x4849cd(0x1bf)],_0x4849cd(0x159)));}[_0x6176ee(0x17a)](_0x38c819,_0x52914e=!0x1){const _0x300b5b=_0x6176ee;if(_0x52914e&&!_0x528ce3()&&_0x38c819[_0x300b5b(0x14f)])return this[_0x300b5b(0x1a1)][_0x300b5b(0x137)][_0x300b5b(0x1b0)]='',void this[_0x300b5b(0x1df)](_0x38c819);this[_0x300b5b(0x1a1)][_0x300b5b(0x137)][_0x300b5b(0x1b0)]=_0x38c819;}[_0x6176ee(0x186)](_0x36f530){const _0x3bddbe=_0x6176ee;this[_0x3bddbe(0x1a1)][_0x3bddbe(0x192)][_0x3bddbe(0x186)](_0x36f530);}[_0x6176ee(0x16c)](){const _0x5507da=_0x6176ee;this[_0x5507da(0x1a1)][_0x5507da(0x192)][_0x5507da(0x186)]('');}[_0x6176ee(0x1df)](_0x5c23df){const _0x72b48a=_0x6176ee;let _0x18754a=0x0;clearInterval(this[_0x72b48a(0x160)]),this[_0x72b48a(0x160)]=setInterval(()=>{const _0x1fc0d7=_0x72b48a;this[_0x1fc0d7(0x1a1)][_0x1fc0d7(0x137)][_0x1fc0d7(0x1b0)]=this[_0x1fc0d7(0x1a1)][_0x1fc0d7(0x137)][_0x1fc0d7(0x1b0)]+_0x5c23df[_0x18754a],_0x18754a++,_0x18754a===_0x5c23df[_0x1fc0d7(0x14f)]&&clearInterval(this[_0x1fc0d7(0x160)]);},0x1e);}[_0x6176ee(0x196)](_0x33c2e0){const _0xe54f81=_0x6176ee;this[_0xe54f81(0x1a1)][_0xe54f81(0x137)][_0xe54f81(0x15d)]=_0x33c2e0;}[_0x6176ee(0x1a4)](_0x10bc35){const _0x5c12cf=_0x6176ee;return _0x10bc35[_0x5c12cf(0x175)]&&_0x10bc35[_0x5c12cf(0x1bc)]?_0x14725c(this[_0x5c12cf(0x164)][_0x5c12cf(0x1bf)],_0x5c12cf(0x1dd)):_0x10bc35[_0x5c12cf(0x175)]?_0x14725c(this[_0x5c12cf(0x164)][_0x5c12cf(0x1bf)],_0x5c12cf(0x187)):_0x10bc35[_0x5c12cf(0x1bc)]?_0x14725c(this[_0x5c12cf(0x164)][_0x5c12cf(0x1bf)],_0x5c12cf(0x13e)):_0x14725c(this[_0x5c12cf(0x164)][_0x5c12cf(0x1bf)],_0x5c12cf(0x14c));}[_0x6176ee(0x1c0)](_0x3f8d15){const _0x1e6551=_0x6176ee;return _0x3f8d15?_0x3f8d15[_0x1e6551(0x175)]&&_0x3f8d15[_0x1e6551(0x1bc)]?_0x14725c(this[_0x1e6551(0x164)][_0x1e6551(0x1bf)],_0x1e6551(0x1aa)):_0x3f8d15[_0x1e6551(0x175)]?_0x14725c(this[_0x1e6551(0x164)][_0x1e6551(0x1bf)],_0x1e6551(0x17b)):_0x3f8d15[_0x1e6551(0x1bc)]?_0x14725c(this[_0x1e6551(0x164)][_0x1e6551(0x1bf)],_0x1e6551(0x144)):_0x14725c(this[_0x1e6551(0x164)][_0x1e6551(0x1bf)],_0x1e6551(0x1b8)):_0x14725c(this[_0x1e6551(0x164)][_0x1e6551(0x1bf)],_0x1e6551(0x1b8));}[_0x6176ee(0x1c4)](_0xa3dd50,_0x1125c6,_0x5e04d7,_0x4474ba){const _0x213f1e=_0x6176ee;this[_0x213f1e(0x1a1)][_0x213f1e(0x1c4)](_0xa3dd50,_0x1125c6,_0x5e04d7,_0x4474ba);}[_0x6176ee(0x19f)](_0x2d2d35){const _0x2377e0=_0x6176ee;this[_0x2377e0(0x1a1)][_0x2377e0(0x19f)](_0x2d2d35);}[_0x6176ee(0x1ca)](_0x52fb2f){const _0x4968ef=_0x6176ee;this[_0x4968ef(0x1a1)][_0x4968ef(0x1da)][_0x4968ef(0x1ca)](_0x52fb2f);}[_0x6176ee(0x1d5)](_0x596dbd=!0x1){const _0x341069=_0x6176ee;this[_0x341069(0x1a1)][_0x341069(0x1da)][_0x341069(0x1d5)](_0x596dbd);}[_0x6176ee(0x18d)](_0x3f2ae5,_0x10fbd2){const _0x1ad9ac=_0x6176ee;this[_0x1ad9ac(0x1a1)][_0x1ad9ac(0x192)][_0x1ad9ac(0x1ae)](_0x3f2ae5,_0x10fbd2);}[_0x6176ee(0x18a)](){const _0xdded36=_0x6176ee;this[_0xdded36(0x1a1)][_0xdded36(0x192)][_0xdded36(0x18a)]();}[_0x6176ee(0x14e)](){const _0x3e0fd2=_0x6176ee;this[_0x3e0fd2(0x1a1)][_0x3e0fd2(0x1da)][_0x3e0fd2(0x15f)]=!0x0;}[_0x6176ee(0x180)](){const _0x5ca518=_0x6176ee;this[_0x5ca518(0x1a1)][_0x5ca518(0x1da)][_0x5ca518(0x15f)]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xad7835=_0x3028;(function(_0x1e7c14,_0x110294){const _0x5e8ab4=_0x3028,_0x71f4cc=_0x1e7c14();while(!![]){try{const _0x1a9011=-parseInt(_0x5e8ab4(0x1f2))/0x1*(parseInt(_0x5e8ab4(0x21f))/0x2)+parseInt(_0x5e8ab4(0x1b9))/0x3+-parseInt(_0x5e8ab4(0x23a))/0x4+parseInt(_0x5e8ab4(0x20f))/0x5+parseInt(_0x5e8ab4(0x1bc))/0x6+-parseInt(_0x5e8ab4(0x20d))/0x7*(-parseInt(_0x5e8ab4(0x1b8))/0x8)+-parseInt(_0x5e8ab4(0x1af))/0x9*(parseInt(_0x5e8ab4(0x200))/0xa);if(_0x1a9011===_0x110294)break;else _0x71f4cc['push'](_0x71f4cc['shift']());}catch(_0x18aa94){_0x71f4cc['push'](_0x71f4cc['shift']());}}}(_0x4f03,0x49697));function _0x3028(_0x24349b,_0x3e89e2){const _0x4f033a=_0x4f03();return _0x3028=function(_0x3028a8,_0x26c02b){_0x3028a8=_0x3028a8-0x1a8;let _0x74b2be=_0x4f033a[_0x3028a8];return _0x74b2be;},_0x3028(_0x24349b,_0x3e89e2);}import{CKEditorError as _0x3c6ee9,ObservableMixin as _0x1a3f49,uid as _0x486623}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x531066,AIContextTextResourceType as _0xae2625}from'../../aicore/model/aicontext.js';import{escape as _0x2c07c6}from'es-toolkit/compat';function _0x4f03(){const _0xf80330=['_conversationContextItems','242936SdVihV','resourceStateChanged','customItems','isReadOnly','isCurrentDocumentInContext','filter','map','find','updateCurrentDocument','name','131913GxGhmR','delete','attributes','toolName','hidden','_finishContextItemLoading','addFilesToContext','contextItemLoadingEnded','_isResourceInContext','8jGECdz','744060AGJoEz','push','SELECTION','567570BIKuMs','sourceResourcesLoaded','addToolItemToContext','loadSourceResources','ai-chat-source-resources-load-failed','end','clearPendingContextItems','contextSent','_pendingContextItems','url','forEach','start','files','uploadFile','_finishUploadOperation','uploadProgressChanged','ai-chat-file-upload-failed','addToConversationContext','URL','_updateResourceInContextState','object','uploadDocument','_ongoingUploadOperations','urls','values','sources','addContextOptionsChanged','text/markdown','code','version','MARKDOWN','resourceId','current-document','addSelectionToContext','files-','getData','ai-request-aborted','contextItemAdded','_createContextItemFromContent','document','contextItemRemoved','addCurrentDocumentToContext','mapContextItemsToRequestData','_convertTextResourceToFile','_addContextOptionsState','uiId','file-','abortController','isHidden','FILE','data','isSelectionInContext','_connector','_toggleAddCurrentDocumentOptionVisibility','18vKRLwb','ai-chat-context-unsupported-type','message','_addContextItem','getPendingContextItems','string','set','mcpServerName','isInContext','ai-chat-source-not-found','_mapContextItemToRequestData','content','enabled','fire','340ltktvJ','_findSourceIdsByResourceId','error','stack','resources','from','getSentContextItems','ai-chat-resource-no-data','isCurrentDocumentInConversation','startsWith','Current\x20document','addUrlToContext','getDocument','3687719YBbMqi','init','2092685lktrPv','ai-chat-resource-load-failed','TOOL','_setAddContextOptionsDefaultState','_addToConversationContextItem','abort','selection','DOCUMENT','get','_getCustomSourcesInitialState','uploadUrl','_ongoingUploads','label','populateFromMessage','ai-chat-context-invalid-data','text/plain','47578BAhfet','HTML','ai-chat-document-upload-failed','getResources','fetchDocument','_ownerId','_startUploadOperation','ai-chat-url-upload-failed','TEXT','removeFromContext','url-','substring','has','getId','_removeContextItem','type','text/html','length','removeSelectionFromContext','_config','sessionId','File','object\x20with\x20content\x20and\x20type\x20properties','addResourceToContext','size','all'];_0x4f03=function(){return _0xf80330;};return _0x4f03();}import{errorsMap as _0x535922}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0xad7835(0x1e1),_0xad7835(0x1e4),_0xad7835(0x1b6),_0xad7835(0x1c3),_0xad7835(0x202),_0xad7835(0x1d6),_0xad7835(0x1bd),_0xad7835(0x23b),_0xad7835(0x1cb)];export class AIChatContext extends _0x1a3f49(){[_0xad7835(0x1f0)];[_0xad7835(0x232)];[_0xad7835(0x224)];constructor({connector:_0x328865,config:_0x23c34b,ownerId:_0x2d2434}){const _0x3de386=_0xad7835;super(),this[_0x3de386(0x1f0)]=_0x328865,this[_0x3de386(0x232)]=_0x23c34b,this[_0x3de386(0x224)]=_0x2d2434;}[_0xad7835(0x20e)](){const _0x5c9f77=_0xad7835;this[_0x5c9f77(0x1c4)]=new Map(),this[_0x5c9f77(0x239)]=new Map(),this[_0x5c9f77(0x21a)]=new Map(),this[_0x5c9f77(0x1d2)]=new Map(),this[_0x5c9f77(0x212)]();}[_0xad7835(0x1f6)](){const _0x278da0=_0xad7835;return this[_0x278da0(0x1c4)];}async[_0xad7835(0x21c)](_0x4b3a2b){const _0x1e4e84=_0xad7835,_0x4c05d8=await this[_0x1e4e84(0x1e2)](_0x4b3a2b);return this[_0x1e4e84(0x213)](_0x4c05d8),_0x1e4e84(0x1dc)===_0x4c05d8[_0x1e4e84(0x1e9)]&&this[_0x1e4e84(0x1f1)](),_0x4c05d8;}async[_0xad7835(0x1e2)](_0x5c9067){const _0x27dc65=_0xad7835;if(_0x5c9067[_0x27dc65(0x22e)]===_0x531066[_0x27dc65(0x216)]){const _0x5afb40=await this[_0x27dc65(0x1f0)][_0x27dc65(0x223)](this[_0x27dc65(0x224)],_0x5c9067['id'])[_0x27dc65(0x20c)]();return{'id':_0x27dc65(0x1dc),'uiId':_0x27dc65(0x1dc),'label':_0x27dc65(0x20a),'type':_0x5c9067[_0x27dc65(0x22e)],'content':_0x5afb40[_0x27dc65(0x1fd)],'hidden':this[_0x27dc65(0x239)][_0x27dc65(0x22b)](_0x27dc65(0x1dc)),'version':_0x5afb40[_0x27dc65(0x1b1)]?.[_0x27dc65(0x1d9)],'sessionId':_0x5afb40[_0x27dc65(0x1b1)]?.[_0x27dc65(0x233)]};}if(_0x5c9067[_0x27dc65(0x22e)]===_0x531066[_0x27dc65(0x211)])return{'id':_0x5c9067['id'],'uiId':_0x5c9067['id'],'label':_0x5c9067[_0x27dc65(0x1ee)]?.[_0x27dc65(0x21b)]||_0x5c9067['id'],'type':_0x531066[_0x27dc65(0x211)],'mcpServerName':_0x5c9067[_0x27dc65(0x1f9)],'toolName':_0x5c9067[_0x27dc65(0x1b2)],'data':_0x5c9067[_0x27dc65(0x1ee)]||{}};return{'id':_0x5c9067['id'],'uiId':_0x5c9067['id'],'label':_0x5c9067[_0x27dc65(0x1b1)]?.[_0x27dc65(0x21b)]||_0x5c9067[_0x27dc65(0x1ae)]||_0x5c9067[_0x27dc65(0x1c5)]||_0x5c9067['id'],'type':_0x5c9067[_0x27dc65(0x22e)],..._0x5c9067?.[_0x27dc65(0x1b1)]?.[_0x27dc65(0x1db)]?{'resourceId':_0x5c9067[_0x27dc65(0x1b1)]?.[_0x27dc65(0x1db)]}:{}};}[_0xad7835(0x206)](){const _0x3da9f7=_0xad7835;return new Map(this[_0x3da9f7(0x239)]);}[_0xad7835(0x228)](_0x1035c5){const _0x2ac05c=_0xad7835,_0x59cf30=this[_0x2ac05c(0x1c4)][_0x2ac05c(0x217)](_0x1035c5);_0x59cf30?.[_0x2ac05c(0x1a8)]||this[_0x2ac05c(0x22d)](_0x1035c5);}[_0xad7835(0x1c2)](){const _0x3e0975=_0xad7835;if(0x0===this[_0x3e0975(0x1c4)][_0x3e0975(0x237)])return;for(const _0x35e724 of this[_0x3e0975(0x1c4)][_0x3e0975(0x1d4)]())this[_0x3e0975(0x22d)](_0x35e724[_0x3e0975(0x1e9)]);const _0xcc7635=this[_0x3e0975(0x239)][_0x3e0975(0x217)](_0x3e0975(0x1dc))||this[_0x3e0975(0x1c4)][_0x3e0975(0x217)](_0x3e0975(0x1dc));_0xcc7635&&this[_0x3e0975(0x1f5)]({..._0xcc7635,'isReadOnly':!0x0,'hidden':!0x0});}[_0xad7835(0x1cd)](_0x155de0){const _0x3beaf9=_0xad7835;for(const _0x16d9e0 of _0x155de0[_0x3beaf9(0x1d4)]())this[_0x3beaf9(0x213)](_0x16d9e0);this[_0x3beaf9(0x1c2)](),this[_0x3beaf9(0x1ff)](_0x3beaf9(0x1c3),{'contextItems':Array[_0x3beaf9(0x205)](this[_0x3beaf9(0x206)]()[_0x3beaf9(0x1d4)]())});}[_0xad7835(0x1a9)](){const _0x4015af=_0xad7835;return this[_0x4015af(0x1c4)][_0x4015af(0x22b)](_0x4015af(0x1dc));}[_0xad7835(0x1ef)](){const _0x3d0269=_0xad7835;return this[_0x3d0269(0x1c4)][_0x3d0269(0x22b)](_0x3d0269(0x215));}[_0xad7835(0x208)](){const _0x3bf7d3=_0xad7835;return this[_0x3bf7d3(0x239)][_0x3bf7d3(0x22b)](_0x3bf7d3(0x1dc));}static[_0xad7835(0x1e6)](_0x3721c5){const _0x26b8c9=_0xad7835;return Array[_0x26b8c9(0x205)](_0x3721c5[_0x26b8c9(0x1d4)]())[_0x26b8c9(0x1ab)](_0x40e0a7=>this[_0x26b8c9(0x1fc)](_0x40e0a7))[_0x26b8c9(0x1aa)](_0x7b9845=>null!==_0x7b9845);}async[_0xad7835(0x1b5)](_0x3a3aac,_0x5cfb85,_0x3e6d69=_0x531066[_0xad7835(0x1ed)]){const _0x57f9f0=_0xad7835,_0x247597=_0x57f9f0(0x1de)+_0x486623();this[_0x57f9f0(0x225)](_0x247597);try{await Promise[_0x57f9f0(0x238)](_0x3a3aac[_0x57f9f0(0x1ab)](async _0x4cfd09=>{const _0x3204d3=_0x57f9f0,_0x523dc2=_0x3204d3(0x1ea)+_0x486623(),_0x493794=_0x2c07c6(_0x4cfd09[_0x3204d3(0x1ae)]);try{this[_0x3204d3(0x1f5)]({'type':_0x3e6d69,'label':_0x5cfb85?.[_0x3204d3(0x21b)]||_0x493794,'uiId':_0x523dc2,'resourceId':_0x5cfb85?.[_0x3204d3(0x1db)]},!0x0);const _0x2bc812=this[_0x3204d3(0x1f0)][_0x3204d3(0x1c9)](this[_0x3204d3(0x224)],_0x4cfd09,_0x5cfb85);this[_0x3204d3(0x21a)][_0x3204d3(0x1f8)](_0x523dc2,_0x2bc812[_0x3204d3(0x1eb)]);const {id:_0x10bd95}=await _0x2bc812[_0x3204d3(0x22c)]();this[_0x3204d3(0x21a)][_0x3204d3(0x1b0)](_0x523dc2),this[_0x3204d3(0x1b4)]({'type':_0x3e6d69,'id':_0x10bd95,'label':_0x5cfb85?.[_0x3204d3(0x21b)]||_0x493794,'uiId':_0x523dc2,'resourceId':_0x5cfb85?.[_0x3204d3(0x1db)]},!0x1);}catch(_0x420599){this[_0x3204d3(0x21a)][_0x3204d3(0x1b0)](_0x523dc2);if(!(_0x420599 instanceof _0x3c6ee9&&_0x420599[_0x3204d3(0x1f4)][_0x3204d3(0x209)](_0x3204d3(0x1e0)))){const _0x11f894=_0x535922[_0x3204d3(0x217)](_0x420599[_0x3204d3(0x1d8)])||_0x3204d3(0x1cc),_0x583b7e=new _0x3c6ee9(_0x11f894,null,{'fileName':_0x493794,..._0x420599});_0x583b7e[_0x3204d3(0x203)]=_0x420599[_0x3204d3(0x203)],this[_0x3204d3(0x1ff)](_0x3204d3(0x202),{'error':_0x583b7e});}this[_0x3204d3(0x22d)](_0x523dc2);}}));}finally{this[_0x57f9f0(0x1ca)](_0x247597);}}[_0xad7835(0x1e5)](_0x42cfd4){const _0x5dbd30=_0xad7835;if(this[_0x5dbd30(0x1a9)]()||!this[_0x5dbd30(0x1e8)][_0x5dbd30(0x1e3)][_0x5dbd30(0x1fe)])return;const _0x5cb7dc={'type':_0x531066[_0x5dbd30(0x216)],'uiId':_0x5dbd30(0x1dc),'label':_0x42cfd4,'isReadOnly':this[_0x5dbd30(0x239)][_0x5dbd30(0x22b)](_0x5dbd30(0x1dc)),'hidden':this[_0x5dbd30(0x239)][_0x5dbd30(0x22b)](_0x5dbd30(0x1dc))};this[_0x5dbd30(0x1f5)](_0x5cb7dc);}async[_0xad7835(0x1ad)](_0x1aba94,_0x3d9c3f,_0x7e42bc,_0x158257){const _0x750c80=_0xad7835,_0x1f878f=this[_0x750c80(0x1c4)][_0x750c80(0x217)](_0x750c80(0x1dc));if(_0x1f878f&&_0x1aba94){_0x1f878f[_0x750c80(0x215)]=_0x158257?_0x158257[_0x750c80(0x1ab)](_0x22bb43=>({'start':_0x22bb43[_0x750c80(0x1c7)],'end':_0x22bb43[_0x750c80(0x1c1)]})):[];try{if(_0x1f878f[_0x750c80(0x1d9)]===_0x3d9c3f)return;const {id:_0x3a8cd5}=await this[_0x750c80(0x1f0)][_0x750c80(0x1d1)](this[_0x750c80(0x224)],_0x1aba94,{'version':_0x3d9c3f,'sessionId':_0x7e42bc})[_0x750c80(0x22c)]();_0x1f878f['id']=_0x3a8cd5,_0x1f878f[_0x750c80(0x1fd)]=_0x1aba94,_0x1f878f[_0x750c80(0x1d9)]=_0x3d9c3f,_0x1f878f[_0x750c80(0x233)]=_0x7e42bc;}catch(_0x42c652){const _0x337e11=new _0x3c6ee9(_0x750c80(0x221),null);_0x337e11[_0x750c80(0x203)]=_0x42c652[_0x750c80(0x203)],this[_0x750c80(0x1ff)](_0x750c80(0x202),{'error':_0x337e11});}}}[_0xad7835(0x1dd)](_0x2e8a14){const _0x40bdea=_0xad7835;this[_0x40bdea(0x1f5)]({'type':_0x531066[_0x40bdea(0x1bb)],'label':_0x2e8a14,'uiId':_0x40bdea(0x215),'content':_0x2e8a14});}[_0xad7835(0x231)](){const _0x4c9dbf=_0xad7835;this[_0x4c9dbf(0x22d)](_0x4c9dbf(0x215));}async[_0xad7835(0x20b)](_0x10a4fa,_0x1e65c4){const _0x53bc5d=_0xad7835,_0x35096b=_0x53bc5d(0x229)+_0x486623();this[_0x53bc5d(0x225)](_0x35096b);const _0x335489=_0x53bc5d(0x229)+_0x486623();try{this[_0x53bc5d(0x1f5)]({'type':_0x531066[_0x53bc5d(0x1ce)],'label':_0x1e65c4?.[_0x53bc5d(0x21b)]||_0x10a4fa,'uiId':_0x335489,'resourceId':_0x1e65c4?.[_0x53bc5d(0x1db)]},!0x0);const _0x1df5cb=this[_0x53bc5d(0x1f0)][_0x53bc5d(0x219)](this[_0x53bc5d(0x224)],_0x10a4fa,_0x1e65c4);this[_0x53bc5d(0x21a)][_0x53bc5d(0x1f8)](_0x335489,_0x1df5cb[_0x53bc5d(0x1eb)]);const {id:_0x3520f5}=await _0x1df5cb[_0x53bc5d(0x22c)]();this[_0x53bc5d(0x21a)][_0x53bc5d(0x1b0)](_0x335489),this[_0x53bc5d(0x1b4)]({'type':_0x531066[_0x53bc5d(0x1ce)],'id':_0x3520f5,'label':_0x1e65c4?.[_0x53bc5d(0x21b)]||_0x10a4fa,'uiId':_0x335489,'resourceId':_0x1e65c4?.[_0x53bc5d(0x1db)]},!0x1);}catch(_0x1899b0){this[_0x53bc5d(0x21a)][_0x53bc5d(0x1b0)](_0x335489),(_0x1899b0[_0x53bc5d(0x1f4)][_0x53bc5d(0x209)](_0x53bc5d(0x1e0))||this[_0x53bc5d(0x1ff)](_0x53bc5d(0x202),{'error':new _0x3c6ee9(_0x53bc5d(0x226),this,{'url':_0x10a4fa,'originalError':_0x1899b0}),'url':_0x10a4fa}),this[_0x53bc5d(0x22d)](_0x335489));}finally{this[_0x53bc5d(0x1ca)](_0x35096b);}}[_0xad7835(0x1be)](_0x3f46f6){const _0xf38df0=_0xad7835;_0x3f46f6['id']=_0x3f46f6['id']??_0x486623()[_0xf38df0(0x22a)](0x0,0x15),this[_0xf38df0(0x1c4)][_0xf38df0(0x1f8)](_0x3f46f6[_0xf38df0(0x1e9)],_0x3f46f6),this[_0xf38df0(0x1ff)](_0xf38df0(0x1e1),{'contextItem':_0x3f46f6,'isLoading':!0x1});}async[_0xad7835(0x1bf)](_0x426b84,_0x1194c3,_0x3cf45b){const _0x13c5dc=_0xad7835,_0x3a52ed=this[_0x13c5dc(0x1e8)][_0x13c5dc(0x1d5)][_0x13c5dc(0x1ac)](_0x26ed8b=>_0x26ed8b['id']===_0x426b84);if(!_0x3a52ed)return this[_0x13c5dc(0x1ff)](_0x13c5dc(0x202),{'error':new _0x3c6ee9(_0x13c5dc(0x1fb),this,{'sourceId':_0x426b84}),'sourceId':_0x426b84}),[];try{const _0x10513f=(await _0x3a52ed[_0x13c5dc(0x222)](_0x1194c3))[_0x13c5dc(0x1ab)](_0x4f4223=>{const _0x3b504e=_0x13c5dc,_0x59ea0a=this[_0x3b504e(0x1b7)](_0x4f4223['id']);return{..._0x4f4223,'isInContext':_0x59ea0a};});return _0x3a52ed[_0x13c5dc(0x204)]=_0x10513f,this[_0x13c5dc(0x1ff)](_0x13c5dc(0x1bd),{'sourceId':_0x426b84,'source':_0x3a52ed,'resources':_0x10513f,'uid':_0x3cf45b}),_0x10513f;}catch(_0x25b502){return this[_0x13c5dc(0x1ff)](_0x13c5dc(0x202),{'error':new _0x3c6ee9(_0x13c5dc(0x1c0),this,{'sourceId':_0x426b84,'originalError':_0x25b502}),'sourceId':_0x426b84,'sourceLabel':_0x3a52ed[_0x13c5dc(0x21b)]}),[];}}async[_0xad7835(0x236)](_0x287de2,_0x10a5e9){const _0x44a61e=_0xad7835;if(this[_0x44a61e(0x1b7)](_0x10a5e9['id']))return;let _0x2d1820=_0x10a5e9[_0x44a61e(0x1ee)];if(!_0x2d1820&&_0x287de2[_0x44a61e(0x1df)])try{_0x2d1820=await _0x287de2[_0x44a61e(0x1df)](_0x10a5e9['id']);}catch(_0x3058c6){return void this[_0x44a61e(0x1ff)](_0x44a61e(0x202),{'error':new _0x3c6ee9(_0x44a61e(0x210),this,{'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id'],'originalError':_0x3058c6}),'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id']});}if(_0x2d1820)switch(_0x10a5e9[_0x44a61e(0x22e)]){case _0x531066[_0x44a61e(0x1ce)]:if(_0x44a61e(0x1f7)!=typeof _0x2d1820)return void this[_0x44a61e(0x1ff)](_0x44a61e(0x202),{'error':new _0x3c6ee9(_0x44a61e(0x21d),this,{'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id'],'expectedType':_0x44a61e(0x1f7),'actualType':typeof _0x2d1820}),'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id']});await this[_0x44a61e(0x20b)](_0x2d1820,{'label':_0x10a5e9[_0x44a61e(0x21b)],'resourceId':_0x10a5e9['id']});break;case _0x531066[_0x44a61e(0x1ed)]:if(!(_0x2d1820 instanceof File))return void this[_0x44a61e(0x1ff)](_0x44a61e(0x202),{'error':new _0x3c6ee9(_0x44a61e(0x21d),this,{'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id'],'expectedType':_0x44a61e(0x234),'actualType':typeof _0x2d1820}),'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id']});await this[_0x44a61e(0x1b5)]([_0x2d1820],{'label':_0x10a5e9[_0x44a61e(0x21b)],'resourceId':_0x10a5e9['id']});break;case _0x531066[_0x44a61e(0x227)]:if(_0x44a61e(0x1d0)!=typeof _0x2d1820||!(_0x44a61e(0x1fd)in _0x2d1820)||!(_0x44a61e(0x22e)in _0x2d1820))return void this[_0x44a61e(0x1ff)](_0x44a61e(0x202),{'error':new _0x3c6ee9(_0x44a61e(0x21d),this,{'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id'],'expectedType':_0x44a61e(0x235),'actualType':typeof _0x2d1820}),'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id']});_0x2d1820=AIChatContext[_0x44a61e(0x1e7)](_0x2d1820,_0x10a5e9[_0x44a61e(0x21b)]),await this[_0x44a61e(0x1b5)]([_0x2d1820],{'label':_0x10a5e9[_0x44a61e(0x21b)],'resourceId':_0x10a5e9['id']},_0x531066[_0x44a61e(0x227)]);break;case _0x531066[_0x44a61e(0x211)]:break;default:this[_0x44a61e(0x1ff)](_0x44a61e(0x202),{'error':new _0x3c6ee9(_0x44a61e(0x1f3),this,{'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id'],'resourceType':_0x10a5e9[_0x44a61e(0x22e)]}),'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id']});}else this[_0x44a61e(0x1ff)](_0x44a61e(0x202),{'error':new _0x3c6ee9(_0x44a61e(0x207),this,{'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id']}),'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id']});}static[_0xad7835(0x1e7)](_0x1e2bf8,_0x31efa0){const _0x461b29=_0xad7835;switch(_0x1e2bf8[_0x461b29(0x22e)]){case _0xae2625[_0x461b29(0x1da)]:return new File([_0x1e2bf8[_0x461b29(0x1fd)]],_0x31efa0,{'type':_0x461b29(0x1d7)});case _0xae2625[_0x461b29(0x220)]:return new File([_0x1e2bf8[_0x461b29(0x1fd)]],_0x31efa0,{'type':_0x461b29(0x22f)});default:return new File([_0x1e2bf8[_0x461b29(0x1fd)]],_0x31efa0,{'type':_0x461b29(0x21e)});}}static[_0xad7835(0x1fc)](_0xe58be1){const _0x14999f=_0xad7835;switch(_0xe58be1[_0x14999f(0x22e)]){case _0x531066[_0x14999f(0x1ed)]:return{'type':_0x531066[_0x14999f(0x1ed)],'id':_0xe58be1['id']};case _0x531066[_0x14999f(0x1ce)]:return{'type':_0x531066[_0x14999f(0x1ce)],'id':_0xe58be1['id']};case _0x531066[_0x14999f(0x216)]:return{'type':_0x531066[_0x14999f(0x216)],'id':_0xe58be1['id'],..._0xe58be1[_0x14999f(0x215)]?.[_0x14999f(0x230)]&&{'selection':_0xe58be1[_0x14999f(0x215)]}};case _0x531066[_0x14999f(0x227)]:return{'type':_0x531066[_0x14999f(0x1ed)],'id':_0xe58be1['id']};case _0x531066[_0x14999f(0x211)]:{const _0x3e45eb=_0xe58be1;return{'type':_0x531066[_0x14999f(0x211)],'mcpServerName':_0x3e45eb[_0x14999f(0x1f9)],'toolName':_0x3e45eb[_0x14999f(0x1b2)],'data':_0x3e45eb[_0x14999f(0x1ee)],'id':_0x3e45eb['id']};}default:return null;}}[_0xad7835(0x1f5)](_0x44fcf4,_0x36639b=!0x1){const _0x1ff2f8=_0xad7835;if(this[_0x1ff2f8(0x1c4)][_0x1ff2f8(0x1f8)](_0x44fcf4[_0x1ff2f8(0x1e9)],_0x44fcf4),_0x44fcf4[_0x1ff2f8(0x1b3)]||this[_0x1ff2f8(0x1ff)](_0x1ff2f8(0x1e1),{'contextItem':_0x44fcf4,'isLoading':_0x36639b}),_0x1ff2f8(0x1dc)===_0x44fcf4[_0x1ff2f8(0x1e9)]&&this[_0x1ff2f8(0x1f1)](),_0x44fcf4[_0x1ff2f8(0x1db)]){const _0x40ded6=this[_0x1ff2f8(0x201)](_0x44fcf4[_0x1ff2f8(0x1db)]);_0x40ded6&&_0x40ded6[_0x1ff2f8(0x1c6)](_0x387c3a=>{const _0x3047cb=_0x1ff2f8;this[_0x3047cb(0x1cf)](_0x387c3a,_0x44fcf4[_0x3047cb(0x1db)],!0x0);});}}[_0xad7835(0x22d)](_0x3ddd17){const _0x30eb6c=_0xad7835,_0x39c0b0=this[_0x30eb6c(0x1c4)][_0x30eb6c(0x217)](_0x3ddd17),_0xa8ddd0=this[_0x30eb6c(0x21a)][_0x30eb6c(0x217)](_0x3ddd17);if(_0xa8ddd0&&(_0xa8ddd0[_0x30eb6c(0x214)](),this[_0x30eb6c(0x21a)][_0x30eb6c(0x1b0)](_0x3ddd17)),_0x39c0b0?.[_0x30eb6c(0x1db)]){const _0x3b3040=this[_0x30eb6c(0x201)](_0x39c0b0[_0x30eb6c(0x1db)]);_0x3b3040&&_0x3b3040[_0x30eb6c(0x1c6)](_0xd39190=>{const _0x1cc479=_0x30eb6c;this[_0x1cc479(0x1cf)](_0xd39190,_0x39c0b0[_0x1cc479(0x1db)],!0x1);});}this[_0x30eb6c(0x1c4)][_0x30eb6c(0x1b0)](_0x3ddd17),this[_0x30eb6c(0x1ff)](_0x30eb6c(0x1e4),{'uiId':_0x3ddd17,'type':_0x39c0b0?.[_0x30eb6c(0x22e)]}),_0x30eb6c(0x1dc)===_0x3ddd17&&this[_0x30eb6c(0x1f1)]();}[_0xad7835(0x1b4)](_0xa5f0b8,_0x28b121){const _0x248f54=_0xad7835;if(this[_0x248f54(0x1c4)][_0x248f54(0x22b)](_0xa5f0b8[_0x248f54(0x1e9)])&&(this[_0x248f54(0x1c4)][_0x248f54(0x1f8)](_0xa5f0b8[_0x248f54(0x1e9)],_0xa5f0b8),this[_0x248f54(0x1ff)](_0x248f54(0x1b6),{'contextItem':_0xa5f0b8,'isLoading':_0x28b121}),_0xa5f0b8[_0x248f54(0x1db)])){const _0x33393d=this[_0x248f54(0x201)](_0xa5f0b8[_0x248f54(0x1db)]);_0x33393d&&_0x33393d[_0x248f54(0x1c6)](_0x4a5704=>{const _0x5d5290=_0x248f54;this[_0x5d5290(0x1cf)](_0x4a5704,_0xa5f0b8[_0x5d5290(0x1db)],!0x0);});}}[_0xad7835(0x213)](_0x169ac7){const _0x42cfa2=_0xad7835;this[_0x42cfa2(0x239)][_0x42cfa2(0x1f8)](_0x169ac7[_0x42cfa2(0x1e9)],_0x169ac7);}[_0xad7835(0x212)](){const _0xc239a4=_0xad7835;this[_0xc239a4(0x1e8)]={'document':{'enabled':!0x1!==this[_0xc239a4(0x232)]?.[_0xc239a4(0x1e3)]?.[_0xc239a4(0x1fe)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0xc239a4(0x232)]?.[_0xc239a4(0x1d3)]?.[_0xc239a4(0x1fe)]},'files':{'enabled':!0x1!==this[_0xc239a4(0x232)]?.[_0xc239a4(0x1c8)]?.[_0xc239a4(0x1fe)]},'sources':this[_0xc239a4(0x218)](),'customItems':this[_0xc239a4(0x232)]?.[_0xc239a4(0x23c)]?.[_0xc239a4(0x1ab)](_0x3b9a09=>({..._0x3b9a09,'enabled':!0x0}))??[]},this[_0xc239a4(0x1ff)](_0xc239a4(0x1d6),{'options':this[_0xc239a4(0x1e8)]});}[_0xad7835(0x218)](){const _0x3309e9=_0xad7835;return this[_0x3309e9(0x232)]?.[_0x3309e9(0x1d5)]?.[_0x3309e9(0x1ab)](_0x570644=>({..._0x570644,'resources':[]}))??[];}[_0xad7835(0x1f1)](){const _0x1d756c=_0xad7835,_0x1fe72d=this[_0x1d756c(0x1a9)]()||this[_0x1d756c(0x208)]();this[_0x1d756c(0x1e8)][_0x1d756c(0x1e3)][_0x1d756c(0x1ec)]=_0x1fe72d,this[_0x1d756c(0x1ff)](_0x1d756c(0x1d6),{'options':this[_0x1d756c(0x1e8)]});}[_0xad7835(0x1b7)](_0x291a72){const _0x2e69b3=_0xad7835;for(const _0x4230e5 of this[_0x2e69b3(0x1c4)][_0x2e69b3(0x1d4)]())if(_0x4230e5[_0x2e69b3(0x1db)]===_0x291a72)return!0x0;for(const _0x1fdcf1 of this[_0x2e69b3(0x239)][_0x2e69b3(0x1d4)]())if(_0x1fdcf1[_0x2e69b3(0x1db)]===_0x291a72)return!0x0;return!0x1;}[_0xad7835(0x201)](_0xefcd45){const _0x4c0f85=_0xad7835,_0x1c8886=[];for(const _0x19f442 of this[_0x4c0f85(0x1e8)][_0x4c0f85(0x1d5)]){_0x19f442[_0x4c0f85(0x204)][_0x4c0f85(0x1ac)](_0x213f1c=>_0x213f1c['id']===_0xefcd45)&&_0x1c8886[_0x4c0f85(0x1ba)](_0x19f442['id']);}return 0x0===_0x1c8886[_0x4c0f85(0x230)]?null:_0x1c8886;}[_0xad7835(0x1cf)](_0x99d9b2,_0x56c4d2,_0x5ddae1){const _0x4c091e=_0xad7835,_0x477381=this[_0x4c091e(0x1e8)][_0x4c091e(0x1d5)][_0x4c091e(0x1ac)](_0x5a2d5b=>_0x5a2d5b['id']===_0x99d9b2);if(!_0x477381)return;const _0x57d71e=_0x477381[_0x4c091e(0x204)][_0x4c091e(0x1ac)](_0xd82c17=>_0xd82c17['id']===_0x56c4d2);_0x57d71e&&(_0x57d71e[_0x4c091e(0x1fa)]=_0x5ddae1,this[_0x4c091e(0x1ff)](_0x4c091e(0x23b),{'sourceId':_0x99d9b2,'resourceId':_0x56c4d2,'isInContext':_0x5ddae1}));}[_0xad7835(0x225)](_0x59fb52){const _0x55c99a=_0xad7835;this[_0x55c99a(0x1d2)][_0x55c99a(0x1f8)](_0x59fb52,!0x0),this[_0x55c99a(0x1d2)][_0x55c99a(0x237)]&&this[_0x55c99a(0x1ff)](_0x55c99a(0x1cb),{'isUploadInProgress':!0x0});}[_0xad7835(0x1ca)](_0x2b04b9){const _0x50bbcc=_0xad7835;this[_0x50bbcc(0x1d2)][_0x50bbcc(0x1b0)](_0x2b04b9),0x0===this[_0x50bbcc(0x1d2)][_0x50bbcc(0x237)]&&this[_0x50bbcc(0x1ff)](_0x50bbcc(0x1cb),{'isUploadInProgress':!0x1});}}
23
+ function _0x3b94(){const _0x7779f4=['files','isCurrentDocumentInConversation','version','sessionId','DOCUMENT','ai-request-aborted','getSentContextItems','contextItemLoadingEnded','_connector','document','SELECTION','getData','removeFromContext','url-','contextSent','addCurrentDocumentToContext','sources','start','_startUploadOperation','updateCurrentDocument','_ongoingUploadOperations','isReadOnly','_pendingContextItems','get','has','selection','fetchDocument','filter','length','188WQFosN','push','from','uploadDocument','data','_findSourceIdsByResourceId','792RpjxJu','isHidden','startsWith','addToConversationContext','FILE','removeSelectionFromContext','_setAddContextOptionsDefaultState','size','end','ai-chat-url-upload-failed','getResources','text/markdown','ai-chat-file-upload-failed','_addToConversationContextItem','URL','set','message','delete','getDocument','_mapContextItemToRequestData','File','_ownerId','isInContext','object','addUrlToContext','ai-chat-document-upload-failed','find','fire','ai-chat-resource-load-failed','contextItemAdded','_finishContextItemLoading','_getCustomSourcesInitialState','loadSourceResources','_convertTextResourceToFile','sourceResourcesLoaded','attributes','1902027mvOBUY','hidden','error','_toggleAddCurrentDocumentOptionVisibility','_isResourceInContext','ai-chat-context-unsupported-type','152155CcqJov','ai-chat-source-not-found','addToolItemToContext','getPendingContextItems','HTML','text/html','label','forEach','toolName','abortController','_addContextItem','1317162cTVAPc','_updateResourceInContextState','TOOL','file-','text/plain','_removeContextItem','all','2LEMSDG','378850hKpisB','addSelectionToContext','string','urls','resourceStateChanged','addFilesToContext','_conversationContextItems','abort','MARKDOWN','enabled','mcpServerName','contextItemRemoved','object\x20with\x20content\x20and\x20type\x20properties','init','addContextOptionsChanged','populateFromMessage','_config','1206318kEumIL','ai-chat-source-resources-load-failed','values','uiId','current-document','code','_createContextItemFromContent','getId','url','addResourceToContext','content','map','ai-chat-resource-no-data','Current\x20document','_ongoingUploads','customItems','TEXT','mapContextItemsToRequestData','isCurrentDocumentInContext','ai-chat-context-invalid-data','clearPendingContextItems','files-','isSelectionInContext','_addContextOptionsState','resourceId','uploadProgressChanged','_finishUploadOperation','uploadUrl','4246416TJNFEH','name','uploadFile','stack','type','substring','resources','587258WcdWjZ'];_0x3b94=function(){return _0x7779f4;};return _0x3b94();}const _0x4c43d5=_0x33af;(function(_0x1a4cc1,_0x29e313){const _0x12df2c=_0x33af,_0x30759f=_0x1a4cc1();while(!![]){try{const _0x43629a=parseInt(_0x12df2c(0x7d))/0x1*(-parseInt(_0x12df2c(0x10b))/0x2)+-parseInt(_0x12df2c(0xfa))/0x3+-parseInt(_0x12df2c(0xd0))/0x4*(parseInt(_0x12df2c(0x100))/0x5)+parseInt(_0x12df2c(0x8f))/0x6+parseInt(_0x12df2c(0xb2))/0x7+parseInt(_0x12df2c(0xab))/0x8+parseInt(_0x12df2c(0xd6))/0x9*(parseInt(_0x12df2c(0x7e))/0xa);if(_0x43629a===_0x29e313)break;else _0x30759f['push'](_0x30759f['shift']());}catch(_0x569e9b){_0x30759f['push'](_0x30759f['shift']());}}}(_0x3b94,0xbb8c9));import{CKEditorError as _0x2d4364,ObservableMixin as _0x1858a8,uid as _0x218167}from'ckeditor5/src/utils.js';function _0x33af(_0x4de831,_0x19a01c){const _0x3b94bb=_0x3b94();return _0x33af=function(_0x33af3e,_0x503fa7){_0x33af3e=_0x33af3e-0x7d;let _0x541cf7=_0x3b94bb[_0x33af3e];return _0x541cf7;},_0x33af(_0x4de831,_0x19a01c);}import{AIContextItemType as _0x4ce5ec,AIContextTextResourceType as _0x5e2d38}from'../../aicore/model/aicontext.js';import{escape as _0xca7685}from'es-toolkit/compat';import{errorsMap as _0x23da73}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x4c43d5(0xf3),_0x4c43d5(0x89),_0x4c43d5(0xba),_0x4c43d5(0xc1),_0x4c43d5(0xfc),_0x4c43d5(0x8c),_0x4c43d5(0xf8),_0x4c43d5(0x82),_0x4c43d5(0xa8)];export class AIChatContext extends _0x1858a8(){[_0x4c43d5(0xbb)];[_0x4c43d5(0x8e)];[_0x4c43d5(0xeb)];constructor({connector:_0x2bc180,config:_0x537409,ownerId:_0x5955fb}){const _0x45d8f1=_0x4c43d5;super(),this[_0x45d8f1(0xbb)]=_0x2bc180,this[_0x45d8f1(0x8e)]=_0x537409,this[_0x45d8f1(0xeb)]=_0x5955fb;}[_0x4c43d5(0x8b)](){const _0x326006=_0x4c43d5;this[_0x326006(0xc9)]=new Map(),this[_0x326006(0x84)]=new Map(),this[_0x326006(0x9d)]=new Map(),this[_0x326006(0xc7)]=new Map(),this[_0x326006(0xdc)]();}[_0x4c43d5(0x103)](){const _0x1b1332=_0x4c43d5;return this[_0x1b1332(0xc9)];}async[_0x4c43d5(0x8d)](_0x110a3c){const _0x1199af=_0x4c43d5,_0x1f6465=await this[_0x1199af(0x95)](_0x110a3c);return this[_0x1199af(0xe3)](_0x1f6465),_0x1199af(0x93)===_0x1f6465[_0x1199af(0x92)]&&this[_0x1199af(0xfd)](),_0x1f6465;}async[_0x4c43d5(0x95)](_0x25d153){const _0x4ba6b9=_0x4c43d5;if(_0x25d153[_0x4ba6b9(0xaf)]===_0x4ce5ec[_0x4ba6b9(0xb7)]){const _0x10cb91=await this[_0x4ba6b9(0xbb)][_0x4ba6b9(0xcd)](this[_0x4ba6b9(0xeb)],_0x25d153['id'])[_0x4ba6b9(0xe8)]();return{'id':_0x4ba6b9(0x93),'uiId':_0x4ba6b9(0x93),'label':_0x4ba6b9(0x9c),'type':_0x25d153[_0x4ba6b9(0xaf)],'content':_0x10cb91[_0x4ba6b9(0x99)],'hidden':this[_0x4ba6b9(0x84)][_0x4ba6b9(0xcb)](_0x4ba6b9(0x93)),'version':_0x10cb91[_0x4ba6b9(0xf9)]?.[_0x4ba6b9(0xb5)],'sessionId':_0x10cb91[_0x4ba6b9(0xf9)]?.[_0x4ba6b9(0xb6)]};}if(_0x25d153[_0x4ba6b9(0xaf)]===_0x4ce5ec[_0x4ba6b9(0x10d)])return{'id':_0x25d153['id'],'uiId':_0x25d153['id'],'label':_0x25d153[_0x4ba6b9(0xd4)]?.[_0x4ba6b9(0x106)]||_0x25d153['id'],'type':_0x4ce5ec[_0x4ba6b9(0x10d)],'mcpServerName':_0x25d153[_0x4ba6b9(0x88)],'toolName':_0x25d153[_0x4ba6b9(0x108)],'data':_0x25d153[_0x4ba6b9(0xd4)]||{}};return{'id':_0x25d153['id'],'uiId':_0x25d153['id'],'label':_0x25d153[_0x4ba6b9(0xf9)]?.[_0x4ba6b9(0x106)]||_0x25d153[_0x4ba6b9(0xac)]||_0x25d153[_0x4ba6b9(0x97)]||_0x25d153['id'],'type':_0x25d153[_0x4ba6b9(0xaf)],..._0x25d153?.[_0x4ba6b9(0xf9)]?.[_0x4ba6b9(0xa7)]?{'resourceId':_0x25d153[_0x4ba6b9(0xf9)]?.[_0x4ba6b9(0xa7)]}:{}};}[_0x4c43d5(0xb9)](){const _0x183124=_0x4c43d5;return new Map(this[_0x183124(0x84)]);}[_0x4c43d5(0xbf)](_0x3ffe78){const _0x417c97=_0x4c43d5,_0x324ddb=this[_0x417c97(0xc9)][_0x417c97(0xca)](_0x3ffe78);_0x324ddb?.[_0x417c97(0xc8)]||this[_0x417c97(0x110)](_0x3ffe78);}[_0x4c43d5(0xa3)](){const _0x469e54=_0x4c43d5;if(0x0===this[_0x469e54(0xc9)][_0x469e54(0xdd)])return;for(const _0x3d11d2 of this[_0x469e54(0xc9)][_0x469e54(0x91)]())this[_0x469e54(0x110)](_0x3d11d2[_0x469e54(0x92)]);const _0x383a32=this[_0x469e54(0x84)][_0x469e54(0xca)](_0x469e54(0x93))||this[_0x469e54(0xc9)][_0x469e54(0xca)](_0x469e54(0x93));_0x383a32&&this[_0x469e54(0x10a)]({..._0x383a32,'isReadOnly':!0x0,'hidden':!0x0});}[_0x4c43d5(0xd9)](_0x12c385){const _0x3ae536=_0x4c43d5;for(const _0x4dd982 of _0x12c385[_0x3ae536(0x91)]())this[_0x3ae536(0xe3)](_0x4dd982);this[_0x3ae536(0xa3)](),this[_0x3ae536(0xf1)](_0x3ae536(0xc1),{'contextItems':Array[_0x3ae536(0xd2)](this[_0x3ae536(0xb9)]()[_0x3ae536(0x91)]())});}[_0x4c43d5(0xa1)](){const _0x435126=_0x4c43d5;return this[_0x435126(0xc9)][_0x435126(0xcb)](_0x435126(0x93));}[_0x4c43d5(0xa5)](){const _0x3eba97=_0x4c43d5;return this[_0x3eba97(0xc9)][_0x3eba97(0xcb)](_0x3eba97(0xcc));}[_0x4c43d5(0xb4)](){const _0x2d554b=_0x4c43d5;return this[_0x2d554b(0x84)][_0x2d554b(0xcb)](_0x2d554b(0x93));}static[_0x4c43d5(0xa0)](_0x276a5b){const _0x3b245b=_0x4c43d5;return Array[_0x3b245b(0xd2)](_0x276a5b[_0x3b245b(0x91)]())[_0x3b245b(0x9a)](_0x1ec22a=>this[_0x3b245b(0xe9)](_0x1ec22a))[_0x3b245b(0xce)](_0x32c20b=>null!==_0x32c20b);}async[_0x4c43d5(0x83)](_0x53edc7,_0x1b2045,_0x5b3169=_0x4ce5ec[_0x4c43d5(0xda)]){const _0x1c4fd9=_0x4c43d5,_0x53f461=_0x1c4fd9(0xa4)+_0x218167();this[_0x1c4fd9(0xc5)](_0x53f461);try{await Promise[_0x1c4fd9(0x111)](_0x53edc7[_0x1c4fd9(0x9a)](async _0x5da161=>{const _0x16f0e2=_0x1c4fd9,_0x4eefaa=_0x16f0e2(0x10e)+_0x218167(),_0x3b1139=_0xca7685(_0x5da161[_0x16f0e2(0xac)]);try{this[_0x16f0e2(0x10a)]({'type':_0x5b3169,'label':_0x1b2045?.[_0x16f0e2(0x106)]||_0x3b1139,'uiId':_0x4eefaa,'resourceId':_0x1b2045?.[_0x16f0e2(0xa7)]},!0x0);const _0x13a9a1=this[_0x16f0e2(0xbb)][_0x16f0e2(0xad)](this[_0x16f0e2(0xeb)],_0x5da161,_0x1b2045);this[_0x16f0e2(0x9d)][_0x16f0e2(0xe5)](_0x4eefaa,_0x13a9a1[_0x16f0e2(0x109)]);const {id:_0xaaafbe}=await _0x13a9a1[_0x16f0e2(0x96)]();this[_0x16f0e2(0x9d)][_0x16f0e2(0xe7)](_0x4eefaa),this[_0x16f0e2(0xf4)]({'type':_0x5b3169,'id':_0xaaafbe,'label':_0x1b2045?.[_0x16f0e2(0x106)]||_0x3b1139,'uiId':_0x4eefaa,'resourceId':_0x1b2045?.[_0x16f0e2(0xa7)]},!0x1);}catch(_0x100517){this[_0x16f0e2(0x9d)][_0x16f0e2(0xe7)](_0x4eefaa);if(!(_0x100517 instanceof _0x2d4364&&_0x100517[_0x16f0e2(0xe6)][_0x16f0e2(0xd8)](_0x16f0e2(0xb8)))){const _0x52e5be=_0x23da73[_0x16f0e2(0xca)](_0x100517[_0x16f0e2(0x94)])||_0x16f0e2(0xe2),_0x5b6058=new _0x2d4364(_0x52e5be,null,{'fileName':_0x3b1139,..._0x100517});_0x5b6058[_0x16f0e2(0xae)]=_0x100517[_0x16f0e2(0xae)],this[_0x16f0e2(0xf1)](_0x16f0e2(0xfc),{'error':_0x5b6058});}this[_0x16f0e2(0x110)](_0x4eefaa);}}));}finally{this[_0x1c4fd9(0xa9)](_0x53f461);}}[_0x4c43d5(0xc2)](_0x4b9e93){const _0x4dfe85=_0x4c43d5;if(this[_0x4dfe85(0xa1)]()||!this[_0x4dfe85(0xa6)][_0x4dfe85(0xbc)][_0x4dfe85(0x87)])return;const _0x229a88={'type':_0x4ce5ec[_0x4dfe85(0xb7)],'uiId':_0x4dfe85(0x93),'label':_0x4b9e93,'isReadOnly':this[_0x4dfe85(0x84)][_0x4dfe85(0xcb)](_0x4dfe85(0x93)),'hidden':this[_0x4dfe85(0x84)][_0x4dfe85(0xcb)](_0x4dfe85(0x93))};this[_0x4dfe85(0x10a)](_0x229a88);}async[_0x4c43d5(0xc6)](_0x4b5691,_0x1e93e7,_0x5590e1,_0xf42897){const _0x389c0b=_0x4c43d5,_0x3a8737=this[_0x389c0b(0xc9)][_0x389c0b(0xca)](_0x389c0b(0x93));if(_0x3a8737&&_0x4b5691){_0x3a8737[_0x389c0b(0xcc)]=_0xf42897?_0xf42897[_0x389c0b(0x9a)](_0x5f3eba=>({'start':_0x5f3eba[_0x389c0b(0xc4)],'end':_0x5f3eba[_0x389c0b(0xde)]})):[];try{if(_0x3a8737[_0x389c0b(0xb5)]===_0x1e93e7)return;const {id:_0x244ea0}=await this[_0x389c0b(0xbb)][_0x389c0b(0xd3)](this[_0x389c0b(0xeb)],_0x4b5691,{'version':_0x1e93e7,'sessionId':_0x5590e1})[_0x389c0b(0x96)]();_0x3a8737['id']=_0x244ea0,_0x3a8737[_0x389c0b(0x99)]=_0x4b5691,_0x3a8737[_0x389c0b(0xb5)]=_0x1e93e7,_0x3a8737[_0x389c0b(0xb6)]=_0x5590e1;}catch(_0x356a42){const _0xdf4eae=new _0x2d4364(_0x389c0b(0xef),null);_0xdf4eae[_0x389c0b(0xae)]=_0x356a42[_0x389c0b(0xae)],this[_0x389c0b(0xf1)](_0x389c0b(0xfc),{'error':_0xdf4eae});}}}[_0x4c43d5(0x7f)](_0x5637b7){const _0x24254a=_0x4c43d5;this[_0x24254a(0x10a)]({'type':_0x4ce5ec[_0x24254a(0xbd)],'label':_0x5637b7,'uiId':_0x24254a(0xcc),'content':_0x5637b7});}[_0x4c43d5(0xdb)](){const _0x8615d9=_0x4c43d5;this[_0x8615d9(0x110)](_0x8615d9(0xcc));}async[_0x4c43d5(0xee)](_0x1bb8b3,_0x490cfb){const _0x52ea71=_0x4c43d5,_0x54a305=_0x52ea71(0xc0)+_0x218167();this[_0x52ea71(0xc5)](_0x54a305);const _0x573dd8=_0x52ea71(0xc0)+_0x218167();try{this[_0x52ea71(0x10a)]({'type':_0x4ce5ec[_0x52ea71(0xe4)],'label':_0x490cfb?.[_0x52ea71(0x106)]||_0x1bb8b3,'uiId':_0x573dd8,'resourceId':_0x490cfb?.[_0x52ea71(0xa7)]},!0x0);const _0x5503ec=this[_0x52ea71(0xbb)][_0x52ea71(0xaa)](this[_0x52ea71(0xeb)],_0x1bb8b3,_0x490cfb);this[_0x52ea71(0x9d)][_0x52ea71(0xe5)](_0x573dd8,_0x5503ec[_0x52ea71(0x109)]);const {id:_0x4677f4}=await _0x5503ec[_0x52ea71(0x96)]();this[_0x52ea71(0x9d)][_0x52ea71(0xe7)](_0x573dd8),this[_0x52ea71(0xf4)]({'type':_0x4ce5ec[_0x52ea71(0xe4)],'id':_0x4677f4,'label':_0x490cfb?.[_0x52ea71(0x106)]||_0x1bb8b3,'uiId':_0x573dd8,'resourceId':_0x490cfb?.[_0x52ea71(0xa7)]},!0x1);}catch(_0x103c44){this[_0x52ea71(0x9d)][_0x52ea71(0xe7)](_0x573dd8),(_0x103c44[_0x52ea71(0xe6)][_0x52ea71(0xd8)](_0x52ea71(0xb8))||this[_0x52ea71(0xf1)](_0x52ea71(0xfc),{'error':new _0x2d4364(_0x52ea71(0xdf),this,{'url':_0x1bb8b3,'originalError':_0x103c44}),'url':_0x1bb8b3}),this[_0x52ea71(0x110)](_0x573dd8));}finally{this[_0x52ea71(0xa9)](_0x54a305);}}[_0x4c43d5(0x102)](_0x437f95){const _0x2c4f85=_0x4c43d5;_0x437f95['id']=_0x437f95['id']??_0x218167()[_0x2c4f85(0xb0)](0x0,0x15),this[_0x2c4f85(0xc9)][_0x2c4f85(0xe5)](_0x437f95[_0x2c4f85(0x92)],_0x437f95),this[_0x2c4f85(0xf1)](_0x2c4f85(0xf3),{'contextItem':_0x437f95,'isLoading':!0x1});}async[_0x4c43d5(0xf6)](_0x45261a,_0xb1d53d,_0x2c3e74){const _0x4f705d=_0x4c43d5,_0x1913e4=this[_0x4f705d(0xa6)][_0x4f705d(0xc3)][_0x4f705d(0xf0)](_0x196bd4=>_0x196bd4['id']===_0x45261a);if(!_0x1913e4)return this[_0x4f705d(0xf1)](_0x4f705d(0xfc),{'error':new _0x2d4364(_0x4f705d(0x101),this,{'sourceId':_0x45261a}),'sourceId':_0x45261a}),[];try{const _0xcfe154=(await _0x1913e4[_0x4f705d(0xe0)](_0xb1d53d))[_0x4f705d(0x9a)](_0x5464e9=>{const _0x4a640e=_0x4f705d,_0x3838d6=this[_0x4a640e(0xfe)](_0x5464e9['id']);return{..._0x5464e9,'isInContext':_0x3838d6};});return _0x1913e4[_0x4f705d(0xb1)]=_0xcfe154,this[_0x4f705d(0xf1)](_0x4f705d(0xf8),{'sourceId':_0x45261a,'source':_0x1913e4,'resources':_0xcfe154,'uid':_0x2c3e74}),_0xcfe154;}catch(_0x3b19b3){return this[_0x4f705d(0xf1)](_0x4f705d(0xfc),{'error':new _0x2d4364(_0x4f705d(0x90),this,{'sourceId':_0x45261a,'originalError':_0x3b19b3}),'sourceId':_0x45261a,'sourceLabel':_0x1913e4[_0x4f705d(0x106)]}),[];}}async[_0x4c43d5(0x98)](_0xa01334,_0x3c89da){const _0x29812b=_0x4c43d5;if(this[_0x29812b(0xfe)](_0x3c89da['id']))return;let _0x113f88=_0x3c89da[_0x29812b(0xd4)];if(!_0x113f88&&_0xa01334[_0x29812b(0xbe)])try{_0x113f88=await _0xa01334[_0x29812b(0xbe)](_0x3c89da['id']);}catch(_0x101558){return void this[_0x29812b(0xf1)](_0x29812b(0xfc),{'error':new _0x2d4364(_0x29812b(0xf2),this,{'resourceId':_0x3c89da['id'],'sourceId':_0xa01334['id'],'originalError':_0x101558}),'resourceId':_0x3c89da['id'],'sourceId':_0xa01334['id']});}if(_0x113f88)switch(_0x3c89da[_0x29812b(0xaf)]){case _0x4ce5ec[_0x29812b(0xe4)]:if(_0x29812b(0x80)!=typeof _0x113f88)return void this[_0x29812b(0xf1)](_0x29812b(0xfc),{'error':new _0x2d4364(_0x29812b(0xa2),this,{'resourceId':_0x3c89da['id'],'sourceId':_0xa01334['id'],'expectedType':_0x29812b(0x80),'actualType':typeof _0x113f88}),'resourceId':_0x3c89da['id'],'sourceId':_0xa01334['id']});await this[_0x29812b(0xee)](_0x113f88,{'label':_0x3c89da[_0x29812b(0x106)],'resourceId':_0x3c89da['id']});break;case _0x4ce5ec[_0x29812b(0xda)]:if(!(_0x113f88 instanceof File))return void this[_0x29812b(0xf1)](_0x29812b(0xfc),{'error':new _0x2d4364(_0x29812b(0xa2),this,{'resourceId':_0x3c89da['id'],'sourceId':_0xa01334['id'],'expectedType':_0x29812b(0xea),'actualType':typeof _0x113f88}),'resourceId':_0x3c89da['id'],'sourceId':_0xa01334['id']});await this[_0x29812b(0x83)]([_0x113f88],{'label':_0x3c89da[_0x29812b(0x106)],'resourceId':_0x3c89da['id']});break;case _0x4ce5ec[_0x29812b(0x9f)]:if(_0x29812b(0xed)!=typeof _0x113f88||!(_0x29812b(0x99)in _0x113f88)||!(_0x29812b(0xaf)in _0x113f88))return void this[_0x29812b(0xf1)](_0x29812b(0xfc),{'error':new _0x2d4364(_0x29812b(0xa2),this,{'resourceId':_0x3c89da['id'],'sourceId':_0xa01334['id'],'expectedType':_0x29812b(0x8a),'actualType':typeof _0x113f88}),'resourceId':_0x3c89da['id'],'sourceId':_0xa01334['id']});_0x113f88=AIChatContext[_0x29812b(0xf7)](_0x113f88,_0x3c89da[_0x29812b(0x106)]),await this[_0x29812b(0x83)]([_0x113f88],{'label':_0x3c89da[_0x29812b(0x106)],'resourceId':_0x3c89da['id']},_0x4ce5ec[_0x29812b(0x9f)]);break;case _0x4ce5ec[_0x29812b(0x10d)]:break;default:this[_0x29812b(0xf1)](_0x29812b(0xfc),{'error':new _0x2d4364(_0x29812b(0xff),this,{'resourceId':_0x3c89da['id'],'sourceId':_0xa01334['id'],'resourceType':_0x3c89da[_0x29812b(0xaf)]}),'resourceId':_0x3c89da['id'],'sourceId':_0xa01334['id']});}else this[_0x29812b(0xf1)](_0x29812b(0xfc),{'error':new _0x2d4364(_0x29812b(0x9b),this,{'resourceId':_0x3c89da['id'],'sourceId':_0xa01334['id']}),'resourceId':_0x3c89da['id'],'sourceId':_0xa01334['id']});}static[_0x4c43d5(0xf7)](_0xfc93ad,_0x423555){const _0x3839f3=_0x4c43d5;switch(_0xfc93ad[_0x3839f3(0xaf)]){case _0x5e2d38[_0x3839f3(0x86)]:return new File([_0xfc93ad[_0x3839f3(0x99)]],_0x423555,{'type':_0x3839f3(0xe1)});case _0x5e2d38[_0x3839f3(0x104)]:return new File([_0xfc93ad[_0x3839f3(0x99)]],_0x423555,{'type':_0x3839f3(0x105)});default:return new File([_0xfc93ad[_0x3839f3(0x99)]],_0x423555,{'type':_0x3839f3(0x10f)});}}static[_0x4c43d5(0xe9)](_0x217439){const _0x5a28eb=_0x4c43d5;switch(_0x217439[_0x5a28eb(0xaf)]){case _0x4ce5ec[_0x5a28eb(0xda)]:return{'type':_0x4ce5ec[_0x5a28eb(0xda)],'id':_0x217439['id']};case _0x4ce5ec[_0x5a28eb(0xe4)]:return{'type':_0x4ce5ec[_0x5a28eb(0xe4)],'id':_0x217439['id']};case _0x4ce5ec[_0x5a28eb(0xb7)]:return{'type':_0x4ce5ec[_0x5a28eb(0xb7)],'id':_0x217439['id'],..._0x217439[_0x5a28eb(0xcc)]?.[_0x5a28eb(0xcf)]&&{'selection':_0x217439[_0x5a28eb(0xcc)]}};case _0x4ce5ec[_0x5a28eb(0x9f)]:return{'type':_0x4ce5ec[_0x5a28eb(0xda)],'id':_0x217439['id']};case _0x4ce5ec[_0x5a28eb(0x10d)]:{const _0x578c97=_0x217439;return{'type':_0x4ce5ec[_0x5a28eb(0x10d)],'mcpServerName':_0x578c97[_0x5a28eb(0x88)],'toolName':_0x578c97[_0x5a28eb(0x108)],'data':_0x578c97[_0x5a28eb(0xd4)],'id':_0x578c97['id']};}default:return null;}}[_0x4c43d5(0x10a)](_0x4cbbbb,_0x19766f=!0x1){const _0x5a8f88=_0x4c43d5;if(this[_0x5a8f88(0xc9)][_0x5a8f88(0xe5)](_0x4cbbbb[_0x5a8f88(0x92)],_0x4cbbbb),_0x4cbbbb[_0x5a8f88(0xfb)]||this[_0x5a8f88(0xf1)](_0x5a8f88(0xf3),{'contextItem':_0x4cbbbb,'isLoading':_0x19766f}),_0x5a8f88(0x93)===_0x4cbbbb[_0x5a8f88(0x92)]&&this[_0x5a8f88(0xfd)](),_0x4cbbbb[_0x5a8f88(0xa7)]){const _0x30f046=this[_0x5a8f88(0xd5)](_0x4cbbbb[_0x5a8f88(0xa7)]);_0x30f046&&_0x30f046[_0x5a8f88(0x107)](_0x22f13f=>{const _0x32d47c=_0x5a8f88;this[_0x32d47c(0x10c)](_0x22f13f,_0x4cbbbb[_0x32d47c(0xa7)],!0x0);});}}[_0x4c43d5(0x110)](_0xe022d5){const _0x31d238=_0x4c43d5,_0x341224=this[_0x31d238(0xc9)][_0x31d238(0xca)](_0xe022d5),_0x12bc86=this[_0x31d238(0x9d)][_0x31d238(0xca)](_0xe022d5);if(_0x12bc86&&(_0x12bc86[_0x31d238(0x85)](),this[_0x31d238(0x9d)][_0x31d238(0xe7)](_0xe022d5)),_0x341224?.[_0x31d238(0xa7)]){const _0x5825c8=this[_0x31d238(0xd5)](_0x341224[_0x31d238(0xa7)]);_0x5825c8&&_0x5825c8[_0x31d238(0x107)](_0x24e11b=>{const _0x5773da=_0x31d238;this[_0x5773da(0x10c)](_0x24e11b,_0x341224[_0x5773da(0xa7)],!0x1);});}this[_0x31d238(0xc9)][_0x31d238(0xe7)](_0xe022d5),this[_0x31d238(0xf1)](_0x31d238(0x89),{'uiId':_0xe022d5,'type':_0x341224?.[_0x31d238(0xaf)]}),_0x31d238(0x93)===_0xe022d5&&this[_0x31d238(0xfd)]();}[_0x4c43d5(0xf4)](_0x11c6a5,_0x5effc9){const _0x14fb43=_0x4c43d5;if(this[_0x14fb43(0xc9)][_0x14fb43(0xcb)](_0x11c6a5[_0x14fb43(0x92)])&&(this[_0x14fb43(0xc9)][_0x14fb43(0xe5)](_0x11c6a5[_0x14fb43(0x92)],_0x11c6a5),this[_0x14fb43(0xf1)](_0x14fb43(0xba),{'contextItem':_0x11c6a5,'isLoading':_0x5effc9}),_0x11c6a5[_0x14fb43(0xa7)])){const _0x3ca417=this[_0x14fb43(0xd5)](_0x11c6a5[_0x14fb43(0xa7)]);_0x3ca417&&_0x3ca417[_0x14fb43(0x107)](_0x1ae8b7=>{const _0x1c2ece=_0x14fb43;this[_0x1c2ece(0x10c)](_0x1ae8b7,_0x11c6a5[_0x1c2ece(0xa7)],!0x0);});}}[_0x4c43d5(0xe3)](_0x3e74b4){const _0x257d0e=_0x4c43d5;this[_0x257d0e(0x84)][_0x257d0e(0xe5)](_0x3e74b4[_0x257d0e(0x92)],_0x3e74b4);}[_0x4c43d5(0xdc)](){const _0x423db5=_0x4c43d5;this[_0x423db5(0xa6)]={'document':{'enabled':!0x1!==this[_0x423db5(0x8e)]?.[_0x423db5(0xbc)]?.[_0x423db5(0x87)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x423db5(0x8e)]?.[_0x423db5(0x81)]?.[_0x423db5(0x87)]},'files':{'enabled':!0x1!==this[_0x423db5(0x8e)]?.[_0x423db5(0xb3)]?.[_0x423db5(0x87)]},'sources':this[_0x423db5(0xf5)](),'customItems':this[_0x423db5(0x8e)]?.[_0x423db5(0x9e)]?.[_0x423db5(0x9a)](_0x150812=>({..._0x150812,'enabled':!0x0}))??[]},this[_0x423db5(0xf1)](_0x423db5(0x8c),{'options':this[_0x423db5(0xa6)]});}[_0x4c43d5(0xf5)](){const _0x47716a=_0x4c43d5;return this[_0x47716a(0x8e)]?.[_0x47716a(0xc3)]?.[_0x47716a(0x9a)](_0x2b817c=>({..._0x2b817c,'resources':[]}))??[];}[_0x4c43d5(0xfd)](){const _0x57c1b7=_0x4c43d5,_0x5c1116=this[_0x57c1b7(0xa1)]()||this[_0x57c1b7(0xb4)]();this[_0x57c1b7(0xa6)][_0x57c1b7(0xbc)][_0x57c1b7(0xd7)]=_0x5c1116,this[_0x57c1b7(0xf1)](_0x57c1b7(0x8c),{'options':this[_0x57c1b7(0xa6)]});}[_0x4c43d5(0xfe)](_0x371925){const _0x21b9b7=_0x4c43d5;for(const _0x3eea48 of this[_0x21b9b7(0xc9)][_0x21b9b7(0x91)]())if(_0x3eea48[_0x21b9b7(0xa7)]===_0x371925)return!0x0;for(const _0xd60bb7 of this[_0x21b9b7(0x84)][_0x21b9b7(0x91)]())if(_0xd60bb7[_0x21b9b7(0xa7)]===_0x371925)return!0x0;return!0x1;}[_0x4c43d5(0xd5)](_0x5ba5e4){const _0x58e76c=_0x4c43d5,_0x47cc99=[];for(const _0x55bf3c of this[_0x58e76c(0xa6)][_0x58e76c(0xc3)]){_0x55bf3c[_0x58e76c(0xb1)][_0x58e76c(0xf0)](_0x2ffc05=>_0x2ffc05['id']===_0x5ba5e4)&&_0x47cc99[_0x58e76c(0xd1)](_0x55bf3c['id']);}return 0x0===_0x47cc99[_0x58e76c(0xcf)]?null:_0x47cc99;}[_0x4c43d5(0x10c)](_0x330bb4,_0x21e5f7,_0x4c2c2a){const _0x14639d=_0x4c43d5,_0xb06b83=this[_0x14639d(0xa6)][_0x14639d(0xc3)][_0x14639d(0xf0)](_0x4d2803=>_0x4d2803['id']===_0x330bb4);if(!_0xb06b83)return;const _0x22fa9e=_0xb06b83[_0x14639d(0xb1)][_0x14639d(0xf0)](_0x554b5b=>_0x554b5b['id']===_0x21e5f7);_0x22fa9e&&(_0x22fa9e[_0x14639d(0xec)]=_0x4c2c2a,this[_0x14639d(0xf1)](_0x14639d(0x82),{'sourceId':_0x330bb4,'resourceId':_0x21e5f7,'isInContext':_0x4c2c2a}));}[_0x4c43d5(0xc5)](_0x19a851){const _0x506a42=_0x4c43d5;this[_0x506a42(0xc7)][_0x506a42(0xe5)](_0x19a851,!0x0),this[_0x506a42(0xc7)][_0x506a42(0xdd)]&&this[_0x506a42(0xf1)](_0x506a42(0xa8),{'isUploadInProgress':!0x0});}[_0x4c43d5(0xa9)](_0x264bf3){const _0x452c6b=_0x4c43d5;this[_0x452c6b(0xc7)][_0x452c6b(0xe7)](_0x264bf3),0x0===this[_0x452c6b(0xc7)][_0x452c6b(0xdd)]&&this[_0x452c6b(0xf1)](_0x452c6b(0xa8),{'isUploadInProgress':!0x1});}}