@ckeditor/ckeditor5-ai 47.1.0-alpha.0 → 47.1.0-alpha.2

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 (288) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +4 -4
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  175. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  176. package/src/aiballoon/ui/aiballoonview.js +1 -1
  177. package/src/aichat/aichat.js +1 -1
  178. package/src/aichat/aichatcontroller.js +1 -1
  179. package/src/aichat/aichatui.js +1 -1
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/model/aichatmodels.js +1 -1
  184. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  185. package/src/aichat/ui/aichatfeedview.js +1 -1
  186. package/src/aichat/ui/aichatheaderview.js +1 -1
  187. package/src/aichat/ui/aichatview.js +1 -1
  188. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichat/utils/scrollmanager.js +1 -1
  212. package/src/aichathistory/aichathistory.js +1 -1
  213. package/src/aichathistory/aichathistorycontroller.js +1 -1
  214. package/src/aichathistory/aichathistoryui.js +1 -1
  215. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  216. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  217. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  221. package/src/aicore/aiconnector.js +1 -1
  222. package/src/aicore/aiediting.js +1 -1
  223. package/src/aicore/model/aicapabilities.js +1 -1
  224. package/src/aicore/model/aicontext.js +1 -1
  225. package/src/aicore/model/aiinteraction.js +1 -1
  226. package/src/aicore/model/aireply.js +1 -1
  227. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  228. package/src/aicore/pipeline/airesponseparser.js +2 -2
  229. package/src/aicore/ui/aidisclaimerview.js +1 -1
  230. package/src/aicore/ui/aiskeleton.js +1 -1
  231. package/src/aicore/ui/aispinner.js +1 -1
  232. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  233. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  237. package/src/aicore/utils/common-translations.js +1 -1
  238. package/src/aicore/utils/createresizebutton.js +1 -1
  239. package/src/aicore/utils/documentposition.js +1 -1
  240. package/src/aicore/utils/documentrange.js +1 -1
  241. package/src/aicore/utils/eventnames.js +1 -1
  242. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  243. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  244. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  245. package/src/aicore/utils/htmlparser.js +1 -1
  246. package/src/aicore/utils/htmlstreamer.js +1 -1
  247. package/src/aieditorintegration/aieditorintegration.js +1 -1
  248. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  249. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  250. package/src/aiquickactions/aiquickactions.js +1 -1
  251. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  252. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  253. package/src/aiquickactions/aiquickactionsui.js +1 -1
  254. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  257. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  258. package/src/aireviewmode/aireviewmode.js +1 -1
  259. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  260. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  261. package/src/aireviewmode/aireviewmodeui.js +1 -1
  262. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  263. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  264. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  265. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  268. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  269. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  270. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  271. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  272. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  273. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  280. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  281. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  282. package/src/aitabs/aitabs.js +1 -1
  283. package/src/aitabs/aitabsmainview.js +1 -1
  284. package/src/aitabs/tabs/aitabsview.js +1 -1
  285. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  286. package/src/aitabs/tabs/tabpanelview.js +1 -1
  287. package/src/errors.js +1 -1
  288. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x167ff5=_0x51a2;(function(_0x1fbbed,_0x51a5d5){const _0x17c7c8=_0x51a2,_0x40542f=_0x1fbbed();while(!![]){try{const _0x301531=parseInt(_0x17c7c8(0xb1))/0x1+parseInt(_0x17c7c8(0xdc))/0x2*(-parseInt(_0x17c7c8(0xdd))/0x3)+-parseInt(_0x17c7c8(0xdf))/0x4+-parseInt(_0x17c7c8(0xb7))/0x5+-parseInt(_0x17c7c8(0xf7))/0x6*(parseInt(_0x17c7c8(0xd2))/0x7)+-parseInt(_0x17c7c8(0xfb))/0x8*(parseInt(_0x17c7c8(0x103))/0x9)+parseInt(_0x17c7c8(0xe1))/0xa;if(_0x301531===_0x51a5d5)break;else _0x40542f['push'](_0x40542f['shift']());}catch(_0x530f7b){_0x40542f['push'](_0x40542f['shift']());}}}(_0x2318,0xa419d));import{View as _0x1099bb,SearchTextView as _0x23c41f,FormHeaderView as _0x1f3c1f,ButtonView as _0x3ac8ef}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x3dd3cf,IconCancel as _0x1d96e0,IconPlus as _0x2dc29c}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x56bb0f}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0xf79993}from'./aichathistorylistview.js';function _0x51a2(_0x21b49d,_0x4b50d5){const _0x2318a7=_0x2318();return _0x51a2=function(_0x51a2aa,_0x36a32f){_0x51a2aa=_0x51a2aa-0xab;let _0x24c25a=_0x2318a7[_0x51a2aa];return _0x24c25a;},_0x51a2(_0x21b49d,_0x4b50d5);}import{AIChatHistoryListItemView as _0x2ca93f}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x1d84d8}from'../aichathistoryui.js';import{AISkeletonView as _0x3e5bb1,SKELETON_DEFINITIONS as _0xb95883}from'../../aicore/ui/aiskeleton.js';function _0x2318(){const _0x383ab8=['addMany','removeItem','updateItemLoadingState','2360505TwVlAh','extendTemplate','ck-ai-chat-history__content','updateLoadingState','ck-hidden','title','set','setTemplate','updateItemTitle','isLoading','384068qLAjNP','15weyuLj','_refreshSearch','4675740dMqjLl','_createSkeletonView','43758850BwEKHq','sections','isVisible','ck-ai-chat-history__empty-message','ck-ai-chat__start-conversation','isSearchViewVisible','removeHistoryItem','execute','render','_createEmptyStateView','ck-ai-chat-history__empty','change:isLoading','some','ck-ai-chat-error','aiHistory','AI_CHAT_HISTORY_HEADING','updateTitle','resizeButton','openChat','ck-reset_all','splice','AI_CHAT_HISTORY_EMPTY_MESSAGE','18XTqLwl','_createErrorView','ck-rounded-corners','sectionsView','8uCkmjZ','searchView','bindTemplate','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','element','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','value','isMaximized','4780557dugKea','children','getItem','change:hasItems','delegate','ck-ai-chat-history','errorView','ltr','clear','1150558BDpPOE','ck-ai-chat-error__dismiss-button','AI_CHAT_HISTORY_SEARCH_LABEL','itemsViews','div','add','5911815LyViIl','errorMessage','change:errorMessage','items','_createSearchView','push','queryView','locale','fire','AI_CHAT_LABEL_NEW_CHAT','emptyView','updateHistoryItemsWithCategories','ck-ai-header\x20ck-ai-header_history','bind','_createListItemViews','search','hasItems','isEmptyViewVisible','_updateViewVisibility','skeletonView','fieldView','remove','length','indexOf'];_0x2318=function(){return _0x383ab8;};return _0x2318();}import{createResizeButton as _0x1a1299}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x58e0e9}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x1099bb{[_0x167ff5(0xfc)];[_0x167ff5(0xae)];[_0x167ff5(0xca)];[_0x167ff5(0xc1)];[_0x167ff5(0xfa)];[_0x167ff5(0xf2)];constructor(_0x4267d6,_0x18153b){const _0xc5301b=_0x167ff5;super(_0x4267d6),this[_0xc5301b(0xd8)](_0xc5301b(0xc7),!0x1),this[_0xc5301b(0xd8)](_0xc5301b(0xdb),!0x0),this[_0xc5301b(0xd8)](_0xc5301b(0xb8),''),this[_0xc5301b(0xd8)](_0xc5301b(0x102),!0x1),this[_0xc5301b(0xd8)](_0xc5301b(0xe6),!0x1),this[_0xc5301b(0xd8)](_0xc5301b(0xc8),!0x1);const _0x43756d=new _0x1f3c1f(_0x4267d6,{'label':_0x58e0e9(_0x4267d6,_0xc5301b(0xf0)),'icon':_0x3dd3cf,'class':_0xc5301b(0xc3)});_0x18153b&&(this[_0xc5301b(0xf2)]=_0x1a1299(_0x4267d6,this),_0x43756d[_0xc5301b(0x104)][_0xc5301b(0xb6)](this[_0xc5301b(0xf2)])),this[_0xc5301b(0xfa)]=new _0x56bb0f(_0x4267d6,[]),this[_0xc5301b(0xfa)][_0xc5301b(0xac)](..._0x1d84d8)['to'](this),this[_0xc5301b(0xae)]=this[_0xc5301b(0xf8)](),this[_0xc5301b(0xca)]=this[_0xc5301b(0xe0)](),this[_0xc5301b(0xc1)]=this[_0xc5301b(0xea)](),this[_0xc5301b(0xfc)]=this[_0xc5301b(0xbb)](),this['on'](_0xc5301b(0xec),()=>this[_0xc5301b(0xc9)]()),this['on'](_0xc5301b(0xab),()=>this[_0xc5301b(0xc9)]()),this['on'](_0xc5301b(0xb9),()=>this[_0xc5301b(0xc9)]()),this[_0xc5301b(0xd9)]({'tag':_0xc5301b(0xb5),'attributes':{'class':['ck',_0xc5301b(0xf4),_0xc5301b(0xad),_0xc5301b(0xf9)],'dir':_0xc5301b(0xaf)},'children':[_0x43756d,{'tag':_0xc5301b(0xb5),'attributes':{'class':[_0xc5301b(0xd4)]},'children':[this[_0xc5301b(0xca)],this[_0xc5301b(0xae)],this[_0xc5301b(0xc1)],this[_0xc5301b(0xfc)]]}]});}[_0x167ff5(0xc9)](){const _0x2f2678=_0x167ff5;this[_0x2f2678(0xe6)]=!this[_0x2f2678(0xdb)]&&this[_0x2f2678(0xc7)]&&!this[_0x2f2678(0xb8)],this[_0x2f2678(0xc8)]=!this[_0x2f2678(0xdb)]&&!this[_0x2f2678(0xc7)]&&!this[_0x2f2678(0xb8)];}[_0x167ff5(0xbb)](){const _0x4d42c4=_0x167ff5,_0x549d9b=new _0x23c41f(this[_0x4d42c4(0xbe)],{'filteredView':this[_0x4d42c4(0xfa)],'queryView':{'label':_0x58e0e9(this[_0x4d42c4(0xbe)],_0x4d42c4(0xb3))},'infoView':{'text':{'notFound':{'primary':_0x503065=>_0x58e0e9(this[_0x4d42c4(0xbe)],_0x4d42c4(0x100),_0x503065),'secondary':_0x58e0e9(this[_0x4d42c4(0xbe)],_0x4d42c4(0xfe))}}}});return _0x549d9b['on'](_0x4d42c4(0xe9),()=>{const _0x5da6cc=_0x4d42c4;this[_0x5da6cc(0xfc)][_0x5da6cc(0x104)][_0x5da6cc(0xb6)](this[_0x5da6cc(0xae)],0x1);}),_0x549d9b[_0x4d42c4(0xd3)]({'attributes':{'class':[this[_0x4d42c4(0xfd)]['if'](_0x4d42c4(0xe6),_0x4d42c4(0xd6),_0x3ef845=>!_0x3ef845)]}}),_0x549d9b;}[_0x167ff5(0xe0)](){const _0x1a94cb=_0x167ff5,_0x3c3a46=new _0x3e5bb1(this[_0x1a94cb(0xbe)],_0xb95883[_0x1a94cb(0xef)]);return _0x3c3a46[_0x1a94cb(0xd3)]({'attributes':{'class':[this[_0x1a94cb(0xfd)]['if'](_0x1a94cb(0xdb),_0x1a94cb(0xd6),_0x34a3b3=>!_0x34a3b3)]}}),_0x3c3a46;}[_0x167ff5(0xf8)](){const _0x239dd2=_0x167ff5,_0x551078=new _0x1099bb(this[_0x239dd2(0xbe)]),_0x109e6b=new _0x3ac8ef(this[_0x239dd2(0xbe)]);return _0x109e6b[_0x239dd2(0xd8)]({'withText':!0x1,'icon':_0x1d96e0,'class':_0x239dd2(0xb2)}),_0x109e6b[_0x239dd2(0xc4)](_0x239dd2(0xe3))['to'](this,_0x239dd2(0xc7),_0x282355=>!!_0x282355),_0x109e6b['on'](_0x239dd2(0xe8),()=>{const _0x8efcc3=_0x239dd2;this[_0x8efcc3(0xb8)]='';}),_0x551078[_0x239dd2(0xd9)]({'tag':_0x239dd2(0xb5),'attributes':{'class':['ck',_0x239dd2(0xee),this[_0x239dd2(0xfd)]['if'](_0x239dd2(0xb8),_0x239dd2(0xd6),_0x56e45b=>!_0x56e45b)]},'children':[{'tag':'p','children':[{'text':this[_0x239dd2(0xfd)]['to'](_0x239dd2(0xb8))}]},_0x109e6b]}),_0x551078;}[_0x167ff5(0xea)](){const _0x6827be=_0x167ff5,_0x58dfee=new _0x3ac8ef(this[_0x6827be(0xbe)]);_0x58dfee[_0x6827be(0xd8)]({'label':_0x58e0e9(this[_0x6827be(0xbe)],_0x6827be(0xc0)),'withText':!0x0,'icon':_0x2dc29c,'class':_0x6827be(0xe5)}),_0x58dfee['on'](_0x6827be(0xe8),()=>{const _0x2d715e=_0x6827be;this[_0x2d715e(0xbf)](_0x2d715e(0xf3));});const _0x4e2351=new _0x1099bb(this[_0x6827be(0xbe)]);return _0x4e2351[_0x6827be(0xd9)]({'tag':_0x6827be(0xb5),'attributes':{'class':[_0x6827be(0xeb),this[_0x6827be(0xfd)]['if'](_0x6827be(0xc8),_0x6827be(0xd6),_0x3d0ecb=>!_0x3d0ecb)]},'children':[{'tag':'p','attributes':{'class':[_0x6827be(0xe4)]},'children':[_0x58e0e9(this[_0x6827be(0xbe)],_0x6827be(0xf6))]},_0x58dfee]}),_0x4e2351;}[_0x167ff5(0xc5)](_0x550c95,_0x14d8f3){const _0x6df5a4=_0x167ff5,_0x256c7f=[];for(const _0x11319e of _0x550c95){const _0x371026=new _0x2ca93f(_0x14d8f3,_0x11319e);_0x371026[_0x6df5a4(0xac)](..._0x1d84d8)['to'](this),_0x256c7f[_0x6df5a4(0xbc)](_0x371026);}return _0x256c7f;}[_0x167ff5(0xc2)](_0x17a7cd){const _0x2831b8=_0x167ff5,_0x310251=this[_0x2831b8(0xbe)]||'en',_0xf4524=[];for(const _0x34502d of _0x17a7cd){const _0xa2d9a2=this[_0x2831b8(0xc5)](_0x34502d[_0x2831b8(0xba)],_0x310251);_0xf4524[_0x2831b8(0xbc)](new _0xf79993(_0x310251,{'title':_0x34502d[_0x2831b8(0xd7)],'items':_0xa2d9a2}));}this[_0x2831b8(0xfa)][_0x2831b8(0xe2)]=_0xf4524,this[_0x2831b8(0xfa)][_0x2831b8(0xba)][_0x2831b8(0xb0)](),this[_0x2831b8(0xfa)][_0x2831b8(0xba)][_0x2831b8(0xcf)](_0xf4524),this[_0x2831b8(0xc7)]=_0x17a7cd[_0x2831b8(0xed)](_0x30d3f9=>_0x30d3f9[_0x2831b8(0xba)][_0x2831b8(0xcd)]>0x0),this[_0x2831b8(0xde)]();}[_0x167ff5(0xe7)](_0x367305){const _0x3b0b14=_0x167ff5;for(const _0x427203 of this[_0x3b0b14(0xfa)][_0x3b0b14(0xe2)]){const _0x189ca9=_0x427203[_0x3b0b14(0x105)](_0x367305);if(_0x189ca9){if(_0x427203[_0x3b0b14(0xd0)](_0x189ca9),0x0===_0x427203[_0x3b0b14(0xb4)][_0x3b0b14(0xcd)]){const _0x49489e=this[_0x3b0b14(0xfa)][_0x3b0b14(0xe2)][_0x3b0b14(0xce)](_0x427203);-0x1!==_0x49489e&&(this[_0x3b0b14(0xfa)][_0x3b0b14(0xe2)][_0x3b0b14(0xf5)](_0x49489e,0x1),this[_0x3b0b14(0xfa)][_0x3b0b14(0xba)][_0x3b0b14(0xcc)](_0x427203));}this[_0x3b0b14(0xc7)]=this[_0x3b0b14(0xfa)][_0x3b0b14(0xe2)][_0x3b0b14(0xcd)]>0x0,this[_0x3b0b14(0xde)]();break;}}}[_0x167ff5(0xda)](_0x337300,_0x4b9110){const _0x27a157=_0x167ff5;for(const _0x2f0d3f of this[_0x27a157(0xfa)][_0x27a157(0xe2)]){const _0x47b82a=_0x2f0d3f[_0x27a157(0x105)](_0x337300);if(_0x47b82a){_0x47b82a[_0x27a157(0xf1)](_0x4b9110);break;}}}[_0x167ff5(0xd1)](_0x15f9e3,_0x5dc607,_0xc76bc3){const _0x123b19=_0x167ff5;for(const _0x58e8f4 of this[_0x123b19(0xfa)][_0x123b19(0xe2)]){const _0x322802=_0x58e8f4[_0x123b19(0x105)](_0x15f9e3);if(_0x322802){_0x322802[_0x123b19(0xd5)](_0x5dc607,_0xc76bc3);break;}}}[_0x167ff5(0xde)](){const _0x181e8e=_0x167ff5;if(this[_0x181e8e(0xc7)]){const _0x3fea9e=this[_0x181e8e(0xfc)][_0x181e8e(0xbd)][_0x181e8e(0xcb)]?.[_0x181e8e(0xff)]?.[_0x181e8e(0x101)]||'';this[_0x181e8e(0xfc)][_0x181e8e(0xc6)](_0x3fea9e);}}}
