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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) 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/adapters/aiadapter.js +1 -1
  8. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  9. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  10. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  11. package/src/aiassistant/aiassistant.js +1 -1
  12. package/src/aiassistant/aiassistantediting.js +1 -1
  13. package/src/aiassistant/aiassistantui.js +1 -1
  14. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  15. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  16. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  17. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  19. package/src/aiassistant/ui/form/aiformview.js +1 -1
  20. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  21. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  22. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  23. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  24. package/src/aiballoon/aiballoon.js +1 -1
  25. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  26. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  27. package/src/aiballoon/ui/aiballoonview.js +1 -1
  28. package/src/aichat/aichat.js +1 -1
  29. package/src/aichat/aichatcontroller.js +1 -1
  30. package/src/aichat/aichatui.js +1 -1
  31. package/src/aichat/model/aichatcontext.js +1 -1
  32. package/src/aichat/model/aichatconversation.js +1 -1
  33. package/src/aichat/model/aichatinteraction.js +1 -1
  34. package/src/aichat/model/aichatmodels.js +1 -1
  35. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  36. package/src/aichat/ui/aichatfeedview.js +1 -1
  37. package/src/aichat/ui/aichatheaderview.js +1 -1
  38. package/src/aichat/ui/aichatview.js +1 -1
  39. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  42. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  43. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  45. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  46. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  50. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  51. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  57. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  58. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  59. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  60. package/src/aichat/utils/eventnames.js +1 -1
  61. package/src/aichat/utils/promisequeue.js +1 -1
  62. package/src/aichat/utils/scrollmanager.js +1 -1
  63. package/src/aichathistory/aichathistory.js +1 -1
  64. package/src/aichathistory/aichathistorycontroller.js +1 -1
  65. package/src/aichathistory/aichathistoryui.js +1 -1
  66. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  67. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  68. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  69. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  70. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  71. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  72. package/src/aicore/aiconnector.js +1 -1
  73. package/src/aicore/aiediting.js +1 -1
  74. package/src/aicore/model/aicapabilities.js +1 -1
  75. package/src/aicore/model/aiinteraction.js +1 -1
  76. package/src/aicore/model/aimodels.js +1 -1
  77. package/src/aicore/model/aireply.js +1 -1
  78. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  79. package/src/aicore/pipeline/airesponseparser.js +2 -2
  80. package/src/aicore/ui/aidisclaimerview.js +1 -1
  81. package/src/aicore/ui/aiskeleton.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  84. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  85. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  86. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  87. package/src/aicore/utils/createresizebutton.js +1 -1
  88. package/src/aicore/utils/documentrange.js +1 -1
  89. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  90. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  91. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  92. package/src/aicore/utils/htmlparser.js +1 -1
  93. package/src/aicore/utils/htmlstreamer.js +1 -1
  94. package/src/aieditorintegration/aieditorintegration.js +1 -1
  95. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  96. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  97. package/src/aiquickactions/aiquickactions.js +1 -1
  98. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  99. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  100. package/src/aiquickactions/aiquickactionsui.js +1 -1
  101. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  102. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  103. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  104. package/src/aireviewmode/aireviewmode.js +1 -1
  105. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  106. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  107. package/src/aireviewmode/aireviewmodeui.js +1 -1
  108. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  109. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  110. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  111. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  112. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  113. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  114. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  115. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  116. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  117. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  118. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  119. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  120. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  121. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  122. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  123. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  124. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  125. package/src/aitabs/aitabs.js +1 -1
  126. package/src/aitabs/tabs/aitabsview.js +1 -1
  127. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  128. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4403(_0x3d2bf8,_0x5c8c29){const _0x43ba9d=_0x43ba();return _0x4403=function(_0x44032e,_0x85f4ef){_0x44032e=_0x44032e-0x10c;let _0x2499d5=_0x43ba9d[_0x44032e];return _0x2499d5;},_0x4403(_0x3d2bf8,_0x5c8c29);}const _0x378abb=_0x4403;function _0x43ba(){const _0x1fb99f=['474XLgLEB','241836yGNeVw','915663nCgmpy','title','isVisible','highlightText','length','_itemsListView','180ecSxeR','getItem','items','3130804phTUIr','set','remove','addMany','splice','7599AShlXW','setTemplate','69183EmPWli','ck-hidden','isMatching','ck-ai-chat-history__section','24eZLyOj','find','1094470bctkEe','div','indexOf','33wcRRSz','itemsViews','24KGcDAf','10750380ggMIdD','ck-ai-chat-history__section-title','bindTemplate','filter','removeItem'];_0x43ba=function(){return _0x1fb99f;};return _0x43ba();}(function(_0x3524d7,_0x53752e){const _0x32f698=_0x4403,_0x89719a=_0x3524d7();while(!![]){try{const _0x15fdf9=-parseInt(_0x32f698(0x11b))/0x1+parseInt(_0x32f698(0x11a))/0x2*(-parseInt(_0x32f698(0x12a))/0x3)+-parseInt(_0x32f698(0x125))/0x4+parseInt(_0x32f698(0x10f))/0x5*(-parseInt(_0x32f698(0x10d))/0x6)+-parseInt(_0x32f698(0x11c))/0x7*(-parseInt(_0x32f698(0x114))/0x8)+-parseInt(_0x32f698(0x12c))/0x9*(parseInt(_0x32f698(0x122))/0xa)+-parseInt(_0x32f698(0x112))/0xb*(-parseInt(_0x32f698(0x115))/0xc);if(_0x15fdf9===_0x53752e)break;else _0x89719a['push'](_0x89719a['shift']());}catch(_0x41e7a9){_0x89719a['push'](_0x89719a['shift']());}}}(_0x43ba,0x6bb86));import{ListItemView as _0x2e842d,View as _0x345bc0,ListView as _0x1487ec}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x2e842d{[_0x378abb(0x11d)];[_0x378abb(0x113)];[_0x378abb(0x121)];constructor(_0x1fa8f1,{title:_0x2543ae,items:_0x16bd78}){const _0x3ce5ce=_0x378abb;super(_0x1fa8f1);const _0x6544f1=this[_0x3ce5ce(0x117)];this[_0x3ce5ce(0x126)](_0x3ce5ce(0x11e),!0x0),this[_0x3ce5ce(0x11d)]=_0x2543ae,this[_0x3ce5ce(0x113)]=_0x16bd78;const _0x26b03d=new _0x345bc0(_0x1fa8f1);_0x26b03d[_0x3ce5ce(0x12b)]({'tag':_0x3ce5ce(0x110),'attributes':{'class':[_0x3ce5ce(0x116)]},'children':[this[_0x3ce5ce(0x11d)]]}),this[_0x3ce5ce(0x121)]=new _0x1487ec(_0x1fa8f1),this[_0x3ce5ce(0x121)][_0x3ce5ce(0x124)][_0x3ce5ce(0x128)](this[_0x3ce5ce(0x113)]),this[_0x3ce5ce(0x12b)]({'tag':'li','attributes':{'class':[_0x3ce5ce(0x10c),_0x6544f1['if'](_0x3ce5ce(0x11e),_0x3ce5ce(0x12d),_0x414efa=>!_0x414efa)]},'children':[_0x26b03d,this[_0x3ce5ce(0x121)]]});}[_0x378abb(0x118)](_0x3bc314){const _0x5e1e2b=_0x378abb,_0x3335ff=this[_0x5e1e2b(0x113)][_0x5e1e2b(0x120)];let _0x2b7d4f=0x0;for(const _0x335248 of this[_0x5e1e2b(0x113)]){if(_0x3bc314){const _0x4ad793=_0x335248[_0x5e1e2b(0x12e)](_0x3bc314);_0x335248[_0x5e1e2b(0x11e)]=!!_0x4ad793,_0x335248[_0x5e1e2b(0x11f)](_0x3bc314);}else _0x335248[_0x5e1e2b(0x11e)]=!0x0,_0x335248[_0x5e1e2b(0x11f)](null);_0x335248[_0x5e1e2b(0x11e)]&&_0x2b7d4f++;}return this[_0x5e1e2b(0x11e)]=_0x2b7d4f>0x0,{'resultsCount':_0x2b7d4f,'totalItemsCount':_0x3335ff};}[_0x378abb(0x123)](_0x5f2441){const _0x3f005f=_0x378abb;return this[_0x3f005f(0x113)][_0x3f005f(0x10e)](_0x47321a=>_0x47321a['id']===_0x5f2441);}[_0x378abb(0x119)](_0x1178fe){const _0x1eb094=_0x378abb,_0x2fe375=this[_0x1eb094(0x113)][_0x1eb094(0x111)](_0x1178fe);-0x1!==_0x2fe375&&(this[_0x1eb094(0x113)][_0x1eb094(0x129)](_0x2fe375,0x1),this[_0x1eb094(0x121)][_0x1eb094(0x124)][_0x1eb094(0x127)](_0x1178fe));}}
