@ckeditor/ckeditor5-ai 47.2.0-alpha.7 → 47.2.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 (127) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/aiadapter.js +1 -1
  8. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  9. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  10. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  11. package/src/aiassistant/aiassistant.js +1 -1
  12. package/src/aiassistant/aiassistantediting.js +1 -1
  13. package/src/aiassistant/aiassistantui.js +1 -1
  14. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  15. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  16. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  17. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  19. package/src/aiassistant/ui/form/aiformview.js +1 -1
  20. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  21. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  22. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  23. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  24. package/src/aiballoon/aiballoon.js +1 -1
  25. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  26. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  27. package/src/aiballoon/ui/aiballoonview.js +1 -1
  28. package/src/aichat/aichat.js +1 -1
  29. package/src/aichat/aichatcontroller.js +1 -1
  30. package/src/aichat/aichatui.js +1 -1
  31. package/src/aichat/model/aichatcontext.js +1 -1
  32. package/src/aichat/model/aichatconversation.js +1 -1
  33. package/src/aichat/model/aichatinteraction.js +1 -1
  34. package/src/aichat/model/aichatmodels.js +1 -1
  35. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  36. package/src/aichat/ui/aichatfeedview.js +1 -1
  37. package/src/aichat/ui/aichatheaderview.js +1 -1
  38. package/src/aichat/ui/aichatview.js +1 -1
  39. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  42. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  43. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  45. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  46. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  50. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  51. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  57. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  58. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  59. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  60. package/src/aichat/utils/eventnames.js +1 -1
  61. package/src/aichat/utils/promisequeue.js +1 -1
  62. package/src/aichathistory/aichathistory.js +1 -1
  63. package/src/aichathistory/aichathistorycontroller.js +1 -1
  64. package/src/aichathistory/aichathistoryui.js +1 -1
  65. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  66. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  67. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  68. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  69. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  70. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  71. package/src/aicore/aiconnector.js +1 -1
  72. package/src/aicore/aiediting.js +1 -1
  73. package/src/aicore/model/aicapabilities.js +1 -1
  74. package/src/aicore/model/aiinteraction.js +1 -1
  75. package/src/aicore/model/aimodels.js +1 -1
  76. package/src/aicore/model/aireply.js +1 -1
  77. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  78. package/src/aicore/pipeline/airesponseparser.js +2 -2
  79. package/src/aicore/ui/aidisclaimerview.js +1 -1
  80. package/src/aicore/ui/aiskeleton.js +1 -1
  81. package/src/aicore/ui/aispinner.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  84. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  85. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  86. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  87. package/src/aicore/utils/createresizebutton.js +1 -1
  88. package/src/aicore/utils/documentrange.js +1 -1
  89. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  90. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  91. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  92. package/src/aicore/utils/htmlparser.js +1 -1
  93. package/src/aicore/utils/htmlstreamer.js +1 -1
  94. package/src/aieditorintegration/aieditorintegration.js +1 -1
  95. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  96. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  97. package/src/aiquickactions/aiquickactions.js +1 -1
  98. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  99. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  100. package/src/aiquickactions/aiquickactionsui.js +1 -1
  101. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  102. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  103. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  104. package/src/aireviewmode/aireviewmode.js +1 -1
  105. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  106. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  107. package/src/aireviewmode/aireviewmodeui.js +1 -1
  108. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  109. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  110. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  111. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  112. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  113. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  114. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  115. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  116. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  117. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  118. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  119. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  120. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  121. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  122. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  123. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  124. package/src/aitabs/aitabs.js +1 -1
  125. package/src/aitabs/tabs/aitabsview.js +1 -1
  126. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  127. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3369d1=_0x5558;(function(_0x445e61,_0x23a4bd){const _0xc05601=_0x5558,_0x464fbd=_0x445e61();while(!![]){try{const _0x31f234=parseInt(_0xc05601(0x20b))/0x1*(parseInt(_0xc05601(0x220))/0x2)+-parseInt(_0xc05601(0x219))/0x3*(parseInt(_0xc05601(0x22d))/0x4)+-parseInt(_0xc05601(0x1e4))/0x5+-parseInt(_0xc05601(0x228))/0x6+-parseInt(_0xc05601(0x201))/0x7+-parseInt(_0xc05601(0x1ec))/0x8*(parseInt(_0xc05601(0x204))/0x9)+parseInt(_0xc05601(0x1d8))/0xa;if(_0x31f234===_0x23a4bd)break;else _0x464fbd['push'](_0x464fbd['shift']());}catch(_0x44145c){_0x464fbd['push'](_0x464fbd['shift']());}}}(_0x19f6,0x88e62));function _0x19f6(){const _0x165cad=['fieldView','errorMessage','7725620kuwAfF','aiHistory','items','45acNXBn','_updateViewVisibility','add','search','set','change:hasItems','change:errorMessage','9CGnnon','ltr','isMaximized','removeHistoryItem','skeletonView','ck-ai-chat-history','resizeButton','updateTitle','hasItems','sectionsView','ck-ai-chat-history__empty','AI_CHAT_LABEL_NEW_CHAT','updateLoadingState','isEmptyViewVisible','3DEwTmF','execute','isVisible','bindTemplate','setTemplate','updateItemLoadingState','ck-ai-chat-error__dismiss-button','42954EpHXIP','delegate','_createListItemViews','extendTemplate','splice','fire','indexOf','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','6592062JtHRSw','itemsViews','_createEmptyStateView','emptyView','updateHistoryItemsWithCategories','1933404WZwJTm','render','title','isSearchViewVisible','change:isLoading','removeItem','42055720IievdX','ck-ai-chat-history__empty-message','div','ck-ai-chat__start-conversation','_createErrorView','_createSkeletonView','sections','length','locale','AI_CHAT_HISTORY_EMPTY_MESSAGE','isLoading','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','2793520MsKutK','ck-ai-chat-error','ck-rounded-corners','ck-hidden','bind','updateItemTitle','ck-reset_all','remove','949976EyyVrm','_refreshSearch','clear','AI_CHAT_HISTORY_SEARCH_LABEL','openChat','children','errorView','some','ck-ai-chat-history__content','getItem','addMany','push','value','AI_CHAT_HISTORY_HEADING','element','ck-ai-header\x20ck-ai-header_history','searchView','_createSearchView','queryView'];_0x19f6=function(){return _0x165cad;};return _0x19f6();}import{View as _0x4bd8e1,SearchTextView as _0x2bb5f2,FormHeaderView as _0x2972d4,ButtonView as _0x1f5e4b}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x290677,IconCancel as _0x85bba5,IconPlus as _0x2cee74}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x45d1af}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x5c9c56}from'./aichathistorylistview.js';function _0x5558(_0x16cde5,_0x2620b2){const _0x19f645=_0x19f6();return _0x5558=function(_0x55583f,_0xdd2a50){_0x55583f=_0x55583f-0x1d6;let _0x1a427e=_0x19f645[_0x55583f];return _0x1a427e;},_0x5558(_0x16cde5,_0x2620b2);}import{AIChatHistoryListItemView as _0x114dbf}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x5d69d2}from'../aichathistoryui.js';import{AISkeletonView as _0x4e73ea,SKELETON_DEFINITIONS as _0x1d6d28}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x4d3259}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x4c6d61}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x4bd8e1{[_0x3369d1(0x1fc)];[_0x3369d1(0x1f2)];[_0x3369d1(0x20f)];[_0x3369d1(0x22b)];[_0x3369d1(0x214)];[_0x3369d1(0x211)];constructor(_0x2d7ba6,_0xd84b9e){const _0x55d46e=_0x3369d1;super(_0x2d7ba6),this[_0x55d46e(0x208)](_0x55d46e(0x213),!0x1),this[_0x55d46e(0x208)](_0x55d46e(0x1e2),!0x0),this[_0x55d46e(0x208)](_0x55d46e(0x200),''),this[_0x55d46e(0x208)](_0x55d46e(0x20d),!0x1),this[_0x55d46e(0x208)](_0x55d46e(0x230),!0x1),this[_0x55d46e(0x208)](_0x55d46e(0x218),!0x1);const _0x2a9956=new _0x2972d4(_0x2d7ba6,{'label':_0x4c6d61(_0x2d7ba6,_0x55d46e(0x1f9)),'icon':_0x290677,'class':_0x55d46e(0x1fb)});_0xd84b9e&&(this[_0x55d46e(0x211)]=_0x4d3259(_0x2d7ba6,this),_0x2a9956[_0x55d46e(0x1f1)][_0x55d46e(0x206)](this[_0x55d46e(0x211)])),this[_0x55d46e(0x214)]=new _0x45d1af(_0x2d7ba6,[]),this[_0x55d46e(0x214)][_0x55d46e(0x221)](..._0x5d69d2)['to'](this),this[_0x55d46e(0x1f2)]=this[_0x55d46e(0x1dc)](),this[_0x55d46e(0x20f)]=this[_0x55d46e(0x1dd)](),this[_0x55d46e(0x22b)]=this[_0x55d46e(0x22a)](),this[_0x55d46e(0x1fc)]=this[_0x55d46e(0x1fd)](),this['on'](_0x55d46e(0x1d6),()=>this[_0x55d46e(0x205)]()),this['on'](_0x55d46e(0x209),()=>this[_0x55d46e(0x205)]()),this['on'](_0x55d46e(0x20a),()=>this[_0x55d46e(0x205)]()),this[_0x55d46e(0x21d)]({'tag':_0x55d46e(0x1da),'attributes':{'class':['ck',_0x55d46e(0x1ea),_0x55d46e(0x210),_0x55d46e(0x1e6)],'dir':_0x55d46e(0x20c)},'children':[_0x2a9956,{'tag':_0x55d46e(0x1da),'attributes':{'class':[_0x55d46e(0x1f4)]},'children':[this[_0x55d46e(0x20f)],this[_0x55d46e(0x1f2)],this[_0x55d46e(0x22b)],this[_0x55d46e(0x1fc)]]}]});}[_0x3369d1(0x205)](){const _0x700008=_0x3369d1;this[_0x700008(0x230)]=!this[_0x700008(0x1e2)]&&this[_0x700008(0x213)]&&!this[_0x700008(0x200)],this[_0x700008(0x218)]=!this[_0x700008(0x1e2)]&&!this[_0x700008(0x213)]&&!this[_0x700008(0x200)];}[_0x3369d1(0x1fd)](){const _0x2b6268=_0x3369d1,_0x3e2d4f=new _0x2bb5f2(this[_0x2b6268(0x1e0)],{'filteredView':this[_0x2b6268(0x214)],'queryView':{'label':_0x4c6d61(this[_0x2b6268(0x1e0)],_0x2b6268(0x1ef))},'infoView':{'text':{'notFound':{'primary':_0x375ed7=>_0x4c6d61(this[_0x2b6268(0x1e0)],_0x2b6268(0x1e3),_0x375ed7),'secondary':_0x4c6d61(this[_0x2b6268(0x1e0)],_0x2b6268(0x227))}}}});return _0x3e2d4f['on'](_0x2b6268(0x22e),()=>{const _0x4d5f35=_0x2b6268;this[_0x4d5f35(0x1fc)][_0x4d5f35(0x1f1)][_0x4d5f35(0x206)](this[_0x4d5f35(0x1f2)],0x1);}),_0x3e2d4f[_0x2b6268(0x223)]({'attributes':{'class':[this[_0x2b6268(0x21c)]['if'](_0x2b6268(0x230),_0x2b6268(0x1e7),_0x2f2fdc=>!_0x2f2fdc)]}}),_0x3e2d4f;}[_0x3369d1(0x1dd)](){const _0x30ae1c=_0x3369d1,_0x3f52c9=new _0x4e73ea(this[_0x30ae1c(0x1e0)],_0x1d6d28[_0x30ae1c(0x202)]);return _0x3f52c9[_0x30ae1c(0x223)]({'attributes':{'class':[this[_0x30ae1c(0x21c)]['if'](_0x30ae1c(0x1e2),_0x30ae1c(0x1e7),_0x1413c5=>!_0x1413c5)]}}),_0x3f52c9;}[_0x3369d1(0x1dc)](){const _0x2e1347=_0x3369d1,_0x582601=new _0x4bd8e1(this[_0x2e1347(0x1e0)]),_0xc8d1a8=new _0x1f5e4b(this[_0x2e1347(0x1e0)]);return _0xc8d1a8[_0x2e1347(0x208)]({'withText':!0x1,'icon':_0x85bba5,'class':_0x2e1347(0x21f)}),_0xc8d1a8[_0x2e1347(0x1e8)](_0x2e1347(0x21b))['to'](this,_0x2e1347(0x213),_0xbaeee0=>!!_0xbaeee0),_0xc8d1a8['on'](_0x2e1347(0x21a),()=>{const _0x3e524d=_0x2e1347;this[_0x3e524d(0x200)]='';}),_0x582601[_0x2e1347(0x21d)]({'tag':_0x2e1347(0x1da),'attributes':{'class':['ck',_0x2e1347(0x1e5),this[_0x2e1347(0x21c)]['if'](_0x2e1347(0x200),_0x2e1347(0x1e7),_0x169d25=>!_0x169d25)]},'children':[{'tag':'p','children':[{'text':this[_0x2e1347(0x21c)]['to'](_0x2e1347(0x200))}]},_0xc8d1a8]}),_0x582601;}[_0x3369d1(0x22a)](){const _0x49ff7e=_0x3369d1,_0x41b48c=new _0x1f5e4b(this[_0x49ff7e(0x1e0)]);_0x41b48c[_0x49ff7e(0x208)]({'label':_0x4c6d61(this[_0x49ff7e(0x1e0)],_0x49ff7e(0x216)),'withText':!0x0,'icon':_0x2cee74,'class':_0x49ff7e(0x1db)}),_0x41b48c['on'](_0x49ff7e(0x21a),()=>{const _0x2a14e6=_0x49ff7e;this[_0x2a14e6(0x225)](_0x2a14e6(0x1f0));});const _0x18a232=new _0x4bd8e1(this[_0x49ff7e(0x1e0)]);return _0x18a232[_0x49ff7e(0x21d)]({'tag':_0x49ff7e(0x1da),'attributes':{'class':[_0x49ff7e(0x215),this[_0x49ff7e(0x21c)]['if'](_0x49ff7e(0x218),_0x49ff7e(0x1e7),_0x1c7e85=>!_0x1c7e85)]},'children':[{'tag':'p','attributes':{'class':[_0x49ff7e(0x1d9)]},'children':[_0x4c6d61(this[_0x49ff7e(0x1e0)],_0x49ff7e(0x1e1))]},_0x41b48c]}),_0x18a232;}[_0x3369d1(0x222)](_0x39bdb2,_0x370bc6){const _0x303d97=_0x3369d1,_0xfb523=[];for(const _0x43c583 of _0x39bdb2){const _0x5aebb5=new _0x114dbf(_0x370bc6,_0x43c583);_0x5aebb5[_0x303d97(0x221)](..._0x5d69d2)['to'](this),_0xfb523[_0x303d97(0x1f7)](_0x5aebb5);}return _0xfb523;}[_0x3369d1(0x22c)](_0x135f38){const _0x552a78=_0x3369d1,_0x165844=this[_0x552a78(0x1e0)]||'en',_0x51352e=[];for(const _0x435314 of _0x135f38){const _0x3d007a=this[_0x552a78(0x222)](_0x435314[_0x552a78(0x203)],_0x165844);_0x51352e[_0x552a78(0x1f7)](new _0x5c9c56(_0x165844,{'title':_0x435314[_0x552a78(0x22f)],'items':_0x3d007a}));}this[_0x552a78(0x214)][_0x552a78(0x1de)]=_0x51352e,this[_0x552a78(0x214)][_0x552a78(0x203)][_0x552a78(0x1ee)](),this[_0x552a78(0x214)][_0x552a78(0x203)][_0x552a78(0x1f6)](_0x51352e),this[_0x552a78(0x213)]=_0x135f38[_0x552a78(0x1f3)](_0x51d493=>_0x51d493[_0x552a78(0x203)][_0x552a78(0x1df)]>0x0),this[_0x552a78(0x1ed)]();}[_0x3369d1(0x20e)](_0x5958b3){const _0x41458f=_0x3369d1;for(const _0x1b35d8 of this[_0x41458f(0x214)][_0x41458f(0x1de)]){const _0xb43581=_0x1b35d8[_0x41458f(0x1f5)](_0x5958b3);if(_0xb43581){if(_0x1b35d8[_0x41458f(0x1d7)](_0xb43581),0x0===_0x1b35d8[_0x41458f(0x229)][_0x41458f(0x1df)]){const _0x23fdd0=this[_0x41458f(0x214)][_0x41458f(0x1de)][_0x41458f(0x226)](_0x1b35d8);-0x1!==_0x23fdd0&&(this[_0x41458f(0x214)][_0x41458f(0x1de)][_0x41458f(0x224)](_0x23fdd0,0x1),this[_0x41458f(0x214)][_0x41458f(0x203)][_0x41458f(0x1eb)](_0x1b35d8));}this[_0x41458f(0x213)]=this[_0x41458f(0x214)][_0x41458f(0x1de)][_0x41458f(0x1df)]>0x0,this[_0x41458f(0x1ed)]();break;}}}[_0x3369d1(0x1e9)](_0x2a2a4b,_0x22ccd2){const _0x52a562=_0x3369d1;for(const _0x4c80fc of this[_0x52a562(0x214)][_0x52a562(0x1de)]){const _0x2a987b=_0x4c80fc[_0x52a562(0x1f5)](_0x2a2a4b);if(_0x2a987b){_0x2a987b[_0x52a562(0x212)](_0x22ccd2);break;}}}[_0x3369d1(0x21e)](_0x159463,_0x13d173,_0x8c56e5){const _0x13028a=_0x3369d1;for(const _0xb843b0 of this[_0x13028a(0x214)][_0x13028a(0x1de)]){const _0x13b066=_0xb843b0[_0x13028a(0x1f5)](_0x159463);if(_0x13b066){_0x13b066[_0x13028a(0x217)](_0x13d173,_0x8c56e5);break;}}}[_0x3369d1(0x1ed)](){const _0x48e4a9=_0x3369d1;if(this[_0x48e4a9(0x213)]){const _0x3b7431=this[_0x48e4a9(0x1fc)][_0x48e4a9(0x1fe)][_0x48e4a9(0x1ff)]?.[_0x48e4a9(0x1fa)]?.[_0x48e4a9(0x1f8)]||'';this[_0x48e4a9(0x1fc)][_0x48e4a9(0x207)](_0x3b7431);}}}