23
+ function _0x545b(_0x1c1ac7,_0x47c318){const _0x3a8a6f=_0x3a8a();return _0x545b=function(_0x545b65,_0x193524){_0x545b65=_0x545b65-0x10e;let _0x442348=_0x3a8a6f[_0x545b65];return _0x442348;},_0x545b(_0x1c1ac7,_0x47c318);}const _0x212580=_0x545b;(function(_0x4f4892,_0xa6cb4d){const _0x5a5698=_0x545b,_0x16c301=_0x4f4892();while(!![]){try{const _0x36590d=parseInt(_0x5a5698(0x15d))/0x1+parseInt(_0x5a5698(0x167))/0x2+-parseInt(_0x5a5698(0x156))/0x3+parseInt(_0x5a5698(0x117))/0x4*(parseInt(_0x5a5698(0x15f))/0x5)+-parseInt(_0x5a5698(0x130))/0x6*(-parseInt(_0x5a5698(0x159))/0x7)+-parseInt(_0x5a5698(0x152))/0x8+parseInt(_0x5a5698(0x135))/0x9*(-parseInt(_0x5a5698(0x13a))/0xa);if(_0x36590d===_0xa6cb4d)break;else _0x16c301['push'](_0x16c301['shift']());}catch(_0x2778d0){_0x16c301['push'](_0x16c301['shift']());}}}(_0x3a8a,0x83286));import{View as _0x2d5fa9,SearchTextView as _0x11d34a,FormHeaderView as _0x56f1a3,ButtonView as _0x4e3ba4}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x40d80d,IconCancel as _0x56f0fd,IconPlus as _0x220d08}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x586905}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x5c04a2}from'./aichathistorylistview.js';function _0x3a8a(){const _0x436480=['extendTemplate','items','ck-rounded-corners','removeItem','errorView','isMaximized','_createEmptyStateView','change:hasItems','isSearchViewVisible','AI_CHAT_LABEL_NEW_CHAT','_createSkeletonView','fieldView','ltr','bindTemplate','children','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','locale','value','getItem','delegate','2566360FyZkaX','fire','render','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','1060089UKVPdl','sectionsView','queryView','2151569sBIqQK','push','element','_createListItemViews','57620QTLjRN','_updateViewVisibility','5SYrMdz','remove','emptyView','setTemplate','ck-ai-header\x20ck-ai-header_history','removeHistoryItem','isEmptyViewVisible','errorMessage','317202zMYbIr','isLoading','splice','AI_CHAT_HISTORY_HEADING','AI_CHAT_HISTORY_SEARCH_LABEL','updateItemTitle','change:errorMessage','ck-ai-chat-error','ck-reset_all','_refreshSearch','ck-ai-chat-history__empty-message','3698836WXtHJW','addMany','hasItems','ck-ai-chat-history__content','set','isVisible','div','aiHistory','resizeButton','updateHistoryItemsWithCategories','_createSearchView','AI_CHAT_HISTORY_EMPTY_MESSAGE','updateTitle','ck-ai-chat-history','sections','ck-ai-chat-error__dismiss-button','updateItemLoadingState','add','title','execute','some','ck-ai-chat__start-conversation','search','indexOf','openChat','6xvoXtd','itemsViews','_createErrorView','searchView','change:isLoading','2132253FyXTXa','length','ck-ai-chat-history__empty','clear','updateLoadingState','10PZguDj','ck-hidden','bind','skeletonView'];_0x3a8a=function(){return _0x436480;};return _0x3a8a();}import{AIChatHistoryListItemView as _0x5d1c3f}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0xc935bc}from'../aichathistoryui.js';import{AISkeletonView as _0x44489a,SKELETON_DEFINITIONS as _0x52cf4d}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x40b245}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x574855}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x2d5fa9{[_0x212580(0x133)];[_0x212580(0x142)];[_0x212580(0x13d)];[_0x212580(0x161)];[_0x212580(0x157)];[_0x212580(0x11f)];constructor(_0x1d1b24,_0x9f16e2){const _0x511de4=_0x212580;super(_0x1d1b24),this[_0x511de4(0x11b)](_0x511de4(0x119),!0x1),this[_0x511de4(0x11b)](_0x511de4(0x168),!0x0),this[_0x511de4(0x11b)](_0x511de4(0x166),''),this[_0x511de4(0x11b)](_0x511de4(0x143),!0x1),this[_0x511de4(0x11b)](_0x511de4(0x146),!0x1),this[_0x511de4(0x11b)](_0x511de4(0x165),!0x1);const _0x369d58=new _0x56f1a3(_0x1d1b24,{'label':_0x574855(_0x1d1b24,_0x511de4(0x10f)),'icon':_0x40d80d,'class':_0x511de4(0x163)});_0x9f16e2&&(this[_0x511de4(0x11f)]=_0x40b245(_0x1d1b24,this),_0x369d58[_0x511de4(0x14c)][_0x511de4(0x128)](this[_0x511de4(0x11f)])),this[_0x511de4(0x157)]=new _0x586905(_0x1d1b24,[]),this[_0x511de4(0x157)][_0x511de4(0x151)](..._0xc935bc)['to'](this),this[_0x511de4(0x142)]=this[_0x511de4(0x132)](),this[_0x511de4(0x13d)]=this[_0x511de4(0x148)](),this[_0x511de4(0x161)]=this[_0x511de4(0x144)](),this[_0x511de4(0x133)]=this[_0x511de4(0x121)](),this['on'](_0x511de4(0x134),()=>this[_0x511de4(0x15e)]()),this['on'](_0x511de4(0x145),()=>this[_0x511de4(0x15e)]()),this['on'](_0x511de4(0x112),()=>this[_0x511de4(0x15e)]()),this[_0x511de4(0x162)]({'tag':_0x511de4(0x11d),'attributes':{'class':['ck',_0x511de4(0x114),_0x511de4(0x124),_0x511de4(0x140)],'dir':_0x511de4(0x14a)},'children':[_0x369d58,{'tag':_0x511de4(0x11d),'attributes':{'class':[_0x511de4(0x11a)]},'children':[this[_0x511de4(0x13d)],this[_0x511de4(0x142)],this[_0x511de4(0x161)],this[_0x511de4(0x133)]]}]});}[_0x212580(0x15e)](){const _0x13e8e4=_0x212580;this[_0x13e8e4(0x146)]=!this[_0x13e8e4(0x168)]&&this[_0x13e8e4(0x119)]&&!this[_0x13e8e4(0x166)],this[_0x13e8e4(0x165)]=!this[_0x13e8e4(0x168)]&&!this[_0x13e8e4(0x119)]&&!this[_0x13e8e4(0x166)];}[_0x212580(0x121)](){const _0x59fc64=_0x212580,_0x5571c0=new _0x11d34a(this[_0x59fc64(0x14e)],{'filteredView':this[_0x59fc64(0x157)],'queryView':{'label':_0x574855(this[_0x59fc64(0x14e)],_0x59fc64(0x110))},'infoView':{'text':{'notFound':{'primary':_0x1ca5cf=>_0x574855(this[_0x59fc64(0x14e)],_0x59fc64(0x155),_0x1ca5cf),'secondary':_0x574855(this[_0x59fc64(0x14e)],_0x59fc64(0x14d))}}}});return _0x5571c0['on'](_0x59fc64(0x154),()=>{const _0x464979=_0x59fc64;this[_0x464979(0x133)][_0x464979(0x14c)][_0x464979(0x128)](this[_0x464979(0x142)],0x1);}),_0x5571c0[_0x59fc64(0x13e)]({'attributes':{'class':[this[_0x59fc64(0x14b)]['if'](_0x59fc64(0x146),_0x59fc64(0x13b),_0x166c84=>!_0x166c84)]}}),_0x5571c0;}[_0x212580(0x148)](){const _0x4eb26a=_0x212580,_0x402d7c=new _0x44489a(this[_0x4eb26a(0x14e)],_0x52cf4d[_0x4eb26a(0x11e)]);return _0x402d7c[_0x4eb26a(0x13e)]({'attributes':{'class':[this[_0x4eb26a(0x14b)]['if'](_0x4eb26a(0x168),_0x4eb26a(0x13b),_0xeca38=>!_0xeca38)]}}),_0x402d7c;}[_0x212580(0x132)](){const _0x2867c5=_0x212580,_0x3cc5d9=new _0x2d5fa9(this[_0x2867c5(0x14e)]),_0x237e92=new _0x4e3ba4(this[_0x2867c5(0x14e)]);return _0x237e92[_0x2867c5(0x11b)]({'withText':!0x1,'icon':_0x56f0fd,'class':_0x2867c5(0x126)}),_0x237e92[_0x2867c5(0x13c)](_0x2867c5(0x11c))['to'](this,_0x2867c5(0x119),_0x7da371=>!!_0x7da371),_0x237e92['on'](_0x2867c5(0x12a),()=>{const _0x1e4977=_0x2867c5;this[_0x1e4977(0x166)]='';}),_0x3cc5d9[_0x2867c5(0x162)]({'tag':_0x2867c5(0x11d),'attributes':{'class':['ck',_0x2867c5(0x113),this[_0x2867c5(0x14b)]['if'](_0x2867c5(0x166),_0x2867c5(0x13b),_0x3b6866=>!_0x3b6866)]},'children':[{'tag':'p','children':[{'text':this[_0x2867c5(0x14b)]['to'](_0x2867c5(0x166))}]},_0x237e92]}),_0x3cc5d9;}[_0x212580(0x144)](){const _0x9fd980=_0x212580,_0x132e47=new _0x4e3ba4(this[_0x9fd980(0x14e)]);_0x132e47[_0x9fd980(0x11b)]({'label':_0x574855(this[_0x9fd980(0x14e)],_0x9fd980(0x147)),'withText':!0x0,'icon':_0x220d08,'class':_0x9fd980(0x12c)}),_0x132e47['on'](_0x9fd980(0x12a),()=>{const _0x43594f=_0x9fd980;this[_0x43594f(0x153)](_0x43594f(0x12f));});const _0x9bbe08=new _0x2d5fa9(this[_0x9fd980(0x14e)]);return _0x9bbe08[_0x9fd980(0x162)]({'tag':_0x9fd980(0x11d),'attributes':{'class':[_0x9fd980(0x137),this[_0x9fd980(0x14b)]['if'](_0x9fd980(0x165),_0x9fd980(0x13b),_0x552e31=>!_0x552e31)]},'children':[{'tag':'p','attributes':{'class':[_0x9fd980(0x116)]},'children':[_0x574855(this[_0x9fd980(0x14e)],_0x9fd980(0x122))]},_0x132e47]}),_0x9bbe08;}[_0x212580(0x15c)](_0x2dc803,_0x490681){const _0x5f1e3e=_0x212580,_0x3d29d6=[];for(const _0x5d537a of _0x2dc803){const _0x25fceb=new _0x5d1c3f(_0x490681,_0x5d537a);_0x25fceb[_0x5f1e3e(0x151)](..._0xc935bc)['to'](this),_0x3d29d6[_0x5f1e3e(0x15a)](_0x25fceb);}return _0x3d29d6;}[_0x212580(0x120)](_0x457d6c){const _0x520a08=_0x212580,_0x48baeb=this[_0x520a08(0x14e)]||'en',_0x2dacd0=[];for(const _0x3a8fca of _0x457d6c){const _0x567d4a=this[_0x520a08(0x15c)](_0x3a8fca[_0x520a08(0x13f)],_0x48baeb);_0x2dacd0[_0x520a08(0x15a)](new _0x5c04a2(_0x48baeb,{'title':_0x3a8fca[_0x520a08(0x129)],'items':_0x567d4a}));}this[_0x520a08(0x157)][_0x520a08(0x125)]=_0x2dacd0,this[_0x520a08(0x157)][_0x520a08(0x13f)][_0x520a08(0x138)](),this[_0x520a08(0x157)][_0x520a08(0x13f)][_0x520a08(0x118)](_0x2dacd0),this[_0x520a08(0x119)]=_0x457d6c[_0x520a08(0x12b)](_0x38150f=>_0x38150f[_0x520a08(0x13f)][_0x520a08(0x136)]>0x0),this[_0x520a08(0x115)]();}[_0x212580(0x164)](_0x578502){const _0x1056d0=_0x212580;for(const _0x459910 of this[_0x1056d0(0x157)][_0x1056d0(0x125)]){const _0x346f5d=_0x459910[_0x1056d0(0x150)](_0x578502);if(_0x346f5d){if(_0x459910[_0x1056d0(0x141)](_0x346f5d),0x0===_0x459910[_0x1056d0(0x131)][_0x1056d0(0x136)]){const _0x355080=this[_0x1056d0(0x157)][_0x1056d0(0x125)][_0x1056d0(0x12e)](_0x459910);-0x1!==_0x355080&&(this[_0x1056d0(0x157)][_0x1056d0(0x125)][_0x1056d0(0x10e)](_0x355080,0x1),this[_0x1056d0(0x157)][_0x1056d0(0x13f)][_0x1056d0(0x160)](_0x459910));}this[_0x1056d0(0x119)]=this[_0x1056d0(0x157)][_0x1056d0(0x125)][_0x1056d0(0x136)]>0x0,this[_0x1056d0(0x115)]();break;}}}[_0x212580(0x111)](_0x4e665e,_0x6e4954){const _0x2a30e6=_0x212580;for(const _0x5c7dc1 of this[_0x2a30e6(0x157)][_0x2a30e6(0x125)]){const _0x137d31=_0x5c7dc1[_0x2a30e6(0x150)](_0x4e665e);if(_0x137d31){_0x137d31[_0x2a30e6(0x123)](_0x6e4954);break;}}}[_0x212580(0x127)](_0x3909fb,_0x5ee76b,_0x255533){const _0x34f1b0=_0x212580;for(const _0x127c62 of this[_0x34f1b0(0x157)][_0x34f1b0(0x125)]){const _0x371afd=_0x127c62[_0x34f1b0(0x150)](_0x3909fb);if(_0x371afd){_0x371afd[_0x34f1b0(0x139)](_0x5ee76b,_0x255533);break;}}}[_0x212580(0x115)](){const _0x2587a6=_0x212580;if(this[_0x2587a6(0x119)]){const _0x407929=this[_0x2587a6(0x133)][_0x2587a6(0x158)][_0x2587a6(0x149)]?.[_0x2587a6(0x15b)]?.[_0x2587a6(0x14f)]||'';this[_0x2587a6(0x133)][_0x2587a6(0x12d)](_0x407929);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x38f9(){const _0x335aef=['AIConnector','updateConversation','fetchConversations','callSystemReview','append','fix-grammar','CloudServices','FIX_GRAMMAR','/files/','totalCount','upsertAIActionRating','uploadUrl','/files','/reviews/system/','/documents','https://ai.cke-cs.com/v1','uploadFile','deleteWebResource','requires','DELETE','PATCH','/documents/','/conversations?','upsertCustomAIActionRating','catch','plugins','positiveCount','true','fetchConversation','attributes','map','/ratings','status','MAKE_SHORTER','AbortError','statusText','define','make-tone-formal','upsertAIChatRating','continue','/reviews/custom/calls','1823530GYBEIU','uploadDocument','init','/calls','stringify','items','getModels','name','1034223UQZCXb','_getStreamReader','feed','91LpEyRn','read','queryAssistant','deleteConversation','then','1028890OEzWBU','upsertCustomAIReviewRating','get','make-shorter','TRANSLATE','1740180CxBuyE','CONTINUE','ai-request-aborted','/calls/','length','Bearer\x20','abortController','IMPROVE_WRITING','pluginName','limit','group','/reviews/custom/calls/','executeAction','4Zmrmjk','file','token','_sendApiRequest','MAKE_TONE_FORMAL','context','/models/1','callCustomReview','100','getReader','PUT','_apiUrl','/messages/','fetchConversationMessages','MAKE_TONE_CASUAL','Content-Type','_decoder','/conversations/','deleteDocument','executeCustomAction','_handleError','push','456928PyNHfA','182387KVVtVW','json','/actions/custom/calls/','/actions/system/','config','reset','make-tone-casual','improve-writing','translate','toString','keys','startConversation','138056uZVppL','signal','toUpperCase','GET','request','data','search','ai-request-failed','ai-missing-token','text','parse','18JRGuLa','isPremiumPlugin','upsertAIReviewRating','POST','application/json','value','AI_MODEL_DESCRIPTION_','excludeEmpty','decode','/messages','ai.serviceUrl','/web-resources/','releaseLock','make-longer','MAKE_LONGER','deleteFile','/conversations','locale','body','/web-resources','/actions/custom/calls','isOfficialPlugin','fetchDocument','_token'];_0x38f9=function(){return _0x335aef;};return _0x38f9();}const _0xf6fb7a=_0x5247;(function(_0x17bfbc,_0x422adb){const _0x13e9f3=_0x5247,_0x25fc9f=_0x17bfbc();while(!![]){try{const _0x5e80a6=-parseInt(_0x13e9f3(0xe4))/0x1+parseInt(_0x13e9f3(0xe3))/0x2+-parseInt(_0x13e9f3(0xb3))/0x3+parseInt(_0x13e9f3(0xcd))/0x4*(parseInt(_0x13e9f3(0xab))/0x5)+-parseInt(_0x13e9f3(0xc0))/0x6+-parseInt(_0x13e9f3(0xb6))/0x7*(-parseInt(_0x13e9f3(0xf0))/0x8)+-parseInt(_0x13e9f3(0xfb))/0x9*(-parseInt(_0x13e9f3(0xbb))/0xa);if(_0x5e80a6===_0x422adb)break;else _0x25fc9f['push'](_0x25fc9f['shift']());}catch(_0x3bfa62){_0x25fc9f['push'](_0x25fc9f['shift']());}}}(_0x38f9,0x32533));function _0x5247(_0xc98194,_0x6ff410){const _0x38f948=_0x38f9();return _0x5247=function(_0x5247cf,_0x39f7ab){_0x5247cf=_0x5247cf-0x78;let _0x258aa4=_0x38f948[_0x5247cf];return _0x258aa4;},_0x5247(_0xc98194,_0x6ff410);}import{createParser as _0x50347c}from'eventsource-parser';import{ContextPlugin as _0x46adb6}from'ckeditor5/src/core.js';import{CKEditorError as _0x415b3}from'ckeditor5/src/utils.js';import{getTranslation as _0x27c36e}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x3eab6e){const _0x3c0586=_0x5247;_0x3eab6e[_0x3c0586(0xc1)]=_0x3c0586(0xa9),_0x3eab6e[_0x3c0586(0x89)]=_0x3c0586(0x87),_0x3eab6e[_0x3c0586(0xc7)]=_0x3c0586(0xeb),_0x3eab6e[_0x3c0586(0x78)]=_0x3c0586(0x108),_0x3eab6e[_0x3c0586(0xa3)]=_0x3c0586(0xbe),_0x3eab6e[_0x3c0586(0xdb)]=_0x3c0586(0xea),_0x3eab6e[_0x3c0586(0xd1)]=_0x3c0586(0xa7),_0x3eab6e[_0x3c0586(0xbf)]=_0x3c0586(0xec);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x46adb6{[_0xf6fb7a(0xd8)];[_0xf6fb7a(0x81)];[_0xf6fb7a(0xdd)];static get[_0xf6fb7a(0x94)](){const _0x41beb1=_0xf6fb7a;return[_0x41beb1(0x88)];}static get[_0xf6fb7a(0xc8)](){const _0x2f1105=_0xf6fb7a;return _0x2f1105(0x82);}static get[_0xf6fb7a(0x7f)](){return!0x0;}static get[_0xf6fb7a(0xfc)](){return!0x0;}constructor(_0x264458){const _0x369808=_0xf6fb7a;super(_0x264458),this[_0x369808(0xd2)][_0x369808(0xe8)][_0x369808(0xa6)](_0x369808(0x105),_0x369808(0x91)),this[_0x369808(0xd8)]=this[_0x369808(0xd2)][_0x369808(0xe8)][_0x369808(0xbd)](_0x369808(0x105)),this[_0x369808(0x81)]=null,this[_0x369808(0xdd)]=new TextDecoder();}[_0xf6fb7a(0xad)](){const _0x4c67b9=_0xf6fb7a,_0x1ba4fa=this[_0x4c67b9(0xd2)][_0x4c67b9(0x9b)][_0x4c67b9(0xbd)](_0x4c67b9(0x88));if(!_0x1ba4fa[_0x4c67b9(0xcf)])throw new _0x415b3(_0x4c67b9(0xf8),this);this[_0x4c67b9(0x81)]=_0x1ba4fa[_0x4c67b9(0xcf)];}[_0xf6fb7a(0xef)](_0x23b98b,_0x5ca2c1){const _0x542853=_0xf6fb7a,_0x2a6802=this[_0x542853(0xd0)](_0x542853(0x7a),_0x542853(0xfe),{'id':_0x23b98b,'group':_0x5ca2c1});return{'getConversation':async()=>(await _0x2a6802[_0x542853(0xf4)])[_0x542853(0xe5)](),'abortController':_0x2a6802[_0x542853(0xc6)]};}[_0xf6fb7a(0xb8)]({message:_0x2c050c,conversationId:_0x122b6b,parts:_0x1b6bf3,capabilities:_0x20d1d1,model:_0x140115,quickActionData:_0x4bf15b}){const _0x2c451b=_0xf6fb7a,_0x251247={..._0x4bf15b&&{'quickActionData':_0x4bf15b}},_0x64f5b3={'prompt':_0x2c050c,'content':_0x1b6bf3,'model':_0x140115,..._0x20d1d1&&{'capabilities':_0x20d1d1},...Object[_0x2c451b(0xee)](_0x251247)[_0x2c451b(0xc4)]>0x0&&{'attributes':_0x251247}},_0x3a2c75=this[_0x2c451b(0xd0)](_0x2c451b(0xde)+_0x122b6b+_0x2c451b(0x104),_0x2c451b(0xfe),_0x64f5b3);return{'getStream':async()=>{const _0x5f4f4e=_0x2c451b,_0x3f0667=(await _0x3a2c75[_0x5f4f4e(0xf4)])[_0x5f4f4e(0x7c)];return this[_0x5f4f4e(0xb4)](_0x3f0667);},'abortController':_0x3a2c75[_0x2c451b(0xc6)]};}[_0xf6fb7a(0xe0)]({content:_0x2221e3,message:_0x3960a3,model:_0x205900,outputFormat:_0x362c4f}){const _0x51164f=_0xf6fb7a,_0x5c3b2f={'content':[{'type':_0x51164f(0xf9),'content':_0x2221e3}],'prompt':_0x3960a3,'model':_0x205900,'outputFormat':_0x362c4f},_0x2761b9=this[_0x51164f(0xd0)](_0x51164f(0x7e),_0x51164f(0xfe),_0x5c3b2f);return{'getStream':async()=>{const _0x4e4226=_0x51164f,_0x441c8b=(await _0x2761b9[_0x4e4226(0xf4)])[_0x4e4226(0x7c)];return this[_0x4e4226(0xb4)](_0x441c8b);},'abortController':_0x2761b9[_0x51164f(0xc6)]};}[_0xf6fb7a(0xcc)]({actionName:_0x4cc0d4,content:_0x1434bf,args:_0x43a0b4}){const _0x484d83=_0xf6fb7a,_0x4221f0={'content':[{'type':_0x484d83(0xf9),'content':_0x1434bf}],'args':_0x43a0b4},_0x3fac86=this[_0x484d83(0xd0)](_0x484d83(0xe7)+_0x4cc0d4+_0x484d83(0xae),_0x484d83(0xfe),_0x4221f0);return{'getStream':async()=>{const _0x20854f=_0x484d83,_0x2cf319=(await _0x3fac86[_0x20854f(0xf4)])[_0x20854f(0x7c)];return this[_0x20854f(0xb4)](_0x2cf319);},'abortController':_0x3fac86[_0x484d83(0xc6)]};}[_0xf6fb7a(0x92)](_0xa65dbf,_0x455ca8,_0x498212){const _0x3ad3ad=_0xf6fb7a,_0x57c60e=new FormData();_0x57c60e[_0x3ad3ad(0x86)](_0x3ad3ad(0xce),_0x455ca8,_0x455ca8[_0x3ad3ad(0xb2)]),_0x498212&&_0x57c60e[_0x3ad3ad(0x86)](_0x3ad3ad(0x9f),JSON[_0x3ad3ad(0xaf)](_0x498212));const _0x4459ca=this[_0x3ad3ad(0xd0)](_0x3ad3ad(0xde)+_0xa65dbf+_0x3ad3ad(0x8e),_0x3ad3ad(0xfe),_0x57c60e);return{'getId':async()=>(await _0x4459ca[_0x3ad3ad(0xf4)])[_0x3ad3ad(0xe5)](),'abortController':_0x4459ca[_0x3ad3ad(0xc6)]};}[_0xf6fb7a(0x80)](_0x11aad3,_0x21153b){const _0x1a7f7c=_0xf6fb7a,_0x4e8c28=this[_0x1a7f7c(0xd0)](_0x1a7f7c(0xde)+_0x11aad3+_0x1a7f7c(0x97)+_0x21153b,_0x1a7f7c(0xf3));return{'getDocument':async()=>(await _0x4e8c28[_0x1a7f7c(0xf4)])[_0x1a7f7c(0xe5)](),'abortController':_0x4e8c28[_0x1a7f7c(0xc6)]};}[_0xf6fb7a(0xac)](_0x4c20a7,_0x3522fe,_0x1cd7aa){const _0x2ebf8a=_0xf6fb7a,_0x33a269={'content':_0x3522fe};_0x1cd7aa&&(_0x33a269[_0x2ebf8a(0x9f)]=_0x1cd7aa);const _0x408923=this[_0x2ebf8a(0xd0)](_0x2ebf8a(0xde)+_0x4c20a7+_0x2ebf8a(0x90),_0x2ebf8a(0xfe),_0x33a269);return{'getId':async()=>(await _0x408923[_0x2ebf8a(0xf4)])[_0x2ebf8a(0xe5)](),'abortController':_0x408923[_0x2ebf8a(0xc6)]};}[_0xf6fb7a(0x84)](_0x19c41b,_0x540c4b){const _0x3558df=_0xf6fb7a,_0x35c39d=new URLSearchParams();_0x35c39d[_0x3558df(0x86)](_0x3558df(0x102),_0x3558df(0x9d)),_0x35c39d[_0x3558df(0x86)](_0x3558df(0xc9),_0x3558df(0xd5)),_0x35c39d[_0x3558df(0x86)](_0x3558df(0xca),_0x19c41b),_0x540c4b&&_0x35c39d[_0x3558df(0x86)](_0x3558df(0xf6),_0x540c4b);const _0x3d187f=this[_0x3558df(0xd0)](_0x3558df(0x98)+_0x35c39d[_0x3558df(0xed)](),_0x3558df(0xf3));return{'getConversations':async()=>{const _0x47858c=_0x3558df,_0x2121f2=await _0x3d187f[_0x47858c(0xf4)];return(await _0x2121f2[_0x47858c(0xe5)]())[_0x47858c(0xb0)];},'abortController':_0x3d187f[_0x3558df(0xc6)]};}[_0xf6fb7a(0xb9)](_0x18a058){const _0xe6358d=_0xf6fb7a,_0x182641=this[_0xe6358d(0xd0)](_0xe6358d(0xde)+_0x18a058,_0xe6358d(0x95));return{'execute':async()=>{const _0x1fd6a6=_0xe6358d;await _0x182641[_0x1fd6a6(0xf4)];},'abortController':_0x182641[_0xe6358d(0xc6)]};}[_0xf6fb7a(0x83)](_0x1c48bb,_0x38aaf0){const _0x11cdeb=_0xf6fb7a,_0x567139=this[_0x11cdeb(0xd0)](_0x11cdeb(0xde)+_0x1c48bb,_0x11cdeb(0x96),_0x38aaf0);return{'getResult':async()=>(await _0x567139[_0x11cdeb(0xf4)],_0x38aaf0),'abortController':_0x567139[_0x11cdeb(0xc6)]};}[_0xf6fb7a(0x9e)](_0x3dd5ab){const _0x49df94=_0xf6fb7a,_0x5381d9=this[_0x49df94(0xd0)](_0x49df94(0xde)+_0x3dd5ab,_0x49df94(0xf3));return{'getConversation':async()=>(await _0x5381d9[_0x49df94(0xf4)])[_0x49df94(0xe5)](),'abortController':_0x5381d9[_0x49df94(0xc6)]};}[_0xf6fb7a(0xda)](_0x35f183){const _0x386637=_0xf6fb7a,_0x738928=this[_0x386637(0xd0)](_0x386637(0xde)+_0x35f183+_0x386637(0x104),_0x386637(0xf3));return{'getMessages':async()=>{const _0x455b43=_0x386637,_0x42bda7=await _0x738928[_0x455b43(0xf4)];return(await _0x42bda7[_0x455b43(0xe5)]())[_0x455b43(0xb0)];},'abortController':_0x738928[_0x386637(0xc6)]};}[_0xf6fb7a(0x8d)](_0x6bf3e3,_0xca3d8a,_0xd0874){const _0x308fbc=_0xf6fb7a,_0x225e72=this[_0x308fbc(0xd0)](_0x308fbc(0xde)+_0x6bf3e3+_0x308fbc(0x7d),_0x308fbc(0xfe),{'url':_0xca3d8a,'attributes':_0xd0874});return{'getId':async()=>(await _0x225e72[_0x308fbc(0xf4)])[_0x308fbc(0xe5)](),'abortController':_0x225e72[_0x308fbc(0xc6)]};}[_0xf6fb7a(0xb1)](){const _0x276210=_0xf6fb7a,_0x5b37c6=this[_0x276210(0xd0)](_0x276210(0xd3),_0x276210(0xf3));return{'list':async()=>{const _0x513051=_0x276210,_0x456383=await(await _0x5b37c6[_0x513051(0xf4)])[_0x513051(0xe5)](),_0xd52cf2=_0x456383[_0x513051(0xb0)][_0x513051(0xa0)](_0x2f3c73=>({..._0x2f3c73,'description':_0x27c36e(this[_0x513051(0xd2)][_0x513051(0x7b)],_0x513051(0x101)+_0x2f3c73['id'][_0x513051(0xf2)]())}));return{..._0x456383,'items':_0xd52cf2};},'abortController':_0x5b37c6[_0x276210(0xc6)]};}[_0xf6fb7a(0x79)](_0xc30dbe,_0x180c5e){const _0x3582b4=_0xf6fb7a,_0x1af9cd=this[_0x3582b4(0xd0)](_0x3582b4(0xde)+_0xc30dbe+_0x3582b4(0x8a)+_0x180c5e,_0x3582b4(0x95));return{'execute':async()=>{const _0x131030=_0x3582b4;await _0x1af9cd[_0x131030(0xf4)];},'abortController':_0x1af9cd[_0x3582b4(0xc6)]};}[_0xf6fb7a(0xdf)](_0x5badd4,_0x4c98ec){const _0xd6f7aa=_0xf6fb7a,_0x1a874a=this[_0xd6f7aa(0xd0)](_0xd6f7aa(0xde)+_0x5badd4+_0xd6f7aa(0x97)+_0x4c98ec,_0xd6f7aa(0x95));return{'execute':async()=>{const _0x117395=_0xd6f7aa;await _0x1a874a[_0x117395(0xf4)];},'abortController':_0x1a874a[_0xd6f7aa(0xc6)]};}[_0xf6fb7a(0x93)](_0x336a8e,_0x29208e){const _0x577ddd=_0xf6fb7a,_0x29fea7=this[_0x577ddd(0xd0)](_0x577ddd(0xde)+_0x336a8e+_0x577ddd(0x106)+_0x29208e,_0x577ddd(0x95));return{'execute':async()=>{const _0x7548a=_0x577ddd;await _0x29fea7[_0x7548a(0xf4)];},'abortController':_0x29fea7[_0x577ddd(0xc6)]};}[_0xf6fb7a(0x85)]({reviewName:_0x4d0023,content:_0x575f02,args:_0x1de26b}){const _0x491cb8=_0xf6fb7a,_0x558833=this[_0x491cb8(0xd0)](_0x491cb8(0x8f)+_0x4d0023+_0x491cb8(0xae),_0x491cb8(0xfe),{'content':[{'type':_0x491cb8(0xf9),'content':_0x575f02}],'args':_0x1de26b});return{'getStream':async()=>{const _0x250b99=_0x491cb8,_0x198f37=(await _0x558833[_0x250b99(0xf4)])[_0x250b99(0x7c)];return this[_0x250b99(0xb4)](_0x198f37);},'abortController':_0x558833[_0x491cb8(0xc6)]};}[_0xf6fb7a(0xd4)]({content:_0xc936b5,prompt:_0xbbaa49,model:_0x4c87af}){const _0x1b82a5=_0xf6fb7a,_0x53fac1=this[_0x1b82a5(0xd0)](_0x1b82a5(0xaa),_0x1b82a5(0xfe),{'content':[{'type':_0x1b82a5(0xf9),'content':_0xc936b5}],'prompt':_0xbbaa49,'model':_0x4c87af});return{'getStream':async()=>{const _0x2df1df=_0x1b82a5,_0x402c07=(await _0x53fac1[_0x2df1df(0xf4)])[_0x2df1df(0x7c)];return this[_0x2df1df(0xb4)](_0x402c07);},'abortController':_0x53fac1[_0x1b82a5(0xc6)]};}[_0xf6fb7a(0xa8)](_0x2c4cd2,_0x5a8b67,_0x47eee4){const _0x33c089=_0xf6fb7a,_0x36a43b=this[_0x33c089(0xd0)](_0x33c089(0xde)+_0x2c4cd2+_0x33c089(0xd9)+_0x5a8b67+_0x33c089(0xa1),_0x33c089(0xd7),{'positiveCount':_0x47eee4[_0x33c089(0x9c)],'totalCount':_0x47eee4[_0x33c089(0x8b)]});return{'execute':async()=>{const _0x25008b=_0x33c089;await _0x36a43b[_0x25008b(0xf4)];},'abortController':_0x36a43b[_0x33c089(0xc6)]};}[_0xf6fb7a(0x8c)](_0x4f01a4,_0x20621b,_0x45205a){const _0x273e73=_0xf6fb7a,_0x2927a4=this[_0x273e73(0xd0)](_0x273e73(0xe7)+_0x4f01a4+_0x273e73(0xc3)+_0x20621b+_0x273e73(0xa1),_0x273e73(0xd7),{'positiveCount':_0x45205a[_0x273e73(0x9c)],'totalCount':_0x45205a[_0x273e73(0x8b)]});return{'execute':async()=>{const _0x16f105=_0x273e73;await _0x2927a4[_0x16f105(0xf4)];},'abortController':_0x2927a4[_0x273e73(0xc6)]};}[_0xf6fb7a(0x99)](_0x587d76,_0x359584){const _0x41682d=_0xf6fb7a,_0x41e9de=this[_0x41682d(0xd0)](_0x41682d(0xe6)+_0x587d76+_0x41682d(0xa1),_0x41682d(0xd7),{'positiveCount':_0x359584[_0x41682d(0x9c)],'totalCount':_0x359584[_0x41682d(0x8b)]});return{'execute':async()=>{const _0x457c11=_0x41682d;await _0x41e9de[_0x457c11(0xf4)];},'abortController':_0x41e9de[_0x41682d(0xc6)]};}[_0xf6fb7a(0xfd)](_0x572ea3,_0x44400d,_0x43f56a,_0x27ebfd){const _0x30b514=_0xf6fb7a,_0x284fd6=this[_0x30b514(0xd0)](_0x30b514(0x8f)+_0x572ea3+_0x30b514(0xc3)+_0x44400d+_0x30b514(0xa1),_0x30b514(0xd7),{'positiveCount':_0x43f56a[_0x30b514(0x9c)],'totalCount':_0x43f56a[_0x30b514(0x8b)],'dataId':_0x27ebfd});return{'execute':async()=>{const _0x5beaee=_0x30b514;await _0x284fd6[_0x5beaee(0xf4)];},'abortController':_0x284fd6[_0x30b514(0xc6)]};}[_0xf6fb7a(0xbc)](_0x181ad2,_0x2715fd,_0x258514){const _0x2aeb7a=_0xf6fb7a,_0xa40b5a=this[_0x2aeb7a(0xd0)](_0x2aeb7a(0xcb)+_0x181ad2+_0x2aeb7a(0xa1),_0x2aeb7a(0xd7),{'positiveCount':_0x2715fd[_0x2aeb7a(0x9c)],'totalCount':_0x2715fd[_0x2aeb7a(0x8b)],'dataId':_0x258514});return{'execute':async()=>{const _0x5f134c=_0x2aeb7a;await _0xa40b5a[_0x5f134c(0xf4)];},'abortController':_0xa40b5a[_0x2aeb7a(0xc6)]};}[_0xf6fb7a(0xd0)](_0x11fbc8,_0x1c90f9,_0xb0f6b0){const _0x4d2c54=_0xf6fb7a,_0x920c38=new AbortController(),_0x438007=_0xb0f6b0 instanceof FormData,_0x48881a={'Authorization':_0x4d2c54(0xc5)+this[_0x4d2c54(0x81)]?.[_0x4d2c54(0x100)]};_0xb0f6b0&&!_0x438007&&(_0x48881a[_0x4d2c54(0xdc)]=_0x4d2c54(0xff));const _0x4eda07={'method':_0x1c90f9,'headers':_0x48881a,'signal':_0x920c38[_0x4d2c54(0xf1)]};return _0xb0f6b0&&(_0x4eda07[_0x4d2c54(0x7c)]=_0x438007?_0xb0f6b0:JSON[_0x4d2c54(0xaf)](_0xb0f6b0)),{'request':fetch(''+this[_0x4d2c54(0xd8)]+_0x11fbc8,_0x4eda07)[_0x4d2c54(0x9a)](_0x432d49=>{const _0xce52a5=_0x4d2c54;this[_0xce52a5(0xe1)](_0x432d49);})[_0x4d2c54(0xba)](_0x2e2ef5=>{const _0x2dc88c=_0x4d2c54;if(!_0x2e2ef5['ok'])throw new _0x415b3(_0x2dc88c(0xf7),this,{'url':this[_0x2dc88c(0xd8)],'path':_0x11fbc8,'method':_0x1c90f9,'body':_0xb0f6b0,'status':(_0x2e2ef5||{})[_0x2dc88c(0xa2)],'statusText':(_0x2e2ef5||{})[_0x2dc88c(0xa5)]});return _0x2e2ef5;}),'abortController':_0x920c38};}async*[_0xf6fb7a(0xb4)](_0x215e26){const _0x28bad9=_0xf6fb7a,_0x1813b2=[],_0x429eb9=_0x215e26[_0x28bad9(0xd6)](),_0x576849=_0x50347c({'onError':_0x4a3460=>{const _0x3bd0a7=_0x28bad9;this[_0x3bd0a7(0xe1)](_0x4a3460);},'onEvent':_0x5b3ac7=>{const _0x5a758f=_0x28bad9;_0x5b3ac7[_0x5a758f(0xf5)]=JSON[_0x5a758f(0xfa)](_0x5b3ac7[_0x5a758f(0xf5)]),_0x1813b2[_0x5a758f(0xe2)](_0x5b3ac7);}});try{let _0x1b4702=!0x1;for(;!_0x1b4702;){const {done:_0x2765b9,value:_0x2c090c}=await _0x429eb9[_0x28bad9(0xb7)]();_0x2765b9&&(_0x1b4702=!0x0),_0x576849[_0x28bad9(0xb5)](this[_0x28bad9(0xdd)][_0x28bad9(0x103)](_0x2c090c,{'stream':!0x0})),yield*_0x1813b2,_0x1813b2[_0x28bad9(0xc4)]=0x0;}}catch(_0x508b51){this[_0x28bad9(0xe1)](_0x508b51);}finally{_0x429eb9[_0x28bad9(0x107)](),_0x576849[_0x28bad9(0xe9)]();}}[_0xf6fb7a(0xe1)](_0x1af9a1){const _0x1fe0ad=_0xf6fb7a;if(_0x1af9a1 instanceof _0x415b3)throw _0x1af9a1;if(_0x1af9a1 instanceof Error&&_0x1fe0ad(0xa4)===_0x1af9a1[_0x1fe0ad(0xb2)])throw new _0x415b3(_0x1fe0ad(0xc2),this,{'originalError':_0x1af9a1});throw new _0x415b3(_0x1fe0ad(0xf7),this,{'originalError':_0x1af9a1});}}
23
+ function _0x4744(_0x1fbd1d,_0x2dd812){const _0x188bbf=_0x188b();return _0x4744=function(_0x474472,_0x2b3002){_0x474472=_0x474472-0xc9;let _0x20541c=_0x188bbf[_0x474472];return _0x20541c;},_0x4744(_0x1fbd1d,_0x2dd812);}function _0x188b(){const _0x5e958f=['Content-Type','/calls','make-tone-casual','CloudServices','DELETE','ai.serviceUrl','upsertAIReviewRating','startConversation','pluginName','fetchConversation','424964htNSEt','name','fetchConversations','3420Cnhdcy','https://ai.cke-cs.com/v1','updateConversation','init','1753820RxzquX','_token','locale','decode','group','CONTINUE','keys','length','/actions/custom/calls','text','IMPROVE_WRITING','_decoder','get','totalCount','feed','/documents','8Lyezia','POST','_apiUrl','deleteConversation','true','_sendApiRequest','toString','file','data','uploadDocument','_handleError','/actions/system/','json','/reviews/custom/calls','deleteDocument','/files','385TfGxFL','4HAQcEi','getModels','/files/','queryAssistant','AIConnector','ai-request-failed','100','plugins','signal','Bearer\x20','token','deleteWebResource','getReader','uploadUrl','toUpperCase','GET','abortController','/conversations/','/conversations?','FIX_GRAMMAR','stringify','isOfficialPlugin','ai-missing-token','upsertCustomAIReviewRating','callCustomReview','82542ewsNAk','12408qTYIEF','fetchConversationMessages','ai-request-aborted','reset','continue','status','/models/1','excludeEmpty','executeAction','/calls/','TRANSLATE','_getStreamReader','search','776oMlUTN','append','4400991lkZWtY','make-tone-formal','/conversations','statusText','/documents/','read','MAKE_TONE_CASUAL','PUT','/messages','context','attributes','limit','1869ZxUrnw','/messages/','parse','/web-resources/','requires','upsertAIActionRating','value','executeCustomAction','map','AbortError','uploadFile','body','then','fetchDocument','/reviews/system/','/actions/custom/calls/','AI_MODEL_DESCRIPTION_','upsertAIChatRating','push','make-shorter','positiveCount','releaseLock','/ratings','MAKE_LONGER','define','catch','deleteFile','callSystemReview','upsertCustomAIActionRating','MAKE_SHORTER','improve-writing','fix-grammar','MAKE_TONE_FORMAL','make-longer','application/json','/reviews/custom/calls/','47892neSYTN','translate','1651GfHWqr','PATCH','items','request','config','/web-resources','isPremiumPlugin'];_0x188b=function(){return _0x5e958f;};return _0x188b();}const _0x46140e=_0x4744;(function(_0x53eb3a,_0x25ae60){const _0x5f4f05=_0x4744,_0x3a4bd3=_0x53eb3a();while(!![]){try{const _0x48e14=-parseInt(_0x5f4f05(0x107))/0x1*(parseInt(_0x5f4f05(0xdf))/0x2)+parseInt(_0x5f4f05(0x13c))/0x3*(-parseInt(_0x5f4f05(0x12e))/0x4)+parseInt(_0x5f4f05(0xe6))/0x5+parseInt(_0x5f4f05(0x120))/0x6*(parseInt(_0x5f4f05(0x106))/0x7)+parseInt(_0x5f4f05(0xf6))/0x8*(parseInt(_0x5f4f05(0x130))/0x9)+parseInt(_0x5f4f05(0xe2))/0xa*(parseInt(_0x5f4f05(0x121))/0xb)+-parseInt(_0x5f4f05(0xcc))/0xc*(parseInt(_0x5f4f05(0xce))/0xd);if(_0x48e14===_0x25ae60)break;else _0x3a4bd3['push'](_0x3a4bd3['shift']());}catch(_0x1c03f1){_0x3a4bd3['push'](_0x3a4bd3['shift']());}}}(_0x188b,0x7b2cf));import{createParser as _0x31ce6f}from'eventsource-parser';import{ContextPlugin as _0xcb0cb1}from'ckeditor5/src/core.js';import{CKEditorError as _0x2df2be}from'ckeditor5/src/utils.js';import{getTranslation as _0x3b6160}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x5324c1){const _0x3bf303=_0x4744;_0x5324c1[_0x3bf303(0xeb)]=_0x3bf303(0x125),_0x5324c1[_0x3bf303(0x11a)]=_0x3bf303(0x15b),_0x5324c1[_0x3bf303(0xf0)]=_0x3bf303(0x15a),_0x5324c1[_0x3bf303(0x153)]=_0x3bf303(0xc9),_0x5324c1[_0x3bf303(0x159)]=_0x3bf303(0x14f),_0x5324c1[_0x3bf303(0x136)]=_0x3bf303(0xd7),_0x5324c1[_0x3bf303(0x15c)]=_0x3bf303(0x131),_0x5324c1[_0x3bf303(0x12b)]=_0x3bf303(0xcd);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0xcb0cb1{[_0x46140e(0xf8)];[_0x46140e(0xe7)];[_0x46140e(0xf1)];static get[_0x46140e(0x140)](){const _0x368a66=_0x46140e;return[_0x368a66(0xd8)];}static get[_0x46140e(0xdd)](){const _0x253b78=_0x46140e;return _0x253b78(0x10b);}static get[_0x46140e(0x11c)](){return!0x0;}static get[_0x46140e(0xd4)](){return!0x0;}constructor(_0x1e72fe){const _0x379773=_0x46140e;super(_0x1e72fe),this[_0x379773(0x139)][_0x379773(0xd2)][_0x379773(0x154)](_0x379773(0xda),_0x379773(0xe3)),this[_0x379773(0xf8)]=this[_0x379773(0x139)][_0x379773(0xd2)][_0x379773(0xf2)](_0x379773(0xda)),this[_0x379773(0xe7)]=null,this[_0x379773(0xf1)]=new TextDecoder();}[_0x46140e(0xe5)](){const _0xa6229f=_0x46140e,_0x5ecf90=this[_0xa6229f(0x139)][_0xa6229f(0x10e)][_0xa6229f(0xf2)](_0xa6229f(0xd8));if(!_0x5ecf90[_0xa6229f(0x111)])throw new _0x2df2be(_0xa6229f(0x11d),this);this[_0xa6229f(0xe7)]=_0x5ecf90[_0xa6229f(0x111)];}[_0x46140e(0xdc)](_0x14d1a1,_0x5b91a8){const _0x53465f=_0x46140e,_0x4581e1=this[_0x53465f(0xfb)](_0x53465f(0x132),_0x53465f(0xf7),{'id':_0x14d1a1,'group':_0x5b91a8});return{'getConversation':async()=>(await _0x4581e1[_0x53465f(0xd1)])[_0x53465f(0x102)](),'abortController':_0x4581e1[_0x53465f(0x117)]};}[_0x46140e(0x10a)]({message:_0x4507f6,conversationId:_0x478af0,parts:_0x17ed5b,capabilities:_0x3eb8be,model:_0x6a6fba,quickActionData:_0x22ca02}){const _0x383d45=_0x46140e,_0x57f272={..._0x22ca02&&{'quickActionData':_0x22ca02}},_0x19edcf={'prompt':_0x4507f6,'content':_0x17ed5b,'model':_0x6a6fba,..._0x3eb8be&&{'capabilities':_0x3eb8be},...Object[_0x383d45(0xec)](_0x57f272)[_0x383d45(0xed)]>0x0&&{'attributes':_0x57f272}},_0x594c00=this[_0x383d45(0xfb)](_0x383d45(0x118)+_0x478af0+_0x383d45(0x138),_0x383d45(0xf7),_0x19edcf);return{'getStream':async()=>{const _0x5e565b=_0x383d45,_0x3bad50=(await _0x594c00[_0x5e565b(0xd1)])[_0x5e565b(0x147)];return this[_0x5e565b(0x12c)](_0x3bad50);},'abortController':_0x594c00[_0x383d45(0x117)]};}[_0x46140e(0x143)]({content:_0xb9ed23,message:_0x46e312,model:_0x2136c1,outputFormat:_0x45e5b6}){const _0x34f9b3=_0x46140e,_0x13aaf5={'content':[{'type':_0x34f9b3(0xef),'content':_0xb9ed23}],'prompt':_0x46e312,'model':_0x2136c1,'outputFormat':_0x45e5b6},_0xc96d1=this[_0x34f9b3(0xfb)](_0x34f9b3(0xee),_0x34f9b3(0xf7),_0x13aaf5);return{'getStream':async()=>{const _0x4efd4a=_0x34f9b3,_0x2394e8=(await _0xc96d1[_0x4efd4a(0xd1)])[_0x4efd4a(0x147)];return this[_0x4efd4a(0x12c)](_0x2394e8);},'abortController':_0xc96d1[_0x34f9b3(0x117)]};}[_0x46140e(0x129)]({actionName:_0x6f7e13,content:_0x2aa45d,args:_0x59d75e}){const _0x2fdbbc=_0x46140e,_0x4dfeb3={'content':[{'type':_0x2fdbbc(0xef),'content':_0x2aa45d}],'args':_0x59d75e},_0x2873d5=this[_0x2fdbbc(0xfb)](_0x2fdbbc(0x101)+_0x6f7e13+_0x2fdbbc(0xd6),_0x2fdbbc(0xf7),_0x4dfeb3);return{'getStream':async()=>{const _0x2c345a=_0x2fdbbc,_0x3bb9eb=(await _0x2873d5[_0x2c345a(0xd1)])[_0x2c345a(0x147)];return this[_0x2c345a(0x12c)](_0x3bb9eb);},'abortController':_0x2873d5[_0x2fdbbc(0x117)]};}[_0x46140e(0x146)](_0xfae493,_0x50d3db,_0x1ae7c1){const _0x4a09b0=_0x46140e,_0x5618b5=new FormData();_0x5618b5[_0x4a09b0(0x12f)](_0x4a09b0(0xfd),_0x50d3db,_0x50d3db[_0x4a09b0(0xe0)]),_0x1ae7c1&&_0x5618b5[_0x4a09b0(0x12f)](_0x4a09b0(0x13a),JSON[_0x4a09b0(0x11b)](_0x1ae7c1));const _0x515415=this[_0x4a09b0(0xfb)](_0x4a09b0(0x118)+_0xfae493+_0x4a09b0(0x105),_0x4a09b0(0xf7),_0x5618b5);return{'getId':async()=>(await _0x515415[_0x4a09b0(0xd1)])[_0x4a09b0(0x102)](),'abortController':_0x515415[_0x4a09b0(0x117)]};}[_0x46140e(0x149)](_0x5f30d5,_0x57241c){const _0x1a1ef3=_0x46140e,_0x3d0dc1=this[_0x1a1ef3(0xfb)](_0x1a1ef3(0x118)+_0x5f30d5+_0x1a1ef3(0x134)+_0x57241c,_0x1a1ef3(0x116));return{'getDocument':async()=>(await _0x3d0dc1[_0x1a1ef3(0xd1)])[_0x1a1ef3(0x102)](),'abortController':_0x3d0dc1[_0x1a1ef3(0x117)]};}[_0x46140e(0xff)](_0x510e48,_0x29bde7,_0x97ce40){const _0xc3802a=_0x46140e,_0x269057={'content':_0x29bde7};_0x97ce40&&(_0x269057[_0xc3802a(0x13a)]=_0x97ce40);const _0x406fe8=this[_0xc3802a(0xfb)](_0xc3802a(0x118)+_0x510e48+_0xc3802a(0xf5),_0xc3802a(0xf7),_0x269057);return{'getId':async()=>(await _0x406fe8[_0xc3802a(0xd1)])[_0xc3802a(0x102)](),'abortController':_0x406fe8[_0xc3802a(0x117)]};}[_0x46140e(0xe1)](_0x485a93,_0x5720fa){const _0x3c98e1=_0x46140e,_0x519ba6=new URLSearchParams();_0x519ba6[_0x3c98e1(0x12f)](_0x3c98e1(0x128),_0x3c98e1(0xfa)),_0x519ba6[_0x3c98e1(0x12f)](_0x3c98e1(0x13b),_0x3c98e1(0x10d)),_0x519ba6[_0x3c98e1(0x12f)](_0x3c98e1(0xea),_0x485a93),_0x5720fa&&_0x519ba6[_0x3c98e1(0x12f)](_0x3c98e1(0x12d),_0x5720fa);const _0x4d0231=this[_0x3c98e1(0xfb)](_0x3c98e1(0x119)+_0x519ba6[_0x3c98e1(0xfc)](),_0x3c98e1(0x116));return{'getConversations':async()=>{const _0x30c05a=_0x3c98e1,_0x2bc50f=await _0x4d0231[_0x30c05a(0xd1)];return(await _0x2bc50f[_0x30c05a(0x102)]())[_0x30c05a(0xd0)];},'abortController':_0x4d0231[_0x3c98e1(0x117)]};}[_0x46140e(0xf9)](_0x3d8556){const _0x1c95f0=_0x46140e,_0x4381ce=this[_0x1c95f0(0xfb)](_0x1c95f0(0x118)+_0x3d8556,_0x1c95f0(0xd9));return{'execute':async()=>{const _0x3cfba7=_0x1c95f0;await _0x4381ce[_0x3cfba7(0xd1)];},'abortController':_0x4381ce[_0x1c95f0(0x117)]};}[_0x46140e(0xe4)](_0x20ed2c,_0x195e16){const _0x21ee48=_0x46140e,_0x461b31=this[_0x21ee48(0xfb)](_0x21ee48(0x118)+_0x20ed2c,_0x21ee48(0xcf),_0x195e16);return{'getResult':async()=>(await _0x461b31[_0x21ee48(0xd1)],_0x195e16),'abortController':_0x461b31[_0x21ee48(0x117)]};}[_0x46140e(0xde)](_0xb1e034){const _0xcbdff=_0x46140e,_0x491bdd=this[_0xcbdff(0xfb)](_0xcbdff(0x118)+_0xb1e034,_0xcbdff(0x116));return{'getConversation':async()=>(await _0x491bdd[_0xcbdff(0xd1)])[_0xcbdff(0x102)](),'abortController':_0x491bdd[_0xcbdff(0x117)]};}[_0x46140e(0x122)](_0x49d727){const _0x53f740=_0x46140e,_0x2d2d87=this[_0x53f740(0xfb)](_0x53f740(0x118)+_0x49d727+_0x53f740(0x138),_0x53f740(0x116));return{'getMessages':async()=>{const _0xff52df=_0x53f740,_0x12b33e=await _0x2d2d87[_0xff52df(0xd1)];return(await _0x12b33e[_0xff52df(0x102)]())[_0xff52df(0xd0)];},'abortController':_0x2d2d87[_0x53f740(0x117)]};}[_0x46140e(0x114)](_0x425f2f,_0x28ad2f,_0x4f5508){const _0x38bc91=_0x46140e,_0x5a3cb0=this[_0x38bc91(0xfb)](_0x38bc91(0x118)+_0x425f2f+_0x38bc91(0xd3),_0x38bc91(0xf7),{'url':_0x28ad2f,'attributes':_0x4f5508});return{'getId':async()=>(await _0x5a3cb0[_0x38bc91(0xd1)])[_0x38bc91(0x102)](),'abortController':_0x5a3cb0[_0x38bc91(0x117)]};}[_0x46140e(0x108)](){const _0x5a02cb=_0x46140e,_0x490df6=this[_0x5a02cb(0xfb)](_0x5a02cb(0x127),_0x5a02cb(0x116));return{'list':async()=>{const _0x5bae3b=_0x5a02cb,_0x1484e6=await(await _0x490df6[_0x5bae3b(0xd1)])[_0x5bae3b(0x102)](),_0x5180d7=_0x1484e6[_0x5bae3b(0xd0)][_0x5bae3b(0x144)](_0x5aeff6=>({..._0x5aeff6,'description':_0x3b6160(this[_0x5bae3b(0x139)][_0x5bae3b(0xe8)],_0x5bae3b(0x14c)+_0x5aeff6['id'][_0x5bae3b(0x115)]())}));return{..._0x1484e6,'items':_0x5180d7};},'abortController':_0x490df6[_0x5a02cb(0x117)]};}[_0x46140e(0x156)](_0x382189,_0x5cf46f){const _0x1c0a3f=_0x46140e,_0x4430be=this[_0x1c0a3f(0xfb)](_0x1c0a3f(0x118)+_0x382189+_0x1c0a3f(0x109)+_0x5cf46f,_0x1c0a3f(0xd9));return{'execute':async()=>{const _0x338413=_0x1c0a3f;await _0x4430be[_0x338413(0xd1)];},'abortController':_0x4430be[_0x1c0a3f(0x117)]};}[_0x46140e(0x104)](_0x41545a,_0x14a241){const _0x2f36a1=_0x46140e,_0x589f91=this[_0x2f36a1(0xfb)](_0x2f36a1(0x118)+_0x41545a+_0x2f36a1(0x134)+_0x14a241,_0x2f36a1(0xd9));return{'execute':async()=>{const _0x535fa3=_0x2f36a1;await _0x589f91[_0x535fa3(0xd1)];},'abortController':_0x589f91[_0x2f36a1(0x117)]};}[_0x46140e(0x112)](_0x137d9c,_0x4b0ed9){const _0x1e100c=_0x46140e,_0x25e9c4=this[_0x1e100c(0xfb)](_0x1e100c(0x118)+_0x137d9c+_0x1e100c(0x13f)+_0x4b0ed9,_0x1e100c(0xd9));return{'execute':async()=>{const _0x26a6f0=_0x1e100c;await _0x25e9c4[_0x26a6f0(0xd1)];},'abortController':_0x25e9c4[_0x1e100c(0x117)]};}[_0x46140e(0x157)]({reviewName:_0x52bdf1,content:_0x192375,args:_0x10c013}){const _0x391e3c=_0x46140e,_0xf3838e=this[_0x391e3c(0xfb)](_0x391e3c(0x14a)+_0x52bdf1+_0x391e3c(0xd6),_0x391e3c(0xf7),{'content':[{'type':_0x391e3c(0xef),'content':_0x192375}],'args':_0x10c013});return{'getStream':async()=>{const _0x326963=_0x391e3c,_0x3db77e=(await _0xf3838e[_0x326963(0xd1)])[_0x326963(0x147)];return this[_0x326963(0x12c)](_0x3db77e);},'abortController':_0xf3838e[_0x391e3c(0x117)]};}[_0x46140e(0x11f)]({content:_0x8eb217,prompt:_0x5c14cd,model:_0x4cf634}){const _0x446529=_0x46140e,_0x167a2d=this[_0x446529(0xfb)](_0x446529(0x103),_0x446529(0xf7),{'content':[{'type':_0x446529(0xef),'content':_0x8eb217}],'prompt':_0x5c14cd,'model':_0x4cf634});return{'getStream':async()=>{const _0x4bfdd9=_0x446529,_0xc8e6=(await _0x167a2d[_0x4bfdd9(0xd1)])[_0x4bfdd9(0x147)];return this[_0x4bfdd9(0x12c)](_0xc8e6);},'abortController':_0x167a2d[_0x446529(0x117)]};}[_0x46140e(0x14d)](_0x40d58d,_0x3ab876,_0x2dc2ff){const _0x22205e=_0x46140e,_0x3fef27=this[_0x22205e(0xfb)](_0x22205e(0x118)+_0x40d58d+_0x22205e(0x13d)+_0x3ab876+_0x22205e(0x152),_0x22205e(0x137),{'positiveCount':_0x2dc2ff[_0x22205e(0x150)],'totalCount':_0x2dc2ff[_0x22205e(0xf3)]});return{'execute':async()=>{const _0x47c7f7=_0x22205e;await _0x3fef27[_0x47c7f7(0xd1)];},'abortController':_0x3fef27[_0x22205e(0x117)]};}[_0x46140e(0x141)](_0x3cfe06,_0x59de5e,_0x49bec3){const _0x1d8fcc=_0x46140e,_0x483781=this[_0x1d8fcc(0xfb)](_0x1d8fcc(0x101)+_0x3cfe06+_0x1d8fcc(0x12a)+_0x59de5e+_0x1d8fcc(0x152),_0x1d8fcc(0x137),{'positiveCount':_0x49bec3[_0x1d8fcc(0x150)],'totalCount':_0x49bec3[_0x1d8fcc(0xf3)]});return{'execute':async()=>{const _0x1ca980=_0x1d8fcc;await _0x483781[_0x1ca980(0xd1)];},'abortController':_0x483781[_0x1d8fcc(0x117)]};}[_0x46140e(0x158)](_0x1027c4,_0x5ec098){const _0x21479f=_0x46140e,_0x306c02=this[_0x21479f(0xfb)](_0x21479f(0x14b)+_0x1027c4+_0x21479f(0x152),_0x21479f(0x137),{'positiveCount':_0x5ec098[_0x21479f(0x150)],'totalCount':_0x5ec098[_0x21479f(0xf3)]});return{'execute':async()=>{const _0x2aa9db=_0x21479f;await _0x306c02[_0x2aa9db(0xd1)];},'abortController':_0x306c02[_0x21479f(0x117)]};}[_0x46140e(0xdb)](_0x209cce,_0xf58d84,_0x273053,_0x342fa1){const _0x34ec8c=_0x46140e,_0x8e55ca=this[_0x34ec8c(0xfb)](_0x34ec8c(0x14a)+_0x209cce+_0x34ec8c(0x12a)+_0xf58d84+_0x34ec8c(0x152),_0x34ec8c(0x137),{'positiveCount':_0x273053[_0x34ec8c(0x150)],'totalCount':_0x273053[_0x34ec8c(0xf3)],'dataId':_0x342fa1});return{'execute':async()=>{const _0x398138=_0x34ec8c;await _0x8e55ca[_0x398138(0xd1)];},'abortController':_0x8e55ca[_0x34ec8c(0x117)]};}[_0x46140e(0x11e)](_0x10164b,_0x283053,_0x5e20bc){const _0x46bf72=_0x46140e,_0x3f7609=this[_0x46bf72(0xfb)](_0x46bf72(0xcb)+_0x10164b+_0x46bf72(0x152),_0x46bf72(0x137),{'positiveCount':_0x283053[_0x46bf72(0x150)],'totalCount':_0x283053[_0x46bf72(0xf3)],'dataId':_0x5e20bc});return{'execute':async()=>{const _0x33629b=_0x46bf72;await _0x3f7609[_0x33629b(0xd1)];},'abortController':_0x3f7609[_0x46bf72(0x117)]};}[_0x46140e(0xfb)](_0x49517e,_0x3d6c7b,_0xc2292b){const _0x25af87=_0x46140e,_0x1a18ba=new AbortController(),_0x202752=_0xc2292b instanceof FormData,_0x1e6d64={'Authorization':_0x25af87(0x110)+this[_0x25af87(0xe7)]?.[_0x25af87(0x142)]};_0xc2292b&&!_0x202752&&(_0x1e6d64[_0x25af87(0xd5)]=_0x25af87(0xca));const _0x814d69={'method':_0x3d6c7b,'headers':_0x1e6d64,'signal':_0x1a18ba[_0x25af87(0x10f)]};return _0xc2292b&&(_0x814d69[_0x25af87(0x147)]=_0x202752?_0xc2292b:JSON[_0x25af87(0x11b)](_0xc2292b)),{'request':fetch(''+this[_0x25af87(0xf8)]+_0x49517e,_0x814d69)[_0x25af87(0x155)](_0x1d141d=>{const _0x5bca1d=_0x25af87;this[_0x5bca1d(0x100)](_0x1d141d);})[_0x25af87(0x148)](_0x1a3d1f=>{const _0x204331=_0x25af87;if(!_0x1a3d1f['ok'])throw new _0x2df2be(_0x204331(0x10c),this,{'url':this[_0x204331(0xf8)],'path':_0x49517e,'method':_0x3d6c7b,'body':_0xc2292b,'status':(_0x1a3d1f||{})[_0x204331(0x126)],'statusText':(_0x1a3d1f||{})[_0x204331(0x133)]});return _0x1a3d1f;}),'abortController':_0x1a18ba};}async*[_0x46140e(0x12c)](_0x4ca3d4){const _0x14755d=_0x46140e,_0x73f15f=[],_0x5920da=_0x4ca3d4[_0x14755d(0x113)](),_0x1663a0=_0x31ce6f({'onError':_0x4576c5=>{const _0x9e5889=_0x14755d;this[_0x9e5889(0x100)](_0x4576c5);},'onEvent':_0x2cbf68=>{const _0x88b161=_0x14755d;_0x2cbf68[_0x88b161(0xfe)]=JSON[_0x88b161(0x13e)](_0x2cbf68[_0x88b161(0xfe)]),_0x73f15f[_0x88b161(0x14e)](_0x2cbf68);}});try{let _0x34aa8=!0x1;for(;!_0x34aa8;){const {done:_0x33b0f9,value:_0x34e580}=await _0x5920da[_0x14755d(0x135)]();_0x33b0f9&&(_0x34aa8=!0x0),_0x1663a0[_0x14755d(0xf4)](this[_0x14755d(0xf1)][_0x14755d(0xe9)](_0x34e580,{'stream':!0x0})),yield*_0x73f15f,_0x73f15f[_0x14755d(0xed)]=0x0;}}catch(_0x2b4b59){this[_0x14755d(0x100)](_0x2b4b59);}finally{_0x5920da[_0x14755d(0x151)](),_0x1663a0[_0x14755d(0x124)]();}}[_0x46140e(0x100)](_0x540eb3){const _0x5cdb05=_0x46140e;if(_0x540eb3 instanceof _0x2df2be)throw _0x540eb3;if(_0x540eb3 instanceof Error&&_0x5cdb05(0x145)===_0x540eb3[_0x5cdb05(0xe0)])throw new _0x2df2be(_0x5cdb05(0x123),this,{'originalError':_0x540eb3});throw new _0x2df2be(_0x5cdb05(0x10c),this,{'originalError':_0x540eb3});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x491756=_0x32bc;(function(_0x246a5e,_0x397d81){const _0x2516fe=_0x32bc,_0x1dcd3e=_0x246a5e();while(!![]){try{const _0x2b40d9=parseInt(_0x2516fe(0x14f))/0x1+parseInt(_0x2516fe(0x145))/0x2*(parseInt(_0x2516fe(0x130))/0x3)+-parseInt(_0x2516fe(0x143))/0x4*(parseInt(_0x2516fe(0x117))/0x5)+-parseInt(_0x2516fe(0x141))/0x6+-parseInt(_0x2516fe(0x11d))/0x7+parseInt(_0x2516fe(0x12c))/0x8+parseInt(_0x2516fe(0x12f))/0x9*(parseInt(_0x2516fe(0x14c))/0xa);if(_0x2b40d9===_0x397d81)break;else _0x1dcd3e['push'](_0x1dcd3e['shift']());}catch(_0x59aee1){_0x1dcd3e['push'](_0x1dcd3e['shift']());}}}(_0x5ddc,0x77cf4));import{ViewDowncastWriter as _0x4466ff}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x59838e,Editor as _0x166899}from'ckeditor5/src/core.js';function _0x5ddc(){const _0x5063a6=[':end></','plugins','isOpening','getSelectedContent','ready','showFakeVisualSelection','isAtEnd','modelToViewWithIds','join','name','getDocumentData','_setDataIdsOnChildren','ai-selection','length','isAfter','markerToHighlight','isOfficialPlugin','floor','fromCharCode','_sessionId','context','emptyElement','createUIElement','conversion','from','toView','getLastMatchingPosition','getRoot','trim','setAttribute','schema',':start></','getMarkersGroup','editingDowncast','editing',':end>','pluginName',':start>','hideFakeVisualSelection','_getMarkersInDocumentOrder','afterInit','element','convertAiChatSelectionMarker','selection','5FqSVrl','document','_nextDataId','isBefore','removeAllRanges','getWalker','1265383oQSFcw','toData','substring','createRange','removeMarker','version','for','has','ck-fake-ai-selection','view','ck-ai-assistant-ui_theme','sort','createRangeIn','markerName','listenTo','146992wiKVAs','getSelection','sessionId','63KaBJQG','6PRtOZl','RealTimeCollaborationClient','_displayedFakeSelectionLocked','data-id','start','end','data','push','isContent','markers','editors','ai-selection:','_displayedFakeSelectionId','containerElement','_integrateEditor','change','get','2609400FqNkRh','processor','1134348nEimCM','model','917948ZabqFK','markerToElement','AIEditing','indexOf','getSelectionText','isPremiumPlugin','random','207490bCyDgr','addMarker','dataDowncast','308431vczLHB','$textProxy','getChildren','getStart','add'];_0x5ddc=function(){return _0x5063a6;};return _0x5ddc();}import{uid as _0x45caa5}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x4cbcb9}from'./utils/geteditorfromcontext.js';function _0x32bc(_0x3652e5,_0x2745ce){const _0x5ddcb1=_0x5ddc();return _0x32bc=function(_0x32bca4,_0x399f7f){_0x32bca4=_0x32bca4-0xeb;let _0x253800=_0x5ddcb1[_0x32bca4];return _0x253800;},_0x32bc(_0x3652e5,_0x2745ce);}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x491756(0xf7);export class AIEditing extends _0x59838e{[_0x491756(0x13c)]=null;[_0x491756(0x132)]=!0x1;[_0x491756(0xfe)];static get[_0x491756(0x10f)](){const _0x56eb86=_0x491756;return _0x56eb86(0x147);}static get[_0x491756(0xfb)](){return!0x0;}static get[_0x491756(0x14a)](){return!0x0;}get[_0x491756(0x12e)](){const _0x59c2e7=_0x491756;if(!this[_0x59c2e7(0xfe)]){const _0x3a1bfa=_0x4cbcb9(this[_0x59c2e7(0xff)]),_0x121556=_0x3a1bfa[_0x59c2e7(0xec)][_0x59c2e7(0x124)](_0x59c2e7(0x131))&&_0x3a1bfa[_0x59c2e7(0xec)][_0x59c2e7(0x140)](_0x59c2e7(0x131))[_0x59c2e7(0x12e)];this[_0x59c2e7(0xfe)]=_0x121556||_0x45caa5();}return this[_0x59c2e7(0xfe)];}[_0x491756(0xf5)](){const _0x5d6ac9=_0x491756,_0x4f8d5b=_0x4cbcb9(this[_0x5d6ac9(0xff)]),_0xa6a5d9=_0x4f8d5b[_0x5d6ac9(0x144)],_0x2f9ff1=_0x4f8d5b[_0x5d6ac9(0x136)][_0x5d6ac9(0x104)](_0xa6a5d9[_0x5d6ac9(0x118)][_0x5d6ac9(0x106)](),{'convertAiChatSelectionMarker':!0x0}),_0x51d5a9=new _0x4466ff(_0x4f8d5b[_0x5d6ac9(0x10d)][_0x5d6ac9(0x126)][_0x5d6ac9(0x118)]);this[_0x5d6ac9(0xf6)](_0x2f9ff1,_0x51d5a9);let _0x41ca67=_0x4f8d5b[_0x5d6ac9(0x136)][_0x5d6ac9(0x142)][_0x5d6ac9(0x11e)](_0x2f9ff1);const _0x491ba0=this[_0x5d6ac9(0x112)](),_0x9cfcfb=[];for(const _0xafaf62 of _0x491ba0){const _0x19b408='<'+_0xafaf62[_0x5d6ac9(0xf4)]+_0x5d6ac9(0x10a)+_0xafaf62[_0x5d6ac9(0xf4)]+_0x5d6ac9(0x110),_0x342277=_0x41ca67[_0x5d6ac9(0x148)](_0x19b408);_0x41ca67=_0x41ca67[_0x5d6ac9(0x11f)](0x0,_0x342277)+_0x41ca67[_0x5d6ac9(0x11f)](_0x342277+_0x19b408[_0x5d6ac9(0xf8)]);const _0x426e22='<'+_0xafaf62[_0x5d6ac9(0xf4)]+_0x5d6ac9(0xeb)+_0xafaf62[_0x5d6ac9(0xf4)]+_0x5d6ac9(0x10e),_0x3ee30c=_0x41ca67[_0x5d6ac9(0x148)](_0x426e22);_0x41ca67=_0x41ca67[_0x5d6ac9(0x11f)](0x0,_0x3ee30c)+_0x41ca67[_0x5d6ac9(0x11f)](_0x3ee30c+_0x426e22[_0x5d6ac9(0xf8)]),_0x9cfcfb[_0x5d6ac9(0x137)]({'markerName':_0xafaf62[_0x5d6ac9(0xf4)],'start':_0x342277,'end':_0x3ee30c,'htmlFragment':_0x41ca67[_0x5d6ac9(0x11f)](_0x342277,_0x3ee30c)});}return{'content':_0x41ca67,'version':_0x4f8d5b[_0x5d6ac9(0x144)][_0x5d6ac9(0x118)][_0x5d6ac9(0x122)],'sessionId':this[_0x5d6ac9(0x12e)],'selections':_0x9cfcfb};}async[_0x491756(0x113)](){const _0x289ecb=_0x491756;this[_0x289ecb(0xff)]instanceof _0x166899?this[_0x289ecb(0x13e)](this[_0x289ecb(0xff)]):this[_0x289ecb(0x12b)](this[_0x289ecb(0xff)][_0x289ecb(0x13a)],_0x289ecb(0x153),(_0x5d02ea,_0x4d6708)=>{const _0x21fc10=_0x289ecb;_0x4d6708['on'](_0x21fc10(0xef),()=>{const _0x532d2d=_0x21fc10;this[_0x532d2d(0x13e)](_0x4d6708);});});}[_0x491756(0x13e)](_0x2498e0){const _0x588a2c=_0x491756;_0x2498e0[_0x588a2c(0x102)][_0x588a2c(0x123)](_0x588a2c(0x10c))[_0x588a2c(0xfa)]({'model':_0x588a2c(0xf7),'view':{'classes':[_0x588a2c(0x125),_0x588a2c(0x127)],'priority':0xc}}),_0x2498e0[_0x588a2c(0x102)][_0x588a2c(0x123)](_0x588a2c(0x14e))[_0x588a2c(0x146)]({'model':_0x588a2c(0xf7),'view':(_0x507387,{writer:_0x125e7a,options:_0x17f4c4})=>_0x17f4c4[_0x588a2c(0x115)]?_0x125e7a[_0x588a2c(0x101)](_0x507387[_0x588a2c(0x12a)]+':'+(_0x507387[_0x588a2c(0xed)]?_0x588a2c(0x134):_0x588a2c(0x135))):null});}[_0x491756(0xf0)](_0x2c9aa9,_0x3d2c17,_0x2f34c9=!0x1,_0x1efd48=!0x1){const _0x22a177=_0x491756;if(this[_0x22a177(0x132)]&&!_0x1efd48)return!0x1;this[_0x22a177(0x13c)]&&this[_0x22a177(0x111)](this[_0x22a177(0x13c)]),this[_0x22a177(0x13c)]=_0x3d2c17,this[_0x22a177(0x132)]=_0x2f34c9;const _0x1cbe1c=_0x4cbcb9(this[_0x22a177(0xff)])[_0x22a177(0x144)];return _0x1cbe1c[_0x22a177(0x13f)](_0x32b85a=>{const _0x133b54=_0x22a177;let _0x4a57d6=0x0;for(let _0x4b7c3c of _0x2c9aa9){const _0x4c32cf=_0x133b54(0x13b)+_0x4a57d6;if(_0x4b7c3c[_0x133b54(0x134)][_0x133b54(0xf1)]){const _0x20f80a=_0x4b7c3c[_0x133b54(0x134)][_0x133b54(0x105)](({item:_0x46574f})=>!_0x1cbe1c[_0x133b54(0x109)][_0x133b54(0x138)](_0x46574f),{'boundaries':_0x4b7c3c});_0x4b7c3c=_0x32b85a[_0x133b54(0x120)](_0x20f80a,_0x4b7c3c[_0x133b54(0x135)]);}_0x32b85a[_0x133b54(0x14d)](_0x4c32cf,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x4b7c3c}),_0x4a57d6++;}}),window[_0x22a177(0x12d)]()?.[_0x22a177(0x11b)](),!0x0;}[_0x491756(0x111)](_0x59bdee){const _0x3bd4ba=_0x491756;if(this[_0x3bd4ba(0x13c)]!=_0x59bdee)return!0x1;this[_0x3bd4ba(0x13c)]=null,this[_0x3bd4ba(0x132)]=!0x1;const _0x23ba59=_0x4cbcb9(this[_0x3bd4ba(0xff)]),_0x5a13f1=_0x23ba59[_0x3bd4ba(0x144)][_0x3bd4ba(0x139)][_0x3bd4ba(0x10b)](_0x3bd4ba(0xf7));return _0x23ba59[_0x3bd4ba(0x144)][_0x3bd4ba(0x13f)](_0x55d9ca=>{const _0x4ee45d=_0x3bd4ba;for(const _0x373581 of _0x5a13f1)_0x55d9ca[_0x4ee45d(0x121)](_0x373581);}),!0x0;}[_0x491756(0xf2)](_0x41f500){const _0x2b17ab=_0x491756,_0x17e8e9=_0x4cbcb9(this[_0x2b17ab(0xff)]),_0x48d1f9=_0x17e8e9[_0x2b17ab(0x136)][_0x2b17ab(0x104)](_0x41f500),_0x104af4=new _0x4466ff(_0x17e8e9[_0x2b17ab(0x10d)][_0x2b17ab(0x126)][_0x2b17ab(0x118)]);return this[_0x2b17ab(0xf6)](_0x48d1f9,_0x104af4),_0x48d1f9;}[_0x491756(0xf6)](_0xd421b8,_0x29a366){const _0xd7efa6=_0x491756;let _0x46be35=!0x1;const _0x236320=new Set();for(const _0x1f958d of _0xd421b8[_0xd7efa6(0x151)]()){const _0x43985c=_0x1f958d['is'](_0xd7efa6(0x100))||_0x1f958d['is'](_0xd7efa6(0x13d));if(!_0x1f958d['is'](_0xd7efa6(0x114)))continue;(this[_0xd7efa6(0xf6)](_0x1f958d,_0x29a366)||_0x43985c)&&(_0x29a366[_0xd7efa6(0x108)](_0xd7efa6(0x133),this[_0xd7efa6(0x119)](_0x236320),_0x1f958d),_0x46be35=!0x0);}return _0x46be35;}[_0x491756(0x119)](_0x2729fc){const _0x3586aa=_0x491756;let _0x227ad8;do{_0x227ad8='';for(let _0x122c82=0x0;_0x122c82<0x4;_0x122c82++)_0x227ad8+=String[_0x3586aa(0xfd)](0x61+Math[_0x3586aa(0xfc)](0x1a*Math[_0x3586aa(0x14b)]()));}while(_0x2729fc[_0x3586aa(0x124)](_0x227ad8));return _0x2729fc[_0x3586aa(0x153)](_0x227ad8),_0x227ad8;}[_0x491756(0x149)](){const _0xbe5601=_0x491756,{model:_0x387df8}=_0x4cbcb9(this[_0xbe5601(0xff)]),_0x5c2063=_0x387df8[_0xbe5601(0x118)][_0xbe5601(0x116)],_0x4cc6a8=_0x387df8[_0xbe5601(0xee)](_0x5c2063),_0xcefffc=[],_0x3851d5=_0x387df8[_0xbe5601(0x129)](_0x4cc6a8)[_0xbe5601(0x11c)]();for(const {item:_0x4563f9}of _0x3851d5)_0x4563f9['is'](_0xbe5601(0x150))?_0xcefffc[_0xbe5601(0x137)](_0x4563f9[_0xbe5601(0x136)]):_0x4563f9['is'](_0xbe5601(0x114))&&_0xcefffc[_0xbe5601(0xf8)]>0x0&&'\x20'!==_0xcefffc[_0xcefffc[_0xbe5601(0xf8)]-0x1]&&_0xcefffc[_0xbe5601(0x137)]('\x20');return'\x22'+_0xcefffc[_0xbe5601(0xf3)]('')[_0xbe5601(0x107)]()+'\x22';}[_0x491756(0x112)](){const _0x5ca1b1=_0x491756,_0x512de5=_0x4cbcb9(this[_0x5ca1b1(0xff)])[_0x5ca1b1(0x144)];return Array[_0x5ca1b1(0x103)](_0x512de5[_0x5ca1b1(0x139)][_0x5ca1b1(0x10b)](_0x5ca1b1(0xf7)))[_0x5ca1b1(0x128)]((_0x1d5789,_0x4408d1)=>_0x1d5789[_0x5ca1b1(0x152)]()[_0x5ca1b1(0x11a)](_0x4408d1[_0x5ca1b1(0x152)]())?-0x1:_0x1d5789[_0x5ca1b1(0x152)]()[_0x5ca1b1(0xf9)](_0x4408d1[_0x5ca1b1(0x152)]())?0x1:0x0);}}
23
+ const _0x4b140f=_0x3b47;(function(_0x553a0a,_0x583162){const _0x322578=_0x3b47,_0x13f953=_0x553a0a();while(!![]){try{const _0x397e97=-parseInt(_0x322578(0x14d))/0x1+-parseInt(_0x322578(0x167))/0x2+parseInt(_0x322578(0x148))/0x3+parseInt(_0x322578(0x15d))/0x4*(-parseInt(_0x322578(0x162))/0x5)+-parseInt(_0x322578(0x130))/0x6*(parseInt(_0x322578(0x11f))/0x7)+parseInt(_0x322578(0x137))/0x8*(-parseInt(_0x322578(0x115))/0x9)+parseInt(_0x322578(0x16d))/0xa;if(_0x397e97===_0x583162)break;else _0x13f953['push'](_0x13f953['shift']());}catch(_0x40c317){_0x13f953['push'](_0x13f953['shift']());}}}(_0xf8d8,0xddb7a));import{ViewDowncastWriter as _0x3f52f0}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x342401,Editor as _0x179baa}from'ckeditor5/src/core.js';function _0x3b47(_0x32ff75,_0x296d4a){const _0xf8d899=_0xf8d8();return _0x3b47=function(_0x3b47d6,_0x295871){_0x3b47d6=_0x3b47d6-0x105;let _0xb3d7b0=_0xf8d899[_0x3b47d6];return _0xb3d7b0;},_0x3b47(_0x32ff75,_0x296d4a);}import{uid as _0x39cab1}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x159af4}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x4b140f(0x13c);function _0xf8d8(){const _0x56667d=['RealTimeCollaborationClient',':end>','_displayedFakeSelectionLocked','fromCharCode','schema','data-id','push','join','2863365nDTXOa','listenTo','end','random','isOfficialPlugin','1501167CLJjNc','context','start','model','markers','_setDataIdsOnChildren','editors','_displayedFakeSelectionId','conversion',':end></','markerName','getSelectionText','$textProxy','ck-ai-assistant-ui_theme','toView','emptyElement','167564KLCQuL','trim','_sessionId','toData','pluginName','55FpbZwo','editingDowncast','getRoot','view','removeMarker','767052HKBiAk','for','createRangeIn','get','change','has','44741810WeMFFm','from','name','getWalker','getMarkersGroup','dataDowncast','add','document','markerToHighlight','afterInit','ck-fake-ai-selection','AIEditing','ready','hideFakeVisualSelection','isBefore','modelToViewWithIds','version','162CeAQHe','convertAiChatSelectionMarker','markerToElement','processor','length','setAttribute','getChildren','getStart','addMarker','getSelection','14kEOHWm',':start>','createUIElement','substring','plugins','sessionId','indexOf','isPremiumPlugin','_nextDataId','floor','editing','getSelectedContent','isAfter','_integrateEditor','sort','isOpening','data','4819860tIJPKD','containerElement','getDocumentData','getLastMatchingPosition','showFakeVisualSelection','isContent','createRange','252608KiMNBz','ai-selection:','element','isAtEnd','removeAllRanges','ai-selection','_getMarkersInDocumentOrder','selection',':start></'];_0xf8d8=function(){return _0x56667d;};return _0xf8d8();}export class AIEditing extends _0x342401{[_0x4b140f(0x154)]=null;[_0x4b140f(0x142)]=!0x1;[_0x4b140f(0x15f)];static get[_0x4b140f(0x161)](){const _0x381e93=_0x4b140f;return _0x381e93(0x10f);}static get[_0x4b140f(0x14c)](){return!0x0;}static get[_0x4b140f(0x126)](){return!0x0;}get[_0x4b140f(0x124)](){const _0x13fae3=_0x4b140f;if(!this[_0x13fae3(0x15f)]){const _0x49a468=_0x159af4(this[_0x13fae3(0x14e)]),_0x46e47b=_0x49a468[_0x13fae3(0x123)][_0x13fae3(0x16c)](_0x13fae3(0x140))&&_0x49a468[_0x13fae3(0x123)][_0x13fae3(0x16a)](_0x13fae3(0x140))[_0x13fae3(0x124)];this[_0x13fae3(0x15f)]=_0x46e47b||_0x39cab1();}return this[_0x13fae3(0x15f)];}[_0x4b140f(0x132)](){const _0x41b9d1=_0x4b140f,_0x51123e=_0x159af4(this[_0x41b9d1(0x14e)]),_0x4a8405=_0x51123e[_0x41b9d1(0x150)],_0x425c47=_0x51123e[_0x41b9d1(0x12f)][_0x41b9d1(0x15b)](_0x4a8405[_0x41b9d1(0x10b)][_0x41b9d1(0x164)](),{'convertAiChatSelectionMarker':!0x0}),_0x265caa=new _0x3f52f0(_0x51123e[_0x41b9d1(0x129)][_0x41b9d1(0x165)][_0x41b9d1(0x10b)]);this[_0x41b9d1(0x152)](_0x425c47,_0x265caa);let _0x5cfc7b=_0x51123e[_0x41b9d1(0x12f)][_0x41b9d1(0x118)][_0x41b9d1(0x160)](_0x425c47);const _0x11ff1e=this[_0x41b9d1(0x13d)](),_0x38e7c8=[];for(const _0x455510 of _0x11ff1e){const _0x455a45='<'+_0x455510[_0x41b9d1(0x106)]+_0x41b9d1(0x13f)+_0x455510[_0x41b9d1(0x106)]+_0x41b9d1(0x120),_0xa6c35a=_0x5cfc7b[_0x41b9d1(0x125)](_0x455a45);_0x5cfc7b=_0x5cfc7b[_0x41b9d1(0x122)](0x0,_0xa6c35a)+_0x5cfc7b[_0x41b9d1(0x122)](_0xa6c35a+_0x455a45[_0x41b9d1(0x119)]);const _0x432388='<'+_0x455510[_0x41b9d1(0x106)]+_0x41b9d1(0x156)+_0x455510[_0x41b9d1(0x106)]+_0x41b9d1(0x141),_0x5242ae=_0x5cfc7b[_0x41b9d1(0x125)](_0x432388);_0x5cfc7b=_0x5cfc7b[_0x41b9d1(0x122)](0x0,_0x5242ae)+_0x5cfc7b[_0x41b9d1(0x122)](_0x5242ae+_0x432388[_0x41b9d1(0x119)]),_0x38e7c8[_0x41b9d1(0x146)]({'markerName':_0x455510[_0x41b9d1(0x106)],'start':_0xa6c35a,'end':_0x5242ae,'htmlFragment':_0x5cfc7b[_0x41b9d1(0x122)](_0xa6c35a,_0x5242ae)});}return{'content':_0x5cfc7b,'version':_0x51123e[_0x41b9d1(0x150)][_0x41b9d1(0x10b)][_0x41b9d1(0x114)],'sessionId':this[_0x41b9d1(0x124)],'selections':_0x38e7c8};}async[_0x4b140f(0x10d)](){const _0x1bccdd=_0x4b140f;this[_0x1bccdd(0x14e)]instanceof _0x179baa?this[_0x1bccdd(0x12c)](this[_0x1bccdd(0x14e)]):this[_0x1bccdd(0x149)](this[_0x1bccdd(0x14e)][_0x1bccdd(0x153)],_0x1bccdd(0x10a),(_0x4ee0ee,_0x4733fd)=>{const _0x5a428e=_0x1bccdd;_0x4733fd['on'](_0x5a428e(0x110),()=>{const _0x5bf9da=_0x5a428e;this[_0x5bf9da(0x12c)](_0x4733fd);});});}[_0x4b140f(0x12c)](_0x63c822){const _0x379414=_0x4b140f;_0x63c822[_0x379414(0x155)][_0x379414(0x168)](_0x379414(0x163))[_0x379414(0x10c)]({'model':_0x379414(0x13c),'view':{'classes':[_0x379414(0x10e),_0x379414(0x15a)],'priority':0xc}}),_0x63c822[_0x379414(0x155)][_0x379414(0x168)](_0x379414(0x109))[_0x379414(0x117)]({'model':_0x379414(0x13c),'view':(_0xf031f8,{writer:_0x1e58dc,options:_0x30fb7e})=>_0x30fb7e[_0x379414(0x116)]?_0x1e58dc[_0x379414(0x121)](_0xf031f8[_0x379414(0x157)]+':'+(_0xf031f8[_0x379414(0x12e)]?_0x379414(0x14f):_0x379414(0x14a))):null});}[_0x4b140f(0x134)](_0x2a2fc0,_0x1f827b,_0x4cb0cc=!0x1,_0x12d658=!0x1){const _0x299fbf=_0x4b140f;if(this[_0x299fbf(0x142)]&&!_0x12d658)return!0x1;this[_0x299fbf(0x154)]&&this[_0x299fbf(0x111)](this[_0x299fbf(0x154)]),this[_0x299fbf(0x154)]=_0x1f827b,this[_0x299fbf(0x142)]=_0x4cb0cc;const _0xe297a6=_0x159af4(this[_0x299fbf(0x14e)])[_0x299fbf(0x150)];return _0xe297a6[_0x299fbf(0x16b)](_0xf16db4=>{const _0x281eb2=_0x299fbf;let _0x1808d2=0x0;for(let _0x58d21a of _0x2a2fc0){const _0xf7c4c=_0x281eb2(0x138)+_0x1808d2;if(_0x58d21a[_0x281eb2(0x14f)][_0x281eb2(0x13a)]){const _0x555cc8=_0x58d21a[_0x281eb2(0x14f)][_0x281eb2(0x133)](({item:_0x1c695a})=>!_0xe297a6[_0x281eb2(0x144)][_0x281eb2(0x135)](_0x1c695a),{'boundaries':_0x58d21a});_0x58d21a=_0xf16db4[_0x281eb2(0x136)](_0x555cc8,_0x58d21a[_0x281eb2(0x14a)]);}_0xf16db4[_0x281eb2(0x11d)](_0xf7c4c,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x58d21a}),_0x1808d2++;}}),window[_0x299fbf(0x11e)]()?.[_0x299fbf(0x13b)](),!0x0;}[_0x4b140f(0x111)](_0x26ea9f){const _0x34cae2=_0x4b140f;if(this[_0x34cae2(0x154)]!=_0x26ea9f)return!0x1;this[_0x34cae2(0x154)]=null,this[_0x34cae2(0x142)]=!0x1;const _0xc52e75=_0x159af4(this[_0x34cae2(0x14e)]),_0x4189e3=_0xc52e75[_0x34cae2(0x150)][_0x34cae2(0x151)][_0x34cae2(0x108)](_0x34cae2(0x13c));return _0xc52e75[_0x34cae2(0x150)][_0x34cae2(0x16b)](_0x12c476=>{const _0x124df1=_0x34cae2;for(const _0x55bfa2 of _0x4189e3)_0x12c476[_0x124df1(0x166)](_0x55bfa2);}),!0x0;}[_0x4b140f(0x113)](_0x1137b6){const _0x2c645d=_0x4b140f,_0x1c441e=_0x159af4(this[_0x2c645d(0x14e)]),_0x3c553a=_0x1c441e[_0x2c645d(0x12f)][_0x2c645d(0x15b)](_0x1137b6),_0x23c19d=new _0x3f52f0(_0x1c441e[_0x2c645d(0x129)][_0x2c645d(0x165)][_0x2c645d(0x10b)]);return this[_0x2c645d(0x152)](_0x3c553a,_0x23c19d),_0x3c553a;}[_0x4b140f(0x152)](_0xfe53ae,_0x30406f){const _0xc6b9fa=_0x4b140f;let _0x3a7d71=!0x1;const _0x14938d=new Set();for(const _0xdb706b of _0xfe53ae[_0xc6b9fa(0x11b)]()){const _0x3587b8=_0xdb706b['is'](_0xc6b9fa(0x15c))||_0xdb706b['is'](_0xc6b9fa(0x131));if(!_0xdb706b['is'](_0xc6b9fa(0x139)))continue;(this[_0xc6b9fa(0x152)](_0xdb706b,_0x30406f)||_0x3587b8)&&(_0x30406f[_0xc6b9fa(0x11a)](_0xc6b9fa(0x145),this[_0xc6b9fa(0x127)](_0x14938d),_0xdb706b),_0x3a7d71=!0x0);}return _0x3a7d71;}[_0x4b140f(0x127)](_0x480fc0){const _0x2fae3e=_0x4b140f;let _0x342ff2;do{_0x342ff2='';for(let _0xb1c47f=0x0;_0xb1c47f<0x4;_0xb1c47f++)_0x342ff2+=String[_0x2fae3e(0x143)](0x61+Math[_0x2fae3e(0x128)](0x1a*Math[_0x2fae3e(0x14b)]()));}while(_0x480fc0[_0x2fae3e(0x16c)](_0x342ff2));return _0x480fc0[_0x2fae3e(0x10a)](_0x342ff2),_0x342ff2;}[_0x4b140f(0x158)](){const _0x5ba4ad=_0x4b140f,{model:_0x5eacee}=_0x159af4(this[_0x5ba4ad(0x14e)]),_0x2ee4b5=_0x5eacee[_0x5ba4ad(0x10b)][_0x5ba4ad(0x13e)],_0x5304a7=_0x5eacee[_0x5ba4ad(0x12a)](_0x2ee4b5),_0x55fd57=[],_0x4aa2fb=_0x5eacee[_0x5ba4ad(0x169)](_0x5304a7)[_0x5ba4ad(0x107)]();for(const {item:_0x490580}of _0x4aa2fb)_0x490580['is'](_0x5ba4ad(0x159))?_0x55fd57[_0x5ba4ad(0x146)](_0x490580[_0x5ba4ad(0x12f)]):_0x490580['is'](_0x5ba4ad(0x139))&&_0x55fd57[_0x5ba4ad(0x119)]>0x0&&'\x20'!==_0x55fd57[_0x55fd57[_0x5ba4ad(0x119)]-0x1]&&_0x55fd57[_0x5ba4ad(0x146)]('\x20');return'\x22'+_0x55fd57[_0x5ba4ad(0x147)]('')[_0x5ba4ad(0x15e)]()+'\x22';}[_0x4b140f(0x13d)](){const _0x473978=_0x4b140f,_0x370fd5=_0x159af4(this[_0x473978(0x14e)])[_0x473978(0x150)];return Array[_0x473978(0x105)](_0x370fd5[_0x473978(0x151)][_0x473978(0x108)](_0x473978(0x13c)))[_0x473978(0x12d)]((_0x35228c,_0x5c10ca)=>_0x35228c[_0x473978(0x11c)]()[_0x473978(0x112)](_0x5c10ca[_0x473978(0x11c)]())?-0x1:_0x35228c[_0x473978(0x11c)]()[_0x473978(0x12b)](_0x5c10ca[_0x473978(0x11c)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x35e7(_0x350324,_0x4df084){const _0x1176cb=_0x1176();return _0x35e7=function(_0x35e750,_0x436217){_0x35e750=_0x35e750-0x1d1;let _0x29cfc4=_0x1176cb[_0x35e750];return _0x29cfc4;},_0x35e7(_0x350324,_0x4df084);}const _0x42da4d=_0x35e7;(function(_0x3f7ba9,_0x359584){const _0x139d34=_0x35e7,_0x1e917d=_0x3f7ba9();while(!![]){try{const _0xd98c54=-parseInt(_0x139d34(0x1dd))/0x1*(-parseInt(_0x139d34(0x1e1))/0x2)+parseInt(_0x139d34(0x1e9))/0x3*(parseInt(_0x139d34(0x1ed))/0x4)+-parseInt(_0x139d34(0x1d6))/0x5*(-parseInt(_0x139d34(0x1e2))/0x6)+-parseInt(_0x139d34(0x1d4))/0x7*(-parseInt(_0x139d34(0x1db))/0x8)+-parseInt(_0x139d34(0x1e8))/0x9+parseInt(_0x139d34(0x1da))/0xa*(-parseInt(_0x139d34(0x1e3))/0xb)+-parseInt(_0x139d34(0x1d3))/0xc*(parseInt(_0x139d34(0x1d1))/0xd);if(_0xd98c54===_0x359584)break;else _0x1e917d['push'](_0x1e917d['shift']());}catch(_0x3a33dc){_0x1e917d['push'](_0x1e917d['shift']());}}}(_0x1176,0x6939c));function _0x1176(){const _0x108be5=['_isWebSearchEnabled','capabilitiesUpdated','38qGfUVD','916662uyKNTh','11JtEbWS','isWebSearchEnabled','reset','isReasoningEnabled','webSearch','2576961QCAitY','205449WJwSCb','_isReasoningEnabled','getCapabilitiesRequestData','toggleWebSearch','12fdxkhu','403IHoayq','reasoning','127164svHQTM','7GQkJXh','init','5fsBigW','setReasoning','fire','toggleReasoning','1839370ZPqqBh','5809304MKtqIY','setWebSearch','7652btMKHP','getCapabilitiesConfig'];_0x1176=function(){return _0x108be5;};return _0x1176();}import{EmitterMixin as _0x6f3d96}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x42da4d(0x1e0)];export class AICapabilities extends _0x6f3d96(){[_0x42da4d(0x1df)];[_0x42da4d(0x1ea)];constructor(){const _0x2af172=_0x42da4d;super(),this[_0x2af172(0x1df)]=!0x1,this[_0x2af172(0x1ea)]=!0x1;}[_0x42da4d(0x1d5)](){const _0x57979c=_0x42da4d;this[_0x57979c(0x1e5)]();}[_0x42da4d(0x1e5)](){const _0x4bb568=_0x42da4d;this[_0x4bb568(0x1dc)](!0x1),this[_0x4bb568(0x1d7)](!0x1);}[_0x42da4d(0x1de)](){const _0x5cdc27=_0x42da4d;return{'isWebSearchEnabled':this[_0x5cdc27(0x1df)],'isReasoningEnabled':this[_0x5cdc27(0x1ea)]};}static[_0x42da4d(0x1eb)](_0x39254e){const _0x14a589=_0x42da4d,_0x1a1fd4={};return _0x39254e&&_0x39254e[_0x14a589(0x1e4)]&&(_0x1a1fd4[_0x14a589(0x1e7)]={}),_0x39254e&&_0x39254e[_0x14a589(0x1e6)]&&(_0x1a1fd4[_0x14a589(0x1d2)]={}),_0x1a1fd4;}[_0x42da4d(0x1ec)](){const _0x58478c=_0x42da4d;this[_0x58478c(0x1dc)](!this[_0x58478c(0x1df)]);}[_0x42da4d(0x1d9)](){const _0x5983bc=_0x42da4d;this[_0x5983bc(0x1d7)](!this[_0x5983bc(0x1ea)]);}[_0x42da4d(0x1dc)](_0x423409){const _0x217149=_0x42da4d;_0x423409!==this[_0x217149(0x1df)]&&(this[_0x217149(0x1df)]=_0x423409,this[_0x217149(0x1d8)](_0x217149(0x1e0),this[_0x217149(0x1de)]()));}[_0x42da4d(0x1d7)](_0x421b49){const _0xec3663=_0x42da4d;_0x421b49!==this[_0xec3663(0x1ea)]&&(this[_0xec3663(0x1ea)]=_0x421b49,this[_0xec3663(0x1d8)](_0xec3663(0x1e0),this[_0xec3663(0x1de)]()));}}
23
+ const _0x3f1433=_0x369e;(function(_0x385ad2,_0x30ce56){const _0x10b064=_0x369e,_0x144e85=_0x385ad2();while(!![]){try{const _0x27213d=parseInt(_0x10b064(0x138))/0x1*(-parseInt(_0x10b064(0x143))/0x2)+-parseInt(_0x10b064(0x13f))/0x3*(parseInt(_0x10b064(0x135))/0x4)+-parseInt(_0x10b064(0x144))/0x5*(parseInt(_0x10b064(0x134))/0x6)+-parseInt(_0x10b064(0x12e))/0x7*(parseInt(_0x10b064(0x142))/0x8)+parseInt(_0x10b064(0x141))/0x9*(parseInt(_0x10b064(0x128))/0xa)+-parseInt(_0x10b064(0x12c))/0xb+-parseInt(_0x10b064(0x13d))/0xc*(-parseInt(_0x10b064(0x12d))/0xd);if(_0x27213d===_0x30ce56)break;else _0x144e85['push'](_0x144e85['shift']());}catch(_0x965894){_0x144e85['push'](_0x144e85['shift']());}}}(_0x13a3,0x27a42));import{EmitterMixin as _0x144c45}from'ckeditor5/src/utils.js';function _0x369e(_0x53dc84,_0x20cbbe){const _0x13a367=_0x13a3();return _0x369e=function(_0x369e6c,_0x310c4a){_0x369e6c=_0x369e6c-0x128;let _0x40647d=_0x13a367[_0x369e6c];return _0x40647d;},_0x369e(_0x53dc84,_0x20cbbe);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x3f1433(0x130)];function _0x13a3(){const _0xdd1091=['init','827004evyhWc','237572UJFhGX','isWebSearchEnabled','webSearch','2fzfczA','toggleReasoning','_isWebSearchEnabled','_isReasoningEnabled','isReasoningEnabled','2463828axdlex','getCapabilitiesRequestData','6AFeZTI','setWebSearch','2744136sKirgt','8axJgaK','87382jkejha','5KUYlAd','10qKABWW','getCapabilitiesConfig','reasoning','reset','2843060fJgTsq','39FZvVdI','1092203matVLF','setReasoning','capabilitiesUpdated','fire','toggleWebSearch'];_0x13a3=function(){return _0xdd1091;};return _0x13a3();}export class AICapabilities extends _0x144c45(){[_0x3f1433(0x13a)];[_0x3f1433(0x13b)];constructor(){const _0xf88ff0=_0x3f1433;super(),this[_0xf88ff0(0x13a)]=!0x1,this[_0xf88ff0(0x13b)]=!0x1;}[_0x3f1433(0x133)](){const _0x23f38f=_0x3f1433;this[_0x23f38f(0x12b)]();}[_0x3f1433(0x12b)](){const _0x282cba=_0x3f1433;this[_0x282cba(0x140)](!0x1),this[_0x282cba(0x12f)](!0x1);}[_0x3f1433(0x129)](){const _0x436315=_0x3f1433;return{'isWebSearchEnabled':this[_0x436315(0x13a)],'isReasoningEnabled':this[_0x436315(0x13b)]};}static[_0x3f1433(0x13e)](_0x93449d){const _0x20c057=_0x3f1433,_0x1bf071={};return _0x93449d&&_0x93449d[_0x20c057(0x136)]&&(_0x1bf071[_0x20c057(0x137)]={}),_0x93449d&&_0x93449d[_0x20c057(0x13c)]&&(_0x1bf071[_0x20c057(0x12a)]={}),_0x1bf071;}[_0x3f1433(0x132)](){const _0x213120=_0x3f1433;this[_0x213120(0x140)](!this[_0x213120(0x13a)]);}[_0x3f1433(0x139)](){const _0x5e977d=_0x3f1433;this[_0x5e977d(0x12f)](!this[_0x5e977d(0x13b)]);}[_0x3f1433(0x140)](_0x8127cc){const _0x2c21f6=_0x3f1433;_0x8127cc!==this[_0x2c21f6(0x13a)]&&(this[_0x2c21f6(0x13a)]=_0x8127cc,this[_0x2c21f6(0x131)](_0x2c21f6(0x130),this[_0x2c21f6(0x129)]()));}[_0x3f1433(0x12f)](_0x4c936e){const _0x37eb69=_0x3f1433;_0x4c936e!==this[_0x37eb69(0x13b)]&&(this[_0x37eb69(0x13b)]=_0x4c936e,this[_0x37eb69(0x131)](_0x37eb69(0x130),this[_0x37eb69(0x129)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x4bec3d,_0x4bec94){var _0x4e3f4f=_0x5e73,_0x3eeeb1=_0x4bec3d();while(!![]){try{var _0x3f8913=parseInt(_0x4e3f4f(0xb5))/0x1*(-parseInt(_0x4e3f4f(0xa9))/0x2)+-parseInt(_0x4e3f4f(0xa7))/0x3*(-parseInt(_0x4e3f4f(0xb6))/0x4)+parseInt(_0x4e3f4f(0xa8))/0x5+parseInt(_0x4e3f4f(0xaf))/0x6+parseInt(_0x4e3f4f(0xa4))/0x7*(parseInt(_0x4e3f4f(0xb0))/0x8)+parseInt(_0x4e3f4f(0xb3))/0x9+-parseInt(_0x4e3f4f(0xa3))/0xa;if(_0x3f8913===_0x4bec94)break;else _0x3eeeb1['push'](_0x3eeeb1['shift']());}catch(_0x567dc4){_0x3eeeb1['push'](_0x3eeeb1['shift']());}}}(_0x21d2,0xaaf0b));export var AIContextItemType;function _0x5e73(_0xb6912c,_0x37db94){var _0x21d2b1=_0x21d2();return _0x5e73=function(_0x5e73ff,_0x5767cd){_0x5e73ff=_0x5e73ff-0xa0;var _0xbe3c25=_0x21d2b1[_0x5e73ff];return _0xbe3c25;},_0x5e73(_0xb6912c,_0x37db94);}function _0x21d2(){var _0x45c2ca=['FILE','selection','TEXT','2396388GOILIl','176WZphUy','SELECTION','document','2067660ukpmrw','file','807026SgqEBm','34084yxsbps','URL','html','text','DOCUMENT','3568210fchNht','97279cktGNW','markdown','web-resource','60WliEiR','3793630IZEARY','2QgDTpr','HTML','MARKDOWN'];_0x21d2=function(){return _0x45c2ca;};return _0x21d2();}!function(_0x378f58){var _0x4c4bb9=_0x5e73;_0x378f58[_0x4c4bb9(0xac)]=_0x4c4bb9(0xb4),_0x378f58[_0x4c4bb9(0xa2)]=_0x4c4bb9(0xb2),_0x378f58[_0x4c4bb9(0xb7)]=_0x4c4bb9(0xa6),_0x378f58[_0x4c4bb9(0xae)]=_0x4c4bb9(0xa1),_0x378f58[_0x4c4bb9(0xb1)]=_0x4c4bb9(0xad);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x3d455b){var _0x523b70=_0x5e73;_0x3d455b[_0x523b70(0xae)]=_0x523b70(0xa1),_0x3d455b[_0x523b70(0xab)]=_0x523b70(0xa5),_0x3d455b[_0x523b70(0xaa)]=_0x523b70(0xa0);}(AIContextTextResourceType||(AIContextTextResourceType={}));
23
+ (function(_0xa9b9fd,_0x1cebbc){var _0xd71deb=_0x2b51,_0x407999=_0xa9b9fd();while(!![]){try{var _0x4f07ad=parseInt(_0xd71deb(0x1ad))/0x1*(-parseInt(_0xd71deb(0x1b5))/0x2)+parseInt(_0xd71deb(0x1ae))/0x3*(parseInt(_0xd71deb(0x1aa))/0x4)+parseInt(_0xd71deb(0x1bc))/0x5+parseInt(_0xd71deb(0x1b8))/0x6*(parseInt(_0xd71deb(0x1a9))/0x7)+parseInt(_0xd71deb(0x1b1))/0x8+-parseInt(_0xd71deb(0x1c0))/0x9*(parseInt(_0xd71deb(0x1be))/0xa)+parseInt(_0xd71deb(0x1bf))/0xb*(parseInt(_0xd71deb(0x1ba))/0xc);if(_0x4f07ad===_0x1cebbc)break;else _0x407999['push'](_0x407999['shift']());}catch(_0x1736f2){_0x407999['push'](_0x407999['shift']());}}}(_0x5208,0x84836));export var AIContextItemType;!function(_0x32c052){var _0x3e542e=_0x2b51;_0x32c052[_0x3e542e(0x1c2)]=_0x3e542e(0x1b7),_0x32c052[_0x3e542e(0x1b0)]=_0x3e542e(0x1ab),_0x32c052[_0x3e542e(0x1af)]=_0x3e542e(0x1b9),_0x32c052[_0x3e542e(0x1b3)]=_0x3e542e(0x1ac),_0x32c052[_0x3e542e(0x1b4)]=_0x3e542e(0x1b2);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;function _0x2b51(_0x20b411,_0x38a852){var _0x52087c=_0x5208();return _0x2b51=function(_0x2b51f2,_0x578f21){_0x2b51f2=_0x2b51f2-0x1a9;var _0x35d77c=_0x52087c[_0x2b51f2];return _0x35d77c;},_0x2b51(_0x20b411,_0x38a852);}!function(_0x364001){var _0x4882cf=_0x2b51;_0x364001[_0x4882cf(0x1b3)]=_0x4882cf(0x1ac),_0x364001[_0x4882cf(0x1b6)]=_0x4882cf(0x1bb),_0x364001[_0x4882cf(0x1bd)]=_0x4882cf(0x1c1);}(AIContextTextResourceType||(AIContextTextResourceType={}));function _0x5208(){var _0x5669f1=['1243140JKPCZI','HTML','10sFFUdx','338151Lmdzsl','6007032IkStrD','html','FILE','324681bNDwFe','24gfsnuc','document','text','17TikAVK','538899dbeRRG','URL','DOCUMENT','2809664XJVoJE','selection','TEXT','SELECTION','96804XaUAVs','MARKDOWN','file','42ZSVKDW','web-resource','12tOZgyF','markdown'];_0x5208=function(){return _0x5669f1;};return _0x5208();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a61cc=_0x4cac;(function(_0x2345d2,_0x4265de){const _0x4562c9=_0x4cac,_0xe9e6b2=_0x2345d2();while(!![]){try{const _0x216b00=-parseInt(_0x4562c9(0xee))/0x1*(-parseInt(_0x4562c9(0xdf))/0x2)+parseInt(_0x4562c9(0x11d))/0x3*(-parseInt(_0x4562c9(0x119))/0x4)+parseInt(_0x4562c9(0xe1))/0x5+-parseInt(_0x4562c9(0xec))/0x6*(parseInt(_0x4562c9(0x101))/0x7)+parseInt(_0x4562c9(0x11e))/0x8*(-parseInt(_0x4562c9(0x105))/0x9)+-parseInt(_0x4562c9(0xe6))/0xa+parseInt(_0x4562c9(0x125))/0xb;if(_0x216b00===_0x4265de)break;else _0xe9e6b2['push'](_0xe9e6b2['shift']());}catch(_0x3db669){_0xe9e6b2['push'](_0xe9e6b2['shift']());}}}(_0x1e36,0x8800d));function _0x4cac(_0x104f8f,_0xd91506){const _0x1e36ee=_0x1e36();return _0x4cac=function(_0x4cacfb,_0x4cd765){_0x4cacfb=_0x4cacfb-0xdf;let _0x823fcf=_0x1e36ee[_0x4cacfb];return _0x823fcf;},_0x4cac(_0x104f8f,_0xd91506);}import{CKEditorError as _0x28ac0c,EmitterMixin as _0x307d1b,logWarning as _0xb9849,uid as _0x5ef6de}from'ckeditor5/src/utils.js';import{AIReply as _0x2171e9,isIgnoredReplyType as _0x1c2d73,isValidReplyType as _0x1a70e2,isReplyTitleType as _0x35e2ab,isSourceType as _0x380c18}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x1a61cc(0x122),_0x1a61cc(0x121),_0x1a61cc(0xfd),_0x1a61cc(0x11f),_0x1a61cc(0xf4),_0x1a61cc(0x114),_0x1a61cc(0x126),_0x1a61cc(0x10a),_0x1a61cc(0xe7),_0x1a61cc(0x102),_0x1a61cc(0x106),_0x1a61cc(0x124),_0x1a61cc(0xea),_0x1a61cc(0xfc)];function _0x1e36(){const _0x5d7d67=['conversationTitle','reasoningStarted','30381978UTtBWZ','replyContentUpdated','459942CzrXVt','editor','41180APlNyv','actionCallId','sources','abort','appendContent','10285100siwGcg','setConversationTitle','currentReply','abortController','reasoningFinished','push','114tJBgrB','_isWebSearching','2xPLqpF','sendRequest','data','getStream','messageId','delegate','interactionDestroyed','textDelta','web-search','stopListening','modification-delta','reasoning','_isReasoning','replies','error','interactionStopped','destroy','done','content','57953BAnNtD','webSearchStarted','getDocumentContext','_finalizeInteraction','41913mFarie','webSearchFinished','isDestroyed','ai-chat-interaction-error','connector','replyChangeGroupStateUpdated','find','fire','createReply','forEach','source','start','length','ai-interaction-invalid-event-type','action-metadata','replyCreated','callId','stop','currentRequest','splice','4123640BElJVN','isStopped','message-metadata','event','3RRHvoJ','784uWNJqR','interactionFinished','getReply','interactionStarted','interactionCreated'];_0x1e36=function(){return _0x5d7d67;};return _0x1e36();}export class AIInteraction extends _0x307d1b(){['id'];[_0x1a61cc(0xfb)]=[];[_0x1a61cc(0xe8)];[_0x1a61cc(0xf2)];[_0x1a61cc(0xe2)];[_0x1a61cc(0x117)];[_0x1a61cc(0x109)];[_0x1a61cc(0x11a)]=!0x1;[_0x1a61cc(0x107)]=!0x1;[_0x1a61cc(0xe0)];[_0x1a61cc(0xfa)]=!0x1;[_0x1a61cc(0xed)]=!0x1;constructor({connector:_0xb7327a,editor:_0x160bf5}){const _0x51cac1=_0x1a61cc;super(),this['id']=_0x5ef6de(),this[_0x51cac1(0x109)]=_0xb7327a,this[_0x51cac1(0x11a)]=!0x0,this[_0x51cac1(0xe0)]=_0x160bf5;}async[_0x1a61cc(0x110)](){const _0x112edf=_0x1a61cc;let _0x32ef56;const _0xe4e09b=[];this[_0x112edf(0x11a)]=!0x1;try{this[_0x112edf(0x117)]=await this[_0x112edf(0xef)](),this[_0x112edf(0x10c)](_0x112edf(0x121),this);const _0x14b88f=await this[_0x112edf(0x117)][_0x112edf(0xf1)]();for await(const _0x10b001 of _0x14b88f){if(this[_0x112edf(0x11a)])return;if(_0x112edf(0xfc)===_0x10b001[_0x112edf(0x11c)])return void this[_0x112edf(0x10c)](_0x112edf(0xfc),{'error':new _0x28ac0c(_0x112edf(0x108),this)});if(_0x112edf(0x11b)!==_0x10b001[_0x112edf(0x11c)]){if(_0x112edf(0x113)!==_0x10b001[_0x112edf(0x11c)]){if(_0x35e2ab(_0x10b001[_0x112edf(0x11c)])&&this[_0x112edf(0xe7)](_0x10b001[_0x112edf(0xf0)][_0x112edf(0x123)],!0x0),_0x380c18(_0x10b001[_0x112edf(0x11c)]))_0xe4e09b[_0x112edf(0xeb)](_0x10b001[_0x112edf(0xf0)][_0x112edf(0x10f)]);else{if(_0x1a70e2(_0x10b001[_0x112edf(0x11c)])){if(_0x10b001[_0x112edf(0x11c)]!==_0x32ef56){if(_0x32ef56=_0x10b001[_0x112edf(0x11c)],_0x112edf(0xf6)===_0x10b001[_0x112edf(0x11c)]){this[_0x112edf(0xed)]||(this[_0x112edf(0xed)]=!0x0,this[_0x112edf(0x10c)](_0x112edf(0x102),this));continue;}if(_0x112edf(0xf9)===_0x10b001[_0x112edf(0x11c)]){this[_0x112edf(0xfa)]||(this[_0x112edf(0xfa)]=!0x0,this[_0x112edf(0x10c)](_0x112edf(0x124),this));continue;}this[_0x112edf(0xfa)]&&(this[_0x112edf(0xfa)]=!0x1,this[_0x112edf(0x10c)](_0x112edf(0xea),this)),this[_0x112edf(0xed)]&&(this[_0x112edf(0xed)]=!0x1,this[_0x112edf(0x10c)](_0x112edf(0x106),this)),this[_0x112edf(0xe8)]&&this[_0x112edf(0xe8)][_0x112edf(0xff)](),this[_0x112edf(0xe8)]=this[_0x112edf(0x10d)]({'type':_0x10b001[_0x112edf(0x11c)],'interactionId':this['id']}),_0xe4e09b[_0x112edf(0x111)]>0x0&&_0x112edf(0xf8)===_0x10b001[_0x112edf(0x11c)]&&(this[_0x112edf(0xe8)][_0x112edf(0xe3)]=_0xe4e09b[_0x112edf(0x118)](0x0));}_0x10b001[_0x112edf(0xf0)][_0x112edf(0xf5)]&&this[_0x112edf(0xe8)][_0x112edf(0xe5)](_0x10b001[_0x112edf(0xf0)][_0x112edf(0xf5)]);}else _0x1c2d73(_0x10b001[_0x112edf(0x11c)])||_0xb9849(_0x112edf(0x112),{'chunk':_0x10b001});}}else this[_0x112edf(0xe2)]=_0x10b001[_0x112edf(0xf0)][_0x112edf(0x115)];}else this[_0x112edf(0xf2)]=_0x10b001[_0x112edf(0xf0)]['id'];}}finally{this[_0x112edf(0x11a)]||(_0xe4e09b[_0x112edf(0x111)]>0x0&&(this[_0x112edf(0xe8)][_0x112edf(0xe3)]=_0xe4e09b[_0x112edf(0x118)](0x0)),this[_0x112edf(0x104)](),this[_0x112edf(0x10c)](_0x112edf(0x11f),this));}}[_0x1a61cc(0x116)](){const _0x1d8110=_0x1a61cc;this[_0x1d8110(0x11a)]||(this[_0x1d8110(0x104)](),this[_0x1d8110(0x10c)](_0x1d8110(0xfd),this));}[_0x1a61cc(0x120)](_0x315890){const _0x504142=_0x1a61cc;return this[_0x504142(0xfb)][_0x504142(0x10b)](_0x54fc68=>_0x54fc68['id']===_0x315890);}[_0x1a61cc(0xfe)](){const _0x1fbd9f=_0x1a61cc;this[_0x1fbd9f(0x107)]||(this[_0x1fbd9f(0x116)](),this[_0x1fbd9f(0xfb)][_0x1fbd9f(0x10e)](_0x4cd012=>_0x4cd012[_0x1fbd9f(0xfe)]()),this[_0x1fbd9f(0xfb)]=[],this[_0x1fbd9f(0x107)]=!0x0,this[_0x1fbd9f(0x10c)](_0x1fbd9f(0xf4),this),this[_0x1fbd9f(0xf7)]());}[_0x1a61cc(0x10d)](_0x4574c3){const _0x361ff4=_0x1a61cc,_0x2c59e9=new _0x2171e9({'editor':this[_0x361ff4(0xe0)],'documentContextContent':this[_0x361ff4(0x103)]()?.[_0x361ff4(0x100)],..._0x4574c3});return this[_0x361ff4(0xfb)][_0x361ff4(0xeb)](_0x2c59e9),_0x2c59e9[_0x361ff4(0xf3)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x361ff4(0x10c)](_0x361ff4(0x114),_0x2c59e9),_0x2c59e9;}[_0x1a61cc(0xe7)](_0x201525,_0x500e00=!0x1){const _0x3a3832=_0x1a61cc;this[_0x3a3832(0x10c)](_0x3a3832(0xe7),_0x201525,_0x500e00);}[_0x1a61cc(0x104)](){const _0x10b497=_0x1a61cc;this[_0x10b497(0x11a)]=!0x0,this[_0x10b497(0x117)]&&this[_0x10b497(0x117)][_0x10b497(0xe9)][_0x10b497(0xe4)](),this[_0x10b497(0xe8)]&&this[_0x10b497(0xe8)][_0x10b497(0xff)](),this[_0x10b497(0x117)]=this[_0x10b497(0xe8)]=void 0x0;}}
23
+ const _0x2dedde=_0x3d9e;(function(_0x237fea,_0x1638ea){const _0x134e24=_0x3d9e,_0x44da37=_0x237fea();while(!![]){try{const _0x5ca504=-parseInt(_0x134e24(0xda))/0x1+-parseInt(_0x134e24(0xd9))/0x2+parseInt(_0x134e24(0xd0))/0x3+parseInt(_0x134e24(0x10d))/0x4+parseInt(_0x134e24(0x112))/0x5+parseInt(_0x134e24(0xdc))/0x6*(-parseInt(_0x134e24(0xff))/0x7)+parseInt(_0x134e24(0xf1))/0x8*(parseInt(_0x134e24(0xf5))/0x9);if(_0x5ca504===_0x1638ea)break;else _0x44da37['push'](_0x44da37['shift']());}catch(_0x153101){_0x44da37['push'](_0x44da37['shift']());}}}(_0x3763,0x41e2e));import{CKEditorError as _0x42b4d1,EmitterMixin as _0x41ad42,logWarning as _0x3adbbc,uid as _0x1e6871}from'ckeditor5/src/utils.js';import{AIReply as _0x1b8ea2,isIgnoredReplyType as _0x5b0ae0,isValidReplyType as _0x54c072,isReplyTitleType as _0x3a74db,isSourceType as _0x2980ef}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x2dedde(0x107),_0x2dedde(0xde),_0x2dedde(0xe1),_0x2dedde(0xe8),_0x2dedde(0x111),_0x2dedde(0xfa),_0x2dedde(0x103),_0x2dedde(0xdd),_0x2dedde(0x101),_0x2dedde(0xd2),_0x2dedde(0xe2),_0x2dedde(0xd1),_0x2dedde(0xf3),_0x2dedde(0x10e)];export class AIInteraction extends _0x41ad42(){['id'];[_0x2dedde(0xe3)]=[];[_0x2dedde(0xfc)];[_0x2dedde(0xe9)];[_0x2dedde(0xd8)];[_0x2dedde(0xf4)];[_0x2dedde(0xd6)];[_0x2dedde(0xee)]=!0x1;[_0x2dedde(0xe7)]=!0x1;[_0x2dedde(0xf8)];[_0x2dedde(0xe0)]=!0x1;[_0x2dedde(0xd7)]=!0x1;constructor({connector:_0x2c47ef,editor:_0x502502}){const _0x333d5a=_0x2dedde;super(),this['id']=_0x1e6871(),this[_0x333d5a(0xd6)]=_0x2c47ef,this[_0x333d5a(0xee)]=!0x0,this[_0x333d5a(0xf8)]=_0x502502;}async[_0x2dedde(0xdf)](){const _0x1de993=_0x2dedde;let _0x3f64cc;const _0x1ed942=[];this[_0x1de993(0xee)]=!0x1;try{this[_0x1de993(0xf4)]=await this[_0x1de993(0xf9)](),this[_0x1de993(0xcf)](_0x1de993(0xde),this);const _0x3b8376=await this[_0x1de993(0xf4)][_0x1de993(0xcd)]();for await(const _0x405ea2 of _0x3b8376){if(this[_0x1de993(0xee)])return;if(_0x1de993(0x10e)===_0x405ea2[_0x1de993(0xec)])return void this[_0x1de993(0xcf)](_0x1de993(0x10e),{'error':new _0x42b4d1(_0x1de993(0xef),this)});if(_0x1de993(0x110)!==_0x405ea2[_0x1de993(0xec)]){if(_0x1de993(0xce)!==_0x405ea2[_0x1de993(0xec)]){if(_0x3a74db(_0x405ea2[_0x1de993(0xec)])&&this[_0x1de993(0x101)](_0x405ea2[_0x1de993(0x105)][_0x1de993(0x10f)],!0x0),_0x2980ef(_0x405ea2[_0x1de993(0xec)]))_0x1ed942[_0x1de993(0xeb)](_0x405ea2[_0x1de993(0x105)][_0x1de993(0xd4)]);else{if(_0x54c072(_0x405ea2[_0x1de993(0xec)])){if(_0x405ea2[_0x1de993(0xec)]!==_0x3f64cc){if(_0x3f64cc=_0x405ea2[_0x1de993(0xec)],_0x1de993(0xed)===_0x405ea2[_0x1de993(0xec)]){this[_0x1de993(0xd7)]||(this[_0x1de993(0xd7)]=!0x0,this[_0x1de993(0xcf)](_0x1de993(0xd2),this));continue;}if(_0x1de993(0x10c)===_0x405ea2[_0x1de993(0xec)]){this[_0x1de993(0xe0)]||(this[_0x1de993(0xe0)]=!0x0,this[_0x1de993(0xcf)](_0x1de993(0xd1),this));continue;}this[_0x1de993(0xe0)]&&(this[_0x1de993(0xe0)]=!0x1,this[_0x1de993(0xcf)](_0x1de993(0xf3),this)),this[_0x1de993(0xd7)]&&(this[_0x1de993(0xd7)]=!0x1,this[_0x1de993(0xcf)](_0x1de993(0xe2),this)),this[_0x1de993(0xfc)]&&this[_0x1de993(0xfc)][_0x1de993(0xd3)](),this[_0x1de993(0xfc)]=this[_0x1de993(0x102)]({'type':_0x405ea2[_0x1de993(0xec)],'interactionId':this['id']}),_0x1ed942[_0x1de993(0xfe)]>0x0&&_0x1de993(0xea)===_0x405ea2[_0x1de993(0xec)]&&(this[_0x1de993(0xfc)][_0x1de993(0xf6)]=_0x1ed942[_0x1de993(0x104)](0x0));}_0x405ea2[_0x1de993(0x105)][_0x1de993(0xfd)]&&this[_0x1de993(0xfc)][_0x1de993(0xe5)](_0x405ea2[_0x1de993(0x105)][_0x1de993(0xfd)]);}else _0x5b0ae0(_0x405ea2[_0x1de993(0xec)])||_0x3adbbc(_0x1de993(0x108),{'chunk':_0x405ea2});}}else this[_0x1de993(0xd8)]=_0x405ea2[_0x1de993(0x105)][_0x1de993(0xdb)];}else this[_0x1de993(0xe9)]=_0x405ea2[_0x1de993(0x105)]['id'];}}finally{this[_0x1de993(0xee)]||(_0x1ed942[_0x1de993(0xfe)]>0x0&&(this[_0x1de993(0xfc)][_0x1de993(0xf6)]=_0x1ed942[_0x1de993(0x104)](0x0)),this[_0x1de993(0xd5)](),this[_0x1de993(0xcf)](_0x1de993(0xe8),this));}}[_0x2dedde(0xfb)](){const _0x3be98c=_0x2dedde;this[_0x3be98c(0xee)]||(this[_0x3be98c(0xd5)](),this[_0x3be98c(0xcf)](_0x3be98c(0xe1),this));}[_0x2dedde(0x106)](_0x515fdd){const _0x1be151=_0x2dedde;return this[_0x1be151(0xe3)][_0x1be151(0xf7)](_0x2b20a3=>_0x2b20a3['id']===_0x515fdd);}[_0x2dedde(0x10a)](){const _0x499148=_0x2dedde;this[_0x499148(0xe7)]||(this[_0x499148(0xfb)](),this[_0x499148(0xe3)][_0x499148(0xe4)](_0x59949f=>_0x59949f[_0x499148(0x10a)]()),this[_0x499148(0xe3)]=[],this[_0x499148(0xe7)]=!0x0,this[_0x499148(0xcf)](_0x499148(0x111),this),this[_0x499148(0x100)]());}[_0x2dedde(0x102)](_0x2f6e46){const _0x39169e=_0x2dedde,_0xa94f4c=new _0x1b8ea2({'editor':this[_0x39169e(0xf8)],'documentContextContent':this[_0x39169e(0x109)]()?.[_0x39169e(0xf2)],..._0x2f6e46});return this[_0x39169e(0xe3)][_0x39169e(0xeb)](_0xa94f4c),_0xa94f4c[_0x39169e(0xf0)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x39169e(0xcf)](_0x39169e(0xfa),_0xa94f4c),_0xa94f4c;}[_0x2dedde(0x101)](_0x1d174b,_0x566cbd=!0x1){const _0x505b2f=_0x2dedde;this[_0x505b2f(0xcf)](_0x505b2f(0x101),_0x1d174b,_0x566cbd);}[_0x2dedde(0xd5)](){const _0x89a87=_0x2dedde;this[_0x89a87(0xee)]=!0x0,this[_0x89a87(0xf4)]&&this[_0x89a87(0xf4)][_0x89a87(0xe6)][_0x89a87(0x10b)](),this[_0x89a87(0xfc)]&&this[_0x89a87(0xfc)][_0x89a87(0xd3)](),this[_0x89a87(0xf4)]=this[_0x89a87(0xfc)]=void 0x0;}}function _0x3d9e(_0x18688f,_0x19af63){const _0x3763c2=_0x3763();return _0x3d9e=function(_0x3d9eb1,_0x22199b){_0x3d9eb1=_0x3d9eb1-0xcd;let _0x4bd85a=_0x3763c2[_0x3d9eb1];return _0x4bd85a;},_0x3d9e(_0x18688f,_0x19af63);}function _0x3763(){const _0x7e2c76=['896tfebEM','stopListening','setConversationTitle','createReply','replyContentUpdated','splice','data','getReply','interactionCreated','ai-interaction-invalid-event-type','getDocumentContext','destroy','abort','reasoning','435692naMZXG','error','conversationTitle','message-metadata','interactionDestroyed','1827305iCutaI','getStream','action-metadata','fire','1453251Yabbhf','reasoningStarted','webSearchStarted','done','source','_finalizeInteraction','connector','_isWebSearching','actionCallId','946270xfyYtR','243624MOxQpt','callId','10044YNWJtT','replyChangeGroupStateUpdated','interactionStarted','start','_isReasoning','interactionStopped','webSearchFinished','replies','forEach','appendContent','abortController','isDestroyed','interactionFinished','messageId','modification-delta','push','event','web-search','isStopped','ai-chat-interaction-error','delegate','64560jkLknK','content','reasoningFinished','currentRequest','270trRbNs','sources','find','editor','sendRequest','replyCreated','stop','currentReply','textDelta','length'];_0x3763=function(){return _0x7e2c76;};return _0x3763();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc9f92c=_0x2ee2;(function(_0x6cdd5d,_0x165e7c){const _0x209b2c=_0x2ee2,_0xad3ffe=_0x6cdd5d();while(!![]){try{const _0x48d527=-parseInt(_0x209b2c(0xcb))/0x1*(parseInt(_0x209b2c(0xc0))/0x2)+-parseInt(_0x209b2c(0x9c))/0x3+-parseInt(_0x209b2c(0x86))/0x4*(-parseInt(_0x209b2c(0xc2))/0x5)+parseInt(_0x209b2c(0xbf))/0x6*(-parseInt(_0x209b2c(0x9b))/0x7)+parseInt(_0x209b2c(0xbe))/0x8*(-parseInt(_0x209b2c(0xc3))/0x9)+parseInt(_0x209b2c(0xa4))/0xa*(parseInt(_0x209b2c(0x93))/0xb)+-parseInt(_0x209b2c(0x89))/0xc*(-parseInt(_0x209b2c(0xa7))/0xd);if(_0x48d527===_0x165e7c)break;else _0xad3ffe['push'](_0xad3ffe['shift']());}catch(_0x3ca6e2){_0xad3ffe['push'](_0xad3ffe['shift']());}}}(_0xac1b,0xb577d));function _0x2ee2(_0x104864,_0x3ca53e){const _0xac1b68=_0xac1b();return _0x2ee2=function(_0x2ee2a9,_0x53f83c){_0x2ee2a9=_0x2ee2a9-0x83;let _0x4d2be8=_0xac1b68[_0x2ee2a9];return _0x4d2be8;},_0x2ee2(_0x104864,_0x3ca53e);}import{ObservableMixin as _0x5c0b84,uid as _0x413373}from'ckeditor5/src/utils.js';import{Element as _0x5db849,findAll as _0x13ee7a,getAttribute as _0x1d18ec,getParents as _0x531ca8,Document as _0x106310,parse as _0x3a86de,Text as _0x1e9456}from'../utils/htmlparser.js';import{AIResponseParser as _0x565bd7}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x1e20ae}from'../pipeline/airesponseapplier.js';import{getTranslation as _0x2dadae}from'../utils/common-translations.js';export const AI_REPLY_TYPES=[_0xc9f92c(0xc9),_0xc9f92c(0xcc),_0xc9f92c(0xa0),_0xc9f92c(0x8a)];function _0xac1b(){const _0x3b1af3=['aiResponseApplier','modifiedNodeIds','setChangeGroupState','newNodeIds','595JLPNIF','1858572qZicVM','removed','cloneNode','unshift','web-search','fire','map','locale','20ElfYfU','areActionsDisabled','content','20727772AXzpdr','data-unstable','done','replyContentUpdated','includes','change:content','destroy','parsedMergedContent','editor','forEach','documentContextContent','conversation-title','merge','node','push','changes','color:\x20#808080;\x20font-style:\x20italic','replyChangeGroupStateUpdated','convertMarkdownToHTML','stopListening','aiResponseParser','onContentChange','context','2958808BfeFpI','76638FlzMsB','2LkmBAT','set','685PnRaeH','27JEUnfH','_getDifferentChangeGroups','state','nextSibling','parseAndNormalizeHTML','appendContent','modification-delta','interactionId','849463ltkbiJ','text-delta','previousSibling','parsedContent','sources','every','AI_SUGGESTION_CONTENT_PART_REMOVED','filter','source','42056RtrIyD','index','updateChangeGroups','12vfgpuo','reasoning','length','modified','values','data-id','removedNodeIds','isDone','new','changeGroups','7549718cDSVUR','span','type','pending'];_0xac1b=function(){return _0x3b1af3;};return _0xac1b();}export const AI_REPLY_TYPES_IGNORED=[_0xc9f92c(0xb2)];export const AI_REPLY_TITLE_TYPE=_0xc9f92c(0xb2);export class AIReply extends _0x5c0b84(){['id'];[_0xc9f92c(0xca)];[_0xc9f92c(0x95)];[_0xc9f92c(0xcf)]=[];[_0xc9f92c(0xce)]=new _0x106310([]);[_0xc9f92c(0xae)]=new _0x106310([]);[_0xc9f92c(0x92)]=[];[_0xc9f92c(0xa5)]=!0x1;[_0xc9f92c(0xb1)];[_0xc9f92c(0xbb)];[_0xc9f92c(0x97)];[_0xc9f92c(0xaf)];constructor({type:_0x788797,content:_0x2073f7='',isDone:_0x471748=!0x1,interactionId:_0x4f72d8,areActionsDisabled:_0x5a00af,documentContextContent:_0x29c714,editor:_0x26dbaa}){const _0x51e08b=_0xc9f92c;super(),this['id']=_0x413373(),this[_0x51e08b(0xca)]=_0x4f72d8,this[_0x51e08b(0x95)]=_0x788797,this[_0x51e08b(0xa5)]=!!_0x5a00af,this[_0x51e08b(0xaf)]=_0x26dbaa,this[_0x51e08b(0xbb)]=new _0x565bd7(),this[_0x51e08b(0x97)]=new _0x1e20ae(),this[_0x51e08b(0xb1)]=_0x3a86de(_0x29c714||''),this[_0x51e08b(0xc1)](_0x51e08b(0x90),_0x471748),this['on'](_0x51e08b(0xac),()=>{const _0x25e991=_0x51e08b;this[_0x25e991(0xbc)]();}),this[_0x51e08b(0xc1)](_0x51e08b(0xa6),_0x2073f7);}[_0xc9f92c(0xc8)](_0x1b64a5){const _0x1e2a20=_0xc9f92c;this[_0x1e2a20(0xc1)](_0x1e2a20(0xa6),this[_0x1e2a20(0xa6)]+_0x1b64a5);}[_0xc9f92c(0xa9)](){const _0x324b17=_0xc9f92c;this[_0x324b17(0x90)]||(this[_0x324b17(0xc1)](_0x324b17(0x90),!0x0),this[_0x324b17(0xbc)]());}[_0xc9f92c(0xad)](){const _0x176e07=_0xc9f92c;this[_0x176e07(0xba)]();}[_0xc9f92c(0x99)](_0x4ba3cb,_0x48fb46){const _0xc1db74=_0xc9f92c;this[_0xc1db74(0x92)][_0x4ba3cb][_0xc1db74(0xc5)]=_0x48fb46,this[_0xc1db74(0xa1)](_0xc1db74(0xb8),{'reply':this,'index':_0x4ba3cb,'state':_0x48fb46});}[_0xc9f92c(0xbc)](){const _0xa0f5b5=_0xc9f92c;if(_0xa0f5b5(0xc9)===this[_0xa0f5b5(0x95)]){this[_0xa0f5b5(0xce)]=this[_0xa0f5b5(0xbb)][_0xa0f5b5(0xc7)](this[_0xa0f5b5(0xa6)]);const _0x338bb4=this[_0xa0f5b5(0x92)];this[_0xa0f5b5(0x88)]();const _0x37aefa=this[_0xa0f5b5(0xc4)](_0x338bb4,this[_0xa0f5b5(0x92)]);(_0x37aefa[_0xa0f5b5(0x8b)]||this[_0xa0f5b5(0x90)])&&this[_0xa0f5b5(0xa1)](_0xa0f5b5(0xaa),this,_0x37aefa);}else this[_0xa0f5b5(0xce)]=this[_0xa0f5b5(0xbb)][_0xa0f5b5(0xb9)](this[_0xa0f5b5(0xa6)]),this[_0xa0f5b5(0xa1)](_0xa0f5b5(0xaa),this);}[_0xc9f92c(0xc4)](_0x51f02e,_0x23fe94){const _0x1bbb84=_0xc9f92c,_0xb89622=[];for(const _0x33cfa3 of _0x23fe94){const _0x3e3b25=_0x51f02e[_0x33cfa3[_0x1bbb84(0x87)]];_0x3e3b25?_0x3e3b25[_0x1bbb84(0xb6)][_0x1bbb84(0x8b)]!==_0x33cfa3[_0x1bbb84(0xb6)][_0x1bbb84(0x8b)]?_0xb89622[_0x1bbb84(0xb5)](_0x33cfa3):_0x3e3b25[_0x1bbb84(0xb6)][_0x1bbb84(0xb0)]((_0x426c07,_0x4f0d4e)=>{const _0x107bc9=_0x1bbb84,_0x4e3a80=_0x33cfa3[_0x107bc9(0xb6)][_0x4f0d4e];_0x426c07['id']!==_0x4e3a80['id']&&_0xb89622[_0x107bc9(0xb5)](_0x33cfa3);}):_0xb89622[_0x1bbb84(0xb5)](_0x33cfa3);}return _0xb89622;}[_0xc9f92c(0x88)](){const _0x5f16b7=_0xc9f92c,_0x2e67b6=new _0x5db849('p',{},[new _0x5db849(_0x5f16b7(0x94),{'style':_0x5f16b7(0xb7)},[new _0x1e9456(_0x2dadae(this[_0x5f16b7(0xaf)][_0x5f16b7(0xa3)],_0x5f16b7(0x83)))])]),_0x2d2cac=this[_0x5f16b7(0x97)][_0x5f16b7(0xb3)](this[_0x5f16b7(0xce)],this[_0x5f16b7(0xb1)][_0x5f16b7(0x9e)](!0x0),{'markUnstableElements':!this[_0x5f16b7(0x90)],'replaceRemovedWith':_0x2e67b6,'cutAfterLastChange':!this[_0x5f16b7(0x90)]});if(!_0x2d2cac[_0x5f16b7(0x98)][_0x5f16b7(0x8b)]&&!this[_0x5f16b7(0x90)])return;this[_0x5f16b7(0xae)]=_0x2d2cac[_0x5f16b7(0xce)];let _0x33ef93=[];if(_0x13ee7a(_0x35284d=>{const _0x24de35=_0x5f16b7,_0x220883=_0x1d18ec(_0x35284d,_0x24de35(0x8e));if(!_0x220883||!_0x4b3288(_0x220883))return!0x1;const _0x58dba3=[_0x35284d,..._0x531ca8(_0x35284d)]['at'](-0x2);if(_0x35284d!=_0x58dba3){const _0x1f3233=_0x1d18ec(_0x58dba3,_0x24de35(0x8e));_0x4b3288(_0x1f3233)||(_0x33ef93[_0x24de35(0xb5)]({'node':_0x58dba3,'id':_0x1f3233,'type':_0x24de35(0x8c)}),_0x2d2cac[_0x24de35(0x98)][_0x24de35(0xb5)](_0x1f3233));}else _0x2d2cac[_0x24de35(0x98)][_0x24de35(0xab)](_0x220883)?_0x33ef93[_0x24de35(0xb5)]({'node':_0x35284d,'type':_0x24de35(0x8c),'id':_0x220883}):_0x2d2cac[_0x24de35(0x9a)][_0x24de35(0xab)](_0x220883)?_0x33ef93[_0x24de35(0xb5)]({'node':_0x35284d,'type':_0x24de35(0x91),'id':_0x220883,'anchorId':_0x1d18ec(_0x35284d[_0x24de35(0xcd)],_0x24de35(0x8e))}):_0x33ef93[_0x24de35(0xb5)]({'node':_0x35284d,'type':_0x24de35(0x9d),'id':_0x220883});return!0x0;},this[_0x5f16b7(0xae)]),_0x33ef93=_0x33ef93[_0x5f16b7(0x84)](({node:_0x4e8c7d})=>[..._0x531ca8(_0x4e8c7d),_0x4e8c7d][_0x5f16b7(0xd0)](_0x26d69f=>!_0x1d18ec(_0x26d69f,_0x5f16b7(0xa8)))),0x0==_0x33ef93[_0x5f16b7(0x8b)])return;const _0x39e473=[[_0x33ef93[0x0]]];for(let _0x213f68=0x1;_0x213f68<_0x33ef93[_0x5f16b7(0x8b)];_0x213f68++){const _0x238f27=_0x39e473[_0x39e473[_0x5f16b7(0x8b)]-0x1],_0x52ea13=_0x238f27[_0x238f27[_0x5f16b7(0x8b)]-0x1];_0x33ef93[_0x213f68][_0x5f16b7(0xb4)][_0x5f16b7(0xcd)]==_0x52ea13[_0x5f16b7(0xb4)]&&_0x5f16b7(0x8c)!=_0x33ef93[_0x213f68][_0x5f16b7(0x95)]&&_0x5f16b7(0x8c)!=_0x52ea13[_0x5f16b7(0x95)]?_0x238f27[_0x5f16b7(0xb5)](_0x33ef93[_0x213f68]):_0x39e473[_0x5f16b7(0xb5)]([_0x33ef93[_0x213f68]]);}for(const _0x1c9223 of _0x39e473){const _0x4599a6=_0x1c9223[0x0],_0x8e3ad1=_0x1c9223[_0x1c9223[_0x5f16b7(0x8b)]-0x1],_0xe69de0=_0x1fcd9b(_0x4599a6[_0x5f16b7(0xb4)][_0x5f16b7(0xcd)]);_0xe69de0&&_0x1c9223[_0x5f16b7(0x9f)](_0xe69de0);const _0x10bc48=_0x1fcd9b(_0x8e3ad1[_0x5f16b7(0xb4)][_0x5f16b7(0xc6)]);_0x10bc48&&_0x1c9223[_0x5f16b7(0xb5)](_0x10bc48);}function _0x4b3288(_0x35ed27){const _0x4c1ca9=_0x5f16b7;return _0x2d2cac[_0x4c1ca9(0x98)][_0x4c1ca9(0xab)](_0x35ed27)||_0x2d2cac[_0x4c1ca9(0x9a)][_0x4c1ca9(0xab)](_0x35ed27)||_0x2d2cac[_0x4c1ca9(0x8f)][_0x4c1ca9(0xab)](_0x35ed27);}function _0x1fcd9b(_0x57c33f){const _0x2f6d8b=_0x5f16b7;if(_0x57c33f&&_0x1d18ec(_0x57c33f,_0x2f6d8b(0x8e))&&!_0x1d18ec(_0x57c33f,_0x2f6d8b(0xa8))){const _0x42fa7b=_0x1d18ec(_0x57c33f,_0x2f6d8b(0x8e));if(!_0x4b3288(_0x42fa7b))return{'node':_0x57c33f,'type':_0x2f6d8b(0xbd),'id':_0x42fa7b};}return null;}this[_0x5f16b7(0x92)]=_0x39e473[_0x5f16b7(0xa2)]((_0x11dcfb,_0xe4ebe9)=>({'changes':_0x11dcfb,'state':_0x5f16b7(0x96),'index':_0xe4ebe9}));}}export function isValidReplyType(_0x16bb1c){const _0xf7877=_0xc9f92c;return Object[_0xf7877(0x8d)](AI_REPLY_TYPES)[_0xf7877(0xab)](_0x16bb1c);}export function isIgnoredReplyType(_0x133d36){const _0x39cc44=_0xc9f92c;return AI_REPLY_TYPES_IGNORED[_0x39cc44(0xab)](_0x133d36);}export function isReplyTitleType(_0x12be95){return _0x12be95===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x57ffc2){const _0x586199=_0xc9f92c;return _0x586199(0x85)===_0x57ffc2;}
23
+ const _0x293809=_0x4667;(function(_0x4dba5c,_0x273149){const _0x45b1e6=_0x4667,_0x5759f2=_0x4dba5c();while(!![]){try{const _0x4275c3=-parseInt(_0x45b1e6(0x9b))/0x1*(-parseInt(_0x45b1e6(0x97))/0x2)+-parseInt(_0x45b1e6(0x95))/0x3*(-parseInt(_0x45b1e6(0xba))/0x4)+-parseInt(_0x45b1e6(0xaf))/0x5*(-parseInt(_0x45b1e6(0xc1))/0x6)+-parseInt(_0x45b1e6(0xb6))/0x7*(parseInt(_0x45b1e6(0x8c))/0x8)+parseInt(_0x45b1e6(0x86))/0x9*(parseInt(_0x45b1e6(0xa3))/0xa)+parseInt(_0x45b1e6(0xa8))/0xb+-parseInt(_0x45b1e6(0xa4))/0xc*(parseInt(_0x45b1e6(0x8d))/0xd);if(_0x4275c3===_0x273149)break;else _0x5759f2['push'](_0x5759f2['shift']());}catch(_0x2614e2){_0x5759f2['push'](_0x5759f2['shift']());}}}(_0x1ff0,0xedb27));import{ObservableMixin as _0x1b50a2,uid as _0x79310c}from'ckeditor5/src/utils.js';import{Element as _0x343edc,findAll as _0x39f783,getAttribute as _0x356648,getParents as _0x5f3d60,Document as _0x115def,parse as _0x1683b6,Text as _0x414071}from'../utils/htmlparser.js';import{AIResponseParser as _0x319c6e}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x199385}from'../pipeline/airesponseapplier.js';import{getTranslation as _0x17272e}from'../utils/common-translations.js';export const AI_REPLY_TYPES=[_0x293809(0xbe),_0x293809(0x87),_0x293809(0xb3),_0x293809(0xad)];export const AI_REPLY_TYPES_IGNORED=[_0x293809(0xcd)];export const AI_REPLY_TITLE_TYPE=_0x293809(0xcd);function _0x4667(_0x1d0153,_0x121efc){const _0x1ff03e=_0x1ff0();return _0x4667=function(_0x4667e9,_0x3ff6cf){_0x4667e9=_0x4667e9-0x82;let _0x3a012e=_0x1ff03e[_0x4667e9];return _0x3a012e;},_0x4667(_0x1d0153,_0x121efc);}export class AIReply extends _0x1b50a2(){['id'];[_0x293809(0x8e)];[_0x293809(0x88)];[_0x293809(0xab)]=[];[_0x293809(0xaa)]=new _0x115def([]);[_0x293809(0x84)]=new _0x115def([]);[_0x293809(0xc6)]=[];[_0x293809(0x96)]=!0x1;[_0x293809(0x94)];[_0x293809(0x9f)];[_0x293809(0xa7)];[_0x293809(0xbd)];constructor({type:_0x59dad2,content:_0x2bb018='',isDone:_0x3f8ba1=!0x1,interactionId:_0xd64245,areActionsDisabled:_0x5e9ae7,documentContextContent:_0x3c44c8,editor:_0x36019a}){const _0x2c31c2=_0x293809;super(),this['id']=_0x79310c(),this[_0x2c31c2(0x8e)]=_0xd64245,this[_0x2c31c2(0x88)]=_0x59dad2,this[_0x2c31c2(0x96)]=!!_0x5e9ae7,this[_0x2c31c2(0xbd)]=_0x36019a,this[_0x2c31c2(0x9f)]=new _0x319c6e(),this[_0x2c31c2(0xa7)]=new _0x199385(),this[_0x2c31c2(0x94)]=_0x1683b6(_0x3c44c8||''),this[_0x2c31c2(0xb4)](_0x2c31c2(0xa9),_0x3f8ba1),this['on'](_0x2c31c2(0x90),()=>{const _0x466991=_0x2c31c2;this[_0x466991(0x9a)]();}),this[_0x2c31c2(0xb4)](_0x2c31c2(0xa6),_0x2bb018);}[_0x293809(0xbf)](_0x257d61){const _0x5f0b86=_0x293809;this[_0x5f0b86(0xb4)](_0x5f0b86(0xa6),this[_0x5f0b86(0xa6)]+_0x257d61);}[_0x293809(0xb7)](){const _0x2d4a25=_0x293809;this[_0x2d4a25(0xa9)]||(this[_0x2d4a25(0xb4)](_0x2d4a25(0xa9),!0x0),this[_0x2d4a25(0x9a)]());}[_0x293809(0xcc)](){const _0x162086=_0x293809;this[_0x162086(0x93)]();}[_0x293809(0xac)](_0x476758,_0x18f1cb){const _0x17c149=_0x293809;this[_0x17c149(0xc6)][_0x476758][_0x17c149(0xc7)]=_0x18f1cb,this[_0x17c149(0xc3)](_0x17c149(0xb5),{'reply':this,'index':_0x476758,'state':_0x18f1cb});}[_0x293809(0x9a)](){const _0x8396b8=_0x293809;if(_0x8396b8(0xbe)===this[_0x8396b8(0x88)]){this[_0x8396b8(0xaa)]=this[_0x8396b8(0x9f)][_0x8396b8(0x8f)](this[_0x8396b8(0xa6)]);const _0x3e7432=this[_0x8396b8(0xc6)];this[_0x8396b8(0xbb)]();const _0x3cb575=this[_0x8396b8(0xca)](_0x3e7432,this[_0x8396b8(0xc6)]);(_0x3cb575[_0x8396b8(0x91)]||this[_0x8396b8(0xa9)])&&this[_0x8396b8(0xc3)](_0x8396b8(0xc5),this,_0x3cb575);}else this[_0x8396b8(0xaa)]=this[_0x8396b8(0x9f)][_0x8396b8(0xc8)](this[_0x8396b8(0xa6)]),this[_0x8396b8(0xc3)](_0x8396b8(0xc5),this);}[_0x293809(0xca)](_0x5c95d3,_0x5eff1f){const _0x94f089=_0x293809,_0x5eae6f=[];for(const _0x50cc28 of _0x5eff1f){const _0x420ef8=_0x5c95d3[_0x50cc28[_0x94f089(0xcf)]];_0x420ef8?_0x420ef8[_0x94f089(0x92)][_0x94f089(0x91)]!==_0x50cc28[_0x94f089(0x92)][_0x94f089(0x91)]?_0x5eae6f[_0x94f089(0xa5)](_0x50cc28):_0x420ef8[_0x94f089(0x92)][_0x94f089(0x9d)]((_0x4c69eb,_0x29a7d6)=>{const _0x3f11e2=_0x94f089,_0x1241fa=_0x50cc28[_0x3f11e2(0x92)][_0x29a7d6];_0x4c69eb['id']!==_0x1241fa['id']&&_0x5eae6f[_0x3f11e2(0xa5)](_0x50cc28);}):_0x5eae6f[_0x94f089(0xa5)](_0x50cc28);}return _0x5eae6f;}[_0x293809(0xbb)](){const _0x2f8e24=_0x293809,_0x3c3a5f=new _0x343edc('p',{},[new _0x343edc(_0x2f8e24(0x99),{'style':_0x2f8e24(0xc9)},[new _0x414071(_0x17272e(this[_0x2f8e24(0xbd)][_0x2f8e24(0x85)],_0x2f8e24(0xb2)))])]),_0x96f71c=this[_0x2f8e24(0xa7)][_0x2f8e24(0xb0)](this[_0x2f8e24(0xaa)],this[_0x2f8e24(0x94)][_0x2f8e24(0x89)](!0x0),{'markUnstableElements':!this[_0x2f8e24(0xa9)],'replaceRemovedWith':_0x3c3a5f,'cutAfterLastChange':!this[_0x2f8e24(0xa9)]});if(!_0x96f71c[_0x2f8e24(0x8b)][_0x2f8e24(0x91)]&&!this[_0x2f8e24(0xa9)])return;this[_0x2f8e24(0x84)]=_0x96f71c[_0x2f8e24(0xaa)];let _0x369017=[];if(_0x39f783(_0xe51af1=>{const _0x5390fe=_0x2f8e24,_0x4dbf26=_0x356648(_0xe51af1,_0x5390fe(0x82));if(!_0x4dbf26||!_0x259baf(_0x4dbf26))return!0x1;const _0x5ad28e=[_0xe51af1,..._0x5f3d60(_0xe51af1)]['at'](-0x2);if(_0xe51af1!=_0x5ad28e){const _0x2d3c9c=_0x356648(_0x5ad28e,_0x5390fe(0x82));_0x259baf(_0x2d3c9c)||(_0x369017[_0x5390fe(0xa5)]({'node':_0x5ad28e,'id':_0x2d3c9c,'type':_0x5390fe(0xae)}),_0x96f71c[_0x5390fe(0x8b)][_0x5390fe(0xa5)](_0x2d3c9c));}else _0x96f71c[_0x5390fe(0x8b)][_0x5390fe(0x98)](_0x4dbf26)?_0x369017[_0x5390fe(0xa5)]({'node':_0xe51af1,'type':_0x5390fe(0xae),'id':_0x4dbf26}):_0x96f71c[_0x5390fe(0x9c)][_0x5390fe(0x98)](_0x4dbf26)?_0x369017[_0x5390fe(0xa5)]({'node':_0xe51af1,'type':_0x5390fe(0xc0),'id':_0x4dbf26,'anchorId':_0x356648(_0xe51af1[_0x5390fe(0xa2)],_0x5390fe(0x82))}):_0x369017[_0x5390fe(0xa5)]({'node':_0xe51af1,'type':_0x5390fe(0x9e),'id':_0x4dbf26});return!0x0;},this[_0x2f8e24(0x84)]),_0x369017=_0x369017[_0x2f8e24(0xa0)](({node:_0x259724})=>[..._0x5f3d60(_0x259724),_0x259724][_0x2f8e24(0xbc)](_0x3da2f8=>!_0x356648(_0x3da2f8,_0x2f8e24(0xce)))),0x0==_0x369017[_0x2f8e24(0x91)])return;const _0x4d4520=[[_0x369017[0x0]]];for(let _0x24884e=0x1;_0x24884e<_0x369017[_0x2f8e24(0x91)];_0x24884e++){const _0x4b76d4=_0x4d4520[_0x4d4520[_0x2f8e24(0x91)]-0x1],_0x4f72e8=_0x4b76d4[_0x4b76d4[_0x2f8e24(0x91)]-0x1];_0x369017[_0x24884e][_0x2f8e24(0xb9)][_0x2f8e24(0xa2)]==_0x4f72e8[_0x2f8e24(0xb9)]&&_0x2f8e24(0xae)!=_0x369017[_0x24884e][_0x2f8e24(0x88)]&&_0x2f8e24(0xae)!=_0x4f72e8[_0x2f8e24(0x88)]?_0x4b76d4[_0x2f8e24(0xa5)](_0x369017[_0x24884e]):_0x4d4520[_0x2f8e24(0xa5)]([_0x369017[_0x24884e]]);}for(const _0x3895a0 of _0x4d4520){const _0x1be215=_0x3895a0[0x0],_0x23581d=_0x3895a0[_0x3895a0[_0x2f8e24(0x91)]-0x1],_0x2b90e3=_0x2cdbba(_0x1be215[_0x2f8e24(0xb9)][_0x2f8e24(0xa2)]);_0x2b90e3&&_0x3895a0[_0x2f8e24(0xb8)](_0x2b90e3);const _0x46cc7d=_0x2cdbba(_0x23581d[_0x2f8e24(0xb9)][_0x2f8e24(0xc4)]);_0x46cc7d&&_0x3895a0[_0x2f8e24(0xa5)](_0x46cc7d);}function _0x259baf(_0x3d552b){const _0x202092=_0x2f8e24;return _0x96f71c[_0x202092(0x8b)][_0x202092(0x98)](_0x3d552b)||_0x96f71c[_0x202092(0x9c)][_0x202092(0x98)](_0x3d552b)||_0x96f71c[_0x202092(0x8a)][_0x202092(0x98)](_0x3d552b);}function _0x2cdbba(_0x22baba){const _0x4e298b=_0x2f8e24;if(_0x22baba&&_0x356648(_0x22baba,_0x4e298b(0x82))&&!_0x356648(_0x22baba,_0x4e298b(0xce))){const _0x2979d2=_0x356648(_0x22baba,_0x4e298b(0x82));if(!_0x259baf(_0x2979d2))return{'node':_0x22baba,'type':_0x4e298b(0xcb),'id':_0x2979d2};}return null;}this[_0x2f8e24(0xc6)]=_0x4d4520[_0x2f8e24(0xc2)]((_0x37b4e2,_0x5a0012)=>({'changes':_0x37b4e2,'state':_0x2f8e24(0xb1),'index':_0x5a0012}));}}export function isValidReplyType(_0x1e4a59){const _0x766f1=_0x293809;return Object[_0x766f1(0xa1)](AI_REPLY_TYPES)[_0x766f1(0x98)](_0x1e4a59);}export function isIgnoredReplyType(_0x1f43e0){const _0x25b1ed=_0x293809;return AI_REPLY_TYPES_IGNORED[_0x25b1ed(0x98)](_0x1f43e0);}export function isReplyTitleType(_0x3894a1){return _0x3894a1===AI_REPLY_TITLE_TYPE;}function _0x1ff0(){const _0x459f0b=['editor','modification-delta','appendContent','new','6894348zcTeFe','map','fire','nextSibling','replyContentUpdated','changeGroups','state','convertMarkdownToHTML','color:\x20#808080;\x20font-style:\x20italic','_getDifferentChangeGroups','context','destroy','conversation-title','data-unstable','index','data-id','source','parsedMergedContent','locale','8748Biphxn','text-delta','type','cloneNode','removedNodeIds','modifiedNodeIds','13438728tehbIv','26eMGgEw','interactionId','parseAndNormalizeHTML','change:content','length','changes','stopListening','documentContextContent','15AmdDKl','areActionsDisabled','35516DMhBvD','includes','span','onContentChange','9qTDnkp','newNodeIds','forEach','removed','aiResponseParser','filter','values','previousSibling','7890ADMfoi','7649328HZfWbP','push','content','aiResponseApplier','14237333ZafDXj','isDone','parsedContent','sources','setChangeGroupState','reasoning','modified','5zRreSC','merge','pending','AI_SUGGESTION_CONTENT_PART_REMOVED','web-search','set','replyChangeGroupStateUpdated','7MMiWlT','done','unshift','node','446596tbXnwg','updateChangeGroups','every'];_0x1ff0=function(){return _0x459f0b;};return _0x1ff0();}export function isSourceType(_0xdf7581){const _0x2014b7=_0x293809;return _0x2014b7(0x83)===_0xdf7581;}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x80aa(_0x5da6a0,_0x382321){const _0x5b18dd=_0x5b18();return _0x80aa=function(_0x80aa4b,_0x39d8a5){_0x80aa4b=_0x80aa4b-0xf7;let _0x56c32b=_0x5b18dd[_0x80aa4b];return _0x56c32b;},_0x80aa(_0x5da6a0,_0x382321);}function _0x5b18(){const _0x47ce90=['true','_findNextElementWithDataId','markUnstableElements','3041420vmBIvj','_markWrappedElements','_generateUid','cloneNode','_markUnstableElements','9789210KFoILu','_isExistingNode','_findPrevElementWithDataId','new-element','3azkjWa','push','_findReferenceNode','_replaceNode','lastChild','data-unstable','4474736RyPOEF','40kMCfVw','7567609FBSLKy','includes','from','data-wrapped-id','beforebegin','lastTouchedId','replaceRemovedWith','_isExistingContentComment','previousSibling','nodeType','_getNodeDataId','data-id','indexOf','afterbegin','reverse','newIds','filter','_isNewNode','match','afterend','map','length','6ijdUeh','removedIds','4546290tXqOtT','slice','modifiedIds','_isDelNode','merge','parentNode','_findFallbackReferenceNode','_touchedNodesState','_markLastTagElementUnstable','nextSibling','_hasWrappedParent','data-removed','trim','1081170eXKRVb','35654paKEiK','childNodes','has','cutAfterLastChange','_existingDataIds','splice','_getUid','_removeSpecialComments','66BLnTzO','markUnstableElementsDepth','_storeDeletedElementIds','_insertNodes','invalidIds','forEach'];_0x5b18=function(){return _0x47ce90;};return _0x5b18();}const _0x22ef50=_0x80aa;(function(_0x2f82b7,_0x2270b9){const _0x312cfd=_0x80aa,_0x1365ab=_0x2f82b7();while(!![]){try{const _0x57d3d7=parseInt(_0x312cfd(0xf7))/0x1*(parseInt(_0x312cfd(0x118))/0x2)+-parseInt(_0x312cfd(0x111))/0x3*(-parseInt(_0x312cfd(0x108))/0x4)+parseInt(_0x312cfd(0x13e))/0x5+-parseInt(_0x312cfd(0x12f))/0x6*(-parseInt(_0x312cfd(0x119))/0x7)+-parseInt(_0x312cfd(0x117))/0x8+parseInt(_0x312cfd(0x10d))/0x9+parseInt(_0x312cfd(0x131))/0xa*(-parseInt(_0x312cfd(0xff))/0xb);if(_0x57d3d7===_0x2270b9)break;else _0x1365ab['push'](_0x1365ab['shift']());}catch(_0x20b29e){_0x1365ab['push'](_0x1365ab['shift']());}}}(_0x5b18,0x8b7c2));import{ObservableMixin as _0x58ca84,uid as _0x2c4819}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x56350a,findByAttribute as _0x2e4a3c,getAttribute as _0x53cf1d,isComment as _0x35faa0,isTag as _0x321d52,insertElement as _0x59cc42,moveElement as _0x2c4a25,removeElement as _0x3f3842,replaceElement as _0x2f6abb,serialize as _0x28ff7f,setAttribute as _0x8e3e00,clone as _0x3b20d7,findAllComments as _0x1d0470,getParents as _0x5c33c3,getNodeNestingLevel as _0x55969e,areNodesSame as _0x238a53,removeElementsAfter as _0x3909b8}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x58ca84(){[_0x22ef50(0x10a)];[_0x22ef50(0x138)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x22ef50(0xfb)]=new Set();constructor(_0x14d3dc){const _0x50bf9a=_0x22ef50;super(),this[_0x50bf9a(0x10a)]=_0x14d3dc||_0x2c4819;}[_0x22ef50(0x135)](_0xba1611,_0x295302,_0x31f568){const _0x1c3a28=_0x22ef50,_0x3cc72a=_0x3b20d7(_0xba1611);if(0x0===_0x295302[_0x1c3a28(0xf8)][_0x1c3a28(0x12e)]){const _0xb1d28=[];return _0x56350a(_0x1c3a28(0x124),_0x1c3a28(0x110),_0x3cc72a)[_0x1c3a28(0x104)](_0xe56d02=>{const _0x1947d9=_0x1c3a28,_0x125d32=this[_0x1947d9(0x10a)]();_0x8e3e00(_0xe56d02,_0x1947d9(0x124),_0x125d32),_0xb1d28[_0x1947d9(0x112)](_0x125d32);}),this[_0x1c3a28(0xfe)](_0x3cc72a),{'parsedContent':_0x3cc72a,'newNodeIds':_0xb1d28,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x31f568&&_0x31f568[_0x1c3a28(0x107)]&&this[_0x1c3a28(0x139)](_0x3cc72a),this[_0x1c3a28(0x138)][_0x1c3a28(0x128)]=[],this[_0x1c3a28(0x138)][_0x1c3a28(0x133)]=[],this[_0x1c3a28(0x138)][_0x1c3a28(0x130)]=[],this[_0x1c3a28(0x138)][_0x1c3a28(0x103)]=[],this[_0x1c3a28(0x138)][_0x1c3a28(0x11e)]=null,this[_0x1c3a28(0xfb)]=new Set(_0x56350a(_0x1c3a28(0x124),null,_0x295302)[_0x1c3a28(0x12d)](_0x551a38=>_0x53cf1d(_0x551a38,_0x1c3a28(0x124)))[_0x1c3a28(0x129)](_0x1d77ed=>!!_0x1d77ed));let _0x4fdb61=-0x1,_0x4efadd=!0x1;const _0x367e76=_0x3cc72a[_0x1c3a28(0xf8)],_0x38d344=Array[_0x1c3a28(0x11b)](_0x367e76)[_0x1c3a28(0x129)](_0x4784f2=>!(0x3===_0x4784f2[_0x1c3a28(0x122)]&&''===_0x28ff7f(_0x4784f2)[_0x1c3a28(0x13d)]())),_0x2aa57e=_0x38d344[_0x1c3a28(0x12e)];for(let _0x599b8b=0x0;_0x599b8b<_0x2aa57e;_0x599b8b++){const _0x46f68b=_0x38d344[_0x599b8b],_0x514666=_0x38d344[_0x599b8b+0x1];if(this[_0x1c3a28(0x12a)](_0x46f68b)){if(-0x1===_0x4fdb61&&(_0x4fdb61=_0x599b8b),this[_0x1c3a28(0x109)](_0x46f68b),!this[_0x1c3a28(0x12a)](_0x514666)){const [_0x1dec9f,_0x1b0651]=this[_0x1c3a28(0x113)](_0x46f68b,_0x4efadd,_0x295302);if(_0x1dec9f){const _0x489647=Array[_0x1c3a28(0x11b)](_0x38d344)[_0x1c3a28(0x132)](_0x4fdb61,_0x599b8b+0x1);this[_0x1c3a28(0x102)](_0x1dec9f,_0x489647,_0x1b0651),_0x4fdb61=-0x1;}}}else{if(this[_0x1c3a28(0x120)](_0x46f68b))_0x4efadd=!0x0;else{if(this[_0x1c3a28(0x10e)](_0x46f68b)){const _0x30b023=_0x53cf1d(_0x46f68b,_0x1c3a28(0x124));if(_0x30b023&&this[_0x1c3a28(0xfb)][_0x1c3a28(0xf9)](_0x30b023)){const _0x1256ab=_0x2e4a3c(_0x1c3a28(0x124),_0x30b023,_0x295302);this[_0x1c3a28(0x114)](_0x1256ab,_0x46f68b);}if(this[_0x1c3a28(0x138)][_0x1c3a28(0x130)][_0x1c3a28(0x11a)](_0x30b023)){const _0x4d9536=this[_0x1c3a28(0x138)][_0x1c3a28(0x130)][_0x1c3a28(0x125)](_0x30b023);this[_0x1c3a28(0x138)][_0x1c3a28(0x130)][_0x1c3a28(0xfc)](_0x4d9536,0x1);}}else{if(this[_0x1c3a28(0x134)](_0x46f68b)){const _0x27d4e8=_0x53cf1d(_0x46f68b,_0x1c3a28(0x124));this[_0x1c3a28(0x138)][_0x1c3a28(0x133)][_0x1c3a28(0x11a)](_0x27d4e8)||this[_0x1c3a28(0x101)](_0x46f68b);}}}}}for(const _0x3ad643 of this[_0x1c3a28(0x138)][_0x1c3a28(0x130)]){const _0x231139=_0x2e4a3c(_0x1c3a28(0x124),_0x3ad643,_0x295302);if(_0x231139){if(_0x31f568&&_0x31f568[_0x1c3a28(0x11f)]){this[_0x1c3a28(0x138)][_0x1c3a28(0x11e)]=_0x3ad643;const _0x47369a=_0x31f568[_0x1c3a28(0x11f)][_0x1c3a28(0x10b)](!0x0);_0x8e3e00(_0x47369a,_0x1c3a28(0x124),_0x3ad643),_0x8e3e00(_0x47369a,_0x1c3a28(0x13c),_0x1c3a28(0x105)),_0x2f6abb(_0x231139,_0x47369a);}else _0x3f3842(_0x231139);}}if(_0x56350a(_0x1c3a28(0x11c),null,_0x295302)[_0x1c3a28(0x104)](_0x1b31fa=>{const _0x44d4a6=_0x1c3a28,_0x5359d4=_0x53cf1d(_0x1b31fa,_0x44d4a6(0x11c)),_0x1f84c8=_0x2e4a3c(_0x44d4a6(0x124),_0x5359d4,_0x295302);_0x1f84c8&&_0x2c4a25(_0x1f84c8,_0x1b31fa);}),_0x56350a(_0x1c3a28(0x124),_0x1c3a28(0x110),_0x295302)[_0x1c3a28(0x104)](_0x2a3458=>{const _0x2c1827=_0x1c3a28,_0x55712a=this[_0x2c1827(0xfd)](_0x2a3458);_0x8e3e00(_0x2a3458,_0x2c1827(0x124),_0x55712a),this[_0x2c1827(0x138)][_0x2c1827(0x128)][_0x2c1827(0x112)](_0x55712a);}),this[_0x1c3a28(0xfe)](_0x295302),_0x31f568&&_0x31f568[_0x1c3a28(0x107)]&&this[_0x1c3a28(0x10c)](_0x295302,_0x31f568[_0x1c3a28(0x100)]||0x0),_0x31f568&&_0x31f568[_0x1c3a28(0xfa)]&&this[_0x1c3a28(0x138)][_0x1c3a28(0x11e)]){let _0x2cbad6=_0x2e4a3c(_0x1c3a28(0x124),this[_0x1c3a28(0x138)][_0x1c3a28(0x11e)],_0x295302);for(;_0x2cbad6;)_0x3909b8(_0x2cbad6),_0x2cbad6=_0x2cbad6[_0x1c3a28(0x136)];}return{'parsedContent':_0x295302,'newNodeIds':this[_0x1c3a28(0x138)][_0x1c3a28(0x128)],'modifiedNodeIds':this[_0x1c3a28(0x138)][_0x1c3a28(0x133)],'removedNodeIds':this[_0x1c3a28(0x138)][_0x1c3a28(0x130)]};}[_0x22ef50(0x102)](_0x53013f,_0x32295f,_0x4033be){const _0x164817=_0x22ef50;for(const _0x5b30c1 of _0x32295f){const _0x4768c6=this[_0x164817(0xfd)](_0x5b30c1);_0x8e3e00(_0x5b30c1,_0x164817(0x124),_0x4768c6),this[_0x164817(0x138)][_0x164817(0x128)][_0x164817(0x112)](_0x4768c6),this[_0x164817(0x138)][_0x164817(0x11e)]=_0x4768c6;}const _0x121844=_0x164817(0x126)===_0x4033be||_0x164817(0x12c)===_0x4033be?_0x32295f[_0x164817(0x127)]():_0x32295f;for(const _0x4e292c of _0x121844)_0x59cc42(_0x53013f,_0x4e292c,_0x4033be);}[_0x22ef50(0x114)](_0x16d810,_0x130e42){const _0x48d229=_0x22ef50;if(!_0x16d810)return;if(_0x238a53(_0x16d810,_0x130e42))return;const _0x509a4a=this[_0x48d229(0xfd)](_0x16d810);_0x8e3e00(_0x130e42,_0x48d229(0x124),_0x509a4a),this[_0x48d229(0x138)][_0x48d229(0x133)][_0x48d229(0x112)](_0x509a4a),this[_0x48d229(0x138)][_0x48d229(0x11e)]=_0x509a4a,_0x2f6abb(_0x16d810,_0x130e42[_0x48d229(0x10b)](!0x0));}[_0x22ef50(0x113)](_0x5772ad,_0x393fa1,_0x5b3316){const _0x58e25c=_0x22ef50,_0x53412b=this[_0x58e25c(0x10f)](_0x5772ad,!0x1);if(_0x53412b){const _0x397fab=this[_0x58e25c(0x123)](_0x53412b),_0x427782=_0x2e4a3c(_0x58e25c(0x124),_0x397fab,_0x5b3316);if(_0x427782)return[_0x427782,_0x58e25c(0x12c)];this[_0x58e25c(0x138)][_0x58e25c(0x103)][_0x58e25c(0x112)](_0x397fab);}const _0x465d54=this[_0x58e25c(0x106)](_0x5772ad,!0x1);if(_0x465d54){const _0x2dd476=this[_0x58e25c(0x123)](_0x465d54),_0x2ccb1e=_0x2e4a3c(_0x58e25c(0x124),_0x2dd476,_0x5b3316);if(_0x2ccb1e)return[_0x2ccb1e,_0x58e25c(0x11d)];this[_0x58e25c(0x138)][_0x58e25c(0x103)][_0x58e25c(0x112)](_0x2dd476);}return _0x393fa1?_0x5772ad[_0x58e25c(0x13a)]?this[_0x58e25c(0x137)](_0x5772ad,_0x5b3316):[_0x5b3316[_0x58e25c(0xf8)][_0x5b3316[_0x58e25c(0xf8)][_0x58e25c(0x12e)]-0x1],_0x58e25c(0x12c)]:[_0x5b3316[_0x58e25c(0xf8)][0x0],_0x58e25c(0x11d)];}[_0x22ef50(0x137)](_0x56fd1a,_0x258612){const _0x36f2f9=_0x22ef50,_0x33b785=[],_0x332b0c=this[_0x36f2f9(0x10f)](_0x56fd1a,!0x0);if(_0x332b0c){const _0x21bf17=this[_0x36f2f9(0x123)](_0x332b0c),_0x3dbdd8=_0x2e4a3c(_0x36f2f9(0x124),_0x21bf17,_0x258612);_0x3dbdd8&&_0x33b785[_0x36f2f9(0x112)]([_0x3dbdd8,_0x36f2f9(0x12c)]);}const _0xab7c44=this[_0x36f2f9(0x106)](_0x56fd1a,!0x0);if(_0xab7c44){const _0x2b1227=this[_0x36f2f9(0x123)](_0xab7c44),_0x51982c=_0x2e4a3c(_0x36f2f9(0x124),_0x2b1227,_0x258612);_0x51982c&&_0x33b785[_0x36f2f9(0x112)]([_0x51982c,_0x36f2f9(0x11d)]);}if(_0x33b785[_0x36f2f9(0x12e)]>0x1)return _0x55969e(_0x33b785[0x0][0x0])<=_0x55969e(_0x33b785[0x1][0x0])?_0x33b785[0x0]:_0x33b785[0x1];return 0x1===_0x33b785[_0x36f2f9(0x12e)]?_0x33b785[0x0]:[_0x258612[_0x36f2f9(0x115)],_0x36f2f9(0x12c)];}[_0x22ef50(0x106)](_0x983315,_0xf8f7df){const _0x51a558=_0x22ef50;let _0x425a55=_0x983315[_0x51a558(0x13a)],_0x5f2fa8=null,_0x272755=!0x1;for(;_0x425a55;){if(_0x35faa0(_0x425a55)){if(this[_0x51a558(0x134)](_0x425a55)&&(_0x5f2fa8=_0x425a55),this[_0x51a558(0x120)](_0x425a55)&&_0xf8f7df&&!_0x272755){_0x272755=!0x0,_0x425a55=_0x425a55[_0x51a558(0x13a)];continue;}break;}const _0x2b271a=_0x53cf1d(_0x425a55,_0x51a558(0x124));if(_0x2b271a&&_0x51a558(0x110)!==_0x2b271a&&this[_0x51a558(0xfb)][_0x51a558(0xf9)](_0x2b271a)){_0x5f2fa8=_0x425a55;break;}_0x425a55=_0x425a55[_0x51a558(0x13a)];}return _0x5f2fa8;}[_0x22ef50(0x10f)](_0x31fc99,_0x1ed291){const _0x411c5d=_0x22ef50;let _0x1b38ff=_0x31fc99[_0x411c5d(0x121)],_0x2f9a0a=null,_0x3cdec7=!0x1;for(;_0x1b38ff;){if(_0x35faa0(_0x1b38ff)){if(this[_0x411c5d(0x134)](_0x1b38ff)&&(_0x2f9a0a=_0x1b38ff),this[_0x411c5d(0x120)](_0x1b38ff)&&_0x1ed291&&!_0x3cdec7){_0x3cdec7=!0x0,_0x1b38ff=_0x1b38ff[_0x411c5d(0x121)];continue;}break;}const _0x1d4a3a=_0x53cf1d(_0x1b38ff,_0x411c5d(0x124));if(_0x1d4a3a&&_0x411c5d(0x110)!==_0x1d4a3a&&this[_0x411c5d(0xfb)][_0x411c5d(0xf9)](_0x1d4a3a)){_0x2f9a0a=_0x1b38ff;break;}_0x1b38ff=_0x1b38ff[_0x411c5d(0x121)];}return _0x2f9a0a;}[_0x22ef50(0x109)](_0x5a7240){const _0x353705=_0x22ef50;_0x321d52(_0x5a7240)&&_0x56350a(_0x353705(0x124),null,_0x5a7240)[_0x353705(0x104)](_0x2271a8=>{const _0x14d88b=_0x353705;if(this[_0x14d88b(0x10e)](_0x2271a8)&&!this[_0x14d88b(0x13b)](_0x2271a8)){const _0x4cfef3=_0x53cf1d(_0x2271a8,_0x14d88b(0x124));_0x8e3e00(_0x2271a8,_0x14d88b(0x11c),_0x4cfef3),_0x8e3e00(_0x2271a8,_0x14d88b(0x124),null);}});}[_0x22ef50(0x123)](_0x3cbeb9){const _0x183237=_0x22ef50;if(!_0x3cbeb9)return null;if(_0x321d52(_0x3cbeb9))return _0x53cf1d(_0x3cbeb9,_0x183237(0x124));if(_0x35faa0(_0x3cbeb9)){const _0x101679=_0x28ff7f(_0x3cbeb9)[_0x183237(0x12b)](/removed[\s*-]data-id="([^"]+)"/);if(_0x101679&&_0x101679[0x1])return _0x101679[0x1];}return null;}[_0x22ef50(0x101)](_0xcd7828){const _0x4cf32c=_0x22ef50;if(_0x35faa0(_0xcd7828)){const _0x4480b5=_0x28ff7f(_0xcd7828)[_0x4cf32c(0x12b)](/removed[\s*-]data-id="([^"]+)"/);_0x4480b5&&_0x4480b5[0x1]&&this[_0x4cf32c(0x138)][_0x4cf32c(0x130)][_0x4cf32c(0x112)](_0x4480b5[0x1]);}}[_0x22ef50(0xfd)](_0x47cbc7){const _0x2e0626=_0x22ef50;return this[_0x2e0626(0x10e)](_0x47cbc7)?_0x53cf1d(_0x47cbc7,_0x2e0626(0x124)):this[_0x2e0626(0x10a)]();}[_0x22ef50(0xfe)](_0x306fd8){const _0x13623e=_0x22ef50;_0x1d0470(_0x306fd8)[_0x13623e(0x129)](_0xd31f87=>this[_0x13623e(0x134)](_0xd31f87)||this[_0x13623e(0x120)](_0xd31f87))[_0x13623e(0x104)](_0x85a16=>{_0x3f3842(_0x85a16);});}[_0x22ef50(0x139)](_0x263a40){const _0x2d27a8=_0x22ef50,_0x69abb9=_0x263a40[_0x2d27a8(0xf8)],_0x766022=_0x69abb9[_0x69abb9[_0x2d27a8(0x12e)]-0x1];_0x766022&&_0x321d52(_0x766022)&&_0x8e3e00(_0x766022,_0x2d27a8(0x116),_0x2d27a8(0x105));}[_0x22ef50(0x10c)](_0x1abce8,_0x926ba2){const _0x2ecca7=_0x22ef50,_0x61caec=_0x2e4a3c(_0x2ecca7(0x116),_0x2ecca7(0x105),_0x1abce8);if(!_0x61caec)return;const _0x3dae7c=_0x5c33c3(_0x61caec)[_0x2ecca7(0x132)](0x0,-0x1),_0x146020=_0x3dae7c[_0x2ecca7(0x12e)];let _0x24b8f3=_0x61caec;if(_0x146020>_0x926ba2){let _0x4b23a9=_0x146020,_0x4447eb=null;for(;_0x4b23a9>_0x926ba2&&_0x4b23a9>=0x0;)_0x4b23a9--,_0x4447eb=_0x3dae7c[_0x4b23a9];_0x4447eb&&(_0x24b8f3=_0x4447eb,_0x8e3e00(_0x61caec,_0x2ecca7(0x116),null),_0x8e3e00(_0x4447eb,_0x2ecca7(0x116),_0x2ecca7(0x105)));}else{if(_0x146020<_0x926ba2){let _0x3a7b40=_0x146020,_0x3685c7=_0x61caec;for(;_0x3a7b40<_0x926ba2;){const _0x1a803e=_0x3685c7[_0x2ecca7(0xf8)][_0x2ecca7(0x129)](_0x4aabfc=>_0x321d52(_0x4aabfc));if(0x0===_0x1a803e[_0x2ecca7(0x12e)])break;_0x3a7b40++,_0x3685c7=_0x1a803e[_0x1a803e[_0x2ecca7(0x12e)]-0x1];}_0x3685c7&&(_0x24b8f3=_0x3685c7,_0x8e3e00(_0x61caec,_0x2ecca7(0x116),null),_0x8e3e00(_0x3685c7,_0x2ecca7(0x116),_0x2ecca7(0x105)));}}let _0x14a676=_0x24b8f3;for(;_0x14a676;){for(;_0x14a676[_0x2ecca7(0x13a)];)_0x14a676=_0x14a676[_0x2ecca7(0x13a)],_0x321d52(_0x14a676)&&_0x8e3e00(_0x14a676,_0x2ecca7(0x116),_0x2ecca7(0x105));_0x14a676=_0x14a676[_0x2ecca7(0x136)];}}[_0x22ef50(0x12a)](_0x12f8c4){const _0x433443=_0x22ef50;return Boolean(_0x433443(0x110)===_0x53cf1d(_0x12f8c4,_0x433443(0x124)));}[_0x22ef50(0x10e)](_0xb7cdd7){const _0x2e8628=_0x22ef50;return Boolean((_0x53cf1d(_0xb7cdd7,_0x2e8628(0x124))||'')[_0x2e8628(0x12e)]>0x0&&_0x2e8628(0x110)!==_0x53cf1d(_0xb7cdd7,_0x2e8628(0x124)));}[_0x22ef50(0x134)](_0x198e90){const _0x563e36=_0x22ef50;return!!_0x198e90&&Boolean(_0x35faa0(_0x198e90)&&_0x28ff7f(_0x198e90)[_0x563e36(0x12b)](/removed[\s*-]data-id="[^"]+"/));}[_0x22ef50(0x13b)](_0x3a9685){const _0x3396a3=_0x22ef50;let _0x17263a=_0x3a9685[_0x3396a3(0x136)];for(;_0x17263a;){if(_0x53cf1d(_0x17263a,_0x3396a3(0x11c)))return!0x0;_0x17263a=_0x17263a[_0x3396a3(0x136)];}return!0x1;}[_0x22ef50(0x120)](_0x3d06cd){const _0x5eb9ee=_0x22ef50;return Boolean(_0x35faa0(_0x3d06cd)&&_0x28ff7f(_0x3d06cd)[_0x5eb9ee(0x12b)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ const _0x38db5d=_0x3233;function _0x3233(_0x17fbc3,_0xa16c40){const _0x4f8360=_0x4f83();return _0x3233=function(_0x323311,_0x4761bf){_0x323311=_0x323311-0x17f;let _0x5174b8=_0x4f8360[_0x323311];return _0x5174b8;},_0x3233(_0x17fbc3,_0xa16c40);}(function(_0x29baae,_0x56b6c5){const _0x4655ea=_0x3233,_0x558aee=_0x29baae();while(!![]){try{const _0x748255=-parseInt(_0x4655ea(0x192))/0x1*(parseInt(_0x4655ea(0x191))/0x2)+parseInt(_0x4655ea(0x18c))/0x3*(-parseInt(_0x4655ea(0x180))/0x4)+parseInt(_0x4655ea(0x190))/0x5+-parseInt(_0x4655ea(0x18b))/0x6*(-parseInt(_0x4655ea(0x1a0))/0x7)+-parseInt(_0x4655ea(0x1a8))/0x8+-parseInt(_0x4655ea(0x197))/0x9+parseInt(_0x4655ea(0x18d))/0xa*(parseInt(_0x4655ea(0x1a7))/0xb);if(_0x748255===_0x56b6c5)break;else _0x558aee['push'](_0x558aee['shift']());}catch(_0x2822c8){_0x558aee['push'](_0x558aee['shift']());}}}(_0x4f83,0xc18d3));function _0x4f83(){const _0x2295b0=['data-unstable','_getUid','trim','_removeSpecialComments','removedIds','replaceRemovedWith','data-wrapped-id','637908OFpNKd','1482NwxoBW','10yYNusi','_findReferenceNode','_markUnstableElements','4970590GSeoMY','4uleFAq','486187xErVtO','_markLastTagElementUnstable','previousSibling','_touchedNodesState','_hasWrappedParent','7498503AwkAgG','reverse','push','merge','markUnstableElementsDepth','afterend','slice','_existingDataIds','new-element','91eTlwpD','_isExistingContentComment','_findPrevElementWithDataId','_insertNodes','_getNodeDataId','_isNewNode','lastTouchedId','24307987pNMIwH','10740616MgCRup','_generateUid','_findNextElementWithDataId','beforebegin','lastChild','_isExistingNode','invalidIds','nodeType','_markWrappedElements','markUnstableElements','_replaceNode','splice','has','indexOf','cutAfterLastChange','_findFallbackReferenceNode','parentNode','forEach','_isDelNode','_storeDeletedElementIds','true','match','childNodes','nextSibling','from','filter','modifiedIds','map','afterbegin','data-id','cloneNode','data-removed','5224uwLzYm','length','newIds','includes'];_0x4f83=function(){return _0x2295b0;};return _0x4f83();}import{ObservableMixin as _0x55715f,uid as _0x7169af}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x5cf85d,findByAttribute as _0x326a2d,getAttribute as _0x1f0838,isComment as _0x5cf372,isTag as _0x268071,insertElement as _0x2b3fa7,moveElement as _0x823ecc,removeElement as _0x56f057,replaceElement as _0x41c414,serialize as _0x2e4f7f,setAttribute as _0x1f0f32,clone as _0x232bc9,findAllComments as _0x49c946,getParents as _0x231981,getNodeNestingLevel as _0x1977b0,areNodesSame as _0x1bfbe1,removeElementsAfter as _0x5dff24}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x55715f(){[_0x38db5d(0x1a9)];[_0x38db5d(0x195)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x38db5d(0x19e)]=new Set();constructor(_0x4886d3){const _0x2a35ed=_0x38db5d;super(),this[_0x2a35ed(0x1a9)]=_0x4886d3||_0x7169af;}[_0x38db5d(0x19a)](_0x223f13,_0x30dec0,_0x1cbe53){const _0x8db97c=_0x38db5d,_0x22df2e=_0x232bc9(_0x223f13);if(0x0===_0x30dec0[_0x8db97c(0x1be)][_0x8db97c(0x181)]){const _0x277b3f=[];return _0x5cf85d(_0x8db97c(0x1c5),_0x8db97c(0x19f),_0x22df2e)[_0x8db97c(0x1b9)](_0x3ee8e2=>{const _0x2ab58e=_0x8db97c,_0x4b5998=this[_0x2ab58e(0x1a9)]();_0x1f0f32(_0x3ee8e2,_0x2ab58e(0x1c5),_0x4b5998),_0x277b3f[_0x2ab58e(0x199)](_0x4b5998);}),this[_0x8db97c(0x187)](_0x22df2e),{'parsedContent':_0x22df2e,'newNodeIds':_0x277b3f,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x1cbe53&&_0x1cbe53[_0x8db97c(0x1b1)]&&this[_0x8db97c(0x193)](_0x22df2e),this[_0x8db97c(0x195)][_0x8db97c(0x182)]=[],this[_0x8db97c(0x195)][_0x8db97c(0x1c2)]=[],this[_0x8db97c(0x195)][_0x8db97c(0x188)]=[],this[_0x8db97c(0x195)][_0x8db97c(0x1ae)]=[],this[_0x8db97c(0x195)][_0x8db97c(0x1a6)]=null,this[_0x8db97c(0x19e)]=new Set(_0x5cf85d(_0x8db97c(0x1c5),null,_0x30dec0)[_0x8db97c(0x1c3)](_0x4adad5=>_0x1f0838(_0x4adad5,_0x8db97c(0x1c5)))[_0x8db97c(0x1c1)](_0x5f1ed4=>!!_0x5f1ed4));let _0x2a5989=-0x1,_0x556956=!0x1;const _0x503b4a=_0x22df2e[_0x8db97c(0x1be)],_0x358754=Array[_0x8db97c(0x1c0)](_0x503b4a)[_0x8db97c(0x1c1)](_0x506d55=>!(0x3===_0x506d55[_0x8db97c(0x1af)]&&''===_0x2e4f7f(_0x506d55)[_0x8db97c(0x186)]())),_0x35371e=_0x358754[_0x8db97c(0x181)];for(let _0x369e22=0x0;_0x369e22<_0x35371e;_0x369e22++){const _0x1e49cb=_0x358754[_0x369e22],_0x5bfb58=_0x358754[_0x369e22+0x1];if(this[_0x8db97c(0x1a5)](_0x1e49cb)){if(-0x1===_0x2a5989&&(_0x2a5989=_0x369e22),this[_0x8db97c(0x1b0)](_0x1e49cb),!this[_0x8db97c(0x1a5)](_0x5bfb58)){const [_0x921fd2,_0x4324cf]=this[_0x8db97c(0x18e)](_0x1e49cb,_0x556956,_0x30dec0);if(_0x921fd2){const _0x282565=Array[_0x8db97c(0x1c0)](_0x358754)[_0x8db97c(0x19d)](_0x2a5989,_0x369e22+0x1);this[_0x8db97c(0x1a3)](_0x921fd2,_0x282565,_0x4324cf),_0x2a5989=-0x1;}}}else{if(this[_0x8db97c(0x1a1)](_0x1e49cb))_0x556956=!0x0;else{if(this[_0x8db97c(0x1ad)](_0x1e49cb)){const _0x14d7cb=_0x1f0838(_0x1e49cb,_0x8db97c(0x1c5));if(_0x14d7cb&&this[_0x8db97c(0x19e)][_0x8db97c(0x1b4)](_0x14d7cb)){const _0x3fbe64=_0x326a2d(_0x8db97c(0x1c5),_0x14d7cb,_0x30dec0);this[_0x8db97c(0x1b2)](_0x3fbe64,_0x1e49cb);}if(this[_0x8db97c(0x195)][_0x8db97c(0x188)][_0x8db97c(0x183)](_0x14d7cb)){const _0x26b1b5=this[_0x8db97c(0x195)][_0x8db97c(0x188)][_0x8db97c(0x1b5)](_0x14d7cb);this[_0x8db97c(0x195)][_0x8db97c(0x188)][_0x8db97c(0x1b3)](_0x26b1b5,0x1);}}else{if(this[_0x8db97c(0x1ba)](_0x1e49cb)){const _0x23ef2a=_0x1f0838(_0x1e49cb,_0x8db97c(0x1c5));this[_0x8db97c(0x195)][_0x8db97c(0x1c2)][_0x8db97c(0x183)](_0x23ef2a)||this[_0x8db97c(0x1bb)](_0x1e49cb);}}}}}for(const _0x531595 of this[_0x8db97c(0x195)][_0x8db97c(0x188)]){const _0x5cf25=_0x326a2d(_0x8db97c(0x1c5),_0x531595,_0x30dec0);if(_0x5cf25){if(_0x1cbe53&&_0x1cbe53[_0x8db97c(0x189)]){this[_0x8db97c(0x195)][_0x8db97c(0x1a6)]=_0x531595;const _0x8119ff=_0x1cbe53[_0x8db97c(0x189)][_0x8db97c(0x1c6)](!0x0);_0x1f0f32(_0x8119ff,_0x8db97c(0x1c5),_0x531595),_0x1f0f32(_0x8119ff,_0x8db97c(0x17f),_0x8db97c(0x1bc)),_0x41c414(_0x5cf25,_0x8119ff);}else _0x56f057(_0x5cf25);}}if(_0x5cf85d(_0x8db97c(0x18a),null,_0x30dec0)[_0x8db97c(0x1b9)](_0x37d7fb=>{const _0x36cd96=_0x8db97c,_0x1e9da9=_0x1f0838(_0x37d7fb,_0x36cd96(0x18a)),_0x44c8f5=_0x326a2d(_0x36cd96(0x1c5),_0x1e9da9,_0x30dec0);_0x44c8f5&&_0x823ecc(_0x44c8f5,_0x37d7fb);}),_0x5cf85d(_0x8db97c(0x1c5),_0x8db97c(0x19f),_0x30dec0)[_0x8db97c(0x1b9)](_0x3dea2b=>{const _0x1c312=_0x8db97c,_0x4c44b8=this[_0x1c312(0x185)](_0x3dea2b);_0x1f0f32(_0x3dea2b,_0x1c312(0x1c5),_0x4c44b8),this[_0x1c312(0x195)][_0x1c312(0x182)][_0x1c312(0x199)](_0x4c44b8);}),this[_0x8db97c(0x187)](_0x30dec0),_0x1cbe53&&_0x1cbe53[_0x8db97c(0x1b1)]&&this[_0x8db97c(0x18f)](_0x30dec0,_0x1cbe53[_0x8db97c(0x19b)]||0x0),_0x1cbe53&&_0x1cbe53[_0x8db97c(0x1b6)]&&this[_0x8db97c(0x195)][_0x8db97c(0x1a6)]){let _0x3d8fb5=_0x326a2d(_0x8db97c(0x1c5),this[_0x8db97c(0x195)][_0x8db97c(0x1a6)],_0x30dec0);for(;_0x3d8fb5;)_0x5dff24(_0x3d8fb5),_0x3d8fb5=_0x3d8fb5[_0x8db97c(0x1b8)];}return{'parsedContent':_0x30dec0,'newNodeIds':this[_0x8db97c(0x195)][_0x8db97c(0x182)],'modifiedNodeIds':this[_0x8db97c(0x195)][_0x8db97c(0x1c2)],'removedNodeIds':this[_0x8db97c(0x195)][_0x8db97c(0x188)]};}[_0x38db5d(0x1a3)](_0x2f6a90,_0xca5576,_0xea5978){const _0x41e76b=_0x38db5d;for(const _0x14d64b of _0xca5576){const _0x2395a6=this[_0x41e76b(0x185)](_0x14d64b);_0x1f0f32(_0x14d64b,_0x41e76b(0x1c5),_0x2395a6),this[_0x41e76b(0x195)][_0x41e76b(0x182)][_0x41e76b(0x199)](_0x2395a6),this[_0x41e76b(0x195)][_0x41e76b(0x1a6)]=_0x2395a6;}const _0x1101f2=_0x41e76b(0x1c4)===_0xea5978||_0x41e76b(0x19c)===_0xea5978?_0xca5576[_0x41e76b(0x198)]():_0xca5576;for(const _0x3fb7ca of _0x1101f2)_0x2b3fa7(_0x2f6a90,_0x3fb7ca,_0xea5978);}[_0x38db5d(0x1b2)](_0x14e930,_0x392f85){const _0x5406b6=_0x38db5d;if(!_0x14e930)return;if(_0x1bfbe1(_0x14e930,_0x392f85))return;const _0x54106d=this[_0x5406b6(0x185)](_0x14e930);_0x1f0f32(_0x392f85,_0x5406b6(0x1c5),_0x54106d),this[_0x5406b6(0x195)][_0x5406b6(0x1c2)][_0x5406b6(0x199)](_0x54106d),this[_0x5406b6(0x195)][_0x5406b6(0x1a6)]=_0x54106d,_0x41c414(_0x14e930,_0x392f85[_0x5406b6(0x1c6)](!0x0));}[_0x38db5d(0x18e)](_0x53d7fe,_0x33a7a9,_0x352ccb){const _0x186157=_0x38db5d,_0x47cb76=this[_0x186157(0x1a2)](_0x53d7fe,!0x1);if(_0x47cb76){const _0x5ccb14=this[_0x186157(0x1a4)](_0x47cb76),_0x5d7c1c=_0x326a2d(_0x186157(0x1c5),_0x5ccb14,_0x352ccb);if(_0x5d7c1c)return[_0x5d7c1c,_0x186157(0x19c)];this[_0x186157(0x195)][_0x186157(0x1ae)][_0x186157(0x199)](_0x5ccb14);}const _0x458acb=this[_0x186157(0x1aa)](_0x53d7fe,!0x1);if(_0x458acb){const _0x503bf3=this[_0x186157(0x1a4)](_0x458acb),_0x1857e1=_0x326a2d(_0x186157(0x1c5),_0x503bf3,_0x352ccb);if(_0x1857e1)return[_0x1857e1,_0x186157(0x1ab)];this[_0x186157(0x195)][_0x186157(0x1ae)][_0x186157(0x199)](_0x503bf3);}return _0x33a7a9?_0x53d7fe[_0x186157(0x1bf)]?this[_0x186157(0x1b7)](_0x53d7fe,_0x352ccb):[_0x352ccb[_0x186157(0x1be)][_0x352ccb[_0x186157(0x1be)][_0x186157(0x181)]-0x1],_0x186157(0x19c)]:[_0x352ccb[_0x186157(0x1be)][0x0],_0x186157(0x1ab)];}[_0x38db5d(0x1b7)](_0x25ad15,_0x4d5cbc){const _0x14710e=_0x38db5d,_0x15b799=[],_0xc55f28=this[_0x14710e(0x1a2)](_0x25ad15,!0x0);if(_0xc55f28){const _0x2619ff=this[_0x14710e(0x1a4)](_0xc55f28),_0x5d1c3c=_0x326a2d(_0x14710e(0x1c5),_0x2619ff,_0x4d5cbc);_0x5d1c3c&&_0x15b799[_0x14710e(0x199)]([_0x5d1c3c,_0x14710e(0x19c)]);}const _0x532ec5=this[_0x14710e(0x1aa)](_0x25ad15,!0x0);if(_0x532ec5){const _0x4bce1e=this[_0x14710e(0x1a4)](_0x532ec5),_0x317d7a=_0x326a2d(_0x14710e(0x1c5),_0x4bce1e,_0x4d5cbc);_0x317d7a&&_0x15b799[_0x14710e(0x199)]([_0x317d7a,_0x14710e(0x1ab)]);}if(_0x15b799[_0x14710e(0x181)]>0x1)return _0x1977b0(_0x15b799[0x0][0x0])<=_0x1977b0(_0x15b799[0x1][0x0])?_0x15b799[0x0]:_0x15b799[0x1];return 0x1===_0x15b799[_0x14710e(0x181)]?_0x15b799[0x0]:[_0x4d5cbc[_0x14710e(0x1ac)],_0x14710e(0x19c)];}[_0x38db5d(0x1aa)](_0x2d3bab,_0x41c31b){const _0x70b491=_0x38db5d;let _0x833935=_0x2d3bab[_0x70b491(0x1bf)],_0x82996a=null,_0x15057b=!0x1;for(;_0x833935;){if(_0x5cf372(_0x833935)){if(this[_0x70b491(0x1ba)](_0x833935)&&(_0x82996a=_0x833935),this[_0x70b491(0x1a1)](_0x833935)&&_0x41c31b&&!_0x15057b){_0x15057b=!0x0,_0x833935=_0x833935[_0x70b491(0x1bf)];continue;}break;}const _0x1248e3=_0x1f0838(_0x833935,_0x70b491(0x1c5));if(_0x1248e3&&_0x70b491(0x19f)!==_0x1248e3&&this[_0x70b491(0x19e)][_0x70b491(0x1b4)](_0x1248e3)){_0x82996a=_0x833935;break;}_0x833935=_0x833935[_0x70b491(0x1bf)];}return _0x82996a;}[_0x38db5d(0x1a2)](_0x32f840,_0x1e09db){const _0x47ec6f=_0x38db5d;let _0x4392db=_0x32f840[_0x47ec6f(0x194)],_0x23ef02=null,_0x185553=!0x1;for(;_0x4392db;){if(_0x5cf372(_0x4392db)){if(this[_0x47ec6f(0x1ba)](_0x4392db)&&(_0x23ef02=_0x4392db),this[_0x47ec6f(0x1a1)](_0x4392db)&&_0x1e09db&&!_0x185553){_0x185553=!0x0,_0x4392db=_0x4392db[_0x47ec6f(0x194)];continue;}break;}const _0x1ac9d5=_0x1f0838(_0x4392db,_0x47ec6f(0x1c5));if(_0x1ac9d5&&_0x47ec6f(0x19f)!==_0x1ac9d5&&this[_0x47ec6f(0x19e)][_0x47ec6f(0x1b4)](_0x1ac9d5)){_0x23ef02=_0x4392db;break;}_0x4392db=_0x4392db[_0x47ec6f(0x194)];}return _0x23ef02;}[_0x38db5d(0x1b0)](_0x303b4e){const _0x498533=_0x38db5d;_0x268071(_0x303b4e)&&_0x5cf85d(_0x498533(0x1c5),null,_0x303b4e)[_0x498533(0x1b9)](_0x1e20aa=>{const _0x41f3d7=_0x498533;if(this[_0x41f3d7(0x1ad)](_0x1e20aa)&&!this[_0x41f3d7(0x196)](_0x1e20aa)){const _0x268068=_0x1f0838(_0x1e20aa,_0x41f3d7(0x1c5));_0x1f0f32(_0x1e20aa,_0x41f3d7(0x18a),_0x268068),_0x1f0f32(_0x1e20aa,_0x41f3d7(0x1c5),null);}});}[_0x38db5d(0x1a4)](_0x5c7815){const _0x1a928d=_0x38db5d;if(!_0x5c7815)return null;if(_0x268071(_0x5c7815))return _0x1f0838(_0x5c7815,_0x1a928d(0x1c5));if(_0x5cf372(_0x5c7815)){const _0x4f2159=_0x2e4f7f(_0x5c7815)[_0x1a928d(0x1bd)](/removed[\s*-]data-id="([^"]+)"/);if(_0x4f2159&&_0x4f2159[0x1])return _0x4f2159[0x1];}return null;}[_0x38db5d(0x1bb)](_0x87372b){const _0x16bdef=_0x38db5d;if(_0x5cf372(_0x87372b)){const _0x1b9669=_0x2e4f7f(_0x87372b)[_0x16bdef(0x1bd)](/removed[\s*-]data-id="([^"]+)"/);_0x1b9669&&_0x1b9669[0x1]&&this[_0x16bdef(0x195)][_0x16bdef(0x188)][_0x16bdef(0x199)](_0x1b9669[0x1]);}}[_0x38db5d(0x185)](_0x224052){const _0x1d72c1=_0x38db5d;return this[_0x1d72c1(0x1ad)](_0x224052)?_0x1f0838(_0x224052,_0x1d72c1(0x1c5)):this[_0x1d72c1(0x1a9)]();}[_0x38db5d(0x187)](_0x37f876){const _0x3efe4d=_0x38db5d;_0x49c946(_0x37f876)[_0x3efe4d(0x1c1)](_0x4722de=>this[_0x3efe4d(0x1ba)](_0x4722de)||this[_0x3efe4d(0x1a1)](_0x4722de))[_0x3efe4d(0x1b9)](_0x253cb9=>{_0x56f057(_0x253cb9);});}[_0x38db5d(0x193)](_0x28ae8f){const _0x3480cb=_0x38db5d,_0x484f80=_0x28ae8f[_0x3480cb(0x1be)],_0x41339e=_0x484f80[_0x484f80[_0x3480cb(0x181)]-0x1];_0x41339e&&_0x268071(_0x41339e)&&_0x1f0f32(_0x41339e,_0x3480cb(0x184),_0x3480cb(0x1bc));}[_0x38db5d(0x18f)](_0x1ab2bd,_0x509ebe){const _0x174e8d=_0x38db5d,_0x130af4=_0x326a2d(_0x174e8d(0x184),_0x174e8d(0x1bc),_0x1ab2bd);if(!_0x130af4)return;const _0x1cb6cc=_0x231981(_0x130af4)[_0x174e8d(0x19d)](0x0,-0x1),_0x57c93f=_0x1cb6cc[_0x174e8d(0x181)];let _0x3b961f=_0x130af4;if(_0x57c93f>_0x509ebe){let _0x38a01b=_0x57c93f,_0xcbea3=null;for(;_0x38a01b>_0x509ebe&&_0x38a01b>=0x0;)_0x38a01b--,_0xcbea3=_0x1cb6cc[_0x38a01b];_0xcbea3&&(_0x3b961f=_0xcbea3,_0x1f0f32(_0x130af4,_0x174e8d(0x184),null),_0x1f0f32(_0xcbea3,_0x174e8d(0x184),_0x174e8d(0x1bc)));}else{if(_0x57c93f<_0x509ebe){let _0x37007b=_0x57c93f,_0x3925d5=_0x130af4;for(;_0x37007b<_0x509ebe;){const _0x24db0f=_0x3925d5[_0x174e8d(0x1be)][_0x174e8d(0x1c1)](_0x35d560=>_0x268071(_0x35d560));if(0x0===_0x24db0f[_0x174e8d(0x181)])break;_0x37007b++,_0x3925d5=_0x24db0f[_0x24db0f[_0x174e8d(0x181)]-0x1];}_0x3925d5&&(_0x3b961f=_0x3925d5,_0x1f0f32(_0x130af4,_0x174e8d(0x184),null),_0x1f0f32(_0x3925d5,_0x174e8d(0x184),_0x174e8d(0x1bc)));}}let _0x151652=_0x3b961f;for(;_0x151652;){for(;_0x151652[_0x174e8d(0x1bf)];)_0x151652=_0x151652[_0x174e8d(0x1bf)],_0x268071(_0x151652)&&_0x1f0f32(_0x151652,_0x174e8d(0x184),_0x174e8d(0x1bc));_0x151652=_0x151652[_0x174e8d(0x1b8)];}}[_0x38db5d(0x1a5)](_0x3926c1){const _0x3abf73=_0x38db5d;return Boolean(_0x3abf73(0x19f)===_0x1f0838(_0x3926c1,_0x3abf73(0x1c5)));}[_0x38db5d(0x1ad)](_0x4d887e){const _0x157cab=_0x38db5d;return Boolean((_0x1f0838(_0x4d887e,_0x157cab(0x1c5))||'')[_0x157cab(0x181)]>0x0&&_0x157cab(0x19f)!==_0x1f0838(_0x4d887e,_0x157cab(0x1c5)));}[_0x38db5d(0x1ba)](_0x481696){const _0x1743c8=_0x38db5d;return!!_0x481696&&Boolean(_0x5cf372(_0x481696)&&_0x2e4f7f(_0x481696)[_0x1743c8(0x1bd)](/removed[\s*-]data-id="[^"]+"/));}[_0x38db5d(0x196)](_0x3d92bc){const _0x40a410=_0x38db5d;let _0x227a35=_0x3d92bc[_0x40a410(0x1b8)];for(;_0x227a35;){if(_0x1f0838(_0x227a35,_0x40a410(0x18a)))return!0x0;_0x227a35=_0x227a35[_0x40a410(0x1b8)];}return!0x1;}[_0x38db5d(0x1a1)](_0x1d3a33){const _0x32a896=_0x38db5d;return Boolean(_0x5cf372(_0x1d3a33)&&_0x2e4f7f(_0x1d3a33)[_0x32a896(0x1bd)](/\s*existing[\s*-](content|document)\s*/g));}}