@ckeditor/ckeditor5-ai 47.4.0-alpha.3 → 47.4.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsreply.js +1 -1
  6. package/src/aiassistant/aiassistantediting.js +1 -1
  7. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  8. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  9. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  10. package/src/aiassistant/ui/form/aiformview.js +1 -1
  11. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  12. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  13. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  14. package/src/aiballoon/aiballoon.js +1 -1
  15. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  16. package/src/aiballoon/ui/aiballoonview.js +1 -1
  17. package/src/aichat/aichat.js +1 -1
  18. package/src/aichat/aichatcontroller.js +1 -1
  19. package/src/aichat/aichatui.js +1 -1
  20. package/src/aichat/model/aichatcontext.js +1 -1
  21. package/src/aichat/model/aichatconversation.js +1 -1
  22. package/src/aichat/model/aichatinteraction.js +1 -1
  23. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  24. package/src/aichat/ui/aichatfeedview.js +1 -1
  25. package/src/aichat/ui/aichatheaderview.js +1 -1
  26. package/src/aichat/ui/aichatview.js +1 -1
  27. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  28. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  29. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  30. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  31. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  32. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  33. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  34. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  35. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  36. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  37. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  38. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  39. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  40. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  41. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  42. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  43. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  44. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  45. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  46. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  47. package/src/aichathistory/aichathistory.js +1 -1
  48. package/src/aichathistory/aichathistorycontroller.js +1 -1
  49. package/src/aichathistory/aichathistoryui.js +1 -1
  50. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  51. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  52. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  53. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  54. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  55. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  56. package/src/aicore/aiconnector.js +1 -1
  57. package/src/aicore/aiediting.js +1 -1
  58. package/src/aicore/model/aiinteraction.js +1 -1
  59. package/src/aicore/model/aimodels.js +1 -1
  60. package/src/aicore/model/aireply.js +1 -1
  61. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  62. package/src/aicore/pipeline/airesponseparser.js +2 -2
  63. package/src/aicore/ui/aidisclaimerview.js +1 -1
  64. package/src/aicore/ui/aiskeleton.js +1 -1
  65. package/src/aicore/ui/aispinner.js +1 -1
  66. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  67. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  68. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  69. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  70. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  71. package/src/aicore/utils/documentposition.js +1 -1
  72. package/src/aicore/utils/documentrange.js +1 -1
  73. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  74. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  75. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  76. package/src/aicore/utils/htmlparser.js +1 -1
  77. package/src/aicore/utils/htmlstreamer.js +1 -1
  78. package/src/aicore/utils/scrollmanager.js +1 -1
  79. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  80. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  81. package/src/aiquickactions/aiquickactionsui.js +1 -1
  82. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  83. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  84. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  85. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  86. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  87. package/src/aireviewmode/aireviewmode.js +1 -1
  88. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  89. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  90. package/src/aireviewmode/aireviewmodeui.js +1 -1
  91. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  92. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  93. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  94. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  95. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  96. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  97. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  98. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  99. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  100. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  101. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  102. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  103. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  104. package/src/aitabs/aitabs.js +1 -1
  105. package/src/aitabs/tabs/aitabsview.js +1 -1
  106. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc1eaa0=_0x3dbb;(function(_0x2a7f3b,_0xeb0c37){const _0x463b8c=_0x3dbb,_0x538829=_0x2a7f3b();while(!![]){try{const _0x456691=-parseInt(_0x463b8c(0x144))/0x1*(-parseInt(_0x463b8c(0x141))/0x2)+parseInt(_0x463b8c(0x116))/0x3+-parseInt(_0x463b8c(0x157))/0x4*(parseInt(_0x463b8c(0x158))/0x5)+-parseInt(_0x463b8c(0x143))/0x6+-parseInt(_0x463b8c(0x12b))/0x7+parseInt(_0x463b8c(0x159))/0x8*(parseInt(_0x463b8c(0x118))/0x9)+parseInt(_0x463b8c(0x13d))/0xa;if(_0x456691===_0xeb0c37)break;else _0x538829['push'](_0x538829['shift']());}catch(_0x1c35a2){_0x538829['push'](_0x538829['shift']());}}}(_0x3f0d,0xc0a91));import{FocusTracker as _0x2aec2a,KeystrokeHandler as _0x12accf}from'ckeditor5/src/utils.js';import{View as _0x5c8843,FocusCycler as _0x518d6a,createLabeledTextarea as _0x5a0942}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x4ecb84,AIFormToolbarViewMainActionLabel as _0x12f5fe}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x39b55}from'./aiformcontentarea.js';import{AIFormErrorView as _0x24c901}from'./aiformerrorview.js';function _0x3dbb(_0x1ea442,_0x37c853){const _0x3f0dde=_0x3f0d();return _0x3dbb=function(_0x3dbb46,_0x375f0d){_0x3dbb46=_0x3dbb46-0x10d;let _0x2b0945=_0x3f0dde[_0x3dbb46];return _0x2b0945;},_0x3dbb(_0x1ea442,_0x37c853);}import{AIFormPromptView as _0x183d1e}from'./aiformpromptview.js';import{AIHistoryListView as _0x44795b}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x3a7cb6}from'./aihistorylistitemview.js';import{PromptHistory as _0x2e482b}from'./prompthistory.js';import{getTranslation as _0x4a02bc}from'../../utils/common-translations.js';import{escape as _0x2b1abc}from'es-toolkit/compat';export class AIFormView extends _0x5c8843{[_0xc1eaa0(0x150)];[_0xc1eaa0(0x132)];[_0xc1eaa0(0x111)];[_0xc1eaa0(0x152)];[_0xc1eaa0(0x148)];[_0xc1eaa0(0x12d)];[_0xc1eaa0(0x15c)];[_0xc1eaa0(0x154)];[_0xc1eaa0(0x11f)];constructor(_0x436acb,_0x496b4c,_0x5be5f9=''){const _0x1a68a0=_0xc1eaa0;super(_0x436acb),this[_0x1a68a0(0x11a)](_0x1a68a0(0x113),!0x0),this[_0x1a68a0(0x11a)](_0x1a68a0(0x119),!0x1),this[_0x1a68a0(0x11a)](_0x1a68a0(0x114),''),this[_0x1a68a0(0x11a)](_0x1a68a0(0x160),''),this[_0x1a68a0(0x11a)](_0x1a68a0(0x133),!0x1),this[_0x1a68a0(0x11a)](_0x1a68a0(0x115),_0x12f5fe[_0x1a68a0(0x138)]),this[_0x1a68a0(0x11f)]=new _0x2e482b(),this[_0x1a68a0(0x12d)]=new _0x24c901(_0x436acb),this[_0x1a68a0(0x111)]=new _0x39b55(_0x436acb,_0x5be5f9),this[_0x1a68a0(0x111)][_0x1a68a0(0x139)](_0x1a68a0(0x119))['to'](this),this[_0x1a68a0(0x111)][_0x1a68a0(0x139)](_0x1a68a0(0x160))['to'](this),this[_0x1a68a0(0x152)]=this[_0x1a68a0(0x151)](),this[_0x1a68a0(0x152)][_0x1a68a0(0x139)](_0x1a68a0(0x115))['to'](this),this[_0x1a68a0(0x148)]=this[_0x1a68a0(0x110)](),this[_0x1a68a0(0x150)]=new _0x2aec2a(),this[_0x1a68a0(0x132)]=new _0x12accf(),this[_0x1a68a0(0x15c)]=this[_0x1a68a0(0x15a)]([this[_0x1a68a0(0x111)],this[_0x1a68a0(0x111)][_0x1a68a0(0x121)],this[_0x1a68a0(0x152)],this[_0x1a68a0(0x148)]]),this[_0x1a68a0(0x154)]=new _0x518d6a({'focusables':this[_0x1a68a0(0x15c)],'focusTracker':this[_0x1a68a0(0x150)],'keystrokeHandler':this[_0x1a68a0(0x132)],'actions':{'focusPrevious':_0x1a68a0(0x135),'focusNext':_0x1a68a0(0x131)}}),this[_0x1a68a0(0x154)][_0x1a68a0(0x127)](this[_0x1a68a0(0x148)][_0x1a68a0(0x154)]),this[_0x1a68a0(0x148)][_0x1a68a0(0x13f)][_0x1a68a0(0x125)][_0x1a68a0(0x139)](_0x1a68a0(0x160))['to'](this,_0x1a68a0(0x114));const _0x36d2ff=this[_0x1a68a0(0x10d)];this[_0x1a68a0(0x15d)]({'tag':_0x1a68a0(0x128),'attributes':{'class':['ck',_0x1a68a0(0x14d),_0x496b4c],'tabindex':'-1'},'children':[{'tag':_0x1a68a0(0x128),'attributes':{'class':['ck',_0x1a68a0(0x13a)]},'children':[{'tag':_0x1a68a0(0x128),'attributes':{'class':[_0x36d2ff['if'](_0x1a68a0(0x133),_0x1a68a0(0x13c),_0x558ba4=>!_0x558ba4)]},'children':[this[_0x1a68a0(0x12d)]]},this[_0x1a68a0(0x111)],this[_0x1a68a0(0x152)],this[_0x1a68a0(0x148)]]}]});}[_0xc1eaa0(0x130)](){const _0x2a3f63=_0xc1eaa0;super[_0x2a3f63(0x130)](),this[_0x2a3f63(0x150)][_0x2a3f63(0x129)](this[_0x2a3f63(0x111)][_0x2a3f63(0x120)]),this[_0x2a3f63(0x150)][_0x2a3f63(0x129)](this[_0x2a3f63(0x111)][_0x2a3f63(0x121)][_0x2a3f63(0x120)]),this[_0x2a3f63(0x150)][_0x2a3f63(0x129)](this[_0x2a3f63(0x152)][_0x2a3f63(0x120)]),this[_0x2a3f63(0x150)][_0x2a3f63(0x129)](this[_0x2a3f63(0x148)][_0x2a3f63(0x120)]),this[_0x2a3f63(0x132)][_0x2a3f63(0x11c)](this[_0x2a3f63(0x120)]);}[_0xc1eaa0(0x14c)](_0x2b6c22=0x1){const _0x1aee51=_0xc1eaa0;-0x1===_0x2b6c22?this[_0x1aee51(0x154)][_0x1aee51(0x14e)]():this[_0x1aee51(0x154)][_0x1aee51(0x126)]();}[_0xc1eaa0(0x137)](){const _0x48be12=_0xc1eaa0;this[_0x48be12(0x114)]='',this[_0x48be12(0x160)]='',this[_0x48be12(0x133)]=!0x1,this[_0x48be12(0x148)][_0x48be12(0x137)](),this[_0x48be12(0x111)][_0x48be12(0x12f)]=!0x1,this[_0x48be12(0x152)][_0x48be12(0x12f)]=!0x1;}[_0xc1eaa0(0x110)](){const _0xfe4079=_0xc1eaa0,_0x132b39=this[_0xfe4079(0x13e)],_0x39862f=new _0x183d1e(_0x132b39,{'queryView':{'label':_0x4a02bc(_0x132b39,_0xfe4079(0x11e)),'creator':_0x5a0942,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x4a02bc(_0x132b39,_0xfe4079(0x15e)),'secondary':_0x4a02bc(_0x132b39,_0xfe4079(0x156))}}},'filteredView':this[_0xfe4079(0x122)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x39862f[_0xfe4079(0x139)](_0xfe4079(0x113))['to'](this,_0xfe4079(0x113),this,_0xfe4079(0x119),(_0x5a1d37,_0x37c218)=>_0x5a1d37&&!_0x37c218),this[_0xfe4079(0x11c)](_0x39862f,_0xfe4079(0x15f),(_0x4134db,_0x2581c1)=>{const _0x1ac993=_0xfe4079;this[_0x1ac993(0x114)]=_0x2581c1;const _0x2fbe7d=_0x2b1abc(_0x2581c1);this[_0x1ac993(0x136)](_0x1ac993(0x155),_0x2fbe7d),_0x2581c1[_0x1ac993(0x145)]()&&this[_0x1ac993(0x11f)][_0x1ac993(0x129)]({'prompt':_0x2fbe7d},0x0);},{'priority':_0xfe4079(0x12c)}),_0x39862f;}[_0xc1eaa0(0x122)](){const _0x24f66f=_0xc1eaa0,_0x19eabd=new _0x44795b(this[_0x24f66f(0x13e)]);return _0x19eabd[_0x24f66f(0x112)][_0x24f66f(0x153)][_0x24f66f(0x140)](this[_0x24f66f(0x11f)])['as'](_0x3a7cb6),_0x19eabd['on'](_0x24f66f(0x11d),()=>{const _0x4f6e11=_0x24f66f;this[_0x4f6e11(0x11f)][_0x4f6e11(0x146)](),this[_0x4f6e11(0x148)][_0x4f6e11(0x14a)](''),this[_0x4f6e11(0x148)][_0x4f6e11(0x14c)]();}),_0x19eabd;}[_0xc1eaa0(0x151)](){const _0x2bcc17=_0xc1eaa0,_0x3600ca=new _0x4ecb84(this[_0x2bcc17(0x13e)]);return _0x3600ca[_0x2bcc17(0x11b)][_0x2bcc17(0x139)](_0x2bcc17(0x113))['to'](this,_0x2bcc17(0x113),this,_0x2bcc17(0x119),this,_0x2bcc17(0x160),(_0x1cac0e,_0xb82ae6,_0x45afcb)=>_0x1cac0e&&!_0xb82ae6&&!!_0x45afcb),_0x3600ca[_0x2bcc17(0x11b)][_0x2bcc17(0x15b)](_0x2bcc17(0x14b))['to'](this,_0x2bcc17(0x12e)),_0x3600ca[_0x2bcc17(0x147)][_0x2bcc17(0x139)](_0x2bcc17(0x113))['to'](this,_0x2bcc17(0x113),this,_0x2bcc17(0x119),this,_0x2bcc17(0x160),(_0x1acd53,_0x3e36f0,_0x14d6b4)=>_0x1acd53&&!_0x3e36f0&&!!_0x14d6b4),_0x3600ca[_0x2bcc17(0x147)][_0x2bcc17(0x15b)](_0x2bcc17(0x14b))['to'](this,_0x2bcc17(0x10f)),_0x3600ca[_0x2bcc17(0x123)][_0x2bcc17(0x139)](_0x2bcc17(0x113))['to'](this,_0x2bcc17(0x113),this,_0x2bcc17(0x119),(_0x2b4e47,_0x5901c2)=>_0x2b4e47&&!_0x5901c2),_0x3600ca[_0x2bcc17(0x123)][_0x2bcc17(0x15b)](_0x2bcc17(0x14b))['to'](this,_0x2bcc17(0x124)),_0x3600ca[_0x2bcc17(0x117)][_0x2bcc17(0x139)](_0x2bcc17(0x113))['to'](this,_0x2bcc17(0x119)),_0x3600ca[_0x2bcc17(0x117)][_0x2bcc17(0x15b)](_0x2bcc17(0x14b))['to'](this,_0x2bcc17(0x14f)),_0x3600ca;}[_0xc1eaa0(0x12a)](){const _0x17ee9f=_0xc1eaa0;this[_0x17ee9f(0x160)]='',this[_0x17ee9f(0x133)]=!0x1,this[_0x17ee9f(0x119)]=!0x0,this[_0x17ee9f(0x111)][_0x17ee9f(0x12f)]=!0x0,this[_0x17ee9f(0x152)][_0x17ee9f(0x12f)]=!0x0,this[_0x17ee9f(0x111)][_0x17ee9f(0x14c)]();}[_0xc1eaa0(0x10e)](){const _0x1162fb=_0xc1eaa0,_0x164da5=this[_0x1162fb(0x13e)];this[_0x1162fb(0x119)]=!0x1,this[_0x1162fb(0x114)]='',this[_0x1162fb(0x148)][_0x1162fb(0x137)](),this[_0x1162fb(0x160)]&&(this[_0x1162fb(0x148)][_0x1162fb(0x13f)][_0x1162fb(0x142)]=_0x4a02bc(_0x164da5,_0x1162fb(0x149)));}[_0xc1eaa0(0x161)](_0x3ef91d){const _0x128e0f=_0xc1eaa0,_0x431032=this[_0x128e0f(0x13e)];this[_0x128e0f(0x10e)](),this[_0x128e0f(0x133)]=!0x0,this[_0x128e0f(0x12d)][_0x128e0f(0x134)]=_0x3ef91d||_0x4a02bc(_0x431032,_0x128e0f(0x13b)),this[_0x128e0f(0x160)]||(this[_0x128e0f(0x111)][_0x128e0f(0x12f)]=!0x1);}}function _0x3f0d(){const _0x2d763e=['bindTemplate','finishProcessing','insertContentBelow','_createPromptView','contentArea','historyGroupView','isEnabled','prompt','mainAction','215037vFXmpv','stopButton','143316WqEjSh','isProcessing','set','replaceButton','listenTo','clearHistory','Ask\x20AI\x20to\x20edit\x20or\x20generate','_promptHistory','element','copyButtonView','_createHistoryView','tryAgainButton','tryAgainEvent','fieldView','focusFirst','chain','div','add','startProcessing','3968685WlBTgB','high','errorView','replaceContent','isVisible','render','tab','keystrokes','isError','text','shift\x20+\x20tab','fire','reset','REPLACE','bind','ck-ai-form-content','AI_ERROR_FAILED','ck-hidden','22489060JfHGKQ','locale','queryView','bindTo','2ksEQbr','label','5793738SOEXvi','54645oemqvz','trim','clear','insertButton','promptView','Ask\x20AI\x20to\x20improve\x20generated\x20text','search','execute','focus','ck-ai-form','focusLast','stopProcessing','focusTracker','_createToolbar','toolbar','items','focusCycler','submitPrompt','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','3844732mrUHur','5ESWODU','456wIoYdv','createCollection','delegate','_focusables','setTemplate','Empty\x20history','submit','value','handleError'];_0x3f0d=function(){return _0x2d763e;};return _0x3f0d();}
23
+ const _0x33d497=_0xbac8;(function(_0x247827,_0x54384d){const _0x2da3db=_0xbac8,_0x3e81cf=_0x247827();while(!![]){try{const _0x14e521=-parseInt(_0x2da3db(0x149))/0x1*(-parseInt(_0x2da3db(0x176))/0x2)+parseInt(_0x2da3db(0x134))/0x3*(-parseInt(_0x2da3db(0x146))/0x4)+parseInt(_0x2da3db(0x13c))/0x5+parseInt(_0x2da3db(0x163))/0x6*(parseInt(_0x2da3db(0x16b))/0x7)+-parseInt(_0x2da3db(0x180))/0x8*(parseInt(_0x2da3db(0x139))/0x9)+parseInt(_0x2da3db(0x177))/0xa+-parseInt(_0x2da3db(0x132))/0xb;if(_0x14e521===_0x54384d)break;else _0x3e81cf['push'](_0x3e81cf['shift']());}catch(_0x1b2720){_0x3e81cf['push'](_0x3e81cf['shift']());}}}(_0x3d8b,0xd1d8d));import{FocusTracker as _0x331ee9,KeystrokeHandler as _0x254aa1}from'ckeditor5/src/utils.js';import{View as _0x2b42fc,FocusCycler as _0x117be3,createLabeledTextarea as _0x9b816e}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x53ad5e,AIFormToolbarViewMainActionLabel as _0x4a4cda}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x1b52e6}from'./aiformcontentarea.js';function _0x3d8b(){const _0x41bfe6=['tryAgainEvent','chain','locale','20EMrNgB','search','div','631919XrLlHX','text','isError','listenTo','clear','promptView','_focusables','reset','Empty\x20history','queryView','AI_ERROR_FAILED','value','execute','prompt','tab','isEnabled','insertButton','copyButtonView','focus','high','mainAction','setTemplate','stopProcessing','focusCycler','_createHistoryView','submitPrompt','3206838fDwwAn','add','handleError','errorView','bind','clearHistory','trim','isProcessing','14aPNImW','element','label','contentArea','Ask\x20AI\x20to\x20edit\x20or\x20generate','REPLACE','ck-hidden','ck-ai-form-content','tryAgainButton','submit','replaceButton','2oKkbzx','12362500rZAdjo','historyGroupView','ck-ai-form','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','startProcessing','insertContentBelow','_createPromptView','finishProcessing','focusLast','21288RuqbTG','isVisible','shift\x20+\x20tab','items','fieldView','set','render','bindTemplate','12265572QrEBbG','Ask\x20AI\x20to\x20improve\x20generated\x20text','836511qnprNc','createCollection','replaceContent','_promptHistory','keystrokes','693CQdZHc','focusTracker','bindTo','3182760tiveSu','stopButton','_createToolbar','focusFirst','toolbar','fire','delegate'];_0x3d8b=function(){return _0x41bfe6;};return _0x3d8b();}import{AIFormErrorView as _0x3a3dbc}from'./aiformerrorview.js';import{AIFormPromptView as _0x4c1b23}from'./aiformpromptview.js';import{AIHistoryListView as _0x458fe8}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x3da61a}from'./aihistorylistitemview.js';function _0xbac8(_0x16d103,_0x425ee4){const _0x3d8b03=_0x3d8b();return _0xbac8=function(_0xbac8ae,_0x475cce){_0xbac8ae=_0xbac8ae-0x131;let _0x330942=_0x3d8b03[_0xbac8ae];return _0x330942;},_0xbac8(_0x16d103,_0x425ee4);}import{PromptHistory as _0x2df056}from'./prompthistory.js';import{getTranslation as _0x654f0}from'../../utils/common-translations.js';import{escape as _0x1f6f41}from'es-toolkit/compat';export class AIFormView extends _0x2b42fc{[_0x33d497(0x13a)];[_0x33d497(0x138)];[_0x33d497(0x16e)];[_0x33d497(0x140)];[_0x33d497(0x14e)];[_0x33d497(0x166)];[_0x33d497(0x14f)];[_0x33d497(0x160)];[_0x33d497(0x137)];constructor(_0x25de31,_0x148ca1,_0x1110a0=''){const _0x465c17=_0x33d497;super(_0x25de31),this[_0x465c17(0x185)](_0x465c17(0x158),!0x0),this[_0x465c17(0x185)](_0x465c17(0x16a),!0x1),this[_0x465c17(0x185)](_0x465c17(0x156),''),this[_0x465c17(0x185)](_0x465c17(0x154),''),this[_0x465c17(0x185)](_0x465c17(0x14b),!0x1),this[_0x465c17(0x185)](_0x465c17(0x15d),_0x4a4cda[_0x465c17(0x170)]),this[_0x465c17(0x137)]=new _0x2df056(),this[_0x465c17(0x166)]=new _0x3a3dbc(_0x25de31),this[_0x465c17(0x16e)]=new _0x1b52e6(_0x25de31,_0x1110a0),this[_0x465c17(0x16e)][_0x465c17(0x167)](_0x465c17(0x16a))['to'](this),this[_0x465c17(0x16e)][_0x465c17(0x167)](_0x465c17(0x154))['to'](this),this[_0x465c17(0x140)]=this[_0x465c17(0x13e)](),this[_0x465c17(0x140)][_0x465c17(0x167)](_0x465c17(0x15d))['to'](this),this[_0x465c17(0x14e)]=this[_0x465c17(0x17d)](),this[_0x465c17(0x13a)]=new _0x331ee9(),this[_0x465c17(0x138)]=new _0x254aa1(),this[_0x465c17(0x14f)]=this[_0x465c17(0x135)]([this[_0x465c17(0x16e)],this[_0x465c17(0x16e)][_0x465c17(0x15a)],this[_0x465c17(0x140)],this[_0x465c17(0x14e)]]),this[_0x465c17(0x160)]=new _0x117be3({'focusables':this[_0x465c17(0x14f)],'focusTracker':this[_0x465c17(0x13a)],'keystrokeHandler':this[_0x465c17(0x138)],'actions':{'focusPrevious':_0x465c17(0x182),'focusNext':_0x465c17(0x157)}}),this[_0x465c17(0x160)][_0x465c17(0x144)](this[_0x465c17(0x14e)][_0x465c17(0x160)]),this[_0x465c17(0x14e)][_0x465c17(0x152)][_0x465c17(0x184)][_0x465c17(0x167)](_0x465c17(0x154))['to'](this,_0x465c17(0x156));const _0x420d4c=this[_0x465c17(0x131)];this[_0x465c17(0x15e)]({'tag':_0x465c17(0x148),'attributes':{'class':['ck',_0x465c17(0x179),_0x148ca1],'tabindex':'-1'},'children':[{'tag':_0x465c17(0x148),'attributes':{'class':['ck',_0x465c17(0x172)]},'children':[{'tag':_0x465c17(0x148),'attributes':{'class':[_0x420d4c['if'](_0x465c17(0x14b),_0x465c17(0x171),_0x117001=>!_0x117001)]},'children':[this[_0x465c17(0x166)]]},this[_0x465c17(0x16e)],this[_0x465c17(0x140)],this[_0x465c17(0x14e)]]}]});}[_0x33d497(0x186)](){const _0x208a35=_0x33d497;super[_0x208a35(0x186)](),this[_0x208a35(0x13a)][_0x208a35(0x164)](this[_0x208a35(0x16e)][_0x208a35(0x16c)]),this[_0x208a35(0x13a)][_0x208a35(0x164)](this[_0x208a35(0x16e)][_0x208a35(0x15a)][_0x208a35(0x16c)]),this[_0x208a35(0x13a)][_0x208a35(0x164)](this[_0x208a35(0x140)][_0x208a35(0x16c)]),this[_0x208a35(0x13a)][_0x208a35(0x164)](this[_0x208a35(0x14e)][_0x208a35(0x16c)]),this[_0x208a35(0x138)][_0x208a35(0x14c)](this[_0x208a35(0x16c)]);}[_0x33d497(0x15b)](_0x183e68=0x1){const _0x2a3d40=_0x33d497;-0x1===_0x183e68?this[_0x2a3d40(0x160)][_0x2a3d40(0x17f)]():this[_0x2a3d40(0x160)][_0x2a3d40(0x13f)]();}[_0x33d497(0x150)](){const _0x1ce104=_0x33d497;this[_0x1ce104(0x156)]='',this[_0x1ce104(0x154)]='',this[_0x1ce104(0x14b)]=!0x1,this[_0x1ce104(0x14e)][_0x1ce104(0x150)](),this[_0x1ce104(0x16e)][_0x1ce104(0x181)]=!0x1,this[_0x1ce104(0x140)][_0x1ce104(0x181)]=!0x1;}[_0x33d497(0x17d)](){const _0x133b00=_0x33d497,_0x27296f=this[_0x133b00(0x145)],_0x3760a6=new _0x4c1b23(_0x27296f,{'queryView':{'label':_0x654f0(_0x27296f,_0x133b00(0x16f)),'creator':_0x9b816e,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x654f0(_0x27296f,_0x133b00(0x151)),'secondary':_0x654f0(_0x27296f,_0x133b00(0x17a))}}},'filteredView':this[_0x133b00(0x161)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x3760a6[_0x133b00(0x167)](_0x133b00(0x158))['to'](this,_0x133b00(0x158),this,_0x133b00(0x16a),(_0x287e41,_0xc3bd14)=>_0x287e41&&!_0xc3bd14),this[_0x133b00(0x14c)](_0x3760a6,_0x133b00(0x174),(_0x536a88,_0x1cf459)=>{const _0x11ce6a=_0x133b00;this[_0x11ce6a(0x156)]=_0x1cf459;const _0x5d8af3=_0x1f6f41(_0x1cf459);this[_0x11ce6a(0x141)](_0x11ce6a(0x162),_0x5d8af3),_0x1cf459[_0x11ce6a(0x169)]()&&this[_0x11ce6a(0x137)][_0x11ce6a(0x164)]({'prompt':_0x5d8af3},0x0);},{'priority':_0x133b00(0x15c)}),_0x3760a6;}[_0x33d497(0x161)](){const _0x180f6c=_0x33d497,_0x51bccf=new _0x458fe8(this[_0x180f6c(0x145)]);return _0x51bccf[_0x180f6c(0x178)][_0x180f6c(0x183)][_0x180f6c(0x13b)](this[_0x180f6c(0x137)])['as'](_0x3da61a),_0x51bccf['on'](_0x180f6c(0x168),()=>{const _0x783356=_0x180f6c;this[_0x783356(0x137)][_0x783356(0x14d)](),this[_0x783356(0x14e)][_0x783356(0x147)](''),this[_0x783356(0x14e)][_0x783356(0x15b)]();}),_0x51bccf;}[_0x33d497(0x13e)](){const _0x37f65c=_0x33d497,_0x5ae796=new _0x53ad5e(this[_0x37f65c(0x145)]);return _0x5ae796[_0x37f65c(0x175)][_0x37f65c(0x167)](_0x37f65c(0x158))['to'](this,_0x37f65c(0x158),this,_0x37f65c(0x16a),this,_0x37f65c(0x154),(_0x557086,_0x5b337c,_0x9548f8)=>_0x557086&&!_0x5b337c&&!!_0x9548f8),_0x5ae796[_0x37f65c(0x175)][_0x37f65c(0x142)](_0x37f65c(0x155))['to'](this,_0x37f65c(0x136)),_0x5ae796[_0x37f65c(0x159)][_0x37f65c(0x167)](_0x37f65c(0x158))['to'](this,_0x37f65c(0x158),this,_0x37f65c(0x16a),this,_0x37f65c(0x154),(_0x1d5d7b,_0x150ccc,_0x5d15bb)=>_0x1d5d7b&&!_0x150ccc&&!!_0x5d15bb),_0x5ae796[_0x37f65c(0x159)][_0x37f65c(0x142)](_0x37f65c(0x155))['to'](this,_0x37f65c(0x17c)),_0x5ae796[_0x37f65c(0x173)][_0x37f65c(0x167)](_0x37f65c(0x158))['to'](this,_0x37f65c(0x158),this,_0x37f65c(0x16a),(_0x281ada,_0x5bce47)=>_0x281ada&&!_0x5bce47),_0x5ae796[_0x37f65c(0x173)][_0x37f65c(0x142)](_0x37f65c(0x155))['to'](this,_0x37f65c(0x143)),_0x5ae796[_0x37f65c(0x13d)][_0x37f65c(0x167)](_0x37f65c(0x158))['to'](this,_0x37f65c(0x16a)),_0x5ae796[_0x37f65c(0x13d)][_0x37f65c(0x142)](_0x37f65c(0x155))['to'](this,_0x37f65c(0x15f)),_0x5ae796;}[_0x33d497(0x17b)](){const _0x2e57df=_0x33d497;this[_0x2e57df(0x154)]='',this[_0x2e57df(0x14b)]=!0x1,this[_0x2e57df(0x16a)]=!0x0,this[_0x2e57df(0x16e)][_0x2e57df(0x181)]=!0x0,this[_0x2e57df(0x140)][_0x2e57df(0x181)]=!0x0,this[_0x2e57df(0x16e)][_0x2e57df(0x15b)]();}[_0x33d497(0x17e)](){const _0x2de840=_0x33d497,_0x5b265d=this[_0x2de840(0x145)];this[_0x2de840(0x16a)]=!0x1,this[_0x2de840(0x156)]='',this[_0x2de840(0x14e)][_0x2de840(0x150)](),this[_0x2de840(0x154)]&&(this[_0x2de840(0x14e)][_0x2de840(0x152)][_0x2de840(0x16d)]=_0x654f0(_0x5b265d,_0x2de840(0x133)));}[_0x33d497(0x165)](_0x142f82){const _0xdc1c42=_0x33d497,_0x5c093a=this[_0xdc1c42(0x145)];this[_0xdc1c42(0x17e)](),this[_0xdc1c42(0x14b)]=!0x0,this[_0xdc1c42(0x166)][_0xdc1c42(0x14a)]=_0x142f82||_0x654f0(_0x5c093a,_0xdc1c42(0x153)),this[_0xdc1c42(0x154)]||(this[_0xdc1c42(0x16e)][_0xdc1c42(0x181)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5693(_0x1e1846,_0xa09b7c){const _0x491ab3=_0x491a();return _0x5693=function(_0x569317,_0x291bfa){_0x569317=_0x569317-0xc8;let _0x477974=_0x491ab3[_0x569317];return _0x477974;},_0x5693(_0x1e1846,_0xa09b7c);}function _0x491a(){const _0x247818=['children','set','fire','locale','1HiAAsl','add','execute','210yRfqBU','322994DJMLPU','1747056ueoFna','3431826vvhKkx','prompt','2989756pNVwnw','427560jtLOis','16ChgXND','31508kUdfUL','430780dVemdn'];_0x491a=function(){return _0x247818;};return _0x491a();}(function(_0x488f69,_0x21a6d6){const _0x24044b=_0x5693,_0x1fb190=_0x488f69();while(!![]){try{const _0x4abc71=-parseInt(_0x24044b(0xcb))/0x1*(parseInt(_0x24044b(0xcf))/0x2)+parseInt(_0x24044b(0xce))/0x3*(parseInt(_0x24044b(0xd6))/0x4)+parseInt(_0x24044b(0xd4))/0x5+parseInt(_0x24044b(0xd0))/0x6+parseInt(_0x24044b(0xd3))/0x7+-parseInt(_0x24044b(0xd5))/0x8*(parseInt(_0x24044b(0xd1))/0x9)+-parseInt(_0x24044b(0xd7))/0xa;if(_0x4abc71===_0x21a6d6)break;else _0x1fb190['push'](_0x1fb190['shift']());}catch(_0x5e8782){_0x1fb190['push'](_0x1fb190['shift']());}}}(_0x491a,0x5eb8f));import{ListItemView as _0x5853d1,ButtonView as _0x56e1d0,ButtonLabelView as _0x217e19}from'ckeditor5/src/ui.js';import{unescape as _0x3a8dad}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x5853d1{constructor(_0x47c3c6){const _0xc4aa7=_0x5693;super();const _0x3e2194=new _0x217e19(),_0x210c32=new _0x56e1d0(this[_0xc4aa7(0xca)],_0x3e2194);this[_0xc4aa7(0xd8)][_0xc4aa7(0xcc)](_0x210c32),_0x210c32[_0xc4aa7(0xc8)]({'label':_0x47c3c6[_0xc4aa7(0xd2)],'withText':!0x0}),_0x210c32['on'](_0xc4aa7(0xcd),()=>{const _0x25b5e9=_0xc4aa7;this[_0x25b5e9(0xc9)](_0x25b5e9(0xcd),{'value':_0x3a8dad(_0x47c3c6[_0x25b5e9(0xd2)])});});}}
23
+ (function(_0x91cd6b,_0x84a079){const _0x238951=_0x208e,_0x2bdcee=_0x91cd6b();while(!![]){try{const _0x12f10a=parseInt(_0x238951(0x13a))/0x1*(parseInt(_0x238951(0x134))/0x2)+-parseInt(_0x238951(0x138))/0x3+parseInt(_0x238951(0x12d))/0x4*(-parseInt(_0x238951(0x137))/0x5)+-parseInt(_0x238951(0x12c))/0x6+-parseInt(_0x238951(0x135))/0x7*(parseInt(_0x238951(0x132))/0x8)+-parseInt(_0x238951(0x12e))/0x9*(-parseInt(_0x238951(0x13b))/0xa)+parseInt(_0x238951(0x130))/0xb;if(_0x12f10a===_0x84a079)break;else _0x2bdcee['push'](_0x2bdcee['shift']());}catch(_0x48ddac){_0x2bdcee['push'](_0x2bdcee['shift']());}}}(_0x3f91,0xd1789));function _0x3f91(){const _0x457a4e=['set','1713679PVpnHB','319710iIAgBq','children','execute','8176176VEmggx','4ZaaMSz','135zoxJAo','prompt','39042377hUuwlv','locale','8642184KzIPHK','fire','2ugCdXK','7giqhxB','add','8459855KYJvhI','2248854mLAnOD'];_0x3f91=function(){return _0x457a4e;};return _0x3f91();}function _0x208e(_0x282310,_0x4b1d0b){const _0x3f9175=_0x3f91();return _0x208e=function(_0x208e49,_0x36f038){_0x208e49=_0x208e49-0x12b;let _0x25ba5b=_0x3f9175[_0x208e49];return _0x25ba5b;},_0x208e(_0x282310,_0x4b1d0b);}import{ListItemView as _0x567299,ButtonView as _0x5ed6f4,ButtonLabelView as _0x590d06}from'ckeditor5/src/ui.js';import{unescape as _0x1a2c0a}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x567299{constructor(_0x3cdd12){const _0x107621=_0x208e;super();const _0x4ff326=new _0x590d06(),_0x298428=new _0x5ed6f4(this[_0x107621(0x131)],_0x4ff326);this[_0x107621(0x13c)][_0x107621(0x136)](_0x298428),_0x298428[_0x107621(0x139)]({'label':_0x3cdd12[_0x107621(0x12f)],'withText':!0x0}),_0x298428['on'](_0x107621(0x12b),()=>{const _0x2a41c3=_0x107621;this[_0x2a41c3(0x133)](_0x2a41c3(0x12b),{'value':_0x1a2c0a(_0x3cdd12[_0x2a41c3(0x12f)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a7b08=_0x2a43;(function(_0x1627a1,_0x178447){const _0x3c4bd9=_0x2a43,_0x2370d1=_0x1627a1();while(!![]){try{const _0x73cec8=-parseInt(_0x3c4bd9(0x119))/0x1*(-parseInt(_0x3c4bd9(0x125))/0x2)+parseInt(_0x3c4bd9(0x12d))/0x3+parseInt(_0x3c4bd9(0x115))/0x4*(-parseInt(_0x3c4bd9(0x120))/0x5)+parseInt(_0x3c4bd9(0x113))/0x6*(-parseInt(_0x3c4bd9(0x11c))/0x7)+-parseInt(_0x3c4bd9(0x11e))/0x8*(parseInt(_0x3c4bd9(0x114))/0x9)+-parseInt(_0x3c4bd9(0x117))/0xa*(parseInt(_0x3c4bd9(0x126))/0xb)+parseInt(_0x3c4bd9(0x12e))/0xc;if(_0x73cec8===_0x178447)break;else _0x2370d1['push'](_0x2370d1['shift']());}catch(_0x22ec7f){_0x2370d1['push'](_0x2370d1['shift']());}}}(_0x2866,0x93ff3));function _0x2866(){const _0x2d5098=['children','7MFciFu','_createClearHistoryButton','34856mmPzwV','items','17705QEjYUH','locale','clearHistory','Prompt\x20history','execute','88768EaEryq','517ikcHHG','add','label','set','fire','length','Clear','3016794NcwKFK','9369744YmsVIK','clearHistoryButton','1615656QFwdIC','1953RPAYsz','12gpzyjk','filter','37610Ucrcbt','historyGroupView','5ruklEn','delegate'];_0x2866=function(){return _0x2d5098;};return _0x2866();}function _0x2a43(_0x2de865,_0x311943){const _0x2866be=_0x2866();return _0x2a43=function(_0x2a4342,_0x5c0e01){_0x2a4342=_0x2a4342-0x113;let _0x417ba5=_0x2866be[_0x2a4342];return _0x417ba5;},_0x2a43(_0x2de865,_0x311943);}import{ListView as _0x3e1fbc,ListItemGroupView as _0x1b264d,ButtonView as _0x304e1d}from'ckeditor5/src/ui.js';import{getTranslation as _0xdd0bc2}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x3e1fbc{[_0x2a7b08(0x118)];[_0x2a7b08(0x12f)];constructor(_0x3ff719){const _0x285680=_0x2a7b08;super(_0x3ff719),this[_0x285680(0x12f)]=this[_0x285680(0x11d)](),this[_0x285680(0x118)]=new _0x1b264d(),this[_0x285680(0x118)][_0x285680(0x11b)][_0x285680(0x127)](this[_0x285680(0x12f)],0x1),this[_0x285680(0x118)][_0x285680(0x128)]=_0xdd0bc2(_0x3ff719,_0x285680(0x123)),this[_0x285680(0x118)][_0x285680(0x11f)][_0x285680(0x11a)](_0x285680(0x124))['to'](this),this[_0x285680(0x11f)][_0x285680(0x127)](this[_0x285680(0x118)]);}[_0x2a7b08(0x116)](){const _0x59298c=_0x2a7b08;let _0x3ae1ef=0x0;for(const _0x12969b of this[_0x59298c(0x11f)])_0x3ae1ef+=_0x12969b[_0x59298c(0x11f)][_0x59298c(0x12b)];return{'resultsCount':_0x3ae1ef,'totalItemsCount':_0x3ae1ef};}[_0x2a7b08(0x11d)](){const _0x5de2da=_0x2a7b08,_0x5726c6=this[_0x5de2da(0x121)],_0x54324b=new _0x304e1d(this[_0x5de2da(0x121)]);return _0x54324b[_0x5de2da(0x129)]({'label':'('+_0xdd0bc2(_0x5726c6,_0x5de2da(0x12c))+')','withText':!0x0}),_0x54324b['on'](_0x5de2da(0x124),()=>this[_0x5de2da(0x12a)](_0x5de2da(0x122))),_0x54324b;}}
23
+ const _0x55785b=_0x4fd4;(function(_0x5d600b,_0x4650cc){const _0x2e48fb=_0x4fd4,_0xb483fb=_0x5d600b();while(!![]){try{const _0x54617c=-parseInt(_0x2e48fb(0x1eb))/0x1*(parseInt(_0x2e48fb(0x1ea))/0x2)+-parseInt(_0x2e48fb(0x1d7))/0x3*(parseInt(_0x2e48fb(0x1df))/0x4)+parseInt(_0x2e48fb(0x1e4))/0x5+parseInt(_0x2e48fb(0x1ec))/0x6*(-parseInt(_0x2e48fb(0x1ed))/0x7)+parseInt(_0x2e48fb(0x1e5))/0x8*(parseInt(_0x2e48fb(0x1f0))/0x9)+parseInt(_0x2e48fb(0x1e7))/0xa*(parseInt(_0x2e48fb(0x1e3))/0xb)+-parseInt(_0x2e48fb(0x1d6))/0xc;if(_0x54617c===_0x4650cc)break;else _0xb483fb['push'](_0xb483fb['shift']());}catch(_0x36d91c){_0xb483fb['push'](_0xb483fb['shift']());}}}(_0x1d50,0xdaf90));function _0x1d50(){const _0x1ac79f=['filter','children','1953036qKJhFD','207SYyZRV','clearHistoryButton','items','_createClearHistoryButton','execute','label','Clear','set','9668ueZQuj','fire','add','clearHistory','22ssHbOV','1967850LfGbBb','1984YcuyvR','locale','6807610uqTuHQ','Prompt\x20history','delegate','60902fnNEKn','19NHpWID','6PMJuxC','3917683rkDkaE','historyGroupView','length','22122VcmYKF'];_0x1d50=function(){return _0x1ac79f;};return _0x1d50();}function _0x4fd4(_0x3ab72b,_0x17231f){const _0x1d50e9=_0x1d50();return _0x4fd4=function(_0x4fd498,_0x4a7134){_0x4fd498=_0x4fd498-0x1d5;let _0x482a76=_0x1d50e9[_0x4fd498];return _0x482a76;},_0x4fd4(_0x3ab72b,_0x17231f);}import{ListView as _0x360b99,ListItemGroupView as _0x5b2999,ButtonView as _0x29d0e0}from'ckeditor5/src/ui.js';import{getTranslation as _0x1e0578}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x360b99{[_0x55785b(0x1ee)];[_0x55785b(0x1d8)];constructor(_0x5a3613){const _0x548a5a=_0x55785b;super(_0x5a3613),this[_0x548a5a(0x1d8)]=this[_0x548a5a(0x1da)](),this[_0x548a5a(0x1ee)]=new _0x5b2999(),this[_0x548a5a(0x1ee)][_0x548a5a(0x1d5)][_0x548a5a(0x1e1)](this[_0x548a5a(0x1d8)],0x1),this[_0x548a5a(0x1ee)][_0x548a5a(0x1dc)]=_0x1e0578(_0x5a3613,_0x548a5a(0x1e8)),this[_0x548a5a(0x1ee)][_0x548a5a(0x1d9)][_0x548a5a(0x1e9)](_0x548a5a(0x1db))['to'](this),this[_0x548a5a(0x1d9)][_0x548a5a(0x1e1)](this[_0x548a5a(0x1ee)]);}[_0x55785b(0x1f1)](){const _0x569be=_0x55785b;let _0x3d7b08=0x0;for(const _0x3f2df7 of this[_0x569be(0x1d9)])_0x3d7b08+=_0x3f2df7[_0x569be(0x1d9)][_0x569be(0x1ef)];return{'resultsCount':_0x3d7b08,'totalItemsCount':_0x3d7b08};}[_0x55785b(0x1da)](){const _0x5760de=_0x55785b,_0x36a373=this[_0x5760de(0x1e6)],_0x4288e=new _0x29d0e0(this[_0x5760de(0x1e6)]);return _0x4288e[_0x5760de(0x1de)]({'label':'('+_0x1e0578(_0x36a373,_0x5760de(0x1dd))+')','withText':!0x0}),_0x4288e['on'](_0x5760de(0x1db),()=>this[_0x5760de(0x1e0)](_0x5760de(0x1e2))),_0x4288e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3e9d(_0x14f425,_0xc002b4){const _0x218a6e=_0x218a();return _0x3e9d=function(_0x3e9d9c,_0x362c28){_0x3e9d9c=_0x3e9d9c-0x1ba;let _0x27a7af=_0x218a6e[_0x3e9d9c];return _0x27a7af;},_0x3e9d(_0x14f425,_0xc002b4);}const _0x3704d3=_0x3e9d;(function(_0xbdcf06,_0x3bd4b0){const _0x1360c4=_0x3e9d,_0x47f39c=_0xbdcf06();while(!![]){try{const _0x1e0d56=-parseInt(_0x1360c4(0x1ce))/0x1+-parseInt(_0x1360c4(0x1bf))/0x2*(-parseInt(_0x1360c4(0x1cc))/0x3)+-parseInt(_0x1360c4(0x1c7))/0x4+parseInt(_0x1360c4(0x1ba))/0x5*(parseInt(_0x1360c4(0x1c1))/0x6)+parseInt(_0x1360c4(0x1c8))/0x7*(parseInt(_0x1360c4(0x1cf))/0x8)+-parseInt(_0x1360c4(0x1ca))/0x9*(parseInt(_0x1360c4(0x1c3))/0xa)+parseInt(_0x1360c4(0x1c5))/0xb*(parseInt(_0x1360c4(0x1c9))/0xc);if(_0x1e0d56===_0x3bd4b0)break;else _0x47f39c['push'](_0x47f39c['shift']());}catch(_0x48e215){_0x47f39c['push'](_0x47f39c['shift']());}}}(_0x218a,0x40ed4));import{Collection as _0x255224}from'ckeditor5/src/utils.js';function _0x218a(){const _0x115cf9=['parse','prompt','getItem','length','155RohYDM','trim','_loadFromSessionStorage','remove','last','37270yAOyqI','toLowerCase','61242XTdGDV','_saveToSessionStorage','2203780YZUjnq','map','1147509inOXaN','setItem','593012roAEIl','154EHFiNM','60mJnNYo','18VDTkby','addMany','66KfGkvs','stringify','404649CbuKJA','4224AByZvq','add','CKEditor/AIFormView/PromptHistory'];_0x218a=function(){return _0x115cf9;};return _0x218a();}const So=_0x3704d3(0x1d1);export class PromptHistory extends _0x255224{constructor(){const _0x4d715c=_0x3704d3;super(),this[_0x4d715c(0x1bc)](),this['on'](_0x4d715c(0x1d0),(_0x1744c3,_0x135c3b)=>{const _0x5a2e8f=_0x4d715c,_0x1c1103=fo(_0x135c3b[_0x5a2e8f(0x1d3)]);for(const _0x13e84a of this)if(_0x13e84a!=_0x135c3b&&fo(_0x13e84a[_0x5a2e8f(0x1d3)])===_0x1c1103){this[_0x5a2e8f(0x1bd)](_0x13e84a);break;}this[_0x5a2e8f(0x1d5)]>0x14&&this[_0x5a2e8f(0x1bd)](this[_0x5a2e8f(0x1be)]),this[_0x5a2e8f(0x1c2)]();}),this['on'](_0x4d715c(0x1bd),()=>{const _0x23032e=_0x4d715c;this[_0x23032e(0x1c2)]();});}[_0x3704d3(0x1bc)](){const _0x44d269=_0x3704d3,_0x2642b7=sessionStorage[_0x44d269(0x1d4)](So)||'[]';this[_0x44d269(0x1cb)](JSON[_0x44d269(0x1d2)](_0x2642b7));}[_0x3704d3(0x1c2)](){const _0x2f381f=_0x3704d3;sessionStorage[_0x2f381f(0x1c6)](So,JSON[_0x2f381f(0x1cd)](this[_0x2f381f(0x1c4)](_0x4b254f=>_0x4b254f)));}}function fo(_0x48f319){const _0x4e6df2=_0x3704d3;return _0x48f319[_0x4e6df2(0x1c0)]()[_0x4e6df2(0x1bb)]();}
23
+ function _0x390b(_0x4edd31,_0x47559e){const _0x4c4659=_0x4c46();return _0x390b=function(_0x390bdb,_0xccb0d2){_0x390bdb=_0x390bdb-0x10f;let _0x3a0625=_0x4c4659[_0x390bdb];return _0x3a0625;},_0x390b(_0x4edd31,_0x47559e);}const _0xe9f6a9=_0x390b;(function(_0x5399fc,_0x22de78){const _0x3caae0=_0x390b,_0x3923b6=_0x5399fc();while(!![]){try{const _0x421c53=-parseInt(_0x3caae0(0x113))/0x1*(parseInt(_0x3caae0(0x11b))/0x2)+-parseInt(_0x3caae0(0x124))/0x3+parseInt(_0x3caae0(0x110))/0x4*(parseInt(_0x3caae0(0x122))/0x5)+parseInt(_0x3caae0(0x114))/0x6*(parseInt(_0x3caae0(0x123))/0x7)+-parseInt(_0x3caae0(0x10f))/0x8+-parseInt(_0x3caae0(0x118))/0x9+parseInt(_0x3caae0(0x115))/0xa;if(_0x421c53===_0x22de78)break;else _0x3923b6['push'](_0x3923b6['shift']());}catch(_0xb4fe42){_0x3923b6['push'](_0x3923b6['shift']());}}}(_0x4c46,0xbab8c));import{Collection as _0x1f0638}from'ckeditor5/src/utils.js';const So=_0xe9f6a9(0x127);export class PromptHistory extends _0x1f0638{constructor(){const _0x373ec9=_0xe9f6a9;super(),this[_0x373ec9(0x112)](),this['on'](_0x373ec9(0x11e),(_0x5aaa2c,_0xa97dc3)=>{const _0x1f362e=_0x373ec9,_0x6ed695=fo(_0xa97dc3[_0x1f362e(0x119)]);for(const _0x74dfc7 of this)if(_0x74dfc7!=_0xa97dc3&&fo(_0x74dfc7[_0x1f362e(0x119)])===_0x6ed695){this[_0x1f362e(0x117)](_0x74dfc7);break;}this[_0x1f362e(0x11d)]>0x14&&this[_0x1f362e(0x117)](this[_0x1f362e(0x111)]),this[_0x1f362e(0x126)]();}),this['on'](_0x373ec9(0x117),()=>{const _0x4729ab=_0x373ec9;this[_0x4729ab(0x126)]();});}[_0xe9f6a9(0x112)](){const _0xb5d904=_0xe9f6a9,_0x2de459=sessionStorage[_0xb5d904(0x11c)](So)||'[]';this[_0xb5d904(0x11f)](JSON[_0xb5d904(0x125)](_0x2de459));}[_0xe9f6a9(0x126)](){const _0x4bab5c=_0xe9f6a9;sessionStorage[_0x4bab5c(0x121)](So,JSON[_0x4bab5c(0x11a)](this[_0x4bab5c(0x128)](_0x20eac3=>_0x20eac3)));}}function fo(_0xb1b90a){const _0x27029e=_0xe9f6a9;return _0xb1b90a[_0x27029e(0x116)]()[_0x27029e(0x120)]();}function _0x4c46(){const _0x1eb8bc=['63bTrkyy','3678759CMUQsZ','parse','_saveToSessionStorage','CKEditor/AIFormView/PromptHistory','map','7203608Ljrpdk','12zGxzCN','last','_loadFromSessionStorage','22DeMFjO','196266EcdNNl','37358230oOZbIF','toLowerCase','remove','10823526gkqyan','prompt','stringify','20726WukKMd','getItem','length','add','addMany','trim','setItem','486490tghTQN'];_0x4c46=function(){return _0x1eb8bc;};return _0x4c46();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x23a8c7=_0x34e6;(function(_0x5122f1,_0x521127){const _0x277f77=_0x34e6,_0x4e87ec=_0x5122f1();while(!![]){try{const _0x39477f=-parseInt(_0x277f77(0x15a))/0x1*(-parseInt(_0x277f77(0x193))/0x2)+-parseInt(_0x277f77(0x14d))/0x3*(-parseInt(_0x277f77(0x17a))/0x4)+parseInt(_0x277f77(0x176))/0x5*(-parseInt(_0x277f77(0x166))/0x6)+-parseInt(_0x277f77(0x18f))/0x7+-parseInt(_0x277f77(0x180))/0x8*(-parseInt(_0x277f77(0x169))/0x9)+-parseInt(_0x277f77(0x14c))/0xa+parseInt(_0x277f77(0x179))/0xb;if(_0x39477f===_0x521127)break;else _0x4e87ec['push'](_0x4e87ec['shift']());}catch(_0x2532f3){_0x4e87ec['push'](_0x4e87ec['shift']());}}}(_0x40ae,0x9da93));import{ContextPlugin as _0x25e319}from'ckeditor5/src/core.js';import{AIConnector as _0x3a5fb2}from'../aicore/aiconnector.js';import{AIEditing as _0x3662a5}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x1de6a1,AIBalloonView as _0x32344d}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';function _0x34e6(_0x5200e7,_0x1379e1){const _0x40aee9=_0x40ae();return _0x34e6=function(_0x34e6c9,_0x10170a){_0x34e6c9=_0x34e6c9-0x130;let _0x14c295=_0x40aee9[_0x34e6c9];return _0x14c295;},_0x34e6(_0x5200e7,_0x1379e1);}import{getAllMarkersDomElementsSorted as _0x1c08af}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x89170a,Rect as _0x4db63e,scrollViewportToShowTarget as _0x588e1b}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x42e812}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x3b31d4}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x126373}from'../aicore/utils/common-translations.js';function _0x40ae(){const _0xb7764f=['content','markers','label','fire','getBoundingRect','ai-selection','root','getMarkersGroup','5BVduio','requires','getChangedMarkers','2551021spfwpD','11860earmyc','commands','view','_config','window','headerView','548072GpcSAW','document','plugins','isEqual','hideFakeVisualSelection','dialogClosed','isTrackChangesOn','height','ai.availableReplyActions','show','_setupMarkerRemovalListener','title','updatePosition','index','rootName','5391456KFOtoK','differ','startAutoScroll','_calculateOptimalTopPosition','16586dnKncp','selectionRemoved','getIntersection','AIEditing','stopAutoScroll','\x20ai-balloon-rotator','showFakeVisualSelection','setupRotator','mainView','close','editing','ai-balloon-selection','render','trackChanges','max','delegate','filter','_isUpdatingMarkers','balloonView','hide','get','_getSelectionElements','isOfficialPlugin','context','_calculateDialogPosition','_updateBalloon','end','ai-balloon-','locale','ranges','iconView','off','isOpen','Dialog','pluginName','aiBalloon','_setupVisualSelection','config','AI_ACTIONS_SELECTION_REMOVED_ERROR','6069220bNdmfF','939FRmBaS','start','getVisible','ai-balloon','left','length','showRotator','model','_showDialog','_cleanupMarkerRemovalListener','$graveyard','value','AIBalloon','130cWiGID','stopListening','top','open','startsWith','isPremiumPlugin','bind','icon','width','change','_pendingRenderCallback','showBlockingError','6634524PlDnxZ','bottom','ai-selection:','117WAXyGh','updateContent','once','round','listenTo'];_0x40ae=function(){return _0xb7764f;};return _0x40ae();}export const AI_BALLOON_EVENT_NAMES=[..._0x1de6a1,_0x23a8c7(0x185),_0x23a8c7(0x194)];const mt=0xa;export class AIBalloon extends _0x25e319{static get[_0x23a8c7(0x177)](){return[_0x3a5fb2,_0x3662a5];}static get[_0x23a8c7(0x147)](){const _0x564509=_0x23a8c7;return _0x564509(0x159);}static get[_0x23a8c7(0x13b)](){return!0x0;}static get[_0x23a8c7(0x15f)](){return!0x0;}[_0x23a8c7(0x145)]=!0x1;[_0x23a8c7(0x17d)];[_0x23a8c7(0x136)]=!0x1;[_0x23a8c7(0x164)]=null;[_0x23a8c7(0x15d)](_0x3bd4bd){const _0x41b978=_0x23a8c7,_0xead4ee=_0x42e812(this[_0x41b978(0x13c)]);if(this[_0x41b978(0x17d)]=_0x3bd4bd,this[_0x41b978(0x145)])return void this[_0x41b978(0x13e)](_0x3bd4bd);const _0x488cd3=this[_0x41b978(0x13c)][_0x41b978(0x14a)][_0x41b978(0x139)](_0x41b978(0x188))||[..._0x3b31d4],_0x424d76=_0xead4ee?.[_0x41b978(0x17b)][_0x41b978(0x139)](_0x41b978(0x132)),_0x4cc68e=_0x424d76?.[_0x41b978(0x158)];this[_0x41b978(0x137)]=new _0x32344d(_0xead4ee[_0x41b978(0x141)],_0x3bd4bd,_0x488cd3,!!_0x4cc68e),this[_0x41b978(0x137)][_0x41b978(0x134)](..._0x1de6a1)['to'](this),_0x424d76&&this[_0x41b978(0x137)][_0x41b978(0x160)](_0x41b978(0x186))['to'](_0x424d76,_0x41b978(0x158)),this[_0x41b978(0x155)](_0x3bd4bd);}[_0x23a8c7(0x19c)](){const _0x17fe7f=_0x23a8c7;_0x42e812(this[_0x17fe7f(0x13c)])[_0x17fe7f(0x182)][_0x17fe7f(0x139)](_0x17fe7f(0x146))[_0x17fe7f(0x138)]();}[_0x23a8c7(0x191)](){const _0x1e42e5=_0x23a8c7;this[_0x1e42e5(0x137)]&&this[_0x1e42e5(0x137)][_0x1e42e5(0x191)]();}[_0x23a8c7(0x197)](){const _0x242473=_0x23a8c7;this[_0x242473(0x137)]&&this[_0x242473(0x137)][_0x242473(0x197)]();}[_0x23a8c7(0x13e)](_0x437af4){const _0x5098f1=_0x23a8c7,_0x2ff1d7=_0x42e812(this[_0x5098f1(0x13c)]),_0x2c368a=_0x2ff1d7[_0x5098f1(0x182)][_0x5098f1(0x139)](_0x5098f1(0x146));this[_0x5098f1(0x164)]&&(_0x2ff1d7[_0x5098f1(0x19d)][_0x5098f1(0x17c)][_0x5098f1(0x144)](_0x5098f1(0x131),this[_0x5098f1(0x164)]),this[_0x5098f1(0x164)]=null),this[_0x5098f1(0x136)]=!0x0,_0x2c368a[_0x5098f1(0x17c)]?.[_0x5098f1(0x17f)]&&(_0x2c368a[_0x5098f1(0x17c)][_0x5098f1(0x17f)][_0x5098f1(0x170)]=_0x437af4[_0x5098f1(0x18b)],_0x2c368a[_0x5098f1(0x17c)][_0x5098f1(0x17f)][_0x5098f1(0x143)]&&_0x437af4[_0x5098f1(0x161)]&&(_0x2c368a[_0x5098f1(0x17c)][_0x5098f1(0x17f)][_0x5098f1(0x143)][_0x5098f1(0x16e)]=_0x437af4[_0x5098f1(0x161)])),this[_0x5098f1(0x137)][_0x5098f1(0x16a)](_0x437af4[_0x5098f1(0x19b)]),this[_0x5098f1(0x149)](_0x437af4[_0x5098f1(0x142)],_0x437af4[_0x5098f1(0x18d)]),this[_0x5098f1(0x164)]=()=>{const _0x4bf0f2=_0x5098f1;this[_0x4bf0f2(0x136)]=!0x1,this[_0x4bf0f2(0x164)]=null,_0x2c368a[_0x4bf0f2(0x17c)]&&_0x2c368a[_0x4bf0f2(0x17c)][_0x4bf0f2(0x18c)]();},_0x2ff1d7[_0x5098f1(0x19d)][_0x5098f1(0x17c)][_0x5098f1(0x16b)](_0x5098f1(0x131),this[_0x5098f1(0x164)]);}[_0x23a8c7(0x149)](_0x35ecd8,_0x5180a8){const _0x15bea8=_0x23a8c7;this[_0x15bea8(0x13c)][_0x15bea8(0x182)][_0x15bea8(0x139)](_0x3662a5)[_0x15bea8(0x199)](_0x35ecd8,_0x15bea8(0x140)+_0x5180a8,!0x0,!0x0);}[_0x23a8c7(0x155)](_0x17bb4b){const _0x804615=_0x23a8c7,_0x462143=_0x42e812(this[_0x804615(0x13c)]);this[_0x804615(0x149)](_0x17bb4b[_0x804615(0x142)],_0x17bb4b[_0x804615(0x18d)]);const _0x2284b3=this[_0x804615(0x13a)]();_0x2284b3&&_0x2284b3[0x0]&&_0x588e1b({'target':_0x2284b3[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x462143[_0x804615(0x182)][_0x804615(0x139)](_0x804615(0x146))[_0x804615(0x189)]({'title':_0x17bb4b[_0x804615(0x18b)],'icon':_0x17bb4b[_0x804615(0x161)],'hasCloseButton':!0x0,'id':_0x804615(0x148),'position':this[_0x804615(0x13d)][_0x804615(0x160)](this),'className':_0x804615(0x150)+(_0x17bb4b[_0x804615(0x153)]?_0x804615(0x198):''),'content':this[_0x804615(0x137)],'onShow':_0x19ffb7=>{const _0x145581=_0x804615;_0x17bb4b[_0x145581(0x153)]&&this[_0x145581(0x137)][_0x145581(0x19a)](_0x19ffb7),this[_0x145581(0x18a)](),this[_0x145581(0x145)]=!0x0;},'onHide':()=>{const _0x3f89c4=_0x804615;this[_0x3f89c4(0x13c)][_0x3f89c4(0x182)][_0x3f89c4(0x139)](_0x3f89c4(0x196))[_0x3f89c4(0x184)](_0x3f89c4(0x140)+this[_0x3f89c4(0x17d)][_0x3f89c4(0x18d)]),this[_0x3f89c4(0x156)](),this[_0x3f89c4(0x171)](_0x3f89c4(0x185)),this[_0x3f89c4(0x145)]=!0x1;}});}[_0x23a8c7(0x13d)](_0x2037bf,_0x53432){const _0x2c6467=_0x23a8c7;if(!_0x53432)return null;const _0x258090=this[_0x2c6467(0x13a)]();if(!_0x258090||0x0===_0x258090[_0x2c6467(0x152)])return{'left':Math[_0x2c6467(0x16c)](_0x53432[_0x2c6467(0x151)]+_0x53432[_0x2c6467(0x162)]/0x2-_0x2037bf[_0x2c6467(0x162)]/0x2),'top':Math[_0x2c6467(0x16c)](_0x53432[_0x2c6467(0x15c)]+_0x53432[_0x2c6467(0x187)]/0x2-_0x2037bf[_0x2c6467(0x187)]/0x2)};const _0x50d6e4=Math[_0x2c6467(0x16c)](_0x53432[_0x2c6467(0x151)]+_0x53432[_0x2c6467(0x162)]/0x2-_0x2037bf[_0x2c6467(0x162)]/0x2),_0xaab431=new _0x4db63e(_0x258090[0x0]),_0x1e081c=new _0x4db63e(_0x258090[_0x258090[_0x2c6467(0x152)]-0x1]),_0x426b3b=_0x2037bf[_0x2c6467(0x187)],_0x159d8c=this[_0x2c6467(0x17d)][_0x2c6467(0x153)]?0x8:0x0;return{'left':_0x50d6e4,'top':this[_0x2c6467(0x192)](_0xaab431,_0x1e081c,_0x426b3b,_0x159d8c,_0x53432)};}[_0x23a8c7(0x192)](_0x305acd,_0x2ad698,_0x4c313f,_0x4d0569=0x0,_0x2a4965){const _0x1a94bb=_0x23a8c7,_0x4dc66e=_0x4c313f+_0x4d0569,_0x15993b=new _0x4db63e(_0x89170a[_0x1a94bb(0x17e)]),_0x1ee3ea=[_0x305acd[_0x1a94bb(0x14f)](),_0x2ad698[_0x1a94bb(0x14f)]()][_0x1a94bb(0x135)](_0x1bccf7=>_0x1bccf7),_0x3ee98a=_0x4db63e[_0x1a94bb(0x172)](_0x1ee3ea);if(!_0x3ee98a)return Math[_0x1a94bb(0x16c)](_0x2a4965[_0x1a94bb(0x15c)]+_0x2a4965[_0x1a94bb(0x187)]/0x2);const _0x123c8c=_0x15993b[_0x1a94bb(0x195)](_0x3ee98a);if(!_0x123c8c)return Math[_0x1a94bb(0x16c)](_0x2a4965[_0x1a94bb(0x15c)]+_0x2a4965[_0x1a94bb(0x187)]/0x2);const _0x5ce7d9=_0x2a4965[_0x1a94bb(0x14f)](),_0x560655=_0x5ce7d9&&_0x3ee98a[_0x1a94bb(0x187)]>_0x5ce7d9[_0x1a94bb(0x187)],_0xe64a7=_0x123c8c[_0x1a94bb(0x15c)],_0x93a7d1=_0x123c8c[_0x1a94bb(0x167)];if(_0x560655){const _0x15dfdd=(_0x5ce7d9||_0x15993b)[_0x1a94bb(0x187)]/0x2-_0x4dc66e/0x2,_0xd3bf86=_0xe64a7-mt-_0x2a4965[_0x1a94bb(0x15c)],_0x2d9e89=_0x2a4965[_0x1a94bb(0x167)]-_0x93a7d1-mt;return _0xd3bf86>=_0x4dc66e?Math[_0x1a94bb(0x133)](mt,_0xe64a7-_0x4dc66e-mt):_0x2d9e89>=_0x4dc66e?_0x93a7d1+mt:Math[_0x1a94bb(0x133)](mt,_0x15dfdd);}const _0x469f32=_0xe64a7-_0x4dc66e,_0x453bff=_0x2a4965[_0x1a94bb(0x167)]-_0x93a7d1-mt,_0x4f8cf4=_0xe64a7-mt-_0x2a4965[_0x1a94bb(0x15c)];let _0x1f4491;if(_0x453bff>=_0x4dc66e)_0x1f4491=_0x93a7d1+mt;else{if(_0x4f8cf4>=_0x4dc66e)_0x1f4491=_0x469f32-mt;else _0x1f4491=_0xe64a7+_0x3ee98a[_0x1a94bb(0x187)]/0x2-_0x4dc66e/0x2;}return _0x1f4491;}[_0x23a8c7(0x18a)](){const _0x386a3d=_0x23a8c7,_0x8deed4=_0x42e812(this[_0x386a3d(0x13c)]);this[_0x386a3d(0x16d)](_0x8deed4[_0x386a3d(0x154)][_0x386a3d(0x181)],_0x386a3d(0x163),()=>{const _0x4cadd7=_0x386a3d;if(this[_0x4cadd7(0x136)])return;for(const {name:_0x3b4799,data:{newRange:_0x5e4d0c}}of _0x8deed4[_0x4cadd7(0x154)][_0x4cadd7(0x181)][_0x4cadd7(0x190)][_0x4cadd7(0x178)]())if(_0x3b4799[_0x4cadd7(0x15e)](_0x4cadd7(0x168))&&(_0x5e4d0c&&(_0x5e4d0c[_0x4cadd7(0x14e)][_0x4cadd7(0x183)](_0x5e4d0c[_0x4cadd7(0x13f)])||_0x4cadd7(0x157)==_0x5e4d0c[_0x4cadd7(0x174)][_0x4cadd7(0x18e)])||null==_0x5e4d0c)){const _0x2bf59f=_0x126373(this[_0x4cadd7(0x13c)][_0x4cadd7(0x141)],_0x4cadd7(0x14b));this[_0x4cadd7(0x137)][_0x4cadd7(0x165)](_0x2bf59f),this[_0x4cadd7(0x171)](_0x4cadd7(0x194));}});}[_0x23a8c7(0x156)](){const _0xf3e2bc=_0x23a8c7,_0x208a08=_0x42e812(this[_0xf3e2bc(0x13c)]);this[_0xf3e2bc(0x15b)](_0x208a08[_0xf3e2bc(0x154)][_0xf3e2bc(0x181)]);}[_0x23a8c7(0x13a)](){const _0x3450bb=_0x23a8c7,_0xd13e6a=_0x42e812(this[_0x3450bb(0x13c)]);return _0x1c08af(_0xd13e6a[_0x3450bb(0x19d)],[..._0xd13e6a[_0x3450bb(0x154)][_0x3450bb(0x16f)][_0x3450bb(0x175)](_0x3450bb(0x173)),..._0xd13e6a[_0x3450bb(0x154)][_0x3450bb(0x16f)][_0x3450bb(0x175)](_0x3450bb(0x130))]);}}
23
+ const _0x16c24=_0x5a47;(function(_0x5189ac,_0x52fd95){const _0x59c99e=_0x5a47,_0x5e4d21=_0x5189ac();while(!![]){try{const _0x3d001e=-parseInt(_0x59c99e(0x1b6))/0x1*(parseInt(_0x59c99e(0x1ab))/0x2)+-parseInt(_0x59c99e(0x1fc))/0x3+parseInt(_0x59c99e(0x1cf))/0x4+-parseInt(_0x59c99e(0x1b4))/0x5*(parseInt(_0x59c99e(0x1ef))/0x6)+-parseInt(_0x59c99e(0x1e4))/0x7*(-parseInt(_0x59c99e(0x201))/0x8)+parseInt(_0x59c99e(0x1aa))/0x9+parseInt(_0x59c99e(0x1ad))/0xa;if(_0x3d001e===_0x52fd95)break;else _0x5e4d21['push'](_0x5e4d21['shift']());}catch(_0x2bf281){_0x5e4d21['push'](_0x5e4d21['shift']());}}}(_0x50b6,0x4b3d4));import{ContextPlugin as _0x1e7e70}from'ckeditor5/src/core.js';import{AIConnector as _0x183cf1}from'../aicore/aiconnector.js';import{AIEditing as _0x465d98}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0xfa1061,AIBalloonView as _0x5ee291}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x948e32}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x4cb6bf,Rect as _0x2be817,scrollViewportToShowTarget as _0x5a331e}from'ckeditor5/src/utils.js';function _0x5a47(_0x39ac69,_0x551594){const _0x50b674=_0x50b6();return _0x5a47=function(_0x5a47de,_0x3cd1f9){_0x5a47de=_0x5a47de-0x19c;let _0x2f0940=_0x50b674[_0x5a47de];return _0x2f0940;},_0x5a47(_0x39ac69,_0x551594);}import{getEditorFromContext as _0x2ce5b7}from'../aicore/utils/geteditorfromcontext.js';function _0x50b6(){const _0x46463c=['close','locale','stopListening','getIntersection','left','998588EyLIit','startAutoScroll','getVisible','ranges','editing','stopAutoScroll','bottom','ai-selection','height','showFakeVisualSelection','model','value','getChangedMarkers','markers','ai-selection:','window','isOpen','_getSelectionElements','updateContent','$graveyard','startsWith','14OJfvyw','_cleanupMarkerRemovalListener','get','\x20ai-balloon-rotator','open','headerView','getMarkersGroup','top','index','hideFakeVisualSelection','icon','579786nOfIMU','pluginName','selectionRemoved','end','ai-balloon-selection','_setupVisualSelection','ai-balloon-','trackChanges','AI_ACTIONS_SELECTION_REMOVED_ERROR','balloonView','AIEditing','context','change','1170270OCtXDv','_calculateOptimalTopPosition','commands','dialogClosed','requires','1107160NbLsHP','aiBalloon','once','showBlockingError','iconView','AIBalloon','_updateBalloon','getBoundingRect','_pendingRenderCallback','start','setupRotator','width','isOfficialPlugin','_isUpdatingMarkers','view','listenTo','delegate','bind','render','isPremiumPlugin','ai.availableReplyActions','filter','4913442hmbphF','398QfmzDK','isTrackChangesOn','7927310kZaflK','root','_config','Dialog','content','_showDialog','_calculateDialogPosition','30hSnYTk','fire','2950ZSvCOs','off','hide','rootName','mainView','round','length','_setupMarkerRemovalListener','isEqual','ai-balloon','document','differ','label','config','plugins','show','max','showRotator','updatePosition','title'];_0x50b6=function(){return _0x46463c;};return _0x50b6();}import{AI_REPLY_ACTIONS as _0x2bd733}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x4819ab}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0xfa1061,_0x16c24(0x1ff),_0x16c24(0x1f1)];const z=0xa;export class AIBalloon extends _0x1e7e70{static get[_0x16c24(0x200)](){return[_0x183cf1,_0x465d98];}static get[_0x16c24(0x1f0)](){const _0x2ef6ae=_0x16c24;return _0x2ef6ae(0x206);}static get[_0x16c24(0x1a0)](){return!0x0;}static get[_0x16c24(0x1a7)](){return!0x0;}[_0x16c24(0x1df)]=!0x1;[_0x16c24(0x1af)];[_0x16c24(0x1a1)]=!0x1;[_0x16c24(0x19c)]=null;[_0x16c24(0x1e8)](_0x3b36b7){const _0x155f5f=_0x16c24,_0x13bb80=_0x2ce5b7(this[_0x155f5f(0x1fa)]);if(this[_0x155f5f(0x1af)]=_0x3b36b7,this[_0x155f5f(0x1df)])return void this[_0x155f5f(0x207)](_0x3b36b7);const _0x1f26ae=this[_0x155f5f(0x1fa)][_0x155f5f(0x1c3)][_0x155f5f(0x1e6)](_0x155f5f(0x1a8))||[..._0x2bd733],_0x17c1b9=_0x13bb80?.[_0x155f5f(0x1fe)][_0x155f5f(0x1e6)](_0x155f5f(0x1f6)),_0x3f3be1=_0x17c1b9?.[_0x155f5f(0x1da)];this[_0x155f5f(0x1f8)]=new _0x5ee291(_0x13bb80[_0x155f5f(0x1cb)],_0x3b36b7,_0x1f26ae,!!_0x3f3be1),this[_0x155f5f(0x1f8)][_0x155f5f(0x1a4)](..._0xfa1061)['to'](this),_0x17c1b9&&this[_0x155f5f(0x1f8)][_0x155f5f(0x1a5)](_0x155f5f(0x1ac))['to'](_0x17c1b9,_0x155f5f(0x1da)),this[_0x155f5f(0x1b2)](_0x3b36b7);}[_0x16c24(0x1ca)](){const _0x3bba4a=_0x16c24;_0x2ce5b7(this[_0x3bba4a(0x1fa)])[_0x3bba4a(0x1c4)][_0x3bba4a(0x1e6)](_0x3bba4a(0x1b0))[_0x3bba4a(0x1b8)]();}[_0x16c24(0x1d0)](){const _0x2d4de7=_0x16c24;this[_0x2d4de7(0x1f8)]&&this[_0x2d4de7(0x1f8)][_0x2d4de7(0x1d0)]();}[_0x16c24(0x1d4)](){const _0xde7007=_0x16c24;this[_0xde7007(0x1f8)]&&this[_0xde7007(0x1f8)][_0xde7007(0x1d4)]();}[_0x16c24(0x207)](_0x313f16){const _0x5b3598=_0x16c24,_0x39ceb2=_0x2ce5b7(this[_0x5b3598(0x1fa)]),_0x1619f9=_0x39ceb2[_0x5b3598(0x1c4)][_0x5b3598(0x1e6)](_0x5b3598(0x1b0));this[_0x5b3598(0x19c)]&&(_0x39ceb2[_0x5b3598(0x1d3)][_0x5b3598(0x1a2)][_0x5b3598(0x1b7)](_0x5b3598(0x1a6),this[_0x5b3598(0x19c)]),this[_0x5b3598(0x19c)]=null),this[_0x5b3598(0x1a1)]=!0x0,_0x1619f9[_0x5b3598(0x1a2)]?.[_0x5b3598(0x1e9)]&&(_0x1619f9[_0x5b3598(0x1a2)][_0x5b3598(0x1e9)][_0x5b3598(0x1c2)]=_0x313f16[_0x5b3598(0x1c9)],_0x1619f9[_0x5b3598(0x1a2)][_0x5b3598(0x1e9)][_0x5b3598(0x205)]&&_0x313f16[_0x5b3598(0x1ee)]&&(_0x1619f9[_0x5b3598(0x1a2)][_0x5b3598(0x1e9)][_0x5b3598(0x205)][_0x5b3598(0x1b1)]=_0x313f16[_0x5b3598(0x1ee)])),this[_0x5b3598(0x1f8)][_0x5b3598(0x1e1)](_0x313f16[_0x5b3598(0x1ba)]),this[_0x5b3598(0x1f4)](_0x313f16[_0x5b3598(0x1d2)],_0x313f16[_0x5b3598(0x1ec)]),this[_0x5b3598(0x19c)]=()=>{const _0x12986e=_0x5b3598;this[_0x12986e(0x1a1)]=!0x1,this[_0x12986e(0x19c)]=null,_0x1619f9[_0x12986e(0x1a2)]&&_0x1619f9[_0x12986e(0x1a2)][_0x12986e(0x1c8)]();},_0x39ceb2[_0x5b3598(0x1d3)][_0x5b3598(0x1a2)][_0x5b3598(0x203)](_0x5b3598(0x1a6),this[_0x5b3598(0x19c)]);}[_0x16c24(0x1f4)](_0x205756,_0x17cbdc){const _0x3a1e84=_0x16c24;this[_0x3a1e84(0x1fa)][_0x3a1e84(0x1c4)][_0x3a1e84(0x1e6)](_0x465d98)[_0x3a1e84(0x1d8)](_0x205756,_0x3a1e84(0x1f5)+_0x17cbdc,!0x0,!0x0);}[_0x16c24(0x1b2)](_0x392837){const _0x589a64=_0x16c24,_0x2ae398=_0x2ce5b7(this[_0x589a64(0x1fa)]);this[_0x589a64(0x1f4)](_0x392837[_0x589a64(0x1d2)],_0x392837[_0x589a64(0x1ec)]);const _0x1c51e3=this[_0x589a64(0x1e0)]();_0x1c51e3&&_0x1c51e3[0x0]&&_0x5a331e({'target':_0x1c51e3[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x2ae398[_0x589a64(0x1c4)][_0x589a64(0x1e6)](_0x589a64(0x1b0))[_0x589a64(0x1c5)]({'title':_0x392837[_0x589a64(0x1c9)],'icon':_0x392837[_0x589a64(0x1ee)],'hasCloseButton':!0x0,'id':_0x589a64(0x202),'position':this[_0x589a64(0x1b3)][_0x589a64(0x1a5)](this),'className':_0x589a64(0x1bf)+(_0x392837[_0x589a64(0x1c7)]?_0x589a64(0x1e7):''),'content':this[_0x589a64(0x1f8)],'onShow':_0x9c78f4=>{const _0x34b74b=_0x589a64;_0x392837[_0x34b74b(0x1c7)]&&this[_0x34b74b(0x1f8)][_0x34b74b(0x19e)](_0x9c78f4),this[_0x34b74b(0x1bd)](),this[_0x34b74b(0x1df)]=!0x0;},'onHide':()=>{const _0x2e15d4=_0x589a64;this[_0x2e15d4(0x1fa)][_0x2e15d4(0x1c4)][_0x2e15d4(0x1e6)](_0x2e15d4(0x1f9))[_0x2e15d4(0x1ed)](_0x2e15d4(0x1f5)+this[_0x2e15d4(0x1af)][_0x2e15d4(0x1ec)]),this[_0x2e15d4(0x1e5)](),this[_0x2e15d4(0x1b5)](_0x2e15d4(0x1ff)),this[_0x2e15d4(0x1df)]=!0x1;}});}[_0x16c24(0x1b3)](_0x2c69cb,_0xd2cde5){const _0x44ee04=_0x16c24;if(!_0xd2cde5)return null;const _0x25279b=this[_0x44ee04(0x1e0)]();if(!_0x25279b||0x0===_0x25279b[_0x44ee04(0x1bc)])return{'left':Math[_0x44ee04(0x1bb)](_0xd2cde5[_0x44ee04(0x1ce)]+_0xd2cde5[_0x44ee04(0x19f)]/0x2-_0x2c69cb[_0x44ee04(0x19f)]/0x2),'top':Math[_0x44ee04(0x1bb)](_0xd2cde5[_0x44ee04(0x1eb)]+_0xd2cde5[_0x44ee04(0x1d7)]/0x2-_0x2c69cb[_0x44ee04(0x1d7)]/0x2)};const _0x396366=Math[_0x44ee04(0x1bb)](_0xd2cde5[_0x44ee04(0x1ce)]+_0xd2cde5[_0x44ee04(0x19f)]/0x2-_0x2c69cb[_0x44ee04(0x19f)]/0x2),_0x280edf=new _0x2be817(_0x25279b[0x0]),_0x51d868=new _0x2be817(_0x25279b[_0x25279b[_0x44ee04(0x1bc)]-0x1]),_0x4ec5c6=_0x2c69cb[_0x44ee04(0x1d7)],_0x265736=this[_0x44ee04(0x1af)][_0x44ee04(0x1c7)]?0x8:0x0;return{'left':_0x396366,'top':this[_0x44ee04(0x1fd)](_0x280edf,_0x51d868,_0x4ec5c6,_0x265736,_0xd2cde5)};}[_0x16c24(0x1fd)](_0x22a6f0,_0x30cc2b,_0x1610ad,_0x403349=0x0,_0x5a3b02){const _0x39f91f=_0x16c24,_0x3d4709=_0x1610ad+_0x403349,_0x46b0ae=new _0x2be817(_0x4cb6bf[_0x39f91f(0x1de)]),_0x225114=[_0x22a6f0[_0x39f91f(0x1d1)](),_0x30cc2b[_0x39f91f(0x1d1)]()][_0x39f91f(0x1a9)](_0x28f1cc=>_0x28f1cc),_0xaaf492=_0x2be817[_0x39f91f(0x208)](_0x225114);if(!_0xaaf492)return Math[_0x39f91f(0x1bb)](_0x5a3b02[_0x39f91f(0x1eb)]+_0x5a3b02[_0x39f91f(0x1d7)]/0x2);const _0x171150=_0x46b0ae[_0x39f91f(0x1cd)](_0xaaf492);if(!_0x171150)return Math[_0x39f91f(0x1bb)](_0x5a3b02[_0x39f91f(0x1eb)]+_0x5a3b02[_0x39f91f(0x1d7)]/0x2);const _0x2f47d0=_0x5a3b02[_0x39f91f(0x1d1)](),_0x41440d=_0x2f47d0&&_0xaaf492[_0x39f91f(0x1d7)]>_0x2f47d0[_0x39f91f(0x1d7)],_0x3df6e7=_0x171150[_0x39f91f(0x1eb)],_0x276744=_0x171150[_0x39f91f(0x1d5)];if(_0x41440d){const _0x2aa47a=(_0x2f47d0||_0x46b0ae)[_0x39f91f(0x1d7)]/0x2-_0x3d4709/0x2,_0x16fb5f=_0x3df6e7-z-_0x5a3b02[_0x39f91f(0x1eb)],_0x1488c7=_0x5a3b02[_0x39f91f(0x1d5)]-_0x276744-z;return _0x16fb5f>=_0x3d4709?Math[_0x39f91f(0x1c6)](z,_0x3df6e7-_0x3d4709-z):_0x1488c7>=_0x3d4709?_0x276744+z:Math[_0x39f91f(0x1c6)](z,_0x2aa47a);}const _0x2d4f1e=_0x3df6e7-_0x3d4709,_0x47184e=_0x5a3b02[_0x39f91f(0x1d5)]-_0x276744-z,_0x4f59b5=_0x3df6e7-z-_0x5a3b02[_0x39f91f(0x1eb)];let _0x10a700;if(_0x47184e>=_0x3d4709)_0x10a700=_0x276744+z;else{if(_0x4f59b5>=_0x3d4709)_0x10a700=_0x2d4f1e-z;else _0x10a700=_0x3df6e7+_0xaaf492[_0x39f91f(0x1d7)]/0x2-_0x3d4709/0x2;}return _0x10a700;}[_0x16c24(0x1bd)](){const _0x3cf975=_0x16c24,_0x4cc44a=_0x2ce5b7(this[_0x3cf975(0x1fa)]);this[_0x3cf975(0x1a3)](_0x4cc44a[_0x3cf975(0x1d9)][_0x3cf975(0x1c0)],_0x3cf975(0x1fb),()=>{const _0x3f740a=_0x3cf975;if(this[_0x3f740a(0x1a1)])return;for(const {name:_0x5c4e17,data:{newRange:_0x515bbb}}of _0x4cc44a[_0x3f740a(0x1d9)][_0x3f740a(0x1c0)][_0x3f740a(0x1c1)][_0x3f740a(0x1db)]())if(_0x5c4e17[_0x3f740a(0x1e3)](_0x3f740a(0x1dd))&&(_0x515bbb&&(_0x515bbb[_0x3f740a(0x19d)][_0x3f740a(0x1be)](_0x515bbb[_0x3f740a(0x1f2)])||_0x3f740a(0x1e2)==_0x515bbb[_0x3f740a(0x1ae)][_0x3f740a(0x1b9)])||null==_0x515bbb)){const _0x21bca4=_0x4819ab(this[_0x3f740a(0x1fa)][_0x3f740a(0x1cb)],_0x3f740a(0x1f7));this[_0x3f740a(0x1f8)][_0x3f740a(0x204)](_0x21bca4),this[_0x3f740a(0x1b5)](_0x3f740a(0x1f1));}});}[_0x16c24(0x1e5)](){const _0x10def7=_0x16c24,_0x29efd9=_0x2ce5b7(this[_0x10def7(0x1fa)]);this[_0x10def7(0x1cc)](_0x29efd9[_0x10def7(0x1d9)][_0x10def7(0x1c0)]);}[_0x16c24(0x1e0)](){const _0x1fb326=_0x16c24,_0x5e47f5=_0x2ce5b7(this[_0x1fb326(0x1fa)]);return _0x948e32(_0x5e47f5[_0x1fb326(0x1d3)],[..._0x5e47f5[_0x1fb326(0x1d9)][_0x1fb326(0x1dc)][_0x1fb326(0x1ea)](_0x1fb326(0x1d6)),..._0x5e47f5[_0x1fb326(0x1d9)][_0x1fb326(0x1dc)][_0x1fb326(0x1ea)](_0x1fb326(0x1f3))]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0xc9f8ed,_0x6e97d7){var _0x1d56fc=_0x4084,_0x5c15fe=_0xc9f8ed();while(!![]){try{var _0x289ad3=parseInt(_0x1d56fc(0xb6))/0x1*(-parseInt(_0x1d56fc(0xbe))/0x2)+-parseInt(_0x1d56fc(0xb8))/0x3*(parseInt(_0x1d56fc(0xbb))/0x4)+-parseInt(_0x1d56fc(0xbd))/0x5+parseInt(_0x1d56fc(0xb5))/0x6+-parseInt(_0x1d56fc(0xb4))/0x7+parseInt(_0x1d56fc(0xc0))/0x8+parseInt(_0x1d56fc(0xba))/0x9;if(_0x289ad3===_0x6e97d7)break;else _0x5c15fe['push'](_0x5c15fe['shift']());}catch(_0x4dd8d5){_0x5c15fe['push'](_0x5c15fe['shift']());}}}(_0x58f0,0x9c24d));function _0x4084(_0x394371,_0x15a9dc){var _0x58f0b3=_0x58f0();return _0x4084=function(_0x40841d,_0x598643){_0x40841d=_0x40841d-0xb4;var _0x34aa87=_0x58f0b3[_0x40841d];return _0x34aa87;},_0x4084(_0x394371,_0x15a9dc);}import{View as _0x491ecc}from'ckeditor5/src/ui.js';import{getTranslation as _0x5840c9}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x491ecc{constructor(_0x2c1272){var _0x35b362=_0x4084;super(_0x2c1272),this[_0x35b362(0xb7)]({'tag':_0x35b362(0xb9),'attributes':{'class':['ck',_0x35b362(0xbc)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x35b362(0xc1)]},'children':[{'text':_0x5840c9(_0x2c1272,_0x35b362(0xbf))}]}]});}}function _0x58f0(){var _0x327d34=['ck-ai-balloon__disclaimer-content','4579722slXmGJ','6292296cIaJUb','60149WCjhWt','setTemplate','3tdZuRq','div','23420835orEAMw','2467048GGMdsb','ck-ai-balloon__disclaimer','5525635iWTuMj','38yrxMEQ','AI_DISCLAIMER_TEXT','4060000gUhYCy'];_0x58f0=function(){return _0x327d34;};return _0x58f0();}
23
+ function _0x3f87(_0x258fd1,_0x3dbc5){var _0x3176d8=_0x3176();return _0x3f87=function(_0x3f872b,_0x149e40){_0x3f872b=_0x3f872b-0x11a;var _0x5d5432=_0x3176d8[_0x3f872b];return _0x5d5432;},_0x3f87(_0x258fd1,_0x3dbc5);}function _0x3176(){var _0xfb7438=['AI_DISCLAIMER_TEXT','27EBejGx','ck-ai-balloon__disclaimer-content','8594770nVnqZy','div','100LveaMJ','483624basRTr','8871120CZQjiU','3868907nunTlq','22533dpgmaI','12888GWNOFg','ck-ai-balloon__disclaimer','635GfkAkD','1414346brmBCP','setTemplate'];_0x3176=function(){return _0xfb7438;};return _0x3176();}(function(_0x690de4,_0x30c16e){var _0x11174a=_0x3f87,_0x423fe8=_0x690de4();while(!![]){try{var _0x3a45ff=parseInt(_0x11174a(0x122))/0x1+-parseInt(_0x11174a(0x11a))/0x2+-parseInt(_0x11174a(0x125))/0x3*(-parseInt(_0x11174a(0x121))/0x4)+-parseInt(_0x11174a(0x128))/0x5*(parseInt(_0x11174a(0x126))/0x6)+-parseInt(_0x11174a(0x124))/0x7+-parseInt(_0x11174a(0x123))/0x8+-parseInt(_0x11174a(0x11d))/0x9*(-parseInt(_0x11174a(0x11f))/0xa);if(_0x3a45ff===_0x30c16e)break;else _0x423fe8['push'](_0x423fe8['shift']());}catch(_0x7003f4){_0x423fe8['push'](_0x423fe8['shift']());}}}(_0x3176,0x9480e));import{View as _0x59fd0d}from'ckeditor5/src/ui.js';import{getTranslation as _0x489755}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x59fd0d{constructor(_0x429f30){var _0x5c3e63=_0x3f87;super(_0x429f30),this[_0x5c3e63(0x11b)]({'tag':_0x5c3e63(0x120),'attributes':{'class':['ck',_0x5c3e63(0x127)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x5c3e63(0x11e)]},'children':[{'text':_0x489755(_0x429f30,_0x5c3e63(0x11c))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ea080=_0x2e1f;(function(_0x21048e,_0xcef4aa){const _0x41d6a2=_0x2e1f,_0x4b9680=_0x21048e();while(!![]){try{const _0x47d9c1=parseInt(_0x41d6a2(0x143))/0x1+parseInt(_0x41d6a2(0x168))/0x2+parseInt(_0x41d6a2(0x142))/0x3*(-parseInt(_0x41d6a2(0x14a))/0x4)+parseInt(_0x41d6a2(0x146))/0x5+-parseInt(_0x41d6a2(0x16b))/0x6+parseInt(_0x41d6a2(0x130))/0x7+parseInt(_0x41d6a2(0x16a))/0x8*(-parseInt(_0x41d6a2(0x15f))/0x9);if(_0x47d9c1===_0xcef4aa)break;else _0x4b9680['push'](_0x4b9680['shift']());}catch(_0x38b264){_0x4b9680['push'](_0x4b9680['shift']());}}}(_0x78f7,0x92333));import{ButtonView as _0x105646,View as _0x39d77c,ViewCollection as _0x15fcce,FocusCycler as _0x2d8454}from'ckeditor5/src/ui.js';import{FocusTracker as _0x31b937,KeystrokeHandler as _0x174e4d}from'ckeditor5/src/utils.js';function _0x78f7(){const _0x130bad=['clearLoading','applySuggestion','focusLast','element','setLoading','disclaimerView','div','createCollection','showBlockingError','ai-balloon-error','bind','errorMessage','view','scrollManager','29091qYdMFC','125590DtpWzs','_errorView','AI_BALLOON_PREVIOUS_TOOLTIP','833875BIVYXA','isErrorVisible','listenTo','locale','92ItHgpu','remove','add','_addContentView','focus','_mainView','destroy','showError','_addToolbar','ck-hidden','fire','_focusables','showSuggestButton','ck-ai-suggestion__error-text','ck-ai-suggestion__error','_getScrollableElement','showPrevious','setupRotator','stop','isEnabled','addMany','405WSBLlB','_addDisclaimerView','_dialogContent','isTrackChangesOn','_createPreviousButtonView','showApplyButton','shift\x20+\x20tab','bodyView','toolbar','2018852SPimoh','_initializeScrollManager','44904ySzzza','7100976HkTSMg','render','execute','showRecoverableError','_createNextButtonView','applyButton','span','_availableActions','focusTracker','showNext','clear','AI_BALLOON_NEXT_TOOLTIP','suggestButton','updateContent','startAutoScroll','children','bindTemplate','hideError','_createErrorView','insertSuggestion','setTemplate','includes','stopAutoScroll','change:isTrackChangesOn','set','headerView','focusCycler','start','isLoading','keystrokes','getIndex','mainView','6693092DPcCUu','ai-balloon-content','tab','focusFirst'];_0x78f7=function(){return _0x130bad;};return _0x78f7();}import{IconNextArrow as _0x327951,IconPreviousArrow as _0x38d5d1}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x21ebda}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x4df7ed}from'./aiballoondisclaimerview.js';import{getTranslation as _0x4216e1}from'../../aicore/utils/common-translations.js';import{ScrollManager as _0x213329}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0x1698e7}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x5ea080(0x135),_0x5ea080(0x17e),_0x5ea080(0x174),_0x5ea080(0x15a)];function _0x2e1f(_0x540d8e,_0x43e9c5){const _0x78f7cb=_0x78f7();return _0x2e1f=function(_0x2e1fd8,_0x38f608){_0x2e1fd8=_0x2e1fd8-0x127;let _0x26d03b=_0x78f7cb[_0x2e1fd8];return _0x26d03b;},_0x2e1f(_0x540d8e,_0x43e9c5);}export class AIBalloonView extends _0x39d77c{[_0x5ea080(0x173)];[_0x5ea080(0x12d)];[_0x5ea080(0x12a)];[_0x5ea080(0x172)];[_0x5ea080(0x155)];[_0x5ea080(0x144)];[_0x5ea080(0x141)];constructor(_0xd0fffa,_0xb7b765,_0x2fdb61,_0x3ff104){const _0x3acf11=_0x5ea080;super(_0xd0fffa),this[_0x3acf11(0x172)]=_0x2fdb61,this[_0x3acf11(0x128)](_0x3acf11(0x12c),!0x1),this[_0x3acf11(0x128)](_0x3acf11(0x162),_0x3ff104),this[_0x3acf11(0x128)](_0x3acf11(0x147),!0x1),this[_0x3acf11(0x128)](_0x3acf11(0x13f),''),this[_0x3acf11(0x173)]=new _0x31b937(),this[_0x3acf11(0x12d)]=new _0x174e4d(),this[_0x3acf11(0x155)]=this[_0x3acf11(0x13b)](),this[_0x3acf11(0x12a)]=new _0x2d8454({'focusables':this[_0x3acf11(0x155)],'focusTracker':this[_0x3acf11(0x173)],'keystrokeHandler':this[_0x3acf11(0x12d)],'actions':{'focusPrevious':_0x3acf11(0x165),'focusNext':_0x3acf11(0x132)}}),this[_0x3acf11(0x161)]=new _0x15fcce(),this[_0x3acf11(0x14d)](_0xb7b765[_0x3acf11(0x12f)]),this[_0x3acf11(0x160)](),this[_0x3acf11(0x152)](_0xb7b765[_0x3acf11(0x164)],_0xb7b765[_0x3acf11(0x156)]),this[_0x3acf11(0x167)][_0x3acf11(0x13e)](_0x3acf11(0x12c))['to'](this),this[_0x3acf11(0x155)][_0x3acf11(0x175)](),this[_0x3acf11(0x155)][_0x3acf11(0x15e)]([this[_0x3acf11(0x167)]]),this[_0x3acf11(0x17f)]({'tag':_0x3acf11(0x13a),'attributes':{'class':_0x3acf11(0x131)},'children':this[_0x3acf11(0x161)]}),this['on'](_0x3acf11(0x127),()=>{const _0x3352f6=_0x3acf11;this[_0x3352f6(0x161)][_0x3352f6(0x14b)](this[_0x3352f6(0x167)]),this[_0x3352f6(0x152)](_0xb7b765[_0x3352f6(0x164)],_0xb7b765[_0x3352f6(0x156)]);});}[_0x5ea080(0x16c)](){const _0xdc99b3=_0x5ea080;super[_0xdc99b3(0x16c)]();for(const _0x4fd248 of this[_0xdc99b3(0x155)])this[_0xdc99b3(0x173)][_0xdc99b3(0x14c)](_0x4fd248[_0xdc99b3(0x137)]);this[_0xdc99b3(0x12d)][_0xdc99b3(0x148)](this[_0xdc99b3(0x137)]),this[_0xdc99b3(0x169)]();}[_0x5ea080(0x150)](){const _0x474897=_0x5ea080;super[_0x474897(0x150)](),this[_0x474897(0x141)]&&this[_0x474897(0x141)][_0x474897(0x150)]();}[_0x5ea080(0x14e)](_0x44aadc){const _0x2d59db=_0x5ea080;-0x1===_0x44aadc?this[_0x2d59db(0x12a)][_0x2d59db(0x136)]():this[_0x2d59db(0x12a)][_0x2d59db(0x133)]();}[_0x5ea080(0x138)](){const _0x5b2d58=_0x5ea080;this[_0x5b2d58(0x12c)]=!0x0;}[_0x5ea080(0x134)](){const _0x383000=_0x5ea080;this[_0x383000(0x12c)]=!0x1;}[_0x5ea080(0x151)](_0x401c27){const _0x5e2533=_0x5ea080;this[_0x5e2533(0x144)]||(this[_0x5e2533(0x144)]=this[_0x5e2533(0x17d)](),this[_0x5e2533(0x161)][_0x5e2533(0x15e)]([this[_0x5e2533(0x144)]],0x0)),this[_0x5e2533(0x13f)]=_0x401c27,this[_0x5e2533(0x147)]=!0x0;}[_0x5ea080(0x17c)](){const _0x41c6dc=_0x5ea080;this[_0x41c6dc(0x147)]=!0x1;}[_0x5ea080(0x16e)](_0x5b7dc1){const _0xe37b52=_0x5ea080;this[_0xe37b52(0x151)](_0x5b7dc1);}[_0x5ea080(0x13c)](_0x63911d){const _0x1b404c=_0x5ea080;this[_0x1b404c(0x151)](_0x63911d),this[_0x1b404c(0x167)]&&(this[_0x1b404c(0x167)][_0x1b404c(0x170)]&&(this[_0x1b404c(0x167)][_0x1b404c(0x170)][_0x1b404c(0x15d)]=!0x1),this[_0x1b404c(0x167)][_0x1b404c(0x177)]&&(this[_0x1b404c(0x167)][_0x1b404c(0x177)][_0x1b404c(0x15d)]=!0x1));}[_0x5ea080(0x15b)](_0x5eb794){const _0x2b8426=_0x5ea080,_0x149612=this[_0x2b8426(0x16f)](),_0x396d43=this[_0x2b8426(0x163)]();_0x5eb794[_0x2b8426(0x140)][_0x2b8426(0x129)][_0x2b8426(0x17a)][_0x2b8426(0x14c)](_0x149612,0x2),_0x5eb794[_0x2b8426(0x140)][_0x2b8426(0x129)][_0x2b8426(0x17a)][_0x2b8426(0x14c)](_0x396d43,0x0),this[_0x2b8426(0x155)][_0x2b8426(0x15e)]([_0x149612,_0x396d43]),this[_0x2b8426(0x173)][_0x2b8426(0x14c)](_0x149612[_0x2b8426(0x137)]),this[_0x2b8426(0x173)][_0x2b8426(0x14c)](_0x396d43[_0x2b8426(0x137)]);}[_0x5ea080(0x14d)](_0x702bdb){const _0x142158=_0x5ea080;this[_0x142158(0x14f)]=_0x702bdb,this[_0x142158(0x161)][_0x142158(0x14c)](this[_0x142158(0x14f)]);}[_0x5ea080(0x178)](_0x20208e){const _0x51aac2=_0x5ea080,_0x1e39db=this[_0x51aac2(0x161)][_0x51aac2(0x12e)](this[_0x51aac2(0x14f)]);this[_0x51aac2(0x161)][_0x51aac2(0x14b)](this[_0x51aac2(0x14f)]),this[_0x51aac2(0x14f)]=_0x20208e,this[_0x51aac2(0x161)][_0x51aac2(0x14c)](this[_0x51aac2(0x14f)],_0x1e39db),this[_0x51aac2(0x17c)](),this[_0x51aac2(0x141)]&&this[_0x51aac2(0x141)][_0x51aac2(0x150)](),this[_0x51aac2(0x169)]();}[_0x5ea080(0x160)](){const _0x637970=_0x5ea080;this[_0x637970(0x139)]=new _0x4df7ed(this[_0x637970(0x149)]),this[_0x637970(0x161)][_0x637970(0x14c)](this[_0x637970(0x139)]);}[_0x5ea080(0x152)](_0x132ee5=!0x0,_0x48fd34=!0x0){const _0x35171f=_0x5ea080;_0x132ee5=_0x132ee5&&!this[_0x35171f(0x162)]&&this[_0x35171f(0x172)][_0x35171f(0x180)](_0x35171f(0x135)),_0x48fd34=_0x48fd34&&this[_0x35171f(0x172)][_0x35171f(0x180)](_0x35171f(0x17e)),this[_0x35171f(0x167)]=new _0x21ebda(this[_0x35171f(0x149)],_0x132ee5,_0x48fd34),this[_0x35171f(0x167)][_0x35171f(0x170)]?.['on'](_0x35171f(0x16d),()=>{const _0x365644=_0x35171f;this[_0x365644(0x154)](_0x365644(0x135));}),this[_0x35171f(0x167)][_0x35171f(0x177)]?.['on'](_0x35171f(0x16d),()=>{const _0x2a3492=_0x35171f;this[_0x2a3492(0x154)](_0x2a3492(0x17e));}),this[_0x35171f(0x161)][_0x35171f(0x14c)](this[_0x35171f(0x167)]);}[_0x5ea080(0x16f)](){const _0x261f92=_0x5ea080,_0x217ac2=new _0x105646(this[_0x261f92(0x149)]);return _0x217ac2[_0x261f92(0x128)]({'icon':_0x327951,'tooltip':_0x4216e1(this[_0x261f92(0x149)],_0x261f92(0x176))}),_0x217ac2['on'](_0x261f92(0x16d),()=>{const _0x4bd7f7=_0x261f92;this[_0x4bd7f7(0x154)](_0x4bd7f7(0x174));}),_0x217ac2;}[_0x5ea080(0x163)](){const _0xbfb989=_0x5ea080,_0x50c83f=new _0x105646(this[_0xbfb989(0x149)]);return _0x50c83f[_0xbfb989(0x128)]({'icon':_0x38d5d1,'tooltip':_0x4216e1(this[_0xbfb989(0x149)],_0xbfb989(0x145))}),_0x50c83f['on'](_0xbfb989(0x16d),()=>{const _0x4eaa5e=_0xbfb989;this[_0x4eaa5e(0x154)](_0x4eaa5e(0x15a));}),_0x50c83f;}[_0x5ea080(0x17d)](){const _0xfe9592=_0x5ea080,_0x34b342=new _0x39d77c(this[_0xfe9592(0x149)]),_0x273530=new _0x39d77c(this[_0xfe9592(0x149)]);return _0x273530[_0xfe9592(0x17f)]({'tag':_0xfe9592(0x171),'attributes':{'class':['ck',_0xfe9592(0x157)]},'children':[{'text':this[_0xfe9592(0x17b)]['to'](_0xfe9592(0x13f))}]}),_0x34b342[_0xfe9592(0x17f)]({'tag':_0xfe9592(0x13a),'attributes':{'class':['ck',_0xfe9592(0x158),_0xfe9592(0x13d),this[_0xfe9592(0x17b)]['if'](_0xfe9592(0x147),_0xfe9592(0x153),_0xbfd2ce=>!_0xbfd2ce)]},'children':[_0x273530]}),_0x34b342;}[_0x5ea080(0x179)](){const _0x3c9ac9=_0x5ea080;this[_0x3c9ac9(0x169)](),this[_0x3c9ac9(0x141)]&&this[_0x3c9ac9(0x141)][_0x3c9ac9(0x12b)]();}[_0x5ea080(0x181)](){const _0x3449fa=_0x5ea080;this[_0x3449fa(0x141)]&&this[_0x3449fa(0x141)][_0x3449fa(0x15c)]();}[_0x5ea080(0x169)](){const _0x56d367=_0x5ea080,_0x1d624c=this[_0x56d367(0x159)]();_0x1d624c&&!this[_0x56d367(0x141)]&&(this[_0x56d367(0x141)]=new _0x213329(_0x1d624c));}[_0x5ea080(0x159)](){const _0x1c51db=_0x5ea080;return this[_0x1c51db(0x14f)]instanceof _0x1698e7&&this[_0x1c51db(0x14f)][_0x1c51db(0x166)][_0x1c51db(0x137)]?this[_0x1c51db(0x14f)][_0x1c51db(0x166)][_0x1c51db(0x137)]:null;}}
23
+ const _0x45f398=_0x1bd8;(function(_0x1a4fdc,_0x571ace){const _0x38c271=_0x1bd8,_0x2d9f75=_0x1a4fdc();while(!![]){try{const _0x1513cd=-parseInt(_0x38c271(0x1d2))/0x1+-parseInt(_0x38c271(0x1fc))/0x2*(parseInt(_0x38c271(0x1dd))/0x3)+-parseInt(_0x38c271(0x1ee))/0x4+parseInt(_0x38c271(0x1d0))/0x5*(-parseInt(_0x38c271(0x1e4))/0x6)+-parseInt(_0x38c271(0x204))/0x7+-parseInt(_0x38c271(0x1c9))/0x8*(-parseInt(_0x38c271(0x1e3))/0x9)+parseInt(_0x38c271(0x1da))/0xa;if(_0x1513cd===_0x571ace)break;else _0x2d9f75['push'](_0x2d9f75['shift']());}catch(_0x35ea8b){_0x2d9f75['push'](_0x2d9f75['shift']());}}}(_0x1b88,0xb3eab));function _0x1bd8(_0x3a47f0,_0x3af969){const _0x1b88e2=_0x1b88();return _0x1bd8=function(_0x1bd842,_0x1f3533){_0x1bd842=_0x1bd842-0x1b4;let _0x4291bd=_0x1b88e2[_0x1bd842];return _0x4291bd;},_0x1bd8(_0x3a47f0,_0x3af969);}import{ButtonView as _0x494627,View as _0x32caa1,ViewCollection as _0x49fc71,FocusCycler as _0x3b8985}from'ckeditor5/src/ui.js';import{FocusTracker as _0x486f3f,KeystrokeHandler as _0x393f82}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x4c3a0a,IconPreviousArrow as _0x302e34}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x5f3fa6}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x3857f3}from'./aiballoondisclaimerview.js';import{getTranslation as _0x5d6567}from'../../aicore/utils/common-translations.js';function _0x1b88(){const _0x2a649b=['showPrevious','focusFirst','ai-balloon-content','clearLoading','showApplyButton','applyButton','startAutoScroll','_initializeScrollManager','5474868pQdGOT','updateContent','_availableActions','bodyView','scrollManager','toolbar','destroy','tab','_addContentView','focusLast','_dialogContent','isErrorVisible','createCollection','_createPreviousButtonView','2379514oKvgCz','ck-ai-suggestion__error-text','setLoading','view','isTrackChangesOn','change:isTrackChangesOn','render','ck-hidden','6873027gPkbpN','focusCycler','start','listenTo','showRecoverableError','showSuggestButton','getIndex','focus','isLoading','remove','showError','fire','applySuggestion','_addDisclaimerView','suggestButton','ck-ai-suggestion__error','insertSuggestion','AI_BALLOON_NEXT_TOOLTIP','children','bindTemplate','span','keystrokes','hideError','disclaimerView','execute','includes','_mainView','showBlockingError','add','headerView','_createNextButtonView','AI_BALLOON_PREVIOUS_TOOLTIP','mainView','8HsWGoV','shift\x20+\x20tab','errorMessage','set','_addToolbar','_createErrorView','_focusables','125nACuwv','isEnabled','1423319WmEZgH','focusTracker','stop','setTemplate','setupRotator','ai-balloon-error','clear','stopAutoScroll','56815290ehXICh','element','bind','3AdbzLy','div','_getScrollableElement','locale','addMany','showNext','12354876UQFYuq','324888Reibvu','_errorView'];_0x1b88=function(){return _0x2a649b;};return _0x1b88();}import{ScrollManager as _0xb26aa3}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0x3cc910}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x45f398(0x1b4),_0x45f398(0x1b8),_0x45f398(0x1e2),_0x45f398(0x1e6)];export class AIBalloonView extends _0x32caa1{[_0x45f398(0x1d3)];[_0x45f398(0x1bd)];[_0x45f398(0x205)];[_0x45f398(0x1f0)];[_0x45f398(0x1cf)];[_0x45f398(0x1e5)];[_0x45f398(0x1f2)];constructor(_0x5009a3,_0x218fdf,_0x1d4946,_0xcd8200){const _0x308424=_0x45f398;super(_0x5009a3),this[_0x308424(0x1f0)]=_0x1d4946,this[_0x308424(0x1cc)](_0x308424(0x20c),!0x1),this[_0x308424(0x1cc)](_0x308424(0x200),_0xcd8200),this[_0x308424(0x1cc)](_0x308424(0x1f9),!0x1),this[_0x308424(0x1cc)](_0x308424(0x1cb),''),this[_0x308424(0x1d3)]=new _0x486f3f(),this[_0x308424(0x1bd)]=new _0x393f82(),this[_0x308424(0x1cf)]=this[_0x308424(0x1fa)](),this[_0x308424(0x205)]=new _0x3b8985({'focusables':this[_0x308424(0x1cf)],'focusTracker':this[_0x308424(0x1d3)],'keystrokeHandler':this[_0x308424(0x1bd)],'actions':{'focusPrevious':_0x308424(0x1ca),'focusNext':_0x308424(0x1f5)}}),this[_0x308424(0x1f8)]=new _0x49fc71(),this[_0x308424(0x1f6)](_0x218fdf[_0x308424(0x1c8)]),this[_0x308424(0x1b5)](),this[_0x308424(0x1cd)](_0x218fdf[_0x308424(0x1ea)],_0x218fdf[_0x308424(0x209)]),this[_0x308424(0x1f3)][_0x308424(0x1dc)](_0x308424(0x20c))['to'](this),this[_0x308424(0x1cf)][_0x308424(0x1d8)](),this[_0x308424(0x1cf)][_0x308424(0x1e1)]([this[_0x308424(0x1f3)]]),this[_0x308424(0x1d5)]({'tag':_0x308424(0x1de),'attributes':{'class':_0x308424(0x1e8)},'children':this[_0x308424(0x1f8)]}),this['on'](_0x308424(0x201),()=>{const _0x2863d9=_0x308424;this[_0x2863d9(0x1f8)][_0x2863d9(0x20d)](this[_0x2863d9(0x1f3)]),this[_0x2863d9(0x1cd)](_0x218fdf[_0x2863d9(0x1ea)],_0x218fdf[_0x2863d9(0x209)]);});}[_0x45f398(0x202)](){const _0x54afa1=_0x45f398;super[_0x54afa1(0x202)]();for(const _0x5512a8 of this[_0x54afa1(0x1cf)])this[_0x54afa1(0x1d3)][_0x54afa1(0x1c4)](_0x5512a8[_0x54afa1(0x1db)]);this[_0x54afa1(0x1bd)][_0x54afa1(0x207)](this[_0x54afa1(0x1db)]),this[_0x54afa1(0x1ed)]();}[_0x45f398(0x1f4)](){const _0x2f78fb=_0x45f398;super[_0x2f78fb(0x1f4)](),this[_0x2f78fb(0x1f2)]&&this[_0x2f78fb(0x1f2)][_0x2f78fb(0x1f4)]();}[_0x45f398(0x20b)](_0xc9a76a){const _0x228a5=_0x45f398;-0x1===_0xc9a76a?this[_0x228a5(0x205)][_0x228a5(0x1f7)]():this[_0x228a5(0x205)][_0x228a5(0x1e7)]();}[_0x45f398(0x1fe)](){const _0x572303=_0x45f398;this[_0x572303(0x20c)]=!0x0;}[_0x45f398(0x1e9)](){const _0x3ef931=_0x45f398;this[_0x3ef931(0x20c)]=!0x1;}[_0x45f398(0x20e)](_0x4c01d6){const _0x115809=_0x45f398;this[_0x115809(0x1e5)]||(this[_0x115809(0x1e5)]=this[_0x115809(0x1ce)](),this[_0x115809(0x1f8)][_0x115809(0x1e1)]([this[_0x115809(0x1e5)]],0x0)),this[_0x115809(0x1cb)]=_0x4c01d6,this[_0x115809(0x1f9)]=!0x0;}[_0x45f398(0x1be)](){const _0x2c467b=_0x45f398;this[_0x2c467b(0x1f9)]=!0x1;}[_0x45f398(0x208)](_0x39166d){const _0x2f59f9=_0x45f398;this[_0x2f59f9(0x20e)](_0x39166d);}[_0x45f398(0x1c3)](_0x44ea2f){const _0x1c30c5=_0x45f398;this[_0x1c30c5(0x20e)](_0x44ea2f),this[_0x1c30c5(0x1f3)]&&(this[_0x1c30c5(0x1f3)][_0x1c30c5(0x1eb)]&&(this[_0x1c30c5(0x1f3)][_0x1c30c5(0x1eb)][_0x1c30c5(0x1d1)]=!0x1),this[_0x1c30c5(0x1f3)][_0x1c30c5(0x1b6)]&&(this[_0x1c30c5(0x1f3)][_0x1c30c5(0x1b6)][_0x1c30c5(0x1d1)]=!0x1));}[_0x45f398(0x1d6)](_0x4fb029){const _0x4acc2b=_0x45f398,_0x1d599e=this[_0x4acc2b(0x1c6)](),_0x5d87dc=this[_0x4acc2b(0x1fb)]();_0x4fb029[_0x4acc2b(0x1ff)][_0x4acc2b(0x1c5)][_0x4acc2b(0x1ba)][_0x4acc2b(0x1c4)](_0x1d599e,0x2),_0x4fb029[_0x4acc2b(0x1ff)][_0x4acc2b(0x1c5)][_0x4acc2b(0x1ba)][_0x4acc2b(0x1c4)](_0x5d87dc,0x0),this[_0x4acc2b(0x1cf)][_0x4acc2b(0x1e1)]([_0x1d599e,_0x5d87dc]),this[_0x4acc2b(0x1d3)][_0x4acc2b(0x1c4)](_0x1d599e[_0x4acc2b(0x1db)]),this[_0x4acc2b(0x1d3)][_0x4acc2b(0x1c4)](_0x5d87dc[_0x4acc2b(0x1db)]);}[_0x45f398(0x1f6)](_0x45e426){const _0x415047=_0x45f398;this[_0x415047(0x1c2)]=_0x45e426,this[_0x415047(0x1f8)][_0x415047(0x1c4)](this[_0x415047(0x1c2)]);}[_0x45f398(0x1ef)](_0x5055c4){const _0x2f3f68=_0x45f398,_0xed376c=this[_0x2f3f68(0x1f8)][_0x2f3f68(0x20a)](this[_0x2f3f68(0x1c2)]);this[_0x2f3f68(0x1f8)][_0x2f3f68(0x20d)](this[_0x2f3f68(0x1c2)]),this[_0x2f3f68(0x1c2)]=_0x5055c4,this[_0x2f3f68(0x1f8)][_0x2f3f68(0x1c4)](this[_0x2f3f68(0x1c2)],_0xed376c),this[_0x2f3f68(0x1be)](),this[_0x2f3f68(0x1f2)]&&this[_0x2f3f68(0x1f2)][_0x2f3f68(0x1f4)](),this[_0x2f3f68(0x1ed)]();}[_0x45f398(0x1b5)](){const _0x21f00e=_0x45f398;this[_0x21f00e(0x1bf)]=new _0x3857f3(this[_0x21f00e(0x1e0)]),this[_0x21f00e(0x1f8)][_0x21f00e(0x1c4)](this[_0x21f00e(0x1bf)]);}[_0x45f398(0x1cd)](_0x2fe077=!0x0,_0x4fd2ac=!0x0){const _0x5a92a9=_0x45f398;_0x2fe077=_0x2fe077&&!this[_0x5a92a9(0x200)]&&this[_0x5a92a9(0x1f0)][_0x5a92a9(0x1c1)](_0x5a92a9(0x1b4)),_0x4fd2ac=_0x4fd2ac&&this[_0x5a92a9(0x1f0)][_0x5a92a9(0x1c1)](_0x5a92a9(0x1b8)),this[_0x5a92a9(0x1f3)]=new _0x5f3fa6(this[_0x5a92a9(0x1e0)],_0x2fe077,_0x4fd2ac),this[_0x5a92a9(0x1f3)][_0x5a92a9(0x1eb)]?.['on'](_0x5a92a9(0x1c0),()=>{const _0x493adc=_0x5a92a9;this[_0x493adc(0x20f)](_0x493adc(0x1b4));}),this[_0x5a92a9(0x1f3)][_0x5a92a9(0x1b6)]?.['on'](_0x5a92a9(0x1c0),()=>{const _0x19cee7=_0x5a92a9;this[_0x19cee7(0x20f)](_0x19cee7(0x1b8));}),this[_0x5a92a9(0x1f8)][_0x5a92a9(0x1c4)](this[_0x5a92a9(0x1f3)]);}[_0x45f398(0x1c6)](){const _0x3883a=_0x45f398,_0x12ad3e=new _0x494627(this[_0x3883a(0x1e0)]);return _0x12ad3e[_0x3883a(0x1cc)]({'icon':_0x4c3a0a,'tooltip':_0x5d6567(this[_0x3883a(0x1e0)],_0x3883a(0x1b9))}),_0x12ad3e['on'](_0x3883a(0x1c0),()=>{const _0x297416=_0x3883a;this[_0x297416(0x20f)](_0x297416(0x1e2));}),_0x12ad3e;}[_0x45f398(0x1fb)](){const _0x508e2c=_0x45f398,_0x120aa7=new _0x494627(this[_0x508e2c(0x1e0)]);return _0x120aa7[_0x508e2c(0x1cc)]({'icon':_0x302e34,'tooltip':_0x5d6567(this[_0x508e2c(0x1e0)],_0x508e2c(0x1c7))}),_0x120aa7['on'](_0x508e2c(0x1c0),()=>{const _0x5bc3ce=_0x508e2c;this[_0x5bc3ce(0x20f)](_0x5bc3ce(0x1e6));}),_0x120aa7;}[_0x45f398(0x1ce)](){const _0x4517b0=_0x45f398,_0x72f47b=new _0x32caa1(this[_0x4517b0(0x1e0)]),_0x386aa4=new _0x32caa1(this[_0x4517b0(0x1e0)]);return _0x386aa4[_0x4517b0(0x1d5)]({'tag':_0x4517b0(0x1bc),'attributes':{'class':['ck',_0x4517b0(0x1fd)]},'children':[{'text':this[_0x4517b0(0x1bb)]['to'](_0x4517b0(0x1cb))}]}),_0x72f47b[_0x4517b0(0x1d5)]({'tag':_0x4517b0(0x1de),'attributes':{'class':['ck',_0x4517b0(0x1b7),_0x4517b0(0x1d7),this[_0x4517b0(0x1bb)]['if'](_0x4517b0(0x1f9),_0x4517b0(0x203),_0x1dceef=>!_0x1dceef)]},'children':[_0x386aa4]}),_0x72f47b;}[_0x45f398(0x1ec)](){const _0x24428f=_0x45f398;this[_0x24428f(0x1ed)](),this[_0x24428f(0x1f2)]&&this[_0x24428f(0x1f2)][_0x24428f(0x206)]();}[_0x45f398(0x1d9)](){const _0x48f071=_0x45f398;this[_0x48f071(0x1f2)]&&this[_0x48f071(0x1f2)][_0x48f071(0x1d4)]();}[_0x45f398(0x1ed)](){const _0x5fa94d=_0x45f398,_0x2a34bf=this[_0x5fa94d(0x1df)]();_0x2a34bf&&!this[_0x5fa94d(0x1f2)]&&(this[_0x5fa94d(0x1f2)]=new _0xb26aa3(_0x2a34bf));}[_0x45f398(0x1df)](){const _0x5d5a02=_0x45f398;return this[_0x5d5a02(0x1c2)]instanceof _0x3cc910&&this[_0x5d5a02(0x1c2)][_0x5d5a02(0x1f1)][_0x5d5a02(0x1db)]?this[_0x5d5a02(0x1c2)][_0x5d5a02(0x1f1)][_0x5d5a02(0x1db)]:null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x59c870=_0xecb8;function _0xecb8(_0x238b7d,_0x47665e){var _0x179199=_0x1791();return _0xecb8=function(_0xecb8db,_0x37f2e9){_0xecb8db=_0xecb8db-0xaa;var _0xd72aeb=_0x179199[_0xecb8db];return _0xd72aeb;},_0xecb8(_0x238b7d,_0x47665e);}(function(_0x55ab2b,_0x553ffc){var _0x525a5d=_0xecb8,_0x21df45=_0x55ab2b();while(!![]){try{var _0x598e64=parseInt(_0x525a5d(0xbc))/0x1+-parseInt(_0x525a5d(0xac))/0x2+-parseInt(_0x525a5d(0xae))/0x3*(parseInt(_0x525a5d(0xb4))/0x4)+-parseInt(_0x525a5d(0xaa))/0x5+-parseInt(_0x525a5d(0xb2))/0x6+-parseInt(_0x525a5d(0xc0))/0x7+parseInt(_0x525a5d(0xc1))/0x8;if(_0x598e64===_0x553ffc)break;else _0x21df45['push'](_0x21df45['shift']());}catch(_0x1c238c){_0x21df45['push'](_0x21df45['shift']());}}}(_0x1791,0x19441));import{ContextPlugin as _0x190951}from'ckeditor5/src/core.js';import{AIChatController as _0xd46c91}from'./aichatcontroller.js';import{AIEditing as _0x2a05b8}from'../aicore/aiediting.js';function _0x1791(){var _0x88b336=['config','21FYqfVn','requires','addSelectionToChatContext','removeSelectionFromChatContext','1200054uIQQKn','context','48336PUEeia','isPremiumPlugin','sendMessage','define','ai.chat.context','isOfficialPlugin','startConversation','pluginName','168946EVbJaB','AIChat','focusPromptInput','plugins','1356054SihYOK','4335896BvuPaY','ai.chat.models','415415FanjoP','get','92084CwCjLi'];_0x1791=function(){return _0x88b336;};return _0x1791();}import{AIChatUI as _0x21a2ee}from'./aichatui.js';import{AIChatHistory as _0x2c2809}from'../aichathistory/aichathistory.js';export class AIChat extends _0x190951{static get[_0x59c870(0xaf)](){return[_0xd46c91,_0x2a05b8,_0x21a2ee,_0x2c2809];}static get[_0x59c870(0xbb)](){var _0x102dc6=_0x59c870;return _0x102dc6(0xbd);}static get[_0x59c870(0xb9)](){return!0x0;}static get[_0x59c870(0xb5)](){return!0x0;}constructor(_0x4669a5){var _0x3f5c8a=_0x59c870;super(_0x4669a5),this[_0x3f5c8a(0xb3)][_0x3f5c8a(0xad)][_0x3f5c8a(0xb7)](_0x3f5c8a(0xb8),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x3f5c8a(0xb3)][_0x3f5c8a(0xad)][_0x3f5c8a(0xb7)](_0x3f5c8a(0xc2),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x59c870(0xb0)](){var _0x9b5aff=_0x59c870;await this[_0x9b5aff(0xb3)][_0x9b5aff(0xbf)][_0x9b5aff(0xab)](_0xd46c91)[_0x9b5aff(0xb0)]();}async[_0x59c870(0xba)](){var _0x218880=_0x59c870;await this[_0x218880(0xb3)][_0x218880(0xbf)][_0x218880(0xab)](_0xd46c91)[_0x218880(0xba)]();}async[_0x59c870(0xb6)]({message:_0x502fd4,quickActionData:_0x4345d4}){var _0x2d2b97=_0x59c870;await this[_0x2d2b97(0xb3)][_0x2d2b97(0xbf)][_0x2d2b97(0xab)](_0xd46c91)[_0x2d2b97(0xb6)]({'message':_0x502fd4,'quickActionData':_0x4345d4});}[_0x59c870(0xb1)](){var _0x4e094f=_0x59c870;this[_0x4e094f(0xb3)][_0x4e094f(0xbf)][_0x4e094f(0xab)](_0xd46c91)[_0x4e094f(0xb1)]();}[_0x59c870(0xbe)](){var _0x32bca6=_0x59c870;this[_0x32bca6(0xb3)][_0x32bca6(0xbf)][_0x32bca6(0xab)](_0xd46c91)[_0x32bca6(0xbe)]();}}
23
+ var _0x38e0e3=_0xf068;function _0x5a19(){var _0x59c74e=['sendMessage','2216vKByZc','removeSelectionFromChatContext','pluginName','plugins','focusPromptInput','get','startConversation','AIChat','1311460hHKhvK','ai.chat.models','context','407158EWcCEP','isPremiumPlugin','config','define','999bLKUQW','isOfficialPlugin','18smanue','ai.chat.context','addSelectionToChatContext','requires','21098nDYgDg','102MXeGIK','8880553VcuWfp','1vzViVW','555075vNKeBz','110988YRpQAO'];_0x5a19=function(){return _0x59c74e;};return _0x5a19();}(function(_0x94c500,_0x1f5966){var _0x2baad3=_0xf068,_0x3cc6ba=_0x94c500();while(!![]){try{var _0x3bd429=-parseInt(_0x2baad3(0x14b))/0x1*(parseInt(_0x2baad3(0x15a))/0x2)+-parseInt(_0x2baad3(0x160))/0x3*(parseInt(_0x2baad3(0x14d))/0x4)+-parseInt(_0x2baad3(0x14c))/0x5+-parseInt(_0x2baad3(0x149))/0x6*(parseInt(_0x2baad3(0x164))/0x7)+-parseInt(_0x2baad3(0x14f))/0x8*(parseInt(_0x2baad3(0x15e))/0x9)+-parseInt(_0x2baad3(0x157))/0xa+parseInt(_0x2baad3(0x14a))/0xb;if(_0x3bd429===_0x1f5966)break;else _0x3cc6ba['push'](_0x3cc6ba['shift']());}catch(_0x3479ec){_0x3cc6ba['push'](_0x3cc6ba['shift']());}}}(_0x5a19,0x1b9dc));function _0xf068(_0x5a8eb1,_0x555729){var _0x5a193e=_0x5a19();return _0xf068=function(_0xf068af,_0xe17220){_0xf068af=_0xf068af-0x149;var _0x468262=_0x5a193e[_0xf068af];return _0x468262;},_0xf068(_0x5a8eb1,_0x555729);}import{ContextPlugin as _0x1b6076}from'ckeditor5/src/core.js';import{AIChatController as _0x382450}from'./aichatcontroller.js';import{AIEditing as _0x152ad6}from'../aicore/aiediting.js';import{AIChatUI as _0x7b373b}from'./aichatui.js';import{AIChatHistory as _0x90ee49}from'../aichathistory/aichathistory.js';export class AIChat extends _0x1b6076{static get[_0x38e0e3(0x163)](){return[_0x382450,_0x152ad6,_0x7b373b,_0x90ee49];}static get[_0x38e0e3(0x151)](){var _0x57adc0=_0x38e0e3;return _0x57adc0(0x156);}static get[_0x38e0e3(0x15f)](){return!0x0;}static get[_0x38e0e3(0x15b)](){return!0x0;}constructor(_0x52ff35){var _0x4e50ce=_0x38e0e3;super(_0x52ff35),this[_0x4e50ce(0x159)][_0x4e50ce(0x15c)][_0x4e50ce(0x15d)](_0x4e50ce(0x161),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x4e50ce(0x159)][_0x4e50ce(0x15c)][_0x4e50ce(0x15d)](_0x4e50ce(0x158),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x38e0e3(0x162)](){var _0x26e53c=_0x38e0e3;await this[_0x26e53c(0x159)][_0x26e53c(0x152)][_0x26e53c(0x154)](_0x382450)[_0x26e53c(0x162)]();}async[_0x38e0e3(0x155)](){var _0x1c4036=_0x38e0e3;await this[_0x1c4036(0x159)][_0x1c4036(0x152)][_0x1c4036(0x154)](_0x382450)[_0x1c4036(0x155)]();}async[_0x38e0e3(0x14e)]({message:_0x23011d,quickActionData:_0x479994}){var _0x49b4d3=_0x38e0e3;await this[_0x49b4d3(0x159)][_0x49b4d3(0x152)][_0x49b4d3(0x154)](_0x382450)[_0x49b4d3(0x14e)]({'message':_0x23011d,'quickActionData':_0x479994});}[_0x38e0e3(0x150)](){var _0x8f507b=_0x38e0e3;this[_0x8f507b(0x159)][_0x8f507b(0x152)][_0x8f507b(0x154)](_0x382450)[_0x8f507b(0x150)]();}[_0x38e0e3(0x153)](){var _0x39c5d3=_0x38e0e3;this[_0x39c5d3(0x159)][_0x39c5d3(0x152)][_0x39c5d3(0x154)](_0x382450)[_0x39c5d3(0x153)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x8c2602=_0x4186;(function(_0x25c7aa,_0xb70bcb){const _0x1a3abe=_0x4186,_0x563426=_0x25c7aa();while(!![]){try{const _0x34e005=-parseInt(_0x1a3abe(0x149))/0x1+-parseInt(_0x1a3abe(0x1da))/0x2*(parseInt(_0x1a3abe(0x16a))/0x3)+parseInt(_0x1a3abe(0x191))/0x4*(-parseInt(_0x1a3abe(0x1f2))/0x5)+-parseInt(_0x1a3abe(0x12a))/0x6*(parseInt(_0x1a3abe(0x18a))/0x7)+parseInt(_0x1a3abe(0x23d))/0x8+-parseInt(_0x1a3abe(0xfe))/0x9+parseInt(_0x1a3abe(0x11d))/0xa;if(_0x34e005===_0xb70bcb)break;else _0x563426['push'](_0x563426['shift']());}catch(_0x2f4db8){_0x563426['push'](_0x563426['shift']());}}}(_0x424e,0xb138d));import{ContextPlugin as _0x2c9326,Editor as _0x5bc23b}from'ckeditor5/src/core.js';import{BodyCollection as _0x2bcdab}from'ckeditor5/src/ui.js';import{CKEditorError as _0x2a84dd,logError as _0x2d378d,scrollViewportToShowTarget as _0x5de7b5,uid as _0xa18360}from'ckeditor5/src/utils.js';import{AIConnector as _0x47ceb5}from'../aicore/aiconnector.js';import{AITabs as _0x1d4d68}from'../aitabs/aitabs.js';import{AIChatConversation as _0xf13ee3}from'./model/aichatconversation.js';import{getTranslation as _0x3092a6}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x189cfc}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x261985}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x424e(){const _0x308154=['destroy','ai-chat-conversation-not-found','webSearchFinished','ai-chat-conversation-init-failed','$graveyard','document','getInteraction','ai-chat-invalid-request','AIConnector','removeContextItem','insertSuggestion','updateContent','_aiEditing','156737ziRJSz','startConversation','resizedTabs','like','_handleUIUserMessage','addFileToContext','isOfficialPlugin','4uVIxNB','path','resourceId','stop','updateConversationTitle','getDiff','documentContextContent','stopInteraction','getGroupId','populateSourceResourceBalloon','interactionCreated','version','replyCreated','detachFromDom','AI_CHAT_CONTEXT_INVALID_DATA','hideFakeVisualSelection','handleRemovedConversation','updateCapabilities','markers','query','root','replyId','current-document','model','getFirstRange','rejected','createConversation','domConverter','resources','setSelectedModel','ai.chat.context','ai-chat-context-form-data-size-limits-exceeded','$root','updateResourceState','change','indexes','changes','reasoningStarted','startAutoScroll','AI_CHAT_ABORTED_MESSAGE','resize','ai-chat-controller-no-active-conversation','addContextOptionsChanged','addFeedItemError','view','lastInteraction','_scrollToSuggestionRange','startsWith','setChangeGroupState','addFeedItemAISuggestion','loadSourceResources','addSelectionToContext','_aiChatModels','toString','isLoading','_setIsMaximized','setLoadingMessage','contextItemAdded','main','addContextItem','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','unshift','isPremiumPlugin','disableControls','partIndex','setModel','ai-chat-resource-load-failed','setConversationTitle','loadConversation','context','pending','add','_aiConnector','8Qiviwz','AI_CHAT_UNTITLED_CONVERSATION','start','getChildAtOffset','requires','options','dislike','AIChatController','_applyOperationsAsSuggestions','editing','_createFromRanges','type','cloneNode','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','activateTab','clearConversationContextUI','showChangeInText','reasoningFinished','pluginName','toggleLoadingSkeleton','index','_applySuggestion','addResourceToContext','Undo','5204725JxcCwS','_batchToChanges','ai-chat-context-file-too-large','history','DocumentCompare','toViewRange','scrollFeedToSuggestion','applyOperation','revert','findIndex','_previewedChangeGroup','ai-chat-url-upload-failed','Liked\x20response','_balloonShowDiff','_updateRatings','showPrevious','showNext','accepted','listenTo','chat','rootName','end','_removeFromContext','outdated','uid','anchorId','data','_flushLastInteractionUI','getDocumentData','ai-chat-controller-mouse-over','updateFeedItemAIReplySources','sourceId','delete','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','contextItems','toggleWebSearch','selectedModel','clearPendingContextUI','interactionId','getMarkersGroup','replyChangeGroupStateUpdated','_removeAISelectionMarkers','AI_BALLOON_HEADER_TITLE','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','get','focusPromptInput','closeSourceResourceBalloon','ai-chat-context-file-too-many-pages','createRange','sourcePosition','applySuggestion','length','error','_openBalloonFor','full','editors','stopListening','_updateReplyContent','config','maxOffset','set','parse','_stopLastInteraction','forEach','howMany','contextItem','rejectSuggestion','webSearchStarted','ai-chat-context-invalid-data','removeFromContext','setConversationContext','map','find','source','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','5959744rMOJID','addSelectionToChatContext','node','addUrlToContext','ai.chat.models.displayedModels','setContextItemLoading','_handleStartConversation','setIsMaximized','redo','uploadProgressChanged','activeConversation','marker','AI_CHAT_UNABLE_TO_START_CONVERSATION','ai-chat-context-unsupported-type','createPositionAt','updateFeedItemAIReplySuggestionContent','static','interactionFinished','replyContentUpdated','ai-chat-file-upload-failed','isCurrentDocumentInContext','AITabs','mouseOverSuggestion','getChild','removeFeedInteraction','ai-request-aborted','abortPromptStream','getReply','getRanges','conversationInitialized','showFakeVisualSelection','getChildren','contextItemLoadingEnded','_showConversationHistory','changeGroups','viewRangeToDom','getAttribute','interactionDestroyed','slice','addFilesToContext','TrackChangesEditing','selectModel','uiId','AI_CHAT_INVALID_REQUEST','ai-no-track-changes','removeSelectionFromChatContext','ai.availableReplyActions','addOperation','isModelAvailable','resource','6238413HRgkXk','state','interactionStarted','_toggleReasoning','sendMessage','isDocumentOperation','resizeTabs','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','getInteractionAndReplyById','getConversation','_toggleWebSearch','enableControls','isOpen','contextSent','data-id','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','updateFeedItemAIReplySuggestionPartState','startInteraction','Showing\x20conversation\x20history...','addFeedItemStaticMessage','getContentParts','ai.chat.models.defaultModelId','getRoot','AIEditing','ai-chat-context-unsupported-file-type','locale','ai-chat-source-resources-load-failed','init','setAddContextOptions','capabilitiesUpdated','isCurrentDocumentInConversation','42020870FzZSyO','_bodyCollection','sourceResourcesLoaded','remove','_insertSuggestion','close','from','setFeedItemRenderingStrategy','addFeedItemAIReply','upsertAIChatRating','resourceStateChanged','indexOf','contextItemRemoved','246QUocDV','content','removeSelectionFromContext','afterInit','isStarted','ai-conversation-','handleUserInteraction','collaboration.channelId','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','getDocumentContext','new','open','getPath','addDocumentToContext','selection','isUploadInProgress','AI_CHAT_RESOURCE_LOAD_FAILED','getSelectionText','replies','setIsUploadInProgress','AIChatUI','addCurrentDocumentToContext','TrackChanges','range','message','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','getOperations','ready','nextSibling','streaming','_logError','711453WnnPRZ','resetConversationTitle','AI_CHAT_GENERIC_ERROR','ai-chat-missing-channel-id','baseVersion','_aiChatUi','removed','finishInteraction','addFeedItemUserMessage','addFeedInteractionHeader','createPositionFromPath','alignToTop','attachToDom','_startConversationSafely','resetMessageInput','showDiff','mouseLeaveSuggestion','_getDocumentRangeForReplyChanges','load','split','isInContext','updateFeedItemAIReplyContent','log','push','getTransformedByOperation','Disliked\x20response','ai-chat-conversation-start-failed','_integrateEditor','messageId','modelSelected','fetchConversation','undo','AI_CHAT_CONTEXT_FILE_TOO_LARGE','643176oTblvI','has','dialogClosed','mapper','children','plugins','updateCurrentDocumentInContext','filter','batch','toggleReasoning','hasChanges','modification-delta','toggleSuggestionDisplayMode','isDisabled','commands','text-delta','removeMarker','sources','sendUserMessage'];_0x424e=function(){return _0x308154;};return _0x424e();}import{AIModels as _0x148d51}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x3fa301}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x42bdb4,DATA_ID_MODEL_ATTRIBUTE as _0x4e6a79}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x393cf8,getOperationsFromReply as _0x1a1d19}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x5830fc,getMinimalSelection as _0x283eab}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x1d0bbd,_DetachOperation as _0x20bbc9}from'ckeditor5/src/engine.js';import{findOne as _0x336fc3,getAttribute as _0x5270e7,serialize as _0x1a5111,Document as _0xdab3ce,findByAttribute as _0x2de233}from'../aicore/utils/htmlparser.js';import{IconAI as _0x320133}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x128223}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x50f0cf}from'../aiballoon/aiballoon.js';function _0x4186(_0x561bf2,_0x22dab2){const _0x424e39=_0x424e();return _0x4186=function(_0x4186cd,_0x118a7b){_0x4186cd=_0x4186cd-0xf7;let _0x3dce74=_0x424e39[_0x4186cd];return _0x3dce74;},_0x4186(_0x561bf2,_0x22dab2);}export class AIChatController extends _0x2c9326{[_0x8c2602(0x189)];[_0x8c2602(0x1d9)];[_0x8c2602(0x14e)];[_0x8c2602(0x1c5)];[_0x8c2602(0x1f3)]=new Map();[_0x8c2602(0x1fc)]=null;[_0x8c2602(0x1ff)]=!0x1;[_0x8c2602(0x11e)];static get[_0x8c2602(0x1de)](){return[_0x47ceb5,_0x50f0cf,_0x42bdb4];}static get[_0x8c2602(0x1ec)](){const _0x1efdff=_0x8c2602;return _0x1efdff(0x1e1);}static get[_0x8c2602(0x190)](){return!0x0;}static get[_0x8c2602(0x1cf)](){return!0x0;}[_0x8c2602(0x119)](){const _0x1e4aee=_0x8c2602;this[_0x1e4aee(0x11e)]=new _0x2bcdab(this[_0x1e4aee(0x1d6)][_0x1e4aee(0x117)]),this[_0x1e4aee(0x11e)][_0x1e4aee(0x155)](),this[_0x1e4aee(0x1d9)]=this[_0x1e4aee(0x1d6)][_0x1e4aee(0x16f)][_0x1e4aee(0x21e)](_0x1e4aee(0x185)),this[_0x1e4aee(0x14e)]=this[_0x1e4aee(0x1d6)][_0x1e4aee(0x16f)][_0x1e4aee(0x21e)](_0x1e4aee(0x13e)),this[_0x1e4aee(0x189)]=this[_0x1e4aee(0x1d6)][_0x1e4aee(0x16f)][_0x1e4aee(0x21e)](_0x1e4aee(0x115)),this[_0x1e4aee(0x1c5)]=new _0x148d51({'connector':this[_0x1e4aee(0x1d9)],'availableModels':this[_0x1e4aee(0x1d6)][_0x1e4aee(0x22c)][_0x1e4aee(0x21e)](_0x1e4aee(0x241)),'defaultModelId':this[_0x1e4aee(0x1d6)][_0x1e4aee(0x22c)][_0x1e4aee(0x21e)](_0x1e4aee(0x113)),'locale':this[_0x1e4aee(0x1d6)][_0x1e4aee(0x117)]});const _0x41145e=this[_0x1e4aee(0x1d6)][_0x1e4aee(0x16f)][_0x1e4aee(0x21e)](_0x1e4aee(0x252));this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x18b),()=>{const _0x438c24=_0x1e4aee;this[_0x438c24(0x156)]();}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x17c),(_0x1804d8,_0x5443f3)=>{const _0x5a8657=_0x1e4aee;this[_0x5a8657(0x18e)]({'userMessage':_0x5443f3});}),this[_0x1e4aee(0x204)](_0x41145e,_0x1e4aee(0x18c),(_0x5538e1,_0x41be27)=>{const _0x473fa6=_0x1e4aee;this[_0x473fa6(0x1c8)](_0x41be27);}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x104),()=>{const _0x464677=_0x1e4aee;_0x41145e[_0x464677(0x1b9)]();}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x257),async()=>{const _0x209771=_0x1e4aee;await this[_0x209771(0x230)](),await this[_0x209771(0x20d)](),this[_0x209771(0xf9)]();}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x137),()=>{const _0x55fcbf=_0x1e4aee;this[_0x55fcbf(0x247)]?.[_0x55fcbf(0x13f)](_0x3092a6(this[_0x55fcbf(0x1d6)][_0x55fcbf(0x117)],_0x55fcbf(0x1e7)));}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x18f),(_0x123b58,_0x3754e8)=>{const _0x13cd2a=_0x1e4aee;this[_0x13cd2a(0x247)]?.[_0x13cd2a(0x264)](Array[_0x13cd2a(0x123)](_0x3754e8));}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x240),(_0x3faa28,_0x5ed820)=>{const _0x20148e=_0x1e4aee;this[_0x20148e(0x247)]?.[_0x20148e(0x240)](_0x5ed820);}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x1f0),(_0x2f1029,_0x575f6b)=>{const _0x49e0fb=_0x1e4aee;this[_0x49e0fb(0x247)]?.[_0x49e0fb(0x1f0)](_0x575f6b[_0x49e0fb(0x23b)],_0x575f6b[_0x49e0fb(0xfd)]);}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x186),(_0x18ce2d,_0x5082eb)=>{const _0x334fe2=_0x1e4aee;this[_0x334fe2(0x208)](_0x5082eb);}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x1c3),(_0x3088d0,_0x1479d7)=>{const _0x2056f6=_0x1e4aee;this[_0x2056f6(0x247)]?.[_0x2056f6(0x1c3)](_0x1479d7[_0x2056f6(0x211)],_0x1479d7[_0x2056f6(0x1a4)],_0x1479d7[_0x2056f6(0x20a)]);}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x215),()=>{const _0x3bbc88=_0x1e4aee;this[_0x3bbc88(0x108)]();}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x173),()=>{const _0x266afd=_0x1e4aee;this[_0x266afd(0x101)]();}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x266),(_0x38676f,_0x552c33)=>{const _0x2faaac=_0x1e4aee;this[_0x2faaac(0x247)]?.[_0x2faaac(0x1d2)](_0x552c33);}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x18d),(_0x2ed433,{replyId:_0x403944})=>{const _0xc8daac=_0x1e4aee;console[_0xc8daac(0x15f)](_0xc8daac(0x1fe),_0x403944);}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x1e0),(_0x3614d1,{replyId:_0x25f576})=>{const _0x139fa0=_0x1e4aee;console[_0x139fa0(0x15f)](_0x139fa0(0x162),_0x25f576);}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x187),(_0x106ce7,_0x4136cd)=>{const _0x1374b0=_0x1e4aee;this[_0x1374b0(0x1d6)][_0x1374b0(0x16f)][_0x1374b0(0x21e)](_0x50f0cf)[_0x1374b0(0x122)](),this[_0x1374b0(0x121)](_0x4136cd);}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x1ea),(_0x597569,{replyId:_0x580a7b,partIndex:_0x5c1f85})=>{const _0x3aeaac=_0x1e4aee;this[_0x3aeaac(0x1ff)]=this[_0x3aeaac(0x14e)][_0x3aeaac(0x158)],this[_0x3aeaac(0x227)](_0x580a7b,_0x5c1f85);}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x253),(_0x3ab3b8,{replyId:_0xd11fe1,partIndex:_0x574c60})=>{const _0x150cce=_0x1e4aee,_0x2514dd=this[_0x150cce(0x15a)](_0xd11fe1,_0x574c60);_0x2514dd&&_0x150cce(0x181)!=_0x2514dd[_0x150cce(0x141)][_0x150cce(0x1a5)][_0x150cce(0x206)]&&this[_0x150cce(0x189)][_0x150cce(0x25b)]([_0x2514dd[_0x150cce(0x141)]],_0x150cce(0x20f));}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x159),()=>{const _0x482c41=_0x1e4aee;this[_0x482c41(0x189)][_0x482c41(0x1a0)](_0x482c41(0x20f));}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x224),(_0x4e4eb6,_0x232fc5)=>{const _0x8e140e=_0x1e4aee;this[_0x8e140e(0x1d6)][_0x8e140e(0x16f)][_0x8e140e(0x21e)](_0x50f0cf)[_0x8e140e(0x122)](),this[_0x8e140e(0x1ef)](_0x232fc5);}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x176),async(_0x14bbb4,{replyId:_0xf0e28d,showDiff:_0x3a95ee})=>{const _0x19baa5=_0x1e4aee,{reply:_0x391af5}=this[_0x19baa5(0x106)](_0xf0e28d),_0x9468e6=_0x391af5[_0x19baa5(0x112)]({'showDiff':_0x3a95ee});await this[_0x19baa5(0x14e)][_0x19baa5(0x24c)]({'id':_0x391af5['id'],'parts':_0x9468e6,'renderingStrategy':_0x19baa5(0x24d)});}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x234),(_0x1da5c4,{replyId:_0xc86f6a,partIndex:_0x2011e8})=>{const _0x133d1a=_0x1e4aee;this[_0x133d1a(0x1fc)]?.[_0x133d1a(0x1a6)]==_0xc86f6a&&this[_0x133d1a(0x1fc)]?.[_0x133d1a(0x1d1)]==_0x2011e8&&this[_0x133d1a(0x1d6)][_0x133d1a(0x16f)][_0x133d1a(0x21e)](_0x50f0cf)[_0x133d1a(0x122)]();const {reply:_0x423b9b}=this[_0x133d1a(0x106)](_0xc86f6a);_0x423b9b[_0x133d1a(0x1c1)](_0x2011e8,_0x133d1a(0x1aa)),this[_0x133d1a(0x189)][_0x133d1a(0x1a0)](_0x133d1a(0x20f));});}async[_0x8c2602(0x12d)](){const _0x5f8e1b=_0x8c2602;this[_0x5f8e1b(0x1d6)]instanceof _0x5bc23b?this[_0x5f8e1b(0x164)](this[_0x5f8e1b(0x1d6)]):this[_0x5f8e1b(0x204)](this[_0x5f8e1b(0x1d6)][_0x5f8e1b(0x229)],_0x5f8e1b(0x1d8),(_0x4ffc62,_0x95efe)=>{const _0x33d353=_0x5f8e1b;_0x95efe['on'](_0x33d353(0x145),()=>{const _0x5752d0=_0x33d353;this[_0x5752d0(0x164)](_0x95efe);});}),await this[_0x5f8e1b(0x156)]();}[_0x8c2602(0x17d)](){const _0x5dd2d6=_0x8c2602;this[_0x5dd2d6(0x11e)][_0x5dd2d6(0x19e)](),super[_0x5dd2d6(0x17d)]();}[_0x8c2602(0x121)](_0x2ef43b){const _0x102f55=_0x8c2602,_0x4832d1=_0x3fa301(this[_0x102f55(0x1d6)]);if(!_0x4832d1[_0x102f55(0x16f)][_0x102f55(0x16b)](_0x102f55(0x140)))throw new _0x2a84dd(_0x102f55(0xf8),null);const _0x89c6bb=this[_0x102f55(0x1d6)][_0x102f55(0x16f)][_0x102f55(0x21e)](_0x102f55(0x1f6)),{reply:_0x5cdec2,interaction:_0x2ccf2c}=this[_0x102f55(0x106)](_0x2ef43b[_0x102f55(0x1a6)]),_0x141793=this[_0x102f55(0x15a)](_0x2ef43b[_0x102f55(0x1a6)],_0x2ef43b[_0x102f55(0x1d1)]),_0x4afbc2=void 0x0!==_0x2ef43b[_0x102f55(0x1d1)]?[_0x5cdec2[_0x102f55(0x25f)][_0x2ef43b[_0x102f55(0x1d1)]]]:_0x5cdec2[_0x102f55(0x25f)][_0x102f55(0x171)](_0x543747=>_0x102f55(0x1d7)==_0x543747[_0x102f55(0xff)]),_0x41b10a=_0x4afbc2[_0x102f55(0x239)](_0x5da67a=>_0x5cdec2[_0x102f55(0x25f)][_0x102f55(0x128)](_0x5da67a));if(!_0x141793||_0x102f55(0x181)==_0x141793[_0x102f55(0x141)][_0x102f55(0x1a5)][_0x102f55(0x206)])return void _0x41b10a[_0x102f55(0x231)](_0x3d1022=>_0x5cdec2[_0x102f55(0x1c1)](_0x3d1022,_0x102f55(0x209)));_0x41b10a[_0x102f55(0x231)](_0x44b04e=>_0x5cdec2[_0x102f55(0x1c1)](_0x44b04e,_0x102f55(0x203)));const _0x3451cb=_0x1a1d19({'editor':_0x4832d1,'reply':_0x5cdec2,'interaction':_0x2ccf2c,'groups':_0x4afbc2,'transform':!0x0,'documentCompare':_0x89c6bb,'documentCompareOptions':{'anchor':_0x102f55(0x1cb),'markDeletions':!0x0}});let _0x225faf;_0x141793&&this[_0x102f55(0x1bf)](_0x141793[_0x102f55(0x141)]),_0x4832d1[_0x102f55(0x1a8)][_0x102f55(0x1b3)](_0x3da30e=>{const _0xc3614=_0x102f55;_0x225faf=_0x3da30e[_0xc3614(0x172)],_0x4832d1[_0xc3614(0x16f)][_0xc3614(0x21e)](_0xc3614(0x265))[_0xc3614(0x1e2)](_0x3451cb),this[_0xc3614(0x189)][_0xc3614(0x1a0)](_0xc3614(0x20f));}),this[_0x102f55(0x1f3)][_0x102f55(0x22e)](_0x225faf,{'interactionId':_0x2ccf2c['id'],'replyId':_0x5cdec2['id'],'indexes':_0x41b10a[_0x102f55(0x263)]()}),this[_0x102f55(0x200)](_0x5cdec2);}[_0x8c2602(0x1ef)](_0x1f9062){const _0x461748=_0x8c2602,_0x3784fc=_0x3fa301(this[_0x461748(0x1d6)]),_0x225775=this[_0x461748(0x1d6)][_0x461748(0x16f)][_0x461748(0x21e)](_0x42bdb4),{reply:_0x3c5362,interaction:_0x34712b}=this[_0x461748(0x106)](_0x1f9062[_0x461748(0x1a6)]),_0x515858=this[_0x461748(0x15a)](_0x1f9062[_0x461748(0x1a6)],_0x1f9062[_0x461748(0x1d1)]),_0x367b64=void 0x0!==_0x1f9062[_0x461748(0x1d1)]?[_0x3c5362[_0x461748(0x25f)][_0x1f9062[_0x461748(0x1d1)]]]:_0x3c5362[_0x461748(0x25f)][_0x461748(0x171)](_0x2d1c21=>_0x461748(0x1d7)==_0x2d1c21[_0x461748(0xff)]),_0x44e691=_0x367b64[_0x461748(0x239)](_0x3af3f1=>_0x3c5362[_0x461748(0x25f)][_0x461748(0x128)](_0x3af3f1));if(!_0x515858||_0x461748(0x181)==_0x515858[_0x461748(0x141)][_0x461748(0x1a5)][_0x461748(0x206)])return void _0x44e691[_0x461748(0x231)](_0x5435fa=>_0x3c5362[_0x461748(0x1c1)](_0x5435fa,_0x461748(0x209)));_0x44e691[_0x461748(0x231)](_0x348351=>_0x3c5362[_0x461748(0x1c1)](_0x348351,_0x461748(0x203)));const _0x3e2861=_0x1a1d19({'editor':_0x3784fc,'reply':_0x3c5362,'interaction':_0x34712b,'groups':_0x367b64,'transform':!0x0,'documentCompare':_0x225775,'documentCompareOptions':{'anchor':_0x461748(0x1cb),'markDeletions':!0x1}});let _0x5d332a;_0x515858&&this[_0x461748(0x1bf)](_0x515858[_0x461748(0x141)]),_0x3784fc[_0x461748(0x1a8)][_0x461748(0x1b3)](_0x2149cd=>{const _0x661e09=_0x461748;_0x5d332a=_0x2149cd[_0x661e09(0x172)];for(const _0xa8dd8c of _0x3e2861)_0xa8dd8c[_0x661e09(0x14d)]=_0x3784fc[_0x661e09(0x1a8)][_0x661e09(0x182)][_0x661e09(0x19c)],_0x393cf8(_0x3784fc,_0xa8dd8c),_0x2149cd[_0x661e09(0x172)][_0x661e09(0xfb)](_0xa8dd8c),_0x3784fc[_0x661e09(0x1a8)][_0x661e09(0x1f9)](_0xa8dd8c);}),this[_0x461748(0x1f3)][_0x461748(0x22e)](_0x5d332a,{'interactionId':_0x34712b['id'],'replyId':_0x3c5362['id'],'indexes':_0x44e691[_0x461748(0x263)]()}),this[_0x461748(0x200)](_0x3c5362);}[_0x8c2602(0x227)](_0x30c771,_0x855ab7){const _0x1bc5d3=_0x8c2602,_0x5d27a1=_0x3fa301(this[_0x1bc5d3(0x1d6)]),_0x447222=this[_0x1bc5d3(0x15a)](_0x30c771,_0x855ab7),_0x95fd79=this[_0x1bc5d3(0x1d6)][_0x1bc5d3(0x16f)][_0x1bc5d3(0x21e)](_0x50f0cf);if(!_0x447222)return void _0x95fd79[_0x1bc5d3(0x122)]();const {range:_0x19e9db,currentIndex:_0xe68d15}=_0x447222;if(_0x1bc5d3(0x181)==_0x19e9db[_0x1bc5d3(0x1a5)][_0x1bc5d3(0x206)]){const {reply:_0x1b5066}=this[_0x1bc5d3(0x106)](_0x30c771);return _0x1b5066[_0x1bc5d3(0x1c1)](_0xe68d15,_0x1bc5d3(0x209)),void _0x95fd79[_0x1bc5d3(0x122)]();}if(this[_0x1bc5d3(0x1fc)]?.[_0x1bc5d3(0x1a6)]==_0x30c771&&this[_0x1bc5d3(0x1fc)]?.[_0x1bc5d3(0x1d1)]==_0xe68d15)return;this[_0x1bc5d3(0x22a)](_0x95fd79),this[_0x1bc5d3(0x1fc)]={'replyId':_0x30c771,'partIndex':_0xe68d15};let _0x190f46=_0x5d27a1[_0x1bc5d3(0x22c)][_0x1bc5d3(0x21e)](_0x1bc5d3(0xfa))||[..._0x261985];_0x5d27a1[_0x1bc5d3(0x16f)][_0x1bc5d3(0x16b)](_0x1bc5d3(0x140))||(_0x190f46=_0x190f46[_0x1bc5d3(0x171)](_0x31443a=>_0x1bc5d3(0x187)!=_0x31443a));const _0x151383=new _0x128223(_0x5d27a1[_0x1bc5d3(0x117)],{'showDiff':this[_0x1bc5d3(0x1ff)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x1bc5d3(0x228)},'hideHeader':!0x0,'availableActions':_0x190f46},this[_0x1bc5d3(0x11e)]);this[_0x1bc5d3(0x22a)](_0x151383);const {reply:_0x156fed}=this[_0x1bc5d3(0x106)](_0x30c771),_0x593c66=_0x156fed[_0x1bc5d3(0x112)]({'showDiff':this[_0x1bc5d3(0x1ff)]})[_0x1bc5d3(0x171)](_0x159529=>_0x159529[_0x1bc5d3(0x174)]),_0x3edeea=_0x593c66[_0x1bc5d3(0x1fb)](_0x5d2d75=>_0x5d2d75[_0x1bc5d3(0x1ee)]==_0xe68d15);if(-0x1==_0x3edeea)return;const _0x3a0357=_0x593c66[_0x3edeea],_0x44ab77=_0x593c66['at']((_0x3edeea-0x1)%_0x593c66[_0x1bc5d3(0x225)])?.[_0x1bc5d3(0x1ee)],_0x4e532a=_0x593c66['at']((_0x3edeea+0x1)%_0x593c66[_0x1bc5d3(0x225)])?.[_0x1bc5d3(0x1ee)];_0x151383[_0x1bc5d3(0x188)]({'parts':[_0x3a0357],'renderingStrategy':_0x1bc5d3(0x24d)});const _0x13f53a=_0xe68d15!==_0x44ab77;this[_0x1bc5d3(0x1bf)](_0x19e9db,!0x0),_0x95fd79[_0x1bc5d3(0x135)]({'index':_0xe68d15,'title':_0x3092a6(this[_0x1bc5d3(0x1d6)][_0x1bc5d3(0x117)],_0x1bc5d3(0x21c),(_0x3edeea+0x1)[_0x1bc5d3(0x1c6)]()),'icon':_0x320133,'mainView':_0x151383,'showRotator':_0x13f53a,'showApplyButton':!0x0,'showSuggestButton':_0x5d27a1[_0x1bc5d3(0x16f)][_0x1bc5d3(0x16b)](_0x1bc5d3(0x140)),'ranges':[_0x19e9db]}),this[_0x1bc5d3(0x14e)][_0x1bc5d3(0x1f8)](_0x30c771,_0xe68d15),this[_0x1bc5d3(0x204)](_0x151383,_0x1bc5d3(0x176),(_0x39414d,{showDiff:_0x7fa6c3})=>{const _0xc9e148=_0x1bc5d3;this[_0xc9e148(0x1ff)]=_0x7fa6c3;const {reply:_0x8a6278}=this[_0xc9e148(0x106)](_0x30c771),_0x1dce5c=_0x8a6278[_0xc9e148(0x112)]({'showDiff':_0x7fa6c3,'groupIndex':_0xe68d15});_0x151383[_0xc9e148(0x188)]({'parts':_0x1dce5c,'renderingStrategy':_0xc9e148(0x24d)});}),this[_0x1bc5d3(0x204)](_0x95fd79,_0x1bc5d3(0x224),()=>{const _0x232389=_0x1bc5d3;this[_0x232389(0x1ef)]({'replyId':_0x30c771,'partIndex':_0xe68d15}),_0x13f53a?this[_0x232389(0x227)](_0x30c771,_0x4e532a):_0x95fd79[_0x232389(0x122)]();}),this[_0x1bc5d3(0x204)](_0x95fd79,_0x1bc5d3(0x187),()=>{const _0x1e7414=_0x1bc5d3;this[_0x1e7414(0x121)]({'replyId':_0x30c771,'partIndex':_0xe68d15}),_0x13f53a?this[_0x1e7414(0x227)](_0x30c771,_0x4e532a):_0x95fd79[_0x1e7414(0x122)]();}),_0x13f53a&&(this[_0x1bc5d3(0x204)](_0x95fd79,_0x1bc5d3(0x202),()=>{const _0x3a3e56=_0x1bc5d3;this[_0x3a3e56(0x227)](_0x30c771,_0x4e532a);}),this[_0x1bc5d3(0x204)](_0x95fd79,_0x1bc5d3(0x201),()=>{const _0x4a9a55=_0x1bc5d3;this[_0x4a9a55(0x227)](_0x30c771,_0x44ab77);})),this[_0x1bc5d3(0x204)](_0x95fd79,_0x1bc5d3(0x16c),()=>{const _0x37eb1c=_0x1bc5d3;this[_0x37eb1c(0x22a)](_0x95fd79),this[_0x37eb1c(0x22a)](_0x151383),this[_0x37eb1c(0x1fc)]=null;});}[_0x8c2602(0x15a)](_0x2f60d7,_0x96ad60){const _0x536c9e=_0x8c2602,_0x57db58=_0x3fa301(this[_0x536c9e(0x1d6)]),{reply:_0x15e1c4,interaction:_0x4de4eb}=this[_0x536c9e(0x106)](_0x2f60d7),_0x1bb0c9=_0x15e1c4[_0x536c9e(0x25f)][_0x536c9e(0x171)](_0x3e2d75=>_0x536c9e(0x1d7)==_0x3e2d75[_0x536c9e(0xff)]),_0x1fd5e4=_0x1bb0c9[_0x536c9e(0x239)](_0x3432b0=>_0x15e1c4[_0x536c9e(0x25f)][_0x536c9e(0x128)](_0x3432b0));void 0x0===_0x96ad60&&(_0x96ad60=_0x1fd5e4[0x0]);const _0x58290d=_0x1fd5e4[_0x536c9e(0x128)](_0x96ad60);if(-0x1==_0x58290d)return null;const _0x13df2f=_0x1bb0c9[_0x58290d],_0x5e3185=new _0xdab3ce([]),_0x39329a=new _0xdab3ce([]);for(const _0x820725 of _0x13df2f[_0x536c9e(0x1b5)])if(_0x536c9e(0x14f)!=_0x820725[_0x536c9e(0x1e5)]&&_0x39329a[_0x536c9e(0x16e)][_0x536c9e(0x160)](_0x820725[_0x536c9e(0x23f)][_0x536c9e(0x1e6)](!0x0)),_0x536c9e(0x134)!=_0x820725[_0x536c9e(0x1e5)]){const _0x23d6f6=_0x336fc3(_0x3b63ed=>_0x5270e7(_0x3b63ed,_0x536c9e(0x10c))==_0x820725['id'],_0x15e1c4[_0x536c9e(0x197)],!0x0);_0x5e3185[_0x536c9e(0x16e)][_0x536c9e(0x160)](_0x23d6f6[_0x536c9e(0x1e6)](!0x0));}if(0x0==_0x5e3185[_0x536c9e(0x16e)][_0x536c9e(0x225)]){if(_0x13df2f[_0x536c9e(0x1b5)][0x0][_0x536c9e(0x20b)]){const _0x1517f8=_0x2de233(_0x536c9e(0x10c),_0x13df2f[_0x536c9e(0x1b5)][0x0][_0x536c9e(0x20b)],_0x15e1c4[_0x536c9e(0x197)]);_0x5e3185[_0x536c9e(0x16e)][_0x536c9e(0x1ce)](_0x1517f8[_0x536c9e(0x1e6)](!0x0)),_0x39329a[_0x536c9e(0x16e)][_0x536c9e(0x1ce)](_0x1517f8[_0x536c9e(0x1e6)](!0x0)),_0x1517f8[_0x536c9e(0x146)]&&(_0x5e3185[_0x536c9e(0x16e)][_0x536c9e(0x160)](_0x1517f8[_0x536c9e(0x146)][_0x536c9e(0x1e6)](!0x0)),_0x39329a[_0x536c9e(0x16e)][_0x536c9e(0x160)](_0x1517f8[_0x536c9e(0x146)][_0x536c9e(0x1e6)](!0x0)));}else{const _0x4b3fbd=_0x15e1c4[_0x536c9e(0x197)][_0x536c9e(0x16e)][0x0];if(!_0x4b3fbd)return null;_0x5e3185[_0x536c9e(0x16e)][_0x536c9e(0x160)](_0x4b3fbd[_0x536c9e(0x1e6)](!0x0)),_0x39329a[_0x536c9e(0x16e)][_0x536c9e(0x160)](_0x4b3fbd[_0x536c9e(0x1e6)](!0x0));}}const _0xb5a2b5=_0x4de4eb[_0x536c9e(0x133)](),_0x43a847=_0x57db58[_0x536c9e(0x20c)][_0x536c9e(0x22f)](_0xb5a2b5[_0x536c9e(0x12b)],_0x536c9e(0x1b1)),_0x11e356=_0x1a5111(_0x5e3185),_0x5460d8=_0x57db58[_0x536c9e(0x20c)][_0x536c9e(0x22f)](_0x11e356),_0x168b13=_0x57db58[_0x536c9e(0x20c)][_0x536c9e(0x22f)](_0x11e356),_0x4487f8=_0x57db58[_0x536c9e(0x1a8)][_0x536c9e(0x24b)](_0x5460d8,0x0),_0x334b5e=_0x1a5111(_0x39329a),_0x5d17ed={'anchor':_0x4487f8,'markDeletions':!0x1,'context':_0x536c9e(0x1b1)},_0x217790=_0x57db58[_0x536c9e(0x16f)][_0x536c9e(0x21e)](_0x42bdb4)[_0x536c9e(0x196)](_0x11e356,_0x334b5e,_0x5d17ed)[_0x536c9e(0x144)]();if(!_0x217790[_0x536c9e(0x225)])return null;_0x57db58[_0x536c9e(0x1a8)][_0x536c9e(0x1b3)](_0x43225f=>{const _0x53855f=_0x536c9e;for(const _0x5424f6 of _0x217790)if(_0x53855f(0x120)==_0x5424f6[_0x53855f(0x1e5)]){const _0x369ff6=_0x5424f6[_0x53855f(0x223)],_0x1d1a44=_0x5424f6[_0x53855f(0x232)],_0x1aa6df=new _0x20bbc9(_0x369ff6,_0x1d1a44);_0x43225f[_0x53855f(0x172)][_0x53855f(0xfb)](_0x1aa6df),_0x57db58[_0x53855f(0x1a8)][_0x53855f(0x1f9)](_0x1aa6df);}else _0x53855f(0x248)!==_0x5424f6[_0x53855f(0x1e5)]&&(_0x5424f6[_0x53855f(0x14d)]=null,_0x5424f6[_0x53855f(0x103)]=!0x1,_0x43225f[_0x53855f(0x172)][_0x53855f(0xfb)](_0x5424f6),_0x57db58[_0x53855f(0x1a8)][_0x53855f(0x1f9)](_0x5424f6));});const _0x4449c9=_0x283eab(_0x57db58,_0x217790,_0x5460d8);_0x5830fc(_0x57db58[_0x536c9e(0x1a8)],_0x4449c9);const _0x186a4c=_0x4449c9[_0x536c9e(0x1a9)]()[_0x536c9e(0x1dc)][_0x536c9e(0x192)][_0x536c9e(0x263)](),_0xfc4005=_0x4449c9[_0x536c9e(0x1a9)]()[_0x536c9e(0x207)][_0x536c9e(0x192)][_0x536c9e(0x263)](),_0x82fa52=[];let _0x5281e9=_0x5460d8,_0x3fdcc6=_0x168b13;for(let _0x6287dd=0x0;_0x6287dd<_0xfc4005[_0x536c9e(0x225)];_0x6287dd++){const _0x77a35=_0x5281e9[_0x536c9e(0x22d)]-_0xfc4005[_0x6287dd];_0x82fa52[_0x6287dd]=_0x3fdcc6[_0x536c9e(0x22d)]-_0x77a35,_0x5281e9=_0x5281e9[_0x536c9e(0x1dd)](_0xfc4005[_0x6287dd]),_0x3fdcc6=_0x3fdcc6[_0x536c9e(0x1dd)](_0x82fa52[_0x6287dd]);}const _0x7ad698=_0x57db58[_0x536c9e(0x1a8)][_0x536c9e(0x222)](_0x57db58[_0x536c9e(0x1a8)][_0x536c9e(0x153)](_0x168b13,_0x186a4c),_0x57db58[_0x536c9e(0x1a8)][_0x536c9e(0x153)](_0x168b13,_0x82fa52)),_0x51eeed=_0x168b13[_0x536c9e(0x254)](0x0)[_0x536c9e(0x261)](_0x4e6a79),_0x3a1ca5=Array[_0x536c9e(0x123)](_0x43a847[_0x536c9e(0x25c)]())[_0x536c9e(0x23a)](_0x243699=>_0x243699[_0x536c9e(0x261)](_0x4e6a79)==_0x51eeed)[_0x536c9e(0x136)](),_0x15e374=_0x7ad698[_0x536c9e(0x1dc)][_0x536c9e(0x192)][_0x536c9e(0x263)](),_0x2d5a74=_0x7ad698[_0x536c9e(0x207)][_0x536c9e(0x192)][_0x536c9e(0x263)]();_0x15e374[0x0]=_0x3a1ca5[0x0]+_0x15e374[0x0],_0x2d5a74[0x0]=_0x3a1ca5[0x0]+_0x2d5a74[0x0];let _0x3e93d0=_0x57db58[_0x536c9e(0x1a8)][_0x536c9e(0x222)](_0x57db58[_0x536c9e(0x1a8)][_0x536c9e(0x153)](_0x57db58[_0x536c9e(0x1a8)][_0x536c9e(0x182)][_0x536c9e(0x114)](),_0x15e374),_0x57db58[_0x536c9e(0x1a8)][_0x536c9e(0x153)](_0x57db58[_0x536c9e(0x1a8)][_0x536c9e(0x182)][_0x536c9e(0x114)](),_0x2d5a74));const _0x5a15bc=_0x57db58[_0x536c9e(0x1a8)][_0x536c9e(0x182)][_0x536c9e(0x1f5)][_0x536c9e(0x144)](_0xb5a2b5[_0x536c9e(0x19c)]);for(const _0xd6a948 of _0x5a15bc)_0x3e93d0=_0x1d0bbd[_0x536c9e(0x1e4)](_0x3e93d0[_0x536c9e(0x161)](_0xd6a948));return{'range':_0x3e93d0,'currentIndex':_0x96ad60};}[_0x8c2602(0x164)](_0x15cd5b){const _0x234e89=_0x8c2602;if(!_0x15cd5b[_0x234e89(0x16f)][_0x234e89(0x16b)](_0x234e89(0x1f1)))return;const _0x226052=_0x15cd5b[_0x234e89(0x178)][_0x234e89(0x21e)](_0x234e89(0x168)),_0x49ce3f=_0x15cd5b[_0x234e89(0x178)][_0x234e89(0x21e)](_0x234e89(0x245));this[_0x234e89(0x204)](_0x226052,_0x234e89(0x1fa),(_0xbe7a7e,_0x1cff65,_0x49fed4)=>{const _0x1d0cfe=_0x234e89,_0x159902=this[_0x1d0cfe(0x1f3)][_0x1d0cfe(0x21e)](_0x1cff65);if(!_0x159902)return;const _0x8053=this[_0x1d0cfe(0x247)][_0x1d0cfe(0x183)](_0x159902[_0x1d0cfe(0x218)])[_0x1d0cfe(0x258)](_0x159902[_0x1d0cfe(0x1a6)]);_0x159902[_0x1d0cfe(0x1b4)][_0x1d0cfe(0x231)](_0x2c7a82=>_0x8053[_0x1d0cfe(0x1c1)](_0x2c7a82,_0x1d0cfe(0x1d7))),this[_0x1d0cfe(0x1f3)][_0x1d0cfe(0x212)](_0x1cff65),this[_0x1d0cfe(0x1f3)][_0x1d0cfe(0x22e)](_0x49fed4,_0x159902);}),this[_0x234e89(0x204)](_0x49ce3f,_0x234e89(0x1fa),(_0x240e85,_0x12c5a3,_0x4af30d)=>{const _0x583104=_0x234e89,_0x5010ae=this[_0x583104(0x1f3)][_0x583104(0x21e)](_0x12c5a3);if(!_0x5010ae)return;const _0x5940e2=this[_0x583104(0x247)][_0x583104(0x183)](_0x5010ae[_0x583104(0x218)])[_0x583104(0x258)](_0x5010ae[_0x583104(0x1a6)]);_0x5010ae[_0x583104(0x1b4)][_0x583104(0x231)](_0x521cdb=>_0x5940e2[_0x583104(0x1c1)](_0x521cdb,_0x583104(0x203))),this[_0x583104(0x1f3)][_0x583104(0x212)](_0x12c5a3),this[_0x583104(0x1f3)][_0x583104(0x22e)](_0x4af30d,_0x5010ae);});}async[_0x8c2602(0x1d5)](_0x3bf0fa){const _0x45ca6d=_0x8c2602;this[_0x45ca6d(0x1d6)][_0x45ca6d(0x16f)][_0x45ca6d(0x21e)](_0x50f0cf)[_0x45ca6d(0x122)](),this[_0x45ca6d(0x14e)][_0x45ca6d(0x124)](_0x45ca6d(0x24d)),this[_0x45ca6d(0x14e)][_0x45ca6d(0x1ed)](!0x0),await this[_0x45ca6d(0x230)]();try{await this[_0x45ca6d(0x1d9)][_0x45ca6d(0x167)](_0x3bf0fa)[_0x45ca6d(0x107)](),await this[_0x45ca6d(0x156)](_0x3bf0fa),this[_0x45ca6d(0x195)]('\x20');const {sessionId:_0x3d582a}=this[_0x45ca6d(0x189)][_0x45ca6d(0x20e)]();await this[_0x45ca6d(0x247)][_0x45ca6d(0x15b)](_0x3bf0fa,_0x3d582a),this[_0x45ca6d(0x247)][_0x45ca6d(0x11c)]()&&this[_0x45ca6d(0x247)][_0x45ca6d(0x13f)](_0x3092a6(this[_0x45ca6d(0x1d6)][_0x45ca6d(0x117)],_0x45ca6d(0x1e7)));}catch(_0x39bec2){this[_0x45ca6d(0x14e)][_0x45ca6d(0x1bc)]({'errorMessage':_0x3092a6(this[_0x45ca6d(0x1d6)][_0x45ca6d(0x117)],_0x45ca6d(0x132)),'id':_0x3bf0fa}),this[_0x45ca6d(0x148)](new _0x2a84dd(_0x45ca6d(0x17e),this,{'error':_0x39bec2}));}finally{this[_0x45ca6d(0x1d6)][_0x45ca6d(0x16f)][_0x45ca6d(0x21e)](_0x1d4d68)[_0x45ca6d(0x1bd)][_0x45ca6d(0x1e8)](_0x45ca6d(0x205)),this[_0x45ca6d(0x14e)][_0x45ca6d(0x1b7)](),this[_0x45ca6d(0x14e)][_0x45ca6d(0x124)](_0x45ca6d(0x147)),this[_0x45ca6d(0x14e)][_0x45ca6d(0x1ed)](!0x1);}}[_0x8c2602(0x1a1)](_0x4a6fc5){const _0x1f1b09=_0x8c2602;this[_0x1f1b09(0x247)]['id']===_0x4a6fc5&&this[_0x1f1b09(0x156)]();}async[_0x8c2602(0x23e)](){const _0x5ebdce=_0x8c2602,_0x17988a=this[_0x5ebdce(0x189)][_0x5ebdce(0x13b)]();this[_0x5ebdce(0x247)]?.[_0x5ebdce(0x1c4)](_0x17988a),this[_0x5ebdce(0x247)]?.[_0x5ebdce(0x13f)](_0x3092a6(this[_0x5ebdce(0x1d6)][_0x5ebdce(0x117)],_0x5ebdce(0x1e7)));}[_0x8c2602(0xf9)](){const _0x5f228e=_0x8c2602;this[_0x5f228e(0x247)]?.[_0x5f228e(0x12c)]();}[_0x8c2602(0x21f)](){const _0x2b4d2f=_0x8c2602;this[_0x2b4d2f(0x14e)][_0x2b4d2f(0x21f)]();}async[_0x8c2602(0x18b)](){const _0x16fdd7=_0x8c2602;await this[_0x16fdd7(0x156)]();}async[_0x8c2602(0x102)]({message:_0x4dc785,quickActionData:_0x272a03}){const _0x191d81=_0x8c2602;await this[_0x191d81(0x18e)]({'userMessage':_0x4dc785,'quickActionData':_0x272a03});}[_0x8c2602(0x199)](){const _0x2e07b8=_0x8c2602,_0x4dd364=this[_0x2e07b8(0x1d6)][_0x2e07b8(0x22c)][_0x2e07b8(0x21e)](_0x2e07b8(0x131));if(!_0x4dd364)throw new _0x2a84dd(_0x2e07b8(0x14c),this);return _0x4dd364;}async[_0x8c2602(0x156)](_0x442b3f){const _0x44a809=_0x8c2602;try{this[_0x44a809(0x14e)][_0x44a809(0x109)](),await this[_0x44a809(0x243)](_0x442b3f);}catch(_0x16d1b1){this[_0x44a809(0x14e)][_0x44a809(0x1bc)]({'errorMessage':_0x3092a6(this[_0x44a809(0x1d6)][_0x44a809(0x117)],_0x44a809(0x249)),'id':_0x442b3f||_0xa18360()}),console[_0x44a809(0x226)](_0x16d1b1),this[_0x44a809(0x247)]=void 0x0,this[_0x44a809(0x14e)][_0x44a809(0x1d0)]();}}async[_0x8c2602(0x243)](_0x3212a3){const _0x38b159=_0x8c2602,_0x4794a1=this[_0x38b159(0x1d6)][_0x38b159(0x16f)][_0x38b159(0x21e)](_0x50f0cf);let _0x307d21;_0x4794a1[_0x38b159(0x10a)]&&_0x4794a1[_0x38b159(0x122)](),_0x3212a3||!this[_0x38b159(0x247)]?_0x307d21=this[_0x38b159(0x1d6)][_0x38b159(0x22c)][_0x38b159(0x21e)](_0x38b159(0x113)):this[_0x38b159(0x14e)][_0x38b159(0xfc)]&&(_0x307d21=this[_0x38b159(0x247)][_0x38b159(0x216)]['id']),await this[_0x38b159(0x230)]();const _0x415722=this[_0x38b159(0x199)](),_0x236efd=_0x3212a3||_0xa18360();this[_0x38b159(0x247)]=new _0xf13ee3({'connector':this[_0x38b159(0x1d9)],'chatModels':this[_0x38b159(0x1c5)],'selectedModelId':_0x307d21,'conversationId':_0x236efd,'group':_0x415722,'getEditor':()=>_0x3fa301(this[_0x38b159(0x1d6)])}),this[_0x38b159(0x247)]['on'](_0x38b159(0x25a),(_0x1a55d9,_0x30b842)=>{const _0x51d202=_0x38b159;this[_0x51d202(0x14e)][_0x51d202(0x1ab)](_0x30b842),this[_0x51d202(0x14e)][_0x51d202(0x157)](),this[_0x51d202(0x14e)][_0x51d202(0x217)](),this[_0x51d202(0x14e)][_0x51d202(0x1e9)](),_0x3212a3||(this[_0x51d202(0x14e)][_0x51d202(0x14a)](),this[_0x51d202(0x247)]?.[_0x51d202(0x13f)](_0x3092a6(this[_0x51d202(0x1d6)][_0x51d202(0x117)],_0x51d202(0x1e7))));}),this[_0x38b159(0x247)]['on'](_0x38b159(0x246),(_0x3dd034,_0x3b29fc)=>{const _0x539d29=_0x38b159;this[_0x539d29(0x14e)][_0x539d29(0x13d)](_0x3b29fc[_0x539d29(0x139)]);}),this[_0x38b159(0x247)]['on'](_0x38b159(0x19b),(_0x515533,_0x1a3b5d)=>{const _0x5d2ac6=_0x38b159;this[_0x5d2ac6(0x14e)][_0x5d2ac6(0x151)](_0x1a3b5d);}),this[_0x38b159(0x247)]['on'](_0x38b159(0x235),()=>{const _0x2908c5=_0x38b159;this[_0x2908c5(0x14e)][_0x2908c5(0x1c9)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x38b159(0x247)]['on'](_0x38b159(0x1b6),()=>{const _0x2afc52=_0x38b159;this[_0x2afc52(0x14e)][_0x2afc52(0x1c9)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x38b159(0x247)]['on'](_0x38b159(0x17f),(_0x2e82b6,_0x35cfc5)=>{const _0x5246f1=_0x38b159;this[_0x5246f1(0x14e)][_0x5246f1(0x152)](_0x35cfc5,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x38b159(0x247)]['on'](_0x38b159(0x1eb),(_0xfb4245,_0x28ba69)=>{const _0x89e7b3=_0x38b159;this[_0x89e7b3(0x14e)][_0x89e7b3(0x152)](_0x28ba69,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x38b159(0x247)]['on'](_0x38b159(0x100),()=>{const _0x17cee6=_0x38b159;this[_0x17cee6(0x14e)][_0x17cee6(0x10f)]();}),this[_0x38b159(0x247)]['on'](_0x38b159(0x24e),async()=>{const _0x15f546=_0x38b159;await this[_0x15f546(0x14e)][_0x15f546(0x150)]();}),this[_0x38b159(0x247)]['on'](_0x38b159(0x262),(_0x49cd4c,_0x5977eb)=>{const _0x166ae7=_0x38b159;this[_0x166ae7(0x14e)][_0x166ae7(0x255)](_0x5977eb['id']);}),this[_0x38b159(0x247)]['on'](_0x38b159(0x1d4),(_0x22f62e,_0x4f211d,_0x3b505b)=>{const _0x54508f=_0x38b159;this[_0x54508f(0x195)](_0x4f211d,_0x3b505b);}),this[_0x38b159(0x247)]['on'](_0x38b159(0x19d),(_0x320cdc,_0x2488e0)=>{const _0x571c4e=_0x38b159;_0x571c4e(0x179)===_0x2488e0[_0x571c4e(0x1e5)]?this[_0x571c4e(0x14e)][_0x571c4e(0x125)](_0x2488e0):this[_0x571c4e(0x14e)][_0x571c4e(0x1c2)](_0x2488e0);}),this[_0x38b159(0x247)]['on'](_0x38b159(0x24f),async(_0x4b504d,_0x3afe62)=>{const _0x43671b=_0x38b159;await this[_0x43671b(0x22b)]({'reply':_0x3afe62});}),this[_0x38b159(0x247)]['on'](_0x38b159(0x21a),(_0x1926d3,{reply:_0x524576,index:_0x5f0264,state:_0x3089b0})=>{const _0x2f6221=_0x38b159;this[_0x2f6221(0x14e)][_0x2f6221(0x10e)]({'id':_0x524576['id'],'index':_0x5f0264,'state':_0x3089b0});}),this[_0x38b159(0x247)]['on'](_0x38b159(0x1ca),(_0x5beb04,_0x1da290)=>{const _0x1931e4=_0x38b159;if(this[_0x1931e4(0x14e)][_0x1931e4(0x1cc)](_0x1da290[_0x1931e4(0x233)],_0x1da290[_0x1931e4(0x1c7)]),_0x1931e4(0x138)===_0x1da290[_0x1931e4(0x233)][_0x1931e4(0x1e5)]){const _0xaa708f=[..._0x3fa301(this[_0x1931e4(0x1d6)])[_0x1931e4(0x1a8)][_0x1931e4(0x182)][_0x1931e4(0x138)][_0x1931e4(0x259)]()];this[_0x1931e4(0x189)][_0x1931e4(0x25b)](_0xaa708f,_0x1931e4(0x12f)+this[_0x1931e4(0x247)]?.['id']);}}),this[_0x38b159(0x247)]['on'](_0x38b159(0x129),(_0x86eca0,_0x1058bf)=>{const _0x52fb27=_0x38b159;this[_0x52fb27(0x14e)][_0x52fb27(0x186)](_0x1058bf[_0x52fb27(0x267)]),_0x52fb27(0x1a7)==_0x1058bf[_0x52fb27(0x267)]&&this[_0x52fb27(0xf9)](),_0x52fb27(0x138)===_0x1058bf[_0x52fb27(0x1e5)]&&this[_0x52fb27(0x189)][_0x52fb27(0x1a0)](_0x52fb27(0x12f)+this[_0x52fb27(0x247)]?.['id']);}),this[_0x38b159(0x247)]['on'](_0x38b159(0x25d),(_0x4ace90,_0x3d460e)=>{const _0x25e2a7=_0x38b159;this[_0x25e2a7(0x14e)][_0x25e2a7(0x242)](_0x3d460e[_0x25e2a7(0x233)][_0x25e2a7(0x267)],_0x3d460e[_0x25e2a7(0x1c7)]);}),this[_0x38b159(0x247)]['on'](_0x38b159(0x10b),(_0x163a48,_0x481f38)=>{const _0x55df55=_0x38b159;this[_0x55df55(0x14e)][_0x55df55(0x238)](_0x481f38[_0x55df55(0x214)]);}),this[_0x38b159(0x247)]['on'](_0x38b159(0x1bb),(_0x39fae6,_0x277bc6)=>{const _0x553280=_0x38b159;this[_0x553280(0x14e)][_0x553280(0x11a)](_0x277bc6[_0x553280(0x1df)]);}),this[_0x38b159(0x247)]['on'](_0x38b159(0x11f),(_0x4d7fa9,_0x4b310b)=>{const _0x476244=_0x38b159;this[_0x476244(0x14e)][_0x476244(0x19a)](_0x4b310b[_0x476244(0x211)],_0x4b310b[_0x476244(0x23b)],_0x4b310b[_0x476244(0x1ad)],_0x4b310b[_0x476244(0x20a)]);}),this[_0x38b159(0x247)]['on'](_0x38b159(0x127),(_0x10378c,_0x27ae71)=>{const _0x4085f7=_0x38b159;this[_0x4085f7(0x14e)][_0x4085f7(0x1b2)](_0x27ae71[_0x4085f7(0x211)],_0x27ae71[_0x4085f7(0x193)],_0x27ae71[_0x4085f7(0x15d)]);}),this[_0x38b159(0x247)]['on'](_0x38b159(0x11b),(_0x5a94b4,_0x296205)=>{const _0x37eebd=_0x38b159;this[_0x37eebd(0x14e)][_0x37eebd(0x1a2)](_0x296205);}),this[_0x38b159(0x247)]['on'](_0x38b159(0x166),(_0x3504a7,_0x2851ac)=>{const _0x1959b5=_0x38b159;this[_0x1959b5(0x14e)][_0x1959b5(0x1ae)](_0x2851ac[_0x1959b5(0x216)],_0x2851ac[_0x1959b5(0x177)]);}),this[_0x38b159(0x247)]['on'](_0x38b159(0x226),(_0x412528,{error:_0x38c127,interactionId:_0x558d4f,fileName:_0x57bbca,url:_0x3e13b6,sourceId:_0x3ba300,sourceLabel:_0x3bd018})=>{const _0x47cddb=_0x38b159,_0xf0b54b=_0x558d4f?_0x558d4f+':'+_0xa18360():_0xa18360();_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x256))?this[_0x47cddb(0x14e)][_0x47cddb(0x111)]({'staticMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0x1b8)),'id':_0xf0b54b}):_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x180))||_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x163))?(this[_0x47cddb(0x14e)][_0x47cddb(0x1bc)]({'errorMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0x249)),'id':_0xf0b54b}),this[_0x47cddb(0x148)](_0x38c127)):_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x250))?this[_0x47cddb(0x14e)][_0x47cddb(0x1bc)]({'errorMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0x21d),_0x57bbca),'id':_0xf0b54b}):_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x1fd))?this[_0x47cddb(0x14e)][_0x47cddb(0x1bc)]({'errorMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0x213),_0x3e13b6),'id':_0xf0b54b}):_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x236))?this[_0x47cddb(0x14e)][_0x47cddb(0x1bc)]({'errorMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0x19f)),'id':_0xf0b54b}):_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x24a))?this[_0x47cddb(0x14e)][_0x47cddb(0x1bc)]({'errorMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0x105)),'id':_0xf0b54b}):_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x118))?(_0x3ba300&&this[_0x47cddb(0x14e)][_0x47cddb(0x220)](_0x3ba300),this[_0x47cddb(0x14e)][_0x47cddb(0x1bc)]({'errorMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0x10d),_0x3bd018||_0x47cddb(0x23b)),'id':_0xf0b54b}),this[_0x47cddb(0x148)](_0x38c127)):_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x1d3))?(this[_0x47cddb(0x14e)][_0x47cddb(0x1bc)]({'errorMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0x13a)),'id':_0xf0b54b}),this[_0x47cddb(0x148)](_0x38c127)):_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x184))?(this[_0x47cddb(0x14e)][_0x47cddb(0x1bc)]({'errorMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0xf7)),'id':_0xf0b54b}),this[_0x47cddb(0x148)](_0x38c127)):_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x116))?(this[_0x47cddb(0x14e)][_0x47cddb(0x1bc)]({'errorMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0x1cd)),'id':_0xf0b54b}),this[_0x47cddb(0x148)](_0x38c127)):_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x1f4))?(this[_0x47cddb(0x14e)][_0x47cddb(0x1bc)]({'errorMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0x169)),'id':_0xf0b54b}),this[_0x47cddb(0x148)](_0x38c127)):_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x221))?(this[_0x47cddb(0x14e)][_0x47cddb(0x1bc)]({'errorMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0x23c)),'id':_0xf0b54b}),this[_0x47cddb(0x148)](_0x38c127)):_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x1b0))?(this[_0x47cddb(0x14e)][_0x47cddb(0x1bc)]({'errorMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0x143)),'id':_0xf0b54b}),this[_0x47cddb(0x148)](_0x38c127)):(this[_0x47cddb(0x14e)][_0x47cddb(0x1bc)]({'errorMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0x14b)),'id':_0xf0b54b}),this[_0x47cddb(0x148)](_0x38c127));}),await this[_0x38b159(0x247)][_0x38b159(0x119)](this[_0x38b159(0x1d6)][_0x38b159(0x22c)][_0x38b159(0x21e)](_0x38b159(0x1af))),_0x3212a3||await this[_0x38b159(0x247)][_0x38b159(0x1dc)]();}async[_0x8c2602(0x18e)]({userMessage:_0x10c039,quickActionData:_0x449486}){const _0x5c7e63=_0x8c2602;if(!this[_0x5c7e63(0x247)])throw new _0x2a84dd(_0x5c7e63(0x1ba));this[_0x5c7e63(0x247)][_0x5c7e63(0x251)]()&&await this[_0x5c7e63(0x247)][_0x5c7e63(0x170)](this[_0x5c7e63(0x189)][_0x5c7e63(0x20e)]()),this[_0x5c7e63(0x247)]['id']&&this[_0x5c7e63(0x247)][_0x5c7e63(0x12e)]&&await this[_0x5c7e63(0x247)][_0x5c7e63(0x130)]({'userMessage':_0x10c039,'quickActionData':_0x449486}),this[_0x5c7e63(0x21b)]();}[_0x8c2602(0x21b)](){const _0x312d9c=_0x8c2602,_0x1691e3=_0x3fa301(this[_0x312d9c(0x1d6)])[_0x312d9c(0x1a8)],_0x22c07c=Array[_0x312d9c(0x123)](_0x1691e3[_0x312d9c(0x1a3)][_0x312d9c(0x219)](_0x189cfc));_0x1691e3[_0x312d9c(0x1b3)](_0x31185c=>{const _0x23555f=_0x312d9c;_0x22c07c[_0x23555f(0x231)](_0x5412f8=>_0x31185c[_0x23555f(0x17a)](_0x5412f8));});}[_0x8c2602(0x25e)](){const _0x16d1f0=_0x8c2602;console[_0x16d1f0(0x15f)](_0x16d1f0(0x110));}[_0x8c2602(0x1c8)](_0xe99205){const _0x26f163=_0x8c2602;this[_0x26f163(0x14e)][_0x26f163(0x244)](_0xe99205);}[_0x8c2602(0x148)](_0x45d9f1){const _0x5d4976=_0x8c2602;_0x2d378d(_0x45d9f1[_0x5d4976(0x142)]);}[_0x8c2602(0x208)](_0x4e8fd2){const _0x2acbdd=_0x8c2602;this[_0x2acbdd(0x247)]?.[_0x2acbdd(0x237)](_0x4e8fd2);}[_0x8c2602(0x108)](){const _0x5d6687=_0x8c2602;this[_0x5d6687(0x247)]?.[_0x5d6687(0x215)]();}[_0x8c2602(0x101)](){const _0x56c592=_0x8c2602;this[_0x56c592(0x247)]?.[_0x56c592(0x173)]();}[_0x8c2602(0x106)](_0x1ebe7a){const _0x4221cc=_0x8c2602,[_0x1cedc9,_0x31ed85]=_0x1ebe7a[_0x4221cc(0x15c)](':'),_0x28d0b7=this[_0x4221cc(0x247)][_0x4221cc(0x183)](_0x1cedc9),_0x55b438=_0x28d0b7[_0x4221cc(0x258)](_0x31ed85);return{'interaction':_0x28d0b7,'reply':_0x55b438};}[_0x8c2602(0x1bf)](_0x4e6e6b,_0xb9f9a2=!0x1){const _0x17c0b9=_0x8c2602,_0x52279f=_0x3fa301(this[_0x17c0b9(0x1d6)]),_0x447a6a={'target':_0x52279f[_0x17c0b9(0x1e3)][_0x17c0b9(0x1bd)][_0x17c0b9(0x1ac)][_0x17c0b9(0x260)](_0x52279f[_0x17c0b9(0x1e3)][_0x17c0b9(0x16d)][_0x17c0b9(0x1f7)](_0x4e6e6b)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0xb9f9a2};_0xb9f9a2&&(_0x447a6a[_0x17c0b9(0x154)]=!0x0),_0x5de7b5(_0x447a6a);}[_0x8c2602(0x195)](_0x1b9ba4,_0xb1a2a5=!0x1){const _0xe865d5=_0x8c2602;this[_0xe865d5(0x14e)][_0xe865d5(0x1d4)](_0x1b9ba4||_0x3092a6(this[_0xe865d5(0x1d6)][_0xe865d5(0x117)],_0xe865d5(0x1db)),_0xb1a2a5);}async[_0x8c2602(0x22b)]({reply:_0x165618,renderingStrategy:_0x48e0e9}){const _0x5586ba=_0x8c2602,{id:_0x45952b,isDone:_0x16122e,type:_0x3cbd29,parsedContent:_0x1add5f}=_0x165618;if(_0x5586ba(0x175)===_0x3cbd29){const _0x3f8bd3=_0x165618[_0x5586ba(0x112)]({'showDiff':this[_0x5586ba(0x14e)][_0x5586ba(0x158)]});await this[_0x5586ba(0x14e)][_0x5586ba(0x24c)]({'id':_0x45952b,'parts':_0x3f8bd3,'renderingStrategy':_0x48e0e9,'isDone':_0x16122e});}else _0x5586ba(0x179)===_0x3cbd29&&await this[_0x5586ba(0x14e)][_0x5586ba(0x15e)]({'id':_0x45952b,'parsedContent':_0x1add5f,'renderingStrategy':_0x48e0e9,'isDone':_0x16122e});_0x16122e&&_0x165618[_0x5586ba(0x17b)][_0x5586ba(0x225)]>0x0&&this[_0x5586ba(0x14e)][_0x5586ba(0x210)](_0x45952b,_0x165618[_0x5586ba(0x17b)]);}async[_0x8c2602(0x230)](){const _0xe30f1b=_0x8c2602,_0x312003=this[_0xe30f1b(0x247)]?.[_0xe30f1b(0x1be)];_0x312003&&(_0x312003[_0xe30f1b(0x194)](),this[_0xe30f1b(0x14e)][_0xe30f1b(0x198)](_0x312003));}async[_0x8c2602(0x20d)](){const _0x242ec7=_0x8c2602,_0xfe1aa2=this[_0x242ec7(0x247)]?.[_0x242ec7(0x1be)];if(_0xfe1aa2){for await(const _0x39761f of _0xfe1aa2[_0x242ec7(0x13c)])await this[_0x242ec7(0x22b)]({'reply':_0x39761f,'renderingStrategy':_0x242ec7(0x24d)});}}[_0x8c2602(0x200)](_0x5049cb){const _0x670bcc=_0x8c2602,_0x7eb812={'positiveCount':_0x5049cb[_0x670bcc(0x25f)][_0x670bcc(0x171)](_0x32f303=>_0x670bcc(0x203)===_0x32f303[_0x670bcc(0xff)])[_0x670bcc(0x225)],'totalCount':_0x5049cb[_0x670bcc(0x25f)][_0x670bcc(0x225)],'modificationId':_0x5049cb['id']},_0x253595=this[_0x670bcc(0x247)][_0x670bcc(0x183)](_0x5049cb[_0x670bcc(0x218)])[_0x670bcc(0x165)];this[_0x670bcc(0x1d9)][_0x670bcc(0x126)](this[_0x670bcc(0x247)]['id'],_0x253595,_0x7eb812);}}
23
+ const _0x210fe3=_0x1c4e;(function(_0xfd18c8,_0x1b2323){const _0x151a91=_0x1c4e,_0x1b1735=_0xfd18c8();while(!![]){try{const _0x31ccfa=parseInt(_0x151a91(0x1f9))/0x1*(-parseInt(_0x151a91(0x19a))/0x2)+parseInt(_0x151a91(0x268))/0x3*(parseInt(_0x151a91(0x294))/0x4)+parseInt(_0x151a91(0x1d9))/0x5+parseInt(_0x151a91(0x1b2))/0x6+parseInt(_0x151a91(0x21d))/0x7+parseInt(_0x151a91(0x131))/0x8*(parseInt(_0x151a91(0x1c7))/0x9)+parseInt(_0x151a91(0x204))/0xa*(-parseInt(_0x151a91(0x24c))/0xb);if(_0x31ccfa===_0x1b2323)break;else _0x1b1735['push'](_0x1b1735['shift']());}catch(_0x5ca91a){_0x1b1735['push'](_0x1b1735['shift']());}}}(_0x4599,0xb3dfe));function _0x4599(){const _0x2fecd7=['getFirstRange','attachToDom','replyChangeGroupStateUpdated','10AbNIBE','indexOf','source','unshift','isUploadInProgress','close','startsWith','AI_BALLOON_HEADER_TITLE','removed','change','activateTab','locale','_bodyCollection','webSearchFinished','resetConversationTitle','addFeedItemAIReply','createPositionAt','AI_CHAT_CONTEXT_INVALID_DATA','load','ai-chat-conversation-not-found','setLoadingMessage','_getDocumentRangeForReplyChanges','applySuggestion','getMarkersGroup','_batchToChanges','10091697jzljEg','populateSourceResourceBalloon','index','length','children','ai.chat.models.displayedModels','$root','ai-chat-context-form-data-size-limits-exceeded','toggleLoadingSkeleton','streaming','_flushLastInteractionUI','model','content','contextSent','replies','addSelectionToChatContext','ai-chat-context-file-too-large','Liked\x20response','setFeedItemRenderingStrategy','forEach','getInteraction','addFileToContext','log','addResourceToContext','_updateRatings','batch','uploadProgressChanged','outdated','afterInit','addFeedItemAISuggestion','AI_CHAT_ABORTED_MESSAGE','push','_startConversationSafely','$graveyard','_aiChatModels','error','AIChatUI','_handleStartConversation','AI_CHAT_CONTEXT_FILE_TOO_LARGE','insertSuggestion','delete','isInContext','getPath','redo','ai.chat.models.defaultModelId','messageId','ai-chat-invalid-request','31190555Fcwhsp','rootName','resizedTabs','options','ai.availableReplyActions','showChangeInText','loadSourceResources','ai-no-track-changes','AIConnector','full','_insertSuggestion','changes','chat','ready','interactionDestroyed','rejected','updateFeedItemAIReplySuggestionPartState','requires','focusPromptInput','interactionFinished','getContentParts','disableControls','AIEditing','scrollFeedToSuggestion','selection','loadConversation','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','sourceResourcesLoaded','542673SoAjLZ','node','map','contextItemRemoved','getDiff','selectModel','removeSelectionFromContext','removeContextItem','plugins','domConverter','interactionCreated','interactionStarted','ai-chat-conversation-init-failed','isCurrentDocumentInContext','addUrlToContext','ai-chat-missing-channel-id','documentContextContent','_removeAISelectionMarkers','resizeTabs','context','find','start','replyContentUpdated','data','ai-chat-context-file-too-many-pages','rejectSuggestion','ai-chat-url-upload-failed','_handleUIUserMessage','reasoningStarted','removeFromContext','activeConversation','_balloonShowDiff','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','showFakeVisualSelection','open','_applySuggestion','stopListening','marker','_toggleWebSearch','_createFromRanges','setConversationContext','isOfficialPlugin','sourceId','setModel','4omHync','isOpen','message','TrackChanges','changeGroups','new','updateFeedItemAIReplySuggestionContent','static','ai-chat-context-unsupported-type','addFeedInteractionHeader','uid','contextItem','handleRemovedConversation','init','type','8hEHxCt','setIsMaximized','modelSelected','handleUserInteraction','startInteraction','getInteractionAndReplyById','revert','state','setIsUploadInProgress','text-delta','nextSibling','toViewRange','updateContent','cloneNode','resize','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','contextItemAdded','query','end','addContextItem','alignToTop','showNext','resetMessageInput','_removeFromContext','sources','getSelectionText','_applyOperationsAsSuggestions','addOperation','listenTo','ai.chat.context','isCurrentDocumentInConversation','baseVersion','isPremiumPlugin','editing','ai-chat-controller-no-active-conversation','capabilitiesUpdated','indexes','getOperations','add','destroy','getConversation','updateCapabilities','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','findIndex','hasChanges','upsertAIChatRating','setConversationTitle','interactionId','startConversation','config','setAddContextOptions','addDocumentToContext','reasoningFinished','pending','AI_CHAT_INVALID_REQUEST','Undo','view','mouseOverSuggestion','ai-chat-file-upload-failed','addSelectionToContext','commands','enableControls','ai-chat-conversation-start-failed','replyCreated','isLoading','get','removeSelectionFromChatContext','addCurrentDocumentToContext','partIndex','stopInteraction','undo','main','remove','updateResourceState','_stopLastInteraction','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','setContextItemLoading','markers','contextItems','range','hideFakeVisualSelection','Showing\x20conversation\x20history...','editors','AITabs','accepted','data-id','uiId','_aiConnector','Disliked\x20response','maxOffset','toString','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','like','removeMarker','isStarted','toggleReasoning','clearPendingContextUI','split','addContextOptionsChanged','addFilesToContext','current-document','abortPromptStream','toggleSuggestionDisplayMode','AI_CHAT_UNABLE_TO_START_CONVERSATION','updateConversationTitle','129820pYpiwR','TrackChangesEditing','getReply','getDocumentContext','viewRangeToDom','stop','applyOperation','AI_CHAT_UNTITLED_CONVERSATION','fetchConversation','pluginName','_logError','howMany','_previewedChangeGroup','getAttribute','selectedModel','from','sourcePosition','setChangeGroupState','ai-request-aborted','toggleWebSearch','updateFeedItemAIReplyContent','ai-chat-controller-mouse-over','parse','getTransformedByOperation','2850342BunZQX','version','createPositionFromPath','contextItemLoadingEnded','addFeedItemUserMessage','history','anchorId','isDocumentOperation','dialogClosed','collaboration.channelId','dislike','getChild','closeSourceResourceBalloon','ai-chat-context-unsupported-file-type','_setIsMaximized','removeFeedInteraction','resources','root','_openBalloonFor','webSearchStarted','addFeedItemStaticMessage','10024488XvkOxm','sendUserMessage','set','ai-conversation-','createConversation','_scrollToSuggestionRange','getRoot','getChildAtOffset','updateFeedItemAIReplySources','setSelectedModel','_aiChatUi','ai-chat-resource-load-failed','path','mapper','modification-delta','AI_CHAT_GENERIC_ERROR','getRanges','detachFromDom','6996900VBzcRD','startAutoScroll','mouseLeaveSuggestion','createRange','isDisabled','AIChatController','resourceStateChanged','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_aiEditing','lastInteraction','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','_showConversationHistory','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','getGroupId','DocumentCompare','has','clearConversationContextUI','conversationInitialized','filter','replyId','updateCurrentDocumentInContext','_toggleReasoning','_integrateEditor','isModelAvailable','document','AI_CHAT_RESOURCE_LOAD_FAILED','addFeedItemError','getDocumentData','slice','showPrevious','ai-chat-context-invalid-data','getChildren','16hTwmbm','ai-chat-source-resources-load-failed','resource','_updateReplyContent','finishInteraction','sendMessage','showDiff','resourceId'];_0x4599=function(){return _0x2fecd7;};return _0x4599();}import{ContextPlugin as _0x23d569,Editor as _0x3f2965}from'ckeditor5/src/core.js';import{BodyCollection as _0x57fe4d}from'ckeditor5/src/ui.js';import{CKEditorError as _0x37f91a,logError as _0x142f79,scrollViewportToShowTarget as _0x1f314a,uid as _0x392c34}from'ckeditor5/src/utils.js';import{AIConnector as _0x3384b8}from'../aicore/aiconnector.js';import{AITabs as _0x52fc81}from'../aitabs/aitabs.js';import{AIChatConversation as _0x504764}from'./model/aichatconversation.js';import{getTranslation as _0x565b7e}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x1c0281}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x54ab55}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIModels as _0x302020}from'../aicore/model/aimodels.js';function _0x1c4e(_0x2956ad,_0xa99eac){const _0x459926=_0x4599();return _0x1c4e=function(_0x1c4e3a,_0x3170c7){_0x1c4e3a=_0x1c4e3a-0x131;let _0xdf71b3=_0x459926[_0x1c4e3a];return _0xdf71b3;},_0x1c4e(_0x2956ad,_0xa99eac);}import{getEditorFromContext as _0x471cc3}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x1babb5,DATA_ID_MODEL_ATTRIBUTE as _0xb93237}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x59ed75,getOperationsFromReply as _0x5e8dce}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x152571,getMinimalSelection as _0x379857}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x59a3c3,_DetachOperation as _0x2b55d7}from'ckeditor5/src/engine.js';import{findOne as _0x30f55b,getAttribute as _0x140ed5,serialize as _0x3504af,Document as _0x3695c9,findByAttribute as _0x4fff82}from'../aicore/utils/htmlparser.js';import{IconAI as _0x3b812a}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x222a45}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0xcbcbb3}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x23d569{[_0x210fe3(0x1e1)];[_0x210fe3(0x188)];[_0x210fe3(0x1d1)];[_0x210fe3(0x23f)];[_0x210fe3(0x21c)]=new Map();[_0x210fe3(0x1a6)]=null;[_0x210fe3(0x287)]=!0x1;[_0x210fe3(0x210)];static get[_0x210fe3(0x25d)](){return[_0x3384b8,_0xcbcbb3,_0x1babb5];}static get[_0x210fe3(0x1a3)](){const _0x41c3b2=_0x210fe3;return _0x41c3b2(0x1de);}static get[_0x210fe3(0x291)](){return!0x0;}static get[_0x210fe3(0x151)](){return!0x0;}[_0x210fe3(0x2a1)](){const _0x360d50=_0x210fe3;this[_0x360d50(0x210)]=new _0x57fe4d(this[_0x360d50(0x27b)][_0x360d50(0x20f)]),this[_0x360d50(0x210)][_0x360d50(0x202)](),this[_0x360d50(0x188)]=this[_0x360d50(0x27b)][_0x360d50(0x270)][_0x360d50(0x172)](_0x360d50(0x254)),this[_0x360d50(0x1d1)]=this[_0x360d50(0x27b)][_0x360d50(0x270)][_0x360d50(0x172)](_0x360d50(0x241)),this[_0x360d50(0x1e1)]=this[_0x360d50(0x27b)][_0x360d50(0x270)][_0x360d50(0x172)](_0x360d50(0x262)),this[_0x360d50(0x23f)]=new _0x302020({'connector':this[_0x360d50(0x188)],'availableModels':this[_0x360d50(0x27b)][_0x360d50(0x162)][_0x360d50(0x172)](_0x360d50(0x222)),'defaultModelId':this[_0x360d50(0x27b)][_0x360d50(0x162)][_0x360d50(0x172)](_0x360d50(0x249)),'locale':this[_0x360d50(0x27b)][_0x360d50(0x20f)]});const _0x4f6952=this[_0x360d50(0x27b)][_0x360d50(0x270)][_0x360d50(0x172)](_0x360d50(0x184));this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x161),()=>{const _0x1dfb44=_0x360d50;this[_0x1dfb44(0x23d)]();}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x1c8),(_0x1f3658,_0x3ee1a5)=>{const _0x190249=_0x360d50;this[_0x190249(0x283)]({'userMessage':_0x3ee1a5});}),this[_0x360d50(0x14d)](_0x4f6952,_0x360d50(0x24e),(_0x42988e,_0x65eca7)=>{const _0x5e7e8c=_0x360d50;this[_0x5e7e8c(0x1c0)](_0x65eca7);}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x27a),()=>{const _0x392c41=_0x360d50;_0x4f6952[_0x392c41(0x13f)]();}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x196),async()=>{const _0xb2299a=_0x360d50;await this[_0xb2299a(0x17b)](),await this[_0xb2299a(0x227)](),this[_0xb2299a(0x173)]();}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x164),()=>{const _0x571233=_0x360d50;this[_0x571233(0x286)]?.[_0x571233(0x174)](_0x565b7e(this[_0x571233(0x27b)][_0x571233(0x20f)],_0x571233(0x1e0)));}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x232),(_0x945dfd,_0x3b1e71)=>{const _0x23475c=_0x360d50;this[_0x23475c(0x286)]?.[_0x23475c(0x194)](Array[_0x23475c(0x1a9)](_0x3b1e71));}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x276),(_0x3cb159,_0x4d8ec4)=>{const _0x1b348c=_0x360d50;this[_0x1b348c(0x286)]?.[_0x1b348c(0x276)](_0x4d8ec4);}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x234),(_0x5802c7,_0x44c1b9)=>{const _0x6d5c73=_0x360d50;this[_0x6d5c73(0x286)]?.[_0x6d5c73(0x234)](_0x44c1b9[_0x6d5c73(0x206)],_0x44c1b9[_0x6d5c73(0x1fb)]);}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x26f),(_0x48ca53,_0x41803e)=>{const _0x363f29=_0x360d50;this[_0x363f29(0x148)](_0x41803e);}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x252),(_0x200318,_0x17f9ae)=>{const _0x47a4be=_0x360d50;this[_0x47a4be(0x286)]?.[_0x47a4be(0x252)](_0x17f9ae[_0x47a4be(0x292)],_0x17f9ae[_0x47a4be(0x142)],_0x17f9ae[_0x47a4be(0x29e)]);}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x1ad),()=>{const _0x2d2547=_0x360d50;this[_0x2d2547(0x28e)]();}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x190),()=>{const _0x5e4597=_0x360d50;this[_0x5e4597(0x1ee)]();}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x26d),(_0x3da7e8,_0x2b4505)=>{const _0x5d0759=_0x360d50;this[_0x5d0759(0x286)]?.[_0x5d0759(0x293)](_0x2b4505);}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x18d),(_0x33f426,{replyId:_0x585ad0})=>{const _0x5abf67=_0x360d50;console[_0x5abf67(0x233)](_0x5abf67(0x22e),_0x585ad0);}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x1bc),(_0x4501d2,{replyId:_0x57b3d})=>{const _0x1fa090=_0x360d50;console[_0x1fa090(0x233)](_0x1fa090(0x189),_0x57b3d);}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x244),(_0x260452,_0x5c6049)=>{const _0x5560f5=_0x360d50;this[_0x5560f5(0x27b)][_0x5560f5(0x270)][_0x5560f5(0x172)](_0xcbcbb3)[_0x5560f5(0x209)](),this[_0x5560f5(0x256)](_0x5c6049);}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x251),(_0x31d86b,{replyId:_0x286d93,partIndex:_0x5144e5})=>{const _0x34d159=_0x360d50;this[_0x34d159(0x287)]=this[_0x34d159(0x1d1)][_0x34d159(0x1ff)],this[_0x34d159(0x1c4)](_0x286d93,_0x5144e5);}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x16a),(_0x280858,{replyId:_0x3cbc99,partIndex:_0x162626})=>{const _0x2ebd0e=_0x360d50,_0x56ba16=this[_0x2ebd0e(0x219)](_0x3cbc99,_0x162626);_0x56ba16&&_0x2ebd0e(0x23e)!=_0x56ba16[_0x2ebd0e(0x180)][_0x2ebd0e(0x1c3)][_0x2ebd0e(0x24d)]&&this[_0x2ebd0e(0x1e1)][_0x2ebd0e(0x289)]([_0x56ba16[_0x2ebd0e(0x180)]],_0x2ebd0e(0x1af));}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x1db),()=>{const _0x1b34f9=_0x360d50;this[_0x1b34f9(0x1e1)][_0x1b34f9(0x181)](_0x1b34f9(0x1af));}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x21a),(_0x531c7d,_0x33ddb3)=>{const _0x104d26=_0x360d50;this[_0x104d26(0x27b)][_0x104d26(0x270)][_0x104d26(0x172)](_0xcbcbb3)[_0x104d26(0x209)](),this[_0x104d26(0x28b)](_0x33ddb3);}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x197),async(_0x5cd5c2,{replyId:_0x219a5d,showDiff:_0xfd42a8})=>{const _0x18676f=_0x360d50,{reply:_0xf7eaa2}=this[_0x18676f(0x136)](_0x219a5d),_0x8836d5=_0xf7eaa2[_0x18676f(0x260)]({'showDiff':_0xfd42a8});await this[_0x18676f(0x1d1)][_0x18676f(0x29a)]({'id':_0xf7eaa2['id'],'parts':_0x8836d5,'renderingStrategy':_0x18676f(0x29b)});}),this[_0x360d50(0x14d)](this[_0x360d50(0x1d1)],_0x360d50(0x281),(_0x354a0,{replyId:_0x400446,partIndex:_0x1f9cc2})=>{const _0x7bb879=_0x360d50;this[_0x7bb879(0x1a6)]?.[_0x7bb879(0x1ec)]==_0x400446&&this[_0x7bb879(0x1a6)]?.[_0x7bb879(0x175)]==_0x1f9cc2&&this[_0x7bb879(0x27b)][_0x7bb879(0x270)][_0x7bb879(0x172)](_0xcbcbb3)[_0x7bb879(0x209)]();const {reply:_0x4da814}=this[_0x7bb879(0x136)](_0x400446);_0x4da814[_0x7bb879(0x1ab)](_0x1f9cc2,_0x7bb879(0x25b)),this[_0x7bb879(0x1e1)][_0x7bb879(0x181)](_0x7bb879(0x1af));});}async[_0x210fe3(0x239)](){const _0x3c5c80=_0x210fe3;this[_0x3c5c80(0x27b)]instanceof _0x3f2965?this[_0x3c5c80(0x1ef)](this[_0x3c5c80(0x27b)]):this[_0x3c5c80(0x14d)](this[_0x3c5c80(0x27b)][_0x3c5c80(0x183)],_0x3c5c80(0x157),(_0x48cb25,_0x142311)=>{const _0xd18366=_0x3c5c80;_0x142311['on'](_0xd18366(0x259),()=>{const _0x5c4239=_0xd18366;this[_0x5c4239(0x1ef)](_0x142311);});}),await this[_0x3c5c80(0x23d)]();}[_0x210fe3(0x158)](){const _0x199fb1=_0x210fe3;this[_0x199fb1(0x210)][_0x199fb1(0x1d8)](),super[_0x199fb1(0x158)]();}[_0x210fe3(0x256)](_0x44180f){const _0x5e3e57=_0x210fe3,_0x15a11a=_0x471cc3(this[_0x5e3e57(0x27b)]);if(!_0x15a11a[_0x5e3e57(0x270)][_0x5e3e57(0x1e8)](_0x5e3e57(0x297)))throw new _0x37f91a(_0x5e3e57(0x253),null);const _0x31d15c=this[_0x5e3e57(0x27b)][_0x5e3e57(0x270)][_0x5e3e57(0x172)](_0x5e3e57(0x1e7)),{reply:_0x16adbf,interaction:_0x165827}=this[_0x5e3e57(0x136)](_0x44180f[_0x5e3e57(0x1ec)]),_0x4ef466=this[_0x5e3e57(0x219)](_0x44180f[_0x5e3e57(0x1ec)],_0x44180f[_0x5e3e57(0x175)]),_0x4bacad=void 0x0!==_0x44180f[_0x5e3e57(0x175)]?[_0x16adbf[_0x5e3e57(0x298)][_0x44180f[_0x5e3e57(0x175)]]]:_0x16adbf[_0x5e3e57(0x298)][_0x5e3e57(0x1eb)](_0x45c1b6=>_0x5e3e57(0x166)==_0x45c1b6[_0x5e3e57(0x138)]),_0x42143a=_0x4bacad[_0x5e3e57(0x26a)](_0x422d7f=>_0x16adbf[_0x5e3e57(0x298)][_0x5e3e57(0x205)](_0x422d7f));if(!_0x4ef466||_0x5e3e57(0x23e)==_0x4ef466[_0x5e3e57(0x180)][_0x5e3e57(0x1c3)][_0x5e3e57(0x24d)])return void _0x42143a[_0x5e3e57(0x230)](_0x295db1=>_0x16adbf[_0x5e3e57(0x1ab)](_0x295db1,_0x5e3e57(0x238)));_0x42143a[_0x5e3e57(0x230)](_0x240c54=>_0x16adbf[_0x5e3e57(0x1ab)](_0x240c54,_0x5e3e57(0x185)));const _0x3c03fc=_0x5e8dce({'editor':_0x15a11a,'reply':_0x16adbf,'interaction':_0x165827,'groups':_0x4bacad,'transform':!0x0,'documentCompare':_0x31d15c,'documentCompareOptions':{'anchor':_0x5e3e57(0x178),'markDeletions':!0x0}});let _0x31a02d;_0x4ef466&&this[_0x5e3e57(0x1cc)](_0x4ef466[_0x5e3e57(0x180)]),_0x15a11a[_0x5e3e57(0x228)][_0x5e3e57(0x20d)](_0x4ed2d9=>{const _0x1afaee=_0x5e3e57;_0x31a02d=_0x4ed2d9[_0x1afaee(0x236)],_0x15a11a[_0x1afaee(0x270)][_0x1afaee(0x172)](_0x1afaee(0x19b))[_0x1afaee(0x14b)](_0x3c03fc),this[_0x1afaee(0x1e1)][_0x1afaee(0x181)](_0x1afaee(0x1af));}),this[_0x5e3e57(0x21c)][_0x5e3e57(0x1c9)](_0x31a02d,{'interactionId':_0x165827['id'],'replyId':_0x16adbf['id'],'indexes':_0x42143a[_0x5e3e57(0x1f5)]()}),this[_0x5e3e57(0x235)](_0x16adbf);}[_0x210fe3(0x28b)](_0x3e2b06){const _0x304080=_0x210fe3,_0x725de9=_0x471cc3(this[_0x304080(0x27b)]),_0x7f4ffa=this[_0x304080(0x27b)][_0x304080(0x270)][_0x304080(0x172)](_0x1babb5),{reply:_0x4c664e,interaction:_0x321374}=this[_0x304080(0x136)](_0x3e2b06[_0x304080(0x1ec)]),_0x2375f1=this[_0x304080(0x219)](_0x3e2b06[_0x304080(0x1ec)],_0x3e2b06[_0x304080(0x175)]),_0x2905f3=void 0x0!==_0x3e2b06[_0x304080(0x175)]?[_0x4c664e[_0x304080(0x298)][_0x3e2b06[_0x304080(0x175)]]]:_0x4c664e[_0x304080(0x298)][_0x304080(0x1eb)](_0x1684d7=>_0x304080(0x166)==_0x1684d7[_0x304080(0x138)]),_0x52ba7a=_0x2905f3[_0x304080(0x26a)](_0x2e1949=>_0x4c664e[_0x304080(0x298)][_0x304080(0x205)](_0x2e1949));if(!_0x2375f1||_0x304080(0x23e)==_0x2375f1[_0x304080(0x180)][_0x304080(0x1c3)][_0x304080(0x24d)])return void _0x52ba7a[_0x304080(0x230)](_0x1de4be=>_0x4c664e[_0x304080(0x1ab)](_0x1de4be,_0x304080(0x238)));_0x52ba7a[_0x304080(0x230)](_0xe797b4=>_0x4c664e[_0x304080(0x1ab)](_0xe797b4,_0x304080(0x185)));const _0x1da2b9=_0x5e8dce({'editor':_0x725de9,'reply':_0x4c664e,'interaction':_0x321374,'groups':_0x2905f3,'transform':!0x0,'documentCompare':_0x7f4ffa,'documentCompareOptions':{'anchor':_0x304080(0x178),'markDeletions':!0x1}});let _0x2d341c;_0x2375f1&&this[_0x304080(0x1cc)](_0x2375f1[_0x304080(0x180)]),_0x725de9[_0x304080(0x228)][_0x304080(0x20d)](_0x4d82ba=>{const _0x138fe8=_0x304080;_0x2d341c=_0x4d82ba[_0x138fe8(0x236)];for(const _0x3384cd of _0x1da2b9)_0x3384cd[_0x138fe8(0x150)]=_0x725de9[_0x138fe8(0x228)][_0x138fe8(0x1f1)][_0x138fe8(0x1b3)],_0x59ed75(_0x725de9,_0x3384cd),_0x4d82ba[_0x138fe8(0x236)][_0x138fe8(0x14c)](_0x3384cd),_0x725de9[_0x138fe8(0x228)][_0x138fe8(0x1a0)](_0x3384cd);}),this[_0x304080(0x21c)][_0x304080(0x1c9)](_0x2d341c,{'interactionId':_0x321374['id'],'replyId':_0x4c664e['id'],'indexes':_0x52ba7a[_0x304080(0x1f5)]()}),this[_0x304080(0x235)](_0x4c664e);}[_0x210fe3(0x1c4)](_0x223034,_0x4d9719){const _0x7847e3=_0x210fe3,_0x4f1356=_0x471cc3(this[_0x7847e3(0x27b)]),_0x80b936=this[_0x7847e3(0x219)](_0x223034,_0x4d9719),_0xf46b79=this[_0x7847e3(0x27b)][_0x7847e3(0x270)][_0x7847e3(0x172)](_0xcbcbb3);if(!_0x80b936)return void _0xf46b79[_0x7847e3(0x209)]();const {range:_0x49e7ff,currentIndex:_0x20579f}=_0x80b936;if(_0x7847e3(0x23e)==_0x49e7ff[_0x7847e3(0x1c3)][_0x7847e3(0x24d)]){const {reply:_0x5178e3}=this[_0x7847e3(0x136)](_0x223034);return _0x5178e3[_0x7847e3(0x1ab)](_0x20579f,_0x7847e3(0x238)),void _0xf46b79[_0x7847e3(0x209)]();}if(this[_0x7847e3(0x1a6)]?.[_0x7847e3(0x1ec)]==_0x223034&&this[_0x7847e3(0x1a6)]?.[_0x7847e3(0x175)]==_0x20579f)return;this[_0x7847e3(0x28c)](_0xf46b79),this[_0x7847e3(0x1a6)]={'replyId':_0x223034,'partIndex':_0x20579f};let _0x47be92=_0x4f1356[_0x7847e3(0x162)][_0x7847e3(0x172)](_0x7847e3(0x250))||[..._0x54ab55];_0x4f1356[_0x7847e3(0x270)][_0x7847e3(0x1e8)](_0x7847e3(0x297))||(_0x47be92=_0x47be92[_0x7847e3(0x1eb)](_0x2b4181=>_0x7847e3(0x244)!=_0x2b4181));const _0x384c97=new _0x222a45(_0x4f1356[_0x7847e3(0x20f)],{'showDiff':this[_0x7847e3(0x287)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x7847e3(0x255)},'hideHeader':!0x0,'availableActions':_0x47be92},this[_0x7847e3(0x210)]);this[_0x7847e3(0x28c)](_0x384c97);const {reply:_0x412538}=this[_0x7847e3(0x136)](_0x223034),_0x1f54b2=_0x412538[_0x7847e3(0x260)]({'showDiff':this[_0x7847e3(0x287)]})[_0x7847e3(0x1eb)](_0x19d350=>_0x19d350[_0x7847e3(0x15d)]),_0x2f603b=_0x1f54b2[_0x7847e3(0x15c)](_0x1e5a30=>_0x1e5a30[_0x7847e3(0x21f)]==_0x20579f);if(-0x1==_0x2f603b)return;const _0x19ae38=_0x1f54b2[_0x2f603b],_0x2e74d9=_0x1f54b2['at']((_0x2f603b-0x1)%_0x1f54b2[_0x7847e3(0x220)])?.[_0x7847e3(0x21f)],_0x30b1c3=_0x1f54b2['at']((_0x2f603b+0x1)%_0x1f54b2[_0x7847e3(0x220)])?.[_0x7847e3(0x21f)];_0x384c97[_0x7847e3(0x13d)]({'parts':[_0x19ae38],'renderingStrategy':_0x7847e3(0x29b)});const _0x20c4cc=_0x20579f!==_0x2e74d9;this[_0x7847e3(0x1cc)](_0x49e7ff,!0x0),_0xf46b79[_0x7847e3(0x28a)]({'index':_0x20579f,'title':_0x565b7e(this[_0x7847e3(0x27b)][_0x7847e3(0x20f)],_0x7847e3(0x20b),(_0x2f603b+0x1)[_0x7847e3(0x18b)]()),'icon':_0x3b812a,'mainView':_0x384c97,'showRotator':_0x20c4cc,'showApplyButton':!0x0,'showSuggestButton':_0x4f1356[_0x7847e3(0x270)][_0x7847e3(0x1e8)](_0x7847e3(0x297)),'ranges':[_0x49e7ff]}),this[_0x7847e3(0x1d1)][_0x7847e3(0x263)](_0x223034,_0x20579f),this[_0x7847e3(0x14d)](_0x384c97,_0x7847e3(0x197),(_0x20fb60,{showDiff:_0x2608dd})=>{const _0x453e4b=_0x7847e3;this[_0x453e4b(0x287)]=_0x2608dd;const {reply:_0x3b1d7b}=this[_0x453e4b(0x136)](_0x223034),_0xbfe4c6=_0x3b1d7b[_0x453e4b(0x260)]({'showDiff':_0x2608dd,'groupIndex':_0x20579f});_0x384c97[_0x453e4b(0x13d)]({'parts':_0xbfe4c6,'renderingStrategy':_0x453e4b(0x29b)});}),this[_0x7847e3(0x14d)](_0xf46b79,_0x7847e3(0x21a),()=>{const _0x2a5c9a=_0x7847e3;this[_0x2a5c9a(0x28b)]({'replyId':_0x223034,'partIndex':_0x20579f}),_0x20c4cc?this[_0x2a5c9a(0x1c4)](_0x223034,_0x30b1c3):_0xf46b79[_0x2a5c9a(0x209)]();}),this[_0x7847e3(0x14d)](_0xf46b79,_0x7847e3(0x244),()=>{const _0x293f8d=_0x7847e3;this[_0x293f8d(0x256)]({'replyId':_0x223034,'partIndex':_0x20579f}),_0x20c4cc?this[_0x293f8d(0x1c4)](_0x223034,_0x30b1c3):_0xf46b79[_0x293f8d(0x209)]();}),_0x20c4cc&&(this[_0x7847e3(0x14d)](_0xf46b79,_0x7847e3(0x146),()=>{const _0x3edcc8=_0x7847e3;this[_0x3edcc8(0x1c4)](_0x223034,_0x30b1c3);}),this[_0x7847e3(0x14d)](_0xf46b79,_0x7847e3(0x1f6),()=>{const _0x6a58fc=_0x7847e3;this[_0x6a58fc(0x1c4)](_0x223034,_0x2e74d9);})),this[_0x7847e3(0x14d)](_0xf46b79,_0x7847e3(0x1ba),()=>{const _0xee669=_0x7847e3;this[_0xee669(0x28c)](_0xf46b79),this[_0xee669(0x28c)](_0x384c97),this[_0xee669(0x1a6)]=null;});}[_0x210fe3(0x219)](_0x2365f7,_0x203dc2){const _0x53a1b3=_0x210fe3,_0x217a4a=_0x471cc3(this[_0x53a1b3(0x27b)]),{reply:_0x4a6e59,interaction:_0x47d1b1}=this[_0x53a1b3(0x136)](_0x2365f7),_0x3db31e=_0x4a6e59[_0x53a1b3(0x298)][_0x53a1b3(0x1eb)](_0x2bb95a=>_0x53a1b3(0x166)==_0x2bb95a[_0x53a1b3(0x138)]),_0x33818d=_0x3db31e[_0x53a1b3(0x26a)](_0x51f0d2=>_0x4a6e59[_0x53a1b3(0x298)][_0x53a1b3(0x205)](_0x51f0d2));void 0x0===_0x203dc2&&(_0x203dc2=_0x33818d[0x0]);const _0xd4517c=_0x33818d[_0x53a1b3(0x205)](_0x203dc2);if(-0x1==_0xd4517c)return null;const _0x55f1b4=_0x3db31e[_0xd4517c],_0x331da3=new _0x3695c9([]),_0xc90d7d=new _0x3695c9([]);for(const _0x436a03 of _0x55f1b4[_0x53a1b3(0x257)])if(_0x53a1b3(0x20c)!=_0x436a03[_0x53a1b3(0x2a2)]&&_0xc90d7d[_0x53a1b3(0x221)][_0x53a1b3(0x23c)](_0x436a03[_0x53a1b3(0x269)][_0x53a1b3(0x13e)](!0x0)),_0x53a1b3(0x299)!=_0x436a03[_0x53a1b3(0x2a2)]){const _0x464ea3=_0x30f55b(_0x38e73e=>_0x140ed5(_0x38e73e,_0x53a1b3(0x186))==_0x436a03['id'],_0x4a6e59[_0x53a1b3(0x278)],!0x0);_0x331da3[_0x53a1b3(0x221)][_0x53a1b3(0x23c)](_0x464ea3[_0x53a1b3(0x13e)](!0x0));}if(0x0==_0x331da3[_0x53a1b3(0x221)][_0x53a1b3(0x220)]){if(_0x55f1b4[_0x53a1b3(0x257)][0x0][_0x53a1b3(0x1b8)]){const _0xa3b67a=_0x4fff82(_0x53a1b3(0x186),_0x55f1b4[_0x53a1b3(0x257)][0x0][_0x53a1b3(0x1b8)],_0x4a6e59[_0x53a1b3(0x278)]);_0x331da3[_0x53a1b3(0x221)][_0x53a1b3(0x207)](_0xa3b67a[_0x53a1b3(0x13e)](!0x0)),_0xc90d7d[_0x53a1b3(0x221)][_0x53a1b3(0x207)](_0xa3b67a[_0x53a1b3(0x13e)](!0x0)),_0xa3b67a[_0x53a1b3(0x13b)]&&(_0x331da3[_0x53a1b3(0x221)][_0x53a1b3(0x23c)](_0xa3b67a[_0x53a1b3(0x13b)][_0x53a1b3(0x13e)](!0x0)),_0xc90d7d[_0x53a1b3(0x221)][_0x53a1b3(0x23c)](_0xa3b67a[_0x53a1b3(0x13b)][_0x53a1b3(0x13e)](!0x0)));}else{const _0x262877=_0x4a6e59[_0x53a1b3(0x278)][_0x53a1b3(0x221)][0x0];if(!_0x262877)return null;_0x331da3[_0x53a1b3(0x221)][_0x53a1b3(0x23c)](_0x262877[_0x53a1b3(0x13e)](!0x0)),_0xc90d7d[_0x53a1b3(0x221)][_0x53a1b3(0x23c)](_0x262877[_0x53a1b3(0x13e)](!0x0));}}const _0x2fcd91=_0x47d1b1[_0x53a1b3(0x19d)](),_0x4d2dcb=_0x217a4a[_0x53a1b3(0x27f)][_0x53a1b3(0x1b0)](_0x2fcd91[_0x53a1b3(0x229)],_0x53a1b3(0x223)),_0x4859f1=_0x3504af(_0x331da3),_0x13229d=_0x217a4a[_0x53a1b3(0x27f)][_0x53a1b3(0x1b0)](_0x4859f1),_0x463438=_0x217a4a[_0x53a1b3(0x27f)][_0x53a1b3(0x1b0)](_0x4859f1),_0x47f040=_0x217a4a[_0x53a1b3(0x228)][_0x53a1b3(0x214)](_0x13229d,0x0),_0x118af0=_0x3504af(_0xc90d7d),_0x3c1857={'anchor':_0x47f040,'markDeletions':!0x1,'context':_0x53a1b3(0x223)},_0x195aa3=_0x217a4a[_0x53a1b3(0x270)][_0x53a1b3(0x172)](_0x1babb5)[_0x53a1b3(0x26c)](_0x4859f1,_0x118af0,_0x3c1857)[_0x53a1b3(0x156)]();if(!_0x195aa3[_0x53a1b3(0x220)])return null;_0x217a4a[_0x53a1b3(0x228)][_0x53a1b3(0x20d)](_0x421e7c=>{const _0xf3e467=_0x53a1b3;for(const _0x1622fc of _0x195aa3)if(_0xf3e467(0x179)==_0x1622fc[_0xf3e467(0x2a2)]){const _0x1f3851=_0x1622fc[_0xf3e467(0x1aa)],_0x3964bf=_0x1622fc[_0xf3e467(0x1a5)],_0x1f01f6=new _0x2b55d7(_0x1f3851,_0x3964bf);_0x421e7c[_0xf3e467(0x236)][_0xf3e467(0x14c)](_0x1f01f6),_0x217a4a[_0xf3e467(0x228)][_0xf3e467(0x1a0)](_0x1f01f6);}else _0xf3e467(0x28d)!==_0x1622fc[_0xf3e467(0x2a2)]&&(_0x1622fc[_0xf3e467(0x150)]=null,_0x1622fc[_0xf3e467(0x1b9)]=!0x1,_0x421e7c[_0xf3e467(0x236)][_0xf3e467(0x14c)](_0x1622fc),_0x217a4a[_0xf3e467(0x228)][_0xf3e467(0x1a0)](_0x1622fc));});const _0x53e56c=_0x379857(_0x217a4a,_0x195aa3,_0x13229d);_0x152571(_0x217a4a[_0x53a1b3(0x228)],_0x53e56c);const _0x4dc97d=_0x53e56c[_0x53a1b3(0x201)]()[_0x53a1b3(0x27d)][_0x53a1b3(0x1d3)][_0x53a1b3(0x1f5)](),_0x5400ca=_0x53e56c[_0x53a1b3(0x201)]()[_0x53a1b3(0x143)][_0x53a1b3(0x1d3)][_0x53a1b3(0x1f5)](),_0xbbcb53=[];let _0x2bc7a1=_0x13229d,_0x4f52d5=_0x463438;for(let _0x35451e=0x0;_0x35451e<_0x5400ca[_0x53a1b3(0x220)];_0x35451e++){const _0x4149b9=_0x2bc7a1[_0x53a1b3(0x18a)]-_0x5400ca[_0x35451e];_0xbbcb53[_0x35451e]=_0x4f52d5[_0x53a1b3(0x18a)]-_0x4149b9,_0x2bc7a1=_0x2bc7a1[_0x53a1b3(0x1ce)](_0x5400ca[_0x35451e]),_0x4f52d5=_0x4f52d5[_0x53a1b3(0x1ce)](_0xbbcb53[_0x35451e]);}const _0x37c4dc=_0x217a4a[_0x53a1b3(0x228)][_0x53a1b3(0x1dc)](_0x217a4a[_0x53a1b3(0x228)][_0x53a1b3(0x1b4)](_0x463438,_0x4dc97d),_0x217a4a[_0x53a1b3(0x228)][_0x53a1b3(0x1b4)](_0x463438,_0xbbcb53)),_0xd15fdc=_0x463438[_0x53a1b3(0x1bd)](0x0)[_0x53a1b3(0x1a7)](_0xb93237),_0x567ae8=Array[_0x53a1b3(0x1a9)](_0x4d2dcb[_0x53a1b3(0x1f8)]())[_0x53a1b3(0x27c)](_0x20584a=>_0x20584a[_0x53a1b3(0x1a7)](_0xb93237)==_0xd15fdc)[_0x53a1b3(0x247)](),_0x53c876=_0x37c4dc[_0x53a1b3(0x27d)][_0x53a1b3(0x1d3)][_0x53a1b3(0x1f5)](),_0x55bbbe=_0x37c4dc[_0x53a1b3(0x143)][_0x53a1b3(0x1d3)][_0x53a1b3(0x1f5)]();_0x53c876[0x0]=_0x567ae8[0x0]+_0x53c876[0x0],_0x55bbbe[0x0]=_0x567ae8[0x0]+_0x55bbbe[0x0];let _0x4b1f1f=_0x217a4a[_0x53a1b3(0x228)][_0x53a1b3(0x1dc)](_0x217a4a[_0x53a1b3(0x228)][_0x53a1b3(0x1b4)](_0x217a4a[_0x53a1b3(0x228)][_0x53a1b3(0x1f1)][_0x53a1b3(0x1cd)](),_0x53c876),_0x217a4a[_0x53a1b3(0x228)][_0x53a1b3(0x1b4)](_0x217a4a[_0x53a1b3(0x228)][_0x53a1b3(0x1f1)][_0x53a1b3(0x1cd)](),_0x55bbbe));const _0x23b1f3=_0x217a4a[_0x53a1b3(0x228)][_0x53a1b3(0x1f1)][_0x53a1b3(0x1b7)][_0x53a1b3(0x156)](_0x2fcd91[_0x53a1b3(0x1b3)]);for(const _0x20e959 of _0x23b1f3)_0x4b1f1f=_0x59a3c3[_0x53a1b3(0x28f)](_0x4b1f1f[_0x53a1b3(0x1b1)](_0x20e959));return{'range':_0x4b1f1f,'currentIndex':_0x203dc2};}[_0x210fe3(0x1ef)](_0x471a2e){const _0xad1f73=_0x210fe3;if(!_0x471a2e[_0xad1f73(0x270)][_0xad1f73(0x1e8)](_0xad1f73(0x168)))return;const _0x49d746=_0x471a2e[_0xad1f73(0x16d)][_0xad1f73(0x172)](_0xad1f73(0x177)),_0x29fd80=_0x471a2e[_0xad1f73(0x16d)][_0xad1f73(0x172)](_0xad1f73(0x248));this[_0xad1f73(0x14d)](_0x49d746,_0xad1f73(0x137),(_0x2890a1,_0x3191c4,_0x8c4205)=>{const _0x28816e=_0xad1f73,_0x4ee20b=this[_0x28816e(0x21c)][_0x28816e(0x172)](_0x3191c4);if(!_0x4ee20b)return;const _0x15a202=this[_0x28816e(0x286)][_0x28816e(0x231)](_0x4ee20b[_0x28816e(0x160)])[_0x28816e(0x19c)](_0x4ee20b[_0x28816e(0x1ec)]);_0x4ee20b[_0x28816e(0x155)][_0x28816e(0x230)](_0xfc81e0=>_0x15a202[_0x28816e(0x1ab)](_0xfc81e0,_0x28816e(0x166))),this[_0x28816e(0x21c)][_0x28816e(0x245)](_0x3191c4),this[_0x28816e(0x21c)][_0x28816e(0x1c9)](_0x8c4205,_0x4ee20b);}),this[_0xad1f73(0x14d)](_0x29fd80,_0xad1f73(0x137),(_0x5cc453,_0x32dd38,_0xd524d0)=>{const _0x58c842=_0xad1f73,_0x14b269=this[_0x58c842(0x21c)][_0x58c842(0x172)](_0x32dd38);if(!_0x14b269)return;const _0x5e1812=this[_0x58c842(0x286)][_0x58c842(0x231)](_0x14b269[_0x58c842(0x160)])[_0x58c842(0x19c)](_0x14b269[_0x58c842(0x1ec)]);_0x14b269[_0x58c842(0x155)][_0x58c842(0x230)](_0x6c2979=>_0x5e1812[_0x58c842(0x1ab)](_0x6c2979,_0x58c842(0x185))),this[_0x58c842(0x21c)][_0x58c842(0x245)](_0x32dd38),this[_0x58c842(0x21c)][_0x58c842(0x1c9)](_0xd524d0,_0x14b269);});}async[_0x210fe3(0x265)](_0x187fab){const _0x30580d=_0x210fe3;this[_0x30580d(0x27b)][_0x30580d(0x270)][_0x30580d(0x172)](_0xcbcbb3)[_0x30580d(0x209)](),this[_0x30580d(0x1d1)][_0x30580d(0x22f)](_0x30580d(0x29b)),this[_0x30580d(0x1d1)][_0x30580d(0x225)](!0x0),await this[_0x30580d(0x17b)]();try{await this[_0x30580d(0x188)][_0x30580d(0x1a2)](_0x187fab)[_0x30580d(0x159)](),await this[_0x30580d(0x23d)](_0x187fab),this[_0x30580d(0x199)]('\x20');const {sessionId:_0x391de7}=this[_0x30580d(0x1e1)][_0x30580d(0x1f4)]();await this[_0x30580d(0x286)][_0x30580d(0x216)](_0x187fab,_0x391de7),this[_0x30580d(0x286)][_0x30580d(0x14f)]()&&this[_0x30580d(0x286)][_0x30580d(0x174)](_0x565b7e(this[_0x30580d(0x27b)][_0x30580d(0x20f)],_0x30580d(0x1e0)));}catch(_0x456b7b){this[_0x30580d(0x1d1)][_0x30580d(0x1f3)]({'errorMessage':_0x565b7e(this[_0x30580d(0x27b)][_0x30580d(0x20f)],_0x30580d(0x15b)),'id':_0x187fab}),this[_0x30580d(0x1a4)](new _0x37f91a(_0x30580d(0x217),this,{'error':_0x456b7b}));}finally{this[_0x30580d(0x27b)][_0x30580d(0x270)][_0x30580d(0x172)](_0x52fc81)[_0x30580d(0x169)][_0x30580d(0x20e)](_0x30580d(0x258)),this[_0x30580d(0x1d1)][_0x30580d(0x1da)](),this[_0x30580d(0x1d1)][_0x30580d(0x22f)](_0x30580d(0x226)),this[_0x30580d(0x1d1)][_0x30580d(0x225)](!0x1);}}[_0x210fe3(0x2a0)](_0x126211){const _0x4e2ec5=_0x210fe3;this[_0x4e2ec5(0x286)]['id']===_0x126211&&this[_0x4e2ec5(0x23d)]();}async[_0x210fe3(0x22c)](){const _0x2c434f=_0x210fe3,_0x547e6b=this[_0x2c434f(0x1e1)][_0x2c434f(0x14a)]();this[_0x2c434f(0x286)]?.[_0x2c434f(0x16c)](_0x547e6b),this[_0x2c434f(0x286)]?.[_0x2c434f(0x174)](_0x565b7e(this[_0x2c434f(0x27b)][_0x2c434f(0x20f)],_0x2c434f(0x1e0)));}[_0x210fe3(0x173)](){const _0x53f9f1=_0x210fe3;this[_0x53f9f1(0x286)]?.[_0x53f9f1(0x26e)]();}[_0x210fe3(0x25e)](){const _0x18b917=_0x210fe3;this[_0x18b917(0x1d1)][_0x18b917(0x25e)]();}async[_0x210fe3(0x161)](){const _0x3cc7d2=_0x210fe3;await this[_0x3cc7d2(0x23d)]();}async[_0x210fe3(0x1fe)]({message:_0x7e86a,quickActionData:_0x24777b}){const _0x341a6f=_0x210fe3;await this[_0x341a6f(0x283)]({'userMessage':_0x7e86a,'quickActionData':_0x24777b});}[_0x210fe3(0x1e6)](){const _0x500725=_0x210fe3,_0x30b382=this[_0x500725(0x27b)][_0x500725(0x162)][_0x500725(0x172)](_0x500725(0x1bb));if(!_0x30b382)throw new _0x37f91a(_0x500725(0x277),this);return _0x30b382;}async[_0x210fe3(0x23d)](_0x16c08c){const _0x2b6302=_0x210fe3;try{this[_0x2b6302(0x1d1)][_0x2b6302(0x16e)](),await this[_0x2b6302(0x242)](_0x16c08c);}catch(_0x46a7cd){this[_0x2b6302(0x1d1)][_0x2b6302(0x1f3)]({'errorMessage':_0x565b7e(this[_0x2b6302(0x27b)][_0x2b6302(0x20f)],_0x2b6302(0x198)),'id':_0x16c08c||_0x392c34()}),console[_0x2b6302(0x240)](_0x46a7cd),this[_0x2b6302(0x286)]=void 0x0,this[_0x2b6302(0x1d1)][_0x2b6302(0x261)]();}}async[_0x210fe3(0x242)](_0x42b8cd){const _0x36c8b1=_0x210fe3,_0x6b13d5=this[_0x36c8b1(0x27b)][_0x36c8b1(0x270)][_0x36c8b1(0x172)](_0xcbcbb3);let _0x5ceaf9;_0x6b13d5[_0x36c8b1(0x295)]&&_0x6b13d5[_0x36c8b1(0x209)](),_0x42b8cd||!this[_0x36c8b1(0x286)]?_0x5ceaf9=this[_0x36c8b1(0x27b)][_0x36c8b1(0x162)][_0x36c8b1(0x172)](_0x36c8b1(0x249)):this[_0x36c8b1(0x1d1)][_0x36c8b1(0x1f0)]&&(_0x5ceaf9=this[_0x36c8b1(0x286)][_0x36c8b1(0x1a8)]['id']),await this[_0x36c8b1(0x17b)]();const _0x8cdc9=this[_0x36c8b1(0x1e6)](),_0xe06907=_0x42b8cd||_0x392c34();this[_0x36c8b1(0x286)]=new _0x504764({'connector':this[_0x36c8b1(0x188)],'chatModels':this[_0x36c8b1(0x23f)],'selectedModelId':_0x5ceaf9,'conversationId':_0xe06907,'group':_0x8cdc9,'getEditor':()=>_0x471cc3(this[_0x36c8b1(0x27b)])}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x1ea),(_0xbcc2fc,_0x2e260b)=>{const _0x54605e=_0x36c8b1;this[_0x54605e(0x1d1)][_0x54605e(0x1cb)](_0x2e260b),this[_0x54605e(0x1d1)][_0x54605e(0x147)](),this[_0x54605e(0x1d1)][_0x54605e(0x191)](),this[_0x54605e(0x1d1)][_0x54605e(0x1e9)](),_0x42b8cd||(this[_0x54605e(0x1d1)][_0x54605e(0x212)](),this[_0x54605e(0x286)]?.[_0x54605e(0x174)](_0x565b7e(this[_0x54605e(0x27b)][_0x54605e(0x20f)],_0x54605e(0x1e0))));}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x237),(_0x3f6b68,_0x239502)=>{const _0x558ea5=_0x36c8b1;this[_0x558ea5(0x1d1)][_0x558ea5(0x139)](_0x239502[_0x558ea5(0x208)]);}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x272),(_0x3ec328,_0xd14228)=>{const _0x1f2d40=_0x36c8b1;this[_0x1f2d40(0x1d1)][_0x1f2d40(0x1b6)](_0xd14228);}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x1c5),()=>{const _0x1a5389=_0x36c8b1;this[_0x1a5389(0x1d1)][_0x1a5389(0x218)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x284),()=>{const _0x38a303=_0x36c8b1;this[_0x38a303(0x1d1)][_0x38a303(0x218)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x211),(_0x2837cb,_0xd842b1)=>{const _0x55ffb7=_0x36c8b1;this[_0x55ffb7(0x1d1)][_0x55ffb7(0x29d)](_0xd842b1,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x165),(_0x471ad1,_0x2bae10)=>{const _0xd32c2b=_0x36c8b1;this[_0xd32c2b(0x1d1)][_0xd32c2b(0x29d)](_0x2bae10,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x273),()=>{const _0x50be3e=_0x36c8b1;this[_0x50be3e(0x1d1)][_0x50be3e(0x135)]();}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x25f),async()=>{const _0x2eab9b=_0x36c8b1;await this[_0x2eab9b(0x1d1)][_0x2eab9b(0x1fd)]();}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x25a),(_0x10bbd3,_0x1c0c7e)=>{const _0x4f1be5=_0x36c8b1;this[_0x4f1be5(0x1d1)][_0x4f1be5(0x1c1)](_0x1c0c7e['id']);}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x15f),(_0x333bd7,_0x4b9370,_0xbc94c7)=>{const _0x8dcdab=_0x36c8b1;this[_0x8dcdab(0x199)](_0x4b9370,_0xbc94c7);}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x170),(_0x1b1f89,_0x36b87f)=>{const _0x3a33c7=_0x36c8b1;_0x3a33c7(0x13a)===_0x36b87f[_0x3a33c7(0x2a2)]?this[_0x3a33c7(0x1d1)][_0x3a33c7(0x213)](_0x36b87f):this[_0x3a33c7(0x1d1)][_0x3a33c7(0x23a)](_0x36b87f);}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x27e),async(_0x4f11cb,_0x5337a3)=>{const _0x418c89=_0x36c8b1;await this[_0x418c89(0x1fc)]({'reply':_0x5337a3});}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x203),(_0x3d3bc6,{reply:_0x2e6321,index:_0x4f1455,state:_0x4ef51d})=>{const _0x286717=_0x36c8b1;this[_0x286717(0x1d1)][_0x286717(0x25c)]({'id':_0x2e6321['id'],'index':_0x4f1455,'state':_0x4ef51d});}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x141),(_0x239848,_0x1a392d)=>{const _0x43ca73=_0x36c8b1;if(this[_0x43ca73(0x1d1)][_0x43ca73(0x144)](_0x1a392d[_0x43ca73(0x29f)],_0x1a392d[_0x43ca73(0x171)]),_0x43ca73(0x264)===_0x1a392d[_0x43ca73(0x29f)][_0x43ca73(0x2a2)]){const _0x312ae0=[..._0x471cc3(this[_0x43ca73(0x27b)])[_0x43ca73(0x228)][_0x43ca73(0x1f1)][_0x43ca73(0x264)][_0x43ca73(0x1d7)]()];this[_0x43ca73(0x1e1)][_0x43ca73(0x289)](_0x312ae0,_0x43ca73(0x1ca)+this[_0x43ca73(0x286)]?.['id']);}}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x26b),(_0x14583b,_0x23f1ff)=>{const _0x9087b6=_0x36c8b1;this[_0x9087b6(0x1d1)][_0x9087b6(0x26f)](_0x23f1ff[_0x9087b6(0x187)]),_0x9087b6(0x195)==_0x23f1ff[_0x9087b6(0x187)]&&this[_0x9087b6(0x173)](),_0x9087b6(0x264)===_0x23f1ff[_0x9087b6(0x2a2)]&&this[_0x9087b6(0x1e1)][_0x9087b6(0x181)](_0x9087b6(0x1ca)+this[_0x9087b6(0x286)]?.['id']);}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x1b5),(_0x2d4bdc,_0x34092b)=>{const _0x3be9d5=_0x36c8b1;this[_0x3be9d5(0x1d1)][_0x3be9d5(0x17d)](_0x34092b[_0x3be9d5(0x29f)][_0x3be9d5(0x187)],_0x34092b[_0x3be9d5(0x171)]);}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x22a),(_0x1c6132,_0xa1867f)=>{const _0x4dfe6b=_0x36c8b1;this[_0x4dfe6b(0x1d1)][_0x4dfe6b(0x290)](_0xa1867f[_0x4dfe6b(0x17f)]);}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x193),(_0x2c5ed8,_0x4a0044)=>{const _0x32c2ed=_0x36c8b1;this[_0x32c2ed(0x1d1)][_0x32c2ed(0x163)](_0x4a0044[_0x32c2ed(0x24f)]);}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x267),(_0x5ad753,_0x5e9ba3)=>{const _0x50a03e=_0x36c8b1;this[_0x50a03e(0x1d1)][_0x50a03e(0x21e)](_0x5e9ba3[_0x50a03e(0x292)],_0x5e9ba3[_0x50a03e(0x206)],_0x5e9ba3[_0x50a03e(0x1c2)],_0x5e9ba3[_0x50a03e(0x29e)]);}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x1df),(_0x3f3395,_0x274cec)=>{const _0x3344e5=_0x36c8b1;this[_0x3344e5(0x1d1)][_0x3344e5(0x17a)](_0x274cec[_0x3344e5(0x292)],_0x274cec[_0x3344e5(0x200)],_0x274cec[_0x3344e5(0x246)]);}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x154),(_0x11e118,_0x362ff7)=>{const _0x6ea0b9=_0x36c8b1;this[_0x6ea0b9(0x1d1)][_0x6ea0b9(0x15a)](_0x362ff7);}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x133),(_0x1a1b20,_0x2d6278)=>{const _0x307d83=_0x36c8b1;this[_0x307d83(0x1d1)][_0x307d83(0x1d0)](_0x2d6278[_0x307d83(0x1a8)],_0x2d6278[_0x307d83(0x1dd)]);}),this[_0x36c8b1(0x286)]['on'](_0x36c8b1(0x240),(_0x1304c8,{error:_0xadc2ce,interactionId:_0x5b92b5,fileName:_0x3adc0e,url:_0xc7eebd,sourceId:_0x64f780,sourceLabel:_0xf406bb})=>{const _0x4320dc=_0x36c8b1,_0x5bae04=_0x5b92b5?_0x5b92b5+':'+_0x392c34():_0x392c34();_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x1ac))?this[_0x4320dc(0x1d1)][_0x4320dc(0x1c6)]({'staticMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x23b)),'id':_0x5bae04}):_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x274))||_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x16f))?(this[_0x4320dc(0x1d1)][_0x4320dc(0x1f3)]({'errorMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x198)),'id':_0x5bae04}),this[_0x4320dc(0x1a4)](_0xadc2ce)):_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x16b))?this[_0x4320dc(0x1d1)][_0x4320dc(0x1f3)]({'errorMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x288),_0x3adc0e),'id':_0x5bae04}):_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x282))?this[_0x4320dc(0x1d1)][_0x4320dc(0x1f3)]({'errorMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x17c),_0xc7eebd),'id':_0x5bae04}):_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x1f7))?this[_0x4320dc(0x1d1)][_0x4320dc(0x1f3)]({'errorMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x215)),'id':_0x5bae04}):_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x29c))?this[_0x4320dc(0x1d1)][_0x4320dc(0x1f3)]({'errorMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x1e5)),'id':_0x5bae04}):_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x1fa))?(_0x64f780&&this[_0x4320dc(0x1d1)][_0x4320dc(0x1be)](_0x64f780),this[_0x4320dc(0x1d1)][_0x4320dc(0x1f3)]({'errorMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x1e3),_0xf406bb||_0x4320dc(0x206)),'id':_0x5bae04}),this[_0x4320dc(0x1a4)](_0xadc2ce)):_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x1d2))?(this[_0x4320dc(0x1d1)][_0x4320dc(0x1f3)]({'errorMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x1f2)),'id':_0x5bae04}),this[_0x4320dc(0x1a4)](_0xadc2ce)):_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x24b))?(this[_0x4320dc(0x1d1)][_0x4320dc(0x1f3)]({'errorMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x167)),'id':_0x5bae04}),this[_0x4320dc(0x1a4)](_0xadc2ce)):_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x1bf))?(this[_0x4320dc(0x1d1)][_0x4320dc(0x1f3)]({'errorMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x140)),'id':_0x5bae04}),this[_0x4320dc(0x1a4)](_0xadc2ce)):_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x22d))?(this[_0x4320dc(0x1d1)][_0x4320dc(0x1f3)]({'errorMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x243)),'id':_0x5bae04}),this[_0x4320dc(0x1a4)](_0xadc2ce)):_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x280))?(this[_0x4320dc(0x1d1)][_0x4320dc(0x1f3)]({'errorMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x18c)),'id':_0x5bae04}),this[_0x4320dc(0x1a4)](_0xadc2ce)):_0xadc2ce[_0x4320dc(0x296)][_0x4320dc(0x20a)](_0x4320dc(0x224))?(this[_0x4320dc(0x1d1)][_0x4320dc(0x1f3)]({'errorMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x266)),'id':_0x5bae04}),this[_0x4320dc(0x1a4)](_0xadc2ce)):(this[_0x4320dc(0x1d1)][_0x4320dc(0x1f3)]({'errorMessage':_0x565b7e(this[_0x4320dc(0x27b)][_0x4320dc(0x20f)],_0x4320dc(0x1d6)),'id':_0x5bae04}),this[_0x4320dc(0x1a4)](_0xadc2ce));}),await this[_0x36c8b1(0x286)][_0x36c8b1(0x2a1)](this[_0x36c8b1(0x27b)][_0x36c8b1(0x162)][_0x36c8b1(0x172)](_0x36c8b1(0x14e))),_0x42b8cd||await this[_0x36c8b1(0x286)][_0x36c8b1(0x27d)]();}async[_0x210fe3(0x283)]({userMessage:_0x23c819,quickActionData:_0x24f9aa}){const _0x35ca7b=_0x210fe3;if(!this[_0x35ca7b(0x286)])throw new _0x37f91a(_0x35ca7b(0x153));this[_0x35ca7b(0x286)][_0x35ca7b(0x275)]()&&await this[_0x35ca7b(0x286)][_0x35ca7b(0x1ed)](this[_0x35ca7b(0x1e1)][_0x35ca7b(0x1f4)]()),this[_0x35ca7b(0x286)]['id']&&this[_0x35ca7b(0x286)][_0x35ca7b(0x18f)]&&await this[_0x35ca7b(0x286)][_0x35ca7b(0x134)]({'userMessage':_0x23c819,'quickActionData':_0x24f9aa}),this[_0x35ca7b(0x279)]();}[_0x210fe3(0x279)](){const _0x1e38e1=_0x210fe3,_0x47d905=_0x471cc3(this[_0x1e38e1(0x27b)])[_0x1e38e1(0x228)],_0x305d4a=Array[_0x1e38e1(0x1a9)](_0x47d905[_0x1e38e1(0x17e)][_0x1e38e1(0x21b)](_0x1c0281));_0x47d905[_0x1e38e1(0x20d)](_0x33bda6=>{const _0x64380d=_0x1e38e1;_0x305d4a[_0x64380d(0x230)](_0x2fd4eb=>_0x33bda6[_0x64380d(0x18e)](_0x2fd4eb));});}[_0x210fe3(0x1e4)](){const _0x1a7a3a=_0x210fe3;console[_0x1a7a3a(0x233)](_0x1a7a3a(0x182));}[_0x210fe3(0x1c0)](_0x16d662){const _0x42ea26=_0x210fe3;this[_0x42ea26(0x1d1)][_0x42ea26(0x132)](_0x16d662);}[_0x210fe3(0x1a4)](_0x1a67e2){const _0x41725f=_0x210fe3;_0x142f79(_0x1a67e2[_0x41725f(0x296)]);}[_0x210fe3(0x148)](_0x43dc03){const _0xbf6ade=_0x210fe3;this[_0xbf6ade(0x286)]?.[_0xbf6ade(0x285)](_0x43dc03);}[_0x210fe3(0x28e)](){const _0x3bec27=_0x210fe3;this[_0x3bec27(0x286)]?.[_0x3bec27(0x1ad)]();}[_0x210fe3(0x1ee)](){const _0x151fab=_0x210fe3;this[_0x151fab(0x286)]?.[_0x151fab(0x190)]();}[_0x210fe3(0x136)](_0x8bafbe){const _0x1f5b1a=_0x210fe3,[_0x5c8424,_0x3c57a2]=_0x8bafbe[_0x1f5b1a(0x192)](':'),_0x103281=this[_0x1f5b1a(0x286)][_0x1f5b1a(0x231)](_0x5c8424),_0x339626=_0x103281[_0x1f5b1a(0x19c)](_0x3c57a2);return{'interaction':_0x103281,'reply':_0x339626};}[_0x210fe3(0x1cc)](_0x48b418,_0x3cb61f=!0x1){const _0x376e2d=_0x210fe3,_0x479a69=_0x471cc3(this[_0x376e2d(0x27b)]),_0x271d33={'target':_0x479a69[_0x376e2d(0x152)][_0x376e2d(0x169)][_0x376e2d(0x271)][_0x376e2d(0x19e)](_0x479a69[_0x376e2d(0x152)][_0x376e2d(0x1d4)][_0x376e2d(0x13c)](_0x48b418)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x3cb61f};_0x3cb61f&&(_0x271d33[_0x376e2d(0x145)]=!0x0),_0x1f314a(_0x271d33);}[_0x210fe3(0x199)](_0x38c765,_0x11f22b=!0x1){const _0x2b2780=_0x210fe3;this[_0x2b2780(0x1d1)][_0x2b2780(0x15f)](_0x38c765||_0x565b7e(this[_0x2b2780(0x27b)][_0x2b2780(0x20f)],_0x2b2780(0x1a1)),_0x11f22b);}async[_0x210fe3(0x1fc)]({reply:_0x4c98bd,renderingStrategy:_0x5da955}){const _0x5cb157=_0x210fe3,{id:_0x2a5c5d,isDone:_0xdf0a7e,type:_0x3ab2f3,parsedContent:_0x137426}=_0x4c98bd;if(_0x5cb157(0x1d5)===_0x3ab2f3){const _0x2f9988=_0x4c98bd[_0x5cb157(0x260)]({'showDiff':this[_0x5cb157(0x1d1)][_0x5cb157(0x1ff)]});await this[_0x5cb157(0x1d1)][_0x5cb157(0x29a)]({'id':_0x2a5c5d,'parts':_0x2f9988,'renderingStrategy':_0x5da955,'isDone':_0xdf0a7e});}else _0x5cb157(0x13a)===_0x3ab2f3&&await this[_0x5cb157(0x1d1)][_0x5cb157(0x1ae)]({'id':_0x2a5c5d,'parsedContent':_0x137426,'renderingStrategy':_0x5da955,'isDone':_0xdf0a7e});_0xdf0a7e&&_0x4c98bd[_0x5cb157(0x149)][_0x5cb157(0x220)]>0x0&&this[_0x5cb157(0x1d1)][_0x5cb157(0x1cf)](_0x2a5c5d,_0x4c98bd[_0x5cb157(0x149)]);}async[_0x210fe3(0x17b)](){const _0x48bea3=_0x210fe3,_0x298ae1=this[_0x48bea3(0x286)]?.[_0x48bea3(0x1e2)];_0x298ae1&&(_0x298ae1[_0x48bea3(0x19f)](),this[_0x48bea3(0x1d1)][_0x48bea3(0x176)](_0x298ae1));}async[_0x210fe3(0x227)](){const _0x17d558=_0x210fe3,_0x185fb9=this[_0x17d558(0x286)]?.[_0x17d558(0x1e2)];if(_0x185fb9){for await(const _0x4c252e of _0x185fb9[_0x17d558(0x22b)])await this[_0x17d558(0x1fc)]({'reply':_0x4c252e,'renderingStrategy':_0x17d558(0x29b)});}}[_0x210fe3(0x235)](_0x652cac){const _0x43dbb7=_0x210fe3,_0x2445b2={'positiveCount':_0x652cac[_0x43dbb7(0x298)][_0x43dbb7(0x1eb)](_0x3ffdff=>_0x43dbb7(0x185)===_0x3ffdff[_0x43dbb7(0x138)])[_0x43dbb7(0x220)],'totalCount':_0x652cac[_0x43dbb7(0x298)][_0x43dbb7(0x220)],'modificationId':_0x652cac['id']},_0x3930d0=this[_0x43dbb7(0x286)][_0x43dbb7(0x231)](_0x652cac[_0x43dbb7(0x160)])[_0x43dbb7(0x24a)];this[_0x43dbb7(0x188)][_0x43dbb7(0x15e)](this[_0x43dbb7(0x286)]['id'],_0x3930d0,_0x2445b2);}}