23
+ const _0x21c350=_0xcf13;(function(_0x87611e,_0x2cffcb){const _0x517504=_0xcf13,_0x48836e=_0x87611e();while(!![]){try{const _0xf3992=parseInt(_0x517504(0x1fc))/0x1*(parseInt(_0x517504(0x1ec))/0x2)+parseInt(_0x517504(0x1fe))/0x3*(parseInt(_0x517504(0x1f7))/0x4)+-parseInt(_0x517504(0x222))/0x5*(-parseInt(_0x517504(0x207))/0x6)+-parseInt(_0x517504(0x1ea))/0x7*(-parseInt(_0x517504(0x212))/0x8)+-parseInt(_0x517504(0x224))/0x9+-parseInt(_0x517504(0x1d5))/0xa+-parseInt(_0x517504(0x1d8))/0xb*(-parseInt(_0x517504(0x1dd))/0xc);if(_0xf3992===_0x2cffcb)break;else _0x48836e['push'](_0x48836e['shift']());}catch(_0xe3daa){_0x48836e['push'](_0x48836e['shift']());}}}(_0x57b4,0x58498));import{View as _0x4f7aeb,SearchTextView as _0x488a81,FormHeaderView as _0x59173f,ButtonView as _0xee6442}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x2082c3,IconCancel as _0x22d498,IconPlus as _0x3ed463}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x355bae}from'./aichathistorysectionlistview.js';function _0x57b4(){const _0x2675f4=['change:hasItems','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','skeletonView','7162750LsoVcQ','removeHistoryItem','isEmptyViewVisible','11nqJKxV','ck-ai-chat-history__empty-message','change:isLoading','AI_CHAT_HISTORY_EMPTY_MESSAGE','fire','4440312SGHPtw','updateTitle','some','sectionsView','bind','_createSkeletonView','ck-ai-chat-error__dismiss-button','value','updateItemLoadingState','_createEmptyStateView','locale','emptyView','isLoading','8519VxjbCm','ck-ai-chat__start-conversation','2NqmFyi','ck-ai-chat-history','AI_CHAT_LABEL_NEW_CHAT','isVisible','_updateViewVisibility','updateLoadingState','children','element','ltr','queryView','change:errorMessage','145088wErkyd','resizeButton','indexOf','itemsViews','ck-ai-chat-history__content','5642doGUnq','remove','42ujyBbo','execute','errorMessage','updateItemTitle','_createErrorView','ck-hidden','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','_createSearchView','div','18UkNmfp','getItem','delegate','items','_refreshSearch','ck-ai-chat-history__empty','title','searchView','ck-rounded-corners','length','sections','2136bacBEk','ck-reset_all','hasItems','clear','splice','errorView','search','openChat','AI_CHAT_HISTORY_HEADING','aiHistory','extendTemplate','isMaximized','AI_CHAT_HISTORY_SEARCH_LABEL','ck-ai-chat-error','bindTemplate','fieldView','642545ogkTCX','_createListItemViews','4644387INvEoR','updateHistoryItemsWithCategories','set','addMany','add','isSearchViewVisible','push','ck-ai-header\x20ck-ai-header_history','removeItem','render','setTemplate'];_0x57b4=function(){return _0x2675f4;};return _0x57b4();}import{AIChatHistoryListView as _0x1c2a76}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x1c53cf}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x330fcb}from'../aichathistoryui.js';function _0xcf13(_0x1e7aa3,_0x52135d){const _0x57b443=_0x57b4();return _0xcf13=function(_0xcf13ae,_0x1cfdc3){_0xcf13ae=_0xcf13ae-0x1d3;let _0xf1b337=_0x57b443[_0xcf13ae];return _0xf1b337;},_0xcf13(_0x1e7aa3,_0x52135d);}import{AISkeletonView as _0x321175,SKELETON_DEFINITIONS as _0x15005a}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x17b32e}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x36fca2}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x4f7aeb{[_0x21c350(0x20e)];[_0x21c350(0x217)];[_0x21c350(0x1d4)];[_0x21c350(0x1e8)];[_0x21c350(0x1e0)];[_0x21c350(0x1f8)];constructor(_0x1aaa0c,_0x3bc01f){const _0x2c5cd9=_0x21c350;super(_0x1aaa0c),this[_0x2c5cd9(0x226)](_0x2c5cd9(0x214),!0x1),this[_0x2c5cd9(0x226)](_0x2c5cd9(0x1e9),!0x0),this[_0x2c5cd9(0x226)](_0x2c5cd9(0x200),''),this[_0x2c5cd9(0x226)](_0x2c5cd9(0x21d),!0x1),this[_0x2c5cd9(0x226)](_0x2c5cd9(0x229),!0x1),this[_0x2c5cd9(0x226)](_0x2c5cd9(0x1d7),!0x1);const _0xffbe30=new _0x59173f(_0x1aaa0c,{'label':_0x36fca2(_0x1aaa0c,_0x2c5cd9(0x21a)),'icon':_0x2082c3,'class':_0x2c5cd9(0x22b)});_0x3bc01f&&(this[_0x2c5cd9(0x1f8)]=_0x17b32e(_0x1aaa0c,this),_0xffbe30[_0x2c5cd9(0x1f2)][_0x2c5cd9(0x228)](this[_0x2c5cd9(0x1f8)])),this[_0x2c5cd9(0x1e0)]=new _0x355bae(_0x1aaa0c,[]),this[_0x2c5cd9(0x1e0)][_0x2c5cd9(0x209)](..._0x330fcb)['to'](this),this[_0x2c5cd9(0x217)]=this[_0x2c5cd9(0x202)](),this[_0x2c5cd9(0x1d4)]=this[_0x2c5cd9(0x1e2)](),this[_0x2c5cd9(0x1e8)]=this[_0x2c5cd9(0x1e6)](),this[_0x2c5cd9(0x20e)]=this[_0x2c5cd9(0x205)](),this['on'](_0x2c5cd9(0x1da),()=>this[_0x2c5cd9(0x1f0)]()),this['on'](_0x2c5cd9(0x22f),()=>this[_0x2c5cd9(0x1f0)]()),this['on'](_0x2c5cd9(0x1f6),()=>this[_0x2c5cd9(0x1f0)]()),this[_0x2c5cd9(0x22e)]({'tag':_0x2c5cd9(0x206),'attributes':{'class':['ck',_0x2c5cd9(0x213),_0x2c5cd9(0x1ed),_0x2c5cd9(0x20f)],'dir':_0x2c5cd9(0x1f4)},'children':[_0xffbe30,{'tag':_0x2c5cd9(0x206),'attributes':{'class':[_0x2c5cd9(0x1fb)]},'children':[this[_0x2c5cd9(0x1d4)],this[_0x2c5cd9(0x217)],this[_0x2c5cd9(0x1e8)],this[_0x2c5cd9(0x20e)]]}]});}[_0x21c350(0x1f0)](){const _0x44bfe5=_0x21c350;this[_0x44bfe5(0x229)]=!this[_0x44bfe5(0x1e9)]&&this[_0x44bfe5(0x214)]&&!this[_0x44bfe5(0x200)],this[_0x44bfe5(0x1d7)]=!this[_0x44bfe5(0x1e9)]&&!this[_0x44bfe5(0x214)]&&!this[_0x44bfe5(0x200)];}[_0x21c350(0x205)](){const _0x42eac1=_0x21c350,_0x4caa98=new _0x488a81(this[_0x42eac1(0x1e7)],{'filteredView':this[_0x42eac1(0x1e0)],'queryView':{'label':_0x36fca2(this[_0x42eac1(0x1e7)],_0x42eac1(0x21e))},'infoView':{'text':{'notFound':{'primary':_0x1dce36=>_0x36fca2(this[_0x42eac1(0x1e7)],_0x42eac1(0x1d3),_0x1dce36),'secondary':_0x36fca2(this[_0x42eac1(0x1e7)],_0x42eac1(0x204))}}}});return _0x4caa98['on'](_0x42eac1(0x22d),()=>{const _0x46a32c=_0x42eac1;this[_0x46a32c(0x20e)][_0x46a32c(0x1f2)][_0x46a32c(0x228)](this[_0x46a32c(0x217)],0x1);}),_0x4caa98[_0x42eac1(0x21c)]({'attributes':{'class':[this[_0x42eac1(0x220)]['if'](_0x42eac1(0x229),_0x42eac1(0x203),_0x1c9e3c=>!_0x1c9e3c)]}}),_0x4caa98;}[_0x21c350(0x1e2)](){const _0x359f5c=_0x21c350,_0x4740fb=new _0x321175(this[_0x359f5c(0x1e7)],_0x15005a[_0x359f5c(0x21b)]);return _0x4740fb[_0x359f5c(0x21c)]({'attributes':{'class':[this[_0x359f5c(0x220)]['if'](_0x359f5c(0x1e9),_0x359f5c(0x203),_0x24a436=>!_0x24a436)]}}),_0x4740fb;}[_0x21c350(0x202)](){const _0xc2c023=_0x21c350,_0x37a8c1=new _0x4f7aeb(this[_0xc2c023(0x1e7)]),_0xe79a3c=new _0xee6442(this[_0xc2c023(0x1e7)]);return _0xe79a3c[_0xc2c023(0x226)]({'withText':!0x1,'icon':_0x22d498,'class':_0xc2c023(0x1e3)}),_0xe79a3c[_0xc2c023(0x1e1)](_0xc2c023(0x1ef))['to'](this,_0xc2c023(0x214),_0x464d20=>!!_0x464d20),_0xe79a3c['on'](_0xc2c023(0x1ff),()=>{const _0x1b7270=_0xc2c023;this[_0x1b7270(0x200)]='';}),_0x37a8c1[_0xc2c023(0x22e)]({'tag':_0xc2c023(0x206),'attributes':{'class':['ck',_0xc2c023(0x21f),this[_0xc2c023(0x220)]['if'](_0xc2c023(0x200),_0xc2c023(0x203),_0x5abb69=>!_0x5abb69)]},'children':[{'tag':'p','children':[{'text':this[_0xc2c023(0x220)]['to'](_0xc2c023(0x200))}]},_0xe79a3c]}),_0x37a8c1;}[_0x21c350(0x1e6)](){const _0x1f1aec=_0x21c350,_0x20284b=new _0xee6442(this[_0x1f1aec(0x1e7)]);_0x20284b[_0x1f1aec(0x226)]({'label':_0x36fca2(this[_0x1f1aec(0x1e7)],_0x1f1aec(0x1ee)),'withText':!0x0,'icon':_0x3ed463,'class':_0x1f1aec(0x1eb)}),_0x20284b['on'](_0x1f1aec(0x1ff),()=>{const _0x1ef083=_0x1f1aec;this[_0x1ef083(0x1dc)](_0x1ef083(0x219));});const _0x37b471=new _0x4f7aeb(this[_0x1f1aec(0x1e7)]);return _0x37b471[_0x1f1aec(0x22e)]({'tag':_0x1f1aec(0x206),'attributes':{'class':[_0x1f1aec(0x20c),this[_0x1f1aec(0x220)]['if'](_0x1f1aec(0x1d7),_0x1f1aec(0x203),_0x1bede2=>!_0x1bede2)]},'children':[{'tag':'p','attributes':{'class':[_0x1f1aec(0x1d9)]},'children':[_0x36fca2(this[_0x1f1aec(0x1e7)],_0x1f1aec(0x1db))]},_0x20284b]}),_0x37b471;}[_0x21c350(0x223)](_0x26951d,_0x7dfc1a){const _0x3f5e66=_0x21c350,_0x5dd5d4=[];for(const _0x13cd35 of _0x26951d){const _0x558370=new _0x1c53cf(_0x7dfc1a,_0x13cd35);_0x558370[_0x3f5e66(0x209)](..._0x330fcb)['to'](this),_0x5dd5d4[_0x3f5e66(0x22a)](_0x558370);}return _0x5dd5d4;}[_0x21c350(0x225)](_0x460d31){const _0x18b715=_0x21c350,_0x1eea81=this[_0x18b715(0x1e7)]||'en',_0x9d0760=[];for(const _0x2b281a of _0x460d31){const _0xb72c3b=this[_0x18b715(0x223)](_0x2b281a[_0x18b715(0x20a)],_0x1eea81);_0x9d0760[_0x18b715(0x22a)](new _0x1c2a76(_0x1eea81,{'title':_0x2b281a[_0x18b715(0x20d)],'items':_0xb72c3b}));}this[_0x18b715(0x1e0)][_0x18b715(0x211)]=_0x9d0760,this[_0x18b715(0x1e0)][_0x18b715(0x20a)][_0x18b715(0x215)](),this[_0x18b715(0x1e0)][_0x18b715(0x20a)][_0x18b715(0x227)](_0x9d0760),this[_0x18b715(0x214)]=_0x460d31[_0x18b715(0x1df)](_0x5f06f5=>_0x5f06f5[_0x18b715(0x20a)][_0x18b715(0x210)]>0x0),this[_0x18b715(0x20b)]();}[_0x21c350(0x1d6)](_0x2b5abc){const _0x3cc500=_0x21c350;for(const _0x85ac4b of this[_0x3cc500(0x1e0)][_0x3cc500(0x211)]){const _0xe36c17=_0x85ac4b[_0x3cc500(0x208)](_0x2b5abc);if(_0xe36c17){if(_0x85ac4b[_0x3cc500(0x22c)](_0xe36c17),0x0===_0x85ac4b[_0x3cc500(0x1fa)][_0x3cc500(0x210)]){const _0x51ff3f=this[_0x3cc500(0x1e0)][_0x3cc500(0x211)][_0x3cc500(0x1f9)](_0x85ac4b);-0x1!==_0x51ff3f&&(this[_0x3cc500(0x1e0)][_0x3cc500(0x211)][_0x3cc500(0x216)](_0x51ff3f,0x1),this[_0x3cc500(0x1e0)][_0x3cc500(0x20a)][_0x3cc500(0x1fd)](_0x85ac4b));}this[_0x3cc500(0x214)]=this[_0x3cc500(0x1e0)][_0x3cc500(0x211)][_0x3cc500(0x210)]>0x0,this[_0x3cc500(0x20b)]();break;}}}[_0x21c350(0x201)](_0x540b3a,_0x47e90b){const _0x5723e9=_0x21c350;for(const _0x3b4285 of this[_0x5723e9(0x1e0)][_0x5723e9(0x211)]){const _0x4cc680=_0x3b4285[_0x5723e9(0x208)](_0x540b3a);if(_0x4cc680){_0x4cc680[_0x5723e9(0x1de)](_0x47e90b);break;}}}[_0x21c350(0x1e5)](_0x40c61f,_0x592e69,_0x566be4){const _0x379915=_0x21c350;for(const _0x27ea11 of this[_0x379915(0x1e0)][_0x379915(0x211)]){const _0x3da72b=_0x27ea11[_0x379915(0x208)](_0x40c61f);if(_0x3da72b){_0x3da72b[_0x379915(0x1f1)](_0x592e69,_0x566be4);break;}}}[_0x21c350(0x20b)](){const _0x1248ed=_0x21c350;if(this[_0x1248ed(0x214)]){const _0x160abb=this[_0x1248ed(0x20e)][_0x1248ed(0x1f5)][_0x1248ed(0x221)]?.[_0x1248ed(0x1f3)]?.[_0x1248ed(0x1e4)]||'';this[_0x1248ed(0x20e)][_0x1248ed(0x218)](_0x160abb);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e4e03=_0x2d2b;(function(_0x3cc99c,_0x405601){const _0x2bba6b=_0x2d2b,_0x5a6816=_0x3cc99c();while(!![]){try{const _0x2e7132=-parseInt(_0x2bba6b(0x17a))/0x1+-parseInt(_0x2bba6b(0x1d4))/0x2*(parseInt(_0x2bba6b(0x188))/0x3)+parseInt(_0x2bba6b(0x1da))/0x4+-parseInt(_0x2bba6b(0x1d0))/0x5*(parseInt(_0x2bba6b(0x1a6))/0x6)+-parseInt(_0x2bba6b(0x1b9))/0x7*(-parseInt(_0x2bba6b(0x1b8))/0x8)+parseInt(_0x2bba6b(0x19f))/0x9*(parseInt(_0x2bba6b(0x178))/0xa)+parseInt(_0x2bba6b(0x1a8))/0xb*(-parseInt(_0x2bba6b(0x170))/0xc);if(_0x2e7132===_0x405601)break;else _0x5a6816['push'](_0x5a6816['shift']());}catch(_0x2a8c9f){_0x5a6816['push'](_0x5a6816['shift']());}}}(_0xfc73,0x4bc50));function _0x2d2b(_0x46fa22,_0x2bd1c4){const _0xfc7337=_0xfc73();return _0x2d2b=function(_0x2d2b2a,_0x2c71ef){_0x2d2b2a=_0x2d2b2a-0x16b;let _0x439739=_0xfc7337[_0x2d2b2a];return _0x439739;},_0x2d2b(_0x46fa22,_0x2bd1c4);}import{createParser as _0x5d19c9}from'eventsource-parser';import{ContextPlugin as _0x26f066}from'ckeditor5/src/core.js';function _0xfc73(){const _0x2e16f9=['reset','make-tone-casual','_apiUrl','/calls','PATCH','excludeEmpty','/actions/custom/calls','/conversations/','MAKE_TONE_FORMAL','/reviews/system/','deleteConversation','4360LhTFvO','keys','init','updateConversation','184jZteSD','/web-resources','releaseLock','upsertCustomAIActionRating','text','DELETE','1769548aFiPSl','callSystemReview','read','decode','CONTINUE','attributes','ai-request-aborted','catch','fix-grammar','TRANSLATE','continue','uploadDocument','_sendApiRequest','getReader','/actions/system/','MAKE_TONE_CASUAL','/messages','then','Content-Type','/actions/custom/calls/','executeCustomAction','toString','isOfficialPlugin','improve-writing','stringify','MAKE_LONGER','uploadFile','push','token','limit','make-tone-formal','deleteDocument','feed','fetchDocument','request','make-longer','/messages/','define','525036nCnAEk','/ratings','fetchConversations','translate','append','/conversations?','fetchConversation','value','3714110lMZAgo','POST','12340fSMEmq','parse','/documents/','signal','IMPROVE_WRITING','/files','GET','abortController','ai-missing-token','data','ai-request-failed','isPremiumPlugin','upsertAIReviewRating','ai.serviceUrl','11967WOVjif','_token','totalCount','upsertAIChatRating','positiveCount','length','_decoder','application/json','status','upsertCustomAIReviewRating','startConversation','/reviews/custom/calls','modificationId','body','_handleError','get','context','AIConnector','/reviews/custom/calls/','/conversations','executeAction','Bearer\x20','FIX_GRAMMAR','9NFVaOC','json','group','callCustomReview','AbortError','/calls/','pluginName','1284AcNBiS','file','44rozYdx','MAKE_SHORTER','uploadUrl','name','CloudServices','/documents','config','upsertAIActionRating','make-shorter','queryAssistant','statusText','getModels','100','/web-resources/','plugins','true','16aJTQnq','831257AjrtmG','/files/','deleteWebResource','requires','search','deleteFile','/models/1','items','fetchConversationMessages','PUT','_getStreamReader','https://ai.cke-cs.com/v1'];_0xfc73=function(){return _0x2e16f9;};return _0xfc73();}import{CKEditorError as _0x3962b6}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x2f156f){const _0x433208=_0x2d2b;_0x2f156f[_0x433208(0x1de)]=_0x433208(0x1e4),_0x2f156f[_0x433208(0x19e)]=_0x433208(0x1e2),_0x2f156f[_0x433208(0x17e)]=_0x433208(0x1f1),_0x2f156f[_0x433208(0x1f3)]=_0x433208(0x16d),_0x2f156f[_0x433208(0x1a9)]=_0x433208(0x1b0),_0x2f156f[_0x433208(0x1e9)]=_0x433208(0x1c6),_0x2f156f[_0x433208(0x1cd)]=_0x433208(0x1f8),_0x2f156f[_0x433208(0x1e3)]=_0x433208(0x173);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x26f066{[_0x1e4e03(0x1c7)];[_0x1e4e03(0x189)];[_0x1e4e03(0x18e)];static get[_0x1e4e03(0x1bc)](){const _0x446101=_0x1e4e03;return[_0x446101(0x1ac)];}static get[_0x1e4e03(0x1a5)](){const _0x4f8903=_0x1e4e03;return _0x4f8903(0x199);}static get[_0x1e4e03(0x1f0)](){return!0x0;}static get[_0x1e4e03(0x185)](){return!0x0;}constructor(_0x14202d){const _0x45786a=_0x1e4e03;super(_0x14202d),this[_0x45786a(0x198)][_0x45786a(0x1ae)][_0x45786a(0x16f)](_0x45786a(0x187),_0x45786a(0x1c4)),this[_0x45786a(0x1c7)]=this[_0x45786a(0x198)][_0x45786a(0x1ae)][_0x45786a(0x197)](_0x45786a(0x187)),this[_0x45786a(0x189)]=null,this[_0x45786a(0x18e)]=new TextDecoder();}[_0x1e4e03(0x1d2)](){const _0x38975a=_0x1e4e03,_0x4623c0=this[_0x38975a(0x198)][_0x38975a(0x1b6)][_0x38975a(0x197)](_0x38975a(0x1ac));if(!_0x4623c0[_0x38975a(0x1f6)])throw new _0x3962b6(_0x38975a(0x182),this);this[_0x38975a(0x189)]=_0x4623c0[_0x38975a(0x1f6)];}[_0x1e4e03(0x192)](_0x14ffcb,_0x5dc3b1){const _0x41cde7=_0x1e4e03,_0xee386d=this[_0x41cde7(0x1e6)](_0x41cde7(0x19b),_0x41cde7(0x179),{'id':_0x14ffcb,'group':_0x5dc3b1});return{'getConversation':async()=>(await _0xee386d[_0x41cde7(0x16c)])[_0x41cde7(0x1a0)](),'abortController':_0xee386d[_0x41cde7(0x181)]};}[_0x1e4e03(0x1b1)]({message:_0x5ec475,conversationId:_0x22b354,parts:_0x48676e,capabilities:_0x5d1edd,model:_0x3dcc0a,quickActionData:_0x2780d9}){const _0x25aa08=_0x1e4e03,_0x312b65={..._0x2780d9&&{'quickActionData':_0x2780d9}},_0x156841={'prompt':_0x5ec475,'content':_0x48676e,'model':_0x3dcc0a,..._0x5d1edd&&{'capabilities':_0x5d1edd},...Object[_0x25aa08(0x1d1)](_0x312b65)[_0x25aa08(0x18d)]>0x0&&{'attributes':_0x312b65}},_0x5eead9=this[_0x25aa08(0x1e6)](_0x25aa08(0x1cc)+_0x22b354+_0x25aa08(0x1ea),_0x25aa08(0x179),_0x156841);return{'getStream':async()=>{const _0xe5d0f3=_0x25aa08,_0x547279=(await _0x5eead9[_0xe5d0f3(0x16c)])[_0xe5d0f3(0x195)];return this[_0xe5d0f3(0x1c3)](_0x547279);},'abortController':_0x5eead9[_0x25aa08(0x181)]};}[_0x1e4e03(0x1ee)]({content:_0x5c5ad1,message:_0x22f559,model:_0x40e948,outputFormat:_0x56537f}){const _0xc3fa3c=_0x1e4e03,_0xad9ef9={'content':[{'type':_0xc3fa3c(0x1d8),'content':_0x5c5ad1}],'prompt':_0x22f559,'model':_0x40e948,'outputFormat':_0x56537f},_0x4dc9a8=this[_0xc3fa3c(0x1e6)](_0xc3fa3c(0x1cb),_0xc3fa3c(0x179),_0xad9ef9);return{'getStream':async()=>{const _0x4b22d2=_0xc3fa3c,_0x524a44=(await _0x4dc9a8[_0x4b22d2(0x16c)])[_0x4b22d2(0x195)];return this[_0x4b22d2(0x1c3)](_0x524a44);},'abortController':_0x4dc9a8[_0xc3fa3c(0x181)]};}[_0x1e4e03(0x19c)]({actionName:_0x1ecc13,content:_0x54f003,args:_0xd63c03}){const _0x36b0b9=_0x1e4e03,_0x10cc7d={'content':[{'type':_0x36b0b9(0x1d8),'content':_0x54f003}],'args':_0xd63c03},_0x1d8194=this[_0x36b0b9(0x1e6)](_0x36b0b9(0x1e8)+_0x1ecc13+_0x36b0b9(0x1c8),_0x36b0b9(0x179),_0x10cc7d);return{'getStream':async()=>{const _0x542cde=_0x36b0b9,_0x374a2c=(await _0x1d8194[_0x542cde(0x16c)])[_0x542cde(0x195)];return this[_0x542cde(0x1c3)](_0x374a2c);},'abortController':_0x1d8194[_0x36b0b9(0x181)]};}[_0x1e4e03(0x1f4)](_0x9b6745,_0x334514,_0x28b493){const _0x4ca496=_0x1e4e03,_0x106352=new FormData();_0x106352[_0x4ca496(0x174)](_0x4ca496(0x1a7),_0x334514,_0x334514[_0x4ca496(0x1ab)]),_0x28b493&&_0x106352[_0x4ca496(0x174)](_0x4ca496(0x1df),JSON[_0x4ca496(0x1f2)](_0x28b493));const _0x36711f=this[_0x4ca496(0x1e6)](_0x4ca496(0x1cc)+_0x9b6745+_0x4ca496(0x17f),_0x4ca496(0x179),_0x106352);return{'getId':async()=>(await _0x36711f[_0x4ca496(0x16c)])[_0x4ca496(0x1a0)](),'abortController':_0x36711f[_0x4ca496(0x181)]};}[_0x1e4e03(0x16b)](_0x861829,_0x2c72da){const _0x2d8b0d=_0x1e4e03,_0x39e4bf=this[_0x2d8b0d(0x1e6)](_0x2d8b0d(0x1cc)+_0x861829+_0x2d8b0d(0x17c)+_0x2c72da,_0x2d8b0d(0x180));return{'getDocument':async()=>(await _0x39e4bf[_0x2d8b0d(0x16c)])[_0x2d8b0d(0x1a0)](),'abortController':_0x39e4bf[_0x2d8b0d(0x181)]};}[_0x1e4e03(0x1e5)](_0x59904a,_0x2f3e04,_0x428433){const _0x3314a7=_0x1e4e03,_0x4e376b={'content':_0x2f3e04};_0x428433&&(_0x4e376b[_0x3314a7(0x1df)]=_0x428433);const _0x4d3995=this[_0x3314a7(0x1e6)](_0x3314a7(0x1cc)+_0x59904a+_0x3314a7(0x1ad),_0x3314a7(0x179),_0x4e376b);return{'getId':async()=>(await _0x4d3995[_0x3314a7(0x16c)])[_0x3314a7(0x1a0)](),'abortController':_0x4d3995[_0x3314a7(0x181)]};}[_0x1e4e03(0x172)](_0x2d0e7f,_0x443084){const _0x1850aa=_0x1e4e03,_0x43db84=new URLSearchParams();_0x43db84[_0x1850aa(0x174)](_0x1850aa(0x1ca),_0x1850aa(0x1b7)),_0x43db84[_0x1850aa(0x174)](_0x1850aa(0x1f7),_0x1850aa(0x1b4)),_0x43db84[_0x1850aa(0x174)](_0x1850aa(0x1a1),_0x2d0e7f),_0x443084&&_0x43db84[_0x1850aa(0x174)](_0x1850aa(0x1bd),_0x443084);const _0x2627e6=this[_0x1850aa(0x1e6)](_0x1850aa(0x175)+_0x43db84[_0x1850aa(0x1ef)](),_0x1850aa(0x180));return{'getConversations':async()=>{const _0x588e99=_0x1850aa,_0x2386c5=await _0x2627e6[_0x588e99(0x16c)];return(await _0x2386c5[_0x588e99(0x1a0)]())[_0x588e99(0x1c0)];},'abortController':_0x2627e6[_0x1850aa(0x181)]};}[_0x1e4e03(0x1cf)](_0x321d99){const _0x4adcac=_0x1e4e03,_0x4ad12c=this[_0x4adcac(0x1e6)](_0x4adcac(0x1cc)+_0x321d99,_0x4adcac(0x1d9));return{'execute':async()=>{const _0x1d06b6=_0x4adcac;await _0x4ad12c[_0x1d06b6(0x16c)];},'abortController':_0x4ad12c[_0x4adcac(0x181)]};}[_0x1e4e03(0x1d3)](_0xa0a488,_0x1b3c66){const _0x5773df=_0x1e4e03,_0x405145=this[_0x5773df(0x1e6)](_0x5773df(0x1cc)+_0xa0a488,_0x5773df(0x1c9),_0x1b3c66);return{'getResult':async()=>(await _0x405145[_0x5773df(0x16c)],_0x1b3c66),'abortController':_0x405145[_0x5773df(0x181)]};}[_0x1e4e03(0x176)](_0x24201e){const _0x451fb2=_0x1e4e03,_0x5481ec=this[_0x451fb2(0x1e6)](_0x451fb2(0x1cc)+_0x24201e,_0x451fb2(0x180));return{'getConversation':async()=>(await _0x5481ec[_0x451fb2(0x16c)])[_0x451fb2(0x1a0)](),'abortController':_0x5481ec[_0x451fb2(0x181)]};}[_0x1e4e03(0x1c1)](_0x3aa8a4){const _0x50cc15=_0x1e4e03,_0x51b69a=this[_0x50cc15(0x1e6)](_0x50cc15(0x1cc)+_0x3aa8a4+_0x50cc15(0x1ea),_0x50cc15(0x180));return{'getMessages':async()=>{const _0x51233a=_0x50cc15,_0x3c593c=await _0x51b69a[_0x51233a(0x16c)];return(await _0x3c593c[_0x51233a(0x1a0)]())[_0x51233a(0x1c0)];},'abortController':_0x51b69a[_0x50cc15(0x181)]};}[_0x1e4e03(0x1aa)](_0x32d74c,_0x321ddc,_0x3318a0){const _0x1c9211=_0x1e4e03,_0x460b1d=this[_0x1c9211(0x1e6)](_0x1c9211(0x1cc)+_0x32d74c+_0x1c9211(0x1d5),_0x1c9211(0x179),{'url':_0x321ddc,'attributes':_0x3318a0});return{'getId':async()=>(await _0x460b1d[_0x1c9211(0x16c)])[_0x1c9211(0x1a0)](),'abortController':_0x460b1d[_0x1c9211(0x181)]};}[_0x1e4e03(0x1b3)](){const _0x1109cf=_0x1e4e03,_0x141279=this[_0x1109cf(0x1e6)](_0x1109cf(0x1bf),_0x1109cf(0x180));return{'list':async()=>await(await _0x141279[_0x1109cf(0x16c)])[_0x1109cf(0x1a0)](),'abortController':_0x141279[_0x1109cf(0x181)]};}[_0x1e4e03(0x1be)](_0x1f820d,_0x57bc8d){const _0x108c6c=_0x1e4e03,_0x56001c=this[_0x108c6c(0x1e6)](_0x108c6c(0x1cc)+_0x1f820d+_0x108c6c(0x1ba)+_0x57bc8d,_0x108c6c(0x1d9));return{'execute':async()=>{const _0x10e9d4=_0x108c6c;await _0x56001c[_0x10e9d4(0x16c)];},'abortController':_0x56001c[_0x108c6c(0x181)]};}[_0x1e4e03(0x1f9)](_0x3c858f,_0xc0328c){const _0x2a2553=_0x1e4e03,_0x459aca=this[_0x2a2553(0x1e6)](_0x2a2553(0x1cc)+_0x3c858f+_0x2a2553(0x17c)+_0xc0328c,_0x2a2553(0x1d9));return{'execute':async()=>{const _0x22c68a=_0x2a2553;await _0x459aca[_0x22c68a(0x16c)];},'abortController':_0x459aca[_0x2a2553(0x181)]};}[_0x1e4e03(0x1bb)](_0x26e515,_0x40d5ea){const _0x28ff6c=_0x1e4e03,_0x3ab6e8=this[_0x28ff6c(0x1e6)](_0x28ff6c(0x1cc)+_0x26e515+_0x28ff6c(0x1b5)+_0x40d5ea,_0x28ff6c(0x1d9));return{'execute':async()=>{const _0x1d66d6=_0x28ff6c;await _0x3ab6e8[_0x1d66d6(0x16c)];},'abortController':_0x3ab6e8[_0x28ff6c(0x181)]};}[_0x1e4e03(0x1db)]({reviewName:_0x3cf8d4,content:_0x5a1f60,args:_0x57ae03}){const _0x2c8de3=_0x1e4e03,_0x22cfb3=this[_0x2c8de3(0x1e6)](_0x2c8de3(0x1ce)+_0x3cf8d4+_0x2c8de3(0x1c8),_0x2c8de3(0x179),{'content':[{'type':_0x2c8de3(0x1d8),'content':_0x5a1f60}],'args':_0x57ae03});return{'getStream':async()=>{const _0x3d02d6=_0x2c8de3,_0x9a9859=(await _0x22cfb3[_0x3d02d6(0x16c)])[_0x3d02d6(0x195)];return this[_0x3d02d6(0x1c3)](_0x9a9859);},'abortController':_0x22cfb3[_0x2c8de3(0x181)]};}[_0x1e4e03(0x1a2)]({content:_0x3e6e1b,prompt:_0xdfc6a4,model:_0x4004cb}){const _0x3d7ac3=_0x1e4e03,_0x44d4d9=this[_0x3d7ac3(0x1e6)](_0x3d7ac3(0x193),_0x3d7ac3(0x179),{'content':[{'type':_0x3d7ac3(0x1d8),'content':_0x3e6e1b}],'prompt':_0xdfc6a4,'model':_0x4004cb});return{'getStream':async()=>{const _0x1e705c=_0x3d7ac3,_0x4ddd6e=(await _0x44d4d9[_0x1e705c(0x16c)])[_0x1e705c(0x195)];return this[_0x1e705c(0x1c3)](_0x4ddd6e);},'abortController':_0x44d4d9[_0x3d7ac3(0x181)]};}[_0x1e4e03(0x18b)](_0x264d02,_0x32226c,_0x5348c3){const _0x5e5581=_0x1e4e03,_0x50fc78=this[_0x5e5581(0x1e6)](_0x5e5581(0x1cc)+_0x264d02+_0x5e5581(0x16e)+_0x32226c+_0x5e5581(0x171),_0x5e5581(0x1c2),{'positiveCount':_0x5348c3[_0x5e5581(0x18c)],'totalCount':_0x5348c3[_0x5e5581(0x18a)],'modificationId':_0x5348c3[_0x5e5581(0x194)]});return{'execute':async()=>{const _0x4c79d1=_0x5e5581;await _0x50fc78[_0x4c79d1(0x16c)];},'abortController':_0x50fc78[_0x5e5581(0x181)]};}[_0x1e4e03(0x1af)](_0x384244,_0x5aa71d,_0x42cd34){const _0x2c83ed=_0x1e4e03,_0x41902f=this[_0x2c83ed(0x1e6)](_0x2c83ed(0x1e8)+_0x384244+_0x2c83ed(0x1a4)+_0x5aa71d+_0x2c83ed(0x171),_0x2c83ed(0x1c2),{'positiveCount':_0x42cd34[_0x2c83ed(0x18c)],'totalCount':_0x42cd34[_0x2c83ed(0x18a)]});return{'execute':async()=>{const _0x1eba17=_0x2c83ed;await _0x41902f[_0x1eba17(0x16c)];},'abortController':_0x41902f[_0x2c83ed(0x181)]};}[_0x1e4e03(0x1d7)](_0x2b05b7,_0x4f8dc3){const _0x54c459=_0x1e4e03,_0x417736=this[_0x54c459(0x1e6)](_0x54c459(0x1ed)+_0x2b05b7+_0x54c459(0x171),_0x54c459(0x1c2),{'positiveCount':_0x4f8dc3[_0x54c459(0x18c)],'totalCount':_0x4f8dc3[_0x54c459(0x18a)]});return{'execute':async()=>{const _0x29e39f=_0x54c459;await _0x417736[_0x29e39f(0x16c)];},'abortController':_0x417736[_0x54c459(0x181)]};}[_0x1e4e03(0x186)](_0x4a9526,_0x4a2ee8,_0x4df61c,_0x30dd0f){const _0x4999f0=_0x1e4e03,_0x58bea8=this[_0x4999f0(0x1e6)](_0x4999f0(0x1ce)+_0x4a9526+_0x4999f0(0x1a4)+_0x4a2ee8+_0x4999f0(0x171),_0x4999f0(0x1c2),{'positiveCount':_0x4df61c[_0x4999f0(0x18c)],'totalCount':_0x4df61c[_0x4999f0(0x18a)],'dataId':_0x30dd0f});return{'execute':async()=>{const _0x4b2a09=_0x4999f0;await _0x58bea8[_0x4b2a09(0x16c)];},'abortController':_0x58bea8[_0x4999f0(0x181)]};}[_0x1e4e03(0x191)](_0x3e16d5,_0x329b38,_0x1ebcc7){const _0x198e55=_0x1e4e03,_0x209d82=this[_0x198e55(0x1e6)](_0x198e55(0x19a)+_0x3e16d5+_0x198e55(0x171),_0x198e55(0x1c2),{'positiveCount':_0x329b38[_0x198e55(0x18c)],'totalCount':_0x329b38[_0x198e55(0x18a)],'dataId':_0x1ebcc7});return{'execute':async()=>{const _0x73eaad=_0x198e55;await _0x209d82[_0x73eaad(0x16c)];},'abortController':_0x209d82[_0x198e55(0x181)]};}[_0x1e4e03(0x1e6)](_0x283127,_0x5f55dc,_0x4031a1){const _0xdf33ea=_0x1e4e03,_0x8587aa=new AbortController(),_0x2a0858=_0x4031a1 instanceof FormData,_0x497251={'Authorization':_0xdf33ea(0x19d)+this[_0xdf33ea(0x189)]?.[_0xdf33ea(0x177)]};_0x4031a1&&!_0x2a0858&&(_0x497251[_0xdf33ea(0x1ec)]=_0xdf33ea(0x18f));const _0x2df3e1={'method':_0x5f55dc,'headers':_0x497251,'signal':_0x8587aa[_0xdf33ea(0x17d)]};return _0x4031a1&&(_0x2df3e1[_0xdf33ea(0x195)]=_0x2a0858?_0x4031a1:JSON[_0xdf33ea(0x1f2)](_0x4031a1)),{'request':fetch(''+this[_0xdf33ea(0x1c7)]+_0x283127,_0x2df3e1)[_0xdf33ea(0x1e1)](_0x1e9ff2=>{const _0x417c3b=_0xdf33ea;this[_0x417c3b(0x196)](_0x1e9ff2);})[_0xdf33ea(0x1eb)](_0x5d59af=>{const _0x3de9bf=_0xdf33ea;if(!_0x5d59af['ok'])throw new _0x3962b6(_0x3de9bf(0x184),this,{'url':this[_0x3de9bf(0x1c7)],'path':_0x283127,'method':_0x5f55dc,'body':_0x4031a1,'status':(_0x5d59af||{})[_0x3de9bf(0x190)],'statusText':(_0x5d59af||{})[_0x3de9bf(0x1b2)]});return _0x5d59af;}),'abortController':_0x8587aa};}async*[_0x1e4e03(0x1c3)](_0x13de0e){const _0x3d2bab=_0x1e4e03,_0x5574ab=[],_0x2a240c=_0x13de0e[_0x3d2bab(0x1e7)](),_0x143cbd=_0x5d19c9({'onError':_0x4e8282=>{const _0x4d4051=_0x3d2bab;this[_0x4d4051(0x196)](_0x4e8282);},'onEvent':_0x4b5ca0=>{const _0x5305dd=_0x3d2bab;_0x4b5ca0[_0x5305dd(0x183)]=JSON[_0x5305dd(0x17b)](_0x4b5ca0[_0x5305dd(0x183)]),_0x5574ab[_0x5305dd(0x1f5)](_0x4b5ca0);}});try{let _0x54b6b8=!0x1;for(;!_0x54b6b8;){const {done:_0x44ce2f,value:_0x515ff3}=await _0x2a240c[_0x3d2bab(0x1dc)]();_0x44ce2f&&(_0x54b6b8=!0x0),_0x143cbd[_0x3d2bab(0x1fa)](this[_0x3d2bab(0x18e)][_0x3d2bab(0x1dd)](_0x515ff3,{'stream':!0x0})),yield*_0x5574ab,_0x5574ab[_0x3d2bab(0x18d)]=0x0;}}catch(_0x3ee2ee){this[_0x3d2bab(0x196)](_0x3ee2ee);}finally{_0x2a240c[_0x3d2bab(0x1d6)](),_0x143cbd[_0x3d2bab(0x1c5)]();}}[_0x1e4e03(0x196)](_0x5cbdad){const _0x34be11=_0x1e4e03;if(_0x5cbdad instanceof _0x3962b6)throw _0x5cbdad;if(_0x5cbdad instanceof Error&&_0x34be11(0x1a3)===_0x5cbdad[_0x34be11(0x1ab)])throw new _0x3962b6(_0x34be11(0x1e0),this,{'originalError':_0x5cbdad});throw new _0x3962b6(_0x34be11(0x184),this,{'originalError':_0x5cbdad});}}
23
+ const _0x3baf81=_0x3335;(function(_0x3ce11a,_0x2829a){const _0x2a0320=_0x3335,_0x1b3454=_0x3ce11a();while(!![]){try{const _0x191b51=parseInt(_0x2a0320(0x185))/0x1*(parseInt(_0x2a0320(0x190))/0x2)+parseInt(_0x2a0320(0x188))/0x3*(parseInt(_0x2a0320(0x193))/0x4)+-parseInt(_0x2a0320(0x167))/0x5+parseInt(_0x2a0320(0x175))/0x6*(-parseInt(_0x2a0320(0x151))/0x7)+-parseInt(_0x2a0320(0x197))/0x8*(-parseInt(_0x2a0320(0x16a))/0x9)+-parseInt(_0x2a0320(0x1c8))/0xa*(parseInt(_0x2a0320(0x142))/0xb)+-parseInt(_0x2a0320(0x1cb))/0xc*(parseInt(_0x2a0320(0x1bd))/0xd);if(_0x191b51===_0x2829a)break;else _0x1b3454['push'](_0x1b3454['shift']());}catch(_0x868c1c){_0x1b3454['push'](_0x1b3454['shift']());}}}(_0x1df3,0x2b663));import{createParser as _0x9804e1}from'eventsource-parser';import{ContextPlugin as _0x3d9c7a}from'ckeditor5/src/core.js';import{CKEditorError as _0x2990ef}from'ckeditor5/src/utils.js';function _0x1df3(){const _0x518d84=['deleteFile','status','PATCH','/files/','get','1537260msGzuD','uploadUrl','queryAssistant','9aKHuZn','deleteDocument','AIConnector','true','improve-writing','getReader','/messages','application/json','isPremiumPlugin','ai.serviceUrl','/conversations?','6iKLrng','signal','_token','/reviews/system/','translate','executeCustomAction','data','abortController','/reviews/custom/calls/','ai-request-aborted','releaseLock','/messages/','continue','plugins','Bearer\x20','positiveCount','1DoPbeq','DELETE','_getStreamReader','51693UHQbNa','100','read','ai-request-failed','/calls/','/documents','requires','executeAction','468778bshEML','/calls','_handleError','60rfzZhL','https://ai.cke-cs.com/v1','statusText','/conversations/','1250408zjsFMQ','TRANSLATE','body','fetchDocument','uploadDocument','token','/web-resources','/actions/custom/calls/','make-shorter','/actions/system/','name','append','decode','upsertAIActionRating','then','/reviews/custom/calls','getModels','uploadFile','fetchConversation','fetchConversationMessages','totalCount','deleteWebResource','upsertAIReviewRating','fix-grammar','search','POST','upsertCustomAIReviewRating','Content-Type','CloudServices','callCustomReview','upsertAIChatRating','text','MAKE_TONE_CASUAL','context','push','group','deleteConversation','feed','4407gbhmar','stringify','/models/1','/files','make-longer','make-tone-casual','CONTINUE','isOfficialPlugin','pluginName','excludeEmpty','make-tone-formal','80dwwoZR','FIX_GRAMMAR','catch','516JORqvk','attributes','ai-missing-token','/ratings','_sendApiRequest','json','_decoder','length','139788cCknXR','upsertCustomAIActionRating','toString','/conversations','/web-resources/','value','PUT','/actions/custom/calls','define','IMPROVE_WRITING','MAKE_SHORTER','init','file','AbortError','GET','333893GnvrDR','fetchConversations','items','modificationId','reset','MAKE_LONGER','keys','request','callSystemReview','startConversation','parse','MAKE_TONE_FORMAL','_apiUrl','config','updateConversation','/documents/','limit'];_0x1df3=function(){return _0x518d84;};return _0x1df3();}function _0x3335(_0x24f61f,_0xf9a138){const _0x1df377=_0x1df3();return _0x3335=function(_0x333500,_0x58eb98){_0x333500=_0x333500-0x13c;let _0x126077=_0x1df377[_0x333500];return _0x126077;},_0x3335(_0x24f61f,_0xf9a138);}export var AIActionsNames;!function(_0x39804c){const _0x3b058c=_0x3335;_0x39804c[_0x3b058c(0x1c3)]=_0x3b058c(0x181),_0x39804c[_0x3b058c(0x1c9)]=_0x3b058c(0x1ae),_0x39804c[_0x3b058c(0x14b)]=_0x3b058c(0x16e),_0x39804c[_0x3b058c(0x156)]=_0x3b058c(0x1c1),_0x39804c[_0x3b058c(0x14c)]=_0x3b058c(0x19f),_0x39804c[_0x3b058c(0x1b7)]=_0x3b058c(0x1c2),_0x39804c[_0x3b058c(0x15c)]=_0x3b058c(0x1c7),_0x39804c[_0x3b058c(0x198)]=_0x3b058c(0x179);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x3d9c7a{[_0x3baf81(0x15d)];[_0x3baf81(0x177)];[_0x3baf81(0x140)];static get[_0x3baf81(0x18e)](){const _0x4b2121=_0x3baf81;return[_0x4b2121(0x1b3)];}static get[_0x3baf81(0x1c5)](){const _0x4b4ac8=_0x3baf81;return _0x4b4ac8(0x16c);}static get[_0x3baf81(0x1c4)](){return!0x0;}static get[_0x3baf81(0x172)](){return!0x0;}constructor(_0x4346b1){const _0x268350=_0x3baf81;super(_0x4346b1),this[_0x268350(0x1b8)][_0x268350(0x15e)][_0x268350(0x14a)](_0x268350(0x173),_0x268350(0x194)),this[_0x268350(0x15d)]=this[_0x268350(0x1b8)][_0x268350(0x15e)][_0x268350(0x166)](_0x268350(0x173)),this[_0x268350(0x177)]=null,this[_0x268350(0x140)]=new TextDecoder();}[_0x3baf81(0x14d)](){const _0x305234=_0x3baf81,_0x140a83=this[_0x305234(0x1b8)][_0x305234(0x182)][_0x305234(0x166)](_0x305234(0x1b3));if(!_0x140a83[_0x305234(0x19c)])throw new _0x2990ef(_0x305234(0x13c),this);this[_0x305234(0x177)]=_0x140a83[_0x305234(0x19c)];}[_0x3baf81(0x15a)](_0x2dfc62,_0x54c77d){const _0x56a5bf=_0x3baf81,_0x5d8375=this[_0x56a5bf(0x13e)](_0x56a5bf(0x145),_0x56a5bf(0x1b0),{'id':_0x2dfc62,'group':_0x54c77d});return{'getConversation':async()=>(await _0x5d8375[_0x56a5bf(0x158)])[_0x56a5bf(0x13f)](),'abortController':_0x5d8375[_0x56a5bf(0x17c)]};}[_0x3baf81(0x169)]({message:_0x222201,conversationId:_0x2bea2b,parts:_0x56f196,capabilities:_0x3bc5f1,model:_0x4771c1,quickActionData:_0x5ae313}){const _0x30843e=_0x3baf81,_0x4440b8={..._0x5ae313&&{'quickActionData':_0x5ae313}},_0x338be8={'prompt':_0x222201,'content':_0x56f196,'model':_0x4771c1,..._0x3bc5f1&&{'capabilities':_0x3bc5f1},...Object[_0x30843e(0x157)](_0x4440b8)[_0x30843e(0x141)]>0x0&&{'attributes':_0x4440b8}},_0x251c9b=this[_0x30843e(0x13e)](_0x30843e(0x196)+_0x2bea2b+_0x30843e(0x170),_0x30843e(0x1b0),_0x338be8);return{'getStream':async()=>{const _0x490d18=_0x30843e,_0x176b45=(await _0x251c9b[_0x490d18(0x158)])[_0x490d18(0x199)];return this[_0x490d18(0x187)](_0x176b45);},'abortController':_0x251c9b[_0x30843e(0x17c)]};}[_0x3baf81(0x17a)]({content:_0x4e824f,message:_0x5f3d17,model:_0x598d33,outputFormat:_0x186b41}){const _0x319a24=_0x3baf81,_0x489d02={'content':[{'type':_0x319a24(0x1b6),'content':_0x4e824f}],'prompt':_0x5f3d17,'model':_0x598d33,'outputFormat':_0x186b41},_0x583d85=this[_0x319a24(0x13e)](_0x319a24(0x149),_0x319a24(0x1b0),_0x489d02);return{'getStream':async()=>{const _0x2c855f=_0x319a24,_0x55c900=(await _0x583d85[_0x2c855f(0x158)])[_0x2c855f(0x199)];return this[_0x2c855f(0x187)](_0x55c900);},'abortController':_0x583d85[_0x319a24(0x17c)]};}[_0x3baf81(0x18f)]({actionName:_0x9a5a44,content:_0x39d9cf,args:_0x17fb2d}){const _0x459530=_0x3baf81,_0x4341ad={'content':[{'type':_0x459530(0x1b6),'content':_0x39d9cf}],'args':_0x17fb2d},_0x1848a6=this[_0x459530(0x13e)](_0x459530(0x1a0)+_0x9a5a44+_0x459530(0x191),_0x459530(0x1b0),_0x4341ad);return{'getStream':async()=>{const _0x3e0813=_0x459530,_0x4fa841=(await _0x1848a6[_0x3e0813(0x158)])[_0x3e0813(0x199)];return this[_0x3e0813(0x187)](_0x4fa841);},'abortController':_0x1848a6[_0x459530(0x17c)]};}[_0x3baf81(0x1a8)](_0x345bf0,_0x151771,_0x54e464){const _0x228d24=_0x3baf81,_0x4c4db9=new FormData();_0x4c4db9[_0x228d24(0x1a2)](_0x228d24(0x14e),_0x151771,_0x151771[_0x228d24(0x1a1)]),_0x54e464&&_0x4c4db9[_0x228d24(0x1a2)](_0x228d24(0x1cc),JSON[_0x228d24(0x1be)](_0x54e464));const _0xbb843=this[_0x228d24(0x13e)](_0x228d24(0x196)+_0x345bf0+_0x228d24(0x1c0),_0x228d24(0x1b0),_0x4c4db9);return{'getId':async()=>(await _0xbb843[_0x228d24(0x158)])[_0x228d24(0x13f)](),'abortController':_0xbb843[_0x228d24(0x17c)]};}[_0x3baf81(0x19a)](_0x5c5c71,_0x4b7dcb){const _0x27086e=_0x3baf81,_0x947d9b=this[_0x27086e(0x13e)](_0x27086e(0x196)+_0x5c5c71+_0x27086e(0x160)+_0x4b7dcb,_0x27086e(0x150));return{'getDocument':async()=>(await _0x947d9b[_0x27086e(0x158)])[_0x27086e(0x13f)](),'abortController':_0x947d9b[_0x27086e(0x17c)]};}[_0x3baf81(0x19b)](_0xe27501,_0x1d05b1,_0x33919d){const _0x563921=_0x3baf81,_0x164c0e={'content':_0x1d05b1};_0x33919d&&(_0x164c0e[_0x563921(0x1cc)]=_0x33919d);const _0x15a69c=this[_0x563921(0x13e)](_0x563921(0x196)+_0xe27501+_0x563921(0x18d),_0x563921(0x1b0),_0x164c0e);return{'getId':async()=>(await _0x15a69c[_0x563921(0x158)])[_0x563921(0x13f)](),'abortController':_0x15a69c[_0x563921(0x17c)]};}[_0x3baf81(0x152)](_0x41e716,_0x4f712f){const _0x25728b=_0x3baf81,_0x3059d5=new URLSearchParams();_0x3059d5[_0x25728b(0x1a2)](_0x25728b(0x1c6),_0x25728b(0x16d)),_0x3059d5[_0x25728b(0x1a2)](_0x25728b(0x161),_0x25728b(0x189)),_0x3059d5[_0x25728b(0x1a2)](_0x25728b(0x1ba),_0x41e716),_0x4f712f&&_0x3059d5[_0x25728b(0x1a2)](_0x25728b(0x1af),_0x4f712f);const _0x55c2bb=this[_0x25728b(0x13e)](_0x25728b(0x174)+_0x3059d5[_0x25728b(0x144)](),_0x25728b(0x150));return{'getConversations':async()=>{const _0x4346a5=_0x25728b,_0x283ffb=await _0x55c2bb[_0x4346a5(0x158)];return(await _0x283ffb[_0x4346a5(0x13f)]())[_0x4346a5(0x153)];},'abortController':_0x55c2bb[_0x25728b(0x17c)]};}[_0x3baf81(0x1bb)](_0x235bd8){const _0x44c75d=_0x3baf81,_0x3f7c7a=this[_0x44c75d(0x13e)](_0x44c75d(0x196)+_0x235bd8,_0x44c75d(0x186));return{'execute':async()=>{const _0xd9ef64=_0x44c75d;await _0x3f7c7a[_0xd9ef64(0x158)];},'abortController':_0x3f7c7a[_0x44c75d(0x17c)]};}[_0x3baf81(0x15f)](_0x53463b,_0x53a733){const _0x4265d6=_0x3baf81,_0x23ec34=this[_0x4265d6(0x13e)](_0x4265d6(0x196)+_0x53463b,_0x4265d6(0x164),_0x53a733);return{'getResult':async()=>(await _0x23ec34[_0x4265d6(0x158)],_0x53a733),'abortController':_0x23ec34[_0x4265d6(0x17c)]};}[_0x3baf81(0x1a9)](_0x50238e){const _0x354429=_0x3baf81,_0x516385=this[_0x354429(0x13e)](_0x354429(0x196)+_0x50238e,_0x354429(0x150));return{'getConversation':async()=>(await _0x516385[_0x354429(0x158)])[_0x354429(0x13f)](),'abortController':_0x516385[_0x354429(0x17c)]};}[_0x3baf81(0x1aa)](_0x519df0){const _0x232986=_0x3baf81,_0x1ae764=this[_0x232986(0x13e)](_0x232986(0x196)+_0x519df0+_0x232986(0x170),_0x232986(0x150));return{'getMessages':async()=>{const _0x33f784=_0x232986,_0x7d4c8f=await _0x1ae764[_0x33f784(0x158)];return(await _0x7d4c8f[_0x33f784(0x13f)]())[_0x33f784(0x153)];},'abortController':_0x1ae764[_0x232986(0x17c)]};}[_0x3baf81(0x168)](_0x14afab,_0x4892d5,_0x538b05){const _0x437e64=_0x3baf81,_0x1ef6e0=this[_0x437e64(0x13e)](_0x437e64(0x196)+_0x14afab+_0x437e64(0x19d),_0x437e64(0x1b0),{'url':_0x4892d5,'attributes':_0x538b05});return{'getId':async()=>(await _0x1ef6e0[_0x437e64(0x158)])[_0x437e64(0x13f)](),'abortController':_0x1ef6e0[_0x437e64(0x17c)]};}[_0x3baf81(0x1a7)](){const _0x10f280=_0x3baf81,_0x522890=this[_0x10f280(0x13e)](_0x10f280(0x1bf),_0x10f280(0x150));return{'list':async()=>await(await _0x522890[_0x10f280(0x158)])[_0x10f280(0x13f)](),'abortController':_0x522890[_0x10f280(0x17c)]};}[_0x3baf81(0x162)](_0x5d0ec2,_0x182e30){const _0x349e35=_0x3baf81,_0x3c8379=this[_0x349e35(0x13e)](_0x349e35(0x196)+_0x5d0ec2+_0x349e35(0x165)+_0x182e30,_0x349e35(0x186));return{'execute':async()=>{const _0x1169b6=_0x349e35;await _0x3c8379[_0x1169b6(0x158)];},'abortController':_0x3c8379[_0x349e35(0x17c)]};}[_0x3baf81(0x16b)](_0x574288,_0x196142){const _0x574281=_0x3baf81,_0xc82e36=this[_0x574281(0x13e)](_0x574281(0x196)+_0x574288+_0x574281(0x160)+_0x196142,_0x574281(0x186));return{'execute':async()=>{const _0x413968=_0x574281;await _0xc82e36[_0x413968(0x158)];},'abortController':_0xc82e36[_0x574281(0x17c)]};}[_0x3baf81(0x1ac)](_0x3cc8e7,_0x203d16){const _0xb21656=_0x3baf81,_0x70b7ee=this[_0xb21656(0x13e)](_0xb21656(0x196)+_0x3cc8e7+_0xb21656(0x146)+_0x203d16,_0xb21656(0x186));return{'execute':async()=>{const _0x332817=_0xb21656;await _0x70b7ee[_0x332817(0x158)];},'abortController':_0x70b7ee[_0xb21656(0x17c)]};}[_0x3baf81(0x159)]({reviewName:_0x4ec757,content:_0xd2437f,args:_0x5df69d}){const _0x41909a=_0x3baf81,_0x29504c=this[_0x41909a(0x13e)](_0x41909a(0x178)+_0x4ec757+_0x41909a(0x191),_0x41909a(0x1b0),{'content':[{'type':_0x41909a(0x1b6),'content':_0xd2437f}],'args':_0x5df69d});return{'getStream':async()=>{const _0x201553=_0x41909a,_0xe34cb5=(await _0x29504c[_0x201553(0x158)])[_0x201553(0x199)];return this[_0x201553(0x187)](_0xe34cb5);},'abortController':_0x29504c[_0x41909a(0x17c)]};}[_0x3baf81(0x1b4)]({content:_0x3a3982,prompt:_0x2968eb,model:_0x52e9d7}){const _0x534685=_0x3baf81,_0x10548b=this[_0x534685(0x13e)](_0x534685(0x1a6),_0x534685(0x1b0),{'content':[{'type':_0x534685(0x1b6),'content':_0x3a3982}],'prompt':_0x2968eb,'model':_0x52e9d7});return{'getStream':async()=>{const _0x1612d9=_0x534685,_0x39ee5f=(await _0x10548b[_0x1612d9(0x158)])[_0x1612d9(0x199)];return this[_0x1612d9(0x187)](_0x39ee5f);},'abortController':_0x10548b[_0x534685(0x17c)]};}[_0x3baf81(0x1b5)](_0x2de143,_0x14f74b,_0x309f9b){const _0x1dc7cf=_0x3baf81,_0x5c8f20=this[_0x1dc7cf(0x13e)](_0x1dc7cf(0x196)+_0x2de143+_0x1dc7cf(0x180)+_0x14f74b+_0x1dc7cf(0x13d),_0x1dc7cf(0x148),{'positiveCount':_0x309f9b[_0x1dc7cf(0x184)],'totalCount':_0x309f9b[_0x1dc7cf(0x1ab)],'modificationId':_0x309f9b[_0x1dc7cf(0x154)]});return{'execute':async()=>{const _0x13d2ed=_0x1dc7cf;await _0x5c8f20[_0x13d2ed(0x158)];},'abortController':_0x5c8f20[_0x1dc7cf(0x17c)]};}[_0x3baf81(0x1a4)](_0x24c025,_0x439a59,_0x5d0433){const _0xd3eaa8=_0x3baf81,_0x5c643f=this[_0xd3eaa8(0x13e)](_0xd3eaa8(0x1a0)+_0x24c025+_0xd3eaa8(0x18c)+_0x439a59+_0xd3eaa8(0x13d),_0xd3eaa8(0x148),{'positiveCount':_0x5d0433[_0xd3eaa8(0x184)],'totalCount':_0x5d0433[_0xd3eaa8(0x1ab)]});return{'execute':async()=>{const _0x3ce531=_0xd3eaa8;await _0x5c643f[_0x3ce531(0x158)];},'abortController':_0x5c643f[_0xd3eaa8(0x17c)]};}[_0x3baf81(0x143)](_0x1e6628,_0x11edfd){const _0x467126=_0x3baf81,_0x49febe=this[_0x467126(0x13e)](_0x467126(0x19e)+_0x1e6628+_0x467126(0x13d),_0x467126(0x148),{'positiveCount':_0x11edfd[_0x467126(0x184)],'totalCount':_0x11edfd[_0x467126(0x1ab)]});return{'execute':async()=>{const _0x5ca9fa=_0x467126;await _0x49febe[_0x5ca9fa(0x158)];},'abortController':_0x49febe[_0x467126(0x17c)]};}[_0x3baf81(0x1ad)](_0x4299ee,_0x34183b,_0x5dfbfc,_0x408b0d){const _0x15148c=_0x3baf81,_0x130acf=this[_0x15148c(0x13e)](_0x15148c(0x178)+_0x4299ee+_0x15148c(0x18c)+_0x34183b+_0x15148c(0x13d),_0x15148c(0x148),{'positiveCount':_0x5dfbfc[_0x15148c(0x184)],'totalCount':_0x5dfbfc[_0x15148c(0x1ab)],'dataId':_0x408b0d});return{'execute':async()=>{const _0x4c6f91=_0x15148c;await _0x130acf[_0x4c6f91(0x158)];},'abortController':_0x130acf[_0x15148c(0x17c)]};}[_0x3baf81(0x1b1)](_0x2b1e76,_0x34b7f1,_0x98b568){const _0x319d32=_0x3baf81,_0x575312=this[_0x319d32(0x13e)](_0x319d32(0x17d)+_0x2b1e76+_0x319d32(0x13d),_0x319d32(0x148),{'positiveCount':_0x34b7f1[_0x319d32(0x184)],'totalCount':_0x34b7f1[_0x319d32(0x1ab)],'dataId':_0x98b568});return{'execute':async()=>{const _0x37f42d=_0x319d32;await _0x575312[_0x37f42d(0x158)];},'abortController':_0x575312[_0x319d32(0x17c)]};}[_0x3baf81(0x13e)](_0x5b9a91,_0x3bba1e,_0x339164){const _0x3e963a=_0x3baf81,_0x218fac=new AbortController(),_0x4304cd=_0x339164 instanceof FormData,_0x2e8903={'Authorization':_0x3e963a(0x183)+this[_0x3e963a(0x177)]?.[_0x3e963a(0x147)]};_0x339164&&!_0x4304cd&&(_0x2e8903[_0x3e963a(0x1b2)]=_0x3e963a(0x171));const _0xc6cf0d={'method':_0x3bba1e,'headers':_0x2e8903,'signal':_0x218fac[_0x3e963a(0x176)]};return _0x339164&&(_0xc6cf0d[_0x3e963a(0x199)]=_0x4304cd?_0x339164:JSON[_0x3e963a(0x1be)](_0x339164)),{'request':fetch(''+this[_0x3e963a(0x15d)]+_0x5b9a91,_0xc6cf0d)[_0x3e963a(0x1ca)](_0x514590=>{const _0x3bb346=_0x3e963a;this[_0x3bb346(0x192)](_0x514590);})[_0x3e963a(0x1a5)](_0x32e98=>{const _0x325644=_0x3e963a;if(!_0x32e98['ok'])throw new _0x2990ef(_0x325644(0x18b),this,{'url':this[_0x325644(0x15d)],'path':_0x5b9a91,'method':_0x3bba1e,'body':_0x339164,'status':(_0x32e98||{})[_0x325644(0x163)],'statusText':(_0x32e98||{})[_0x325644(0x195)]});return _0x32e98;}),'abortController':_0x218fac};}async*[_0x3baf81(0x187)](_0x415d00){const _0x376ca8=_0x3baf81,_0x54f5f4=[],_0x31a73a=_0x415d00[_0x376ca8(0x16f)](),_0x5c85e0=_0x9804e1({'onError':_0x1b70c0=>{const _0x23e25f=_0x376ca8;this[_0x23e25f(0x192)](_0x1b70c0);},'onEvent':_0x291e52=>{const _0x9b66b7=_0x376ca8;_0x291e52[_0x9b66b7(0x17b)]=JSON[_0x9b66b7(0x15b)](_0x291e52[_0x9b66b7(0x17b)]),_0x54f5f4[_0x9b66b7(0x1b9)](_0x291e52);}});try{let _0x44ece7=!0x1;for(;!_0x44ece7;){const {done:_0x2f64ae,value:_0x548581}=await _0x31a73a[_0x376ca8(0x18a)]();_0x2f64ae&&(_0x44ece7=!0x0),_0x5c85e0[_0x376ca8(0x1bc)](this[_0x376ca8(0x140)][_0x376ca8(0x1a3)](_0x548581,{'stream':!0x0})),yield*_0x54f5f4,_0x54f5f4[_0x376ca8(0x141)]=0x0;}}catch(_0x352bda){this[_0x376ca8(0x192)](_0x352bda);}finally{_0x31a73a[_0x376ca8(0x17f)](),_0x5c85e0[_0x376ca8(0x155)]();}}[_0x3baf81(0x192)](_0x2b8ce5){const _0x20832e=_0x3baf81;if(_0x2b8ce5 instanceof _0x2990ef)throw _0x2b8ce5;if(_0x2b8ce5 instanceof Error&&_0x20832e(0x14f)===_0x2b8ce5[_0x20832e(0x1a1)])throw new _0x2990ef(_0x20832e(0x17e),this,{'originalError':_0x2b8ce5});throw new _0x2990ef(_0x20832e(0x18b),this,{'originalError':_0x2b8ce5});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5154(_0xee5812,_0x5edd34){const _0x5df90e=_0x5df9();return _0x5154=function(_0x5154a1,_0x48a13e){_0x5154a1=_0x5154a1-0x12f;let _0x12718d=_0x5df90e[_0x5154a1];return _0x12718d;},_0x5154(_0xee5812,_0x5edd34);}const _0x42a3e7=_0x5154;(function(_0x1cc92a,_0x39df42){const _0x4d6adb=_0x5154,_0xbecf1a=_0x1cc92a();while(!![]){try{const _0xf2a426=parseInt(_0x4d6adb(0x15a))/0x1+parseInt(_0x4d6adb(0x15e))/0x2+-parseInt(_0x4d6adb(0x194))/0x3*(-parseInt(_0x4d6adb(0x189))/0x4)+-parseInt(_0x4d6adb(0x179))/0x5*(-parseInt(_0x4d6adb(0x154))/0x6)+-parseInt(_0x4d6adb(0x191))/0x7*(parseInt(_0x4d6adb(0x16c))/0x8)+-parseInt(_0x4d6adb(0x18d))/0x9+-parseInt(_0x4d6adb(0x163))/0xa;if(_0xf2a426===_0x39df42)break;else _0xbecf1a['push'](_0xbecf1a['shift']());}catch(_0x58b870){_0xbecf1a['push'](_0xbecf1a['shift']());}}}(_0x5df9,0xc7b37));import{ViewDowncastWriter as _0x391cd5}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x36a858,Editor as _0x2175c5}from'ckeditor5/src/core.js';import{uid as _0x1179b5}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x3ebfa4}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x42a3e7(0x165);export class AIEditing extends _0x36a858{[_0x42a3e7(0x14b)]=null;[_0x42a3e7(0x13c)]=!0x1;[_0x42a3e7(0x141)];static get[_0x42a3e7(0x18b)](){const _0x154b67=_0x42a3e7;return _0x154b67(0x14e);}static get[_0x42a3e7(0x157)](){return!0x0;}static get[_0x42a3e7(0x164)](){return!0x0;}get[_0x42a3e7(0x13f)](){const _0x39559f=_0x42a3e7;if(!this[_0x39559f(0x141)]){const _0x18792f=_0x3ebfa4(this[_0x39559f(0x196)]),_0x4af5d1=_0x18792f[_0x39559f(0x16e)][_0x39559f(0x17e)](_0x39559f(0x130))&&_0x18792f[_0x39559f(0x16e)][_0x39559f(0x169)](_0x39559f(0x130))[_0x39559f(0x13f)];this[_0x39559f(0x141)]=_0x4af5d1||_0x1179b5();}return this[_0x39559f(0x141)];}[_0x42a3e7(0x14f)](){const _0x2df148=_0x42a3e7,_0x41a035=_0x3ebfa4(this[_0x2df148(0x196)]),_0x56c8bf=_0x41a035[_0x2df148(0x16d)],_0x4f6f63=_0x41a035[_0x2df148(0x197)][_0x2df148(0x15c)](_0x56c8bf[_0x2df148(0x14a)][_0x2df148(0x13b)](),{'convertAiChatSelectionMarker':!0x0}),_0x35c5d1=new _0x391cd5(_0x41a035[_0x2df148(0x173)][_0x2df148(0x162)][_0x2df148(0x14a)]);this[_0x2df148(0x17b)](_0x4f6f63,_0x35c5d1);let _0x3a7266=_0x41a035[_0x2df148(0x197)][_0x2df148(0x153)][_0x2df148(0x16a)](_0x4f6f63);const _0x4d9a56=this[_0x2df148(0x134)](),_0x201ea4=[];for(const _0x3eac03 of _0x4d9a56){const _0x27edda='<'+_0x3eac03[_0x2df148(0x155)]+_0x2df148(0x192)+_0x3eac03[_0x2df148(0x155)]+_0x2df148(0x147),_0x553573=_0x3a7266[_0x2df148(0x138)](_0x27edda);_0x3a7266=_0x3a7266[_0x2df148(0x14c)](0x0,_0x553573)+_0x3a7266[_0x2df148(0x14c)](_0x553573+_0x27edda[_0x2df148(0x184)]);const _0x57a1ef='<'+_0x3eac03[_0x2df148(0x155)]+_0x2df148(0x150)+_0x3eac03[_0x2df148(0x155)]+_0x2df148(0x15f),_0x15842b=_0x3a7266[_0x2df148(0x138)](_0x57a1ef);_0x3a7266=_0x3a7266[_0x2df148(0x14c)](0x0,_0x15842b)+_0x3a7266[_0x2df148(0x14c)](_0x15842b+_0x57a1ef[_0x2df148(0x184)]),_0x201ea4[_0x2df148(0x132)]({'markerName':_0x3eac03[_0x2df148(0x155)],'start':_0x553573,'end':_0x15842b,'htmlFragment':_0x3a7266[_0x2df148(0x14c)](_0x553573,_0x15842b)});}return{'content':_0x3a7266,'version':_0x41a035[_0x2df148(0x16d)][_0x2df148(0x14a)][_0x2df148(0x152)],'sessionId':this[_0x2df148(0x13f)],'selections':_0x201ea4};}async[_0x42a3e7(0x17d)](){const _0x1ba958=_0x42a3e7;this[_0x1ba958(0x196)]instanceof _0x2175c5?this[_0x1ba958(0x18f)](this[_0x1ba958(0x196)]):this[_0x1ba958(0x172)](this[_0x1ba958(0x196)][_0x1ba958(0x185)],_0x1ba958(0x18c),(_0x3e49ae,_0x8b5419)=>{const _0x1962da=_0x1ba958;_0x8b5419['on'](_0x1962da(0x183),()=>{const _0x4f1265=_0x1962da;this[_0x4f1265(0x18f)](_0x8b5419);});});}[_0x42a3e7(0x18f)](_0x566e07){const _0x17c517=_0x42a3e7;_0x566e07[_0x17c517(0x158)][_0x17c517(0x15d)](_0x17c517(0x177))[_0x17c517(0x168)]({'model':_0x17c517(0x165),'view':{'classes':[_0x17c517(0x142),_0x17c517(0x17c)],'priority':0xc}}),_0x566e07[_0x17c517(0x158)][_0x17c517(0x15d)](_0x17c517(0x166))[_0x17c517(0x135)]({'model':_0x17c517(0x165),'view':(_0x4bb661,{writer:_0x562f43,options:_0x3ef6})=>_0x3ef6[_0x17c517(0x175)]?_0x562f43[_0x17c517(0x143)](_0x4bb661[_0x17c517(0x148)]+':'+(_0x4bb661[_0x17c517(0x17f)]?_0x17c517(0x180):_0x17c517(0x18e))):null});}[_0x42a3e7(0x161)](_0x4bda8d,_0x413449,_0x30bd67=!0x1,_0x558b46=!0x1){const _0x58a9f5=_0x42a3e7;if(this[_0x58a9f5(0x13c)]&&!_0x558b46)return!0x1;const _0x5d0cab=_0x3ebfa4(this[_0x58a9f5(0x196)])[_0x58a9f5(0x16d)];return _0x5d0cab[_0x58a9f5(0x15b)](_0x405f96=>{const _0x42246d=_0x58a9f5;this[_0x42246d(0x14b)]&&this[_0x42246d(0x159)](this[_0x42246d(0x14b)]),this[_0x42246d(0x14b)]=_0x413449,this[_0x42246d(0x13c)]=_0x30bd67;let _0x4ebf58=0x0;for(let _0x6d9221 of _0x4bda8d){const _0x3d5354=_0x42246d(0x16f)+_0x4ebf58;if(_0x6d9221[_0x42246d(0x180)][_0x42246d(0x188)]){const _0x387bd3=_0x6d9221[_0x42246d(0x180)][_0x42246d(0x14d)](({item:_0x26aba9})=>!_0x5d0cab[_0x42246d(0x176)][_0x42246d(0x193)](_0x26aba9),{'boundaries':_0x6d9221});_0x6d9221=_0x405f96[_0x42246d(0x178)](_0x387bd3,_0x6d9221[_0x42246d(0x18e)]);}_0x405f96[_0x42246d(0x13a)](_0x3d5354,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x6d9221}),_0x4ebf58++;}}),window[_0x58a9f5(0x186)]()?.[_0x58a9f5(0x160)](),!0x0;}[_0x42a3e7(0x159)](_0x545728){const _0x26d509=_0x42a3e7;if(this[_0x26d509(0x14b)]!=_0x545728)return!0x1;this[_0x26d509(0x14b)]=null,this[_0x26d509(0x13c)]=!0x1;const _0x4bd2d3=_0x3ebfa4(this[_0x26d509(0x196)]),_0x4877ee=_0x4bd2d3[_0x26d509(0x16d)][_0x26d509(0x18a)][_0x26d509(0x151)](_0x26d509(0x165));return _0x4bd2d3[_0x26d509(0x16d)][_0x26d509(0x15b)](_0x2a30e4=>{const _0x12bef8=_0x26d509;for(const _0x132543 of _0x4877ee)_0x2a30e4[_0x12bef8(0x144)](_0x132543);}),!0x0;}[_0x42a3e7(0x140)](_0x1590da){const _0x22c8c1=_0x42a3e7,_0x4fba58=_0x3ebfa4(this[_0x22c8c1(0x196)]),_0x2feac4=_0x4fba58[_0x22c8c1(0x197)][_0x22c8c1(0x15c)](_0x1590da),_0x38c62f=new _0x391cd5(_0x4fba58[_0x22c8c1(0x173)][_0x22c8c1(0x162)][_0x22c8c1(0x14a)]);return this[_0x22c8c1(0x17b)](_0x2feac4,_0x38c62f),_0x2feac4;}[_0x42a3e7(0x17b)](_0x49de5c,_0x3aa8d0){const _0x290557=_0x42a3e7;let _0x59cbc6=!0x1;const _0x1da49f=new Set();for(const _0x23ab9c of _0x49de5c[_0x290557(0x136)]()){const _0x6c080=_0x23ab9c['is'](_0x290557(0x195))||_0x23ab9c['is'](_0x290557(0x17a));if(!_0x23ab9c['is'](_0x290557(0x133)))continue;(this[_0x290557(0x17b)](_0x23ab9c,_0x3aa8d0)||_0x6c080)&&(_0x3aa8d0[_0x290557(0x146)](_0x290557(0x174),this[_0x290557(0x13e)](_0x1da49f),_0x23ab9c),_0x59cbc6=!0x0);}return _0x59cbc6;}[_0x42a3e7(0x13e)](_0x5f365e){const _0x403167=_0x42a3e7;let _0x3fd625;do{_0x3fd625='';for(let _0x1ec550=0x0;_0x1ec550<0x4;_0x1ec550++)_0x3fd625+=String[_0x403167(0x139)](0x61+Math[_0x403167(0x190)](0x1a*Math[_0x403167(0x171)]()));}while(_0x5f365e[_0x403167(0x17e)](_0x3fd625));return _0x5f365e[_0x403167(0x18c)](_0x3fd625),_0x3fd625;}[_0x42a3e7(0x137)](){const _0x1d3790=_0x42a3e7,{model:_0x98d60d}=_0x3ebfa4(this[_0x1d3790(0x196)]),_0x2a76ad=_0x98d60d[_0x1d3790(0x14a)][_0x1d3790(0x12f)],_0x3600df=_0x98d60d[_0x1d3790(0x182)](_0x2a76ad),_0x4f8fe0=[],_0x7a100=_0x98d60d[_0x1d3790(0x145)](_0x3600df)[_0x1d3790(0x167)]();for(const {item:_0x2ba256}of _0x7a100)_0x2ba256['is'](_0x1d3790(0x181))?_0x4f8fe0[_0x1d3790(0x132)](_0x2ba256[_0x1d3790(0x197)]):_0x2ba256['is'](_0x1d3790(0x133))&&_0x4f8fe0[_0x1d3790(0x184)]>0x0&&'\x20'!==_0x4f8fe0[_0x4f8fe0[_0x1d3790(0x184)]-0x1]&&_0x4f8fe0[_0x1d3790(0x132)]('\x20');return'\x22'+_0x4f8fe0[_0x1d3790(0x16b)]('')[_0x1d3790(0x13d)]()+'\x22';}[_0x42a3e7(0x134)](){const _0x554a93=_0x42a3e7,_0x4f8d08=_0x3ebfa4(this[_0x554a93(0x196)])[_0x554a93(0x16d)];return Array[_0x554a93(0x187)](_0x4f8d08[_0x554a93(0x18a)][_0x554a93(0x151)](_0x554a93(0x165)))[_0x554a93(0x149)]((_0x5a2710,_0x55b2b9)=>_0x5a2710[_0x554a93(0x156)]()[_0x554a93(0x131)](_0x55b2b9[_0x554a93(0x156)]())?-0x1:_0x5a2710[_0x554a93(0x156)]()[_0x554a93(0x170)](_0x55b2b9[_0x554a93(0x156)]())?0x1:0x0);}}function _0x5df9(){const _0x3869d7=['version','processor','12vmblHh','name','getStart','isOfficialPlugin','conversion','hideFakeVisualSelection','1329579etWOFe','change','toView','for','2977224UEenmi',':end>','removeAllRanges','showFakeVisualSelection','view','35039380DIgVvA','isPremiumPlugin','ai-selection','dataDowncast','getWalker','markerToHighlight','get','toData','join','568BPYwYq','model','plugins','ai-selection:','isAfter','random','listenTo','editing','data-id','convertAiChatSelectionMarker','schema','editingDowncast','createRange','3561340VcJvcx','containerElement','_setDataIdsOnChildren','ck-ai-assistant-ui_theme','afterInit','has','isOpening','start','$textProxy','getSelectedContent','ready','length','editors','getSelection','from','isAtEnd','8GLydNn','markers','pluginName','add','3091149vPmpgG','end','_integrateEditor','floor','28959wszZWl',':start></','isContent','1074561IGcWts','emptyElement','context','data','selection','RealTimeCollaborationClient','isBefore','push','element','_getMarkersInDocumentOrder','markerToElement','getChildren','getSelectionText','indexOf','fromCharCode','addMarker','getRoot','_displayedFakeSelectionLocked','trim','_nextDataId','sessionId','modelToViewWithIds','_sessionId','ck-fake-ai-selection','createUIElement','removeMarker','createRangeIn','setAttribute',':start>','markerName','sort','document','_displayedFakeSelectionId','substring','getLastMatchingPosition','AIEditing','getDocumentData',':end></','getMarkersGroup'];_0x5df9=function(){return _0x3869d7;};return _0x5df9();}
23
+ const _0x3c56e6=_0x3ee3;(function(_0x40a7de,_0x11fc92){const _0x48540d=_0x3ee3,_0x4bbcf2=_0x40a7de();while(!![]){try{const _0x267847=-parseInt(_0x48540d(0x12e))/0x1*(-parseInt(_0x48540d(0x114))/0x2)+parseInt(_0x48540d(0x161))/0x3*(parseInt(_0x48540d(0x143))/0x4)+parseInt(_0x48540d(0x14e))/0x5+parseInt(_0x48540d(0x117))/0x6*(-parseInt(_0x48540d(0x107))/0x7)+parseInt(_0x48540d(0x11e))/0x8+-parseInt(_0x48540d(0x141))/0x9+-parseInt(_0x48540d(0x162))/0xa;if(_0x267847===_0x11fc92)break;else _0x4bbcf2['push'](_0x4bbcf2['shift']());}catch(_0x367431){_0x4bbcf2['push'](_0x4bbcf2['shift']());}}}(_0xf1b5,0x565c3));function _0x3ee3(_0x1c9d18,_0x1050c2){const _0xf1b502=_0xf1b5();return _0x3ee3=function(_0x3ee34c,_0x4aac3b){_0x3ee34c=_0x3ee34c-0xfc;let _0x4ea143=_0xf1b502[_0x3ee34c];return _0x4ea143;},_0x3ee3(_0x1c9d18,_0x1050c2);}import{ViewDowncastWriter as _0x2183ef}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x57a1f3,Editor as _0x44665d}from'ckeditor5/src/core.js';import{uid as _0x55f836}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x45c9b5}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x3c56e6(0x116);function _0xf1b5(){const _0x38c00c=['for','version','3452136mDFDwq','start','isOfficialPlugin','convertAiChatSelectionMarker','createUIElement','ck-ai-assistant-ui_theme','_displayedFakeSelectionLocked','getRoot','data','removeMarker','processor','getSelectionText','conversion','ai-selection:','_getMarkersInDocumentOrder','isOpening','16fHrXun','join','addMarker','context','markerToHighlight',':start></','trim','random','getWalker','ready','getSelection','isBefore','emptyElement','model','schema','showFakeVisualSelection','isAtEnd','editingDowncast','add','2705040wGQLhq','sessionId','4wgmskf','editors','_integrateEditor','from','$textProxy','_nextDataId','substring','setAttribute','getMarkersGroup','sort','containerElement','1935435DDPHvn','getChildren','data-id','createRange','markerToElement','push',':end></','RealTimeCollaborationClient','fromCharCode','ck-fake-ai-selection','view','length',':end>','toData','_sessionId','removeAllRanges','selection','_setDataIdsOnChildren','getLastMatchingPosition','1516917MMsWJT','4434980ScFzPz','getDocumentData','editing','end','isAfter','get','change','element','_displayedFakeSelectionId','afterInit','pluginName','name',':start>','getStart','651tWbDKc','getSelectedContent','markerName','createRangeIn','modelToViewWithIds','dataDowncast','plugins','hideFakeVisualSelection','has','indexOf','document','markers','AIEditing','25796QjbyqJ','isContent','ai-selection','27924LPFmWI','isPremiumPlugin','floor','listenTo','toView'];_0xf1b5=function(){return _0x38c00c;};return _0xf1b5();}export class AIEditing extends _0x57a1f3{[_0x3c56e6(0x101)]=null;[_0x3c56e6(0x124)]=!0x1;[_0x3c56e6(0x15c)];static get[_0x3c56e6(0x103)](){const _0x946acd=_0x3c56e6;return _0x946acd(0x113);}static get[_0x3c56e6(0x120)](){return!0x0;}static get[_0x3c56e6(0x118)](){return!0x0;}get[_0x3c56e6(0x142)](){const _0x4fb89a=_0x3c56e6;if(!this[_0x4fb89a(0x15c)]){const _0x4cb2a7=_0x45c9b5(this[_0x4fb89a(0x131)]),_0x416cfd=_0x4cb2a7[_0x4fb89a(0x10d)][_0x4fb89a(0x10f)](_0x4fb89a(0x155))&&_0x4cb2a7[_0x4fb89a(0x10d)][_0x4fb89a(0xfe)](_0x4fb89a(0x155))[_0x4fb89a(0x142)];this[_0x4fb89a(0x15c)]=_0x416cfd||_0x55f836();}return this[_0x4fb89a(0x15c)];}[_0x3c56e6(0x163)](){const _0x1d8ebb=_0x3c56e6,_0x3044cb=_0x45c9b5(this[_0x1d8ebb(0x131)]),_0x4a5bbe=_0x3044cb[_0x1d8ebb(0x13b)],_0x3d1bdf=_0x3044cb[_0x1d8ebb(0x126)][_0x1d8ebb(0x11b)](_0x4a5bbe[_0x1d8ebb(0x111)][_0x1d8ebb(0x125)](),{'convertAiChatSelectionMarker':!0x0}),_0x5a22db=new _0x2183ef(_0x3044cb[_0x1d8ebb(0x164)][_0x1d8ebb(0x158)][_0x1d8ebb(0x111)]);this[_0x1d8ebb(0x15f)](_0x3d1bdf,_0x5a22db);let _0x53cacc=_0x3044cb[_0x1d8ebb(0x126)][_0x1d8ebb(0x128)][_0x1d8ebb(0x15b)](_0x3d1bdf);const _0x624c07=this[_0x1d8ebb(0x12c)](),_0x5b05dd=[];for(const _0x5e3788 of _0x624c07){const _0x15ad2d='<'+_0x5e3788[_0x1d8ebb(0x104)]+_0x1d8ebb(0x133)+_0x5e3788[_0x1d8ebb(0x104)]+_0x1d8ebb(0x105),_0x1b21ab=_0x53cacc[_0x1d8ebb(0x110)](_0x15ad2d);_0x53cacc=_0x53cacc[_0x1d8ebb(0x149)](0x0,_0x1b21ab)+_0x53cacc[_0x1d8ebb(0x149)](_0x1b21ab+_0x15ad2d[_0x1d8ebb(0x159)]);const _0x2057ba='<'+_0x5e3788[_0x1d8ebb(0x104)]+_0x1d8ebb(0x154)+_0x5e3788[_0x1d8ebb(0x104)]+_0x1d8ebb(0x15a),_0x59c592=_0x53cacc[_0x1d8ebb(0x110)](_0x2057ba);_0x53cacc=_0x53cacc[_0x1d8ebb(0x149)](0x0,_0x59c592)+_0x53cacc[_0x1d8ebb(0x149)](_0x59c592+_0x2057ba[_0x1d8ebb(0x159)]),_0x5b05dd[_0x1d8ebb(0x153)]({'markerName':_0x5e3788[_0x1d8ebb(0x104)],'start':_0x1b21ab,'end':_0x59c592,'htmlFragment':_0x53cacc[_0x1d8ebb(0x149)](_0x1b21ab,_0x59c592)});}return{'content':_0x53cacc,'version':_0x3044cb[_0x1d8ebb(0x13b)][_0x1d8ebb(0x111)][_0x1d8ebb(0x11d)],'sessionId':this[_0x1d8ebb(0x142)],'selections':_0x5b05dd};}async[_0x3c56e6(0x102)](){const _0x2de3bf=_0x3c56e6;this[_0x2de3bf(0x131)]instanceof _0x44665d?this[_0x2de3bf(0x145)](this[_0x2de3bf(0x131)]):this[_0x2de3bf(0x11a)](this[_0x2de3bf(0x131)][_0x2de3bf(0x144)],_0x2de3bf(0x140),(_0x10e342,_0x7cb14c)=>{const _0x35cfa5=_0x2de3bf;_0x7cb14c['on'](_0x35cfa5(0x137),()=>{const _0x35a017=_0x35cfa5;this[_0x35a017(0x145)](_0x7cb14c);});});}[_0x3c56e6(0x145)](_0x2f3e37){const _0xb6abbb=_0x3c56e6;_0x2f3e37[_0xb6abbb(0x12a)][_0xb6abbb(0x11c)](_0xb6abbb(0x13f))[_0xb6abbb(0x132)]({'model':_0xb6abbb(0x116),'view':{'classes':[_0xb6abbb(0x157),_0xb6abbb(0x123)],'priority':0xc}}),_0x2f3e37[_0xb6abbb(0x12a)][_0xb6abbb(0x11c)](_0xb6abbb(0x10c))[_0xb6abbb(0x152)]({'model':_0xb6abbb(0x116),'view':(_0x20b463,{writer:_0x4aacd4,options:_0x177b61})=>_0x177b61[_0xb6abbb(0x121)]?_0x4aacd4[_0xb6abbb(0x122)](_0x20b463[_0xb6abbb(0x109)]+':'+(_0x20b463[_0xb6abbb(0x12d)]?_0xb6abbb(0x11f):_0xb6abbb(0xfc))):null});}[_0x3c56e6(0x13d)](_0x1ee0ab,_0x41975b,_0x49c3bd=!0x1,_0x171df9=!0x1){const _0x4e6afa=_0x3c56e6;if(this[_0x4e6afa(0x124)]&&!_0x171df9)return!0x1;const _0x1a951c=_0x45c9b5(this[_0x4e6afa(0x131)])[_0x4e6afa(0x13b)];return _0x1a951c[_0x4e6afa(0xff)](_0x1f3763=>{const _0x17df64=_0x4e6afa;this[_0x17df64(0x101)]&&this[_0x17df64(0x10e)](this[_0x17df64(0x101)]),this[_0x17df64(0x101)]=_0x41975b,this[_0x17df64(0x124)]=_0x49c3bd;let _0x249cf8=0x0;for(let _0x5147b8 of _0x1ee0ab){const _0x1700f2=_0x17df64(0x12b)+_0x249cf8;if(_0x5147b8[_0x17df64(0x11f)][_0x17df64(0x13e)]){const _0x99756e=_0x5147b8[_0x17df64(0x11f)][_0x17df64(0x160)](({item:_0x148be1})=>!_0x1a951c[_0x17df64(0x13c)][_0x17df64(0x115)](_0x148be1),{'boundaries':_0x5147b8});_0x5147b8=_0x1f3763[_0x17df64(0x151)](_0x99756e,_0x5147b8[_0x17df64(0xfc)]);}_0x1f3763[_0x17df64(0x130)](_0x1700f2,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5147b8}),_0x249cf8++;}}),window[_0x4e6afa(0x138)]()?.[_0x4e6afa(0x15d)](),!0x0;}[_0x3c56e6(0x10e)](_0x2c491b){const _0x43cd27=_0x3c56e6;if(this[_0x43cd27(0x101)]!=_0x2c491b)return!0x1;this[_0x43cd27(0x101)]=null,this[_0x43cd27(0x124)]=!0x1;const _0x229ab7=_0x45c9b5(this[_0x43cd27(0x131)]),_0x41b253=_0x229ab7[_0x43cd27(0x13b)][_0x43cd27(0x112)][_0x43cd27(0x14b)](_0x43cd27(0x116));return _0x229ab7[_0x43cd27(0x13b)][_0x43cd27(0xff)](_0xf35abb=>{const _0xe84129=_0x43cd27;for(const _0x32292b of _0x41b253)_0xf35abb[_0xe84129(0x127)](_0x32292b);}),!0x0;}[_0x3c56e6(0x10b)](_0xd3782f){const _0xdfa69=_0x3c56e6,_0x39d20e=_0x45c9b5(this[_0xdfa69(0x131)]),_0x22ef7e=_0x39d20e[_0xdfa69(0x126)][_0xdfa69(0x11b)](_0xd3782f),_0xc8e5bf=new _0x2183ef(_0x39d20e[_0xdfa69(0x164)][_0xdfa69(0x158)][_0xdfa69(0x111)]);return this[_0xdfa69(0x15f)](_0x22ef7e,_0xc8e5bf),_0x22ef7e;}[_0x3c56e6(0x15f)](_0x390578,_0x5d2f3a){const _0x2ebdf8=_0x3c56e6;let _0xc70d5b=!0x1;const _0x51bd0e=new Set();for(const _0xf3c28b of _0x390578[_0x2ebdf8(0x14f)]()){const _0x33a1cd=_0xf3c28b['is'](_0x2ebdf8(0x13a))||_0xf3c28b['is'](_0x2ebdf8(0x14d));if(!_0xf3c28b['is'](_0x2ebdf8(0x100)))continue;(this[_0x2ebdf8(0x15f)](_0xf3c28b,_0x5d2f3a)||_0x33a1cd)&&(_0x5d2f3a[_0x2ebdf8(0x14a)](_0x2ebdf8(0x150),this[_0x2ebdf8(0x148)](_0x51bd0e),_0xf3c28b),_0xc70d5b=!0x0);}return _0xc70d5b;}[_0x3c56e6(0x148)](_0x305864){const _0x59f181=_0x3c56e6;let _0x519d9c;do{_0x519d9c='';for(let _0x2e4529=0x0;_0x2e4529<0x4;_0x2e4529++)_0x519d9c+=String[_0x59f181(0x156)](0x61+Math[_0x59f181(0x119)](0x1a*Math[_0x59f181(0x135)]()));}while(_0x305864[_0x59f181(0x10f)](_0x519d9c));return _0x305864[_0x59f181(0x140)](_0x519d9c),_0x519d9c;}[_0x3c56e6(0x129)](){const _0xfd91d7=_0x3c56e6,{model:_0x3a7d7f}=_0x45c9b5(this[_0xfd91d7(0x131)]),_0x140066=_0x3a7d7f[_0xfd91d7(0x111)][_0xfd91d7(0x15e)],_0x59d0ae=_0x3a7d7f[_0xfd91d7(0x108)](_0x140066),_0xa0f6a9=[],_0x224307=_0x3a7d7f[_0xfd91d7(0x10a)](_0x59d0ae)[_0xfd91d7(0x136)]();for(const {item:_0x59ee61}of _0x224307)_0x59ee61['is'](_0xfd91d7(0x147))?_0xa0f6a9[_0xfd91d7(0x153)](_0x59ee61[_0xfd91d7(0x126)]):_0x59ee61['is'](_0xfd91d7(0x100))&&_0xa0f6a9[_0xfd91d7(0x159)]>0x0&&'\x20'!==_0xa0f6a9[_0xa0f6a9[_0xfd91d7(0x159)]-0x1]&&_0xa0f6a9[_0xfd91d7(0x153)]('\x20');return'\x22'+_0xa0f6a9[_0xfd91d7(0x12f)]('')[_0xfd91d7(0x134)]()+'\x22';}[_0x3c56e6(0x12c)](){const _0x35282f=_0x3c56e6,_0x5f378b=_0x45c9b5(this[_0x35282f(0x131)])[_0x35282f(0x13b)];return Array[_0x35282f(0x146)](_0x5f378b[_0x35282f(0x112)][_0x35282f(0x14b)](_0x35282f(0x116)))[_0x35282f(0x14c)]((_0x2d5e7c,_0x2cadce)=>_0x2d5e7c[_0x35282f(0x106)]()[_0x35282f(0x139)](_0x2cadce[_0x35282f(0x106)]())?-0x1:_0x2d5e7c[_0x35282f(0x106)]()[_0x35282f(0xfd)](_0x2cadce[_0x35282f(0x106)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x67d558=_0x43a1;(function(_0x3599bb,_0x45175a){const _0x2f26fe=_0x43a1,_0x308ac2=_0x3599bb();while(!![]){try{const _0x2ed784=-parseInt(_0x2f26fe(0x12f))/0x1*(parseInt(_0x2f26fe(0x11b))/0x2)+parseInt(_0x2f26fe(0x125))/0x3+parseInt(_0x2f26fe(0x122))/0x4*(-parseInt(_0x2f26fe(0x129))/0x5)+parseInt(_0x2f26fe(0x127))/0x6*(-parseInt(_0x2f26fe(0x12d))/0x7)+parseInt(_0x2f26fe(0x119))/0x8+parseInt(_0x2f26fe(0x12e))/0x9*(parseInt(_0x2f26fe(0x133))/0xa)+parseInt(_0x2f26fe(0x11f))/0xb;if(_0x2ed784===_0x45175a)break;else _0x308ac2['push'](_0x308ac2['shift']());}catch(_0x507ab3){_0x308ac2['push'](_0x308ac2['shift']());}}}(_0x5622,0x643ad));import{EmitterMixin as _0x4e696a}from'ckeditor5/src/utils.js';function _0x43a1(_0x164f32,_0x55a819){const _0x5622f0=_0x5622();return _0x43a1=function(_0x43a1a5,_0x5227b3){_0x43a1a5=_0x43a1a5-0x119;let _0x44a64d=_0x5622f0[_0x43a1a5];return _0x44a64d;},_0x43a1(_0x164f32,_0x55a819);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x67d558(0x11a)];function _0x5622(){const _0x2e64d3=['capabilitiesUpdated','6RaUIae','reset','setReasoning','init','9589294SmfTLJ','webSearch','setWebSearch','12352CJBUTu','isWebSearchEnabled','reasoning','43671HafWOq','_isWebSearchEnabled','2283018yCBvEO','fire','5dsOVLc','isReasoningEnabled','getCapabilitiesConfig','toggleReasoning','14MstGqd','14571FWoLds','159682nfEeFM','getCapabilitiesRequestData','_isReasoningEnabled','toggleWebSearch','2630ImrSHz','2732584UhIBbZ'];_0x5622=function(){return _0x2e64d3;};return _0x5622();}export class AICapabilities extends _0x4e696a(){[_0x67d558(0x126)];[_0x67d558(0x131)];constructor(){const _0x1db62=_0x67d558;super(),this[_0x1db62(0x126)]=!0x1,this[_0x1db62(0x131)]=!0x1;}[_0x67d558(0x11e)](){const _0x373206=_0x67d558;this[_0x373206(0x11c)]();}[_0x67d558(0x11c)](){const _0x20ebd2=_0x67d558;this[_0x20ebd2(0x121)](!0x1),this[_0x20ebd2(0x11d)](!0x1);}[_0x67d558(0x12b)](){const _0x3738ad=_0x67d558;return{'isWebSearchEnabled':this[_0x3738ad(0x126)],'isReasoningEnabled':this[_0x3738ad(0x131)]};}static[_0x67d558(0x130)](_0x20d989){const _0x1d31dd=_0x67d558,_0x287823={};return _0x20d989&&_0x20d989[_0x1d31dd(0x123)]&&(_0x287823[_0x1d31dd(0x120)]={}),_0x20d989&&_0x20d989[_0x1d31dd(0x12a)]&&(_0x287823[_0x1d31dd(0x124)]={}),_0x287823;}[_0x67d558(0x132)](){const _0x5c0802=_0x67d558;this[_0x5c0802(0x121)](!this[_0x5c0802(0x126)]);}[_0x67d558(0x12c)](){const _0x23923e=_0x67d558;this[_0x23923e(0x11d)](!this[_0x23923e(0x131)]);}[_0x67d558(0x121)](_0x24088d){const _0x1037b9=_0x67d558;_0x24088d!==this[_0x1037b9(0x126)]&&(this[_0x1037b9(0x126)]=_0x24088d,this[_0x1037b9(0x128)](_0x1037b9(0x11a),this[_0x1037b9(0x12b)]()));}[_0x67d558(0x11d)](_0x19c937){const _0x38861b=_0x67d558;_0x19c937!==this[_0x38861b(0x131)]&&(this[_0x38861b(0x131)]=_0x19c937,this[_0x38861b(0x128)](_0x38861b(0x11a),this[_0x38861b(0x12b)]()));}}
23
+ function _0x32db(_0x13750e,_0x28dd6c){const _0x3061a3=_0x3061();return _0x32db=function(_0x32dbb8,_0x21c318){_0x32dbb8=_0x32dbb8-0x92;let _0x4b7558=_0x3061a3[_0x32dbb8];return _0x4b7558;},_0x32db(_0x13750e,_0x28dd6c);}function _0x3061(){const _0x1ffcd0=['3790878BwSujg','getCapabilitiesConfig','capabilitiesUpdated','613505eLnSTa','isWebSearchEnabled','48726LuCxJs','reasoning','setReasoning','727058mkiUAk','4jajDYy','16728riUGcp','isReasoningEnabled','132012aaPNNs','setWebSearch','_isReasoningEnabled','reset','4LfSFhB','toggleWebSearch','4494270YFXHcd','webSearch','_isWebSearchEnabled','44gpOSHh','2779LEhdPe','toggleReasoning','init','getCapabilitiesRequestData','fire'];_0x3061=function(){return _0x1ffcd0;};return _0x3061();}const _0x5f2bb9=_0x32db;(function(_0x3db437,_0x2c40ea){const _0x743856=_0x32db,_0x12495a=_0x3db437();while(!![]){try{const _0xc2539d=-parseInt(_0x743856(0xa3))/0x1*(parseInt(_0x743856(0xab))/0x2)+-parseInt(_0x743856(0x9b))/0x3*(-parseInt(_0x743856(0xa4))/0x4)+parseInt(_0x743856(0x9e))/0x5+parseInt(_0x743856(0xa0))/0x6+parseInt(_0x743856(0x96))/0x7*(-parseInt(_0x743856(0xa5))/0x8)+parseInt(_0x743856(0xa7))/0x9+parseInt(_0x743856(0x92))/0xa*(parseInt(_0x743856(0x95))/0xb);if(_0xc2539d===_0x2c40ea)break;else _0x12495a['push'](_0x12495a['shift']());}catch(_0x1dd50c){_0x12495a['push'](_0x12495a['shift']());}}}(_0x3061,0xe13d5));import{EmitterMixin as _0x37c98e}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x5f2bb9(0x9d)];export class AICapabilities extends _0x37c98e(){[_0x5f2bb9(0x94)];[_0x5f2bb9(0xa9)];constructor(){const _0x42a72e=_0x5f2bb9;super(),this[_0x42a72e(0x94)]=!0x1,this[_0x42a72e(0xa9)]=!0x1;}[_0x5f2bb9(0x98)](){const _0x46fe48=_0x5f2bb9;this[_0x46fe48(0xaa)]();}[_0x5f2bb9(0xaa)](){const _0x1b7158=_0x5f2bb9;this[_0x1b7158(0xa8)](!0x1),this[_0x1b7158(0xa2)](!0x1);}[_0x5f2bb9(0x9c)](){const _0x56c2df=_0x5f2bb9;return{'isWebSearchEnabled':this[_0x56c2df(0x94)],'isReasoningEnabled':this[_0x56c2df(0xa9)]};}static[_0x5f2bb9(0x99)](_0x32e425){const _0x32aa20=_0x5f2bb9,_0x1a0472={};return _0x32e425&&_0x32e425[_0x32aa20(0x9f)]&&(_0x1a0472[_0x32aa20(0x93)]={}),_0x32e425&&_0x32e425[_0x32aa20(0xa6)]&&(_0x1a0472[_0x32aa20(0xa1)]={}),_0x1a0472;}[_0x5f2bb9(0xac)](){const _0xe9febb=_0x5f2bb9;this[_0xe9febb(0xa8)](!this[_0xe9febb(0x94)]);}[_0x5f2bb9(0x97)](){const _0x5c7d66=_0x5f2bb9;this[_0x5c7d66(0xa2)](!this[_0x5c7d66(0xa9)]);}[_0x5f2bb9(0xa8)](_0xf96487){const _0x33f059=_0x5f2bb9;_0xf96487!==this[_0x33f059(0x94)]&&(this[_0x33f059(0x94)]=_0xf96487,this[_0x33f059(0x9a)](_0x33f059(0x9d),this[_0x33f059(0x9c)]()));}[_0x5f2bb9(0xa2)](_0x42d657){const _0x3281e4=_0x5f2bb9;_0x42d657!==this[_0x3281e4(0xa9)]&&(this[_0x3281e4(0xa9)]=_0x42d657,this[_0x3281e4(0x9a)](_0x3281e4(0x9d),this[_0x3281e4(0x9c)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7fecb1=_0xf98c;(function(_0x3b3893,_0x366e4c){const _0x5ed2b6=_0xf98c,_0xe692e8=_0x3b3893();while(!![]){try{const _0x4b2bda=parseInt(_0x5ed2b6(0x6c))/0x1+parseInt(_0x5ed2b6(0x7c))/0x2*(-parseInt(_0x5ed2b6(0x73))/0x3)+parseInt(_0x5ed2b6(0x72))/0x4+-parseInt(_0x5ed2b6(0x8a))/0x5+-parseInt(_0x5ed2b6(0x92))/0x6+-parseInt(_0x5ed2b6(0x95))/0x7+parseInt(_0x5ed2b6(0xa5))/0x8;if(_0x4b2bda===_0x366e4c)break;else _0xe692e8['push'](_0xe692e8['shift']());}catch(_0x308cea){_0xe692e8['push'](_0xe692e8['shift']());}}}(_0x83e1,0xc0555));function _0xf98c(_0x23113a,_0x239383){const _0x83e110=_0x83e1();return _0xf98c=function(_0xf98c08,_0x42bb3f){_0xf98c08=_0xf98c08-0x66;let _0x347e50=_0x83e110[_0xf98c08];return _0x347e50;},_0xf98c(_0x23113a,_0x239383);}import{CKEditorError as _0x3b7e58,EmitterMixin as _0x1d4046,logWarning as _0x1865c0,uid as _0x7f97ee}from'ckeditor5/src/utils.js';import{AIReply as _0x4e2095,isIgnoredReplyType as _0x1b1b34,isValidReplyType as _0xb82358,isReplyTitleType as _0x51b4ab,isSourceType as _0x1b291b}from'./aireply.js';function _0x83e1(){const _0x4004f9=['webSearchStarted','getStream','_isReasoning','actionCallId','interactionStopped','web-search','8050554VrFtpW','replyCreated','interactionFinished','5684567fiRvFJ','splice','sources','replyContentUpdated','source','modification-delta','interactionStarted','conversationTitle','interactionCreated','length','event','destroy','data','textDelta','abortController','content','28899536VnfORy','getDocumentContext','done','find','connector','message-metadata','ai-interaction-invalid-event-type','reasoningFinished','replyChangeGroupStateUpdated','currentRequest','ai-chat-interaction-error','_finalizeInteraction','293293egmLnj','getReply','fire','reasoningStarted','abort','error','1303428sIdPou','457437ieTQcD','forEach','sendRequest','messageId','delegate','stopListening','_isWebSearching','replies','callId','8tBjfRc','webSearchFinished','action-metadata','isStopped','push','stop','appendContent','reasoning','currentReply','createReply','editor','interactionDestroyed','setConversationTitle','start','3400195BLkmKK','isDestroyed'];_0x83e1=function(){return _0x4004f9;};return _0x83e1();}export const AI_MODEL_EVENT_NAMES=[_0x7fecb1(0x9d),_0x7fecb1(0x9b),_0x7fecb1(0x90),_0x7fecb1(0x94),_0x7fecb1(0x87),_0x7fecb1(0x93),_0x7fecb1(0x98),_0x7fecb1(0x68),_0x7fecb1(0x88),_0x7fecb1(0x8c),_0x7fecb1(0x7d),_0x7fecb1(0x6f),_0x7fecb1(0x67),_0x7fecb1(0x71)];export class AIInteraction extends _0x1d4046(){['id'];[_0x7fecb1(0x7a)]=[];[_0x7fecb1(0x84)];[_0x7fecb1(0x76)];[_0x7fecb1(0x8f)];[_0x7fecb1(0x69)];[_0x7fecb1(0xa9)];[_0x7fecb1(0x7f)]=!0x1;[_0x7fecb1(0x8b)]=!0x1;[_0x7fecb1(0x86)];[_0x7fecb1(0x8e)]=!0x1;[_0x7fecb1(0x79)]=!0x1;constructor({connector:_0x31f994,editor:_0x220539}){const _0x2104a0=_0x7fecb1;super(),this['id']=_0x7f97ee(),this[_0x2104a0(0xa9)]=_0x31f994,this[_0x2104a0(0x7f)]=!0x0,this[_0x2104a0(0x86)]=_0x220539;}async[_0x7fecb1(0x89)](){const _0x508a51=_0x7fecb1;let _0x40c79c;const _0x43f843=[];this[_0x508a51(0x7f)]=!0x1;try{this[_0x508a51(0x69)]=await this[_0x508a51(0x75)](),this[_0x508a51(0x6e)](_0x508a51(0x9b),this);const _0x55714e=await this[_0x508a51(0x69)][_0x508a51(0x8d)]();for await(const _0x5eaf5e of _0x55714e){if(this[_0x508a51(0x7f)])return;if(_0x508a51(0x71)===_0x5eaf5e[_0x508a51(0x9f)])return void this[_0x508a51(0x6e)](_0x508a51(0x71),{'error':new _0x3b7e58(_0x508a51(0x6a),this)});if(_0x508a51(0xaa)!==_0x5eaf5e[_0x508a51(0x9f)]){if(_0x508a51(0x7e)!==_0x5eaf5e[_0x508a51(0x9f)]){if(_0x51b4ab(_0x5eaf5e[_0x508a51(0x9f)])&&this[_0x508a51(0x88)](_0x5eaf5e[_0x508a51(0xa1)][_0x508a51(0x9c)],!0x0),_0x1b291b(_0x5eaf5e[_0x508a51(0x9f)]))_0x43f843[_0x508a51(0x80)](_0x5eaf5e[_0x508a51(0xa1)][_0x508a51(0x99)]);else{if(_0xb82358(_0x5eaf5e[_0x508a51(0x9f)])){if(_0x5eaf5e[_0x508a51(0x9f)]!==_0x40c79c){if(_0x40c79c=_0x5eaf5e[_0x508a51(0x9f)],_0x508a51(0x91)===_0x5eaf5e[_0x508a51(0x9f)]){this[_0x508a51(0x79)]||(this[_0x508a51(0x79)]=!0x0,this[_0x508a51(0x6e)](_0x508a51(0x8c),this));continue;}if(_0x508a51(0x83)===_0x5eaf5e[_0x508a51(0x9f)]){this[_0x508a51(0x8e)]||(this[_0x508a51(0x8e)]=!0x0,this[_0x508a51(0x6e)](_0x508a51(0x6f),this));continue;}this[_0x508a51(0x8e)]&&(this[_0x508a51(0x8e)]=!0x1,this[_0x508a51(0x6e)](_0x508a51(0x67),this)),this[_0x508a51(0x79)]&&(this[_0x508a51(0x79)]=!0x1,this[_0x508a51(0x6e)](_0x508a51(0x7d),this)),this[_0x508a51(0x84)]&&this[_0x508a51(0x84)][_0x508a51(0xa7)](),this[_0x508a51(0x84)]=this[_0x508a51(0x85)]({'type':_0x5eaf5e[_0x508a51(0x9f)],'interactionId':this['id'],'id':_0x5eaf5e[_0x508a51(0xa1)]?.['id']}),_0x43f843[_0x508a51(0x9e)]>0x0&&_0x508a51(0x9a)===_0x5eaf5e[_0x508a51(0x9f)]&&(this[_0x508a51(0x84)][_0x508a51(0x97)]=_0x43f843[_0x508a51(0x96)](0x0));}_0x5eaf5e[_0x508a51(0xa1)][_0x508a51(0xa2)]&&this[_0x508a51(0x84)][_0x508a51(0x82)](_0x5eaf5e[_0x508a51(0xa1)][_0x508a51(0xa2)]);}else _0x1b1b34(_0x5eaf5e[_0x508a51(0x9f)])||_0x1865c0(_0x508a51(0x66),{'chunk':_0x5eaf5e});}}else this[_0x508a51(0x8f)]=_0x5eaf5e[_0x508a51(0xa1)][_0x508a51(0x7b)];}else this[_0x508a51(0x76)]=_0x5eaf5e[_0x508a51(0xa1)][_0x508a51(0x76)];}}finally{this[_0x508a51(0x7f)]||(_0x43f843[_0x508a51(0x9e)]>0x0&&(this[_0x508a51(0x84)][_0x508a51(0x97)]=_0x43f843[_0x508a51(0x96)](0x0)),this[_0x508a51(0x6b)](),this[_0x508a51(0x6e)](_0x508a51(0x94),this));}}[_0x7fecb1(0x81)](){const _0x2b00e2=_0x7fecb1;this[_0x2b00e2(0x7f)]||(this[_0x2b00e2(0x6b)](),this[_0x2b00e2(0x6e)](_0x2b00e2(0x90),this));}[_0x7fecb1(0x6d)](_0xa58b55){const _0x602ab2=_0x7fecb1;return this[_0x602ab2(0x7a)][_0x602ab2(0xa8)](_0x5ae791=>_0x5ae791['id']===_0xa58b55);}[_0x7fecb1(0xa0)](){const _0x3e1232=_0x7fecb1;this[_0x3e1232(0x8b)]||(this[_0x3e1232(0x81)](),this[_0x3e1232(0x7a)][_0x3e1232(0x74)](_0x52c401=>_0x52c401[_0x3e1232(0xa0)]()),this[_0x3e1232(0x7a)]=[],this[_0x3e1232(0x8b)]=!0x0,this[_0x3e1232(0x6e)](_0x3e1232(0x87),this),this[_0x3e1232(0x78)]());}[_0x7fecb1(0x85)](_0x45fee1){const _0x327033=_0x7fecb1,_0x309acb=new _0x4e2095({'editor':this[_0x327033(0x86)],'documentContextContent':this[_0x327033(0xa6)]()?.[_0x327033(0xa4)],..._0x45fee1});return this[_0x327033(0x7a)][_0x327033(0x80)](_0x309acb),_0x309acb[_0x327033(0x77)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x327033(0x6e)](_0x327033(0x93),_0x309acb),_0x309acb;}[_0x7fecb1(0x88)](_0x55b76b,_0x30fc29=!0x1){const _0x4e338e=_0x7fecb1;this[_0x4e338e(0x6e)](_0x4e338e(0x88),_0x55b76b,_0x30fc29);}[_0x7fecb1(0x6b)](){const _0x1846e7=_0x7fecb1;this[_0x1846e7(0x7f)]=!0x0,this[_0x1846e7(0x69)]&&this[_0x1846e7(0x69)][_0x1846e7(0xa3)][_0x1846e7(0x70)](),this[_0x1846e7(0x84)]&&this[_0x1846e7(0x84)][_0x1846e7(0xa7)](),this[_0x1846e7(0x69)]=this[_0x1846e7(0x84)]=void 0x0;}}
23
+ function _0x1522(_0x24097f,_0x2e30aa){const _0x3125d4=_0x3125();return _0x1522=function(_0x152256,_0x1234a4){_0x152256=_0x152256-0xdb;let _0x160e25=_0x3125d4[_0x152256];return _0x160e25;},_0x1522(_0x24097f,_0x2e30aa);}const _0x449023=_0x1522;(function(_0x634fcf,_0x4ae4a7){const _0x499fd9=_0x1522,_0x2eae2f=_0x634fcf();while(!![]){try{const _0x25d864=parseInt(_0x499fd9(0x118))/0x1*(parseInt(_0x499fd9(0xfa))/0x2)+-parseInt(_0x499fd9(0xe5))/0x3*(parseInt(_0x499fd9(0x106))/0x4)+parseInt(_0x499fd9(0xf2))/0x5*(-parseInt(_0x499fd9(0xe7))/0x6)+-parseInt(_0x499fd9(0x103))/0x7+parseInt(_0x499fd9(0xf6))/0x8*(-parseInt(_0x499fd9(0xdc))/0x9)+parseInt(_0x499fd9(0xe0))/0xa*(-parseInt(_0x499fd9(0xe2))/0xb)+parseInt(_0x499fd9(0x10a))/0xc;if(_0x25d864===_0x4ae4a7)break;else _0x2eae2f['push'](_0x2eae2f['shift']());}catch(_0x279df3){_0x2eae2f['push'](_0x2eae2f['shift']());}}}(_0x3125,0x942d2));import{CKEditorError as _0x4a34cd,EmitterMixin as _0x504a86,logWarning as _0x4001e4,uid as _0x886a5c}from'ckeditor5/src/utils.js';function _0x3125(){const _0x4e0b1d=['replies','length','editor','8431948vvwPKD','forEach','isStopped','3506896gUvXPb','ai-interaction-invalid-event-type','interactionFinished','delegate','42016560SENeHv','web-search','getDocumentContext','event','reasoningStarted','fire','replyChangeGroupStateUpdated','ai-chat-interaction-error','sources','modification-delta','conversationTitle','interactionCreated','actionCallId','replyCreated','74073kZLLfN','replyContentUpdated','interactionDestroyed','isDestroyed','interactionStopped','abort','messageId','setConversationTitle','webSearchFinished','currentRequest','reasoningFinished','callId','source','531QfEHux','start','action-metadata','createReply','13610ppLsfD','done','1529iHdNoW','error','currentReply','3zGgBBY','stop','6smEqKt','abortController','stopListening','find','push','connector','getReply','destroy','_finalizeInteraction','appendContent','_isWebSearching','1874955zaXtMl','interactionStarted','getStream','_isReasoning','114112rOCLPd','textDelta','sendRequest','reasoning','16LDbZzP','splice','content','message-metadata','webSearchStarted','data'];_0x3125=function(){return _0x4e0b1d;};return _0x3125();}import{AIReply as _0x1d076a,isIgnoredReplyType as _0xad3220,isValidReplyType as _0x2b0dd5,isReplyTitleType as _0x425412,isSourceType as _0x463fda}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x449023(0x115),_0x449023(0xf3),_0x449023(0x11c),_0x449023(0x108),_0x449023(0x11a),_0x449023(0x117),_0x449023(0x119),_0x449023(0x110),_0x449023(0x11f),_0x449023(0xfe),_0x449023(0x120),_0x449023(0x10e),_0x449023(0x122),_0x449023(0xe3)];export class AIInteraction extends _0x504a86(){['id'];[_0x449023(0x100)]=[];[_0x449023(0xe4)];[_0x449023(0x11e)];[_0x449023(0x116)];[_0x449023(0x121)];[_0x449023(0xec)];[_0x449023(0x105)]=!0x1;[_0x449023(0x11b)]=!0x1;[_0x449023(0x102)];[_0x449023(0xf5)]=!0x1;[_0x449023(0xf1)]=!0x1;constructor({connector:_0x3bb64d,editor:_0x146760}){const _0x48f04f=_0x449023;super(),this['id']=_0x886a5c(),this[_0x48f04f(0xec)]=_0x3bb64d,this[_0x48f04f(0x105)]=!0x0,this[_0x48f04f(0x102)]=_0x146760;}async[_0x449023(0xdd)](){const _0x28517c=_0x449023;let _0x40ff51;const _0x482e07=[];this[_0x28517c(0x105)]=!0x1;try{this[_0x28517c(0x121)]=await this[_0x28517c(0xf8)](),this[_0x28517c(0x10f)](_0x28517c(0xf3),this);const _0x4babae=await this[_0x28517c(0x121)][_0x28517c(0xf4)]();for await(const _0x18e75f of _0x4babae){if(this[_0x28517c(0x105)])return;if(_0x28517c(0xe3)===_0x18e75f[_0x28517c(0x10d)])return void this[_0x28517c(0x10f)](_0x28517c(0xe3),{'error':new _0x4a34cd(_0x28517c(0x111),this)});if(_0x28517c(0xfd)!==_0x18e75f[_0x28517c(0x10d)]){if(_0x28517c(0xde)!==_0x18e75f[_0x28517c(0x10d)]){if(_0x425412(_0x18e75f[_0x28517c(0x10d)])&&this[_0x28517c(0x11f)](_0x18e75f[_0x28517c(0xff)][_0x28517c(0x114)],!0x0),_0x463fda(_0x18e75f[_0x28517c(0x10d)]))_0x482e07[_0x28517c(0xeb)](_0x18e75f[_0x28517c(0xff)][_0x28517c(0xdb)]);else{if(_0x2b0dd5(_0x18e75f[_0x28517c(0x10d)])){if(_0x18e75f[_0x28517c(0x10d)]!==_0x40ff51){if(_0x40ff51=_0x18e75f[_0x28517c(0x10d)],_0x28517c(0x10b)===_0x18e75f[_0x28517c(0x10d)]){this[_0x28517c(0xf1)]||(this[_0x28517c(0xf1)]=!0x0,this[_0x28517c(0x10f)](_0x28517c(0xfe),this));continue;}if(_0x28517c(0xf9)===_0x18e75f[_0x28517c(0x10d)]){this[_0x28517c(0xf5)]||(this[_0x28517c(0xf5)]=!0x0,this[_0x28517c(0x10f)](_0x28517c(0x10e),this));continue;}this[_0x28517c(0xf5)]&&(this[_0x28517c(0xf5)]=!0x1,this[_0x28517c(0x10f)](_0x28517c(0x122),this)),this[_0x28517c(0xf1)]&&(this[_0x28517c(0xf1)]=!0x1,this[_0x28517c(0x10f)](_0x28517c(0x120),this)),this[_0x28517c(0xe4)]&&this[_0x28517c(0xe4)][_0x28517c(0xe1)](),this[_0x28517c(0xe4)]=this[_0x28517c(0xdf)]({'type':_0x18e75f[_0x28517c(0x10d)],'interactionId':this['id'],'id':_0x18e75f[_0x28517c(0xff)]?.['id']}),_0x482e07[_0x28517c(0x101)]>0x0&&_0x28517c(0x113)===_0x18e75f[_0x28517c(0x10d)]&&(this[_0x28517c(0xe4)][_0x28517c(0x112)]=_0x482e07[_0x28517c(0xfb)](0x0));}_0x18e75f[_0x28517c(0xff)][_0x28517c(0xf7)]&&this[_0x28517c(0xe4)][_0x28517c(0xf0)](_0x18e75f[_0x28517c(0xff)][_0x28517c(0xf7)]);}else _0xad3220(_0x18e75f[_0x28517c(0x10d)])||_0x4001e4(_0x28517c(0x107),{'chunk':_0x18e75f});}}else this[_0x28517c(0x116)]=_0x18e75f[_0x28517c(0xff)][_0x28517c(0x123)];}else this[_0x28517c(0x11e)]=_0x18e75f[_0x28517c(0xff)][_0x28517c(0x11e)];}}finally{this[_0x28517c(0x105)]||(_0x482e07[_0x28517c(0x101)]>0x0&&(this[_0x28517c(0xe4)][_0x28517c(0x112)]=_0x482e07[_0x28517c(0xfb)](0x0)),this[_0x28517c(0xef)](),this[_0x28517c(0x10f)](_0x28517c(0x108),this));}}[_0x449023(0xe6)](){const _0x371cf2=_0x449023;this[_0x371cf2(0x105)]||(this[_0x371cf2(0xef)](),this[_0x371cf2(0x10f)](_0x371cf2(0x11c),this));}[_0x449023(0xed)](_0x105605){const _0xc946a4=_0x449023;return this[_0xc946a4(0x100)][_0xc946a4(0xea)](_0x2c77a9=>_0x2c77a9['id']===_0x105605);}[_0x449023(0xee)](){const _0x2b7f87=_0x449023;this[_0x2b7f87(0x11b)]||(this[_0x2b7f87(0xe6)](),this[_0x2b7f87(0x100)][_0x2b7f87(0x104)](_0x72c5eb=>_0x72c5eb[_0x2b7f87(0xee)]()),this[_0x2b7f87(0x100)]=[],this[_0x2b7f87(0x11b)]=!0x0,this[_0x2b7f87(0x10f)](_0x2b7f87(0x11a),this),this[_0x2b7f87(0xe9)]());}[_0x449023(0xdf)](_0x392099){const _0x5239e0=_0x449023,_0xfa989b=new _0x1d076a({'editor':this[_0x5239e0(0x102)],'documentContextContent':this[_0x5239e0(0x10c)]()?.[_0x5239e0(0xfc)],..._0x392099});return this[_0x5239e0(0x100)][_0x5239e0(0xeb)](_0xfa989b),_0xfa989b[_0x5239e0(0x109)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x5239e0(0x10f)](_0x5239e0(0x117),_0xfa989b),_0xfa989b;}[_0x449023(0x11f)](_0x1766b3,_0x2382e0=!0x1){const _0x318f7b=_0x449023;this[_0x318f7b(0x10f)](_0x318f7b(0x11f),_0x1766b3,_0x2382e0);}[_0x449023(0xef)](){const _0x4a4c57=_0x449023;this[_0x4a4c57(0x105)]=!0x0,this[_0x4a4c57(0x121)]&&this[_0x4a4c57(0x121)][_0x4a4c57(0xe8)][_0x4a4c57(0x11d)](),this[_0x4a4c57(0xe4)]&&this[_0x4a4c57(0xe4)][_0x4a4c57(0xe1)](),this[_0x4a4c57(0x121)]=this[_0x4a4c57(0xe4)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1f65(){const _0x59df82=['AI_MODEL_DESCRIPTION_','items','isAvailable','_filterModels','agent','getLocalized','getModels','getModel','9sGdAlO','AI_MODEL_DESCRIPTION_AUTO','4335832EPDPSR','toUpperCase','getAll','_defaultModelId','45ksMmRN','getDefault','59733IGIVGc','toLocaleLowerCase','find','ai-chat-default-model-id-unrecognized','description','216fgabDu','length','some','push','list','_modelList','23318097KTlBrV','1785632GqQath','provider','1158975WAFgsB','startsWith','7sBVCoK','AI_MODEL_NAME_AUTO','auto','_availableModels','1185260EdthFN','ai-models-unable-to-retrieve','map','ai-chat-model-id-unrecognized','187554UOctYs','string','_connector','_getModelById','getAvailableModels','name'];_0x1f65=function(){return _0x59df82;};return _0x1f65();}const _0x36e0fa=_0x2f53;(function(_0x24172f,_0x40444f){const _0x528d0c=_0x2f53,_0x246f8a=_0x24172f();while(!![]){try{const _0xf28aac=parseInt(_0x528d0c(0x18e))/0x1+parseInt(_0x528d0c(0x18c))/0x2+-parseInt(_0x528d0c(0x180))/0x3*(-parseInt(_0x528d0c(0x185))/0x4)+-parseInt(_0x528d0c(0x17e))/0x5*(-parseInt(_0x528d0c(0x198))/0x6)+parseInt(_0x528d0c(0x190))/0x7*(-parseInt(_0x528d0c(0x1a8))/0x8)+-parseInt(_0x528d0c(0x1a6))/0x9*(parseInt(_0x528d0c(0x194))/0xa)+-parseInt(_0x528d0c(0x18b))/0xb;if(_0xf28aac===_0x40444f)break;else _0x246f8a['push'](_0x246f8a['shift']());}catch(_0x5ce2c7){_0x246f8a['push'](_0x246f8a['shift']());}}}(_0x1f65,0x99510));import{CKEditorError as _0x1853f7,EmitterMixin as _0x4f3c76,logWarning as _0x15fe6c}from'ckeditor5/src/utils.js';function _0x2f53(_0x140794,_0x3e1bea){const _0x1f65ff=_0x1f65();return _0x2f53=function(_0x2f5356,_0x537686){_0x2f5356=_0x2f5356-0x17e;let _0x935210=_0x1f65ff[_0x2f5356];return _0x935210;},_0x2f53(_0x140794,_0x3e1bea);}import{getTranslation as _0x57869d}from'../utils/common-translations.js';export class AIModels extends _0x4f3c76(){[_0x36e0fa(0x19a)];[_0x36e0fa(0x193)];[_0x36e0fa(0x1ab)];[_0x36e0fa(0x18a)]=[];constructor({connector:_0x12074f,availableModels:_0x5ea677,defaultModelId:_0x366e11}){const _0x3f9d22=_0x36e0fa;super(),this[_0x3f9d22(0x19a)]=_0x12074f,this[_0x3f9d22(0x193)]=_0x5ea677,this[_0x3f9d22(0x1ab)]=_0x366e11;}async[_0x36e0fa(0x1aa)](){const _0x9aecfe=_0x36e0fa;if(!this[_0x9aecfe(0x18a)][_0x9aecfe(0x186)])try{const _0x26d258=this[_0x9aecfe(0x19a)][_0x9aecfe(0x1a4)](),_0x4aba2b=await _0x26d258[_0x9aecfe(0x189)]();this[_0x9aecfe(0x18a)]=_0x4aba2b[_0x9aecfe(0x19f)];}catch(_0x547968){throw new _0x1853f7(_0x9aecfe(0x195),null,{'error':_0x547968});}return[...this[_0x9aecfe(0x18a)]];}async[_0x36e0fa(0x19c)](){const _0x556772=_0x36e0fa,_0x4ced1b=await this[_0x556772(0x1aa)]();return this[_0x556772(0x1a1)](_0x4ced1b,this[_0x556772(0x193)]);}async[_0x36e0fa(0x1a5)](_0xb3f5c3){const _0x2e797a=_0x36e0fa,_0x3b720d=await this[_0x2e797a(0x1aa)]();if(!_0x3b720d[_0x2e797a(0x186)])return null;if(_0xb3f5c3){const _0x26696f=this[_0x2e797a(0x19b)](_0x3b720d,_0xb3f5c3);if(_0x26696f)return _0x26696f;_0x15fe6c(_0x2e797a(0x197),{'modelId':_0xb3f5c3,'fallBackModelId':this[_0x2e797a(0x1ab)]});}return this[_0x2e797a(0x17f)]();}async[_0x36e0fa(0x17f)](){const _0x492a2d=_0x36e0fa,_0x2a31a1=await this[_0x492a2d(0x19c)]();if(!_0x2a31a1[_0x492a2d(0x186)])return null;if(this[_0x492a2d(0x1ab)]){const _0x1fac83=this[_0x492a2d(0x19b)](_0x2a31a1,this[_0x492a2d(0x1ab)]);if(_0x1fac83)return _0x1fac83;_0x15fe6c(_0x492a2d(0x183),{'defaultModelId':this[_0x492a2d(0x1ab)],'fallBackModelId':_0x2a31a1[0x0]['id']});}return _0x2a31a1[0x0];}async[_0x36e0fa(0x1a0)](_0x4c6a88){const _0x54c12d=_0x36e0fa;return(await this[_0x54c12d(0x19c)]())[_0x54c12d(0x187)](_0x2b3f36=>_0x2b3f36[_0x54c12d(0x19d)]===_0x4c6a88[_0x54c12d(0x19d)]&&_0x2b3f36[_0x54c12d(0x18d)]===_0x4c6a88[_0x54c12d(0x18d)]);}[_0x36e0fa(0x1a1)](_0x469e3f,_0x1a1f94){const _0x361a9d=_0x36e0fa;let _0x575409;if(_0x1a1f94){_0x575409=[];const _0x3780c5=_0x361a9d(0x199)==typeof _0x1a1f94?[_0x1a1f94[_0x361a9d(0x181)]()]:_0x1a1f94[_0x361a9d(0x196)](_0x342b44=>_0x342b44[_0x361a9d(0x181)]());for(const _0x484632 of _0x3780c5)for(const _0x49de63 of _0x469e3f)(_0x49de63['id'][_0x361a9d(0x181)]()===_0x484632||_0x49de63[_0x361a9d(0x19d)][_0x361a9d(0x181)]()===_0x484632||Me(_0x49de63)&&_0x361a9d(0x192)===_0x484632||_0x49de63[_0x361a9d(0x18d)][_0x361a9d(0x181)]()===_0x484632||_0x49de63['id'][_0x361a9d(0x181)]()[_0x361a9d(0x18f)](_0x484632))&&_0x575409[_0x361a9d(0x188)](_0x49de63);}else _0x575409=_0x469e3f;return _0x575409;}[_0x36e0fa(0x19b)](_0x400e98,_0x35aca4){const _0x5ac374=_0x36e0fa;return _0x400e98[_0x5ac374(0x182)](_0x74f5f7=>Me(_0x74f5f7)&&_0x5ac374(0x192)===_0x35aca4?_0x74f5f7:_0x74f5f7['id']===_0x35aca4)||null;}static[_0x36e0fa(0x1a3)](_0x2952ba,_0x312ef3){const _0x665e37=_0x36e0fa;return _0x312ef3[_0x665e37(0x196)](_0x49ceb3=>{const _0x526d90=_0x665e37;if(Me(_0x49ceb3))_0x49ceb3[_0x526d90(0x19d)]=_0x57869d(_0x2952ba,_0x526d90(0x191)),_0x49ceb3[_0x526d90(0x184)]=_0x57869d(_0x2952ba,_0x526d90(0x1a7));else _0x57869d(_0x2952ba,_0x526d90(0x19e)+_0x49ceb3['id'][_0x526d90(0x1a9)]())[_0x526d90(0x18f)](_0x526d90(0x19e))||(_0x49ceb3[_0x526d90(0x184)]=_0x57869d(_0x2952ba,_0x526d90(0x19e)+_0x49ceb3['id'][_0x526d90(0x1a9)]()));return _0x49ceb3;});}}function Me(_0x53acda){const _0x2f47bb=_0x36e0fa;return _0x53acda['id'][_0x2f47bb(0x18f)](_0x2f47bb(0x1a2));}
23
+ const _0x5772e9=_0x4c47;(function(_0x5a2f26,_0x4afda1){const _0x51c29f=_0x4c47,_0x4435b1=_0x5a2f26();while(!![]){try{const _0xedcc33=parseInt(_0x51c29f(0xb9))/0x1+-parseInt(_0x51c29f(0xbc))/0x2+parseInt(_0x51c29f(0xb5))/0x3+-parseInt(_0x51c29f(0xb0))/0x4*(-parseInt(_0x51c29f(0xc3))/0x5)+-parseInt(_0x51c29f(0xcb))/0x6+parseInt(_0x51c29f(0xc8))/0x7+-parseInt(_0x51c29f(0xbe))/0x8;if(_0xedcc33===_0x4afda1)break;else _0x4435b1['push'](_0x4435b1['shift']());}catch(_0x497e15){_0x4435b1['push'](_0x4435b1['shift']());}}}(_0x25ba,0xce8b2));import{CKEditorError as _0x338de8,EmitterMixin as _0xc91a3b,logWarning as _0x241b35}from'ckeditor5/src/utils.js';import{getTranslation as _0x2c6979}from'../utils/common-translations.js';function _0x4c47(_0x346bd9,_0x736d57){const _0x25bac9=_0x25ba();return _0x4c47=function(_0x4c470d,_0x2ea19c){_0x4c470d=_0x4c470d-0xab;let _0xe9915a=_0x25bac9[_0x4c470d];return _0xe9915a;},_0x4c47(_0x346bd9,_0x736d57);}export class AIModels extends _0xc91a3b(){[_0x5772e9(0xd2)];[_0x5772e9(0xbf)];[_0x5772e9(0xc7)];[_0x5772e9(0xaf)]=[];constructor({connector:_0xcda610,availableModels:_0x1bc152,defaultModelId:_0x2c370f}){const _0x2b5021=_0x5772e9;super(),this[_0x2b5021(0xd2)]=_0xcda610,this[_0x2b5021(0xbf)]=_0x1bc152,this[_0x2b5021(0xc7)]=_0x2c370f;}async[_0x5772e9(0xc9)](){const _0x3cf1b8=_0x5772e9;if(!this[_0x3cf1b8(0xaf)][_0x3cf1b8(0xb1)])try{const _0x4cab1d=this[_0x3cf1b8(0xd2)][_0x3cf1b8(0xd0)](),_0x393459=await _0x4cab1d[_0x3cf1b8(0xc5)]();this[_0x3cf1b8(0xaf)]=_0x393459[_0x3cf1b8(0xc2)];}catch(_0x7c54b8){throw new _0x338de8(_0x3cf1b8(0xb7),null,{'error':_0x7c54b8});}return[...this[_0x3cf1b8(0xaf)]];}async[_0x5772e9(0xd3)](){const _0x597f02=_0x5772e9,_0x28df6b=await this[_0x597f02(0xc9)]();return this[_0x597f02(0xad)](_0x28df6b,this[_0x597f02(0xbf)]);}async[_0x5772e9(0xbb)](_0x46f564){const _0xfae148=_0x5772e9,_0x2419f8=await this[_0xfae148(0xc9)]();if(!_0x2419f8[_0xfae148(0xb1)])return null;if(_0x46f564){const _0x1e1969=this[_0xfae148(0xcd)](_0x2419f8,_0x46f564);if(_0x1e1969)return _0x1e1969;_0x241b35(_0xfae148(0xc6),{'modelId':_0x46f564,'fallBackModelId':this[_0xfae148(0xc7)]});}return this[_0xfae148(0xd4)]();}async[_0x5772e9(0xd4)](){const _0x4d026e=_0x5772e9,_0x3d5243=await this[_0x4d026e(0xd3)]();if(!_0x3d5243[_0x4d026e(0xb1)])return null;if(this[_0x4d026e(0xc7)]){const _0x475fbc=this[_0x4d026e(0xcd)](_0x3d5243,this[_0x4d026e(0xc7)]);if(_0x475fbc)return _0x475fbc;_0x241b35(_0x4d026e(0xcc),{'defaultModelId':this[_0x4d026e(0xc7)],'fallBackModelId':_0x3d5243[0x0]['id']});}return _0x3d5243[0x0];}async[_0x5772e9(0xc0)](_0x4e1d95){const _0x36ad34=_0x5772e9;return(await this[_0x36ad34(0xd3)]())[_0x36ad34(0xbd)](_0x1d7270=>_0x1d7270[_0x36ad34(0xd5)]===_0x4e1d95[_0x36ad34(0xd5)]&&_0x1d7270[_0x36ad34(0xcf)]===_0x4e1d95[_0x36ad34(0xcf)]);}[_0x5772e9(0xad)](_0x52c91a,_0x35bd02){const _0x36606d=_0x5772e9;let _0x278693;if(_0x35bd02){_0x278693=[];const _0x3ee77c=_0x36606d(0xab)==typeof _0x35bd02?[_0x35bd02[_0x36606d(0xba)]()]:_0x35bd02[_0x36606d(0xb3)](_0x4e9b21=>_0x4e9b21[_0x36606d(0xba)]());for(const _0x4ecafe of _0x3ee77c)for(const _0x3db03a of _0x52c91a)(_0x3db03a['id'][_0x36606d(0xba)]()===_0x4ecafe||_0x3db03a[_0x36606d(0xd5)][_0x36606d(0xba)]()===_0x4ecafe||Ne(_0x3db03a)&&_0x36606d(0xb2)===_0x4ecafe||_0x3db03a[_0x36606d(0xcf)][_0x36606d(0xba)]()===_0x4ecafe||_0x3db03a['id'][_0x36606d(0xba)]()[_0x36606d(0xac)](_0x4ecafe))&&_0x278693[_0x36606d(0xb6)](_0x3db03a);}else _0x278693=_0x52c91a;return _0x278693;}[_0x5772e9(0xcd)](_0x4ea505,_0x4cc4b5){const _0x2a5afa=_0x5772e9;return _0x4ea505[_0x2a5afa(0xca)](_0x40465f=>Ne(_0x40465f)&&_0x2a5afa(0xb2)===_0x4cc4b5?_0x40465f:_0x40465f['id']===_0x4cc4b5)||null;}static[_0x5772e9(0xce)](_0x4ac204,_0x51cbc3){const _0x3c2c63=_0x5772e9;return _0x51cbc3[_0x3c2c63(0xb3)](_0x3e08d2=>{const _0x4fc32a=_0x3c2c63;if(Ne(_0x3e08d2))_0x3e08d2[_0x4fc32a(0xd5)]=_0x2c6979(_0x4ac204,_0x4fc32a(0xc1)),_0x3e08d2[_0x4fc32a(0xc4)]=_0x2c6979(_0x4ac204,_0x4fc32a(0xb8));else _0x2c6979(_0x4ac204,_0x4fc32a(0xae)+_0x3e08d2['id'][_0x4fc32a(0xb4)]())[_0x4fc32a(0xac)](_0x4fc32a(0xae))||(_0x3e08d2[_0x4fc32a(0xc4)]=_0x2c6979(_0x4ac204,_0x4fc32a(0xae)+_0x3e08d2['id'][_0x4fc32a(0xb4)]()));return _0x3e08d2;});}}function Ne(_0x1307c1){const _0x408466=_0x5772e9;return _0x1307c1['id'][_0x408466(0xac)](_0x408466(0xd1));}function _0x25ba(){const _0x5e248e=['some','7121600okxubS','_availableModels','isAvailable','AI_MODEL_NAME_AUTO','items','13235pYDFWB','description','list','ai-chat-model-id-unrecognized','_defaultModelId','11571063efdPjm','getAll','find','9074424iLnQSI','ai-chat-default-model-id-unrecognized','_getModelById','getLocalized','provider','getModels','agent','_connector','getAvailableModels','getDefault','name','string','startsWith','_filterModels','AI_MODEL_DESCRIPTION_','_modelList','324CzCYIC','length','auto','map','toUpperCase','3417417nVKSIG','push','ai-models-unable-to-retrieve','AI_MODEL_DESCRIPTION_AUTO','1109659MJJWHk','toLocaleLowerCase','getModel','1735216wysQVG'];_0x25ba=function(){return _0x5e248e;};return _0x25ba();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x24024b=_0x1cb8;(function(_0x5dd93b,_0x119645){const _0x1487f0=_0x1cb8,_0x4d4334=_0x5dd93b();while(!![]){try{const _0x212864=-parseInt(_0x1487f0(0x1ce))/0x1*(parseInt(_0x1487f0(0x18f))/0x2)+-parseInt(_0x1487f0(0x1b0))/0x3*(-parseInt(_0x1487f0(0x1bb))/0x4)+-parseInt(_0x1487f0(0x1aa))/0x5*(-parseInt(_0x1487f0(0x195))/0x6)+-parseInt(_0x1487f0(0x198))/0x7+parseInt(_0x1487f0(0x190))/0x8*(parseInt(_0x1487f0(0x1b9))/0x9)+-parseInt(_0x1487f0(0x1b8))/0xa+parseInt(_0x1487f0(0x1a0))/0xb;if(_0x212864===_0x119645)break;else _0x4d4334['push'](_0x4d4334['shift']());}catch(_0x18a7ec){_0x4d4334['push'](_0x4d4334['shift']());}}}(_0x368a,0x2d931));import{CKEditorError as _0x5381ac,ObservableMixin as _0x1df695,uid as _0x5d76a9}from'ckeditor5/src/utils.js';import{Element as _0x2ebabc,findAll as _0x23ef37,getAttribute as _0x368a9c,getParents as _0x52cc98,Document as _0x339c54,parse as _0x41d596,Text as _0x50f5f2}from'../utils/htmlparser.js';import{AIResponseParser as _0x2174df}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x491d76}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x54f6e0}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x7a1add}from'../utils/common-translations.js';import{cloneDeep as _0x268c96}from'es-toolkit';export const AI_REPLY_TYPES=[_0x24024b(0x191),_0x24024b(0x19c),_0x24024b(0x1da),_0x24024b(0x1ca)];function _0x368a(){const _0x311121=['removed','_getCachedContentParts','6zwRgBv','areActionsDisabled','values','1828113UeeNUl','span','content','ai-get-editor-from-context-no-editor','text-delta','isDone','convertMarkdownToHTML','cloneNode','2538591tPPCOq','replyContentUpdated','source','find','onContentChange','includes','withoutDiff','unshift','destroy','editor','1220645SfmwlB','documentContextContent','_getDifferentChangeGroups','data-id','indexOf','withDiff','3171FmeNwh','aiResponseParser','updateChangeGroups','splice','cachedSuggestionContentParts','set','change:content','newNodeIds','1987730lxAVLx','9uOKMzx','aiResponseApplier','484DfmiXV','fire','setChangeGroupState','parseAndNormalizeHTML','sources','every','interactionId','appendContent','parsedMergedContent','color:\x20#808080;\x20font-style:\x20italic','length','state','index','AI_SUGGESTION_CONTENT_PART_REMOVED','map','reasoning','changes','changeGroups','context','17764rfVtOc','type','push','parsedContent','pending','forEach','modified','merge','previousSibling','removedNodeIds','_setCachedContentParts','stopListening','web-search','ai-reply-get-content-parts-group-not-found','conversation-title','done','getContentParts','node','modifiedNodeIds','filter','replyChangeGroupStateUpdated','locale','new','data-unstable','32yqGfGh','2624176tkNAHg','modification-delta','nextSibling'];_0x368a=function(){return _0x311121;};return _0x368a();}export const AI_REPLY_TYPES_IGNORED=[_0x24024b(0x1dc)];export const AI_REPLY_TITLE_TYPE=_0x24024b(0x1dc);export class AIReply extends _0x1df695(){['id'];[_0x24024b(0x1c1)];[_0x24024b(0x1cf)];[_0x24024b(0x1bf)]=[];[_0x24024b(0x1d1)]=new _0x339c54([]);[_0x24024b(0x1c3)]=new _0x339c54([]);[_0x24024b(0x1cc)]=[];[_0x24024b(0x196)]=!0x1;[_0x24024b(0x1ab)];[_0x24024b(0x1b1)];[_0x24024b(0x1ba)];[_0x24024b(0x1a9)];[_0x24024b(0x1b4)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x36d0cb,content:_0x344c31='',isDone:_0x1bda5e=!0x1,interactionId:_0x426762,areActionsDisabled:_0x533932,documentContextContent:_0x2f65a4,editor:_0xcf0641,id:_0x531861}){const _0x565ff0=_0x24024b;super(),this['id']=_0x531861||_0x5d76a9(),this[_0x565ff0(0x1c1)]=_0x426762,this[_0x565ff0(0x1cf)]=_0x36d0cb,this[_0x565ff0(0x196)]=!!_0x533932,this[_0x565ff0(0x1a9)]=_0xcf0641,this[_0x565ff0(0x1b1)]=new _0x2174df(),this[_0x565ff0(0x1ba)]=new _0x491d76(),this[_0x565ff0(0x1ab)]=_0x41d596(_0x2f65a4||''),this[_0x565ff0(0x1b5)](_0x565ff0(0x19d),_0x1bda5e),this['on'](_0x565ff0(0x1b6),()=>{const _0x4a9916=_0x565ff0;this[_0x4a9916(0x1a4)]();}),this[_0x565ff0(0x1b5)](_0x565ff0(0x19a),_0x344c31);}[_0x24024b(0x1c2)](_0x54b30f){const _0x4ed02e=_0x24024b;this[_0x4ed02e(0x1b5)](_0x4ed02e(0x19a),this[_0x4ed02e(0x19a)]+_0x54b30f);}[_0x24024b(0x1dd)](){const _0x568ea8=_0x24024b;this[_0x568ea8(0x19d)]||(this[_0x568ea8(0x1b5)](_0x568ea8(0x19d),!0x0),this[_0x568ea8(0x1a4)]());}[_0x24024b(0x1a8)](){const _0x3d5916=_0x24024b;this[_0x3d5916(0x1d9)]();}[_0x24024b(0x1bd)](_0x3ba326,_0x2c6641){const _0x195ad2=_0x24024b;this[_0x195ad2(0x1cc)][_0x3ba326][_0x195ad2(0x1c6)]=_0x2c6641,this[_0x195ad2(0x1bc)](_0x195ad2(0x1e2),{'reply':this,'index':_0x3ba326,'state':_0x2c6641});}[_0x24024b(0x1de)]({showDiff:_0x4d9144,groupIndex:_0x2c4658}){const _0xd6b16b=_0x24024b;if(!this[_0xd6b16b(0x1a9)])throw new _0x5381ac(_0xd6b16b(0x19b),null,{'aiReply':this});const _0x1c0f7a=this[_0xd6b16b(0x194)](_0x4d9144,_0x2c4658);if(_0x1c0f7a)return _0x1c0f7a;let _0x10d906=[];if(void 0x0===_0x2c4658)_0x10d906=this[_0xd6b16b(0x1cc)];else{const _0x1534ab=this[_0xd6b16b(0x1cc)][_0xd6b16b(0x1a3)](({index:_0x52548d})=>_0x52548d===_0x2c4658);if(!_0x1534ab)throw new _0x5381ac(_0xd6b16b(0x1db),null,{'aiReply':this,'groupIndex':_0x2c4658});_0x10d906=[_0x1534ab];}const _0x5d17ba=_0x54f6e0({'editor':this[_0xd6b16b(0x1a9)],'showDiff':_0x4d9144,'changeGroups':_0x10d906,'documentContextContent':this[_0xd6b16b(0x1ab)]});return this[_0xd6b16b(0x1d8)](_0x4d9144,_0x5d17ba),_0x5d17ba;}[_0x24024b(0x194)](_0x45286c,_0x588548){const _0xa409f4=_0x24024b,_0x22f35c=_0x45286c?_0xa409f4(0x1af):_0xa409f4(0x1a6);if(!this[_0xa409f4(0x1b4)][_0x22f35c][_0xa409f4(0x1c5)])return null;const _0x1eb575=this[_0xa409f4(0x1b4)][_0x22f35c];if(void 0x0===_0x588548)return _0x268c96(_0x1eb575);{const _0x593028=_0x1eb575[_0xa409f4(0x1a3)](({index:_0xcdff0f})=>_0xcdff0f===_0x588548);if(_0x593028)return[_0x268c96(_0x593028)];}return null;}[_0x24024b(0x1d8)](_0x7b807d,_0x2e8a8d){const _0x458b3c=_0x24024b,_0x6a377e=_0x7b807d?_0x458b3c(0x1af):_0x458b3c(0x1a6);_0x2e8a8d[_0x458b3c(0x1d3)](_0x4b9eb8=>{const _0x11d5ad=_0x458b3c,_0xe3b99c=this[_0x11d5ad(0x1b4)][_0x6a377e],_0x58d281=_0xe3b99c[_0x11d5ad(0x1a3)](({index:_0x5c1953})=>_0x5c1953===_0x4b9eb8[_0x11d5ad(0x1c7)]);if(_0x58d281){const _0x5d1764=_0xe3b99c[_0x11d5ad(0x1ae)](_0x58d281);_0xe3b99c[_0x11d5ad(0x1b3)](_0x5d1764,0x1,_0x4b9eb8);}else _0xe3b99c[_0x11d5ad(0x1d0)](_0x4b9eb8);});}[_0x24024b(0x1a4)](){const _0x4687bc=_0x24024b;if(_0x4687bc(0x191)===this[_0x4687bc(0x1cf)]){this[_0x4687bc(0x1d1)]=this[_0x4687bc(0x1b1)][_0x4687bc(0x1be)](this[_0x4687bc(0x19a)]);const _0x538bb3=this[_0x4687bc(0x1cc)];this[_0x4687bc(0x1b2)]();const _0x370b4c=this[_0x4687bc(0x1ac)](_0x538bb3,this[_0x4687bc(0x1cc)]);(_0x370b4c[_0x4687bc(0x1c5)]||this[_0x4687bc(0x19d)])&&(this[_0x4687bc(0x1bc)](_0x4687bc(0x1a1),this,_0x370b4c),this[_0x4687bc(0x1b4)][_0x4687bc(0x1af)][_0x4687bc(0x1c5)]=this[_0x4687bc(0x1b4)][_0x4687bc(0x1a6)][_0x4687bc(0x1c5)]=0x0);}else this[_0x4687bc(0x1d1)]=this[_0x4687bc(0x1b1)][_0x4687bc(0x19e)](this[_0x4687bc(0x19a)]),this[_0x4687bc(0x1bc)](_0x4687bc(0x1a1),this);}[_0x24024b(0x1ac)](_0x230fd8,_0x1837ad){const _0xc72b60=_0x24024b,_0x33103b=[];for(const _0x3ea162 of _0x1837ad){const _0x753925=_0x230fd8[_0x3ea162[_0xc72b60(0x1c7)]];_0x753925?_0x753925[_0xc72b60(0x1cb)][_0xc72b60(0x1c5)]!==_0x3ea162[_0xc72b60(0x1cb)][_0xc72b60(0x1c5)]?_0x33103b[_0xc72b60(0x1d0)](_0x3ea162):_0x753925[_0xc72b60(0x1cb)][_0xc72b60(0x1d3)]((_0x5522e9,_0x42af1e)=>{const _0x2fd615=_0xc72b60,_0x5815fd=_0x3ea162[_0x2fd615(0x1cb)][_0x42af1e];_0x5522e9['id']!==_0x5815fd['id']&&_0x33103b[_0x2fd615(0x1d0)](_0x3ea162);}):_0x33103b[_0xc72b60(0x1d0)](_0x3ea162);}return _0x33103b;}[_0x24024b(0x1b2)](){const _0x2b2d2d=_0x24024b,_0x1bf259=new _0x2ebabc('p',{},[new _0x2ebabc(_0x2b2d2d(0x199),{'style':_0x2b2d2d(0x1c4)},[new _0x50f5f2(_0x7a1add(this[_0x2b2d2d(0x1a9)][_0x2b2d2d(0x18c)],_0x2b2d2d(0x1c8)))])]),_0x1cf5e7=this[_0x2b2d2d(0x1ba)][_0x2b2d2d(0x1d5)](this[_0x2b2d2d(0x1d1)],this[_0x2b2d2d(0x1ab)][_0x2b2d2d(0x19f)](!0x0),{'markUnstableElements':!this[_0x2b2d2d(0x19d)],'replaceRemovedWith':_0x1bf259,'cutAfterLastChange':!this[_0x2b2d2d(0x19d)]});if(!_0x1cf5e7[_0x2b2d2d(0x1e0)][_0x2b2d2d(0x1c5)]&&!this[_0x2b2d2d(0x19d)])return;this[_0x2b2d2d(0x1c3)]=_0x1cf5e7[_0x2b2d2d(0x1d1)];let _0x5d8c71=[];if(_0x23ef37(_0x322e08=>{const _0x2fdbf1=_0x2b2d2d,_0x3a5293=_0x368a9c(_0x322e08,_0x2fdbf1(0x1ad));if(!_0x3a5293||!_0x3ec6ac(_0x3a5293))return!0x1;const _0x43329a=[_0x322e08,..._0x52cc98(_0x322e08)]['at'](-0x2);if(_0x322e08!=_0x43329a){const _0x33310b=_0x368a9c(_0x43329a,_0x2fdbf1(0x1ad));_0x3ec6ac(_0x33310b)||(_0x5d8c71[_0x2fdbf1(0x1d0)]({'node':_0x43329a,'id':_0x33310b,'type':_0x2fdbf1(0x1d4)}),_0x1cf5e7[_0x2fdbf1(0x1e0)][_0x2fdbf1(0x1d0)](_0x33310b));}else _0x1cf5e7[_0x2fdbf1(0x1e0)][_0x2fdbf1(0x1a5)](_0x3a5293)?_0x5d8c71[_0x2fdbf1(0x1d0)]({'node':_0x322e08,'type':_0x2fdbf1(0x1d4),'id':_0x3a5293}):_0x1cf5e7[_0x2fdbf1(0x1b7)][_0x2fdbf1(0x1a5)](_0x3a5293)?_0x5d8c71[_0x2fdbf1(0x1d0)]({'node':_0x322e08,'type':_0x2fdbf1(0x18d),'id':_0x3a5293,'anchorId':_0x368a9c(_0x322e08[_0x2fdbf1(0x1d6)],_0x2fdbf1(0x1ad))}):_0x5d8c71[_0x2fdbf1(0x1d0)]({'node':_0x322e08,'type':_0x2fdbf1(0x193),'id':_0x3a5293});return!0x0;},this[_0x2b2d2d(0x1c3)]),_0x5d8c71=_0x5d8c71[_0x2b2d2d(0x1e1)](({node:_0x310eea})=>[..._0x52cc98(_0x310eea),_0x310eea][_0x2b2d2d(0x1c0)](_0x53e30e=>!_0x368a9c(_0x53e30e,_0x2b2d2d(0x18e)))),0x0==_0x5d8c71[_0x2b2d2d(0x1c5)])return;const _0x1151bc=[[_0x5d8c71[0x0]]];for(let _0x12d496=0x1;_0x12d496<_0x5d8c71[_0x2b2d2d(0x1c5)];_0x12d496++){const _0x264f9f=_0x1151bc[_0x1151bc[_0x2b2d2d(0x1c5)]-0x1],_0x217d34=_0x264f9f[_0x264f9f[_0x2b2d2d(0x1c5)]-0x1];_0x5d8c71[_0x12d496][_0x2b2d2d(0x1df)][_0x2b2d2d(0x1d6)]==_0x217d34[_0x2b2d2d(0x1df)]&&_0x2b2d2d(0x1d4)!=_0x5d8c71[_0x12d496][_0x2b2d2d(0x1cf)]&&_0x2b2d2d(0x1d4)!=_0x217d34[_0x2b2d2d(0x1cf)]?_0x264f9f[_0x2b2d2d(0x1d0)](_0x5d8c71[_0x12d496]):_0x1151bc[_0x2b2d2d(0x1d0)]([_0x5d8c71[_0x12d496]]);}for(const _0x5513e6 of _0x1151bc){const _0x374809=_0x5513e6[0x0],_0x28df8a=_0x5513e6[_0x5513e6[_0x2b2d2d(0x1c5)]-0x1],_0x5b4a81=_0x1d4718(_0x374809[_0x2b2d2d(0x1df)][_0x2b2d2d(0x1d6)]);_0x5b4a81&&_0x5513e6[_0x2b2d2d(0x1a7)](_0x5b4a81);const _0x136c73=_0x1d4718(_0x28df8a[_0x2b2d2d(0x1df)][_0x2b2d2d(0x192)]);_0x136c73&&_0x5513e6[_0x2b2d2d(0x1d0)](_0x136c73);}function _0x3ec6ac(_0xcd00fa){const _0x1786df=_0x2b2d2d;return _0x1cf5e7[_0x1786df(0x1e0)][_0x1786df(0x1a5)](_0xcd00fa)||_0x1cf5e7[_0x1786df(0x1b7)][_0x1786df(0x1a5)](_0xcd00fa)||_0x1cf5e7[_0x1786df(0x1d7)][_0x1786df(0x1a5)](_0xcd00fa);}function _0x1d4718(_0x135e92){const _0x389555=_0x2b2d2d;if(_0x135e92&&_0x368a9c(_0x135e92,_0x389555(0x1ad))&&!_0x368a9c(_0x135e92,_0x389555(0x18e))){const _0x7c6ce=_0x368a9c(_0x135e92,_0x389555(0x1ad));if(!_0x3ec6ac(_0x7c6ce))return{'node':_0x135e92,'type':_0x389555(0x1cd),'id':_0x7c6ce};}return null;}this[_0x2b2d2d(0x1cc)]=_0x1151bc[_0x2b2d2d(0x1c9)]((_0x71aa66,_0x5a8a84)=>({'changes':_0x71aa66,'state':_0x2b2d2d(0x1d2),'index':_0x5a8a84}));}}export function isValidReplyType(_0x242239){const _0x49a015=_0x24024b;return Object[_0x49a015(0x197)](AI_REPLY_TYPES)[_0x49a015(0x1a5)](_0x242239);}export function isIgnoredReplyType(_0x21609c){const _0x4fcbb9=_0x24024b;return AI_REPLY_TYPES_IGNORED[_0x4fcbb9(0x1a5)](_0x21609c);}function _0x1cb8(_0xbcda76,_0x541c0a){const _0x368ab4=_0x368a();return _0x1cb8=function(_0x1cb80b,_0x271d0d){_0x1cb80b=_0x1cb80b-0x18c;let _0x26c330=_0x368ab4[_0x1cb80b];return _0x26c330;},_0x1cb8(_0xbcda76,_0x541c0a);}export function isReplyTitleType(_0x16e4b6){return _0x16e4b6===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x1e7444){const _0x127ac7=_0x24024b;return _0x127ac7(0x1a2)===_0x1e7444;}
23
+ const _0x340882=_0x67f7;(function(_0x33e275,_0x239a2c){const _0x294f85=_0x67f7,_0x2447b1=_0x33e275();while(!![]){try{const _0x219d5c=parseInt(_0x294f85(0xb3))/0x1*(-parseInt(_0x294f85(0xe5))/0x2)+-parseInt(_0x294f85(0xe3))/0x3*(parseInt(_0x294f85(0x9d))/0x4)+parseInt(_0x294f85(0xb7))/0x5+parseInt(_0x294f85(0xd2))/0x6+parseInt(_0x294f85(0xa2))/0x7*(-parseInt(_0x294f85(0xe9))/0x8)+-parseInt(_0x294f85(0xa5))/0x9*(-parseInt(_0x294f85(0xd8))/0xa)+parseInt(_0x294f85(0xc5))/0xb*(-parseInt(_0x294f85(0x9f))/0xc);if(_0x219d5c===_0x239a2c)break;else _0x2447b1['push'](_0x2447b1['shift']());}catch(_0xf7b9fa){_0x2447b1['push'](_0x2447b1['shift']());}}}(_0x4f96,0x4863f));import{CKEditorError as _0x345e80,ObservableMixin as _0x43945c,uid as _0x121a05}from'ckeditor5/src/utils.js';import{Element as _0x460d36,findAll as _0x1ed37e,getAttribute as _0x4c524b,getParents as _0x53ac11,Document as _0x4e15a2,parse as _0x3bb960,Text as _0x5b3408}from'../utils/htmlparser.js';import{AIResponseParser as _0x39867f}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x393ebb}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x539625}from'../utils/getsuggestionpartsfromreply.js';function _0x67f7(_0x4794e1,_0x4c4a98){const _0x4f965f=_0x4f96();return _0x67f7=function(_0x67f7b3,_0x36872b){_0x67f7b3=_0x67f7b3-0x98;let _0x5820e8=_0x4f965f[_0x67f7b3];return _0x5820e8;},_0x67f7(_0x4794e1,_0x4c4a98);}import{getTranslation as _0x3d7436}from'../utils/common-translations.js';import{cloneDeep as _0x2f83f5}from'es-toolkit';export const AI_REPLY_TYPES=[_0x340882(0xa1),_0x340882(0xc0),_0x340882(0xa7),_0x340882(0xac)];export const AI_REPLY_TYPES_IGNORED=[_0x340882(0xcb)];function _0x4f96(){const _0x33dfbd=['updateChangeGroups','newNodeIds','set','sources','reasoning','withoutDiff','ai-reply-get-content-parts-group-not-found','_getCachedContentParts','convertMarkdownToHTML','includes','aiResponseParser','1mcZuUy','onContentChange','appendContent','parseAndNormalizeHTML','2734830AdSgmt','new','modified','values','merge','every','pending','replyChangeGroupStateUpdated','node','text-delta','setChangeGroupState','changes','content','change:content','451PLXApV','isDone','context','unshift','parsedContent','_setCachedContentParts','conversation-title','nextSibling','removed','data-id','ai-get-editor-from-context-no-editor','cloneNode','filter','124002XErTgr','_getDifferentChangeGroups','documentContextContent','type','fire','locale','3763830TEHYrA','AI_SUGGESTION_CONTENT_PART_REMOVED','modifiedNodeIds','withDiff','source','find','stopListening','aiResponseApplier','length','done','getContentParts','1132737aQaLCG','cachedSuggestionContentParts','370892EMSeyH','editor','color:\x20#808080;\x20font-style:\x20italic','interactionId','16136Dgjwrc','map','changeGroups','replyContentUpdated','index','previousSibling','forEach','areActionsDisabled','splice','push','indexOf','span','4sREadc','destroy','11148TDXIot','state','modification-delta','161jvALtC','data-unstable','parsedMergedContent','9YBodRM','removedNodeIds','web-search'];_0x4f96=function(){return _0x33dfbd;};return _0x4f96();}export const AI_REPLY_TITLE_TYPE=_0x340882(0xcb);export class AIReply extends _0x43945c(){['id'];[_0x340882(0xe8)];[_0x340882(0xd5)];[_0x340882(0xab)]=[];[_0x340882(0xc9)]=new _0x4e15a2([]);[_0x340882(0xa4)]=new _0x4e15a2([]);[_0x340882(0xeb)]=[];[_0x340882(0x98)]=!0x1;[_0x340882(0xd4)];[_0x340882(0xb2)];[_0x340882(0xdf)];[_0x340882(0xe6)];[_0x340882(0xe4)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x3ecd0f,content:_0x3ed6c2='',isDone:_0x151659=!0x1,interactionId:_0x381fe0,areActionsDisabled:_0xe489c2,documentContextContent:_0x308724,editor:_0x2aee32,id:_0x4bbf92}){const _0x228390=_0x340882;super(),this['id']=_0x4bbf92||_0x121a05(),this[_0x228390(0xe8)]=_0x381fe0,this[_0x228390(0xd5)]=_0x3ecd0f,this[_0x228390(0x98)]=!!_0xe489c2,this[_0x228390(0xe6)]=_0x2aee32,this[_0x228390(0xb2)]=new _0x39867f(),this[_0x228390(0xdf)]=new _0x393ebb(),this[_0x228390(0xd4)]=_0x3bb960(_0x308724||''),this[_0x228390(0xaa)](_0x228390(0xc6),_0x151659),this['on'](_0x228390(0xc4),()=>{const _0x3f595d=_0x228390;this[_0x3f595d(0xb4)]();}),this[_0x228390(0xaa)](_0x228390(0xc3),_0x3ed6c2);}[_0x340882(0xb5)](_0x54afe6){const _0x3caff3=_0x340882;this[_0x3caff3(0xaa)](_0x3caff3(0xc3),this[_0x3caff3(0xc3)]+_0x54afe6);}[_0x340882(0xe1)](){const _0x5c01f0=_0x340882;this[_0x5c01f0(0xc6)]||(this[_0x5c01f0(0xaa)](_0x5c01f0(0xc6),!0x0),this[_0x5c01f0(0xb4)]());}[_0x340882(0x9e)](){const _0x500f46=_0x340882;this[_0x500f46(0xde)]();}[_0x340882(0xc1)](_0x443e7c,_0x4ed65c){const _0x3c49b3=_0x340882;this[_0x3c49b3(0xeb)][_0x443e7c][_0x3c49b3(0xa0)]=_0x4ed65c,this[_0x3c49b3(0xd6)](_0x3c49b3(0xbe),{'reply':this,'index':_0x443e7c,'state':_0x4ed65c});}[_0x340882(0xe2)]({showDiff:_0x18a758,groupIndex:_0x238294}){const _0x218ffb=_0x340882;if(!this[_0x218ffb(0xe6)])throw new _0x345e80(_0x218ffb(0xcf),null,{'aiReply':this});const _0xa71398=this[_0x218ffb(0xaf)](_0x18a758,_0x238294);if(_0xa71398)return _0xa71398;let _0x389fca=[];if(void 0x0===_0x238294)_0x389fca=this[_0x218ffb(0xeb)];else{const _0x4cc5c3=this[_0x218ffb(0xeb)][_0x218ffb(0xdd)](({index:_0x21c797})=>_0x21c797===_0x238294);if(!_0x4cc5c3)throw new _0x345e80(_0x218ffb(0xae),null,{'aiReply':this,'groupIndex':_0x238294});_0x389fca=[_0x4cc5c3];}const _0xc74364=_0x539625({'editor':this[_0x218ffb(0xe6)],'showDiff':_0x18a758,'changeGroups':_0x389fca,'documentContextContent':this[_0x218ffb(0xd4)]});return this[_0x218ffb(0xca)](_0x18a758,_0xc74364),_0xc74364;}[_0x340882(0xaf)](_0x59d3e5,_0x2fca20){const _0x3f7f6f=_0x340882,_0x87a0=_0x59d3e5?_0x3f7f6f(0xdb):_0x3f7f6f(0xad);if(!this[_0x3f7f6f(0xe4)][_0x87a0][_0x3f7f6f(0xe0)])return null;const _0x1c648e=this[_0x3f7f6f(0xe4)][_0x87a0];if(void 0x0===_0x2fca20)return _0x2f83f5(_0x1c648e);{const _0x2309cb=_0x1c648e[_0x3f7f6f(0xdd)](({index:_0x4b1fe1})=>_0x4b1fe1===_0x2fca20);if(_0x2309cb)return[_0x2f83f5(_0x2309cb)];}return null;}[_0x340882(0xca)](_0x419d03,_0x2786d8){const _0x404a69=_0x340882,_0x190de0=_0x419d03?_0x404a69(0xdb):_0x404a69(0xad);_0x2786d8[_0x404a69(0xef)](_0x47293c=>{const _0x29b553=_0x404a69,_0x15d5b2=this[_0x29b553(0xe4)][_0x190de0],_0x2f6d82=_0x15d5b2[_0x29b553(0xdd)](({index:_0x420a49})=>_0x420a49===_0x47293c[_0x29b553(0xed)]);if(_0x2f6d82){const _0x36a1ab=_0x15d5b2[_0x29b553(0x9b)](_0x2f6d82);_0x15d5b2[_0x29b553(0x99)](_0x36a1ab,0x1,_0x47293c);}else _0x15d5b2[_0x29b553(0x9a)](_0x47293c);});}[_0x340882(0xb4)](){const _0x35dfc6=_0x340882;if(_0x35dfc6(0xa1)===this[_0x35dfc6(0xd5)]){this[_0x35dfc6(0xc9)]=this[_0x35dfc6(0xb2)][_0x35dfc6(0xb6)](this[_0x35dfc6(0xc3)]);const _0x316fec=this[_0x35dfc6(0xeb)];this[_0x35dfc6(0xa8)]();const _0x237e18=this[_0x35dfc6(0xd3)](_0x316fec,this[_0x35dfc6(0xeb)]);(_0x237e18[_0x35dfc6(0xe0)]||this[_0x35dfc6(0xc6)])&&(this[_0x35dfc6(0xd6)](_0x35dfc6(0xec),this,_0x237e18),this[_0x35dfc6(0xe4)][_0x35dfc6(0xdb)][_0x35dfc6(0xe0)]=this[_0x35dfc6(0xe4)][_0x35dfc6(0xad)][_0x35dfc6(0xe0)]=0x0);}else this[_0x35dfc6(0xc9)]=this[_0x35dfc6(0xb2)][_0x35dfc6(0xb0)](this[_0x35dfc6(0xc3)]),this[_0x35dfc6(0xd6)](_0x35dfc6(0xec),this);}[_0x340882(0xd3)](_0x9deffc,_0x1c6afa){const _0x14a7b8=_0x340882,_0x30f309=[];for(const _0xc1a8cf of _0x1c6afa){const _0x5b814e=_0x9deffc[_0xc1a8cf[_0x14a7b8(0xed)]];_0x5b814e?_0x5b814e[_0x14a7b8(0xc2)][_0x14a7b8(0xe0)]!==_0xc1a8cf[_0x14a7b8(0xc2)][_0x14a7b8(0xe0)]?_0x30f309[_0x14a7b8(0x9a)](_0xc1a8cf):_0x5b814e[_0x14a7b8(0xc2)][_0x14a7b8(0xef)]((_0x34432c,_0x472116)=>{const _0x13817d=_0x14a7b8,_0x449224=_0xc1a8cf[_0x13817d(0xc2)][_0x472116];_0x34432c['id']!==_0x449224['id']&&_0x30f309[_0x13817d(0x9a)](_0xc1a8cf);}):_0x30f309[_0x14a7b8(0x9a)](_0xc1a8cf);}return _0x30f309;}[_0x340882(0xa8)](){const _0x1ec2c8=_0x340882,_0x31c4f9=new _0x460d36('p',{},[new _0x460d36(_0x1ec2c8(0x9c),{'style':_0x1ec2c8(0xe7)},[new _0x5b3408(_0x3d7436(this[_0x1ec2c8(0xe6)][_0x1ec2c8(0xd7)],_0x1ec2c8(0xd9)))])]),_0xd73edb=this[_0x1ec2c8(0xdf)][_0x1ec2c8(0xbb)](this[_0x1ec2c8(0xc9)],this[_0x1ec2c8(0xd4)][_0x1ec2c8(0xd0)](!0x0),{'markUnstableElements':!this[_0x1ec2c8(0xc6)],'replaceRemovedWith':_0x31c4f9,'cutAfterLastChange':!this[_0x1ec2c8(0xc6)]});if(!_0xd73edb[_0x1ec2c8(0xda)][_0x1ec2c8(0xe0)]&&!this[_0x1ec2c8(0xc6)])return;this[_0x1ec2c8(0xa4)]=_0xd73edb[_0x1ec2c8(0xc9)];let _0x5fec86=[];if(_0x1ed37e(_0x4ebca5=>{const _0x52ccc0=_0x1ec2c8,_0xf3431a=_0x4c524b(_0x4ebca5,_0x52ccc0(0xce));if(!_0xf3431a||!_0x50cfcc(_0xf3431a))return!0x1;const _0x6581ea=[_0x4ebca5,..._0x53ac11(_0x4ebca5)]['at'](-0x2);if(_0x4ebca5!=_0x6581ea){const _0x9f2823=_0x4c524b(_0x6581ea,_0x52ccc0(0xce));_0x50cfcc(_0x9f2823)||(_0x5fec86[_0x52ccc0(0x9a)]({'node':_0x6581ea,'id':_0x9f2823,'type':_0x52ccc0(0xb9)}),_0xd73edb[_0x52ccc0(0xda)][_0x52ccc0(0x9a)](_0x9f2823));}else _0xd73edb[_0x52ccc0(0xda)][_0x52ccc0(0xb1)](_0xf3431a)?_0x5fec86[_0x52ccc0(0x9a)]({'node':_0x4ebca5,'type':_0x52ccc0(0xb9),'id':_0xf3431a}):_0xd73edb[_0x52ccc0(0xa9)][_0x52ccc0(0xb1)](_0xf3431a)?_0x5fec86[_0x52ccc0(0x9a)]({'node':_0x4ebca5,'type':_0x52ccc0(0xb8),'id':_0xf3431a,'anchorId':_0x4c524b(_0x4ebca5[_0x52ccc0(0xee)],_0x52ccc0(0xce))}):_0x5fec86[_0x52ccc0(0x9a)]({'node':_0x4ebca5,'type':_0x52ccc0(0xcd),'id':_0xf3431a});return!0x0;},this[_0x1ec2c8(0xa4)]),_0x5fec86=_0x5fec86[_0x1ec2c8(0xd1)](({node:_0x483912})=>[..._0x53ac11(_0x483912),_0x483912][_0x1ec2c8(0xbc)](_0x188b3e=>!_0x4c524b(_0x188b3e,_0x1ec2c8(0xa3)))),0x0==_0x5fec86[_0x1ec2c8(0xe0)])return;const _0x304d65=[[_0x5fec86[0x0]]];for(let _0x526779=0x1;_0x526779<_0x5fec86[_0x1ec2c8(0xe0)];_0x526779++){const _0x1154d6=_0x304d65[_0x304d65[_0x1ec2c8(0xe0)]-0x1],_0x128bd2=_0x1154d6[_0x1154d6[_0x1ec2c8(0xe0)]-0x1];_0x5fec86[_0x526779][_0x1ec2c8(0xbf)][_0x1ec2c8(0xee)]==_0x128bd2[_0x1ec2c8(0xbf)]&&_0x1ec2c8(0xb9)!=_0x5fec86[_0x526779][_0x1ec2c8(0xd5)]&&_0x1ec2c8(0xb9)!=_0x128bd2[_0x1ec2c8(0xd5)]?_0x1154d6[_0x1ec2c8(0x9a)](_0x5fec86[_0x526779]):_0x304d65[_0x1ec2c8(0x9a)]([_0x5fec86[_0x526779]]);}for(const _0x45396d of _0x304d65){const _0x31469a=_0x45396d[0x0],_0x36b985=_0x45396d[_0x45396d[_0x1ec2c8(0xe0)]-0x1],_0x2bb988=_0x54b199(_0x31469a[_0x1ec2c8(0xbf)][_0x1ec2c8(0xee)]);_0x2bb988&&_0x45396d[_0x1ec2c8(0xc8)](_0x2bb988);const _0x5598ee=_0x54b199(_0x36b985[_0x1ec2c8(0xbf)][_0x1ec2c8(0xcc)]);_0x5598ee&&_0x45396d[_0x1ec2c8(0x9a)](_0x5598ee);}function _0x50cfcc(_0x4a55f0){const _0x4e825a=_0x1ec2c8;return _0xd73edb[_0x4e825a(0xda)][_0x4e825a(0xb1)](_0x4a55f0)||_0xd73edb[_0x4e825a(0xa9)][_0x4e825a(0xb1)](_0x4a55f0)||_0xd73edb[_0x4e825a(0xa6)][_0x4e825a(0xb1)](_0x4a55f0);}function _0x54b199(_0x266975){const _0x220d55=_0x1ec2c8;if(_0x266975&&_0x4c524b(_0x266975,_0x220d55(0xce))&&!_0x4c524b(_0x266975,_0x220d55(0xa3))){const _0x4dc4cd=_0x4c524b(_0x266975,_0x220d55(0xce));if(!_0x50cfcc(_0x4dc4cd))return{'node':_0x266975,'type':_0x220d55(0xc7),'id':_0x4dc4cd};}return null;}this[_0x1ec2c8(0xeb)]=_0x304d65[_0x1ec2c8(0xea)]((_0xb46fd3,_0x28c6a7)=>({'changes':_0xb46fd3,'state':_0x1ec2c8(0xbd),'index':_0x28c6a7}));}}export function isValidReplyType(_0x2ec86f){const _0xf79e04=_0x340882;return Object[_0xf79e04(0xba)](AI_REPLY_TYPES)[_0xf79e04(0xb1)](_0x2ec86f);}export function isIgnoredReplyType(_0x4c226c){const _0xdbddd3=_0x340882;return AI_REPLY_TYPES_IGNORED[_0xdbddd3(0xb1)](_0x4c226c);}export function isReplyTitleType(_0x342864){return _0x342864===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x205e33){const _0x360eb2=_0x340882;return _0x360eb2(0xdc)===_0x205e33;}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x178613=_0x4530;function _0xb430(){const _0x5bd4bc=['reverse','markUnstableElementsDepth','4405667nNIOmQ','_findPrevElementWithDataId','_isNewNode','_generateUid','368630ESSWpP','afterbegin','_storeDeletedElementIds','_isExistingNode','_removeSpecialComments','_replaceNode','nodeType','214372UzqfoI','merge','4736208aBpGAz','lastChild','_findNextElementWithDataId','removedIds','_markLastTagElementUnstable','includes','data-unstable','has','_getUid','_findFallbackReferenceNode','filter','11DAAhac','_isExistingContentComment','forEach','_getNodeDataId','cutAfterLastChange','childNodes','splice','90378kDHCYj','nextSibling','3962888tmHpGt','_touchedNodesState','parentNode','true','55fFZedd','cloneNode','_insertNodes','50WzZNLx','replaceRemovedWith','map','push','trim','lastTouchedId','data-removed','beforebegin','_isDelNode','newIds','data-id','_hasWrappedParent','13268210NcNhkf','modifiedIds','indexOf','slice','data-wrapped-id','length','previousSibling','_findReferenceNode','new-element','9eCsgIM','afterend','invalidIds','match','from','markUnstableElements','_markUnstableElements','_markWrappedElements','_existingDataIds'];_0xb430=function(){return _0x5bd4bc;};return _0xb430();}(function(_0xdec56e,_0xa62f63){const _0x3bfeac=_0x4530,_0x3dc1b0=_0xdec56e();while(!![]){try{const _0x5af70f=-parseInt(_0x3bfeac(0x1f0))/0x1+-parseInt(_0x3bfeac(0x214))/0x2*(parseInt(_0x3bfeac(0x20b))/0x3)+parseInt(_0x3bfeac(0x1f7))/0x4*(parseInt(_0x3bfeac(0x211))/0x5)+parseInt(_0x3bfeac(0x1f9))/0x6+-parseInt(_0x3bfeac(0x1ec))/0x7+parseInt(_0x3bfeac(0x20d))/0x8*(-parseInt(_0x3bfeac(0x229))/0x9)+parseInt(_0x3bfeac(0x220))/0xa*(parseInt(_0x3bfeac(0x204))/0xb);if(_0x5af70f===_0xa62f63)break;else _0x3dc1b0['push'](_0x3dc1b0['shift']());}catch(_0x41f733){_0x3dc1b0['push'](_0x3dc1b0['shift']());}}}(_0xb430,0x701b6));import{ObservableMixin as _0x7f938,uid as _0x4c717e}from'ckeditor5/src/utils.js';function _0x4530(_0x41b386,_0x152524){const _0xb43075=_0xb430();return _0x4530=function(_0x4530fd,_0x2fe5e3){_0x4530fd=_0x4530fd-0x1e6;let _0x176593=_0xb43075[_0x4530fd];return _0x176593;},_0x4530(_0x41b386,_0x152524);}import{findAllByAttribute as _0x2bd5fa,findByAttribute as _0x1fa186,getAttribute as _0x44e358,isComment as _0xdd1f90,isTag as _0x144d48,insertElement as _0x56307e,moveElement as _0x5e4786,removeElement as _0x2b2ca0,replaceElement as _0x10d812,serialize as _0x3cb25a,setAttribute as _0x1d41de,clone as _0x19aff7,findAllComments as _0xff809a,getParents as _0x504b85,getNodeNestingLevel as _0x65eb81,areNodesSame as _0x559b62,removeElementsAfter as _0x612157}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x7f938(){[_0x178613(0x1ef)];[_0x178613(0x20e)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x178613(0x1e9)]=new Set();constructor(_0x4d5eb9){const _0x54f2e7=_0x178613;super(),this[_0x54f2e7(0x1ef)]=_0x4d5eb9||_0x4c717e;}[_0x178613(0x1f8)](_0x39c460,_0x483e88,_0x1744f2){const _0x17cb41=_0x178613,_0x503d79=_0x19aff7(_0x39c460);if(0x0===_0x483e88[_0x17cb41(0x209)][_0x17cb41(0x225)]){const _0x23e492=[];return _0x2bd5fa(_0x17cb41(0x21e),_0x17cb41(0x228),_0x503d79)[_0x17cb41(0x206)](_0x35e7aa=>{const _0x16c172=_0x17cb41,_0x4e79ac=this[_0x16c172(0x1ef)]();_0x1d41de(_0x35e7aa,_0x16c172(0x21e),_0x4e79ac),_0x23e492[_0x16c172(0x217)](_0x4e79ac);}),this[_0x17cb41(0x1f4)](_0x503d79),{'parsedContent':_0x503d79,'newNodeIds':_0x23e492,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x1744f2&&_0x1744f2[_0x17cb41(0x1e6)]&&this[_0x17cb41(0x1fd)](_0x503d79),this[_0x17cb41(0x20e)][_0x17cb41(0x21d)]=[],this[_0x17cb41(0x20e)][_0x17cb41(0x221)]=[],this[_0x17cb41(0x20e)][_0x17cb41(0x1fc)]=[],this[_0x17cb41(0x20e)][_0x17cb41(0x22b)]=[],this[_0x17cb41(0x20e)][_0x17cb41(0x219)]=null,this[_0x17cb41(0x1e9)]=new Set(_0x2bd5fa(_0x17cb41(0x21e),null,_0x483e88)[_0x17cb41(0x216)](_0x5914b7=>_0x44e358(_0x5914b7,_0x17cb41(0x21e)))[_0x17cb41(0x203)](_0x51a61f=>!!_0x51a61f));let _0x599b8f=-0x1,_0x2764b2=!0x1;const _0x109b72=_0x503d79[_0x17cb41(0x209)],_0x4e9fa6=Array[_0x17cb41(0x22d)](_0x109b72)[_0x17cb41(0x203)](_0x4aa6c3=>!(0x3===_0x4aa6c3[_0x17cb41(0x1f6)]&&''===_0x3cb25a(_0x4aa6c3)[_0x17cb41(0x218)]())),_0x534e14=_0x4e9fa6[_0x17cb41(0x225)];for(let _0x3968c7=0x0;_0x3968c7<_0x534e14;_0x3968c7++){const _0x5035e6=_0x4e9fa6[_0x3968c7],_0x92d27e=_0x4e9fa6[_0x3968c7+0x1];if(this[_0x17cb41(0x1ee)](_0x5035e6)){if(-0x1===_0x599b8f&&(_0x599b8f=_0x3968c7),this[_0x17cb41(0x1e8)](_0x5035e6),!this[_0x17cb41(0x1ee)](_0x92d27e)){const [_0x5cf2d2,_0x2278b6]=this[_0x17cb41(0x227)](_0x5035e6,_0x2764b2,_0x483e88);if(_0x5cf2d2){const _0xaec435=Array[_0x17cb41(0x22d)](_0x4e9fa6)[_0x17cb41(0x223)](_0x599b8f,_0x3968c7+0x1);this[_0x17cb41(0x213)](_0x5cf2d2,_0xaec435,_0x2278b6),_0x599b8f=-0x1;}}}else{if(this[_0x17cb41(0x205)](_0x5035e6))_0x2764b2=!0x0;else{if(this[_0x17cb41(0x1f3)](_0x5035e6)){const _0x206c93=_0x44e358(_0x5035e6,_0x17cb41(0x21e));if(_0x206c93&&this[_0x17cb41(0x1e9)][_0x17cb41(0x200)](_0x206c93)){const _0x33c8f6=_0x1fa186(_0x17cb41(0x21e),_0x206c93,_0x483e88);this[_0x17cb41(0x1f5)](_0x33c8f6,_0x5035e6);}if(this[_0x17cb41(0x20e)][_0x17cb41(0x1fc)][_0x17cb41(0x1fe)](_0x206c93)){const _0x27ad62=this[_0x17cb41(0x20e)][_0x17cb41(0x1fc)][_0x17cb41(0x222)](_0x206c93);this[_0x17cb41(0x20e)][_0x17cb41(0x1fc)][_0x17cb41(0x20a)](_0x27ad62,0x1);}}else{if(this[_0x17cb41(0x21c)](_0x5035e6)){const _0x195464=_0x44e358(_0x5035e6,_0x17cb41(0x21e));this[_0x17cb41(0x20e)][_0x17cb41(0x221)][_0x17cb41(0x1fe)](_0x195464)||this[_0x17cb41(0x1f2)](_0x5035e6);}}}}}for(const _0x37335f of this[_0x17cb41(0x20e)][_0x17cb41(0x1fc)]){const _0x14ef5a=_0x1fa186(_0x17cb41(0x21e),_0x37335f,_0x483e88);if(_0x14ef5a){if(_0x1744f2&&_0x1744f2[_0x17cb41(0x215)]){this[_0x17cb41(0x20e)][_0x17cb41(0x219)]=_0x37335f;const _0x17754b=_0x1744f2[_0x17cb41(0x215)][_0x17cb41(0x212)](!0x0);_0x1d41de(_0x17754b,_0x17cb41(0x21e),_0x37335f),_0x1d41de(_0x17754b,_0x17cb41(0x21a),_0x17cb41(0x210)),_0x10d812(_0x14ef5a,_0x17754b);}else _0x2b2ca0(_0x14ef5a);}}if(_0x2bd5fa(_0x17cb41(0x224),null,_0x483e88)[_0x17cb41(0x206)](_0x459f69=>{const _0x50b26f=_0x17cb41,_0x4a474b=_0x44e358(_0x459f69,_0x50b26f(0x224)),_0x29a772=_0x1fa186(_0x50b26f(0x21e),_0x4a474b,_0x483e88);_0x29a772&&_0x5e4786(_0x29a772,_0x459f69);}),_0x2bd5fa(_0x17cb41(0x21e),_0x17cb41(0x228),_0x483e88)[_0x17cb41(0x206)](_0x3ffbc7=>{const _0x31edd2=_0x17cb41,_0x232bc6=this[_0x31edd2(0x201)](_0x3ffbc7);_0x1d41de(_0x3ffbc7,_0x31edd2(0x21e),_0x232bc6),this[_0x31edd2(0x20e)][_0x31edd2(0x21d)][_0x31edd2(0x217)](_0x232bc6);}),this[_0x17cb41(0x1f4)](_0x483e88),_0x1744f2&&_0x1744f2[_0x17cb41(0x1e6)]&&this[_0x17cb41(0x1e7)](_0x483e88,_0x1744f2[_0x17cb41(0x1eb)]||0x0),_0x1744f2&&_0x1744f2[_0x17cb41(0x208)]&&this[_0x17cb41(0x20e)][_0x17cb41(0x219)]){let _0x32abad=_0x1fa186(_0x17cb41(0x21e),this[_0x17cb41(0x20e)][_0x17cb41(0x219)],_0x483e88);for(;_0x32abad;)_0x612157(_0x32abad),_0x32abad=_0x32abad[_0x17cb41(0x20f)];}return{'parsedContent':_0x483e88,'newNodeIds':this[_0x17cb41(0x20e)][_0x17cb41(0x21d)],'modifiedNodeIds':this[_0x17cb41(0x20e)][_0x17cb41(0x221)],'removedNodeIds':this[_0x17cb41(0x20e)][_0x17cb41(0x1fc)]};}[_0x178613(0x213)](_0x38223a,_0x239349,_0x5a0a6a){const _0x2d0aff=_0x178613;for(const _0x5db486 of _0x239349){const _0x281514=this[_0x2d0aff(0x201)](_0x5db486);_0x1d41de(_0x5db486,_0x2d0aff(0x21e),_0x281514),this[_0x2d0aff(0x20e)][_0x2d0aff(0x21d)][_0x2d0aff(0x217)](_0x281514),this[_0x2d0aff(0x20e)][_0x2d0aff(0x219)]=_0x281514;}const _0x2bb8e7=_0x2d0aff(0x1f1)===_0x5a0a6a||_0x2d0aff(0x22a)===_0x5a0a6a?_0x239349[_0x2d0aff(0x1ea)]():_0x239349;for(const _0x17c756 of _0x2bb8e7)_0x56307e(_0x38223a,_0x17c756,_0x5a0a6a);}[_0x178613(0x1f5)](_0x10f722,_0x2cc7ce){const _0x54a6b0=_0x178613;if(!_0x10f722)return;if(_0x559b62(_0x10f722,_0x2cc7ce))return;const _0x705dda=this[_0x54a6b0(0x201)](_0x10f722);_0x1d41de(_0x2cc7ce,_0x54a6b0(0x21e),_0x705dda),this[_0x54a6b0(0x20e)][_0x54a6b0(0x221)][_0x54a6b0(0x217)](_0x705dda),this[_0x54a6b0(0x20e)][_0x54a6b0(0x219)]=_0x705dda,_0x10d812(_0x10f722,_0x2cc7ce[_0x54a6b0(0x212)](!0x0));}[_0x178613(0x227)](_0x569549,_0x4b06de,_0x36237f){const _0x1a077f=_0x178613,_0x216b32=this[_0x1a077f(0x1ed)](_0x569549,!0x1);if(_0x216b32){const _0x2097d3=this[_0x1a077f(0x207)](_0x216b32),_0x4e3098=_0x1fa186(_0x1a077f(0x21e),_0x2097d3,_0x36237f);if(_0x4e3098)return[_0x4e3098,_0x1a077f(0x22a)];this[_0x1a077f(0x20e)][_0x1a077f(0x22b)][_0x1a077f(0x217)](_0x2097d3);}const _0x2ea3e6=this[_0x1a077f(0x1fb)](_0x569549,!0x1);if(_0x2ea3e6){const _0x1bec0e=this[_0x1a077f(0x207)](_0x2ea3e6),_0x34341b=_0x1fa186(_0x1a077f(0x21e),_0x1bec0e,_0x36237f);if(_0x34341b)return[_0x34341b,_0x1a077f(0x21b)];this[_0x1a077f(0x20e)][_0x1a077f(0x22b)][_0x1a077f(0x217)](_0x1bec0e);}return _0x4b06de?_0x569549[_0x1a077f(0x20c)]?this[_0x1a077f(0x202)](_0x569549,_0x36237f):[_0x36237f[_0x1a077f(0x209)][_0x36237f[_0x1a077f(0x209)][_0x1a077f(0x225)]-0x1],_0x1a077f(0x22a)]:[_0x36237f[_0x1a077f(0x209)][0x0],_0x1a077f(0x21b)];}[_0x178613(0x202)](_0x5371ad,_0x4948eb){const _0x3a49b3=_0x178613,_0x15c65e=[],_0x2094f3=this[_0x3a49b3(0x1ed)](_0x5371ad,!0x0);if(_0x2094f3){const _0x4a993c=this[_0x3a49b3(0x207)](_0x2094f3),_0x31698f=_0x1fa186(_0x3a49b3(0x21e),_0x4a993c,_0x4948eb);_0x31698f&&_0x15c65e[_0x3a49b3(0x217)]([_0x31698f,_0x3a49b3(0x22a)]);}const _0xa26bbe=this[_0x3a49b3(0x1fb)](_0x5371ad,!0x0);if(_0xa26bbe){const _0x23c746=this[_0x3a49b3(0x207)](_0xa26bbe),_0x1245e5=_0x1fa186(_0x3a49b3(0x21e),_0x23c746,_0x4948eb);_0x1245e5&&_0x15c65e[_0x3a49b3(0x217)]([_0x1245e5,_0x3a49b3(0x21b)]);}if(_0x15c65e[_0x3a49b3(0x225)]>0x1)return _0x65eb81(_0x15c65e[0x0][0x0])<=_0x65eb81(_0x15c65e[0x1][0x0])?_0x15c65e[0x0]:_0x15c65e[0x1];return 0x1===_0x15c65e[_0x3a49b3(0x225)]?_0x15c65e[0x0]:[_0x4948eb[_0x3a49b3(0x1fa)],_0x3a49b3(0x22a)];}[_0x178613(0x1fb)](_0x4fdeaa,_0x1e881b){const _0xf62ee6=_0x178613;let _0x1f985c=_0x4fdeaa[_0xf62ee6(0x20c)],_0x1c72ac=null,_0x1a48f3=!0x1;for(;_0x1f985c;){if(_0xdd1f90(_0x1f985c)){if(this[_0xf62ee6(0x21c)](_0x1f985c)&&(_0x1c72ac=_0x1f985c),this[_0xf62ee6(0x205)](_0x1f985c)&&_0x1e881b&&!_0x1a48f3){_0x1a48f3=!0x0,_0x1f985c=_0x1f985c[_0xf62ee6(0x20c)];continue;}break;}const _0x250515=_0x44e358(_0x1f985c,_0xf62ee6(0x21e));if(_0x250515&&_0xf62ee6(0x228)!==_0x250515&&this[_0xf62ee6(0x1e9)][_0xf62ee6(0x200)](_0x250515)){_0x1c72ac=_0x1f985c;break;}_0x1f985c=_0x1f985c[_0xf62ee6(0x20c)];}return _0x1c72ac;}[_0x178613(0x1ed)](_0x49d025,_0x11390d){const _0xa50293=_0x178613;let _0x348cca=_0x49d025[_0xa50293(0x226)],_0x32c8c0=null,_0x4df30c=!0x1;for(;_0x348cca;){if(_0xdd1f90(_0x348cca)){if(this[_0xa50293(0x21c)](_0x348cca)&&(_0x32c8c0=_0x348cca),this[_0xa50293(0x205)](_0x348cca)&&_0x11390d&&!_0x4df30c){_0x4df30c=!0x0,_0x348cca=_0x348cca[_0xa50293(0x226)];continue;}break;}const _0x49a55e=_0x44e358(_0x348cca,_0xa50293(0x21e));if(_0x49a55e&&_0xa50293(0x228)!==_0x49a55e&&this[_0xa50293(0x1e9)][_0xa50293(0x200)](_0x49a55e)){_0x32c8c0=_0x348cca;break;}_0x348cca=_0x348cca[_0xa50293(0x226)];}return _0x32c8c0;}[_0x178613(0x1e8)](_0x464a7b){const _0xecc9a6=_0x178613;_0x144d48(_0x464a7b)&&_0x2bd5fa(_0xecc9a6(0x21e),null,_0x464a7b)[_0xecc9a6(0x206)](_0x36bbd3=>{const _0x1a0cd8=_0xecc9a6;if(this[_0x1a0cd8(0x1f3)](_0x36bbd3)&&!this[_0x1a0cd8(0x21f)](_0x36bbd3)){const _0x1bfecc=_0x44e358(_0x36bbd3,_0x1a0cd8(0x21e));_0x1d41de(_0x36bbd3,_0x1a0cd8(0x224),_0x1bfecc),_0x1d41de(_0x36bbd3,_0x1a0cd8(0x21e),null);}});}[_0x178613(0x207)](_0x4fbbcb){const _0x3a74ed=_0x178613;if(!_0x4fbbcb)return null;if(_0x144d48(_0x4fbbcb))return _0x44e358(_0x4fbbcb,_0x3a74ed(0x21e));if(_0xdd1f90(_0x4fbbcb)){const _0x16adc1=_0x3cb25a(_0x4fbbcb)[_0x3a74ed(0x22c)](/removed[\s*-]data-id="([^"]+)"/);if(_0x16adc1&&_0x16adc1[0x1])return _0x16adc1[0x1];}return null;}[_0x178613(0x1f2)](_0x3e875a){const _0x3c4845=_0x178613;if(_0xdd1f90(_0x3e875a)){const _0x19313a=_0x3cb25a(_0x3e875a)[_0x3c4845(0x22c)](/removed[\s*-]data-id="([^"]+)"/);_0x19313a&&_0x19313a[0x1]&&this[_0x3c4845(0x20e)][_0x3c4845(0x1fc)][_0x3c4845(0x217)](_0x19313a[0x1]);}}[_0x178613(0x201)](_0x256af9){const _0xbfedac=_0x178613;return this[_0xbfedac(0x1f3)](_0x256af9)?_0x44e358(_0x256af9,_0xbfedac(0x21e)):this[_0xbfedac(0x1ef)]();}[_0x178613(0x1f4)](_0x19cab9){const _0x5b63e2=_0x178613;_0xff809a(_0x19cab9)[_0x5b63e2(0x203)](_0x4ddb7e=>this[_0x5b63e2(0x21c)](_0x4ddb7e)||this[_0x5b63e2(0x205)](_0x4ddb7e))[_0x5b63e2(0x206)](_0x1c4f3a=>{_0x2b2ca0(_0x1c4f3a);});}[_0x178613(0x1fd)](_0x409564){const _0x410b9d=_0x178613,_0x20087c=_0x409564[_0x410b9d(0x209)],_0x5afa37=_0x20087c[_0x20087c[_0x410b9d(0x225)]-0x1];_0x5afa37&&_0x144d48(_0x5afa37)&&_0x1d41de(_0x5afa37,_0x410b9d(0x1ff),_0x410b9d(0x210));}[_0x178613(0x1e7)](_0x3d1ef5,_0x49ec74){const _0x4ba17e=_0x178613,_0x176784=_0x1fa186(_0x4ba17e(0x1ff),_0x4ba17e(0x210),_0x3d1ef5);if(!_0x176784)return;const _0x18f3dd=_0x504b85(_0x176784)[_0x4ba17e(0x223)](0x0,-0x1),_0x2af095=_0x18f3dd[_0x4ba17e(0x225)];let _0x3bff9d=_0x176784;if(_0x2af095>_0x49ec74){let _0x4b468c=_0x2af095,_0xa74b68=null;for(;_0x4b468c>_0x49ec74&&_0x4b468c>=0x0;)_0x4b468c--,_0xa74b68=_0x18f3dd[_0x4b468c];_0xa74b68&&(_0x3bff9d=_0xa74b68,_0x1d41de(_0x176784,_0x4ba17e(0x1ff),null),_0x1d41de(_0xa74b68,_0x4ba17e(0x1ff),_0x4ba17e(0x210)));}else{if(_0x2af095<_0x49ec74){let _0x24e324=_0x2af095,_0x106994=_0x176784;for(;_0x24e324<_0x49ec74;){const _0x590382=_0x106994[_0x4ba17e(0x209)][_0x4ba17e(0x203)](_0x45a811=>_0x144d48(_0x45a811));if(0x0===_0x590382[_0x4ba17e(0x225)])break;_0x24e324++,_0x106994=_0x590382[_0x590382[_0x4ba17e(0x225)]-0x1];}_0x106994&&(_0x3bff9d=_0x106994,_0x1d41de(_0x176784,_0x4ba17e(0x1ff),null),_0x1d41de(_0x106994,_0x4ba17e(0x1ff),_0x4ba17e(0x210)));}}let _0x14067d=_0x3bff9d;for(;_0x14067d;){for(;_0x14067d[_0x4ba17e(0x20c)];)_0x14067d=_0x14067d[_0x4ba17e(0x20c)],_0x144d48(_0x14067d)&&_0x1d41de(_0x14067d,_0x4ba17e(0x1ff),_0x4ba17e(0x210));_0x14067d=_0x14067d[_0x4ba17e(0x20f)];}}[_0x178613(0x1ee)](_0x52219a){const _0x21cda6=_0x178613;return Boolean(_0x21cda6(0x228)===_0x44e358(_0x52219a,_0x21cda6(0x21e)));}[_0x178613(0x1f3)](_0x22f43f){const _0x38b577=_0x178613;return Boolean((_0x44e358(_0x22f43f,_0x38b577(0x21e))||'')[_0x38b577(0x225)]>0x0&&_0x38b577(0x228)!==_0x44e358(_0x22f43f,_0x38b577(0x21e)));}[_0x178613(0x21c)](_0x51f4b5){const _0x37c88c=_0x178613;return!!_0x51f4b5&&Boolean(_0xdd1f90(_0x51f4b5)&&_0x3cb25a(_0x51f4b5)[_0x37c88c(0x22c)](/removed[\s*-]data-id="[^"]+"/));}[_0x178613(0x21f)](_0xfef0fb){const _0x4f8354=_0x178613;let _0x2a418a=_0xfef0fb[_0x4f8354(0x20f)];for(;_0x2a418a;){if(_0x44e358(_0x2a418a,_0x4f8354(0x224)))return!0x0;_0x2a418a=_0x2a418a[_0x4f8354(0x20f)];}return!0x1;}[_0x178613(0x205)](_0x389978){const _0x166643=_0x178613;return Boolean(_0xdd1f90(_0x389978)&&_0x3cb25a(_0x389978)[_0x166643(0x22c)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ const _0x22d73f=_0x5d21;(function(_0x1ae372,_0x722d7b){const _0x37ee46=_0x5d21,_0x106466=_0x1ae372();while(!![]){try{const _0x2515d4=-parseInt(_0x37ee46(0xf9))/0x1*(-parseInt(_0x37ee46(0x106))/0x2)+parseInt(_0x37ee46(0x11e))/0x3+parseInt(_0x37ee46(0xe2))/0x4+parseInt(_0x37ee46(0x103))/0x5+-parseInt(_0x37ee46(0xe6))/0x6+-parseInt(_0x37ee46(0x116))/0x7+-parseInt(_0x37ee46(0xf3))/0x8;if(_0x2515d4===_0x722d7b)break;else _0x106466['push'](_0x106466['shift']());}catch(_0x4be3b1){_0x106466['push'](_0x106466['shift']());}}}(_0xef4b,0x74de1));import{ObservableMixin as _0x3fc3a8,uid as _0x23b801}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x510f01,findByAttribute as _0x1f6615,getAttribute as _0x2cd3c8,isComment as _0x79abfe,isTag as _0x3ad00b,insertElement as _0x38ebb4,moveElement as _0x107f3c,removeElement as _0xc6f657,replaceElement as _0xd741a4,serialize as _0x362d18,setAttribute as _0x23533b,clone as _0x42356f,findAllComments as _0x555da4,getParents as _0x1f8493,getNodeNestingLevel as _0xe647c8,areNodesSame as _0x47d6f5,removeElementsAfter as _0x1c521e}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x3fc3a8(){[_0x22d73f(0xfb)];[_0x22d73f(0x101)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x22d73f(0x11b)]=new Set();constructor(_0x357c20){const _0x72a493=_0x22d73f;super(),this[_0x72a493(0xfb)]=_0x357c20||_0x23b801;}[_0x22d73f(0x117)](_0x5ea87a,_0x49a25a,_0x13639a){const _0x14acdb=_0x22d73f,_0x22c30d=_0x42356f(_0x5ea87a);if(0x0===_0x49a25a[_0x14acdb(0xe3)][_0x14acdb(0x102)]){const _0x201aa8=[];return _0x510f01(_0x14acdb(0xfe),_0x14acdb(0xfc),_0x22c30d)[_0x14acdb(0x10c)](_0x90eb90=>{const _0x1bb312=_0x14acdb,_0x56a7c7=this[_0x1bb312(0xfb)]();_0x23533b(_0x90eb90,_0x1bb312(0xfe),_0x56a7c7),_0x201aa8[_0x1bb312(0x10a)](_0x56a7c7);}),this[_0x14acdb(0x11f)](_0x22c30d),{'parsedContent':_0x22c30d,'newNodeIds':_0x201aa8,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x13639a&&_0x13639a[_0x14acdb(0x104)]&&this[_0x14acdb(0x10b)](_0x22c30d),this[_0x14acdb(0x101)][_0x14acdb(0xfd)]=[],this[_0x14acdb(0x101)][_0x14acdb(0xec)]=[],this[_0x14acdb(0x101)][_0x14acdb(0x118)]=[],this[_0x14acdb(0x101)][_0x14acdb(0xf7)]=[],this[_0x14acdb(0x101)][_0x14acdb(0xeb)]=null,this[_0x14acdb(0x11b)]=new Set(_0x510f01(_0x14acdb(0xfe),null,_0x49a25a)[_0x14acdb(0x11d)](_0x23d946=>_0x2cd3c8(_0x23d946,_0x14acdb(0xfe)))[_0x14acdb(0x108)](_0x15c5db=>!!_0x15c5db));let _0x22f83d=-0x1,_0x1c51cf=!0x1;const _0x24dacb=_0x22c30d[_0x14acdb(0xe3)],_0x2a4a2e=Array[_0x14acdb(0x10e)](_0x24dacb)[_0x14acdb(0x108)](_0x1234a0=>!(0x3===_0x1234a0[_0x14acdb(0x111)]&&''===_0x362d18(_0x1234a0)[_0x14acdb(0x109)]())),_0x8f9211=_0x2a4a2e[_0x14acdb(0x102)];for(let _0x421848=0x0;_0x421848<_0x8f9211;_0x421848++){const _0x3c5b53=_0x2a4a2e[_0x421848],_0x108c53=_0x2a4a2e[_0x421848+0x1];if(this[_0x14acdb(0xf2)](_0x3c5b53)){if(-0x1===_0x22f83d&&(_0x22f83d=_0x421848),this[_0x14acdb(0x115)](_0x3c5b53),!this[_0x14acdb(0xf2)](_0x108c53)){const [_0x1a7bcc,_0x32a08b]=this[_0x14acdb(0xe7)](_0x3c5b53,_0x1c51cf,_0x49a25a);if(_0x1a7bcc){const _0x2af1de=Array[_0x14acdb(0x10e)](_0x2a4a2e)[_0x14acdb(0xf6)](_0x22f83d,_0x421848+0x1);this[_0x14acdb(0x123)](_0x1a7bcc,_0x2af1de,_0x32a08b),_0x22f83d=-0x1;}}}else{if(this[_0x14acdb(0xe8)](_0x3c5b53))_0x1c51cf=!0x0;else{if(this[_0x14acdb(0x124)](_0x3c5b53)){const _0x53b8dd=_0x2cd3c8(_0x3c5b53,_0x14acdb(0xfe));if(_0x53b8dd&&this[_0x14acdb(0x11b)][_0x14acdb(0xff)](_0x53b8dd)){const _0x4f4bfc=_0x1f6615(_0x14acdb(0xfe),_0x53b8dd,_0x49a25a);this[_0x14acdb(0x114)](_0x4f4bfc,_0x3c5b53);}if(this[_0x14acdb(0x101)][_0x14acdb(0x118)][_0x14acdb(0xf1)](_0x53b8dd)){const _0x5a83be=this[_0x14acdb(0x101)][_0x14acdb(0x118)][_0x14acdb(0x11c)](_0x53b8dd);this[_0x14acdb(0x101)][_0x14acdb(0x118)][_0x14acdb(0xe5)](_0x5a83be,0x1);}}else{if(this[_0x14acdb(0xee)](_0x3c5b53)){const _0x2c253d=_0x2cd3c8(_0x3c5b53,_0x14acdb(0xfe));this[_0x14acdb(0x101)][_0x14acdb(0xec)][_0x14acdb(0xf1)](_0x2c253d)||this[_0x14acdb(0xe1)](_0x3c5b53);}}}}}for(const _0xe5879c of this[_0x14acdb(0x101)][_0x14acdb(0x118)]){const _0x22dc31=_0x1f6615(_0x14acdb(0xfe),_0xe5879c,_0x49a25a);if(_0x22dc31){if(_0x13639a&&_0x13639a[_0x14acdb(0xe9)]){this[_0x14acdb(0x101)][_0x14acdb(0xeb)]=_0xe5879c;const _0x159b5d=_0x13639a[_0x14acdb(0xe9)][_0x14acdb(0x121)](!0x0);_0x23533b(_0x159b5d,_0x14acdb(0xfe),_0xe5879c),_0x23533b(_0x159b5d,_0x14acdb(0x11a),_0x14acdb(0x119)),_0xd741a4(_0x22dc31,_0x159b5d);}else _0xc6f657(_0x22dc31);}}if(_0x510f01(_0x14acdb(0x105),null,_0x49a25a)[_0x14acdb(0x10c)](_0x90dca1=>{const _0x456475=_0x14acdb,_0x2a5449=_0x2cd3c8(_0x90dca1,_0x456475(0x105)),_0x217b67=_0x1f6615(_0x456475(0xfe),_0x2a5449,_0x49a25a);_0x217b67&&_0x107f3c(_0x217b67,_0x90dca1);}),_0x510f01(_0x14acdb(0xfe),_0x14acdb(0xfc),_0x49a25a)[_0x14acdb(0x10c)](_0x2784f5=>{const _0x40408f=_0x14acdb,_0x257f11=this[_0x40408f(0x10d)](_0x2784f5);_0x23533b(_0x2784f5,_0x40408f(0xfe),_0x257f11),this[_0x40408f(0x101)][_0x40408f(0xfd)][_0x40408f(0x10a)](_0x257f11);}),this[_0x14acdb(0x11f)](_0x49a25a),_0x13639a&&_0x13639a[_0x14acdb(0x104)]&&this[_0x14acdb(0xea)](_0x49a25a,_0x13639a[_0x14acdb(0x122)]||0x0),_0x13639a&&_0x13639a[_0x14acdb(0xef)]&&this[_0x14acdb(0x101)][_0x14acdb(0xeb)]){let _0x26f407=_0x1f6615(_0x14acdb(0xfe),this[_0x14acdb(0x101)][_0x14acdb(0xeb)],_0x49a25a);for(;_0x26f407;)_0x1c521e(_0x26f407),_0x26f407=_0x26f407[_0x14acdb(0x107)];}return{'parsedContent':_0x49a25a,'newNodeIds':this[_0x14acdb(0x101)][_0x14acdb(0xfd)],'modifiedNodeIds':this[_0x14acdb(0x101)][_0x14acdb(0xec)],'removedNodeIds':this[_0x14acdb(0x101)][_0x14acdb(0x118)]};}[_0x22d73f(0x123)](_0x5acf8c,_0xee530b,_0x5c200e){const _0x3a1798=_0x22d73f;for(const _0x52c800 of _0xee530b){const _0x465ab5=this[_0x3a1798(0x10d)](_0x52c800);_0x23533b(_0x52c800,_0x3a1798(0xfe),_0x465ab5),this[_0x3a1798(0x101)][_0x3a1798(0xfd)][_0x3a1798(0x10a)](_0x465ab5),this[_0x3a1798(0x101)][_0x3a1798(0xeb)]=_0x465ab5;}const _0x53f18a=_0x3a1798(0xfa)===_0x5c200e||_0x3a1798(0x100)===_0x5c200e?_0xee530b[_0x3a1798(0x110)]():_0xee530b;for(const _0xa97bb1 of _0x53f18a)_0x38ebb4(_0x5acf8c,_0xa97bb1,_0x5c200e);}[_0x22d73f(0x114)](_0x5a3020,_0x19fa33){const _0x2413b9=_0x22d73f;if(!_0x5a3020)return;if(_0x47d6f5(_0x5a3020,_0x19fa33))return;const _0x322020=this[_0x2413b9(0x10d)](_0x5a3020);_0x23533b(_0x19fa33,_0x2413b9(0xfe),_0x322020),this[_0x2413b9(0x101)][_0x2413b9(0xec)][_0x2413b9(0x10a)](_0x322020),this[_0x2413b9(0x101)][_0x2413b9(0xeb)]=_0x322020,_0xd741a4(_0x5a3020,_0x19fa33[_0x2413b9(0x121)](!0x0));}[_0x22d73f(0xe7)](_0x164583,_0x4602d1,_0x38602b){const _0x2de34f=_0x22d73f,_0x121fd9=this[_0x2de34f(0xe4)](_0x164583,!0x1);if(_0x121fd9){const _0x3c63f8=this[_0x2de34f(0xf5)](_0x121fd9),_0x644a3d=_0x1f6615(_0x2de34f(0xfe),_0x3c63f8,_0x38602b);if(_0x644a3d)return[_0x644a3d,_0x2de34f(0x100)];this[_0x2de34f(0x101)][_0x2de34f(0xf7)][_0x2de34f(0x10a)](_0x3c63f8);}const _0x284cd4=this[_0x2de34f(0x125)](_0x164583,!0x1);if(_0x284cd4){const _0x1a7311=this[_0x2de34f(0xf5)](_0x284cd4),_0x1a30c2=_0x1f6615(_0x2de34f(0xfe),_0x1a7311,_0x38602b);if(_0x1a30c2)return[_0x1a30c2,_0x2de34f(0x10f)];this[_0x2de34f(0x101)][_0x2de34f(0xf7)][_0x2de34f(0x10a)](_0x1a7311);}return _0x4602d1?_0x164583[_0x2de34f(0x120)]?this[_0x2de34f(0xf8)](_0x164583,_0x38602b):[_0x38602b[_0x2de34f(0xe3)][_0x38602b[_0x2de34f(0xe3)][_0x2de34f(0x102)]-0x1],_0x2de34f(0x100)]:[_0x38602b[_0x2de34f(0xe3)][0x0],_0x2de34f(0x10f)];}[_0x22d73f(0xf8)](_0x1ef20d,_0x4478cd){const _0x143cb1=_0x22d73f,_0x376f29=[],_0x488230=this[_0x143cb1(0xe4)](_0x1ef20d,!0x0);if(_0x488230){const _0x2da409=this[_0x143cb1(0xf5)](_0x488230),_0x492ffc=_0x1f6615(_0x143cb1(0xfe),_0x2da409,_0x4478cd);_0x492ffc&&_0x376f29[_0x143cb1(0x10a)]([_0x492ffc,_0x143cb1(0x100)]);}const _0x343699=this[_0x143cb1(0x125)](_0x1ef20d,!0x0);if(_0x343699){const _0x225b14=this[_0x143cb1(0xf5)](_0x343699),_0x5b9638=_0x1f6615(_0x143cb1(0xfe),_0x225b14,_0x4478cd);_0x5b9638&&_0x376f29[_0x143cb1(0x10a)]([_0x5b9638,_0x143cb1(0x10f)]);}if(_0x376f29[_0x143cb1(0x102)]>0x1)return _0xe647c8(_0x376f29[0x0][0x0])<=_0xe647c8(_0x376f29[0x1][0x0])?_0x376f29[0x0]:_0x376f29[0x1];return 0x1===_0x376f29[_0x143cb1(0x102)]?_0x376f29[0x0]:[_0x4478cd[_0x143cb1(0x112)],_0x143cb1(0x100)];}[_0x22d73f(0x125)](_0x26947b,_0x4687cf){const _0x24b158=_0x22d73f;let _0x5d5da1=_0x26947b[_0x24b158(0x120)],_0x2b1513=null,_0x4c7453=!0x1;for(;_0x5d5da1;){if(_0x79abfe(_0x5d5da1)){if(this[_0x24b158(0xee)](_0x5d5da1)&&(_0x2b1513=_0x5d5da1),this[_0x24b158(0xe8)](_0x5d5da1)&&_0x4687cf&&!_0x4c7453){_0x4c7453=!0x0,_0x5d5da1=_0x5d5da1[_0x24b158(0x120)];continue;}break;}const _0x3c581d=_0x2cd3c8(_0x5d5da1,_0x24b158(0xfe));if(_0x3c581d&&_0x24b158(0xfc)!==_0x3c581d&&this[_0x24b158(0x11b)][_0x24b158(0xff)](_0x3c581d)){_0x2b1513=_0x5d5da1;break;}_0x5d5da1=_0x5d5da1[_0x24b158(0x120)];}return _0x2b1513;}[_0x22d73f(0xe4)](_0x4ae223,_0x5f5783){const _0x23f2fe=_0x22d73f;let _0x5599a4=_0x4ae223[_0x23f2fe(0xed)],_0x4b9cc1=null,_0xd930ae=!0x1;for(;_0x5599a4;){if(_0x79abfe(_0x5599a4)){if(this[_0x23f2fe(0xee)](_0x5599a4)&&(_0x4b9cc1=_0x5599a4),this[_0x23f2fe(0xe8)](_0x5599a4)&&_0x5f5783&&!_0xd930ae){_0xd930ae=!0x0,_0x5599a4=_0x5599a4[_0x23f2fe(0xed)];continue;}break;}const _0xff51ab=_0x2cd3c8(_0x5599a4,_0x23f2fe(0xfe));if(_0xff51ab&&_0x23f2fe(0xfc)!==_0xff51ab&&this[_0x23f2fe(0x11b)][_0x23f2fe(0xff)](_0xff51ab)){_0x4b9cc1=_0x5599a4;break;}_0x5599a4=_0x5599a4[_0x23f2fe(0xed)];}return _0x4b9cc1;}[_0x22d73f(0x115)](_0x4714a0){const _0x1463c3=_0x22d73f;_0x3ad00b(_0x4714a0)&&_0x510f01(_0x1463c3(0xfe),null,_0x4714a0)[_0x1463c3(0x10c)](_0x289fd7=>{const _0x55a539=_0x1463c3;if(this[_0x55a539(0x124)](_0x289fd7)&&!this[_0x55a539(0xf0)](_0x289fd7)){const _0x473a50=_0x2cd3c8(_0x289fd7,_0x55a539(0xfe));_0x23533b(_0x289fd7,_0x55a539(0x105),_0x473a50),_0x23533b(_0x289fd7,_0x55a539(0xfe),null);}});}[_0x22d73f(0xf5)](_0x420293){const _0x17de13=_0x22d73f;if(!_0x420293)return null;if(_0x3ad00b(_0x420293))return _0x2cd3c8(_0x420293,_0x17de13(0xfe));if(_0x79abfe(_0x420293)){const _0x2fb1bb=_0x362d18(_0x420293)[_0x17de13(0xf4)](/removed[\s*-]data-id="([^"]+)"/);if(_0x2fb1bb&&_0x2fb1bb[0x1])return _0x2fb1bb[0x1];}return null;}[_0x22d73f(0xe1)](_0x2d88ba){const _0x21cc41=_0x22d73f;if(_0x79abfe(_0x2d88ba)){const _0x5f3b77=_0x362d18(_0x2d88ba)[_0x21cc41(0xf4)](/removed[\s*-]data-id="([^"]+)"/);_0x5f3b77&&_0x5f3b77[0x1]&&this[_0x21cc41(0x101)][_0x21cc41(0x118)][_0x21cc41(0x10a)](_0x5f3b77[0x1]);}}[_0x22d73f(0x10d)](_0xe66b99){const _0x27d02f=_0x22d73f;return this[_0x27d02f(0x124)](_0xe66b99)?_0x2cd3c8(_0xe66b99,_0x27d02f(0xfe)):this[_0x27d02f(0xfb)]();}[_0x22d73f(0x11f)](_0xe3982a){const _0x529e48=_0x22d73f;_0x555da4(_0xe3982a)[_0x529e48(0x108)](_0x1a0706=>this[_0x529e48(0xee)](_0x1a0706)||this[_0x529e48(0xe8)](_0x1a0706))[_0x529e48(0x10c)](_0x2f23eb=>{_0xc6f657(_0x2f23eb);});}[_0x22d73f(0x10b)](_0x43bbd5){const _0x2bdc47=_0x22d73f,_0x12432b=_0x43bbd5[_0x2bdc47(0xe3)],_0x1b9382=_0x12432b[_0x12432b[_0x2bdc47(0x102)]-0x1];_0x1b9382&&_0x3ad00b(_0x1b9382)&&_0x23533b(_0x1b9382,_0x2bdc47(0x113),_0x2bdc47(0x119));}[_0x22d73f(0xea)](_0x420b93,_0x49d036){const _0x4a3fba=_0x22d73f,_0x5a20a2=_0x1f6615(_0x4a3fba(0x113),_0x4a3fba(0x119),_0x420b93);if(!_0x5a20a2)return;const _0x5e1502=_0x1f8493(_0x5a20a2)[_0x4a3fba(0xf6)](0x0,-0x1),_0x45d72d=_0x5e1502[_0x4a3fba(0x102)];let _0x295055=_0x5a20a2;if(_0x45d72d>_0x49d036){let _0x1ca684=_0x45d72d,_0x78afbb=null;for(;_0x1ca684>_0x49d036&&_0x1ca684>=0x0;)_0x1ca684--,_0x78afbb=_0x5e1502[_0x1ca684];_0x78afbb&&(_0x295055=_0x78afbb,_0x23533b(_0x5a20a2,_0x4a3fba(0x113),null),_0x23533b(_0x78afbb,_0x4a3fba(0x113),_0x4a3fba(0x119)));}else{if(_0x45d72d<_0x49d036){let _0x4c54b9=_0x45d72d,_0x40a603=_0x5a20a2;for(;_0x4c54b9<_0x49d036;){const _0xc3ee1d=_0x40a603[_0x4a3fba(0xe3)][_0x4a3fba(0x108)](_0x2e2e29=>_0x3ad00b(_0x2e2e29));if(0x0===_0xc3ee1d[_0x4a3fba(0x102)])break;_0x4c54b9++,_0x40a603=_0xc3ee1d[_0xc3ee1d[_0x4a3fba(0x102)]-0x1];}_0x40a603&&(_0x295055=_0x40a603,_0x23533b(_0x5a20a2,_0x4a3fba(0x113),null),_0x23533b(_0x40a603,_0x4a3fba(0x113),_0x4a3fba(0x119)));}}let _0x466fb2=_0x295055;for(;_0x466fb2;){for(;_0x466fb2[_0x4a3fba(0x120)];)_0x466fb2=_0x466fb2[_0x4a3fba(0x120)],_0x3ad00b(_0x466fb2)&&_0x23533b(_0x466fb2,_0x4a3fba(0x113),_0x4a3fba(0x119));_0x466fb2=_0x466fb2[_0x4a3fba(0x107)];}}[_0x22d73f(0xf2)](_0x4b5917){const _0x4be301=_0x22d73f;return Boolean(_0x4be301(0xfc)===_0x2cd3c8(_0x4b5917,_0x4be301(0xfe)));}[_0x22d73f(0x124)](_0x563586){const _0x1d34fd=_0x22d73f;return Boolean((_0x2cd3c8(_0x563586,_0x1d34fd(0xfe))||'')[_0x1d34fd(0x102)]>0x0&&_0x1d34fd(0xfc)!==_0x2cd3c8(_0x563586,_0x1d34fd(0xfe)));}[_0x22d73f(0xee)](_0x602f4f){const _0x16ed61=_0x22d73f;return!!_0x602f4f&&Boolean(_0x79abfe(_0x602f4f)&&_0x362d18(_0x602f4f)[_0x16ed61(0xf4)](/removed[\s*-]data-id="[^"]+"/));}[_0x22d73f(0xf0)](_0x177ac0){const _0x4bea32=_0x22d73f;let _0x1195ec=_0x177ac0[_0x4bea32(0x107)];for(;_0x1195ec;){if(_0x2cd3c8(_0x1195ec,_0x4bea32(0x105)))return!0x0;_0x1195ec=_0x1195ec[_0x4bea32(0x107)];}return!0x1;}[_0x22d73f(0xe8)](_0x1a70e3){const _0x39ce2d=_0x22d73f;return Boolean(_0x79abfe(_0x1a70e3)&&_0x362d18(_0x1a70e3)[_0x39ce2d(0xf4)](/\s*existing[\s*-](content|document)\s*/g));}}function _0x5d21(_0x2a1d25,_0xfd222d){const _0xef4b9d=_0xef4b();return _0x5d21=function(_0x5d21b0,_0x40c61e){_0x5d21b0=_0x5d21b0-0xe1;let _0x2399cf=_0xef4b9d[_0x5d21b0];return _0x2399cf;},_0x5d21(_0x2a1d25,_0xfd222d);}function _0xef4b(){const _0xa83e32=['map','1766916VOYrPg','_removeSpecialComments','nextSibling','cloneNode','markUnstableElementsDepth','_insertNodes','_isExistingNode','_findNextElementWithDataId','_storeDeletedElementIds','2651428rywDIz','childNodes','_findPrevElementWithDataId','splice','5552190LmxJFo','_findReferenceNode','_isExistingContentComment','replaceRemovedWith','_markUnstableElements','lastTouchedId','modifiedIds','previousSibling','_isDelNode','cutAfterLastChange','_hasWrappedParent','includes','_isNewNode','2801040WTDAon','match','_getNodeDataId','slice','invalidIds','_findFallbackReferenceNode','122152eWUuFG','afterbegin','_generateUid','new-element','newIds','data-id','has','afterend','_touchedNodesState','length','2574180NTkBGC','markUnstableElements','data-wrapped-id','2uMzNzU','parentNode','filter','trim','push','_markLastTagElementUnstable','forEach','_getUid','from','beforebegin','reverse','nodeType','lastChild','data-unstable','_replaceNode','_markWrappedElements','942431AaYrHA','merge','removedIds','true','data-removed','_existingDataIds','indexOf'];_0xef4b=function(){return _0xa83e32;};return _0xef4b();}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x49b4(){const _0x412137=['737zYmgft','9iCCKUZ','7012884cjjhIh','311704tPFSsk','607560xbFjsx','parse','46HRmaRl','7212520hWSHUh','parseAndNormalizeHTML','<dummy>','156963qajndf','459456ouLsCz','</dummy>','642276AIYQIs','children','_m2html','7qFCFZz','convertMarkdownToHTML','replace','_parseHTML','10OECYlu'];_0x49b4=function(){return _0x412137;};return _0x49b4();}const _0xf18517=_0xcc8a;(function(_0x5167f3,_0x5e0787){const _0x33548a=_0xcc8a,_0x547cf7=_0x5167f3();while(!![]){try{const _0xbc6515=-parseInt(_0x33548a(0x1f3))/0x1+parseInt(_0x33548a(0x203))/0x2*(-parseInt(_0x33548a(0x1f2))/0x3)+parseInt(_0x33548a(0x1f5))/0x4*(-parseInt(_0x33548a(0x1fc))/0x5)+parseInt(_0x33548a(0x1ff))/0x6*(-parseInt(_0x33548a(0x1f8))/0x7)+-parseInt(_0x33548a(0x200))/0x8*(parseInt(_0x33548a(0x1fe))/0x9)+parseInt(_0x33548a(0x1ef))/0xa+-parseInt(_0x33548a(0x1fd))/0xb*(-parseInt(_0x33548a(0x201))/0xc);if(_0xbc6515===_0x5e0787)break;else _0x547cf7['push'](_0x547cf7['shift']());}catch(_0x793ffb){_0x547cf7['push'](_0x547cf7['shift']());}}}(_0x49b4,0xe106c));import{ObservableMixin as _0x4e0868}from'ckeditor5/src/utils.js';function _0xcc8a(_0x3710a3,_0x4088c3){const _0x49b495=_0x49b4();return _0xcc8a=function(_0xcc8a79,_0x38688b){_0xcc8a79=_0xcc8a79-0x1ef;let _0x1406da=_0x49b495[_0xcc8a79];return _0x1406da;},_0xcc8a(_0x3710a3,_0x4088c3);}import{MarkdownGfmMdToHtml as _0x1021d7}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x2ad3a6}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x4e0868(){[_0xf18517(0x1f7)];constructor(){const _0x1fd4ea=_0xf18517;super(),this[_0x1fd4ea(0x1f7)]=new _0x1021d7();}[_0xf18517(0x1f9)](_0x36cbd2){const _0x2f20e9=_0xf18517,_0x37650f=this[_0x2f20e9(0x1f7)][_0x2f20e9(0x202)](_0x36cbd2);return this[_0x2f20e9(0x1f0)](_0x37650f);}[_0xf18517(0x1f0)](_0x45d250){const _0x2b1194=_0xf18517;return this[_0x2b1194(0x1fb)](_0x45d250);}[_0xf18517(0x1fb)](_0xc516c7){const _0x10a9b4=_0xf18517,_0x205151=_0xc516c7[_0x10a9b4(0x1fa)](/^\t+/gm,'\x20')[_0x10a9b4(0x1fa)](/\n*/g,'')[_0x10a9b4(0x1fa)](/\s+/g,'\x20')[_0x10a9b4(0x1fa)](/<[^>]*?$/g,''),_0x363c0d=_0x2ad3a6(_0x10a9b4(0x1f1)+_0x205151+_0x10a9b4(0x1f4));return _0x363c0d[_0x10a9b4(0x1f6)]=_0x363c0d[_0x10a9b4(0x1f6)][0x0][_0x10a9b4(0x1f6)],_0x363c0d;}}
23
+ const _0x2e04d9=_0xab6e;(function(_0xbec749,_0x9243d1){const _0x4ab7f5=_0xab6e,_0x49a665=_0xbec749();while(!![]){try{const _0x96b6f8=parseInt(_0x4ab7f5(0x12e))/0x1+-parseInt(_0x4ab7f5(0x129))/0x2*(-parseInt(_0x4ab7f5(0x121))/0x3)+parseInt(_0x4ab7f5(0x123))/0x4*(-parseInt(_0x4ab7f5(0x132))/0x5)+-parseInt(_0x4ab7f5(0x12f))/0x6+parseInt(_0x4ab7f5(0x134))/0x7*(parseInt(_0x4ab7f5(0x133))/0x8)+parseInt(_0x4ab7f5(0x131))/0x9+-parseInt(_0x4ab7f5(0x130))/0xa*(parseInt(_0x4ab7f5(0x128))/0xb);if(_0x96b6f8===_0x9243d1)break;else _0x49a665['push'](_0x49a665['shift']());}catch(_0x266e29){_0x49a665['push'](_0x49a665['shift']());}}}(_0x171b,0xc700c));import{ObservableMixin as _0xc98472}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x58d2d0}from'@ckeditor/ckeditor5-markdown-gfm';function _0x171b(){const _0x404a10=['parseAndNormalizeHTML','</dummy>','1730069zLNLwJ','1471540tHdWkX','replace','<dummy>','_parseHTML','_m2html','1224954GveFfd','2802024UzvBdU','70JTmDKP','2129481KJrcjG','5258845xBTYfg','312EAvIds','222117RoVRaj','3uPuCVv','parse','4tCPUjX','children','convertMarkdownToHTML'];_0x171b=function(){return _0x404a10;};return _0x171b();}function _0xab6e(_0x3a0095,_0x17c74a){const _0x171bdd=_0x171b();return _0xab6e=function(_0xab6e9d,_0x2bf2a8){_0xab6e9d=_0xab6e9d-0x121;let _0x5d258b=_0x171bdd[_0xab6e9d];return _0x5d258b;},_0xab6e(_0x3a0095,_0x17c74a);}import{parse as _0x3a0d01}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0xc98472(){[_0x2e04d9(0x12d)];constructor(){const _0x423c94=_0x2e04d9;super(),this[_0x423c94(0x12d)]=new _0x58d2d0();}[_0x2e04d9(0x125)](_0x38a920){const _0x2de634=_0x2e04d9,_0x2cb3a9=this[_0x2de634(0x12d)][_0x2de634(0x122)](_0x38a920);return this[_0x2de634(0x126)](_0x2cb3a9);}[_0x2e04d9(0x126)](_0x1600aa){const _0x4e4f44=_0x2e04d9;return this[_0x4e4f44(0x12c)](_0x1600aa);}[_0x2e04d9(0x12c)](_0x1a55cc){const _0x1e32b4=_0x2e04d9,_0x5c8883=_0x1a55cc[_0x1e32b4(0x12a)](/^\t+/gm,'\x20')[_0x1e32b4(0x12a)](/\n*/g,'')[_0x1e32b4(0x12a)](/\s+/g,'\x20')[_0x1e32b4(0x12a)](/<[^>]*?$/g,''),_0x5eb486=_0x3a0d01(_0x1e32b4(0x12b)+_0x5c8883+_0x1e32b4(0x127));return _0x5eb486[_0x1e32b4(0x124)]=_0x5eb486[_0x1e32b4(0x124)][0x0][_0x1e32b4(0x124)],_0x5eb486;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x343a(){var _0x48e565=['20bRlFeI','20964MtCgKw','setTemplate','970ctwvXR','ck-ai-disclaimer__content','21drajRN','988479LKJkAD','19393QTzdAd','div','8556gzIbtp','ck-ai-disclaimer','1645SuugzG','2249EMYmMS','19782XIwMGK','338495Krgxvp','988170pTiEiN','AI_DISCLAIMER_TEXT','16XAsUod'];_0x343a=function(){return _0x48e565;};return _0x343a();}function _0x395e(_0x39c0a0,_0x2d358a){var _0x343a0e=_0x343a();return _0x395e=function(_0x395e2c,_0x12450f){_0x395e2c=_0x395e2c-0x73;var _0x2e28c2=_0x343a0e[_0x395e2c];return _0x2e28c2;},_0x395e(_0x39c0a0,_0x2d358a);}(function(_0x2733a5,_0x4cdfed){var _0x1c4893=_0x395e,_0x3d1973=_0x2733a5();while(!![]){try{var _0x5a1e0d=-parseInt(_0x1c4893(0x7a))/0x1*(-parseInt(_0x1c4893(0x82))/0x2)+parseInt(_0x1c4893(0x84))/0x3+-parseInt(_0x1c4893(0x75))/0x4*(-parseInt(_0x1c4893(0x83))/0x5)+-parseInt(_0x1c4893(0x7e))/0x6*(parseInt(_0x1c4893(0x80))/0x7)+-parseInt(_0x1c4893(0x74))/0x8*(parseInt(_0x1c4893(0x7b))/0x9)+-parseInt(_0x1c4893(0x78))/0xa*(-parseInt(_0x1c4893(0x7c))/0xb)+-parseInt(_0x1c4893(0x76))/0xc*(parseInt(_0x1c4893(0x81))/0xd);if(_0x5a1e0d===_0x4cdfed)break;else _0x3d1973['push'](_0x3d1973['shift']());}catch(_0x1bf9fe){_0x3d1973['push'](_0x3d1973['shift']());}}}(_0x343a,0x2e4a4));import{View as _0x4c8bb3}from'ckeditor5/src/ui.js';import{getTranslation as _0x270e65}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0x4c8bb3{constructor(_0x476436){var _0x55880f=_0x395e;super(_0x476436),this[_0x55880f(0x77)]({'tag':_0x55880f(0x7d),'attributes':{'class':['ck',_0x55880f(0x7f)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x55880f(0x79)]},'children':[{'text':_0x270e65(_0x476436,_0x55880f(0x73))}]}]});}}
23
+ (function(_0x2d1549,_0x3e184d){var _0x1019d4=_0x3e00,_0x278b5d=_0x2d1549();while(!![]){try{var _0x153469=parseInt(_0x1019d4(0x103))/0x1+parseInt(_0x1019d4(0xfe))/0x2*(-parseInt(_0x1019d4(0x100))/0x3)+-parseInt(_0x1019d4(0x104))/0x4*(parseInt(_0x1019d4(0xfd))/0x5)+parseInt(_0x1019d4(0x102))/0x6+-parseInt(_0x1019d4(0xfc))/0x7+-parseInt(_0x1019d4(0xff))/0x8+parseInt(_0x1019d4(0xf9))/0x9;if(_0x153469===_0x3e184d)break;else _0x278b5d['push'](_0x278b5d['shift']());}catch(_0x4b624e){_0x278b5d['push'](_0x278b5d['shift']());}}}(_0x23cf,0x91e6d));import{View as _0x10ff07}from'ckeditor5/src/ui.js';import{getTranslation as _0x14b81e}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0x10ff07{constructor(_0x110449){var _0x547bd1=_0x3e00;super(_0x110449),this[_0x547bd1(0xfa)]({'tag':_0x547bd1(0x101),'attributes':{'class':['ck',_0x547bd1(0xfb)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x547bd1(0x105)]},'children':[{'text':_0x14b81e(_0x110449,_0x547bd1(0x106))}]}]});}}function _0x3e00(_0x22b49e,_0x1e27b7){var _0x23cfd1=_0x23cf();return _0x3e00=function(_0x3e000e,_0x48a25e){_0x3e000e=_0x3e000e-0xf9;var _0x4f5182=_0x23cfd1[_0x3e000e];return _0x4f5182;},_0x3e00(_0x22b49e,_0x1e27b7);}function _0x23cf(){var _0x4fb4db=['1068043igGFEE','1240qulbbH','ck-ai-disclaimer__content','AI_DISCLAIMER_TEXT','13215996DuMqBg','setTemplate','ck-ai-disclaimer','4593260phouuX','17590UdAbTd','206eELIna','2012752XQnEWY','22893SlUcKi','div','5072838iraplA'];_0x23cf=function(){return _0x4fb4db;};return _0x23cf();}