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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/aiassistantediting.js +1 -1
  8. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  9. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  10. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  11. package/src/aiassistant/ui/form/aiformview.js +1 -1
  12. package/src/aiballoon/aiballoon.js +1 -1
  13. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  14. package/src/aiballoon/ui/aiballoonview.js +1 -1
  15. package/src/aichat/aichat.js +1 -1
  16. package/src/aichat/aichatcontroller.js +1 -1
  17. package/src/aichat/aichatui.js +1 -1
  18. package/src/aichat/model/aichatcontext.js +1 -1
  19. package/src/aichat/model/aichatconversation.js +1 -1
  20. package/src/aichat/model/aichatinteraction.js +1 -1
  21. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  22. package/src/aichat/ui/aichatfeedview.js +1 -1
  23. package/src/aichat/ui/aichatheaderview.js +1 -1
  24. package/src/aichat/ui/aichatview.js +1 -1
  25. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  26. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  27. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  28. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  29. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  30. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  31. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  32. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  33. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  34. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  35. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  36. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  37. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  38. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  39. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  40. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  41. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  42. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  43. package/src/aichat/utils/eventnames.js +1 -1
  44. package/src/aichathistory/aichathistory.js +1 -1
  45. package/src/aichathistory/aichathistorycontroller.js +1 -1
  46. package/src/aichathistory/aichathistoryui.js +1 -1
  47. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  48. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  49. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  50. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  51. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  52. package/src/aicore/aiconnector.js +1 -1
  53. package/src/aicore/aiediting.js +1 -1
  54. package/src/aicore/model/aiinteraction.js +1 -1
  55. package/src/aicore/model/aimodels.js +1 -1
  56. package/src/aicore/model/aireply.js +1 -1
  57. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  58. package/src/aicore/pipeline/airesponseparser.js +2 -2
  59. package/src/aicore/ui/aidisclaimerview.js +1 -1
  60. package/src/aicore/ui/aiskeleton.js +1 -1
  61. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  62. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  63. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  64. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  65. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  66. package/src/aicore/utils/documentrange.js +1 -1
  67. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  68. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  69. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  70. package/src/aicore/utils/htmlparser.js +1 -1
  71. package/src/aicore/utils/htmlstreamer.js +1 -1
  72. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  73. package/src/aiquickactions/aiquickactionsui.js +1 -1
  74. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  75. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  76. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  77. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  78. package/src/aireviewmode/aireviewmode.js +1 -1
  79. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  80. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  81. package/src/aireviewmode/aireviewmodeui.js +1 -1
  82. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  83. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  84. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  85. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  86. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  87. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  88. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  89. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  90. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  91. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  92. package/src/aitabs/aitabs.js +1 -1
  93. package/src/aitabs/tabs/aitabsview.js +1 -1
  94. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x351f3a=_0x18d6;(function(_0x2d7f42,_0x29754b){const _0x20d0f3=_0x18d6,_0x457929=_0x2d7f42();while(!![]){try{const _0x12e3b7=parseInt(_0x20d0f3(0xec))/0x1+parseInt(_0x20d0f3(0x11a))/0x2+-parseInt(_0x20d0f3(0x112))/0x3*(-parseInt(_0x20d0f3(0x10d))/0x4)+-parseInt(_0x20d0f3(0x126))/0x5*(parseInt(_0x20d0f3(0xf2))/0x6)+parseInt(_0x20d0f3(0xe5))/0x7+parseInt(_0x20d0f3(0xee))/0x8*(parseInt(_0x20d0f3(0x10e))/0x9)+-parseInt(_0x20d0f3(0xf8))/0xa;if(_0x12e3b7===_0x29754b)break;else _0x457929['push'](_0x457929['shift']());}catch(_0x289b1a){_0x457929['push'](_0x457929['shift']());}}}(_0x1bd0,0xa0baa));import{FocusTracker as _0x2c172a,KeystrokeHandler as _0x5b9631}from'ckeditor5/src/utils.js';function _0x18d6(_0x98d1ac,_0xd5deae){const _0x1bd011=_0x1bd0();return _0x18d6=function(_0x18d651,_0x46f669){_0x18d651=_0x18d651-0xd6;let _0x3aa7f9=_0x1bd011[_0x18d651];return _0x3aa7f9;},_0x18d6(_0x98d1ac,_0xd5deae);}import{View as _0x66268f,FocusCycler as _0x229cd5,createLabeledTextarea as _0x37e1fa}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x15d77e,AIFormToolbarViewMainActionLabel as _0x5d81d0}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x49f25e}from'./aiformcontentarea.js';import{AIFormErrorView as _0x7998da}from'./aiformerrorview.js';import{AIFormPromptView as _0x359fab}from'./aiformpromptview.js';function _0x1bd0(){const _0x1d2e77=['8GnmiIo','tryAgainButton','submitPrompt','isProcessing','2143968GhgeEW','text','focusCycler','delegate','label','bindTo','28139860rGedTo','add','execute','value','copyButtonView','toolbar','tab','reset','bindTemplate','isVisible','prompt','_createPromptView','replaceButton','focusFirst','insertButton','finishProcessing','insertContentBelow','focus','stopProcessing','_createHistoryView','submit','1184UsGJxS','10282068ZzWHWZ','isEnabled','clearHistory','shift\x20+\x20tab','366FHxcbf','trim','REPLACE','contentArea','div','fieldView','handleError','startProcessing','1842790BuwEIq','Ask\x20AI\x20to\x20edit\x20or\x20generate','mainAction','bind','createCollection','listenTo','AI_ERROR_FAILED','tryAgainEvent','set','keystrokes','stopButton','historyGroupView','5KrHrMl','setTemplate','search','ck-ai-form-content','high','chain','replaceContent','render','isError','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','items','element','fire','ck-ai-form','promptView','_promptHistory','Ask\x20AI\x20to\x20improve\x20generated\x20text','_createToolbar','locale','errorView','9160746jDKMyO','_focusables','queryView','Empty\x20history','focusTracker','clear','ck-hidden','421023DTChXT','focusLast'];_0x1bd0=function(){return _0x1d2e77;};return _0x1bd0();}import{AIHistoryListView as _0x46d7d3}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x18314e}from'./aihistorylistitemview.js';import{PromptHistory as _0xd1bf54}from'./prompthistory.js';import{getTranslation as _0x31362b}from'../../utils/common-translations.js';import{escape as _0x460fc7}from'es-toolkit/compat';export class AIFormView extends _0x66268f{[_0x351f3a(0xe9)];[_0x351f3a(0x123)];[_0x351f3a(0x115)];[_0x351f3a(0xfd)];[_0x351f3a(0xdf)];[_0x351f3a(0xe4)];[_0x351f3a(0xe6)];[_0x351f3a(0xf4)];[_0x351f3a(0xe0)];constructor(_0x3d7c09,_0x12afb8,_0x467cf1=''){const _0xffc9a2=_0x351f3a;super(_0x3d7c09),this[_0xffc9a2(0x122)](_0xffc9a2(0x10f),!0x0),this[_0xffc9a2(0x122)](_0xffc9a2(0xf1),!0x1),this[_0xffc9a2(0x122)](_0xffc9a2(0x102),''),this[_0xffc9a2(0x122)](_0xffc9a2(0xfb),''),this[_0xffc9a2(0x122)](_0xffc9a2(0xd9),!0x1),this[_0xffc9a2(0x122)](_0xffc9a2(0x11c),_0x5d81d0[_0xffc9a2(0x114)]),this[_0xffc9a2(0xe0)]=new _0xd1bf54(),this[_0xffc9a2(0xe4)]=new _0x7998da(_0x3d7c09),this[_0xffc9a2(0x115)]=new _0x49f25e(_0x3d7c09,_0x467cf1),this[_0xffc9a2(0x115)][_0xffc9a2(0x11d)](_0xffc9a2(0xf1))['to'](this),this[_0xffc9a2(0x115)][_0xffc9a2(0x11d)](_0xffc9a2(0xfb))['to'](this),this[_0xffc9a2(0xfd)]=this[_0xffc9a2(0xe2)](),this[_0xffc9a2(0xfd)][_0xffc9a2(0x11d)](_0xffc9a2(0x11c))['to'](this),this[_0xffc9a2(0xdf)]=this[_0xffc9a2(0x103)](),this[_0xffc9a2(0xe9)]=new _0x2c172a(),this[_0xffc9a2(0x123)]=new _0x5b9631(),this[_0xffc9a2(0xe6)]=this[_0xffc9a2(0x11e)]([this[_0xffc9a2(0x115)],this[_0xffc9a2(0x115)][_0xffc9a2(0xfc)],this[_0xffc9a2(0xfd)],this[_0xffc9a2(0xdf)]]),this[_0xffc9a2(0xf4)]=new _0x229cd5({'focusables':this[_0xffc9a2(0xe6)],'focusTracker':this[_0xffc9a2(0xe9)],'keystrokeHandler':this[_0xffc9a2(0x123)],'actions':{'focusPrevious':_0xffc9a2(0x111),'focusNext':_0xffc9a2(0xfe)}}),this[_0xffc9a2(0xf4)][_0xffc9a2(0xd6)](this[_0xffc9a2(0xdf)][_0xffc9a2(0xf4)]),this[_0xffc9a2(0xdf)][_0xffc9a2(0xe7)][_0xffc9a2(0x117)][_0xffc9a2(0x11d)](_0xffc9a2(0xfb))['to'](this,_0xffc9a2(0x102));const _0x40641e=this[_0xffc9a2(0x100)];this[_0xffc9a2(0x127)]({'tag':_0xffc9a2(0x116),'attributes':{'class':['ck',_0xffc9a2(0xde),_0x12afb8],'tabindex':'-1'},'children':[{'tag':_0xffc9a2(0x116),'attributes':{'class':['ck',_0xffc9a2(0x129)]},'children':[{'tag':_0xffc9a2(0x116),'attributes':{'class':[_0x40641e['if'](_0xffc9a2(0xd9),_0xffc9a2(0xeb),_0x4c99ef=>!_0x4c99ef)]},'children':[this[_0xffc9a2(0xe4)]]},this[_0xffc9a2(0x115)],this[_0xffc9a2(0xfd)],this[_0xffc9a2(0xdf)]]}]});}[_0x351f3a(0xd8)](){const _0x1070e9=_0x351f3a;super[_0x1070e9(0xd8)](),this[_0x1070e9(0xe9)][_0x1070e9(0xf9)](this[_0x1070e9(0x115)][_0x1070e9(0xdc)]),this[_0x1070e9(0xe9)][_0x1070e9(0xf9)](this[_0x1070e9(0x115)][_0x1070e9(0xfc)][_0x1070e9(0xdc)]),this[_0x1070e9(0xe9)][_0x1070e9(0xf9)](this[_0x1070e9(0xfd)][_0x1070e9(0xdc)]),this[_0x1070e9(0xe9)][_0x1070e9(0xf9)](this[_0x1070e9(0xdf)][_0x1070e9(0xdc)]),this[_0x1070e9(0x123)][_0x1070e9(0x11f)](this[_0x1070e9(0xdc)]);}[_0x351f3a(0x109)](_0x4f596f=0x1){const _0x18fbc0=_0x351f3a;-0x1===_0x4f596f?this[_0x18fbc0(0xf4)][_0x18fbc0(0xed)]():this[_0x18fbc0(0xf4)][_0x18fbc0(0x105)]();}[_0x351f3a(0xff)](){const _0x4fab2e=_0x351f3a;this[_0x4fab2e(0x102)]='',this[_0x4fab2e(0xfb)]='',this[_0x4fab2e(0xd9)]=!0x1,this[_0x4fab2e(0xdf)][_0x4fab2e(0xff)](),this[_0x4fab2e(0x115)][_0x4fab2e(0x101)]=!0x1,this[_0x4fab2e(0xfd)][_0x4fab2e(0x101)]=!0x1;}[_0x351f3a(0x103)](){const _0x202239=_0x351f3a,_0x1bac36=this[_0x202239(0xe3)],_0x156cf4=new _0x359fab(_0x1bac36,{'queryView':{'label':_0x31362b(_0x1bac36,_0x202239(0x11b)),'creator':_0x37e1fa,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x31362b(_0x1bac36,_0x202239(0xe8)),'secondary':_0x31362b(_0x1bac36,_0x202239(0xda))}}},'filteredView':this[_0x202239(0x10b)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x156cf4[_0x202239(0x11d)](_0x202239(0x10f))['to'](this,_0x202239(0x10f),this,_0x202239(0xf1),(_0x5ed449,_0x4b2295)=>_0x5ed449&&!_0x4b2295),this[_0x202239(0x11f)](_0x156cf4,_0x202239(0x10c),(_0x531e74,_0x3d79f8)=>{const _0x378d01=_0x202239;this[_0x378d01(0x102)]=_0x3d79f8;const _0x908bd0=_0x460fc7(_0x3d79f8);this[_0x378d01(0xdd)](_0x378d01(0xf0),_0x908bd0),_0x3d79f8[_0x378d01(0x113)]()&&this[_0x378d01(0xe0)][_0x378d01(0xf9)]({'prompt':_0x908bd0},0x0);},{'priority':_0x202239(0x12a)}),_0x156cf4;}[_0x351f3a(0x10b)](){const _0x571bdd=_0x351f3a,_0x1e6fbe=new _0x46d7d3(this[_0x571bdd(0xe3)]);return _0x1e6fbe[_0x571bdd(0x125)][_0x571bdd(0xdb)][_0x571bdd(0xf7)](this[_0x571bdd(0xe0)])['as'](_0x18314e),_0x1e6fbe['on'](_0x571bdd(0x110),()=>{const _0x4a1cf5=_0x571bdd;this[_0x4a1cf5(0xe0)][_0x4a1cf5(0xea)](),this[_0x4a1cf5(0xdf)][_0x4a1cf5(0x128)](''),this[_0x4a1cf5(0xdf)][_0x4a1cf5(0x109)]();}),_0x1e6fbe;}[_0x351f3a(0xe2)](){const _0x225bf6=_0x351f3a,_0xc79a16=new _0x15d77e(this[_0x225bf6(0xe3)]);return _0xc79a16[_0x225bf6(0x104)][_0x225bf6(0x11d)](_0x225bf6(0x10f))['to'](this,_0x225bf6(0x10f),this,_0x225bf6(0xf1),this,_0x225bf6(0xfb),(_0x2fc2fc,_0xfca00f,_0x4351a0)=>_0x2fc2fc&&!_0xfca00f&&!!_0x4351a0),_0xc79a16[_0x225bf6(0x104)][_0x225bf6(0xf5)](_0x225bf6(0xfa))['to'](this,_0x225bf6(0xd7)),_0xc79a16[_0x225bf6(0x106)][_0x225bf6(0x11d)](_0x225bf6(0x10f))['to'](this,_0x225bf6(0x10f),this,_0x225bf6(0xf1),this,_0x225bf6(0xfb),(_0xf63bd1,_0xa86e3f,_0x180d1c)=>_0xf63bd1&&!_0xa86e3f&&!!_0x180d1c),_0xc79a16[_0x225bf6(0x106)][_0x225bf6(0xf5)](_0x225bf6(0xfa))['to'](this,_0x225bf6(0x108)),_0xc79a16[_0x225bf6(0xef)][_0x225bf6(0x11d)](_0x225bf6(0x10f))['to'](this,_0x225bf6(0x10f),this,_0x225bf6(0xf1),(_0x4a2a1d,_0x6224ce)=>_0x4a2a1d&&!_0x6224ce),_0xc79a16[_0x225bf6(0xef)][_0x225bf6(0xf5)](_0x225bf6(0xfa))['to'](this,_0x225bf6(0x121)),_0xc79a16[_0x225bf6(0x124)][_0x225bf6(0x11d)](_0x225bf6(0x10f))['to'](this,_0x225bf6(0xf1)),_0xc79a16[_0x225bf6(0x124)][_0x225bf6(0xf5)](_0x225bf6(0xfa))['to'](this,_0x225bf6(0x10a)),_0xc79a16;}[_0x351f3a(0x119)](){const _0x2994c1=_0x351f3a;this[_0x2994c1(0xfb)]='',this[_0x2994c1(0xd9)]=!0x1,this[_0x2994c1(0xf1)]=!0x0,this[_0x2994c1(0x115)][_0x2994c1(0x101)]=!0x0,this[_0x2994c1(0xfd)][_0x2994c1(0x101)]=!0x0,this[_0x2994c1(0x115)][_0x2994c1(0x109)]();}[_0x351f3a(0x107)](){const _0xa996f0=_0x351f3a,_0x415022=this[_0xa996f0(0xe3)];this[_0xa996f0(0xf1)]=!0x1,this[_0xa996f0(0x102)]='',this[_0xa996f0(0xdf)][_0xa996f0(0xff)](),this[_0xa996f0(0xfb)]&&(this[_0xa996f0(0xdf)][_0xa996f0(0xe7)][_0xa996f0(0xf6)]=_0x31362b(_0x415022,_0xa996f0(0xe1)));}[_0x351f3a(0x118)](_0x419d80){const _0x5a5d35=_0x351f3a,_0x20a159=this[_0x5a5d35(0xe3)];this[_0x5a5d35(0x107)](),this[_0x5a5d35(0xd9)]=!0x0,this[_0x5a5d35(0xe4)][_0x5a5d35(0xf3)]=_0x419d80||_0x31362b(_0x20a159,_0x5a5d35(0x120)),this[_0x5a5d35(0xfb)]||(this[_0x5a5d35(0x115)][_0x5a5d35(0x101)]=!0x1);}}
23
+ const _0x348de5=_0x4e25;(function(_0x23cd94,_0x55048f){const _0x348687=_0x4e25,_0x23545b=_0x23cd94();while(!![]){try{const _0x402869=parseInt(_0x348687(0xe9))/0x1*(parseInt(_0x348687(0x133))/0x2)+parseInt(_0x348687(0x139))/0x3*(-parseInt(_0x348687(0x130))/0x4)+-parseInt(_0x348687(0x131))/0x5*(-parseInt(_0x348687(0x103))/0x6)+parseInt(_0x348687(0x132))/0x7+-parseInt(_0x348687(0x11f))/0x8*(parseInt(_0x348687(0x101))/0x9)+-parseInt(_0x348687(0x138))/0xa*(-parseInt(_0x348687(0x120))/0xb)+parseInt(_0x348687(0xf1))/0xc*(-parseInt(_0x348687(0x13f))/0xd);if(_0x402869===_0x55048f)break;else _0x23545b['push'](_0x23545b['shift']());}catch(_0x2de979){_0x23545b['push'](_0x23545b['shift']());}}}(_0x1830,0xa4c0b));import{FocusTracker as _0x752a4e,KeystrokeHandler as _0x37b71d}from'ckeditor5/src/utils.js';function _0x4e25(_0x29a672,_0x501b8b){const _0x183071=_0x1830();return _0x4e25=function(_0x4e254e,_0x4313bd){_0x4e254e=_0x4e254e-0xe9;let _0x41d49=_0x183071[_0x4e254e];return _0x41d49;},_0x4e25(_0x29a672,_0x501b8b);}import{View as _0x26d09d,FocusCycler as _0x265099,createLabeledTextarea as _0x19fbdb}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x2e9a50,AIFormToolbarViewMainActionLabel as _0x10ca51}from'./aiformtoolbarview.js';import{AIFormContentArea as _0xd22247}from'./aiformcontentarea.js';import{AIFormErrorView as _0x500f35}from'./aiformerrorview.js';import{AIFormPromptView as _0x4f311e}from'./aiformpromptview.js';import{AIHistoryListView as _0x3170ed}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x908aa7}from'./aihistorylistitemview.js';import{PromptHistory as _0x46b843}from'./prompthistory.js';import{getTranslation as _0x4266b5}from'../../utils/common-translations.js';function _0x1830(){const _0x473990=['text','clear','Ask\x20AI\x20to\x20edit\x20or\x20generate','mainAction','replaceContent','setTemplate','label','_createHistoryView','value','isError','chain','bindTo','266229TIMUGp','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','60lltGok','locale','ck-ai-form','stopProcessing','focusTracker','reset','_promptHistory','REPLACE','_focusables','delegate','fire','element','shift\x20+\x20tab','startProcessing','promptView','fieldView','set','focusCycler','submit','submitPrompt','finishProcessing','ck-ai-form-content','prompt','queryView','focusLast','historyGroupView','insertButton','high','248EVxOcd','3253261glOnkJ','execute','handleError','_createPromptView','add','listenTo','render','tryAgainEvent','bindTemplate','ck-hidden','AI_ERROR_FAILED','Empty\x20history','tab','focus','clearHistory','toolbar','4RfeWvp','641995sIlpQz','7285481TtTGyY','546578SjqEUO','isVisible','contentArea','items','keystrokes','20hEZrsk','221685prpZxZ','div','errorView','search','_createToolbar','focusFirst','2176291ZVpOtZ','isProcessing','4pNtQmn','Ask\x20AI\x20to\x20improve\x20generated\x20text','insertContentBelow','createCollection','replaceButton','tryAgainButton','copyButtonView','trim','168GnFigT','bind','isEnabled','stopButton'];_0x1830=function(){return _0x473990;};return _0x1830();}import{escape as _0x4dbce8}from'es-toolkit/compat';export class AIFormView extends _0x26d09d{[_0x348de5(0x107)];[_0x348de5(0x137)];[_0x348de5(0x135)];[_0x348de5(0x12f)];[_0x348de5(0x111)];[_0x348de5(0x13b)];[_0x348de5(0x10b)];[_0x348de5(0x114)];[_0x348de5(0x109)];constructor(_0x3cb662,_0x3cc015,_0x34a2c1=''){const _0x30b5df=_0x348de5;super(_0x3cb662),this[_0x30b5df(0x113)](_0x30b5df(0xf3),!0x0),this[_0x30b5df(0x113)](_0x30b5df(0x140),!0x1),this[_0x30b5df(0x113)](_0x30b5df(0x119),''),this[_0x30b5df(0x113)](_0x30b5df(0xfd),''),this[_0x30b5df(0x113)](_0x30b5df(0xfe),!0x1),this[_0x30b5df(0x113)](_0x30b5df(0xf8),_0x10ca51[_0x30b5df(0x10a)]),this[_0x30b5df(0x109)]=new _0x46b843(),this[_0x30b5df(0x13b)]=new _0x500f35(_0x3cb662),this[_0x30b5df(0x135)]=new _0xd22247(_0x3cb662,_0x34a2c1),this[_0x30b5df(0x135)][_0x30b5df(0xf2)](_0x30b5df(0x140))['to'](this),this[_0x30b5df(0x135)][_0x30b5df(0xf2)](_0x30b5df(0xfd))['to'](this),this[_0x30b5df(0x12f)]=this[_0x30b5df(0x13d)](),this[_0x30b5df(0x12f)][_0x30b5df(0xf2)](_0x30b5df(0xf8))['to'](this),this[_0x30b5df(0x111)]=this[_0x30b5df(0x123)](),this[_0x30b5df(0x107)]=new _0x752a4e(),this[_0x30b5df(0x137)]=new _0x37b71d(),this[_0x30b5df(0x10b)]=this[_0x30b5df(0xec)]([this[_0x30b5df(0x135)],this[_0x30b5df(0x135)][_0x30b5df(0xef)],this[_0x30b5df(0x12f)],this[_0x30b5df(0x111)]]),this[_0x30b5df(0x114)]=new _0x265099({'focusables':this[_0x30b5df(0x10b)],'focusTracker':this[_0x30b5df(0x107)],'keystrokeHandler':this[_0x30b5df(0x137)],'actions':{'focusPrevious':_0x30b5df(0x10f),'focusNext':_0x30b5df(0x12c)}}),this[_0x30b5df(0x114)][_0x30b5df(0xff)](this[_0x30b5df(0x111)][_0x30b5df(0x114)]),this[_0x30b5df(0x111)][_0x30b5df(0x11a)][_0x30b5df(0x112)][_0x30b5df(0xf2)](_0x30b5df(0xfd))['to'](this,_0x30b5df(0x119));const _0x2b4382=this[_0x30b5df(0x128)];this[_0x30b5df(0xfa)]({'tag':_0x30b5df(0x13a),'attributes':{'class':['ck',_0x30b5df(0x105),_0x3cc015],'tabindex':'-1'},'children':[{'tag':_0x30b5df(0x13a),'attributes':{'class':['ck',_0x30b5df(0x118)]},'children':[{'tag':_0x30b5df(0x13a),'attributes':{'class':[_0x2b4382['if'](_0x30b5df(0xfe),_0x30b5df(0x129),_0x215f5d=>!_0x215f5d)]},'children':[this[_0x30b5df(0x13b)]]},this[_0x30b5df(0x135)],this[_0x30b5df(0x12f)],this[_0x30b5df(0x111)]]}]});}[_0x348de5(0x126)](){const _0x54fa11=_0x348de5;super[_0x54fa11(0x126)](),this[_0x54fa11(0x107)][_0x54fa11(0x124)](this[_0x54fa11(0x135)][_0x54fa11(0x10e)]),this[_0x54fa11(0x107)][_0x54fa11(0x124)](this[_0x54fa11(0x135)][_0x54fa11(0xef)][_0x54fa11(0x10e)]),this[_0x54fa11(0x107)][_0x54fa11(0x124)](this[_0x54fa11(0x12f)][_0x54fa11(0x10e)]),this[_0x54fa11(0x107)][_0x54fa11(0x124)](this[_0x54fa11(0x111)][_0x54fa11(0x10e)]),this[_0x54fa11(0x137)][_0x54fa11(0x125)](this[_0x54fa11(0x10e)]);}[_0x348de5(0x12d)](_0x5a5431=0x1){const _0x428c45=_0x348de5;-0x1===_0x5a5431?this[_0x428c45(0x114)][_0x428c45(0x11b)]():this[_0x428c45(0x114)][_0x428c45(0x13e)]();}[_0x348de5(0x108)](){const _0x536078=_0x348de5;this[_0x536078(0x119)]='',this[_0x536078(0xfd)]='',this[_0x536078(0xfe)]=!0x1,this[_0x536078(0x111)][_0x536078(0x108)](),this[_0x536078(0x135)][_0x536078(0x134)]=!0x1,this[_0x536078(0x12f)][_0x536078(0x134)]=!0x1;}[_0x348de5(0x123)](){const _0x49e6ad=_0x348de5,_0x4c92f8=this[_0x49e6ad(0x104)],_0x3dc36f=new _0x4f311e(_0x4c92f8,{'queryView':{'label':_0x4266b5(_0x4c92f8,_0x49e6ad(0xf7)),'creator':_0x19fbdb,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x4266b5(_0x4c92f8,_0x49e6ad(0x12b)),'secondary':_0x4266b5(_0x4c92f8,_0x49e6ad(0x102))}}},'filteredView':this[_0x49e6ad(0xfc)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x3dc36f[_0x49e6ad(0xf2)](_0x49e6ad(0xf3))['to'](this,_0x49e6ad(0xf3),this,_0x49e6ad(0x140),(_0x6a6dee,_0x1c2156)=>_0x6a6dee&&!_0x1c2156),this[_0x49e6ad(0x125)](_0x3dc36f,_0x49e6ad(0x115),(_0x261a3b,_0x22453d)=>{const _0x43a88b=_0x49e6ad;this[_0x43a88b(0x119)]=_0x22453d;const _0x33e2b3=_0x4dbce8(_0x22453d);this[_0x43a88b(0x10d)](_0x43a88b(0x116),_0x33e2b3),_0x22453d[_0x43a88b(0xf0)]()&&this[_0x43a88b(0x109)][_0x43a88b(0x124)]({'prompt':_0x33e2b3},0x0);},{'priority':_0x49e6ad(0x11e)}),_0x3dc36f;}[_0x348de5(0xfc)](){const _0x4e1d5b=_0x348de5,_0x59d171=new _0x3170ed(this[_0x4e1d5b(0x104)]);return _0x59d171[_0x4e1d5b(0x11c)][_0x4e1d5b(0x136)][_0x4e1d5b(0x100)](this[_0x4e1d5b(0x109)])['as'](_0x908aa7),_0x59d171['on'](_0x4e1d5b(0x12e),()=>{const _0x411e12=_0x4e1d5b;this[_0x411e12(0x109)][_0x411e12(0xf6)](),this[_0x411e12(0x111)][_0x411e12(0x13c)](''),this[_0x411e12(0x111)][_0x411e12(0x12d)]();}),_0x59d171;}[_0x348de5(0x13d)](){const _0x1a8051=_0x348de5,_0x10165d=new _0x2e9a50(this[_0x1a8051(0x104)]);return _0x10165d[_0x1a8051(0xed)][_0x1a8051(0xf2)](_0x1a8051(0xf3))['to'](this,_0x1a8051(0xf3),this,_0x1a8051(0x140),this,_0x1a8051(0xfd),(_0x2fd173,_0x5c0fd9,_0x328bdd)=>_0x2fd173&&!_0x5c0fd9&&!!_0x328bdd),_0x10165d[_0x1a8051(0xed)][_0x1a8051(0x10c)](_0x1a8051(0x121))['to'](this,_0x1a8051(0xf9)),_0x10165d[_0x1a8051(0x11d)][_0x1a8051(0xf2)](_0x1a8051(0xf3))['to'](this,_0x1a8051(0xf3),this,_0x1a8051(0x140),this,_0x1a8051(0xfd),(_0x411c15,_0x3f6f4f,_0x5325b2)=>_0x411c15&&!_0x3f6f4f&&!!_0x5325b2),_0x10165d[_0x1a8051(0x11d)][_0x1a8051(0x10c)](_0x1a8051(0x121))['to'](this,_0x1a8051(0xeb)),_0x10165d[_0x1a8051(0xee)][_0x1a8051(0xf2)](_0x1a8051(0xf3))['to'](this,_0x1a8051(0xf3),this,_0x1a8051(0x140),(_0x20ed79,_0x48ace6)=>_0x20ed79&&!_0x48ace6),_0x10165d[_0x1a8051(0xee)][_0x1a8051(0x10c)](_0x1a8051(0x121))['to'](this,_0x1a8051(0x127)),_0x10165d[_0x1a8051(0xf4)][_0x1a8051(0xf2)](_0x1a8051(0xf3))['to'](this,_0x1a8051(0x140)),_0x10165d[_0x1a8051(0xf4)][_0x1a8051(0x10c)](_0x1a8051(0x121))['to'](this,_0x1a8051(0x106)),_0x10165d;}[_0x348de5(0x110)](){const _0x48b2ac=_0x348de5;this[_0x48b2ac(0xfd)]='',this[_0x48b2ac(0xfe)]=!0x1,this[_0x48b2ac(0x140)]=!0x0,this[_0x48b2ac(0x135)][_0x48b2ac(0x134)]=!0x0,this[_0x48b2ac(0x12f)][_0x48b2ac(0x134)]=!0x0,this[_0x48b2ac(0x135)][_0x48b2ac(0x12d)]();}[_0x348de5(0x117)](){const _0x2b8c58=_0x348de5,_0x50728b=this[_0x2b8c58(0x104)];this[_0x2b8c58(0x140)]=!0x1,this[_0x2b8c58(0x119)]='',this[_0x2b8c58(0x111)][_0x2b8c58(0x108)](),this[_0x2b8c58(0xfd)]&&(this[_0x2b8c58(0x111)][_0x2b8c58(0x11a)][_0x2b8c58(0xfb)]=_0x4266b5(_0x50728b,_0x2b8c58(0xea)));}[_0x348de5(0x122)](_0x2ba8f9){const _0x72ba68=_0x348de5,_0x224b0b=this[_0x72ba68(0x104)];this[_0x72ba68(0x117)](),this[_0x72ba68(0xfe)]=!0x0,this[_0x72ba68(0x13b)][_0x72ba68(0xf5)]=_0x2ba8f9||_0x4266b5(_0x224b0b,_0x72ba68(0x12a)),this[_0x72ba68(0xfd)]||(this[_0x72ba68(0x135)][_0x72ba68(0x134)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ea975=_0x323d;(function(_0x46ff0c,_0x1be69e){const _0x5565e1=_0x323d,_0x548a0e=_0x46ff0c();while(!![]){try{const _0x32f995=parseInt(_0x5565e1(0x10e))/0x1*(-parseInt(_0x5565e1(0x100))/0x2)+-parseInt(_0x5565e1(0x163))/0x3+-parseInt(_0x5565e1(0x15b))/0x4*(-parseInt(_0x5565e1(0x12c))/0x5)+-parseInt(_0x5565e1(0x121))/0x6*(-parseInt(_0x5565e1(0x10f))/0x7)+-parseInt(_0x5565e1(0x166))/0x8*(parseInt(_0x5565e1(0x165))/0x9)+-parseInt(_0x5565e1(0x114))/0xa*(-parseInt(_0x5565e1(0x145))/0xb)+-parseInt(_0x5565e1(0x128))/0xc*(parseInt(_0x5565e1(0x105))/0xd);if(_0x32f995===_0x1be69e)break;else _0x548a0e['push'](_0x548a0e['shift']());}catch(_0x22e48c){_0x548a0e['push'](_0x548a0e['shift']());}}}(_0x1bab,0x7114b));import{ContextPlugin as _0x407e92}from'ckeditor5/src/core.js';import{AIConnector as _0x404b18}from'../aicore/aiconnector.js';function _0x323d(_0x2d2733,_0x7fac2e){const _0x1bab38=_0x1bab();return _0x323d=function(_0x323dfb,_0x3ff277){_0x323dfb=_0x323dfb-0xfa;let _0x3c6af2=_0x1bab38[_0x323dfb];return _0x3c6af2;},_0x323d(_0x2d2733,_0x7fac2e);}import{AIEditing as _0x2fff82}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x4fe0c8,AIBalloonView as _0x5f04eb}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x1e3435}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x5e2c65,Rect as _0x4c9155,scrollViewportToShowTarget as _0x4e56ba}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x34a7a2}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x12605b}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0xce12da}from'../aicore/utils/common-translations.js';function _0x1bab(){const _0x4490ca=['$graveyard','_isUpdatingMarkers','requires','get','root','ranges','show','differ','isOfficialPlugin','22NtnxTB','isOpen','startsWith','delegate','filter','2977nsHnfs','commands','_showDialog','change','AIBalloon','view','trackChanges','window','markers','28195lTwsdU','455aMBuis','bind','updateContent','hide','_setupVisualSelection','250iuDvrt','left','locale','_calculateOptimalTopPosition','showRotator','plugins','fire','off','\x20ai-balloon-rotator','render','headerView','isPremiumPlugin','_cleanupMarkerRemovalListener','74778UwNyRb','top','width','showFakeVisualSelection','end','label','getIntersection','15996bkjZpe','ai-selection:','once','getMarkersGroup','1187005rpyycv','Dialog','config','stopAutoScroll','_calculateDialogPosition','balloonView','editing','_setupMarkerRemovalListener','stopListening','ai-balloon-selection','mainView','content','AIEditing','_getSelectionElements','hideFakeVisualSelection','ai.availableReplyActions','showBlockingError','ai-balloon-','listenTo','document','updatePosition','startAutoScroll','title','dialogClosed','ai-selection','25487yJXryp','rootName','start','selectionRemoved','length','getChangedMarkers','context','_updateBalloon','setupRotator','height','isTrackChangesOn','_config','icon','pluginName','aiBalloon','AI_ACTIONS_SELECTION_REMOVED_ERROR','model','round','getBoundingRect','close','open','_pendingRenderCallback','12uYvUUL','value','index','getVisible','ai-balloon','iconView','max','isEqual','286362oaHsQi','bottom','108obOlGm','270792xxbUgw'];_0x1bab=function(){return _0x4490ca;};return _0x1bab();}export const AI_BALLOON_EVENT_NAMES=[..._0x4fe0c8,_0x5ea975(0x143),_0x5ea975(0x148)];const z=0xa;export class AIBalloon extends _0x407e92{static get[_0x5ea975(0x169)](){return[_0x404b18,_0x2fff82];}static get[_0x5ea975(0x152)](){const _0x518604=_0x5ea975;return _0x518604(0x109);}static get[_0x5ea975(0xff)](){return!0x0;}static get[_0x5ea975(0x11f)](){return!0x0;}[_0x5ea975(0x101)]=!0x1;[_0x5ea975(0x150)];[_0x5ea975(0x168)]=!0x1;[_0x5ea975(0x15a)]=null;[_0x5ea975(0x159)](_0x47b3ce){const _0x29131a=_0x5ea975,_0x403316=_0x34a7a2(this[_0x29131a(0x14b)]);if(this[_0x29131a(0x150)]=_0x47b3ce,this[_0x29131a(0x101)])return void this[_0x29131a(0x14c)](_0x47b3ce);const _0x100535=this[_0x29131a(0x14b)][_0x29131a(0x12e)][_0x29131a(0xfa)](_0x29131a(0x13b))||[..._0x12605b],_0x2339da=_0x403316?.[_0x29131a(0x106)][_0x29131a(0xfa)](_0x29131a(0x10b)),_0x229a3e=_0x2339da?.[_0x29131a(0x15c)];this[_0x29131a(0x131)]=new _0x5f04eb(_0x403316[_0x29131a(0x116)],_0x47b3ce,_0x100535,!!_0x229a3e),this[_0x29131a(0x131)][_0x29131a(0x103)](..._0x4fe0c8)['to'](this),_0x2339da&&this[_0x29131a(0x131)][_0x29131a(0x110)](_0x29131a(0x14f))['to'](_0x2339da,_0x29131a(0x15c)),this[_0x29131a(0x107)](_0x47b3ce);}[_0x5ea975(0x158)](){const _0x145401=_0x5ea975;_0x34a7a2(this[_0x145401(0x14b)])[_0x145401(0x119)][_0x145401(0xfa)](_0x145401(0x12d))[_0x145401(0x112)]();}[_0x5ea975(0x141)](){const _0xcbefe7=_0x5ea975;this[_0xcbefe7(0x131)]&&this[_0xcbefe7(0x131)][_0xcbefe7(0x141)]();}[_0x5ea975(0x12f)](){const _0x4d09bf=_0x5ea975;this[_0x4d09bf(0x131)]&&this[_0x4d09bf(0x131)][_0x4d09bf(0x12f)]();}[_0x5ea975(0x14c)](_0x26b50f){const _0x8778ee=_0x5ea975,_0x5a81ee=_0x34a7a2(this[_0x8778ee(0x14b)]),_0x1e9257=_0x5a81ee[_0x8778ee(0x119)][_0x8778ee(0xfa)](_0x8778ee(0x12d));this[_0x8778ee(0x15a)]&&(_0x5a81ee[_0x8778ee(0x132)][_0x8778ee(0x10a)][_0x8778ee(0x11b)](_0x8778ee(0x11d),this[_0x8778ee(0x15a)]),this[_0x8778ee(0x15a)]=null),this[_0x8778ee(0x168)]=!0x0,_0x1e9257[_0x8778ee(0x10a)]?.[_0x8778ee(0x11e)]&&(_0x1e9257[_0x8778ee(0x10a)][_0x8778ee(0x11e)][_0x8778ee(0x126)]=_0x26b50f[_0x8778ee(0x142)],_0x1e9257[_0x8778ee(0x10a)][_0x8778ee(0x11e)][_0x8778ee(0x160)]&&_0x26b50f[_0x8778ee(0x151)]&&(_0x1e9257[_0x8778ee(0x10a)][_0x8778ee(0x11e)][_0x8778ee(0x160)][_0x8778ee(0x137)]=_0x26b50f[_0x8778ee(0x151)])),this[_0x8778ee(0x131)][_0x8778ee(0x111)](_0x26b50f[_0x8778ee(0x136)]),this[_0x8778ee(0x113)](_0x26b50f[_0x8778ee(0xfc)],_0x26b50f[_0x8778ee(0x15d)]),this[_0x8778ee(0x15a)]=()=>{const _0x5bcf99=_0x8778ee;this[_0x5bcf99(0x168)]=!0x1,this[_0x5bcf99(0x15a)]=null,_0x1e9257[_0x5bcf99(0x10a)]&&_0x1e9257[_0x5bcf99(0x10a)][_0x5bcf99(0x140)]();},_0x5a81ee[_0x8778ee(0x132)][_0x8778ee(0x10a)][_0x8778ee(0x12a)](_0x8778ee(0x11d),this[_0x8778ee(0x15a)]);}[_0x5ea975(0x113)](_0xf3bbf9,_0x38a2d8){const _0x11d20d=_0x5ea975;this[_0x11d20d(0x14b)][_0x11d20d(0x119)][_0x11d20d(0xfa)](_0x2fff82)[_0x11d20d(0x124)](_0xf3bbf9,_0x11d20d(0x13d)+_0x38a2d8,!0x0,!0x0);}[_0x5ea975(0x107)](_0x530a59){const _0x14d379=_0x5ea975,_0xfd551f=_0x34a7a2(this[_0x14d379(0x14b)]);this[_0x14d379(0x113)](_0x530a59[_0x14d379(0xfc)],_0x530a59[_0x14d379(0x15d)]);const _0x3f99d3=this[_0x14d379(0x139)]();_0x3f99d3&&_0x3f99d3[0x0]&&_0x4e56ba({'target':_0x3f99d3[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0xfd551f[_0x14d379(0x119)][_0x14d379(0xfa)](_0x14d379(0x12d))[_0x14d379(0xfd)]({'title':_0x530a59[_0x14d379(0x142)],'icon':_0x530a59[_0x14d379(0x151)],'hasCloseButton':!0x0,'id':_0x14d379(0x153),'position':this[_0x14d379(0x130)][_0x14d379(0x110)](this),'className':_0x14d379(0x15f)+(_0x530a59[_0x14d379(0x118)]?_0x14d379(0x11c):''),'content':this[_0x14d379(0x131)],'onShow':_0x265616=>{const _0x416eb4=_0x14d379;_0x530a59[_0x416eb4(0x118)]&&this[_0x416eb4(0x131)][_0x416eb4(0x14d)](_0x265616),this[_0x416eb4(0x133)](),this[_0x416eb4(0x101)]=!0x0;},'onHide':()=>{const _0x50b760=_0x14d379;this[_0x50b760(0x14b)][_0x50b760(0x119)][_0x50b760(0xfa)](_0x50b760(0x138))[_0x50b760(0x13a)](_0x50b760(0x13d)+this[_0x50b760(0x150)][_0x50b760(0x15d)]),this[_0x50b760(0x120)](),this[_0x50b760(0x11a)](_0x50b760(0x143)),this[_0x50b760(0x101)]=!0x1;}});}[_0x5ea975(0x130)](_0x1a1ba2,_0x3a321c){const _0x59b99a=_0x5ea975;if(!_0x3a321c)return null;const _0x4897bf=this[_0x59b99a(0x139)]();if(!_0x4897bf||0x0===_0x4897bf[_0x59b99a(0x149)])return{'left':Math[_0x59b99a(0x156)](_0x3a321c[_0x59b99a(0x115)]+_0x3a321c[_0x59b99a(0x123)]/0x2-_0x1a1ba2[_0x59b99a(0x123)]/0x2),'top':Math[_0x59b99a(0x156)](_0x3a321c[_0x59b99a(0x122)]+_0x3a321c[_0x59b99a(0x14e)]/0x2-_0x1a1ba2[_0x59b99a(0x14e)]/0x2)};const _0x3e43eb=Math[_0x59b99a(0x156)](_0x3a321c[_0x59b99a(0x115)]+_0x3a321c[_0x59b99a(0x123)]/0x2-_0x1a1ba2[_0x59b99a(0x123)]/0x2),_0x4a18fe=new _0x4c9155(_0x4897bf[0x0]),_0x1304be=new _0x4c9155(_0x4897bf[_0x4897bf[_0x59b99a(0x149)]-0x1]),_0x38077c=_0x1a1ba2[_0x59b99a(0x14e)],_0x1129fb=this[_0x59b99a(0x150)][_0x59b99a(0x118)]?0x8:0x0;return{'left':_0x3e43eb,'top':this[_0x59b99a(0x117)](_0x4a18fe,_0x1304be,_0x38077c,_0x1129fb,_0x3a321c)};}[_0x5ea975(0x117)](_0x261b7f,_0x57da5b,_0xde42aa,_0x187d0=0x0,_0x44b79a){const _0x5ee510=_0x5ea975,_0x5630f8=_0xde42aa+_0x187d0,_0x28da65=new _0x4c9155(_0x5e2c65[_0x5ee510(0x10c)]),_0x50ab03=[_0x261b7f[_0x5ee510(0x15e)](),_0x57da5b[_0x5ee510(0x15e)]()][_0x5ee510(0x104)](_0x1901da=>_0x1901da),_0x5a3a00=_0x4c9155[_0x5ee510(0x157)](_0x50ab03);if(!_0x5a3a00)return Math[_0x5ee510(0x156)](_0x44b79a[_0x5ee510(0x122)]+_0x44b79a[_0x5ee510(0x14e)]/0x2);const _0x57f397=_0x28da65[_0x5ee510(0x127)](_0x5a3a00);if(!_0x57f397)return Math[_0x5ee510(0x156)](_0x44b79a[_0x5ee510(0x122)]+_0x44b79a[_0x5ee510(0x14e)]/0x2);const _0xc4aec2=_0x44b79a[_0x5ee510(0x15e)](),_0x4386d5=_0xc4aec2&&_0x5a3a00[_0x5ee510(0x14e)]>_0xc4aec2[_0x5ee510(0x14e)],_0x3bcf4c=_0x57f397[_0x5ee510(0x122)],_0x5c0aac=_0x57f397[_0x5ee510(0x164)];if(_0x4386d5){const _0x5bb331=(_0xc4aec2||_0x28da65)[_0x5ee510(0x14e)]/0x2-_0x5630f8/0x2,_0x395f43=_0x3bcf4c-z-_0x44b79a[_0x5ee510(0x122)],_0x1c6ef2=_0x44b79a[_0x5ee510(0x164)]-_0x5c0aac-z;return _0x395f43>=_0x5630f8?Math[_0x5ee510(0x161)](z,_0x3bcf4c-_0x5630f8-z):_0x1c6ef2>=_0x5630f8?_0x5c0aac+z:Math[_0x5ee510(0x161)](z,_0x5bb331);}const _0x1ea37b=_0x3bcf4c-_0x5630f8,_0x41ad82=_0x44b79a[_0x5ee510(0x164)]-_0x5c0aac-z,_0x38a703=_0x3bcf4c-z-_0x44b79a[_0x5ee510(0x122)];let _0x2a00b2;if(_0x41ad82>=_0x5630f8)_0x2a00b2=_0x5c0aac+z;else{if(_0x38a703>=_0x5630f8)_0x2a00b2=_0x1ea37b-z;else _0x2a00b2=_0x3bcf4c+_0x5a3a00[_0x5ee510(0x14e)]/0x2-_0x5630f8/0x2;}return _0x2a00b2;}[_0x5ea975(0x133)](){const _0x27e0c7=_0x5ea975,_0x52d944=_0x34a7a2(this[_0x27e0c7(0x14b)]);this[_0x27e0c7(0x13e)](_0x52d944[_0x27e0c7(0x155)][_0x27e0c7(0x13f)],_0x27e0c7(0x108),()=>{const _0x2486de=_0x27e0c7;if(this[_0x2486de(0x168)])return;for(const {name:_0x51eb54,data:{newRange:_0xe60a2}}of _0x52d944[_0x2486de(0x155)][_0x2486de(0x13f)][_0x2486de(0xfe)][_0x2486de(0x14a)]())if(_0x51eb54[_0x2486de(0x102)](_0x2486de(0x129))&&(_0xe60a2&&(_0xe60a2[_0x2486de(0x147)][_0x2486de(0x162)](_0xe60a2[_0x2486de(0x125)])||_0x2486de(0x167)==_0xe60a2[_0x2486de(0xfb)][_0x2486de(0x146)])||null==_0xe60a2)){const _0x22e9c9=_0xce12da(this[_0x2486de(0x14b)][_0x2486de(0x116)],_0x2486de(0x154));this[_0x2486de(0x131)][_0x2486de(0x13c)](_0x22e9c9),this[_0x2486de(0x11a)](_0x2486de(0x148));}});}[_0x5ea975(0x120)](){const _0x33ec56=_0x5ea975,_0x17f95a=_0x34a7a2(this[_0x33ec56(0x14b)]);this[_0x33ec56(0x134)](_0x17f95a[_0x33ec56(0x155)][_0x33ec56(0x13f)]);}[_0x5ea975(0x139)](){const _0x569b48=_0x5ea975,_0x373ca8=_0x34a7a2(this[_0x569b48(0x14b)]);return _0x1e3435(_0x373ca8[_0x569b48(0x132)],[..._0x373ca8[_0x569b48(0x155)][_0x569b48(0x10d)][_0x569b48(0x12b)](_0x569b48(0x144)),..._0x373ca8[_0x569b48(0x155)][_0x569b48(0x10d)][_0x569b48(0x12b)](_0x569b48(0x135))]);}}
23
+ const _0xecb3e7=_0x3e1c;(function(_0x16e035,_0x3ed646){const _0x1f2640=_0x3e1c,_0x70dcd3=_0x16e035();while(!![]){try{const _0x156331=-parseInt(_0x1f2640(0x188))/0x1+-parseInt(_0x1f2640(0x18a))/0x2*(-parseInt(_0x1f2640(0x1b0))/0x3)+parseInt(_0x1f2640(0x18f))/0x4*(-parseInt(_0x1f2640(0x1a8))/0x5)+-parseInt(_0x1f2640(0x1a3))/0x6*(parseInt(_0x1f2640(0x199))/0x7)+parseInt(_0x1f2640(0x16b))/0x8*(-parseInt(_0x1f2640(0x19d))/0x9)+parseInt(_0x1f2640(0x171))/0xa+parseInt(_0x1f2640(0x19a))/0xb*(parseInt(_0x1f2640(0x155))/0xc);if(_0x156331===_0x3ed646)break;else _0x70dcd3['push'](_0x70dcd3['shift']());}catch(_0x5b9427){_0x70dcd3['push'](_0x70dcd3['shift']());}}}(_0x367f,0xf0996));import{ContextPlugin as _0x34d93a}from'ckeditor5/src/core.js';import{AIConnector as _0x2e8acf}from'../aicore/aiconnector.js';import{AIEditing as _0xed72c8}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0xc8d226,AIBalloonView as _0x250920}from'./ui/aiballoonview.js';function _0x3e1c(_0x28667b,_0x268a72){const _0x367fe9=_0x367f();return _0x3e1c=function(_0x3e1c28,_0x24d3d9){_0x3e1c28=_0x3e1c28-0x150;let _0x343c7b=_0x367fe9[_0x3e1c28];return _0x343c7b;},_0x3e1c(_0x28667b,_0x268a72);}import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x1ac766}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x1593c4,Rect as _0x17046d,scrollViewportToShowTarget as _0x4d619d}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x268051}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0xd90966}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x4e1504}from'../aicore/utils/common-translations.js';function _0x367f(){const _0x10bd09=['Dialog','AI_ACTIONS_SELECTION_REMOVED_ERROR','stopListening','8SrqPxe','once','headerView','delegate','markers','change','stopAutoScroll','render','ai-selection','mainView','33544PaDsly','33JkoQrX','listenTo','start','842121wSxOSf','_config','getChangedMarkers','updatePosition','iconView','_setupMarkerRemovalListener','834RMlDkQ','fire','_setupVisualSelection','label','ai-balloon','363985fFVuUv','setupRotator','plugins','ai-balloon-selection','view','value','width','_isUpdatingMarkers','3FJchom','max','top','open','root','ai.availableReplyActions','filter','show','ai-selection:','editing','locale','_cleanupMarkerRemovalListener','ai-balloon-','\x20ai-balloon-rotator','getIntersection','index','_calculateDialogPosition','pluginName','getMarkersGroup','config','7942548XMBFXt','get','length','round','title','showRotator','_calculateOptimalTopPosition','_updateBalloon','commands','document','getBoundingRect','_pendingRenderCallback','startAutoScroll','AIBalloon','requires','isOpen','showBlockingError','trackChanges','differ','dialogClosed','end','model','8slTKHW','isPremiumPlugin','context','ranges','icon','height','3110820txMtlk','isEqual','startsWith','balloonView','hideFakeVisualSelection','off','left','selectionRemoved','hide','updateContent','AIEditing','_getSelectionElements','close','window','content','rootName','getVisible','_showDialog','bind','aiBalloon','isTrackChangesOn','showFakeVisualSelection','isOfficialPlugin','1298851iMxxWC','bottom','1785754RKCxPI','$graveyard'];_0x367f=function(){return _0x10bd09;};return _0x367f();}export const AI_BALLOON_EVENT_NAMES=[..._0xc8d226,_0xecb3e7(0x168),_0xecb3e7(0x178)];const ut=0xa;export class AIBalloon extends _0x34d93a{static get[_0xecb3e7(0x163)](){return[_0x2e8acf,_0xed72c8];}static get[_0xecb3e7(0x152)](){const _0x178b13=_0xecb3e7;return _0x178b13(0x162);}static get[_0xecb3e7(0x187)](){return!0x0;}static get[_0xecb3e7(0x16c)](){return!0x0;}[_0xecb3e7(0x164)]=!0x1;[_0xecb3e7(0x19e)];[_0xecb3e7(0x1af)]=!0x1;[_0xecb3e7(0x160)]=null;[_0xecb3e7(0x1b3)](_0x40b0bf){const _0x25cb71=_0xecb3e7,_0x50771c=_0x268051(this[_0x25cb71(0x16d)]);if(this[_0x25cb71(0x19e)]=_0x40b0bf,this[_0x25cb71(0x164)])return void this[_0x25cb71(0x15c)](_0x40b0bf);const _0x117033=this[_0x25cb71(0x16d)][_0x25cb71(0x154)][_0x25cb71(0x156)](_0x25cb71(0x1b5))||[..._0xd90966],_0x10e788=_0x50771c?.[_0x25cb71(0x15d)][_0x25cb71(0x156)](_0x25cb71(0x166)),_0x44d3e7=_0x10e788?.[_0x25cb71(0x1ad)];this[_0x25cb71(0x174)]=new _0x250920(_0x50771c[_0x25cb71(0x1ba)],_0x40b0bf,_0x117033,!!_0x44d3e7),this[_0x25cb71(0x174)][_0x25cb71(0x192)](..._0xc8d226)['to'](this),_0x10e788&&this[_0x25cb71(0x174)][_0x25cb71(0x183)](_0x25cb71(0x185))['to'](_0x10e788,_0x25cb71(0x1ad)),this[_0x25cb71(0x182)](_0x40b0bf);}[_0xecb3e7(0x17d)](){const _0x5bf58c=_0xecb3e7;_0x268051(this[_0x5bf58c(0x16d)])[_0x5bf58c(0x1aa)][_0x5bf58c(0x156)](_0x5bf58c(0x18c))[_0x5bf58c(0x179)]();}[_0xecb3e7(0x161)](){const _0x25145e=_0xecb3e7;this[_0x25145e(0x174)]&&this[_0x25145e(0x174)][_0x25145e(0x161)]();}[_0xecb3e7(0x195)](){const _0x4ee71a=_0xecb3e7;this[_0x4ee71a(0x174)]&&this[_0x4ee71a(0x174)][_0x4ee71a(0x195)]();}[_0xecb3e7(0x15c)](_0x5df7c8){const _0x4b3106=_0xecb3e7,_0x4642e8=_0x268051(this[_0x4b3106(0x16d)]),_0x210637=_0x4642e8[_0x4b3106(0x1aa)][_0x4b3106(0x156)](_0x4b3106(0x18c));this[_0x4b3106(0x160)]&&(_0x4642e8[_0x4b3106(0x1b9)][_0x4b3106(0x1ac)][_0x4b3106(0x176)](_0x4b3106(0x196),this[_0x4b3106(0x160)]),this[_0x4b3106(0x160)]=null),this[_0x4b3106(0x1af)]=!0x0,_0x210637[_0x4b3106(0x1ac)]?.[_0x4b3106(0x191)]&&(_0x210637[_0x4b3106(0x1ac)][_0x4b3106(0x191)][_0x4b3106(0x1a6)]=_0x5df7c8[_0x4b3106(0x159)],_0x210637[_0x4b3106(0x1ac)][_0x4b3106(0x191)][_0x4b3106(0x1a1)]&&_0x5df7c8[_0x4b3106(0x16f)]&&(_0x210637[_0x4b3106(0x1ac)][_0x4b3106(0x191)][_0x4b3106(0x1a1)][_0x4b3106(0x17f)]=_0x5df7c8[_0x4b3106(0x16f)])),this[_0x4b3106(0x174)][_0x4b3106(0x17a)](_0x5df7c8[_0x4b3106(0x198)]),this[_0x4b3106(0x1a5)](_0x5df7c8[_0x4b3106(0x16e)],_0x5df7c8[_0x4b3106(0x150)]),this[_0x4b3106(0x160)]=()=>{const _0x5ce0f0=_0x4b3106;this[_0x5ce0f0(0x1af)]=!0x1,this[_0x5ce0f0(0x160)]=null,_0x210637[_0x5ce0f0(0x1ac)]&&_0x210637[_0x5ce0f0(0x1ac)][_0x5ce0f0(0x1a0)]();},_0x4642e8[_0x4b3106(0x1b9)][_0x4b3106(0x1ac)][_0x4b3106(0x190)](_0x4b3106(0x196),this[_0x4b3106(0x160)]);}[_0xecb3e7(0x1a5)](_0x3c18b0,_0x44dc44){const _0x77f0e8=_0xecb3e7;this[_0x77f0e8(0x16d)][_0x77f0e8(0x1aa)][_0x77f0e8(0x156)](_0xed72c8)[_0x77f0e8(0x186)](_0x3c18b0,_0x77f0e8(0x1bc)+_0x44dc44,!0x0,!0x0);}[_0xecb3e7(0x182)](_0x5f379b){const _0x224953=_0xecb3e7,_0xaf92b9=_0x268051(this[_0x224953(0x16d)]);this[_0x224953(0x1a5)](_0x5f379b[_0x224953(0x16e)],_0x5f379b[_0x224953(0x150)]);const _0xb70ed0=this[_0x224953(0x17c)]();_0xb70ed0&&_0xb70ed0[0x0]&&_0x4d619d({'target':_0xb70ed0[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0xaf92b9[_0x224953(0x1aa)][_0x224953(0x156)](_0x224953(0x18c))[_0x224953(0x1b7)]({'title':_0x5f379b[_0x224953(0x159)],'icon':_0x5f379b[_0x224953(0x16f)],'hasCloseButton':!0x0,'id':_0x224953(0x184),'position':this[_0x224953(0x151)][_0x224953(0x183)](this),'className':_0x224953(0x1a7)+(_0x5f379b[_0x224953(0x15a)]?_0x224953(0x1bd):''),'content':this[_0x224953(0x174)],'onShow':_0x38c7fb=>{const _0x8dcf3e=_0x224953;_0x5f379b[_0x8dcf3e(0x15a)]&&this[_0x8dcf3e(0x174)][_0x8dcf3e(0x1a9)](_0x38c7fb),this[_0x8dcf3e(0x1a2)](),this[_0x8dcf3e(0x164)]=!0x0;},'onHide':()=>{const _0x49f8bf=_0x224953;this[_0x49f8bf(0x16d)][_0x49f8bf(0x1aa)][_0x49f8bf(0x156)](_0x49f8bf(0x17b))[_0x49f8bf(0x175)](_0x49f8bf(0x1bc)+this[_0x49f8bf(0x19e)][_0x49f8bf(0x150)]),this[_0x49f8bf(0x1bb)](),this[_0x49f8bf(0x1a4)](_0x49f8bf(0x168)),this[_0x49f8bf(0x164)]=!0x1;}});}[_0xecb3e7(0x151)](_0x567d64,_0xa37765){const _0x877832=_0xecb3e7;if(!_0xa37765)return null;const _0x4f814e=this[_0x877832(0x17c)]();if(!_0x4f814e||0x0===_0x4f814e[_0x877832(0x157)])return{'left':Math[_0x877832(0x158)](_0xa37765[_0x877832(0x177)]+_0xa37765[_0x877832(0x1ae)]/0x2-_0x567d64[_0x877832(0x1ae)]/0x2),'top':Math[_0x877832(0x158)](_0xa37765[_0x877832(0x1b2)]+_0xa37765[_0x877832(0x170)]/0x2-_0x567d64[_0x877832(0x170)]/0x2)};const _0x4d8fb3=Math[_0x877832(0x158)](_0xa37765[_0x877832(0x177)]+_0xa37765[_0x877832(0x1ae)]/0x2-_0x567d64[_0x877832(0x1ae)]/0x2),_0x1ce0c3=new _0x17046d(_0x4f814e[0x0]),_0x5d88af=new _0x17046d(_0x4f814e[_0x4f814e[_0x877832(0x157)]-0x1]),_0x5da642=_0x567d64[_0x877832(0x170)],_0x5a7e67=this[_0x877832(0x19e)][_0x877832(0x15a)]?0x8:0x0;return{'left':_0x4d8fb3,'top':this[_0x877832(0x15b)](_0x1ce0c3,_0x5d88af,_0x5da642,_0x5a7e67,_0xa37765)};}[_0xecb3e7(0x15b)](_0x438a05,_0x108fae,_0x5bf986,_0x3093c2=0x0,_0x311f27){const _0x292b62=_0xecb3e7,_0x3f0521=_0x5bf986+_0x3093c2,_0x2b4713=new _0x17046d(_0x1593c4[_0x292b62(0x17e)]),_0x4a5f94=[_0x438a05[_0x292b62(0x181)](),_0x108fae[_0x292b62(0x181)]()][_0x292b62(0x1b6)](_0x4f5c99=>_0x4f5c99),_0x3e3ce7=_0x17046d[_0x292b62(0x15f)](_0x4a5f94);if(!_0x3e3ce7)return Math[_0x292b62(0x158)](_0x311f27[_0x292b62(0x1b2)]+_0x311f27[_0x292b62(0x170)]/0x2);const _0x42e665=_0x2b4713[_0x292b62(0x1be)](_0x3e3ce7);if(!_0x42e665)return Math[_0x292b62(0x158)](_0x311f27[_0x292b62(0x1b2)]+_0x311f27[_0x292b62(0x170)]/0x2);const _0x26ac32=_0x311f27[_0x292b62(0x181)](),_0x37f3d9=_0x26ac32&&_0x3e3ce7[_0x292b62(0x170)]>_0x26ac32[_0x292b62(0x170)],_0x7c59e6=_0x42e665[_0x292b62(0x1b2)],_0x478994=_0x42e665[_0x292b62(0x189)];if(_0x37f3d9){const _0x2ce1b1=(_0x26ac32||_0x2b4713)[_0x292b62(0x170)]/0x2-_0x3f0521/0x2,_0x156f7e=_0x7c59e6-ut-_0x311f27[_0x292b62(0x1b2)],_0x2f360c=_0x311f27[_0x292b62(0x189)]-_0x478994-ut;return _0x156f7e>=_0x3f0521?Math[_0x292b62(0x1b1)](ut,_0x7c59e6-_0x3f0521-ut):_0x2f360c>=_0x3f0521?_0x478994+ut:Math[_0x292b62(0x1b1)](ut,_0x2ce1b1);}const _0x279810=_0x7c59e6-_0x3f0521,_0x4dcb30=_0x311f27[_0x292b62(0x189)]-_0x478994-ut,_0x3ec2ae=_0x7c59e6-ut-_0x311f27[_0x292b62(0x1b2)];let _0x2e7706;if(_0x4dcb30>=_0x3f0521)_0x2e7706=_0x478994+ut;else{if(_0x3ec2ae>=_0x3f0521)_0x2e7706=_0x279810-ut;else _0x2e7706=_0x7c59e6+_0x3e3ce7[_0x292b62(0x170)]/0x2-_0x3f0521/0x2;}return _0x2e7706;}[_0xecb3e7(0x1a2)](){const _0x5d273a=_0xecb3e7,_0xcd8819=_0x268051(this[_0x5d273a(0x16d)]);this[_0x5d273a(0x19b)](_0xcd8819[_0x5d273a(0x16a)][_0x5d273a(0x15e)],_0x5d273a(0x194),()=>{const _0x24a463=_0x5d273a;if(this[_0x24a463(0x1af)])return;for(const {name:_0x39aa5f,data:{newRange:_0x2906d5}}of _0xcd8819[_0x24a463(0x16a)][_0x24a463(0x15e)][_0x24a463(0x167)][_0x24a463(0x19f)]())if(_0x39aa5f[_0x24a463(0x173)](_0x24a463(0x1b8))&&(_0x2906d5&&(_0x2906d5[_0x24a463(0x19c)][_0x24a463(0x172)](_0x2906d5[_0x24a463(0x169)])||_0x24a463(0x18b)==_0x2906d5[_0x24a463(0x1b4)][_0x24a463(0x180)])||null==_0x2906d5)){const _0x2ab042=_0x4e1504(this[_0x24a463(0x16d)][_0x24a463(0x1ba)],_0x24a463(0x18d));this[_0x24a463(0x174)][_0x24a463(0x165)](_0x2ab042),this[_0x24a463(0x1a4)](_0x24a463(0x178));}});}[_0xecb3e7(0x1bb)](){const _0x254490=_0xecb3e7,_0x21b7a4=_0x268051(this[_0x254490(0x16d)]);this[_0x254490(0x18e)](_0x21b7a4[_0x254490(0x16a)][_0x254490(0x15e)]);}[_0xecb3e7(0x17c)](){const _0x208e8c=_0xecb3e7,_0x3b1eee=_0x268051(this[_0x208e8c(0x16d)]);return _0x1ac766(_0x3b1eee[_0x208e8c(0x1b9)],[..._0x3b1eee[_0x208e8c(0x16a)][_0x208e8c(0x193)][_0x208e8c(0x153)](_0x208e8c(0x197)),..._0x3b1eee[_0x208e8c(0x16a)][_0x208e8c(0x193)][_0x208e8c(0x153)](_0x208e8c(0x1ab))]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x1bfe06,_0x76f876){var _0xddf430=_0x3dc5,_0x4bb341=_0x1bfe06();while(!![]){try{var _0x3c4b5e=parseInt(_0xddf430(0xa0))/0x1*(parseInt(_0xddf430(0xa4))/0x2)+-parseInt(_0xddf430(0x9c))/0x3+parseInt(_0xddf430(0xa2))/0x4*(-parseInt(_0xddf430(0xa7))/0x5)+-parseInt(_0xddf430(0x9a))/0x6*(parseInt(_0xddf430(0x9b))/0x7)+-parseInt(_0xddf430(0x9d))/0x8+-parseInt(_0xddf430(0x9e))/0x9*(-parseInt(_0xddf430(0x99))/0xa)+parseInt(_0xddf430(0x98))/0xb*(parseInt(_0xddf430(0xa8))/0xc);if(_0x3c4b5e===_0x76f876)break;else _0x4bb341['push'](_0x4bb341['shift']());}catch(_0x12e85e){_0x4bb341['push'](_0x4bb341['shift']());}}}(_0x189a,0xcca64));import{View as _0x49fe3e}from'ckeditor5/src/ui.js';import{getTranslation as _0x2a98c4}from'../../aicore/utils/common-translations.js';function _0x3dc5(_0x364247,_0xf77009){var _0x189a3d=_0x189a();return _0x3dc5=function(_0x3dc5a7,_0x4a43de){_0x3dc5a7=_0x3dc5a7-0x98;var _0x292767=_0x189a3d[_0x3dc5a7];return _0x292767;},_0x3dc5(_0x364247,_0xf77009);}export class AIBalloonDisclaimerView extends _0x49fe3e{constructor(_0xd7c661){var _0x487093=_0x3dc5;super(_0xd7c661),this[_0x487093(0xa1)]({'tag':_0x487093(0xa5),'attributes':{'class':['ck',_0x487093(0xa3)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x487093(0x9f)]},'children':[{'text':_0x2a98c4(_0xd7c661,_0x487093(0xa6))}]}]});}}function _0x189a(){var _0x35f43a=['86aAstax','div','AI_DISCLAIMER_TEXT','1130DiylkX','94260gzAFaM','1903iQdKgg','1682810ZItmam','294SifuFX','33999EGPQVA','2166687KeCSvJ','3275104pJLLPR','63bCvMGB','ck-ai-balloon__disclaimer-content','31278HCzqoD','setTemplate','29628AsHlbn','ck-ai-balloon__disclaimer'];_0x189a=function(){return _0x35f43a;};return _0x189a();}
23
+ (function(_0x43a225,_0x46cf71){var _0x665c14=_0x2577,_0x17f7c6=_0x43a225();while(!![]){try{var _0xd804e7=parseInt(_0x665c14(0x1e6))/0x1+parseInt(_0x665c14(0x1e1))/0x2*(parseInt(_0x665c14(0x1df))/0x3)+parseInt(_0x665c14(0x1e5))/0x4+-parseInt(_0x665c14(0x1e7))/0x5*(-parseInt(_0x665c14(0x1e0))/0x6)+-parseInt(_0x665c14(0x1e4))/0x7*(parseInt(_0x665c14(0x1db))/0x8)+parseInt(_0x665c14(0x1d9))/0x9+-parseInt(_0x665c14(0x1de))/0xa;if(_0xd804e7===_0x46cf71)break;else _0x17f7c6['push'](_0x17f7c6['shift']());}catch(_0x280076){_0x17f7c6['push'](_0x17f7c6['shift']());}}}(_0x50b3,0x73264));function _0x50b3(){var _0xb287f2=['1089684DKnHKn','setTemplate','5232480wuVOXJ','div','ck-ai-balloon__disclaimer','12947870OPIkMx','129yHZDfn','2580AsHJlh','35946ABstEb','AI_DISCLAIMER_TEXT','ck-ai-balloon__disclaimer-content','7qFcvlk','1066204DocFQn','871743OrcNdq','4515mtHlVr'];_0x50b3=function(){return _0xb287f2;};return _0x50b3();}import{View as _0x138c81}from'ckeditor5/src/ui.js';function _0x2577(_0x381164,_0x3f24b2){var _0x50b380=_0x50b3();return _0x2577=function(_0x2577b8,_0x39086c){_0x2577b8=_0x2577b8-0x1d9;var _0x36893e=_0x50b380[_0x2577b8];return _0x36893e;},_0x2577(_0x381164,_0x3f24b2);}import{getTranslation as _0x8d4b33}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x138c81{constructor(_0x2198ac){var _0x1aecbe=_0x2577;super(_0x2198ac),this[_0x1aecbe(0x1da)]({'tag':_0x1aecbe(0x1dc),'attributes':{'class':['ck',_0x1aecbe(0x1dd)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x1aecbe(0x1e3)]},'children':[{'text':_0x8d4b33(_0x2198ac,_0x1aecbe(0x1e2))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x59e4(_0x3d1575,_0x28c3d0){const _0x212c7b=_0x212c();return _0x59e4=function(_0x59e445,_0x2bc747){_0x59e445=_0x59e445-0x1bb;let _0x435973=_0x212c7b[_0x59e445];return _0x435973;},_0x59e4(_0x3d1575,_0x28c3d0);}const _0x3281e=_0x59e4;(function(_0x100901,_0x1956b8){const _0x2e0397=_0x59e4,_0x4008e8=_0x100901();while(!![]){try{const _0x3f4be6=-parseInt(_0x2e0397(0x20b))/0x1+-parseInt(_0x2e0397(0x1c6))/0x2+parseInt(_0x2e0397(0x1c9))/0x3+-parseInt(_0x2e0397(0x1f4))/0x4*(parseInt(_0x2e0397(0x215))/0x5)+parseInt(_0x2e0397(0x210))/0x6+-parseInt(_0x2e0397(0x1ce))/0x7+parseInt(_0x2e0397(0x1c1))/0x8*(parseInt(_0x2e0397(0x1e7))/0x9);if(_0x3f4be6===_0x1956b8)break;else _0x4008e8['push'](_0x4008e8['shift']());}catch(_0x51b706){_0x4008e8['push'](_0x4008e8['shift']());}}}(_0x212c,0x2905c));import{ButtonView as _0x1eac39,View as _0x281f21,ViewCollection as _0x3ac241,FocusCycler as _0x4c2510}from'ckeditor5/src/ui.js';import{FocusTracker as _0x4fc04a,KeystrokeHandler as _0x164961}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x3e6997,IconPreviousArrow as _0x4e606e}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x48ff1e}from'./aiballoontoolbarview.js';function _0x212c(){const _0x399748=['locale','_getScrollableElement','headerView','suggestButton','shift\x20+\x20tab','listenTo','insertSuggestion','focus','toolbar','errorMessage','children','div','ck-hidden','focusCycler','mainView','setTemplate','focusTracker','_addToolbar','AI_BALLOON_NEXT_TOOLTIP','setupRotator','fire','destroy','applyButton','ai-balloon-content','5562rTFEqS','_createPreviousButtonView','isEnabled','stop','disclaimerView','_createNextButtonView','ck-ai-suggestion__error-text','_availableActions','includes','isLoading','isErrorVisible','addMany','showNext','4oODSDE','isTrackChangesOn','getIndex','focusFirst','_mainView','clear','showSuggestButton','bindTemplate','focusLast','createCollection','_dialogContent','_addContentView','stopAutoScroll','span','change:isTrackChangesOn','startAutoScroll','AI_BALLOON_PREVIOUS_TOOLTIP','execute','view','add','tab','showError','setLoading','229455ZkBZXh','remove','_createErrorView','start','ck-ai-suggestion__error','815844bvjSjm','_focusables','element','_errorView','ai-balloon-error','16250IQSuva','_addDisclaimerView','set','updateContent','bodyView','render','showRecoverableError','10232KOBNmL','keystrokes','hideError','applySuggestion','scrollManager','637298oJByFF','clearLoading','_initializeScrollManager','194619KwXzDE','showApplyButton','bind','showBlockingError','showPrevious','1903209VCvJGA'];_0x212c=function(){return _0x399748;};return _0x212c();}import{AIBalloonDisclaimerView as _0xf57972}from'./aiballoondisclaimerview.js';import{getTranslation as _0x33eb73}from'../../aicore/utils/common-translations.js';import{ScrollManager as _0x59f473}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0x4b5164}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x3281e(0x1c4),_0x3281e(0x1d5),_0x3281e(0x1f3),_0x3281e(0x1cd)];export class AIBalloonView extends _0x281f21{[_0x3281e(0x1df)];[_0x3281e(0x1c2)];[_0x3281e(0x1dc)];[_0x3281e(0x1ee)];[_0x3281e(0x211)];[_0x3281e(0x213)];[_0x3281e(0x1c5)];constructor(_0xb0ea58,_0x541815,_0xee0a15,_0xa27ad0){const _0x2d651e=_0x3281e;super(_0xb0ea58),this[_0x2d651e(0x1ee)]=_0xee0a15,this[_0x2d651e(0x1bc)](_0x2d651e(0x1f0),!0x1),this[_0x2d651e(0x1bc)](_0x2d651e(0x1f5),_0xa27ad0),this[_0x2d651e(0x1bc)](_0x2d651e(0x1f1),!0x1),this[_0x2d651e(0x1bc)](_0x2d651e(0x1d8),''),this[_0x2d651e(0x1df)]=new _0x4fc04a(),this[_0x2d651e(0x1c2)]=new _0x164961(),this[_0x2d651e(0x211)]=this[_0x2d651e(0x1fd)](),this[_0x2d651e(0x1dc)]=new _0x4c2510({'focusables':this[_0x2d651e(0x211)],'focusTracker':this[_0x2d651e(0x1df)],'keystrokeHandler':this[_0x2d651e(0x1c2)],'actions':{'focusPrevious':_0x2d651e(0x1d3),'focusNext':_0x2d651e(0x208)}}),this[_0x2d651e(0x1fe)]=new _0x3ac241(),this[_0x2d651e(0x1ff)](_0x541815[_0x2d651e(0x1dd)]),this[_0x2d651e(0x1bb)](),this[_0x2d651e(0x1e0)](_0x541815[_0x2d651e(0x1ca)],_0x541815[_0x2d651e(0x1fa)]),this[_0x2d651e(0x1d7)][_0x2d651e(0x1cb)](_0x2d651e(0x1f0))['to'](this),this[_0x2d651e(0x211)][_0x2d651e(0x1f9)](),this[_0x2d651e(0x211)][_0x2d651e(0x1f2)]([this[_0x2d651e(0x1d7)]]),this[_0x2d651e(0x1de)]({'tag':_0x2d651e(0x1da),'attributes':{'class':_0x2d651e(0x1e6)},'children':this[_0x2d651e(0x1fe)]}),this['on'](_0x2d651e(0x202),()=>{const _0x20167d=_0x2d651e;this[_0x20167d(0x1fe)][_0x20167d(0x20c)](this[_0x20167d(0x1d7)]),this[_0x20167d(0x1e0)](_0x541815[_0x20167d(0x1ca)],_0x541815[_0x20167d(0x1fa)]);});}[_0x3281e(0x1bf)](){const _0x128050=_0x3281e;super[_0x128050(0x1bf)]();for(const _0xf5a9ff of this[_0x128050(0x211)])this[_0x128050(0x1df)][_0x128050(0x207)](_0xf5a9ff[_0x128050(0x212)]);this[_0x128050(0x1c2)][_0x128050(0x1d4)](this[_0x128050(0x212)]),this[_0x128050(0x1c8)]();}[_0x3281e(0x1e4)](){const _0x22be57=_0x3281e;super[_0x22be57(0x1e4)](),this[_0x22be57(0x1c5)]&&this[_0x22be57(0x1c5)][_0x22be57(0x1e4)]();}[_0x3281e(0x1d6)](_0x5ca3a5){const _0x61fd26=_0x3281e;-0x1===_0x5ca3a5?this[_0x61fd26(0x1dc)][_0x61fd26(0x1fc)]():this[_0x61fd26(0x1dc)][_0x61fd26(0x1f7)]();}[_0x3281e(0x20a)](){const _0x4886af=_0x3281e;this[_0x4886af(0x1f0)]=!0x0;}[_0x3281e(0x1c7)](){const _0x3b59d6=_0x3281e;this[_0x3b59d6(0x1f0)]=!0x1;}[_0x3281e(0x209)](_0x260ec9){const _0xd8f39c=_0x3281e;this[_0xd8f39c(0x213)]||(this[_0xd8f39c(0x213)]=this[_0xd8f39c(0x20d)](),this[_0xd8f39c(0x1fe)][_0xd8f39c(0x1f2)]([this[_0xd8f39c(0x213)]],0x0)),this[_0xd8f39c(0x1d8)]=_0x260ec9,this[_0xd8f39c(0x1f1)]=!0x0;}[_0x3281e(0x1c3)](){const _0x238891=_0x3281e;this[_0x238891(0x1f1)]=!0x1;}[_0x3281e(0x1c0)](_0x4758b5){const _0x150fae=_0x3281e;this[_0x150fae(0x209)](_0x4758b5);}[_0x3281e(0x1cc)](_0x1e4c8e){const _0x33cc85=_0x3281e;this[_0x33cc85(0x209)](_0x1e4c8e),this[_0x33cc85(0x1d7)]&&(this[_0x33cc85(0x1d7)][_0x33cc85(0x1e5)]&&(this[_0x33cc85(0x1d7)][_0x33cc85(0x1e5)][_0x33cc85(0x1e9)]=!0x1),this[_0x33cc85(0x1d7)][_0x33cc85(0x1d2)]&&(this[_0x33cc85(0x1d7)][_0x33cc85(0x1d2)][_0x33cc85(0x1e9)]=!0x1));}[_0x3281e(0x1e2)](_0x48659f){const _0x551031=_0x3281e,_0x3dccc7=this[_0x551031(0x1ec)](),_0xb55dac=this[_0x551031(0x1e8)]();_0x48659f[_0x551031(0x206)][_0x551031(0x1d1)][_0x551031(0x1d9)][_0x551031(0x207)](_0x3dccc7,0x2),_0x48659f[_0x551031(0x206)][_0x551031(0x1d1)][_0x551031(0x1d9)][_0x551031(0x207)](_0xb55dac,0x0),this[_0x551031(0x211)][_0x551031(0x1f2)]([_0x3dccc7,_0xb55dac]),this[_0x551031(0x1df)][_0x551031(0x207)](_0x3dccc7[_0x551031(0x212)]),this[_0x551031(0x1df)][_0x551031(0x207)](_0xb55dac[_0x551031(0x212)]);}[_0x3281e(0x1ff)](_0x5746c3){const _0x19527d=_0x3281e;this[_0x19527d(0x1f8)]=_0x5746c3,this[_0x19527d(0x1fe)][_0x19527d(0x207)](this[_0x19527d(0x1f8)]);}[_0x3281e(0x1bd)](_0x3b919b){const _0x61adf0=_0x3281e,_0x207dee=this[_0x61adf0(0x1fe)][_0x61adf0(0x1f6)](this[_0x61adf0(0x1f8)]);this[_0x61adf0(0x1fe)][_0x61adf0(0x20c)](this[_0x61adf0(0x1f8)]),this[_0x61adf0(0x1f8)]=_0x3b919b,this[_0x61adf0(0x1fe)][_0x61adf0(0x207)](this[_0x61adf0(0x1f8)],_0x207dee),this[_0x61adf0(0x1c3)](),this[_0x61adf0(0x1c5)]&&this[_0x61adf0(0x1c5)][_0x61adf0(0x1e4)](),this[_0x61adf0(0x1c8)]();}[_0x3281e(0x1bb)](){const _0x5eea8c=_0x3281e;this[_0x5eea8c(0x1eb)]=new _0xf57972(this[_0x5eea8c(0x1cf)]),this[_0x5eea8c(0x1fe)][_0x5eea8c(0x207)](this[_0x5eea8c(0x1eb)]);}[_0x3281e(0x1e0)](_0x287784=!0x0,_0x56b4b5=!0x0){const _0x270195=_0x3281e;_0x287784=_0x287784&&!this[_0x270195(0x1f5)]&&this[_0x270195(0x1ee)][_0x270195(0x1ef)](_0x270195(0x1c4)),_0x56b4b5=_0x56b4b5&&this[_0x270195(0x1ee)][_0x270195(0x1ef)](_0x270195(0x1d5)),this[_0x270195(0x1d7)]=new _0x48ff1e(this[_0x270195(0x1cf)],_0x287784,_0x56b4b5),this[_0x270195(0x1d7)][_0x270195(0x1e5)]?.['on'](_0x270195(0x205),()=>{const _0x4fd834=_0x270195;this[_0x4fd834(0x1e3)](_0x4fd834(0x1c4));}),this[_0x270195(0x1d7)][_0x270195(0x1d2)]?.['on'](_0x270195(0x205),()=>{const _0x39751d=_0x270195;this[_0x39751d(0x1e3)](_0x39751d(0x1d5));}),this[_0x270195(0x1fe)][_0x270195(0x207)](this[_0x270195(0x1d7)]);}[_0x3281e(0x1ec)](){const _0x255de1=_0x3281e,_0x2000d1=new _0x1eac39(this[_0x255de1(0x1cf)]);return _0x2000d1[_0x255de1(0x1bc)]({'icon':_0x3e6997,'tooltip':_0x33eb73(this[_0x255de1(0x1cf)],_0x255de1(0x1e1))}),_0x2000d1['on'](_0x255de1(0x205),()=>{const _0x21f155=_0x255de1;this[_0x21f155(0x1e3)](_0x21f155(0x1f3));}),_0x2000d1;}[_0x3281e(0x1e8)](){const _0x3d0e1b=_0x3281e,_0x6daaba=new _0x1eac39(this[_0x3d0e1b(0x1cf)]);return _0x6daaba[_0x3d0e1b(0x1bc)]({'icon':_0x4e606e,'tooltip':_0x33eb73(this[_0x3d0e1b(0x1cf)],_0x3d0e1b(0x204))}),_0x6daaba['on'](_0x3d0e1b(0x205),()=>{const _0x4e6ef2=_0x3d0e1b;this[_0x4e6ef2(0x1e3)](_0x4e6ef2(0x1cd));}),_0x6daaba;}[_0x3281e(0x20d)](){const _0x4eb4fc=_0x3281e,_0x348f5e=new _0x281f21(this[_0x4eb4fc(0x1cf)]),_0x4957c4=new _0x281f21(this[_0x4eb4fc(0x1cf)]);return _0x4957c4[_0x4eb4fc(0x1de)]({'tag':_0x4eb4fc(0x201),'attributes':{'class':['ck',_0x4eb4fc(0x1ed)]},'children':[{'text':this[_0x4eb4fc(0x1fb)]['to'](_0x4eb4fc(0x1d8))}]}),_0x348f5e[_0x4eb4fc(0x1de)]({'tag':_0x4eb4fc(0x1da),'attributes':{'class':['ck',_0x4eb4fc(0x20f),_0x4eb4fc(0x214),this[_0x4eb4fc(0x1fb)]['if'](_0x4eb4fc(0x1f1),_0x4eb4fc(0x1db),_0x38ba1c=>!_0x38ba1c)]},'children':[_0x4957c4]}),_0x348f5e;}[_0x3281e(0x203)](){const _0x2f60c6=_0x3281e;this[_0x2f60c6(0x1c8)](),this[_0x2f60c6(0x1c5)]&&this[_0x2f60c6(0x1c5)][_0x2f60c6(0x20e)]();}[_0x3281e(0x200)](){const _0x26ff16=_0x3281e;this[_0x26ff16(0x1c5)]&&this[_0x26ff16(0x1c5)][_0x26ff16(0x1ea)]();}[_0x3281e(0x1c8)](){const _0x132927=_0x3281e,_0x4127d9=this[_0x132927(0x1d0)]();_0x4127d9&&!this[_0x132927(0x1c5)]&&(this[_0x132927(0x1c5)]=new _0x59f473(_0x4127d9));}[_0x3281e(0x1d0)](){const _0x2c0340=_0x3281e;return this[_0x2c0340(0x1f8)]instanceof _0x4b5164&&this[_0x2c0340(0x1f8)][_0x2c0340(0x1be)][_0x2c0340(0x212)]?this[_0x2c0340(0x1f8)][_0x2c0340(0x1be)][_0x2c0340(0x212)]:null;}}
23
+ const _0x53398e=_0x5690;(function(_0x1bab9b,_0x4552fc){const _0x3f4013=_0x5690,_0x2a021e=_0x1bab9b();while(!![]){try{const _0x18abba=-parseInt(_0x3f4013(0x16c))/0x1+parseInt(_0x3f4013(0x136))/0x2*(parseInt(_0x3f4013(0x167))/0x3)+parseInt(_0x3f4013(0x126))/0x4+-parseInt(_0x3f4013(0x145))/0x5*(-parseInt(_0x3f4013(0x166))/0x6)+-parseInt(_0x3f4013(0x14d))/0x7*(-parseInt(_0x3f4013(0x137))/0x8)+-parseInt(_0x3f4013(0x161))/0x9+parseInt(_0x3f4013(0x135))/0xa*(parseInt(_0x3f4013(0x12f))/0xb);if(_0x18abba===_0x4552fc)break;else _0x2a021e['push'](_0x2a021e['shift']());}catch(_0x397467){_0x2a021e['push'](_0x2a021e['shift']());}}}(_0x34dc,0x6090f));function _0x34dc(){const _0x5ade5e=['getIndex','showPrevious','change:isTrackChangesOn','tab','isErrorVisible','_initializeScrollManager','keystrokes','set','stopAutoScroll','focusFirst','addMany','applyButton','element','20anxnYB','destroy','span','focus','_availableActions','isEnabled','_mainView','remove','1972439UshaYp','render','hideError','startAutoScroll','showApplyButton','execute','showBlockingError','setTemplate','listenTo','_focusables','locale','_createErrorView','clear','_getScrollableElement','_addToolbar','focusTracker','headerView','ai-balloon-error','_dialogContent','createCollection','6747273UztOxK','_createPreviousButtonView','add','applySuggestion','focusLast','380310EhWTDO','836409MAMJBm','bodyView','_addDisclaimerView','suggestButton','bind','530050DXKppc','focusCycler','AI_BALLOON_NEXT_TOOLTIP','div','AI_BALLOON_PREVIOUS_TOOLTIP','ai-balloon-content','errorMessage','toolbar','showNext','scrollManager','setLoading','showRecoverableError','children','fire','mainView','showSuggestButton','includes','_addContentView','isLoading','_createNextButtonView','start','ck-ai-suggestion__error','ck-ai-suggestion__error-text','174948gEeKso','disclaimerView','ck-hidden','setupRotator','showError','bindTemplate','updateContent','clearLoading','view','2825295WzKqWN','shift\x20+\x20tab','isTrackChangesOn','insertSuggestion','_errorView','stop','10BpqZCf','4hwTWRi','16Bgbjyw'];_0x34dc=function(){return _0x5ade5e;};return _0x34dc();}import{ButtonView as _0x59978e,View as _0x1d6c19,ViewCollection as _0x1435f9,FocusCycler as _0x5e6357}from'ckeditor5/src/ui.js';function _0x5690(_0x4c511d,_0x5d350e){const _0x34dc52=_0x34dc();return _0x5690=function(_0x569012,_0x354ddc){_0x569012=_0x569012-0x124;let _0x4447e4=_0x34dc52[_0x569012];return _0x4447e4;},_0x5690(_0x4c511d,_0x5d350e);}import{FocusTracker as _0x4778df,KeystrokeHandler as _0x3a4b57}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x4cf69d,IconPreviousArrow as _0xef208a}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x24dede}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x326686}from'./aiballoondisclaimerview.js';import{getTranslation as _0x4763c7}from'../../aicore/utils/common-translations.js';import{ScrollManager as _0x29ec27}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0x1fdd68}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x53398e(0x164),_0x53398e(0x132),_0x53398e(0x174),_0x53398e(0x139)];export class AIBalloonView extends _0x1d6c19{[_0x53398e(0x15c)];[_0x53398e(0x13e)];[_0x53398e(0x16d)];[_0x53398e(0x149)];[_0x53398e(0x156)];[_0x53398e(0x133)];[_0x53398e(0x175)];constructor(_0x5c0e85,_0x366955,_0x5f0a32,_0x243b3c){const _0xac33f5=_0x53398e;super(_0x5c0e85),this[_0xac33f5(0x149)]=_0x5f0a32,this[_0xac33f5(0x13f)](_0xac33f5(0x17e),!0x1),this[_0xac33f5(0x13f)](_0xac33f5(0x131),_0x243b3c),this[_0xac33f5(0x13f)](_0xac33f5(0x13c),!0x1),this[_0xac33f5(0x13f)](_0xac33f5(0x172),''),this[_0xac33f5(0x15c)]=new _0x4778df(),this[_0xac33f5(0x13e)]=new _0x3a4b57(),this[_0xac33f5(0x156)]=this[_0xac33f5(0x160)](),this[_0xac33f5(0x16d)]=new _0x5e6357({'focusables':this[_0xac33f5(0x156)],'focusTracker':this[_0xac33f5(0x15c)],'keystrokeHandler':this[_0xac33f5(0x13e)],'actions':{'focusPrevious':_0xac33f5(0x130),'focusNext':_0xac33f5(0x13b)}}),this[_0xac33f5(0x15f)]=new _0x1435f9(),this[_0xac33f5(0x17d)](_0x366955[_0xac33f5(0x17a)]),this[_0xac33f5(0x169)](),this[_0xac33f5(0x15b)](_0x366955[_0xac33f5(0x151)],_0x366955[_0xac33f5(0x17b)]),this[_0xac33f5(0x173)][_0xac33f5(0x16b)](_0xac33f5(0x17e))['to'](this),this[_0xac33f5(0x156)][_0xac33f5(0x159)](),this[_0xac33f5(0x156)][_0xac33f5(0x142)]([this[_0xac33f5(0x173)]]),this[_0xac33f5(0x154)]({'tag':_0xac33f5(0x16f),'attributes':{'class':_0xac33f5(0x171)},'children':this[_0xac33f5(0x15f)]}),this['on'](_0xac33f5(0x13a),()=>{const _0x3c950b=_0xac33f5;this[_0x3c950b(0x15f)][_0x3c950b(0x14c)](this[_0x3c950b(0x173)]),this[_0x3c950b(0x15b)](_0x366955[_0x3c950b(0x151)],_0x366955[_0x3c950b(0x17b)]);});}[_0x53398e(0x14e)](){const _0x4725c8=_0x53398e;super[_0x4725c8(0x14e)]();for(const _0x32376c of this[_0x4725c8(0x156)])this[_0x4725c8(0x15c)][_0x4725c8(0x163)](_0x32376c[_0x4725c8(0x144)]);this[_0x4725c8(0x13e)][_0x4725c8(0x155)](this[_0x4725c8(0x144)]),this[_0x4725c8(0x13d)]();}[_0x53398e(0x146)](){const _0x550e0b=_0x53398e;super[_0x550e0b(0x146)](),this[_0x550e0b(0x175)]&&this[_0x550e0b(0x175)][_0x550e0b(0x146)]();}[_0x53398e(0x148)](_0x993203){const _0x11b393=_0x53398e;-0x1===_0x993203?this[_0x11b393(0x16d)][_0x11b393(0x165)]():this[_0x11b393(0x16d)][_0x11b393(0x141)]();}[_0x53398e(0x176)](){const _0x2a9638=_0x53398e;this[_0x2a9638(0x17e)]=!0x0;}[_0x53398e(0x12d)](){const _0x3854cd=_0x53398e;this[_0x3854cd(0x17e)]=!0x1;}[_0x53398e(0x12a)](_0x25ccb3){const _0x515ed1=_0x53398e;this[_0x515ed1(0x133)]||(this[_0x515ed1(0x133)]=this[_0x515ed1(0x158)](),this[_0x515ed1(0x15f)][_0x515ed1(0x142)]([this[_0x515ed1(0x133)]],0x0)),this[_0x515ed1(0x172)]=_0x25ccb3,this[_0x515ed1(0x13c)]=!0x0;}[_0x53398e(0x14f)](){const _0x1df447=_0x53398e;this[_0x1df447(0x13c)]=!0x1;}[_0x53398e(0x177)](_0x1198bf){const _0x58bbd9=_0x53398e;this[_0x58bbd9(0x12a)](_0x1198bf);}[_0x53398e(0x153)](_0x5a01b4){const _0x364703=_0x53398e;this[_0x364703(0x12a)](_0x5a01b4),this[_0x364703(0x173)]&&(this[_0x364703(0x173)][_0x364703(0x143)]&&(this[_0x364703(0x173)][_0x364703(0x143)][_0x364703(0x14a)]=!0x1),this[_0x364703(0x173)][_0x364703(0x16a)]&&(this[_0x364703(0x173)][_0x364703(0x16a)][_0x364703(0x14a)]=!0x1));}[_0x53398e(0x129)](_0x394c1b){const _0x366052=_0x53398e,_0x436e34=this[_0x366052(0x17f)](),_0x4da81f=this[_0x366052(0x162)]();_0x394c1b[_0x366052(0x12e)][_0x366052(0x15d)][_0x366052(0x178)][_0x366052(0x163)](_0x436e34,0x2),_0x394c1b[_0x366052(0x12e)][_0x366052(0x15d)][_0x366052(0x178)][_0x366052(0x163)](_0x4da81f,0x0),this[_0x366052(0x156)][_0x366052(0x142)]([_0x436e34,_0x4da81f]),this[_0x366052(0x15c)][_0x366052(0x163)](_0x436e34[_0x366052(0x144)]),this[_0x366052(0x15c)][_0x366052(0x163)](_0x4da81f[_0x366052(0x144)]);}[_0x53398e(0x17d)](_0x4cb175){const _0x439267=_0x53398e;this[_0x439267(0x14b)]=_0x4cb175,this[_0x439267(0x15f)][_0x439267(0x163)](this[_0x439267(0x14b)]);}[_0x53398e(0x12c)](_0x389823){const _0x4a9dab=_0x53398e,_0x22b1a7=this[_0x4a9dab(0x15f)][_0x4a9dab(0x138)](this[_0x4a9dab(0x14b)]);this[_0x4a9dab(0x15f)][_0x4a9dab(0x14c)](this[_0x4a9dab(0x14b)]),this[_0x4a9dab(0x14b)]=_0x389823,this[_0x4a9dab(0x15f)][_0x4a9dab(0x163)](this[_0x4a9dab(0x14b)],_0x22b1a7),this[_0x4a9dab(0x14f)](),this[_0x4a9dab(0x175)]&&this[_0x4a9dab(0x175)][_0x4a9dab(0x146)](),this[_0x4a9dab(0x13d)]();}[_0x53398e(0x169)](){const _0x164b61=_0x53398e;this[_0x164b61(0x127)]=new _0x326686(this[_0x164b61(0x157)]),this[_0x164b61(0x15f)][_0x164b61(0x163)](this[_0x164b61(0x127)]);}[_0x53398e(0x15b)](_0x53395a=!0x0,_0x5469a3=!0x0){const _0x1074de=_0x53398e;_0x53395a=_0x53395a&&!this[_0x1074de(0x131)]&&this[_0x1074de(0x149)][_0x1074de(0x17c)](_0x1074de(0x164)),_0x5469a3=_0x5469a3&&this[_0x1074de(0x149)][_0x1074de(0x17c)](_0x1074de(0x132)),this[_0x1074de(0x173)]=new _0x24dede(this[_0x1074de(0x157)],_0x53395a,_0x5469a3),this[_0x1074de(0x173)][_0x1074de(0x143)]?.['on'](_0x1074de(0x152),()=>{const _0x299757=_0x1074de;this[_0x299757(0x179)](_0x299757(0x164));}),this[_0x1074de(0x173)][_0x1074de(0x16a)]?.['on'](_0x1074de(0x152),()=>{const _0x13a8fa=_0x1074de;this[_0x13a8fa(0x179)](_0x13a8fa(0x132));}),this[_0x1074de(0x15f)][_0x1074de(0x163)](this[_0x1074de(0x173)]);}[_0x53398e(0x17f)](){const _0x3f135b=_0x53398e,_0x4c0a75=new _0x59978e(this[_0x3f135b(0x157)]);return _0x4c0a75[_0x3f135b(0x13f)]({'icon':_0x4cf69d,'tooltip':_0x4763c7(this[_0x3f135b(0x157)],_0x3f135b(0x16e))}),_0x4c0a75['on'](_0x3f135b(0x152),()=>{const _0x156752=_0x3f135b;this[_0x156752(0x179)](_0x156752(0x174));}),_0x4c0a75;}[_0x53398e(0x162)](){const _0x19c8c1=_0x53398e,_0x43ced7=new _0x59978e(this[_0x19c8c1(0x157)]);return _0x43ced7[_0x19c8c1(0x13f)]({'icon':_0xef208a,'tooltip':_0x4763c7(this[_0x19c8c1(0x157)],_0x19c8c1(0x170))}),_0x43ced7['on'](_0x19c8c1(0x152),()=>{const _0x328d6f=_0x19c8c1;this[_0x328d6f(0x179)](_0x328d6f(0x139));}),_0x43ced7;}[_0x53398e(0x158)](){const _0xc1fd50=_0x53398e,_0x5e7b35=new _0x1d6c19(this[_0xc1fd50(0x157)]),_0x49f4f7=new _0x1d6c19(this[_0xc1fd50(0x157)]);return _0x49f4f7[_0xc1fd50(0x154)]({'tag':_0xc1fd50(0x147),'attributes':{'class':['ck',_0xc1fd50(0x125)]},'children':[{'text':this[_0xc1fd50(0x12b)]['to'](_0xc1fd50(0x172))}]}),_0x5e7b35[_0xc1fd50(0x154)]({'tag':_0xc1fd50(0x16f),'attributes':{'class':['ck',_0xc1fd50(0x124),_0xc1fd50(0x15e),this[_0xc1fd50(0x12b)]['if'](_0xc1fd50(0x13c),_0xc1fd50(0x128),_0x1e2921=>!_0x1e2921)]},'children':[_0x49f4f7]}),_0x5e7b35;}[_0x53398e(0x150)](){const _0x4ba93a=_0x53398e;this[_0x4ba93a(0x13d)](),this[_0x4ba93a(0x175)]&&this[_0x4ba93a(0x175)][_0x4ba93a(0x180)]();}[_0x53398e(0x140)](){const _0x5d1e5c=_0x53398e;this[_0x5d1e5c(0x175)]&&this[_0x5d1e5c(0x175)][_0x5d1e5c(0x134)]();}[_0x53398e(0x13d)](){const _0x29bdfe=_0x53398e,_0x2de939=this[_0x29bdfe(0x15a)]();_0x2de939&&!this[_0x29bdfe(0x175)]&&(this[_0x29bdfe(0x175)]=new _0x29ec27(_0x2de939));}[_0x53398e(0x15a)](){const _0xef1c06=_0x53398e;return this[_0xef1c06(0x14b)]instanceof _0x1fdd68&&this[_0xef1c06(0x14b)][_0xef1c06(0x168)][_0xef1c06(0x144)]?this[_0xef1c06(0x14b)][_0xef1c06(0x168)][_0xef1c06(0x144)]:null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x26cf(_0x55ec5d,_0x510079){var _0x5e3269=_0x5e32();return _0x26cf=function(_0x26cf7e,_0xc66edf){_0x26cf7e=_0x26cf7e-0x188;var _0x58a5a6=_0x5e3269[_0x26cf7e];return _0x58a5a6;},_0x26cf(_0x55ec5d,_0x510079);}var _0x143c8e=_0x26cf;(function(_0x206b3a,_0x186d43){var _0x325900=_0x26cf,_0x588db4=_0x206b3a();while(!![]){try{var _0x40d2bf=parseInt(_0x325900(0x19c))/0x1*(parseInt(_0x325900(0x19d))/0x2)+-parseInt(_0x325900(0x1a1))/0x3*(parseInt(_0x325900(0x190))/0x4)+parseInt(_0x325900(0x198))/0x5+-parseInt(_0x325900(0x19a))/0x6+-parseInt(_0x325900(0x19e))/0x7*(parseInt(_0x325900(0x192))/0x8)+parseInt(_0x325900(0x196))/0x9*(-parseInt(_0x325900(0x1a2))/0xa)+-parseInt(_0x325900(0x188))/0xb*(-parseInt(_0x325900(0x191))/0xc);if(_0x40d2bf===_0x186d43)break;else _0x588db4['push'](_0x588db4['shift']());}catch(_0x1e8b4e){_0x588db4['push'](_0x588db4['shift']());}}}(_0x5e32,0xc19fd));import{ContextPlugin as _0x2b9462}from'ckeditor5/src/core.js';function _0x5e32(){var _0x1c215b=['plugins','focusPromptInput','pluginName','addSelectionToChatContext','ai.chat.models','5110284ZBVbfO','935628YiJoVK','10592FTyThD','sendMessage','context','config','3925323bzdcMR','requires','2841180pHXlHM','isPremiumPlugin','3378qrGssn','get','3MWCKwQ','398218ShuxAI','2387pIXaqb','removeSelectionFromChatContext','startConversation','3LZNIhj','10AdwEAd','ai.chat.context','define','253kuclNQ','AIChat','isOfficialPlugin'];_0x5e32=function(){return _0x1c215b;};return _0x5e32();}import{AIChatController as _0x3905c9}from'./aichatcontroller.js';import{AIEditing as _0x34da81}from'../aicore/aiediting.js';import{AIChatUI as _0x3469b4}from'./aichatui.js';import{AIChatHistory as _0x2a8e23}from'../aichathistory/aichathistory.js';export class AIChat extends _0x2b9462{static get[_0x143c8e(0x197)](){return[_0x3905c9,_0x34da81,_0x3469b4,_0x2a8e23];}static get[_0x143c8e(0x18d)](){var _0x435e34=_0x143c8e;return _0x435e34(0x189);}static get[_0x143c8e(0x18a)](){return!0x0;}static get[_0x143c8e(0x199)](){return!0x0;}constructor(_0x44e63a){var _0x3d18f7=_0x143c8e;super(_0x44e63a),this[_0x3d18f7(0x194)][_0x3d18f7(0x195)][_0x3d18f7(0x1a4)](_0x3d18f7(0x1a3),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x3d18f7(0x194)][_0x3d18f7(0x195)][_0x3d18f7(0x1a4)](_0x3d18f7(0x18f),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x143c8e(0x18e)](){var _0x35c57a=_0x143c8e;await this[_0x35c57a(0x194)][_0x35c57a(0x18b)][_0x35c57a(0x19b)](_0x3905c9)[_0x35c57a(0x18e)]();}async[_0x143c8e(0x1a0)](){var _0x517149=_0x143c8e;await this[_0x517149(0x194)][_0x517149(0x18b)][_0x517149(0x19b)](_0x3905c9)[_0x517149(0x1a0)]();}async[_0x143c8e(0x193)]({message:_0x3f5443,quickActionData:_0x565cef}){var _0x5f0d68=_0x143c8e;await this[_0x5f0d68(0x194)][_0x5f0d68(0x18b)][_0x5f0d68(0x19b)](_0x3905c9)[_0x5f0d68(0x193)]({'message':_0x3f5443,'quickActionData':_0x565cef});}[_0x143c8e(0x19f)](){var _0x153e4a=_0x143c8e;this[_0x153e4a(0x194)][_0x153e4a(0x18b)][_0x153e4a(0x19b)](_0x3905c9)[_0x153e4a(0x19f)]();}[_0x143c8e(0x18c)](){var _0x48ee51=_0x143c8e;this[_0x48ee51(0x194)][_0x48ee51(0x18b)][_0x48ee51(0x19b)](_0x3905c9)[_0x48ee51(0x18c)]();}}
23
+ var _0x15b0b2=_0x2ec6;function _0x2b9a(){var _0xc1e8b1=['1390323eZBfQL','36SrISKd','ai.chat.context','startConversation','968yDGRwj','context','config','focusPromptInput','87022EpXdCi','24KexdDF','plugins','647847nsHRzH','66094iTfXjH','sendMessage','addSelectionToChatContext','define','1hTuKlP','ai.chat.models','removeSelectionFromChatContext','isPremiumPlugin','150gLsBdC','isOfficialPlugin','AIChat','804770imeCsC','pluginName','requires','get','4234098EYTIls','5452120lRFuIj'];_0x2b9a=function(){return _0xc1e8b1;};return _0x2b9a();}(function(_0xa837ce,_0x33d9c2){var _0x5d9832=_0x2ec6,_0x3a848e=_0xa837ce();while(!![]){try{var _0x36faee=parseInt(_0x5d9832(0x16b))/0x1*(parseInt(_0x5d9832(0x163))/0x2)+parseInt(_0x5d9832(0x176))/0x3+parseInt(_0x5d9832(0x177))/0x4+parseInt(_0x5d9832(0x172))/0x5*(parseInt(_0x5d9832(0x164))/0x6)+parseInt(_0x5d9832(0x167))/0x7*(-parseInt(_0x5d9832(0x15f))/0x8)+parseInt(_0x5d9832(0x166))/0x9*(-parseInt(_0x5d9832(0x16f))/0xa)+-parseInt(_0x5d9832(0x178))/0xb*(parseInt(_0x5d9832(0x15c))/0xc);if(_0x36faee===_0x33d9c2)break;else _0x3a848e['push'](_0x3a848e['shift']());}catch(_0x264960){_0x3a848e['push'](_0x3a848e['shift']());}}}(_0x2b9a,0xd209d));import{ContextPlugin as _0x6ef463}from'ckeditor5/src/core.js';import{AIChatController as _0x22a124}from'./aichatcontroller.js';function _0x2ec6(_0x3caef9,_0x41b7dc){var _0x2b9a85=_0x2b9a();return _0x2ec6=function(_0x2ec656,_0xa97196){_0x2ec656=_0x2ec656-0x15c;var _0x364694=_0x2b9a85[_0x2ec656];return _0x364694;},_0x2ec6(_0x3caef9,_0x41b7dc);}import{AIEditing as _0xce254a}from'../aicore/aiediting.js';import{AIChatUI as _0x284c35}from'./aichatui.js';import{AIChatHistory as _0x190dc8}from'../aichathistory/aichathistory.js';export class AIChat extends _0x6ef463{static get[_0x15b0b2(0x174)](){return[_0x22a124,_0xce254a,_0x284c35,_0x190dc8];}static get[_0x15b0b2(0x173)](){var _0x294802=_0x15b0b2;return _0x294802(0x171);}static get[_0x15b0b2(0x170)](){return!0x0;}static get[_0x15b0b2(0x16e)](){return!0x0;}constructor(_0x16dbda){var _0x4afbe4=_0x15b0b2;super(_0x16dbda),this[_0x4afbe4(0x160)][_0x4afbe4(0x161)][_0x4afbe4(0x16a)](_0x4afbe4(0x15d),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x4afbe4(0x160)][_0x4afbe4(0x161)][_0x4afbe4(0x16a)](_0x4afbe4(0x16c),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x15b0b2(0x169)](){var _0x43ed1d=_0x15b0b2;await this[_0x43ed1d(0x160)][_0x43ed1d(0x165)][_0x43ed1d(0x175)](_0x22a124)[_0x43ed1d(0x169)]();}async[_0x15b0b2(0x15e)](){var _0x450d02=_0x15b0b2;await this[_0x450d02(0x160)][_0x450d02(0x165)][_0x450d02(0x175)](_0x22a124)[_0x450d02(0x15e)]();}async[_0x15b0b2(0x168)]({message:_0x5e8498,quickActionData:_0x49f17d}){var _0x536fdb=_0x15b0b2;await this[_0x536fdb(0x160)][_0x536fdb(0x165)][_0x536fdb(0x175)](_0x22a124)[_0x536fdb(0x168)]({'message':_0x5e8498,'quickActionData':_0x49f17d});}[_0x15b0b2(0x16d)](){var _0x2c5937=_0x15b0b2;this[_0x2c5937(0x160)][_0x2c5937(0x165)][_0x2c5937(0x175)](_0x22a124)[_0x2c5937(0x16d)]();}[_0x15b0b2(0x162)](){var _0x212c85=_0x15b0b2;this[_0x212c85(0x160)][_0x212c85(0x165)][_0x212c85(0x175)](_0x22a124)[_0x212c85(0x162)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1908(){const _0x427e6f=['AI_CHAT_CONTEXT_FILE_TOO_LARGE','getInteractionAndReplyById','_balloonShowDiff','like','filter','remove','uid','getTransformedByOperation','mouseOverSuggestion','setConversationContext','resource','updateResourceState','setIsMaximized','updateCurrentDocumentInContext','toViewRange','requires','insertSuggestion','toString','ai-chat-invalid-request','resizedTabs','getRanges','slice','activeConversation','showChangeInText','getOperations','sendUserMessage','_stopLastInteraction','contextItemRemoved','ai-chat-controller-mouse-over','ai-chat-controller-no-active-conversation','editors','_getDocumentRangeForReplyChanges','updateContent','setContextItemLoading','contextItem','getDocumentContext','getConversation','ai-chat-conversation-init-failed','uiId','interactionStarted','addFeedItemStaticMessage','modelSelected','mapper','sources','source','howMany','setFeedItemRenderingStrategy','TrackChangesEditing','has','rootName','addFeedItemUserMessage','chat','populateSourceResourceBalloon','isPremiumPlugin','1491992NmcCMA','isLoading','getRoot','setLoadingMessage','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','clearPendingContextUI','_integrateEditor','set','addOperation','_handleStartConversation','_batchToChanges','getInteraction','error','ai-chat-missing-channel-id','mouseLeaveSuggestion','fetchConversation','modification-delta','static','domConverter','delete','collaboration.channelId','showFakeVisualSelection','ai.chat.context','isInContext','viewRangeToDom','getChildren','range','_openBalloonFor','_removeAISelectionMarkers','toggleLoadingSkeleton','state','reasoningFinished','_setIsMaximized','_startConversationSafely','isDocumentOperation','interactionDestroyed','batch','hasChanges','setAddContextOptions','conversationInitialized','selectedModel','$graveyard','_toggleReasoning','full','indexOf','ai-chat-context-unsupported-file-type','replyChangeGroupStateUpdated','getContentParts','removed','changeGroups','get','_aiChatUi','model','changes','stopInteraction','getDocumentData','_aiConnector','_updateRatings','createConversation','path','isOpen','isCurrentDocumentInContext','addFeedItemAISuggestion','unshift','getChild','AI_BALLOON_HEADER_TITLE','selectModel','resources','nextSibling','activateTab','toggleReasoning','toggleWebSearch','lastInteraction','AI_CHAT_CONTEXT_INVALID_DATA','ai-chat-context-file-too-many-pages','map','7yNBZCT','applyOperation','uploadProgressChanged','message','messageId','startConversation','from','baseVersion','config','setModel','createRange','309830eZdOkj','interactionFinished','disableControls','setSelectedModel','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','listenTo','addFeedInteractionHeader','closeSourceResourceBalloon','_createFromRanges','index','ai-chat-context-unsupported-type','addDocumentToContext','stop','contextSent','applySuggestion','new','startAutoScroll','isOfficialPlugin','isStarted','end','234Bxmqrx','contextItems','sourceId','getMarkersGroup','pluginName','AITabs','sourcePosition','length','split','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','addSelectionToChatContext','query','abortPromptStream','AI_CHAT_GENERIC_ERROR','showNext','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','reasoningStarted','clearConversationContextUI','upsertAIChatRating','AI_CHAT_UNABLE_TO_START_CONVERSATION','_flushLastInteractionUI','_insertSuggestion','ai-chat-context-file-too-large','locale','AIConnector','replyCreated','_handleUIUserMessage','startsWith','add','toggleSuggestionDisplayMode','maxOffset','node','removeSelectionFromContext','selection','AIChatUI','getSelectionText','getPath','focusPromptInput','loadSourceResources','3624996EiGtmL','ai-chat-source-resources-load-failed','Liked\x20response','init','getDiff','ai-chat-context-form-data-size-limits-exceeded','AI_CHAT_ABORTED_MESSAGE','text-delta','removeContextItem','alignToTop','indexes','AIChatController','isUploadInProgress','marker','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','rejected','ai-chat-context-invalid-data','parse','updateFeedItemAIReplySuggestionContent','replyId','enableControls','setConversationTitle','_applyOperationsAsSuggestions','replies','ai-chat-file-upload-failed','updateFeedItemAIReplySuggestionPartState','resourceStateChanged','load','webSearchStarted','ai-chat-conversation-start-failed','undo','updateConversationTitle','close','ai-no-track-changes','getFirstRange','cloneNode','addUrlToContext','addSelectionToContext','webSearchFinished','stopListening','_toggleWebSearch','anchorId','createPositionFromPath','documentContextContent','Undo','open','resourceId','showDiff','data-id','_applySuggestion','updateCapabilities','showPrevious','resizeTabs','resetMessageInput','removeFromContext','handleUserInteraction','ai-conversation-','945750NfZYRm','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','addContextOptionsChanged','push','_aiChatModels','loadConversation','getGroupId','children','_removeFromContext','TrackChanges','resetConversationTitle','contextItemLoadingEnded','sendMessage','ai.availableReplyActions','createPositionAt','dialogClosed','startInteraction','find','commands','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','sourceResourcesLoaded','AI_CHAT_INVALID_REQUEST','afterInit','ai-chat-resource-load-failed','revert','_scrollToSuggestionRange','accepted','Disliked\x20response','ai-chat-conversation-not-found','content','getReply','log','handleRemovedConversation','contextItemAdded','capabilitiesUpdated','view','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','addFilesToContext','updateFeedItemAIReplyContent','findIndex','current-document','setIsUploadInProgress','streaming','getAttribute','removeSelectionFromChatContext','resize','ai.chat.models.displayedModels','history','updateFeedItemAIReplySources','385992pjeWEO','isModelAvailable','replyContentUpdated','interactionId','ready','ai.chat.models.defaultModelId','AI_CHAT_RESOURCE_LOAD_FAILED','addFeedItemAIReply','AI_CHAT_UNTITLED_CONVERSATION','finishInteraction','_showConversationHistory','redo','document','_aiEditing','removeFeedInteraction','interactionCreated','ai-chat-url-upload-failed','root','data','outdated','addResourceToContext','addFileToContext','change','_previewedChangeGroup','markers','type','Showing\x20conversation\x20history...','getChildAtOffset','ai-request-aborted','addCurrentDocumentToContext','scrollFeedToSuggestion','context','hideFakeVisualSelection','_updateReplyContent','removeMarker','version','addContextItem','DocumentCompare','_logError','plugins','main','rejectSuggestion','isCurrentDocumentInConversation','start','options','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','setChangeGroupState','pending','642672MPOqBH','addFeedItemError','editing','dislike','partIndex','10TEABbM','forEach','7643208qFuTRU','AIEditing','isDisabled'];_0x1908=function(){return _0x427e6f;};return _0x1908();}const _0x5f5dc3=_0x3a43;(function(_0x2c2bf1,_0x41fb56){const _0x2d229d=_0x3a43,_0x5a1e97=_0x2c2bf1();while(!![]){try{const _0x9c583=-parseInt(_0x2d229d(0x1b7))/0x1+-parseInt(_0x2d229d(0x1e8))/0x2+-parseInt(_0x2d229d(0x218))/0x3+parseInt(_0x2d229d(0x258))/0x4*(parseInt(_0x2d229d(0x21d))/0x5)+-parseInt(_0x2d229d(0x17e))/0x6+parseInt(_0x2d229d(0x138))/0x7*(parseInt(_0x2d229d(0x21f))/0x8)+-parseInt(_0x2d229d(0x157))/0x9*(-parseInt(_0x2d229d(0x143))/0xa);if(_0x9c583===_0x41fb56)break;else _0x5a1e97['push'](_0x5a1e97['shift']());}catch(_0x242c0f){_0x5a1e97['push'](_0x5a1e97['shift']());}}}(_0x1908,0x863bb));import{ContextPlugin as _0x1a3210,Editor as _0x23b274}from'ckeditor5/src/core.js';import{CKEditorError as _0x5cc404,logError as _0x2cf3bc,scrollViewportToShowTarget as _0x5dae96,uid as _0x1582f1}from'ckeditor5/src/utils.js';import{AIConnector as _0x4bdd2d}from'../aicore/aiconnector.js';function _0x3a43(_0x50c20a,_0x4a2ed0){const _0x1908cd=_0x1908();return _0x3a43=function(_0x3a43e3,_0x58b995){_0x3a43e3=_0x3a43e3-0x123;let _0x4624df=_0x1908cd[_0x3a43e3];return _0x4624df;},_0x3a43(_0x50c20a,_0x4a2ed0);}import{AITabs as _0x33adb1}from'../aitabs/aitabs.js';import{AIChatConversation as _0x47f28f}from'./model/aichatconversation.js';import{getTranslation as _0x28fa95}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0xedcbfe}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x555b82}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x3a135d}from'./model/aichatmodels.js';import{getEditorFromContext as _0x518d08}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x11862a,DATA_ID_MODEL_ATTRIBUTE as _0x3d2679}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0xbff3df,getOperationsFromReply as _0x2a6de2}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x18a23d,getMinimalSelection as _0x349bed}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x33df60,_DetachOperation as _0x414068}from'ckeditor5/src/engine.js';import{findOne as _0x3aab3c,getAttribute as _0x1abf36,serialize as _0x3e6850,Document as _0x533c8a,findByAttribute as _0x3c99c5}from'../aicore/utils/htmlparser.js';import{IconAI as _0x97a899}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x307d7c}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x864511}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x1a3210{[_0x5f5dc3(0x1f5)];[_0x5f5dc3(0x124)];[_0x5f5dc3(0x28b)];[_0x5f5dc3(0x1bb)];[_0x5f5dc3(0x262)]=new Map();[_0x5f5dc3(0x1ff)]=null;[_0x5f5dc3(0x224)]=!0x1;static get[_0x5f5dc3(0x231)](){return[_0x4bdd2d,_0x864511,_0x11862a];}static get[_0x5f5dc3(0x15b)](){const _0xdadb60=_0x5f5dc3;return _0xdadb60(0x189);}static get[_0x5f5dc3(0x154)](){return!0x0;}static get[_0x5f5dc3(0x257)](){return!0x0;}[_0x5f5dc3(0x181)](){const _0xeccc70=_0x5f5dc3;this[_0xeccc70(0x124)]=this[_0xeccc70(0x207)][_0xeccc70(0x20f)][_0xeccc70(0x28a)](_0xeccc70(0x16f)),this[_0xeccc70(0x28b)]=this[_0xeccc70(0x207)][_0xeccc70(0x20f)][_0xeccc70(0x28a)](_0xeccc70(0x179)),this[_0xeccc70(0x1f5)]=this[_0xeccc70(0x207)][_0xeccc70(0x20f)][_0xeccc70(0x28a)](_0xeccc70(0x220)),this[_0xeccc70(0x1bb)]=new _0x3a135d({'connector':this[_0xeccc70(0x124)],'availableModels':this[_0xeccc70(0x207)][_0xeccc70(0x140)][_0xeccc70(0x28a)](_0xeccc70(0x1e5)),'defaultModelId':this[_0xeccc70(0x207)][_0xeccc70(0x140)][_0xeccc70(0x28a)](_0xeccc70(0x1ed))});const _0x3cd514=this[_0xeccc70(0x207)][_0xeccc70(0x20f)][_0xeccc70(0x28a)](_0xeccc70(0x15c));this[_0xeccc70(0x148)](this[_0xeccc70(0x28b)],_0xeccc70(0x13d),()=>{const _0x4f49b9=_0xeccc70;this[_0x4f49b9(0x279)]();}),this[_0xeccc70(0x148)](this[_0xeccc70(0x28b)],_0xeccc70(0x23b),(_0x467adc,_0x18f9bc)=>{const _0x95bc83=_0xeccc70;this[_0x95bc83(0x171)]({'userMessage':_0x18f9bc});}),this[_0xeccc70(0x148)](_0x3cd514,_0xeccc70(0x235),(_0x2e1ec0,_0x55b743)=>{const _0x110a09=_0xeccc70;this[_0x110a09(0x278)](_0x55b743);}),this[_0xeccc70(0x148)](this[_0xeccc70(0x28b)],_0xeccc70(0x1b2),()=>{const _0x42f17e=_0xeccc70;_0x3cd514[_0x42f17e(0x1e4)]();}),this[_0xeccc70(0x148)](this[_0xeccc70(0x28b)],_0xeccc70(0x163),async()=>{const _0xe88b60=_0xeccc70;await this[_0xe88b60(0x23c)](),await this[_0xe88b60(0x16b)](),this[_0xe88b60(0x1e3)]();}),this[_0xeccc70(0x148)](this[_0xeccc70(0x28b)],_0xeccc70(0x14e),()=>{const _0x3dafff=_0xeccc70;this[_0x3dafff(0x238)]?.[_0x3dafff(0x205)](_0x28fa95(this[_0x3dafff(0x207)][_0x3dafff(0x16e)],_0x3dafff(0x18c)));}),this[_0xeccc70(0x148)](this[_0xeccc70(0x28b)],_0xeccc70(0x1fd),(_0x2be2d4,_0x4aab71)=>{const _0x5d7d1c=_0xeccc70;this[_0x5d7d1c(0x238)]?.[_0x5d7d1c(0x1dc)](Array[_0x5d7d1c(0x13e)](_0x4aab71));}),this[_0xeccc70(0x148)](this[_0xeccc70(0x28b)],_0xeccc70(0x1a2),(_0x1741a7,_0x5482e1)=>{const _0x11fbf3=_0xeccc70;this[_0x11fbf3(0x238)]?.[_0x11fbf3(0x1a2)](_0x5482e1);}),this[_0xeccc70(0x148)](this[_0xeccc70(0x28b)],_0xeccc70(0x1fc),(_0x27212c,_0x34428b)=>{const _0x2d565d=_0xeccc70;this[_0x2d565d(0x238)]?.[_0x2d565d(0x1fc)](_0x34428b[_0x2d565d(0x24e)],_0x34428b[_0x2d565d(0x22c)]);}),this[_0xeccc70(0x148)](this[_0xeccc70(0x28b)],_0xeccc70(0x186),(_0x878422,_0x118515)=>{const _0x5c079c=_0xeccc70;this[_0x5c079c(0x1bf)](_0x118515);}),this[_0xeccc70(0x148)](this[_0xeccc70(0x28b)],_0xeccc70(0x17d),(_0x33e7ef,_0x43e743)=>{const _0x244466=_0xeccc70;this[_0x244466(0x238)]?.[_0x244466(0x17d)](_0x43e743[_0x244466(0x159)],_0x43e743[_0x244466(0x162)],_0x43e743[_0x244466(0x228)]);}),this[_0xeccc70(0x148)](this[_0xeccc70(0x28b)],_0xeccc70(0x133),()=>{const _0x4602f6=_0xeccc70;this[_0x4602f6(0x1a6)]();}),this[_0xeccc70(0x148)](this[_0xeccc70(0x28b)],_0xeccc70(0x132),()=>{const _0x497d59=_0xeccc70;this[_0x497d59(0x282)]();}),this[_0xeccc70(0x148)](this[_0xeccc70(0x28b)],_0xeccc70(0x12e),(_0x2a2106,_0x2dd130)=>{const _0x2ba8ec=_0xeccc70;this[_0x2ba8ec(0x238)]?.[_0x2ba8ec(0x141)](_0x2dd130);}),this[_0xeccc70(0x148)](this[_0xeccc70(0x28b)],_0xeccc70(0x225),(_0x5e5384,{replyId:_0xfdee5f})=>{const _0x308384=_0xeccc70;console[_0x308384(0x1d6)](_0x308384(0x180),_0xfdee5f);}),this[_0xeccc70(0x148)](this[_0xeccc70(0x28b)],_0xeccc70(0x21b),(_0xa5e570,{replyId:_0x17b647})=>{const _0x4dfaf5=_0xeccc70;console[_0x4dfaf5(0x1d6)](_0x4dfaf5(0x1d2),_0x17b647);}),this[_0xeccc70(0x148)](this[_0xeccc70(0x28b)],_0xeccc70(0x232),(_0x31803f,_0x4d1d1a)=>{const _0x1093c4=_0xeccc70;this[_0x1093c4(0x207)][_0x1093c4(0x20f)][_0x1093c4(0x28a)](_0x864511)[_0x1093c4(0x19e)](),this[_0x1093c4(0x16c)](_0x4d1d1a);}),this[_0xeccc70(0x148)](this[_0xeccc70(0x28b)],_0xeccc70(0x239),(_0x504f7c,{replyId:_0x2f6cfd,partIndex:_0x2dc5ae})=>{const _0x19597e=_0xeccc70;this[_0x19597e(0x224)]=this[_0x19597e(0x28b)][_0x19597e(0x1ad)],this[_0x19597e(0x273)](_0x2f6cfd,_0x2dc5ae);}),this[_0xeccc70(0x148)](this[_0xeccc70(0x28b)],_0xeccc70(0x22a),(_0x57ba59,{replyId:_0x14b156,partIndex:_0x50a00f})=>{const _0x96f021=_0xeccc70,_0x449c8b=this[_0x96f021(0x241)](_0x14b156,_0x50a00f);_0x449c8b&&_0x96f021(0x281)!=_0x449c8b[_0x96f021(0x272)][_0x96f021(0x1f9)][_0x96f021(0x253)]&&this[_0x96f021(0x1f5)][_0x96f021(0x26d)]([_0x449c8b[_0x96f021(0x272)]],_0x96f021(0x23e));}),this[_0xeccc70(0x148)](this[_0xeccc70(0x28b)],_0xeccc70(0x266),()=>{const _0x13bec6=_0xeccc70;this[_0x13bec6(0x1f5)][_0x13bec6(0x208)](_0x13bec6(0x23e));}),this[_0xeccc70(0x148)](this[_0xeccc70(0x28b)],_0xeccc70(0x151),(_0x45b2e5,_0x3e8857)=>{const _0x57f43d=_0xeccc70;this[_0x57f43d(0x207)][_0x57f43d(0x20f)][_0x57f43d(0x28a)](_0x864511)[_0x57f43d(0x19e)](),this[_0x57f43d(0x1af)](_0x3e8857);}),this[_0xeccc70(0x148)](this[_0xeccc70(0x28b)],_0xeccc70(0x174),async(_0x320b27,{replyId:_0x4a0638,showDiff:_0x72755c})=>{const _0x576b60=_0xeccc70,{reply:_0x2221d7}=this[_0x576b60(0x223)](_0x4a0638),_0xc9d9b4=_0x2221d7[_0x576b60(0x287)]({'showDiff':_0x72755c});await this[_0x576b60(0x28b)][_0x576b60(0x190)]({'id':_0x2221d7['id'],'parts':_0xc9d9b4,'renderingStrategy':_0x576b60(0x269)});}),this[_0xeccc70(0x148)](this[_0xeccc70(0x28b)],_0xeccc70(0x211),(_0x311f2f,{replyId:_0x30b04d,partIndex:_0x196ee8})=>{const _0x1deb5b=_0xeccc70;this[_0x1deb5b(0x1ff)]?.[_0x1deb5b(0x191)]==_0x30b04d&&this[_0x1deb5b(0x1ff)]?.[_0x1deb5b(0x21c)]==_0x196ee8&&this[_0x1deb5b(0x207)][_0x1deb5b(0x20f)][_0x1deb5b(0x28a)](_0x864511)[_0x1deb5b(0x19e)]();const {reply:_0x5900ee}=this[_0x1deb5b(0x223)](_0x30b04d);_0x5900ee[_0x1deb5b(0x216)](_0x196ee8,_0x1deb5b(0x18d)),this[_0x1deb5b(0x1f5)][_0x1deb5b(0x208)](_0x1deb5b(0x23e));});}async[_0x5f5dc3(0x1cd)](){const _0x1e2452=_0x5f5dc3;this[_0x1e2452(0x207)]instanceof _0x23b274?this[_0x1e2452(0x25e)](this[_0x1e2452(0x207)]):this[_0x1e2452(0x148)](this[_0x1e2452(0x207)][_0x1e2452(0x240)],_0x1e2452(0x173),(_0xbafef9,_0x3f8c51)=>{const _0x5b8096=_0x1e2452;_0x3f8c51['on'](_0x5b8096(0x1ec),()=>{const _0x4c2a48=_0x5b8096;this[_0x4c2a48(0x25e)](_0x3f8c51);});}),await this[_0x1e2452(0x279)]();}[_0x5f5dc3(0x16c)](_0x30a0eb){const _0x326426=_0x5f5dc3,_0xc7554c=_0x518d08(this[_0x326426(0x207)]);if(!_0xc7554c[_0x326426(0x20f)][_0x326426(0x252)](_0x326426(0x1c0)))throw new _0x5cc404(_0x326426(0x19f),null);const _0x2d21c6=this[_0x326426(0x207)][_0x326426(0x20f)][_0x326426(0x28a)](_0x326426(0x20d)),{reply:_0x37a585,interaction:_0x56fb7e}=this[_0x326426(0x223)](_0x30a0eb[_0x326426(0x191)]),_0x2875f1=this[_0x326426(0x241)](_0x30a0eb[_0x326426(0x191)],_0x30a0eb[_0x326426(0x21c)]),_0xc1787a=void 0x0!==_0x30a0eb[_0x326426(0x21c)]?[_0x37a585[_0x326426(0x289)][_0x30a0eb[_0x326426(0x21c)]]]:_0x37a585[_0x326426(0x289)][_0x326426(0x226)](_0x41f7c6=>_0x326426(0x217)==_0x41f7c6[_0x326426(0x276)]),_0x4b22b6=_0xc1787a[_0x326426(0x137)](_0xc42df3=>_0x37a585[_0x326426(0x289)][_0x326426(0x284)](_0xc42df3));if(!_0x2875f1||_0x326426(0x281)==_0x2875f1[_0x326426(0x272)][_0x326426(0x1f9)][_0x326426(0x253)])return void _0x4b22b6[_0x326426(0x21e)](_0x3bec23=>_0x37a585[_0x326426(0x216)](_0x3bec23,_0x326426(0x1fb)));_0x4b22b6[_0x326426(0x21e)](_0x296bd1=>_0x37a585[_0x326426(0x216)](_0x296bd1,_0x326426(0x1d1)));const _0x32f6b2=_0x2a6de2({'editor':_0xc7554c,'reply':_0x37a585,'interaction':_0x56fb7e,'groups':_0xc1787a,'transform':!0x0,'documentCompare':_0x2d21c6,'documentCompareOptions':{'anchor':_0x326426(0x210),'markDeletions':!0x0}});let _0x5e9924;_0x2875f1&&this[_0x326426(0x1d0)](_0x2875f1[_0x326426(0x272)]),_0xc7554c[_0x326426(0x28c)][_0x326426(0x1fe)](_0x4acf07=>{const _0xd9c60=_0x326426;_0x5e9924=_0x4acf07[_0xd9c60(0x27c)],_0xc7554c[_0xd9c60(0x20f)][_0xd9c60(0x28a)](_0xd9c60(0x251))[_0xd9c60(0x194)](_0x32f6b2),this[_0xd9c60(0x1f5)][_0xd9c60(0x208)](_0xd9c60(0x23e));}),this[_0x326426(0x262)][_0x326426(0x25f)](_0x5e9924,{'interactionId':_0x56fb7e['id'],'replyId':_0x37a585['id'],'indexes':_0x4b22b6[_0x326426(0x237)]()}),this[_0x326426(0x125)](_0x37a585);}[_0x5f5dc3(0x1af)](_0x23029a){const _0x9f4120=_0x5f5dc3,_0x201bfd=_0x518d08(this[_0x9f4120(0x207)]),_0x3e750f=this[_0x9f4120(0x207)][_0x9f4120(0x20f)][_0x9f4120(0x28a)](_0x11862a),{reply:_0x5f5e8d,interaction:_0x4e0577}=this[_0x9f4120(0x223)](_0x23029a[_0x9f4120(0x191)]),_0x2b260d=this[_0x9f4120(0x241)](_0x23029a[_0x9f4120(0x191)],_0x23029a[_0x9f4120(0x21c)]),_0x229225=void 0x0!==_0x23029a[_0x9f4120(0x21c)]?[_0x5f5e8d[_0x9f4120(0x289)][_0x23029a[_0x9f4120(0x21c)]]]:_0x5f5e8d[_0x9f4120(0x289)][_0x9f4120(0x226)](_0x5e90bf=>_0x9f4120(0x217)==_0x5e90bf[_0x9f4120(0x276)]),_0x32d5a5=_0x229225[_0x9f4120(0x137)](_0x15b419=>_0x5f5e8d[_0x9f4120(0x289)][_0x9f4120(0x284)](_0x15b419));if(!_0x2b260d||_0x9f4120(0x281)==_0x2b260d[_0x9f4120(0x272)][_0x9f4120(0x1f9)][_0x9f4120(0x253)])return void _0x32d5a5[_0x9f4120(0x21e)](_0x1a330d=>_0x5f5e8d[_0x9f4120(0x216)](_0x1a330d,_0x9f4120(0x1fb)));_0x32d5a5[_0x9f4120(0x21e)](_0x4d434c=>_0x5f5e8d[_0x9f4120(0x216)](_0x4d434c,_0x9f4120(0x1d1)));const _0x40a36f=_0x2a6de2({'editor':_0x201bfd,'reply':_0x5f5e8d,'interaction':_0x4e0577,'groups':_0x229225,'transform':!0x0,'documentCompare':_0x3e750f,'documentCompareOptions':{'anchor':_0x9f4120(0x210),'markDeletions':!0x1}});let _0xf1e8b3;_0x2b260d&&this[_0x9f4120(0x1d0)](_0x2b260d[_0x9f4120(0x272)]),_0x201bfd[_0x9f4120(0x28c)][_0x9f4120(0x1fe)](_0xbf8d08=>{const _0x1ed228=_0x9f4120;_0xf1e8b3=_0xbf8d08[_0x1ed228(0x27c)];for(const _0xcf412a of _0x40a36f)_0xcf412a[_0x1ed228(0x13f)]=_0x201bfd[_0x1ed228(0x28c)][_0x1ed228(0x1f4)][_0x1ed228(0x20b)],_0xbff3df(_0x201bfd,_0xcf412a),_0xbf8d08[_0x1ed228(0x27c)][_0x1ed228(0x260)](_0xcf412a),_0x201bfd[_0x1ed228(0x28c)][_0x1ed228(0x139)](_0xcf412a);}),this[_0x9f4120(0x262)][_0x9f4120(0x25f)](_0xf1e8b3,{'interactionId':_0x4e0577['id'],'replyId':_0x5f5e8d['id'],'indexes':_0x32d5a5[_0x9f4120(0x237)]()}),this[_0x9f4120(0x125)](_0x5f5e8d);}[_0x5f5dc3(0x273)](_0x35c524,_0x1e9c8a){const _0x35f1d3=_0x5f5dc3,_0x1dd813=_0x518d08(this[_0x35f1d3(0x207)]),_0x1d2fbc=this[_0x35f1d3(0x241)](_0x35c524,_0x1e9c8a),_0x506934=this[_0x35f1d3(0x207)][_0x35f1d3(0x20f)][_0x35f1d3(0x28a)](_0x864511);if(!_0x1d2fbc)return void _0x506934[_0x35f1d3(0x19e)]();const {range:_0x464a71,currentIndex:_0x22206e}=_0x1d2fbc;if(_0x35f1d3(0x281)==_0x464a71[_0x35f1d3(0x1f9)][_0x35f1d3(0x253)]){const {reply:_0x2623ca}=this[_0x35f1d3(0x223)](_0x35c524);return _0x2623ca[_0x35f1d3(0x216)](_0x22206e,_0x35f1d3(0x1fb)),void _0x506934[_0x35f1d3(0x19e)]();}if(this[_0x35f1d3(0x1ff)]?.[_0x35f1d3(0x191)]==_0x35c524&&this[_0x35f1d3(0x1ff)]?.[_0x35f1d3(0x21c)]==_0x22206e)return;this[_0x35f1d3(0x1a5)](_0x506934),this[_0x35f1d3(0x1ff)]={'replyId':_0x35c524,'partIndex':_0x22206e};let _0x342c2f=_0x1dd813[_0x35f1d3(0x140)][_0x35f1d3(0x28a)](_0x35f1d3(0x1c4))||[..._0x555b82];_0x1dd813[_0x35f1d3(0x20f)][_0x35f1d3(0x252)](_0x35f1d3(0x1c0))||(_0x342c2f=_0x342c2f[_0x35f1d3(0x226)](_0x342440=>_0x35f1d3(0x232)!=_0x342440));const _0x54c5c1=new _0x307d7c(_0x1dd813[_0x35f1d3(0x16e)],{'showDiff':this[_0x35f1d3(0x224)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x35f1d3(0x283)},'hideHeader':!0x0,'availableActions':_0x342c2f});this[_0x35f1d3(0x1a5)](_0x54c5c1);const {reply:_0x2e77c0}=this[_0x35f1d3(0x223)](_0x35c524),_0x3d4eda=_0x2e77c0[_0x35f1d3(0x287)]({'showDiff':this[_0x35f1d3(0x224)]})[_0x35f1d3(0x226)](_0x5040ec=>_0x5040ec[_0x35f1d3(0x27d)]),_0xde1add=_0x3d4eda[_0x35f1d3(0x1de)](_0x50ed56=>_0x50ed56[_0x35f1d3(0x14c)]==_0x22206e);if(-0x1==_0xde1add)return;const _0x685e72=_0x3d4eda[_0xde1add],_0x2b4d4a=_0x3d4eda['at']((_0xde1add-0x1)%_0x3d4eda[_0x35f1d3(0x15e)])?.[_0x35f1d3(0x14c)],_0x1f4ee9=_0x3d4eda['at']((_0xde1add+0x1)%_0x3d4eda[_0x35f1d3(0x15e)])?.[_0x35f1d3(0x14c)];_0x54c5c1[_0x35f1d3(0x242)]({'parts':[_0x685e72],'renderingStrategy':_0x35f1d3(0x269)});const _0x455e52=_0x22206e!==_0x2b4d4a;this[_0x35f1d3(0x1d0)](_0x464a71,!0x0),_0x506934[_0x35f1d3(0x1ab)]({'index':_0x22206e,'title':_0x28fa95(this[_0x35f1d3(0x207)][_0x35f1d3(0x16e)],_0x35f1d3(0x12d),(_0xde1add+0x1)[_0x35f1d3(0x233)]()),'icon':_0x97a899,'mainView':_0x54c5c1,'showRotator':_0x455e52,'showApplyButton':!0x0,'showSuggestButton':_0x1dd813[_0x35f1d3(0x20f)][_0x35f1d3(0x252)](_0x35f1d3(0x1c0)),'ranges':[_0x464a71]}),this[_0x35f1d3(0x28b)][_0x35f1d3(0x206)](_0x35c524,_0x22206e),this[_0x35f1d3(0x148)](_0x54c5c1,_0x35f1d3(0x174),(_0x4c69a2,{showDiff:_0x27da96})=>{const _0x7ed794=_0x35f1d3;this[_0x7ed794(0x224)]=_0x27da96;const {reply:_0x4332b4}=this[_0x7ed794(0x223)](_0x35c524),_0x5ad99c=_0x4332b4[_0x7ed794(0x287)]({'showDiff':_0x27da96,'groupIndex':_0x22206e});_0x54c5c1[_0x7ed794(0x242)]({'parts':_0x5ad99c,'renderingStrategy':_0x7ed794(0x269)});}),this[_0x35f1d3(0x148)](_0x506934,_0x35f1d3(0x151),()=>{const _0x1138d8=_0x35f1d3;this[_0x1138d8(0x1af)]({'replyId':_0x35c524,'partIndex':_0x22206e}),_0x455e52?this[_0x1138d8(0x273)](_0x35c524,_0x1f4ee9):_0x506934[_0x1138d8(0x19e)]();}),this[_0x35f1d3(0x148)](_0x506934,_0x35f1d3(0x232),()=>{const _0xed8ae3=_0x35f1d3;this[_0xed8ae3(0x16c)]({'replyId':_0x35c524,'partIndex':_0x22206e}),_0x455e52?this[_0xed8ae3(0x273)](_0x35c524,_0x1f4ee9):_0x506934[_0xed8ae3(0x19e)]();}),_0x455e52&&(this[_0x35f1d3(0x148)](_0x506934,_0x35f1d3(0x165),()=>{const _0x374cd2=_0x35f1d3;this[_0x374cd2(0x273)](_0x35c524,_0x1f4ee9);}),this[_0x35f1d3(0x148)](_0x506934,_0x35f1d3(0x1b1),()=>{const _0x33c673=_0x35f1d3;this[_0x33c673(0x273)](_0x35c524,_0x2b4d4a);})),this[_0x35f1d3(0x148)](_0x506934,_0x35f1d3(0x1c6),()=>{const _0x3a9da3=_0x35f1d3;this[_0x3a9da3(0x1a5)](_0x506934),this[_0x3a9da3(0x1a5)](_0x54c5c1),this[_0x3a9da3(0x1ff)]=null;});}[_0x5f5dc3(0x241)](_0x5479f1,_0xed0c20){const _0x5927d4=_0x5f5dc3,_0x156008=_0x518d08(this[_0x5927d4(0x207)]),{reply:_0x4109b4,interaction:_0x4e914a}=this[_0x5927d4(0x223)](_0x5479f1),_0x57a8a5=_0x4109b4[_0x5927d4(0x289)][_0x5927d4(0x226)](_0x4d3ff9=>_0x5927d4(0x217)==_0x4d3ff9[_0x5927d4(0x276)]),_0x311890=_0x57a8a5[_0x5927d4(0x137)](_0x63d5dc=>_0x4109b4[_0x5927d4(0x289)][_0x5927d4(0x284)](_0x63d5dc));void 0x0===_0xed0c20&&(_0xed0c20=_0x311890[0x0]);const _0x18423c=_0x311890[_0x5927d4(0x284)](_0xed0c20);if(-0x1==_0x18423c)return null;const _0x9250fb=_0x57a8a5[_0x18423c],_0x655395=new _0x533c8a([]),_0x3d19f5=new _0x533c8a([]);for(const _0x107863 of _0x9250fb[_0x5927d4(0x28d)])if(_0x5927d4(0x288)!=_0x107863[_0x5927d4(0x201)]&&_0x3d19f5[_0x5927d4(0x1be)][_0x5927d4(0x1ba)](_0x107863[_0x5927d4(0x176)][_0x5927d4(0x1a1)](!0x0)),_0x5927d4(0x152)!=_0x107863[_0x5927d4(0x201)]){const _0x2ed3f0=_0x3aab3c(_0x446206=>_0x1abf36(_0x446206,_0x5927d4(0x1ae))==_0x107863['id'],_0x4109b4[_0x5927d4(0x1a9)],!0x0);_0x655395[_0x5927d4(0x1be)][_0x5927d4(0x1ba)](_0x2ed3f0[_0x5927d4(0x1a1)](!0x0));}if(0x0==_0x655395[_0x5927d4(0x1be)][_0x5927d4(0x15e)]){if(_0x9250fb[_0x5927d4(0x28d)][0x0][_0x5927d4(0x1a7)]){const _0x2b75d9=_0x3c99c5(_0x5927d4(0x1ae),_0x9250fb[_0x5927d4(0x28d)][0x0][_0x5927d4(0x1a7)],_0x4109b4[_0x5927d4(0x1a9)]);_0x655395[_0x5927d4(0x1be)][_0x5927d4(0x12b)](_0x2b75d9[_0x5927d4(0x1a1)](!0x0)),_0x3d19f5[_0x5927d4(0x1be)][_0x5927d4(0x12b)](_0x2b75d9[_0x5927d4(0x1a1)](!0x0)),_0x2b75d9[_0x5927d4(0x130)]&&(_0x655395[_0x5927d4(0x1be)][_0x5927d4(0x1ba)](_0x2b75d9[_0x5927d4(0x130)][_0x5927d4(0x1a1)](!0x0)),_0x3d19f5[_0x5927d4(0x1be)][_0x5927d4(0x1ba)](_0x2b75d9[_0x5927d4(0x130)][_0x5927d4(0x1a1)](!0x0)));}else{const _0x22bf8f=_0x4109b4[_0x5927d4(0x1a9)][_0x5927d4(0x1be)][0x0];if(!_0x22bf8f)return null;_0x655395[_0x5927d4(0x1be)][_0x5927d4(0x1ba)](_0x22bf8f[_0x5927d4(0x1a1)](!0x0)),_0x3d19f5[_0x5927d4(0x1be)][_0x5927d4(0x1ba)](_0x22bf8f[_0x5927d4(0x1a1)](!0x0));}}const _0x2c4a7c=_0x4e914a[_0x5927d4(0x245)](),_0x58d48b=_0x156008[_0x5927d4(0x1fa)][_0x5927d4(0x18f)](_0x2c4a7c[_0x5927d4(0x1d4)]),_0x1f725d=_0x3e6850(_0x655395),_0x2aa9e1=_0x156008[_0x5927d4(0x1fa)][_0x5927d4(0x18f)](_0x1f725d),_0x22a2cb=_0x156008[_0x5927d4(0x1fa)][_0x5927d4(0x18f)](_0x1f725d),_0xbc0f6=_0x156008[_0x5927d4(0x28c)][_0x5927d4(0x1c5)](_0x2aa9e1,0x0),_0x39be8a=_0x3e6850(_0x3d19f5),_0x5985f0={'anchor':_0xbc0f6,'markDeletions':!0x1},_0x1260ce=_0x156008[_0x5927d4(0x20f)][_0x5927d4(0x28a)](_0x11862a)[_0x5927d4(0x182)](_0x1f725d,_0x39be8a,_0x5985f0)[_0x5927d4(0x23a)]();if(!_0x1260ce[_0x5927d4(0x15e)])return null;_0x156008[_0x5927d4(0x28c)][_0x5927d4(0x1fe)](_0x35470e=>{const _0x2a1adc=_0x5927d4;for(const _0x13b649 of _0x1260ce)if(_0x2a1adc(0x227)==_0x13b649[_0x2a1adc(0x201)]){const _0x4b582d=_0x13b649[_0x2a1adc(0x15d)],_0x50722a=_0x13b649[_0x2a1adc(0x24f)],_0x4130e9=new _0x414068(_0x4b582d,_0x50722a);_0x35470e[_0x2a1adc(0x27c)][_0x2a1adc(0x260)](_0x4130e9),_0x156008[_0x2a1adc(0x28c)][_0x2a1adc(0x139)](_0x4130e9);}else _0x2a1adc(0x18b)!==_0x13b649[_0x2a1adc(0x201)]&&(_0x13b649[_0x2a1adc(0x13f)]=null,_0x13b649[_0x2a1adc(0x27a)]=!0x1,_0x35470e[_0x2a1adc(0x27c)][_0x2a1adc(0x260)](_0x13b649),_0x156008[_0x2a1adc(0x28c)][_0x2a1adc(0x139)](_0x13b649));});const _0x1888b8=_0x349bed(_0x156008,_0x1260ce,_0x2aa9e1);_0x18a23d(_0x156008[_0x5927d4(0x28c)],_0x1888b8);const _0x19586d=_0x1888b8[_0x5927d4(0x1a0)]()[_0x5927d4(0x213)][_0x5927d4(0x127)][_0x5927d4(0x237)](),_0xe4fbf5=_0x1888b8[_0x5927d4(0x1a0)]()[_0x5927d4(0x156)][_0x5927d4(0x127)][_0x5927d4(0x237)](),_0x5eebba=[];let _0x1b5a1c=_0x2aa9e1,_0x40cc12=_0x22a2cb;for(let _0x1215a0=0x0;_0x1215a0<_0xe4fbf5[_0x5927d4(0x15e)];_0x1215a0++){const _0x34c875=_0x1b5a1c[_0x5927d4(0x175)]-_0xe4fbf5[_0x1215a0];_0x5eebba[_0x1215a0]=_0x40cc12[_0x5927d4(0x175)]-_0x34c875,_0x1b5a1c=_0x1b5a1c[_0x5927d4(0x203)](_0xe4fbf5[_0x1215a0]),_0x40cc12=_0x40cc12[_0x5927d4(0x203)](_0x5eebba[_0x1215a0]);}const _0x5c0639=_0x156008[_0x5927d4(0x28c)][_0x5927d4(0x142)](_0x156008[_0x5927d4(0x28c)][_0x5927d4(0x1a8)](_0x22a2cb,_0x19586d),_0x156008[_0x5927d4(0x28c)][_0x5927d4(0x1a8)](_0x22a2cb,_0x5eebba)),_0x3cc179=_0x22a2cb[_0x5927d4(0x12c)](0x0)[_0x5927d4(0x1e2)](_0x3d2679),_0x433edc=Array[_0x5927d4(0x13e)](_0x58d48b[_0x5927d4(0x271)]())[_0x5927d4(0x1c8)](_0x275fbf=>_0x275fbf[_0x5927d4(0x1e2)](_0x3d2679)==_0x3cc179)[_0x5927d4(0x17b)](),_0x4c78c5=_0x5c0639[_0x5927d4(0x213)][_0x5927d4(0x127)][_0x5927d4(0x237)](),_0x3feb0c=_0x5c0639[_0x5927d4(0x156)][_0x5927d4(0x127)][_0x5927d4(0x237)]();_0x4c78c5[0x0]=_0x433edc[0x0]+_0x4c78c5[0x0],_0x3feb0c[0x0]=_0x433edc[0x0]+_0x3feb0c[0x0];let _0x560b16=_0x156008[_0x5927d4(0x28c)][_0x5927d4(0x142)](_0x156008[_0x5927d4(0x28c)][_0x5927d4(0x1a8)](_0x156008[_0x5927d4(0x28c)][_0x5927d4(0x1f4)][_0x5927d4(0x25a)](),_0x4c78c5),_0x156008[_0x5927d4(0x28c)][_0x5927d4(0x1a8)](_0x156008[_0x5927d4(0x28c)][_0x5927d4(0x1f4)][_0x5927d4(0x25a)](),_0x3feb0c));const _0x2c4899=_0x156008[_0x5927d4(0x28c)][_0x5927d4(0x1f4)][_0x5927d4(0x1e6)][_0x5927d4(0x23a)](_0x2c4a7c[_0x5927d4(0x20b)]);for(const _0x11a38f of _0x2c4899)_0x560b16=_0x33df60[_0x5927d4(0x14b)](_0x560b16[_0x5927d4(0x229)](_0x11a38f));return{'range':_0x560b16,'currentIndex':_0xed0c20};}[_0x5f5dc3(0x25e)](_0x88a4cc){const _0x49222d=_0x5f5dc3;if(!_0x88a4cc[_0x49222d(0x20f)][_0x49222d(0x252)](_0x49222d(0x1aa)))return;const _0x4064e5=_0x88a4cc[_0x49222d(0x1c9)][_0x49222d(0x28a)](_0x49222d(0x19c)),_0x4ea497=_0x88a4cc[_0x49222d(0x1c9)][_0x49222d(0x28a)](_0x49222d(0x1f3));this[_0x49222d(0x148)](_0x4064e5,_0x49222d(0x1cf),(_0x502a61,_0x195732,_0x19cc31)=>{const _0x343d8c=_0x49222d,_0xb6e53d=this[_0x343d8c(0x262)][_0x343d8c(0x28a)](_0x195732);if(!_0xb6e53d)return;const _0x470ce5=this[_0x343d8c(0x238)][_0x343d8c(0x263)](_0xb6e53d[_0x343d8c(0x1eb)])[_0x343d8c(0x1d5)](_0xb6e53d[_0x343d8c(0x191)]);_0xb6e53d[_0x343d8c(0x188)][_0x343d8c(0x21e)](_0x5c5a7e=>_0x470ce5[_0x343d8c(0x216)](_0x5c5a7e,_0x343d8c(0x217))),this[_0x343d8c(0x262)][_0x343d8c(0x26b)](_0x195732),this[_0x343d8c(0x262)][_0x343d8c(0x25f)](_0x19cc31,_0xb6e53d);}),this[_0x49222d(0x148)](_0x4ea497,_0x49222d(0x1cf),(_0x31e405,_0x4abfd5,_0x2e396b)=>{const _0x407d1c=_0x49222d,_0x4b21bc=this[_0x407d1c(0x262)][_0x407d1c(0x28a)](_0x4abfd5);if(!_0x4b21bc)return;const _0x5c0437=this[_0x407d1c(0x238)][_0x407d1c(0x263)](_0x4b21bc[_0x407d1c(0x1eb)])[_0x407d1c(0x1d5)](_0x4b21bc[_0x407d1c(0x191)]);_0x4b21bc[_0x407d1c(0x188)][_0x407d1c(0x21e)](_0xdb6df1=>_0x5c0437[_0x407d1c(0x216)](_0xdb6df1,_0x407d1c(0x1d1))),this[_0x407d1c(0x262)][_0x407d1c(0x26b)](_0x4abfd5),this[_0x407d1c(0x262)][_0x407d1c(0x25f)](_0x2e396b,_0x4b21bc);});}async[_0x5f5dc3(0x1bc)](_0x42ea83){const _0x4b1144=_0x5f5dc3;this[_0x4b1144(0x207)][_0x4b1144(0x20f)][_0x4b1144(0x28a)](_0x864511)[_0x4b1144(0x19e)](),this[_0x4b1144(0x28b)][_0x4b1144(0x250)](_0x4b1144(0x269)),this[_0x4b1144(0x28b)][_0x4b1144(0x275)](!0x0),await this[_0x4b1144(0x23c)]();try{await this[_0x4b1144(0x124)][_0x4b1144(0x267)](_0x42ea83)[_0x4b1144(0x246)](),await this[_0x4b1144(0x279)](_0x42ea83),this[_0x4b1144(0x19d)]('\x20');const {sessionId:_0x4a097b}=this[_0x4b1144(0x1f5)][_0x4b1144(0x123)]();await this[_0x4b1144(0x238)][_0x4b1144(0x199)](_0x42ea83,_0x4a097b),this[_0x4b1144(0x238)][_0x4b1144(0x212)]()&&this[_0x4b1144(0x238)][_0x4b1144(0x205)](_0x28fa95(this[_0x4b1144(0x207)][_0x4b1144(0x16e)],_0x4b1144(0x18c)));}catch(_0x36839c){this[_0x4b1144(0x28b)][_0x4b1144(0x219)]({'errorMessage':_0x28fa95(this[_0x4b1144(0x207)][_0x4b1144(0x16e)],_0x4b1144(0x215)),'id':_0x42ea83}),this[_0x4b1144(0x20e)](new _0x5cc404(_0x4b1144(0x1d3),this,{'error':_0x36839c}));}finally{this[_0x4b1144(0x207)][_0x4b1144(0x20f)][_0x4b1144(0x28a)](_0x33adb1)[_0x4b1144(0x1da)][_0x4b1144(0x131)](_0x4b1144(0x255)),this[_0x4b1144(0x28b)][_0x4b1144(0x153)](),this[_0x4b1144(0x28b)][_0x4b1144(0x250)](_0x4b1144(0x1e1)),this[_0x4b1144(0x28b)][_0x4b1144(0x275)](!0x1);}}[_0x5f5dc3(0x1d7)](_0x10db5a){const _0x5d0d8a=_0x5f5dc3;this[_0x5d0d8a(0x238)]['id']===_0x10db5a&&this[_0x5d0d8a(0x279)]();}async[_0x5f5dc3(0x161)](){const _0x48162a=_0x5f5dc3,_0x2a34e9=this[_0x48162a(0x1f5)][_0x48162a(0x17a)]();this[_0x48162a(0x238)]?.[_0x48162a(0x1a3)](_0x2a34e9),this[_0x48162a(0x238)]?.[_0x48162a(0x205)](_0x28fa95(this[_0x48162a(0x207)][_0x48162a(0x16e)],_0x48162a(0x18c)));}[_0x5f5dc3(0x1e3)](){const _0x28f2b1=_0x5f5dc3;this[_0x28f2b1(0x238)]?.[_0x28f2b1(0x177)]();}[_0x5f5dc3(0x17c)](){const _0x2340df=_0x5f5dc3;this[_0x2340df(0x28b)][_0x2340df(0x17c)]();}async[_0x5f5dc3(0x13d)](){const _0x51f97d=_0x5f5dc3;await this[_0x51f97d(0x279)]();}async[_0x5f5dc3(0x1c3)]({message:_0x19017a,quickActionData:_0x4dd3e6}){const _0x4a6644=_0x5f5dc3;await this[_0x4a6644(0x171)]({'userMessage':_0x19017a,'quickActionData':_0x4dd3e6});}[_0x5f5dc3(0x1bd)](){const _0x58ecea=_0x5f5dc3,_0x39f6c9=this[_0x58ecea(0x207)][_0x58ecea(0x140)][_0x58ecea(0x28a)](_0x58ecea(0x26c));if(!_0x39f6c9)throw new _0x5cc404(_0x58ecea(0x265),this);return _0x39f6c9;}async[_0x5f5dc3(0x279)](_0x515afb){const _0x25f59d=_0x5f5dc3;try{this[_0x25f59d(0x28b)][_0x25f59d(0x192)](),await this[_0x25f59d(0x261)](_0x515afb);}catch(_0x13e8e6){this[_0x25f59d(0x28b)][_0x25f59d(0x219)]({'errorMessage':_0x28fa95(this[_0x25f59d(0x207)][_0x25f59d(0x16e)],_0x25f59d(0x16a)),'id':_0x515afb||_0x1582f1()}),console[_0x25f59d(0x264)](_0x13e8e6),this[_0x25f59d(0x238)]=void 0x0,this[_0x25f59d(0x28b)][_0x25f59d(0x145)]();}}async[_0x5f5dc3(0x261)](_0x1a9fda){const _0x56e441=_0x5f5dc3,_0x1dca9a=this[_0x56e441(0x207)][_0x56e441(0x20f)][_0x56e441(0x28a)](_0x864511);let _0x1e3e71;_0x1dca9a[_0x56e441(0x128)]&&_0x1dca9a[_0x56e441(0x19e)](),_0x1a9fda||!this[_0x56e441(0x238)]?_0x1e3e71=this[_0x56e441(0x207)][_0x56e441(0x140)][_0x56e441(0x28a)](_0x56e441(0x1ed)):this[_0x56e441(0x28b)][_0x56e441(0x1e9)]&&(_0x1e3e71=this[_0x56e441(0x238)][_0x56e441(0x280)]['id']),await this[_0x56e441(0x23c)]();const _0x57ead3=this[_0x56e441(0x1bd)](),_0x269667=_0x1a9fda||_0x1582f1();this[_0x56e441(0x238)]=new _0x47f28f({'connector':this[_0x56e441(0x124)],'chatModels':this[_0x56e441(0x1bb)],'selectedModelId':_0x1e3e71,'conversationId':_0x269667,'group':_0x57ead3,'getEditor':()=>_0x518d08(this[_0x56e441(0x207)])}),this[_0x56e441(0x238)]['on'](_0x56e441(0x27f),(_0x2664eb,_0x1b37e5)=>{const _0x28cefc=_0x56e441;this[_0x28cefc(0x28b)][_0x28cefc(0x126)](_0x1b37e5),this[_0x28cefc(0x28b)][_0x28cefc(0x1b3)](),this[_0x28cefc(0x28b)][_0x28cefc(0x25d)](),this[_0x28cefc(0x28b)][_0x28cefc(0x168)](),_0x1a9fda||(this[_0x28cefc(0x28b)][_0x28cefc(0x1c1)](),this[_0x28cefc(0x238)]?.[_0x28cefc(0x205)](_0x28fa95(this[_0x28cefc(0x207)][_0x28cefc(0x16e)],_0x28cefc(0x18c))));}),this[_0x56e441(0x238)]['on'](_0x56e441(0x13a),(_0x3b0255,_0x34790b)=>{const _0x38d76d=_0x56e441;this[_0x38d76d(0x28b)][_0x38d76d(0x1e0)](_0x34790b[_0x38d76d(0x18a)]);}),this[_0x56e441(0x238)]['on'](_0x56e441(0x1f7),(_0x37bf91,_0x8e7ceb)=>{const _0x448f7d=_0x56e441;this[_0x448f7d(0x28b)][_0x448f7d(0x254)](_0x8e7ceb);}),this[_0x56e441(0x238)]['on'](_0x56e441(0x19a),()=>{const _0x557aa0=_0x56e441;this[_0x557aa0(0x28b)][_0x557aa0(0x25b)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x56e441(0x238)]['on'](_0x56e441(0x167),()=>{const _0x5b0764=_0x56e441;this[_0x5b0764(0x28b)][_0x5b0764(0x25b)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x56e441(0x238)]['on'](_0x56e441(0x1a4),(_0x239ed2,_0x4a7850)=>{const _0x901069=_0x56e441;this[_0x901069(0x28b)][_0x901069(0x149)](_0x4a7850,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x56e441(0x238)]['on'](_0x56e441(0x277),(_0x22701a,_0x4c3add)=>{const _0x3f4f08=_0x56e441;this[_0x3f4f08(0x28b)][_0x3f4f08(0x149)](_0x4c3add,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x56e441(0x238)]['on'](_0x56e441(0x249),()=>{const _0x4e2d61=_0x56e441;this[_0x4e2d61(0x28b)][_0x4e2d61(0x1c7)]();}),this[_0x56e441(0x238)]['on'](_0x56e441(0x144),async()=>{const _0x538ef4=_0x56e441;await this[_0x538ef4(0x28b)][_0x538ef4(0x1f1)]();}),this[_0x56e441(0x238)]['on'](_0x56e441(0x27b),(_0x538f7c,_0x25116f)=>{const _0x277258=_0x56e441;this[_0x277258(0x28b)][_0x277258(0x1f6)](_0x25116f['id']);}),this[_0x56e441(0x238)]['on'](_0x56e441(0x193),(_0x2b9c3b,_0x37fc97,_0x4e0f85)=>{const _0x3c64d5=_0x56e441;this[_0x3c64d5(0x19d)](_0x37fc97,_0x4e0f85);}),this[_0x56e441(0x238)]['on'](_0x56e441(0x170),(_0x2e2975,_0x853569)=>{const _0x31266a=_0x56e441;_0x31266a(0x185)===_0x853569[_0x31266a(0x201)]?this[_0x31266a(0x28b)][_0x31266a(0x1ef)](_0x853569):this[_0x31266a(0x28b)][_0x31266a(0x12a)](_0x853569);}),this[_0x56e441(0x238)]['on'](_0x56e441(0x1ea),async(_0x477adf,_0x583571)=>{const _0x4d0c02=_0x56e441;await this[_0x4d0c02(0x209)]({'reply':_0x583571});}),this[_0x56e441(0x238)]['on'](_0x56e441(0x286),(_0x1939ee,{reply:_0x27acf6,index:_0x4f5803,state:_0x1913e2})=>{const _0x52980e=_0x56e441;this[_0x52980e(0x28b)][_0x52980e(0x197)]({'id':_0x27acf6['id'],'index':_0x4f5803,'state':_0x1913e2});}),this[_0x56e441(0x238)]['on'](_0x56e441(0x1d8),(_0x3a269f,_0x4d5295)=>{const _0x3c0b68=_0x56e441;if(this[_0x3c0b68(0x28b)][_0x3c0b68(0x20c)](_0x4d5295[_0x3c0b68(0x244)],_0x4d5295[_0x3c0b68(0x259)]),_0x3c0b68(0x178)===_0x4d5295[_0x3c0b68(0x244)][_0x3c0b68(0x201)]){const _0x4af833=[..._0x518d08(this[_0x3c0b68(0x207)])[_0x3c0b68(0x28c)][_0x3c0b68(0x1f4)][_0x3c0b68(0x178)][_0x3c0b68(0x236)]()];this[_0x3c0b68(0x1f5)][_0x3c0b68(0x26d)](_0x4af833,_0x3c0b68(0x1b6)+this[_0x3c0b68(0x238)]?.['id']);}}),this[_0x56e441(0x238)]['on'](_0x56e441(0x23d),(_0x8e20e0,_0x288892)=>{const _0x2c85a7=_0x56e441;this[_0x2c85a7(0x28b)][_0x2c85a7(0x186)](_0x288892[_0x2c85a7(0x248)]),_0x2c85a7(0x1df)==_0x288892[_0x2c85a7(0x248)]&&this[_0x2c85a7(0x1e3)](),_0x2c85a7(0x178)===_0x288892[_0x2c85a7(0x201)]&&this[_0x2c85a7(0x1f5)][_0x2c85a7(0x208)](_0x2c85a7(0x1b6)+this[_0x2c85a7(0x238)]?.['id']);}),this[_0x56e441(0x238)]['on'](_0x56e441(0x1c2),(_0x24e15d,_0x2ed11b)=>{const _0x1b097f=_0x56e441;this[_0x1b097f(0x28b)][_0x1b097f(0x243)](_0x2ed11b[_0x1b097f(0x244)][_0x1b097f(0x248)],_0x2ed11b[_0x1b097f(0x259)]);}),this[_0x56e441(0x238)]['on'](_0x56e441(0x150),(_0x35963e,_0x439e91)=>{const _0x106a4e=_0x56e441;this[_0x106a4e(0x28b)][_0x106a4e(0x22b)](_0x439e91[_0x106a4e(0x158)]);}),this[_0x56e441(0x238)]['on'](_0x56e441(0x1b9),(_0x2879ba,_0x11ab69)=>{const _0x1b7c7b=_0x56e441;this[_0x1b7c7b(0x28b)][_0x1b7c7b(0x27e)](_0x11ab69[_0x1b7c7b(0x214)]);}),this[_0x56e441(0x238)]['on'](_0x56e441(0x1cb),(_0x1485e6,_0x17d2c2)=>{const _0x2f1f1a=_0x56e441;this[_0x2f1f1a(0x28b)][_0x2f1f1a(0x256)](_0x17d2c2[_0x2f1f1a(0x159)],_0x17d2c2[_0x2f1f1a(0x24e)],_0x17d2c2[_0x2f1f1a(0x12f)],_0x17d2c2[_0x2f1f1a(0x228)]);}),this[_0x56e441(0x238)]['on'](_0x56e441(0x198),(_0x408234,_0x459d0a)=>{const _0x2a1f33=_0x56e441;this[_0x2a1f33(0x28b)][_0x2a1f33(0x22d)](_0x459d0a[_0x2a1f33(0x159)],_0x459d0a[_0x2a1f33(0x1ac)],_0x459d0a[_0x2a1f33(0x26f)]);}),this[_0x56e441(0x238)]['on'](_0x56e441(0x1d9),(_0x421cf0,_0x58b59c)=>{const _0x30bfa6=_0x56e441;this[_0x30bfa6(0x28b)][_0x30bfa6(0x1b0)](_0x58b59c);}),this[_0x56e441(0x238)]['on'](_0x56e441(0x24b),(_0x373162,_0x1919c1)=>{const _0x1ac0af=_0x56e441;this[_0x1ac0af(0x28b)][_0x1ac0af(0x146)](_0x1919c1[_0x1ac0af(0x280)],_0x1919c1[_0x1ac0af(0x221)]);}),this[_0x56e441(0x238)]['on'](_0x56e441(0x264),(_0x3df867,{error:_0x786ff4,interactionId:_0x514022,fileName:_0x54a74a,url:_0x3fc5f0,sourceId:_0xdd3d97,sourceLabel:_0x8cfd4d})=>{const _0x5b0181=_0x56e441,_0x4141a0=_0x514022?_0x514022+':'+_0x1582f1():_0x1582f1();_0x786ff4[_0x5b0181(0x13b)][_0x5b0181(0x172)](_0x5b0181(0x204))?this[_0x5b0181(0x28b)][_0x5b0181(0x24a)]({'staticMessage':_0x28fa95(this[_0x5b0181(0x207)][_0x5b0181(0x16e)],_0x5b0181(0x184)),'id':_0x4141a0}):_0x786ff4[_0x5b0181(0x13b)][_0x5b0181(0x172)](_0x5b0181(0x247))||_0x786ff4[_0x5b0181(0x13b)][_0x5b0181(0x172)](_0x5b0181(0x19b))?(this[_0x5b0181(0x28b)][_0x5b0181(0x219)]({'errorMessage':_0x28fa95(this[_0x5b0181(0x207)][_0x5b0181(0x16e)],_0x5b0181(0x16a)),'id':_0x4141a0}),this[_0x5b0181(0x20e)](_0x786ff4)):_0x786ff4[_0x5b0181(0x13b)][_0x5b0181(0x172)](_0x5b0181(0x196))?this[_0x5b0181(0x28b)][_0x5b0181(0x219)]({'errorMessage':_0x28fa95(this[_0x5b0181(0x207)][_0x5b0181(0x16e)],_0x5b0181(0x147),_0x54a74a),'id':_0x4141a0}):_0x786ff4[_0x5b0181(0x13b)][_0x5b0181(0x172)](_0x5b0181(0x1f8))?this[_0x5b0181(0x28b)][_0x5b0181(0x219)]({'errorMessage':_0x28fa95(this[_0x5b0181(0x207)][_0x5b0181(0x16e)],_0x5b0181(0x160),_0x3fc5f0),'id':_0x4141a0}):_0x786ff4[_0x5b0181(0x13b)][_0x5b0181(0x172)](_0x5b0181(0x18e))?this[_0x5b0181(0x28b)][_0x5b0181(0x219)]({'errorMessage':_0x28fa95(this[_0x5b0181(0x207)][_0x5b0181(0x16e)],_0x5b0181(0x135)),'id':_0x4141a0}):_0x786ff4[_0x5b0181(0x13b)][_0x5b0181(0x172)](_0x5b0181(0x14d))?this[_0x5b0181(0x28b)][_0x5b0181(0x219)]({'errorMessage':_0x28fa95(this[_0x5b0181(0x207)][_0x5b0181(0x16e)],_0x5b0181(0x1b8)),'id':_0x4141a0}):_0x786ff4[_0x5b0181(0x13b)][_0x5b0181(0x172)](_0x5b0181(0x17f))?(_0xdd3d97&&this[_0x5b0181(0x28b)][_0x5b0181(0x14a)](_0xdd3d97),this[_0x5b0181(0x28b)][_0x5b0181(0x219)]({'errorMessage':_0x28fa95(this[_0x5b0181(0x207)][_0x5b0181(0x16e)],_0x5b0181(0x1ca),_0x8cfd4d||_0x5b0181(0x24e)),'id':_0x4141a0}),this[_0x5b0181(0x20e)](_0x786ff4)):_0x786ff4[_0x5b0181(0x13b)][_0x5b0181(0x172)](_0x5b0181(0x1ce))?(this[_0x5b0181(0x28b)][_0x5b0181(0x219)]({'errorMessage':_0x28fa95(this[_0x5b0181(0x207)][_0x5b0181(0x16e)],_0x5b0181(0x1ee)),'id':_0x4141a0}),this[_0x5b0181(0x20e)](_0x786ff4)):_0x786ff4[_0x5b0181(0x13b)][_0x5b0181(0x172)](_0x5b0181(0x234))?(this[_0x5b0181(0x28b)][_0x5b0181(0x219)]({'errorMessage':_0x28fa95(this[_0x5b0181(0x207)][_0x5b0181(0x16e)],_0x5b0181(0x1cc)),'id':_0x4141a0}),this[_0x5b0181(0x20e)](_0x786ff4)):_0x786ff4[_0x5b0181(0x13b)][_0x5b0181(0x172)](_0x5b0181(0x285))?(this[_0x5b0181(0x28b)][_0x5b0181(0x219)]({'errorMessage':_0x28fa95(this[_0x5b0181(0x207)][_0x5b0181(0x16e)],_0x5b0181(0x166)),'id':_0x4141a0}),this[_0x5b0181(0x20e)](_0x786ff4)):_0x786ff4[_0x5b0181(0x13b)][_0x5b0181(0x172)](_0x5b0181(0x16d))?(this[_0x5b0181(0x28b)][_0x5b0181(0x219)]({'errorMessage':_0x28fa95(this[_0x5b0181(0x207)][_0x5b0181(0x16e)],_0x5b0181(0x222)),'id':_0x4141a0}),this[_0x5b0181(0x20e)](_0x786ff4)):_0x786ff4[_0x5b0181(0x13b)][_0x5b0181(0x172)](_0x5b0181(0x136))?(this[_0x5b0181(0x28b)][_0x5b0181(0x219)]({'errorMessage':_0x28fa95(this[_0x5b0181(0x207)][_0x5b0181(0x16e)],_0x5b0181(0x25c)),'id':_0x4141a0}),this[_0x5b0181(0x20e)](_0x786ff4)):_0x786ff4[_0x5b0181(0x13b)][_0x5b0181(0x172)](_0x5b0181(0x183))?(this[_0x5b0181(0x28b)][_0x5b0181(0x219)]({'errorMessage':_0x28fa95(this[_0x5b0181(0x207)][_0x5b0181(0x16e)],_0x5b0181(0x1db)),'id':_0x4141a0}),this[_0x5b0181(0x20e)](_0x786ff4)):(this[_0x5b0181(0x28b)][_0x5b0181(0x219)]({'errorMessage':_0x28fa95(this[_0x5b0181(0x207)][_0x5b0181(0x16e)],_0x5b0181(0x164)),'id':_0x4141a0}),this[_0x5b0181(0x20e)](_0x786ff4));}),await this[_0x56e441(0x238)][_0x56e441(0x181)](this[_0x56e441(0x207)][_0x56e441(0x140)][_0x56e441(0x28a)](_0x56e441(0x26e))),_0x1a9fda||await this[_0x56e441(0x238)][_0x56e441(0x213)]();}async[_0x5f5dc3(0x171)]({userMessage:_0x10d91f,quickActionData:_0x1d0580}){const _0x254dde=_0x5f5dc3;if(!this[_0x254dde(0x238)])throw new _0x5cc404(_0x254dde(0x23f));this[_0x254dde(0x238)][_0x254dde(0x129)]()&&await this[_0x254dde(0x238)][_0x254dde(0x22f)](this[_0x254dde(0x1f5)][_0x254dde(0x123)]()),this[_0x254dde(0x238)]['id']&&this[_0x254dde(0x238)][_0x254dde(0x155)]&&await this[_0x254dde(0x238)][_0x254dde(0x1b5)]({'userMessage':_0x10d91f,'quickActionData':_0x1d0580}),this[_0x254dde(0x274)]();}[_0x5f5dc3(0x274)](){const _0x34db0c=_0x5f5dc3,_0x19cb51=_0x518d08(this[_0x34db0c(0x207)])[_0x34db0c(0x28c)],_0xb0f49=Array[_0x34db0c(0x13e)](_0x19cb51[_0x34db0c(0x200)][_0x34db0c(0x15a)](_0xedcbfe));_0x19cb51[_0x34db0c(0x1fe)](_0x1da632=>{const _0x2d04f5=_0x34db0c;_0xb0f49[_0x2d04f5(0x21e)](_0x3089c5=>_0x1da632[_0x2d04f5(0x20a)](_0x3089c5));});}[_0x5f5dc3(0x1f2)](){const _0x5856dc=_0x5f5dc3;console[_0x5856dc(0x1d6)](_0x5856dc(0x202));}[_0x5f5dc3(0x278)](_0x20a4c0){const _0x50102a=_0x5f5dc3;this[_0x50102a(0x28b)][_0x50102a(0x22e)](_0x20a4c0);}[_0x5f5dc3(0x20e)](_0x328852){const _0x25c97b=_0x5f5dc3;_0x2cf3bc(_0x328852[_0x25c97b(0x13b)]);}[_0x5f5dc3(0x1bf)](_0x5077b8){const _0x3b5589=_0x5f5dc3;this[_0x3b5589(0x238)]?.[_0x3b5589(0x1b4)](_0x5077b8);}[_0x5f5dc3(0x1a6)](){const _0x1468a9=_0x5f5dc3;this[_0x1468a9(0x238)]?.[_0x1468a9(0x133)]();}[_0x5f5dc3(0x282)](){const _0x3ad51b=_0x5f5dc3;this[_0x3ad51b(0x238)]?.[_0x3ad51b(0x132)]();}[_0x5f5dc3(0x223)](_0x3bb4bb){const _0x5d33e1=_0x5f5dc3,[_0x523c1f,_0x329568]=_0x3bb4bb[_0x5d33e1(0x15f)](':'),_0x117d67=this[_0x5d33e1(0x238)][_0x5d33e1(0x263)](_0x523c1f),_0x23d603=_0x117d67[_0x5d33e1(0x1d5)](_0x329568);return{'interaction':_0x117d67,'reply':_0x23d603};}[_0x5f5dc3(0x1d0)](_0x45250c,_0x54750a=!0x1){const _0x588e5d=_0x5f5dc3,_0x23f127=_0x518d08(this[_0x588e5d(0x207)]),_0xfdda5c={'target':_0x23f127[_0x588e5d(0x21a)][_0x588e5d(0x1da)][_0x588e5d(0x26a)][_0x588e5d(0x270)](_0x23f127[_0x588e5d(0x21a)][_0x588e5d(0x24c)][_0x588e5d(0x230)](_0x45250c)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x54750a};_0x54750a&&(_0xfdda5c[_0x588e5d(0x187)]=!0x0),_0x5dae96(_0xfdda5c);}[_0x5f5dc3(0x19d)](_0xfb1de8,_0x1d4cac=!0x1){const _0x27fe5e=_0x5f5dc3;this[_0x27fe5e(0x28b)][_0x27fe5e(0x193)](_0xfb1de8||_0x28fa95(this[_0x27fe5e(0x207)][_0x27fe5e(0x16e)],_0x27fe5e(0x1f0)),_0x1d4cac);}async[_0x5f5dc3(0x209)]({reply:_0x564250,renderingStrategy:_0x339655}){const _0x382e17=_0x5f5dc3,{id:_0x21c1cc,isDone:_0xdae6ea,type:_0x17e8ea,parsedContent:_0x201dd8}=_0x564250;if(_0x382e17(0x268)===_0x17e8ea){const _0x1fd552=_0x564250[_0x382e17(0x287)]({'showDiff':this[_0x382e17(0x28b)][_0x382e17(0x1ad)]});await this[_0x382e17(0x28b)][_0x382e17(0x190)]({'id':_0x21c1cc,'parts':_0x1fd552,'renderingStrategy':_0x339655,'isDone':_0xdae6ea});}else _0x382e17(0x185)===_0x17e8ea&&await this[_0x382e17(0x28b)][_0x382e17(0x1dd)]({'id':_0x21c1cc,'parsedContent':_0x201dd8,'renderingStrategy':_0x339655,'isDone':_0xdae6ea});_0xdae6ea&&_0x564250[_0x382e17(0x24d)][_0x382e17(0x15e)]>0x0&&this[_0x382e17(0x28b)][_0x382e17(0x1e7)](_0x21c1cc,_0x564250[_0x382e17(0x24d)]);}async[_0x5f5dc3(0x23c)](){const _0x3987b8=_0x5f5dc3,_0x1bf50d=this[_0x3987b8(0x238)]?.[_0x3987b8(0x134)];_0x1bf50d&&(_0x1bf50d[_0x3987b8(0x14f)](),this[_0x3987b8(0x28b)][_0x3987b8(0x28e)](_0x1bf50d));}async[_0x5f5dc3(0x16b)](){const _0x593805=_0x5f5dc3,_0x3170b7=this[_0x593805(0x238)]?.[_0x593805(0x134)];if(_0x3170b7){for await(const _0x214d34 of _0x3170b7[_0x593805(0x195)])await this[_0x593805(0x209)]({'reply':_0x214d34,'renderingStrategy':_0x593805(0x269)});}}[_0x5f5dc3(0x125)](_0x43c5f9){const _0x472717=_0x5f5dc3,_0xc1bfe7={'positiveCount':_0x43c5f9[_0x472717(0x289)][_0x472717(0x226)](_0x52776e=>_0x472717(0x1d1)===_0x52776e[_0x472717(0x276)])[_0x472717(0x15e)],'totalCount':_0x43c5f9[_0x472717(0x289)][_0x472717(0x15e)],'modificationId':_0x43c5f9['id']},_0x431929=this[_0x472717(0x238)][_0x472717(0x263)](_0x43c5f9[_0x472717(0x1eb)])[_0x472717(0x13c)];this[_0x472717(0x124)][_0x472717(0x169)](this[_0x472717(0x238)]['id'],_0x431929,_0xc1bfe7);}}
23
+ const _0x722d79=_0x5d0d;(function(_0x152726,_0x3fa067){const _0x3873ae=_0x5d0d,_0x264994=_0x152726();while(!![]){try{const _0x15ccab=-parseInt(_0x3873ae(0x20f))/0x1*(-parseInt(_0x3873ae(0x195))/0x2)+parseInt(_0x3873ae(0x26c))/0x3*(-parseInt(_0x3873ae(0x2c0))/0x4)+parseInt(_0x3873ae(0x210))/0x5*(-parseInt(_0x3873ae(0x23b))/0x6)+parseInt(_0x3873ae(0x1a9))/0x7+parseInt(_0x3873ae(0x2d3))/0x8*(parseInt(_0x3873ae(0x2a3))/0x9)+-parseInt(_0x3873ae(0x2ce))/0xa*(parseInt(_0x3873ae(0x19f))/0xb)+-parseInt(_0x3873ae(0x20c))/0xc;if(_0x15ccab===_0x3fa067)break;else _0x264994['push'](_0x264994['shift']());}catch(_0x20d857){_0x264994['push'](_0x264994['shift']());}}}(_0x149e,0x35b6b));import{ContextPlugin as _0x2222db,Editor as _0x223500}from'ckeditor5/src/core.js';function _0x149e(){const _0x12217b=['setIsUploadInProgress','setFeedItemRenderingStrategy','_aiChatModels','_aiChatUi','config','getRoot','_aiEditing','getConversation','ai-chat-url-upload-failed','AITabs','AI_BALLOON_HEADER_TITLE','uid','message','filter','populateSourceResourceBalloon','removeSelectionFromChatContext','AIConnector','collaboration.channelId','addContextItem','ai.availableReplyActions','focusPromptInput','addUrlToContext','has','startInteraction','howMany','AI_CHAT_INVALID_REQUEST','sources','current-document','_removeFromContext','type','clearConversationContextUI','anchorId','getOperations','documentContextContent','ai-chat-source-resources-load-failed','removeFeedInteraction','dislike','showChangeInText','clearPendingContextUI','getDocumentData','like','split','interactionStarted','revert','handleUserInteraction','remove','1328AOhJwS','map','getChildren','_logError','_updateRatings','afterInit','editors','ai.chat.models.displayedModels','removeMarker','requires','506GGELqP','ai.chat.models.defaultModelId','_getDocumentRangeForReplyChanges','Liked\x20response','createRange','updateFeedItemAIReplySuggestionContent','getGroupId','applySuggestion','ready','getDiff','2121665QbBvxr','showNext','resizedTabs','isUploadInProgress','setLoadingMessage','ai-chat-context-file-too-many-pages','scrollFeedToSuggestion','sourceResourcesLoaded','addFeedItemAISuggestion','uiId','main','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','pluginName','upsertAIChatRating','stop','isStarted','AIChatController','resource','updateFeedItemAIReplyContent','updateCapabilities','setConversationTitle','createPositionAt','rejected','context','mapper','reasoningFinished','sourceId','addSelectionToChatContext','abortPromptStream','start','_batchToChanges','rootName','stopListening','version','_removeAISelectionMarkers','getReply','addFeedItemUserMessage','nextSibling','ai-request-aborted','_insertSuggestion','contextItems','document','updateContent','reasoningStarted','node','contextItem','contextItemAdded','updateCurrentDocumentInContext','addFeedInteractionHeader','new','_toggleWebSearch','addDocumentToContext','addFeedItemAIReply','ai-chat-context-invalid-data','markers','messageId','_aiConnector','_handleStartConversation','resizeTabs','ai-chat-controller-mouse-over','replyContentUpdated','resetMessageInput','AI_CHAT_CONTEXT_INVALID_DATA','root','ai-chat-conversation-not-found','getAttribute','closeSourceResourceBalloon','isCurrentDocumentInContext','getTransformedByOperation','_previewedChangeGroup','_integrateEditor','isLoading','ai-chat-conversation-init-failed','isOpen','updateFeedItemAIReplySources','ai-chat-resource-load-failed','chat','applyOperation','_balloonShowDiff','getChildAtOffset','AI_CHAT_RESOURCE_LOAD_FAILED','addOperation','interactionDestroyed','isDocumentOperation','dialogClosed','ai-chat-conversation-start-failed','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','AIChatUI','DocumentCompare','ai-no-track-changes','toString','toggleWebSearch','view','Undo','getSelectionText','end','selectModel','ai-chat-invalid-request','data-id','420648rUtUWD','viewRangeToDom','interactionFinished','371NMUYlA','431155VQfglY','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','index','resourceStateChanged','setIsMaximized','alignToTop','setSelectedModel','unshift','startsWith','model','listenTo','disableControls','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','full','isPremiumPlugin','toggleSuggestionDisplayMode','close','push','activateTab','startAutoScroll','contextSent','isModelAvailable','commands','ai-chat-context-unsupported-file-type','isCurrentDocumentInConversation','indexes','sendMessage','marker','ai-chat-missing-channel-id','addContextOptionsChanged','setChangeGroupState','sendUserMessage','AI_CHAT_ABORTED_MESSAGE','indexOf','ai-chat-context-form-data-size-limits-exceeded','Disliked\x20response','delete','_updateReplyContent','AI_CHAT_UNABLE_TO_START_CONVERSATION','_createFromRanges','AI_CHAT_GENERIC_ERROR','interactionCreated','_flushLastInteractionUI','6eJpySK','_showConversationHistory','getRanges','contextItemRemoved','_startConversationSafely','history','options','editing','_handleUIUserMessage','updateResourceState','removeContextItem','mouseOverSuggestion','setContextItemLoading','locale','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','text-delta','updateConversationTitle','source','change','ai-chat-context-file-too-large','fetchConversation','getInteractionAndReplyById','state','length','add','set','ai-chat-controller-no-active-conversation','insertSuggestion','hideFakeVisualSelection','showFakeVisualSelection','createPositionFromPath','TrackChangesEditing','_setIsMaximized','log','Showing\x20conversation\x20history...','addResourceToContext','static','addSelectionToContext','outdated','baseVersion','setModel','AIEditing','getDocumentContext','$graveyard','forEach','plugins','createConversation','conversationInitialized','webSearchFinished','831507jPTgyQ','range','capabilitiesUpdated','_applyOperationsAsSuggestions','undo','loadConversation','AI_CHAT_UNTITLED_CONVERSATION','ai-chat-file-upload-failed','interactionId','modelSelected','init','removeFromContext','resetConversationTitle','webSearchStarted','getContentParts','error','_scrollToSuggestionRange','ai.chat.context','getChild','open','handleRemovedConversation','maxOffset','toggleLoadingSkeleton','get','replyCreated','loadSourceResources','streaming','enableControls','stopInteraction','isDisabled','content','findIndex','toggleReasoning','finishInteraction','addFeedItemStaticMessage','_openBalloonFor','uploadProgressChanged','redo','removeSelectionFromContext','lastInteraction','showDiff','changes','addFeedItemError','getFirstRange','TrackChanges','ai-conversation-','addFilesToContext','load','_toggleReasoning','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','toViewRange','getInteraction','accepted','_applySuggestion','query','135cMKuJt','children','changeGroups','data','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','addCurrentDocumentToContext','removed','sourcePosition','AI_CHAT_CONTEXT_FILE_TOO_LARGE','addFileToContext','cloneNode','getMarkersGroup','rejectSuggestion','setAddContextOptions','parse','partIndex','domConverter','isInContext','resize','hasChanges','setConversationContext','updateFeedItemAIReplySuggestionPartState','modification-delta','mouseLeaveSuggestion','startConversation','path','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','replies','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','4xTavfX','resourceId','find','selection','contextItemLoadingEnded','replyId','selectedModel','showPrevious','ai-chat-context-unsupported-type','slice','pending','getPath','isOfficialPlugin','resources','55240HSmQui','activeConversation','replyChangeGroupStateUpdated','batch','from','172336VVSKhk','_stopLastInteraction'];_0x149e=function(){return _0x12217b;};return _0x149e();}import{CKEditorError as _0x56bfe4,logError as _0x403c82,scrollViewportToShowTarget as _0x2ac001,uid as _0x567464}from'ckeditor5/src/utils.js';import{AIConnector as _0x371ca2}from'../aicore/aiconnector.js';import{AITabs as _0x15b59e}from'../aitabs/aitabs.js';import{AIChatConversation as _0x5188f9}from'./model/aichatconversation.js';import{getTranslation as _0xc3a8c}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x5dc995}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0xaf499c}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x405bb5}from'./model/aichatmodels.js';import{getEditorFromContext as _0x4dfe45}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x1e0fe3,DATA_ID_MODEL_ATTRIBUTE as _0x47a7f5}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x316879,getOperationsFromReply as _0x3fe6}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x118718,getMinimalSelection as _0x136d73}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x419998,_DetachOperation as _0x347c6f}from'ckeditor5/src/engine.js';import{findOne as _0x5c46b8,getAttribute as _0x174d3e,serialize as _0x9af624,Document as _0x301a4d,findByAttribute as _0x244b7e}from'../aicore/utils/htmlparser.js';import{IconAI as _0x5c5b7c}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x72ff3}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x5d0d(_0x384c83,_0x4caa46){const _0x149e86=_0x149e();return _0x5d0d=function(_0x5d0d58,_0x1e46bd){_0x5d0d58=_0x5d0d58-0x16e;let _0x4416bf=_0x149e86[_0x5d0d58];return _0x4416bf;},_0x5d0d(_0x384c83,_0x4caa46);}import{AIBalloon as _0x1641f1}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x2222db{[_0x722d79(0x2db)];[_0x722d79(0x1e1)];[_0x722d79(0x2d8)];[_0x722d79(0x2d7)];[_0x722d79(0x1c7)]=new Map();[_0x722d79(0x1ee)]=null;[_0x722d79(0x1f7)]=!0x1;static get[_0x722d79(0x19e)](){return[_0x371ca2,_0x1641f1,_0x1e0fe3];}static get[_0x722d79(0x1b5)](){const _0x2adda9=_0x722d79;return _0x2adda9(0x1b9);}static get[_0x722d79(0x2cc)](){return!0x0;}static get[_0x722d79(0x21e)](){return!0x0;}[_0x722d79(0x276)](){const _0x562a99=_0x722d79;this[_0x562a99(0x1e1)]=this[_0x562a99(0x1c0)][_0x562a99(0x268)][_0x562a99(0x283)](_0x562a99(0x177)),this[_0x562a99(0x2d8)]=this[_0x562a99(0x1c0)][_0x562a99(0x268)][_0x562a99(0x283)](_0x562a99(0x200)),this[_0x562a99(0x2db)]=this[_0x562a99(0x1c0)][_0x562a99(0x268)][_0x562a99(0x283)](_0x562a99(0x264)),this[_0x562a99(0x2d7)]=new _0x405bb5({'connector':this[_0x562a99(0x1e1)],'availableModels':this[_0x562a99(0x1c0)][_0x562a99(0x2d9)][_0x562a99(0x283)](_0x562a99(0x19c)),'defaultModelId':this[_0x562a99(0x1c0)][_0x562a99(0x2d9)][_0x562a99(0x283)](_0x562a99(0x1a0))});const _0x33c077=this[_0x562a99(0x1c0)][_0x562a99(0x268)][_0x562a99(0x283)](_0x562a99(0x170));this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x2bb),()=>{const _0x56ec1a=_0x562a99;this[_0x56ec1a(0x23f)]();}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x22f),(_0x2cce55,_0x3472e1)=>{const _0x51a53c=_0x562a99;this[_0x51a53c(0x243)]({'userMessage':_0x3472e1});}),this[_0x562a99(0x21a)](_0x33c077,_0x562a99(0x1ab),(_0x24fffd,_0x2d6522)=>{const _0x3a5585=_0x562a99;this[_0x3a5585(0x25b)](_0x2d6522);}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x1e3),()=>{const _0x1aa992=_0x562a99;_0x33c077[_0x1aa992(0x2b5)]();}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x1c5),async()=>{const _0xae4ead=_0x562a99;await this[_0xae4ead(0x2d4)](),await this[_0xae4ead(0x23a)](),this[_0xae4ead(0x176)]();}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x1dc),()=>{const _0x299916=_0x562a99;this[_0x299916(0x2cf)]?.[_0x299916(0x2a8)](_0xc3a8c(this[_0x299916(0x1c0)][_0x299916(0x248)],_0x299916(0x2bf)));}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x2ac),(_0xe52146,_0x2bb65c)=>{const _0x42bbe0=_0x562a99;this[_0x42bbe0(0x2cf)]?.[_0x42bbe0(0x29a)](Array[_0x42bbe0(0x2d2)](_0x2bb65c));}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x17c),(_0x196f40,_0x3b03b6)=>{const _0x686761=_0x562a99;this[_0x686761(0x2cf)]?.[_0x686761(0x17c)](_0x3b03b6);}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x25e),(_0xceb38b,_0x3db746)=>{const _0x3bcf25=_0x562a99;this[_0x3bcf25(0x2cf)]?.[_0x3bcf25(0x25e)](_0x3db746[_0x3bcf25(0x24c)],_0x3db746[_0x3bcf25(0x1ba)]);}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x245),(_0x221f5d,_0x1254ed)=>{const _0x216e5d=_0x562a99;this[_0x216e5d(0x183)](_0x1254ed);}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x285),(_0x1e89e8,_0x1f684e)=>{const _0x351a07=_0x562a99;this[_0x351a07(0x2cf)]?.[_0x351a07(0x285)](_0x1f684e[_0x351a07(0x1c3)],_0x1f684e[_0x351a07(0x2a2)],_0x1f684e[_0x351a07(0x172)]);}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x204),()=>{const _0x21efb3=_0x562a99;this[_0x21efb3(0x1db)]();}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x28c),()=>{const _0x2a1190=_0x562a99;this[_0x2a1190(0x29c)]();}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x209),(_0x41de71,_0x1a7e0f)=>{const _0x5ca3ea=_0x562a99;this[_0x5ca3ea(0x2cf)]?.[_0x5ca3ea(0x263)](_0x1a7e0f);}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x18f),(_0x1d6d66,{replyId:_0x3c25b5})=>{const _0x46f076=_0x562a99;console[_0x46f076(0x25c)](_0x46f076(0x1a2),_0x3c25b5);}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x18b),(_0xba9926,{replyId:_0x112551})=>{const _0x1c6633=_0x562a99;console[_0x1c6633(0x25c)](_0x1c6633(0x233),_0x112551);}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x256),(_0xc6f27f,_0x44353e)=>{const _0x49f989=_0x562a99;this[_0x49f989(0x1c0)][_0x49f989(0x268)][_0x49f989(0x283)](_0x1641f1)[_0x49f989(0x220)](),this[_0x49f989(0x1d0)](_0x44353e);}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x18c),(_0x5b56d4,{replyId:_0x20cb07,partIndex:_0x4d3b47})=>{const _0x46bdaf=_0x562a99;this[_0x46bdaf(0x1f7)]=this[_0x46bdaf(0x2d8)][_0x46bdaf(0x294)],this[_0x46bdaf(0x28f)](_0x20cb07,_0x4d3b47);}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x246),(_0x3e8752,{replyId:_0x51346c,partIndex:_0x224542})=>{const _0x96a3d5=_0x562a99,_0x47a7e9=this[_0x96a3d5(0x1a1)](_0x51346c,_0x224542);_0x47a7e9&&_0x96a3d5(0x266)!=_0x47a7e9[_0x96a3d5(0x26d)][_0x96a3d5(0x1e8)][_0x96a3d5(0x1c8)]&&this[_0x96a3d5(0x2db)][_0x96a3d5(0x258)]([_0x47a7e9[_0x96a3d5(0x26d)]],_0x96a3d5(0x1e4));}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x2ba),()=>{const _0x5850d9=_0x562a99;this[_0x5850d9(0x2db)][_0x5850d9(0x257)](_0x5850d9(0x1e4));}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x1a6),(_0x4e2bfe,_0x57c5fd)=>{const _0x1df968=_0x562a99;this[_0x1df968(0x1c0)][_0x1df968(0x268)][_0x1df968(0x283)](_0x1641f1)[_0x1df968(0x220)](),this[_0x1df968(0x2a1)](_0x57c5fd);}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x21f),async(_0x15de9d,{replyId:_0x2a30e9,showDiff:_0x39461f})=>{const _0x3bba4f=_0x562a99,{reply:_0x53e104}=this[_0x3bba4f(0x250)](_0x2a30e9),_0x224e93=_0x53e104[_0x3bba4f(0x27a)]({'showDiff':_0x39461f});await this[_0x3bba4f(0x2d8)][_0x3bba4f(0x1a4)]({'id':_0x53e104['id'],'parts':_0x224e93,'renderingStrategy':_0x3bba4f(0x25f)});}),this[_0x562a99(0x21a)](this[_0x562a99(0x2d8)],_0x562a99(0x2af),(_0x5d8aca,{replyId:_0xfbf834,partIndex:_0x43b77b})=>{const _0x1a9f0a=_0x562a99;this[_0x1a9f0a(0x1ee)]?.[_0x1a9f0a(0x2c5)]==_0xfbf834&&this[_0x1a9f0a(0x1ee)]?.[_0x1a9f0a(0x2b2)]==_0x43b77b&&this[_0x1a9f0a(0x1c0)][_0x1a9f0a(0x268)][_0x1a9f0a(0x283)](_0x1641f1)[_0x1a9f0a(0x220)]();const {reply:_0x4d7847}=this[_0x1a9f0a(0x250)](_0xfbf834);_0x4d7847[_0x1a9f0a(0x22e)](_0x43b77b,_0x1a9f0a(0x1bf)),this[_0x1a9f0a(0x2db)][_0x1a9f0a(0x257)](_0x1a9f0a(0x1e4));});}async[_0x722d79(0x19a)](){const _0x113b5b=_0x722d79;this[_0x113b5b(0x1c0)]instanceof _0x223500?this[_0x113b5b(0x1ef)](this[_0x113b5b(0x1c0)]):this[_0x113b5b(0x21a)](this[_0x113b5b(0x1c0)][_0x113b5b(0x19b)],_0x113b5b(0x253),(_0x257e78,_0x36a987)=>{const _0x154bc5=_0x113b5b;_0x36a987['on'](_0x154bc5(0x1a7),()=>{const _0x350ace=_0x154bc5;this[_0x350ace(0x1ef)](_0x36a987);});}),await this[_0x113b5b(0x23f)]();}[_0x722d79(0x1d0)](_0x120439){const _0x115fdb=_0x722d79,_0x119257=_0x4dfe45(this[_0x115fdb(0x1c0)]);if(!_0x119257[_0x115fdb(0x268)][_0x115fdb(0x17d)](_0x115fdb(0x298)))throw new _0x56bfe4(_0x115fdb(0x202),null);const _0x1d075c=this[_0x115fdb(0x1c0)][_0x115fdb(0x268)][_0x115fdb(0x283)](_0x115fdb(0x201)),{reply:_0x2ab759,interaction:_0x3fd3ae}=this[_0x115fdb(0x250)](_0x120439[_0x115fdb(0x2c5)]),_0x1e94de=this[_0x115fdb(0x1a1)](_0x120439[_0x115fdb(0x2c5)],_0x120439[_0x115fdb(0x2b2)]),_0x4647d5=void 0x0!==_0x120439[_0x115fdb(0x2b2)]?[_0x2ab759[_0x115fdb(0x2a5)][_0x120439[_0x115fdb(0x2b2)]]]:_0x2ab759[_0x115fdb(0x2a5)][_0x115fdb(0x174)](_0x2ddad8=>_0x115fdb(0x2ca)==_0x2ddad8[_0x115fdb(0x251)]),_0x1ca4f4=_0x4647d5[_0x115fdb(0x196)](_0x4e5568=>_0x2ab759[_0x115fdb(0x2a5)][_0x115fdb(0x231)](_0x4e5568));if(!_0x1e94de||_0x115fdb(0x266)==_0x1e94de[_0x115fdb(0x26d)][_0x115fdb(0x1e8)][_0x115fdb(0x1c8)])return void _0x1ca4f4[_0x115fdb(0x267)](_0x13cbed=>_0x2ab759[_0x115fdb(0x22e)](_0x13cbed,_0x115fdb(0x261)));_0x1ca4f4[_0x115fdb(0x267)](_0x98b69d=>_0x2ab759[_0x115fdb(0x22e)](_0x98b69d,_0x115fdb(0x2a0)));const _0x2729ef=_0x3fe6({'editor':_0x119257,'reply':_0x2ab759,'interaction':_0x3fd3ae,'groups':_0x4647d5,'transform':!0x0,'documentCompare':_0x1d075c,'documentCompareOptions':{'anchor':_0x115fdb(0x1b3),'markDeletions':!0x0}});let _0x4b1225;_0x1e94de&&this[_0x115fdb(0x27c)](_0x1e94de[_0x115fdb(0x26d)]),_0x119257[_0x115fdb(0x219)][_0x115fdb(0x24d)](_0x2cbcf9=>{const _0x250b16=_0x115fdb;_0x4b1225=_0x2cbcf9[_0x250b16(0x2d1)],_0x119257[_0x250b16(0x268)][_0x250b16(0x283)](_0x250b16(0x25a))[_0x250b16(0x26f)](_0x2729ef),this[_0x250b16(0x2db)][_0x250b16(0x257)](_0x250b16(0x1e4));}),this[_0x115fdb(0x1c7)][_0x115fdb(0x254)](_0x4b1225,{'interactionId':_0x3fd3ae['id'],'replyId':_0x2ab759['id'],'indexes':_0x1ca4f4[_0x115fdb(0x2c9)]()}),this[_0x115fdb(0x199)](_0x2ab759);}[_0x722d79(0x2a1)](_0x2e02ac){const _0x3cb3c6=_0x722d79,_0x349d4e=_0x4dfe45(this[_0x3cb3c6(0x1c0)]),_0x1a9b89=this[_0x3cb3c6(0x1c0)][_0x3cb3c6(0x268)][_0x3cb3c6(0x283)](_0x1e0fe3),{reply:_0x5888e2,interaction:_0x1f1395}=this[_0x3cb3c6(0x250)](_0x2e02ac[_0x3cb3c6(0x2c5)]),_0x4695b5=this[_0x3cb3c6(0x1a1)](_0x2e02ac[_0x3cb3c6(0x2c5)],_0x2e02ac[_0x3cb3c6(0x2b2)]),_0x1fe6fa=void 0x0!==_0x2e02ac[_0x3cb3c6(0x2b2)]?[_0x5888e2[_0x3cb3c6(0x2a5)][_0x2e02ac[_0x3cb3c6(0x2b2)]]]:_0x5888e2[_0x3cb3c6(0x2a5)][_0x3cb3c6(0x174)](_0x5c678e=>_0x3cb3c6(0x2ca)==_0x5c678e[_0x3cb3c6(0x251)]),_0x58ac68=_0x1fe6fa[_0x3cb3c6(0x196)](_0x58efa6=>_0x5888e2[_0x3cb3c6(0x2a5)][_0x3cb3c6(0x231)](_0x58efa6));if(!_0x4695b5||_0x3cb3c6(0x266)==_0x4695b5[_0x3cb3c6(0x26d)][_0x3cb3c6(0x1e8)][_0x3cb3c6(0x1c8)])return void _0x58ac68[_0x3cb3c6(0x267)](_0x125de6=>_0x5888e2[_0x3cb3c6(0x22e)](_0x125de6,_0x3cb3c6(0x261)));_0x58ac68[_0x3cb3c6(0x267)](_0x1dd959=>_0x5888e2[_0x3cb3c6(0x22e)](_0x1dd959,_0x3cb3c6(0x2a0)));const _0x145ea3=_0x3fe6({'editor':_0x349d4e,'reply':_0x5888e2,'interaction':_0x1f1395,'groups':_0x1fe6fa,'transform':!0x0,'documentCompare':_0x1a9b89,'documentCompareOptions':{'anchor':_0x3cb3c6(0x1b3),'markDeletions':!0x1}});let _0x35a949;_0x4695b5&&this[_0x3cb3c6(0x27c)](_0x4695b5[_0x3cb3c6(0x26d)]),_0x349d4e[_0x3cb3c6(0x219)][_0x3cb3c6(0x24d)](_0x4255db=>{const _0x2dd27a=_0x3cb3c6;_0x35a949=_0x4255db[_0x2dd27a(0x2d1)];for(const _0x4e751b of _0x145ea3)_0x4e751b[_0x2dd27a(0x262)]=_0x349d4e[_0x2dd27a(0x219)][_0x2dd27a(0x1d2)][_0x2dd27a(0x1ca)],_0x316879(_0x349d4e,_0x4e751b),_0x4255db[_0x2dd27a(0x2d1)][_0x2dd27a(0x1fa)](_0x4e751b),_0x349d4e[_0x2dd27a(0x219)][_0x2dd27a(0x1f6)](_0x4e751b);}),this[_0x3cb3c6(0x1c7)][_0x3cb3c6(0x254)](_0x35a949,{'interactionId':_0x1f1395['id'],'replyId':_0x5888e2['id'],'indexes':_0x58ac68[_0x3cb3c6(0x2c9)]()}),this[_0x3cb3c6(0x199)](_0x5888e2);}[_0x722d79(0x28f)](_0x3f88e6,_0x258de5){const _0x282c6e=_0x722d79,_0x384b72=_0x4dfe45(this[_0x282c6e(0x1c0)]),_0x4dc653=this[_0x282c6e(0x1a1)](_0x3f88e6,_0x258de5),_0x1776cf=this[_0x282c6e(0x1c0)][_0x282c6e(0x268)][_0x282c6e(0x283)](_0x1641f1);if(!_0x4dc653)return void _0x1776cf[_0x282c6e(0x220)]();const {range:_0x301433,currentIndex:_0x217593}=_0x4dc653;if(_0x282c6e(0x266)==_0x301433[_0x282c6e(0x1e8)][_0x282c6e(0x1c8)]){const {reply:_0xcf96f0}=this[_0x282c6e(0x250)](_0x3f88e6);return _0xcf96f0[_0x282c6e(0x22e)](_0x217593,_0x282c6e(0x261)),void _0x1776cf[_0x282c6e(0x220)]();}if(this[_0x282c6e(0x1ee)]?.[_0x282c6e(0x2c5)]==_0x3f88e6&&this[_0x282c6e(0x1ee)]?.[_0x282c6e(0x2b2)]==_0x217593)return;this[_0x282c6e(0x1c9)](_0x1776cf),this[_0x282c6e(0x1ee)]={'replyId':_0x3f88e6,'partIndex':_0x217593};let _0x53d856=_0x384b72[_0x282c6e(0x2d9)][_0x282c6e(0x283)](_0x282c6e(0x17a))||[..._0xaf499c];_0x384b72[_0x282c6e(0x268)][_0x282c6e(0x17d)](_0x282c6e(0x298))||(_0x53d856=_0x53d856[_0x282c6e(0x174)](_0x23a86b=>_0x282c6e(0x256)!=_0x23a86b));const _0x45bddf=new _0x72ff3(_0x384b72[_0x282c6e(0x248)],{'showDiff':this[_0x282c6e(0x1f7)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x282c6e(0x21d)},'hideHeader':!0x0,'availableActions':_0x53d856});this[_0x282c6e(0x1c9)](_0x45bddf);const {reply:_0x175fa9}=this[_0x282c6e(0x250)](_0x3f88e6),_0x5379b3=_0x175fa9[_0x282c6e(0x27a)]({'showDiff':this[_0x282c6e(0x1f7)]})[_0x282c6e(0x174)](_0x456985=>_0x456985[_0x282c6e(0x2b6)]),_0x39d62f=_0x5379b3[_0x282c6e(0x28b)](_0x55e801=>_0x55e801[_0x282c6e(0x212)]==_0x217593);if(-0x1==_0x39d62f)return;const _0x5d358b=_0x5379b3[_0x39d62f],_0x2c5447=_0x5379b3['at']((_0x39d62f-0x1)%_0x5379b3[_0x282c6e(0x252)])?.[_0x282c6e(0x212)],_0x5231ac=_0x5379b3['at']((_0x39d62f+0x1)%_0x5379b3[_0x282c6e(0x252)])?.[_0x282c6e(0x212)];_0x45bddf[_0x282c6e(0x1d3)]({'parts':[_0x5d358b],'renderingStrategy':_0x282c6e(0x25f)});const _0x27df79=_0x217593!==_0x2c5447;this[_0x282c6e(0x27c)](_0x301433,!0x0),_0x1776cf[_0x282c6e(0x27f)]({'index':_0x217593,'title':_0xc3a8c(this[_0x282c6e(0x1c0)][_0x282c6e(0x248)],_0x282c6e(0x171),(_0x39d62f+0x1)[_0x282c6e(0x203)]()),'icon':_0x5c5b7c,'mainView':_0x45bddf,'showRotator':_0x27df79,'showApplyButton':!0x0,'showSuggestButton':_0x384b72[_0x282c6e(0x268)][_0x282c6e(0x17d)](_0x282c6e(0x298)),'ranges':[_0x301433]}),this[_0x282c6e(0x2d8)][_0x282c6e(0x1af)](_0x3f88e6,_0x217593),this[_0x282c6e(0x21a)](_0x45bddf,_0x282c6e(0x21f),(_0x2c5f82,{showDiff:_0x4237fc})=>{const _0x1db6aa=_0x282c6e;this[_0x1db6aa(0x1f7)]=_0x4237fc;const {reply:_0x5077a4}=this[_0x1db6aa(0x250)](_0x3f88e6),_0x470de3=_0x5077a4[_0x1db6aa(0x27a)]({'showDiff':_0x4237fc,'groupIndex':_0x217593});_0x45bddf[_0x1db6aa(0x1d3)]({'parts':_0x470de3,'renderingStrategy':_0x1db6aa(0x25f)});}),this[_0x282c6e(0x21a)](_0x1776cf,_0x282c6e(0x1a6),()=>{const _0xbf9042=_0x282c6e;this[_0xbf9042(0x2a1)]({'replyId':_0x3f88e6,'partIndex':_0x217593}),_0x27df79?this[_0xbf9042(0x28f)](_0x3f88e6,_0x5231ac):_0x1776cf[_0xbf9042(0x220)]();}),this[_0x282c6e(0x21a)](_0x1776cf,_0x282c6e(0x256),()=>{const _0x4e1213=_0x282c6e;this[_0x4e1213(0x1d0)]({'replyId':_0x3f88e6,'partIndex':_0x217593}),_0x27df79?this[_0x4e1213(0x28f)](_0x3f88e6,_0x5231ac):_0x1776cf[_0x4e1213(0x220)]();}),_0x27df79&&(this[_0x282c6e(0x21a)](_0x1776cf,_0x282c6e(0x1aa),()=>{const _0x3a78fe=_0x282c6e;this[_0x3a78fe(0x28f)](_0x3f88e6,_0x5231ac);}),this[_0x282c6e(0x21a)](_0x1776cf,_0x282c6e(0x2c7),()=>{const _0x2ac325=_0x282c6e;this[_0x2ac325(0x28f)](_0x3f88e6,_0x2c5447);})),this[_0x282c6e(0x21a)](_0x1776cf,_0x282c6e(0x1fd),()=>{const _0x1a8056=_0x282c6e;this[_0x1a8056(0x1c9)](_0x1776cf),this[_0x1a8056(0x1c9)](_0x45bddf),this[_0x1a8056(0x1ee)]=null;});}[_0x722d79(0x1a1)](_0x821076,_0x1cd73e){const _0x48e56f=_0x722d79,_0x4a9e87=_0x4dfe45(this[_0x48e56f(0x1c0)]),{reply:_0x2b5c54,interaction:_0x5b58b3}=this[_0x48e56f(0x250)](_0x821076),_0x3a5e49=_0x2b5c54[_0x48e56f(0x2a5)][_0x48e56f(0x174)](_0x3cf133=>_0x48e56f(0x2ca)==_0x3cf133[_0x48e56f(0x251)]),_0xad91b0=_0x3a5e49[_0x48e56f(0x196)](_0x3b6346=>_0x2b5c54[_0x48e56f(0x2a5)][_0x48e56f(0x231)](_0x3b6346));void 0x0===_0x1cd73e&&(_0x1cd73e=_0xad91b0[0x0]);const _0x3bd09e=_0xad91b0[_0x48e56f(0x231)](_0x1cd73e);if(-0x1==_0x3bd09e)return null;const _0x4ddd15=_0x3a5e49[_0x3bd09e],_0x44ce4d=new _0x301a4d([]),_0xc128dd=new _0x301a4d([]);for(const _0x570550 of _0x4ddd15[_0x48e56f(0x295)])if(_0x48e56f(0x2a9)!=_0x570550[_0x48e56f(0x184)]&&_0xc128dd[_0x48e56f(0x2a4)][_0x48e56f(0x221)](_0x570550[_0x48e56f(0x1d5)][_0x48e56f(0x2ad)](!0x0)),_0x48e56f(0x1da)!=_0x570550[_0x48e56f(0x184)]){const _0x4781c7=_0x5c46b8(_0x2bd938=>_0x174d3e(_0x2bd938,_0x48e56f(0x20b))==_0x570550['id'],_0x2b5c54[_0x48e56f(0x188)],!0x0);_0x44ce4d[_0x48e56f(0x2a4)][_0x48e56f(0x221)](_0x4781c7[_0x48e56f(0x2ad)](!0x0));}if(0x0==_0x44ce4d[_0x48e56f(0x2a4)][_0x48e56f(0x252)]){if(_0x4ddd15[_0x48e56f(0x295)][0x0][_0x48e56f(0x186)]){const _0x15a1ab=_0x244b7e(_0x48e56f(0x20b),_0x4ddd15[_0x48e56f(0x295)][0x0][_0x48e56f(0x186)],_0x2b5c54[_0x48e56f(0x188)]);_0x44ce4d[_0x48e56f(0x2a4)][_0x48e56f(0x217)](_0x15a1ab[_0x48e56f(0x2ad)](!0x0)),_0xc128dd[_0x48e56f(0x2a4)][_0x48e56f(0x217)](_0x15a1ab[_0x48e56f(0x2ad)](!0x0)),_0x15a1ab[_0x48e56f(0x1ce)]&&(_0x44ce4d[_0x48e56f(0x2a4)][_0x48e56f(0x221)](_0x15a1ab[_0x48e56f(0x1ce)][_0x48e56f(0x2ad)](!0x0)),_0xc128dd[_0x48e56f(0x2a4)][_0x48e56f(0x221)](_0x15a1ab[_0x48e56f(0x1ce)][_0x48e56f(0x2ad)](!0x0)));}else{const _0x5ec94f=_0x2b5c54[_0x48e56f(0x188)][_0x48e56f(0x2a4)][0x0];if(!_0x5ec94f)return null;_0x44ce4d[_0x48e56f(0x2a4)][_0x48e56f(0x221)](_0x5ec94f[_0x48e56f(0x2ad)](!0x0)),_0xc128dd[_0x48e56f(0x2a4)][_0x48e56f(0x221)](_0x5ec94f[_0x48e56f(0x2ad)](!0x0));}}const _0x12867d=_0x5b58b3[_0x48e56f(0x265)](),_0xc8b9f4=_0x4a9e87[_0x48e56f(0x2a6)][_0x48e56f(0x2b1)](_0x12867d[_0x48e56f(0x28a)]),_0x273056=_0x9af624(_0x44ce4d),_0x413ccf=_0x4a9e87[_0x48e56f(0x2a6)][_0x48e56f(0x2b1)](_0x273056),_0x435523=_0x4a9e87[_0x48e56f(0x2a6)][_0x48e56f(0x2b1)](_0x273056),_0x45746b=_0x4a9e87[_0x48e56f(0x219)][_0x48e56f(0x1be)](_0x413ccf,0x0),_0x2c3460=_0x9af624(_0xc128dd),_0xf683da={'anchor':_0x45746b,'markDeletions':!0x1},_0x498a0e=_0x4a9e87[_0x48e56f(0x268)][_0x48e56f(0x283)](_0x1e0fe3)[_0x48e56f(0x1a8)](_0x273056,_0x2c3460,_0xf683da)[_0x48e56f(0x187)]();if(!_0x498a0e[_0x48e56f(0x252)])return null;_0x4a9e87[_0x48e56f(0x219)][_0x48e56f(0x24d)](_0x4bb215=>{const _0x4121e8=_0x48e56f;for(const _0x5045a9 of _0x498a0e)if(_0x4121e8(0x194)==_0x5045a9[_0x4121e8(0x184)]){const _0x3c84a7=_0x5045a9[_0x4121e8(0x2aa)],_0x5b1183=_0x5045a9[_0x4121e8(0x17f)],_0x3a1810=new _0x347c6f(_0x3c84a7,_0x5b1183);_0x4bb215[_0x4121e8(0x2d1)][_0x4121e8(0x1fa)](_0x3a1810),_0x4a9e87[_0x4121e8(0x219)][_0x4121e8(0x1f6)](_0x3a1810);}else _0x4121e8(0x22b)!==_0x5045a9[_0x4121e8(0x184)]&&(_0x5045a9[_0x4121e8(0x262)]=null,_0x5045a9[_0x4121e8(0x1fc)]=!0x1,_0x4bb215[_0x4121e8(0x2d1)][_0x4121e8(0x1fa)](_0x5045a9),_0x4a9e87[_0x4121e8(0x219)][_0x4121e8(0x1f6)](_0x5045a9));});const _0x5143cc=_0x136d73(_0x4a9e87,_0x498a0e,_0x413ccf);_0x118718(_0x4a9e87[_0x48e56f(0x219)],_0x5143cc);const _0x5bfd41=_0x5143cc[_0x48e56f(0x297)]()[_0x48e56f(0x1c6)][_0x48e56f(0x2bc)][_0x48e56f(0x2c9)](),_0x11f23a=_0x5143cc[_0x48e56f(0x297)]()[_0x48e56f(0x208)][_0x48e56f(0x2bc)][_0x48e56f(0x2c9)](),_0x42563c=[];let _0x581d4d=_0x413ccf,_0x5ca588=_0x435523;for(let _0x9196c4=0x0;_0x9196c4<_0x11f23a[_0x48e56f(0x252)];_0x9196c4++){const _0x53abcb=_0x581d4d[_0x48e56f(0x281)]-_0x11f23a[_0x9196c4];_0x42563c[_0x9196c4]=_0x5ca588[_0x48e56f(0x281)]-_0x53abcb,_0x581d4d=_0x581d4d[_0x48e56f(0x1f8)](_0x11f23a[_0x9196c4]),_0x5ca588=_0x5ca588[_0x48e56f(0x1f8)](_0x42563c[_0x9196c4]);}const _0x4bc16b=_0x4a9e87[_0x48e56f(0x219)][_0x48e56f(0x1a3)](_0x4a9e87[_0x48e56f(0x219)][_0x48e56f(0x259)](_0x435523,_0x5bfd41),_0x4a9e87[_0x48e56f(0x219)][_0x48e56f(0x259)](_0x435523,_0x42563c)),_0x589a70=_0x435523[_0x48e56f(0x27e)](0x0)[_0x48e56f(0x1ea)](_0x47a7f5),_0x4a2b4d=Array[_0x48e56f(0x2d2)](_0xc8b9f4[_0x48e56f(0x197)]())[_0x48e56f(0x2c2)](_0x46d76f=>_0x46d76f[_0x48e56f(0x1ea)](_0x47a7f5)==_0x589a70)[_0x48e56f(0x2cb)](),_0x5abb3f=_0x4bc16b[_0x48e56f(0x1c6)][_0x48e56f(0x2bc)][_0x48e56f(0x2c9)](),_0x182e3e=_0x4bc16b[_0x48e56f(0x208)][_0x48e56f(0x2bc)][_0x48e56f(0x2c9)]();_0x5abb3f[0x0]=_0x4a2b4d[0x0]+_0x5abb3f[0x0],_0x182e3e[0x0]=_0x4a2b4d[0x0]+_0x182e3e[0x0];let _0x46b3c4=_0x4a9e87[_0x48e56f(0x219)][_0x48e56f(0x1a3)](_0x4a9e87[_0x48e56f(0x219)][_0x48e56f(0x259)](_0x4a9e87[_0x48e56f(0x219)][_0x48e56f(0x1d2)][_0x48e56f(0x2da)](),_0x5abb3f),_0x4a9e87[_0x48e56f(0x219)][_0x48e56f(0x259)](_0x4a9e87[_0x48e56f(0x219)][_0x48e56f(0x1d2)][_0x48e56f(0x2da)](),_0x182e3e));const _0x52fe54=_0x4a9e87[_0x48e56f(0x219)][_0x48e56f(0x1d2)][_0x48e56f(0x240)][_0x48e56f(0x187)](_0x12867d[_0x48e56f(0x1ca)]);for(const _0x31df42 of _0x52fe54)_0x46b3c4=_0x419998[_0x48e56f(0x237)](_0x46b3c4[_0x48e56f(0x1ed)](_0x31df42));return{'range':_0x46b3c4,'currentIndex':_0x1cd73e};}[_0x722d79(0x1ef)](_0x2ad5c2){const _0x696c87=_0x722d79;if(!_0x2ad5c2[_0x696c87(0x268)][_0x696c87(0x17d)](_0x696c87(0x206)))return;const _0x3a3d81=_0x2ad5c2[_0x696c87(0x226)][_0x696c87(0x283)](_0x696c87(0x270)),_0x1fdfce=_0x2ad5c2[_0x696c87(0x226)][_0x696c87(0x283)](_0x696c87(0x291));this[_0x696c87(0x21a)](_0x3a3d81,_0x696c87(0x192),(_0x16ab0d,_0x1202d6,_0x2dfe7e)=>{const _0x3e5fb4=_0x696c87,_0x489e4a=this[_0x3e5fb4(0x1c7)][_0x3e5fb4(0x283)](_0x1202d6);if(!_0x489e4a)return;const _0x18dcab=this[_0x3e5fb4(0x2cf)][_0x3e5fb4(0x29f)](_0x489e4a[_0x3e5fb4(0x274)])[_0x3e5fb4(0x1cc)](_0x489e4a[_0x3e5fb4(0x2c5)]);_0x489e4a[_0x3e5fb4(0x229)][_0x3e5fb4(0x267)](_0x35536b=>_0x18dcab[_0x3e5fb4(0x22e)](_0x35536b,_0x3e5fb4(0x2ca))),this[_0x3e5fb4(0x1c7)][_0x3e5fb4(0x234)](_0x1202d6),this[_0x3e5fb4(0x1c7)][_0x3e5fb4(0x254)](_0x2dfe7e,_0x489e4a);}),this[_0x696c87(0x21a)](_0x1fdfce,_0x696c87(0x192),(_0x17ec5e,_0x262c7b,_0x3c468d)=>{const _0x269c32=_0x696c87,_0x124478=this[_0x269c32(0x1c7)][_0x269c32(0x283)](_0x262c7b);if(!_0x124478)return;const _0x43a86b=this[_0x269c32(0x2cf)][_0x269c32(0x29f)](_0x124478[_0x269c32(0x274)])[_0x269c32(0x1cc)](_0x124478[_0x269c32(0x2c5)]);_0x124478[_0x269c32(0x229)][_0x269c32(0x267)](_0x23e2b7=>_0x43a86b[_0x269c32(0x22e)](_0x23e2b7,_0x269c32(0x2a0))),this[_0x269c32(0x1c7)][_0x269c32(0x234)](_0x262c7b),this[_0x269c32(0x1c7)][_0x269c32(0x254)](_0x3c468d,_0x124478);});}async[_0x722d79(0x271)](_0x2ceff9){const _0x52fb31=_0x722d79;this[_0x52fb31(0x1c0)][_0x52fb31(0x268)][_0x52fb31(0x283)](_0x1641f1)[_0x52fb31(0x220)](),this[_0x52fb31(0x2d8)][_0x52fb31(0x2d6)](_0x52fb31(0x25f)),this[_0x52fb31(0x2d8)][_0x52fb31(0x282)](!0x0),await this[_0x52fb31(0x2d4)]();try{await this[_0x52fb31(0x1e1)][_0x52fb31(0x24f)](_0x2ceff9)[_0x52fb31(0x16e)](),await this[_0x52fb31(0x23f)](_0x2ceff9),this[_0x52fb31(0x24b)]('\x20');const {sessionId:_0x57161d}=this[_0x52fb31(0x2db)][_0x52fb31(0x18e)]();await this[_0x52fb31(0x2cf)][_0x52fb31(0x29b)](_0x2ceff9,_0x57161d),this[_0x52fb31(0x2cf)][_0x52fb31(0x228)]()&&this[_0x52fb31(0x2cf)][_0x52fb31(0x2a8)](_0xc3a8c(this[_0x52fb31(0x1c0)][_0x52fb31(0x248)],_0x52fb31(0x2bf)));}catch(_0x8f46ee){this[_0x52fb31(0x2d8)][_0x52fb31(0x296)]({'errorMessage':_0xc3a8c(this[_0x52fb31(0x1c0)][_0x52fb31(0x248)],_0x52fb31(0x1ff)),'id':_0x2ceff9}),this[_0x52fb31(0x198)](new _0x56bfe4(_0x52fb31(0x1e9),this,{'error':_0x8f46ee}));}finally{this[_0x52fb31(0x1c0)][_0x52fb31(0x268)][_0x52fb31(0x283)](_0x15b59e)[_0x52fb31(0x205)][_0x52fb31(0x222)](_0x52fb31(0x1f5)),this[_0x52fb31(0x2d8)][_0x52fb31(0x223)](),this[_0x52fb31(0x2d8)][_0x52fb31(0x2d6)](_0x52fb31(0x286)),this[_0x52fb31(0x2d8)][_0x52fb31(0x282)](!0x1);}}[_0x722d79(0x280)](_0x532ab0){const _0x3161ec=_0x722d79;this[_0x3161ec(0x2cf)]['id']===_0x532ab0&&this[_0x3161ec(0x23f)]();}async[_0x722d79(0x1c4)](){const _0x4994d4=_0x722d79,_0x14b5f5=this[_0x4994d4(0x2db)][_0x4994d4(0x207)]();this[_0x4994d4(0x2cf)]?.[_0x4994d4(0x260)](_0x14b5f5),this[_0x4994d4(0x2cf)]?.[_0x4994d4(0x2a8)](_0xc3a8c(this[_0x4994d4(0x1c0)][_0x4994d4(0x248)],_0x4994d4(0x2bf)));}[_0x722d79(0x176)](){const _0x53bbac=_0x722d79;this[_0x53bbac(0x2cf)]?.[_0x53bbac(0x292)]();}[_0x722d79(0x17b)](){const _0x4ee3c5=_0x722d79;this[_0x4ee3c5(0x2d8)][_0x4ee3c5(0x17b)]();}async[_0x722d79(0x2bb)](){const _0x56ec38=_0x722d79;await this[_0x56ec38(0x23f)]();}async[_0x722d79(0x22a)]({message:_0x17fbb5,quickActionData:_0x3d2618}){const _0x4203f3=_0x722d79;await this[_0x4203f3(0x243)]({'userMessage':_0x17fbb5,'quickActionData':_0x3d2618});}[_0x722d79(0x1a5)](){const _0x159ef0=_0x722d79,_0x45ba49=this[_0x159ef0(0x1c0)][_0x159ef0(0x2d9)][_0x159ef0(0x283)](_0x159ef0(0x178));if(!_0x45ba49)throw new _0x56bfe4(_0x159ef0(0x22c),this);return _0x45ba49;}async[_0x722d79(0x23f)](_0x2becc3){const _0xae89b7=_0x722d79;try{this[_0xae89b7(0x2d8)][_0xae89b7(0x287)](),await this[_0xae89b7(0x1e2)](_0x2becc3);}catch(_0x529e8a){this[_0xae89b7(0x2d8)][_0xae89b7(0x296)]({'errorMessage':_0xc3a8c(this[_0xae89b7(0x1c0)][_0xae89b7(0x248)],_0xae89b7(0x236)),'id':_0x2becc3||_0x567464()}),console[_0xae89b7(0x27b)](_0x529e8a),this[_0xae89b7(0x2cf)]=void 0x0,this[_0xae89b7(0x2d8)][_0xae89b7(0x21b)]();}}async[_0x722d79(0x1e2)](_0x3c06d5){const _0x4d62d8=_0x722d79,_0x5cdb87=this[_0x4d62d8(0x1c0)][_0x4d62d8(0x268)][_0x4d62d8(0x283)](_0x1641f1);let _0x358ce5;_0x5cdb87[_0x4d62d8(0x1f2)]&&_0x5cdb87[_0x4d62d8(0x220)](),_0x3c06d5||!this[_0x4d62d8(0x2cf)]?_0x358ce5=this[_0x4d62d8(0x1c0)][_0x4d62d8(0x2d9)][_0x4d62d8(0x283)](_0x4d62d8(0x1a0)):this[_0x4d62d8(0x2d8)][_0x4d62d8(0x225)]&&(_0x358ce5=this[_0x4d62d8(0x2cf)][_0x4d62d8(0x2c6)]['id']),await this[_0x4d62d8(0x2d4)]();const _0x288bae=this[_0x4d62d8(0x1a5)](),_0xd58aad=_0x3c06d5||_0x567464();this[_0x4d62d8(0x2cf)]=new _0x5188f9({'connector':this[_0x4d62d8(0x1e1)],'chatModels':this[_0x4d62d8(0x2d7)],'selectedModelId':_0x358ce5,'conversationId':_0xd58aad,'group':_0x288bae,'getEditor':()=>_0x4dfe45(this[_0x4d62d8(0x1c0)])}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x26a),(_0x285196,_0x3f819e)=>{const _0x197386=_0x4d62d8;this[_0x197386(0x2d8)][_0x197386(0x269)](_0x3f819e),this[_0x197386(0x2d8)][_0x197386(0x1e6)](),this[_0x197386(0x2d8)][_0x197386(0x18d)](),this[_0x197386(0x2d8)][_0x197386(0x185)](),_0x3c06d5||(this[_0x197386(0x2d8)][_0x197386(0x278)](),this[_0x197386(0x2cf)]?.[_0x197386(0x2a8)](_0xc3a8c(this[_0x197386(0x1c0)][_0x197386(0x248)],_0x197386(0x2bf))));}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x290),(_0x2d303e,_0x1cc6aa)=>{const _0x1d0a67=_0x4d62d8;this[_0x1d0a67(0x2d8)][_0x1d0a67(0x2d5)](_0x1cc6aa[_0x1d0a67(0x1ac)]);}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x239),(_0xd36c16,_0x5e69bc)=>{const _0x267bb3=_0x4d62d8;this[_0x267bb3(0x2d8)][_0x267bb3(0x1cd)](_0x5e69bc);}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x279),()=>{const _0x4be888=_0x4d62d8;this[_0x4be888(0x2d8)][_0x4be888(0x1ad)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x1d4),()=>{const _0x1ef360=_0x4d62d8;this[_0x1ef360(0x2d8)][_0x1ef360(0x1ad)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x26b),(_0x5bdf12,_0x391539)=>{const _0x3a4bde=_0x4d62d8;this[_0x3a4bde(0x2d8)][_0x3a4bde(0x1d9)](_0x391539,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x1c2),(_0x1d5d69,_0x5e2852)=>{const _0x3917b8=_0x4d62d8;this[_0x3917b8(0x2d8)][_0x3917b8(0x1d9)](_0x5e2852,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x191),()=>{const _0x3a0744=_0x4d62d8;this[_0x3a0744(0x2d8)][_0x3a0744(0x17e)]();}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x20e),async()=>{const _0x4c1c27=_0x4d62d8;await this[_0x4c1c27(0x2d8)][_0x4c1c27(0x28d)]();}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x1fb),(_0x233241,_0x30f8c2)=>{const _0x42be1f=_0x4d62d8;this[_0x42be1f(0x2d8)][_0x42be1f(0x18a)](_0x30f8c2['id']);}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x1bd),(_0x39e732,_0x28e810,_0x57efc6)=>{const _0x5b1781=_0x4d62d8;this[_0x5b1781(0x24b)](_0x28e810,_0x57efc6);}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x284),(_0x593f27,_0x97793e)=>{const _0xe15472=_0x4d62d8;_0xe15472(0x24a)===_0x97793e[_0xe15472(0x184)]?this[_0xe15472(0x2d8)][_0xe15472(0x1dd)](_0x97793e):this[_0xe15472(0x2d8)][_0xe15472(0x1b1)](_0x97793e);}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x1e5),async(_0x54a1c4,_0x41488a)=>{const _0x17bed8=_0x4d62d8;await this[_0x17bed8(0x235)]({'reply':_0x41488a});}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x2d0),(_0x4c36b2,{reply:_0x5289f5,index:_0x388256,state:_0x545549})=>{const _0x53faec=_0x4d62d8;this[_0x53faec(0x2d8)][_0x53faec(0x2b8)]({'id':_0x5289f5['id'],'index':_0x388256,'state':_0x545549});}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x1d7),(_0x231bf8,_0x2ef5a0)=>{const _0x320339=_0x4d62d8;if(this[_0x320339(0x2d8)][_0x320339(0x179)](_0x2ef5a0[_0x320339(0x1d6)],_0x2ef5a0[_0x320339(0x1f0)]),_0x320339(0x2c3)===_0x2ef5a0[_0x320339(0x1d6)][_0x320339(0x184)]){const _0x3599b=[..._0x4dfe45(this[_0x320339(0x1c0)])[_0x320339(0x219)][_0x320339(0x1d2)][_0x320339(0x2c3)][_0x320339(0x23d)]()];this[_0x320339(0x2db)][_0x320339(0x258)](_0x3599b,_0x320339(0x299)+this[_0x320339(0x2cf)]?.['id']);}}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x23e),(_0x874a2e,_0x126e1b)=>{const _0x4ab692=_0x4d62d8;this[_0x4ab692(0x2d8)][_0x4ab692(0x245)](_0x126e1b[_0x4ab692(0x1b2)]),_0x4ab692(0x182)==_0x126e1b[_0x4ab692(0x1b2)]&&this[_0x4ab692(0x176)](),_0x4ab692(0x2c3)===_0x126e1b[_0x4ab692(0x184)]&&this[_0x4ab692(0x2db)][_0x4ab692(0x257)](_0x4ab692(0x299)+this[_0x4ab692(0x2cf)]?.['id']);}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x2c4),(_0x5a76ec,_0x38d602)=>{const _0x142ad3=_0x4d62d8;this[_0x142ad3(0x2d8)][_0x142ad3(0x247)](_0x38d602[_0x142ad3(0x1d6)][_0x142ad3(0x1b2)],_0x38d602[_0x142ad3(0x1f0)]);}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x224),(_0xd267ae,_0x2fcb30)=>{const _0x465554=_0x4d62d8;this[_0x465554(0x2d8)][_0x465554(0x2b7)](_0x2fcb30[_0x465554(0x1d1)]);}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x22d),(_0xf7c780,_0x2809c3)=>{const _0x3dee0c=_0x4d62d8;this[_0x3dee0c(0x2d8)][_0x3dee0c(0x2b0)](_0x2809c3[_0x3dee0c(0x241)]);}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x1b0),(_0x18f45e,_0x5e63aa)=>{const _0x5e3b0b=_0x4d62d8;this[_0x5e3b0b(0x2d8)][_0x5e3b0b(0x175)](_0x5e63aa[_0x5e3b0b(0x1c3)],_0x5e63aa[_0x5e3b0b(0x24c)],_0x5e63aa[_0x5e3b0b(0x2cd)],_0x5e63aa[_0x5e3b0b(0x172)]);}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x213),(_0x9a7b4f,_0x56780a)=>{const _0x1d8af9=_0x4d62d8;this[_0x1d8af9(0x2d8)][_0x1d8af9(0x244)](_0x56780a[_0x1d8af9(0x1c3)],_0x56780a[_0x1d8af9(0x2c1)],_0x56780a[_0x1d8af9(0x2b4)]);}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x26e),(_0x2a574d,_0x1f8f6c)=>{const _0x443196=_0x4d62d8;this[_0x443196(0x2d8)][_0x443196(0x1bc)](_0x1f8f6c);}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x275),(_0x2ebfb1,_0x2a6562)=>{const _0x535438=_0x4d62d8;this[_0x535438(0x2d8)][_0x535438(0x216)](_0x2a6562[_0x535438(0x2c6)],_0x2a6562[_0x535438(0x289)]);}),this[_0x4d62d8(0x2cf)]['on'](_0x4d62d8(0x27b),(_0x4df066,{error:_0x4ab6f6,interactionId:_0x44e184,fileName:_0x2ca375,url:_0x168999,sourceId:_0x23afe0,sourceLabel:_0x21ed11})=>{const _0xa8bc5e=_0x4d62d8,_0x476423=_0x44e184?_0x44e184+':'+_0x567464():_0x567464();_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x1cf))?this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x28e)]({'staticMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x230)),'id':_0x476423}):_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x1f1))||_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x1fe))?(this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x296)]({'errorMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x236)),'id':_0x476423}),this[_0xa8bc5e(0x198)](_0x4ab6f6)):_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x273))?this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x296)]({'errorMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x29d),_0x2ca375),'id':_0x476423}):_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x16f))?this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x296)]({'errorMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x1b4),_0x168999),'id':_0x476423}):_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x1de))?this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x296)]({'errorMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x1e7)),'id':_0x476423}):_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x2c8))?this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x296)]({'errorMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x2a7)),'id':_0x476423}):_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x189))?(_0x23afe0&&this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x1eb)](_0x23afe0),this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x296)]({'errorMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x249),_0x21ed11||_0xa8bc5e(0x24c)),'id':_0x476423}),this[_0xa8bc5e(0x198)](_0x4ab6f6)):_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x1f4))?(this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x296)]({'errorMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x1f9)),'id':_0x476423}),this[_0xa8bc5e(0x198)](_0x4ab6f6)):_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x20a))?(this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x296)]({'errorMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x180)),'id':_0x476423}),this[_0xa8bc5e(0x198)](_0x4ab6f6)):_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x227))?(this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x296)]({'errorMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x211)),'id':_0x476423}),this[_0xa8bc5e(0x198)](_0x4ab6f6)):_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x24e))?(this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x296)]({'errorMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x2ab)),'id':_0x476423}),this[_0xa8bc5e(0x198)](_0x4ab6f6)):_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x1ae))?(this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x296)]({'errorMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x21c)),'id':_0x476423}),this[_0xa8bc5e(0x198)](_0x4ab6f6)):_0x4ab6f6[_0xa8bc5e(0x173)][_0xa8bc5e(0x218)](_0xa8bc5e(0x232))?(this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x296)]({'errorMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x2bd)),'id':_0x476423}),this[_0xa8bc5e(0x198)](_0x4ab6f6)):(this[_0xa8bc5e(0x2d8)][_0xa8bc5e(0x296)]({'errorMessage':_0xc3a8c(this[_0xa8bc5e(0x1c0)][_0xa8bc5e(0x248)],_0xa8bc5e(0x238)),'id':_0x476423}),this[_0xa8bc5e(0x198)](_0x4ab6f6));}),await this[_0x4d62d8(0x2cf)][_0x4d62d8(0x276)](this[_0x4d62d8(0x1c0)][_0x4d62d8(0x2d9)][_0x4d62d8(0x283)](_0x4d62d8(0x27d))),_0x3c06d5||await this[_0x4d62d8(0x2cf)][_0x4d62d8(0x1c6)]();}async[_0x722d79(0x243)]({userMessage:_0x3dce6e,quickActionData:_0x192eca}){const _0x189823=_0x722d79;if(!this[_0x189823(0x2cf)])throw new _0x56bfe4(_0x189823(0x255));this[_0x189823(0x2cf)][_0x189823(0x1ec)]()&&await this[_0x189823(0x2cf)][_0x189823(0x1d8)](this[_0x189823(0x2db)][_0x189823(0x18e)]()),this[_0x189823(0x2cf)]['id']&&this[_0x189823(0x2cf)][_0x189823(0x1b8)]&&await this[_0x189823(0x2cf)][_0x189823(0x193)]({'userMessage':_0x3dce6e,'quickActionData':_0x192eca}),this[_0x189823(0x1cb)]();}[_0x722d79(0x1cb)](){const _0x273841=_0x722d79,_0x37e2d3=_0x4dfe45(this[_0x273841(0x1c0)])[_0x273841(0x219)],_0x51b00b=Array[_0x273841(0x2d2)](_0x37e2d3[_0x273841(0x1df)][_0x273841(0x2ae)](_0x5dc995));_0x37e2d3[_0x273841(0x24d)](_0x5e9259=>{const _0x385e72=_0x273841;_0x51b00b[_0x385e72(0x267)](_0x22f235=>_0x5e9259[_0x385e72(0x19d)](_0x22f235));});}[_0x722d79(0x23c)](){const _0x1c210a=_0x722d79;console[_0x1c210a(0x25c)](_0x1c210a(0x25d));}[_0x722d79(0x25b)](_0x391aa8){const _0x47a1a4=_0x722d79;this[_0x47a1a4(0x2d8)][_0x47a1a4(0x214)](_0x391aa8);}[_0x722d79(0x198)](_0x581436){const _0x16f589=_0x722d79;_0x403c82(_0x581436[_0x16f589(0x173)]);}[_0x722d79(0x183)](_0x6ac715){const _0x7bcc6e=_0x722d79;this[_0x7bcc6e(0x2cf)]?.[_0x7bcc6e(0x277)](_0x6ac715);}[_0x722d79(0x1db)](){const _0x4a3b01=_0x722d79;this[_0x4a3b01(0x2cf)]?.[_0x4a3b01(0x204)]();}[_0x722d79(0x29c)](){const _0xd70395=_0x722d79;this[_0xd70395(0x2cf)]?.[_0xd70395(0x28c)]();}[_0x722d79(0x250)](_0x494b92){const _0x439c1f=_0x722d79,[_0x16df74,_0x3e227f]=_0x494b92[_0x439c1f(0x190)](':'),_0x529875=this[_0x439c1f(0x2cf)][_0x439c1f(0x29f)](_0x16df74),_0x56b986=_0x529875[_0x439c1f(0x1cc)](_0x3e227f);return{'interaction':_0x529875,'reply':_0x56b986};}[_0x722d79(0x27c)](_0x559926,_0x323829=!0x1){const _0x157b72=_0x722d79,_0x24885d=_0x4dfe45(this[_0x157b72(0x1c0)]),_0x347750={'target':_0x24885d[_0x157b72(0x242)][_0x157b72(0x205)][_0x157b72(0x2b3)][_0x157b72(0x20d)](_0x24885d[_0x157b72(0x242)][_0x157b72(0x1c1)][_0x157b72(0x29e)](_0x559926)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x323829};_0x323829&&(_0x347750[_0x157b72(0x215)]=!0x0),_0x2ac001(_0x347750);}[_0x722d79(0x24b)](_0x1b1057,_0x4546f7=!0x1){const _0x503f90=_0x722d79;this[_0x503f90(0x2d8)][_0x503f90(0x1bd)](_0x1b1057||_0xc3a8c(this[_0x503f90(0x1c0)][_0x503f90(0x248)],_0x503f90(0x272)),_0x4546f7);}async[_0x722d79(0x235)]({reply:_0xed8c28,renderingStrategy:_0x56fe87}){const _0x227434=_0x722d79,{id:_0x3b0f36,isDone:_0x274593,type:_0x1476d9,parsedContent:_0x1fc6ef}=_0xed8c28;if(_0x227434(0x2b9)===_0x1476d9){const _0x575f0b=_0xed8c28[_0x227434(0x27a)]({'showDiff':this[_0x227434(0x2d8)][_0x227434(0x294)]});await this[_0x227434(0x2d8)][_0x227434(0x1a4)]({'id':_0x3b0f36,'parts':_0x575f0b,'renderingStrategy':_0x56fe87,'isDone':_0x274593});}else _0x227434(0x24a)===_0x1476d9&&await this[_0x227434(0x2d8)][_0x227434(0x1bb)]({'id':_0x3b0f36,'parsedContent':_0x1fc6ef,'renderingStrategy':_0x56fe87,'isDone':_0x274593});_0x274593&&_0xed8c28[_0x227434(0x181)][_0x227434(0x252)]>0x0&&this[_0x227434(0x2d8)][_0x227434(0x1f3)](_0x3b0f36,_0xed8c28[_0x227434(0x181)]);}async[_0x722d79(0x2d4)](){const _0xb7df21=_0x722d79,_0x5c52d2=this[_0xb7df21(0x2cf)]?.[_0xb7df21(0x293)];_0x5c52d2&&(_0x5c52d2[_0xb7df21(0x1b7)](),this[_0xb7df21(0x2d8)][_0xb7df21(0x288)](_0x5c52d2));}async[_0x722d79(0x23a)](){const _0x4f0751=_0x722d79,_0x5c737c=this[_0x4f0751(0x2cf)]?.[_0x4f0751(0x293)];if(_0x5c737c){for await(const _0x54df9e of _0x5c737c[_0x4f0751(0x2be)])await this[_0x4f0751(0x235)]({'reply':_0x54df9e,'renderingStrategy':_0x4f0751(0x25f)});}}[_0x722d79(0x199)](_0x2c7197){const _0x4626d0=_0x722d79,_0x403d95={'positiveCount':_0x2c7197[_0x4626d0(0x2a5)][_0x4626d0(0x174)](_0x5147ee=>_0x4626d0(0x2a0)===_0x5147ee[_0x4626d0(0x251)])[_0x4626d0(0x252)],'totalCount':_0x2c7197[_0x4626d0(0x2a5)][_0x4626d0(0x252)],'modificationId':_0x2c7197['id']},_0x5810e2=this[_0x4626d0(0x2cf)][_0x4626d0(0x29f)](_0x2c7197[_0x4626d0(0x274)])[_0x4626d0(0x1e0)];this[_0x4626d0(0x1e1)][_0x4626d0(0x1b6)](this[_0x4626d0(0x2cf)]['id'],_0x5810e2,_0x403d95);}}