@ckeditor/ckeditor5-ai 47.4.0-alpha.6 → 47.4.0

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 (134) 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/ui/aichatcontrolsview.js +1 -1
  35. package/src/aichat/ui/aichatfeedview.js +1 -1
  36. package/src/aichat/ui/aichatheaderview.js +1 -1
  37. package/src/aichat/ui/aichatview.js +1 -1
  38. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  39. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  42. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  43. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  45. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  50. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  57. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  58. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  59. package/src/aichat/utils/eventnames.js +1 -1
  60. package/src/aichat/utils/promisequeue.js +1 -1
  61. package/src/aichathistory/aichathistory.js +1 -1
  62. package/src/aichathistory/aichathistorycontroller.js +1 -1
  63. package/src/aichathistory/aichathistoryui.js +1 -1
  64. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  65. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  66. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  67. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  68. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  69. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  70. package/src/aicore/aiconnector.js +1 -1
  71. package/src/aicore/aiediting.js +1 -1
  72. package/src/aicore/model/aicapabilities.js +1 -1
  73. package/src/aicore/model/aiinteraction.js +1 -1
  74. package/src/aicore/model/aimodels.js +1 -1
  75. package/src/aicore/model/aireply.js +1 -1
  76. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  77. package/src/aicore/pipeline/airesponseparser.js +2 -2
  78. package/src/aicore/ui/aidisclaimerview.js +1 -1
  79. package/src/aicore/ui/aiskeleton.js +1 -1
  80. package/src/aicore/ui/aispinner.js +1 -1
  81. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  84. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  85. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  86. package/src/aicore/utils/createresizebutton.js +1 -1
  87. package/src/aicore/utils/documentposition.js +1 -1
  88. package/src/aicore/utils/documentrange.js +1 -1
  89. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  90. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  91. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  92. package/src/aicore/utils/htmlparser.js +1 -1
  93. package/src/aicore/utils/htmlstreamer.js +1 -1
  94. package/src/aicore/utils/scrollmanager.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/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  106. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  107. package/src/aireviewmode/aireviewmode.js +1 -1
  108. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  109. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  110. package/src/aireviewmode/aireviewmodeui.js +1 -1
  111. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  112. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  113. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  114. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  115. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  116. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  117. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  118. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  119. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  120. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  121. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  122. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  123. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  124. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  125. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  126. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  127. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  128. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  129. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  130. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  131. package/src/aitabs/aitabs.js +1 -1
  132. package/src/aitabs/tabs/aitabsview.js +1 -1
  133. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  134. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2aa48e=_0x36b6;(function(_0x2257e1,_0x97172){const _0x41bad9=_0x36b6,_0x556153=_0x2257e1();while(!![]){try{const _0x316025=parseInt(_0x41bad9(0x168))/0x1+parseInt(_0x41bad9(0x19c))/0x2+-parseInt(_0x41bad9(0x1b8))/0x3*(-parseInt(_0x41bad9(0x1b1))/0x4)+-parseInt(_0x41bad9(0x1ab))/0x5*(-parseInt(_0x41bad9(0x19a))/0x6)+parseInt(_0x41bad9(0x1a6))/0x7*(-parseInt(_0x41bad9(0x1b9))/0x8)+-parseInt(_0x41bad9(0x16c))/0x9+-parseInt(_0x41bad9(0x1a4))/0xa;if(_0x316025===_0x97172)break;else _0x556153['push'](_0x556153['shift']());}catch(_0x4b54e4){_0x556153['push'](_0x556153['shift']());}}}(_0x4f1c,0x305f9));import{View as _0x2328e0,SearchTextView as _0x52750a,FormHeaderView as _0x4032e4,ButtonView as _0x26896c}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x216847,IconCancel as _0x149d52,IconPlus as _0x58cde4}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x2193ad}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0xd6de98}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x4981c8}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3664d4}from'../aichathistoryui.js';import{AISkeletonView as _0x1ccd9a,SKELETON_DEFINITIONS as _0x2be148}from'../../aicore/ui/aiskeleton.js';function _0x4f1c(){const _0x17d217=['clear','execute','mainErrorView','resizeButton','isMaximized','getItem','change:isLoading','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_updateViewVisibility','_createSkeletonView','ck-ai-chat-history__content','12EoDHRy','ck-ai-notification_error__dismiss-button','141698jKYRXH','ck-ai-chat-history','isSearchViewVisible','updateLoadingState','ck-ai-chat-history__empty-message','itemsViews','sectionsView','emptyView','1926440WSdQXS','removeHistoryItem','695471CdmxsT','AI_CHAT_HISTORY_SEARCH_LABEL','aiHistory','openChat','ck-ai-chat__start-conversation','133520wZAJvH','updateItemLoadingState','ck-rounded-corners','fire','AI_CHAT_LABEL_NEW_CHAT','searchView','8Ybwxdk','ltr','render','remove','updateItemTitle','isMainErrorViewVisible','bindTemplate','152295bQKWDt','8geuPcp','value','extendTemplate','div','isVisible','change:hasItems','ck-ai-notification','ck-ai-chat-history__empty','delegate','isEmptyViewVisible','add','splice','309604ZkmUJt','children','errorMessage','push','407313XTQAMg','locale','skeletonView','_createListItemViews','sections','element','some','ck-hidden','title','length','_refreshSearch','AI_CHAT_HISTORY_HEADING','search','change:errorMessage','ck-reset_all','_createSearchView','updateTitle','bind','AI_CHAT_HISTORY_EMPTY_MESSAGE','_createErrorView','indexOf','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','addMany','set','items','setTemplate','updateHistoryItemsWithCategories','isLoading','hasItems','_createEmptyStateView','queryView','ck-ai-header\x20ck-ai-header_history','removeItem','ck-ai-notification_error','fieldView'];_0x4f1c=function(){return _0x17d217;};return _0x4f1c();}import{createResizeButton as _0x14ea6c}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x5b786a}from'../../aicore/utils/common-translations.js';function _0x36b6(_0x34ae98,_0x5b9039){const _0x4f1cbe=_0x4f1c();return _0x36b6=function(_0x36b600,_0x130d48){_0x36b600=_0x36b600-0x15d;let _0x7137fc=_0x4f1cbe[_0x36b600];return _0x7137fc;},_0x36b6(_0x34ae98,_0x5b9039);}export class AIChatHistoryView extends _0x2328e0{[_0x2aa48e(0x1b0)];[_0x2aa48e(0x191)];[_0x2aa48e(0x16e)];[_0x2aa48e(0x1a3)];[_0x2aa48e(0x1a2)];[_0x2aa48e(0x192)];constructor(_0x27d6d8,_0x868e13){const _0xaf9851=_0x2aa48e;super(_0x27d6d8),this[_0xaf9851(0x183)](_0xaf9851(0x188),!0x1),this[_0xaf9851(0x183)](_0xaf9851(0x187),!0x0),this[_0xaf9851(0x183)](_0xaf9851(0x16a),''),this[_0xaf9851(0x183)](_0xaf9851(0x193),!0x1),this[_0xaf9851(0x183)](_0xaf9851(0x19e),!0x1),this[_0xaf9851(0x183)](_0xaf9851(0x165),!0x1),this[_0xaf9851(0x183)](_0xaf9851(0x1b6),!0x1);const _0x1c84b2=new _0x4032e4(_0x27d6d8,{'label':_0x5b786a(_0x27d6d8,_0xaf9851(0x177)),'icon':_0x216847,'class':_0xaf9851(0x18b)});_0x868e13&&(this[_0xaf9851(0x192)]=_0x14ea6c(_0x27d6d8,this),_0x1c84b2[_0xaf9851(0x169)][_0xaf9851(0x166)](this[_0xaf9851(0x192)])),this[_0xaf9851(0x1a2)]=new _0x2193ad(_0x27d6d8,[]),this[_0xaf9851(0x1a2)][_0xaf9851(0x164)](..._0x3664d4)['to'](this),this[_0xaf9851(0x191)]=this[_0xaf9851(0x17f)](),this[_0xaf9851(0x16e)]=this[_0xaf9851(0x198)](),this[_0xaf9851(0x1a3)]=this[_0xaf9851(0x189)](),this[_0xaf9851(0x1b0)]=this[_0xaf9851(0x17b)](),this[_0xaf9851(0x191)][_0xaf9851(0x15e)]({'attributes':{'class':[this[_0xaf9851(0x1b7)]['if'](_0xaf9851(0x1b6),_0xaf9851(0x173),_0x25225d=>!_0x25225d)]}}),this['on'](_0xaf9851(0x195),()=>this[_0xaf9851(0x197)]()),this['on'](_0xaf9851(0x161),()=>this[_0xaf9851(0x197)]()),this['on'](_0xaf9851(0x179),()=>this[_0xaf9851(0x197)]()),this[_0xaf9851(0x185)]({'tag':_0xaf9851(0x15f),'attributes':{'class':['ck',_0xaf9851(0x17a),_0xaf9851(0x19d),_0xaf9851(0x1ad)],'dir':_0xaf9851(0x1b2)},'children':[_0x1c84b2,{'tag':_0xaf9851(0x15f),'attributes':{'class':[_0xaf9851(0x199)]},'children':[this[_0xaf9851(0x16e)],this[_0xaf9851(0x191)],this[_0xaf9851(0x1a3)],this[_0xaf9851(0x1b0)]]}]});}[_0x2aa48e(0x197)](){const _0x34468c=_0x2aa48e;this[_0x34468c(0x19e)]=!this[_0x34468c(0x187)]&&this[_0x34468c(0x188)],this[_0x34468c(0x165)]=!this[_0x34468c(0x187)]&&!this[_0x34468c(0x188)]&&!this[_0x34468c(0x16a)],this[_0x34468c(0x1b6)]=!this[_0x34468c(0x19e)]&&!!this[_0x34468c(0x16a)];}[_0x2aa48e(0x17b)](){const _0x5e29fb=_0x2aa48e,_0x1f9997=new _0x52750a(this[_0x5e29fb(0x16d)],{'filteredView':this[_0x5e29fb(0x1a2)],'queryView':{'label':_0x5b786a(this[_0x5e29fb(0x16d)],_0x5e29fb(0x1a7))},'infoView':{'text':{'notFound':{'primary':_0x44fc5d=>_0x5b786a(this[_0x5e29fb(0x16d)],_0x5e29fb(0x196),_0x44fc5d),'secondary':_0x5b786a(this[_0x5e29fb(0x16d)],_0x5e29fb(0x181))}}}}),_0x30d964=this[_0x5e29fb(0x17f)]();return _0x30d964[_0x5e29fb(0x15e)]({'attributes':{'class':[this[_0x5e29fb(0x1b7)]['if'](_0x5e29fb(0x16a),_0x5e29fb(0x173),_0x48be7e=>!_0x48be7e)]}}),_0x1f9997['on'](_0x5e29fb(0x1b3),()=>{const _0x46bdd5=_0x5e29fb;_0x1f9997[_0x46bdd5(0x169)][_0x46bdd5(0x166)](_0x30d964,0x1);}),_0x1f9997[_0x5e29fb(0x15e)]({'attributes':{'class':[this[_0x5e29fb(0x1b7)]['if'](_0x5e29fb(0x19e),_0x5e29fb(0x173),_0x1eea6e=>!_0x1eea6e)]}}),_0x1f9997;}[_0x2aa48e(0x198)](){const _0x4b40a5=_0x2aa48e,_0x53d12e=new _0x1ccd9a(this[_0x4b40a5(0x16d)],_0x2be148[_0x4b40a5(0x1a8)]);return _0x53d12e[_0x4b40a5(0x15e)]({'attributes':{'class':[this[_0x4b40a5(0x1b7)]['if'](_0x4b40a5(0x187),_0x4b40a5(0x173),_0x45b185=>!_0x45b185)]}}),_0x53d12e;}[_0x2aa48e(0x17f)](){const _0xf951c1=_0x2aa48e,_0xded35c=new _0x2328e0(this[_0xf951c1(0x16d)]),_0x5ea2a4=new _0x26896c(this[_0xf951c1(0x16d)]);_0x5ea2a4[_0xf951c1(0x183)]({'withText':!0x1,'icon':_0x149d52,'class':_0xf951c1(0x19b)}),_0x5ea2a4[_0xf951c1(0x17d)](_0xf951c1(0x160))['to'](this,_0xf951c1(0x188),_0x4f4c6e=>!!_0x4f4c6e),_0x5ea2a4['on'](_0xf951c1(0x190),()=>{const _0x5640f7=_0xf951c1;this[_0x5640f7(0x16a)]='';});const _0x29bf21=this[_0xf951c1(0x1b7)];return _0xded35c[_0xf951c1(0x185)]({'tag':_0xf951c1(0x15f),'attributes':{'class':['ck',_0xf951c1(0x162),_0xf951c1(0x18d)]},'children':[{'tag':'p','children':[{'text':_0x29bf21['to'](_0xf951c1(0x16a))}]},_0x5ea2a4]}),_0xded35c;}[_0x2aa48e(0x189)](){const _0x1031ab=_0x2aa48e,_0x2fe34e=new _0x26896c(this[_0x1031ab(0x16d)]);_0x2fe34e[_0x1031ab(0x183)]({'label':_0x5b786a(this[_0x1031ab(0x16d)],_0x1031ab(0x1af)),'withText':!0x0,'icon':_0x58cde4,'class':_0x1031ab(0x1aa)}),_0x2fe34e['on'](_0x1031ab(0x190),()=>{const _0x5351ae=_0x1031ab;this[_0x5351ae(0x1ae)](_0x5351ae(0x1a9));});const _0x3c6858=new _0x2328e0(this[_0x1031ab(0x16d)]);return _0x3c6858[_0x1031ab(0x185)]({'tag':_0x1031ab(0x15f),'attributes':{'class':[_0x1031ab(0x163),this[_0x1031ab(0x1b7)]['if'](_0x1031ab(0x165),_0x1031ab(0x173),_0x3d6aef=>!_0x3d6aef)]},'children':[{'tag':'p','attributes':{'class':[_0x1031ab(0x1a0)]},'children':[_0x5b786a(this[_0x1031ab(0x16d)],_0x1031ab(0x17e))]},_0x2fe34e]}),_0x3c6858;}[_0x2aa48e(0x16f)](_0x1248d4,_0x2252ca){const _0x318597=_0x2aa48e,_0x43a66a=[];for(const _0x72543f of _0x1248d4){const _0x4f774d=new _0x4981c8(_0x2252ca,_0x72543f);_0x4f774d[_0x318597(0x164)](..._0x3664d4)['to'](this),_0x43a66a[_0x318597(0x16b)](_0x4f774d);}return _0x43a66a;}[_0x2aa48e(0x186)](_0x534d24){const _0x19f532=_0x2aa48e,_0x30a027=this[_0x19f532(0x16d)]||'en',_0x390e20=[];for(const _0xab88e7 of _0x534d24){const _0x4c938d=this[_0x19f532(0x16f)](_0xab88e7[_0x19f532(0x184)],_0x30a027);_0x390e20[_0x19f532(0x16b)](new _0xd6de98(_0x30a027,{'title':_0xab88e7[_0x19f532(0x174)],'items':_0x4c938d}));}this[_0x19f532(0x1a2)][_0x19f532(0x170)]=_0x390e20,this[_0x19f532(0x1a2)][_0x19f532(0x184)][_0x19f532(0x18f)](),this[_0x19f532(0x1a2)][_0x19f532(0x184)][_0x19f532(0x182)](_0x390e20),this[_0x19f532(0x188)]=_0x534d24[_0x19f532(0x172)](_0x29c67c=>_0x29c67c[_0x19f532(0x184)][_0x19f532(0x175)]>0x0),this[_0x19f532(0x176)]();}[_0x2aa48e(0x1a5)](_0x31023e){const _0x47c44f=_0x2aa48e;for(const _0x3ed31c of this[_0x47c44f(0x1a2)][_0x47c44f(0x170)]){const _0xf32b87=_0x3ed31c[_0x47c44f(0x194)](_0x31023e);if(_0xf32b87){if(_0x3ed31c[_0x47c44f(0x18c)](_0xf32b87),0x0===_0x3ed31c[_0x47c44f(0x1a1)][_0x47c44f(0x175)]){const _0x8b167a=this[_0x47c44f(0x1a2)][_0x47c44f(0x170)][_0x47c44f(0x180)](_0x3ed31c);-0x1!==_0x8b167a&&(this[_0x47c44f(0x1a2)][_0x47c44f(0x170)][_0x47c44f(0x167)](_0x8b167a,0x1),this[_0x47c44f(0x1a2)][_0x47c44f(0x184)][_0x47c44f(0x1b4)](_0x3ed31c));}this[_0x47c44f(0x188)]=this[_0x47c44f(0x1a2)][_0x47c44f(0x170)][_0x47c44f(0x175)]>0x0,this[_0x47c44f(0x176)]();break;}}}[_0x2aa48e(0x1b5)](_0x20c679,_0x2336c7){const _0x38fdb8=_0x2aa48e;for(const _0x252f20 of this[_0x38fdb8(0x1a2)][_0x38fdb8(0x170)]){const _0x4972c6=_0x252f20[_0x38fdb8(0x194)](_0x20c679);if(_0x4972c6){_0x4972c6[_0x38fdb8(0x17c)](_0x2336c7);break;}}}[_0x2aa48e(0x1ac)](_0x2ad416,_0x39ba07,_0x143384){const _0x1633ec=_0x2aa48e;for(const _0x245011 of this[_0x1633ec(0x1a2)][_0x1633ec(0x170)]){const _0x4c6d8f=_0x245011[_0x1633ec(0x194)](_0x2ad416);if(_0x4c6d8f){_0x4c6d8f[_0x1633ec(0x19f)](_0x39ba07,_0x143384);break;}}}[_0x2aa48e(0x176)](){const _0x11e933=_0x2aa48e;if(this[_0x11e933(0x188)]){const _0x5c1e34=this[_0x11e933(0x1b0)][_0x11e933(0x18a)][_0x11e933(0x18e)]?.[_0x11e933(0x171)]?.[_0x11e933(0x15d)]||'';this[_0x11e933(0x1b0)][_0x11e933(0x178)](_0x5c1e34);}}}
