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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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/aispinner.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  84. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  85. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  86. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  87. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  88. package/src/aicore/utils/createresizebutton.js +1 -1
  89. package/src/aicore/utils/documentrange.js +1 -1
  90. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  91. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  92. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  93. package/src/aicore/utils/htmlparser.js +1 -1
  94. package/src/aicore/utils/htmlstreamer.js +1 -1
  95. package/src/aieditorintegration/aieditorintegration.js +1 -1
  96. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  97. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  98. package/src/aiquickactions/aiquickactions.js +1 -1
  99. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  100. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  101. package/src/aiquickactions/aiquickactionsui.js +1 -1
  102. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  103. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  104. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  105. package/src/aireviewmode/aireviewmode.js +1 -1
  106. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  107. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  108. package/src/aireviewmode/aireviewmodeui.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
- 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));}}
23
+ function _0x3d1a(){const _0x480c35=['set','554974UIqmFV','indexOf','filter','setTemplate','1090zciRdf','find','ck-ai-chat-history__section','itemsViews','div','3342053ZATItY','addMany','isMatching','getItem','title','removeItem','remove','21263najkyb','highlightText','ck-hidden','ck-ai-chat-history__section-title','bindTemplate','70TjVXjP','58gacaQl','isVisible','items','8zNQBmv','666WKycAS','splice','64224TrUTuG','54921GZnFki','7150kDNuQh','19112QgTApE','length','24UYavHq','_itemsListView'];_0x3d1a=function(){return _0x480c35;};return _0x3d1a();}const _0x321aa6=_0xe5f1;(function(_0x2a47f0,_0x37c5a9){const _0x4286c9=_0xe5f1,_0x22045c=_0x2a47f0();while(!![]){try{const _0x411aa2=parseInt(_0x4286c9(0x198))/0x1*(-parseInt(_0x4286c9(0x190))/0x2)+parseInt(_0x4286c9(0x197))/0x3*(-parseInt(_0x4286c9(0x193))/0x4)+parseInt(_0x4286c9(0x18f))/0x5*(-parseInt(_0x4286c9(0x196))/0x6)+parseInt(_0x4286c9(0x19e))/0x7+-parseInt(_0x4286c9(0x199))/0x8*(parseInt(_0x4286c9(0x194))/0x9)+-parseInt(_0x4286c9(0x1a2))/0xa*(-parseInt(_0x4286c9(0x18a))/0xb)+parseInt(_0x4286c9(0x19b))/0xc*(parseInt(_0x4286c9(0x183))/0xd);if(_0x411aa2===_0x37c5a9)break;else _0x22045c['push'](_0x22045c['shift']());}catch(_0x1a862e){_0x22045c['push'](_0x22045c['shift']());}}}(_0x3d1a,0x3903f));function _0xe5f1(_0xf8b97d,_0x3919c5){const _0x3d1a04=_0x3d1a();return _0xe5f1=function(_0xe5f10b,_0x85843f){_0xe5f10b=_0xe5f10b-0x183;let _0x486cd9=_0x3d1a04[_0xe5f10b];return _0x486cd9;},_0xe5f1(_0xf8b97d,_0x3919c5);}import{ListItemView as _0x44c530,View as _0x5c4cc6,ListView as _0x2aa11d}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x44c530{[_0x321aa6(0x187)];[_0x321aa6(0x1a5)];[_0x321aa6(0x19c)];constructor(_0x13a0e5,{title:_0x101793,items:_0x34a846}){const _0x1739bd=_0x321aa6;super(_0x13a0e5);const _0x2bf980=this[_0x1739bd(0x18e)];this[_0x1739bd(0x19d)](_0x1739bd(0x191),!0x0),this[_0x1739bd(0x187)]=_0x101793,this[_0x1739bd(0x1a5)]=_0x34a846;const _0x223d02=new _0x5c4cc6(_0x13a0e5);_0x223d02[_0x1739bd(0x1a1)]({'tag':_0x1739bd(0x1a6),'attributes':{'class':[_0x1739bd(0x18d)]},'children':[this[_0x1739bd(0x187)]]}),this[_0x1739bd(0x19c)]=new _0x2aa11d(_0x13a0e5),this[_0x1739bd(0x19c)][_0x1739bd(0x192)][_0x1739bd(0x184)](this[_0x1739bd(0x1a5)]),this[_0x1739bd(0x1a1)]({'tag':'li','attributes':{'class':[_0x1739bd(0x1a4),_0x2bf980['if'](_0x1739bd(0x191),_0x1739bd(0x18c),_0xdef01=>!_0xdef01)]},'children':[_0x223d02,this[_0x1739bd(0x19c)]]});}[_0x321aa6(0x1a0)](_0x5f09bf){const _0x9db865=_0x321aa6,_0x5bf53d=this[_0x9db865(0x1a5)][_0x9db865(0x19a)];let _0x3adf32=0x0;for(const _0x4c2b60 of this[_0x9db865(0x1a5)]){if(_0x5f09bf){const _0x1e8d07=_0x4c2b60[_0x9db865(0x185)](_0x5f09bf);_0x4c2b60[_0x9db865(0x191)]=!!_0x1e8d07,_0x4c2b60[_0x9db865(0x18b)](_0x5f09bf);}else _0x4c2b60[_0x9db865(0x191)]=!0x0,_0x4c2b60[_0x9db865(0x18b)](null);_0x4c2b60[_0x9db865(0x191)]&&_0x3adf32++;}return this[_0x9db865(0x191)]=_0x3adf32>0x0,{'resultsCount':_0x3adf32,'totalItemsCount':_0x5bf53d};}[_0x321aa6(0x186)](_0x36cf4b){const _0x583240=_0x321aa6;return this[_0x583240(0x1a5)][_0x583240(0x1a3)](_0x428a88=>_0x428a88['id']===_0x36cf4b);}[_0x321aa6(0x188)](_0x994979){const _0x5e36f0=_0x321aa6,_0x4a9192=this[_0x5e36f0(0x1a5)][_0x5e36f0(0x19f)](_0x994979);-0x1!==_0x4a9192&&(this[_0x5e36f0(0x1a5)][_0x5e36f0(0x195)](_0x4a9192,0x1),this[_0x5e36f0(0x19c)][_0x5e36f0(0x192)][_0x5e36f0(0x189)](_0x994979));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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();}
23
+ const _0x350e69=_0x3a9b;function _0x1976(){const _0x5850c6=['84033VMPfKH','776iJNYIj','733931tYFqBz','211707NEgaTa','ck-ai-chat-history__sections','4rgcJUh','filter','sections','addMany','9168418MmaETn','extendTemplate','56780RwtGHc','items','341339VxthFU','376EqdIfx','5862402mvHhQF','530AjCbXx'];_0x1976=function(){return _0x5850c6;};return _0x1976();}function _0x3a9b(_0xec99d0,_0x419995){const _0x197678=_0x1976();return _0x3a9b=function(_0x3a9b18,_0x119c9b){_0x3a9b18=_0x3a9b18-0x168;let _0x1b817e=_0x197678[_0x3a9b18];return _0x1b817e;},_0x3a9b(_0xec99d0,_0x419995);}(function(_0x253495,_0x343487){const _0x41a191=_0x3a9b,_0x4566bf=_0x253495();while(!![]){try{const _0x16bf9f=-parseInt(_0x41a191(0x171))/0x1+parseInt(_0x41a191(0x169))/0x2*(-parseInt(_0x41a191(0x178))/0x3)+parseInt(_0x41a191(0x172))/0x4*(parseInt(_0x41a191(0x16f))/0x5)+-parseInt(_0x41a191(0x173))/0x6+-parseInt(_0x41a191(0x16d))/0x7+parseInt(_0x41a191(0x176))/0x8*(-parseInt(_0x41a191(0x175))/0x9)+-parseInt(_0x41a191(0x174))/0xa*(-parseInt(_0x41a191(0x177))/0xb);if(_0x16bf9f===_0x343487)break;else _0x4566bf['push'](_0x4566bf['shift']());}catch(_0x428501){_0x4566bf['push'](_0x4566bf['shift']());}}}(_0x1976,0xe2b9e));import{ListView as _0x274b5e}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x274b5e{[_0x350e69(0x16b)];constructor(_0x6864ae,_0x20041c){const _0x170c3f=_0x350e69;super(_0x6864ae),this[_0x170c3f(0x16b)]=_0x20041c,this[_0x170c3f(0x170)][_0x170c3f(0x16c)](this[_0x170c3f(0x16b)]),this[_0x170c3f(0x16e)]({'attributes':{'class':[_0x170c3f(0x168)]}});}[_0x350e69(0x16a)](_0x4710e1){const _0x3c9b54=_0x350e69;let _0x4989ab=0x0,_0xa635a1=0x0;for(const _0x36009d of this[_0x3c9b54(0x16b)]){const {resultsCount:_0x5ca266,totalItemsCount:_0x306b58}=_0x36009d[_0x3c9b54(0x16a)](_0x4710e1);_0x4989ab+=_0x5ca266,_0xa635a1+=_0x306b58;}return{'resultsCount':_0x4989ab,'totalItemsCount':_0xa635a1};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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);}}}
23
+ const _0x3c97a3=_0x4b4c;(function(_0x21cdf7,_0x5a3e56){const _0x339c94=_0x4b4c,_0x3d3462=_0x21cdf7();while(!![]){try{const _0x1f064b=-parseInt(_0x339c94(0x169))/0x1+parseInt(_0x339c94(0x17e))/0x2*(parseInt(_0x339c94(0x189))/0x3)+-parseInt(_0x339c94(0x17b))/0x4*(parseInt(_0x339c94(0x176))/0x5)+-parseInt(_0x339c94(0x17c))/0x6+-parseInt(_0x339c94(0x14b))/0x7+parseInt(_0x339c94(0x150))/0x8*(-parseInt(_0x339c94(0x182))/0x9)+parseInt(_0x339c94(0x191))/0xa;if(_0x1f064b===_0x5a3e56)break;else _0x3d3462['push'](_0x3d3462['shift']());}catch(_0x2810ef){_0x3d3462['push'](_0x3d3462['shift']());}}}(_0x1419,0x52a4b));import{View as _0x1bd8e4,SearchTextView as _0x193651,FormHeaderView as _0x59a2a4,ButtonView as _0xb8a249}from'ckeditor5/src/ui.js';import{IconAIHistory as _0xaf8765,IconCancel as _0x4aa1e7,IconPlus as _0x25a466}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x35c875}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x10c55a}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x5808d6}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x20d28d}from'../aichathistoryui.js';import{AISkeletonView as _0x10dcc8,SKELETON_DEFINITIONS as _0x565505}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x3fa6eb}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x3fad78}from'../../aicore/utils/common-translations.js';function _0x1419(){const _0x287233=['remove','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_refreshSearch','updateTitle','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','fire','title','AI_CHAT_HISTORY_SEARCH_LABEL','indexOf','10iGlOoA','skeletonView','isMaximized','ck-ai-chat__start-conversation','ck-hidden','541580faTqOE','1697568KBXgtD','searchView','4934ZDdSiZ','search','addMany','extendTemplate','135KlUMpa','_createSkeletonView','ck-ai-header\x20ck-ai-header_history','ck-ai-chat-error','AI_CHAT_HISTORY_HEADING','fieldView','ck-ai-chat-history','591CmSJdj','ck-reset_all','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-ai-chat-history__empty','splice','value','change:hasItems','emptyView','13516050xKezhQ','_createListItemViews','updateLoadingState','hasItems','ck-ai-chat-history__content','isSearchViewVisible','queryView','_createErrorView','add','change:errorMessage','removeHistoryItem','delegate','updateItemLoadingState','itemsViews','execute','ck-rounded-corners','errorMessage','_createEmptyStateView','removeItem','isEmptyViewVisible','set','2835273TeVpZH','AI_CHAT_LABEL_NEW_CHAT','_createSearchView','items','div','158552DzjvPz','bindTemplate','render','element','openChat','aiHistory','some','resizeButton','ltr','isVisible','ck-ai-chat-history__empty-message','updateHistoryItemsWithCategories','updateItemTitle','push','clear','_updateViewVisibility','setTemplate','locale','getItem','sectionsView','children','change:isLoading','isLoading','sections','errorView','243055MaePgS','length','bind','ck-ai-chat-error__dismiss-button'];_0x1419=function(){return _0x287233;};return _0x1419();}function _0x4b4c(_0x3ecf7e,_0x35dc79){const _0x141938=_0x1419();return _0x4b4c=function(_0x4b4c60,_0x471146){_0x4b4c60=_0x4b4c60-0x143;let _0x203da5=_0x141938[_0x4b4c60];return _0x203da5;},_0x4b4c(_0x3ecf7e,_0x35dc79);}export class AIChatHistoryView extends _0x1bd8e4{[_0x3c97a3(0x17d)];[_0x3c97a3(0x168)];[_0x3c97a3(0x177)];[_0x3c97a3(0x190)];[_0x3c97a3(0x163)];[_0x3c97a3(0x157)];constructor(_0x32867b,_0x1fbfaa){const _0x1a1017=_0x3c97a3;super(_0x32867b),this[_0x1a1017(0x14a)](_0x1a1017(0x194),!0x1),this[_0x1a1017(0x14a)](_0x1a1017(0x166),!0x0),this[_0x1a1017(0x14a)](_0x1a1017(0x146),''),this[_0x1a1017(0x14a)](_0x1a1017(0x178),!0x1),this[_0x1a1017(0x14a)](_0x1a1017(0x196),!0x1),this[_0x1a1017(0x14a)](_0x1a1017(0x149),!0x1);const _0x55c652=new _0x59a2a4(_0x32867b,{'label':_0x3fad78(_0x32867b,_0x1a1017(0x186)),'icon':_0xaf8765,'class':_0x1a1017(0x184)});_0x1fbfaa&&(this[_0x1a1017(0x157)]=_0x3fa6eb(_0x32867b,this),_0x55c652[_0x1a1017(0x164)][_0x1a1017(0x199)](this[_0x1a1017(0x157)])),this[_0x1a1017(0x163)]=new _0x35c875(_0x32867b,[]),this[_0x1a1017(0x163)][_0x1a1017(0x19c)](..._0x20d28d)['to'](this),this[_0x1a1017(0x168)]=this[_0x1a1017(0x198)](),this[_0x1a1017(0x177)]=this[_0x1a1017(0x183)](),this[_0x1a1017(0x190)]=this[_0x1a1017(0x147)](),this[_0x1a1017(0x17d)]=this[_0x1a1017(0x14d)](),this['on'](_0x1a1017(0x165),()=>this[_0x1a1017(0x15f)]()),this['on'](_0x1a1017(0x18f),()=>this[_0x1a1017(0x15f)]()),this['on'](_0x1a1017(0x19a),()=>this[_0x1a1017(0x15f)]()),this[_0x1a1017(0x160)]({'tag':_0x1a1017(0x14f),'attributes':{'class':['ck',_0x1a1017(0x18a),_0x1a1017(0x188),_0x1a1017(0x145)],'dir':_0x1a1017(0x158)},'children':[_0x55c652,{'tag':_0x1a1017(0x14f),'attributes':{'class':[_0x1a1017(0x195)]},'children':[this[_0x1a1017(0x177)],this[_0x1a1017(0x168)],this[_0x1a1017(0x190)],this[_0x1a1017(0x17d)]]}]});}[_0x3c97a3(0x15f)](){const _0x2499a8=_0x3c97a3;this[_0x2499a8(0x196)]=!this[_0x2499a8(0x166)]&&this[_0x2499a8(0x194)]&&!this[_0x2499a8(0x146)],this[_0x2499a8(0x149)]=!this[_0x2499a8(0x166)]&&!this[_0x2499a8(0x194)]&&!this[_0x2499a8(0x146)];}[_0x3c97a3(0x14d)](){const _0x9465f0=_0x3c97a3,_0x5de5ee=new _0x193651(this[_0x9465f0(0x161)],{'filteredView':this[_0x9465f0(0x163)],'queryView':{'label':_0x3fad78(this[_0x9465f0(0x161)],_0x9465f0(0x174))},'infoView':{'text':{'notFound':{'primary':_0x54a0f5=>_0x3fad78(this[_0x9465f0(0x161)],_0x9465f0(0x16e),_0x54a0f5),'secondary':_0x3fad78(this[_0x9465f0(0x161)],_0x9465f0(0x171))}}}});return _0x5de5ee['on'](_0x9465f0(0x152),()=>{const _0x2cfffc=_0x9465f0;this[_0x2cfffc(0x17d)][_0x2cfffc(0x164)][_0x2cfffc(0x199)](this[_0x2cfffc(0x168)],0x1);}),_0x5de5ee[_0x9465f0(0x181)]({'attributes':{'class':[this[_0x9465f0(0x151)]['if'](_0x9465f0(0x196),_0x9465f0(0x17a),_0x3cc4cc=>!_0x3cc4cc)]}}),_0x5de5ee;}[_0x3c97a3(0x183)](){const _0xccd21c=_0x3c97a3,_0x303b9f=new _0x10dcc8(this[_0xccd21c(0x161)],_0x565505[_0xccd21c(0x155)]);return _0x303b9f[_0xccd21c(0x181)]({'attributes':{'class':[this[_0xccd21c(0x151)]['if'](_0xccd21c(0x166),_0xccd21c(0x17a),_0x4a4aee=>!_0x4a4aee)]}}),_0x303b9f;}[_0x3c97a3(0x198)](){const _0x44e2bc=_0x3c97a3,_0xc30959=new _0x1bd8e4(this[_0x44e2bc(0x161)]),_0x4dbc8=new _0xb8a249(this[_0x44e2bc(0x161)]);return _0x4dbc8[_0x44e2bc(0x14a)]({'withText':!0x1,'icon':_0x4aa1e7,'class':_0x44e2bc(0x16c)}),_0x4dbc8[_0x44e2bc(0x16b)](_0x44e2bc(0x159))['to'](this,_0x44e2bc(0x194),_0x28cc94=>!!_0x28cc94),_0x4dbc8['on'](_0x44e2bc(0x144),()=>{const _0x349704=_0x44e2bc;this[_0x349704(0x146)]='';}),_0xc30959[_0x44e2bc(0x160)]({'tag':_0x44e2bc(0x14f),'attributes':{'class':['ck',_0x44e2bc(0x185),this[_0x44e2bc(0x151)]['if'](_0x44e2bc(0x146),_0x44e2bc(0x17a),_0x593f66=>!_0x593f66)]},'children':[{'tag':'p','children':[{'text':this[_0x44e2bc(0x151)]['to'](_0x44e2bc(0x146))}]},_0x4dbc8]}),_0xc30959;}[_0x3c97a3(0x147)](){const _0x2cdf9c=_0x3c97a3,_0x3261d3=new _0xb8a249(this[_0x2cdf9c(0x161)]);_0x3261d3[_0x2cdf9c(0x14a)]({'label':_0x3fad78(this[_0x2cdf9c(0x161)],_0x2cdf9c(0x14c)),'withText':!0x0,'icon':_0x25a466,'class':_0x2cdf9c(0x179)}),_0x3261d3['on'](_0x2cdf9c(0x144),()=>{const _0x150005=_0x2cdf9c;this[_0x150005(0x172)](_0x150005(0x154));});const _0x593d6f=new _0x1bd8e4(this[_0x2cdf9c(0x161)]);return _0x593d6f[_0x2cdf9c(0x160)]({'tag':_0x2cdf9c(0x14f),'attributes':{'class':[_0x2cdf9c(0x18c),this[_0x2cdf9c(0x151)]['if'](_0x2cdf9c(0x149),_0x2cdf9c(0x17a),_0x34e75a=>!_0x34e75a)]},'children':[{'tag':'p','attributes':{'class':[_0x2cdf9c(0x15a)]},'children':[_0x3fad78(this[_0x2cdf9c(0x161)],_0x2cdf9c(0x18b))]},_0x3261d3]}),_0x593d6f;}[_0x3c97a3(0x192)](_0x7ab09e,_0x10de94){const _0x549977=_0x3c97a3,_0x45b1a1=[];for(const _0x525cd0 of _0x7ab09e){const _0x3a9da7=new _0x5808d6(_0x10de94,_0x525cd0);_0x3a9da7[_0x549977(0x19c)](..._0x20d28d)['to'](this),_0x45b1a1[_0x549977(0x15d)](_0x3a9da7);}return _0x45b1a1;}[_0x3c97a3(0x15b)](_0x13099e){const _0x2245df=_0x3c97a3,_0x443e53=this[_0x2245df(0x161)]||'en',_0x5af563=[];for(const _0x118e94 of _0x13099e){const _0x2bb058=this[_0x2245df(0x192)](_0x118e94[_0x2245df(0x14e)],_0x443e53);_0x5af563[_0x2245df(0x15d)](new _0x10c55a(_0x443e53,{'title':_0x118e94[_0x2245df(0x173)],'items':_0x2bb058}));}this[_0x2245df(0x163)][_0x2245df(0x167)]=_0x5af563,this[_0x2245df(0x163)][_0x2245df(0x14e)][_0x2245df(0x15e)](),this[_0x2245df(0x163)][_0x2245df(0x14e)][_0x2245df(0x180)](_0x5af563),this[_0x2245df(0x194)]=_0x13099e[_0x2245df(0x156)](_0x269c63=>_0x269c63[_0x2245df(0x14e)][_0x2245df(0x16a)]>0x0),this[_0x2245df(0x16f)]();}[_0x3c97a3(0x19b)](_0x394b45){const _0xb27787=_0x3c97a3;for(const _0x343ba0 of this[_0xb27787(0x163)][_0xb27787(0x167)]){const _0x29b064=_0x343ba0[_0xb27787(0x162)](_0x394b45);if(_0x29b064){if(_0x343ba0[_0xb27787(0x148)](_0x29b064),0x0===_0x343ba0[_0xb27787(0x143)][_0xb27787(0x16a)]){const _0x39d2e1=this[_0xb27787(0x163)][_0xb27787(0x167)][_0xb27787(0x175)](_0x343ba0);-0x1!==_0x39d2e1&&(this[_0xb27787(0x163)][_0xb27787(0x167)][_0xb27787(0x18d)](_0x39d2e1,0x1),this[_0xb27787(0x163)][_0xb27787(0x14e)][_0xb27787(0x16d)](_0x343ba0));}this[_0xb27787(0x194)]=this[_0xb27787(0x163)][_0xb27787(0x167)][_0xb27787(0x16a)]>0x0,this[_0xb27787(0x16f)]();break;}}}[_0x3c97a3(0x15c)](_0x20e919,_0x5bbdba){const _0x4a0450=_0x3c97a3;for(const _0x5401bd of this[_0x4a0450(0x163)][_0x4a0450(0x167)]){const _0xf234fb=_0x5401bd[_0x4a0450(0x162)](_0x20e919);if(_0xf234fb){_0xf234fb[_0x4a0450(0x170)](_0x5bbdba);break;}}}[_0x3c97a3(0x19d)](_0x52b455,_0x2fe85d,_0x5d6d3c){const _0x2a87a9=_0x3c97a3;for(const _0x5ce735 of this[_0x2a87a9(0x163)][_0x2a87a9(0x167)]){const _0x2edbcf=_0x5ce735[_0x2a87a9(0x162)](_0x52b455);if(_0x2edbcf){_0x2edbcf[_0x2a87a9(0x193)](_0x2fe85d,_0x5d6d3c);break;}}}[_0x3c97a3(0x16f)](){const _0x636098=_0x3c97a3;if(this[_0x636098(0x194)]){const _0x4c0a2d=this[_0x636098(0x17d)][_0x636098(0x197)][_0x636098(0x187)]?.[_0x636098(0x153)]?.[_0x636098(0x18e)]||'';this[_0x636098(0x17d)][_0x636098(0x17f)](_0x4c0a2d);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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});}}
23
+ function _0x3e03(){const _0x42bfbf=['make-longer','true','attributes','callCustomReview','improve-writing','upsertCustomAIActionRating','json','CONTINUE','uploadUrl','10732238PVDinz','MAKE_SHORTER','/web-resources','_handleError','/reviews/system/','ai-request-failed','/ratings','deleteWebResource','translate','application/json','file','reset','pluginName','fetchDocument','fetchConversationMessages','deleteConversation','define','MAKE_TONE_CASUAL','decode','executeAction','continue','deleteFile','1079869HOiInY','statusText','push','126964etddVH','_token','upsertAIChatRating','group','/calls/','status','search','get','stringify','897624OfhwfC','PUT','/files/','fix-grammar','upsertAIReviewRating','FIX_GRAMMAR','_apiUrl','/conversations/','ai.serviceUrl','_sendApiRequest','IMPROVE_WRITING','releaseLock','20vXlWdU','data','fetchConversations','requires','/messages/','2RjHSmC','/calls','parse','totalCount','Bearer\x20','8zjeoaa','callSystemReview','/documents/','/web-resources/','name','executeCustomAction','MAKE_LONGER','catch','body','/documents','toString','read','TRANSLATE','https://ai.cke-cs.com/v1','POST','100','abortController','/messages','init','then','_decoder','ai-missing-token','/reviews/custom/calls','config','request','/actions/custom/calls/','text','CloudServices','updateConversation','ai-request-aborted','/conversations?','make-tone-casual','items','95334CgteLs','token','_getStreamReader','plugins','GET','deleteDocument','append','excludeEmpty','/models/1','/actions/custom/calls','Content-Type','1059KhYATj','feed','AbortError','/actions/system/','queryAssistant','uploadFile','modificationId','1516lzYYjR','make-tone-formal','upsertCustomAIReviewRating','value','limit','isOfficialPlugin','MAKE_TONE_FORMAL','upsertAIActionRating','/files','isPremiumPlugin','getReader','AIConnector','/conversations','2392570MeKeuM','fetchConversation','uploadDocument','PATCH','make-shorter','context','keys','getModels','length','startConversation','/reviews/custom/calls/','signal','positiveCount','DELETE'];_0x3e03=function(){return _0x42bfbf;};return _0x3e03();}const _0x1a3699=_0x4d7c;function _0x4d7c(_0x443cc1,_0x392415){const _0x3e0322=_0x3e03();return _0x4d7c=function(_0x4d7c71,_0x4f5f2b){_0x4d7c71=_0x4d7c71-0x1d7;let _0x1912db=_0x3e0322[_0x4d7c71];return _0x1912db;},_0x4d7c(_0x443cc1,_0x392415);}(function(_0x373d56,_0x5e834f){const _0x53d794=_0x4d7c,_0xfa20ef=_0x373d56();while(!![]){try{const _0x56d32e=-parseInt(_0x53d794(0x1d7))/0x1*(parseInt(_0x53d794(0x1f1))/0x2)+parseInt(_0x53d794(0x222))/0x3*(-parseInt(_0x53d794(0x229))/0x4)+-parseInt(_0x53d794(0x1ec))/0x5*(parseInt(_0x53d794(0x217))/0x6)+parseInt(_0x53d794(0x263))/0x7*(-parseInt(_0x53d794(0x1f6))/0x8)+-parseInt(_0x53d794(0x1e0))/0x9+-parseInt(_0x53d794(0x236))/0xa+parseInt(_0x53d794(0x24d))/0xb;if(_0x56d32e===_0x5e834f)break;else _0xfa20ef['push'](_0xfa20ef['shift']());}catch(_0x38bee7){_0xfa20ef['push'](_0xfa20ef['shift']());}}}(_0x3e03,0x2698b));import{createParser as _0x4667e8}from'eventsource-parser';import{ContextPlugin as _0x21198d}from'ckeditor5/src/core.js';import{CKEditorError as _0x4e7388}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x390990){const _0x59998a=_0x4d7c;_0x390990[_0x59998a(0x24b)]=_0x59998a(0x261),_0x390990[_0x59998a(0x1e5)]=_0x59998a(0x1e3),_0x390990[_0x59998a(0x1ea)]=_0x59998a(0x248),_0x390990[_0x59998a(0x1fc)]=_0x59998a(0x244),_0x390990[_0x59998a(0x24e)]=_0x59998a(0x23a),_0x390990[_0x59998a(0x25e)]=_0x59998a(0x215),_0x390990[_0x59998a(0x22f)]=_0x59998a(0x22a),_0x390990[_0x59998a(0x202)]=_0x59998a(0x255);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x21198d{[_0x1a3699(0x1e6)];[_0x1a3699(0x1d8)];[_0x1a3699(0x20a)];static get[_0x1a3699(0x1ef)](){const _0x137f02=_0x1a3699;return[_0x137f02(0x211)];}static get[_0x1a3699(0x259)](){const _0x515e1e=_0x1a3699;return _0x515e1e(0x234);}static get[_0x1a3699(0x22e)](){return!0x0;}static get[_0x1a3699(0x232)](){return!0x0;}constructor(_0x170990){const _0x355a4e=_0x1a3699;super(_0x170990),this[_0x355a4e(0x23b)][_0x355a4e(0x20d)][_0x355a4e(0x25d)](_0x355a4e(0x1e8),_0x355a4e(0x203)),this[_0x355a4e(0x1e6)]=this[_0x355a4e(0x23b)][_0x355a4e(0x20d)][_0x355a4e(0x1de)](_0x355a4e(0x1e8)),this[_0x355a4e(0x1d8)]=null,this[_0x355a4e(0x20a)]=new TextDecoder();}[_0x1a3699(0x208)](){const _0x412280=_0x1a3699,_0x6a76e6=this[_0x412280(0x23b)][_0x412280(0x21a)][_0x412280(0x1de)](_0x412280(0x211));if(!_0x6a76e6[_0x412280(0x218)])throw new _0x4e7388(_0x412280(0x20b),this);this[_0x412280(0x1d8)]=_0x6a76e6[_0x412280(0x218)];}[_0x1a3699(0x23f)](_0x137258,_0x481077){const _0x458e9b=_0x1a3699,_0x1bdc3f=this[_0x458e9b(0x1e9)](_0x458e9b(0x235),_0x458e9b(0x204),{'id':_0x137258,'group':_0x481077});return{'getConversation':async()=>(await _0x1bdc3f[_0x458e9b(0x20e)])[_0x458e9b(0x24a)](),'abortController':_0x1bdc3f[_0x458e9b(0x206)]};}[_0x1a3699(0x226)]({message:_0x63500a,conversationId:_0x2b3ca7,parts:_0x1082bc,capabilities:_0x3d6e33,model:_0x46990d,quickActionData:_0x20800c}){const _0x5c53c3=_0x1a3699,_0x2e4dfb={..._0x20800c&&{'quickActionData':_0x20800c}},_0x1ae1f6={'prompt':_0x63500a,'content':_0x1082bc,'model':_0x46990d,..._0x3d6e33&&{'capabilities':_0x3d6e33},...Object[_0x5c53c3(0x23c)](_0x2e4dfb)[_0x5c53c3(0x23e)]>0x0&&{'attributes':_0x2e4dfb}},_0xd5b349=this[_0x5c53c3(0x1e9)](_0x5c53c3(0x1e7)+_0x2b3ca7+_0x5c53c3(0x207),_0x5c53c3(0x204),_0x1ae1f6);return{'getStream':async()=>{const _0x15b54b=_0x5c53c3,_0x555d1e=(await _0xd5b349[_0x15b54b(0x20e)])[_0x15b54b(0x1fe)];return this[_0x15b54b(0x219)](_0x555d1e);},'abortController':_0xd5b349[_0x5c53c3(0x206)]};}[_0x1a3699(0x1fb)]({content:_0x58c21,message:_0x30072c,model:_0x27dd0b,outputFormat:_0x590c67}){const _0xe08504=_0x1a3699,_0xdef959={'content':[{'type':_0xe08504(0x210),'content':_0x58c21}],'prompt':_0x30072c,'model':_0x27dd0b,'outputFormat':_0x590c67},_0x191136=this[_0xe08504(0x1e9)](_0xe08504(0x220),_0xe08504(0x204),_0xdef959);return{'getStream':async()=>{const _0xc1673e=_0xe08504,_0x94091e=(await _0x191136[_0xc1673e(0x20e)])[_0xc1673e(0x1fe)];return this[_0xc1673e(0x219)](_0x94091e);},'abortController':_0x191136[_0xe08504(0x206)]};}[_0x1a3699(0x260)]({actionName:_0x3c5940,content:_0x10ecb7,args:_0x573998}){const _0x284049=_0x1a3699,_0x3b8413={'content':[{'type':_0x284049(0x210),'content':_0x10ecb7}],'args':_0x573998},_0x26244c=this[_0x284049(0x1e9)](_0x284049(0x225)+_0x3c5940+_0x284049(0x1f2),_0x284049(0x204),_0x3b8413);return{'getStream':async()=>{const _0x5aaa77=_0x284049,_0x334ac9=(await _0x26244c[_0x5aaa77(0x20e)])[_0x5aaa77(0x1fe)];return this[_0x5aaa77(0x219)](_0x334ac9);},'abortController':_0x26244c[_0x284049(0x206)]};}[_0x1a3699(0x227)](_0x23047c,_0x4a6cb1,_0x296ca2){const _0x27d4f0=_0x1a3699,_0x33fb9b=new FormData();_0x33fb9b[_0x27d4f0(0x21d)](_0x27d4f0(0x257),_0x4a6cb1,_0x4a6cb1[_0x27d4f0(0x1fa)]),_0x296ca2&&_0x33fb9b[_0x27d4f0(0x21d)](_0x27d4f0(0x246),JSON[_0x27d4f0(0x1df)](_0x296ca2));const _0x7bef8=this[_0x27d4f0(0x1e9)](_0x27d4f0(0x1e7)+_0x23047c+_0x27d4f0(0x231),_0x27d4f0(0x204),_0x33fb9b);return{'getId':async()=>(await _0x7bef8[_0x27d4f0(0x20e)])[_0x27d4f0(0x24a)](),'abortController':_0x7bef8[_0x27d4f0(0x206)]};}[_0x1a3699(0x25a)](_0x382aef,_0x1fc62e){const _0x1aa564=_0x1a3699,_0x734212=this[_0x1aa564(0x1e9)](_0x1aa564(0x1e7)+_0x382aef+_0x1aa564(0x1f8)+_0x1fc62e,_0x1aa564(0x21b));return{'getDocument':async()=>(await _0x734212[_0x1aa564(0x20e)])[_0x1aa564(0x24a)](),'abortController':_0x734212[_0x1aa564(0x206)]};}[_0x1a3699(0x238)](_0x4a5995,_0x4257be,_0x3a3645){const _0x44c99f=_0x1a3699,_0x609ba={'content':_0x4257be};_0x3a3645&&(_0x609ba[_0x44c99f(0x246)]=_0x3a3645);const _0x5aedb4=this[_0x44c99f(0x1e9)](_0x44c99f(0x1e7)+_0x4a5995+_0x44c99f(0x1ff),_0x44c99f(0x204),_0x609ba);return{'getId':async()=>(await _0x5aedb4[_0x44c99f(0x20e)])[_0x44c99f(0x24a)](),'abortController':_0x5aedb4[_0x44c99f(0x206)]};}[_0x1a3699(0x1ee)](_0x5d25cc,_0x14f8d0){const _0x11584b=_0x1a3699,_0x48ce3e=new URLSearchParams();_0x48ce3e[_0x11584b(0x21d)](_0x11584b(0x21e),_0x11584b(0x245)),_0x48ce3e[_0x11584b(0x21d)](_0x11584b(0x22d),_0x11584b(0x205)),_0x48ce3e[_0x11584b(0x21d)](_0x11584b(0x1da),_0x5d25cc),_0x14f8d0&&_0x48ce3e[_0x11584b(0x21d)](_0x11584b(0x1dd),_0x14f8d0);const _0x2ec911=this[_0x11584b(0x1e9)](_0x11584b(0x214)+_0x48ce3e[_0x11584b(0x200)](),_0x11584b(0x21b));return{'getConversations':async()=>{const _0x411cfe=_0x11584b,_0x10b574=await _0x2ec911[_0x411cfe(0x20e)];return(await _0x10b574[_0x411cfe(0x24a)]())[_0x411cfe(0x216)];},'abortController':_0x2ec911[_0x11584b(0x206)]};}[_0x1a3699(0x25c)](_0x53cd8b){const _0x2bf93a=_0x1a3699,_0xcfb4a4=this[_0x2bf93a(0x1e9)](_0x2bf93a(0x1e7)+_0x53cd8b,_0x2bf93a(0x243));return{'execute':async()=>{const _0x1e9217=_0x2bf93a;await _0xcfb4a4[_0x1e9217(0x20e)];},'abortController':_0xcfb4a4[_0x2bf93a(0x206)]};}[_0x1a3699(0x212)](_0x47c1ac,_0x54ac52){const _0x4f5f6e=_0x1a3699,_0x225386=this[_0x4f5f6e(0x1e9)](_0x4f5f6e(0x1e7)+_0x47c1ac,_0x4f5f6e(0x239),_0x54ac52);return{'getResult':async()=>(await _0x225386[_0x4f5f6e(0x20e)],_0x54ac52),'abortController':_0x225386[_0x4f5f6e(0x206)]};}[_0x1a3699(0x237)](_0xfbe31f){const _0x242841=_0x1a3699,_0x3a72c2=this[_0x242841(0x1e9)](_0x242841(0x1e7)+_0xfbe31f,_0x242841(0x21b));return{'getConversation':async()=>(await _0x3a72c2[_0x242841(0x20e)])[_0x242841(0x24a)](),'abortController':_0x3a72c2[_0x242841(0x206)]};}[_0x1a3699(0x25b)](_0x72b7cc){const _0x8055ae=_0x1a3699,_0x1b726c=this[_0x8055ae(0x1e9)](_0x8055ae(0x1e7)+_0x72b7cc+_0x8055ae(0x207),_0x8055ae(0x21b));return{'getMessages':async()=>{const _0x3eab8f=_0x8055ae,_0x546008=await _0x1b726c[_0x3eab8f(0x20e)];return(await _0x546008[_0x3eab8f(0x24a)]())[_0x3eab8f(0x216)];},'abortController':_0x1b726c[_0x8055ae(0x206)]};}[_0x1a3699(0x24c)](_0x253ec7,_0xb8e556,_0x274abf){const _0xe48567=_0x1a3699,_0x2aeae2=this[_0xe48567(0x1e9)](_0xe48567(0x1e7)+_0x253ec7+_0xe48567(0x24f),_0xe48567(0x204),{'url':_0xb8e556,'attributes':_0x274abf});return{'getId':async()=>(await _0x2aeae2[_0xe48567(0x20e)])[_0xe48567(0x24a)](),'abortController':_0x2aeae2[_0xe48567(0x206)]};}[_0x1a3699(0x23d)](){const _0x5ab174=_0x1a3699,_0x3e109a=this[_0x5ab174(0x1e9)](_0x5ab174(0x21f),_0x5ab174(0x21b));return{'list':async()=>await(await _0x3e109a[_0x5ab174(0x20e)])[_0x5ab174(0x24a)](),'abortController':_0x3e109a[_0x5ab174(0x206)]};}[_0x1a3699(0x262)](_0x2f7d4a,_0x1c269e){const _0x1c3607=_0x1a3699,_0x5d0254=this[_0x1c3607(0x1e9)](_0x1c3607(0x1e7)+_0x2f7d4a+_0x1c3607(0x1e2)+_0x1c269e,_0x1c3607(0x243));return{'execute':async()=>{const _0x3400a8=_0x1c3607;await _0x5d0254[_0x3400a8(0x20e)];},'abortController':_0x5d0254[_0x1c3607(0x206)]};}[_0x1a3699(0x21c)](_0x1c0760,_0x499827){const _0x151bef=_0x1a3699,_0x6e38af=this[_0x151bef(0x1e9)](_0x151bef(0x1e7)+_0x1c0760+_0x151bef(0x1f8)+_0x499827,_0x151bef(0x243));return{'execute':async()=>{const _0x48aac5=_0x151bef;await _0x6e38af[_0x48aac5(0x20e)];},'abortController':_0x6e38af[_0x151bef(0x206)]};}[_0x1a3699(0x254)](_0x44ca89,_0x573aea){const _0x3a154b=_0x1a3699,_0x3fdd80=this[_0x3a154b(0x1e9)](_0x3a154b(0x1e7)+_0x44ca89+_0x3a154b(0x1f9)+_0x573aea,_0x3a154b(0x243));return{'execute':async()=>{const _0xd470f4=_0x3a154b;await _0x3fdd80[_0xd470f4(0x20e)];},'abortController':_0x3fdd80[_0x3a154b(0x206)]};}[_0x1a3699(0x1f7)]({reviewName:_0x3d7eb2,content:_0x208ae5,args:_0x3771c4}){const _0x179664=_0x1a3699,_0x31ec84=this[_0x179664(0x1e9)](_0x179664(0x251)+_0x3d7eb2+_0x179664(0x1f2),_0x179664(0x204),{'content':[{'type':_0x179664(0x210),'content':_0x208ae5}],'args':_0x3771c4});return{'getStream':async()=>{const _0x19c72d=_0x179664,_0x2d9092=(await _0x31ec84[_0x19c72d(0x20e)])[_0x19c72d(0x1fe)];return this[_0x19c72d(0x219)](_0x2d9092);},'abortController':_0x31ec84[_0x179664(0x206)]};}[_0x1a3699(0x247)]({content:_0x36e0cd,prompt:_0x456f15,model:_0x43d248}){const _0x3c9db4=_0x1a3699,_0x55f879=this[_0x3c9db4(0x1e9)](_0x3c9db4(0x20c),_0x3c9db4(0x204),{'content':[{'type':_0x3c9db4(0x210),'content':_0x36e0cd}],'prompt':_0x456f15,'model':_0x43d248});return{'getStream':async()=>{const _0x44cd2c=_0x3c9db4,_0x4626ae=(await _0x55f879[_0x44cd2c(0x20e)])[_0x44cd2c(0x1fe)];return this[_0x44cd2c(0x219)](_0x4626ae);},'abortController':_0x55f879[_0x3c9db4(0x206)]};}[_0x1a3699(0x1d9)](_0x557fb1,_0x4b3139,_0x1eb06e){const _0x2d0eae=_0x1a3699,_0x172af7=this[_0x2d0eae(0x1e9)](_0x2d0eae(0x1e7)+_0x557fb1+_0x2d0eae(0x1f0)+_0x4b3139+_0x2d0eae(0x253),_0x2d0eae(0x1e1),{'positiveCount':_0x1eb06e[_0x2d0eae(0x242)],'totalCount':_0x1eb06e[_0x2d0eae(0x1f4)],'modificationId':_0x1eb06e[_0x2d0eae(0x228)]});return{'execute':async()=>{const _0x5f08eb=_0x2d0eae;await _0x172af7[_0x5f08eb(0x20e)];},'abortController':_0x172af7[_0x2d0eae(0x206)]};}[_0x1a3699(0x230)](_0x448853,_0x34d7d1,_0x21c3c0){const _0x3858f8=_0x1a3699,_0x16c297=this[_0x3858f8(0x1e9)](_0x3858f8(0x225)+_0x448853+_0x3858f8(0x1db)+_0x34d7d1+_0x3858f8(0x253),_0x3858f8(0x1e1),{'positiveCount':_0x21c3c0[_0x3858f8(0x242)],'totalCount':_0x21c3c0[_0x3858f8(0x1f4)]});return{'execute':async()=>{const _0x14b895=_0x3858f8;await _0x16c297[_0x14b895(0x20e)];},'abortController':_0x16c297[_0x3858f8(0x206)]};}[_0x1a3699(0x249)](_0x3aafe0,_0x460f0b){const _0x42755a=_0x1a3699,_0x2d160d=this[_0x42755a(0x1e9)](_0x42755a(0x20f)+_0x3aafe0+_0x42755a(0x253),_0x42755a(0x1e1),{'positiveCount':_0x460f0b[_0x42755a(0x242)],'totalCount':_0x460f0b[_0x42755a(0x1f4)]});return{'execute':async()=>{const _0x2dcfb3=_0x42755a;await _0x2d160d[_0x2dcfb3(0x20e)];},'abortController':_0x2d160d[_0x42755a(0x206)]};}[_0x1a3699(0x1e4)](_0x1215a3,_0x1c6069,_0x26292d,_0x296cbf){const _0x660b06=_0x1a3699,_0x12ebe9=this[_0x660b06(0x1e9)](_0x660b06(0x251)+_0x1215a3+_0x660b06(0x1db)+_0x1c6069+_0x660b06(0x253),_0x660b06(0x1e1),{'positiveCount':_0x26292d[_0x660b06(0x242)],'totalCount':_0x26292d[_0x660b06(0x1f4)],'dataId':_0x296cbf});return{'execute':async()=>{const _0x201a28=_0x660b06;await _0x12ebe9[_0x201a28(0x20e)];},'abortController':_0x12ebe9[_0x660b06(0x206)]};}[_0x1a3699(0x22b)](_0x3cc7f8,_0x4699cd,_0x55d1f2){const _0x3cccc4=_0x1a3699,_0x540886=this[_0x3cccc4(0x1e9)](_0x3cccc4(0x240)+_0x3cc7f8+_0x3cccc4(0x253),_0x3cccc4(0x1e1),{'positiveCount':_0x4699cd[_0x3cccc4(0x242)],'totalCount':_0x4699cd[_0x3cccc4(0x1f4)],'dataId':_0x55d1f2});return{'execute':async()=>{const _0x5a487b=_0x3cccc4;await _0x540886[_0x5a487b(0x20e)];},'abortController':_0x540886[_0x3cccc4(0x206)]};}[_0x1a3699(0x1e9)](_0x3d7d35,_0x2db849,_0xfd982d){const _0x55abcf=_0x1a3699,_0x56572b=new AbortController(),_0x22a123=_0xfd982d instanceof FormData,_0x4cb67e={'Authorization':_0x55abcf(0x1f5)+this[_0x55abcf(0x1d8)]?.[_0x55abcf(0x22c)]};_0xfd982d&&!_0x22a123&&(_0x4cb67e[_0x55abcf(0x221)]=_0x55abcf(0x256));const _0x1c15ac={'method':_0x2db849,'headers':_0x4cb67e,'signal':_0x56572b[_0x55abcf(0x241)]};return _0xfd982d&&(_0x1c15ac[_0x55abcf(0x1fe)]=_0x22a123?_0xfd982d:JSON[_0x55abcf(0x1df)](_0xfd982d)),{'request':fetch(''+this[_0x55abcf(0x1e6)]+_0x3d7d35,_0x1c15ac)[_0x55abcf(0x1fd)](_0x10014e=>{const _0x2601bb=_0x55abcf;this[_0x2601bb(0x250)](_0x10014e);})[_0x55abcf(0x209)](_0x2a4764=>{const _0x4c51a8=_0x55abcf;if(!_0x2a4764['ok'])throw new _0x4e7388(_0x4c51a8(0x252),this,{'url':this[_0x4c51a8(0x1e6)],'path':_0x3d7d35,'method':_0x2db849,'body':_0xfd982d,'status':(_0x2a4764||{})[_0x4c51a8(0x1dc)],'statusText':(_0x2a4764||{})[_0x4c51a8(0x264)]});return _0x2a4764;}),'abortController':_0x56572b};}async*[_0x1a3699(0x219)](_0x4853e5){const _0x557b15=_0x1a3699,_0x452eca=[],_0x3d59dc=_0x4853e5[_0x557b15(0x233)](),_0xb16dd1=_0x4667e8({'onError':_0x459b73=>{const _0x3bea02=_0x557b15;this[_0x3bea02(0x250)](_0x459b73);},'onEvent':_0x5c191e=>{const _0x2340d9=_0x557b15;_0x5c191e[_0x2340d9(0x1ed)]=JSON[_0x2340d9(0x1f3)](_0x5c191e[_0x2340d9(0x1ed)]),_0x452eca[_0x2340d9(0x265)](_0x5c191e);}});try{let _0x5446aa=!0x1;for(;!_0x5446aa;){const {done:_0x2fe5c4,value:_0x362494}=await _0x3d59dc[_0x557b15(0x201)]();_0x2fe5c4&&(_0x5446aa=!0x0),_0xb16dd1[_0x557b15(0x223)](this[_0x557b15(0x20a)][_0x557b15(0x25f)](_0x362494,{'stream':!0x0})),yield*_0x452eca,_0x452eca[_0x557b15(0x23e)]=0x0;}}catch(_0xeb219f){this[_0x557b15(0x250)](_0xeb219f);}finally{_0x3d59dc[_0x557b15(0x1eb)](),_0xb16dd1[_0x557b15(0x258)]();}}[_0x1a3699(0x250)](_0x5784f7){const _0xad509=_0x1a3699;if(_0x5784f7 instanceof _0x4e7388)throw _0x5784f7;if(_0x5784f7 instanceof Error&&_0xad509(0x224)===_0x5784f7[_0xad509(0x1fa)])throw new _0x4e7388(_0xad509(0x213),this,{'originalError':_0x5784f7});throw new _0x4e7388(_0xad509(0x252),this,{'originalError':_0x5784f7});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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);}}
23
+ const _0x25708a=_0x5d9b;(function(_0x31a056,_0xba31f6){const _0x9631e0=_0x5d9b,_0x549d9c=_0x31a056();while(!![]){try{const _0x5aaa54=parseInt(_0x9631e0(0x83))/0x1+-parseInt(_0x9631e0(0xbe))/0x2*(-parseInt(_0x9631e0(0xa5))/0x3)+-parseInt(_0x9631e0(0x7e))/0x4+-parseInt(_0x9631e0(0x94))/0x5+-parseInt(_0x9631e0(0x9c))/0x6+parseInt(_0x9631e0(0x7f))/0x7+parseInt(_0x9631e0(0xad))/0x8;if(_0x5aaa54===_0xba31f6)break;else _0x549d9c['push'](_0x549d9c['shift']());}catch(_0x334125){_0x549d9c['push'](_0x549d9c['shift']());}}}(_0xa127,0x2af09));import{ViewDowncastWriter as _0x14fdf4}from'ckeditor5/src/engine.js';function _0x5d9b(_0x258ce8,_0x293d34){const _0xa127d9=_0xa127();return _0x5d9b=function(_0x5d9b67,_0x598530){_0x5d9b67=_0x5d9b67-0x74;let _0xab9faa=_0xa127d9[_0x5d9b67];return _0xab9faa;},_0x5d9b(_0x258ce8,_0x293d34);}import{ContextPlugin as _0x36fdcf,Editor as _0x285234}from'ckeditor5/src/core.js';import{uid as _0x5b22ab}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x43629c}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x25708a(0xae);export class AIEditing extends _0x36fdcf{[_0x25708a(0xa1)]=null;[_0x25708a(0x7b)]=!0x1;[_0x25708a(0xcb)];static get[_0x25708a(0x8e)](){const _0xb0f058=_0x25708a;return _0xb0f058(0xa2);}static get[_0x25708a(0xd4)](){return!0x0;}static get[_0x25708a(0x96)](){return!0x0;}get[_0x25708a(0xa8)](){const _0x33e9b1=_0x25708a;if(!this[_0x33e9b1(0xcb)]){const _0xec789c=_0x43629c(this[_0x33e9b1(0xb4)]),_0x418fb0=_0xec789c[_0x33e9b1(0x85)][_0x33e9b1(0xb7)](_0x33e9b1(0xd2))&&_0xec789c[_0x33e9b1(0x85)][_0x33e9b1(0xa0)](_0x33e9b1(0xd2))[_0x33e9b1(0xa8)];this[_0x33e9b1(0xcb)]=_0x418fb0||_0x5b22ab();}return this[_0x33e9b1(0xcb)];}[_0x25708a(0xa4)](){const _0x392db5=_0x25708a,_0x4d02c1=_0x43629c(this[_0x392db5(0xb4)]),_0x570816=_0x4d02c1[_0x392db5(0x8c)],_0x13db68=_0x4d02c1[_0x392db5(0x7c)][_0x392db5(0x7d)](_0x570816[_0x392db5(0x9b)][_0x392db5(0xbd)](),{'convertAiChatSelectionMarker':!0x0}),_0x1ddc4d=new _0x14fdf4(_0x4d02c1[_0x392db5(0xca)][_0x392db5(0x76)][_0x392db5(0x9b)]);this[_0x392db5(0x79)](_0x13db68,_0x1ddc4d);let _0x46c171=_0x4d02c1[_0x392db5(0x7c)][_0x392db5(0xcc)][_0x392db5(0x8a)](_0x13db68);const _0x3cf523=this[_0x392db5(0xa7)](),_0x295668=[];for(const _0x42768d of _0x3cf523){const _0x1b98ea='<'+_0x42768d[_0x392db5(0xbb)]+_0x392db5(0xb6)+_0x42768d[_0x392db5(0xbb)]+_0x392db5(0xb1),_0x1382ad=_0x46c171[_0x392db5(0x95)](_0x1b98ea);_0x46c171=_0x46c171[_0x392db5(0x82)](0x0,_0x1382ad)+_0x46c171[_0x392db5(0x82)](_0x1382ad+_0x1b98ea[_0x392db5(0xba)]);const _0x548023='<'+_0x42768d[_0x392db5(0xbb)]+_0x392db5(0x8f)+_0x42768d[_0x392db5(0xbb)]+_0x392db5(0x8d),_0x4e8041=_0x46c171[_0x392db5(0x95)](_0x548023);_0x46c171=_0x46c171[_0x392db5(0x82)](0x0,_0x4e8041)+_0x46c171[_0x392db5(0x82)](_0x4e8041+_0x548023[_0x392db5(0xba)]),_0x295668[_0x392db5(0xd3)]({'markerName':_0x42768d[_0x392db5(0xbb)],'start':_0x1382ad,'end':_0x4e8041,'htmlFragment':_0x46c171[_0x392db5(0x82)](_0x1382ad,_0x4e8041)});}return{'content':_0x46c171,'version':_0x4d02c1[_0x392db5(0x8c)][_0x392db5(0x9b)][_0x392db5(0xc1)],'sessionId':this[_0x392db5(0xa8)],'selections':_0x295668};}async[_0x25708a(0x81)](){const _0x410a4e=_0x25708a;this[_0x410a4e(0xb4)]instanceof _0x285234?this[_0x410a4e(0xa6)](this[_0x410a4e(0xb4)]):this[_0x410a4e(0xc5)](this[_0x410a4e(0xb4)][_0x410a4e(0x74)],_0x410a4e(0x90),(_0x4982d7,_0x5dc03d)=>{const _0x3cd018=_0x410a4e;_0x5dc03d['on'](_0x3cd018(0xcd),()=>{const _0x4de51d=_0x3cd018;this[_0x4de51d(0xa6)](_0x5dc03d);});});}[_0x25708a(0xa6)](_0xe9d817){const _0x391069=_0x25708a;_0xe9d817[_0x391069(0x88)][_0x391069(0xb8)](_0x391069(0xc4))[_0x391069(0xd1)]({'model':_0x391069(0xae),'view':{'classes':[_0x391069(0xb5),_0x391069(0x91)],'priority':0xc}}),_0xe9d817[_0x391069(0x88)][_0x391069(0xb8)](_0x391069(0x87))[_0x391069(0xac)]({'model':_0x391069(0xae),'view':(_0x2dcf2e,{writer:_0x51f05b,options:_0x4038f1})=>_0x4038f1[_0x391069(0x80)]?_0x51f05b[_0x391069(0x9a)](_0x2dcf2e[_0x391069(0xab)]+':'+(_0x2dcf2e[_0x391069(0xa3)]?_0x391069(0xd7):_0x391069(0x77))):null});}[_0x25708a(0xbc)](_0x29fe9e,_0x566fe4,_0x456696=!0x1,_0x2b439c=!0x1){const _0x52cdf8=_0x25708a;if(this[_0x52cdf8(0x7b)]&&!_0x2b439c)return!0x1;const _0x2e6b35=_0x43629c(this[_0x52cdf8(0xb4)])[_0x52cdf8(0x8c)];return _0x2e6b35[_0x52cdf8(0x86)](_0x37ec07=>{const _0x4f5413=_0x52cdf8;this[_0x4f5413(0xa1)]&&this[_0x4f5413(0x9e)](this[_0x4f5413(0xa1)]),this[_0x4f5413(0xa1)]=_0x566fe4,this[_0x4f5413(0x7b)]=_0x456696;let _0x4a24ab=0x0;for(let _0x1b1a39 of _0x29fe9e){const _0x430084=_0x4f5413(0xbf)+_0x4a24ab;if(_0x1b1a39[_0x4f5413(0xd7)][_0x4f5413(0xda)]){const _0x43504e=_0x1b1a39[_0x4f5413(0xd7)][_0x4f5413(0xc2)](({item:_0x44f612})=>!_0x2e6b35[_0x4f5413(0x98)][_0x4f5413(0xa9)](_0x44f612),{'boundaries':_0x1b1a39});_0x1b1a39=_0x37ec07[_0x4f5413(0xd8)](_0x43504e,_0x1b1a39[_0x4f5413(0x77)]);}_0x37ec07[_0x4f5413(0xd9)](_0x430084,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x1b1a39}),_0x4a24ab++;}}),window[_0x52cdf8(0x93)]()?.[_0x52cdf8(0xce)](),!0x0;}[_0x25708a(0x9e)](_0x377b6e){const _0x2659dd=_0x25708a;if(this[_0x2659dd(0xa1)]!=_0x377b6e)return!0x1;this[_0x2659dd(0xa1)]=null,this[_0x2659dd(0x7b)]=!0x1;const _0x399e67=_0x43629c(this[_0x2659dd(0xb4)]),_0x498a56=_0x399e67[_0x2659dd(0x8c)][_0x2659dd(0x84)][_0x2659dd(0xc9)](_0x2659dd(0xae));return _0x399e67[_0x2659dd(0x8c)][_0x2659dd(0x86)](_0x1e207e=>{const _0x24345d=_0x2659dd;for(const _0x304d3b of _0x498a56)_0x1e207e[_0x24345d(0x89)](_0x304d3b);}),!0x0;}[_0x25708a(0xd0)](_0x48a399){const _0x51097a=_0x25708a,_0x177065=_0x43629c(this[_0x51097a(0xb4)]),_0x49b599=_0x177065[_0x51097a(0x7c)][_0x51097a(0x7d)](_0x48a399),_0xb298e=new _0x14fdf4(_0x177065[_0x51097a(0xca)][_0x51097a(0x76)][_0x51097a(0x9b)]);return this[_0x51097a(0x79)](_0x49b599,_0xb298e),_0x49b599;}[_0x25708a(0x79)](_0x5dc2f7,_0xda8156){const _0x5a6e75=_0x25708a;let _0x3f263c=!0x1;const _0x330d60=new Set();for(const _0x578dab of _0x5dc2f7[_0x5a6e75(0xc0)]()){const _0xd9345c=_0x578dab['is'](_0x5a6e75(0xcf))||_0x578dab['is'](_0x5a6e75(0xb3));if(!_0x578dab['is'](_0x5a6e75(0xaa)))continue;(this[_0x5a6e75(0x79)](_0x578dab,_0xda8156)||_0xd9345c)&&(_0xda8156[_0x5a6e75(0xb9)](_0x5a6e75(0x78),this[_0x5a6e75(0x97)](_0x330d60),_0x578dab),_0x3f263c=!0x0);}return _0x3f263c;}[_0x25708a(0x97)](_0x314c74){const _0x38c5bf=_0x25708a;let _0x443d4f;do{_0x443d4f='';for(let _0x3ce042=0x0;_0x3ce042<0x4;_0x3ce042++)_0x443d4f+=String[_0x38c5bf(0xc6)](0x61+Math[_0x38c5bf(0x7a)](0x1a*Math[_0x38c5bf(0xd5)]()));}while(_0x314c74[_0x38c5bf(0xb7)](_0x443d4f));return _0x314c74[_0x38c5bf(0x90)](_0x443d4f),_0x443d4f;}[_0x25708a(0xaf)](){const _0x49dca7=_0x25708a,{model:_0x1df29c}=_0x43629c(this[_0x49dca7(0xb4)]),_0x20d006=_0x1df29c[_0x49dca7(0x9b)][_0x49dca7(0x75)],_0x463fef=_0x1df29c[_0x49dca7(0xd6)](_0x20d006),_0x46b538=[],_0x308137=_0x1df29c[_0x49dca7(0x9f)](_0x463fef)[_0x49dca7(0x92)]();for(const {item:_0x376073}of _0x308137)_0x376073['is'](_0x49dca7(0xb2))?_0x46b538[_0x49dca7(0xd3)](_0x376073[_0x49dca7(0x7c)]):_0x376073['is'](_0x49dca7(0xaa))&&_0x46b538[_0x49dca7(0xba)]>0x0&&'\x20'!==_0x46b538[_0x46b538[_0x49dca7(0xba)]-0x1]&&_0x46b538[_0x49dca7(0xd3)]('\x20');return'\x22'+_0x46b538[_0x49dca7(0x9d)]('')[_0x49dca7(0x8b)]()+'\x22';}[_0x25708a(0xa7)](){const _0x35c46=_0x25708a,_0x8ef914=_0x43629c(this[_0x35c46(0xb4)])[_0x35c46(0x8c)];return Array[_0x35c46(0xc3)](_0x8ef914[_0x35c46(0x84)][_0x35c46(0xc9)](_0x35c46(0xae)))[_0x35c46(0xc8)]((_0x53fed2,_0x599cf8)=>_0x53fed2[_0x35c46(0xb0)]()[_0x35c46(0xc7)](_0x599cf8[_0x35c46(0xb0)]())?-0x1:_0x53fed2[_0x35c46(0xb0)]()[_0x35c46(0x99)](_0x599cf8[_0x35c46(0xb0)]())?0x1:0x0);}}function _0xa127(){const _0x38f929=['start','createRange','addMarker','isAtEnd','editors','selection','view','end','data-id','_setDataIdsOnChildren','floor','_displayedFakeSelectionLocked','data','toView','925428waLQwZ','1144570AcCVsF','convertAiChatSelectionMarker','afterInit','substring','322573vSXWzq','markers','plugins','change','dataDowncast','conversion','removeMarker','toData','trim','model',':end>','pluginName',':end></','add','ck-ai-assistant-ui_theme','getWalker','getSelection','666900iqofUm','indexOf','isPremiumPlugin','_nextDataId','schema','isAfter','createUIElement','document','948636jrWhRI','join','hideFakeVisualSelection','createRangeIn','get','_displayedFakeSelectionId','AIEditing','isOpening','getDocumentData','885AxPTUk','_integrateEditor','_getMarkersInDocumentOrder','sessionId','isContent','element','markerName','markerToElement','1198448iBSTwE','ai-selection','getSelectionText','getStart',':start>','$textProxy','containerElement','context','ck-fake-ai-selection',':start></','has','for','setAttribute','length','name','showFakeVisualSelection','getRoot','426evVnEH','ai-selection:','getChildren','version','getLastMatchingPosition','from','editingDowncast','listenTo','fromCharCode','isBefore','sort','getMarkersGroup','editing','_sessionId','processor','ready','removeAllRanges','emptyElement','modelToViewWithIds','markerToHighlight','RealTimeCollaborationClient','push','isOfficialPlugin','random','getSelectedContent'];_0xa127=function(){return _0x38f929;};return _0xa127();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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();}
23
+ const _0x29a86c=_0x27da;(function(_0x282466,_0x5059ac){const _0x2cc7eb=_0x27da,_0x920790=_0x282466();while(!![]){try{const _0x3a8ee2=-parseInt(_0x2cc7eb(0xee))/0x1*(-parseInt(_0x2cc7eb(0xe0))/0x2)+-parseInt(_0x2cc7eb(0xe4))/0x3*(parseInt(_0x2cc7eb(0xf0))/0x4)+-parseInt(_0x2cc7eb(0xd9))/0x5*(-parseInt(_0x2cc7eb(0xeb))/0x6)+-parseInt(_0x2cc7eb(0xe6))/0x7*(-parseInt(_0x2cc7eb(0xdf))/0x8)+-parseInt(_0x2cc7eb(0xe7))/0x9+parseInt(_0x2cc7eb(0xe9))/0xa+-parseInt(_0x2cc7eb(0xec))/0xb;if(_0x3a8ee2===_0x5059ac)break;else _0x920790['push'](_0x920790['shift']());}catch(_0x89ec58){_0x920790['push'](_0x920790['shift']());}}}(_0x4dd3,0xa526c));function _0x27da(_0xf9c346,_0x13367a){const _0x4dd3f7=_0x4dd3();return _0x27da=function(_0x27daf1,_0x4e25e2){_0x27daf1=_0x27daf1-0xd6;let _0x1a67d4=_0x4dd3f7[_0x27daf1];return _0x1a67d4;},_0x27da(_0xf9c346,_0x13367a);}import{EmitterMixin as _0x1612e3}from'ckeditor5/src/utils.js';function _0x4dd3(){const _0x25daec=['isReasoningEnabled','5625590HmaVZs','reset','26808kFSPKc','23931776rVWgek','fire','41oaZOol','_isWebSearchEnabled','590856lFYtBE','init','setReasoning','capabilitiesUpdated','725XEHOoH','toggleReasoning','isWebSearchEnabled','toggleWebSearch','setWebSearch','reasoning','64376cZcrWz','49638Hyygzj','webSearch','getCapabilitiesRequestData','getCapabilitiesConfig','3KbdCDN','_isReasoningEnabled','798rlQiGk','1310094rILEaT'];_0x4dd3=function(){return _0x25daec;};return _0x4dd3();}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x29a86c(0xd8)];export class AICapabilities extends _0x1612e3(){[_0x29a86c(0xef)];[_0x29a86c(0xe5)];constructor(){const _0x5a9a1f=_0x29a86c;super(),this[_0x5a9a1f(0xef)]=!0x1,this[_0x5a9a1f(0xe5)]=!0x1;}[_0x29a86c(0xd6)](){const _0x2a8578=_0x29a86c;this[_0x2a8578(0xea)]();}[_0x29a86c(0xea)](){const _0x4022d0=_0x29a86c;this[_0x4022d0(0xdd)](!0x1),this[_0x4022d0(0xd7)](!0x1);}[_0x29a86c(0xe3)](){const _0x44e918=_0x29a86c;return{'isWebSearchEnabled':this[_0x44e918(0xef)],'isReasoningEnabled':this[_0x44e918(0xe5)]};}static[_0x29a86c(0xe2)](_0x9ae2a3){const _0x1923b5=_0x29a86c,_0x57b24c={};return _0x9ae2a3&&_0x9ae2a3[_0x1923b5(0xdb)]&&(_0x57b24c[_0x1923b5(0xe1)]={}),_0x9ae2a3&&_0x9ae2a3[_0x1923b5(0xe8)]&&(_0x57b24c[_0x1923b5(0xde)]={}),_0x57b24c;}[_0x29a86c(0xdc)](){const _0x418d9b=_0x29a86c;this[_0x418d9b(0xdd)](!this[_0x418d9b(0xef)]);}[_0x29a86c(0xda)](){const _0x1fdc0d=_0x29a86c;this[_0x1fdc0d(0xd7)](!this[_0x1fdc0d(0xe5)]);}[_0x29a86c(0xdd)](_0x41e5c2){const _0x73183a=_0x29a86c;_0x41e5c2!==this[_0x73183a(0xef)]&&(this[_0x73183a(0xef)]=_0x41e5c2,this[_0x73183a(0xed)](_0x73183a(0xd8),this[_0x73183a(0xe3)]()));}[_0x29a86c(0xd7)](_0x207663){const _0x52957d=_0x29a86c;_0x207663!==this[_0x52957d(0xe5)]&&(this[_0x52957d(0xe5)]=_0x207663,this[_0x52957d(0xed)](_0x52957d(0xd8),this[_0x52957d(0xe3)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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;}}
23
+ const _0x265175=_0x1dbe;function _0x1dbe(_0x123dbb,_0x599df9){const _0x5e56bf=_0x5e56();return _0x1dbe=function(_0x1dbe7a,_0x2cd360){_0x1dbe7a=_0x1dbe7a-0x19f;let _0x3f1d62=_0x5e56bf[_0x1dbe7a];return _0x3f1d62;},_0x1dbe(_0x123dbb,_0x599df9);}(function(_0x4e7a26,_0x1f5b90){const _0x24c7a7=_0x1dbe,_0x539989=_0x4e7a26();while(!![]){try{const _0xda5972=-parseInt(_0x24c7a7(0x1e7))/0x1*(-parseInt(_0x24c7a7(0x1cf))/0x2)+-parseInt(_0x24c7a7(0x1b7))/0x3*(-parseInt(_0x24c7a7(0x1c5))/0x4)+parseInt(_0x24c7a7(0x1a8))/0x5*(parseInt(_0x24c7a7(0x1c2))/0x6)+-parseInt(_0x24c7a7(0x1da))/0x7+-parseInt(_0x24c7a7(0x1a1))/0x8+-parseInt(_0x24c7a7(0x1d9))/0x9*(-parseInt(_0x24c7a7(0x1e6))/0xa)+-parseInt(_0x24c7a7(0x1e0))/0xb*(parseInt(_0x24c7a7(0x1cb))/0xc);if(_0xda5972===_0x1f5b90)break;else _0x539989['push'](_0x539989['shift']());}catch(_0x6bb77){_0x539989['push'](_0x539989['shift']());}}}(_0x5e56,0x404e4));import{CKEditorError as _0x72c960,EmitterMixin as _0x30c987,logWarning as _0x312d80,uid as _0x52766a}from'ckeditor5/src/utils.js';import{AIReply as _0x3862e9,isIgnoredReplyType as _0x821e34,isValidReplyType as _0x3458ad,isReplyTitleType as _0x2db97d,isSourceType as _0x51b39a}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x265175(0x1d8),_0x265175(0x1aa),_0x265175(0x1b1),_0x265175(0x1bd),_0x265175(0x1b6),_0x265175(0x1b9),_0x265175(0x1d0),_0x265175(0x1b2),_0x265175(0x1bc),_0x265175(0x1a6),_0x265175(0x1c6),_0x265175(0x1ba),_0x265175(0x1dc),_0x265175(0x1ae)];function _0x5e56(){const _0x3fac2c=['16NFqzvz','webSearchFinished','event','isDestroyed','length','find','12SQvSUa','stopListening','_isReasoning','currentReply','292574YSJZeE','replyContentUpdated','_isWebSearching','push','fire','web-search','destroy','conversationTitle','content','interactionCreated','9VIfKJH','146279oECvZB','done','reasoningFinished','message-metadata','delegate','splice','1483185QtVAHn','abortController','getStream','isStopped','getDocumentContext','forEach','2087450qrfSTY','2ppLTrS','sources','currentRequest','3512144cksfvi','source','createReply','action-metadata','_finalizeInteraction','webSearchStarted','replies','25kkmdJj','actionCallId','interactionStarted','start','callId','appendContent','error','messageId','connector','interactionStopped','replyChangeGroupStateUpdated','ai-chat-interaction-error','textDelta','reasoning','interactionDestroyed','245169chirmm','sendRequest','replyCreated','reasoningStarted','stop','setConversationTitle','interactionFinished','modification-delta','abort','data','editor','35922CJRFot','getReply','ai-interaction-invalid-event-type'];_0x5e56=function(){return _0x3fac2c;};return _0x5e56();}export class AIInteraction extends _0x30c987(){['id'];[_0x265175(0x1a7)]=[];[_0x265175(0x1ce)];[_0x265175(0x1af)];[_0x265175(0x1a9)];[_0x265175(0x1a0)];[_0x265175(0x1b0)];[_0x265175(0x1e3)]=!0x1;[_0x265175(0x1c8)]=!0x1;[_0x265175(0x1c1)];[_0x265175(0x1cd)]=!0x1;[_0x265175(0x1d1)]=!0x1;constructor({connector:_0x1f5044,editor:_0x222aba}){const _0x19ea37=_0x265175;super(),this['id']=_0x52766a(),this[_0x19ea37(0x1b0)]=_0x1f5044,this[_0x19ea37(0x1e3)]=!0x0,this[_0x19ea37(0x1c1)]=_0x222aba;}async[_0x265175(0x1ab)](){const _0x363906=_0x265175;let _0x3aad80;const _0x1195b4=[];this[_0x363906(0x1e3)]=!0x1;try{this[_0x363906(0x1a0)]=await this[_0x363906(0x1b8)](),this[_0x363906(0x1d3)](_0x363906(0x1aa),this);const _0x2bf181=await this[_0x363906(0x1a0)][_0x363906(0x1e2)]();for await(const _0x50db5e of _0x2bf181){if(this[_0x363906(0x1e3)])return;if(_0x363906(0x1ae)===_0x50db5e[_0x363906(0x1c7)])return void this[_0x363906(0x1d3)](_0x363906(0x1ae),{'error':new _0x72c960(_0x363906(0x1b3),this)});if(_0x363906(0x1dd)!==_0x50db5e[_0x363906(0x1c7)]){if(_0x363906(0x1a4)!==_0x50db5e[_0x363906(0x1c7)]){if(_0x2db97d(_0x50db5e[_0x363906(0x1c7)])&&this[_0x363906(0x1bc)](_0x50db5e[_0x363906(0x1c0)][_0x363906(0x1d6)],!0x0),_0x51b39a(_0x50db5e[_0x363906(0x1c7)]))_0x1195b4[_0x363906(0x1d2)](_0x50db5e[_0x363906(0x1c0)][_0x363906(0x1a2)]);else{if(_0x3458ad(_0x50db5e[_0x363906(0x1c7)])){if(_0x50db5e[_0x363906(0x1c7)]!==_0x3aad80){if(_0x3aad80=_0x50db5e[_0x363906(0x1c7)],_0x363906(0x1d4)===_0x50db5e[_0x363906(0x1c7)]){this[_0x363906(0x1d1)]||(this[_0x363906(0x1d1)]=!0x0,this[_0x363906(0x1d3)](_0x363906(0x1a6),this));continue;}if(_0x363906(0x1b5)===_0x50db5e[_0x363906(0x1c7)]){this[_0x363906(0x1cd)]||(this[_0x363906(0x1cd)]=!0x0,this[_0x363906(0x1d3)](_0x363906(0x1ba),this));continue;}this[_0x363906(0x1cd)]&&(this[_0x363906(0x1cd)]=!0x1,this[_0x363906(0x1d3)](_0x363906(0x1dc),this)),this[_0x363906(0x1d1)]&&(this[_0x363906(0x1d1)]=!0x1,this[_0x363906(0x1d3)](_0x363906(0x1c6),this)),this[_0x363906(0x1ce)]&&this[_0x363906(0x1ce)][_0x363906(0x1db)](),this[_0x363906(0x1ce)]=this[_0x363906(0x1a3)]({'type':_0x50db5e[_0x363906(0x1c7)],'interactionId':this['id'],'id':_0x50db5e[_0x363906(0x1c0)]?.['id']}),_0x1195b4[_0x363906(0x1c9)]>0x0&&_0x363906(0x1be)===_0x50db5e[_0x363906(0x1c7)]&&(this[_0x363906(0x1ce)][_0x363906(0x19f)]=_0x1195b4[_0x363906(0x1df)](0x0));}_0x50db5e[_0x363906(0x1c0)][_0x363906(0x1b4)]&&this[_0x363906(0x1ce)][_0x363906(0x1ad)](_0x50db5e[_0x363906(0x1c0)][_0x363906(0x1b4)]);}else _0x821e34(_0x50db5e[_0x363906(0x1c7)])||_0x312d80(_0x363906(0x1c4),{'chunk':_0x50db5e});}}else this[_0x363906(0x1a9)]=_0x50db5e[_0x363906(0x1c0)][_0x363906(0x1ac)];}else this[_0x363906(0x1af)]=_0x50db5e[_0x363906(0x1c0)][_0x363906(0x1af)];}}finally{this[_0x363906(0x1e3)]||(_0x1195b4[_0x363906(0x1c9)]>0x0&&(this[_0x363906(0x1ce)][_0x363906(0x19f)]=_0x1195b4[_0x363906(0x1df)](0x0)),this[_0x363906(0x1a5)](),this[_0x363906(0x1d3)](_0x363906(0x1bd),this));}}[_0x265175(0x1bb)](){const _0x5d8cbd=_0x265175;this[_0x5d8cbd(0x1e3)]||(this[_0x5d8cbd(0x1a5)](),this[_0x5d8cbd(0x1d3)](_0x5d8cbd(0x1b1),this));}[_0x265175(0x1c3)](_0x2b8e84){const _0x55b321=_0x265175;return this[_0x55b321(0x1a7)][_0x55b321(0x1ca)](_0x590482=>_0x590482['id']===_0x2b8e84);}[_0x265175(0x1d5)](){const _0xec366f=_0x265175;this[_0xec366f(0x1c8)]||(this[_0xec366f(0x1bb)](),this[_0xec366f(0x1a7)][_0xec366f(0x1e5)](_0x5bced1=>_0x5bced1[_0xec366f(0x1d5)]()),this[_0xec366f(0x1a7)]=[],this[_0xec366f(0x1c8)]=!0x0,this[_0xec366f(0x1d3)](_0xec366f(0x1b6),this),this[_0xec366f(0x1cc)]());}[_0x265175(0x1a3)](_0x245b4a){const _0x346e02=_0x265175,_0x3ef3c2=new _0x3862e9({'editor':this[_0x346e02(0x1c1)],'documentContextContent':this[_0x346e02(0x1e4)]()?.[_0x346e02(0x1d7)],..._0x245b4a});return this[_0x346e02(0x1a7)][_0x346e02(0x1d2)](_0x3ef3c2),_0x3ef3c2[_0x346e02(0x1de)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x346e02(0x1d3)](_0x346e02(0x1b9),_0x3ef3c2),_0x3ef3c2;}[_0x265175(0x1bc)](_0x38a8c3,_0x556189=!0x1){const _0x2db433=_0x265175;this[_0x2db433(0x1d3)](_0x2db433(0x1bc),_0x38a8c3,_0x556189);}[_0x265175(0x1a5)](){const _0x40a6ee=_0x265175;this[_0x40a6ee(0x1e3)]=!0x0,this[_0x40a6ee(0x1a0)]&&this[_0x40a6ee(0x1a0)][_0x40a6ee(0x1e1)][_0x40a6ee(0x1bf)](),this[_0x40a6ee(0x1ce)]&&this[_0x40a6ee(0x1ce)][_0x40a6ee(0x1db)](),this[_0x40a6ee(0x1a0)]=this[_0x40a6ee(0x1ce)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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();}
23
+ const _0x5821b8=_0x17f9;(function(_0x31f81f,_0x5e6d22){const _0x2a6519=_0x17f9,_0x3dbd9b=_0x31f81f();while(!![]){try{const _0x5abbea=parseInt(_0x2a6519(0x1cc))/0x1+-parseInt(_0x2a6519(0x1b5))/0x2*(-parseInt(_0x2a6519(0x1ce))/0x3)+-parseInt(_0x2a6519(0x1ba))/0x4*(parseInt(_0x2a6519(0x1c0))/0x5)+-parseInt(_0x2a6519(0x1d4))/0x6*(-parseInt(_0x2a6519(0x1b7))/0x7)+-parseInt(_0x2a6519(0x1c9))/0x8*(-parseInt(_0x2a6519(0x1c6))/0x9)+parseInt(_0x2a6519(0x1d5))/0xa*(-parseInt(_0x2a6519(0x1b9))/0xb)+-parseInt(_0x2a6519(0x1cd))/0xc*(parseInt(_0x2a6519(0x1bb))/0xd);if(_0x5abbea===_0x5e6d22)break;else _0x3dbd9b['push'](_0x3dbd9b['shift']());}catch(_0x420a52){_0x3dbd9b['push'](_0x3dbd9b['shift']());}}}(_0x3d41,0x6d5db));function _0x17f9(_0x2b77e7,_0x521f3f){const _0x3d4188=_0x3d41();return _0x17f9=function(_0x17f97a,_0x15850b){_0x17f97a=_0x17f97a-0x1b5;let _0x2d3d27=_0x3d4188[_0x17f97a];return _0x2d3d27;},_0x17f9(_0x2b77e7,_0x521f3f);}import{CKEditorError as _0x200cbb,EmitterMixin as _0x4a3b46,logWarning as _0xbd8fc8}from'ckeditor5/src/utils.js';import{getTranslation as _0x3357a7}from'../utils/common-translations.js';export class AIModels extends _0x4a3b46(){[_0x5821b8(0x1c1)];[_0x5821b8(0x1d6)];[_0x5821b8(0x1c2)];[_0x5821b8(0x1d9)]=[];constructor({connector:_0x1589a3,availableModels:_0x5df6e7,defaultModelId:_0x55073b}){const _0x1148a5=_0x5821b8;super(),this[_0x1148a5(0x1c1)]=_0x1589a3,this[_0x1148a5(0x1d6)]=_0x5df6e7,this[_0x1148a5(0x1c2)]=_0x55073b;}async[_0x5821b8(0x1d7)](){const _0x3379a1=_0x5821b8;if(!this[_0x3379a1(0x1d9)][_0x3379a1(0x1e2)])try{const _0x263336=this[_0x3379a1(0x1c1)][_0x3379a1(0x1df)](),_0x2bda31=await _0x263336[_0x3379a1(0x1bd)]();this[_0x3379a1(0x1d9)]=_0x2bda31[_0x3379a1(0x1e1)];}catch(_0xefb72d){throw new _0x200cbb(_0x3379a1(0x1d2),null,{'error':_0xefb72d});}return[...this[_0x3379a1(0x1d9)]];}async[_0x5821b8(0x1d8)](){const _0x315684=_0x5821b8,_0x46f504=await this[_0x315684(0x1d7)]();return this[_0x315684(0x1dd)](_0x46f504,this[_0x315684(0x1d6)]);}async[_0x5821b8(0x1db)](_0x5c5b96){const _0x31caf6=_0x5821b8,_0x24d3d2=await this[_0x31caf6(0x1d7)]();if(!_0x24d3d2[_0x31caf6(0x1e2)])return null;if(_0x5c5b96){const _0x51c7c0=this[_0x31caf6(0x1cb)](_0x24d3d2,_0x5c5b96);if(_0x51c7c0)return _0x51c7c0;_0xbd8fc8(_0x31caf6(0x1d3),{'modelId':_0x5c5b96,'fallBackModelId':this[_0x31caf6(0x1c2)]});}return this[_0x31caf6(0x1bf)]();}async[_0x5821b8(0x1bf)](){const _0x334cc2=_0x5821b8,_0x41067b=await this[_0x334cc2(0x1d8)]();if(!_0x41067b[_0x334cc2(0x1e2)])return null;if(this[_0x334cc2(0x1c2)]){const _0x5935e8=this[_0x334cc2(0x1cb)](_0x41067b,this[_0x334cc2(0x1c2)]);if(_0x5935e8)return _0x5935e8;_0xbd8fc8(_0x334cc2(0x1c5),{'defaultModelId':this[_0x334cc2(0x1c2)],'fallBackModelId':_0x41067b[0x0]['id']});}return _0x41067b[0x0];}async[_0x5821b8(0x1e3)](_0x1ab394){const _0x387861=_0x5821b8;return(await this[_0x387861(0x1d8)]())[_0x387861(0x1ca)](_0x4bfeb7=>_0x4bfeb7[_0x387861(0x1b6)]===_0x1ab394[_0x387861(0x1b6)]&&_0x4bfeb7[_0x387861(0x1bc)]===_0x1ab394[_0x387861(0x1bc)]);}[_0x5821b8(0x1dd)](_0x109924,_0x46e744){const _0x382e3b=_0x5821b8;let _0x3a0632;if(_0x46e744){_0x3a0632=[];const _0x32a9f0=_0x382e3b(0x1dc)==typeof _0x46e744?[_0x46e744[_0x382e3b(0x1c8)]()]:_0x46e744[_0x382e3b(0x1de)](_0x1688c3=>_0x1688c3[_0x382e3b(0x1c8)]());for(const _0x1a69cc of _0x32a9f0)for(const _0x2f6146 of _0x109924)(_0x2f6146['id'][_0x382e3b(0x1c8)]()===_0x1a69cc||_0x2f6146[_0x382e3b(0x1b6)][_0x382e3b(0x1c8)]()===_0x1a69cc||Ne(_0x2f6146)&&_0x382e3b(0x1c4)===_0x1a69cc||_0x2f6146[_0x382e3b(0x1bc)][_0x382e3b(0x1c8)]()===_0x1a69cc||_0x2f6146['id'][_0x382e3b(0x1c8)]()[_0x382e3b(0x1cf)](_0x1a69cc))&&_0x3a0632[_0x382e3b(0x1da)](_0x2f6146);}else _0x3a0632=_0x109924;return _0x3a0632;}[_0x5821b8(0x1cb)](_0x56d3f2,_0x2634da){const _0x341c56=_0x5821b8;return _0x56d3f2[_0x341c56(0x1d0)](_0x53f3dd=>Ne(_0x53f3dd)&&_0x341c56(0x1c4)===_0x2634da?_0x53f3dd:_0x53f3dd['id']===_0x2634da)||null;}static[_0x5821b8(0x1c7)](_0x3a6dfd,_0x4ff709){const _0x3ef3b4=_0x5821b8;return _0x4ff709[_0x3ef3b4(0x1de)](_0xe33f94=>{const _0x1f729a=_0x3ef3b4;if(Ne(_0xe33f94))_0xe33f94[_0x1f729a(0x1b6)]=_0x3357a7(_0x3a6dfd,_0x1f729a(0x1e0)),_0xe33f94[_0x1f729a(0x1b8)]=_0x3357a7(_0x3a6dfd,_0x1f729a(0x1d1));else _0x3357a7(_0x3a6dfd,_0x1f729a(0x1e4)+_0xe33f94['id'][_0x1f729a(0x1be)]())[_0x1f729a(0x1cf)](_0x1f729a(0x1e4))||(_0xe33f94[_0x1f729a(0x1b8)]=_0x3357a7(_0x3a6dfd,_0x1f729a(0x1e4)+_0xe33f94['id'][_0x1f729a(0x1be)]()));return _0xe33f94;});}}function _0x3d41(){const _0xaa390=['AI_MODEL_NAME_AUTO','items','length','isAvailable','AI_MODEL_DESCRIPTION_','446CwdmPW','name','7qVfLTD','description','2020568AWpiJd','4WZKTXo','26793VuAgUT','provider','list','toUpperCase','getDefault','4278235icwKKQ','_connector','_defaultModelId','agent','auto','ai-chat-default-model-id-unrecognized','63dgiION','getLocalized','toLocaleLowerCase','486376lXTccg','some','_getModelById','672819uFKIKD','828eYzJci','7788xNkuSD','startsWith','find','AI_MODEL_DESCRIPTION_AUTO','ai-models-unable-to-retrieve','ai-chat-model-id-unrecognized','1917462etAxFJ','30KJkSFf','_availableModels','getAll','getAvailableModels','_modelList','push','getModel','string','_filterModels','map','getModels'];_0x3d41=function(){return _0xaa390;};return _0x3d41();}function Ne(_0xba9b2a){const _0x192db2=_0x5821b8;return _0xba9b2a['id'][_0x192db2(0x1cf)](_0x192db2(0x1c3));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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;}
23
+ const _0x1ae9d4=_0x502e;(function(_0x50eb8c,_0x3019f0){const _0x3377fa=_0x502e,_0x4007ba=_0x50eb8c();while(!![]){try{const _0x1a7c49=parseInt(_0x3377fa(0x1fa))/0x1*(parseInt(_0x3377fa(0x1e6))/0x2)+parseInt(_0x3377fa(0x20c))/0x3+-parseInt(_0x3377fa(0x1e4))/0x4+parseInt(_0x3377fa(0x1f2))/0x5+-parseInt(_0x3377fa(0x1fc))/0x6*(parseInt(_0x3377fa(0x1d2))/0x7)+parseInt(_0x3377fa(0x201))/0x8*(parseInt(_0x3377fa(0x1e8))/0x9)+parseInt(_0x3377fa(0x1d6))/0xa*(-parseInt(_0x3377fa(0x20e))/0xb);if(_0x1a7c49===_0x3019f0)break;else _0x4007ba['push'](_0x4007ba['shift']());}catch(_0x48b1b8){_0x4007ba['push'](_0x4007ba['shift']());}}}(_0x3b40,0xf0b12));function _0x3b40(){const _0x5003aa=['context','editor','unshift','every','forEach','modification-delta','stopListening','source','AI_SUGGESTION_CONTENT_PART_REMOVED','withDiff','change:content','reasoning','fire','conversation-title','merge','_getDifferentChangeGroups','aiResponseParser','7WxxHiE','_getCachedContentParts','isDone','removedNodeIds','29880gdFOvx','locale','_setCachedContentParts','removed','setChangeGroupState','data-unstable','ai-reply-get-content-parts-group-not-found','destroy','getContentParts','ai-get-editor-from-context-no-editor','appendContent','done','type','interactionId','1129304KUkyOu','map','8JUqkVa','parsedContent','17728398dphWVy','changes','filter','replyContentUpdated','aiResponseApplier','values','areActionsDisabled','newNodeIds','node','includes','2854815WStkwy','index','convertMarkdownToHTML','length','replyChangeGroupStateUpdated','set','documentContextContent','span','394343ZBxclp','withoutDiff','52926nlBJSq','web-search','modified','cloneNode','parsedMergedContent','8msQAnv','text-delta','content','previousSibling','find','updateChangeGroups','push','data-id','cachedSuggestionContentParts','sources','new','4644708BPjNxs','indexOf','16159sceZNM','modifiedNodeIds','changeGroups','pending','splice','onContentChange','state','color:\x20#808080;\x20font-style:\x20italic','nextSibling','parseAndNormalizeHTML'];_0x3b40=function(){return _0x5003aa;};return _0x3b40();}import{CKEditorError as _0x32da5e,ObservableMixin as _0x32ad48,uid as _0x279237}from'ckeditor5/src/utils.js';import{Element as _0x5c5c2f,findAll as _0x18311e,getAttribute as _0x4189e2,getParents as _0x1673c9,Document as _0x395878,parse as _0x1cdcaf,Text as _0x529011}from'../utils/htmlparser.js';import{AIResponseParser as _0x4dbfa3}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x391f34}from'../pipeline/airesponseapplier.js';function _0x502e(_0x5cea80,_0x1ab4bb){const _0x3b409d=_0x3b40();return _0x502e=function(_0x502e85,_0x3e5ebe){_0x502e85=_0x502e85-0x1c9;let _0x18055e=_0x3b409d[_0x502e85];return _0x18055e;},_0x502e(_0x5cea80,_0x1ab4bb);}import{getSuggestionPartsFromReply as _0x75cf6d}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x34d524}from'../utils/common-translations.js';import{cloneDeep as _0x218d2b}from'es-toolkit';export const AI_REPLY_TYPES=[_0x1ae9d4(0x21d),_0x1ae9d4(0x202),_0x1ae9d4(0x1fd),_0x1ae9d4(0x1cc)];export const AI_REPLY_TYPES_IGNORED=[_0x1ae9d4(0x1ce)];export const AI_REPLY_TITLE_TYPE=_0x1ae9d4(0x1ce);export class AIReply extends _0x32ad48(){['id'];[_0x1ae9d4(0x1e3)];[_0x1ae9d4(0x1e2)];[_0x1ae9d4(0x20a)]=[];[_0x1ae9d4(0x1e7)]=new _0x395878([]);[_0x1ae9d4(0x200)]=new _0x395878([]);[_0x1ae9d4(0x210)]=[];[_0x1ae9d4(0x1ee)]=!0x1;[_0x1ae9d4(0x1f8)];[_0x1ae9d4(0x1d1)];[_0x1ae9d4(0x1ec)];[_0x1ae9d4(0x219)];[_0x1ae9d4(0x209)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x132310,content:_0x30ca75='',isDone:_0x10d869=!0x1,interactionId:_0x2f015a,areActionsDisabled:_0x8e0592,documentContextContent:_0x9e4be2,editor:_0x15a8fd,id:_0x42245c}){const _0x445163=_0x1ae9d4;super(),this['id']=_0x42245c||_0x279237(),this[_0x445163(0x1e3)]=_0x2f015a,this[_0x445163(0x1e2)]=_0x132310,this[_0x445163(0x1ee)]=!!_0x8e0592,this[_0x445163(0x219)]=_0x15a8fd,this[_0x445163(0x1d1)]=new _0x4dbfa3(),this[_0x445163(0x1ec)]=new _0x391f34(),this[_0x445163(0x1f8)]=_0x1cdcaf(_0x9e4be2||''),this[_0x445163(0x1f7)](_0x445163(0x1d4),_0x10d869),this['on'](_0x445163(0x1cb),()=>{const _0x3faaa8=_0x445163;this[_0x3faaa8(0x213)]();}),this[_0x445163(0x1f7)](_0x445163(0x203),_0x30ca75);}[_0x1ae9d4(0x1e0)](_0xc59182){const _0x588544=_0x1ae9d4;this[_0x588544(0x1f7)](_0x588544(0x203),this[_0x588544(0x203)]+_0xc59182);}[_0x1ae9d4(0x1e1)](){const _0x795f01=_0x1ae9d4;this[_0x795f01(0x1d4)]||(this[_0x795f01(0x1f7)](_0x795f01(0x1d4),!0x0),this[_0x795f01(0x213)]());}[_0x1ae9d4(0x1dd)](){const _0x1bd8ee=_0x1ae9d4;this[_0x1bd8ee(0x21e)]();}[_0x1ae9d4(0x1da)](_0x5baf62,_0x317eb2){const _0x5e92cb=_0x1ae9d4;this[_0x5e92cb(0x210)][_0x5baf62][_0x5e92cb(0x214)]=_0x317eb2,this[_0x5e92cb(0x1cd)](_0x5e92cb(0x1f6),{'reply':this,'index':_0x5baf62,'state':_0x317eb2});}[_0x1ae9d4(0x1de)]({showDiff:_0x3e42db,groupIndex:_0x10ce8f}){const _0x598a55=_0x1ae9d4;if(!this[_0x598a55(0x219)])throw new _0x32da5e(_0x598a55(0x1df),null,{'aiReply':this});const _0x589e84=this[_0x598a55(0x1d3)](_0x3e42db,_0x10ce8f);if(_0x589e84)return _0x589e84;let _0x3a4faf=[];if(void 0x0===_0x10ce8f)_0x3a4faf=this[_0x598a55(0x210)];else{const _0x172f47=this[_0x598a55(0x210)][_0x598a55(0x205)](({index:_0x528132})=>_0x528132===_0x10ce8f);if(!_0x172f47)throw new _0x32da5e(_0x598a55(0x1dc),null,{'aiReply':this,'groupIndex':_0x10ce8f});_0x3a4faf=[_0x172f47];}const _0x16536a=_0x75cf6d({'editor':this[_0x598a55(0x219)],'showDiff':_0x3e42db,'changeGroups':_0x3a4faf,'documentContextContent':this[_0x598a55(0x1f8)]});return this[_0x598a55(0x1d8)](_0x3e42db,_0x16536a),_0x16536a;}[_0x1ae9d4(0x1d3)](_0x5a6a84,_0x55a910){const _0x157a95=_0x1ae9d4,_0x2c3a40=_0x5a6a84?_0x157a95(0x1ca):_0x157a95(0x1fb);if(!this[_0x157a95(0x209)][_0x2c3a40][_0x157a95(0x1f5)])return null;const _0x14379c=this[_0x157a95(0x209)][_0x2c3a40];if(void 0x0===_0x55a910)return _0x218d2b(_0x14379c);{const _0x1aeb28=_0x14379c[_0x157a95(0x205)](({index:_0x587894})=>_0x587894===_0x55a910);if(_0x1aeb28)return[_0x218d2b(_0x1aeb28)];}return null;}[_0x1ae9d4(0x1d8)](_0x586f8b,_0x3f89e2){const _0x130753=_0x1ae9d4,_0x5a1b29=_0x586f8b?_0x130753(0x1ca):_0x130753(0x1fb);_0x3f89e2[_0x130753(0x21c)](_0x38dddb=>{const _0x4b3c72=_0x130753,_0x4a7962=this[_0x4b3c72(0x209)][_0x5a1b29],_0x42a704=_0x4a7962[_0x4b3c72(0x205)](({index:_0x2040ef})=>_0x2040ef===_0x38dddb[_0x4b3c72(0x1f3)]);if(_0x42a704){const _0x3a3179=_0x4a7962[_0x4b3c72(0x20d)](_0x42a704);_0x4a7962[_0x4b3c72(0x212)](_0x3a3179,0x1,_0x38dddb);}else _0x4a7962[_0x4b3c72(0x207)](_0x38dddb);});}[_0x1ae9d4(0x213)](){const _0x277ae7=_0x1ae9d4;if(_0x277ae7(0x21d)===this[_0x277ae7(0x1e2)]){this[_0x277ae7(0x1e7)]=this[_0x277ae7(0x1d1)][_0x277ae7(0x217)](this[_0x277ae7(0x203)]);const _0x1c1f09=this[_0x277ae7(0x210)];this[_0x277ae7(0x206)]();const _0x37641b=this[_0x277ae7(0x1d0)](_0x1c1f09,this[_0x277ae7(0x210)]);(_0x37641b[_0x277ae7(0x1f5)]||this[_0x277ae7(0x1d4)])&&(this[_0x277ae7(0x1cd)](_0x277ae7(0x1eb),this,_0x37641b),this[_0x277ae7(0x209)][_0x277ae7(0x1ca)][_0x277ae7(0x1f5)]=this[_0x277ae7(0x209)][_0x277ae7(0x1fb)][_0x277ae7(0x1f5)]=0x0);}else this[_0x277ae7(0x1e7)]=this[_0x277ae7(0x1d1)][_0x277ae7(0x1f4)](this[_0x277ae7(0x203)]),this[_0x277ae7(0x1cd)](_0x277ae7(0x1eb),this);}[_0x1ae9d4(0x1d0)](_0x453898,_0x4f113c){const _0x26d0b8=_0x1ae9d4,_0x4376f5=[];for(const _0x4d0492 of _0x4f113c){const _0x3cf476=_0x453898[_0x4d0492[_0x26d0b8(0x1f3)]];_0x3cf476?_0x3cf476[_0x26d0b8(0x1e9)][_0x26d0b8(0x1f5)]!==_0x4d0492[_0x26d0b8(0x1e9)][_0x26d0b8(0x1f5)]?_0x4376f5[_0x26d0b8(0x207)](_0x4d0492):_0x3cf476[_0x26d0b8(0x1e9)][_0x26d0b8(0x21c)]((_0x36f7cc,_0x419acf)=>{const _0x59dafc=_0x26d0b8,_0x5dc347=_0x4d0492[_0x59dafc(0x1e9)][_0x419acf];_0x36f7cc['id']!==_0x5dc347['id']&&_0x4376f5[_0x59dafc(0x207)](_0x4d0492);}):_0x4376f5[_0x26d0b8(0x207)](_0x4d0492);}return _0x4376f5;}[_0x1ae9d4(0x206)](){const _0x459068=_0x1ae9d4,_0x53e927=new _0x5c5c2f('p',{},[new _0x5c5c2f(_0x459068(0x1f9),{'style':_0x459068(0x215)},[new _0x529011(_0x34d524(this[_0x459068(0x219)][_0x459068(0x1d7)],_0x459068(0x1c9)))])]),_0x248971=this[_0x459068(0x1ec)][_0x459068(0x1cf)](this[_0x459068(0x1e7)],this[_0x459068(0x1f8)][_0x459068(0x1ff)](!0x0),{'markUnstableElements':!this[_0x459068(0x1d4)],'replaceRemovedWith':_0x53e927,'cutAfterLastChange':!this[_0x459068(0x1d4)]});if(!_0x248971[_0x459068(0x20f)][_0x459068(0x1f5)]&&!this[_0x459068(0x1d4)])return;this[_0x459068(0x200)]=_0x248971[_0x459068(0x1e7)];let _0x50f44c=[];if(_0x18311e(_0x2be8a3=>{const _0x563803=_0x459068,_0x59a265=_0x4189e2(_0x2be8a3,_0x563803(0x208));if(!_0x59a265||!_0x3304ad(_0x59a265))return!0x1;const _0x38eaa0=[_0x2be8a3,..._0x1673c9(_0x2be8a3)]['at'](-0x2);if(_0x2be8a3!=_0x38eaa0){const _0x3e35cc=_0x4189e2(_0x38eaa0,_0x563803(0x208));_0x3304ad(_0x3e35cc)||(_0x50f44c[_0x563803(0x207)]({'node':_0x38eaa0,'id':_0x3e35cc,'type':_0x563803(0x1fe)}),_0x248971[_0x563803(0x20f)][_0x563803(0x207)](_0x3e35cc));}else _0x248971[_0x563803(0x20f)][_0x563803(0x1f1)](_0x59a265)?_0x50f44c[_0x563803(0x207)]({'node':_0x2be8a3,'type':_0x563803(0x1fe),'id':_0x59a265}):_0x248971[_0x563803(0x1ef)][_0x563803(0x1f1)](_0x59a265)?_0x50f44c[_0x563803(0x207)]({'node':_0x2be8a3,'type':_0x563803(0x20b),'id':_0x59a265,'anchorId':_0x4189e2(_0x2be8a3[_0x563803(0x204)],_0x563803(0x208))}):_0x50f44c[_0x563803(0x207)]({'node':_0x2be8a3,'type':_0x563803(0x1d9),'id':_0x59a265});return!0x0;},this[_0x459068(0x200)]),_0x50f44c=_0x50f44c[_0x459068(0x1ea)](({node:_0x4256e9})=>[..._0x1673c9(_0x4256e9),_0x4256e9][_0x459068(0x21b)](_0x26a67d=>!_0x4189e2(_0x26a67d,_0x459068(0x1db)))),0x0==_0x50f44c[_0x459068(0x1f5)])return;const _0x5b81d4=[[_0x50f44c[0x0]]];for(let _0x5204f6=0x1;_0x5204f6<_0x50f44c[_0x459068(0x1f5)];_0x5204f6++){const _0x1e488f=_0x5b81d4[_0x5b81d4[_0x459068(0x1f5)]-0x1],_0x2dfff5=_0x1e488f[_0x1e488f[_0x459068(0x1f5)]-0x1];_0x50f44c[_0x5204f6][_0x459068(0x1f0)][_0x459068(0x204)]==_0x2dfff5[_0x459068(0x1f0)]&&_0x459068(0x1fe)!=_0x50f44c[_0x5204f6][_0x459068(0x1e2)]&&_0x459068(0x1fe)!=_0x2dfff5[_0x459068(0x1e2)]?_0x1e488f[_0x459068(0x207)](_0x50f44c[_0x5204f6]):_0x5b81d4[_0x459068(0x207)]([_0x50f44c[_0x5204f6]]);}for(const _0x269c59 of _0x5b81d4){const _0x39ec4d=_0x269c59[0x0],_0x102bed=_0x269c59[_0x269c59[_0x459068(0x1f5)]-0x1],_0x7d0af4=_0x427f8d(_0x39ec4d[_0x459068(0x1f0)][_0x459068(0x204)]);_0x7d0af4&&_0x269c59[_0x459068(0x21a)](_0x7d0af4);const _0x4168fb=_0x427f8d(_0x102bed[_0x459068(0x1f0)][_0x459068(0x216)]);_0x4168fb&&_0x269c59[_0x459068(0x207)](_0x4168fb);}function _0x3304ad(_0x2cc583){const _0x34d048=_0x459068;return _0x248971[_0x34d048(0x20f)][_0x34d048(0x1f1)](_0x2cc583)||_0x248971[_0x34d048(0x1ef)][_0x34d048(0x1f1)](_0x2cc583)||_0x248971[_0x34d048(0x1d5)][_0x34d048(0x1f1)](_0x2cc583);}function _0x427f8d(_0xe813ed){const _0x484fa3=_0x459068;if(_0xe813ed&&_0x4189e2(_0xe813ed,_0x484fa3(0x208))&&!_0x4189e2(_0xe813ed,_0x484fa3(0x1db))){const _0x398112=_0x4189e2(_0xe813ed,_0x484fa3(0x208));if(!_0x3304ad(_0x398112))return{'node':_0xe813ed,'type':_0x484fa3(0x218),'id':_0x398112};}return null;}this[_0x459068(0x210)]=_0x5b81d4[_0x459068(0x1e5)]((_0x50fafa,_0x1f6969)=>({'changes':_0x50fafa,'state':_0x459068(0x211),'index':_0x1f6969}));}}export function isValidReplyType(_0x58f3aa){const _0x440930=_0x1ae9d4;return Object[_0x440930(0x1ed)](AI_REPLY_TYPES)[_0x440930(0x1f1)](_0x58f3aa);}export function isIgnoredReplyType(_0x45c472){const _0x5c4047=_0x1ae9d4;return AI_REPLY_TYPES_IGNORED[_0x5c4047(0x1f1)](_0x45c472);}export function isReplyTitleType(_0xae83db){return _0xae83db===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x443725){const _0x508a11=_0x1ae9d4;return _0x508a11(0x21f)===_0x443725;}