23
+ const _0xfa6376=_0x530b;(function(_0x1c0b7a,_0x1d582d){const _0x24d1bc=_0x530b,_0x126aa2=_0x1c0b7a();while(!![]){try{const _0xa216f8=parseInt(_0x24d1bc(0xe0))/0x1+-parseInt(_0x24d1bc(0xec))/0x2*(-parseInt(_0x24d1bc(0xf3))/0x3)+parseInt(_0x24d1bc(0xed))/0x4+-parseInt(_0x24d1bc(0xe3))/0x5*(parseInt(_0x24d1bc(0xef))/0x6)+-parseInt(_0x24d1bc(0xe5))/0x7+-parseInt(_0x24d1bc(0xea))/0x8+-parseInt(_0x24d1bc(0xe7))/0x9*(-parseInt(_0x24d1bc(0xe2))/0xa);if(_0xa216f8===_0x1d582d)break;else _0x126aa2['push'](_0x126aa2['shift']());}catch(_0x3df023){_0x126aa2['push'](_0x126aa2['shift']());}}}(_0x4ea6,0xecac2));function _0x530b(_0x4d23ac,_0x822b97){const _0x4ea6df=_0x4ea6();return _0x530b=function(_0x530b85,_0x5679cc){_0x530b85=_0x530b85-0xdc;let _0x2e042e=_0x4ea6df[_0x530b85];return _0x2e042e;},_0x530b(_0x4d23ac,_0x822b97);}function _0x4ea6(){const _0x1363cd=['isMatching','find','ck-ai-chat-history__section','addMany','ck-ai-chat-history__section-title','bindTemplate','indexOf','items','splice','div','140317kwugyp','itemsViews','10uqgXpz','19005EIVrpX','length','4923240iFKsZO','isVisible','33417387iVRynE','filter','set','14723648xDCGQu','highlightText','1746094UxYhom','2627484BycFHh','removeItem','2952fTuBmu','getItem','_itemsListView','setTemplate','3gmknYq','title','ck-hidden','remove'];_0x4ea6=function(){return _0x1363cd;};return _0x4ea6();}import{ListItemView as _0x45cc37,View as _0x34486f,ListView as _0x20e316}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x45cc37{[_0xfa6376(0xf4)];[_0xfa6376(0xe1)];[_0xfa6376(0xf1)];constructor(_0x1ac849,{title:_0xef8ca2,items:_0x377b38}){const _0x4d09ae=_0xfa6376;super(_0x1ac849);const _0x2dc839=this[_0x4d09ae(0xfc)];this[_0x4d09ae(0xe9)](_0x4d09ae(0xe6),!0x0),this[_0x4d09ae(0xf4)]=_0xef8ca2,this[_0x4d09ae(0xe1)]=_0x377b38;const _0x1b0115=new _0x34486f(_0x1ac849);_0x1b0115[_0x4d09ae(0xf2)]({'tag':_0x4d09ae(0xdf),'attributes':{'class':[_0x4d09ae(0xfb)]},'children':[this[_0x4d09ae(0xf4)]]}),this[_0x4d09ae(0xf1)]=new _0x20e316(_0x1ac849),this[_0x4d09ae(0xf1)][_0x4d09ae(0xdd)][_0x4d09ae(0xfa)](this[_0x4d09ae(0xe1)]),this[_0x4d09ae(0xf2)]({'tag':'li','attributes':{'class':[_0x4d09ae(0xf9),_0x2dc839['if'](_0x4d09ae(0xe6),_0x4d09ae(0xf5),_0x4dc18c=>!_0x4dc18c)]},'children':[_0x1b0115,this[_0x4d09ae(0xf1)]]});}[_0xfa6376(0xe8)](_0x341bae){const _0x127276=_0xfa6376,_0x2b5845=this[_0x127276(0xe1)][_0x127276(0xe4)];let _0x3be91a=0x0;for(const _0x4d632b of this[_0x127276(0xe1)]){if(_0x341bae){const _0x41f999=_0x4d632b[_0x127276(0xf7)](_0x341bae);_0x4d632b[_0x127276(0xe6)]=!!_0x41f999,_0x4d632b[_0x127276(0xeb)](_0x341bae);}else _0x4d632b[_0x127276(0xe6)]=!0x0,_0x4d632b[_0x127276(0xeb)](null);_0x4d632b[_0x127276(0xe6)]&&_0x3be91a++;}return this[_0x127276(0xe6)]=_0x3be91a>0x0,{'resultsCount':_0x3be91a,'totalItemsCount':_0x2b5845};}[_0xfa6376(0xf0)](_0x2fc34d){const _0x11b2e6=_0xfa6376;return this[_0x11b2e6(0xe1)][_0x11b2e6(0xf8)](_0x265d88=>_0x265d88['id']===_0x2fc34d);}[_0xfa6376(0xee)](_0x43a61c){const _0xf746d7=_0xfa6376,_0x44af22=this[_0xf746d7(0xe1)][_0xf746d7(0xdc)](_0x43a61c);-0x1!==_0x44af22&&(this[_0xf746d7(0xe1)][_0xf746d7(0xde)](_0x44af22,0x1),this[_0xf746d7(0xf1)][_0xf746d7(0xdd)][_0xf746d7(0xf6)](_0x43a61c));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29cccf=_0x2723;(function(_0x867c81,_0x31e754){const _0x42e78a=_0x2723,_0x3b60b7=_0x867c81();while(!![]){try{const _0x1e4590=parseInt(_0x42e78a(0x1ea))/0x1+parseInt(_0x42e78a(0x1eb))/0x2+parseInt(_0x42e78a(0x1de))/0x3+parseInt(_0x42e78a(0x1e9))/0x4*(-parseInt(_0x42e78a(0x1e6))/0x5)+parseInt(_0x42e78a(0x1df))/0x6*(parseInt(_0x42e78a(0x1e8))/0x7)+parseInt(_0x42e78a(0x1e3))/0x8+-parseInt(_0x42e78a(0x1e4))/0x9;if(_0x1e4590===_0x31e754)break;else _0x3b60b7['push'](_0x3b60b7['shift']());}catch(_0x304229){_0x3b60b7['push'](_0x3b60b7['shift']());}}}(_0x181f,0x984c9));function _0x2723(_0x3ef653,_0x49412f){const _0x181fdd=_0x181f();return _0x2723=function(_0x2723ec,_0x3ce004){_0x2723ec=_0x2723ec-0x1dd;let _0x17be7a=_0x181fdd[_0x2723ec];return _0x17be7a;},_0x2723(_0x3ef653,_0x49412f);}import{ListView as _0x23ed58}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x23ed58{[_0x29cccf(0x1dd)];constructor(_0x5a002d,_0x1f2a8d){const _0x15479b=_0x29cccf;super(_0x5a002d),this[_0x15479b(0x1dd)]=_0x1f2a8d,this[_0x15479b(0x1e5)][_0x15479b(0x1e1)](this[_0x15479b(0x1dd)]),this[_0x15479b(0x1e2)]({'attributes':{'class':[_0x15479b(0x1e0)]}});}[_0x29cccf(0x1e7)](_0x10a14a){const _0x418428=_0x29cccf;let _0x1acee9=0x0,_0x1b6059=0x0;for(const _0x30b906 of this[_0x418428(0x1dd)]){const {resultsCount:_0x23099f,totalItemsCount:_0x671182}=_0x30b906[_0x418428(0x1e7)](_0x10a14a);_0x1acee9+=_0x23099f,_0x1b6059+=_0x671182;}return{'resultsCount':_0x1acee9,'totalItemsCount':_0x1b6059};}}function _0x181f(){const _0x319f87=['486489GEflRq','2244814XesGrm','sections','807171LSzaIJ','393018tAzSqw','ck-ai-chat-history__sections','addMany','extendTemplate','8957688gOuTpI','23099760mkSRrq','items','10ZShLjP','filter','21uBvDCD','7432xIqEfo'];_0x181f=function(){return _0x319f87;};return _0x181f();}
23
+ function _0x1368(_0x432c23,_0x2a143d){const _0x3afa37=_0x3afa();return _0x1368=function(_0x1368aa,_0x107c14){_0x1368aa=_0x1368aa-0x1b6;let _0x21379f=_0x3afa37[_0x1368aa];return _0x21379f;},_0x1368(_0x432c23,_0x2a143d);}const _0x5d60ba=_0x1368;(function(_0x316bb1,_0x3a7c61){const _0x20b708=_0x1368,_0x5700df=_0x316bb1();while(!![]){try{const _0x3d0414=parseInt(_0x20b708(0x1bf))/0x1+parseInt(_0x20b708(0x1be))/0x2+parseInt(_0x20b708(0x1bc))/0x3+-parseInt(_0x20b708(0x1bb))/0x4+-parseInt(_0x20b708(0x1c2))/0x5+-parseInt(_0x20b708(0x1c3))/0x6+-parseInt(_0x20b708(0x1c1))/0x7*(-parseInt(_0x20b708(0x1b6))/0x8);if(_0x3d0414===_0x3a7c61)break;else _0x5700df['push'](_0x5700df['shift']());}catch(_0x4b20bc){_0x5700df['push'](_0x5700df['shift']());}}}(_0x3afa,0x36c5d));import{ListView as _0x27d8a1}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x27d8a1{[_0x5d60ba(0x1c0)];constructor(_0x5d4b28,_0xb08e05){const _0xcc15be=_0x5d60ba;super(_0x5d4b28),this[_0xcc15be(0x1c0)]=_0xb08e05,this[_0xcc15be(0x1bd)][_0xcc15be(0x1b9)](this[_0xcc15be(0x1c0)]),this[_0xcc15be(0x1ba)]({'attributes':{'class':[_0xcc15be(0x1b8)]}});}[_0x5d60ba(0x1b7)](_0x14aee2){const _0x5ceb8d=_0x5d60ba;let _0x2682ea=0x0,_0x54e370=0x0;for(const _0x4ad918 of this[_0x5ceb8d(0x1c0)]){const {resultsCount:_0x5e032e,totalItemsCount:_0x119f19}=_0x4ad918[_0x5ceb8d(0x1b7)](_0x14aee2);_0x2682ea+=_0x5e032e,_0x54e370+=_0x119f19;}return{'resultsCount':_0x2682ea,'totalItemsCount':_0x54e370};}}function _0x3afa(){const _0x313f0b=['240565wPLHTD','sections','1770797cxvONM','2113065rZBMJT','2643906QDRaId','24LfnGoC','filter','ck-ai-chat-history__sections','addMany','extendTemplate','665216oQizBl','743736RnskKM','items','13054klQtIR'];_0x3afa=function(){return _0x313f0b;};return _0x3afa();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf223ee=_0x53b3;function _0x560e(){const _0x15c358=['delegate','bind','extendTemplate','render','_updateViewVisibility','search','removeItem','730VEeCUI','ck-ai-chat-error','2997765inkQdr','sectionsView','118188uvBBNq','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-reset_all','updateLoadingState','errorView','54187jSqKSP','add','isMaximized','5566624sOCybQ','ck-ai-chat-error__dismiss-button','39zEguVI','bindTemplate','sections','ck-ai-chat-history__content','fire','fieldView','ck-ai-chat-history__empty','searchView','resizeButton','change:hasItems','hasItems','div','_createSkeletonView','ck-hidden','ck-ai-chat-history__empty-message','ck-ai-header\x20ck-ai-header_history','_refreshSearch','items','addMany','22840543UAlDky','value','element','_createListItemViews','removeHistoryItem','ck-rounded-corners','AI_CHAT_HISTORY_HEADING','_createEmptyStateView','ck-ai-chat__start-conversation','isSearchViewVisible','294Hktrpt','locale','emptyView','isLoading','AI_CHAT_LABEL_NEW_CHAT','change:errorMessage','itemsViews','push','length','children','_createErrorView','title','_createSearchView','splice','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','ck-ai-chat-history','getItem','updateTitle','730OmXthv','updateItemTitle','clear','indexOf','errorMessage','isVisible','change:isLoading','set','aiHistory','ltr','AI_CHAT_HISTORY_SEARCH_LABEL','some','isEmptyViewVisible','queryView','openChat','4827nHPkkF','updateHistoryItemsWithCategories','updateItemLoadingState','execute','remove','30904ycjSzq','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','setTemplate','skeletonView'];_0x560e=function(){return _0x15c358;};return _0x560e();}(function(_0x2f1314,_0x58a9e9){const _0x1a2ba7=_0x53b3,_0x5665fd=_0x2f1314();while(!![]){try{const _0x619f0a=parseInt(_0x1a2ba7(0x154))/0x1*(-parseInt(_0x1a2ba7(0x145))/0x2)+-parseInt(_0x1a2ba7(0x172))/0x3*(parseInt(_0x1a2ba7(0x159))/0x4)+-parseInt(_0x1a2ba7(0x166))/0x5+-parseInt(_0x1a2ba7(0x133))/0x6*(parseInt(_0x1a2ba7(0x16d))/0x7)+parseInt(_0x1a2ba7(0x170))/0x8+parseInt(_0x1a2ba7(0x168))/0x9*(parseInt(_0x1a2ba7(0x164))/0xa)+parseInt(_0x1a2ba7(0x129))/0xb;if(_0x619f0a===_0x58a9e9)break;else _0x5665fd['push'](_0x5665fd['shift']());}catch(_0x700a29){_0x5665fd['push'](_0x5665fd['shift']());}}}(_0x560e,0xd937a));function _0x53b3(_0x3be1a5,_0x17b721){const _0x560e40=_0x560e();return _0x53b3=function(_0x53b35b,_0x5e7e8f){_0x53b35b=_0x53b35b-0x11e;let _0x242afb=_0x560e40[_0x53b35b];return _0x242afb;},_0x53b3(_0x3be1a5,_0x17b721);}import{View as _0x43387b,SearchTextView as _0x53dfc4,FormHeaderView as _0x1add31,ButtonView as _0x3a15ed}from'ckeditor5/src/ui.js';import{IconAIHistory as _0xa20093,IconCancel as _0x2602ab,IconPlus as _0xedce62}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x39fe80}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x2f86c9}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x2ffbd3}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x2a677e}from'../aichathistoryui.js';import{AISkeletonView as _0x3b0813,SKELETON_DEFINITIONS as _0x2bac8b}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x4fffaf}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x4592fe}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x43387b{[_0xf223ee(0x179)];[_0xf223ee(0x16c)];[_0xf223ee(0x15c)];[_0xf223ee(0x135)];[_0xf223ee(0x167)];[_0xf223ee(0x11e)];constructor(_0xc4bbc5,_0xc515a7){const _0x923182=_0xf223ee;super(_0xc4bbc5),this[_0x923182(0x14c)](_0x923182(0x120),!0x1),this[_0x923182(0x14c)](_0x923182(0x136),!0x0),this[_0x923182(0x14c)](_0x923182(0x149),''),this[_0x923182(0x14c)](_0x923182(0x16f),!0x1),this[_0x923182(0x14c)](_0x923182(0x132),!0x1),this[_0x923182(0x14c)](_0x923182(0x151),!0x1);const _0x5d2db2=new _0x1add31(_0xc4bbc5,{'label':_0x4592fe(_0xc4bbc5,_0x923182(0x12f)),'icon':_0xa20093,'class':_0x923182(0x125)});_0xc515a7&&(this[_0x923182(0x11e)]=_0x4fffaf(_0xc4bbc5,this),_0x5d2db2[_0x923182(0x13c)][_0x923182(0x16e)](this[_0x923182(0x11e)])),this[_0x923182(0x167)]=new _0x39fe80(_0xc4bbc5,[]),this[_0x923182(0x167)][_0x923182(0x15d)](..._0x2a677e)['to'](this),this[_0x923182(0x16c)]=this[_0x923182(0x13d)](),this[_0x923182(0x15c)]=this[_0x923182(0x122)](),this[_0x923182(0x135)]=this[_0x923182(0x130)](),this[_0x923182(0x179)]=this[_0x923182(0x13f)](),this['on'](_0x923182(0x14b),()=>this[_0x923182(0x161)]()),this['on'](_0x923182(0x11f),()=>this[_0x923182(0x161)]()),this['on'](_0x923182(0x138),()=>this[_0x923182(0x161)]()),this[_0x923182(0x15b)]({'tag':_0x923182(0x121),'attributes':{'class':['ck',_0x923182(0x16a),_0x923182(0x142),_0x923182(0x12e)],'dir':_0x923182(0x14e)},'children':[_0x5d2db2,{'tag':_0x923182(0x121),'attributes':{'class':[_0x923182(0x175)]},'children':[this[_0x923182(0x15c)],this[_0x923182(0x16c)],this[_0x923182(0x135)],this[_0x923182(0x179)]]}]});}[_0xf223ee(0x161)](){const _0x386235=_0xf223ee;this[_0x386235(0x132)]=!this[_0x386235(0x136)]&&this[_0x386235(0x120)]&&!this[_0x386235(0x149)],this[_0x386235(0x151)]=!this[_0x386235(0x136)]&&!this[_0x386235(0x120)]&&!this[_0x386235(0x149)];}[_0xf223ee(0x13f)](){const _0x26ab9f=_0xf223ee,_0x5b38bb=new _0x53dfc4(this[_0x26ab9f(0x134)],{'filteredView':this[_0x26ab9f(0x167)],'queryView':{'label':_0x4592fe(this[_0x26ab9f(0x134)],_0x26ab9f(0x14f))},'infoView':{'text':{'notFound':{'primary':_0x51b247=>_0x4592fe(this[_0x26ab9f(0x134)],_0x26ab9f(0x141),_0x51b247),'secondary':_0x4592fe(this[_0x26ab9f(0x134)],_0x26ab9f(0x15a))}}}});return _0x5b38bb['on'](_0x26ab9f(0x160),()=>{const _0x224080=_0x26ab9f;this[_0x224080(0x179)][_0x224080(0x13c)][_0x224080(0x16e)](this[_0x224080(0x16c)],0x1);}),_0x5b38bb[_0x26ab9f(0x15f)]({'attributes':{'class':[this[_0x26ab9f(0x173)]['if'](_0x26ab9f(0x132),_0x26ab9f(0x123),_0x1a2e9=>!_0x1a2e9)]}}),_0x5b38bb;}[_0xf223ee(0x122)](){const _0x2f5861=_0xf223ee,_0x4e63de=new _0x3b0813(this[_0x2f5861(0x134)],_0x2bac8b[_0x2f5861(0x14d)]);return _0x4e63de[_0x2f5861(0x15f)]({'attributes':{'class':[this[_0x2f5861(0x173)]['if'](_0x2f5861(0x136),_0x2f5861(0x123),_0x110bee=>!_0x110bee)]}}),_0x4e63de;}[_0xf223ee(0x13d)](){const _0x271da0=_0xf223ee,_0x32d2c2=new _0x43387b(this[_0x271da0(0x134)]),_0x45169d=new _0x3a15ed(this[_0x271da0(0x134)]);return _0x45169d[_0x271da0(0x14c)]({'withText':!0x1,'icon':_0x2602ab,'class':_0x271da0(0x171)}),_0x45169d[_0x271da0(0x15e)](_0x271da0(0x14a))['to'](this,_0x271da0(0x120),_0x57564c=>!!_0x57564c),_0x45169d['on'](_0x271da0(0x157),()=>{const _0x4e0e9b=_0x271da0;this[_0x4e0e9b(0x149)]='';}),_0x32d2c2[_0x271da0(0x15b)]({'tag':_0x271da0(0x121),'attributes':{'class':['ck',_0x271da0(0x165),this[_0x271da0(0x173)]['if'](_0x271da0(0x149),_0x271da0(0x123),_0x297569=>!_0x297569)]},'children':[{'tag':'p','children':[{'text':this[_0x271da0(0x173)]['to'](_0x271da0(0x149))}]},_0x45169d]}),_0x32d2c2;}[_0xf223ee(0x130)](){const _0x45622a=_0xf223ee,_0x400fc9=new _0x3a15ed(this[_0x45622a(0x134)]);_0x400fc9[_0x45622a(0x14c)]({'label':_0x4592fe(this[_0x45622a(0x134)],_0x45622a(0x137)),'withText':!0x0,'icon':_0xedce62,'class':_0x45622a(0x131)}),_0x400fc9['on'](_0x45622a(0x157),()=>{const _0x56a67c=_0x45622a;this[_0x56a67c(0x176)](_0x56a67c(0x153));});const _0x5c5a18=new _0x43387b(this[_0x45622a(0x134)]);return _0x5c5a18[_0x45622a(0x15b)]({'tag':_0x45622a(0x121),'attributes':{'class':[_0x45622a(0x178),this[_0x45622a(0x173)]['if'](_0x45622a(0x151),_0x45622a(0x123),_0x395c14=>!_0x395c14)]},'children':[{'tag':'p','attributes':{'class':[_0x45622a(0x124)]},'children':[_0x4592fe(this[_0x45622a(0x134)],_0x45622a(0x169))]},_0x400fc9]}),_0x5c5a18;}[_0xf223ee(0x12c)](_0x3ee53d,_0x507638){const _0x5f9a65=_0xf223ee,_0x4b5ef0=[];for(const _0x2d4ba6 of _0x3ee53d){const _0x40379a=new _0x2ffbd3(_0x507638,_0x2d4ba6);_0x40379a[_0x5f9a65(0x15d)](..._0x2a677e)['to'](this),_0x4b5ef0[_0x5f9a65(0x13a)](_0x40379a);}return _0x4b5ef0;}[_0xf223ee(0x155)](_0x597007){const _0x23fc5b=_0xf223ee,_0x10492a=this[_0x23fc5b(0x134)]||'en',_0xf5e4d9=[];for(const _0x2c7c56 of _0x597007){const _0x506139=this[_0x23fc5b(0x12c)](_0x2c7c56[_0x23fc5b(0x127)],_0x10492a);_0xf5e4d9[_0x23fc5b(0x13a)](new _0x2f86c9(_0x10492a,{'title':_0x2c7c56[_0x23fc5b(0x13e)],'items':_0x506139}));}this[_0x23fc5b(0x167)][_0x23fc5b(0x174)]=_0xf5e4d9,this[_0x23fc5b(0x167)][_0x23fc5b(0x127)][_0x23fc5b(0x147)](),this[_0x23fc5b(0x167)][_0x23fc5b(0x127)][_0x23fc5b(0x128)](_0xf5e4d9),this[_0x23fc5b(0x120)]=_0x597007[_0x23fc5b(0x150)](_0x3b37b3=>_0x3b37b3[_0x23fc5b(0x127)][_0x23fc5b(0x13b)]>0x0),this[_0x23fc5b(0x126)]();}[_0xf223ee(0x12d)](_0x836ffc){const _0xce6fa1=_0xf223ee;for(const _0xa7d76d of this[_0xce6fa1(0x167)][_0xce6fa1(0x174)]){const _0x154468=_0xa7d76d[_0xce6fa1(0x143)](_0x836ffc);if(_0x154468){if(_0xa7d76d[_0xce6fa1(0x163)](_0x154468),0x0===_0xa7d76d[_0xce6fa1(0x139)][_0xce6fa1(0x13b)]){const _0x2e5587=this[_0xce6fa1(0x167)][_0xce6fa1(0x174)][_0xce6fa1(0x148)](_0xa7d76d);-0x1!==_0x2e5587&&(this[_0xce6fa1(0x167)][_0xce6fa1(0x174)][_0xce6fa1(0x140)](_0x2e5587,0x1),this[_0xce6fa1(0x167)][_0xce6fa1(0x127)][_0xce6fa1(0x158)](_0xa7d76d));}this[_0xce6fa1(0x120)]=this[_0xce6fa1(0x167)][_0xce6fa1(0x174)][_0xce6fa1(0x13b)]>0x0,this[_0xce6fa1(0x126)]();break;}}}[_0xf223ee(0x146)](_0x15739a,_0x51aee2){const _0x586791=_0xf223ee;for(const _0x5a7b7d of this[_0x586791(0x167)][_0x586791(0x174)]){const _0x13c379=_0x5a7b7d[_0x586791(0x143)](_0x15739a);if(_0x13c379){_0x13c379[_0x586791(0x144)](_0x51aee2);break;}}}[_0xf223ee(0x156)](_0x54a2b5,_0x4c49f3,_0x1805a7){const _0x586114=_0xf223ee;for(const _0x43d92e of this[_0x586114(0x167)][_0x586114(0x174)]){const _0x436786=_0x43d92e[_0x586114(0x143)](_0x54a2b5);if(_0x436786){_0x436786[_0x586114(0x16b)](_0x4c49f3,_0x1805a7);break;}}}[_0xf223ee(0x126)](){const _0x265bbe=_0xf223ee;if(this[_0x265bbe(0x120)]){const _0x1b336c=this[_0x265bbe(0x179)][_0x265bbe(0x152)][_0x265bbe(0x177)]?.[_0x265bbe(0x12b)]?.[_0x265bbe(0x12a)]||'';this[_0x265bbe(0x179)][_0x265bbe(0x162)](_0x1b336c);}}}
23
+ const _0x2687f2=_0x2a94;(function(_0x33e177,_0x14472a){const _0x4b5457=_0x2a94,_0x353575=_0x33e177();while(!![]){try{const _0x3cf3ea=parseInt(_0x4b5457(0x181))/0x1+-parseInt(_0x4b5457(0x168))/0x2+-parseInt(_0x4b5457(0x17f))/0x3+parseInt(_0x4b5457(0x17c))/0x4+parseInt(_0x4b5457(0x18c))/0x5*(-parseInt(_0x4b5457(0x1a4))/0x6)+parseInt(_0x4b5457(0x14e))/0x7*(-parseInt(_0x4b5457(0x167))/0x8)+parseInt(_0x4b5457(0x18e))/0x9;if(_0x3cf3ea===_0x14472a)break;else _0x353575['push'](_0x353575['shift']());}catch(_0x2b140d){_0x353575['push'](_0x353575['shift']());}}}(_0x4aea,0x6772e));import{View as _0x36b455,SearchTextView as _0x276fa8,FormHeaderView as _0x2c3915,ButtonView as _0x308622}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x37fd09,IconCancel as _0x4d846a,IconPlus as _0x5d1582}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x36ebce}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x32c73a}from'./aichathistorylistview.js';function _0x2a94(_0x240b27,_0x15b18a){const _0x4aea60=_0x4aea();return _0x2a94=function(_0x2a947a,_0x187f4d){_0x2a947a=_0x2a947a-0x14e;let _0x30edbd=_0x4aea60[_0x2a947a];return _0x30edbd;},_0x2a94(_0x240b27,_0x15b18a);}import{AIChatHistoryListItemView as _0x28b94c}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x17b87c}from'../aichathistoryui.js';import{AISkeletonView as _0x5aa7bc,SKELETON_DEFINITIONS as _0x404e1a}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x3ee0de}from'../../aicore/utils/createresizebutton.js';function _0x4aea(){const _0x4f1c44=['add','push','search','updateHistoryItemsWithCategories','1345772kKfbHZ','isMaximized','isLoading','1517040WlPgRK','change:errorMessage','599936VFsMUh','clear','aiHistory','hasItems','items','render','some','length','setTemplate','extendTemplate','change:hasItems','2020AeOoMi','delegate','6374322NUTGmg','ck-ai-chat__start-conversation','errorMessage','change:isLoading','removeItem','_createSkeletonView','div','AI_CHAT_HISTORY_HEADING','fieldView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','_createErrorView','searchView','value','ck-ai-chat-history__empty','AI_CHAT_HISTORY_EMPTY_MESSAGE','skeletonView','bind','locale','emptyView','execute','indexOf','remove','3324XKveCE','getItem','ck-hidden','element','14BxEMSH','_createEmptyStateView','updateTitle','queryView','openChat','updateItemTitle','fire','sectionsView','errorView','updateLoadingState','ck-ai-chat-error__dismiss-button','ck-ai-chat-history','set','updateItemLoadingState','children','ck-reset_all','_refreshSearch','resizeButton','AI_CHAT_LABEL_NEW_CHAT','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_createListItemViews','ck-ai-chat-history__empty-message','_createSearchView','isEmptyViewVisible','title','852360KMvmJR','556650OgPmFV','isSearchViewVisible','AI_CHAT_HISTORY_SEARCH_LABEL','ltr','splice','bindTemplate','ck-rounded-corners','isVisible','itemsViews','ck-ai-chat-error','ck-ai-header\x20ck-ai-header_history','sections','ck-ai-chat-history__content','_updateViewVisibility','removeHistoryItem','addMany'];_0x4aea=function(){return _0x4f1c44;};return _0x4aea();}import{getTranslation as _0x4fd4d7}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x36b455{[_0x2687f2(0x199)];[_0x2687f2(0x156)];[_0x2687f2(0x19d)];[_0x2687f2(0x1a0)];[_0x2687f2(0x155)];[_0x2687f2(0x15f)];constructor(_0x134f21,_0x139b86){const _0x3bd5b2=_0x2687f2;super(_0x134f21),this[_0x3bd5b2(0x15a)](_0x3bd5b2(0x184),!0x1),this[_0x3bd5b2(0x15a)](_0x3bd5b2(0x17e),!0x0),this[_0x3bd5b2(0x15a)](_0x3bd5b2(0x190),''),this[_0x3bd5b2(0x15a)](_0x3bd5b2(0x17d),!0x1),this[_0x3bd5b2(0x15a)](_0x3bd5b2(0x169),!0x1),this[_0x3bd5b2(0x15a)](_0x3bd5b2(0x165),!0x1);const _0x5de675=new _0x2c3915(_0x134f21,{'label':_0x4fd4d7(_0x134f21,_0x3bd5b2(0x195)),'icon':_0x37fd09,'class':_0x3bd5b2(0x172)});_0x139b86&&(this[_0x3bd5b2(0x15f)]=_0x3ee0de(_0x134f21,this),_0x5de675[_0x3bd5b2(0x15c)][_0x3bd5b2(0x178)](this[_0x3bd5b2(0x15f)])),this[_0x3bd5b2(0x155)]=new _0x36ebce(_0x134f21,[]),this[_0x3bd5b2(0x155)][_0x3bd5b2(0x18d)](..._0x17b87c)['to'](this),this[_0x3bd5b2(0x156)]=this[_0x3bd5b2(0x198)](),this[_0x3bd5b2(0x19d)]=this[_0x3bd5b2(0x193)](),this[_0x3bd5b2(0x1a0)]=this[_0x3bd5b2(0x14f)](),this[_0x3bd5b2(0x199)]=this[_0x3bd5b2(0x164)](),this['on'](_0x3bd5b2(0x191),()=>this[_0x3bd5b2(0x175)]()),this['on'](_0x3bd5b2(0x18b),()=>this[_0x3bd5b2(0x175)]()),this['on'](_0x3bd5b2(0x180),()=>this[_0x3bd5b2(0x175)]()),this[_0x3bd5b2(0x189)]({'tag':_0x3bd5b2(0x194),'attributes':{'class':['ck',_0x3bd5b2(0x15d),_0x3bd5b2(0x159),_0x3bd5b2(0x16e)],'dir':_0x3bd5b2(0x16b)},'children':[_0x5de675,{'tag':_0x3bd5b2(0x194),'attributes':{'class':[_0x3bd5b2(0x174)]},'children':[this[_0x3bd5b2(0x19d)],this[_0x3bd5b2(0x156)],this[_0x3bd5b2(0x1a0)],this[_0x3bd5b2(0x199)]]}]});}[_0x2687f2(0x175)](){const _0x3bed88=_0x2687f2;this[_0x3bed88(0x169)]=!this[_0x3bed88(0x17e)]&&this[_0x3bed88(0x184)]&&!this[_0x3bed88(0x190)],this[_0x3bed88(0x165)]=!this[_0x3bed88(0x17e)]&&!this[_0x3bed88(0x184)]&&!this[_0x3bed88(0x190)];}[_0x2687f2(0x164)](){const _0x2b9984=_0x2687f2,_0x13b526=new _0x276fa8(this[_0x2b9984(0x19f)],{'filteredView':this[_0x2b9984(0x155)],'queryView':{'label':_0x4fd4d7(this[_0x2b9984(0x19f)],_0x2b9984(0x16a))},'infoView':{'text':{'notFound':{'primary':_0x3fe1b2=>_0x4fd4d7(this[_0x2b9984(0x19f)],_0x2b9984(0x161),_0x3fe1b2),'secondary':_0x4fd4d7(this[_0x2b9984(0x19f)],_0x2b9984(0x197))}}}});return _0x13b526['on'](_0x2b9984(0x186),()=>{const _0x3136bf=_0x2b9984;this[_0x3136bf(0x199)][_0x3136bf(0x15c)][_0x3136bf(0x178)](this[_0x3136bf(0x156)],0x1);}),_0x13b526[_0x2b9984(0x18a)]({'attributes':{'class':[this[_0x2b9984(0x16d)]['if'](_0x2b9984(0x169),_0x2b9984(0x1a6),_0x26ad28=>!_0x26ad28)]}}),_0x13b526;}[_0x2687f2(0x193)](){const _0x2477a0=_0x2687f2,_0x3c8b07=new _0x5aa7bc(this[_0x2477a0(0x19f)],_0x404e1a[_0x2477a0(0x183)]);return _0x3c8b07[_0x2477a0(0x18a)]({'attributes':{'class':[this[_0x2477a0(0x16d)]['if'](_0x2477a0(0x17e),_0x2477a0(0x1a6),_0x3b330f=>!_0x3b330f)]}}),_0x3c8b07;}[_0x2687f2(0x198)](){const _0x1d4301=_0x2687f2,_0x54400c=new _0x36b455(this[_0x1d4301(0x19f)]),_0x5ac646=new _0x308622(this[_0x1d4301(0x19f)]);return _0x5ac646[_0x1d4301(0x15a)]({'withText':!0x1,'icon':_0x4d846a,'class':_0x1d4301(0x158)}),_0x5ac646[_0x1d4301(0x19e)](_0x1d4301(0x16f))['to'](this,_0x1d4301(0x184),_0x52318f=>!!_0x52318f),_0x5ac646['on'](_0x1d4301(0x1a1),()=>{const _0x1e22cb=_0x1d4301;this[_0x1e22cb(0x190)]='';}),_0x54400c[_0x1d4301(0x189)]({'tag':_0x1d4301(0x194),'attributes':{'class':['ck',_0x1d4301(0x171),this[_0x1d4301(0x16d)]['if'](_0x1d4301(0x190),_0x1d4301(0x1a6),_0x48862f=>!_0x48862f)]},'children':[{'tag':'p','children':[{'text':this[_0x1d4301(0x16d)]['to'](_0x1d4301(0x190))}]},_0x5ac646]}),_0x54400c;}[_0x2687f2(0x14f)](){const _0x51e9b9=_0x2687f2,_0x5d40ac=new _0x308622(this[_0x51e9b9(0x19f)]);_0x5d40ac[_0x51e9b9(0x15a)]({'label':_0x4fd4d7(this[_0x51e9b9(0x19f)],_0x51e9b9(0x160)),'withText':!0x0,'icon':_0x5d1582,'class':_0x51e9b9(0x18f)}),_0x5d40ac['on'](_0x51e9b9(0x1a1),()=>{const _0x204a92=_0x51e9b9;this[_0x204a92(0x154)](_0x204a92(0x152));});const _0x484336=new _0x36b455(this[_0x51e9b9(0x19f)]);return _0x484336[_0x51e9b9(0x189)]({'tag':_0x51e9b9(0x194),'attributes':{'class':[_0x51e9b9(0x19b),this[_0x51e9b9(0x16d)]['if'](_0x51e9b9(0x165),_0x51e9b9(0x1a6),_0x3efece=>!_0x3efece)]},'children':[{'tag':'p','attributes':{'class':[_0x51e9b9(0x163)]},'children':[_0x4fd4d7(this[_0x51e9b9(0x19f)],_0x51e9b9(0x19c))]},_0x5d40ac]}),_0x484336;}[_0x2687f2(0x162)](_0x9b9370,_0x3316b4){const _0x5ebe8b=_0x2687f2,_0x41e444=[];for(const _0x57fa26 of _0x9b9370){const _0x1fcfc4=new _0x28b94c(_0x3316b4,_0x57fa26);_0x1fcfc4[_0x5ebe8b(0x18d)](..._0x17b87c)['to'](this),_0x41e444[_0x5ebe8b(0x179)](_0x1fcfc4);}return _0x41e444;}[_0x2687f2(0x17b)](_0x3d7f5c){const _0x28b4e0=_0x2687f2,_0x53f874=this[_0x28b4e0(0x19f)]||'en',_0x50f0aa=[];for(const _0x1869ab of _0x3d7f5c){const _0x33a8e4=this[_0x28b4e0(0x162)](_0x1869ab[_0x28b4e0(0x185)],_0x53f874);_0x50f0aa[_0x28b4e0(0x179)](new _0x32c73a(_0x53f874,{'title':_0x1869ab[_0x28b4e0(0x166)],'items':_0x33a8e4}));}this[_0x28b4e0(0x155)][_0x28b4e0(0x173)]=_0x50f0aa,this[_0x28b4e0(0x155)][_0x28b4e0(0x185)][_0x28b4e0(0x182)](),this[_0x28b4e0(0x155)][_0x28b4e0(0x185)][_0x28b4e0(0x177)](_0x50f0aa),this[_0x28b4e0(0x184)]=_0x3d7f5c[_0x28b4e0(0x187)](_0x199f98=>_0x199f98[_0x28b4e0(0x185)][_0x28b4e0(0x188)]>0x0),this[_0x28b4e0(0x15e)]();}[_0x2687f2(0x176)](_0x2b57bb){const _0xb0abbf=_0x2687f2;for(const _0x4d0203 of this[_0xb0abbf(0x155)][_0xb0abbf(0x173)]){const _0x1477c2=_0x4d0203[_0xb0abbf(0x1a5)](_0x2b57bb);if(_0x1477c2){if(_0x4d0203[_0xb0abbf(0x192)](_0x1477c2),0x0===_0x4d0203[_0xb0abbf(0x170)][_0xb0abbf(0x188)]){const _0x2ffbd6=this[_0xb0abbf(0x155)][_0xb0abbf(0x173)][_0xb0abbf(0x1a2)](_0x4d0203);-0x1!==_0x2ffbd6&&(this[_0xb0abbf(0x155)][_0xb0abbf(0x173)][_0xb0abbf(0x16c)](_0x2ffbd6,0x1),this[_0xb0abbf(0x155)][_0xb0abbf(0x185)][_0xb0abbf(0x1a3)](_0x4d0203));}this[_0xb0abbf(0x184)]=this[_0xb0abbf(0x155)][_0xb0abbf(0x173)][_0xb0abbf(0x188)]>0x0,this[_0xb0abbf(0x15e)]();break;}}}[_0x2687f2(0x153)](_0x4becf9,_0x40334c){const _0x1eddc0=_0x2687f2;for(const _0x5b3748 of this[_0x1eddc0(0x155)][_0x1eddc0(0x173)]){const _0x3bea96=_0x5b3748[_0x1eddc0(0x1a5)](_0x4becf9);if(_0x3bea96){_0x3bea96[_0x1eddc0(0x150)](_0x40334c);break;}}}[_0x2687f2(0x15b)](_0x63856a,_0x25c027,_0x34d7f){const _0x177b45=_0x2687f2;for(const _0x22a195 of this[_0x177b45(0x155)][_0x177b45(0x173)]){const _0x84c171=_0x22a195[_0x177b45(0x1a5)](_0x63856a);if(_0x84c171){_0x84c171[_0x177b45(0x157)](_0x25c027,_0x34d7f);break;}}}[_0x2687f2(0x15e)](){const _0x52ac81=_0x2687f2;if(this[_0x52ac81(0x184)]){const _0x3754c1=this[_0x52ac81(0x199)][_0x52ac81(0x151)][_0x52ac81(0x196)]?.[_0x52ac81(0x1a7)]?.[_0x52ac81(0x19a)]||'';this[_0x52ac81(0x199)][_0x52ac81(0x17a)](_0x3754c1);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x8eb8(){const _0x208626=['define','MAKE_TONE_CASUAL','decode','CloudServices','upsertCustomAIReviewRating','/conversations','uploadDocument','pluginName','application/json','catch','_decoder','1253858IYRyhB','then','translate','_getStreamReader','text','581680obwGXT','fetchConversation','/messages/','396MPLMCc','true','stringify','/conversations?','executeCustomAction','uploadUrl','/ratings','/models/1','PATCH','keys','read','limit','/messages','AIConnector','file','7836zlgJcB','context','data','fetchConversations','ai-request-aborted','make-shorter','push','FIX_GRAMMAR','request','make-tone-casual','body','releaseLock','feed','upsertAIReviewRating','Content-Type','TRANSLATE','excludeEmpty','uploadFile','get','ai.serviceUrl','reset','/reviews/custom/calls','/web-resources/','/actions/system/','/calls','upsertAIChatRating','name','_sendApiRequest','init','38QfBWyO','/documents/','_handleError','plugins','length','POST','MAKE_TONE_FORMAL','100','getModels','/conversations/','attributes','/files','abortController','getReader','ai-missing-token','executeAction','make-tone-formal','PUT','status','group','isPremiumPlugin','1788182fvdOVs','callSystemReview','260pOftqi','IMPROVE_WRITING','/reviews/system/','callCustomReview','/reviews/custom/calls/','make-longer','deleteConversation','isOfficialPlugin','totalCount','fetchDocument','deleteWebResource','improve-writing','_token','/actions/custom/calls','requires','value','321832RNtBsX','startConversation','statusText','CONTINUE','_apiUrl','/web-resources','DELETE','json','266547pcovRu','continue','MAKE_SHORTER','/files/','deleteDocument','config','595whFAOa','updateConversation','4167570CzIMts','fix-grammar','/actions/custom/calls/','deleteFile','queryAssistant','MAKE_LONGER','/documents','toString','search','token','ai-request-failed','/calls/','Bearer\x20','positiveCount','GET','items','append','AbortError','upsertCustomAIActionRating','modificationId','fetchConversationMessages','upsertAIActionRating','parse','https://ai.cke-cs.com/v1','signal'];_0x8eb8=function(){return _0x208626;};return _0x8eb8();}const _0x26b8d3=_0x3589;(function(_0x3e4c2a,_0x99bc4){const _0x20f7ac=_0x3589,_0x36e64f=_0x3e4c2a();while(!![]){try{const _0x17f672=parseInt(_0x20f7ac(0x23c))/0x1+-parseInt(_0x20f7ac(0x1e1))/0x2*(parseInt(_0x20f7ac(0x210))/0x3)+-parseInt(_0x20f7ac(0x1b2))/0x4+-parseInt(_0x20f7ac(0x218))/0x5+-parseInt(_0x20f7ac(0x1c4))/0x6*(parseInt(_0x20f7ac(0x216))/0x7)+parseInt(_0x20f7ac(0x208))/0x8*(-parseInt(_0x20f7ac(0x1b5))/0x9)+parseInt(_0x20f7ac(0x1f8))/0xa*(parseInt(_0x20f7ac(0x1f6))/0xb);if(_0x17f672===_0x99bc4)break;else _0x36e64f['push'](_0x36e64f['shift']());}catch(_0x4bc88f){_0x36e64f['push'](_0x36e64f['shift']());}}}(_0x8eb8,0xe39df));import{createParser as _0xeac24c}from'eventsource-parser';function _0x3589(_0x5a0878,_0x392b4a){const _0x8eb82f=_0x8eb8();return _0x3589=function(_0x3589e9,_0x4dc704){_0x3589e9=_0x3589e9-0x1b0;let _0xe35a70=_0x8eb82f[_0x3589e9];return _0xe35a70;},_0x3589(_0x5a0878,_0x392b4a);}import{ContextPlugin as _0x323787}from'ckeditor5/src/core.js';import{CKEditorError as _0x4d585d}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x2b0c2e){const _0x54968e=_0x3589;_0x2b0c2e[_0x54968e(0x20b)]=_0x54968e(0x211),_0x2b0c2e[_0x54968e(0x1cb)]=_0x54968e(0x219),_0x2b0c2e[_0x54968e(0x1f9)]=_0x54968e(0x203),_0x2b0c2e[_0x54968e(0x21d)]=_0x54968e(0x1fd),_0x2b0c2e[_0x54968e(0x212)]=_0x54968e(0x1c9),_0x2b0c2e[_0x54968e(0x232)]=_0x54968e(0x1cd),_0x2b0c2e[_0x54968e(0x1e7)]=_0x54968e(0x1f1),_0x2b0c2e[_0x54968e(0x1d3)]=_0x54968e(0x23e);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x323787{[_0x26b8d3(0x20c)];[_0x26b8d3(0x204)];[_0x26b8d3(0x23b)];static get[_0x26b8d3(0x206)](){const _0x362510=_0x26b8d3;return[_0x362510(0x234)];}static get[_0x26b8d3(0x238)](){const _0x3d3e8b=_0x26b8d3;return _0x3d3e8b(0x1c2);}static get[_0x26b8d3(0x1ff)](){return!0x0;}static get[_0x26b8d3(0x1f5)](){return!0x0;}constructor(_0x334ca6){const _0x23d888=_0x26b8d3;super(_0x334ca6),this[_0x23d888(0x1c5)][_0x23d888(0x215)][_0x23d888(0x231)](_0x23d888(0x1d7),_0x23d888(0x22f)),this[_0x23d888(0x20c)]=this[_0x23d888(0x1c5)][_0x23d888(0x215)][_0x23d888(0x1d6)](_0x23d888(0x1d7)),this[_0x23d888(0x204)]=null,this[_0x23d888(0x23b)]=new TextDecoder();}[_0x26b8d3(0x1e0)](){const _0x11a9fb=_0x26b8d3,_0x2c4541=this[_0x11a9fb(0x1c5)][_0x11a9fb(0x1e4)][_0x11a9fb(0x1d6)](_0x11a9fb(0x234));if(!_0x2c4541[_0x11a9fb(0x221)])throw new _0x4d585d(_0x11a9fb(0x1ef),this);this[_0x11a9fb(0x204)]=_0x2c4541[_0x11a9fb(0x221)];}[_0x26b8d3(0x209)](_0x43132f,_0x46692d){const _0x55ca94=_0x26b8d3,_0x288dca=this[_0x55ca94(0x1df)](_0x55ca94(0x236),_0x55ca94(0x1e6),{'id':_0x43132f,'group':_0x46692d});return{'getConversation':async()=>(await _0x288dca[_0x55ca94(0x1cc)])[_0x55ca94(0x20f)](),'abortController':_0x288dca[_0x55ca94(0x1ed)]};}[_0x26b8d3(0x21c)]({message:_0x822647,conversationId:_0x1e12a4,parts:_0x59e0de,capabilities:_0xc369e7,model:_0x5345d1,quickActionData:_0x560f89}){const _0xa5ac78=_0x26b8d3,_0x215e75={..._0x560f89&&{'quickActionData':_0x560f89}},_0x5841b4={'prompt':_0x822647,'content':_0x59e0de,'model':_0x5345d1,..._0xc369e7&&{'capabilities':_0xc369e7},...Object[_0xa5ac78(0x1be)](_0x215e75)[_0xa5ac78(0x1e5)]>0x0&&{'attributes':_0x215e75}},_0x47e085=this[_0xa5ac78(0x1df)](_0xa5ac78(0x1ea)+_0x1e12a4+_0xa5ac78(0x1c1),_0xa5ac78(0x1e6),_0x5841b4);return{'getStream':async()=>{const _0x64b8b7=_0xa5ac78,_0x24d56b=(await _0x47e085[_0x64b8b7(0x1cc)])[_0x64b8b7(0x1ce)];return this[_0x64b8b7(0x1b0)](_0x24d56b);},'abortController':_0x47e085[_0xa5ac78(0x1ed)]};}[_0x26b8d3(0x1b9)]({content:_0x13e804,message:_0x30a99e,model:_0x23983b,outputFormat:_0x40d130}){const _0x4575fa=_0x26b8d3,_0x45ff2a={'content':[{'type':_0x4575fa(0x1b1),'content':_0x13e804}],'prompt':_0x30a99e,'model':_0x23983b,'outputFormat':_0x40d130},_0x5194b7=this[_0x4575fa(0x1df)](_0x4575fa(0x205),_0x4575fa(0x1e6),_0x45ff2a);return{'getStream':async()=>{const _0x28a36f=_0x4575fa,_0x5561fe=(await _0x5194b7[_0x28a36f(0x1cc)])[_0x28a36f(0x1ce)];return this[_0x28a36f(0x1b0)](_0x5561fe);},'abortController':_0x5194b7[_0x4575fa(0x1ed)]};}[_0x26b8d3(0x1f0)]({actionName:_0x4d9f46,content:_0x52b9a3,args:_0x5b7703}){const _0x11b09e=_0x26b8d3,_0x22dd22={'content':[{'type':_0x11b09e(0x1b1),'content':_0x52b9a3}],'args':_0x5b7703},_0x561b0b=this[_0x11b09e(0x1df)](_0x11b09e(0x1db)+_0x4d9f46+_0x11b09e(0x1dc),_0x11b09e(0x1e6),_0x22dd22);return{'getStream':async()=>{const _0x1e2548=_0x11b09e,_0xfed2c9=(await _0x561b0b[_0x1e2548(0x1cc)])[_0x1e2548(0x1ce)];return this[_0x1e2548(0x1b0)](_0xfed2c9);},'abortController':_0x561b0b[_0x11b09e(0x1ed)]};}[_0x26b8d3(0x1d5)](_0x9a892a,_0x36bded,_0x2fcdd2){const _0x1f4b9a=_0x26b8d3,_0x15c343=new FormData();_0x15c343[_0x1f4b9a(0x228)](_0x1f4b9a(0x1c3),_0x36bded,_0x36bded[_0x1f4b9a(0x1de)]),_0x2fcdd2&&_0x15c343[_0x1f4b9a(0x228)](_0x1f4b9a(0x1eb),JSON[_0x1f4b9a(0x1b7)](_0x2fcdd2));const _0x1c0b97=this[_0x1f4b9a(0x1df)](_0x1f4b9a(0x1ea)+_0x9a892a+_0x1f4b9a(0x1ec),_0x1f4b9a(0x1e6),_0x15c343);return{'getId':async()=>(await _0x1c0b97[_0x1f4b9a(0x1cc)])[_0x1f4b9a(0x20f)](),'abortController':_0x1c0b97[_0x1f4b9a(0x1ed)]};}[_0x26b8d3(0x201)](_0x48a4e3,_0x34a47c){const _0x32332b=_0x26b8d3,_0x28e71b=this[_0x32332b(0x1df)](_0x32332b(0x1ea)+_0x48a4e3+_0x32332b(0x1e2)+_0x34a47c,_0x32332b(0x226));return{'getDocument':async()=>(await _0x28e71b[_0x32332b(0x1cc)])[_0x32332b(0x20f)](),'abortController':_0x28e71b[_0x32332b(0x1ed)]};}[_0x26b8d3(0x237)](_0x529d61,_0x55a3df,_0x118e2c){const _0x107dc7=_0x26b8d3,_0x592a1c={'content':_0x55a3df};_0x118e2c&&(_0x592a1c[_0x107dc7(0x1eb)]=_0x118e2c);const _0x2c165b=this[_0x107dc7(0x1df)](_0x107dc7(0x1ea)+_0x529d61+_0x107dc7(0x21e),_0x107dc7(0x1e6),_0x592a1c);return{'getId':async()=>(await _0x2c165b[_0x107dc7(0x1cc)])[_0x107dc7(0x20f)](),'abortController':_0x2c165b[_0x107dc7(0x1ed)]};}[_0x26b8d3(0x1c7)](_0x97182f,_0x5b7266){const _0x18c3b8=_0x26b8d3,_0x33c6c4=new URLSearchParams();_0x33c6c4[_0x18c3b8(0x228)](_0x18c3b8(0x1d4),_0x18c3b8(0x1b6)),_0x33c6c4[_0x18c3b8(0x228)](_0x18c3b8(0x1c0),_0x18c3b8(0x1e8)),_0x33c6c4[_0x18c3b8(0x228)](_0x18c3b8(0x1f4),_0x97182f),_0x5b7266&&_0x33c6c4[_0x18c3b8(0x228)](_0x18c3b8(0x220),_0x5b7266);const _0x1e65ac=this[_0x18c3b8(0x1df)](_0x18c3b8(0x1b8)+_0x33c6c4[_0x18c3b8(0x21f)](),_0x18c3b8(0x226));return{'getConversations':async()=>{const _0x9f8b25=_0x18c3b8,_0x5ab564=await _0x1e65ac[_0x9f8b25(0x1cc)];return(await _0x5ab564[_0x9f8b25(0x20f)]())[_0x9f8b25(0x227)];},'abortController':_0x1e65ac[_0x18c3b8(0x1ed)]};}[_0x26b8d3(0x1fe)](_0xedc134){const _0x466c37=_0x26b8d3,_0xa8c2c0=this[_0x466c37(0x1df)](_0x466c37(0x1ea)+_0xedc134,_0x466c37(0x20e));return{'execute':async()=>{const _0x47f242=_0x466c37;await _0xa8c2c0[_0x47f242(0x1cc)];},'abortController':_0xa8c2c0[_0x466c37(0x1ed)]};}[_0x26b8d3(0x217)](_0x3af564,_0x20f025){const _0x1bcd63=_0x26b8d3,_0x5dd6f2=this[_0x1bcd63(0x1df)](_0x1bcd63(0x1ea)+_0x3af564,_0x1bcd63(0x1bd),_0x20f025);return{'getResult':async()=>(await _0x5dd6f2[_0x1bcd63(0x1cc)],_0x20f025),'abortController':_0x5dd6f2[_0x1bcd63(0x1ed)]};}[_0x26b8d3(0x1b3)](_0x4e675a){const _0x41afaa=_0x26b8d3,_0x576fa1=this[_0x41afaa(0x1df)](_0x41afaa(0x1ea)+_0x4e675a,_0x41afaa(0x226));return{'getConversation':async()=>(await _0x576fa1[_0x41afaa(0x1cc)])[_0x41afaa(0x20f)](),'abortController':_0x576fa1[_0x41afaa(0x1ed)]};}[_0x26b8d3(0x22c)](_0x4c0891){const _0x5404b8=_0x26b8d3,_0x1d8895=this[_0x5404b8(0x1df)](_0x5404b8(0x1ea)+_0x4c0891+_0x5404b8(0x1c1),_0x5404b8(0x226));return{'getMessages':async()=>{const _0x1a31f7=_0x5404b8,_0x59ff35=await _0x1d8895[_0x1a31f7(0x1cc)];return(await _0x59ff35[_0x1a31f7(0x20f)]())[_0x1a31f7(0x227)];},'abortController':_0x1d8895[_0x5404b8(0x1ed)]};}[_0x26b8d3(0x1ba)](_0x309806,_0x2a78e5,_0x62a3f0){const _0x3d55cb=_0x26b8d3,_0x58b8fa=this[_0x3d55cb(0x1df)](_0x3d55cb(0x1ea)+_0x309806+_0x3d55cb(0x20d),_0x3d55cb(0x1e6),{'url':_0x2a78e5,'attributes':_0x62a3f0});return{'getId':async()=>(await _0x58b8fa[_0x3d55cb(0x1cc)])[_0x3d55cb(0x20f)](),'abortController':_0x58b8fa[_0x3d55cb(0x1ed)]};}[_0x26b8d3(0x1e9)](){const _0x2dbacb=_0x26b8d3,_0x2ad60b=this[_0x2dbacb(0x1df)](_0x2dbacb(0x1bc),_0x2dbacb(0x226));return{'list':async()=>await(await _0x2ad60b[_0x2dbacb(0x1cc)])[_0x2dbacb(0x20f)](),'abortController':_0x2ad60b[_0x2dbacb(0x1ed)]};}[_0x26b8d3(0x21b)](_0x304825,_0x2117c2){const _0x43fbbc=_0x26b8d3,_0xabfb=this[_0x43fbbc(0x1df)](_0x43fbbc(0x1ea)+_0x304825+_0x43fbbc(0x213)+_0x2117c2,_0x43fbbc(0x20e));return{'execute':async()=>{const _0x8c77ae=_0x43fbbc;await _0xabfb[_0x8c77ae(0x1cc)];},'abortController':_0xabfb[_0x43fbbc(0x1ed)]};}[_0x26b8d3(0x214)](_0x44136c,_0x19e60c){const _0x26c090=_0x26b8d3,_0xd6205e=this[_0x26c090(0x1df)](_0x26c090(0x1ea)+_0x44136c+_0x26c090(0x1e2)+_0x19e60c,_0x26c090(0x20e));return{'execute':async()=>{const _0x31217c=_0x26c090;await _0xd6205e[_0x31217c(0x1cc)];},'abortController':_0xd6205e[_0x26c090(0x1ed)]};}[_0x26b8d3(0x202)](_0x133e29,_0x3d0bc6){const _0x442535=_0x26b8d3,_0x303aa5=this[_0x442535(0x1df)](_0x442535(0x1ea)+_0x133e29+_0x442535(0x1da)+_0x3d0bc6,_0x442535(0x20e));return{'execute':async()=>{const _0x3f4cae=_0x442535;await _0x303aa5[_0x3f4cae(0x1cc)];},'abortController':_0x303aa5[_0x442535(0x1ed)]};}[_0x26b8d3(0x1f7)]({reviewName:_0x265a88,content:_0x12514c,args:_0x53a4a7}){const _0x5f429a=_0x26b8d3,_0x4610cb=this[_0x5f429a(0x1df)](_0x5f429a(0x1fa)+_0x265a88+_0x5f429a(0x1dc),_0x5f429a(0x1e6),{'content':[{'type':_0x5f429a(0x1b1),'content':_0x12514c}],'args':_0x53a4a7});return{'getStream':async()=>{const _0x3024a7=_0x5f429a,_0x42fb03=(await _0x4610cb[_0x3024a7(0x1cc)])[_0x3024a7(0x1ce)];return this[_0x3024a7(0x1b0)](_0x42fb03);},'abortController':_0x4610cb[_0x5f429a(0x1ed)]};}[_0x26b8d3(0x1fb)]({content:_0x17e280,prompt:_0x4ee538,model:_0x4fc200}){const _0x236aa4=_0x26b8d3,_0x2f1ac1=this[_0x236aa4(0x1df)](_0x236aa4(0x1d9),_0x236aa4(0x1e6),{'content':[{'type':_0x236aa4(0x1b1),'content':_0x17e280}],'prompt':_0x4ee538,'model':_0x4fc200});return{'getStream':async()=>{const _0x4805b1=_0x236aa4,_0x22f8f8=(await _0x2f1ac1[_0x4805b1(0x1cc)])[_0x4805b1(0x1ce)];return this[_0x4805b1(0x1b0)](_0x22f8f8);},'abortController':_0x2f1ac1[_0x236aa4(0x1ed)]};}[_0x26b8d3(0x1dd)](_0x4c3ec0,_0x1304c4,_0x1bdbcc){const _0x539faa=_0x26b8d3,_0x4d56de=this[_0x539faa(0x1df)](_0x539faa(0x1ea)+_0x4c3ec0+_0x539faa(0x1b4)+_0x1304c4+_0x539faa(0x1bb),_0x539faa(0x1f2),{'positiveCount':_0x1bdbcc[_0x539faa(0x225)],'totalCount':_0x1bdbcc[_0x539faa(0x200)],'modificationId':_0x1bdbcc[_0x539faa(0x22b)]});return{'execute':async()=>{const _0x88dd9=_0x539faa;await _0x4d56de[_0x88dd9(0x1cc)];},'abortController':_0x4d56de[_0x539faa(0x1ed)]};}[_0x26b8d3(0x22d)](_0x4a708,_0x3b5779,_0x36ceec){const _0x3d515a=_0x26b8d3,_0x37866b=this[_0x3d515a(0x1df)](_0x3d515a(0x1db)+_0x4a708+_0x3d515a(0x223)+_0x3b5779+_0x3d515a(0x1bb),_0x3d515a(0x1f2),{'positiveCount':_0x36ceec[_0x3d515a(0x225)],'totalCount':_0x36ceec[_0x3d515a(0x200)]});return{'execute':async()=>{const _0x5e87a2=_0x3d515a;await _0x37866b[_0x5e87a2(0x1cc)];},'abortController':_0x37866b[_0x3d515a(0x1ed)]};}[_0x26b8d3(0x22a)](_0x1252bd,_0x50991d){const _0x24aad1=_0x26b8d3,_0x516a2f=this[_0x24aad1(0x1df)](_0x24aad1(0x21a)+_0x1252bd+_0x24aad1(0x1bb),_0x24aad1(0x1f2),{'positiveCount':_0x50991d[_0x24aad1(0x225)],'totalCount':_0x50991d[_0x24aad1(0x200)]});return{'execute':async()=>{const _0x17a7bb=_0x24aad1;await _0x516a2f[_0x17a7bb(0x1cc)];},'abortController':_0x516a2f[_0x24aad1(0x1ed)]};}[_0x26b8d3(0x1d1)](_0x88ebca,_0x419aa0,_0x235ba3,_0x5d2502){const _0x152831=_0x26b8d3,_0x583c93=this[_0x152831(0x1df)](_0x152831(0x1fa)+_0x88ebca+_0x152831(0x223)+_0x419aa0+_0x152831(0x1bb),_0x152831(0x1f2),{'positiveCount':_0x235ba3[_0x152831(0x225)],'totalCount':_0x235ba3[_0x152831(0x200)],'dataId':_0x5d2502});return{'execute':async()=>{const _0x577b06=_0x152831;await _0x583c93[_0x577b06(0x1cc)];},'abortController':_0x583c93[_0x152831(0x1ed)]};}[_0x26b8d3(0x235)](_0x34dfb9,_0xc94e1,_0x424abb){const _0x1bc873=_0x26b8d3,_0x5240e5=this[_0x1bc873(0x1df)](_0x1bc873(0x1fc)+_0x34dfb9+_0x1bc873(0x1bb),_0x1bc873(0x1f2),{'positiveCount':_0xc94e1[_0x1bc873(0x225)],'totalCount':_0xc94e1[_0x1bc873(0x200)],'dataId':_0x424abb});return{'execute':async()=>{const _0x2d03dd=_0x1bc873;await _0x5240e5[_0x2d03dd(0x1cc)];},'abortController':_0x5240e5[_0x1bc873(0x1ed)]};}[_0x26b8d3(0x1df)](_0x34f5b3,_0x5192aa,_0x9d1ac7){const _0x470b3c=_0x26b8d3,_0x2c9be3=new AbortController(),_0x1150d3=_0x9d1ac7 instanceof FormData,_0x1e1778={'Authorization':_0x470b3c(0x224)+this[_0x470b3c(0x204)]?.[_0x470b3c(0x207)]};_0x9d1ac7&&!_0x1150d3&&(_0x1e1778[_0x470b3c(0x1d2)]=_0x470b3c(0x239));const _0x2723be={'method':_0x5192aa,'headers':_0x1e1778,'signal':_0x2c9be3[_0x470b3c(0x230)]};return _0x9d1ac7&&(_0x2723be[_0x470b3c(0x1ce)]=_0x1150d3?_0x9d1ac7:JSON[_0x470b3c(0x1b7)](_0x9d1ac7)),{'request':fetch(''+this[_0x470b3c(0x20c)]+_0x34f5b3,_0x2723be)[_0x470b3c(0x23a)](_0x8b9fee=>{const _0x5252fd=_0x470b3c;this[_0x5252fd(0x1e3)](_0x8b9fee);})[_0x470b3c(0x23d)](_0x51237=>{const _0x203274=_0x470b3c;if(!_0x51237['ok'])throw new _0x4d585d(_0x203274(0x222),this,{'url':this[_0x203274(0x20c)],'path':_0x34f5b3,'method':_0x5192aa,'body':_0x9d1ac7,'status':(_0x51237||{})[_0x203274(0x1f3)],'statusText':(_0x51237||{})[_0x203274(0x20a)]});return _0x51237;}),'abortController':_0x2c9be3};}async*[_0x26b8d3(0x1b0)](_0x3b68ea){const _0x5b630b=_0x26b8d3,_0x535c73=[],_0x4b811f=_0x3b68ea[_0x5b630b(0x1ee)](),_0x52508f=_0xeac24c({'onError':_0x1f848e=>{const _0x59d7ba=_0x5b630b;this[_0x59d7ba(0x1e3)](_0x1f848e);},'onEvent':_0x306717=>{const _0x3b5568=_0x5b630b;_0x306717[_0x3b5568(0x1c6)]=JSON[_0x3b5568(0x22e)](_0x306717[_0x3b5568(0x1c6)]),_0x535c73[_0x3b5568(0x1ca)](_0x306717);}});try{let _0x2bdb19=!0x1;for(;!_0x2bdb19;){const {done:_0x5943c0,value:_0xa84f3b}=await _0x4b811f[_0x5b630b(0x1bf)]();_0x5943c0&&(_0x2bdb19=!0x0),_0x52508f[_0x5b630b(0x1d0)](this[_0x5b630b(0x23b)][_0x5b630b(0x233)](_0xa84f3b,{'stream':!0x0})),yield*_0x535c73,_0x535c73[_0x5b630b(0x1e5)]=0x0;}}catch(_0x3ee495){this[_0x5b630b(0x1e3)](_0x3ee495);}finally{_0x4b811f[_0x5b630b(0x1cf)](),_0x52508f[_0x5b630b(0x1d8)]();}}[_0x26b8d3(0x1e3)](_0x14a1de){const _0x4209b9=_0x26b8d3;if(_0x14a1de instanceof _0x4d585d)throw _0x14a1de;if(_0x14a1de instanceof Error&&_0x4209b9(0x229)===_0x14a1de[_0x4209b9(0x1de)])throw new _0x4d585d(_0x4209b9(0x1c8),this,{'originalError':_0x14a1de});throw new _0x4d585d(_0x4209b9(0x222),this,{'originalError':_0x14a1de});}}
23
+ const _0x51e0ed=_0x515e;(function(_0x57ec7f,_0x3b6149){const _0x4068be=_0x515e,_0x41eda3=_0x57ec7f();while(!![]){try{const _0x3ca5cb=-parseInt(_0x4068be(0x1ee))/0x1+parseInt(_0x4068be(0x258))/0x2*(parseInt(_0x4068be(0x213))/0x3)+parseInt(_0x4068be(0x222))/0x4+-parseInt(_0x4068be(0x26f))/0x5+parseInt(_0x4068be(0x23e))/0x6*(-parseInt(_0x4068be(0x1f5))/0x7)+-parseInt(_0x4068be(0x262))/0x8+parseInt(_0x4068be(0x240))/0x9;if(_0x3ca5cb===_0x3b6149)break;else _0x41eda3['push'](_0x41eda3['shift']());}catch(_0x2d2a01){_0x41eda3['push'](_0x41eda3['shift']());}}}(_0x4bb9,0xd154b));import{createParser as _0x9dc336}from'eventsource-parser';function _0x4bb9(){const _0x2862ea=['/reviews/custom/calls/','make-shorter','then','continue','/ratings','file','config','abortController','group','getModels','queryAssistant','requires','push','PATCH','_decoder','MAKE_SHORTER','getReader','/messages/','plugins','_token','AbortError','token','FIX_GRAMMAR','make-tone-casual','AIConnector','upsertAIChatRating','/documents/','statusText','3kpwEXo','ai-request-failed','deleteDocument','define','DELETE','status','/reviews/system/','callCustomReview','feed','callSystemReview','deleteWebResource','ai.serviceUrl','attributes','Bearer\x20','/messages','5454736PqpEcq','Content-Type','executeAction','uploadUrl','init','text','decode','deleteConversation','CloudServices','true','ai-missing-token','/conversations/','fetchDocument','/files/','TRANSLATE','search','append','startConversation','ai-request-aborted','100','_sendApiRequest','upsertAIActionRating','translate','request','stringify','fetchConversationMessages','toString','/conversations?','6eAXxci','uploadFile','32157549UmShLx','/calls/','_apiUrl','body','data','upsertAIReviewRating','/reviews/custom/calls','fetchConversation','/models/1','isPremiumPlugin','fetchConversations','totalCount','executeCustomAction','isOfficialPlugin','upsertCustomAIReviewRating','CONTINUE','improve-writing','limit','IMPROVE_WRITING','/calls','reset','/actions/custom/calls/','name','releaseLock','807816TaLMYL','application/json','modificationId','value','fix-grammar','updateConversation','signal','catch','length','context','11894600oaHEzT','/conversations','MAKE_TONE_CASUAL','PUT','positiveCount','/documents','_handleError','excludeEmpty','GET','make-tone-formal','_getStreamReader','items','https://ai.cke-cs.com/v1','6698140ksOHBL','json','MAKE_LONGER','get','upsertCustomAIActionRating','keys','/web-resources','POST','uploadDocument','/actions/custom/calls','/files','parse','281565DDpaeS','/web-resources/','MAKE_TONE_FORMAL','read','deleteFile','make-longer','/actions/system/','9626512UMNHKm','pluginName'];_0x4bb9=function(){return _0x2862ea;};return _0x4bb9();}import{ContextPlugin as _0x35edf8}from'ckeditor5/src/core.js';import{CKEditorError as _0x349de8}from'ckeditor5/src/utils.js';export var AIActionsNames;function _0x515e(_0x1d9d4b,_0x2e1d22){const _0x4bb981=_0x4bb9();return _0x515e=function(_0x515ebc,_0x4f0358){_0x515ebc=_0x515ebc-0x1e7;let _0x1deab5=_0x4bb981[_0x515ebc];return _0x1deab5;},_0x515e(_0x1d9d4b,_0x2e1d22);}!function(_0x5036d3){const _0x1329cd=_0x515e;_0x5036d3[_0x1329cd(0x24f)]=_0x1329cd(0x1fa),_0x5036d3[_0x1329cd(0x20d)]=_0x1329cd(0x25c),_0x5036d3[_0x1329cd(0x252)]=_0x1329cd(0x250),_0x5036d3[_0x1329cd(0x271)]=_0x1329cd(0x1f3),_0x5036d3[_0x1329cd(0x206)]=_0x1329cd(0x1f8),_0x5036d3[_0x1329cd(0x264)]=_0x1329cd(0x20e),_0x5036d3[_0x1329cd(0x1f0)]=_0x1329cd(0x26b),_0x5036d3[_0x1329cd(0x230)]=_0x1329cd(0x238);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x35edf8{[_0x51e0ed(0x242)];[_0x51e0ed(0x20a)];[_0x51e0ed(0x205)];static get[_0x51e0ed(0x202)](){const _0x2cde27=_0x51e0ed;return[_0x2cde27(0x22a)];}static get[_0x51e0ed(0x1f6)](){const _0x149396=_0x51e0ed;return _0x149396(0x20f);}static get[_0x51e0ed(0x24d)](){return!0x0;}static get[_0x51e0ed(0x249)](){return!0x0;}constructor(_0x283da2){const _0x15c0d3=_0x51e0ed;super(_0x283da2),this[_0x15c0d3(0x261)][_0x15c0d3(0x1fd)][_0x15c0d3(0x216)](_0x15c0d3(0x21e),_0x15c0d3(0x26e)),this[_0x15c0d3(0x242)]=this[_0x15c0d3(0x261)][_0x15c0d3(0x1fd)][_0x15c0d3(0x272)](_0x15c0d3(0x21e)),this[_0x15c0d3(0x20a)]=null,this[_0x15c0d3(0x205)]=new TextDecoder();}[_0x51e0ed(0x226)](){const _0xc32aa0=_0x51e0ed,_0x4950a5=this[_0xc32aa0(0x261)][_0xc32aa0(0x209)][_0xc32aa0(0x272)](_0xc32aa0(0x22a));if(!_0x4950a5[_0xc32aa0(0x20c)])throw new _0x349de8(_0xc32aa0(0x22c),this);this[_0xc32aa0(0x20a)]=_0x4950a5[_0xc32aa0(0x20c)];}[_0x51e0ed(0x233)](_0x4df5a5,_0x4cef01){const _0x2c8c6f=_0x51e0ed,_0x320a0e=this[_0x2c8c6f(0x236)](_0x2c8c6f(0x263),_0x2c8c6f(0x1e9),{'id':_0x4df5a5,'group':_0x4cef01});return{'getConversation':async()=>(await _0x320a0e[_0x2c8c6f(0x239)])[_0x2c8c6f(0x270)](),'abortController':_0x320a0e[_0x2c8c6f(0x1fe)]};}[_0x51e0ed(0x201)]({message:_0x28765d,conversationId:_0x17fa4b,parts:_0x574f00,capabilities:_0x3ea7b2,model:_0x56de3d,quickActionData:_0x5aa6f2}){const _0x4a455e=_0x51e0ed,_0xc96158={..._0x5aa6f2&&{'quickActionData':_0x5aa6f2}},_0x1c566a={'prompt':_0x28765d,'content':_0x574f00,'model':_0x56de3d,..._0x3ea7b2&&{'capabilities':_0x3ea7b2},...Object[_0x4a455e(0x1e7)](_0xc96158)[_0x4a455e(0x260)]>0x0&&{'attributes':_0xc96158}},_0x55dc51=this[_0x4a455e(0x236)](_0x4a455e(0x22d)+_0x17fa4b+_0x4a455e(0x221),_0x4a455e(0x1e9),_0x1c566a);return{'getStream':async()=>{const _0x9b9642=_0x4a455e,_0x46948d=(await _0x55dc51[_0x9b9642(0x239)])[_0x9b9642(0x243)];return this[_0x9b9642(0x26c)](_0x46948d);},'abortController':_0x55dc51[_0x4a455e(0x1fe)]};}[_0x51e0ed(0x24c)]({content:_0xf823dd,message:_0x32cbba,model:_0x5b5a67,outputFormat:_0x297820}){const _0x53b71f=_0x51e0ed,_0x738cf4={'content':[{'type':_0x53b71f(0x227),'content':_0xf823dd}],'prompt':_0x32cbba,'model':_0x5b5a67,'outputFormat':_0x297820},_0x5ee86a=this[_0x53b71f(0x236)](_0x53b71f(0x1eb),_0x53b71f(0x1e9),_0x738cf4);return{'getStream':async()=>{const _0x58d60b=_0x53b71f,_0x289079=(await _0x5ee86a[_0x58d60b(0x239)])[_0x58d60b(0x243)];return this[_0x58d60b(0x26c)](_0x289079);},'abortController':_0x5ee86a[_0x53b71f(0x1fe)]};}[_0x51e0ed(0x224)]({actionName:_0x23d3dc,content:_0x534419,args:_0x532797}){const _0x45ebb3=_0x51e0ed,_0x5a55e2={'content':[{'type':_0x45ebb3(0x227),'content':_0x534419}],'args':_0x532797},_0x245bb2=this[_0x45ebb3(0x236)](_0x45ebb3(0x1f4)+_0x23d3dc+_0x45ebb3(0x253),_0x45ebb3(0x1e9),_0x5a55e2);return{'getStream':async()=>{const _0x536552=_0x45ebb3,_0x58a4d1=(await _0x245bb2[_0x536552(0x239)])[_0x536552(0x243)];return this[_0x536552(0x26c)](_0x58a4d1);},'abortController':_0x245bb2[_0x45ebb3(0x1fe)]};}[_0x51e0ed(0x23f)](_0x347a18,_0x953a3d,_0x3a8aaf){const _0x254bd0=_0x51e0ed,_0x586766=new FormData();_0x586766[_0x254bd0(0x232)](_0x254bd0(0x1fc),_0x953a3d,_0x953a3d[_0x254bd0(0x256)]),_0x3a8aaf&&_0x586766[_0x254bd0(0x232)](_0x254bd0(0x21f),JSON[_0x254bd0(0x23a)](_0x3a8aaf));const _0x508e3f=this[_0x254bd0(0x236)](_0x254bd0(0x22d)+_0x347a18+_0x254bd0(0x1ec),_0x254bd0(0x1e9),_0x586766);return{'getId':async()=>(await _0x508e3f[_0x254bd0(0x239)])[_0x254bd0(0x270)](),'abortController':_0x508e3f[_0x254bd0(0x1fe)]};}[_0x51e0ed(0x22e)](_0x23f324,_0x2f481d){const _0x1abf49=_0x51e0ed,_0x112052=this[_0x1abf49(0x236)](_0x1abf49(0x22d)+_0x23f324+_0x1abf49(0x211)+_0x2f481d,_0x1abf49(0x26a));return{'getDocument':async()=>(await _0x112052[_0x1abf49(0x239)])[_0x1abf49(0x270)](),'abortController':_0x112052[_0x1abf49(0x1fe)]};}[_0x51e0ed(0x1ea)](_0x4390b7,_0x4bc2b0,_0x83ac02){const _0x28ab75=_0x51e0ed,_0x46e4d6={'content':_0x4bc2b0};_0x83ac02&&(_0x46e4d6[_0x28ab75(0x21f)]=_0x83ac02);const _0x39a11f=this[_0x28ab75(0x236)](_0x28ab75(0x22d)+_0x4390b7+_0x28ab75(0x267),_0x28ab75(0x1e9),_0x46e4d6);return{'getId':async()=>(await _0x39a11f[_0x28ab75(0x239)])[_0x28ab75(0x270)](),'abortController':_0x39a11f[_0x28ab75(0x1fe)]};}[_0x51e0ed(0x24a)](_0x56a0d3,_0x1edc93){const _0x5ee1f8=_0x51e0ed,_0x1b7b83=new URLSearchParams();_0x1b7b83[_0x5ee1f8(0x232)](_0x5ee1f8(0x269),_0x5ee1f8(0x22b)),_0x1b7b83[_0x5ee1f8(0x232)](_0x5ee1f8(0x251),_0x5ee1f8(0x235)),_0x1b7b83[_0x5ee1f8(0x232)](_0x5ee1f8(0x1ff),_0x56a0d3),_0x1edc93&&_0x1b7b83[_0x5ee1f8(0x232)](_0x5ee1f8(0x231),_0x1edc93);const _0x1e6d74=this[_0x5ee1f8(0x236)](_0x5ee1f8(0x23d)+_0x1b7b83[_0x5ee1f8(0x23c)](),_0x5ee1f8(0x26a));return{'getConversations':async()=>{const _0x20e742=_0x5ee1f8,_0x4ba38e=await _0x1e6d74[_0x20e742(0x239)];return(await _0x4ba38e[_0x20e742(0x270)]())[_0x20e742(0x26d)];},'abortController':_0x1e6d74[_0x5ee1f8(0x1fe)]};}[_0x51e0ed(0x229)](_0x5cb549){const _0x1f6410=_0x51e0ed,_0x4eab71=this[_0x1f6410(0x236)](_0x1f6410(0x22d)+_0x5cb549,_0x1f6410(0x217));return{'execute':async()=>{const _0x4f9a0e=_0x1f6410;await _0x4eab71[_0x4f9a0e(0x239)];},'abortController':_0x4eab71[_0x1f6410(0x1fe)]};}[_0x51e0ed(0x25d)](_0xa9422a,_0x10110b){const _0x4613d1=_0x51e0ed,_0x26e3f2=this[_0x4613d1(0x236)](_0x4613d1(0x22d)+_0xa9422a,_0x4613d1(0x204),_0x10110b);return{'getResult':async()=>(await _0x26e3f2[_0x4613d1(0x239)],_0x10110b),'abortController':_0x26e3f2[_0x4613d1(0x1fe)]};}[_0x51e0ed(0x247)](_0x4c6746){const _0x2a6d18=_0x51e0ed,_0x34e455=this[_0x2a6d18(0x236)](_0x2a6d18(0x22d)+_0x4c6746,_0x2a6d18(0x26a));return{'getConversation':async()=>(await _0x34e455[_0x2a6d18(0x239)])[_0x2a6d18(0x270)](),'abortController':_0x34e455[_0x2a6d18(0x1fe)]};}[_0x51e0ed(0x23b)](_0x370d86){const _0x4cfc21=_0x51e0ed,_0x1466d9=this[_0x4cfc21(0x236)](_0x4cfc21(0x22d)+_0x370d86+_0x4cfc21(0x221),_0x4cfc21(0x26a));return{'getMessages':async()=>{const _0x41757b=_0x4cfc21,_0x51d33f=await _0x1466d9[_0x41757b(0x239)];return(await _0x51d33f[_0x41757b(0x270)]())[_0x41757b(0x26d)];},'abortController':_0x1466d9[_0x4cfc21(0x1fe)]};}[_0x51e0ed(0x225)](_0x17c219,_0x4d1516,_0x3c0b07){const _0x282b81=_0x51e0ed,_0x5169f0=this[_0x282b81(0x236)](_0x282b81(0x22d)+_0x17c219+_0x282b81(0x1e8),_0x282b81(0x1e9),{'url':_0x4d1516,'attributes':_0x3c0b07});return{'getId':async()=>(await _0x5169f0[_0x282b81(0x239)])[_0x282b81(0x270)](),'abortController':_0x5169f0[_0x282b81(0x1fe)]};}[_0x51e0ed(0x200)](){const _0x40cdd7=_0x51e0ed,_0x18c687=this[_0x40cdd7(0x236)](_0x40cdd7(0x248),_0x40cdd7(0x26a));return{'list':async()=>await(await _0x18c687[_0x40cdd7(0x239)])[_0x40cdd7(0x270)](),'abortController':_0x18c687[_0x40cdd7(0x1fe)]};}[_0x51e0ed(0x1f2)](_0x1f05cd,_0x887713){const _0x11de09=_0x51e0ed,_0x28b682=this[_0x11de09(0x236)](_0x11de09(0x22d)+_0x1f05cd+_0x11de09(0x22f)+_0x887713,_0x11de09(0x217));return{'execute':async()=>{const _0x547f64=_0x11de09;await _0x28b682[_0x547f64(0x239)];},'abortController':_0x28b682[_0x11de09(0x1fe)]};}[_0x51e0ed(0x215)](_0x320d1e,_0x4ab39c){const _0x1c08fb=_0x51e0ed,_0x161cd8=this[_0x1c08fb(0x236)](_0x1c08fb(0x22d)+_0x320d1e+_0x1c08fb(0x211)+_0x4ab39c,_0x1c08fb(0x217));return{'execute':async()=>{const _0x540ec5=_0x1c08fb;await _0x161cd8[_0x540ec5(0x239)];},'abortController':_0x161cd8[_0x1c08fb(0x1fe)]};}[_0x51e0ed(0x21d)](_0xbc6c5f,_0x2d8aed){const _0x3c6e14=_0x51e0ed,_0x33caa2=this[_0x3c6e14(0x236)](_0x3c6e14(0x22d)+_0xbc6c5f+_0x3c6e14(0x1ef)+_0x2d8aed,_0x3c6e14(0x217));return{'execute':async()=>{const _0x38ac38=_0x3c6e14;await _0x33caa2[_0x38ac38(0x239)];},'abortController':_0x33caa2[_0x3c6e14(0x1fe)]};}[_0x51e0ed(0x21c)]({reviewName:_0x32217d,content:_0x8d47bc,args:_0x394d1a}){const _0x4e2804=_0x51e0ed,_0x569b23=this[_0x4e2804(0x236)](_0x4e2804(0x219)+_0x32217d+_0x4e2804(0x253),_0x4e2804(0x1e9),{'content':[{'type':_0x4e2804(0x227),'content':_0x8d47bc}],'args':_0x394d1a});return{'getStream':async()=>{const _0x1ca8b5=_0x4e2804,_0x4a3c7d=(await _0x569b23[_0x1ca8b5(0x239)])[_0x1ca8b5(0x243)];return this[_0x1ca8b5(0x26c)](_0x4a3c7d);},'abortController':_0x569b23[_0x4e2804(0x1fe)]};}[_0x51e0ed(0x21a)]({content:_0x42b1cc,prompt:_0x2508e8,model:_0x568117}){const _0x6a9f70=_0x51e0ed,_0x5969ff=this[_0x6a9f70(0x236)](_0x6a9f70(0x246),_0x6a9f70(0x1e9),{'content':[{'type':_0x6a9f70(0x227),'content':_0x42b1cc}],'prompt':_0x2508e8,'model':_0x568117});return{'getStream':async()=>{const _0x1d00f4=_0x6a9f70,_0x4dc0ad=(await _0x5969ff[_0x1d00f4(0x239)])[_0x1d00f4(0x243)];return this[_0x1d00f4(0x26c)](_0x4dc0ad);},'abortController':_0x5969ff[_0x6a9f70(0x1fe)]};}[_0x51e0ed(0x210)](_0x5d41ac,_0x5a07df,_0x3acd3f){const _0x43fbc4=_0x51e0ed,_0x5ac81e=this[_0x43fbc4(0x236)](_0x43fbc4(0x22d)+_0x5d41ac+_0x43fbc4(0x208)+_0x5a07df+_0x43fbc4(0x1fb),_0x43fbc4(0x265),{'positiveCount':_0x3acd3f[_0x43fbc4(0x266)],'totalCount':_0x3acd3f[_0x43fbc4(0x24b)],'modificationId':_0x3acd3f[_0x43fbc4(0x25a)]});return{'execute':async()=>{const _0x9f99e6=_0x43fbc4;await _0x5ac81e[_0x9f99e6(0x239)];},'abortController':_0x5ac81e[_0x43fbc4(0x1fe)]};}[_0x51e0ed(0x237)](_0x527feb,_0x216b6a,_0xa09b07){const _0x4fff89=_0x51e0ed,_0x231ba5=this[_0x4fff89(0x236)](_0x4fff89(0x1f4)+_0x527feb+_0x4fff89(0x241)+_0x216b6a+_0x4fff89(0x1fb),_0x4fff89(0x265),{'positiveCount':_0xa09b07[_0x4fff89(0x266)],'totalCount':_0xa09b07[_0x4fff89(0x24b)]});return{'execute':async()=>{const _0x3a4e2e=_0x4fff89;await _0x231ba5[_0x3a4e2e(0x239)];},'abortController':_0x231ba5[_0x4fff89(0x1fe)]};}[_0x51e0ed(0x273)](_0x41e6c2,_0x3dd41e){const _0x4f6fcb=_0x51e0ed,_0x53aa23=this[_0x4f6fcb(0x236)](_0x4f6fcb(0x255)+_0x41e6c2+_0x4f6fcb(0x1fb),_0x4f6fcb(0x265),{'positiveCount':_0x3dd41e[_0x4f6fcb(0x266)],'totalCount':_0x3dd41e[_0x4f6fcb(0x24b)]});return{'execute':async()=>{const _0x2be315=_0x4f6fcb;await _0x53aa23[_0x2be315(0x239)];},'abortController':_0x53aa23[_0x4f6fcb(0x1fe)]};}[_0x51e0ed(0x245)](_0x1cc9ab,_0x258019,_0x1b6a2a,_0x1420a9){const _0x40dbfd=_0x51e0ed,_0x1eae76=this[_0x40dbfd(0x236)](_0x40dbfd(0x219)+_0x1cc9ab+_0x40dbfd(0x241)+_0x258019+_0x40dbfd(0x1fb),_0x40dbfd(0x265),{'positiveCount':_0x1b6a2a[_0x40dbfd(0x266)],'totalCount':_0x1b6a2a[_0x40dbfd(0x24b)],'dataId':_0x1420a9});return{'execute':async()=>{const _0x2b40d3=_0x40dbfd;await _0x1eae76[_0x2b40d3(0x239)];},'abortController':_0x1eae76[_0x40dbfd(0x1fe)]};}[_0x51e0ed(0x24e)](_0x4719ce,_0x455d13,_0x36ffb7){const _0x62d6dc=_0x51e0ed,_0x26dd1e=this[_0x62d6dc(0x236)](_0x62d6dc(0x1f7)+_0x4719ce+_0x62d6dc(0x1fb),_0x62d6dc(0x265),{'positiveCount':_0x455d13[_0x62d6dc(0x266)],'totalCount':_0x455d13[_0x62d6dc(0x24b)],'dataId':_0x36ffb7});return{'execute':async()=>{const _0x2e5271=_0x62d6dc;await _0x26dd1e[_0x2e5271(0x239)];},'abortController':_0x26dd1e[_0x62d6dc(0x1fe)]};}[_0x51e0ed(0x236)](_0x69655b,_0x63d4ed,_0x2bb954){const _0x578c60=_0x51e0ed,_0x11c32b=new AbortController(),_0x43d04a=_0x2bb954 instanceof FormData,_0x53ba43={'Authorization':_0x578c60(0x220)+this[_0x578c60(0x20a)]?.[_0x578c60(0x25b)]};_0x2bb954&&!_0x43d04a&&(_0x53ba43[_0x578c60(0x223)]=_0x578c60(0x259));const _0x3c3f08={'method':_0x63d4ed,'headers':_0x53ba43,'signal':_0x11c32b[_0x578c60(0x25e)]};return _0x2bb954&&(_0x3c3f08[_0x578c60(0x243)]=_0x43d04a?_0x2bb954:JSON[_0x578c60(0x23a)](_0x2bb954)),{'request':fetch(''+this[_0x578c60(0x242)]+_0x69655b,_0x3c3f08)[_0x578c60(0x25f)](_0x1b7de7=>{const _0x49cbc6=_0x578c60;this[_0x49cbc6(0x268)](_0x1b7de7);})[_0x578c60(0x1f9)](_0x3fcb74=>{const _0x41d6c9=_0x578c60;if(!_0x3fcb74['ok'])throw new _0x349de8(_0x41d6c9(0x214),this,{'url':this[_0x41d6c9(0x242)],'path':_0x69655b,'method':_0x63d4ed,'body':_0x2bb954,'status':(_0x3fcb74||{})[_0x41d6c9(0x218)],'statusText':(_0x3fcb74||{})[_0x41d6c9(0x212)]});return _0x3fcb74;}),'abortController':_0x11c32b};}async*[_0x51e0ed(0x26c)](_0x139431){const _0x8d6cd3=_0x51e0ed,_0x478c31=[],_0x4acdb6=_0x139431[_0x8d6cd3(0x207)](),_0x28a2c2=_0x9dc336({'onError':_0x54c766=>{const _0x4c0afd=_0x8d6cd3;this[_0x4c0afd(0x268)](_0x54c766);},'onEvent':_0xe51559=>{const _0x391f53=_0x8d6cd3;_0xe51559[_0x391f53(0x244)]=JSON[_0x391f53(0x1ed)](_0xe51559[_0x391f53(0x244)]),_0x478c31[_0x391f53(0x203)](_0xe51559);}});try{let _0x52c218=!0x1;for(;!_0x52c218;){const {done:_0x34d458,value:_0x36ead9}=await _0x4acdb6[_0x8d6cd3(0x1f1)]();_0x34d458&&(_0x52c218=!0x0),_0x28a2c2[_0x8d6cd3(0x21b)](this[_0x8d6cd3(0x205)][_0x8d6cd3(0x228)](_0x36ead9,{'stream':!0x0})),yield*_0x478c31,_0x478c31[_0x8d6cd3(0x260)]=0x0;}}catch(_0x2da931){this[_0x8d6cd3(0x268)](_0x2da931);}finally{_0x4acdb6[_0x8d6cd3(0x257)](),_0x28a2c2[_0x8d6cd3(0x254)]();}}[_0x51e0ed(0x268)](_0xbea7e){const _0x3bf90e=_0x51e0ed;if(_0xbea7e instanceof _0x349de8)throw _0xbea7e;if(_0xbea7e instanceof Error&&_0x3bf90e(0x20b)===_0xbea7e[_0x3bf90e(0x256)])throw new _0x349de8(_0x3bf90e(0x234),this,{'originalError':_0xbea7e});throw new _0x349de8(_0x3bf90e(0x214),this,{'originalError':_0xbea7e});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x53ce06=_0x15c9;(function(_0x380086,_0x52226d){const _0x44b487=_0x15c9,_0x63bfa0=_0x380086();while(!![]){try{const _0x58c527=-parseInt(_0x44b487(0x102))/0x1+parseInt(_0x44b487(0xeb))/0x2*(parseInt(_0x44b487(0x12b))/0x3)+-parseInt(_0x44b487(0x11f))/0x4+parseInt(_0x44b487(0x104))/0x5*(parseInt(_0x44b487(0xf2))/0x6)+parseInt(_0x44b487(0xfd))/0x7+-parseInt(_0x44b487(0xe4))/0x8*(-parseInt(_0x44b487(0x10a))/0x9)+parseInt(_0x44b487(0xd8))/0xa*(-parseInt(_0x44b487(0xc8))/0xb);if(_0x58c527===_0x52226d)break;else _0x63bfa0['push'](_0x63bfa0['shift']());}catch(_0x1de1e4){_0x63bfa0['push'](_0x63bfa0['shift']());}}}(_0x17d3,0x543a6));import{ViewDowncastWriter as _0x270c4e}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x2feff5,Editor as _0x1ded02}from'ckeditor5/src/core.js';import{uid as _0x2ce3e3}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x385df4}from'./utils/geteditorfromcontext.js';function _0x15c9(_0x1c8147,_0x561758){const _0x17d36f=_0x17d3();return _0x15c9=function(_0x15c9be,_0x2277a9){_0x15c9be=_0x15c9be-0xc7;let _0x44c98b=_0x17d36f[_0x15c9be];return _0x44c98b;},_0x15c9(_0x1c8147,_0x561758);}function _0x17d3(){const _0x5f209b=['246085AbjYaA','ready','3655cSkdCj',':start></','join','get','emptyElement','view','100881cGishA','isPremiumPlugin',':end></','ck-ai-assistant-ui_theme','containerElement','random','listenTo','ai-selection','ai-selection:','createRange','start','modelToViewWithIds','getLastMatchingPosition','isOpening','getStart','dataDowncast','hideFakeVisualSelection','getChildren','isContent','getWalker','getSelectionText','923956TsCnap','_setDataIdsOnChildren','ck-fake-ai-selection','add','_integrateEditor','removeMarker','document','selection','markerToHighlight','pluginName','name','AIEditing','56043EGhPIn','removeAllRanges',':end>','data-id','processor','data','getSelection','462803VcoGJE','element','addMarker','getDocumentData','markerToElement','getMarkersGroup','end','fromCharCode','markerName','_nextDataId','createUIElement','push','convertAiChatSelectionMarker','$textProxy','isAtEnd','substring','60pupAUO','change','isBefore','editing','_displayedFakeSelectionId','trim','markers',':start>','getRoot','sort','editingDowncast','for','56MXDhQd','version','isOfficialPlugin','conversion','sessionId','RealTimeCollaborationClient','setAttribute','46YgFogf','schema','has','editors','showFakeVisualSelection','afterInit','length','4638YXOsOW','plugins','_getMarkersInDocumentOrder','floor','isAfter','toView','from','_displayedFakeSelectionLocked','toData','createRangeIn','context','9247BvGXYg','model','getSelectedContent','indexOf','_sessionId'];_0x17d3=function(){return _0x5f209b;};return _0x17d3();}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x53ce06(0x111);export class AIEditing extends _0x2feff5{[_0x53ce06(0xdc)]=null;[_0x53ce06(0xf9)]=!0x1;[_0x53ce06(0x101)];static get[_0x53ce06(0x128)](){const _0x45f111=_0x53ce06;return _0x45f111(0x12a);}static get[_0x53ce06(0xe6)](){return!0x0;}static get[_0x53ce06(0x10b)](){return!0x0;}get[_0x53ce06(0xe8)](){const _0x4df52b=_0x53ce06;if(!this[_0x4df52b(0x101)]){const _0x32b217=_0x385df4(this[_0x4df52b(0xfc)]),_0x45cfe5=_0x32b217[_0x4df52b(0xf3)][_0x4df52b(0xed)](_0x4df52b(0xe9))&&_0x32b217[_0x4df52b(0xf3)][_0x4df52b(0x107)](_0x4df52b(0xe9))[_0x4df52b(0xe8)];this[_0x4df52b(0x101)]=_0x45cfe5||_0x2ce3e3();}return this[_0x4df52b(0x101)];}[_0x53ce06(0xcb)](){const _0x251a76=_0x53ce06,_0x4c7f30=_0x385df4(this[_0x251a76(0xfc)]),_0x2e27e5=_0x4c7f30[_0x251a76(0xfe)],_0x49a67b=_0x4c7f30[_0x251a76(0x130)][_0x251a76(0xf7)](_0x2e27e5[_0x251a76(0x125)][_0x251a76(0xe0)](),{'convertAiChatSelectionMarker':!0x0}),_0x5d8827=new _0x270c4e(_0x4c7f30[_0x251a76(0xdb)][_0x251a76(0x109)][_0x251a76(0x125)]);this[_0x251a76(0x120)](_0x49a67b,_0x5d8827);let _0x42d590=_0x4c7f30[_0x251a76(0x130)][_0x251a76(0x12f)][_0x251a76(0xfa)](_0x49a67b);const _0x5455e9=this[_0x251a76(0xf4)](),_0x418a13=[];for(const _0x30bc60 of _0x5455e9){const _0x1b5e48='<'+_0x30bc60[_0x251a76(0x129)]+_0x251a76(0x105)+_0x30bc60[_0x251a76(0x129)]+_0x251a76(0xdf),_0x4a5e07=_0x42d590[_0x251a76(0x100)](_0x1b5e48);_0x42d590=_0x42d590[_0x251a76(0xd7)](0x0,_0x4a5e07)+_0x42d590[_0x251a76(0xd7)](_0x4a5e07+_0x1b5e48[_0x251a76(0xf1)]);const _0x45e8b6='<'+_0x30bc60[_0x251a76(0x129)]+_0x251a76(0x10c)+_0x30bc60[_0x251a76(0x129)]+_0x251a76(0x12d),_0x250eb=_0x42d590[_0x251a76(0x100)](_0x45e8b6);_0x42d590=_0x42d590[_0x251a76(0xd7)](0x0,_0x250eb)+_0x42d590[_0x251a76(0xd7)](_0x250eb+_0x45e8b6[_0x251a76(0xf1)]),_0x418a13[_0x251a76(0xd3)]({'markerName':_0x30bc60[_0x251a76(0x129)],'start':_0x4a5e07,'end':_0x250eb,'htmlFragment':_0x42d590[_0x251a76(0xd7)](_0x4a5e07,_0x250eb)});}return{'content':_0x42d590,'version':_0x4c7f30[_0x251a76(0xfe)][_0x251a76(0x125)][_0x251a76(0xe5)],'sessionId':this[_0x251a76(0xe8)],'selections':_0x418a13};}async[_0x53ce06(0xf0)](){const _0x178a20=_0x53ce06;this[_0x178a20(0xfc)]instanceof _0x1ded02?this[_0x178a20(0x123)](this[_0x178a20(0xfc)]):this[_0x178a20(0x110)](this[_0x178a20(0xfc)][_0x178a20(0xee)],_0x178a20(0x122),(_0x246630,_0x17a326)=>{const _0x5ad924=_0x178a20;_0x17a326['on'](_0x5ad924(0x103),()=>{const _0x5bf5e5=_0x5ad924;this[_0x5bf5e5(0x123)](_0x17a326);});});}[_0x53ce06(0x123)](_0x26b041){const _0xdbf3f4=_0x53ce06;_0x26b041[_0xdbf3f4(0xe7)][_0xdbf3f4(0xe3)](_0xdbf3f4(0xe2))[_0xdbf3f4(0x127)]({'model':_0xdbf3f4(0x111),'view':{'classes':[_0xdbf3f4(0x121),_0xdbf3f4(0x10d)],'priority':0xc}}),_0x26b041[_0xdbf3f4(0xe7)][_0xdbf3f4(0xe3)](_0xdbf3f4(0x119))[_0xdbf3f4(0xcc)]({'model':_0xdbf3f4(0x111),'view':(_0xd2399f,{writer:_0x37b90f,options:_0x2d8ff5})=>_0x2d8ff5[_0xdbf3f4(0xd4)]?_0x37b90f[_0xdbf3f4(0xd2)](_0xd2399f[_0xdbf3f4(0xd0)]+':'+(_0xd2399f[_0xdbf3f4(0x117)]?_0xdbf3f4(0x114):_0xdbf3f4(0xce))):null});}[_0x53ce06(0xef)](_0x2ed295,_0x2353e9,_0x2f53b2=!0x1,_0x500a70=!0x1){const _0x438f7d=_0x53ce06;if(this[_0x438f7d(0xf9)]&&!_0x500a70)return!0x1;const _0x5fa5c1=_0x385df4(this[_0x438f7d(0xfc)])[_0x438f7d(0xfe)];return _0x5fa5c1[_0x438f7d(0xd9)](_0x45d36c=>{const _0x2f3d2b=_0x438f7d;this[_0x2f3d2b(0xdc)]&&this[_0x2f3d2b(0x11a)](this[_0x2f3d2b(0xdc)]),this[_0x2f3d2b(0xdc)]=_0x2353e9,this[_0x2f3d2b(0xf9)]=_0x2f53b2;let _0x35a2ad=0x0;for(let _0x45bc9b of _0x2ed295){const _0x1892d2=_0x2f3d2b(0x112)+_0x35a2ad;if(_0x45bc9b[_0x2f3d2b(0x114)][_0x2f3d2b(0xd6)]){const _0x23c4db=_0x45bc9b[_0x2f3d2b(0x114)][_0x2f3d2b(0x116)](({item:_0x3833f6})=>!_0x5fa5c1[_0x2f3d2b(0xec)][_0x2f3d2b(0x11c)](_0x3833f6),{'boundaries':_0x45bc9b});_0x45bc9b=_0x45d36c[_0x2f3d2b(0x113)](_0x23c4db,_0x45bc9b[_0x2f3d2b(0xce)]);}_0x45d36c[_0x2f3d2b(0xca)](_0x1892d2,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x45bc9b}),_0x35a2ad++;}}),window[_0x438f7d(0xc7)]()?.[_0x438f7d(0x12c)](),!0x0;}[_0x53ce06(0x11a)](_0x5820de){const _0x1fad7f=_0x53ce06;if(this[_0x1fad7f(0xdc)]!=_0x5820de)return!0x1;this[_0x1fad7f(0xdc)]=null,this[_0x1fad7f(0xf9)]=!0x1;const _0x3fa174=_0x385df4(this[_0x1fad7f(0xfc)]),_0x22509f=_0x3fa174[_0x1fad7f(0xfe)][_0x1fad7f(0xde)][_0x1fad7f(0xcd)](_0x1fad7f(0x111));return _0x3fa174[_0x1fad7f(0xfe)][_0x1fad7f(0xd9)](_0x19c85a=>{const _0x21165=_0x1fad7f;for(const _0x16262d of _0x22509f)_0x19c85a[_0x21165(0x124)](_0x16262d);}),!0x0;}[_0x53ce06(0x115)](_0x298fd0){const _0x4e1df7=_0x53ce06,_0x5abc43=_0x385df4(this[_0x4e1df7(0xfc)]),_0x26fd78=_0x5abc43[_0x4e1df7(0x130)][_0x4e1df7(0xf7)](_0x298fd0),_0x1ce153=new _0x270c4e(_0x5abc43[_0x4e1df7(0xdb)][_0x4e1df7(0x109)][_0x4e1df7(0x125)]);return this[_0x4e1df7(0x120)](_0x26fd78,_0x1ce153),_0x26fd78;}[_0x53ce06(0x120)](_0x50d40d,_0x5301fa){const _0x4549b4=_0x53ce06;let _0x24f472=!0x1;const _0x123548=new Set();for(const _0x52cf88 of _0x50d40d[_0x4549b4(0x11b)]()){const _0x13e684=_0x52cf88['is'](_0x4549b4(0x108))||_0x52cf88['is'](_0x4549b4(0x10e));if(!_0x52cf88['is'](_0x4549b4(0xc9)))continue;(this[_0x4549b4(0x120)](_0x52cf88,_0x5301fa)||_0x13e684)&&(_0x5301fa[_0x4549b4(0xea)](_0x4549b4(0x12e),this[_0x4549b4(0xd1)](_0x123548),_0x52cf88),_0x24f472=!0x0);}return _0x24f472;}[_0x53ce06(0xd1)](_0x27bef4){const _0x2b0358=_0x53ce06;let _0x646bd;do{_0x646bd='';for(let _0x58034e=0x0;_0x58034e<0x4;_0x58034e++)_0x646bd+=String[_0x2b0358(0xcf)](0x61+Math[_0x2b0358(0xf5)](0x1a*Math[_0x2b0358(0x10f)]()));}while(_0x27bef4[_0x2b0358(0xed)](_0x646bd));return _0x27bef4[_0x2b0358(0x122)](_0x646bd),_0x646bd;}[_0x53ce06(0x11e)](){const _0x2c4f1d=_0x53ce06,{model:_0x502579}=_0x385df4(this[_0x2c4f1d(0xfc)]),_0x132906=_0x502579[_0x2c4f1d(0x125)][_0x2c4f1d(0x126)],_0x2f614c=_0x502579[_0x2c4f1d(0xff)](_0x132906),_0x35f7f3=[],_0x5d9ba2=_0x502579[_0x2c4f1d(0xfb)](_0x2f614c)[_0x2c4f1d(0x11d)]();for(const {item:_0x40bb1d}of _0x5d9ba2)_0x40bb1d['is'](_0x2c4f1d(0xd5))?_0x35f7f3[_0x2c4f1d(0xd3)](_0x40bb1d[_0x2c4f1d(0x130)]):_0x40bb1d['is'](_0x2c4f1d(0xc9))&&_0x35f7f3[_0x2c4f1d(0xf1)]>0x0&&'\x20'!==_0x35f7f3[_0x35f7f3[_0x2c4f1d(0xf1)]-0x1]&&_0x35f7f3[_0x2c4f1d(0xd3)]('\x20');return'\x22'+_0x35f7f3[_0x2c4f1d(0x106)]('')[_0x2c4f1d(0xdd)]()+'\x22';}[_0x53ce06(0xf4)](){const _0x4d2b42=_0x53ce06,_0x367254=_0x385df4(this[_0x4d2b42(0xfc)])[_0x4d2b42(0xfe)];return Array[_0x4d2b42(0xf8)](_0x367254[_0x4d2b42(0xde)][_0x4d2b42(0xcd)](_0x4d2b42(0x111)))[_0x4d2b42(0xe1)]((_0x2d1693,_0x442329)=>_0x2d1693[_0x4d2b42(0x118)]()[_0x4d2b42(0xda)](_0x442329[_0x4d2b42(0x118)]())?-0x1:_0x2d1693[_0x4d2b42(0x118)]()[_0x4d2b42(0xf6)](_0x442329[_0x4d2b42(0x118)]())?0x1:0x0);}}
23
+ const _0x41b118=_0x2444;(function(_0x57255b,_0x1165ab){const _0x1b2f54=_0x2444,_0x4b2868=_0x57255b();while(!![]){try{const _0x5e8e84=parseInt(_0x1b2f54(0x12f))/0x1*(parseInt(_0x1b2f54(0x143))/0x2)+parseInt(_0x1b2f54(0x140))/0x3+-parseInt(_0x1b2f54(0x132))/0x4*(parseInt(_0x1b2f54(0xfe))/0x5)+parseInt(_0x1b2f54(0x138))/0x6*(parseInt(_0x1b2f54(0xea))/0x7)+parseInt(_0x1b2f54(0x106))/0x8*(-parseInt(_0x1b2f54(0x121))/0x9)+parseInt(_0x1b2f54(0xf9))/0xa*(-parseInt(_0x1b2f54(0x13d))/0xb)+parseInt(_0x1b2f54(0xfb))/0xc;if(_0x5e8e84===_0x1165ab)break;else _0x4b2868['push'](_0x4b2868['shift']());}catch(_0x386642){_0x4b2868['push'](_0x4b2868['shift']());}}}(_0x5ed2,0x22dc0));import{ViewDowncastWriter as _0x2d5255}from'ckeditor5/src/engine.js';function _0x2444(_0x2122b4,_0x4aa089){const _0x5ed210=_0x5ed2();return _0x2444=function(_0x24443e,_0x4081f7){_0x24443e=_0x24443e-0xe8;let _0x2ae5f4=_0x5ed210[_0x24443e];return _0x2ae5f4;},_0x2444(_0x2122b4,_0x4aa089);}import{ContextPlugin as _0x505b2a,Editor as _0x16745d}from'ckeditor5/src/core.js';import{uid as _0x169d4d}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x3811f7}from'./utils/geteditorfromcontext.js';function _0x5ed2(){const _0x1e86e0=['length','11AWPTpM','editing','convertAiChatSelectionMarker','498192bCILKT','context','createUIElement','546338Aceabz','containerElement','modelToViewWithIds','end','emptyElement','getDocumentData',':end></','ai-selection','getWalker',':end>',':start>','getRoot','$textProxy','_nextDataId',':start></','toView','isOpening','toData','124747DOdubs','isContent','plugins','start','AIEditing','afterInit','processor','RealTimeCollaborationClient','removeAllRanges','schema','isOfficialPlugin','document','data-id','markerToHighlight','name','1907860wcdBsR','get','2347836BkiSWQ','from','add','214935dhVwzj','removeMarker','push','fromCharCode','pluginName','isBefore','element','createRangeIn','168ZOfNPx','markerName','_setDataIdsOnChildren','floor','getMarkersGroup','_getMarkersInDocumentOrder','version','sort','setAttribute','trim','ai-selection:','markers','getChildren','_sessionId','ck-fake-ai-selection','isPremiumPlugin','conversion','isAfter','_displayedFakeSelectionLocked','ck-ai-assistant-ui_theme','listenTo','sessionId','for','view','_displayedFakeSelectionId','getSelectedContent','selection','99927ztRiqe','data','_integrateEditor','change','getStart','editors','showFakeVisualSelection','editingDowncast','model','getSelection','addMarker','getLastMatchingPosition','has','markerToElement','1sUfVUL','substring','isAtEnd','8DSJpqv','dataDowncast','ready','indexOf','getSelectionText','hideFakeVisualSelection','6qReXTy','join','createRange','random'];_0x5ed2=function(){return _0x1e86e0;};return _0x5ed2();}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x41b118(0x14a);export class AIEditing extends _0x505b2a{[_0x41b118(0x11e)]=null;[_0x41b118(0x118)]=!0x1;[_0x41b118(0x113)];static get[_0x41b118(0x102)](){const _0xad2f05=_0x41b118;return _0xad2f05(0xee);}static get[_0x41b118(0xf4)](){return!0x0;}static get[_0x41b118(0x115)](){return!0x0;}get[_0x41b118(0x11b)](){const _0x1ea9b0=_0x41b118;if(!this[_0x1ea9b0(0x113)]){const _0x1e9168=_0x3811f7(this[_0x1ea9b0(0x141)]),_0x239013=_0x1e9168[_0x1ea9b0(0xec)][_0x1ea9b0(0x12d)](_0x1ea9b0(0xf1))&&_0x1e9168[_0x1ea9b0(0xec)][_0x1ea9b0(0xfa)](_0x1ea9b0(0xf1))[_0x1ea9b0(0x11b)];this[_0x1ea9b0(0x113)]=_0x239013||_0x169d4d();}return this[_0x1ea9b0(0x113)];}[_0x41b118(0x148)](){const _0x3e318b=_0x41b118,_0x571cc8=_0x3811f7(this[_0x3e318b(0x141)]),_0x4bc312=_0x571cc8[_0x3e318b(0x129)],_0x2caac8=_0x571cc8[_0x3e318b(0x122)][_0x3e318b(0x152)](_0x4bc312[_0x3e318b(0xf5)][_0x3e318b(0x14e)](),{'convertAiChatSelectionMarker':!0x0}),_0x3969a9=new _0x2d5255(_0x571cc8[_0x3e318b(0x13e)][_0x3e318b(0x11d)][_0x3e318b(0xf5)]);this[_0x3e318b(0x108)](_0x2caac8,_0x3969a9);let _0x4127f2=_0x571cc8[_0x3e318b(0x122)][_0x3e318b(0xf0)][_0x3e318b(0xe9)](_0x2caac8);const _0x11f574=this[_0x3e318b(0x10b)](),_0x4fca79=[];for(const _0x435d29 of _0x11f574){const _0x5236f9='<'+_0x435d29[_0x3e318b(0xf8)]+_0x3e318b(0x151)+_0x435d29[_0x3e318b(0xf8)]+_0x3e318b(0x14d),_0x5f8613=_0x4127f2[_0x3e318b(0x135)](_0x5236f9);_0x4127f2=_0x4127f2[_0x3e318b(0x130)](0x0,_0x5f8613)+_0x4127f2[_0x3e318b(0x130)](_0x5f8613+_0x5236f9[_0x3e318b(0x13c)]);const _0x316543='<'+_0x435d29[_0x3e318b(0xf8)]+_0x3e318b(0x149)+_0x435d29[_0x3e318b(0xf8)]+_0x3e318b(0x14c),_0x5b5c64=_0x4127f2[_0x3e318b(0x135)](_0x316543);_0x4127f2=_0x4127f2[_0x3e318b(0x130)](0x0,_0x5b5c64)+_0x4127f2[_0x3e318b(0x130)](_0x5b5c64+_0x316543[_0x3e318b(0x13c)]),_0x4fca79[_0x3e318b(0x100)]({'markerName':_0x435d29[_0x3e318b(0xf8)],'start':_0x5f8613,'end':_0x5b5c64,'htmlFragment':_0x4127f2[_0x3e318b(0x130)](_0x5f8613,_0x5b5c64)});}return{'content':_0x4127f2,'version':_0x571cc8[_0x3e318b(0x129)][_0x3e318b(0xf5)][_0x3e318b(0x10c)],'sessionId':this[_0x3e318b(0x11b)],'selections':_0x4fca79};}async[_0x41b118(0xef)](){const _0x9101fb=_0x41b118;this[_0x9101fb(0x141)]instanceof _0x16745d?this[_0x9101fb(0x123)](this[_0x9101fb(0x141)]):this[_0x9101fb(0x11a)](this[_0x9101fb(0x141)][_0x9101fb(0x126)],_0x9101fb(0xfd),(_0x385ac4,_0x3c4fbf)=>{const _0x4ff0db=_0x9101fb;_0x3c4fbf['on'](_0x4ff0db(0x134),()=>{const _0x3869f4=_0x4ff0db;this[_0x3869f4(0x123)](_0x3c4fbf);});});}[_0x41b118(0x123)](_0x49778c){const _0xbddc48=_0x41b118;_0x49778c[_0xbddc48(0x116)][_0xbddc48(0x11c)](_0xbddc48(0x128))[_0xbddc48(0xf7)]({'model':_0xbddc48(0x14a),'view':{'classes':[_0xbddc48(0x114),_0xbddc48(0x119)],'priority':0xc}}),_0x49778c[_0xbddc48(0x116)][_0xbddc48(0x11c)](_0xbddc48(0x133))[_0xbddc48(0x12e)]({'model':_0xbddc48(0x14a),'view':(_0x1cdb77,{writer:_0x5697bc,options:_0xc6a05b})=>_0xc6a05b[_0xbddc48(0x13f)]?_0x5697bc[_0xbddc48(0x142)](_0x1cdb77[_0xbddc48(0x107)]+':'+(_0x1cdb77[_0xbddc48(0xe8)]?_0xbddc48(0xed):_0xbddc48(0x146))):null});}[_0x41b118(0x127)](_0x3e8d0b,_0x3eede9,_0x54d292=!0x1,_0x322efe=!0x1){const _0x296bc0=_0x41b118;if(this[_0x296bc0(0x118)]&&!_0x322efe)return!0x1;const _0x1814d0=_0x3811f7(this[_0x296bc0(0x141)])[_0x296bc0(0x129)];return _0x1814d0[_0x296bc0(0x124)](_0x248a17=>{const _0x3323fd=_0x296bc0;this[_0x3323fd(0x11e)]&&this[_0x3323fd(0x137)](this[_0x3323fd(0x11e)]),this[_0x3323fd(0x11e)]=_0x3eede9,this[_0x3323fd(0x118)]=_0x54d292;let _0x2a3aaf=0x0;for(let _0x625d9f of _0x3e8d0b){const _0x95a463=_0x3323fd(0x110)+_0x2a3aaf;if(_0x625d9f[_0x3323fd(0xed)][_0x3323fd(0x131)]){const _0x1d9dfc=_0x625d9f[_0x3323fd(0xed)][_0x3323fd(0x12c)](({item:_0x54a67b})=>!_0x1814d0[_0x3323fd(0xf3)][_0x3323fd(0xeb)](_0x54a67b),{'boundaries':_0x625d9f});_0x625d9f=_0x248a17[_0x3323fd(0x13a)](_0x1d9dfc,_0x625d9f[_0x3323fd(0x146)]);}_0x248a17[_0x3323fd(0x12b)](_0x95a463,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x625d9f}),_0x2a3aaf++;}}),window[_0x296bc0(0x12a)]()?.[_0x296bc0(0xf2)](),!0x0;}[_0x41b118(0x137)](_0x5e7485){const _0x4e5f1f=_0x41b118;if(this[_0x4e5f1f(0x11e)]!=_0x5e7485)return!0x1;this[_0x4e5f1f(0x11e)]=null,this[_0x4e5f1f(0x118)]=!0x1;const _0x354ad9=_0x3811f7(this[_0x4e5f1f(0x141)]),_0x16bb2c=_0x354ad9[_0x4e5f1f(0x129)][_0x4e5f1f(0x111)][_0x4e5f1f(0x10a)](_0x4e5f1f(0x14a));return _0x354ad9[_0x4e5f1f(0x129)][_0x4e5f1f(0x124)](_0x44ed94=>{const _0x1aa2ac=_0x4e5f1f;for(const _0x204c19 of _0x16bb2c)_0x44ed94[_0x1aa2ac(0xff)](_0x204c19);}),!0x0;}[_0x41b118(0x145)](_0x245ac7){const _0x227bdc=_0x41b118,_0x5ec312=_0x3811f7(this[_0x227bdc(0x141)]),_0x773e0f=_0x5ec312[_0x227bdc(0x122)][_0x227bdc(0x152)](_0x245ac7),_0x579f13=new _0x2d5255(_0x5ec312[_0x227bdc(0x13e)][_0x227bdc(0x11d)][_0x227bdc(0xf5)]);return this[_0x227bdc(0x108)](_0x773e0f,_0x579f13),_0x773e0f;}[_0x41b118(0x108)](_0x352037,_0x270ab7){const _0xb5df79=_0x41b118;let _0x359cb0=!0x1;const _0x50c38b=new Set();for(const _0x224c3 of _0x352037[_0xb5df79(0x112)]()){const _0x5992d3=_0x224c3['is'](_0xb5df79(0x147))||_0x224c3['is'](_0xb5df79(0x144));if(!_0x224c3['is'](_0xb5df79(0x104)))continue;(this[_0xb5df79(0x108)](_0x224c3,_0x270ab7)||_0x5992d3)&&(_0x270ab7[_0xb5df79(0x10e)](_0xb5df79(0xf6),this[_0xb5df79(0x150)](_0x50c38b),_0x224c3),_0x359cb0=!0x0);}return _0x359cb0;}[_0x41b118(0x150)](_0x5ef6a5){const _0x206054=_0x41b118;let _0x1436ac;do{_0x1436ac='';for(let _0x18eaab=0x0;_0x18eaab<0x4;_0x18eaab++)_0x1436ac+=String[_0x206054(0x101)](0x61+Math[_0x206054(0x109)](0x1a*Math[_0x206054(0x13b)]()));}while(_0x5ef6a5[_0x206054(0x12d)](_0x1436ac));return _0x5ef6a5[_0x206054(0xfd)](_0x1436ac),_0x1436ac;}[_0x41b118(0x136)](){const _0x515043=_0x41b118,{model:_0x5f0a69}=_0x3811f7(this[_0x515043(0x141)]),_0x269d9f=_0x5f0a69[_0x515043(0xf5)][_0x515043(0x120)],_0x2b1523=_0x5f0a69[_0x515043(0x11f)](_0x269d9f),_0x5c2bf6=[],_0x5388b0=_0x5f0a69[_0x515043(0x105)](_0x2b1523)[_0x515043(0x14b)]();for(const {item:_0x1045be}of _0x5388b0)_0x1045be['is'](_0x515043(0x14f))?_0x5c2bf6[_0x515043(0x100)](_0x1045be[_0x515043(0x122)]):_0x1045be['is'](_0x515043(0x104))&&_0x5c2bf6[_0x515043(0x13c)]>0x0&&'\x20'!==_0x5c2bf6[_0x5c2bf6[_0x515043(0x13c)]-0x1]&&_0x5c2bf6[_0x515043(0x100)]('\x20');return'\x22'+_0x5c2bf6[_0x515043(0x139)]('')[_0x515043(0x10f)]()+'\x22';}[_0x41b118(0x10b)](){const _0x327513=_0x41b118,_0x4372d4=_0x3811f7(this[_0x327513(0x141)])[_0x327513(0x129)];return Array[_0x327513(0xfc)](_0x4372d4[_0x327513(0x111)][_0x327513(0x10a)](_0x327513(0x14a)))[_0x327513(0x10d)]((_0x290c89,_0x4dc648)=>_0x290c89[_0x327513(0x125)]()[_0x327513(0x103)](_0x4dc648[_0x327513(0x125)]())?-0x1:_0x290c89[_0x327513(0x125)]()[_0x327513(0x117)](_0x4dc648[_0x327513(0x125)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2bebf6=_0x50ff;(function(_0x39d8d8,_0x5e0110){const _0x3b60a4=_0x50ff,_0xe89480=_0x39d8d8();while(!![]){try{const _0x4fc286=-parseInt(_0x3b60a4(0x1c8))/0x1+parseInt(_0x3b60a4(0x1b2))/0x2+-parseInt(_0x3b60a4(0x1ba))/0x3+parseInt(_0x3b60a4(0x1b7))/0x4+parseInt(_0x3b60a4(0x1c0))/0x5+-parseInt(_0x3b60a4(0x1b6))/0x6*(-parseInt(_0x3b60a4(0x1bd))/0x7)+-parseInt(_0x3b60a4(0x1bf))/0x8;if(_0x4fc286===_0x5e0110)break;else _0xe89480['push'](_0xe89480['shift']());}catch(_0x403ecf){_0xe89480['push'](_0xe89480['shift']());}}}(_0x5191,0x539f6));function _0x50ff(_0x317f03,_0x10b705){const _0x519173=_0x5191();return _0x50ff=function(_0x50fffb,_0x34de02){_0x50fffb=_0x50fffb-0x1b2;let _0x23e627=_0x519173[_0x50fffb];return _0x23e627;},_0x50ff(_0x317f03,_0x10b705);}function _0x5191(){const _0x232628=['setReasoning','toggleWebSearch','capabilitiesUpdated','49722UBrQQu','2090088XCVIut','setWebSearch','init','280917xhFRIn','reasoning','getCapabilitiesConfig','77UAukGq','toggleReasoning','3069536adWtZE','569700sBmsuu','_isWebSearchEnabled','_isReasoningEnabled','isReasoningEnabled','webSearch','fire','reset','getCapabilitiesRequestData','73059hljWNb','isWebSearchEnabled','330578hBqtod'];_0x5191=function(){return _0x232628;};return _0x5191();}import{EmitterMixin as _0x5bf421}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x2bebf6(0x1b5)];export class AICapabilities extends _0x5bf421(){[_0x2bebf6(0x1c1)];[_0x2bebf6(0x1c2)];constructor(){const _0x4d6256=_0x2bebf6;super(),this[_0x4d6256(0x1c1)]=!0x1,this[_0x4d6256(0x1c2)]=!0x1;}[_0x2bebf6(0x1b9)](){const _0x1994aa=_0x2bebf6;this[_0x1994aa(0x1c6)]();}[_0x2bebf6(0x1c6)](){const _0x13a573=_0x2bebf6;this[_0x13a573(0x1b8)](!0x1),this[_0x13a573(0x1b3)](!0x1);}[_0x2bebf6(0x1bc)](){const _0x270325=_0x2bebf6;return{'isWebSearchEnabled':this[_0x270325(0x1c1)],'isReasoningEnabled':this[_0x270325(0x1c2)]};}static[_0x2bebf6(0x1c7)](_0x1eda6c){const _0xc30f79=_0x2bebf6,_0x31c448={};return _0x1eda6c&&_0x1eda6c[_0xc30f79(0x1c9)]&&(_0x31c448[_0xc30f79(0x1c4)]={}),_0x1eda6c&&_0x1eda6c[_0xc30f79(0x1c3)]&&(_0x31c448[_0xc30f79(0x1bb)]={}),_0x31c448;}[_0x2bebf6(0x1b4)](){const _0x30d3c9=_0x2bebf6;this[_0x30d3c9(0x1b8)](!this[_0x30d3c9(0x1c1)]);}[_0x2bebf6(0x1be)](){const _0x212436=_0x2bebf6;this[_0x212436(0x1b3)](!this[_0x212436(0x1c2)]);}[_0x2bebf6(0x1b8)](_0xdef12a){const _0x2a8b6b=_0x2bebf6;_0xdef12a!==this[_0x2a8b6b(0x1c1)]&&(this[_0x2a8b6b(0x1c1)]=_0xdef12a,this[_0x2a8b6b(0x1c5)](_0x2a8b6b(0x1b5),this[_0x2a8b6b(0x1bc)]()));}[_0x2bebf6(0x1b3)](_0x1cbef5){const _0x25aa1c=_0x2bebf6;_0x1cbef5!==this[_0x25aa1c(0x1c2)]&&(this[_0x25aa1c(0x1c2)]=_0x1cbef5,this[_0x25aa1c(0x1c5)](_0x25aa1c(0x1b5),this[_0x25aa1c(0x1bc)]()));}}
23
+ const _0x24848f=_0x218c;(function(_0x4479fd,_0x5e7ce7){const _0x4fabdb=_0x218c,_0x562e84=_0x4479fd();while(!![]){try{const _0x2fcf4d=-parseInt(_0x4fabdb(0x112))/0x1*(parseInt(_0x4fabdb(0x107))/0x2)+parseInt(_0x4fabdb(0x110))/0x3+parseInt(_0x4fabdb(0x11b))/0x4*(parseInt(_0x4fabdb(0x109))/0x5)+-parseInt(_0x4fabdb(0x102))/0x6*(-parseInt(_0x4fabdb(0x10a))/0x7)+parseInt(_0x4fabdb(0x10b))/0x8+parseInt(_0x4fabdb(0x10c))/0x9*(parseInt(_0x4fabdb(0x105))/0xa)+-parseInt(_0x4fabdb(0x118))/0xb;if(_0x2fcf4d===_0x5e7ce7)break;else _0x562e84['push'](_0x562e84['shift']());}catch(_0x49ccb3){_0x562e84['push'](_0x562e84['shift']());}}}(_0x3ae6,0xee836));import{EmitterMixin as _0x3ffc82}from'ckeditor5/src/utils.js';function _0x218c(_0x4a9727,_0x99ffab){const _0x3ae6fd=_0x3ae6();return _0x218c=function(_0x218c6e,_0x4a31c6){_0x218c6e=_0x218c6e-0x101;let _0x2ed98a=_0x3ae6fd[_0x218c6e];return _0x2ed98a;},_0x218c(_0x4a9727,_0x99ffab);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x24848f(0x11a)];export class AICapabilities extends _0x3ffc82(){[_0x24848f(0x10f)];[_0x24848f(0x104)];constructor(){const _0x527ae6=_0x24848f;super(),this[_0x527ae6(0x10f)]=!0x1,this[_0x527ae6(0x104)]=!0x1;}[_0x24848f(0x119)](){const _0x4f2e4a=_0x24848f;this[_0x4f2e4a(0x115)]();}[_0x24848f(0x115)](){const _0x522095=_0x24848f;this[_0x522095(0x10d)](!0x1),this[_0x522095(0x114)](!0x1);}[_0x24848f(0x111)](){const _0x1cab33=_0x24848f;return{'isWebSearchEnabled':this[_0x1cab33(0x10f)],'isReasoningEnabled':this[_0x1cab33(0x104)]};}static[_0x24848f(0x113)](_0x13e0e8){const _0x406f22=_0x24848f,_0x40da1b={};return _0x13e0e8&&_0x13e0e8[_0x406f22(0x10e)]&&(_0x40da1b[_0x406f22(0x116)]={}),_0x13e0e8&&_0x13e0e8[_0x406f22(0x101)]&&(_0x40da1b[_0x406f22(0x108)]={}),_0x40da1b;}[_0x24848f(0x103)](){const _0x20959b=_0x24848f;this[_0x20959b(0x10d)](!this[_0x20959b(0x10f)]);}[_0x24848f(0x106)](){const _0x78dff8=_0x24848f;this[_0x78dff8(0x114)](!this[_0x78dff8(0x104)]);}[_0x24848f(0x10d)](_0x18d496){const _0x104a32=_0x24848f;_0x18d496!==this[_0x104a32(0x10f)]&&(this[_0x104a32(0x10f)]=_0x18d496,this[_0x104a32(0x117)](_0x104a32(0x11a),this[_0x104a32(0x111)]()));}[_0x24848f(0x114)](_0x36c3e7){const _0x4f5d1e=_0x24848f;_0x36c3e7!==this[_0x4f5d1e(0x104)]&&(this[_0x4f5d1e(0x104)]=_0x36c3e7,this[_0x4f5d1e(0x117)](_0x4f5d1e(0x11a),this[_0x4f5d1e(0x111)]()));}}function _0x3ae6(){const _0x3241ab=['39221941HZllwA','init','capabilitiesUpdated','1580tKcozA','isReasoningEnabled','1433580uqVdYl','toggleWebSearch','_isReasoningEnabled','17526810LEdeNX','toggleReasoning','3686cDfxyD','reasoning','8405eFCWlq','14YMJCvV','5653464cPBCta','9EdbCTf','setWebSearch','isWebSearchEnabled','_isWebSearchEnabled','4322445bJopnz','getCapabilitiesConfig','271CdtKSo','getCapabilitiesRequestData','setReasoning','reset','webSearch','fire'];_0x3ae6=function(){return _0x3241ab;};return _0x3ae6();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x12a0(_0x3231af,_0x3a8f0e){const _0x232174=_0x2321();return _0x12a0=function(_0x12a0a4,_0xa985ea){_0x12a0a4=_0x12a0a4-0x1dd;let _0x5d6654=_0x232174[_0x12a0a4];return _0x5d6654;},_0x12a0(_0x3231af,_0x3a8f0e);}const _0x316168=_0x12a0;(function(_0x24354c,_0x383e9e){const _0x49cc9d=_0x12a0,_0x1d2658=_0x24354c();while(!![]){try{const _0xac1dd=parseInt(_0x49cc9d(0x218))/0x1+parseInt(_0x49cc9d(0x1f0))/0x2+parseInt(_0x49cc9d(0x21b))/0x3+parseInt(_0x49cc9d(0x201))/0x4*(-parseInt(_0x49cc9d(0x1ef))/0x5)+parseInt(_0x49cc9d(0x214))/0x6+-parseInt(_0x49cc9d(0x1e7))/0x7+-parseInt(_0x49cc9d(0x1f2))/0x8;if(_0xac1dd===_0x383e9e)break;else _0x1d2658['push'](_0x1d2658['shift']());}catch(_0x18c72){_0x1d2658['push'](_0x1d2658['shift']());}}}(_0x2321,0xc4f88));function _0x2321(){const _0x3d73ef=['11927032PRyVTm','conversationTitle','sendRequest','data','find','abort','_finalizeInteraction','abortController','event','stop','reasoningFinished','length','currentReply','actionCallId','reasoningStarted','119984vgNTqs','ai-interaction-invalid-event-type','currentRequest','editor','replyContentUpdated','interactionStopped','replyCreated','error','textDelta','start','web-search','getDocumentContext','reasoning','interactionFinished','webSearchStarted','interactionDestroyed','messageId','getStream','_isReasoning','480396HkrCUR','replies','replyChangeGroupStateUpdated','setConversationTitle','1103134FZovqJ','ai-chat-interaction-error','destroy','4777170EXjIhy','splice','isStopped','action-metadata','stopListening','forEach','done','interactionStarted','modification-delta','push','connector','callId','content','webSearchFinished','getReply','fire','appendContent','5780348PHWSjU','interactionCreated','createReply','source','message-metadata','isDestroyed','_isWebSearching','delegate','185GUrzwP','2915394nstOEe','sources'];_0x2321=function(){return _0x3d73ef;};return _0x2321();}import{CKEditorError as _0x101518,EmitterMixin as _0x24e247,logWarning as _0x5703ac,uid as _0x382f53}from'ckeditor5/src/utils.js';import{AIReply as _0x1ec839,isIgnoredReplyType as _0x5344c0,isValidReplyType as _0x112af2,isReplyTitleType as _0xb17076,isSourceType as _0x5c7d92}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x316168(0x1e8),_0x316168(0x1dd),_0x316168(0x206),_0x316168(0x20e),_0x316168(0x210),_0x316168(0x207),_0x316168(0x205),_0x316168(0x216),_0x316168(0x217),_0x316168(0x20f),_0x316168(0x1e3),_0x316168(0x200),_0x316168(0x1fc),_0x316168(0x208)];export class AIInteraction extends _0x24e247(){['id'];[_0x316168(0x215)]=[];[_0x316168(0x1fe)];[_0x316168(0x211)];[_0x316168(0x1ff)];[_0x316168(0x203)];[_0x316168(0x1e0)];[_0x316168(0x21d)]=!0x1;[_0x316168(0x1ec)]=!0x1;[_0x316168(0x204)];[_0x316168(0x213)]=!0x1;[_0x316168(0x1ed)]=!0x1;constructor({connector:_0x25bf7a,editor:_0x56fd2a}){const _0x5d0511=_0x316168;super(),this['id']=_0x382f53(),this[_0x5d0511(0x1e0)]=_0x25bf7a,this[_0x5d0511(0x21d)]=!0x0,this[_0x5d0511(0x204)]=_0x56fd2a;}async[_0x316168(0x20a)](){const _0x5d2aad=_0x316168;let _0x5b9e10;const _0x45d767=[];this[_0x5d2aad(0x21d)]=!0x1;try{this[_0x5d2aad(0x203)]=await this[_0x5d2aad(0x1f4)](),this[_0x5d2aad(0x1e5)](_0x5d2aad(0x1dd),this);const _0x2e8291=await this[_0x5d2aad(0x203)][_0x5d2aad(0x212)]();for await(const _0x307bbe of _0x2e8291){if(this[_0x5d2aad(0x21d)])return;if(_0x5d2aad(0x208)===_0x307bbe[_0x5d2aad(0x1fa)])return void this[_0x5d2aad(0x1e5)](_0x5d2aad(0x208),{'error':new _0x101518(_0x5d2aad(0x219),this)});if(_0x5d2aad(0x1eb)!==_0x307bbe[_0x5d2aad(0x1fa)]){if(_0x5d2aad(0x21e)!==_0x307bbe[_0x5d2aad(0x1fa)]){if(_0xb17076(_0x307bbe[_0x5d2aad(0x1fa)])&&this[_0x5d2aad(0x217)](_0x307bbe[_0x5d2aad(0x1f5)][_0x5d2aad(0x1f3)],!0x0),_0x5c7d92(_0x307bbe[_0x5d2aad(0x1fa)]))_0x45d767[_0x5d2aad(0x1df)](_0x307bbe[_0x5d2aad(0x1f5)][_0x5d2aad(0x1ea)]);else{if(_0x112af2(_0x307bbe[_0x5d2aad(0x1fa)])){if(_0x307bbe[_0x5d2aad(0x1fa)]!==_0x5b9e10){if(_0x5b9e10=_0x307bbe[_0x5d2aad(0x1fa)],_0x5d2aad(0x20b)===_0x307bbe[_0x5d2aad(0x1fa)]){this[_0x5d2aad(0x1ed)]||(this[_0x5d2aad(0x1ed)]=!0x0,this[_0x5d2aad(0x1e5)](_0x5d2aad(0x20f),this));continue;}if(_0x5d2aad(0x20d)===_0x307bbe[_0x5d2aad(0x1fa)]){this[_0x5d2aad(0x213)]||(this[_0x5d2aad(0x213)]=!0x0,this[_0x5d2aad(0x1e5)](_0x5d2aad(0x200),this));continue;}this[_0x5d2aad(0x213)]&&(this[_0x5d2aad(0x213)]=!0x1,this[_0x5d2aad(0x1e5)](_0x5d2aad(0x1fc),this)),this[_0x5d2aad(0x1ed)]&&(this[_0x5d2aad(0x1ed)]=!0x1,this[_0x5d2aad(0x1e5)](_0x5d2aad(0x1e3),this)),this[_0x5d2aad(0x1fe)]&&this[_0x5d2aad(0x1fe)][_0x5d2aad(0x221)](),this[_0x5d2aad(0x1fe)]=this[_0x5d2aad(0x1e9)]({'type':_0x307bbe[_0x5d2aad(0x1fa)],'interactionId':this['id'],'id':_0x307bbe[_0x5d2aad(0x1f5)]?.['id']}),_0x45d767[_0x5d2aad(0x1fd)]>0x0&&_0x5d2aad(0x1de)===_0x307bbe[_0x5d2aad(0x1fa)]&&(this[_0x5d2aad(0x1fe)][_0x5d2aad(0x1f1)]=_0x45d767[_0x5d2aad(0x21c)](0x0));}_0x307bbe[_0x5d2aad(0x1f5)][_0x5d2aad(0x209)]&&this[_0x5d2aad(0x1fe)][_0x5d2aad(0x1e6)](_0x307bbe[_0x5d2aad(0x1f5)][_0x5d2aad(0x209)]);}else _0x5344c0(_0x307bbe[_0x5d2aad(0x1fa)])||_0x5703ac(_0x5d2aad(0x202),{'chunk':_0x307bbe});}}else this[_0x5d2aad(0x1ff)]=_0x307bbe[_0x5d2aad(0x1f5)][_0x5d2aad(0x1e1)];}else this[_0x5d2aad(0x211)]=_0x307bbe[_0x5d2aad(0x1f5)][_0x5d2aad(0x211)];}}finally{this[_0x5d2aad(0x21d)]||(_0x45d767[_0x5d2aad(0x1fd)]>0x0&&(this[_0x5d2aad(0x1fe)][_0x5d2aad(0x1f1)]=_0x45d767[_0x5d2aad(0x21c)](0x0)),this[_0x5d2aad(0x1f8)](),this[_0x5d2aad(0x1e5)](_0x5d2aad(0x20e),this));}}[_0x316168(0x1fb)](){const _0x5e0063=_0x316168;this[_0x5e0063(0x21d)]||(this[_0x5e0063(0x1f8)](),this[_0x5e0063(0x1e5)](_0x5e0063(0x206),this));}[_0x316168(0x1e4)](_0x179dcc){const _0x41b9b5=_0x316168;return this[_0x41b9b5(0x215)][_0x41b9b5(0x1f6)](_0xfe2f82=>_0xfe2f82['id']===_0x179dcc);}[_0x316168(0x21a)](){const _0x1faacd=_0x316168;this[_0x1faacd(0x1ec)]||(this[_0x1faacd(0x1fb)](),this[_0x1faacd(0x215)][_0x1faacd(0x220)](_0x5a5638=>_0x5a5638[_0x1faacd(0x21a)]()),this[_0x1faacd(0x215)]=[],this[_0x1faacd(0x1ec)]=!0x0,this[_0x1faacd(0x1e5)](_0x1faacd(0x210),this),this[_0x1faacd(0x21f)]());}[_0x316168(0x1e9)](_0xc1702d){const _0x734798=_0x316168,_0x4b650b=new _0x1ec839({'editor':this[_0x734798(0x204)],'documentContextContent':this[_0x734798(0x20c)]()?.[_0x734798(0x1e2)],..._0xc1702d});return this[_0x734798(0x215)][_0x734798(0x1df)](_0x4b650b),_0x4b650b[_0x734798(0x1ee)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x734798(0x1e5)](_0x734798(0x207),_0x4b650b),_0x4b650b;}[_0x316168(0x217)](_0x2bd808,_0x311fa4=!0x1){const _0x483f07=_0x316168;this[_0x483f07(0x1e5)](_0x483f07(0x217),_0x2bd808,_0x311fa4);}[_0x316168(0x1f8)](){const _0x4f0650=_0x316168;this[_0x4f0650(0x21d)]=!0x0,this[_0x4f0650(0x203)]&&this[_0x4f0650(0x203)][_0x4f0650(0x1f9)][_0x4f0650(0x1f7)](),this[_0x4f0650(0x1fe)]&&this[_0x4f0650(0x1fe)][_0x4f0650(0x221)](),this[_0x4f0650(0x203)]=this[_0x4f0650(0x1fe)]=void 0x0;}}
23
+ const _0x5ea14f=_0x22c0;function _0x3c6a(){const _0x11f3d1=['web-search','replies','reasoningStarted','abort','textDelta','44143ifaLxB','source','reasoningFinished','_finalizeInteraction','getStream','isStopped','appendContent','find','currentRequest','message-metadata','content','webSearchFinished','forEach','abortController','createReply','webSearchStarted','stop','push','event','2284608upkdZW','replyContentUpdated','start','callId','getDocumentContext','interactionFinished','ai-interaction-invalid-event-type','connector','replyChangeGroupStateUpdated','messageId','currentReply','123xgjViM','done','_isWebSearching','action-metadata','248IrwfRb','getReply','delegate','interactionCreated','destroy','actionCallId','setConversationTitle','data','ai-chat-interaction-error','1355084BFPXNE','19831feTLav','interactionStarted','fire','5jOadqZ','51320Edjcua','conversationTitle','reasoning','isDestroyed','2220XaIkJP','replyCreated','splice','4092hRKvmE','interactionDestroyed','error','length','_isReasoning','793158elklMK','sources','1179nDMSap','modification-delta','interactionStopped','sendRequest','stopListening','editor'];_0x3c6a=function(){return _0x11f3d1;};return _0x3c6a();}(function(_0x54d776,_0x57a52d){const _0x383b18=_0x22c0,_0xd7058e=_0x54d776();while(!![]){try{const _0x37b4eb=-parseInt(_0x383b18(0x1ab))/0x1*(-parseInt(_0x383b18(0x1c4))/0x2)+parseInt(_0x383b18(0x1a0))/0x3+-parseInt(_0x383b18(0x1b8))/0x4+parseInt(_0x383b18(0x1bc))/0x5*(-parseInt(_0x383b18(0x1c9))/0x6)+-parseInt(_0x383b18(0x1b9))/0x7*(parseInt(_0x383b18(0x1af))/0x8)+-parseInt(_0x383b18(0x1cb))/0x9*(parseInt(_0x383b18(0x1bd))/0xa)+parseInt(_0x383b18(0x1d6))/0xb*(parseInt(_0x383b18(0x1c1))/0xc);if(_0x37b4eb===_0x57a52d)break;else _0xd7058e['push'](_0xd7058e['shift']());}catch(_0x470f2e){_0xd7058e['push'](_0xd7058e['shift']());}}}(_0x3c6a,0x800e8));import{CKEditorError as _0x40592e,EmitterMixin as _0x2801aa,logWarning as _0xe63cb0,uid as _0x40a9e9}from'ckeditor5/src/utils.js';import{AIReply as _0x9d984e,isIgnoredReplyType as _0x137826,isValidReplyType as _0x1baf04,isReplyTitleType as _0x566223,isSourceType as _0x377e13}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x5ea14f(0x1b2),_0x5ea14f(0x1ba),_0x5ea14f(0x1cd),_0x5ea14f(0x1a5),_0x5ea14f(0x1c5),_0x5ea14f(0x1c2),_0x5ea14f(0x1a1),_0x5ea14f(0x1a8),_0x5ea14f(0x1b5),_0x5ea14f(0x19c),_0x5ea14f(0x198),_0x5ea14f(0x1d3),_0x5ea14f(0x18f),_0x5ea14f(0x1c6)];function _0x22c0(_0x3ffac7,_0x1261be){const _0x3c6a1d=_0x3c6a();return _0x22c0=function(_0x22c0fe,_0x5667ea){_0x22c0fe=_0x22c0fe-0x18f;let _0x3941b2=_0x3c6a1d[_0x22c0fe];return _0x3941b2;},_0x22c0(_0x3ffac7,_0x1261be);}export class AIInteraction extends _0x2801aa(){['id'];[_0x5ea14f(0x1d2)]=[];[_0x5ea14f(0x1aa)];[_0x5ea14f(0x1a9)];[_0x5ea14f(0x1b4)];[_0x5ea14f(0x195)];[_0x5ea14f(0x1a7)];[_0x5ea14f(0x192)]=!0x1;[_0x5ea14f(0x1c0)]=!0x1;[_0x5ea14f(0x1d0)];[_0x5ea14f(0x1c8)]=!0x1;[_0x5ea14f(0x1ad)]=!0x1;constructor({connector:_0x596d36,editor:_0x13f222}){const _0xa87258=_0x5ea14f;super(),this['id']=_0x40a9e9(),this[_0xa87258(0x1a7)]=_0x596d36,this[_0xa87258(0x192)]=!0x0,this[_0xa87258(0x1d0)]=_0x13f222;}async[_0x5ea14f(0x1a2)](){const _0x45af2a=_0x5ea14f;let _0x5f5431;const _0x435658=[];this[_0x45af2a(0x192)]=!0x1;try{this[_0x45af2a(0x195)]=await this[_0x45af2a(0x1ce)](),this[_0x45af2a(0x1bb)](_0x45af2a(0x1ba),this);const _0x25f920=await this[_0x45af2a(0x195)][_0x45af2a(0x191)]();for await(const _0x56b4c8 of _0x25f920){if(this[_0x45af2a(0x192)])return;if(_0x45af2a(0x1c6)===_0x56b4c8[_0x45af2a(0x19f)])return void this[_0x45af2a(0x1bb)](_0x45af2a(0x1c6),{'error':new _0x40592e(_0x45af2a(0x1b7),this)});if(_0x45af2a(0x196)!==_0x56b4c8[_0x45af2a(0x19f)]){if(_0x45af2a(0x1ae)!==_0x56b4c8[_0x45af2a(0x19f)]){if(_0x566223(_0x56b4c8[_0x45af2a(0x19f)])&&this[_0x45af2a(0x1b5)](_0x56b4c8[_0x45af2a(0x1b6)][_0x45af2a(0x1be)],!0x0),_0x377e13(_0x56b4c8[_0x45af2a(0x19f)]))_0x435658[_0x45af2a(0x19e)](_0x56b4c8[_0x45af2a(0x1b6)][_0x45af2a(0x1d7)]);else{if(_0x1baf04(_0x56b4c8[_0x45af2a(0x19f)])){if(_0x56b4c8[_0x45af2a(0x19f)]!==_0x5f5431){if(_0x5f5431=_0x56b4c8[_0x45af2a(0x19f)],_0x45af2a(0x1d1)===_0x56b4c8[_0x45af2a(0x19f)]){this[_0x45af2a(0x1ad)]||(this[_0x45af2a(0x1ad)]=!0x0,this[_0x45af2a(0x1bb)](_0x45af2a(0x19c),this));continue;}if(_0x45af2a(0x1bf)===_0x56b4c8[_0x45af2a(0x19f)]){this[_0x45af2a(0x1c8)]||(this[_0x45af2a(0x1c8)]=!0x0,this[_0x45af2a(0x1bb)](_0x45af2a(0x1d3),this));continue;}this[_0x45af2a(0x1c8)]&&(this[_0x45af2a(0x1c8)]=!0x1,this[_0x45af2a(0x1bb)](_0x45af2a(0x18f),this)),this[_0x45af2a(0x1ad)]&&(this[_0x45af2a(0x1ad)]=!0x1,this[_0x45af2a(0x1bb)](_0x45af2a(0x198),this)),this[_0x45af2a(0x1aa)]&&this[_0x45af2a(0x1aa)][_0x45af2a(0x1ac)](),this[_0x45af2a(0x1aa)]=this[_0x45af2a(0x19b)]({'type':_0x56b4c8[_0x45af2a(0x19f)],'interactionId':this['id'],'id':_0x56b4c8[_0x45af2a(0x1b6)]?.['id']}),_0x435658[_0x45af2a(0x1c7)]>0x0&&_0x45af2a(0x1cc)===_0x56b4c8[_0x45af2a(0x19f)]&&(this[_0x45af2a(0x1aa)][_0x45af2a(0x1ca)]=_0x435658[_0x45af2a(0x1c3)](0x0));}_0x56b4c8[_0x45af2a(0x1b6)][_0x45af2a(0x1d5)]&&this[_0x45af2a(0x1aa)][_0x45af2a(0x193)](_0x56b4c8[_0x45af2a(0x1b6)][_0x45af2a(0x1d5)]);}else _0x137826(_0x56b4c8[_0x45af2a(0x19f)])||_0xe63cb0(_0x45af2a(0x1a6),{'chunk':_0x56b4c8});}}else this[_0x45af2a(0x1b4)]=_0x56b4c8[_0x45af2a(0x1b6)][_0x45af2a(0x1a3)];}else this[_0x45af2a(0x1a9)]=_0x56b4c8[_0x45af2a(0x1b6)][_0x45af2a(0x1a9)];}}finally{this[_0x45af2a(0x192)]||(_0x435658[_0x45af2a(0x1c7)]>0x0&&(this[_0x45af2a(0x1aa)][_0x45af2a(0x1ca)]=_0x435658[_0x45af2a(0x1c3)](0x0)),this[_0x45af2a(0x190)](),this[_0x45af2a(0x1bb)](_0x45af2a(0x1a5),this));}}[_0x5ea14f(0x19d)](){const _0x1d8af1=_0x5ea14f;this[_0x1d8af1(0x192)]||(this[_0x1d8af1(0x190)](),this[_0x1d8af1(0x1bb)](_0x1d8af1(0x1cd),this));}[_0x5ea14f(0x1b0)](_0xeb9c6f){const _0x32a14f=_0x5ea14f;return this[_0x32a14f(0x1d2)][_0x32a14f(0x194)](_0x2554f5=>_0x2554f5['id']===_0xeb9c6f);}[_0x5ea14f(0x1b3)](){const _0x5bc3a2=_0x5ea14f;this[_0x5bc3a2(0x1c0)]||(this[_0x5bc3a2(0x19d)](),this[_0x5bc3a2(0x1d2)][_0x5bc3a2(0x199)](_0x4b369e=>_0x4b369e[_0x5bc3a2(0x1b3)]()),this[_0x5bc3a2(0x1d2)]=[],this[_0x5bc3a2(0x1c0)]=!0x0,this[_0x5bc3a2(0x1bb)](_0x5bc3a2(0x1c5),this),this[_0x5bc3a2(0x1cf)]());}[_0x5ea14f(0x19b)](_0x414299){const _0x1ebabb=_0x5ea14f,_0x5af6af=new _0x9d984e({'editor':this[_0x1ebabb(0x1d0)],'documentContextContent':this[_0x1ebabb(0x1a4)]()?.[_0x1ebabb(0x197)],..._0x414299});return this[_0x1ebabb(0x1d2)][_0x1ebabb(0x19e)](_0x5af6af),_0x5af6af[_0x1ebabb(0x1b1)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x1ebabb(0x1bb)](_0x1ebabb(0x1c2),_0x5af6af),_0x5af6af;}[_0x5ea14f(0x1b5)](_0x42d06b,_0x12fabc=!0x1){const _0xc3b437=_0x5ea14f;this[_0xc3b437(0x1bb)](_0xc3b437(0x1b5),_0x42d06b,_0x12fabc);}[_0x5ea14f(0x190)](){const _0x25ba06=_0x5ea14f;this[_0x25ba06(0x192)]=!0x0,this[_0x25ba06(0x195)]&&this[_0x25ba06(0x195)][_0x25ba06(0x19a)][_0x25ba06(0x1d4)](),this[_0x25ba06(0x1aa)]&&this[_0x25ba06(0x1aa)][_0x25ba06(0x1ac)](),this[_0x25ba06(0x195)]=this[_0x25ba06(0x1aa)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x26bf(_0x205cbe,_0xfa55d5){const _0x52e3be=_0x52e3();return _0x26bf=function(_0x26bfed,_0x345532){_0x26bfed=_0x26bfed-0x1a1;let _0x4ce449=_0x52e3be[_0x26bfed];return _0x4ce449;},_0x26bf(_0x205cbe,_0xfa55d5);}const _0x51e214=_0x26bf;(function(_0x464adc,_0x172d60){const _0x4b4c0f=_0x26bf,_0x84018f=_0x464adc();while(!![]){try{const _0x40d906=-parseInt(_0x4b4c0f(0x1c3))/0x1+parseInt(_0x4b4c0f(0x1c7))/0x2*(-parseInt(_0x4b4c0f(0x1b5))/0x3)+parseInt(_0x4b4c0f(0x1a2))/0x4*(parseInt(_0x4b4c0f(0x1ce))/0x5)+-parseInt(_0x4b4c0f(0x1a4))/0x6*(parseInt(_0x4b4c0f(0x1c9))/0x7)+parseInt(_0x4b4c0f(0x1aa))/0x8+parseInt(_0x4b4c0f(0x1b8))/0x9+parseInt(_0x4b4c0f(0x1b9))/0xa*(-parseInt(_0x4b4c0f(0x1c8))/0xb);if(_0x40d906===_0x172d60)break;else _0x84018f['push'](_0x84018f['shift']());}catch(_0x185398){_0x84018f['push'](_0x84018f['shift']());}}}(_0x52e3,0x6beb0));import{CKEditorError as _0x5d22e0,EmitterMixin as _0x14c13b,logWarning as _0x47dae3}from'ckeditor5/src/utils.js';import{getTranslation as _0x3f7244}from'../utils/common-translations.js';export class AIModels extends _0x14c13b(){[_0x51e214(0x1a3)];[_0x51e214(0x1a1)];[_0x51e214(0x1af)];[_0x51e214(0x1a7)]=[];constructor({connector:_0x3982cf,availableModels:_0x33d21b,defaultModelId:_0x3de551}){const _0x19961f=_0x51e214;super(),this[_0x19961f(0x1a3)]=_0x3982cf,this[_0x19961f(0x1a1)]=_0x33d21b,this[_0x19961f(0x1af)]=_0x3de551;}async[_0x51e214(0x1b7)](){const _0x4ec3f7=_0x51e214;if(!this[_0x4ec3f7(0x1a7)][_0x4ec3f7(0x1c0)])try{const _0x5461b9=this[_0x4ec3f7(0x1a3)][_0x4ec3f7(0x1ad)](),_0x504a5a=await _0x5461b9[_0x4ec3f7(0x1a5)]();this[_0x4ec3f7(0x1a7)]=_0x504a5a[_0x4ec3f7(0x1ca)];}catch(_0x14fb6e){throw new _0x5d22e0(_0x4ec3f7(0x1b2),null,{'error':_0x14fb6e});}return[...this[_0x4ec3f7(0x1a7)]];}async[_0x51e214(0x1bf)](){const _0x12da4a=_0x51e214,_0x126c25=await this[_0x12da4a(0x1b7)]();return this[_0x12da4a(0x1cc)](_0x126c25,this[_0x12da4a(0x1a1)]);}async[_0x51e214(0x1cd)](_0x8007f2){const _0x58ede4=_0x51e214,_0x45fa2d=await this[_0x58ede4(0x1b7)]();if(!_0x45fa2d[_0x58ede4(0x1c0)])return null;if(_0x8007f2){const _0x44a07d=this[_0x58ede4(0x1b0)](_0x45fa2d,_0x8007f2);if(_0x44a07d)return _0x44a07d;_0x47dae3(_0x58ede4(0x1ab),{'modelId':_0x8007f2,'fallBackModelId':this[_0x58ede4(0x1af)]});}return this[_0x58ede4(0x1b6)]();}async[_0x51e214(0x1b6)](){const _0x861d5b=_0x51e214,_0x4f3bc1=await this[_0x861d5b(0x1bf)]();if(!_0x4f3bc1[_0x861d5b(0x1c0)])return null;if(this[_0x861d5b(0x1af)]){const _0x3c36bb=this[_0x861d5b(0x1b0)](_0x4f3bc1,this[_0x861d5b(0x1af)]);if(_0x3c36bb)return _0x3c36bb;_0x47dae3(_0x861d5b(0x1c4),{'defaultModelId':this[_0x861d5b(0x1af)],'fallBackModelId':_0x4f3bc1[0x0]['id']});}return _0x4f3bc1[0x0];}async[_0x51e214(0x1cb)](_0x3f2b2d){const _0x3a2ebe=_0x51e214;return(await this[_0x3a2ebe(0x1bf)]())[_0x3a2ebe(0x1b4)](_0x14a829=>_0x14a829[_0x3a2ebe(0x1bd)]===_0x3f2b2d[_0x3a2ebe(0x1bd)]&&_0x14a829[_0x3a2ebe(0x1a6)]===_0x3f2b2d[_0x3a2ebe(0x1a6)]);}[_0x51e214(0x1cc)](_0x33b6a0,_0x455405){const _0x361431=_0x51e214;let _0x5cee28;if(_0x455405){_0x5cee28=[];const _0x6d5ca0=_0x361431(0x1b1)==typeof _0x455405?[_0x455405[_0x361431(0x1be)]()]:_0x455405[_0x361431(0x1ba)](_0x4a66d2=>_0x4a66d2[_0x361431(0x1be)]());for(const _0x1ff332 of _0x6d5ca0)for(const _0x56a652 of _0x33b6a0)(_0x56a652['id'][_0x361431(0x1be)]()===_0x1ff332||_0x56a652[_0x361431(0x1bd)][_0x361431(0x1be)]()===_0x1ff332||Me(_0x56a652)&&_0x361431(0x1bc)===_0x1ff332||_0x56a652[_0x361431(0x1a6)][_0x361431(0x1be)]()===_0x1ff332||_0x56a652['id'][_0x361431(0x1be)]()[_0x361431(0x1c6)](_0x1ff332))&&_0x5cee28[_0x361431(0x1ae)](_0x56a652);}else _0x5cee28=_0x33b6a0;return _0x5cee28;}[_0x51e214(0x1b0)](_0x12b46b,_0x561ffd){const _0x3b81aa=_0x51e214;return _0x12b46b[_0x3b81aa(0x1ac)](_0x522e78=>Me(_0x522e78)&&_0x3b81aa(0x1bc)===_0x561ffd?_0x522e78:_0x522e78['id']===_0x561ffd)||null;}static[_0x51e214(0x1c5)](_0x488077,_0x5f3531){const _0x1b6e22=_0x51e214;return _0x5f3531[_0x1b6e22(0x1ba)](_0x26f37a=>{const _0x482273=_0x1b6e22;if(Me(_0x26f37a))_0x26f37a[_0x482273(0x1bd)]=_0x3f7244(_0x488077,_0x482273(0x1c2)),_0x26f37a[_0x482273(0x1a8)]=_0x3f7244(_0x488077,_0x482273(0x1bb));else _0x3f7244(_0x488077,_0x482273(0x1b3)+_0x26f37a['id'][_0x482273(0x1a9)]())[_0x482273(0x1c6)](_0x482273(0x1b3))||(_0x26f37a[_0x482273(0x1a8)]=_0x3f7244(_0x488077,_0x482273(0x1b3)+_0x26f37a['id'][_0x482273(0x1a9)]()));return _0x26f37a;});}}function Me(_0x20747d){const _0x4ded47=_0x51e214;return _0x20747d['id'][_0x4ded47(0x1c6)](_0x4ded47(0x1c1));}function _0x52e3(){const _0x221329=['auto','name','toLocaleLowerCase','getAvailableModels','length','agent','AI_MODEL_NAME_AUTO','258699ZCzZNV','ai-chat-default-model-id-unrecognized','getLocalized','startsWith','28068OitzDT','5764iAzdbr','6139srSnmS','items','isAvailable','_filterModels','getModel','605XERhXP','_availableModels','14040LcwooA','_connector','4974VaPklL','list','provider','_modelList','description','toUpperCase','2964160MLHDYz','ai-chat-model-id-unrecognized','find','getModels','push','_defaultModelId','_getModelById','string','ai-models-unable-to-retrieve','AI_MODEL_DESCRIPTION_','some','9aflvVT','getDefault','getAll','6217920TmNryX','310ejHvfk','map','AI_MODEL_DESCRIPTION_AUTO'];_0x52e3=function(){return _0x221329;};return _0x52e3();}
23
+ const _0x1716a0=_0x3a55;function _0x3a55(_0xcd5ce7,_0x4c1bce){const _0x426857=_0x4268();return _0x3a55=function(_0x3a55a9,_0xd6864e){_0x3a55a9=_0x3a55a9-0x19c;let _0x37752e=_0x426857[_0x3a55a9];return _0x37752e;},_0x3a55(_0xcd5ce7,_0x4c1bce);}(function(_0x530d20,_0x26c426){const _0x2cef9d=_0x3a55,_0x4f2014=_0x530d20();while(!![]){try{const _0x1f5bd9=parseInt(_0x2cef9d(0x1bd))/0x1+-parseInt(_0x2cef9d(0x1b9))/0x2+-parseInt(_0x2cef9d(0x1c5))/0x3+parseInt(_0x2cef9d(0x1be))/0x4*(parseInt(_0x2cef9d(0x1ab))/0x5)+-parseInt(_0x2cef9d(0x1a3))/0x6*(-parseInt(_0x2cef9d(0x1ae))/0x7)+parseInt(_0x2cef9d(0x1ad))/0x8+-parseInt(_0x2cef9d(0x1c8))/0x9*(parseInt(_0x2cef9d(0x1bf))/0xa);if(_0x1f5bd9===_0x26c426)break;else _0x4f2014['push'](_0x4f2014['shift']());}catch(_0x2e4eb5){_0x4f2014['push'](_0x4f2014['shift']());}}}(_0x4268,0xb7125));import{CKEditorError as _0x2f81e7,EmitterMixin as _0x5b02e8,logWarning as _0x250108}from'ckeditor5/src/utils.js';import{getTranslation as _0x267301}from'../utils/common-translations.js';export class AIModels extends _0x5b02e8(){[_0x1716a0(0x1a7)];[_0x1716a0(0x1a2)];[_0x1716a0(0x1b0)];[_0x1716a0(0x1aa)]=[];constructor({connector:_0x1ea1f6,availableModels:_0x4dd215,defaultModelId:_0x25d794}){const _0x4bf9aa=_0x1716a0;super(),this[_0x4bf9aa(0x1a7)]=_0x1ea1f6,this[_0x4bf9aa(0x1a2)]=_0x4dd215,this[_0x4bf9aa(0x1b0)]=_0x25d794;}async[_0x1716a0(0x1c0)](){const _0x51f7c1=_0x1716a0;if(!this[_0x51f7c1(0x1aa)][_0x51f7c1(0x1b5)])try{const _0x3f94f6=this[_0x51f7c1(0x1a7)][_0x51f7c1(0x1a1)](),_0x262dd2=await _0x3f94f6[_0x51f7c1(0x1a6)]();this[_0x51f7c1(0x1aa)]=_0x262dd2[_0x51f7c1(0x1c4)];}catch(_0x26b2aa){throw new _0x2f81e7(_0x51f7c1(0x1b6),null,{'error':_0x26b2aa});}return[...this[_0x51f7c1(0x1aa)]];}async[_0x1716a0(0x1a9)](){const _0x2a5741=_0x1716a0,_0x529ab1=await this[_0x2a5741(0x1c0)]();return this[_0x2a5741(0x1b7)](_0x529ab1,this[_0x2a5741(0x1a2)]);}async[_0x1716a0(0x1b3)](_0x2fc7a1){const _0x5099f7=_0x1716a0,_0x2928a9=await this[_0x5099f7(0x1c0)]();if(!_0x2928a9[_0x5099f7(0x1b5)])return null;if(_0x2fc7a1){const _0x4ba269=this[_0x5099f7(0x19f)](_0x2928a9,_0x2fc7a1);if(_0x4ba269)return _0x4ba269;_0x250108(_0x5099f7(0x1a0),{'modelId':_0x2fc7a1,'fallBackModelId':this[_0x5099f7(0x1b0)]});}return this[_0x5099f7(0x19d)]();}async[_0x1716a0(0x19d)](){const _0x4c8d9=_0x1716a0,_0x355862=await this[_0x4c8d9(0x1a9)]();if(!_0x355862[_0x4c8d9(0x1b5)])return null;if(this[_0x4c8d9(0x1b0)]){const _0x1fae16=this[_0x4c8d9(0x19f)](_0x355862,this[_0x4c8d9(0x1b0)]);if(_0x1fae16)return _0x1fae16;_0x250108(_0x4c8d9(0x1af),{'defaultModelId':this[_0x4c8d9(0x1b0)],'fallBackModelId':_0x355862[0x0]['id']});}return _0x355862[0x0];}async[_0x1716a0(0x1bb)](_0x5c74e4){const _0x32ade1=_0x1716a0;return(await this[_0x32ade1(0x1a9)]())[_0x32ade1(0x19c)](_0x1a3961=>_0x1a3961[_0x32ade1(0x1c3)]===_0x5c74e4[_0x32ade1(0x1c3)]&&_0x1a3961[_0x32ade1(0x1a4)]===_0x5c74e4[_0x32ade1(0x1a4)]);}[_0x1716a0(0x1b7)](_0x55420f,_0x6623bc){const _0x5db224=_0x1716a0;let _0x4d36e2;if(_0x6623bc){_0x4d36e2=[];const _0x3df2c1=_0x5db224(0x1c1)==typeof _0x6623bc?[_0x6623bc[_0x5db224(0x1c7)]()]:_0x6623bc[_0x5db224(0x1a5)](_0x1bd845=>_0x1bd845[_0x5db224(0x1c7)]());for(const _0x2983ba of _0x3df2c1)for(const _0x355cb0 of _0x55420f)(_0x355cb0['id'][_0x5db224(0x1c7)]()===_0x2983ba||_0x355cb0[_0x5db224(0x1c3)][_0x5db224(0x1c7)]()===_0x2983ba||Oe(_0x355cb0)&&_0x5db224(0x1ac)===_0x2983ba||_0x355cb0[_0x5db224(0x1a4)][_0x5db224(0x1c7)]()===_0x2983ba||_0x355cb0['id'][_0x5db224(0x1c7)]()[_0x5db224(0x1ba)](_0x2983ba))&&_0x4d36e2[_0x5db224(0x1a8)](_0x355cb0);}else _0x4d36e2=_0x55420f;return _0x4d36e2;}[_0x1716a0(0x19f)](_0x326dc4,_0x54a28c){const _0x40d243=_0x1716a0;return _0x326dc4[_0x40d243(0x1c6)](_0x15e947=>Oe(_0x15e947)&&_0x40d243(0x1ac)===_0x54a28c?_0x15e947:_0x15e947['id']===_0x54a28c)||null;}static[_0x1716a0(0x19e)](_0x57fcb4,_0x2d7453){const _0x2a6e5d=_0x1716a0;return _0x2d7453[_0x2a6e5d(0x1a5)](_0x5521f3=>{const _0x1b184f=_0x2a6e5d;if(Oe(_0x5521f3))_0x5521f3[_0x1b184f(0x1c3)]=_0x267301(_0x57fcb4,_0x1b184f(0x1c2)),_0x5521f3[_0x1b184f(0x1b4)]=_0x267301(_0x57fcb4,_0x1b184f(0x1b2));else _0x267301(_0x57fcb4,_0x1b184f(0x1b8)+_0x5521f3['id'][_0x1b184f(0x1b1)]())[_0x1b184f(0x1ba)](_0x1b184f(0x1b8))||(_0x5521f3[_0x1b184f(0x1b4)]=_0x267301(_0x57fcb4,_0x1b184f(0x1b8)+_0x5521f3['id'][_0x1b184f(0x1b1)]()));return _0x5521f3;});}}function Oe(_0x5b0a99){const _0x43b27e=_0x1716a0;return _0x5b0a99['id'][_0x43b27e(0x1ba)](_0x43b27e(0x1bc));}function _0x4268(){const _0x4d1383=['AI_MODEL_DESCRIPTION_','2171272ZFBeKI','startsWith','isAvailable','agent','413828krOhzV','108BgNlVO','2530YYGHac','getAll','string','AI_MODEL_NAME_AUTO','name','items','4335135WtJTHx','find','toLocaleLowerCase','3114RqynBq','some','getDefault','getLocalized','_getModelById','ai-chat-model-id-unrecognized','getModels','_availableModels','1921530gohIQd','provider','map','list','_connector','push','getAvailableModels','_modelList','212055NKaMNa','auto','11911200wpjkGf','7ywDCCe','ai-chat-default-model-id-unrecognized','_defaultModelId','toUpperCase','AI_MODEL_DESCRIPTION_AUTO','getModel','description','length','ai-models-unable-to-retrieve','_filterModels'];_0x4268=function(){return _0x4d1383;};return _0x4268();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39cafa=_0x5afe;(function(_0x413847,_0x1bf6d2){const _0x251b6e=_0x5afe,_0x33f8e9=_0x413847();while(!![]){try{const _0x36f614=-parseInt(_0x251b6e(0x14b))/0x1*(parseInt(_0x251b6e(0x129))/0x2)+parseInt(_0x251b6e(0x144))/0x3*(parseInt(_0x251b6e(0x147))/0x4)+-parseInt(_0x251b6e(0x155))/0x5*(-parseInt(_0x251b6e(0x14f))/0x6)+-parseInt(_0x251b6e(0x14d))/0x7+-parseInt(_0x251b6e(0x120))/0x8+-parseInt(_0x251b6e(0x159))/0x9+-parseInt(_0x251b6e(0x13a))/0xa*(-parseInt(_0x251b6e(0x112))/0xb);if(_0x36f614===_0x1bf6d2)break;else _0x33f8e9['push'](_0x33f8e9['shift']());}catch(_0x36d995){_0x33f8e9['push'](_0x33f8e9['shift']());}}}(_0x2dde,0x8f50c));import{CKEditorError as _0xd00e30,ObservableMixin as _0x4b4ade,uid as _0x5b4e7e}from'ckeditor5/src/utils.js';function _0x5afe(_0x57bc23,_0x59db49){const _0x2ddef2=_0x2dde();return _0x5afe=function(_0x5afe05,_0x41c679){_0x5afe05=_0x5afe05-0x10a;let _0x5e5d47=_0x2ddef2[_0x5afe05];return _0x5e5d47;},_0x5afe(_0x57bc23,_0x59db49);}import{Element as _0x1afbf7,findAll as _0x33986f,getAttribute as _0x2d8dae,getParents as _0x1545f1,Document as _0x3332dd,parse as _0x361701,Text as _0x379eee}from'../utils/htmlparser.js';import{AIResponseParser as _0x4b13ac}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x3091be}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x52995c}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x20330c}from'../utils/common-translations.js';function _0x2dde(){const _0x2afbff=['areActionsDisabled','web-search','withoutDiff','text-delta','push','setChangeGroupState','434193DfRoRd','includes','interactionId','28nVOgge','modification-delta','state','appendContent','316jJBThJ','ai-get-editor-from-context-no-editor','3267943XVBbKg','sources','14154CkKGMw','indexOf','_getDifferentChangeGroups','modified','convertMarkdownToHTML','change:content','1250eCeLrg','conversation-title','stopListening','ai-reply-get-content-parts-group-not-found','6311925ekWzTY','editor','modifiedNodeIds','getContentParts','_getCachedContentParts','removed','span','find','color:\x20#808080;\x20font-style:\x20italic','removedNodeIds','newNodeIds','parsedMergedContent','data-id','done','reasoning','replyChangeGroupStateUpdated','96547Xusxei','set','locale','every','source','changes','nextSibling','parseAndNormalizeHTML','withDiff','length','forEach','map','documentContextContent','_setCachedContentParts','1539184nbTpqX','cachedSuggestionContentParts','pending','splice','content','previousSibling','type','cloneNode','index','2540AQeRWV','merge','aiResponseApplier','replyContentUpdated','data-unstable','changeGroups','destroy','fire','parsedContent','node','new','unshift','context','updateChangeGroups','values','aiResponseParser','filter','850qjrGGu','onContentChange','isDone','AI_SUGGESTION_CONTENT_PART_REMOVED'];_0x2dde=function(){return _0x2afbff;};return _0x2dde();}import{cloneDeep as _0x4d0dfb}from'es-toolkit';export const AI_REPLY_TYPES=[_0x39cafa(0x148),_0x39cafa(0x141),_0x39cafa(0x13f),_0x39cafa(0x110)];export const AI_REPLY_TYPES_IGNORED=[_0x39cafa(0x156)];export const AI_REPLY_TITLE_TYPE=_0x39cafa(0x156);export class AIReply extends _0x4b4ade(){['id'];[_0x39cafa(0x146)];[_0x39cafa(0x126)];[_0x39cafa(0x14e)]=[];[_0x39cafa(0x131)]=new _0x3332dd([]);[_0x39cafa(0x10d)]=new _0x3332dd([]);[_0x39cafa(0x12e)]=[];[_0x39cafa(0x13e)]=!0x1;[_0x39cafa(0x11e)];[_0x39cafa(0x138)];[_0x39cafa(0x12b)];[_0x39cafa(0x15a)];[_0x39cafa(0x121)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0xcb1212,content:_0x334ad7='',isDone:_0x1cb1e0=!0x1,interactionId:_0x57d817,areActionsDisabled:_0x133d51,documentContextContent:_0x4f9676,editor:_0x429b6e,id:_0x239681}){const _0x49ba85=_0x39cafa;super(),this['id']=_0x239681||_0x5b4e7e(),this[_0x49ba85(0x146)]=_0x57d817,this[_0x49ba85(0x126)]=_0xcb1212,this[_0x49ba85(0x13e)]=!!_0x133d51,this[_0x49ba85(0x15a)]=_0x429b6e,this[_0x49ba85(0x138)]=new _0x4b13ac(),this[_0x49ba85(0x12b)]=new _0x3091be(),this[_0x49ba85(0x11e)]=_0x361701(_0x4f9676||''),this[_0x49ba85(0x113)](_0x49ba85(0x13c),_0x1cb1e0),this['on'](_0x49ba85(0x154),()=>{const _0x1af39d=_0x49ba85;this[_0x1af39d(0x13b)]();}),this[_0x49ba85(0x113)](_0x49ba85(0x124),_0x334ad7);}[_0x39cafa(0x14a)](_0x3b8d0b){const _0x53ddf6=_0x39cafa;this[_0x53ddf6(0x113)](_0x53ddf6(0x124),this[_0x53ddf6(0x124)]+_0x3b8d0b);}[_0x39cafa(0x10f)](){const _0x5733d2=_0x39cafa;this[_0x5733d2(0x13c)]||(this[_0x5733d2(0x113)](_0x5733d2(0x13c),!0x0),this[_0x5733d2(0x13b)]());}[_0x39cafa(0x12f)](){const _0x1ba02a=_0x39cafa;this[_0x1ba02a(0x157)]();}[_0x39cafa(0x143)](_0x553e86,_0x5a2eaa){const _0x315548=_0x39cafa;this[_0x315548(0x12e)][_0x553e86][_0x315548(0x149)]=_0x5a2eaa,this[_0x315548(0x130)](_0x315548(0x111),{'reply':this,'index':_0x553e86,'state':_0x5a2eaa});}[_0x39cafa(0x15c)]({showDiff:_0x171aa6,groupIndex:_0x327bda}){const _0x31b1fd=_0x39cafa;if(!this[_0x31b1fd(0x15a)])throw new _0xd00e30(_0x31b1fd(0x14c),null,{'aiReply':this});const _0xb1c9f1=this[_0x31b1fd(0x15d)](_0x171aa6,_0x327bda);if(_0xb1c9f1)return _0xb1c9f1;let _0x4020cc=[];if(void 0x0===_0x327bda)_0x4020cc=this[_0x31b1fd(0x12e)];else{const _0x1dc2d6=this[_0x31b1fd(0x12e)][_0x31b1fd(0x160)](({index:_0x1e6e87})=>_0x1e6e87===_0x327bda);if(!_0x1dc2d6)throw new _0xd00e30(_0x31b1fd(0x158),null,{'aiReply':this,'groupIndex':_0x327bda});_0x4020cc=[_0x1dc2d6];}const _0x3a9e7c=_0x52995c({'editor':this[_0x31b1fd(0x15a)],'showDiff':_0x171aa6,'changeGroups':_0x4020cc,'documentContextContent':this[_0x31b1fd(0x11e)]});return this[_0x31b1fd(0x11f)](_0x171aa6,_0x3a9e7c),_0x3a9e7c;}[_0x39cafa(0x15d)](_0x533a74,_0x3567df){const _0x192fa9=_0x39cafa,_0x4d6560=_0x533a74?_0x192fa9(0x11a):_0x192fa9(0x140);if(!this[_0x192fa9(0x121)][_0x4d6560][_0x192fa9(0x11b)])return null;const _0x345400=this[_0x192fa9(0x121)][_0x4d6560];if(void 0x0===_0x3567df)return _0x4d0dfb(_0x345400);{const _0x1062b3=_0x345400[_0x192fa9(0x160)](({index:_0x41e86d})=>_0x41e86d===_0x3567df);if(_0x1062b3)return[_0x4d0dfb(_0x1062b3)];}return null;}[_0x39cafa(0x11f)](_0x1a2ae2,_0xaf677d){const _0x354a84=_0x39cafa,_0x28e741=_0x1a2ae2?_0x354a84(0x11a):_0x354a84(0x140);_0xaf677d[_0x354a84(0x11c)](_0x14b664=>{const _0x3872a4=_0x354a84,_0x124426=this[_0x3872a4(0x121)][_0x28e741],_0x3e3919=_0x124426[_0x3872a4(0x160)](({index:_0x11b3af})=>_0x11b3af===_0x14b664[_0x3872a4(0x128)]);if(_0x3e3919){const _0x2b8c0b=_0x124426[_0x3872a4(0x150)](_0x3e3919);_0x124426[_0x3872a4(0x123)](_0x2b8c0b,0x1,_0x14b664);}else _0x124426[_0x3872a4(0x142)](_0x14b664);});}[_0x39cafa(0x13b)](){const _0x3d67dd=_0x39cafa;if(_0x3d67dd(0x148)===this[_0x3d67dd(0x126)]){this[_0x3d67dd(0x131)]=this[_0x3d67dd(0x138)][_0x3d67dd(0x119)](this[_0x3d67dd(0x124)]);const _0x413c93=this[_0x3d67dd(0x12e)];this[_0x3d67dd(0x136)]();const _0xfab43e=this[_0x3d67dd(0x151)](_0x413c93,this[_0x3d67dd(0x12e)]);(_0xfab43e[_0x3d67dd(0x11b)]||this[_0x3d67dd(0x13c)])&&(this[_0x3d67dd(0x130)](_0x3d67dd(0x12c),this,_0xfab43e),this[_0x3d67dd(0x121)][_0x3d67dd(0x11a)][_0x3d67dd(0x11b)]=this[_0x3d67dd(0x121)][_0x3d67dd(0x140)][_0x3d67dd(0x11b)]=0x0);}else this[_0x3d67dd(0x131)]=this[_0x3d67dd(0x138)][_0x3d67dd(0x153)](this[_0x3d67dd(0x124)]),this[_0x3d67dd(0x130)](_0x3d67dd(0x12c),this);}[_0x39cafa(0x151)](_0xfd9d2d,_0x11893d){const _0x1726cf=_0x39cafa,_0x5264f7=[];for(const _0x2235f2 of _0x11893d){const _0x315a1a=_0xfd9d2d[_0x2235f2[_0x1726cf(0x128)]];_0x315a1a?_0x315a1a[_0x1726cf(0x117)][_0x1726cf(0x11b)]!==_0x2235f2[_0x1726cf(0x117)][_0x1726cf(0x11b)]?_0x5264f7[_0x1726cf(0x142)](_0x2235f2):_0x315a1a[_0x1726cf(0x117)][_0x1726cf(0x11c)]((_0x5d9811,_0x3c81c0)=>{const _0x239ef6=_0x1726cf,_0x357a3f=_0x2235f2[_0x239ef6(0x117)][_0x3c81c0];_0x5d9811['id']!==_0x357a3f['id']&&_0x5264f7[_0x239ef6(0x142)](_0x2235f2);}):_0x5264f7[_0x1726cf(0x142)](_0x2235f2);}return _0x5264f7;}[_0x39cafa(0x136)](){const _0x1ad6c9=_0x39cafa,_0x783659=new _0x1afbf7('p',{},[new _0x1afbf7(_0x1ad6c9(0x15f),{'style':_0x1ad6c9(0x10a)},[new _0x379eee(_0x20330c(this[_0x1ad6c9(0x15a)][_0x1ad6c9(0x114)],_0x1ad6c9(0x13d)))])]),_0x67a838=this[_0x1ad6c9(0x12b)][_0x1ad6c9(0x12a)](this[_0x1ad6c9(0x131)],this[_0x1ad6c9(0x11e)][_0x1ad6c9(0x127)](!0x0),{'markUnstableElements':!this[_0x1ad6c9(0x13c)],'replaceRemovedWith':_0x783659,'cutAfterLastChange':!this[_0x1ad6c9(0x13c)]});if(!_0x67a838[_0x1ad6c9(0x15b)][_0x1ad6c9(0x11b)]&&!this[_0x1ad6c9(0x13c)])return;this[_0x1ad6c9(0x10d)]=_0x67a838[_0x1ad6c9(0x131)];let _0x6b2adf=[];if(_0x33986f(_0x11fc85=>{const _0x7676fb=_0x1ad6c9,_0x531e17=_0x2d8dae(_0x11fc85,_0x7676fb(0x10e));if(!_0x531e17||!_0x471613(_0x531e17))return!0x1;const _0xe884a3=[_0x11fc85,..._0x1545f1(_0x11fc85)]['at'](-0x2);if(_0x11fc85!=_0xe884a3){const _0x188c11=_0x2d8dae(_0xe884a3,_0x7676fb(0x10e));_0x471613(_0x188c11)||(_0x6b2adf[_0x7676fb(0x142)]({'node':_0xe884a3,'id':_0x188c11,'type':_0x7676fb(0x152)}),_0x67a838[_0x7676fb(0x15b)][_0x7676fb(0x142)](_0x188c11));}else _0x67a838[_0x7676fb(0x15b)][_0x7676fb(0x145)](_0x531e17)?_0x6b2adf[_0x7676fb(0x142)]({'node':_0x11fc85,'type':_0x7676fb(0x152),'id':_0x531e17}):_0x67a838[_0x7676fb(0x10c)][_0x7676fb(0x145)](_0x531e17)?_0x6b2adf[_0x7676fb(0x142)]({'node':_0x11fc85,'type':_0x7676fb(0x133),'id':_0x531e17,'anchorId':_0x2d8dae(_0x11fc85[_0x7676fb(0x125)],_0x7676fb(0x10e))}):_0x6b2adf[_0x7676fb(0x142)]({'node':_0x11fc85,'type':_0x7676fb(0x15e),'id':_0x531e17});return!0x0;},this[_0x1ad6c9(0x10d)]),_0x6b2adf=_0x6b2adf[_0x1ad6c9(0x139)](({node:_0x4e5238})=>[..._0x1545f1(_0x4e5238),_0x4e5238][_0x1ad6c9(0x115)](_0x154a0a=>!_0x2d8dae(_0x154a0a,_0x1ad6c9(0x12d)))),0x0==_0x6b2adf[_0x1ad6c9(0x11b)])return;const _0x502ebe=[[_0x6b2adf[0x0]]];for(let _0x196077=0x1;_0x196077<_0x6b2adf[_0x1ad6c9(0x11b)];_0x196077++){const _0x437e40=_0x502ebe[_0x502ebe[_0x1ad6c9(0x11b)]-0x1],_0x555154=_0x437e40[_0x437e40[_0x1ad6c9(0x11b)]-0x1];_0x6b2adf[_0x196077][_0x1ad6c9(0x132)][_0x1ad6c9(0x125)]==_0x555154[_0x1ad6c9(0x132)]&&_0x1ad6c9(0x152)!=_0x6b2adf[_0x196077][_0x1ad6c9(0x126)]&&_0x1ad6c9(0x152)!=_0x555154[_0x1ad6c9(0x126)]?_0x437e40[_0x1ad6c9(0x142)](_0x6b2adf[_0x196077]):_0x502ebe[_0x1ad6c9(0x142)]([_0x6b2adf[_0x196077]]);}for(const _0x483e8e of _0x502ebe){const _0x119b51=_0x483e8e[0x0],_0x568717=_0x483e8e[_0x483e8e[_0x1ad6c9(0x11b)]-0x1],_0x6dc09b=_0x2bf7e6(_0x119b51[_0x1ad6c9(0x132)][_0x1ad6c9(0x125)]);_0x6dc09b&&_0x483e8e[_0x1ad6c9(0x134)](_0x6dc09b);const _0x22627e=_0x2bf7e6(_0x568717[_0x1ad6c9(0x132)][_0x1ad6c9(0x118)]);_0x22627e&&_0x483e8e[_0x1ad6c9(0x142)](_0x22627e);}function _0x471613(_0x1d2482){const _0x2f5aa2=_0x1ad6c9;return _0x67a838[_0x2f5aa2(0x15b)][_0x2f5aa2(0x145)](_0x1d2482)||_0x67a838[_0x2f5aa2(0x10c)][_0x2f5aa2(0x145)](_0x1d2482)||_0x67a838[_0x2f5aa2(0x10b)][_0x2f5aa2(0x145)](_0x1d2482);}function _0x2bf7e6(_0x69ee61){const _0x220e41=_0x1ad6c9;if(_0x69ee61&&_0x2d8dae(_0x69ee61,_0x220e41(0x10e))&&!_0x2d8dae(_0x69ee61,_0x220e41(0x12d))){const _0x448335=_0x2d8dae(_0x69ee61,_0x220e41(0x10e));if(!_0x471613(_0x448335))return{'node':_0x69ee61,'type':_0x220e41(0x135),'id':_0x448335};}return null;}this[_0x1ad6c9(0x12e)]=_0x502ebe[_0x1ad6c9(0x11d)]((_0x43976b,_0x262c0b)=>({'changes':_0x43976b,'state':_0x1ad6c9(0x122),'index':_0x262c0b}));}}export function isValidReplyType(_0x4b4ad0){const _0x5af8bb=_0x39cafa;return Object[_0x5af8bb(0x137)](AI_REPLY_TYPES)[_0x5af8bb(0x145)](_0x4b4ad0);}export function isIgnoredReplyType(_0x4a8822){const _0x376495=_0x39cafa;return AI_REPLY_TYPES_IGNORED[_0x376495(0x145)](_0x4a8822);}export function isReplyTitleType(_0x2313b7){return _0x2313b7===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x1b025f){const _0x209152=_0x39cafa;return _0x209152(0x116)===_0x1b025f;}
23
+ const _0x5a6a09=_0x502e;(function(_0x12e90e,_0x5a5080){const _0x3d62a9=_0x502e,_0x2fea21=_0x12e90e();while(!![]){try{const _0x2e43a8=parseInt(_0x3d62a9(0x17a))/0x1+parseInt(_0x3d62a9(0x19b))/0x2+-parseInt(_0x3d62a9(0x159))/0x3+parseInt(_0x3d62a9(0x1a7))/0x4+parseInt(_0x3d62a9(0x18e))/0x5+parseInt(_0x3d62a9(0x18a))/0x6+-parseInt(_0x3d62a9(0x163))/0x7;if(_0x2e43a8===_0x5a5080)break;else _0x2fea21['push'](_0x2fea21['shift']());}catch(_0x6e0cb8){_0x2fea21['push'](_0x2fea21['shift']());}}}(_0x4074,0xbfbb9));import{CKEditorError as _0x18f3d3,ObservableMixin as _0x8ae443,uid as _0x5ad8e2}from'ckeditor5/src/utils.js';import{Element as _0x111c23,findAll as _0x1de8a3,getAttribute as _0x569a87,getParents as _0x4d101c,Document as _0xec67ae,parse as _0x5517ac,Text as _0x2fce5f}from'../utils/htmlparser.js';import{AIResponseParser as _0x3c9b1d}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x2e6e50}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x1b12f1}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x5e143f}from'../utils/common-translations.js';import{cloneDeep as _0x5a67e4}from'es-toolkit';export const AI_REPLY_TYPES=[_0x5a6a09(0x1a3),_0x5a6a09(0x16a),_0x5a6a09(0x15d),_0x5a6a09(0x15b)];export const AI_REPLY_TYPES_IGNORED=[_0x5a6a09(0x190)];export const AI_REPLY_TITLE_TYPE=_0x5a6a09(0x190);export class AIReply extends _0x8ae443(){['id'];[_0x5a6a09(0x160)];[_0x5a6a09(0x175)];[_0x5a6a09(0x19a)]=[];[_0x5a6a09(0x15c)]=new _0xec67ae([]);[_0x5a6a09(0x161)]=new _0xec67ae([]);[_0x5a6a09(0x16d)]=[];[_0x5a6a09(0x187)]=!0x1;[_0x5a6a09(0x182)];[_0x5a6a09(0x170)];[_0x5a6a09(0x177)];[_0x5a6a09(0x19c)];[_0x5a6a09(0x173)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x4ada3b,content:_0xac126='',isDone:_0x5e1c60=!0x1,interactionId:_0x1a6086,areActionsDisabled:_0x4b877a,documentContextContent:_0x55f320,editor:_0x36f9bf,id:_0x2eee8d}){const _0x5c8427=_0x5a6a09;super(),this['id']=_0x2eee8d||_0x5ad8e2(),this[_0x5c8427(0x160)]=_0x1a6086,this[_0x5c8427(0x175)]=_0x4ada3b,this[_0x5c8427(0x187)]=!!_0x4b877a,this[_0x5c8427(0x19c)]=_0x36f9bf,this[_0x5c8427(0x170)]=new _0x3c9b1d(),this[_0x5c8427(0x177)]=new _0x2e6e50(),this[_0x5c8427(0x182)]=_0x5517ac(_0x55f320||''),this[_0x5c8427(0x180)](_0x5c8427(0x167),_0x5e1c60),this['on'](_0x5c8427(0x16e),()=>{const _0x419b5d=_0x5c8427;this[_0x419b5d(0x191)]();}),this[_0x5c8427(0x180)](_0x5c8427(0x155),_0xac126);}[_0x5a6a09(0x174)](_0x397f73){const _0x32a7a5=_0x5a6a09;this[_0x32a7a5(0x180)](_0x32a7a5(0x155),this[_0x32a7a5(0x155)]+_0x397f73);}[_0x5a6a09(0x19e)](){const _0x585d70=_0x5a6a09;this[_0x585d70(0x167)]||(this[_0x585d70(0x180)](_0x585d70(0x167),!0x0),this[_0x585d70(0x191)]());}[_0x5a6a09(0x195)](){const _0x46319a=_0x5a6a09;this[_0x46319a(0x171)]();}[_0x5a6a09(0x192)](_0x450d6a,_0x31f37b){const _0x328456=_0x5a6a09;this[_0x328456(0x16d)][_0x450d6a][_0x328456(0x15f)]=_0x31f37b,this[_0x328456(0x198)](_0x328456(0x179),{'reply':this,'index':_0x450d6a,'state':_0x31f37b});}[_0x5a6a09(0x18f)]({showDiff:_0x585ecc,groupIndex:_0x244989}){const _0xb2ff02=_0x5a6a09;if(!this[_0xb2ff02(0x19c)])throw new _0x18f3d3(_0xb2ff02(0x18b),null,{'aiReply':this});const _0x32d554=this[_0xb2ff02(0x1a4)](_0x585ecc,_0x244989);if(_0x32d554)return _0x32d554;let _0x7d9945=[];if(void 0x0===_0x244989)_0x7d9945=this[_0xb2ff02(0x16d)];else{const _0x363259=this[_0xb2ff02(0x16d)][_0xb2ff02(0x184)](({index:_0x33fbd2})=>_0x33fbd2===_0x244989);if(!_0x363259)throw new _0x18f3d3(_0xb2ff02(0x18c),null,{'aiReply':this,'groupIndex':_0x244989});_0x7d9945=[_0x363259];}const _0x460cdc=_0x1b12f1({'editor':this[_0xb2ff02(0x19c)],'showDiff':_0x585ecc,'changeGroups':_0x7d9945,'documentContextContent':this[_0xb2ff02(0x182)]});return this[_0xb2ff02(0x17b)](_0x585ecc,_0x460cdc),_0x460cdc;}[_0x5a6a09(0x1a4)](_0x5e1942,_0x15d655){const _0x5b95e1=_0x5a6a09,_0x225a0d=_0x5e1942?_0x5b95e1(0x189):_0x5b95e1(0x194);if(!this[_0x5b95e1(0x173)][_0x225a0d][_0x5b95e1(0x181)])return null;const _0x29e111=this[_0x5b95e1(0x173)][_0x225a0d];if(void 0x0===_0x15d655)return _0x5a67e4(_0x29e111);{const _0x2023fd=_0x29e111[_0x5b95e1(0x184)](({index:_0x395b0f})=>_0x395b0f===_0x15d655);if(_0x2023fd)return[_0x5a67e4(_0x2023fd)];}return null;}[_0x5a6a09(0x17b)](_0x226b9e,_0x5bbbd6){const _0x4251cf=_0x5a6a09,_0x262c1b=_0x226b9e?_0x4251cf(0x189):_0x4251cf(0x194);_0x5bbbd6[_0x4251cf(0x19f)](_0x5c9bd6=>{const _0x388c80=_0x4251cf,_0x11fcf4=this[_0x388c80(0x173)][_0x262c1b],_0x566bfa=_0x11fcf4[_0x388c80(0x184)](({index:_0x550ab2})=>_0x550ab2===_0x5c9bd6[_0x388c80(0x178)]);if(_0x566bfa){const _0x43e060=_0x11fcf4[_0x388c80(0x157)](_0x566bfa);_0x11fcf4[_0x388c80(0x1a5)](_0x43e060,0x1,_0x5c9bd6);}else _0x11fcf4[_0x388c80(0x1a2)](_0x5c9bd6);});}[_0x5a6a09(0x191)](){const _0x413220=_0x5a6a09;if(_0x413220(0x1a3)===this[_0x413220(0x175)]){this[_0x413220(0x15c)]=this[_0x413220(0x170)][_0x413220(0x186)](this[_0x413220(0x155)]);const _0x17ea77=this[_0x413220(0x16d)];this[_0x413220(0x158)]();const _0x108ef4=this[_0x413220(0x166)](_0x17ea77,this[_0x413220(0x16d)]);(_0x108ef4[_0x413220(0x181)]||this[_0x413220(0x167)])&&(this[_0x413220(0x198)](_0x413220(0x162),this,_0x108ef4),this[_0x413220(0x173)][_0x413220(0x189)][_0x413220(0x181)]=this[_0x413220(0x173)][_0x413220(0x194)][_0x413220(0x181)]=0x0);}else this[_0x413220(0x15c)]=this[_0x413220(0x170)][_0x413220(0x156)](this[_0x413220(0x155)]),this[_0x413220(0x198)](_0x413220(0x162),this);}[_0x5a6a09(0x166)](_0x200683,_0x135769){const _0x4fd1a0=_0x5a6a09,_0x13102c=[];for(const _0x1b5bb4 of _0x135769){const _0x14208f=_0x200683[_0x1b5bb4[_0x4fd1a0(0x178)]];_0x14208f?_0x14208f[_0x4fd1a0(0x199)][_0x4fd1a0(0x181)]!==_0x1b5bb4[_0x4fd1a0(0x199)][_0x4fd1a0(0x181)]?_0x13102c[_0x4fd1a0(0x1a2)](_0x1b5bb4):_0x14208f[_0x4fd1a0(0x199)][_0x4fd1a0(0x19f)]((_0x2b6f37,_0x14eaaf)=>{const _0x1a93e3=_0x4fd1a0,_0x2cd593=_0x1b5bb4[_0x1a93e3(0x199)][_0x14eaaf];_0x2b6f37['id']!==_0x2cd593['id']&&_0x13102c[_0x1a93e3(0x1a2)](_0x1b5bb4);}):_0x13102c[_0x4fd1a0(0x1a2)](_0x1b5bb4);}return _0x13102c;}[_0x5a6a09(0x158)](){const _0x27a3c6=_0x5a6a09,_0x101079=new _0x111c23('p',{},[new _0x111c23(_0x27a3c6(0x1a0),{'style':_0x27a3c6(0x15e)},[new _0x2fce5f(_0x5e143f(this[_0x27a3c6(0x19c)][_0x27a3c6(0x16c)],_0x27a3c6(0x183)))])]),_0x585f53=this[_0x27a3c6(0x177)][_0x27a3c6(0x164)](this[_0x27a3c6(0x15c)],this[_0x27a3c6(0x182)][_0x27a3c6(0x17e)](!0x0),{'markUnstableElements':!this[_0x27a3c6(0x167)],'replaceRemovedWith':_0x101079,'cutAfterLastChange':!this[_0x27a3c6(0x167)]});if(!_0x585f53[_0x27a3c6(0x19d)][_0x27a3c6(0x181)]&&!this[_0x27a3c6(0x167)])return;this[_0x27a3c6(0x161)]=_0x585f53[_0x27a3c6(0x15c)];let _0x5c2e20=[];if(_0x1de8a3(_0x14a145=>{const _0x3d05cb=_0x27a3c6,_0x4d7017=_0x569a87(_0x14a145,_0x3d05cb(0x17c));if(!_0x4d7017||!_0x1cc961(_0x4d7017))return!0x1;const _0x5cc480=[_0x14a145,..._0x4d101c(_0x14a145)]['at'](-0x2);if(_0x14a145!=_0x5cc480){const _0x385bec=_0x569a87(_0x5cc480,_0x3d05cb(0x17c));_0x1cc961(_0x385bec)||(_0x5c2e20[_0x3d05cb(0x1a2)]({'node':_0x5cc480,'id':_0x385bec,'type':_0x3d05cb(0x16b)}),_0x585f53[_0x3d05cb(0x19d)][_0x3d05cb(0x1a2)](_0x385bec));}else _0x585f53[_0x3d05cb(0x19d)][_0x3d05cb(0x172)](_0x4d7017)?_0x5c2e20[_0x3d05cb(0x1a2)]({'node':_0x14a145,'type':_0x3d05cb(0x16b),'id':_0x4d7017}):_0x585f53[_0x3d05cb(0x1a6)][_0x3d05cb(0x172)](_0x4d7017)?_0x5c2e20[_0x3d05cb(0x1a2)]({'node':_0x14a145,'type':_0x3d05cb(0x17d),'id':_0x4d7017,'anchorId':_0x569a87(_0x14a145[_0x3d05cb(0x169)],_0x3d05cb(0x17c))}):_0x5c2e20[_0x3d05cb(0x1a2)]({'node':_0x14a145,'type':_0x3d05cb(0x188),'id':_0x4d7017});return!0x0;},this[_0x27a3c6(0x161)]),_0x5c2e20=_0x5c2e20[_0x27a3c6(0x17f)](({node:_0x2a9b94})=>[..._0x4d101c(_0x2a9b94),_0x2a9b94][_0x27a3c6(0x196)](_0x348ecd=>!_0x569a87(_0x348ecd,_0x27a3c6(0x15a)))),0x0==_0x5c2e20[_0x27a3c6(0x181)])return;const _0x153f7b=[[_0x5c2e20[0x0]]];for(let _0x3624f9=0x1;_0x3624f9<_0x5c2e20[_0x27a3c6(0x181)];_0x3624f9++){const _0x525ab4=_0x153f7b[_0x153f7b[_0x27a3c6(0x181)]-0x1],_0x331820=_0x525ab4[_0x525ab4[_0x27a3c6(0x181)]-0x1];_0x5c2e20[_0x3624f9][_0x27a3c6(0x1a1)][_0x27a3c6(0x169)]==_0x331820[_0x27a3c6(0x1a1)]&&_0x27a3c6(0x16b)!=_0x5c2e20[_0x3624f9][_0x27a3c6(0x175)]&&_0x27a3c6(0x16b)!=_0x331820[_0x27a3c6(0x175)]?_0x525ab4[_0x27a3c6(0x1a2)](_0x5c2e20[_0x3624f9]):_0x153f7b[_0x27a3c6(0x1a2)]([_0x5c2e20[_0x3624f9]]);}for(const _0x3e9577 of _0x153f7b){const _0x473003=_0x3e9577[0x0],_0x471709=_0x3e9577[_0x3e9577[_0x27a3c6(0x181)]-0x1],_0x43a93b=_0x3bdd7f(_0x473003[_0x27a3c6(0x1a1)][_0x27a3c6(0x169)]);_0x43a93b&&_0x3e9577[_0x27a3c6(0x176)](_0x43a93b);const _0x46f7bf=_0x3bdd7f(_0x471709[_0x27a3c6(0x1a1)][_0x27a3c6(0x193)]);_0x46f7bf&&_0x3e9577[_0x27a3c6(0x1a2)](_0x46f7bf);}function _0x1cc961(_0x25b024){const _0x341648=_0x27a3c6;return _0x585f53[_0x341648(0x19d)][_0x341648(0x172)](_0x25b024)||_0x585f53[_0x341648(0x1a6)][_0x341648(0x172)](_0x25b024)||_0x585f53[_0x341648(0x16f)][_0x341648(0x172)](_0x25b024);}function _0x3bdd7f(_0x57817d){const _0x2ce1f4=_0x27a3c6;if(_0x57817d&&_0x569a87(_0x57817d,_0x2ce1f4(0x17c))&&!_0x569a87(_0x57817d,_0x2ce1f4(0x15a))){const _0x3b9d3d=_0x569a87(_0x57817d,_0x2ce1f4(0x17c));if(!_0x1cc961(_0x3b9d3d))return{'node':_0x57817d,'type':_0x2ce1f4(0x18d),'id':_0x3b9d3d};}return null;}this[_0x27a3c6(0x16d)]=_0x153f7b[_0x27a3c6(0x165)]((_0x5701f4,_0x1d363b)=>({'changes':_0x5701f4,'state':_0x27a3c6(0x168),'index':_0x1d363b}));}}function _0x502e(_0x395e94,_0x442923){const _0x40749d=_0x4074();return _0x502e=function(_0x502e8a,_0xdea561){_0x502e8a=_0x502e8a-0x155;let _0x54f79c=_0x40749d[_0x502e8a];return _0x54f79c;},_0x502e(_0x395e94,_0x442923);}export function isValidReplyType(_0x2b93d2){const _0x180d1f=_0x5a6a09;return Object[_0x180d1f(0x197)](AI_REPLY_TYPES)[_0x180d1f(0x172)](_0x2b93d2);}export function isIgnoredReplyType(_0x53e842){const _0x3dc555=_0x5a6a09;return AI_REPLY_TYPES_IGNORED[_0x3dc555(0x172)](_0x53e842);}function _0x4074(){const _0x4ab055=['find','source','parseAndNormalizeHTML','areActionsDisabled','removed','withDiff','8455974JtLhty','ai-get-editor-from-context-no-editor','ai-reply-get-content-parts-group-not-found','context','3419140ZgJxdy','getContentParts','conversation-title','onContentChange','setChangeGroupState','nextSibling','withoutDiff','destroy','every','values','fire','changes','sources','3114446MRETjZ','editor','modifiedNodeIds','done','forEach','span','node','push','modification-delta','_getCachedContentParts','splice','newNodeIds','2871988gQqNWo','content','convertMarkdownToHTML','indexOf','updateChangeGroups','2129388gYveAM','data-unstable','reasoning','parsedContent','web-search','color:\x20#808080;\x20font-style:\x20italic','state','interactionId','parsedMergedContent','replyContentUpdated','29118439xWwQlc','merge','map','_getDifferentChangeGroups','isDone','pending','previousSibling','text-delta','modified','locale','changeGroups','change:content','removedNodeIds','aiResponseParser','stopListening','includes','cachedSuggestionContentParts','appendContent','type','unshift','aiResponseApplier','index','replyChangeGroupStateUpdated','1286533xXPBCY','_setCachedContentParts','data-id','new','cloneNode','filter','set','length','documentContextContent','AI_SUGGESTION_CONTENT_PART_REMOVED'];_0x4074=function(){return _0x4ab055;};return _0x4074();}export function isReplyTitleType(_0x3d78cb){return _0x3d78cb===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x2dc516){const _0x45554c=_0x5a6a09;return _0x45554c(0x185)===_0x2dc516;}