23
+ const _0x84200e=_0x41e6;(function(_0x1541c2,_0xbb255b){const _0x544c59=_0x41e6,_0x432e07=_0x1541c2();while(!![]){try{const _0x3117b4=parseInt(_0x544c59(0x1a7))/0x1+-parseInt(_0x544c59(0x17d))/0x2+-parseInt(_0x544c59(0x15b))/0x3+parseInt(_0x544c59(0x172))/0x4+parseInt(_0x544c59(0x176))/0x5*(parseInt(_0x544c59(0x165))/0x6)+-parseInt(_0x544c59(0x15d))/0x7+parseInt(_0x544c59(0x15c))/0x8*(parseInt(_0x544c59(0x16f))/0x9);if(_0x3117b4===_0xbb255b)break;else _0x432e07['push'](_0x432e07['shift']());}catch(_0x2a7af5){_0x432e07['push'](_0x432e07['shift']());}}}(_0x1e73,0x9c250));import{View as _0x40f31d,SearchTextView as _0xe7bb52,FormHeaderView as _0x9803dd,ButtonView as _0x40d92b}from'ckeditor5/src/ui.js';function _0x1e73(){const _0x4ac263=['push','isLoading','isVisible','change:errorMessage','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','_createListItemViews','AI_CHAT_HISTORY_HEADING','clear','_updateViewVisibility','_createSkeletonView','itemsViews','ck-ai-notification_error__dismiss-button','ck-ai-chat-history__empty-message','ck-ai-notification_error','execute','updateHistoryItemsWithCategories','items','ck-ai-chat__start-conversation','ck-rounded-corners','407823LzcNLw','extendTemplate','AI_CHAT_LABEL_NEW_CHAT','_createErrorView','setTemplate','skeletonView','aiHistory','updateLoadingState','ck-ai-chat-history','openChat','_createSearchView','sections','div','sectionsView','fieldView','removeItem','2160759PXbbiJ','128qoRwbK','1627549yZZTKt','isMainErrorViewVisible','render','bind','emptyView','isSearchViewVisible','searchView','some','42lIuroB','mainErrorView','removeHistoryItem','remove','hasItems','delegate','_refreshSearch','change:isLoading','ck-ai-chat-history__content','errorMessage','476757YoXhlw','AI_CHAT_HISTORY_EMPTY_MESSAGE','indexOf','1900064kZYAlA','locale','search','AI_CHAT_HISTORY_SEARCH_LABEL','648355TWPPPU','isMaximized','title','_createEmptyStateView','value','updateItemLoadingState','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','2091552CEhjOH','isEmptyViewVisible','getItem','resizeButton','children','ltr','splice','queryView','ck-hidden','ck-ai-header\x20ck-ai-header_history','length','set','bindTemplate','ck-ai-notification','ck-reset_all','element','add','addMany','updateItemTitle','ck-ai-chat-history__empty','change:hasItems','updateTitle','fire'];_0x1e73=function(){return _0x4ac263;};return _0x1e73();}import{IconAIHistory as _0x56b8ed,IconCancel as _0x566143,IconPlus as _0x14f64f}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x1fa903}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x1add7f}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x4955d9}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x5dde31}from'../aichathistoryui.js';import{AISkeletonView as _0x352475,SKELETON_DEFINITIONS as _0x11b865}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x297ce2}from'../../aicore/utils/createresizebutton.js';function _0x41e6(_0x3cab68,_0x53ccef){const _0x1e731d=_0x1e73();return _0x41e6=function(_0x41e6ce,_0x4b4852){_0x41e6ce=_0x41e6ce-0x152;let _0x2c2d93=_0x1e731d[_0x41e6ce];return _0x2c2d93;},_0x41e6(_0x3cab68,_0x53ccef);}import{getTranslation as _0x49a0cf}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x40f31d{[_0x84200e(0x163)];[_0x84200e(0x166)];[_0x84200e(0x1ac)];[_0x84200e(0x161)];[_0x84200e(0x158)];[_0x84200e(0x180)];constructor(_0x507d75,_0x1c06e7){const _0x5436eb=_0x84200e;super(_0x507d75),this[_0x5436eb(0x188)](_0x5436eb(0x169),!0x1),this[_0x5436eb(0x188)](_0x5436eb(0x195),!0x0),this[_0x5436eb(0x188)](_0x5436eb(0x16e),''),this[_0x5436eb(0x188)](_0x5436eb(0x177),!0x1),this[_0x5436eb(0x188)](_0x5436eb(0x162),!0x1),this[_0x5436eb(0x188)](_0x5436eb(0x17e),!0x1),this[_0x5436eb(0x188)](_0x5436eb(0x15e),!0x1);const _0x15eae7=new _0x9803dd(_0x507d75,{'label':_0x49a0cf(_0x507d75,_0x5436eb(0x19a)),'icon':_0x56b8ed,'class':_0x5436eb(0x186)});_0x1c06e7&&(this[_0x5436eb(0x180)]=_0x297ce2(_0x507d75,this),_0x15eae7[_0x5436eb(0x181)][_0x5436eb(0x18d)](this[_0x5436eb(0x180)])),this[_0x5436eb(0x158)]=new _0x1fa903(_0x507d75,[]),this[_0x5436eb(0x158)][_0x5436eb(0x16a)](..._0x5dde31)['to'](this),this[_0x5436eb(0x166)]=this[_0x5436eb(0x1aa)](),this[_0x5436eb(0x1ac)]=this[_0x5436eb(0x19d)](),this[_0x5436eb(0x161)]=this[_0x5436eb(0x179)](),this[_0x5436eb(0x163)]=this[_0x5436eb(0x155)](),this[_0x5436eb(0x166)][_0x5436eb(0x1a8)]({'attributes':{'class':[this[_0x5436eb(0x189)]['if'](_0x5436eb(0x15e),_0x5436eb(0x185),_0x56ecd9=>!_0x56ecd9)]}}),this['on'](_0x5436eb(0x16c),()=>this[_0x5436eb(0x19c)]()),this['on'](_0x5436eb(0x191),()=>this[_0x5436eb(0x19c)]()),this['on'](_0x5436eb(0x197),()=>this[_0x5436eb(0x19c)]()),this[_0x5436eb(0x1ab)]({'tag':_0x5436eb(0x157),'attributes':{'class':['ck',_0x5436eb(0x18b),_0x5436eb(0x153),_0x5436eb(0x1a6)],'dir':_0x5436eb(0x182)},'children':[_0x15eae7,{'tag':_0x5436eb(0x157),'attributes':{'class':[_0x5436eb(0x16d)]},'children':[this[_0x5436eb(0x1ac)],this[_0x5436eb(0x166)],this[_0x5436eb(0x161)],this[_0x5436eb(0x163)]]}]});}[_0x84200e(0x19c)](){const _0x2ed555=_0x84200e;this[_0x2ed555(0x162)]=!this[_0x2ed555(0x195)]&&this[_0x2ed555(0x169)],this[_0x2ed555(0x17e)]=!this[_0x2ed555(0x195)]&&!this[_0x2ed555(0x169)]&&!this[_0x2ed555(0x16e)],this[_0x2ed555(0x15e)]=!this[_0x2ed555(0x162)]&&!!this[_0x2ed555(0x16e)];}[_0x84200e(0x155)](){const _0x387582=_0x84200e,_0x440499=new _0xe7bb52(this[_0x387582(0x173)],{'filteredView':this[_0x387582(0x158)],'queryView':{'label':_0x49a0cf(this[_0x387582(0x173)],_0x387582(0x175))},'infoView':{'text':{'notFound':{'primary':_0x48d881=>_0x49a0cf(this[_0x387582(0x173)],_0x387582(0x17c),_0x48d881),'secondary':_0x49a0cf(this[_0x387582(0x173)],_0x387582(0x198))}}}}),_0x1eec71=this[_0x387582(0x1aa)]();return _0x1eec71[_0x387582(0x1a8)]({'attributes':{'class':[this[_0x387582(0x189)]['if'](_0x387582(0x16e),_0x387582(0x185),_0xa0fc51=>!_0xa0fc51)]}}),_0x440499['on'](_0x387582(0x15f),()=>{const _0x535ff3=_0x387582;_0x440499[_0x535ff3(0x181)][_0x535ff3(0x18d)](_0x1eec71,0x1);}),_0x440499[_0x387582(0x1a8)]({'attributes':{'class':[this[_0x387582(0x189)]['if'](_0x387582(0x162),_0x387582(0x185),_0x5a1e7f=>!_0x5a1e7f)]}}),_0x440499;}[_0x84200e(0x19d)](){const _0x45ba5c=_0x84200e,_0x1616e4=new _0x352475(this[_0x45ba5c(0x173)],_0x11b865[_0x45ba5c(0x1ad)]);return _0x1616e4[_0x45ba5c(0x1a8)]({'attributes':{'class':[this[_0x45ba5c(0x189)]['if'](_0x45ba5c(0x195),_0x45ba5c(0x185),_0x4bf0ae=>!_0x4bf0ae)]}}),_0x1616e4;}[_0x84200e(0x1aa)](){const _0x41baca=_0x84200e,_0x37ef66=new _0x40f31d(this[_0x41baca(0x173)]),_0x4c5a5d=new _0x40d92b(this[_0x41baca(0x173)]);_0x4c5a5d[_0x41baca(0x188)]({'withText':!0x1,'icon':_0x566143,'class':_0x41baca(0x19f)}),_0x4c5a5d[_0x41baca(0x160)](_0x41baca(0x196))['to'](this,_0x41baca(0x169),_0x145bed=>!!_0x145bed),_0x4c5a5d['on'](_0x41baca(0x1a2),()=>{const _0x45d3aa=_0x41baca;this[_0x45d3aa(0x16e)]='';});const _0xa33c=this[_0x41baca(0x189)];return _0x37ef66[_0x41baca(0x1ab)]({'tag':_0x41baca(0x157),'attributes':{'class':['ck',_0x41baca(0x18a),_0x41baca(0x1a1)]},'children':[{'tag':'p','children':[{'text':_0xa33c['to'](_0x41baca(0x16e))}]},_0x4c5a5d]}),_0x37ef66;}[_0x84200e(0x179)](){const _0x2f79d7=_0x84200e,_0x2daff8=new _0x40d92b(this[_0x2f79d7(0x173)]);_0x2daff8[_0x2f79d7(0x188)]({'label':_0x49a0cf(this[_0x2f79d7(0x173)],_0x2f79d7(0x1a9)),'withText':!0x0,'icon':_0x14f64f,'class':_0x2f79d7(0x1a5)}),_0x2daff8['on'](_0x2f79d7(0x1a2),()=>{const _0x4b1e81=_0x2f79d7;this[_0x4b1e81(0x193)](_0x4b1e81(0x154));});const _0x9808bd=new _0x40f31d(this[_0x2f79d7(0x173)]);return _0x9808bd[_0x2f79d7(0x1ab)]({'tag':_0x2f79d7(0x157),'attributes':{'class':[_0x2f79d7(0x190),this[_0x2f79d7(0x189)]['if'](_0x2f79d7(0x17e),_0x2f79d7(0x185),_0x1832a6=>!_0x1832a6)]},'children':[{'tag':'p','attributes':{'class':[_0x2f79d7(0x1a0)]},'children':[_0x49a0cf(this[_0x2f79d7(0x173)],_0x2f79d7(0x170))]},_0x2daff8]}),_0x9808bd;}[_0x84200e(0x199)](_0x4bc0b3,_0x5ba0e1){const _0xd59b50=_0x84200e,_0x54c18b=[];for(const _0x443637 of _0x4bc0b3){const _0x5840b9=new _0x4955d9(_0x5ba0e1,_0x443637);_0x5840b9[_0xd59b50(0x16a)](..._0x5dde31)['to'](this),_0x54c18b[_0xd59b50(0x194)](_0x5840b9);}return _0x54c18b;}[_0x84200e(0x1a3)](_0x3cf78d){const _0x4ff9e6=_0x84200e,_0x552a4e=this[_0x4ff9e6(0x173)]||'en',_0x5d7453=[];for(const _0x318ceb of _0x3cf78d){const _0x3326bb=this[_0x4ff9e6(0x199)](_0x318ceb[_0x4ff9e6(0x1a4)],_0x552a4e);_0x5d7453[_0x4ff9e6(0x194)](new _0x1add7f(_0x552a4e,{'title':_0x318ceb[_0x4ff9e6(0x178)],'items':_0x3326bb}));}this[_0x4ff9e6(0x158)][_0x4ff9e6(0x156)]=_0x5d7453,this[_0x4ff9e6(0x158)][_0x4ff9e6(0x1a4)][_0x4ff9e6(0x19b)](),this[_0x4ff9e6(0x158)][_0x4ff9e6(0x1a4)][_0x4ff9e6(0x18e)](_0x5d7453),this[_0x4ff9e6(0x169)]=_0x3cf78d[_0x4ff9e6(0x164)](_0x386e7b=>_0x386e7b[_0x4ff9e6(0x1a4)][_0x4ff9e6(0x187)]>0x0),this[_0x4ff9e6(0x16b)]();}[_0x84200e(0x167)](_0x2e9844){const _0x58d67b=_0x84200e;for(const _0x145a53 of this[_0x58d67b(0x158)][_0x58d67b(0x156)]){const _0x2e8b2e=_0x145a53[_0x58d67b(0x17f)](_0x2e9844);if(_0x2e8b2e){if(_0x145a53[_0x58d67b(0x15a)](_0x2e8b2e),0x0===_0x145a53[_0x58d67b(0x19e)][_0x58d67b(0x187)]){const _0x151982=this[_0x58d67b(0x158)][_0x58d67b(0x156)][_0x58d67b(0x171)](_0x145a53);-0x1!==_0x151982&&(this[_0x58d67b(0x158)][_0x58d67b(0x156)][_0x58d67b(0x183)](_0x151982,0x1),this[_0x58d67b(0x158)][_0x58d67b(0x1a4)][_0x58d67b(0x168)](_0x145a53));}this[_0x58d67b(0x169)]=this[_0x58d67b(0x158)][_0x58d67b(0x156)][_0x58d67b(0x187)]>0x0,this[_0x58d67b(0x16b)]();break;}}}[_0x84200e(0x18f)](_0x2bdb9c,_0x4c7a41){const _0x14532b=_0x84200e;for(const _0x221b30 of this[_0x14532b(0x158)][_0x14532b(0x156)]){const _0x400e56=_0x221b30[_0x14532b(0x17f)](_0x2bdb9c);if(_0x400e56){_0x400e56[_0x14532b(0x192)](_0x4c7a41);break;}}}[_0x84200e(0x17b)](_0x3c1549,_0x52b66a,_0x5dab72){const _0x178b91=_0x84200e;for(const _0xc96249 of this[_0x178b91(0x158)][_0x178b91(0x156)]){const _0x250455=_0xc96249[_0x178b91(0x17f)](_0x3c1549);if(_0x250455){_0x250455[_0x178b91(0x152)](_0x52b66a,_0x5dab72);break;}}}[_0x84200e(0x16b)](){const _0xe6a8f0=_0x84200e;if(this[_0xe6a8f0(0x169)]){const _0x206bfb=this[_0xe6a8f0(0x163)][_0xe6a8f0(0x184)][_0xe6a8f0(0x159)]?.[_0xe6a8f0(0x18c)]?.[_0xe6a8f0(0x17a)]||'';this[_0xe6a8f0(0x163)][_0xe6a8f0(0x174)](_0x206bfb);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x47fb91=_0x2650;(function(_0x438aaa,_0x598610){const _0x16535c=_0x2650,_0x5406df=_0x438aaa();while(!![]){try{const _0x5a2795=-parseInt(_0x16535c(0x1d5))/0x1*(-parseInt(_0x16535c(0x1e3))/0x2)+parseInt(_0x16535c(0x239))/0x3+parseInt(_0x16535c(0x253))/0x4*(-parseInt(_0x16535c(0x251))/0x5)+parseInt(_0x16535c(0x200))/0x6*(-parseInt(_0x16535c(0x259))/0x7)+parseInt(_0x16535c(0x22a))/0x8+parseInt(_0x16535c(0x20b))/0x9+-parseInt(_0x16535c(0x1de))/0xa;if(_0x5a2795===_0x598610)break;else _0x5406df['push'](_0x5406df['shift']());}catch(_0x3cad55){_0x5406df['push'](_0x5406df['shift']());}}}(_0x25d4,0x8074f));import{createParser as _0x4434a8}from'eventsource-parser';import{ContextPlugin as _0x506264}from'ckeditor5/src/core.js';function _0x25d4(){const _0x2d376a=['/messages/','json','stringify','MAKE_TONE_CASUAL','/web-resources','_sendApiRequest','deleteDocument','1009495ExpncI','upsertAIActionRating','8ibUGIs','ai.serviceUrl','application/json','make-tone-formal','ai-request-aborted','/messages','4823ilBZbm','statusText','limit','AbortError','continue','then','fetchConversationMessages','POST','PUT','token','100','getReader','updateConversation','releaseLock','27226PkeZWu','/actions/system/','feed','length','/documents/','excludeEmpty','group','executeAction','positiveCount','22604280yqCldV','items','fix-grammar','/conversations?','push','74lMufIe','/conversations','attributes','context','/files/','Bearer\x20','_handleError','read','uploadFile','keys','isPremiumPlugin','/ratings','/calls/','modificationId','/models/1?','totalCount','search','catch','deleteConversation','/reviews/system/','make-tone-casual','data','CloudServices','fetchConversation','uploadUrl','/files','_getStreamReader','pluginName','deleteWebResource','1770ttmRaX','/web-resources/','callSystemReview','CONTINUE','init','/documents','/calls','/actions/custom/calls','get','config','FIX_GRAMMAR','7293042FLaaiE','name','fetchConversations','message','body','callCustomReview','isOfficialPlugin','ai-missing-token','/reviews/custom/calls/','decode','/actions/custom/calls/','text','MAKE_LONGER','MAKE_SHORTER','fetchDocument','reset','toString','traceId','getModels','file','/conversations/','IMPROVE_WRITING','signal','GET','/reviews/custom/calls','AIConnector','make-longer','uploadDocument','_apiUrl','plugins','_token','7648872cZgXNF','upsertCustomAIReviewRating','_decoder','make-shorter','append','PATCH','executeCustomAction','parse','queryAssistant','ai-request-failed','upsertAIChatRating','request','abortController','code','TRANSLATE','1859493SzjpOS','define','true','Content-Type','DELETE','MAKE_TONE_FORMAL','status','https://ai.cke-cs.com/v1','translate','deleteFile','upsertCustomAIActionRating','requires','startConversation','value','language','upsertAIReviewRating','improve-writing'];_0x25d4=function(){return _0x2d376a;};return _0x25d4();}import{CKEditorError as _0x31869f}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x4dc2ab){const _0x2d7435=_0x2650;_0x4dc2ab[_0x2d7435(0x203)]=_0x2d7435(0x25d),_0x4dc2ab[_0x2d7435(0x20a)]=_0x2d7435(0x1e0),_0x4dc2ab[_0x2d7435(0x220)]=_0x2d7435(0x249),_0x4dc2ab[_0x2d7435(0x217)]=_0x2d7435(0x225),_0x4dc2ab[_0x2d7435(0x218)]=_0x2d7435(0x22d),_0x4dc2ab[_0x2d7435(0x24d)]=_0x2d7435(0x1f7),_0x4dc2ab[_0x2d7435(0x23e)]=_0x2d7435(0x256),_0x4dc2ab[_0x2d7435(0x238)]=_0x2d7435(0x241);}(AIActionsNames||(AIActionsNames={}));function _0x2650(_0x1c9edd,_0x11a73e){const _0x25d42a=_0x25d4();return _0x2650=function(_0x265007,_0x4a96c8){_0x265007=_0x265007-0x1d4;let _0x1329d7=_0x25d42a[_0x265007];return _0x1329d7;},_0x2650(_0x1c9edd,_0x11a73e);}export class AIConnector extends _0x506264{[_0x47fb91(0x227)];[_0x47fb91(0x229)];[_0x47fb91(0x22c)];static get[_0x47fb91(0x244)](){const _0x3f5631=_0x47fb91;return[_0x3f5631(0x1f9)];}static get[_0x47fb91(0x1fe)](){const _0x1b7feb=_0x47fb91;return _0x1b7feb(0x224);}static get[_0x47fb91(0x211)](){return!0x0;}static get[_0x47fb91(0x1ed)](){return!0x0;}constructor(_0x6df2e7){const _0x53410d=_0x47fb91;super(_0x6df2e7),this[_0x53410d(0x1e6)][_0x53410d(0x209)][_0x53410d(0x23a)](_0x53410d(0x254),_0x53410d(0x240)),this[_0x53410d(0x227)]=this[_0x53410d(0x1e6)][_0x53410d(0x209)][_0x53410d(0x208)](_0x53410d(0x254)),this[_0x53410d(0x229)]=null,this[_0x53410d(0x22c)]=new TextDecoder();}[_0x47fb91(0x204)](){const _0x97589a=_0x47fb91,_0x592c41=this[_0x97589a(0x1e6)][_0x97589a(0x228)][_0x97589a(0x208)](_0x97589a(0x1f9));if(!_0x592c41[_0x97589a(0x262)])throw new _0x31869f(_0x97589a(0x212),this);this[_0x97589a(0x229)]=_0x592c41[_0x97589a(0x262)];}[_0x47fb91(0x245)](_0x365241,_0x13aff1){const _0x379ba9=_0x47fb91,_0x4ee629=this[_0x379ba9(0x24f)](_0x379ba9(0x1e4),_0x379ba9(0x260),{'id':_0x365241,'group':_0x13aff1});return{'getConversation':async()=>(await _0x4ee629[_0x379ba9(0x235)])[_0x379ba9(0x24b)](),'abortController':_0x4ee629[_0x379ba9(0x236)]};}[_0x47fb91(0x232)]({message:_0x587f47,conversationId:_0x477a4c,parts:_0x4a25e5,capabilities:_0x47bf56,model:_0x4266c4,quickActionData:_0x367ec1}){const _0x455235=_0x47fb91,_0x2a3da5={..._0x367ec1&&{'quickActionData':_0x367ec1}},_0x440150={'prompt':_0x587f47,'content':_0x4a25e5,'model':_0x4266c4,..._0x47bf56&&{'capabilities':_0x47bf56},...Object[_0x455235(0x1ec)](_0x2a3da5)[_0x455235(0x1d8)]>0x0&&{'attributes':_0x2a3da5}},_0x22ffcf=this[_0x455235(0x24f)](_0x455235(0x21f)+_0x477a4c+_0x455235(0x258),_0x455235(0x260),_0x440150);return{'getStream':async()=>{const _0x553385=_0x455235,_0x425cd7=(await _0x22ffcf[_0x553385(0x235)])[_0x553385(0x20f)];return this[_0x553385(0x1fd)](_0x425cd7);},'abortController':_0x22ffcf[_0x455235(0x236)]};}[_0x47fb91(0x230)]({content:_0x3c1050,message:_0x574495,model:_0x36673e,outputFormat:_0x5aaa71}){const _0x1abdc0=_0x47fb91,_0x39cc2f={'content':[{'type':_0x1abdc0(0x216),'content':_0x3c1050}],'prompt':_0x574495,'model':_0x36673e,'outputFormat':_0x5aaa71},_0x4ebb1d=this[_0x1abdc0(0x24f)](_0x1abdc0(0x207),_0x1abdc0(0x260),_0x39cc2f);return{'getStream':async()=>{const _0x41e953=_0x1abdc0,_0x470f6a=(await _0x4ebb1d[_0x41e953(0x235)])[_0x41e953(0x20f)];return this[_0x41e953(0x1fd)](_0x470f6a);},'abortController':_0x4ebb1d[_0x1abdc0(0x236)]};}[_0x47fb91(0x1dc)]({actionName:_0x524078,content:_0x1949df,args:_0x18fe22}){const _0x583899=_0x47fb91,_0x66ce49={'content':[{'type':_0x583899(0x216),'content':_0x1949df}],'args':_0x18fe22},_0x376c57=this[_0x583899(0x24f)](_0x583899(0x1d6)+_0x524078+_0x583899(0x206),_0x583899(0x260),_0x66ce49);return{'getStream':async()=>{const _0x573dab=_0x583899,_0x4b0445=(await _0x376c57[_0x573dab(0x235)])[_0x573dab(0x20f)];return this[_0x573dab(0x1fd)](_0x4b0445);},'abortController':_0x376c57[_0x583899(0x236)]};}[_0x47fb91(0x1eb)](_0x193e04,_0x2cd3ff,_0x248789){const _0x30b950=_0x47fb91,_0x324df2=new FormData();_0x324df2[_0x30b950(0x22e)](_0x30b950(0x21e),_0x2cd3ff,_0x2cd3ff[_0x30b950(0x20c)]),_0x248789&&_0x324df2[_0x30b950(0x22e)](_0x30b950(0x1e5),JSON[_0x30b950(0x24c)](_0x248789));const _0x32ce09=this[_0x30b950(0x24f)](_0x30b950(0x21f)+_0x193e04+_0x30b950(0x1fc),_0x30b950(0x260),_0x324df2);return{'getId':async()=>(await _0x32ce09[_0x30b950(0x235)])[_0x30b950(0x24b)](),'abortController':_0x32ce09[_0x30b950(0x236)]};}[_0x47fb91(0x219)](_0x1556ca,_0x57008f){const _0x275dfc=_0x47fb91,_0x3d567e=this[_0x275dfc(0x24f)](_0x275dfc(0x21f)+_0x1556ca+_0x275dfc(0x1d9)+_0x57008f,_0x275dfc(0x222));return{'getDocument':async()=>(await _0x3d567e[_0x275dfc(0x235)])[_0x275dfc(0x24b)](),'abortController':_0x3d567e[_0x275dfc(0x236)]};}[_0x47fb91(0x226)](_0x16001b,_0x2139ae,_0xf90be9){const _0x49c5e2=_0x47fb91,_0x1ce7c6={'content':_0x2139ae};_0xf90be9&&(_0x1ce7c6[_0x49c5e2(0x1e5)]=_0xf90be9);const _0x4d705d=this[_0x49c5e2(0x24f)](_0x49c5e2(0x21f)+_0x16001b+_0x49c5e2(0x205),_0x49c5e2(0x260),_0x1ce7c6);return{'getId':async()=>(await _0x4d705d[_0x49c5e2(0x235)])[_0x49c5e2(0x24b)](),'abortController':_0x4d705d[_0x49c5e2(0x236)]};}[_0x47fb91(0x20d)](_0x31ffcf,_0x5548b9){const _0x211421=_0x47fb91,_0x1b2834=new URLSearchParams();_0x1b2834[_0x211421(0x22e)](_0x211421(0x1da),_0x211421(0x23b)),_0x1b2834[_0x211421(0x22e)](_0x211421(0x25b),_0x211421(0x263)),_0x1b2834[_0x211421(0x22e)](_0x211421(0x1db),_0x31ffcf),_0x5548b9&&_0x1b2834[_0x211421(0x22e)](_0x211421(0x1f3),_0x5548b9);const _0x3199c3=this[_0x211421(0x24f)](_0x211421(0x1e1)+_0x1b2834[_0x211421(0x21b)](),_0x211421(0x222));return{'getConversations':async()=>{const _0x4976c4=_0x211421,_0x55efdc=await _0x3199c3[_0x4976c4(0x235)];return(await _0x55efdc[_0x4976c4(0x24b)]())[_0x4976c4(0x1df)];},'abortController':_0x3199c3[_0x211421(0x236)]};}[_0x47fb91(0x1f5)](_0x1468c1){const _0xda8c3c=_0x47fb91,_0x4b7191=this[_0xda8c3c(0x24f)](_0xda8c3c(0x21f)+_0x1468c1,_0xda8c3c(0x23d));return{'execute':async()=>{const _0x1cd4ba=_0xda8c3c;await _0x4b7191[_0x1cd4ba(0x235)];},'abortController':_0x4b7191[_0xda8c3c(0x236)]};}[_0x47fb91(0x265)](_0x2a7f2f,_0x562809){const _0x1841db=_0x47fb91,_0x103f0f=this[_0x1841db(0x24f)](_0x1841db(0x21f)+_0x2a7f2f,_0x1841db(0x22f),_0x562809);return{'getResult':async()=>(await _0x103f0f[_0x1841db(0x235)],_0x562809),'abortController':_0x103f0f[_0x1841db(0x236)]};}[_0x47fb91(0x1fa)](_0x32b8d1){const _0x2c7976=_0x47fb91,_0x359632=this[_0x2c7976(0x24f)](_0x2c7976(0x21f)+_0x32b8d1,_0x2c7976(0x222));return{'getConversation':async()=>(await _0x359632[_0x2c7976(0x235)])[_0x2c7976(0x24b)](),'abortController':_0x359632[_0x2c7976(0x236)]};}[_0x47fb91(0x25f)](_0x237e13){const _0x13c22b=_0x47fb91,_0x2bb493=this[_0x13c22b(0x24f)](_0x13c22b(0x21f)+_0x237e13+_0x13c22b(0x258),_0x13c22b(0x222));return{'getMessages':async()=>{const _0x4206f8=_0x13c22b,_0x31f1f5=await _0x2bb493[_0x4206f8(0x235)];return(await _0x31f1f5[_0x4206f8(0x24b)]())[_0x4206f8(0x1df)];},'abortController':_0x2bb493[_0x13c22b(0x236)]};}[_0x47fb91(0x1fb)](_0x41bf1c,_0x44d16a,_0x3b0081){const _0x4bcad3=_0x47fb91,_0xd5e7d8=this[_0x4bcad3(0x24f)](_0x4bcad3(0x21f)+_0x41bf1c+_0x4bcad3(0x24e),_0x4bcad3(0x260),{'url':_0x44d16a,'attributes':_0x3b0081});return{'getId':async()=>(await _0xd5e7d8[_0x4bcad3(0x235)])[_0x4bcad3(0x24b)](),'abortController':_0xd5e7d8[_0x4bcad3(0x236)]};}[_0x47fb91(0x21d)](_0x3aa6c2='en'){const _0x244b4f=_0x47fb91,_0x572245=new URLSearchParams();_0x572245[_0x244b4f(0x22e)](_0x244b4f(0x247),_0x3aa6c2);const _0x374531=_0x244b4f(0x1f1)+_0x572245[_0x244b4f(0x21b)](),_0x78703a=this[_0x244b4f(0x24f)](_0x374531,_0x244b4f(0x222));return{'list':async()=>await(await _0x78703a[_0x244b4f(0x235)])[_0x244b4f(0x24b)](),'abortController':_0x78703a[_0x244b4f(0x236)]};}[_0x47fb91(0x242)](_0x4bebe5,_0x1225ce){const _0x1c56c8=_0x47fb91,_0x176c74=this[_0x1c56c8(0x24f)](_0x1c56c8(0x21f)+_0x4bebe5+_0x1c56c8(0x1e7)+_0x1225ce,_0x1c56c8(0x23d));return{'execute':async()=>{const _0x42062c=_0x1c56c8;await _0x176c74[_0x42062c(0x235)];},'abortController':_0x176c74[_0x1c56c8(0x236)]};}[_0x47fb91(0x250)](_0x1ec6bb,_0x1ad675){const _0x131619=_0x47fb91,_0x5cd82f=this[_0x131619(0x24f)](_0x131619(0x21f)+_0x1ec6bb+_0x131619(0x1d9)+_0x1ad675,_0x131619(0x23d));return{'execute':async()=>{const _0x48555e=_0x131619;await _0x5cd82f[_0x48555e(0x235)];},'abortController':_0x5cd82f[_0x131619(0x236)]};}[_0x47fb91(0x1ff)](_0x507c06,_0x794d3c){const _0x5273f8=_0x47fb91,_0x1b5d9e=this[_0x5273f8(0x24f)](_0x5273f8(0x21f)+_0x507c06+_0x5273f8(0x201)+_0x794d3c,_0x5273f8(0x23d));return{'execute':async()=>{const _0x2d6630=_0x5273f8;await _0x1b5d9e[_0x2d6630(0x235)];},'abortController':_0x1b5d9e[_0x5273f8(0x236)]};}[_0x47fb91(0x202)]({reviewName:_0xe047cf,content:_0x5615d2,args:_0xa4dac4}){const _0x351f98=_0x47fb91,_0x23b880=this[_0x351f98(0x24f)](_0x351f98(0x1f6)+_0xe047cf+_0x351f98(0x206),_0x351f98(0x260),{'content':[{'type':_0x351f98(0x216),'content':_0x5615d2}],'args':_0xa4dac4});return{'getStream':async()=>{const _0x1e8b16=_0x351f98,_0x376b5f=(await _0x23b880[_0x1e8b16(0x235)])[_0x1e8b16(0x20f)];return this[_0x1e8b16(0x1fd)](_0x376b5f);},'abortController':_0x23b880[_0x351f98(0x236)]};}[_0x47fb91(0x210)]({content:_0x1fc615,prompt:_0x2f806f,model:_0xfdbcab}){const _0x3bf28d=_0x47fb91,_0x1d35a2=this[_0x3bf28d(0x24f)](_0x3bf28d(0x223),_0x3bf28d(0x260),{'content':[{'type':_0x3bf28d(0x216),'content':_0x1fc615}],'prompt':_0x2f806f,'model':_0xfdbcab});return{'getStream':async()=>{const _0x3f2e22=_0x3bf28d,_0x3e3ec3=(await _0x1d35a2[_0x3f2e22(0x235)])[_0x3f2e22(0x20f)];return this[_0x3f2e22(0x1fd)](_0x3e3ec3);},'abortController':_0x1d35a2[_0x3bf28d(0x236)]};}[_0x47fb91(0x234)](_0x2ba8af,_0x1a4a61,_0x1be450){const _0x3a83ae=_0x47fb91,_0x45084c=this[_0x3a83ae(0x24f)](_0x3a83ae(0x21f)+_0x2ba8af+_0x3a83ae(0x24a)+_0x1a4a61+_0x3a83ae(0x1ee),_0x3a83ae(0x261),{'positiveCount':_0x1be450[_0x3a83ae(0x1dd)],'totalCount':_0x1be450[_0x3a83ae(0x1f2)],'modificationId':_0x1be450[_0x3a83ae(0x1f0)]});return{'execute':async()=>{const _0x1dc78c=_0x3a83ae;await _0x45084c[_0x1dc78c(0x235)];},'abortController':_0x45084c[_0x3a83ae(0x236)]};}[_0x47fb91(0x252)](_0x4c51b6,_0x3e5cda,_0x33331d){const _0x5ceeb4=_0x47fb91,_0x436665=this[_0x5ceeb4(0x24f)](_0x5ceeb4(0x1d6)+_0x4c51b6+_0x5ceeb4(0x1ef)+_0x3e5cda+_0x5ceeb4(0x1ee),_0x5ceeb4(0x261),{'positiveCount':_0x33331d[_0x5ceeb4(0x1dd)],'totalCount':_0x33331d[_0x5ceeb4(0x1f2)]});return{'execute':async()=>{const _0x3945d4=_0x5ceeb4;await _0x436665[_0x3945d4(0x235)];},'abortController':_0x436665[_0x5ceeb4(0x236)]};}[_0x47fb91(0x243)](_0x552a88,_0x5a352e){const _0x4fef1f=_0x47fb91,_0x3e7504=this[_0x4fef1f(0x24f)](_0x4fef1f(0x215)+_0x552a88+_0x4fef1f(0x1ee),_0x4fef1f(0x261),{'positiveCount':_0x5a352e[_0x4fef1f(0x1dd)],'totalCount':_0x5a352e[_0x4fef1f(0x1f2)]});return{'execute':async()=>{const _0x825aba=_0x4fef1f;await _0x3e7504[_0x825aba(0x235)];},'abortController':_0x3e7504[_0x4fef1f(0x236)]};}[_0x47fb91(0x248)](_0x332dbe,_0xb9070,_0x864b14,_0x3540d9){const _0x1a10fd=_0x47fb91,_0x166f8c=this[_0x1a10fd(0x24f)](_0x1a10fd(0x1f6)+_0x332dbe+_0x1a10fd(0x1ef)+_0xb9070+_0x1a10fd(0x1ee),_0x1a10fd(0x261),{'positiveCount':_0x864b14[_0x1a10fd(0x1dd)],'totalCount':_0x864b14[_0x1a10fd(0x1f2)],'dataId':_0x3540d9});return{'execute':async()=>{const _0x2b4c5f=_0x1a10fd;await _0x166f8c[_0x2b4c5f(0x235)];},'abortController':_0x166f8c[_0x1a10fd(0x236)]};}[_0x47fb91(0x22b)](_0x2ccf8e,_0x38e811,_0x370c0a){const _0x2996e8=_0x47fb91,_0x4b02c2=this[_0x2996e8(0x24f)](_0x2996e8(0x213)+_0x2ccf8e+_0x2996e8(0x1ee),_0x2996e8(0x261),{'positiveCount':_0x38e811[_0x2996e8(0x1dd)],'totalCount':_0x38e811[_0x2996e8(0x1f2)],'dataId':_0x370c0a});return{'execute':async()=>{const _0xa90fe8=_0x2996e8;await _0x4b02c2[_0xa90fe8(0x235)];},'abortController':_0x4b02c2[_0x2996e8(0x236)]};}[_0x47fb91(0x24f)](_0x2d00bd,_0x1eb38c,_0x1697d3){const _0x13f1a2=_0x47fb91,_0x221849=new AbortController(),_0x120aff=_0x1697d3 instanceof FormData,_0x31d02a={'Authorization':_0x13f1a2(0x1e8)+this[_0x13f1a2(0x229)]?.[_0x13f1a2(0x246)]};_0x1697d3&&!_0x120aff&&(_0x31d02a[_0x13f1a2(0x23c)]=_0x13f1a2(0x255));const _0x4a9e5d={'method':_0x1eb38c,'headers':_0x31d02a,'signal':_0x221849[_0x13f1a2(0x221)]};return _0x1697d3&&(_0x4a9e5d[_0x13f1a2(0x20f)]=_0x120aff?_0x1697d3:JSON[_0x13f1a2(0x24c)](_0x1697d3)),{'request':fetch(''+this[_0x13f1a2(0x227)]+_0x2d00bd,_0x4a9e5d)[_0x13f1a2(0x1f4)](_0x51d6c4=>{const _0x317084=_0x13f1a2;this[_0x317084(0x1e9)](_0x51d6c4);})[_0x13f1a2(0x25e)](_0x302757=>_0x302757['ok']?_0x302757:_0x302757[_0x13f1a2(0x24b)]()[_0x13f1a2(0x25e)](_0x50456e=>{const _0x499749=_0x13f1a2;throw{'url':this[_0x499749(0x227)],'path':_0x2d00bd,'method':_0x1eb38c,'body':_0x1697d3,'status':(_0x302757||{})[_0x499749(0x23f)],'statusText':(_0x302757||{})[_0x499749(0x25a)],'code':_0x50456e[_0x499749(0x237)],'message':_0x50456e[_0x499749(0x20e)],'traceId':_0x50456e[_0x499749(0x21c)]};})),'abortController':_0x221849};}async*[_0x47fb91(0x1fd)](_0x332929){const _0x163daa=_0x47fb91,_0x5d59d0=[],_0x5b34a2=_0x332929[_0x163daa(0x264)](),_0x46d2f9=_0x4434a8({'onError':_0x345b38=>{const _0x295e12=_0x163daa;this[_0x295e12(0x1e9)](_0x345b38);},'onEvent':_0x29319b=>{const _0x123505=_0x163daa;_0x29319b[_0x123505(0x1f8)]=JSON[_0x123505(0x231)](_0x29319b[_0x123505(0x1f8)]),_0x5d59d0[_0x123505(0x1e2)](_0x29319b);}});try{let _0xfafdfc=!0x1;for(;!_0xfafdfc;){const {done:_0x397dfb,value:_0xc2ba96}=await _0x5b34a2[_0x163daa(0x1ea)]();_0x397dfb&&(_0xfafdfc=!0x0),_0x46d2f9[_0x163daa(0x1d7)](this[_0x163daa(0x22c)][_0x163daa(0x214)](_0xc2ba96,{'stream':!0x0})),yield*_0x5d59d0,_0x5d59d0[_0x163daa(0x1d8)]=0x0;}}catch(_0x11f77a){this[_0x163daa(0x1e9)](_0x11f77a);}finally{_0x5b34a2[_0x163daa(0x1d4)](),_0x46d2f9[_0x163daa(0x21a)]();}}[_0x47fb91(0x1e9)](_0x3d530d){const _0x18b235=_0x47fb91;if(_0x3d530d instanceof _0x31869f)throw _0x3d530d;if(_0x3d530d instanceof Error&&_0x18b235(0x25c)===_0x3d530d[_0x18b235(0x20c)])throw new _0x31869f(_0x18b235(0x257),this,{'originalError':_0x3d530d});throw new _0x31869f(_0x18b235(0x233),this,{'originalError':_0x3d530d});}}
23
+ const _0x3502db=_0x5d02;function _0x5d02(_0x1443b2,_0x296db5){const _0x34b506=_0x34b5();return _0x5d02=function(_0x5d02ce,_0x182d0e){_0x5d02ce=_0x5d02ce-0xb4;let _0x5a4249=_0x34b506[_0x5d02ce];return _0x5a4249;},_0x5d02(_0x1443b2,_0x296db5);}function _0x34b5(){const _0x1118c7=['Content-Type','feed','2870ARrvRq','make-shorter','request','8702joJRdO','/ratings','releaseLock','toString','/conversations?','then','ai-request-failed','length','executeAction','read','push','fetchConversations','upsertCustomAIReviewRating','parse','body','value','1894137NpxSrB','deleteWebResource','status','/conversations/','deleteDocument','improve-writing','100','stringify','/files/','https://ai.cke-cs.com/v1','updateConversation','excludeEmpty','positiveCount','application/json','executeCustomAction','upsertAIActionRating','search','_apiUrl','code','queryAssistant','getReader','fetchConversationMessages','902043iIzMdG','/documents/','7lnCjMz','TRANSLATE','token','/reviews/system/','AbortError','/conversations','394aNrUHn','upsertAIReviewRating','startConversation','/web-resources','MAKE_TONE_FORMAL','fetchDocument','1095402USnjZM','make-tone-casual','pluginName','_decoder','PUT','name','json','callCustomReview','make-tone-formal','/calls','PATCH','_token','/reviews/custom/calls','plugins','get','/actions/custom/calls/','make-longer','catch','modificationId','abortController','limit','/messages/','/web-resources/','CloudServices','1051185Qqmbwm','CONTINUE','continue','/actions/custom/calls','MAKE_TONE_CASUAL','signal','upsertAIChatRating','totalCount','/reviews/custom/calls/','uploadUrl','append','text','fetchConversation','keys','FIX_GRAMMAR','attributes','/actions/system/','context','data','POST','upsertCustomAIActionRating','ai.serviceUrl','reset','statusText','decode','GET','items','isPremiumPlugin','translate','4394184DGHUAk','IMPROVE_WRITING','file','true','callSystemReview','/files','ai-missing-token','isOfficialPlugin','group','_sendApiRequest','/documents','getModels','MAKE_SHORTER','traceId','20YsYMug','init','/models/1?','_getStreamReader','deleteFile','fix-grammar','uploadFile','define','ai-request-aborted','Bearer\x20','56672JoOBkK','config','requires','message','MAKE_LONGER','AIConnector','DELETE','/calls/','language','deleteConversation','_handleError','/messages','uploadDocument'];_0x34b5=function(){return _0x1118c7;};return _0x34b5();}(function(_0x5e62f1,_0xbc0480){const _0xcafa29=_0x5d02,_0x32f2fc=_0x5e62f1();while(!![]){try{const _0x18a116=parseInt(_0xcafa29(0x137))/0x1*(-parseInt(_0xcafa29(0xd2))/0x2)+parseInt(_0xcafa29(0xb4))/0x3+parseInt(_0xcafa29(0x11b))/0x4*(parseInt(_0xcafa29(0xf0))/0x5)+parseInt(_0xcafa29(0xd8))/0x6+-parseInt(_0xcafa29(0xcc))/0x7*(parseInt(_0xcafa29(0x10d))/0x8)+-parseInt(_0xcafa29(0xca))/0x9+-parseInt(_0xcafa29(0x134))/0xa*(-parseInt(_0xcafa29(0x125))/0xb);if(_0x18a116===_0xbc0480)break;else _0x32f2fc['push'](_0x32f2fc['shift']());}catch(_0x33ff97){_0x32f2fc['push'](_0x32f2fc['shift']());}}}(_0x34b5,0xef3f9));import{createParser as _0x54b8c5}from'eventsource-parser';import{ContextPlugin as _0x3e90aa}from'ckeditor5/src/core.js';import{CKEditorError as _0x13d870}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x1065b2){const _0x53bace=_0x5d02;_0x1065b2[_0x53bace(0xf1)]=_0x53bace(0xf2),_0x1065b2[_0x53bace(0xfe)]=_0x53bace(0x120),_0x1065b2[_0x53bace(0x10e)]=_0x53bace(0xb9),_0x1065b2[_0x53bace(0x129)]=_0x53bace(0xe8),_0x1065b2[_0x53bace(0x119)]=_0x53bace(0x135),_0x1065b2[_0x53bace(0xf4)]=_0x53bace(0xd9),_0x1065b2[_0x53bace(0xd6)]=_0x53bace(0xe0),_0x1065b2[_0x53bace(0xcd)]=_0x53bace(0x10c);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x3e90aa{[_0x3502db(0xc5)];[_0x3502db(0xe3)];[_0x3502db(0xdb)];static get[_0x3502db(0x127)](){const _0xb12976=_0x3502db;return[_0xb12976(0xef)];}static get[_0x3502db(0xda)](){const _0x108754=_0x3502db;return _0x108754(0x12a);}static get[_0x3502db(0x114)](){return!0x0;}static get[_0x3502db(0x10b)](){return!0x0;}constructor(_0x2468f6){const _0x2b42c7=_0x3502db;super(_0x2468f6),this[_0x2b42c7(0x101)][_0x2b42c7(0x126)][_0x2b42c7(0x122)](_0x2b42c7(0x105),_0x2b42c7(0xbd)),this[_0x2b42c7(0xc5)]=this[_0x2b42c7(0x101)][_0x2b42c7(0x126)][_0x2b42c7(0xe6)](_0x2b42c7(0x105)),this[_0x2b42c7(0xe3)]=null,this[_0x2b42c7(0xdb)]=new TextDecoder();}[_0x3502db(0x11c)](){const _0x147a5c=_0x3502db,_0x5c4206=this[_0x147a5c(0x101)][_0x147a5c(0xe5)][_0x147a5c(0xe6)](_0x147a5c(0xef));if(!_0x5c4206[_0x147a5c(0xce)])throw new _0x13d870(_0x147a5c(0x113),this);this[_0x147a5c(0xe3)]=_0x5c4206[_0x147a5c(0xce)];}[_0x3502db(0xd4)](_0x2477ac,_0x12c431){const _0x34dc78=_0x3502db,_0x574f6f=this[_0x34dc78(0x116)](_0x34dc78(0xd1),_0x34dc78(0x103),{'id':_0x2477ac,'group':_0x12c431});return{'getConversation':async()=>(await _0x574f6f[_0x34dc78(0x136)])[_0x34dc78(0xde)](),'abortController':_0x574f6f[_0x34dc78(0xeb)]};}[_0x3502db(0xc7)]({message:_0x4cefcf,conversationId:_0x44245e,parts:_0x4865cd,capabilities:_0x14d5de,model:_0x34595a,quickActionData:_0x1031cc}){const _0xedf53e=_0x3502db,_0x4dfe50={..._0x1031cc&&{'quickActionData':_0x1031cc}},_0x38900c={'prompt':_0x4cefcf,'content':_0x4865cd,'model':_0x34595a,..._0x14d5de&&{'capabilities':_0x14d5de},...Object[_0xedf53e(0xfd)](_0x4dfe50)[_0xedf53e(0x13e)]>0x0&&{'attributes':_0x4dfe50}},_0x22e5fc=this[_0xedf53e(0x116)](_0xedf53e(0xb7)+_0x44245e+_0xedf53e(0x130),_0xedf53e(0x103),_0x38900c);return{'getStream':async()=>{const _0x233cf2=_0xedf53e,_0x5393b7=(await _0x22e5fc[_0x233cf2(0x136)])[_0x233cf2(0x145)];return this[_0x233cf2(0x11e)](_0x5393b7);},'abortController':_0x22e5fc[_0xedf53e(0xeb)]};}[_0x3502db(0xc2)]({content:_0xbed303,message:_0x432e66,model:_0x4f3209,outputFormat:_0x151083}){const _0xac3a68=_0x3502db,_0x28e43c={'content':[{'type':_0xac3a68(0xfb),'content':_0xbed303}],'prompt':_0x432e66,'model':_0x4f3209,'outputFormat':_0x151083},_0x421011=this[_0xac3a68(0x116)](_0xac3a68(0xf3),_0xac3a68(0x103),_0x28e43c);return{'getStream':async()=>{const _0x4152b6=_0xac3a68,_0x14bb29=(await _0x421011[_0x4152b6(0x136)])[_0x4152b6(0x145)];return this[_0x4152b6(0x11e)](_0x14bb29);},'abortController':_0x421011[_0xac3a68(0xeb)]};}[_0x3502db(0x13f)]({actionName:_0x4b3992,content:_0x5a2240,args:_0x5df8e7}){const _0x3c2501=_0x3502db,_0x5e3e92={'content':[{'type':_0x3c2501(0xfb),'content':_0x5a2240}],'args':_0x5df8e7},_0x3f5204=this[_0x3c2501(0x116)](_0x3c2501(0x100)+_0x4b3992+_0x3c2501(0xe1),_0x3c2501(0x103),_0x5e3e92);return{'getStream':async()=>{const _0x515b85=_0x3c2501,_0x605e2d=(await _0x3f5204[_0x515b85(0x136)])[_0x515b85(0x145)];return this[_0x515b85(0x11e)](_0x605e2d);},'abortController':_0x3f5204[_0x3c2501(0xeb)]};}[_0x3502db(0x121)](_0x96b8c,_0x16c2c2,_0x530993){const _0x17581a=_0x3502db,_0x3fd3a6=new FormData();_0x3fd3a6[_0x17581a(0xfa)](_0x17581a(0x10f),_0x16c2c2,_0x16c2c2[_0x17581a(0xdd)]),_0x530993&&_0x3fd3a6[_0x17581a(0xfa)](_0x17581a(0xff),JSON[_0x17581a(0xbb)](_0x530993));const _0x5e7371=this[_0x17581a(0x116)](_0x17581a(0xb7)+_0x96b8c+_0x17581a(0x112),_0x17581a(0x103),_0x3fd3a6);return{'getId':async()=>(await _0x5e7371[_0x17581a(0x136)])[_0x17581a(0xde)](),'abortController':_0x5e7371[_0x17581a(0xeb)]};}[_0x3502db(0xd7)](_0x17ae92,_0x4c6562){const _0x5186e9=_0x3502db,_0x4454a4=this[_0x5186e9(0x116)](_0x5186e9(0xb7)+_0x17ae92+_0x5186e9(0xcb)+_0x4c6562,_0x5186e9(0x109));return{'getDocument':async()=>(await _0x4454a4[_0x5186e9(0x136)])[_0x5186e9(0xde)](),'abortController':_0x4454a4[_0x5186e9(0xeb)]};}[_0x3502db(0x131)](_0x503943,_0x54b4ef,_0x4ad970){const _0x3dea54=_0x3502db,_0x1be3e6={'content':_0x54b4ef};_0x4ad970&&(_0x1be3e6[_0x3dea54(0xff)]=_0x4ad970);const _0x2b22b1=this[_0x3dea54(0x116)](_0x3dea54(0xb7)+_0x503943+_0x3dea54(0x117),_0x3dea54(0x103),_0x1be3e6);return{'getId':async()=>(await _0x2b22b1[_0x3dea54(0x136)])[_0x3dea54(0xde)](),'abortController':_0x2b22b1[_0x3dea54(0xeb)]};}[_0x3502db(0x142)](_0x23e1cf,_0x5b6904){const _0x434f7d=_0x3502db,_0x27504c=new URLSearchParams();_0x27504c[_0x434f7d(0xfa)](_0x434f7d(0xbf),_0x434f7d(0x110)),_0x27504c[_0x434f7d(0xfa)](_0x434f7d(0xec),_0x434f7d(0xba)),_0x27504c[_0x434f7d(0xfa)](_0x434f7d(0x115),_0x23e1cf),_0x5b6904&&_0x27504c[_0x434f7d(0xfa)](_0x434f7d(0xc4),_0x5b6904);const _0x2b5f6b=this[_0x434f7d(0x116)](_0x434f7d(0x13b)+_0x27504c[_0x434f7d(0x13a)](),_0x434f7d(0x109));return{'getConversations':async()=>{const _0x5163dd=_0x434f7d,_0x19b40b=await _0x2b5f6b[_0x5163dd(0x136)];return(await _0x19b40b[_0x5163dd(0xde)]())[_0x5163dd(0x10a)];},'abortController':_0x2b5f6b[_0x434f7d(0xeb)]};}[_0x3502db(0x12e)](_0x4958bb){const _0x48b81a=_0x3502db,_0xf3e448=this[_0x48b81a(0x116)](_0x48b81a(0xb7)+_0x4958bb,_0x48b81a(0x12b));return{'execute':async()=>{const _0x2e81b6=_0x48b81a;await _0xf3e448[_0x2e81b6(0x136)];},'abortController':_0xf3e448[_0x48b81a(0xeb)]};}[_0x3502db(0xbe)](_0x2311b9,_0x52a7f0){const _0x3411c7=_0x3502db,_0x1d0058=this[_0x3411c7(0x116)](_0x3411c7(0xb7)+_0x2311b9,_0x3411c7(0xe2),_0x52a7f0);return{'getResult':async()=>(await _0x1d0058[_0x3411c7(0x136)],_0x52a7f0),'abortController':_0x1d0058[_0x3411c7(0xeb)]};}[_0x3502db(0xfc)](_0x16f723){const _0x1c52cc=_0x3502db,_0x2acce7=this[_0x1c52cc(0x116)](_0x1c52cc(0xb7)+_0x16f723,_0x1c52cc(0x109));return{'getConversation':async()=>(await _0x2acce7[_0x1c52cc(0x136)])[_0x1c52cc(0xde)](),'abortController':_0x2acce7[_0x1c52cc(0xeb)]};}[_0x3502db(0xc9)](_0x4c8ec4){const _0x5c7a31=_0x3502db,_0x347289=this[_0x5c7a31(0x116)](_0x5c7a31(0xb7)+_0x4c8ec4+_0x5c7a31(0x130),_0x5c7a31(0x109));return{'getMessages':async()=>{const _0x3f804a=_0x5c7a31,_0x549a6e=await _0x347289[_0x3f804a(0x136)];return(await _0x549a6e[_0x3f804a(0xde)]())[_0x3f804a(0x10a)];},'abortController':_0x347289[_0x5c7a31(0xeb)]};}[_0x3502db(0xf9)](_0xcc0ed4,_0x4ed19e,_0x571c6f){const _0x262cf9=_0x3502db,_0xd401dd=this[_0x262cf9(0x116)](_0x262cf9(0xb7)+_0xcc0ed4+_0x262cf9(0xd5),_0x262cf9(0x103),{'url':_0x4ed19e,'attributes':_0x571c6f});return{'getId':async()=>(await _0xd401dd[_0x262cf9(0x136)])[_0x262cf9(0xde)](),'abortController':_0xd401dd[_0x262cf9(0xeb)]};}[_0x3502db(0x118)](_0x2e6665='en'){const _0x4bce7f=_0x3502db,_0x9a61f7=new URLSearchParams();_0x9a61f7[_0x4bce7f(0xfa)](_0x4bce7f(0x12d),_0x2e6665);const _0x1cd439=_0x4bce7f(0x11d)+_0x9a61f7[_0x4bce7f(0x13a)](),_0x2a581d=this[_0x4bce7f(0x116)](_0x1cd439,_0x4bce7f(0x109));return{'list':async()=>await(await _0x2a581d[_0x4bce7f(0x136)])[_0x4bce7f(0xde)](),'abortController':_0x2a581d[_0x4bce7f(0xeb)]};}[_0x3502db(0x11f)](_0x1a6a95,_0x1043f5){const _0x482461=_0x3502db,_0x5564bd=this[_0x482461(0x116)](_0x482461(0xb7)+_0x1a6a95+_0x482461(0xbc)+_0x1043f5,_0x482461(0x12b));return{'execute':async()=>{const _0x56397e=_0x482461;await _0x5564bd[_0x56397e(0x136)];},'abortController':_0x5564bd[_0x482461(0xeb)]};}[_0x3502db(0xb8)](_0x5a66fb,_0x2f6b49){const _0x1874c7=_0x3502db,_0x411949=this[_0x1874c7(0x116)](_0x1874c7(0xb7)+_0x5a66fb+_0x1874c7(0xcb)+_0x2f6b49,_0x1874c7(0x12b));return{'execute':async()=>{const _0x249077=_0x1874c7;await _0x411949[_0x249077(0x136)];},'abortController':_0x411949[_0x1874c7(0xeb)]};}[_0x3502db(0xb5)](_0x3e11bf,_0x16cfc6){const _0x480b4a=_0x3502db,_0x5eb1bb=this[_0x480b4a(0x116)](_0x480b4a(0xb7)+_0x3e11bf+_0x480b4a(0xee)+_0x16cfc6,_0x480b4a(0x12b));return{'execute':async()=>{const _0x2a8297=_0x480b4a;await _0x5eb1bb[_0x2a8297(0x136)];},'abortController':_0x5eb1bb[_0x480b4a(0xeb)]};}[_0x3502db(0x111)]({reviewName:_0x9aa8a3,content:_0x516cfd,args:_0x2868f2}){const _0x5c9cbf=_0x3502db,_0x144e11=this[_0x5c9cbf(0x116)](_0x5c9cbf(0xcf)+_0x9aa8a3+_0x5c9cbf(0xe1),_0x5c9cbf(0x103),{'content':[{'type':_0x5c9cbf(0xfb),'content':_0x516cfd}],'args':_0x2868f2});return{'getStream':async()=>{const _0x4f2b88=_0x5c9cbf,_0x56dc09=(await _0x144e11[_0x4f2b88(0x136)])[_0x4f2b88(0x145)];return this[_0x4f2b88(0x11e)](_0x56dc09);},'abortController':_0x144e11[_0x5c9cbf(0xeb)]};}[_0x3502db(0xdf)]({content:_0x48aa92,prompt:_0x217ec2,model:_0x24097b}){const _0x25eab9=_0x3502db,_0x4be3e4=this[_0x25eab9(0x116)](_0x25eab9(0xe4),_0x25eab9(0x103),{'content':[{'type':_0x25eab9(0xfb),'content':_0x48aa92}],'prompt':_0x217ec2,'model':_0x24097b});return{'getStream':async()=>{const _0xee2aa0=_0x25eab9,_0x30f05e=(await _0x4be3e4[_0xee2aa0(0x136)])[_0xee2aa0(0x145)];return this[_0xee2aa0(0x11e)](_0x30f05e);},'abortController':_0x4be3e4[_0x25eab9(0xeb)]};}[_0x3502db(0xf6)](_0x3454d1,_0x580389,_0x1fd186){const _0x4b97bd=_0x3502db,_0x164c1d=this[_0x4b97bd(0x116)](_0x4b97bd(0xb7)+_0x3454d1+_0x4b97bd(0xed)+_0x580389+_0x4b97bd(0x138),_0x4b97bd(0xdc),{'positiveCount':_0x1fd186[_0x4b97bd(0xc0)],'totalCount':_0x1fd186[_0x4b97bd(0xf7)],'modificationId':_0x1fd186[_0x4b97bd(0xea)]});return{'execute':async()=>{const _0x274b86=_0x4b97bd;await _0x164c1d[_0x274b86(0x136)];},'abortController':_0x164c1d[_0x4b97bd(0xeb)]};}[_0x3502db(0xc3)](_0x53f4eb,_0x209d11,_0x3d0ab6){const _0x396c62=_0x3502db,_0x39a2ef=this[_0x396c62(0x116)](_0x396c62(0x100)+_0x53f4eb+_0x396c62(0x12c)+_0x209d11+_0x396c62(0x138),_0x396c62(0xdc),{'positiveCount':_0x3d0ab6[_0x396c62(0xc0)],'totalCount':_0x3d0ab6[_0x396c62(0xf7)]});return{'execute':async()=>{const _0x503367=_0x396c62;await _0x39a2ef[_0x503367(0x136)];},'abortController':_0x39a2ef[_0x396c62(0xeb)]};}[_0x3502db(0x104)](_0x275955,_0xf1ea32){const _0xd1c1cc=_0x3502db,_0x4fe1f1=this[_0xd1c1cc(0x116)](_0xd1c1cc(0xe7)+_0x275955+_0xd1c1cc(0x138),_0xd1c1cc(0xdc),{'positiveCount':_0xf1ea32[_0xd1c1cc(0xc0)],'totalCount':_0xf1ea32[_0xd1c1cc(0xf7)]});return{'execute':async()=>{const _0x4b068f=_0xd1c1cc;await _0x4fe1f1[_0x4b068f(0x136)];},'abortController':_0x4fe1f1[_0xd1c1cc(0xeb)]};}[_0x3502db(0xd3)](_0x2d5bd8,_0x2c31e6,_0x148246,_0x2810ac){const _0x16bd23=_0x3502db,_0x405707=this[_0x16bd23(0x116)](_0x16bd23(0xcf)+_0x2d5bd8+_0x16bd23(0x12c)+_0x2c31e6+_0x16bd23(0x138),_0x16bd23(0xdc),{'positiveCount':_0x148246[_0x16bd23(0xc0)],'totalCount':_0x148246[_0x16bd23(0xf7)],'dataId':_0x2810ac});return{'execute':async()=>{const _0x24e70a=_0x16bd23;await _0x405707[_0x24e70a(0x136)];},'abortController':_0x405707[_0x16bd23(0xeb)]};}[_0x3502db(0x143)](_0x49ee1d,_0x4d49e4,_0xf6e14f){const _0x37812c=_0x3502db,_0x2bd708=this[_0x37812c(0x116)](_0x37812c(0xf8)+_0x49ee1d+_0x37812c(0x138),_0x37812c(0xdc),{'positiveCount':_0x4d49e4[_0x37812c(0xc0)],'totalCount':_0x4d49e4[_0x37812c(0xf7)],'dataId':_0xf6e14f});return{'execute':async()=>{const _0x26a93f=_0x37812c;await _0x2bd708[_0x26a93f(0x136)];},'abortController':_0x2bd708[_0x37812c(0xeb)]};}[_0x3502db(0x116)](_0x6eda3f,_0x187981,_0x6eb051){const _0x7d9143=_0x3502db,_0xe76ff=new AbortController(),_0x302b09=_0x6eb051 instanceof FormData,_0x14a1c7={'Authorization':_0x7d9143(0x124)+this[_0x7d9143(0xe3)]?.[_0x7d9143(0x146)]};_0x6eb051&&!_0x302b09&&(_0x14a1c7[_0x7d9143(0x132)]=_0x7d9143(0xc1));const _0x32d06a={'method':_0x187981,'headers':_0x14a1c7,'signal':_0xe76ff[_0x7d9143(0xf5)]};return _0x6eb051&&(_0x32d06a[_0x7d9143(0x145)]=_0x302b09?_0x6eb051:JSON[_0x7d9143(0xbb)](_0x6eb051)),{'request':fetch(''+this[_0x7d9143(0xc5)]+_0x6eda3f,_0x32d06a)[_0x7d9143(0xe9)](_0x4f6bb1=>{const _0x224686=_0x7d9143;this[_0x224686(0x12f)](_0x4f6bb1);})[_0x7d9143(0x13c)](_0x42bac1=>_0x42bac1['ok']?_0x42bac1:_0x42bac1[_0x7d9143(0xde)]()[_0x7d9143(0x13c)](_0x34f95f=>{const _0xe95265=_0x7d9143;throw{'url':this[_0xe95265(0xc5)],'path':_0x6eda3f,'method':_0x187981,'body':_0x6eb051,'status':(_0x42bac1||{})[_0xe95265(0xb6)],'statusText':(_0x42bac1||{})[_0xe95265(0x107)],'code':_0x34f95f[_0xe95265(0xc6)],'message':_0x34f95f[_0xe95265(0x128)],'traceId':_0x34f95f[_0xe95265(0x11a)]};})),'abortController':_0xe76ff};}async*[_0x3502db(0x11e)](_0x4d66fa){const _0x1946d7=_0x3502db,_0x4c098d=[],_0x4f011a=_0x4d66fa[_0x1946d7(0xc8)](),_0x4f8746=_0x54b8c5({'onError':_0x44c2f1=>{const _0x56e3d4=_0x1946d7;this[_0x56e3d4(0x12f)](_0x44c2f1);},'onEvent':_0x3bef98=>{const _0x1c38e9=_0x1946d7;_0x3bef98[_0x1c38e9(0x102)]=JSON[_0x1c38e9(0x144)](_0x3bef98[_0x1c38e9(0x102)]),_0x4c098d[_0x1c38e9(0x141)](_0x3bef98);}});try{let _0x15cf3c=!0x1;for(;!_0x15cf3c;){const {done:_0x96ca55,value:_0x8cd7f6}=await _0x4f011a[_0x1946d7(0x140)]();_0x96ca55&&(_0x15cf3c=!0x0),_0x4f8746[_0x1946d7(0x133)](this[_0x1946d7(0xdb)][_0x1946d7(0x108)](_0x8cd7f6,{'stream':!0x0})),yield*_0x4c098d,_0x4c098d[_0x1946d7(0x13e)]=0x0;}}catch(_0x4333e5){this[_0x1946d7(0x12f)](_0x4333e5);}finally{_0x4f011a[_0x1946d7(0x139)](),_0x4f8746[_0x1946d7(0x106)]();}}[_0x3502db(0x12f)](_0x1b1c84){const _0x3b5acf=_0x3502db;if(_0x1b1c84 instanceof _0x13d870)throw _0x1b1c84;if(_0x1b1c84 instanceof Error&&_0x3b5acf(0xd0)===_0x1b1c84[_0x3b5acf(0xdd)])throw new _0x13d870(_0x3b5acf(0x123),this,{'originalError':_0x1b1c84});throw new _0x13d870(_0x3b5acf(0x13d),this,{'originalError':_0x1b1c84});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2e2a82=_0x31a7;(function(_0x154dd1,_0x2d2a6f){const _0x52447b=_0x31a7,_0x5514dc=_0x154dd1();while(!![]){try{const _0x1e6237=parseInt(_0x52447b(0x21d))/0x1*(-parseInt(_0x52447b(0x1ef))/0x2)+parseInt(_0x52447b(0x1f5))/0x3*(-parseInt(_0x52447b(0x22e))/0x4)+parseInt(_0x52447b(0x231))/0x5*(-parseInt(_0x52447b(0x1e5))/0x6)+-parseInt(_0x52447b(0x20c))/0x7*(parseInt(_0x52447b(0x1fb))/0x8)+-parseInt(_0x52447b(0x212))/0x9*(parseInt(_0x52447b(0x1df))/0xa)+parseInt(_0x52447b(0x1f9))/0xb*(-parseInt(_0x52447b(0x1ed))/0xc)+parseInt(_0x52447b(0x1e6))/0xd;if(_0x1e6237===_0x2d2a6f)break;else _0x5514dc['push'](_0x5514dc['shift']());}catch(_0x43ac74){_0x5514dc['push'](_0x5514dc['shift']());}}}(_0x2a72,0x188ad));import{ViewDowncastWriter as _0x5a8c2e}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x3d5c01,Editor as _0x5230d9}from'ckeditor5/src/core.js';function _0x2a72(){const _0x14688d=['emptyElement','model','get','isPremiumPlugin','start','7698isxBfk','markers','isAtEnd','data','1338689IyjxOQ','push','9768xvRmLv','setAttribute','toView','add','_integrateEditor','has',':end></','isOpening','_displayedFakeSelectionId','from','_nextDataId','indexOf','editors','ai-selection:','createUIElement',':end>','getWalker','518mQQgKy','plugins','context','listenTo','markerToHighlight','_displayedFakeSelectionLocked','31113FKBiHZ','AIEditing','showFakeVisualSelection','getMarkersGroup','isOfficialPlugin',':start></','getRoot','getLastMatchingPosition','selection','removeMarker','length','23esrUrU','getChildren','addMarker','data-id','isContent','hideFakeVisualSelection','random','getSelectedContent','end','$textProxy',':start>','view','getStart','editingDowncast','change','toData','afterInit','4SlAsnl','isAfter','fromCharCode','4645eStHEs','conversion','pluginName','ready','getDocumentData','getSelection','join','markerToElement','ck-ai-assistant-ui_theme','modelToViewWithIds','name','floor','substring','isBefore','element','sort','trim','dataDowncast','for','_getMarkersInDocumentOrder','getSelectionText','removeAllRanges','ai-selection','sessionId','editing','ck-fake-ai-selection','220BYycnk','createRange','_setDataIdsOnChildren','markerName','createRangeIn','version','348gSlivl','6944067dztziZ','processor','_sessionId','schema','containerElement','document','RealTimeCollaborationClient','12kxFatf','convertAiChatSelectionMarker','7746efHYGI'];_0x2a72=function(){return _0x14688d;};return _0x2a72();}function _0x31a7(_0x3dba41,_0x240d09){const _0x2a72d3=_0x2a72();return _0x31a7=function(_0x31a7e1,_0x1214e9){_0x31a7e1=_0x31a7e1-0x1d9;let _0x220aea=_0x2a72d3[_0x31a7e1];return _0x220aea;},_0x31a7(_0x3dba41,_0x240d09);}import{uid as _0x2521c4}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x234b99}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x2e2a82(0x1db);export class AIEditing extends _0x3d5c01{[_0x2e2a82(0x203)]=null;[_0x2e2a82(0x211)]=!0x1;[_0x2e2a82(0x1e8)];static get[_0x2e2a82(0x233)](){const _0x446382=_0x2e2a82;return _0x446382(0x213);}static get[_0x2e2a82(0x216)](){return!0x0;}static get[_0x2e2a82(0x1f3)](){return!0x0;}get[_0x2e2a82(0x1dc)](){const _0x2dd237=_0x2e2a82;if(!this[_0x2dd237(0x1e8)]){const _0x435df3=_0x234b99(this[_0x2dd237(0x20e)]),_0x5af881=_0x435df3[_0x2dd237(0x20d)][_0x2dd237(0x200)](_0x2dd237(0x1ec))&&_0x435df3[_0x2dd237(0x20d)][_0x2dd237(0x1f2)](_0x2dd237(0x1ec))[_0x2dd237(0x1dc)];this[_0x2dd237(0x1e8)]=_0x5af881||_0x2521c4();}return this[_0x2dd237(0x1e8)];}[_0x2e2a82(0x235)](){const _0x342ac0=_0x2e2a82,_0xf0ba50=_0x234b99(this[_0x342ac0(0x20e)]),_0x462dd5=_0xf0ba50[_0x342ac0(0x1f1)],_0x50fb39=_0xf0ba50[_0x342ac0(0x1f8)][_0x342ac0(0x1fd)](_0x462dd5[_0x342ac0(0x1eb)][_0x342ac0(0x218)](),{'convertAiChatSelectionMarker':!0x0}),_0x3d3dbc=new _0x5a8c2e(_0xf0ba50[_0x342ac0(0x1dd)][_0x342ac0(0x228)][_0x342ac0(0x1eb)]);this[_0x342ac0(0x1e1)](_0x50fb39,_0x3d3dbc);let _0x4fa8ca=_0xf0ba50[_0x342ac0(0x1f8)][_0x342ac0(0x1e7)][_0x342ac0(0x22c)](_0x50fb39);const _0x549545=this[_0x342ac0(0x244)](),_0x2f0e5a=[];for(const _0x3b3964 of _0x549545){const _0x184fc1='<'+_0x3b3964[_0x342ac0(0x23b)]+_0x342ac0(0x217)+_0x3b3964[_0x342ac0(0x23b)]+_0x342ac0(0x227),_0x269b43=_0x4fa8ca[_0x342ac0(0x206)](_0x184fc1);_0x4fa8ca=_0x4fa8ca[_0x342ac0(0x23d)](0x0,_0x269b43)+_0x4fa8ca[_0x342ac0(0x23d)](_0x269b43+_0x184fc1[_0x342ac0(0x21c)]);const _0x28ceed='<'+_0x3b3964[_0x342ac0(0x23b)]+_0x342ac0(0x201)+_0x3b3964[_0x342ac0(0x23b)]+_0x342ac0(0x20a),_0x31be8e=_0x4fa8ca[_0x342ac0(0x206)](_0x28ceed);_0x4fa8ca=_0x4fa8ca[_0x342ac0(0x23d)](0x0,_0x31be8e)+_0x4fa8ca[_0x342ac0(0x23d)](_0x31be8e+_0x28ceed[_0x342ac0(0x21c)]),_0x2f0e5a[_0x342ac0(0x1fa)]({'markerName':_0x3b3964[_0x342ac0(0x23b)],'start':_0x269b43,'end':_0x31be8e,'htmlFragment':_0x4fa8ca[_0x342ac0(0x23d)](_0x269b43,_0x31be8e)});}return{'content':_0x4fa8ca,'version':_0xf0ba50[_0x342ac0(0x1f1)][_0x342ac0(0x1eb)][_0x342ac0(0x1e4)],'sessionId':this[_0x342ac0(0x1dc)],'selections':_0x2f0e5a};}async[_0x2e2a82(0x22d)](){const _0x3bc5f6=_0x2e2a82;this[_0x3bc5f6(0x20e)]instanceof _0x5230d9?this[_0x3bc5f6(0x1ff)](this[_0x3bc5f6(0x20e)]):this[_0x3bc5f6(0x20f)](this[_0x3bc5f6(0x20e)][_0x3bc5f6(0x207)],_0x3bc5f6(0x1fe),(_0x5e77ac,_0x106539)=>{const _0x53953f=_0x3bc5f6;_0x106539['on'](_0x53953f(0x234),()=>{const _0x9f74d1=_0x53953f;this[_0x9f74d1(0x1ff)](_0x106539);});});}[_0x2e2a82(0x1ff)](_0x26acb6){const _0xe15d99=_0x2e2a82;_0x26acb6[_0xe15d99(0x232)][_0xe15d99(0x243)](_0xe15d99(0x22a))[_0xe15d99(0x210)]({'model':_0xe15d99(0x1db),'view':{'classes':[_0xe15d99(0x1de),_0xe15d99(0x239)],'priority':0xc}}),_0x26acb6[_0xe15d99(0x232)][_0xe15d99(0x243)](_0xe15d99(0x242))[_0xe15d99(0x238)]({'model':_0xe15d99(0x1db),'view':(_0x42eaad,{writer:_0x3e48ab,options:_0x323ea0})=>_0x323ea0[_0xe15d99(0x1ee)]?_0x3e48ab[_0xe15d99(0x209)](_0x42eaad[_0xe15d99(0x1e2)]+':'+(_0x42eaad[_0xe15d99(0x202)]?_0xe15d99(0x1f4):_0xe15d99(0x225))):null});}[_0x2e2a82(0x214)](_0x2c0135,_0x39c573,_0x193f8a=!0x1,_0x3fb6be=!0x1){const _0x3f1b99=_0x2e2a82;if(this[_0x3f1b99(0x211)]&&!_0x3fb6be)return!0x1;const _0x1ac140=_0x234b99(this[_0x3f1b99(0x20e)])[_0x3f1b99(0x1f1)];return _0x1ac140[_0x3f1b99(0x22b)](_0x25b8ff=>{const _0x23c411=_0x3f1b99;this[_0x23c411(0x203)]&&this[_0x23c411(0x222)](this[_0x23c411(0x203)]),this[_0x23c411(0x203)]=_0x39c573,this[_0x23c411(0x211)]=_0x193f8a;let _0x2d3c02=0x0;for(let _0x23c76b of _0x2c0135){const _0x1bbcdf=_0x23c411(0x208)+_0x2d3c02;if(_0x23c76b[_0x23c411(0x1f4)][_0x23c411(0x1f7)]){const _0x26da0e=_0x23c76b[_0x23c411(0x1f4)][_0x23c411(0x219)](({item:_0x543dc5})=>!_0x1ac140[_0x23c411(0x1e9)][_0x23c411(0x221)](_0x543dc5),{'boundaries':_0x23c76b});_0x23c76b=_0x25b8ff[_0x23c411(0x1e0)](_0x26da0e,_0x23c76b[_0x23c411(0x225)]);}_0x25b8ff[_0x23c411(0x21f)](_0x1bbcdf,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x23c76b}),_0x2d3c02++;}}),window[_0x3f1b99(0x236)]()?.[_0x3f1b99(0x1da)](),!0x0;}[_0x2e2a82(0x222)](_0x53aaa8){const _0x2e9881=_0x2e2a82;if(this[_0x2e9881(0x203)]!=_0x53aaa8)return!0x1;this[_0x2e9881(0x203)]=null,this[_0x2e9881(0x211)]=!0x1;const _0xbc825b=_0x234b99(this[_0x2e9881(0x20e)]),_0x4331a4=_0xbc825b[_0x2e9881(0x1f1)][_0x2e9881(0x1f6)][_0x2e9881(0x215)](_0x2e9881(0x1db));return _0xbc825b[_0x2e9881(0x1f1)][_0x2e9881(0x22b)](_0x1deadd=>{const _0x47d0c6=_0x2e9881;for(const _0x5e3965 of _0x4331a4)_0x1deadd[_0x47d0c6(0x21b)](_0x5e3965);}),!0x0;}[_0x2e2a82(0x23a)](_0x51fa82){const _0x401031=_0x2e2a82,_0x12c0a3=_0x234b99(this[_0x401031(0x20e)]),_0x4d7d15=_0x12c0a3[_0x401031(0x1f8)][_0x401031(0x1fd)](_0x51fa82),_0x239f23=new _0x5a8c2e(_0x12c0a3[_0x401031(0x1dd)][_0x401031(0x228)][_0x401031(0x1eb)]);return this[_0x401031(0x1e1)](_0x4d7d15,_0x239f23),_0x4d7d15;}[_0x2e2a82(0x1e1)](_0x5c3452,_0x1b2e7e){const _0x24cb7a=_0x2e2a82;let _0x26386a=!0x1;const _0x3168fa=new Set();for(const _0x39bd1e of _0x5c3452[_0x24cb7a(0x21e)]()){const _0x20bd27=_0x39bd1e['is'](_0x24cb7a(0x1f0))||_0x39bd1e['is'](_0x24cb7a(0x1ea));if(!_0x39bd1e['is'](_0x24cb7a(0x23f)))continue;(this[_0x24cb7a(0x1e1)](_0x39bd1e,_0x1b2e7e)||_0x20bd27)&&(_0x1b2e7e[_0x24cb7a(0x1fc)](_0x24cb7a(0x220),this[_0x24cb7a(0x205)](_0x3168fa),_0x39bd1e),_0x26386a=!0x0);}return _0x26386a;}[_0x2e2a82(0x205)](_0x9539bb){const _0x5859ef=_0x2e2a82;let _0x97a647;do{_0x97a647='';for(let _0x5f04a8=0x0;_0x5f04a8<0x4;_0x5f04a8++)_0x97a647+=String[_0x5859ef(0x230)](0x61+Math[_0x5859ef(0x23c)](0x1a*Math[_0x5859ef(0x223)]()));}while(_0x9539bb[_0x5859ef(0x200)](_0x97a647));return _0x9539bb[_0x5859ef(0x1fe)](_0x97a647),_0x97a647;}[_0x2e2a82(0x1d9)](){const _0x16eebb=_0x2e2a82,{model:_0x41ab16}=_0x234b99(this[_0x16eebb(0x20e)]),_0x19a68f=_0x41ab16[_0x16eebb(0x1eb)][_0x16eebb(0x21a)],_0x5f0f37=_0x41ab16[_0x16eebb(0x224)](_0x19a68f),_0x435415=[],_0x2e0ee6=_0x41ab16[_0x16eebb(0x1e3)](_0x5f0f37)[_0x16eebb(0x20b)]();for(const {item:_0x215a12}of _0x2e0ee6)_0x215a12['is'](_0x16eebb(0x226))?_0x435415[_0x16eebb(0x1fa)](_0x215a12[_0x16eebb(0x1f8)]):_0x215a12['is'](_0x16eebb(0x23f))&&_0x435415[_0x16eebb(0x21c)]>0x0&&'\x20'!==_0x435415[_0x435415[_0x16eebb(0x21c)]-0x1]&&_0x435415[_0x16eebb(0x1fa)]('\x20');return'\x22'+_0x435415[_0x16eebb(0x237)]('')[_0x16eebb(0x241)]()+'\x22';}[_0x2e2a82(0x244)](){const _0x4e9c48=_0x2e2a82,_0x469601=_0x234b99(this[_0x4e9c48(0x20e)])[_0x4e9c48(0x1f1)];return Array[_0x4e9c48(0x204)](_0x469601[_0x4e9c48(0x1f6)][_0x4e9c48(0x215)](_0x4e9c48(0x1db)))[_0x4e9c48(0x240)]((_0x372bc5,_0x53a713)=>_0x372bc5[_0x4e9c48(0x229)]()[_0x4e9c48(0x23e)](_0x53a713[_0x4e9c48(0x229)]())?-0x1:_0x372bc5[_0x4e9c48(0x229)]()[_0x4e9c48(0x22f)](_0x53a713[_0x4e9c48(0x229)]())?0x1:0x0);}}
23
+ const _0x269a8f=_0x52f6;(function(_0x5d6d8c,_0x3e45e2){const _0x49de89=_0x52f6,_0xb0e216=_0x5d6d8c();while(!![]){try{const _0x5229ec=parseInt(_0x49de89(0x222))/0x1*(-parseInt(_0x49de89(0x1f3))/0x2)+parseInt(_0x49de89(0x22b))/0x3*(-parseInt(_0x49de89(0x250))/0x4)+parseInt(_0x49de89(0x226))/0x5*(parseInt(_0x49de89(0x204))/0x6)+-parseInt(_0x49de89(0x237))/0x7*(-parseInt(_0x49de89(0x200))/0x8)+parseInt(_0x49de89(0x235))/0x9+-parseInt(_0x49de89(0x211))/0xa+parseInt(_0x49de89(0x218))/0xb*(parseInt(_0x49de89(0x21e))/0xc);if(_0x5229ec===_0x3e45e2)break;else _0xb0e216['push'](_0xb0e216['shift']());}catch(_0x13f653){_0xb0e216['push'](_0xb0e216['shift']());}}}(_0x58f1,0x1e72c));import{ViewDowncastWriter as _0x576f8c}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x460c7a,Editor as _0x295219}from'ckeditor5/src/core.js';import{uid as _0x5dfa10}from'ckeditor5/src/utils.js';function _0x58f1(){const _0x223515=['conversion','element','AIEditing',':end></','_sessionId','isOfficialPlugin','change','editors','getDocumentData','$textProxy','length','data-id','createRangeIn','plugins','toData','from','emptyElement','32IEnpbB','createRange','markerName','isOpening','trim','getRoot','for','pluginName','getLastMatchingPosition','isPremiumPlugin','convertAiChatSelectionMarker','getSelectionText','isBefore','addMarker','42CEkqps','sort','_setDataIdsOnChildren','toView','setAttribute','model','dataDowncast','document','editingDowncast','markers','createUIElement','indexOf','listenTo','32APMkPs','markerToElement','push','ai-selection','738jcdhOP','RealTimeCollaborationClient','isAtEnd','view','ai-selection:','join','sessionId','version','_nextDataId','context','ck-fake-ai-selection','_getMarkersInDocumentOrder','editing','1841330ugQosH',':start>','start','markerToHighlight','get',':start></','getChildren','919314bEvESN','isContent','end','removeAllRanges','hideFakeVisualSelection','add','36MruKFl',':end>','afterInit','getSelectedContent','9323WwhOHu','schema','data','ck-ai-assistant-ui_theme','4985wTxEje','selection','ready','containerElement','getMarkersGroup','67863lIXgAJ','getWalker','floor','isAfter','getSelection','showFakeVisualSelection','processor','getStart','_integrateEditor','has','934155KfhMOY','removeMarker','364791vhOAbb','fromCharCode','random','modelToViewWithIds','_displayedFakeSelectionLocked','_displayedFakeSelectionId','name','substring'];_0x58f1=function(){return _0x223515;};return _0x58f1();}import{getEditorFromContext as _0x165b8e}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x269a8f(0x203);function _0x52f6(_0x74983a,_0x22636e){const _0x58f1b5=_0x58f1();return _0x52f6=function(_0x52f68d,_0x273ed2){_0x52f68d=_0x52f68d-0x1f0;let _0x370a43=_0x58f1b5[_0x52f68d];return _0x370a43;},_0x52f6(_0x74983a,_0x22636e);}export class AIEditing extends _0x460c7a{[_0x269a8f(0x23c)]=null;[_0x269a8f(0x23b)]=!0x1;[_0x269a8f(0x243)];static get[_0x269a8f(0x257)](){const _0x2851f9=_0x269a8f;return _0x2851f9(0x241);}static get[_0x269a8f(0x244)](){return!0x0;}static get[_0x269a8f(0x259)](){return!0x0;}get[_0x269a8f(0x20a)](){const _0x6b7cb8=_0x269a8f;if(!this[_0x6b7cb8(0x243)]){const _0xf5dd6b=_0x165b8e(this[_0x6b7cb8(0x20d)]),_0xf8590f=_0xf5dd6b[_0x6b7cb8(0x24c)][_0x6b7cb8(0x234)](_0x6b7cb8(0x205))&&_0xf5dd6b[_0x6b7cb8(0x24c)][_0x6b7cb8(0x215)](_0x6b7cb8(0x205))[_0x6b7cb8(0x20a)];this[_0x6b7cb8(0x243)]=_0xf8590f||_0x5dfa10();}return this[_0x6b7cb8(0x243)];}[_0x269a8f(0x247)](){const _0x14267f=_0x269a8f,_0x3aba3b=_0x165b8e(this[_0x14267f(0x20d)]),_0x5592e4=_0x3aba3b[_0x14267f(0x1f8)],_0x3c4989=_0x3aba3b[_0x14267f(0x224)][_0x14267f(0x1f6)](_0x5592e4[_0x14267f(0x1fa)][_0x14267f(0x255)](),{'convertAiChatSelectionMarker':!0x0}),_0x253fb8=new _0x576f8c(_0x3aba3b[_0x14267f(0x210)][_0x14267f(0x207)][_0x14267f(0x1fa)]);this[_0x14267f(0x1f5)](_0x3c4989,_0x253fb8);let _0x3cdf45=_0x3aba3b[_0x14267f(0x224)][_0x14267f(0x231)][_0x14267f(0x24d)](_0x3c4989);const _0x3e69c7=this[_0x14267f(0x20f)](),_0x5d35ae=[];for(const _0x598e98 of _0x3e69c7){const _0x5bb108='<'+_0x598e98[_0x14267f(0x23d)]+_0x14267f(0x216)+_0x598e98[_0x14267f(0x23d)]+_0x14267f(0x212),_0x5eee13=_0x3cdf45[_0x14267f(0x1fe)](_0x5bb108);_0x3cdf45=_0x3cdf45[_0x14267f(0x23e)](0x0,_0x5eee13)+_0x3cdf45[_0x14267f(0x23e)](_0x5eee13+_0x5bb108[_0x14267f(0x249)]);const _0x591e58='<'+_0x598e98[_0x14267f(0x23d)]+_0x14267f(0x242)+_0x598e98[_0x14267f(0x23d)]+_0x14267f(0x21f),_0x5c18ce=_0x3cdf45[_0x14267f(0x1fe)](_0x591e58);_0x3cdf45=_0x3cdf45[_0x14267f(0x23e)](0x0,_0x5c18ce)+_0x3cdf45[_0x14267f(0x23e)](_0x5c18ce+_0x591e58[_0x14267f(0x249)]),_0x5d35ae[_0x14267f(0x202)]({'markerName':_0x598e98[_0x14267f(0x23d)],'start':_0x5eee13,'end':_0x5c18ce,'htmlFragment':_0x3cdf45[_0x14267f(0x23e)](_0x5eee13,_0x5c18ce)});}return{'content':_0x3cdf45,'version':_0x3aba3b[_0x14267f(0x1f8)][_0x14267f(0x1fa)][_0x14267f(0x20b)],'sessionId':this[_0x14267f(0x20a)],'selections':_0x5d35ae};}async[_0x269a8f(0x220)](){const _0xaeca16=_0x269a8f;this[_0xaeca16(0x20d)]instanceof _0x295219?this[_0xaeca16(0x233)](this[_0xaeca16(0x20d)]):this[_0xaeca16(0x1ff)](this[_0xaeca16(0x20d)][_0xaeca16(0x246)],_0xaeca16(0x21d),(_0x50e0dd,_0x399402)=>{const _0x1e55e4=_0xaeca16;_0x399402['on'](_0x1e55e4(0x228),()=>{const _0x3b852d=_0x1e55e4;this[_0x3b852d(0x233)](_0x399402);});});}[_0x269a8f(0x233)](_0x43d50a){const _0x380a74=_0x269a8f;_0x43d50a[_0x380a74(0x23f)][_0x380a74(0x256)](_0x380a74(0x1fb))[_0x380a74(0x214)]({'model':_0x380a74(0x203),'view':{'classes':[_0x380a74(0x20e),_0x380a74(0x225)],'priority':0xc}}),_0x43d50a[_0x380a74(0x23f)][_0x380a74(0x256)](_0x380a74(0x1f9))[_0x380a74(0x201)]({'model':_0x380a74(0x203),'view':(_0x18187b,{writer:_0x51974c,options:_0x45119d})=>_0x45119d[_0x380a74(0x25a)]?_0x51974c[_0x380a74(0x1fd)](_0x18187b[_0x380a74(0x252)]+':'+(_0x18187b[_0x380a74(0x253)]?_0x380a74(0x213):_0x380a74(0x21a))):null});}[_0x269a8f(0x230)](_0x4b066,_0xd6341b,_0x17dcce=!0x1,_0x265952=!0x1){const _0x466909=_0x269a8f;if(this[_0x466909(0x23b)]&&!_0x265952)return!0x1;const _0x569ab2=_0x165b8e(this[_0x466909(0x20d)])[_0x466909(0x1f8)];return _0x569ab2[_0x466909(0x245)](_0x103420=>{const _0x36352c=_0x466909;this[_0x36352c(0x23c)]&&this[_0x36352c(0x21c)](this[_0x36352c(0x23c)]),this[_0x36352c(0x23c)]=_0xd6341b,this[_0x36352c(0x23b)]=_0x17dcce;let _0x483742=0x0;for(let _0x596b39 of _0x4b066){const _0x4ab114=_0x36352c(0x208)+_0x483742;if(_0x596b39[_0x36352c(0x213)][_0x36352c(0x206)]){const _0x25c12d=_0x596b39[_0x36352c(0x213)][_0x36352c(0x258)](({item:_0x537fe6})=>!_0x569ab2[_0x36352c(0x223)][_0x36352c(0x219)](_0x537fe6),{'boundaries':_0x596b39});_0x596b39=_0x103420[_0x36352c(0x251)](_0x25c12d,_0x596b39[_0x36352c(0x21a)]);}_0x103420[_0x36352c(0x1f2)](_0x4ab114,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x596b39}),_0x483742++;}}),window[_0x466909(0x22f)]()?.[_0x466909(0x21b)](),!0x0;}[_0x269a8f(0x21c)](_0x180747){const _0x516f37=_0x269a8f;if(this[_0x516f37(0x23c)]!=_0x180747)return!0x1;this[_0x516f37(0x23c)]=null,this[_0x516f37(0x23b)]=!0x1;const _0x1f92b9=_0x165b8e(this[_0x516f37(0x20d)]),_0x55d0d5=_0x1f92b9[_0x516f37(0x1f8)][_0x516f37(0x1fc)][_0x516f37(0x22a)](_0x516f37(0x203));return _0x1f92b9[_0x516f37(0x1f8)][_0x516f37(0x245)](_0x3b599a=>{const _0x591f84=_0x516f37;for(const _0x3b4c01 of _0x55d0d5)_0x3b599a[_0x591f84(0x236)](_0x3b4c01);}),!0x0;}[_0x269a8f(0x23a)](_0xdbfa7e){const _0x4536a2=_0x269a8f,_0x466782=_0x165b8e(this[_0x4536a2(0x20d)]),_0x7ce902=_0x466782[_0x4536a2(0x224)][_0x4536a2(0x1f6)](_0xdbfa7e),_0x162380=new _0x576f8c(_0x466782[_0x4536a2(0x210)][_0x4536a2(0x207)][_0x4536a2(0x1fa)]);return this[_0x4536a2(0x1f5)](_0x7ce902,_0x162380),_0x7ce902;}[_0x269a8f(0x1f5)](_0xd16441,_0x2c471a){const _0x27a4c8=_0x269a8f;let _0x26fdfe=!0x1;const _0x35b2a2=new Set();for(const _0x12345e of _0xd16441[_0x27a4c8(0x217)]()){const _0xcb86b8=_0x12345e['is'](_0x27a4c8(0x24f))||_0x12345e['is'](_0x27a4c8(0x229));if(!_0x12345e['is'](_0x27a4c8(0x240)))continue;(this[_0x27a4c8(0x1f5)](_0x12345e,_0x2c471a)||_0xcb86b8)&&(_0x2c471a[_0x27a4c8(0x1f7)](_0x27a4c8(0x24a),this[_0x27a4c8(0x20c)](_0x35b2a2),_0x12345e),_0x26fdfe=!0x0);}return _0x26fdfe;}[_0x269a8f(0x20c)](_0x14174f){const _0x4c6810=_0x269a8f;let _0x4cad0b;do{_0x4cad0b='';for(let _0x4b2d07=0x0;_0x4b2d07<0x4;_0x4b2d07++)_0x4cad0b+=String[_0x4c6810(0x238)](0x61+Math[_0x4c6810(0x22d)](0x1a*Math[_0x4c6810(0x239)]()));}while(_0x14174f[_0x4c6810(0x234)](_0x4cad0b));return _0x14174f[_0x4c6810(0x21d)](_0x4cad0b),_0x4cad0b;}[_0x269a8f(0x1f0)](){const _0x1de4e7=_0x269a8f,{model:_0x57ec32}=_0x165b8e(this[_0x1de4e7(0x20d)]),_0x97c699=_0x57ec32[_0x1de4e7(0x1fa)][_0x1de4e7(0x227)],_0x2e2928=_0x57ec32[_0x1de4e7(0x221)](_0x97c699),_0x57a133=[],_0x38ad74=_0x57ec32[_0x1de4e7(0x24b)](_0x2e2928)[_0x1de4e7(0x22c)]();for(const {item:_0x43d2a8}of _0x38ad74)_0x43d2a8['is'](_0x1de4e7(0x248))?_0x57a133[_0x1de4e7(0x202)](_0x43d2a8[_0x1de4e7(0x224)]):_0x43d2a8['is'](_0x1de4e7(0x240))&&_0x57a133[_0x1de4e7(0x249)]>0x0&&'\x20'!==_0x57a133[_0x57a133[_0x1de4e7(0x249)]-0x1]&&_0x57a133[_0x1de4e7(0x202)]('\x20');return'\x22'+_0x57a133[_0x1de4e7(0x209)]('')[_0x1de4e7(0x254)]()+'\x22';}[_0x269a8f(0x20f)](){const _0x4701a6=_0x269a8f,_0x729900=_0x165b8e(this[_0x4701a6(0x20d)])[_0x4701a6(0x1f8)];return Array[_0x4701a6(0x24e)](_0x729900[_0x4701a6(0x1fc)][_0x4701a6(0x22a)](_0x4701a6(0x203)))[_0x4701a6(0x1f4)]((_0xd8bd11,_0x3de6af)=>_0xd8bd11[_0x4701a6(0x232)]()[_0x4701a6(0x1f1)](_0x3de6af[_0x4701a6(0x232)]())?-0x1:_0xd8bd11[_0x4701a6(0x232)]()[_0x4701a6(0x22e)](_0x3de6af[_0x4701a6(0x232)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb61df7=_0xd472;(function(_0x4956c6,_0x223b4b){const _0x351dd4=_0xd472,_0x376c6e=_0x4956c6();while(!![]){try{const _0x1cbc5c=parseInt(_0x351dd4(0x19e))/0x1+parseInt(_0x351dd4(0x1b0))/0x2+parseInt(_0x351dd4(0x19f))/0x3+-parseInt(_0x351dd4(0x1a8))/0x4+-parseInt(_0x351dd4(0x1a6))/0x5+-parseInt(_0x351dd4(0x1ac))/0x6*(-parseInt(_0x351dd4(0x1a9))/0x7)+-parseInt(_0x351dd4(0x19a))/0x8*(parseInt(_0x351dd4(0x198))/0x9);if(_0x1cbc5c===_0x223b4b)break;else _0x376c6e['push'](_0x376c6e['shift']());}catch(_0x46c57f){_0x376c6e['push'](_0x376c6e['shift']());}}}(_0x135f,0xca787));import{EmitterMixin as _0x256aad}from'ckeditor5/src/utils.js';function _0xd472(_0x2fe25d,_0x2aba40){const _0x135fde=_0x135f();return _0xd472=function(_0xd47263,_0x1b0ce7){_0xd47263=_0xd47263-0x198;let _0x412503=_0x135fde[_0xd47263];return _0x412503;},_0xd472(_0x2fe25d,_0x2aba40);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0xb61df7(0x1a3)];function _0x135f(){const _0x4b6fe3=['getCapabilitiesConfig','_isWebSearchEnabled','setReasoning','3172438DkAkhR','72MkpPyr','getCapabilitiesRequestData','873496DLAmbY','reset','isWebSearchEnabled','isReasoningEnabled','1165237ZvNeCH','1773027tXNwmt','toggleReasoning','reasoning','init','capabilitiesUpdated','toggleWebSearch','setWebSearch','5988835cExgvL','fire','2833700IHCGoN','1865794FWBvjm','webSearch','_isReasoningEnabled','6LheEAk'];_0x135f=function(){return _0x4b6fe3;};return _0x135f();}export class AICapabilities extends _0x256aad(){[_0xb61df7(0x1ae)];[_0xb61df7(0x1ab)];constructor(){const _0x513e95=_0xb61df7;super(),this[_0x513e95(0x1ae)]=!0x1,this[_0x513e95(0x1ab)]=!0x1;}[_0xb61df7(0x1a2)](){const _0x4119e0=_0xb61df7;this[_0x4119e0(0x19b)]();}[_0xb61df7(0x19b)](){const _0x13856a=_0xb61df7;this[_0x13856a(0x1a5)](!0x1),this[_0x13856a(0x1af)](!0x1);}[_0xb61df7(0x1ad)](){const _0x3ed830=_0xb61df7;return{'isWebSearchEnabled':this[_0x3ed830(0x1ae)],'isReasoningEnabled':this[_0x3ed830(0x1ab)]};}static[_0xb61df7(0x199)](_0x4c326c){const _0x281251=_0xb61df7,_0x4eb350={};return _0x4c326c&&_0x4c326c[_0x281251(0x19c)]&&(_0x4eb350[_0x281251(0x1aa)]={}),_0x4c326c&&_0x4c326c[_0x281251(0x19d)]&&(_0x4eb350[_0x281251(0x1a1)]={}),_0x4eb350;}[_0xb61df7(0x1a4)](){const _0x33c2fa=_0xb61df7;this[_0x33c2fa(0x1a5)](!this[_0x33c2fa(0x1ae)]);}[_0xb61df7(0x1a0)](){const _0xcf75f4=_0xb61df7;this[_0xcf75f4(0x1af)](!this[_0xcf75f4(0x1ab)]);}[_0xb61df7(0x1a5)](_0x5a30e3){const _0x2f971e=_0xb61df7;_0x5a30e3!==this[_0x2f971e(0x1ae)]&&(this[_0x2f971e(0x1ae)]=_0x5a30e3,this[_0x2f971e(0x1a7)](_0x2f971e(0x1a3),this[_0x2f971e(0x1ad)]()));}[_0xb61df7(0x1af)](_0x3ed276){const _0x4d15a3=_0xb61df7;_0x3ed276!==this[_0x4d15a3(0x1ab)]&&(this[_0x4d15a3(0x1ab)]=_0x3ed276,this[_0x4d15a3(0x1a7)](_0x4d15a3(0x1a3),this[_0x4d15a3(0x1ad)]()));}}
23
+ const _0x344880=_0x2d08;function _0x2d08(_0x36e883,_0x3aa10e){const _0x33ffec=_0x33ff();return _0x2d08=function(_0x2d087e,_0x19fa6c){_0x2d087e=_0x2d087e-0x16a;let _0x3125bd=_0x33ffec[_0x2d087e];return _0x3125bd;},_0x2d08(_0x36e883,_0x3aa10e);}(function(_0x5b37f5,_0x2eb968){const _0x46d345=_0x2d08,_0x342c8e=_0x5b37f5();while(!![]){try{const _0xef1b7c=parseInt(_0x46d345(0x16e))/0x1*(parseInt(_0x46d345(0x181))/0x2)+parseInt(_0x46d345(0x17d))/0x3+parseInt(_0x46d345(0x173))/0x4*(parseInt(_0x46d345(0x180))/0x5)+parseInt(_0x46d345(0x176))/0x6*(-parseInt(_0x46d345(0x177))/0x7)+-parseInt(_0x46d345(0x182))/0x8*(parseInt(_0x46d345(0x184))/0x9)+parseInt(_0x46d345(0x16d))/0xa+-parseInt(_0x46d345(0x179))/0xb;if(_0xef1b7c===_0x2eb968)break;else _0x342c8e['push'](_0x342c8e['shift']());}catch(_0x4ecb9f){_0x342c8e['push'](_0x342c8e['shift']());}}}(_0x33ff,0x79596));import{EmitterMixin as _0x1c8c35}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x344880(0x17f)];export class AICapabilities extends _0x1c8c35(){[_0x344880(0x17b)];[_0x344880(0x171)];constructor(){const _0x2d107d=_0x344880;super(),this[_0x2d107d(0x17b)]=!0x1,this[_0x2d107d(0x171)]=!0x1;}[_0x344880(0x17a)](){const _0x12a3bd=_0x344880;this[_0x12a3bd(0x16b)]();}[_0x344880(0x16b)](){const _0x1433d4=_0x344880;this[_0x1433d4(0x183)](!0x1),this[_0x1433d4(0x172)](!0x1);}[_0x344880(0x178)](){const _0x3edfc1=_0x344880;return{'isWebSearchEnabled':this[_0x3edfc1(0x17b)],'isReasoningEnabled':this[_0x3edfc1(0x171)]};}static[_0x344880(0x175)](_0x3a6bf0){const _0x15a53b=_0x344880,_0x24e987={};return _0x3a6bf0&&_0x3a6bf0[_0x15a53b(0x16f)]&&(_0x24e987[_0x15a53b(0x17c)]={}),_0x3a6bf0&&_0x3a6bf0[_0x15a53b(0x17e)]&&(_0x24e987[_0x15a53b(0x16c)]={}),_0x24e987;}[_0x344880(0x16a)](){const _0x23f996=_0x344880;this[_0x23f996(0x183)](!this[_0x23f996(0x17b)]);}[_0x344880(0x170)](){const _0x43834f=_0x344880;this[_0x43834f(0x172)](!this[_0x43834f(0x171)]);}[_0x344880(0x183)](_0x431efc){const _0x5504b2=_0x344880;_0x431efc!==this[_0x5504b2(0x17b)]&&(this[_0x5504b2(0x17b)]=_0x431efc,this[_0x5504b2(0x174)](_0x5504b2(0x17f),this[_0x5504b2(0x178)]()));}[_0x344880(0x172)](_0x464ced){const _0x397e31=_0x344880;_0x464ced!==this[_0x397e31(0x171)]&&(this[_0x397e31(0x171)]=_0x464ced,this[_0x397e31(0x174)](_0x397e31(0x17f),this[_0x397e31(0x178)]()));}}function _0x33ff(){const _0x215702=['toggleReasoning','_isReasoningEnabled','setReasoning','1841304CHAyWA','fire','getCapabilitiesRequestData','35442aCYqlP','1022OwmxnI','getCapabilitiesConfig','16794151uOYFbf','init','_isWebSearchEnabled','webSearch','2688159aJzkwX','isReasoningEnabled','capabilitiesUpdated','5ZvTnlb','127970lEbROj','3528reNYTv','setWebSearch','4761Qnmagu','toggleWebSearch','reset','reasoning','8033440zkjCMi','15kXnVRT','isWebSearchEnabled'];_0x33ff=function(){return _0x215702;};return _0x33ff();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x507a3e=_0x3033;(function(_0x59bd2c,_0x4e6333){const _0x219539=_0x3033,_0x5b4877=_0x59bd2c();while(!![]){try{const _0x191a19=parseInt(_0x219539(0xb7))/0x1+-parseInt(_0x219539(0xa1))/0x2+-parseInt(_0x219539(0x94))/0x3*(parseInt(_0x219539(0xbe))/0x4)+-parseInt(_0x219539(0xae))/0x5+-parseInt(_0x219539(0xa0))/0x6*(parseInt(_0x219539(0xc4))/0x7)+-parseInt(_0x219539(0xb8))/0x8*(parseInt(_0x219539(0xc1))/0x9)+parseInt(_0x219539(0xd3))/0xa;if(_0x191a19===_0x4e6333)break;else _0x5b4877['push'](_0x5b4877['shift']());}catch(_0x1b54b4){_0x5b4877['push'](_0x5b4877['shift']());}}}(_0x257a,0xb859f));import{CKEditorError as _0x964c65,EmitterMixin as _0x45105e,uid as _0x2888a3}from'ckeditor5/src/utils.js';function _0x3033(_0x5e44a,_0x38ee43){const _0x257a08=_0x257a();return _0x3033=function(_0x3033bf,_0xbb8680){_0x3033bf=_0x3033bf-0x8f;let _0x4a8127=_0x257a08[_0x3033bf];return _0x4a8127;},_0x3033(_0x5e44a,_0x38ee43);}import{AIReply as _0x4bade3,isIgnoredReplyType as _0x12f7f1,isValidReplyType as _0x51bda4,isReplyTitleType as _0x26150e,isSourceType as _0x1919b7}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x507a3e(0xcf),_0x507a3e(0x9b),_0x507a3e(0xba),_0x507a3e(0xb4),_0x507a3e(0xac),_0x507a3e(0xb3),_0x507a3e(0xd1),_0x507a3e(0xca),_0x507a3e(0xc9),_0x507a3e(0xc3),_0x507a3e(0x9a),_0x507a3e(0xb9),_0x507a3e(0xc7),_0x507a3e(0x90)];export class AIInteraction extends _0x45105e(){['id'];[_0x507a3e(0xad)]=[];[_0x507a3e(0x9f)];[_0x507a3e(0x91)];[_0x507a3e(0xb2)];[_0x507a3e(0xab)];[_0x507a3e(0xc6)];[_0x507a3e(0xc8)]=!0x1;[_0x507a3e(0xb6)]=!0x1;[_0x507a3e(0xce)];[_0x507a3e(0xcb)]=!0x1;[_0x507a3e(0x98)]=!0x1;constructor({connector:_0x11dc5e,editor:_0x1ef0d3}){const _0x59035c=_0x507a3e;super(),this['id']=_0x2888a3(),this[_0x59035c(0xc6)]=_0x11dc5e,this[_0x59035c(0xc8)]=!0x0,this[_0x59035c(0xce)]=_0x1ef0d3;}async[_0x507a3e(0x95)](){const _0xd0ce2=_0x507a3e;let _0x5cbfc5;const _0x19418b=[];this[_0xd0ce2(0xc8)]=!0x1;try{this[_0xd0ce2(0xab)]=await this[_0xd0ce2(0x92)](),this[_0xd0ce2(0xaf)](_0xd0ce2(0x9b),this);const _0x19de3e=await this[_0xd0ce2(0xab)][_0xd0ce2(0xbf)]();for await(const _0x5b834f of _0x19de3e){if(this[_0xd0ce2(0xc8)])return;if(_0xd0ce2(0x90)===_0x5b834f[_0xd0ce2(0x8f)])return void this[_0xd0ce2(0xaf)](_0xd0ce2(0x90),{'error':new _0x964c65(_0xd0ce2(0xa4),this)});if(_0xd0ce2(0xd2)!==_0x5b834f[_0xd0ce2(0x8f)]){if(_0xd0ce2(0xa9)!==_0x5b834f[_0xd0ce2(0x8f)]){if(_0x26150e(_0x5b834f[_0xd0ce2(0x8f)])&&this[_0xd0ce2(0xc9)](_0x5b834f[_0xd0ce2(0x97)][_0xd0ce2(0xc5)],!0x0),_0x1919b7(_0x5b834f[_0xd0ce2(0x8f)]))_0x19418b[_0xd0ce2(0x99)](_0x5b834f[_0xd0ce2(0x97)][_0xd0ce2(0xa8)]);else{if(_0x51bda4(_0x5b834f[_0xd0ce2(0x8f)])){if(_0x5b834f[_0xd0ce2(0x8f)]!==_0x5cbfc5){if(_0x5cbfc5=_0x5b834f[_0xd0ce2(0x8f)],_0xd0ce2(0xa6)===_0x5b834f[_0xd0ce2(0x8f)]){this[_0xd0ce2(0x98)]||(this[_0xd0ce2(0x98)]=!0x0,this[_0xd0ce2(0xaf)](_0xd0ce2(0xc3),this));continue;}if(_0xd0ce2(0x9e)===_0x5b834f[_0xd0ce2(0x8f)]){this[_0xd0ce2(0xcb)]||(this[_0xd0ce2(0xcb)]=!0x0,this[_0xd0ce2(0xaf)](_0xd0ce2(0xb9),this));continue;}this[_0xd0ce2(0xcb)]&&(this[_0xd0ce2(0xcb)]=!0x1,this[_0xd0ce2(0xaf)](_0xd0ce2(0xc7),this)),this[_0xd0ce2(0x98)]&&(this[_0xd0ce2(0x98)]=!0x1,this[_0xd0ce2(0xaf)](_0xd0ce2(0x9a),this)),this[_0xd0ce2(0x9f)]&&this[_0xd0ce2(0x9f)][_0xd0ce2(0xbb)](),this[_0xd0ce2(0x9f)]=this[_0xd0ce2(0xc2)]({'type':_0x5b834f[_0xd0ce2(0x8f)],'interactionId':this['id'],'id':_0x5b834f[_0xd0ce2(0x97)]?.['id']}),_0x19418b[_0xd0ce2(0x93)]>0x0&&_0xd0ce2(0xaa)===_0x5b834f[_0xd0ce2(0x8f)]&&(this[_0xd0ce2(0x9f)][_0xd0ce2(0xcc)]=_0x19418b[_0xd0ce2(0xd0)](0x0));}_0x5b834f[_0xd0ce2(0x97)][_0xd0ce2(0xb1)]&&this[_0xd0ce2(0x9f)][_0xd0ce2(0x9c)](_0x5b834f[_0xd0ce2(0x97)][_0xd0ce2(0xb1)]);}else _0x12f7f1(_0x5b834f[_0xd0ce2(0x8f)]);}}else this[_0xd0ce2(0xb2)]=_0x5b834f[_0xd0ce2(0x97)][_0xd0ce2(0xb0)];}else this[_0xd0ce2(0x91)]=_0x5b834f[_0xd0ce2(0x97)][_0xd0ce2(0x91)];}}finally{this[_0xd0ce2(0xc8)]||(_0x19418b[_0xd0ce2(0x93)]>0x0&&(this[_0xd0ce2(0x9f)][_0xd0ce2(0xcc)]=_0x19418b[_0xd0ce2(0xd0)](0x0)),this[_0xd0ce2(0xc0)](),this[_0xd0ce2(0xaf)](_0xd0ce2(0xb4),this));}}[_0x507a3e(0xa7)](){const _0x4c04a6=_0x507a3e;this[_0x4c04a6(0xc8)]||(this[_0x4c04a6(0xc0)](),this[_0x4c04a6(0xaf)](_0x4c04a6(0xba),this));}[_0x507a3e(0x9d)](_0x1f152e){const _0x49e9ea=_0x507a3e;return this[_0x49e9ea(0xad)][_0x49e9ea(0xa2)](_0x167749=>_0x167749['id']===_0x1f152e);}[_0x507a3e(0xa3)](){const _0x2b54d8=_0x507a3e;this[_0x2b54d8(0xb6)]||(this[_0x2b54d8(0xa7)](),this[_0x2b54d8(0xad)][_0x2b54d8(0xa5)](_0x3a44d3=>_0x3a44d3[_0x2b54d8(0xa3)]()),this[_0x2b54d8(0xad)]=[],this[_0x2b54d8(0xb6)]=!0x0,this[_0x2b54d8(0xaf)](_0x2b54d8(0xac),this),this[_0x2b54d8(0xcd)]());}[_0x507a3e(0xc2)](_0x34f11f){const _0x2b85f4=_0x507a3e,_0x218507=new _0x4bade3({'editor':this[_0x2b85f4(0xce)],'documentContextContent':this[_0x2b85f4(0xbd)]()?.[_0x2b85f4(0xd4)],..._0x34f11f});return this[_0x2b85f4(0xad)][_0x2b85f4(0x99)](_0x218507),_0x218507[_0x2b85f4(0x96)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x2b85f4(0xaf)](_0x2b85f4(0xb3),_0x218507),_0x218507;}[_0x507a3e(0xc9)](_0x4fed6c,_0x4c51db=!0x1){const _0x42d23c=_0x507a3e;this[_0x42d23c(0xaf)](_0x42d23c(0xc9),_0x4fed6c,_0x4c51db);}[_0x507a3e(0xc0)](){const _0x1ea918=_0x507a3e;this[_0x1ea918(0xc8)]=!0x0,this[_0x1ea918(0xab)]&&this[_0x1ea918(0xab)][_0x1ea918(0xb5)][_0x1ea918(0xbc)](),this[_0x1ea918(0x9f)]&&this[_0x1ea918(0x9f)][_0x1ea918(0xbb)](),this[_0x1ea918(0xab)]=this[_0x1ea918(0x9f)]=void 0x0;}}function _0x257a(){const _0x1dfd7a=['_isWebSearching','push','webSearchFinished','interactionStarted','appendContent','getReply','reasoning','currentReply','1254JmNWGT','1185316BcgdhR','find','destroy','ai-chat-interaction-error','forEach','web-search','stop','source','action-metadata','modification-delta','currentRequest','interactionDestroyed','replies','3763530oyujAT','fire','callId','textDelta','actionCallId','replyCreated','interactionFinished','abortController','isDestroyed','504991PIAOlE','5960696fvluTS','reasoningStarted','interactionStopped','done','abort','getDocumentContext','8HuTigZ','getStream','_finalizeInteraction','9oBQJIJ','createReply','webSearchStarted','21007yTqGpW','conversationTitle','connector','reasoningFinished','isStopped','setConversationTitle','replyChangeGroupStateUpdated','_isReasoning','sources','stopListening','editor','interactionCreated','splice','replyContentUpdated','message-metadata','30740000wCUPwJ','content','event','error','messageId','sendRequest','length','159342SRpnwn','start','delegate','data'];_0x257a=function(){return _0x1dfd7a;};return _0x257a();}
23
+ function _0x5df4(){const _0x34a33e=['abort','sources','reasoningStarted','interactionCreated','setConversationTitle','getDocumentContext','interactionStarted','fire','isStopped','currentRequest','interactionStopped','getReply','start','forEach','web-search','846204TvnAZY','webSearchStarted','getStream','stop','error','isDestroyed','action-metadata','abortController','stopListening','message-metadata','data','webSearchFinished','callId','modification-delta','replies','_isReasoning','_finalizeInteraction','find','source','5135288qfGwRX','editor','conversationTitle','reasoning','content','splice','appendContent','1687259ROnvnP','replyContentUpdated','interactionDestroyed','currentReply','actionCallId','ai-chat-interaction-error','293784OkQWpb','destroy','length','event','textDelta','_isWebSearching','connector','delegate','done','3009162cJUcNA','replyChangeGroupStateUpdated','push','5QjsEhp','205814WBkXlK','createReply','messageId','1314668xuBNGQ','replyCreated','reasoningFinished','sendRequest','interactionFinished'];_0x5df4=function(){return _0x34a33e;};return _0x5df4();}function _0x221c(_0x1eb16b,_0x1714cc){const _0x5df4fb=_0x5df4();return _0x221c=function(_0x221c65,_0x5a8f02){_0x221c65=_0x221c65-0x12e;let _0x59e911=_0x5df4fb[_0x221c65];return _0x59e911;},_0x221c(_0x1eb16b,_0x1714cc);}const _0x101165=_0x221c;(function(_0x5ab553,_0x531df9){const _0x59f274=_0x221c,_0x449dcc=_0x5ab553();while(!![]){try{const _0x45a827=parseInt(_0x59f274(0x15b))/0x1+-parseInt(_0x59f274(0x12e))/0x2+-parseInt(_0x59f274(0x14e))/0x3+parseInt(_0x59f274(0x15e))/0x4*(-parseInt(_0x59f274(0x15a))/0x5)+parseInt(_0x59f274(0x157))/0x6+-parseInt(_0x59f274(0x148))/0x7+parseInt(_0x59f274(0x141))/0x8;if(_0x45a827===_0x531df9)break;else _0x449dcc['push'](_0x449dcc['shift']());}catch(_0xe5b04f){_0x449dcc['push'](_0x449dcc['shift']());}}}(_0x5df4,0x3f1d6));import{CKEditorError as _0x4fdbac,EmitterMixin as _0x5b5582,uid as _0x559fbc}from'ckeditor5/src/utils.js';import{AIReply as _0xc856fd,isIgnoredReplyType as _0x47fd06,isValidReplyType as _0xb62f25,isReplyTitleType as _0x112433,isSourceType as _0x4f4b10}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x101165(0x166),_0x101165(0x169),_0x101165(0x16d),_0x101165(0x162),_0x101165(0x14a),_0x101165(0x15f),_0x101165(0x149),_0x101165(0x158),_0x101165(0x167),_0x101165(0x12f),_0x101165(0x139),_0x101165(0x165),_0x101165(0x160),_0x101165(0x132)];export class AIInteraction extends _0x5b5582(){['id'];[_0x101165(0x13c)]=[];[_0x101165(0x14b)];[_0x101165(0x15d)];[_0x101165(0x14c)];[_0x101165(0x16c)];[_0x101165(0x154)];[_0x101165(0x16b)]=!0x1;[_0x101165(0x133)]=!0x1;[_0x101165(0x142)];[_0x101165(0x13d)]=!0x1;[_0x101165(0x153)]=!0x1;constructor({connector:_0x1ae5fe,editor:_0x241930}){const _0x2c4b7c=_0x101165;super(),this['id']=_0x559fbc(),this[_0x2c4b7c(0x154)]=_0x1ae5fe,this[_0x2c4b7c(0x16b)]=!0x0,this[_0x2c4b7c(0x142)]=_0x241930;}async[_0x101165(0x16f)](){const _0xf9bed=_0x101165;let _0x4111df;const _0x29e289=[];this[_0xf9bed(0x16b)]=!0x1;try{this[_0xf9bed(0x16c)]=await this[_0xf9bed(0x161)](),this[_0xf9bed(0x16a)](_0xf9bed(0x169),this);const _0x477d02=await this[_0xf9bed(0x16c)][_0xf9bed(0x130)]();for await(const _0xe590da of _0x477d02){if(this[_0xf9bed(0x16b)])return;if(_0xf9bed(0x132)===_0xe590da[_0xf9bed(0x151)])return void this[_0xf9bed(0x16a)](_0xf9bed(0x132),{'error':new _0x4fdbac(_0xf9bed(0x14d),this)});if(_0xf9bed(0x137)!==_0xe590da[_0xf9bed(0x151)]){if(_0xf9bed(0x134)!==_0xe590da[_0xf9bed(0x151)]){if(_0x112433(_0xe590da[_0xf9bed(0x151)])&&this[_0xf9bed(0x167)](_0xe590da[_0xf9bed(0x138)][_0xf9bed(0x143)],!0x0),_0x4f4b10(_0xe590da[_0xf9bed(0x151)]))_0x29e289[_0xf9bed(0x159)](_0xe590da[_0xf9bed(0x138)][_0xf9bed(0x140)]);else{if(_0xb62f25(_0xe590da[_0xf9bed(0x151)])){if(_0xe590da[_0xf9bed(0x151)]!==_0x4111df){if(_0x4111df=_0xe590da[_0xf9bed(0x151)],_0xf9bed(0x171)===_0xe590da[_0xf9bed(0x151)]){this[_0xf9bed(0x153)]||(this[_0xf9bed(0x153)]=!0x0,this[_0xf9bed(0x16a)](_0xf9bed(0x12f),this));continue;}if(_0xf9bed(0x144)===_0xe590da[_0xf9bed(0x151)]){this[_0xf9bed(0x13d)]||(this[_0xf9bed(0x13d)]=!0x0,this[_0xf9bed(0x16a)](_0xf9bed(0x165),this));continue;}this[_0xf9bed(0x13d)]&&(this[_0xf9bed(0x13d)]=!0x1,this[_0xf9bed(0x16a)](_0xf9bed(0x160),this)),this[_0xf9bed(0x153)]&&(this[_0xf9bed(0x153)]=!0x1,this[_0xf9bed(0x16a)](_0xf9bed(0x139),this)),this[_0xf9bed(0x14b)]&&this[_0xf9bed(0x14b)][_0xf9bed(0x156)](),this[_0xf9bed(0x14b)]=this[_0xf9bed(0x15c)]({'type':_0xe590da[_0xf9bed(0x151)],'interactionId':this['id'],'id':_0xe590da[_0xf9bed(0x138)]?.['id']}),_0x29e289[_0xf9bed(0x150)]>0x0&&_0xf9bed(0x13b)===_0xe590da[_0xf9bed(0x151)]&&(this[_0xf9bed(0x14b)][_0xf9bed(0x164)]=_0x29e289[_0xf9bed(0x146)](0x0));}_0xe590da[_0xf9bed(0x138)][_0xf9bed(0x152)]&&this[_0xf9bed(0x14b)][_0xf9bed(0x147)](_0xe590da[_0xf9bed(0x138)][_0xf9bed(0x152)]);}else _0x47fd06(_0xe590da[_0xf9bed(0x151)]);}}else this[_0xf9bed(0x14c)]=_0xe590da[_0xf9bed(0x138)][_0xf9bed(0x13a)];}else this[_0xf9bed(0x15d)]=_0xe590da[_0xf9bed(0x138)][_0xf9bed(0x15d)];}}finally{this[_0xf9bed(0x16b)]||(_0x29e289[_0xf9bed(0x150)]>0x0&&(this[_0xf9bed(0x14b)][_0xf9bed(0x164)]=_0x29e289[_0xf9bed(0x146)](0x0)),this[_0xf9bed(0x13e)](),this[_0xf9bed(0x16a)](_0xf9bed(0x162),this));}}[_0x101165(0x131)](){const _0x5aaeb2=_0x101165;this[_0x5aaeb2(0x16b)]||(this[_0x5aaeb2(0x13e)](),this[_0x5aaeb2(0x16a)](_0x5aaeb2(0x16d),this));}[_0x101165(0x16e)](_0x4cf74a){const _0x1ebba7=_0x101165;return this[_0x1ebba7(0x13c)][_0x1ebba7(0x13f)](_0xfadd73=>_0xfadd73['id']===_0x4cf74a);}[_0x101165(0x14f)](){const _0x50ce08=_0x101165;this[_0x50ce08(0x133)]||(this[_0x50ce08(0x131)](),this[_0x50ce08(0x13c)][_0x50ce08(0x170)](_0x3b0188=>_0x3b0188[_0x50ce08(0x14f)]()),this[_0x50ce08(0x13c)]=[],this[_0x50ce08(0x133)]=!0x0,this[_0x50ce08(0x16a)](_0x50ce08(0x14a),this),this[_0x50ce08(0x136)]());}[_0x101165(0x15c)](_0x5784af){const _0x3d472c=_0x101165,_0x3cdbb6=new _0xc856fd({'editor':this[_0x3d472c(0x142)],'documentContextContent':this[_0x3d472c(0x168)]()?.[_0x3d472c(0x145)],..._0x5784af});return this[_0x3d472c(0x13c)][_0x3d472c(0x159)](_0x3cdbb6),_0x3cdbb6[_0x3d472c(0x155)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x3d472c(0x16a)](_0x3d472c(0x15f),_0x3cdbb6),_0x3cdbb6;}[_0x101165(0x167)](_0x211bcd,_0xb462cf=!0x1){const _0x3188c5=_0x101165;this[_0x3188c5(0x16a)](_0x3188c5(0x167),_0x211bcd,_0xb462cf);}[_0x101165(0x13e)](){const _0x351045=_0x101165;this[_0x351045(0x16b)]=!0x0,this[_0x351045(0x16c)]&&this[_0x351045(0x16c)][_0x351045(0x135)][_0x351045(0x163)](),this[_0x351045(0x14b)]&&this[_0x351045(0x14b)][_0x351045(0x156)](),this[_0x351045(0x16c)]=this[_0x351045(0x14b)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x11b256=_0x36e3;(function(_0x478f55,_0x4c702c){const _0x46cc82=_0x36e3,_0x5d987d=_0x478f55();while(!![]){try{const _0x5be130=parseInt(_0x46cc82(0x1d4))/0x1*(-parseInt(_0x46cc82(0x1ce))/0x2)+-parseInt(_0x46cc82(0x1b6))/0x3+parseInt(_0x46cc82(0x1cc))/0x4*(parseInt(_0x46cc82(0x1ae))/0x5)+-parseInt(_0x46cc82(0x1b3))/0x6*(parseInt(_0x46cc82(0x1cb))/0x7)+-parseInt(_0x46cc82(0x1ac))/0x8*(parseInt(_0x46cc82(0x1c3))/0x9)+parseInt(_0x46cc82(0x1d6))/0xa*(parseInt(_0x46cc82(0x1ad))/0xb)+parseInt(_0x46cc82(0x1d3))/0xc*(parseInt(_0x46cc82(0x1cf))/0xd);if(_0x5be130===_0x4c702c)break;else _0x5d987d['push'](_0x5d987d['shift']());}catch(_0x2169d3){_0x5d987d['push'](_0x5d987d['shift']());}}}(_0x1fda,0x6262a));import{EmitterMixin as _0x5c2a56,logWarning as _0x2350b6,logError as _0x225787}from'ckeditor5/src/utils.js';import{getTranslation as _0x1c50cf}from'../utils/common-translations.js';export class AIModels extends _0x5c2a56(){[_0x11b256(0x1b7)];[_0x11b256(0x1bd)];[_0x11b256(0x1c0)];[_0x11b256(0x1ab)];[_0x11b256(0x1c9)]=[];constructor({connector:_0x5ba045,availableModels:_0x16dd8a,defaultModelId:_0x4284b1,locale:_0x471d24}){const _0x29c766=_0x11b256;super(),this[_0x29c766(0x1b7)]=_0x5ba045,this[_0x29c766(0x1bd)]=_0x16dd8a,this[_0x29c766(0x1c0)]=_0x4284b1,this[_0x29c766(0x1ab)]=_0x471d24;}async[_0x11b256(0x1c7)](){const _0x1c2331=_0x11b256;if(!this[_0x1c2331(0x1c9)][_0x1c2331(0x1b9)])try{const _0x857c29=this[_0x1c2331(0x1ab)][_0x1c2331(0x1d2)]||'en',_0x7f60ae=this[_0x1c2331(0x1b7)][_0x1c2331(0x1c8)](_0x857c29),_0x5a51d6=await _0x7f60ae[_0x1c2331(0x1b0)]();this[_0x1c2331(0x1c9)]=_0x5a51d6[_0x1c2331(0x1be)][_0x1c2331(0x1c6)](_0x300d5b=>Be(_0x300d5b)?{..._0x300d5b,'name':_0x1c50cf(this[_0x1c2331(0x1ab)],_0x1c2331(0x1d0))}:_0x300d5b);}catch(_0x593744){throw _0x225787(_0x1c2331(0x1bf),{'error':_0x593744}),_0x593744;}return[...this[_0x1c2331(0x1c9)]];}async[_0x11b256(0x1b1)](){const _0x54775f=_0x11b256,_0xe70782=await this[_0x54775f(0x1c7)]();return this[_0x54775f(0x1d1)](_0xe70782,this[_0x54775f(0x1bd)]);}async[_0x11b256(0x1d7)](_0x12f8d7){const _0x31a7c5=_0x11b256,_0x4e7003=await this[_0x31a7c5(0x1c7)]();if(!_0x4e7003[_0x31a7c5(0x1b9)])return null;if(_0x12f8d7){const _0x4417ea=this[_0x31a7c5(0x1c2)](_0x4e7003,_0x12f8d7);if(_0x4417ea)return _0x4417ea;_0x2350b6(_0x31a7c5(0x1b2),{'modelId':_0x12f8d7,'fallBackModelId':this[_0x31a7c5(0x1c0)]});}return this[_0x31a7c5(0x1c4)]();}async[_0x11b256(0x1c4)](){const _0xed3bfb=_0x11b256,_0x1299b9=await this[_0xed3bfb(0x1b1)]();if(!_0x1299b9[_0xed3bfb(0x1b9)])return null;if(this[_0xed3bfb(0x1c0)]){const _0x23d274=this[_0xed3bfb(0x1c2)](_0x1299b9,this[_0xed3bfb(0x1c0)]);if(_0x23d274)return _0x23d274;_0x2350b6(_0xed3bfb(0x1d5),{'defaultModelId':this[_0xed3bfb(0x1c0)],'fallBackModelId':_0x1299b9[0x0]['id']});}return _0x1299b9[0x0];}async[_0x11b256(0x1b4)](_0x2c0cf4){const _0x13728e=_0x11b256;return(await this[_0x13728e(0x1b1)]())[_0x13728e(0x1bc)](_0x576604=>_0x576604[_0x13728e(0x1ba)]===_0x2c0cf4[_0x13728e(0x1ba)]&&_0x576604[_0x13728e(0x1c5)]===_0x2c0cf4[_0x13728e(0x1c5)]);}[_0x11b256(0x1d1)](_0x3c83ad,_0x407cc8){const _0x4b0a35=_0x11b256;let _0x31a844;if(_0x407cc8){_0x31a844=[];const _0x228373=_0x4b0a35(0x1c1)==typeof _0x407cc8?[_0x407cc8[_0x4b0a35(0x1bb)]()]:_0x407cc8[_0x4b0a35(0x1c6)](_0x2f675a=>_0x2f675a[_0x4b0a35(0x1bb)]());for(const _0x3fc09c of _0x228373)for(const _0x2b64e6 of _0x3c83ad)(_0x2b64e6['id'][_0x4b0a35(0x1bb)]()===_0x3fc09c||_0x2b64e6[_0x4b0a35(0x1ba)][_0x4b0a35(0x1bb)]()===_0x3fc09c||Be(_0x2b64e6)&&_0x4b0a35(0x1af)===_0x3fc09c||_0x2b64e6[_0x4b0a35(0x1c5)][_0x4b0a35(0x1bb)]()===_0x3fc09c||_0x2b64e6['id'][_0x4b0a35(0x1bb)]()[_0x4b0a35(0x1cd)](_0x3fc09c))&&_0x31a844[_0x4b0a35(0x1ca)](_0x2b64e6);}else _0x31a844=_0x3c83ad;return _0x31a844;}[_0x11b256(0x1c2)](_0x4e19ec,_0x2a9fa8){const _0x2ddef3=_0x11b256;return _0x4e19ec[_0x2ddef3(0x1b8)](_0x4e3b8=>Be(_0x4e3b8)&&_0x2ddef3(0x1af)===_0x2a9fa8?_0x4e3b8:_0x4e3b8['id']===_0x2a9fa8)||null;}}function _0x36e3(_0x37ada5,_0x4d0a1f){const _0x1fdaae=_0x1fda();return _0x36e3=function(_0x36e3e1,_0x207f1f){_0x36e3e1=_0x36e3e1-0x1ab;let _0x53c92a=_0x1fdaae[_0x36e3e1];return _0x53c92a;},_0x36e3(_0x37ada5,_0x4d0a1f);}function Be(_0x482301){const _0x4c71cc=_0x11b256;return _0x482301['id'][_0x4c71cc(0x1cd)](_0x4c71cc(0x1b5));}function _0x1fda(){const _0x38db9c=['4077EoInpm','ai-chat-default-model-id-unrecognized','124570qmOytY','getModel','_locale','255496Swrcjj','297TwvNPh','20kazoVq','auto','list','getAvailableModels','ai-chat-model-id-unrecognized','114eGtkzx','isAvailable','agent','524988Zlwtxk','_connector','find','length','name','toLocaleLowerCase','some','_availableModels','items','ai-models-unable-to-retrieve','_defaultModelId','string','_getModelById','99SwdySc','getDefault','provider','map','getAll','getModels','_modelList','push','290801QKhZmf','268936MPuxFj','startsWith','38QfKFRU','26QnLQPx','AI_MODEL_NAME_AUTO','_filterModels','uiLanguage','7144764TudbdC'];_0x1fda=function(){return _0x38db9c;};return _0x1fda();}
23
+ const _0x178853=_0x3a12;(function(_0xc1b80f,_0x4ed6ee){const _0x3e2aaf=_0x3a12,_0x50325b=_0xc1b80f();while(!![]){try{const _0x2f71dd=parseInt(_0x3e2aaf(0x86))/0x1*(parseInt(_0x3e2aaf(0x91))/0x2)+parseInt(_0x3e2aaf(0x8e))/0x3*(-parseInt(_0x3e2aaf(0x7b))/0x4)+parseInt(_0x3e2aaf(0x82))/0x5*(-parseInt(_0x3e2aaf(0x7f))/0x6)+parseInt(_0x3e2aaf(0x6c))/0x7*(parseInt(_0x3e2aaf(0x77))/0x8)+parseInt(_0x3e2aaf(0x8b))/0x9*(-parseInt(_0x3e2aaf(0x92))/0xa)+parseInt(_0x3e2aaf(0x81))/0xb*(-parseInt(_0x3e2aaf(0x89))/0xc)+parseInt(_0x3e2aaf(0x6a))/0xd;if(_0x2f71dd===_0x4ed6ee)break;else _0x50325b['push'](_0x50325b['shift']());}catch(_0x3749db){_0x50325b['push'](_0x50325b['shift']());}}}(_0x1859,0x2d747));function _0x3a12(_0x1f36b6,_0x34dddb){const _0x1859a1=_0x1859();return _0x3a12=function(_0x3a122b,_0x500b54){_0x3a122b=_0x3a122b-0x66;let _0x1f5730=_0x1859a1[_0x3a122b];return _0x1f5730;},_0x3a12(_0x1f36b6,_0x34dddb);}function _0x1859(){const _0x51422f=['_modelList','_availableModels','getAvailableModels','find','list','12792MgarBE','map','name','_connector','124IQmlRx','push','getAll','provider','18mrmvQI','isAvailable','1238149LoHqiR','554215tqFKRa','AI_MODEL_NAME_AUTO','some','_locale','7oOQxca','items','string','24LPHsat','ai-chat-default-model-id-unrecognized','9heGlvi','_filterModels','length','17574PyYZAb','startsWith','_defaultModelId','64466tDiXfF','319170iTLshn','ai-models-unable-to-retrieve','getModel','auto','toLocaleLowerCase','7392008zxklHB','getDefault','714iEkhPY','uiLanguage','_getModelById','getModels','ai-chat-model-id-unrecognized','agent'];_0x1859=function(){return _0x51422f;};return _0x1859();}import{EmitterMixin as _0x4094e0,logWarning as _0x2c5fba,logError as _0x3b495e}from'ckeditor5/src/utils.js';import{getTranslation as _0x5cd598}from'../utils/common-translations.js';export class AIModels extends _0x4094e0(){[_0x178853(0x7a)];[_0x178853(0x73)];[_0x178853(0x90)];[_0x178853(0x85)];[_0x178853(0x72)]=[];constructor({connector:_0x551e08,availableModels:_0x44119f,defaultModelId:_0x5273dd,locale:_0x428e91}){const _0x112447=_0x178853;super(),this[_0x112447(0x7a)]=_0x551e08,this[_0x112447(0x73)]=_0x44119f,this[_0x112447(0x90)]=_0x5273dd,this[_0x112447(0x85)]=_0x428e91;}async[_0x178853(0x7d)](){const _0x382351=_0x178853;if(!this[_0x382351(0x72)][_0x382351(0x8d)])try{const _0x135bf4=this[_0x382351(0x85)][_0x382351(0x6d)]||'en',_0x4f6b72=this[_0x382351(0x7a)][_0x382351(0x6f)](_0x135bf4),_0x1e0201=await _0x4f6b72[_0x382351(0x76)]();this[_0x382351(0x72)]=_0x1e0201[_0x382351(0x87)][_0x382351(0x78)](_0x5a4b61=>Xe(_0x5a4b61)?{..._0x5a4b61,'name':_0x5cd598(this[_0x382351(0x85)],_0x382351(0x83))}:_0x5a4b61);}catch(_0x2b8b0f){throw _0x3b495e(_0x382351(0x66),{'error':_0x2b8b0f}),_0x2b8b0f;}return[...this[_0x382351(0x72)]];}async[_0x178853(0x74)](){const _0x3558d4=_0x178853,_0x5be8df=await this[_0x3558d4(0x7d)]();return this[_0x3558d4(0x8c)](_0x5be8df,this[_0x3558d4(0x73)]);}async[_0x178853(0x67)](_0x339a79){const _0x2bcdf8=_0x178853,_0x1c4704=await this[_0x2bcdf8(0x7d)]();if(!_0x1c4704[_0x2bcdf8(0x8d)])return null;if(_0x339a79){const _0x3e1e41=this[_0x2bcdf8(0x6e)](_0x1c4704,_0x339a79);if(_0x3e1e41)return _0x3e1e41;_0x2c5fba(_0x2bcdf8(0x70),{'modelId':_0x339a79,'fallBackModelId':this[_0x2bcdf8(0x90)]});}return this[_0x2bcdf8(0x6b)]();}async[_0x178853(0x6b)](){const _0x3b06f8=_0x178853,_0x3a4e47=await this[_0x3b06f8(0x74)]();if(!_0x3a4e47[_0x3b06f8(0x8d)])return null;if(this[_0x3b06f8(0x90)]){const _0x34a857=this[_0x3b06f8(0x6e)](_0x3a4e47,this[_0x3b06f8(0x90)]);if(_0x34a857)return _0x34a857;_0x2c5fba(_0x3b06f8(0x8a),{'defaultModelId':this[_0x3b06f8(0x90)],'fallBackModelId':_0x3a4e47[0x0]['id']});}return _0x3a4e47[0x0];}async[_0x178853(0x80)](_0x520c46){const _0x2f5376=_0x178853;return(await this[_0x2f5376(0x74)]())[_0x2f5376(0x84)](_0x59118e=>_0x59118e[_0x2f5376(0x79)]===_0x520c46[_0x2f5376(0x79)]&&_0x59118e[_0x2f5376(0x7e)]===_0x520c46[_0x2f5376(0x7e)]);}[_0x178853(0x8c)](_0x13e5b3,_0x1a112b){const _0x30f45e=_0x178853;let _0x3a3e98;if(_0x1a112b){_0x3a3e98=[];const _0xf50da9=_0x30f45e(0x88)==typeof _0x1a112b?[_0x1a112b[_0x30f45e(0x69)]()]:_0x1a112b[_0x30f45e(0x78)](_0x2bd621=>_0x2bd621[_0x30f45e(0x69)]());for(const _0x2157bb of _0xf50da9)for(const _0x387e57 of _0x13e5b3)(_0x387e57['id'][_0x30f45e(0x69)]()===_0x2157bb||_0x387e57[_0x30f45e(0x79)][_0x30f45e(0x69)]()===_0x2157bb||Xe(_0x387e57)&&_0x30f45e(0x68)===_0x2157bb||_0x387e57[_0x30f45e(0x7e)][_0x30f45e(0x69)]()===_0x2157bb||_0x387e57['id'][_0x30f45e(0x69)]()[_0x30f45e(0x8f)](_0x2157bb))&&_0x3a3e98[_0x30f45e(0x7c)](_0x387e57);}else _0x3a3e98=_0x13e5b3;return _0x3a3e98;}[_0x178853(0x6e)](_0x1a8c44,_0x44321b){const _0x2a9d18=_0x178853;return _0x1a8c44[_0x2a9d18(0x75)](_0x3d4a1e=>Xe(_0x3d4a1e)&&_0x2a9d18(0x68)===_0x44321b?_0x3d4a1e:_0x3d4a1e['id']===_0x44321b)||null;}}function Xe(_0x58d4da){const _0x35350e=_0x178853;return _0x58d4da['id'][_0x35350e(0x8f)](_0x35350e(0x71));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x19ee2c=_0x1962;(function(_0x2d410b,_0x23b6a3){const _0x59e3e1=_0x1962,_0x109ba2=_0x2d410b();while(!![]){try{const _0x17cf62=parseInt(_0x59e3e1(0x1f9))/0x1*(parseInt(_0x59e3e1(0x1c3))/0x2)+-parseInt(_0x59e3e1(0x1e4))/0x3+parseInt(_0x59e3e1(0x1ea))/0x4*(-parseInt(_0x59e3e1(0x1dd))/0x5)+-parseInt(_0x59e3e1(0x1c5))/0x6*(-parseInt(_0x59e3e1(0x203))/0x7)+-parseInt(_0x59e3e1(0x1cb))/0x8+parseInt(_0x59e3e1(0x201))/0x9*(-parseInt(_0x59e3e1(0x1e1))/0xa)+parseInt(_0x59e3e1(0x1e6))/0xb*(parseInt(_0x59e3e1(0x1f6))/0xc);if(_0x17cf62===_0x23b6a3)break;else _0x109ba2['push'](_0x109ba2['shift']());}catch(_0x3ca128){_0x109ba2['push'](_0x109ba2['shift']());}}}(_0x3246,0x43b92));import{CKEditorError as _0x43738d,ObservableMixin as _0x405b94,uid as _0x30d951}from'ckeditor5/src/utils.js';import{Element as _0x1fae90,findAll as _0x3aa496,getAttribute as _0x11e672,getParents as _0x276fe8,Document as _0x32bc00,parse as _0x2933d1,Text as _0x325966}from'../utils/htmlparser.js';import{AIResponseParser as _0x31a9f1}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x3856c5}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x33dc27}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0xf160dc}from'../utils/common-translations.js';import{cloneDeep as _0x9fc937}from'es-toolkit';export const AI_REPLY_TYPES=[_0x19ee2c(0x1d1),_0x19ee2c(0x1eb),_0x19ee2c(0x1ba),_0x19ee2c(0x1e0)];export const AI_REPLY_TYPES_IGNORED=[_0x19ee2c(0x1fa)];function _0x1962(_0x51267d,_0x5edcc3){const _0x324658=_0x3246();return _0x1962=function(_0x1962d5,_0x3ce7f1){_0x1962d5=_0x1962d5-0x1b9;let _0x28b2df=_0x324658[_0x1962d5];return _0x28b2df;},_0x1962(_0x51267d,_0x5edcc3);}export const AI_REPLY_TITLE_TYPE=_0x19ee2c(0x1fa);function _0x3246(){const _0x3657b6=['ai-get-editor-from-context-no-editor','replyChangeGroupStateUpdated','data-id','appendContent','filter','new','nextSibling','parsedMergedContent','removed','cloneNode','AI_SUGGESTION_CONTENT_PART_REMOVED','merge','web-search','convertMarkdownToHTML','removedNodeIds','parsedContent','values','length','pending','context','unshift','34382ERmXSE','aiResponseParser','1110ePgzsL','destroy','onContentChange','modifiedNodeIds','splice','stopListening','4139312DgGENq','source','state','aiResponseApplier','locale','updateChangeGroups','modification-delta','_getDifferentChangeGroups','areActionsDisabled','replyContentUpdated','ai-reply-get-content-parts-group-not-found','getContentParts','previousSibling','fire','every','isDone','_setCachedContentParts','withDiff','693505tBTgdZ','sources','newNodeIds','reasoning','10XNHfjH','content','done','469158prUVjL','map','5087291qCkUfl','parseAndNormalizeHTML','includes','cachedSuggestionContentParts','12ahIVpm','text-delta','forEach','_getCachedContentParts','span','modified','change:content','indexOf','data-unstable','type','documentContextContent','withoutDiff','36MStnbn','setChangeGroupState','editor','12eOCPLJ','conversation-title','index','interactionId','find','changeGroups','node','color:\x20#808080;\x20font-style:\x20italic','2805507UzcqXN','changes','3227ZlrTug','push','set'];_0x3246=function(){return _0x3657b6;};return _0x3246();}export class AIReply extends _0x405b94(){['id'];[_0x19ee2c(0x1fc)];[_0x19ee2c(0x1f3)];[_0x19ee2c(0x1de)]=[];[_0x19ee2c(0x1bd)]=new _0x32bc00([]);[_0x19ee2c(0x20d)]=new _0x32bc00([]);[_0x19ee2c(0x1fe)]=[];[_0x19ee2c(0x1d3)]=!0x1;[_0x19ee2c(0x1f4)];[_0x19ee2c(0x1c4)];[_0x19ee2c(0x1ce)];[_0x19ee2c(0x1f8)];[_0x19ee2c(0x1e9)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x281686,content:_0x184db4='',isDone:_0x560890=!0x1,interactionId:_0x127322,areActionsDisabled:_0x135983,documentContextContent:_0x1be38c,editor:_0x1a06c3,id:_0x510961}){const _0x2797c2=_0x19ee2c;super(),this['id']=_0x510961||_0x30d951(),this[_0x2797c2(0x1fc)]=_0x127322,this[_0x2797c2(0x1f3)]=_0x281686,this[_0x2797c2(0x1d3)]=!!_0x135983,this[_0x2797c2(0x1f8)]=_0x1a06c3,this[_0x2797c2(0x1c4)]=new _0x31a9f1(),this[_0x2797c2(0x1ce)]=new _0x3856c5(),this[_0x2797c2(0x1f4)]=_0x2933d1(_0x1be38c||''),this[_0x2797c2(0x205)](_0x2797c2(0x1da),_0x560890),this['on'](_0x2797c2(0x1f0),()=>{const _0xc4ffb=_0x2797c2;this[_0xc4ffb(0x1c7)]();}),this[_0x2797c2(0x205)](_0x2797c2(0x1e2),_0x184db4);}[_0x19ee2c(0x209)](_0x522efd){const _0x3e3283=_0x19ee2c;this[_0x3e3283(0x205)](_0x3e3283(0x1e2),this[_0x3e3283(0x1e2)]+_0x522efd);}[_0x19ee2c(0x1e3)](){const _0x529be6=_0x19ee2c;this[_0x529be6(0x1da)]||(this[_0x529be6(0x205)](_0x529be6(0x1da),!0x0),this[_0x529be6(0x1c7)]());}[_0x19ee2c(0x1c6)](){const _0x59ca16=_0x19ee2c;this[_0x59ca16(0x1ca)]();}[_0x19ee2c(0x1f7)](_0x52f7be,_0x499a96){const _0x41c73c=_0x19ee2c;this[_0x41c73c(0x1fe)][_0x52f7be][_0x41c73c(0x1cd)]=_0x499a96,this[_0x41c73c(0x1d8)](_0x41c73c(0x207),{'reply':this,'index':_0x52f7be,'state':_0x499a96});}[_0x19ee2c(0x1d6)]({showDiff:_0x4eb814,groupIndex:_0x3dae4b}){const _0x1506ec=_0x19ee2c;if(!this[_0x1506ec(0x1f8)])throw new _0x43738d(_0x1506ec(0x206),null,{'aiReply':this});const _0x59ad69=this[_0x1506ec(0x1ed)](_0x4eb814,_0x3dae4b);if(_0x59ad69)return _0x59ad69;let _0x4f6b45=[];if(void 0x0===_0x3dae4b)_0x4f6b45=this[_0x1506ec(0x1fe)];else{const _0x4da09f=this[_0x1506ec(0x1fe)][_0x1506ec(0x1fd)](({index:_0x576088})=>_0x576088===_0x3dae4b);if(!_0x4da09f)throw new _0x43738d(_0x1506ec(0x1d5),null,{'aiReply':this,'groupIndex':_0x3dae4b});_0x4f6b45=[_0x4da09f];}const _0x19c024=_0x33dc27({'editor':this[_0x1506ec(0x1f8)],'showDiff':_0x4eb814,'changeGroups':_0x4f6b45,'documentContextContent':this[_0x1506ec(0x1f4)]});return this[_0x1506ec(0x1db)](_0x4eb814,_0x19c024),_0x19c024;}[_0x19ee2c(0x1ed)](_0x54fecc,_0x2dea2e){const _0x122683=_0x19ee2c,_0x6fc963=_0x54fecc?_0x122683(0x1dc):_0x122683(0x1f5);if(!this[_0x122683(0x1e9)][_0x6fc963][_0x122683(0x1bf)])return null;const _0x4fdcf2=this[_0x122683(0x1e9)][_0x6fc963];if(void 0x0===_0x2dea2e)return _0x9fc937(_0x4fdcf2);{const _0x3426b4=_0x4fdcf2[_0x122683(0x1fd)](({index:_0x1ca6a8})=>_0x1ca6a8===_0x2dea2e);if(_0x3426b4)return[_0x9fc937(_0x3426b4)];}return null;}[_0x19ee2c(0x1db)](_0x1a0de5,_0x1e6e5c){const _0x596210=_0x19ee2c,_0x40fee5=_0x1a0de5?_0x596210(0x1dc):_0x596210(0x1f5);_0x1e6e5c[_0x596210(0x1ec)](_0x25fdc9=>{const _0x13c8a5=_0x596210,_0x366b0f=this[_0x13c8a5(0x1e9)][_0x40fee5],_0xc93d51=_0x366b0f[_0x13c8a5(0x1fd)](({index:_0x37c911})=>_0x37c911===_0x25fdc9[_0x13c8a5(0x1fb)]);if(_0xc93d51){const _0x7d7adc=_0x366b0f[_0x13c8a5(0x1f1)](_0xc93d51);_0x366b0f[_0x13c8a5(0x1c9)](_0x7d7adc,0x1,_0x25fdc9);}else _0x366b0f[_0x13c8a5(0x204)](_0x25fdc9);});}[_0x19ee2c(0x1c7)](){const _0x295985=_0x19ee2c;if(_0x295985(0x1d1)===this[_0x295985(0x1f3)]){this[_0x295985(0x1bd)]=this[_0x295985(0x1c4)][_0x295985(0x1e7)](this[_0x295985(0x1e2)]);const _0x348a12=this[_0x295985(0x1fe)];this[_0x295985(0x1d0)]();const _0x14ff27=this[_0x295985(0x1d2)](_0x348a12,this[_0x295985(0x1fe)]);(_0x14ff27[_0x295985(0x1bf)]||this[_0x295985(0x1da)])&&(this[_0x295985(0x1d8)](_0x295985(0x1d4),this,_0x14ff27),this[_0x295985(0x1e9)][_0x295985(0x1dc)][_0x295985(0x1bf)]=this[_0x295985(0x1e9)][_0x295985(0x1f5)][_0x295985(0x1bf)]=0x0);}else this[_0x295985(0x1bd)]=this[_0x295985(0x1c4)][_0x295985(0x1bb)](this[_0x295985(0x1e2)]),this[_0x295985(0x1d8)](_0x295985(0x1d4),this);}[_0x19ee2c(0x1d2)](_0x4ef1f7,_0x3b25b9){const _0x1a4c60=_0x19ee2c,_0x265e1e=[];for(const _0x206a2b of _0x3b25b9){const _0x324452=_0x4ef1f7[_0x206a2b[_0x1a4c60(0x1fb)]];_0x324452?_0x324452[_0x1a4c60(0x202)][_0x1a4c60(0x1bf)]!==_0x206a2b[_0x1a4c60(0x202)][_0x1a4c60(0x1bf)]?_0x265e1e[_0x1a4c60(0x204)](_0x206a2b):_0x324452[_0x1a4c60(0x202)][_0x1a4c60(0x1ec)]((_0x3a23ac,_0xf3c7b9)=>{const _0x2aeee0=_0x1a4c60,_0x113ed6=_0x206a2b[_0x2aeee0(0x202)][_0xf3c7b9];_0x3a23ac['id']!==_0x113ed6['id']&&_0x265e1e[_0x2aeee0(0x204)](_0x206a2b);}):_0x265e1e[_0x1a4c60(0x204)](_0x206a2b);}return _0x265e1e;}[_0x19ee2c(0x1d0)](){const _0x319f99=_0x19ee2c,_0x5f0a40=new _0x1fae90('p',{},[new _0x1fae90(_0x319f99(0x1ee),{'style':_0x319f99(0x200)},[new _0x325966(_0xf160dc(this[_0x319f99(0x1f8)][_0x319f99(0x1cf)],_0x319f99(0x210)))])]),_0x80e28a=this[_0x319f99(0x1ce)][_0x319f99(0x1b9)](this[_0x319f99(0x1bd)],this[_0x319f99(0x1f4)][_0x319f99(0x20f)](!0x0),{'markUnstableElements':!this[_0x319f99(0x1da)],'replaceRemovedWith':_0x5f0a40,'cutAfterLastChange':!this[_0x319f99(0x1da)]});if(!_0x80e28a[_0x319f99(0x1c8)][_0x319f99(0x1bf)]&&!this[_0x319f99(0x1da)])return;this[_0x319f99(0x20d)]=_0x80e28a[_0x319f99(0x1bd)];let _0x4181fc=[];if(_0x3aa496(_0x2cb60e=>{const _0x195fbc=_0x319f99,_0x52f319=_0x11e672(_0x2cb60e,_0x195fbc(0x208));if(!_0x52f319||!_0x12a269(_0x52f319))return!0x1;const _0x1c21a7=[_0x2cb60e,..._0x276fe8(_0x2cb60e)]['at'](-0x2);if(_0x2cb60e!=_0x1c21a7){const _0x7f9551=_0x11e672(_0x1c21a7,_0x195fbc(0x208));_0x12a269(_0x7f9551)||(_0x4181fc[_0x195fbc(0x204)]({'node':_0x1c21a7,'id':_0x7f9551,'type':_0x195fbc(0x1ef)}),_0x80e28a[_0x195fbc(0x1c8)][_0x195fbc(0x204)](_0x7f9551));}else _0x80e28a[_0x195fbc(0x1c8)][_0x195fbc(0x1e8)](_0x52f319)?_0x4181fc[_0x195fbc(0x204)]({'node':_0x2cb60e,'type':_0x195fbc(0x1ef),'id':_0x52f319}):_0x80e28a[_0x195fbc(0x1df)][_0x195fbc(0x1e8)](_0x52f319)?_0x4181fc[_0x195fbc(0x204)]({'node':_0x2cb60e,'type':_0x195fbc(0x20b),'id':_0x52f319,'anchorId':_0x11e672(_0x2cb60e[_0x195fbc(0x1d7)],_0x195fbc(0x208))}):_0x4181fc[_0x195fbc(0x204)]({'node':_0x2cb60e,'type':_0x195fbc(0x20e),'id':_0x52f319});return!0x0;},this[_0x319f99(0x20d)]),_0x4181fc=_0x4181fc[_0x319f99(0x20a)](({node:_0x4e793c})=>[..._0x276fe8(_0x4e793c),_0x4e793c][_0x319f99(0x1d9)](_0xd89fb7=>!_0x11e672(_0xd89fb7,_0x319f99(0x1f2)))),0x0==_0x4181fc[_0x319f99(0x1bf)])return;const _0x3ddc88=[[_0x4181fc[0x0]]];for(let _0x99d556=0x1;_0x99d556<_0x4181fc[_0x319f99(0x1bf)];_0x99d556++){const _0x36005c=_0x3ddc88[_0x3ddc88[_0x319f99(0x1bf)]-0x1],_0x268f75=_0x36005c[_0x36005c[_0x319f99(0x1bf)]-0x1];_0x4181fc[_0x99d556][_0x319f99(0x1ff)][_0x319f99(0x1d7)]==_0x268f75[_0x319f99(0x1ff)]&&_0x319f99(0x1ef)!=_0x4181fc[_0x99d556][_0x319f99(0x1f3)]&&_0x319f99(0x1ef)!=_0x268f75[_0x319f99(0x1f3)]?_0x36005c[_0x319f99(0x204)](_0x4181fc[_0x99d556]):_0x3ddc88[_0x319f99(0x204)]([_0x4181fc[_0x99d556]]);}for(const _0xe1c661 of _0x3ddc88){const _0x3e33e4=_0xe1c661[0x0],_0x310107=_0xe1c661[_0xe1c661[_0x319f99(0x1bf)]-0x1],_0x5b9054=_0x4c7b1b(_0x3e33e4[_0x319f99(0x1ff)][_0x319f99(0x1d7)]);_0x5b9054&&_0xe1c661[_0x319f99(0x1c2)](_0x5b9054);const _0x23b901=_0x4c7b1b(_0x310107[_0x319f99(0x1ff)][_0x319f99(0x20c)]);_0x23b901&&_0xe1c661[_0x319f99(0x204)](_0x23b901);}function _0x12a269(_0x263a36){const _0x5edb8b=_0x319f99;return _0x80e28a[_0x5edb8b(0x1c8)][_0x5edb8b(0x1e8)](_0x263a36)||_0x80e28a[_0x5edb8b(0x1df)][_0x5edb8b(0x1e8)](_0x263a36)||_0x80e28a[_0x5edb8b(0x1bc)][_0x5edb8b(0x1e8)](_0x263a36);}function _0x4c7b1b(_0xd67d53){const _0x5efb17=_0x319f99;if(_0xd67d53&&_0x11e672(_0xd67d53,_0x5efb17(0x208))&&!_0x11e672(_0xd67d53,_0x5efb17(0x1f2))){const _0x38f49e=_0x11e672(_0xd67d53,_0x5efb17(0x208));if(!_0x12a269(_0x38f49e))return{'node':_0xd67d53,'type':_0x5efb17(0x1c1),'id':_0x38f49e};}return null;}this[_0x319f99(0x1fe)]=_0x3ddc88[_0x319f99(0x1e5)]((_0x4d48ce,_0x4b97ee)=>({'changes':_0x4d48ce,'state':_0x319f99(0x1c0),'index':_0x4b97ee}));}}export function isValidReplyType(_0x28c49e){const _0x5c83de=_0x19ee2c;return Object[_0x5c83de(0x1be)](AI_REPLY_TYPES)[_0x5c83de(0x1e8)](_0x28c49e);}export function isIgnoredReplyType(_0x372fde){const _0x318474=_0x19ee2c;return AI_REPLY_TYPES_IGNORED[_0x318474(0x1e8)](_0x372fde);}export function isReplyTitleType(_0xd7affc){return _0xd7affc===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x253e07){const _0x4f16b2=_0x19ee2c;return _0x4f16b2(0x1cc)===_0x253e07;}
23
+ const _0x4f6acd=_0x4f07;(function(_0x3d71e3,_0x186943){const _0x170bc9=_0x4f07,_0xb3e764=_0x3d71e3();while(!![]){try{const _0x5119d8=parseInt(_0x170bc9(0x158))/0x1*(parseInt(_0x170bc9(0x165))/0x2)+-parseInt(_0x170bc9(0x169))/0x3+parseInt(_0x170bc9(0x18f))/0x4*(parseInt(_0x170bc9(0x187))/0x5)+-parseInt(_0x170bc9(0x182))/0x6*(-parseInt(_0x170bc9(0x18e))/0x7)+parseInt(_0x170bc9(0x17f))/0x8*(parseInt(_0x170bc9(0x16f))/0x9)+-parseInt(_0x170bc9(0x1a2))/0xa*(-parseInt(_0x170bc9(0x162))/0xb)+parseInt(_0x170bc9(0x17c))/0xc*(-parseInt(_0x170bc9(0x16d))/0xd);if(_0x5119d8===_0x186943)break;else _0xb3e764['push'](_0xb3e764['shift']());}catch(_0x443af3){_0xb3e764['push'](_0xb3e764['shift']());}}}(_0x2bff,0x29f31));import{CKEditorError as _0x39dcbb,ObservableMixin as _0x1ca8b4,uid as _0x3abc06}from'ckeditor5/src/utils.js';import{Element as _0x2b8c9b,findAll as _0x38edf7,getAttribute as _0x663f5c,getParents as _0x3051de,Document as _0x5a821b,parse as _0x7ae851,Text as _0x906821}from'../utils/htmlparser.js';import{AIResponseParser as _0x153118}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x3d1252}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x4cfe3a}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x11920d}from'../utils/common-translations.js';import{cloneDeep as _0x3fc728}from'es-toolkit';export const AI_REPLY_TYPES=[_0x4f6acd(0x188),_0x4f6acd(0x18d),_0x4f6acd(0x184),_0x4f6acd(0x1a0)];export const AI_REPLY_TYPES_IGNORED=[_0x4f6acd(0x1a7)];function _0x4f07(_0x375659,_0x4dabcf){const _0x2bff60=_0x2bff();return _0x4f07=function(_0x4f0733,_0x4e7c20){_0x4f0733=_0x4f0733-0x150;let _0x3c8cbd=_0x2bff60[_0x4f0733];return _0x3c8cbd;},_0x4f07(_0x375659,_0x4dabcf);}export const AI_REPLY_TITLE_TYPE=_0x4f6acd(0x1a7);export class AIReply extends _0x1ca8b4(){['id'];[_0x4f6acd(0x1a3)];[_0x4f6acd(0x16e)];[_0x4f6acd(0x18a)]=[];[_0x4f6acd(0x181)]=new _0x5a821b([]);[_0x4f6acd(0x16b)]=new _0x5a821b([]);[_0x4f6acd(0x190)]=[];[_0x4f6acd(0x168)]=!0x1;[_0x4f6acd(0x192)];[_0x4f6acd(0x19a)];[_0x4f6acd(0x186)];[_0x4f6acd(0x197)];[_0x4f6acd(0x189)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x54c536,content:_0x5d1529='',isDone:_0x5b6eec=!0x1,interactionId:_0x39f200,areActionsDisabled:_0x331d69,documentContextContent:_0x50e49f,editor:_0x14622c,id:_0xc483d8}){const _0x3014ef=_0x4f6acd;super(),this['id']=_0xc483d8||_0x3abc06(),this[_0x3014ef(0x1a3)]=_0x39f200,this[_0x3014ef(0x16e)]=_0x54c536,this[_0x3014ef(0x168)]=!!_0x331d69,this[_0x3014ef(0x197)]=_0x14622c,this[_0x3014ef(0x19a)]=new _0x153118(),this[_0x3014ef(0x186)]=new _0x3d1252(),this[_0x3014ef(0x192)]=_0x7ae851(_0x50e49f||''),this[_0x3014ef(0x16a)](_0x3014ef(0x180),_0x5b6eec),this['on'](_0x3014ef(0x179),()=>{const _0x473a8b=_0x3014ef;this[_0x473a8b(0x19b)]();}),this[_0x3014ef(0x16a)](_0x3014ef(0x1a5),_0x5d1529);}[_0x4f6acd(0x161)](_0x5a3ac1){const _0x3c0857=_0x4f6acd;this[_0x3c0857(0x16a)](_0x3c0857(0x1a5),this[_0x3c0857(0x1a5)]+_0x5a3ac1);}[_0x4f6acd(0x19e)](){const _0x277723=_0x4f6acd;this[_0x277723(0x180)]||(this[_0x277723(0x16a)](_0x277723(0x180),!0x0),this[_0x277723(0x19b)]());}[_0x4f6acd(0x1a1)](){const _0x177eb3=_0x4f6acd;this[_0x177eb3(0x175)]();}[_0x4f6acd(0x151)](_0x3d0548,_0x50f5a1){const _0x10bb2a=_0x4f6acd;this[_0x10bb2a(0x190)][_0x3d0548][_0x10bb2a(0x17d)]=_0x50f5a1,this[_0x10bb2a(0x155)](_0x10bb2a(0x17b),{'reply':this,'index':_0x3d0548,'state':_0x50f5a1});}[_0x4f6acd(0x177)]({showDiff:_0x1c2ac7,groupIndex:_0x6c7295}){const _0x169d96=_0x4f6acd;if(!this[_0x169d96(0x197)])throw new _0x39dcbb(_0x169d96(0x150),null,{'aiReply':this});const _0xcbed2e=this[_0x169d96(0x164)](_0x1c2ac7,_0x6c7295);if(_0xcbed2e)return _0xcbed2e;let _0x46360d=[];if(void 0x0===_0x6c7295)_0x46360d=this[_0x169d96(0x190)];else{const _0x4dede1=this[_0x169d96(0x190)][_0x169d96(0x154)](({index:_0x18a69f})=>_0x18a69f===_0x6c7295);if(!_0x4dede1)throw new _0x39dcbb(_0x169d96(0x170),null,{'aiReply':this,'groupIndex':_0x6c7295});_0x46360d=[_0x4dede1];}const _0x5f7d75=_0x4cfe3a({'editor':this[_0x169d96(0x197)],'showDiff':_0x1c2ac7,'changeGroups':_0x46360d,'documentContextContent':this[_0x169d96(0x192)]});return this[_0x169d96(0x156)](_0x1c2ac7,_0x5f7d75),_0x5f7d75;}[_0x4f6acd(0x164)](_0x109511,_0x4e7713){const _0x254edf=_0x4f6acd,_0x10995c=_0x109511?_0x254edf(0x15e):_0x254edf(0x185);if(!this[_0x254edf(0x189)][_0x10995c][_0x254edf(0x167)])return null;const _0xd49f65=this[_0x254edf(0x189)][_0x10995c];if(void 0x0===_0x4e7713)return _0x3fc728(_0xd49f65);{const _0x4cb47e=_0xd49f65[_0x254edf(0x154)](({index:_0x1b99ab})=>_0x1b99ab===_0x4e7713);if(_0x4cb47e)return[_0x3fc728(_0x4cb47e)];}return null;}[_0x4f6acd(0x156)](_0xc6be02,_0x27c1d5){const _0x2a0e19=_0x4f6acd,_0x2a05e8=_0xc6be02?_0x2a0e19(0x15e):_0x2a0e19(0x185);_0x27c1d5[_0x2a0e19(0x1a4)](_0x5733e2=>{const _0x96f495=_0x2a0e19,_0x3029a0=this[_0x96f495(0x189)][_0x2a05e8],_0x577e34=_0x3029a0[_0x96f495(0x154)](({index:_0x5238e5})=>_0x5238e5===_0x5733e2[_0x96f495(0x194)]);if(_0x577e34){const _0x2bb89f=_0x3029a0[_0x96f495(0x15a)](_0x577e34);_0x3029a0[_0x96f495(0x172)](_0x2bb89f,0x1,_0x5733e2);}else _0x3029a0[_0x96f495(0x191)](_0x5733e2);});}[_0x4f6acd(0x19b)](){const _0x56e1ed=_0x4f6acd;if(_0x56e1ed(0x188)===this[_0x56e1ed(0x16e)]){this[_0x56e1ed(0x181)]=this[_0x56e1ed(0x19a)][_0x56e1ed(0x152)](this[_0x56e1ed(0x1a5)]);const _0x4452f6=this[_0x56e1ed(0x190)];this[_0x56e1ed(0x157)]();const _0x4c1ad3=this[_0x56e1ed(0x19f)](_0x4452f6,this[_0x56e1ed(0x190)]);(_0x4c1ad3[_0x56e1ed(0x167)]||this[_0x56e1ed(0x180)])&&(this[_0x56e1ed(0x155)](_0x56e1ed(0x173),this,_0x4c1ad3),this[_0x56e1ed(0x189)][_0x56e1ed(0x15e)][_0x56e1ed(0x167)]=this[_0x56e1ed(0x189)][_0x56e1ed(0x185)][_0x56e1ed(0x167)]=0x0);}else this[_0x56e1ed(0x181)]=this[_0x56e1ed(0x19a)][_0x56e1ed(0x198)](this[_0x56e1ed(0x1a5)]),this[_0x56e1ed(0x155)](_0x56e1ed(0x173),this);}[_0x4f6acd(0x19f)](_0x255d22,_0x1e197f){const _0xa4fa4=_0x4f6acd,_0x6acbbb=[];for(const _0x1c88bb of _0x1e197f){const _0x2b5479=_0x255d22[_0x1c88bb[_0xa4fa4(0x194)]];_0x2b5479?_0x2b5479[_0xa4fa4(0x159)][_0xa4fa4(0x167)]!==_0x1c88bb[_0xa4fa4(0x159)][_0xa4fa4(0x167)]?_0x6acbbb[_0xa4fa4(0x191)](_0x1c88bb):_0x2b5479[_0xa4fa4(0x159)][_0xa4fa4(0x1a4)]((_0x44a020,_0x4d8366)=>{const _0x1834b9=_0xa4fa4,_0x2452b2=_0x1c88bb[_0x1834b9(0x159)][_0x4d8366];_0x44a020['id']!==_0x2452b2['id']&&_0x6acbbb[_0x1834b9(0x191)](_0x1c88bb);}):_0x6acbbb[_0xa4fa4(0x191)](_0x1c88bb);}return _0x6acbbb;}[_0x4f6acd(0x157)](){const _0x59761e=_0x4f6acd,_0x1e52d5=new _0x2b8c9b('p',{},[new _0x2b8c9b(_0x59761e(0x16c),{'style':_0x59761e(0x193)},[new _0x906821(_0x11920d(this[_0x59761e(0x197)][_0x59761e(0x18c)],_0x59761e(0x18b)))])]),_0x309d7f=this[_0x59761e(0x186)][_0x59761e(0x166)](this[_0x59761e(0x181)],this[_0x59761e(0x192)][_0x59761e(0x1a8)](!0x0),{'markUnstableElements':!this[_0x59761e(0x180)],'replaceRemovedWith':_0x1e52d5,'cutAfterLastChange':!this[_0x59761e(0x180)]});if(!_0x309d7f[_0x59761e(0x15f)][_0x59761e(0x167)]&&!this[_0x59761e(0x180)])return;this[_0x59761e(0x16b)]=_0x309d7f[_0x59761e(0x181)];let _0x2acfed=[];if(_0x38edf7(_0x2395f6=>{const _0xe6e2c9=_0x59761e,_0x36d8d3=_0x663f5c(_0x2395f6,_0xe6e2c9(0x17e));if(!_0x36d8d3||!_0x2776fc(_0x36d8d3))return!0x1;const _0x324131=[_0x2395f6,..._0x3051de(_0x2395f6)]['at'](-0x2);if(_0x2395f6!=_0x324131){const _0x583c1d=_0x663f5c(_0x324131,_0xe6e2c9(0x17e));_0x2776fc(_0x583c1d)||(_0x2acfed[_0xe6e2c9(0x191)]({'node':_0x324131,'id':_0x583c1d,'type':_0xe6e2c9(0x174)}),_0x309d7f[_0xe6e2c9(0x15f)][_0xe6e2c9(0x191)](_0x583c1d));}else _0x309d7f[_0xe6e2c9(0x15f)][_0xe6e2c9(0x183)](_0x36d8d3)?_0x2acfed[_0xe6e2c9(0x191)]({'node':_0x2395f6,'type':_0xe6e2c9(0x174),'id':_0x36d8d3}):_0x309d7f[_0xe6e2c9(0x19c)][_0xe6e2c9(0x183)](_0x36d8d3)?_0x2acfed[_0xe6e2c9(0x191)]({'node':_0x2395f6,'type':_0xe6e2c9(0x196),'id':_0x36d8d3,'anchorId':_0x663f5c(_0x2395f6[_0xe6e2c9(0x17a)],_0xe6e2c9(0x17e))}):_0x2acfed[_0xe6e2c9(0x191)]({'node':_0x2395f6,'type':_0xe6e2c9(0x199),'id':_0x36d8d3});return!0x0;},this[_0x59761e(0x16b)]),_0x2acfed=_0x2acfed[_0x59761e(0x19d)](({node:_0x24940})=>[..._0x3051de(_0x24940),_0x24940][_0x59761e(0x176)](_0x3472e4=>!_0x663f5c(_0x3472e4,_0x59761e(0x15d)))),0x0==_0x2acfed[_0x59761e(0x167)])return;const _0x521dfb=[[_0x2acfed[0x0]]];for(let _0x4f55bd=0x1;_0x4f55bd<_0x2acfed[_0x59761e(0x167)];_0x4f55bd++){const _0x16f3cf=_0x521dfb[_0x521dfb[_0x59761e(0x167)]-0x1],_0x4cc53f=_0x16f3cf[_0x16f3cf[_0x59761e(0x167)]-0x1];_0x2acfed[_0x4f55bd][_0x59761e(0x163)][_0x59761e(0x17a)]==_0x4cc53f[_0x59761e(0x163)]&&_0x59761e(0x174)!=_0x2acfed[_0x4f55bd][_0x59761e(0x16e)]&&_0x59761e(0x174)!=_0x4cc53f[_0x59761e(0x16e)]?_0x16f3cf[_0x59761e(0x191)](_0x2acfed[_0x4f55bd]):_0x521dfb[_0x59761e(0x191)]([_0x2acfed[_0x4f55bd]]);}for(const _0x59181b of _0x521dfb){const _0x1e699c=_0x59181b[0x0],_0x475e6=_0x59181b[_0x59181b[_0x59761e(0x167)]-0x1],_0x1c680c=_0x7d402c(_0x1e699c[_0x59761e(0x163)][_0x59761e(0x17a)]);_0x1c680c&&_0x59181b[_0x59761e(0x1a6)](_0x1c680c);const _0x163696=_0x7d402c(_0x475e6[_0x59761e(0x163)][_0x59761e(0x171)]);_0x163696&&_0x59181b[_0x59761e(0x191)](_0x163696);}function _0x2776fc(_0x1d78bf){const _0x5d5bf4=_0x59761e;return _0x309d7f[_0x5d5bf4(0x15f)][_0x5d5bf4(0x183)](_0x1d78bf)||_0x309d7f[_0x5d5bf4(0x19c)][_0x5d5bf4(0x183)](_0x1d78bf)||_0x309d7f[_0x5d5bf4(0x195)][_0x5d5bf4(0x183)](_0x1d78bf);}function _0x7d402c(_0x35085b){const _0x32a1ea=_0x59761e;if(_0x35085b&&_0x663f5c(_0x35085b,_0x32a1ea(0x17e))&&!_0x663f5c(_0x35085b,_0x32a1ea(0x15d))){const _0x5b0205=_0x663f5c(_0x35085b,_0x32a1ea(0x17e));if(!_0x2776fc(_0x5b0205))return{'node':_0x35085b,'type':_0x32a1ea(0x153),'id':_0x5b0205};}return null;}this[_0x59761e(0x190)]=_0x521dfb[_0x59761e(0x15c)]((_0x24351f,_0x4d1c6d)=>({'changes':_0x24351f,'state':_0x59761e(0x15b),'index':_0x4d1c6d}));}}export function isValidReplyType(_0x54b8d5){const _0x19f4fc=_0x4f6acd;return Object[_0x19f4fc(0x160)](AI_REPLY_TYPES)[_0x19f4fc(0x183)](_0x54b8d5);}export function isIgnoredReplyType(_0x104292){const _0x58ad80=_0x4f6acd;return AI_REPLY_TYPES_IGNORED[_0x58ad80(0x183)](_0x104292);}export function isReplyTitleType(_0x1f3c25){return _0x1f3c25===AI_REPLY_TITLE_TYPE;}function _0x2bff(){const _0x2376b6=['stopListening','every','getContentParts','source','change:content','previousSibling','replyChangeGroupStateUpdated','629388TJVeeO','state','data-id','2792ZlqITb','isDone','parsedContent','96PNCkDF','includes','web-search','withoutDiff','aiResponseApplier','125LcwgRZ','modification-delta','cachedSuggestionContentParts','sources','AI_SUGGESTION_CONTENT_PART_REMOVED','locale','text-delta','149632xfvanb','9908tKHnrD','changeGroups','push','documentContextContent','color:\x20#808080;\x20font-style:\x20italic','index','removedNodeIds','new','editor','convertMarkdownToHTML','removed','aiResponseParser','onContentChange','newNodeIds','filter','done','_getDifferentChangeGroups','reasoning','destroy','20xsWfHl','interactionId','forEach','content','unshift','conversation-title','cloneNode','ai-get-editor-from-context-no-editor','setChangeGroupState','parseAndNormalizeHTML','context','find','fire','_setCachedContentParts','updateChangeGroups','41199kjhoRB','changes','indexOf','pending','map','data-unstable','withDiff','modifiedNodeIds','values','appendContent','606342RMndOn','node','_getCachedContentParts','2XnuJdk','merge','length','areActionsDisabled','944277SwrfHj','set','parsedMergedContent','span','52LuoPON','type','3636bjGcWV','ai-reply-get-content-parts-group-not-found','nextSibling','splice','replyContentUpdated','modified'];_0x2bff=function(){return _0x2376b6;};return _0x2bff();}export function isSourceType(_0x3eee0e){const _0x27ac40=_0x4f6acd;return _0x27ac40(0x178)===_0x3eee0e;}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5633(_0x3e2b5f,_0x23c716){const _0x298cb1=_0x298c();return _0x5633=function(_0x563382,_0x32e482){_0x563382=_0x563382-0x74;let _0x5d8bb4=_0x298cb1[_0x563382];return _0x5d8bb4;},_0x5633(_0x3e2b5f,_0x23c716);}const _0x290181=_0x5633;(function(_0x39ea35,_0x4e8c65){const _0x2713f3=_0x5633,_0x1ead1a=_0x39ea35();while(!![]){try{const _0x2f29fe=-parseInt(_0x2713f3(0xb6))/0x1+-parseInt(_0x2713f3(0x83))/0x2+parseInt(_0x2713f3(0x75))/0x3+parseInt(_0x2713f3(0xa0))/0x4*(parseInt(_0x2713f3(0x97))/0x5)+-parseInt(_0x2713f3(0xa9))/0x6+parseInt(_0x2713f3(0x7e))/0x7+parseInt(_0x2713f3(0xab))/0x8;if(_0x2f29fe===_0x4e8c65)break;else _0x1ead1a['push'](_0x1ead1a['shift']());}catch(_0x5d9e7e){_0x1ead1a['push'](_0x1ead1a['shift']());}}}(_0x298c,0xe8e2a));import{ObservableMixin as _0x1f9b90,uid as _0x2b3468}from'ckeditor5/src/utils.js';function _0x298c(){const _0x231d52=['cloneNode','newIds','_findReferenceNode','_insertNodes','slice','_removeSpecialComments','from','1005672cHAidn','_isNewNode','6163936ENkNFx','_generateUid','splice','data-removed','childNodes','reverse','forEach','invalidIds','parentNode','_storeDeletedElementIds','markUnstableElementsDepth','164954FOHgTW','_isDelNode','_touchedNodesState','map','525636YEmsHQ','_hasWrappedParent','lastTouchedId','has','_findNextElementWithDataId','cutAfterLastChange','_markUnstableElements','nodeType','_isExistingContentComment','3956995BEueMl','data-wrapped-id','data-id','_getUid','replaceRemovedWith','2057658Kyfoqt','push','_markLastTagElementUnstable','afterend','lastChild','match','indexOf','markUnstableElements','filter','includes','_findPrevElementWithDataId','removedIds','new-element','merge','data-unstable','nextSibling','_markWrappedElements','modifiedIds','previousSibling','_isExistingNode','40WsWJPO','_findFallbackReferenceNode','_existingDataIds','beforebegin','afterbegin','_getNodeDataId','trim','true','_replaceNode','402152LfFrlY','length'];_0x298c=function(){return _0x231d52;};return _0x298c();}import{findAllByAttribute as _0x312c4e,findByAttribute as _0x5d534b,getAttribute as _0x1f8f48,isComment as _0x5eee27,isTag as _0x469752,insertElement as _0x304816,moveElement as _0x414c2b,removeElement as _0x205df1,replaceElement as _0x488bd7,serialize as _0x519b13,setAttribute as _0x5e98d4,clone as _0x2c561c,findAllComments as _0x2ef713,getParents as _0x48195b,getNodeNestingLevel as _0x49ee1a,areNodesSame as _0x496e31,removeElementsAfter as _0x117bad}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x1f9b90(){[_0x290181(0xac)];[_0x290181(0xb8)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x290181(0x99)]=new Set();constructor(_0x50f922){const _0x2cbbcf=_0x290181;super(),this[_0x2cbbcf(0xac)]=_0x50f922||_0x2b3468;}[_0x290181(0x90)](_0x25e2aa,_0x9c1898,_0x4d8903){const _0x18aad1=_0x290181,_0x5e2808=_0x2c561c(_0x25e2aa);if(0x0===_0x9c1898[_0x18aad1(0xaf)][_0x18aad1(0xa1)]){const _0xf16581=[];return _0x312c4e(_0x18aad1(0x80),_0x18aad1(0x8f),_0x5e2808)[_0x18aad1(0xb1)](_0x2e0d00=>{const _0x3c68c7=_0x18aad1,_0x699be4=this[_0x3c68c7(0xac)]();_0x5e98d4(_0x2e0d00,_0x3c68c7(0x80),_0x699be4),_0xf16581[_0x3c68c7(0x84)](_0x699be4);}),this[_0x18aad1(0xa7)](_0x5e2808),{'parsedContent':_0x5e2808,'newNodeIds':_0xf16581,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x4d8903&&_0x4d8903[_0x18aad1(0x8a)]&&this[_0x18aad1(0x85)](_0x5e2808),this[_0x18aad1(0xb8)][_0x18aad1(0xa3)]=[],this[_0x18aad1(0xb8)][_0x18aad1(0x94)]=[],this[_0x18aad1(0xb8)][_0x18aad1(0x8e)]=[],this[_0x18aad1(0xb8)][_0x18aad1(0xb2)]=[],this[_0x18aad1(0xb8)][_0x18aad1(0x77)]=null,this[_0x18aad1(0x99)]=new Set(_0x312c4e(_0x18aad1(0x80),null,_0x9c1898)[_0x18aad1(0x74)](_0x3cd414=>_0x1f8f48(_0x3cd414,_0x18aad1(0x80)))[_0x18aad1(0x8b)](_0x2be040=>!!_0x2be040));let _0xe71138=-0x1,_0x90166c=!0x1;const _0x1ad4d3=_0x5e2808[_0x18aad1(0xaf)],_0xfe3ba7=Array[_0x18aad1(0xa8)](_0x1ad4d3)[_0x18aad1(0x8b)](_0x58ec0c=>!(0x3===_0x58ec0c[_0x18aad1(0x7c)]&&''===_0x519b13(_0x58ec0c)[_0x18aad1(0x9d)]())),_0x41003e=_0xfe3ba7[_0x18aad1(0xa1)];for(let _0x47675d=0x0;_0x47675d<_0x41003e;_0x47675d++){const _0x142b5e=_0xfe3ba7[_0x47675d],_0x582c4f=_0xfe3ba7[_0x47675d+0x1];if(this[_0x18aad1(0xaa)](_0x142b5e)){if(-0x1===_0xe71138&&(_0xe71138=_0x47675d),this[_0x18aad1(0x93)](_0x142b5e),!this[_0x18aad1(0xaa)](_0x582c4f)){const [_0x4907c6,_0x14d496]=this[_0x18aad1(0xa4)](_0x142b5e,_0x90166c,_0x9c1898);if(_0x4907c6){const _0x36579e=Array[_0x18aad1(0xa8)](_0xfe3ba7)[_0x18aad1(0xa6)](_0xe71138,_0x47675d+0x1);this[_0x18aad1(0xa5)](_0x4907c6,_0x36579e,_0x14d496),_0xe71138=-0x1;}}}else{if(this[_0x18aad1(0x7d)](_0x142b5e))_0x90166c=!0x0;else{if(this[_0x18aad1(0x96)](_0x142b5e)){const _0x3d6948=_0x1f8f48(_0x142b5e,_0x18aad1(0x80));if(_0x3d6948&&this[_0x18aad1(0x99)][_0x18aad1(0x78)](_0x3d6948)){const _0x42465a=_0x5d534b(_0x18aad1(0x80),_0x3d6948,_0x9c1898);this[_0x18aad1(0x9f)](_0x42465a,_0x142b5e);}if(this[_0x18aad1(0xb8)][_0x18aad1(0x8e)][_0x18aad1(0x8c)](_0x3d6948)){const _0x15d0cc=this[_0x18aad1(0xb8)][_0x18aad1(0x8e)][_0x18aad1(0x89)](_0x3d6948);this[_0x18aad1(0xb8)][_0x18aad1(0x8e)][_0x18aad1(0xad)](_0x15d0cc,0x1);}}else{if(this[_0x18aad1(0xb7)](_0x142b5e)){const _0x39278e=_0x1f8f48(_0x142b5e,_0x18aad1(0x80));this[_0x18aad1(0xb8)][_0x18aad1(0x94)][_0x18aad1(0x8c)](_0x39278e)||this[_0x18aad1(0xb4)](_0x142b5e);}}}}}for(const _0x2dfa78 of this[_0x18aad1(0xb8)][_0x18aad1(0x8e)]){const _0x47019d=_0x5d534b(_0x18aad1(0x80),_0x2dfa78,_0x9c1898);if(_0x47019d){if(_0x4d8903&&_0x4d8903[_0x18aad1(0x82)]){this[_0x18aad1(0xb8)][_0x18aad1(0x77)]=_0x2dfa78;const _0x3a0976=_0x4d8903[_0x18aad1(0x82)][_0x18aad1(0xa2)](!0x0);_0x5e98d4(_0x3a0976,_0x18aad1(0x80),_0x2dfa78),_0x5e98d4(_0x3a0976,_0x18aad1(0xae),_0x18aad1(0x9e)),_0x488bd7(_0x47019d,_0x3a0976);}else _0x205df1(_0x47019d);}}if(_0x312c4e(_0x18aad1(0x7f),null,_0x9c1898)[_0x18aad1(0xb1)](_0x382c65=>{const _0x1a5513=_0x18aad1,_0x2ae2e5=_0x1f8f48(_0x382c65,_0x1a5513(0x7f)),_0x383313=_0x5d534b(_0x1a5513(0x80),_0x2ae2e5,_0x9c1898);_0x383313&&_0x414c2b(_0x383313,_0x382c65);}),_0x312c4e(_0x18aad1(0x80),_0x18aad1(0x8f),_0x9c1898)[_0x18aad1(0xb1)](_0x36d876=>{const _0x30707c=_0x18aad1,_0x4287a5=this[_0x30707c(0x81)](_0x36d876);_0x5e98d4(_0x36d876,_0x30707c(0x80),_0x4287a5),this[_0x30707c(0xb8)][_0x30707c(0xa3)][_0x30707c(0x84)](_0x4287a5);}),this[_0x18aad1(0xa7)](_0x9c1898),_0x4d8903&&_0x4d8903[_0x18aad1(0x8a)]&&this[_0x18aad1(0x7b)](_0x9c1898,_0x4d8903[_0x18aad1(0xb5)]||0x0),_0x4d8903&&_0x4d8903[_0x18aad1(0x7a)]&&this[_0x18aad1(0xb8)][_0x18aad1(0x77)]){let _0x1fa926=_0x5d534b(_0x18aad1(0x80),this[_0x18aad1(0xb8)][_0x18aad1(0x77)],_0x9c1898);for(;_0x1fa926;)_0x117bad(_0x1fa926),_0x1fa926=_0x1fa926[_0x18aad1(0xb3)];}return{'parsedContent':_0x9c1898,'newNodeIds':this[_0x18aad1(0xb8)][_0x18aad1(0xa3)],'modifiedNodeIds':this[_0x18aad1(0xb8)][_0x18aad1(0x94)],'removedNodeIds':this[_0x18aad1(0xb8)][_0x18aad1(0x8e)]};}[_0x290181(0xa5)](_0x5a76d5,_0xba8768,_0x531b0c){const _0x42af09=_0x290181;for(const _0x18ae48 of _0xba8768){const _0x5a4069=this[_0x42af09(0x81)](_0x18ae48);_0x5e98d4(_0x18ae48,_0x42af09(0x80),_0x5a4069),this[_0x42af09(0xb8)][_0x42af09(0xa3)][_0x42af09(0x84)](_0x5a4069),this[_0x42af09(0xb8)][_0x42af09(0x77)]=_0x5a4069;}const _0x516df6=_0x42af09(0x9b)===_0x531b0c||_0x42af09(0x86)===_0x531b0c?_0xba8768[_0x42af09(0xb0)]():_0xba8768;for(const _0x388c2b of _0x516df6)_0x304816(_0x5a76d5,_0x388c2b,_0x531b0c);}[_0x290181(0x9f)](_0x283d32,_0x433259){const _0x338fbc=_0x290181;if(!_0x283d32)return;if(_0x496e31(_0x283d32,_0x433259))return;const _0x5ba01d=this[_0x338fbc(0x81)](_0x283d32);_0x5e98d4(_0x433259,_0x338fbc(0x80),_0x5ba01d),this[_0x338fbc(0xb8)][_0x338fbc(0x94)][_0x338fbc(0x84)](_0x5ba01d),this[_0x338fbc(0xb8)][_0x338fbc(0x77)]=_0x5ba01d,_0x488bd7(_0x283d32,_0x433259[_0x338fbc(0xa2)](!0x0));}[_0x290181(0xa4)](_0x569f41,_0x24a14f,_0xde35cb){const _0x2c4131=_0x290181,_0x408944=this[_0x2c4131(0x8d)](_0x569f41,!0x1);if(_0x408944){const _0x392d40=this[_0x2c4131(0x9c)](_0x408944),_0x18f9c5=_0x5d534b(_0x2c4131(0x80),_0x392d40,_0xde35cb);if(_0x18f9c5)return[_0x18f9c5,_0x2c4131(0x86)];this[_0x2c4131(0xb8)][_0x2c4131(0xb2)][_0x2c4131(0x84)](_0x392d40);}const _0x2a32ae=this[_0x2c4131(0x79)](_0x569f41,!0x1);if(_0x2a32ae){const _0x1052e6=this[_0x2c4131(0x9c)](_0x2a32ae),_0x2df731=_0x5d534b(_0x2c4131(0x80),_0x1052e6,_0xde35cb);if(_0x2df731)return[_0x2df731,_0x2c4131(0x9a)];this[_0x2c4131(0xb8)][_0x2c4131(0xb2)][_0x2c4131(0x84)](_0x1052e6);}return _0x24a14f?_0x569f41[_0x2c4131(0x92)]?this[_0x2c4131(0x98)](_0x569f41,_0xde35cb):[_0xde35cb[_0x2c4131(0xaf)][_0xde35cb[_0x2c4131(0xaf)][_0x2c4131(0xa1)]-0x1],_0x2c4131(0x86)]:[_0xde35cb[_0x2c4131(0xaf)][0x0],_0x2c4131(0x9a)];}[_0x290181(0x98)](_0x2ff28b,_0x276c4d){const _0x4e2bdb=_0x290181,_0x5d879c=[],_0x34e03f=this[_0x4e2bdb(0x8d)](_0x2ff28b,!0x0);if(_0x34e03f){const _0x2ef6a7=this[_0x4e2bdb(0x9c)](_0x34e03f),_0x6fd47a=_0x5d534b(_0x4e2bdb(0x80),_0x2ef6a7,_0x276c4d);_0x6fd47a&&_0x5d879c[_0x4e2bdb(0x84)]([_0x6fd47a,_0x4e2bdb(0x86)]);}const _0x12b7e4=this[_0x4e2bdb(0x79)](_0x2ff28b,!0x0);if(_0x12b7e4){const _0x4aaa9f=this[_0x4e2bdb(0x9c)](_0x12b7e4),_0x531ac0=_0x5d534b(_0x4e2bdb(0x80),_0x4aaa9f,_0x276c4d);_0x531ac0&&_0x5d879c[_0x4e2bdb(0x84)]([_0x531ac0,_0x4e2bdb(0x9a)]);}if(_0x5d879c[_0x4e2bdb(0xa1)]>0x1)return _0x49ee1a(_0x5d879c[0x0][0x0])<=_0x49ee1a(_0x5d879c[0x1][0x0])?_0x5d879c[0x0]:_0x5d879c[0x1];return 0x1===_0x5d879c[_0x4e2bdb(0xa1)]?_0x5d879c[0x0]:[_0x276c4d[_0x4e2bdb(0x87)],_0x4e2bdb(0x86)];}[_0x290181(0x79)](_0x47fbf0,_0x1554e5){const _0x3cdef5=_0x290181;let _0x5da908=_0x47fbf0[_0x3cdef5(0x92)],_0x3ab13a=null,_0x54e264=!0x1;for(;_0x5da908;){if(_0x5eee27(_0x5da908)){if(this[_0x3cdef5(0xb7)](_0x5da908)&&(_0x3ab13a=_0x5da908),this[_0x3cdef5(0x7d)](_0x5da908)&&_0x1554e5&&!_0x54e264){_0x54e264=!0x0,_0x5da908=_0x5da908[_0x3cdef5(0x92)];continue;}break;}const _0x4d3753=_0x1f8f48(_0x5da908,_0x3cdef5(0x80));if(_0x4d3753&&_0x3cdef5(0x8f)!==_0x4d3753&&this[_0x3cdef5(0x99)][_0x3cdef5(0x78)](_0x4d3753)){_0x3ab13a=_0x5da908;break;}_0x5da908=_0x5da908[_0x3cdef5(0x92)];}return _0x3ab13a;}[_0x290181(0x8d)](_0x525f5e,_0x3196bc){const _0x5aaea6=_0x290181;let _0x4980e2=_0x525f5e[_0x5aaea6(0x95)],_0x2ed158=null,_0xb1aec3=!0x1;for(;_0x4980e2;){if(_0x5eee27(_0x4980e2)){if(this[_0x5aaea6(0xb7)](_0x4980e2)&&(_0x2ed158=_0x4980e2),this[_0x5aaea6(0x7d)](_0x4980e2)&&_0x3196bc&&!_0xb1aec3){_0xb1aec3=!0x0,_0x4980e2=_0x4980e2[_0x5aaea6(0x95)];continue;}break;}const _0x20005f=_0x1f8f48(_0x4980e2,_0x5aaea6(0x80));if(_0x20005f&&_0x5aaea6(0x8f)!==_0x20005f&&this[_0x5aaea6(0x99)][_0x5aaea6(0x78)](_0x20005f)){_0x2ed158=_0x4980e2;break;}_0x4980e2=_0x4980e2[_0x5aaea6(0x95)];}return _0x2ed158;}[_0x290181(0x93)](_0x477c90){const _0x450945=_0x290181;_0x469752(_0x477c90)&&_0x312c4e(_0x450945(0x80),null,_0x477c90)[_0x450945(0xb1)](_0x40f31f=>{const _0x270a4e=_0x450945;if(this[_0x270a4e(0x96)](_0x40f31f)&&!this[_0x270a4e(0x76)](_0x40f31f)){const _0x540777=_0x1f8f48(_0x40f31f,_0x270a4e(0x80));_0x5e98d4(_0x40f31f,_0x270a4e(0x7f),_0x540777),_0x5e98d4(_0x40f31f,_0x270a4e(0x80),null);}});}[_0x290181(0x9c)](_0x19f46f){const _0x36913d=_0x290181;if(!_0x19f46f)return null;if(_0x469752(_0x19f46f))return _0x1f8f48(_0x19f46f,_0x36913d(0x80));if(_0x5eee27(_0x19f46f)){const _0x4d47fd=_0x519b13(_0x19f46f)[_0x36913d(0x88)](/removed[\s*-]data-id="([^"]+)"/);if(_0x4d47fd&&_0x4d47fd[0x1])return _0x4d47fd[0x1];}return null;}[_0x290181(0xb4)](_0x136d6e){const _0x44c8ad=_0x290181;if(_0x5eee27(_0x136d6e)){const _0x5637e7=_0x519b13(_0x136d6e)[_0x44c8ad(0x88)](/removed[\s*-]data-id="([^"]+)"/);_0x5637e7&&_0x5637e7[0x1]&&this[_0x44c8ad(0xb8)][_0x44c8ad(0x8e)][_0x44c8ad(0x84)](_0x5637e7[0x1]);}}[_0x290181(0x81)](_0x5c5ec3){const _0x5b4a42=_0x290181;return this[_0x5b4a42(0x96)](_0x5c5ec3)?_0x1f8f48(_0x5c5ec3,_0x5b4a42(0x80)):this[_0x5b4a42(0xac)]();}[_0x290181(0xa7)](_0x47bf62){const _0x4fc269=_0x290181;_0x2ef713(_0x47bf62)[_0x4fc269(0x8b)](_0x3d8f0b=>this[_0x4fc269(0xb7)](_0x3d8f0b)||this[_0x4fc269(0x7d)](_0x3d8f0b))[_0x4fc269(0xb1)](_0x588d05=>{_0x205df1(_0x588d05);});}[_0x290181(0x85)](_0xe5c509){const _0x4829ab=_0x290181,_0x1d7075=_0xe5c509[_0x4829ab(0xaf)],_0x1cf3bd=_0x1d7075[_0x1d7075[_0x4829ab(0xa1)]-0x1];_0x1cf3bd&&_0x469752(_0x1cf3bd)&&_0x5e98d4(_0x1cf3bd,_0x4829ab(0x91),_0x4829ab(0x9e));}[_0x290181(0x7b)](_0x37319b,_0x9e0c8c){const _0x1ad220=_0x290181,_0x14c57c=_0x5d534b(_0x1ad220(0x91),_0x1ad220(0x9e),_0x37319b);if(!_0x14c57c)return;const _0x1f0e01=_0x48195b(_0x14c57c)[_0x1ad220(0xa6)](0x0,-0x1),_0x7468cf=_0x1f0e01[_0x1ad220(0xa1)];let _0x7ee7b7=_0x14c57c;if(_0x7468cf>_0x9e0c8c){let _0x4c8ab4=_0x7468cf,_0x46dab5=null;for(;_0x4c8ab4>_0x9e0c8c&&_0x4c8ab4>=0x0;)_0x4c8ab4--,_0x46dab5=_0x1f0e01[_0x4c8ab4];_0x46dab5&&(_0x7ee7b7=_0x46dab5,_0x5e98d4(_0x14c57c,_0x1ad220(0x91),null),_0x5e98d4(_0x46dab5,_0x1ad220(0x91),_0x1ad220(0x9e)));}else{if(_0x7468cf<_0x9e0c8c){let _0x7fb62c=_0x7468cf,_0x3d051e=_0x14c57c;for(;_0x7fb62c<_0x9e0c8c;){const _0x10e9c9=_0x3d051e[_0x1ad220(0xaf)][_0x1ad220(0x8b)](_0x51e447=>_0x469752(_0x51e447));if(0x0===_0x10e9c9[_0x1ad220(0xa1)])break;_0x7fb62c++,_0x3d051e=_0x10e9c9[_0x10e9c9[_0x1ad220(0xa1)]-0x1];}_0x3d051e&&(_0x7ee7b7=_0x3d051e,_0x5e98d4(_0x14c57c,_0x1ad220(0x91),null),_0x5e98d4(_0x3d051e,_0x1ad220(0x91),_0x1ad220(0x9e)));}}let _0x5af43e=_0x7ee7b7;for(;_0x5af43e;){for(;_0x5af43e[_0x1ad220(0x92)];)_0x5af43e=_0x5af43e[_0x1ad220(0x92)],_0x469752(_0x5af43e)&&_0x5e98d4(_0x5af43e,_0x1ad220(0x91),_0x1ad220(0x9e));_0x5af43e=_0x5af43e[_0x1ad220(0xb3)];}}[_0x290181(0xaa)](_0xc8d88){const _0x1d618f=_0x290181;return Boolean(_0x1d618f(0x8f)===_0x1f8f48(_0xc8d88,_0x1d618f(0x80)));}[_0x290181(0x96)](_0x166fff){const _0x9f4a5b=_0x290181;return Boolean((_0x1f8f48(_0x166fff,_0x9f4a5b(0x80))||'')[_0x9f4a5b(0xa1)]>0x0&&_0x9f4a5b(0x8f)!==_0x1f8f48(_0x166fff,_0x9f4a5b(0x80)));}[_0x290181(0xb7)](_0x2ddc5d){const _0x5cc282=_0x290181;return!!_0x2ddc5d&&Boolean(_0x5eee27(_0x2ddc5d)&&_0x519b13(_0x2ddc5d)[_0x5cc282(0x88)](/removed[\s*-]data-id="[^"]+"/));}[_0x290181(0x76)](_0x5bba00){const _0x47ab2a=_0x290181;let _0x46587f=_0x5bba00[_0x47ab2a(0xb3)];for(;_0x46587f;){if(_0x1f8f48(_0x46587f,_0x47ab2a(0x7f)))return!0x0;_0x46587f=_0x46587f[_0x47ab2a(0xb3)];}return!0x1;}[_0x290181(0x7d)](_0x497a7d){const _0x97940b=_0x290181;return Boolean(_0x5eee27(_0x497a7d)&&_0x519b13(_0x497a7d)[_0x97940b(0x88)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ function _0x88d5(_0x308293,_0x3a6865){const _0x4e886e=_0x4e88();return _0x88d5=function(_0x88d57,_0x38ad72){_0x88d57=_0x88d57-0xa9;let _0xb5d6dd=_0x4e886e[_0x88d57];return _0xb5d6dd;},_0x88d5(_0x308293,_0x3a6865);}const _0x41e106=_0x88d5;(function(_0x2c495a,_0x12b574){const _0x23d0a8=_0x88d5,_0x148316=_0x2c495a();while(!![]){try{const _0x465d02=-parseInt(_0x23d0a8(0xd9))/0x1+-parseInt(_0x23d0a8(0xc9))/0x2*(parseInt(_0x23d0a8(0xba))/0x3)+parseInt(_0x23d0a8(0xde))/0x4*(-parseInt(_0x23d0a8(0xe3))/0x5)+-parseInt(_0x23d0a8(0xcc))/0x6*(parseInt(_0x23d0a8(0xdf))/0x7)+parseInt(_0x23d0a8(0xab))/0x8*(-parseInt(_0x23d0a8(0xdb))/0x9)+parseInt(_0x23d0a8(0xe1))/0xa*(parseInt(_0x23d0a8(0xc4))/0xb)+parseInt(_0x23d0a8(0xe7))/0xc;if(_0x465d02===_0x12b574)break;else _0x148316['push'](_0x148316['shift']());}catch(_0x194c0e){_0x148316['push'](_0x148316['shift']());}}}(_0x4e88,0x4ab3a));import{ObservableMixin as _0x670ad4,uid as _0x3a24c6}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x4cb8c6,findByAttribute as _0xd3b354,getAttribute as _0x2a25b4,isComment as _0x2f2300,isTag as _0x5b25e1,insertElement as _0x5480be,moveElement as _0x50c2c2,removeElement as _0x1a4730,replaceElement as _0x5959c6,serialize as _0x18b0f5,setAttribute as _0x28b804,clone as _0x264037,findAllComments as _0x17777f,getParents as _0x5eb134,getNodeNestingLevel as _0xd62af6,areNodesSame as _0xaf2d0,removeElementsAfter as _0x199c38}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x670ad4(){[_0x41e106(0xec)];[_0x41e106(0xf0)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x41e106(0xc2)]=new Set();constructor(_0x1550ca){const _0x4bcd43=_0x41e106;super(),this[_0x4bcd43(0xec)]=_0x1550ca||_0x3a24c6;}[_0x41e106(0xbd)](_0x13932b,_0xcb481e,_0x1cf878){const _0x4aff35=_0x41e106,_0x2e5a75=_0x264037(_0x13932b);if(0x0===_0xcb481e[_0x4aff35(0xf1)][_0x4aff35(0xc1)]){const _0x409970=[];return _0x4cb8c6(_0x4aff35(0xbc),_0x4aff35(0xc5),_0x2e5a75)[_0x4aff35(0xb7)](_0x56605a=>{const _0x52ead3=_0x4aff35,_0x2b38a0=this[_0x52ead3(0xec)]();_0x28b804(_0x56605a,_0x52ead3(0xbc),_0x2b38a0),_0x409970[_0x52ead3(0xbb)](_0x2b38a0);}),this[_0x4aff35(0xe2)](_0x2e5a75),{'parsedContent':_0x2e5a75,'newNodeIds':_0x409970,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x1cf878&&_0x1cf878[_0x4aff35(0xc7)]&&this[_0x4aff35(0xd4)](_0x2e5a75),this[_0x4aff35(0xf0)][_0x4aff35(0xaf)]=[],this[_0x4aff35(0xf0)][_0x4aff35(0xd2)]=[],this[_0x4aff35(0xf0)][_0x4aff35(0xe6)]=[],this[_0x4aff35(0xf0)][_0x4aff35(0xb6)]=[],this[_0x4aff35(0xf0)][_0x4aff35(0xae)]=null,this[_0x4aff35(0xc2)]=new Set(_0x4cb8c6(_0x4aff35(0xbc),null,_0xcb481e)[_0x4aff35(0xd7)](_0x295efa=>_0x2a25b4(_0x295efa,_0x4aff35(0xbc)))[_0x4aff35(0xe8)](_0x9653f9=>!!_0x9653f9));let _0x1ee7e6=-0x1,_0x2ca6d8=!0x1;const _0x45ccf9=_0x2e5a75[_0x4aff35(0xf1)],_0x51c917=Array[_0x4aff35(0xcf)](_0x45ccf9)[_0x4aff35(0xe8)](_0x2f22e0=>!(0x3===_0x2f22e0[_0x4aff35(0xea)]&&''===_0x18b0f5(_0x2f22e0)[_0x4aff35(0xd1)]())),_0x1e87d6=_0x51c917[_0x4aff35(0xc1)];for(let _0x419579=0x0;_0x419579<_0x1e87d6;_0x419579++){const _0x480c69=_0x51c917[_0x419579],_0xcd29ed=_0x51c917[_0x419579+0x1];if(this[_0x4aff35(0xb1)](_0x480c69)){if(-0x1===_0x1ee7e6&&(_0x1ee7e6=_0x419579),this[_0x4aff35(0xbf)](_0x480c69),!this[_0x4aff35(0xb1)](_0xcd29ed)){const [_0x13c2e0,_0x439a39]=this[_0x4aff35(0xac)](_0x480c69,_0x2ca6d8,_0xcb481e);if(_0x13c2e0){const _0x98fa7f=Array[_0x4aff35(0xcf)](_0x51c917)[_0x4aff35(0xc0)](_0x1ee7e6,_0x419579+0x1);this[_0x4aff35(0xb4)](_0x13c2e0,_0x98fa7f,_0x439a39),_0x1ee7e6=-0x1;}}}else{if(this[_0x4aff35(0xce)](_0x480c69))_0x2ca6d8=!0x0;else{if(this[_0x4aff35(0xad)](_0x480c69)){const _0x3bfb07=_0x2a25b4(_0x480c69,_0x4aff35(0xbc));if(_0x3bfb07&&this[_0x4aff35(0xc2)][_0x4aff35(0xef)](_0x3bfb07)){const _0x17b010=_0xd3b354(_0x4aff35(0xbc),_0x3bfb07,_0xcb481e);this[_0x4aff35(0xc8)](_0x17b010,_0x480c69);}if(this[_0x4aff35(0xf0)][_0x4aff35(0xe6)][_0x4aff35(0xca)](_0x3bfb07)){const _0x5acf65=this[_0x4aff35(0xf0)][_0x4aff35(0xe6)][_0x4aff35(0xed)](_0x3bfb07);this[_0x4aff35(0xf0)][_0x4aff35(0xe6)][_0x4aff35(0xbe)](_0x5acf65,0x1);}}else{if(this[_0x4aff35(0xd5)](_0x480c69)){const _0x2c6edc=_0x2a25b4(_0x480c69,_0x4aff35(0xbc));this[_0x4aff35(0xf0)][_0x4aff35(0xd2)][_0x4aff35(0xca)](_0x2c6edc)||this[_0x4aff35(0xb2)](_0x480c69);}}}}}for(const _0x4bb171 of this[_0x4aff35(0xf0)][_0x4aff35(0xe6)]){const _0x24ce7e=_0xd3b354(_0x4aff35(0xbc),_0x4bb171,_0xcb481e);if(_0x24ce7e){if(_0x1cf878&&_0x1cf878[_0x4aff35(0xd6)]){this[_0x4aff35(0xf0)][_0x4aff35(0xae)]=_0x4bb171;const _0x5a63b9=_0x1cf878[_0x4aff35(0xd6)][_0x4aff35(0xb0)](!0x0);_0x28b804(_0x5a63b9,_0x4aff35(0xbc),_0x4bb171),_0x28b804(_0x5a63b9,_0x4aff35(0xd8),_0x4aff35(0xe4)),_0x5959c6(_0x24ce7e,_0x5a63b9);}else _0x1a4730(_0x24ce7e);}}if(_0x4cb8c6(_0x4aff35(0xe5),null,_0xcb481e)[_0x4aff35(0xb7)](_0xf20cdc=>{const _0x37583e=_0x4aff35,_0x526c4=_0x2a25b4(_0xf20cdc,_0x37583e(0xe5)),_0x4eecf4=_0xd3b354(_0x37583e(0xbc),_0x526c4,_0xcb481e);_0x4eecf4&&_0x50c2c2(_0x4eecf4,_0xf20cdc);}),_0x4cb8c6(_0x4aff35(0xbc),_0x4aff35(0xc5),_0xcb481e)[_0x4aff35(0xb7)](_0x1850fd=>{const _0x2a483b=_0x4aff35,_0x3ca703=this[_0x2a483b(0xcb)](_0x1850fd);_0x28b804(_0x1850fd,_0x2a483b(0xbc),_0x3ca703),this[_0x2a483b(0xf0)][_0x2a483b(0xaf)][_0x2a483b(0xbb)](_0x3ca703);}),this[_0x4aff35(0xe2)](_0xcb481e),_0x1cf878&&_0x1cf878[_0x4aff35(0xc7)]&&this[_0x4aff35(0xd3)](_0xcb481e,_0x1cf878[_0x4aff35(0xe9)]||0x0),_0x1cf878&&_0x1cf878[_0x4aff35(0xaa)]&&this[_0x4aff35(0xf0)][_0x4aff35(0xae)]){let _0x321758=_0xd3b354(_0x4aff35(0xbc),this[_0x4aff35(0xf0)][_0x4aff35(0xae)],_0xcb481e);for(;_0x321758;)_0x199c38(_0x321758),_0x321758=_0x321758[_0x4aff35(0xeb)];}return{'parsedContent':_0xcb481e,'newNodeIds':this[_0x4aff35(0xf0)][_0x4aff35(0xaf)],'modifiedNodeIds':this[_0x4aff35(0xf0)][_0x4aff35(0xd2)],'removedNodeIds':this[_0x4aff35(0xf0)][_0x4aff35(0xe6)]};}[_0x41e106(0xb4)](_0x5a3d1f,_0x301566,_0x31d376){const _0x84228b=_0x41e106;for(const _0x381980 of _0x301566){const _0x2c978a=this[_0x84228b(0xcb)](_0x381980);_0x28b804(_0x381980,_0x84228b(0xbc),_0x2c978a),this[_0x84228b(0xf0)][_0x84228b(0xaf)][_0x84228b(0xbb)](_0x2c978a),this[_0x84228b(0xf0)][_0x84228b(0xae)]=_0x2c978a;}const _0x416a79=_0x84228b(0xb5)===_0x31d376||_0x84228b(0xdc)===_0x31d376?_0x301566[_0x84228b(0xdd)]():_0x301566;for(const _0x53030a of _0x416a79)_0x5480be(_0x5a3d1f,_0x53030a,_0x31d376);}[_0x41e106(0xc8)](_0x4cb500,_0x4f0074){const _0x34f67d=_0x41e106;if(!_0x4cb500)return;if(_0xaf2d0(_0x4cb500,_0x4f0074))return;const _0x3bbef7=this[_0x34f67d(0xcb)](_0x4cb500);_0x28b804(_0x4f0074,_0x34f67d(0xbc),_0x3bbef7),this[_0x34f67d(0xf0)][_0x34f67d(0xd2)][_0x34f67d(0xbb)](_0x3bbef7),this[_0x34f67d(0xf0)][_0x34f67d(0xae)]=_0x3bbef7,_0x5959c6(_0x4cb500,_0x4f0074[_0x34f67d(0xb0)](!0x0));}[_0x41e106(0xac)](_0x588d54,_0x1981d0,_0x34a238){const _0x47ec60=_0x41e106,_0x56b88c=this[_0x47ec60(0xb8)](_0x588d54,!0x1);if(_0x56b88c){const _0x35d45f=this[_0x47ec60(0xee)](_0x56b88c),_0x451520=_0xd3b354(_0x47ec60(0xbc),_0x35d45f,_0x34a238);if(_0x451520)return[_0x451520,_0x47ec60(0xdc)];this[_0x47ec60(0xf0)][_0x47ec60(0xb6)][_0x47ec60(0xbb)](_0x35d45f);}const _0x5517be=this[_0x47ec60(0xc3)](_0x588d54,!0x1);if(_0x5517be){const _0x26aa70=this[_0x47ec60(0xee)](_0x5517be),_0x2026d2=_0xd3b354(_0x47ec60(0xbc),_0x26aa70,_0x34a238);if(_0x2026d2)return[_0x2026d2,_0x47ec60(0xb3)];this[_0x47ec60(0xf0)][_0x47ec60(0xb6)][_0x47ec60(0xbb)](_0x26aa70);}return _0x1981d0?_0x588d54[_0x47ec60(0xa9)]?this[_0x47ec60(0xda)](_0x588d54,_0x34a238):[_0x34a238[_0x47ec60(0xf1)][_0x34a238[_0x47ec60(0xf1)][_0x47ec60(0xc1)]-0x1],_0x47ec60(0xdc)]:[_0x34a238[_0x47ec60(0xf1)][0x0],_0x47ec60(0xb3)];}[_0x41e106(0xda)](_0x210d35,_0x136f62){const _0x10eaf3=_0x41e106,_0xb0a5d6=[],_0x567cfa=this[_0x10eaf3(0xb8)](_0x210d35,!0x0);if(_0x567cfa){const _0x24617f=this[_0x10eaf3(0xee)](_0x567cfa),_0x3b29f7=_0xd3b354(_0x10eaf3(0xbc),_0x24617f,_0x136f62);_0x3b29f7&&_0xb0a5d6[_0x10eaf3(0xbb)]([_0x3b29f7,_0x10eaf3(0xdc)]);}const _0x32993d=this[_0x10eaf3(0xc3)](_0x210d35,!0x0);if(_0x32993d){const _0x200243=this[_0x10eaf3(0xee)](_0x32993d),_0x94612d=_0xd3b354(_0x10eaf3(0xbc),_0x200243,_0x136f62);_0x94612d&&_0xb0a5d6[_0x10eaf3(0xbb)]([_0x94612d,_0x10eaf3(0xb3)]);}if(_0xb0a5d6[_0x10eaf3(0xc1)]>0x1)return _0xd62af6(_0xb0a5d6[0x0][0x0])<=_0xd62af6(_0xb0a5d6[0x1][0x0])?_0xb0a5d6[0x0]:_0xb0a5d6[0x1];return 0x1===_0xb0a5d6[_0x10eaf3(0xc1)]?_0xb0a5d6[0x0]:[_0x136f62[_0x10eaf3(0xe0)],_0x10eaf3(0xdc)];}[_0x41e106(0xc3)](_0x5a26e0,_0x43e8e9){const _0x3419c8=_0x41e106;let _0x1aec50=_0x5a26e0[_0x3419c8(0xa9)],_0xf917db=null,_0x4e5d5e=!0x1;for(;_0x1aec50;){if(_0x2f2300(_0x1aec50)){if(this[_0x3419c8(0xd5)](_0x1aec50)&&(_0xf917db=_0x1aec50),this[_0x3419c8(0xce)](_0x1aec50)&&_0x43e8e9&&!_0x4e5d5e){_0x4e5d5e=!0x0,_0x1aec50=_0x1aec50[_0x3419c8(0xa9)];continue;}break;}const _0x3a6dde=_0x2a25b4(_0x1aec50,_0x3419c8(0xbc));if(_0x3a6dde&&_0x3419c8(0xc5)!==_0x3a6dde&&this[_0x3419c8(0xc2)][_0x3419c8(0xef)](_0x3a6dde)){_0xf917db=_0x1aec50;break;}_0x1aec50=_0x1aec50[_0x3419c8(0xa9)];}return _0xf917db;}[_0x41e106(0xb8)](_0x102e6b,_0x52d4c5){const _0x298079=_0x41e106;let _0x5720f4=_0x102e6b[_0x298079(0xc6)],_0x38d3de=null,_0x24b596=!0x1;for(;_0x5720f4;){if(_0x2f2300(_0x5720f4)){if(this[_0x298079(0xd5)](_0x5720f4)&&(_0x38d3de=_0x5720f4),this[_0x298079(0xce)](_0x5720f4)&&_0x52d4c5&&!_0x24b596){_0x24b596=!0x0,_0x5720f4=_0x5720f4[_0x298079(0xc6)];continue;}break;}const _0x1614e9=_0x2a25b4(_0x5720f4,_0x298079(0xbc));if(_0x1614e9&&_0x298079(0xc5)!==_0x1614e9&&this[_0x298079(0xc2)][_0x298079(0xef)](_0x1614e9)){_0x38d3de=_0x5720f4;break;}_0x5720f4=_0x5720f4[_0x298079(0xc6)];}return _0x38d3de;}[_0x41e106(0xbf)](_0x24a52d){const _0x549559=_0x41e106;_0x5b25e1(_0x24a52d)&&_0x4cb8c6(_0x549559(0xbc),null,_0x24a52d)[_0x549559(0xb7)](_0x2c12f4=>{const _0x3706a3=_0x549559;if(this[_0x3706a3(0xad)](_0x2c12f4)&&!this[_0x3706a3(0xcd)](_0x2c12f4)){const _0x372314=_0x2a25b4(_0x2c12f4,_0x3706a3(0xbc));_0x28b804(_0x2c12f4,_0x3706a3(0xe5),_0x372314),_0x28b804(_0x2c12f4,_0x3706a3(0xbc),null);}});}[_0x41e106(0xee)](_0x2dac5f){const _0x1ab74e=_0x41e106;if(!_0x2dac5f)return null;if(_0x5b25e1(_0x2dac5f))return _0x2a25b4(_0x2dac5f,_0x1ab74e(0xbc));if(_0x2f2300(_0x2dac5f)){const _0x3c505a=_0x18b0f5(_0x2dac5f)[_0x1ab74e(0xd0)](/removed[\s*-]data-id="([^"]+)"/);if(_0x3c505a&&_0x3c505a[0x1])return _0x3c505a[0x1];}return null;}[_0x41e106(0xb2)](_0x3c3981){const _0x33353a=_0x41e106;if(_0x2f2300(_0x3c3981)){const _0x46e64f=_0x18b0f5(_0x3c3981)[_0x33353a(0xd0)](/removed[\s*-]data-id="([^"]+)"/);_0x46e64f&&_0x46e64f[0x1]&&this[_0x33353a(0xf0)][_0x33353a(0xe6)][_0x33353a(0xbb)](_0x46e64f[0x1]);}}[_0x41e106(0xcb)](_0x259d65){const _0x405642=_0x41e106;return this[_0x405642(0xad)](_0x259d65)?_0x2a25b4(_0x259d65,_0x405642(0xbc)):this[_0x405642(0xec)]();}[_0x41e106(0xe2)](_0x53e9aa){const _0x371204=_0x41e106;_0x17777f(_0x53e9aa)[_0x371204(0xe8)](_0x4bc6d7=>this[_0x371204(0xd5)](_0x4bc6d7)||this[_0x371204(0xce)](_0x4bc6d7))[_0x371204(0xb7)](_0xcd2dc9=>{_0x1a4730(_0xcd2dc9);});}[_0x41e106(0xd4)](_0x42d525){const _0x1ce7b1=_0x41e106,_0x2731e4=_0x42d525[_0x1ce7b1(0xf1)],_0x365655=_0x2731e4[_0x2731e4[_0x1ce7b1(0xc1)]-0x1];_0x365655&&_0x5b25e1(_0x365655)&&_0x28b804(_0x365655,_0x1ce7b1(0xb9),_0x1ce7b1(0xe4));}[_0x41e106(0xd3)](_0x5bebce,_0x2bc7de){const _0x34d9fc=_0x41e106,_0x1323c6=_0xd3b354(_0x34d9fc(0xb9),_0x34d9fc(0xe4),_0x5bebce);if(!_0x1323c6)return;const _0x3c6948=_0x5eb134(_0x1323c6)[_0x34d9fc(0xc0)](0x0,-0x1),_0x5e16dc=_0x3c6948[_0x34d9fc(0xc1)];let _0x41ceaf=_0x1323c6;if(_0x5e16dc>_0x2bc7de){let _0x5bb078=_0x5e16dc,_0x29f009=null;for(;_0x5bb078>_0x2bc7de&&_0x5bb078>=0x0;)_0x5bb078--,_0x29f009=_0x3c6948[_0x5bb078];_0x29f009&&(_0x41ceaf=_0x29f009,_0x28b804(_0x1323c6,_0x34d9fc(0xb9),null),_0x28b804(_0x29f009,_0x34d9fc(0xb9),_0x34d9fc(0xe4)));}else{if(_0x5e16dc<_0x2bc7de){let _0x1f3f47=_0x5e16dc,_0x37a4f4=_0x1323c6;for(;_0x1f3f47<_0x2bc7de;){const _0x162c4a=_0x37a4f4[_0x34d9fc(0xf1)][_0x34d9fc(0xe8)](_0x6a4824=>_0x5b25e1(_0x6a4824));if(0x0===_0x162c4a[_0x34d9fc(0xc1)])break;_0x1f3f47++,_0x37a4f4=_0x162c4a[_0x162c4a[_0x34d9fc(0xc1)]-0x1];}_0x37a4f4&&(_0x41ceaf=_0x37a4f4,_0x28b804(_0x1323c6,_0x34d9fc(0xb9),null),_0x28b804(_0x37a4f4,_0x34d9fc(0xb9),_0x34d9fc(0xe4)));}}let _0x39a030=_0x41ceaf;for(;_0x39a030;){for(;_0x39a030[_0x34d9fc(0xa9)];)_0x39a030=_0x39a030[_0x34d9fc(0xa9)],_0x5b25e1(_0x39a030)&&_0x28b804(_0x39a030,_0x34d9fc(0xb9),_0x34d9fc(0xe4));_0x39a030=_0x39a030[_0x34d9fc(0xeb)];}}[_0x41e106(0xb1)](_0x25f4dc){const _0x37e43e=_0x41e106;return Boolean(_0x37e43e(0xc5)===_0x2a25b4(_0x25f4dc,_0x37e43e(0xbc)));}[_0x41e106(0xad)](_0x13d05b){const _0x274e4d=_0x41e106;return Boolean((_0x2a25b4(_0x13d05b,_0x274e4d(0xbc))||'')[_0x274e4d(0xc1)]>0x0&&_0x274e4d(0xc5)!==_0x2a25b4(_0x13d05b,_0x274e4d(0xbc)));}[_0x41e106(0xd5)](_0x5ade62){const _0x2bcece=_0x41e106;return!!_0x5ade62&&Boolean(_0x2f2300(_0x5ade62)&&_0x18b0f5(_0x5ade62)[_0x2bcece(0xd0)](/removed[\s*-]data-id="[^"]+"/));}[_0x41e106(0xcd)](_0x283712){const _0x596ee8=_0x41e106;let _0x54bf46=_0x283712[_0x596ee8(0xeb)];for(;_0x54bf46;){if(_0x2a25b4(_0x54bf46,_0x596ee8(0xe5)))return!0x0;_0x54bf46=_0x54bf46[_0x596ee8(0xeb)];}return!0x1;}[_0x41e106(0xce)](_0x37ad8f){const _0x4a74e0=_0x41e106;return Boolean(_0x2f2300(_0x37ad8f)&&_0x18b0f5(_0x37ad8f)[_0x4a74e0(0xd0)](/\s*existing[\s*-](content|document)\s*/g));}}function _0x4e88(){const _0x1bc59b=['42CvAFGK','_hasWrappedParent','_isExistingContentComment','from','match','trim','modifiedIds','_markUnstableElements','_markLastTagElementUnstable','_isDelNode','replaceRemovedWith','map','data-removed','285181zGaAHH','_findFallbackReferenceNode','1023912pKyJoB','afterend','reverse','2292176VPJisD','267911YOFAle','lastChild','50pHIZPY','_removeSpecialComments','5DAhbhO','true','data-wrapped-id','removedIds','25693596swgDus','filter','markUnstableElementsDepth','nodeType','parentNode','_generateUid','indexOf','_getNodeDataId','has','_touchedNodesState','childNodes','nextSibling','cutAfterLastChange','32OeEATx','_findReferenceNode','_isExistingNode','lastTouchedId','newIds','cloneNode','_isNewNode','_storeDeletedElementIds','beforebegin','_insertNodes','afterbegin','invalidIds','forEach','_findPrevElementWithDataId','data-unstable','229173oaYULN','push','data-id','merge','splice','_markWrappedElements','slice','length','_existingDataIds','_findNextElementWithDataId','617738yGTVJZ','new-element','previousSibling','markUnstableElements','_replaceNode','14iwuxEq','includes','_getUid'];_0x4e88=function(){return _0x1bc59b;};return _0x4e88();}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x500d(){const _0x3d5b1c=['57mgnYqF','children','24552WjgYTY','_m2html','52393uxmXwA','<dummy>','12IkWzMG','156CIenYc','1428098wqMVYe','</dummy>','11365HmZyHF','convertMarkdownToHTML','parse','1338LnPRXt','261NdZGbI','_parseHTML','713394ToCIOI','replace','7478110fvoCIq','130356JLqeug','parseAndNormalizeHTML'];_0x500d=function(){return _0x3d5b1c;};return _0x500d();}const _0x33fd49=_0x512a;(function(_0x5d101b,_0x548d23){const _0x55afbe=_0x512a,_0x486106=_0x5d101b();while(!![]){try{const _0x222515=parseInt(_0x55afbe(0x129))/0x1*(parseInt(_0x55afbe(0x12b))/0x2)+-parseInt(_0x55afbe(0x125))/0x3*(parseInt(_0x55afbe(0x123))/0x4)+parseInt(_0x55afbe(0x12f))/0x5*(parseInt(_0x55afbe(0x11d))/0x6)+parseInt(_0x55afbe(0x12d))/0x7+parseInt(_0x55afbe(0x127))/0x8*(parseInt(_0x55afbe(0x11e))/0x9)+parseInt(_0x55afbe(0x122))/0xa+-parseInt(_0x55afbe(0x120))/0xb*(parseInt(_0x55afbe(0x12c))/0xc);if(_0x222515===_0x548d23)break;else _0x486106['push'](_0x486106['shift']());}catch(_0x4baf18){_0x486106['push'](_0x486106['shift']());}}}(_0x500d,0x6199a));function _0x512a(_0x565522,_0x1d35f6){const _0x500da5=_0x500d();return _0x512a=function(_0x512a6e,_0x189316){_0x512a6e=_0x512a6e-0x11c;let _0x4aca20=_0x500da5[_0x512a6e];return _0x4aca20;},_0x512a(_0x565522,_0x1d35f6);}import{ObservableMixin as _0x4feb40}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x4b2362}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x5c8505}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x4feb40(){[_0x33fd49(0x128)];constructor(){const _0x17b777=_0x33fd49;super(),this[_0x17b777(0x128)]=new _0x4b2362();}[_0x33fd49(0x130)](_0x155d72){const _0x325b15=_0x33fd49,_0x2fd710=this[_0x325b15(0x128)][_0x325b15(0x11c)](_0x155d72);return this[_0x325b15(0x124)](_0x2fd710);}[_0x33fd49(0x124)](_0x23bff7){const _0x15979e=_0x33fd49;return this[_0x15979e(0x11f)](_0x23bff7);}[_0x33fd49(0x11f)](_0x3f1c3b){const _0x8b1366=_0x33fd49,_0x16218a=_0x3f1c3b[_0x8b1366(0x121)](/^\t+/gm,'\x20')[_0x8b1366(0x121)](/\n*/g,'')[_0x8b1366(0x121)](/\s+/g,'\x20')[_0x8b1366(0x121)](/<[^>]*?$/g,''),_0x20c968=_0x5c8505(_0x8b1366(0x12a)+_0x16218a+_0x8b1366(0x12e));return _0x20c968[_0x8b1366(0x126)]=_0x20c968[_0x8b1366(0x126)][0x0][_0x8b1366(0x126)],_0x20c968;}}
23
+ function _0x2ebf(_0x5da306,_0x253b22){const _0x589db0=_0x589d();return _0x2ebf=function(_0x2ebf00,_0x4b0529){_0x2ebf00=_0x2ebf00-0x1c0;let _0x7057f1=_0x589db0[_0x2ebf00];return _0x7057f1;},_0x2ebf(_0x5da306,_0x253b22);}const _0x2aec14=_0x2ebf;(function(_0x1214c6,_0x5d387a){const _0x654cf6=_0x2ebf,_0x1f9eb9=_0x1214c6();while(!![]){try{const _0x39ea67=parseInt(_0x654cf6(0x1c2))/0x1*(parseInt(_0x654cf6(0x1d0))/0x2)+-parseInt(_0x654cf6(0x1c0))/0x3+-parseInt(_0x654cf6(0x1ca))/0x4*(parseInt(_0x654cf6(0x1cd))/0x5)+parseInt(_0x654cf6(0x1cb))/0x6+-parseInt(_0x654cf6(0x1c4))/0x7+-parseInt(_0x654cf6(0x1c6))/0x8*(parseInt(_0x654cf6(0x1ce))/0x9)+parseInt(_0x654cf6(0x1c5))/0xa;if(_0x39ea67===_0x5d387a)break;else _0x1f9eb9['push'](_0x1f9eb9['shift']());}catch(_0x324e57){_0x1f9eb9['push'](_0x1f9eb9['shift']());}}}(_0x589d,0x989f4));import{ObservableMixin as _0x569ff2}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x104ec0}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x941fee}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x569ff2(){[_0x2aec14(0x1d1)];constructor(){const _0x502063=_0x2aec14;super(),this[_0x502063(0x1d1)]=new _0x104ec0();}[_0x2aec14(0x1d2)](_0x1056fb){const _0x58a677=_0x2aec14,_0xa927de=this[_0x58a677(0x1d1)][_0x58a677(0x1c9)](_0x1056fb);return this[_0x58a677(0x1c3)](_0xa927de);}[_0x2aec14(0x1c3)](_0x52e00f){const _0x55df0e=_0x2aec14;return this[_0x55df0e(0x1c7)](_0x52e00f);}[_0x2aec14(0x1c7)](_0x53b032){const _0x19ad04=_0x2aec14,_0x48a8a3=_0x53b032[_0x19ad04(0x1c8)](/^\t+/gm,'\x20')[_0x19ad04(0x1c8)](/\n*/g,'')[_0x19ad04(0x1c8)](/\s+/g,'\x20')[_0x19ad04(0x1c8)](/<[^>]*?$/g,''),_0x598a34=_0x941fee(_0x19ad04(0x1cc)+_0x48a8a3+_0x19ad04(0x1c1));return _0x598a34[_0x19ad04(0x1cf)]=_0x598a34[_0x19ad04(0x1cf)][0x0][_0x19ad04(0x1cf)],_0x598a34;}}function _0x589d(){const _0x91376f=['parse','4NXFEgg','1820310pLMlND','<dummy>','3705935FpUFHO','27odwSLE','children','44724bohETU','_m2html','convertMarkdownToHTML','1991343ERUIZz','</dummy>','16GczyPp','parseAndNormalizeHTML','3941245gtDgCN','19459430COQzFc','37272IqzqPv','_parseHTML','replace'];_0x589d=function(){return _0x91376f;};return _0x589d();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xe508(_0xd1f32b,_0x58fac5){var _0x1a6ef8=_0x1a6e();return _0xe508=function(_0xe5081,_0x28f2c3){_0xe5081=_0xe5081-0xe8;var _0x6c89aa=_0x1a6ef8[_0xe5081];return _0x6c89aa;},_0xe508(_0xd1f32b,_0x58fac5);}(function(_0x760f9,_0x388e13){var _0x4d0ad1=_0xe508,_0x26427d=_0x760f9();while(!![]){try{var _0x27f4fe=parseInt(_0x4d0ad1(0xf7))/0x1+parseInt(_0x4d0ad1(0xea))/0x2+parseInt(_0x4d0ad1(0xf4))/0x3*(-parseInt(_0x4d0ad1(0xe8))/0x4)+parseInt(_0x4d0ad1(0xf1))/0x5*(-parseInt(_0x4d0ad1(0xe9))/0x6)+-parseInt(_0x4d0ad1(0xf3))/0x7*(parseInt(_0x4d0ad1(0xf0))/0x8)+parseInt(_0x4d0ad1(0xf2))/0x9+-parseInt(_0x4d0ad1(0xec))/0xa*(-parseInt(_0x4d0ad1(0xee))/0xb);if(_0x27f4fe===_0x388e13)break;else _0x26427d['push'](_0x26427d['shift']());}catch(_0x2da94c){_0x26427d['push'](_0x26427d['shift']());}}}(_0x1a6e,0x9354b));import{View as _0x32ad8b}from'ckeditor5/src/ui.js';import{getTranslation as _0xeaa3ab}from'../../aicore/utils/common-translations.js';function _0x1a6e(){var _0x2d355c=['303780EUOMDy','16vorKDo','63330qICMWj','2109404KuaYjF','div','22290ddwHri','ck-ai-disclaimer','187SsDtoo','AI_DISCLAIMER_TEXT','191176UYSBZM','85zaVvYY','10280664whJfrV','315vvXimD','510303OXymkg','setTemplate','ck-ai-disclaimer__content'];_0x1a6e=function(){return _0x2d355c;};return _0x1a6e();}export class AIDisclaimerView extends _0x32ad8b{constructor(_0x4aef47){var _0x431dab=_0xe508;super(_0x4aef47),this[_0x431dab(0xf5)]({'tag':_0x431dab(0xeb),'attributes':{'class':['ck',_0x431dab(0xed)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x431dab(0xf6)]},'children':[{'text':_0xeaa3ab(_0x4aef47,_0x431dab(0xef))}]}]});}}
23
+ function _0x1f3d(_0x447427,_0x45ff3c){var _0x29d021=_0x29d0();return _0x1f3d=function(_0x1f3d7c,_0x45a43b){_0x1f3d7c=_0x1f3d7c-0x14b;var _0x28a907=_0x29d021[_0x1f3d7c];return _0x28a907;},_0x1f3d(_0x447427,_0x45ff3c);}(function(_0x4a660f,_0x3fef1b){var _0x131d7e=_0x1f3d,_0x52b48c=_0x4a660f();while(!![]){try{var _0x40995a=-parseInt(_0x131d7e(0x14f))/0x1+parseInt(_0x131d7e(0x157))/0x2+parseInt(_0x131d7e(0x155))/0x3+-parseInt(_0x131d7e(0x153))/0x4+parseInt(_0x131d7e(0x156))/0x5*(-parseInt(_0x131d7e(0x154))/0x6)+-parseInt(_0x131d7e(0x14c))/0x7+parseInt(_0x131d7e(0x14b))/0x8;if(_0x40995a===_0x3fef1b)break;else _0x52b48c['push'](_0x52b48c['shift']());}catch(_0xd7738){_0x52b48c['push'](_0x52b48c['shift']());}}}(_0x29d0,0x917f9));function _0x29d0(){var _0x137cce=['1196951TiUijC','AI_DISCLAIMER_TEXT','ck-ai-disclaimer__content','1125139YwhSrv','setTemplate','ck-ai-disclaimer','div','3461284jOaAPJ','294ATrXWf','1649847oSnQuw','62270oeyuqP','2292860wbZtrI','13370248wMltrW'];_0x29d0=function(){return _0x137cce;};return _0x29d0();}import{View as _0x4b44db}from'ckeditor5/src/ui.js';import{getTranslation as _0xd6a2fa}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0x4b44db{constructor(_0x95d550){var _0x4098e2=_0x1f3d;super(_0x95d550),this[_0x4098e2(0x150)]({'tag':_0x4098e2(0x152),'attributes':{'class':['ck',_0x4098e2(0x151)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x4098e2(0x14e)]},'children':[{'text':_0xd6a2fa(_0x95d550,_0x4098e2(0x14d))}]}]});}}