@ckeditor/ckeditor5-ai 47.7.0 → 47.7.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  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/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.js +1 -1
  180. package/src/aichat/model/aichatconversation.js +1 -1
  181. package/src/aichat/model/aichatinteraction.js +1 -1
  182. package/src/aichat/ui/aichatballoonview.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcustomelementview.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/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  221. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  223. package/src/aicore/aiconnector.js +1 -1
  224. package/src/aicore/aiediting.js +1 -1
  225. package/src/aicore/model/aicapabilities.js +1 -1
  226. package/src/aicore/model/aicontext.js +1 -1
  227. package/src/aicore/model/aiinteraction.js +1 -1
  228. package/src/aicore/model/aimodels.js +1 -1
  229. package/src/aicore/model/aireply.js +1 -1
  230. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  231. package/src/aicore/pipeline/airesponseparser.js +2 -2
  232. package/src/aicore/ui/aidisclaimerview.js +1 -1
  233. package/src/aicore/ui/aiskeleton.js +1 -1
  234. package/src/aicore/ui/aispinner.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  246. package/src/aicore/utils/common-translations.js +1 -1
  247. package/src/aicore/utils/createresizebutton.js +1 -1
  248. package/src/aicore/utils/documentposition.js +1 -1
  249. package/src/aicore/utils/documentrange.js +1 -1
  250. package/src/aicore/utils/eventnames.js +1 -1
  251. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  252. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  253. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  254. package/src/aicore/utils/htmlparser.js +1 -1
  255. package/src/aicore/utils/htmlstreamer.js +1 -1
  256. package/src/aicore/utils/scrollmanager.js +1 -1
  257. package/src/aieditorintegration/aieditorintegration.js +1 -1
  258. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  260. package/src/aiquickactions/aiquickactions.js +1 -1
  261. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  262. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  263. package/src/aiquickactions/aiquickactionsui.js +1 -1
  264. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  268. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  271. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  272. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  273. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  274. package/src/aireviewcore/aireviewcoreui.js +1 -1
  275. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  276. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  277. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  280. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  281. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  292. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  294. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  295. package/src/aireviewmode/aireviewmode.js +1 -1
  296. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  297. package/src/aireviewmode/aireviewmodeui.js +1 -1
  298. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  300. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  301. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  303. package/src/aitabs/aitabs.js +1 -1
  304. package/src/aitabs/aitabsmainview.js +1 -1
  305. package/src/aitabs/tabs/aitabsview.js +1 -1
  306. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  307. package/src/aitabs/tabs/tabpanelview.js +1 -1
  308. package/src/aitranslate/aitranslate.js +1 -1
  309. package/src/aitranslate/aitranslatecontroller.js +1 -1
  310. package/src/aitranslate/aitranslateui.js +1 -1
  311. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  312. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  313. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  314. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  315. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  316. package/src/errors.js +1 -1
  317. package/src/errorsmap.js +1 -1
  318. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x51dfbd=_0x183d;(function(_0x372456,_0x14517c){const _0x1124d7=_0x183d,_0x5ecb00=_0x372456();while(!![]){try{const _0x231dde=parseInt(_0x1124d7(0xd3))/0x1*(parseInt(_0x1124d7(0xc8))/0x2)+-parseInt(_0x1124d7(0xd0))/0x3*(parseInt(_0x1124d7(0x103))/0x4)+parseInt(_0x1124d7(0xfd))/0x5+parseInt(_0x1124d7(0xb5))/0x6*(parseInt(_0x1124d7(0xd6))/0x7)+-parseInt(_0x1124d7(0xc5))/0x8+-parseInt(_0x1124d7(0xd8))/0x9+parseInt(_0x1124d7(0xe5))/0xa;if(_0x231dde===_0x14517c)break;else _0x5ecb00['push'](_0x5ecb00['shift']());}catch(_0x238461){_0x5ecb00['push'](_0x5ecb00['shift']());}}}(_0x1dce,0x45abd));import{CKEditorError as _0x230067,EmitterMixin as _0x224e2b,uid as _0xb08eaa}from'ckeditor5/src/utils.js';import{AIReply as _0x58e0fe}from'./aireply.js';function _0x1dce(){const _0x266143=['content','destroy','replyContentUpdated','_isReasoning','createReply','replies','message-metadata','2059600WRPqVu','result','modification-delta','2adNVKA','push','delegate','currentRequest','text','getDocumentContext','action-metadata','web-search','3lagUsT','text-delta','webSearchFinished','299877FqdjHO','interactionCreated','error','1579571taffiU','getReply','3900663rMLpEu','sendRequest','abortController','webSearchStarted','source','_handleToolNotificationData','toolDataReceived','sources','currentReply','connector','event','setConversationTitle','mcp-tool-result','6046370HfnMSd','reasoning','ai-chat-interaction-error','editor','done','isDestroyed','interactionFinished','find','abort','mcp-tool-notification','appendContent','_isWebSearching','splice','messageId','stop','forEach','replyChangeGroupStateUpdated','actionCallId','start','interactionStopped','reasoningStarted','conversation-title','interactionStarted','resetReasoningState','1004020GyyUdZ','modification','notification','fire','conversationTitle','resetWebSearchState','1418964xNQxZb','getStream','attributes','callId','parse','reasoningFinished','_finalizeInteraction','interactionDestroyed','type','6jedUlO','toolName','stopListening','data','replyCreated','isStopped','_handleToolResultData','length','textDelta'];_0x1dce=function(){return _0x266143;};return _0x1dce();}export const AI_MODEL_EVENT_NAMES=[_0x51dfbd(0xd4),_0x51dfbd(0xfb),_0x51dfbd(0xf8),_0x51dfbd(0xeb),_0x51dfbd(0x10a),_0x51dfbd(0xb9),_0x51dfbd(0xc0),_0x51dfbd(0xf5),_0x51dfbd(0xe3),_0x51dfbd(0xdb),_0x51dfbd(0xd2),_0x51dfbd(0xf9),_0x51dfbd(0x108),_0x51dfbd(0xde),_0x51dfbd(0xd5)];function _0x183d(_0x2e2d38,_0x5b1a08){const _0x1dceb6=_0x1dce();return _0x183d=function(_0x183de3,_0x2d83fb){_0x183de3=_0x183de3-0xb4;let _0x1691fd=_0x1dceb6[_0x183de3];return _0x1691fd;},_0x183d(_0x2e2d38,_0x5b1a08);}export class AIInteraction extends _0x224e2b(){['id'];[_0x51dfbd(0xc3)]=[];[_0x51dfbd(0xe0)];[_0x51dfbd(0xf2)];[_0x51dfbd(0xf6)];[_0x51dfbd(0xcb)];[_0x51dfbd(0xe1)];[_0x51dfbd(0xba)]=!0x1;[_0x51dfbd(0xea)]=!0x1;[_0x51dfbd(0xe8)];[_0x51dfbd(0xc1)]=!0x1;[_0x51dfbd(0xf0)]=!0x1;constructor({connector:_0x5a8e25,editor:_0xc17e37}){const _0x4d992a=_0x51dfbd;super(),this['id']=_0xb08eaa(),this[_0x4d992a(0xe1)]=_0x5a8e25,this[_0x4d992a(0xba)]=!0x0,this[_0x4d992a(0xe8)]=_0xc17e37;}async[_0x51dfbd(0xf7)](){const _0x53bced=_0x51dfbd,_0x4b4f99=[];let _0x257cc8,_0xfed0ec,_0x2cd02d;this[_0x53bced(0xba)]=!0x1;try{this[_0x53bced(0xcb)]=await this[_0x53bced(0xd9)](),this[_0x53bced(0x100)](_0x53bced(0xfb),this);const _0x1fde7c=await this[_0x53bced(0xcb)][_0x53bced(0x104)]();for await(const _0x35b4e5 of _0x1fde7c){if(this[_0x53bced(0xba)])return;if(_0x53bced(0xd5)==_0x35b4e5[_0x53bced(0xe2)])return void this[_0x53bced(0x100)](_0x53bced(0xd5),{'error':new _0x230067(_0x53bced(0xe7),this)});switch(_0x35b4e5[_0x53bced(0xe2)]){case _0x53bced(0xc4):this[_0x53bced(0xf2)]=_0x35b4e5[_0x53bced(0xb8)][_0x53bced(0xf2)];break;case _0x53bced(0xce):this[_0x53bced(0xf6)]=_0x35b4e5[_0x53bced(0xb8)][_0x53bced(0x106)];break;case _0x53bced(0xfa):this[_0x53bced(0xe3)](_0x35b4e5[_0x53bced(0xb8)][_0x53bced(0x101)],!0x0);break;case _0x53bced(0xdc):_0x4b4f99[_0x53bced(0xc9)](_0x35b4e5[_0x53bced(0xb8)][_0x53bced(0xdc)]);break;case _0x53bced(0xcf):this[_0x53bced(0xf0)]||(this[_0x53bced(0xf0)]=!0x0,this[_0x53bced(0x100)](_0x53bced(0xdb),this));break;case _0x53bced(0xe6):this[_0x53bced(0xc1)]||(this[_0x53bced(0xc1)]=!0x0,this[_0x53bced(0x100)](_0x53bced(0xf9),this));break;case _0x53bced(0xc7):case _0x53bced(0xd1):this[_0x53bced(0xfc)](),this[_0x53bced(0x102)](),_0x257cc8=_0x53bced(0xc7)==_0x35b4e5[_0x53bced(0xe2)]?_0x53bced(0xfe):_0x53bced(0xcc),_0xfed0ec=_0x53bced(0xc7)==_0x35b4e5[_0x53bced(0xe2)]?_0x35b4e5[_0x53bced(0xb8)]['id']:void 0x0,this[_0x53bced(0xe0)]&&this[_0x53bced(0xe0)][_0x53bced(0xb4)]!=_0x257cc8&&(this[_0x53bced(0xe0)][_0x53bced(0xe9)](),this[_0x53bced(0xe0)]=void 0x0),this[_0x53bced(0xe0)]||(this[_0x53bced(0xe0)]=this[_0x53bced(0xc2)]({'type':_0x257cc8,'interactionId':this['id'],'id':_0xfed0ec}),_0x53bced(0xfe)==_0x257cc8&&(this[_0x53bced(0xe0)][_0x53bced(0xdf)]=_0x4b4f99[_0x53bced(0xf1)](0x0))),this[_0x53bced(0xe0)][_0x53bced(0xef)](_0x35b4e5[_0x53bced(0xb8)][_0x53bced(0xbd)]);break;case _0x53bced(0xe4):_0x2cd02d=JSON[_0x53bced(0x107)](_0x35b4e5[_0x53bced(0xb8)][_0x53bced(0xc6)]),this[_0x53bced(0xbb)]({'toolName':_0x35b4e5[_0x53bced(0xb8)][_0x53bced(0xb6)],'data':_0x2cd02d[_0x53bced(0xb8)],'attributes':_0x2cd02d[_0x53bced(0x105)]});break;case _0x53bced(0xee):this[_0x53bced(0xdd)]({'toolName':_0x35b4e5[_0x53bced(0xb8)][_0x53bced(0xb6)],'data':_0x35b4e5[_0x53bced(0xb8)][_0x53bced(0xb8)]});}}}finally{this[_0x53bced(0xba)]||(this[_0x53bced(0xe0)]&&_0x4b4f99[_0x53bced(0xbc)]>0x0&&(this[_0x53bced(0xe0)][_0x53bced(0xdf)]=_0x4b4f99[_0x53bced(0xf1)](0x0)),this[_0x53bced(0x109)](),this[_0x53bced(0x100)](_0x53bced(0xeb),this));}}[_0x51dfbd(0xf3)](){const _0x1978a3=_0x51dfbd;this[_0x1978a3(0xba)]||(this[_0x1978a3(0x109)](),this[_0x1978a3(0x100)](_0x1978a3(0xf8),this));}[_0x51dfbd(0xd7)](_0xa3446a){const _0x4af7e5=_0x51dfbd;return this[_0x4af7e5(0xc3)][_0x4af7e5(0xec)](_0x1f2e99=>_0x1f2e99['id']===_0xa3446a);}[_0x51dfbd(0xbf)](){const _0x18cf78=_0x51dfbd;this[_0x18cf78(0xea)]||(this[_0x18cf78(0xf3)](),this[_0x18cf78(0xc3)][_0x18cf78(0xf4)](_0x2bad7c=>_0x2bad7c[_0x18cf78(0xbf)]()),this[_0x18cf78(0xc3)]=[],this[_0x18cf78(0xea)]=!0x0,this[_0x18cf78(0x100)](_0x18cf78(0x10a),this),this[_0x18cf78(0xb7)]());}[_0x51dfbd(0xc2)](_0x4c7175){const _0x290bd2=_0x51dfbd,_0x53581e=new _0x58e0fe({'editor':this[_0x290bd2(0xe8)],'documentContextContent':this[_0x290bd2(0xcd)]()?.[_0x290bd2(0xbe)],..._0x4c7175});return this[_0x290bd2(0xc3)][_0x290bd2(0xc9)](_0x53581e),_0x53581e[_0x290bd2(0xca)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x290bd2(0x100)](_0x290bd2(0xb9),_0x53581e),_0x53581e;}[_0x51dfbd(0xe3)](_0x5ef8b3,_0x50cdda=!0x1){const _0x140a66=_0x51dfbd;this[_0x140a66(0x100)](_0x140a66(0xe3),_0x5ef8b3,_0x50cdda);}[_0x51dfbd(0x102)](){const _0xc26a4=_0x51dfbd;this[_0xc26a4(0xf0)]&&(this[_0xc26a4(0xf0)]=!0x1,this[_0xc26a4(0x100)](_0xc26a4(0xd2),this));}[_0x51dfbd(0xfc)](){const _0x1b47c2=_0x51dfbd;this[_0x1b47c2(0xc1)]&&(this[_0x1b47c2(0xc1)]=!0x1,this[_0x1b47c2(0x100)](_0x1b47c2(0x108),this));}[_0x51dfbd(0xbb)](_0x2408cc){const _0x3e2805=_0x51dfbd;this[_0x3e2805(0x100)](_0x3e2805(0xde),{'type':_0x3e2805(0xc6),'toolName':_0x2408cc[_0x3e2805(0xb6)],'data':structuredClone(_0x2408cc[_0x3e2805(0xb8)]||{}),'attributes':structuredClone(_0x2408cc[_0x3e2805(0x105)]||{})},this);}[_0x51dfbd(0xdd)](_0x8d69cd){const _0x3b9ea5=_0x51dfbd;this[_0x3b9ea5(0x100)](_0x3b9ea5(0xde),{'type':_0x3b9ea5(0xff),'toolName':_0x8d69cd[_0x3b9ea5(0xb6)],'data':structuredClone(_0x8d69cd[_0x3b9ea5(0xb8)])},this);}[_0x51dfbd(0x109)](){const _0x67b00d=_0x51dfbd;this[_0x67b00d(0xba)]=!0x0,this[_0x67b00d(0xcb)]&&this[_0x67b00d(0xcb)][_0x67b00d(0xda)][_0x67b00d(0xed)](),this[_0x67b00d(0xe0)]&&this[_0x67b00d(0xe0)][_0x67b00d(0xe9)](),this[_0x67b00d(0xcb)]=this[_0x67b00d(0xe0)]=void 0x0;}}
23
+ const _0x2c3c83=_0x2625;(function(_0x471002,_0x52d03c){const _0x58c873=_0x2625,_0x22fc65=_0x471002();while(!![]){try{const _0x2f67fb=-parseInt(_0x58c873(0xec))/0x1*(-parseInt(_0x58c873(0xd6))/0x2)+parseInt(_0x58c873(0xf7))/0x3*(parseInt(_0x58c873(0x112))/0x4)+parseInt(_0x58c873(0xee))/0x5*(parseInt(_0x58c873(0xed))/0x6)+-parseInt(_0x58c873(0xe5))/0x7*(-parseInt(_0x58c873(0xfb))/0x8)+-parseInt(_0x58c873(0x11f))/0x9*(parseInt(_0x58c873(0x101))/0xa)+-parseInt(_0x58c873(0xe6))/0xb*(-parseInt(_0x58c873(0x100))/0xc)+-parseInt(_0x58c873(0xd0))/0xd;if(_0x2f67fb===_0x52d03c)break;else _0x22fc65['push'](_0x22fc65['shift']());}catch(_0x2885be){_0x22fc65['push'](_0x22fc65['shift']());}}}(_0x3c7c,0xd6dcd));import{CKEditorError as _0x3dd36a,EmitterMixin as _0x4cdfdd,uid as _0x29bb63}from'ckeditor5/src/utils.js';import{AIReply as _0x50ba68}from'./aireply.js';function _0x3c7c(){const _0x4cb7a4=['stopListening','sendRequest','createReply','message-metadata','60aloEAP','14479890GRDCtR','resetWebSearchState','attributes','_isReasoning','mcp-tool-result','getReply','resetReasoningState','getDocumentContext','appendContent','type','replies','source','action-metadata','replyCreated','replyChangeGroupStateUpdated','destroy','textDelta','266796JYrJvz','event','start','getStream','editor','text','isStopped','webSearchFinished','fire','modification','data','conversation-title','web-search','9GxmyCe','_handleToolNotificationData','abortController','reasoningStarted','actionCallId','modification-delta','parse','webSearchStarted','_finalizeInteraction','replyContentUpdated','mcp-tool-notification','12876279bbseSJ','interactionCreated','reasoningFinished','abort','_handleToolResultData','toolName','83396ILVxcT','push','length','interactionStopped','toolDataReceived','forEach','splice','currentReply','reasoning','interactionStarted','callId','interactionDestroyed','find','stop','isDestroyed','1775137vYPeYg','869539IJjvgt','currentRequest','content','interactionFinished','connector','conversationTitle','1WKliod','8124CyCMrr','5615sASbZC','text-delta','_isWebSearching','messageId','done','delegate','setConversationTitle','notification','sources','27gEmabm','result','error','ai-chat-interaction-error','24nVwwmj'];_0x3c7c=function(){return _0x4cb7a4;};return _0x3c7c();}export const AI_MODEL_EVENT_NAMES=[_0x2c3c83(0xd1),_0x2c3c83(0xdf),_0x2c3c83(0xd9),_0x2c3c83(0xe9),_0x2c3c83(0xe1),_0x2c3c83(0x10e),_0x2c3c83(0x128),_0x2c3c83(0x10f),_0x2c3c83(0xf4),_0x2c3c83(0x126),_0x2c3c83(0x119),_0x2c3c83(0x122),_0x2c3c83(0xd2),_0x2c3c83(0xda),_0x2c3c83(0xf9)];function _0x2625(_0x1642d4,_0x2a10d3){const _0x3c7cea=_0x3c7c();return _0x2625=function(_0x2625d5,_0x2653e3){_0x2625d5=_0x2625d5-0xcf;let _0x3dbbb3=_0x3c7cea[_0x2625d5];return _0x3dbbb3;},_0x2625(_0x1642d4,_0x2a10d3);}export class AIInteraction extends _0x4cdfdd(){['id'];[_0x2c3c83(0x10b)]=[];[_0x2c3c83(0xdd)];[_0x2c3c83(0xf1)];[_0x2c3c83(0x123)];[_0x2c3c83(0xe7)];[_0x2c3c83(0xea)];[_0x2c3c83(0x118)]=!0x1;[_0x2c3c83(0xe4)]=!0x1;[_0x2c3c83(0x116)];[_0x2c3c83(0x104)]=!0x1;[_0x2c3c83(0xf0)]=!0x1;constructor({connector:_0x2db034,editor:_0x2d2a40}){const _0x445c0d=_0x2c3c83;super(),this['id']=_0x29bb63(),this[_0x445c0d(0xea)]=_0x2db034,this[_0x445c0d(0x118)]=!0x0,this[_0x445c0d(0x116)]=_0x2d2a40;}async[_0x2c3c83(0x114)](){const _0x2ed870=_0x2c3c83,_0x2dcecb=[];let _0x55d2d8,_0x15b399,_0x565ccc;this[_0x2ed870(0x118)]=!0x1;try{this[_0x2ed870(0xe7)]=await this[_0x2ed870(0xfd)](),this[_0x2ed870(0x11a)](_0x2ed870(0xdf),this);const _0x540a58=await this[_0x2ed870(0xe7)][_0x2ed870(0x115)]();for await(const _0x219aa5 of _0x540a58){if(this[_0x2ed870(0x118)])return;if(_0x2ed870(0xf9)==_0x219aa5[_0x2ed870(0x113)])return void this[_0x2ed870(0x11a)](_0x2ed870(0xf9),{'error':new _0x3dd36a(_0x2ed870(0xfa),this)});switch(_0x219aa5[_0x2ed870(0x113)]){case _0x2ed870(0xff):this[_0x2ed870(0xf1)]=_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0xf1)];break;case _0x2ed870(0x10d):this[_0x2ed870(0x123)]=_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0xe0)];break;case _0x2ed870(0x11d):this[_0x2ed870(0xf4)](_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0xeb)],!0x0);break;case _0x2ed870(0x10c):_0x2dcecb[_0x2ed870(0xd7)](_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0x10c)]);break;case _0x2ed870(0x11e):this[_0x2ed870(0xf0)]||(this[_0x2ed870(0xf0)]=!0x0,this[_0x2ed870(0x11a)](_0x2ed870(0x126),this));break;case _0x2ed870(0xde):this[_0x2ed870(0x104)]||(this[_0x2ed870(0x104)]=!0x0,this[_0x2ed870(0x11a)](_0x2ed870(0x122),this));break;case _0x2ed870(0x124):case _0x2ed870(0xef):this[_0x2ed870(0x107)](),this[_0x2ed870(0x102)](),_0x55d2d8=_0x2ed870(0x124)==_0x219aa5[_0x2ed870(0x113)]?_0x2ed870(0x11b):_0x2ed870(0x117),_0x15b399=_0x2ed870(0x124)==_0x219aa5[_0x2ed870(0x113)]?_0x219aa5[_0x2ed870(0x11c)]['id']:void 0x0,this[_0x2ed870(0xdd)]&&this[_0x2ed870(0xdd)][_0x2ed870(0x10a)]!=_0x55d2d8&&(this[_0x2ed870(0xdd)][_0x2ed870(0xf2)](),this[_0x2ed870(0xdd)]=void 0x0),this[_0x2ed870(0xdd)]||(this[_0x2ed870(0xdd)]=this[_0x2ed870(0xfe)]({'type':_0x55d2d8,'interactionId':this['id'],'id':_0x15b399}),_0x2ed870(0x11b)==_0x55d2d8&&(this[_0x2ed870(0xdd)][_0x2ed870(0xf6)]=_0x2dcecb[_0x2ed870(0xdc)](0x0))),this[_0x2ed870(0xdd)][_0x2ed870(0x109)](_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0x111)]);break;case _0x2ed870(0x105):_0x565ccc=JSON[_0x2ed870(0x125)](_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0xf8)]),this[_0x2ed870(0xd4)]({'toolName':_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0xd5)],'data':_0x565ccc[_0x2ed870(0x11c)],'attributes':_0x565ccc[_0x2ed870(0x103)]});break;case _0x2ed870(0xcf):this[_0x2ed870(0x120)]({'toolName':_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0xd5)],'data':_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0x11c)]});}}}finally{this[_0x2ed870(0x118)]||(this[_0x2ed870(0xdd)]&&_0x2dcecb[_0x2ed870(0xd8)]>0x0&&(this[_0x2ed870(0xdd)][_0x2ed870(0xf6)]=_0x2dcecb[_0x2ed870(0xdc)](0x0)),this[_0x2ed870(0x127)](),this[_0x2ed870(0x11a)](_0x2ed870(0xe9),this));}}[_0x2c3c83(0xe3)](){const _0x1af031=_0x2c3c83;this[_0x1af031(0x118)]||(this[_0x1af031(0x127)](),this[_0x1af031(0x11a)](_0x1af031(0xd9),this));}[_0x2c3c83(0x106)](_0x2f6530){const _0x4eb827=_0x2c3c83;return this[_0x4eb827(0x10b)][_0x4eb827(0xe2)](_0x5a489f=>_0x5a489f['id']===_0x2f6530);}[_0x2c3c83(0x110)](){const _0x205f27=_0x2c3c83;this[_0x205f27(0xe4)]||(this[_0x205f27(0xe3)](),this[_0x205f27(0x10b)][_0x205f27(0xdb)](_0x55c352=>_0x55c352[_0x205f27(0x110)]()),this[_0x205f27(0x10b)]=[],this[_0x205f27(0xe4)]=!0x0,this[_0x205f27(0x11a)](_0x205f27(0xe1),this),this[_0x205f27(0xfc)]());}[_0x2c3c83(0xfe)](_0x20a610){const _0x42e5c8=_0x2c3c83,_0x58f950=new _0x50ba68({'editor':this[_0x42e5c8(0x116)],'documentContextContent':this[_0x42e5c8(0x108)]()?.[_0x42e5c8(0xe8)],..._0x20a610});return this[_0x42e5c8(0x10b)][_0x42e5c8(0xd7)](_0x58f950),_0x58f950[_0x42e5c8(0xf3)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x42e5c8(0x11a)](_0x42e5c8(0x10e),_0x58f950),_0x58f950;}[_0x2c3c83(0xf4)](_0x490fee,_0x16ae2d=!0x1){const _0x55b36a=_0x2c3c83;this[_0x55b36a(0x11a)](_0x55b36a(0xf4),_0x490fee,_0x16ae2d);}[_0x2c3c83(0x102)](){const _0x57a747=_0x2c3c83;this[_0x57a747(0xf0)]&&(this[_0x57a747(0xf0)]=!0x1,this[_0x57a747(0x11a)](_0x57a747(0x119),this));}[_0x2c3c83(0x107)](){const _0x26ab29=_0x2c3c83;this[_0x26ab29(0x104)]&&(this[_0x26ab29(0x104)]=!0x1,this[_0x26ab29(0x11a)](_0x26ab29(0xd2),this));}[_0x2c3c83(0xd4)](_0x1dab88){const _0x53e77f=_0x2c3c83;this[_0x53e77f(0x11a)](_0x53e77f(0xda),{'type':_0x53e77f(0xf8),'toolName':_0x1dab88[_0x53e77f(0xd5)],'data':structuredClone(_0x1dab88[_0x53e77f(0x11c)]||{}),'attributes':structuredClone(_0x1dab88[_0x53e77f(0x103)]||{})},this);}[_0x2c3c83(0x120)](_0x1c2c07){const _0x2648c2=_0x2c3c83;this[_0x2648c2(0x11a)](_0x2648c2(0xda),{'type':_0x2648c2(0xf5),'toolName':_0x1c2c07[_0x2648c2(0xd5)],'data':structuredClone(_0x1c2c07[_0x2648c2(0x11c)])},this);}[_0x2c3c83(0x127)](){const _0x362c03=_0x2c3c83;this[_0x362c03(0x118)]=!0x0,this[_0x362c03(0xe7)]&&this[_0x362c03(0xe7)][_0x362c03(0x121)][_0x362c03(0xd3)](),this[_0x362c03(0xdd)]&&this[_0x362c03(0xdd)][_0x362c03(0xf2)](),this[_0x362c03(0xe7)]=this[_0x362c03(0xdd)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a0a47=_0x3f1f;(function(_0x25fcff,_0x26ce7e){const _0x166917=_0x3f1f,_0x3adc0f=_0x25fcff();while(!![]){try{const _0x3ff4a1=parseInt(_0x166917(0x202))/0x1+-parseInt(_0x166917(0x1eb))/0x2*(parseInt(_0x166917(0x1e6))/0x3)+parseInt(_0x166917(0x1ed))/0x4+-parseInt(_0x166917(0x20a))/0x5*(-parseInt(_0x166917(0x214))/0x6)+-parseInt(_0x166917(0x1f1))/0x7+parseInt(_0x166917(0x1f8))/0x8+-parseInt(_0x166917(0x1e9))/0x9;if(_0x3ff4a1===_0x26ce7e)break;else _0x3adc0f['push'](_0x3adc0f['shift']());}catch(_0x437f3f){_0x3adc0f['push'](_0x3adc0f['shift']());}}}(_0x4022,0x4efd9));import{EmitterMixin as _0x3d3186,logWarning as _0x253ac9,logError as _0x512271}from'ckeditor5/src/utils.js';function _0x3f1f(_0x41c439,_0x22c514){const _0x402274=_0x4022();return _0x3f1f=function(_0x3f1fb1,_0x3f19ec){_0x3f1fb1=_0x3f1fb1-0x1e5;let _0x2be7e3=_0x402274[_0x3f1fb1];return _0x2be7e3;},_0x3f1f(_0x41c439,_0x22c514);}import{getTranslation as _0x3e8618}from'../utils/common-translations.js';export class AIModels extends _0x3d3186(){[_0x1a0a47(0x207)];[_0x1a0a47(0x1ea)];[_0x1a0a47(0x217)];[_0x1a0a47(0x20b)]=[];[_0x1a0a47(0x20d)]=null;constructor({connector:_0x3400ce,config:_0x394dd1,locale:_0x157210}){const _0x133172=_0x1a0a47;super(),this[_0x133172(0x207)]=_0x3400ce,this[_0x133172(0x1ea)]=_0x394dd1,this[_0x133172(0x217)]=_0x157210;}get[_0x1a0a47(0x215)](){const _0x3ed8e2=_0x1a0a47;return this[_0x3ed8e2(0x1ea)]?.[_0x3ed8e2(0x1ff)];}get[_0x1a0a47(0x1f9)](){const _0x3fe0a7=_0x1a0a47;return this[_0x3fe0a7(0x1ea)]?.[_0x3fe0a7(0x1fe)];}async[_0x1a0a47(0x201)](){const _0x27d9eb=_0x1a0a47;return this[_0x27d9eb(0x20d)]||(this[_0x27d9eb(0x20d)]=this[_0x27d9eb(0x204)]()),this[_0x27d9eb(0x20d)];}async[_0x1a0a47(0x1e5)](){const _0x2e41e3=_0x1a0a47,_0x529c98=await this[_0x2e41e3(0x201)]();let _0x5430f2;return _0x5430f2=this[_0x2e41e3(0x215)]?this[_0x2e41e3(0x213)](_0x529c98,this[_0x2e41e3(0x215)]):_0x529c98[_0x2e41e3(0x1ec)](_0x553576=>_0x553576[_0x2e41e3(0x216)]),_0x5430f2;}async[_0x1a0a47(0x1f4)](_0x513bae){const _0x3923a5=_0x1a0a47,_0x3cd0ac=await this[_0x3923a5(0x201)]();if(!_0x3cd0ac[_0x3923a5(0x20e)])return null;if(_0x513bae){const _0x3dee8f=this[_0x3923a5(0x212)](_0x3cd0ac,_0x513bae);if(_0x3dee8f)return _0x3dee8f;_0x253ac9(_0x3923a5(0x1fa),{'modelId':_0x513bae,'fallBackModelId':this[_0x3923a5(0x1f9)]});}return this[_0x3923a5(0x1ee)]();}async[_0x1a0a47(0x1ee)](){const _0x56235b=_0x1a0a47,_0x42ad27=await this[_0x56235b(0x1e5)]();if(!_0x42ad27[_0x56235b(0x20e)])return null;if(this[_0x56235b(0x1f9)]){const _0x4a9c1f=this[_0x56235b(0x212)](_0x42ad27,this[_0x56235b(0x1f9)]);if(_0x4a9c1f)return _0x4a9c1f;_0x253ac9(_0x56235b(0x1f7),{'defaultModelId':this[_0x56235b(0x1f9)],'fallBackModelId':_0x42ad27[0x0]['id']});}return _0x42ad27[0x0];}async[_0x1a0a47(0x206)](_0x4d1d95){const _0x516121=_0x1a0a47;return(await this[_0x516121(0x1e5)]())[_0x516121(0x1f6)](_0x22fc11=>_0x22fc11[_0x516121(0x1f3)]===_0x4d1d95[_0x516121(0x1f3)]&&_0x22fc11[_0x516121(0x1f0)]===_0x4d1d95[_0x516121(0x1f0)]);}async[_0x1a0a47(0x204)](){const _0x556246=_0x1a0a47;if(!this[_0x556246(0x20b)][_0x556246(0x20e)])try{const _0x25b54f=this[_0x556246(0x217)][_0x556246(0x1f5)]||'en',_0xe5d965=this[_0x556246(0x207)][_0x556246(0x1e8)](_0x25b54f),_0x14dfda=await _0xe5d965[_0x556246(0x1e7)]();this[_0x556246(0x20b)]=_0x14dfda[_0x556246(0x208)][_0x556246(0x200)](_0x2499c2=>Ji(_0x2499c2)?{..._0x2499c2,'name':_0x3e8618(this[_0x556246(0x217)],_0x556246(0x1fc))}:_0x2499c2);}catch(_0x248698){throw _0x512271(_0x556246(0x1f2),{'error':_0x248698}),_0x248698;}return[...this[_0x556246(0x20b)]];}[_0x1a0a47(0x213)](_0x5f350c,_0x1514d6){const _0x15c1fc=_0x1a0a47;let _0x1c3ce9;if(_0x1514d6){_0x1c3ce9=[];const _0x3966a1=new Set(),_0x5bc5f0=_0x15c1fc(0x1fd)==typeof _0x1514d6?[_0x1514d6[_0x15c1fc(0x211)]()]:_0x1514d6[_0x15c1fc(0x200)](_0x3569fd=>_0x3569fd[_0x15c1fc(0x211)]());for(const _0xc9d628 of _0x5bc5f0)for(const _0x1597aa of _0x5f350c)!_0x3966a1[_0x15c1fc(0x20c)](_0x1597aa['id'])&&this[_0x15c1fc(0x1fb)](_0x1597aa,_0xc9d628)&&(_0x1c3ce9[_0x15c1fc(0x1ef)](_0x1597aa),_0x3966a1[_0x15c1fc(0x203)](_0x1597aa['id']));}else _0x1c3ce9=_0x5f350c;return _0x1c3ce9;}[_0x1a0a47(0x1fb)](_0xdd8f8c,_0x33e734){const _0x410783=_0x1a0a47,_0x5075f8=_0xdd8f8c['id'][_0x410783(0x211)](),_0x27b89d=_0xdd8f8c[_0x410783(0x1f3)][_0x410783(0x211)](),_0x222dee=_0xdd8f8c[_0x410783(0x1f0)][_0x410783(0x211)]();return _0x5075f8===_0x33e734||_0x27b89d===_0x33e734||Ji(_0xdd8f8c)&&_0x410783(0x210)===_0x33e734||_0x222dee===_0x33e734||_0x5075f8[_0x410783(0x209)](_0x33e734);}[_0x1a0a47(0x212)](_0xbe69d0,_0x4479cb){const _0x2d1a11=_0x1a0a47;return _0xbe69d0[_0x2d1a11(0x205)](_0xd1c819=>Ji(_0xd1c819)&&_0x2d1a11(0x210)===_0x4479cb?_0xd1c819:_0xd1c819['id']===_0x4479cb)||null;}}function _0x4022(){const _0x23c502=['84xMFcoX','_availableModels','recommended','_locale','getAvailableModels','3GQDLGW','list','getModels','4774743SETHlD','_config','898108QGkShf','filter','2128204Wodlez','getDefault','push','provider','1967084QVIvaK','ai-models-unable-to-retrieve','name','getModel','uiLanguage','some','ai-chat-default-model-id-unrecognized','804920yDySAk','_defaultModelId','ai-chat-model-id-unrecognized','_isMatchingFilter','AI_MODEL_NAME_AUTO','string','defaultModelId','displayedModels','map','getAll','575628nzXcPh','add','_retrieveModels','find','isAvailable','_connector','items','startsWith','134230uAPJnT','_modelList','has','_modelsRequest','length','agent','auto','toLocaleLowerCase','_getModelById','_filterModels'];_0x4022=function(){return _0x23c502;};return _0x4022();}function Ji(_0x20427d){const _0x3846a1=_0x1a0a47;return _0x20427d['id'][_0x3846a1(0x209)](_0x3846a1(0x20f));}
23
+ const _0x4b8e46=_0x1421;(function(_0x134b60,_0x4aba59){const _0x3cf672=_0x1421,_0x301055=_0x134b60();while(!![]){try{const _0x4482a7=parseInt(_0x3cf672(0xa7))/0x1*(parseInt(_0x3cf672(0x9f))/0x2)+parseInt(_0x3cf672(0xaa))/0x3+parseInt(_0x3cf672(0xa9))/0x4+-parseInt(_0x3cf672(0x97))/0x5+-parseInt(_0x3cf672(0x80))/0x6*(-parseInt(_0x3cf672(0x9b))/0x7)+-parseInt(_0x3cf672(0xa4))/0x8*(parseInt(_0x3cf672(0x94))/0x9)+parseInt(_0x3cf672(0x85))/0xa;if(_0x4482a7===_0x4aba59)break;else _0x301055['push'](_0x301055['shift']());}catch(_0x844010){_0x301055['push'](_0x301055['shift']());}}}(_0x48e1,0xd4d11));import{EmitterMixin as _0x5803f8,logWarning as _0x36c172,logError as _0x1bd563}from'ckeditor5/src/utils.js';import{getTranslation as _0x13f067}from'../utils/common-translations.js';export class AIModels extends _0x5803f8(){[_0x4b8e46(0x81)];[_0x4b8e46(0xa3)];[_0x4b8e46(0x8a)];[_0x4b8e46(0x87)]=[];[_0x4b8e46(0x93)]=null;constructor({connector:_0x3e35d3,config:_0xe6e4cc,locale:_0x48a6ce}){const _0x45c05e=_0x4b8e46;super(),this[_0x45c05e(0x81)]=_0x3e35d3,this[_0x45c05e(0xa3)]=_0xe6e4cc,this[_0x45c05e(0x8a)]=_0x48a6ce;}get[_0x4b8e46(0x98)](){const _0x302deb=_0x4b8e46;return this[_0x302deb(0xa3)]?.[_0x302deb(0xa8)];}get[_0x4b8e46(0x95)](){const _0x474732=_0x4b8e46;return this[_0x474732(0xa3)]?.[_0x474732(0xaf)];}async[_0x4b8e46(0xac)](){const _0x77ae18=_0x4b8e46;return this[_0x77ae18(0x93)]||(this[_0x77ae18(0x93)]=this[_0x77ae18(0x90)]()),this[_0x77ae18(0x93)];}async[_0x4b8e46(0xb2)](){const _0x3f9968=_0x4b8e46,_0x12b4b9=await this[_0x3f9968(0xac)]();let _0x1ad24a;return _0x1ad24a=this[_0x3f9968(0x98)]?this[_0x3f9968(0x8b)](_0x12b4b9,this[_0x3f9968(0x98)]):_0x12b4b9[_0x3f9968(0x9e)](_0x27a2e6=>_0x27a2e6[_0x3f9968(0xa6)]),_0x1ad24a;}async[_0x4b8e46(0x8d)](_0x5820d2){const _0x2dfffe=_0x4b8e46,_0x1562bf=await this[_0x2dfffe(0xac)]();if(!_0x1562bf[_0x2dfffe(0x89)])return null;if(_0x5820d2){const _0x101e26=this[_0x2dfffe(0x9d)](_0x1562bf,_0x5820d2);if(_0x101e26)return _0x101e26;_0x36c172(_0x2dfffe(0x96),{'modelId':_0x5820d2,'fallBackModelId':this[_0x2dfffe(0x95)]});}return this[_0x2dfffe(0x8f)]();}async[_0x4b8e46(0x8f)](){const _0x55a80f=_0x4b8e46,_0x352476=await this[_0x55a80f(0xb2)]();if(!_0x352476[_0x55a80f(0x89)])return null;if(this[_0x55a80f(0x95)]){const _0xb4b81b=this[_0x55a80f(0x9d)](_0x352476,this[_0x55a80f(0x95)]);if(_0xb4b81b)return _0xb4b81b;_0x36c172(_0x55a80f(0x92),{'defaultModelId':this[_0x55a80f(0x95)],'fallBackModelId':_0x352476[0x0]['id']});}return _0x352476[0x0];}async[_0x4b8e46(0x9c)](_0x17307a){const _0x4ebff6=_0x4b8e46;return(await this[_0x4ebff6(0xb2)]())[_0x4ebff6(0x8e)](_0xb8a671=>_0xb8a671[_0x4ebff6(0x83)]===_0x17307a[_0x4ebff6(0x83)]&&_0xb8a671[_0x4ebff6(0xa1)]===_0x17307a[_0x4ebff6(0xa1)]);}async[_0x4b8e46(0x90)](){const _0x572842=_0x4b8e46;if(!this[_0x572842(0x87)][_0x572842(0x89)])try{const _0x3de73a=this[_0x572842(0x8a)][_0x572842(0x88)]||'en',_0x35ae01=this[_0x572842(0x81)][_0x572842(0xab)](_0x3de73a),_0x503691=await _0x35ae01[_0x572842(0x82)]();this[_0x572842(0x87)]=_0x503691[_0x572842(0x8c)][_0x572842(0xad)](_0x43d2d2=>Mi(_0x43d2d2)?{..._0x43d2d2,'name':_0x13f067(this[_0x572842(0x8a)],_0x572842(0xb3))}:_0x43d2d2);}catch(_0x1f8e6a){throw _0x1bd563(_0x572842(0xa5),{'error':_0x1f8e6a}),_0x1f8e6a;}return[...this[_0x572842(0x87)]];}[_0x4b8e46(0x8b)](_0x41363f,_0x907084){const _0x4b57f0=_0x4b8e46;let _0x4885b3;if(_0x907084){_0x4885b3=[];const _0x60fe83=new Set(),_0x3b2526=_0x4b57f0(0xae)==typeof _0x907084?[_0x907084[_0x4b57f0(0x86)]()]:_0x907084[_0x4b57f0(0xad)](_0x388507=>_0x388507[_0x4b57f0(0x86)]());for(const _0x259901 of _0x3b2526)for(const _0xc0a293 of _0x41363f)!_0x60fe83[_0x4b57f0(0x91)](_0xc0a293['id'])&&this[_0x4b57f0(0xa0)](_0xc0a293,_0x259901)&&(_0x4885b3[_0x4b57f0(0xb0)](_0xc0a293),_0x60fe83[_0x4b57f0(0x99)](_0xc0a293['id']));}else _0x4885b3=_0x41363f;return _0x4885b3;}[_0x4b8e46(0xa0)](_0x706ce1,_0x59d03c){const _0x45c3e5=_0x4b8e46,_0x5e67f6=_0x706ce1['id'][_0x45c3e5(0x86)](),_0x38effc=_0x706ce1[_0x45c3e5(0x83)][_0x45c3e5(0x86)](),_0x43a584=_0x706ce1[_0x45c3e5(0xa1)][_0x45c3e5(0x86)]();return _0x5e67f6===_0x59d03c||_0x38effc===_0x59d03c||Mi(_0x706ce1)&&_0x45c3e5(0xb1)===_0x59d03c||_0x43a584===_0x59d03c||_0x5e67f6[_0x45c3e5(0xa2)](_0x59d03c);}[_0x4b8e46(0x9d)](_0x544115,_0x5f0d86){const _0x58326f=_0x4b8e46;return _0x544115[_0x58326f(0x9a)](_0x3367b9=>Mi(_0x3367b9)&&_0x58326f(0xb1)===_0x5f0d86?_0x3367b9:_0x3367b9['id']===_0x5f0d86)||null;}}function _0x48e1(){const _0x4f00e6=['items','getModel','some','getDefault','_retrieveModels','has','ai-chat-default-model-id-unrecognized','_modelsRequest','117MmdQxj','_defaultModelId','ai-chat-model-id-unrecognized','8402750YPZbls','_availableModels','add','find','8037526WgdwvF','isAvailable','_getModelById','filter','9436ktmGBm','_isMatchingFilter','provider','startsWith','_config','989752CLABti','ai-models-unable-to-retrieve','recommended','167eGIrqm','displayedModels','1072300gJtEpk','5157957HffmGe','getModels','getAll','map','string','defaultModelId','push','auto','getAvailableModels','AI_MODEL_NAME_AUTO','6uOiqRu','_connector','list','name','agent','2370760JLGuJo','toLocaleLowerCase','_modelList','uiLanguage','length','_locale','_filterModels'];_0x48e1=function(){return _0x4f00e6;};return _0x48e1();}function _0x1421(_0x4c006e,_0x1f9525){const _0x48e145=_0x48e1();return _0x1421=function(_0x14211a,_0x4ad6db){_0x14211a=_0x14211a-0x80;let _0x27e6d0=_0x48e145[_0x14211a];return _0x27e6d0;},_0x1421(_0x4c006e,_0x1f9525);}function Mi(_0x17ecd0){const _0x4c93d0=_0x4b8e46;return _0x17ecd0['id'][_0x4c93d0(0xa2)](_0x4c93d0(0x84));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x98a7d4=_0x2cb8;(function(_0x5567e7,_0x2a504e){const _0x7ff649=_0x2cb8,_0x47de50=_0x5567e7();while(!![]){try{const _0x198971=parseInt(_0x7ff649(0x18f))/0x1*(parseInt(_0x7ff649(0x18c))/0x2)+-parseInt(_0x7ff649(0x188))/0x3+-parseInt(_0x7ff649(0x1c3))/0x4+parseInt(_0x7ff649(0x1b6))/0x5*(parseInt(_0x7ff649(0x195))/0x6)+-parseInt(_0x7ff649(0x1bb))/0x7+parseInt(_0x7ff649(0x19b))/0x8+parseInt(_0x7ff649(0x189))/0x9*(parseInt(_0x7ff649(0x183))/0xa);if(_0x198971===_0x2a504e)break;else _0x47de50['push'](_0x47de50['shift']());}catch(_0x38b5ca){_0x47de50['push'](_0x47de50['shift']());}}}(_0x2dfc,0xe9290));import{CKEditorError as _0x4f73e3,ObservableMixin as _0x21ce37,uid as _0x3f1202}from'ckeditor5/src/utils.js';import{Element as _0xc4ca4d,findAll as _0x3b7524,getAttribute as _0x557fb1,getParents as _0x57c1c2,Document as _0x569f7f,parse as _0x39900c,Text as _0x8afc4b}from'../utils/htmlparser.js';function _0x2cb8(_0x289dd2,_0x492702){const _0x2dfc3d=_0x2dfc();return _0x2cb8=function(_0x2cb80c,_0x1395b6){_0x2cb80c=_0x2cb80c-0x182;let _0x530648=_0x2dfc3d[_0x2cb80c];return _0x530648;},_0x2cb8(_0x289dd2,_0x492702);}import{AIResponseParser as _0x688cbf}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0xe2b1a4}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x567f52}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x34eeac}from'../utils/common-translations.js';function _0x2dfc(){const _0x4f7032=['content','withDiff','5MVAYEF','aiResponseApplier','cloneNode','new','getContentParts','7113127qwLPpw','AI_SUGGESTION_CONTENT_PART_REMOVED','includes','_getDifferentChangeGroups','newNodeIds','indexOf','index','modification','2984516tgxkCY','editor','data-id','interactionId','ai-reply-get-content-parts-group-not-found','destroy','length','modifiedNodeIds','cachedSuggestionContentParts','find','areActionsDisabled','stopListening','_setCachedContentParts','node','convertMarkdownToHTML','context','11990zWZxPG','fire','unshift','modified','aiResponseParser','916920Ozwhkb','5877kVDRHm','done','changes','121942ZpxWEr','replyContentUpdated','setChangeGroupState','10yJljSF','changeGroups','every','parsedContent','merge','locale','4750776XtqkUr','_getCachedContentParts','type','color:\x20#808080;\x20font-style:\x20italic','splice','withoutDiff','6708008tOivMK','state','replyChangeGroupStateUpdated','appendContent','parseAndNormalizeHTML','ai-get-editor-from-context-no-editor','sources','nextSibling','removedNodeIds','updateChangeGroups','previousSibling','forEach','map','isDone','filter','set','removed','documentContextContent','change:content','parsedMergedContent','push','pending','data-unstable','span','onContentChange'];_0x2dfc=function(){return _0x4f7032;};return _0x2dfc();}import{cloneDeep as _0x453908}from'es-toolkit';export class AIReply extends _0x21ce37(){['id'];[_0x98a7d4(0x1c6)];[_0x98a7d4(0x197)];[_0x98a7d4(0x1a1)]=[];[_0x98a7d4(0x192)]=new _0x569f7f([]);[_0x98a7d4(0x1ae)]=new _0x569f7f([]);[_0x98a7d4(0x190)]=[];[_0x98a7d4(0x1cd)]=!0x1;[_0x98a7d4(0x1ac)];[_0x98a7d4(0x187)];[_0x98a7d4(0x1b7)];[_0x98a7d4(0x1c4)];[_0x98a7d4(0x1cb)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x160f51,content:_0x337513='',isDone:_0x5399ba=!0x1,interactionId:_0x289d5c,areActionsDisabled:_0x576edc,documentContextContent:_0xf9ca2d,editor:_0x5b8411,id:_0x392a85}){const _0x1adaa4=_0x98a7d4;super(),this['id']=_0x392a85||_0x3f1202(),this[_0x1adaa4(0x1c6)]=_0x289d5c,this[_0x1adaa4(0x197)]=_0x160f51,this[_0x1adaa4(0x1cd)]=!!_0x576edc,this[_0x1adaa4(0x1c4)]=_0x5b8411,this[_0x1adaa4(0x187)]=new _0x688cbf(),this[_0x1adaa4(0x1b7)]=new _0xe2b1a4(),this[_0x1adaa4(0x1ac)]=_0x39900c(_0xf9ca2d||''),this[_0x1adaa4(0x1aa)](_0x1adaa4(0x1a8),_0x5399ba),this['on'](_0x1adaa4(0x1ad),()=>{const _0x3f5870=_0x1adaa4;this[_0x3f5870(0x1b3)]();}),this[_0x1adaa4(0x1aa)](_0x1adaa4(0x1b4),_0x337513);}[_0x98a7d4(0x19e)](_0x462d27){const _0x284c90=_0x98a7d4;this[_0x284c90(0x1aa)](_0x284c90(0x1b4),this[_0x284c90(0x1b4)]+_0x462d27);}[_0x98a7d4(0x18a)](){const _0x431043=_0x98a7d4;this[_0x431043(0x1a8)]||(this[_0x431043(0x1aa)](_0x431043(0x1a8),!0x0),this[_0x431043(0x1b3)]());}[_0x98a7d4(0x1c8)](){const _0x537edf=_0x98a7d4;this[_0x537edf(0x1ce)]();}[_0x98a7d4(0x18e)](_0x2d920a,_0x185340){const _0x5338b5=_0x98a7d4;this[_0x5338b5(0x190)][_0x2d920a][_0x5338b5(0x19c)]=_0x185340,this[_0x5338b5(0x184)](_0x5338b5(0x19d),{'reply':this,'index':_0x2d920a,'state':_0x185340});}[_0x98a7d4(0x1ba)]({showDiff:_0x527370,groupIndex:_0x1d7286}){const _0x3c5327=_0x98a7d4;if(!this[_0x3c5327(0x1c4)])throw new _0x4f73e3(_0x3c5327(0x1a0),null,{'aiReply':this});const _0x26e771=this[_0x3c5327(0x196)](_0x527370,_0x1d7286);if(_0x26e771)return _0x26e771;let _0x548a22=[];if(void 0x0===_0x1d7286)_0x548a22=this[_0x3c5327(0x190)];else{const _0x45cf60=this[_0x3c5327(0x190)][_0x3c5327(0x1cc)](({index:_0x52b40d})=>_0x52b40d===_0x1d7286);if(!_0x45cf60)throw new _0x4f73e3(_0x3c5327(0x1c7),null,{'aiReply':this,'groupIndex':_0x1d7286});_0x548a22=[_0x45cf60];}const _0x18afb6=_0x567f52({'editor':this[_0x3c5327(0x1c4)],'showDiff':_0x527370,'changeGroups':_0x548a22,'documentContextContent':this[_0x3c5327(0x1ac)]});return this[_0x3c5327(0x1cf)](_0x527370,_0x18afb6),_0x18afb6;}[_0x98a7d4(0x196)](_0x1e6a68,_0x416c18){const _0x1e95e6=_0x98a7d4,_0x30a5c4=_0x1e6a68?_0x1e95e6(0x1b5):_0x1e95e6(0x19a);if(!this[_0x1e95e6(0x1cb)][_0x30a5c4][_0x1e95e6(0x1c9)])return null;const _0x532f39=this[_0x1e95e6(0x1cb)][_0x30a5c4];if(void 0x0===_0x416c18)return _0x532f39[_0x1e95e6(0x1c9)]>0x0&&_0x532f39[_0x1e95e6(0x1c9)]!==this[_0x1e95e6(0x190)][_0x1e95e6(0x1c9)]?(this[_0x1e95e6(0x1cf)](_0x1e6a68,null),null):_0x453908(_0x532f39);{const _0x368efc=_0x532f39[_0x1e95e6(0x1cc)](({index:_0x1112ea})=>_0x1112ea===_0x416c18);if(_0x368efc)return[_0x453908(_0x368efc)];}return null;}[_0x98a7d4(0x1cf)](_0x3f1a71,_0x1d18ea){const _0x175e0d=_0x98a7d4,_0x149d3a=_0x3f1a71?_0x175e0d(0x1b5):_0x175e0d(0x19a);_0x1d18ea?_0x1d18ea[_0x175e0d(0x1a6)](_0xaf53c8=>{const _0x254116=_0x175e0d,_0x963c52=this[_0x254116(0x1cb)][_0x149d3a],_0x2a6bb3=_0x963c52[_0x254116(0x1cc)](({index:_0x4c1ef7})=>_0x4c1ef7===_0xaf53c8[_0x254116(0x1c1)]);if(_0x2a6bb3){const _0x38b12b=_0x963c52[_0x254116(0x1c0)](_0x2a6bb3);_0x963c52[_0x254116(0x199)](_0x38b12b,0x1,_0xaf53c8);}else _0x963c52[_0x254116(0x1af)](_0xaf53c8);}):this[_0x175e0d(0x1cb)][_0x149d3a][_0x175e0d(0x1c9)]=0x0;}[_0x98a7d4(0x1b3)](){const _0x2ee3af=_0x98a7d4;if(_0x2ee3af(0x1c2)===this[_0x2ee3af(0x197)]){this[_0x2ee3af(0x192)]=this[_0x2ee3af(0x187)][_0x2ee3af(0x19f)](this[_0x2ee3af(0x1b4)]);const _0x6e5afc=this[_0x2ee3af(0x190)];this[_0x2ee3af(0x1a4)]();const _0x3cd658=this[_0x2ee3af(0x1be)](_0x6e5afc,this[_0x2ee3af(0x190)]);(_0x3cd658[_0x2ee3af(0x1c9)]||this[_0x2ee3af(0x1a8)])&&(this[_0x2ee3af(0x184)](_0x2ee3af(0x18d),this,_0x3cd658),this[_0x2ee3af(0x1cb)][_0x2ee3af(0x1b5)][_0x2ee3af(0x1c9)]=this[_0x2ee3af(0x1cb)][_0x2ee3af(0x19a)][_0x2ee3af(0x1c9)]=0x0);}else this[_0x2ee3af(0x192)]=this[_0x2ee3af(0x187)][_0x2ee3af(0x1d1)](this[_0x2ee3af(0x1b4)]),this[_0x2ee3af(0x184)](_0x2ee3af(0x18d),this);}[_0x98a7d4(0x1be)](_0x46c341,_0x3a0e2e){const _0x1d4320=_0x98a7d4,_0x5dc30d=[];for(const _0x55d2a3 of _0x3a0e2e){const _0x50be5f=_0x46c341[_0x55d2a3[_0x1d4320(0x1c1)]];_0x50be5f?_0x50be5f[_0x1d4320(0x18b)][_0x1d4320(0x1c9)]!==_0x55d2a3[_0x1d4320(0x18b)][_0x1d4320(0x1c9)]?_0x5dc30d[_0x1d4320(0x1af)](_0x55d2a3):_0x50be5f[_0x1d4320(0x18b)][_0x1d4320(0x1a6)]((_0x1b1245,_0xd72e99)=>{const _0x34b4a4=_0x1d4320,_0x23e9ce=_0x55d2a3[_0x34b4a4(0x18b)][_0xd72e99];_0x1b1245['id']!==_0x23e9ce['id']&&_0x5dc30d[_0x34b4a4(0x1af)](_0x55d2a3);}):_0x5dc30d[_0x1d4320(0x1af)](_0x55d2a3);}return _0x5dc30d;}[_0x98a7d4(0x1a4)](){const _0x4e2e47=_0x98a7d4,_0x306f6b=new _0xc4ca4d('p',{},[new _0xc4ca4d(_0x4e2e47(0x1b2),{'style':_0x4e2e47(0x198)},[new _0x8afc4b(_0x34eeac(this[_0x4e2e47(0x1c4)][_0x4e2e47(0x194)],_0x4e2e47(0x1bc)))])]),_0x5e306d=this[_0x4e2e47(0x1b7)][_0x4e2e47(0x193)](this[_0x4e2e47(0x192)],this[_0x4e2e47(0x1ac)][_0x4e2e47(0x1b8)](!0x0),{'markUnstableElements':!this[_0x4e2e47(0x1a8)],'replaceRemovedWith':_0x306f6b,'cutAfterLastChange':!this[_0x4e2e47(0x1a8)]});if(!_0x5e306d[_0x4e2e47(0x1ca)][_0x4e2e47(0x1c9)]&&!this[_0x4e2e47(0x1a8)])return;this[_0x4e2e47(0x1ae)]=_0x5e306d[_0x4e2e47(0x192)];let _0x3492fb=[];if(_0x3b7524(_0x315dae=>{const _0x4b91f8=_0x4e2e47,_0xdacb72=_0x557fb1(_0x315dae,_0x4b91f8(0x1c5));if(!_0xdacb72||!_0x39d3ff(_0xdacb72))return!0x1;const _0x119c66=[_0x315dae,..._0x57c1c2(_0x315dae)]['at'](-0x2);if(_0x315dae!=_0x119c66){const _0x444bf4=_0x557fb1(_0x119c66,_0x4b91f8(0x1c5));_0x39d3ff(_0x444bf4)||(_0x3492fb[_0x4b91f8(0x1af)]({'node':_0x119c66,'id':_0x444bf4,'type':_0x4b91f8(0x186)}),_0x5e306d[_0x4b91f8(0x1ca)][_0x4b91f8(0x1af)](_0x444bf4));}else _0x5e306d[_0x4b91f8(0x1ca)][_0x4b91f8(0x1bd)](_0xdacb72)?_0x3492fb[_0x4b91f8(0x1af)]({'node':_0x315dae,'type':_0x4b91f8(0x186),'id':_0xdacb72}):_0x5e306d[_0x4b91f8(0x1bf)][_0x4b91f8(0x1bd)](_0xdacb72)?_0x3492fb[_0x4b91f8(0x1af)]({'node':_0x315dae,'type':_0x4b91f8(0x1b9),'id':_0xdacb72,'anchorId':_0x557fb1(_0x315dae[_0x4b91f8(0x1a5)],_0x4b91f8(0x1c5))}):_0x3492fb[_0x4b91f8(0x1af)]({'node':_0x315dae,'type':_0x4b91f8(0x1ab),'id':_0xdacb72});return!0x0;},this[_0x4e2e47(0x1ae)]),_0x3492fb=_0x3492fb[_0x4e2e47(0x1a9)](({node:_0x9b1d5f})=>[..._0x57c1c2(_0x9b1d5f),_0x9b1d5f][_0x4e2e47(0x191)](_0x1e49d3=>!_0x557fb1(_0x1e49d3,_0x4e2e47(0x1b1)))),0x0==_0x3492fb[_0x4e2e47(0x1c9)])return;const _0x16966f=[[_0x3492fb[0x0]]];for(let _0x5e9a94=0x1;_0x5e9a94<_0x3492fb[_0x4e2e47(0x1c9)];_0x5e9a94++){const _0x423ba8=_0x16966f[_0x16966f[_0x4e2e47(0x1c9)]-0x1],_0x336e3b=_0x423ba8[_0x423ba8[_0x4e2e47(0x1c9)]-0x1];_0x3492fb[_0x5e9a94][_0x4e2e47(0x1d0)][_0x4e2e47(0x1a5)]==_0x336e3b[_0x4e2e47(0x1d0)]&&_0x4e2e47(0x186)!=_0x3492fb[_0x5e9a94][_0x4e2e47(0x197)]&&_0x4e2e47(0x186)!=_0x336e3b[_0x4e2e47(0x197)]?_0x423ba8[_0x4e2e47(0x1af)](_0x3492fb[_0x5e9a94]):_0x16966f[_0x4e2e47(0x1af)]([_0x3492fb[_0x5e9a94]]);}for(const _0x202146 of _0x16966f){const _0x431176=_0x202146[0x0],_0x5a57c9=_0x202146[_0x202146[_0x4e2e47(0x1c9)]-0x1],_0x391186=_0x4e0a96(_0x431176[_0x4e2e47(0x1d0)][_0x4e2e47(0x1a5)]);_0x391186&&_0x202146[_0x4e2e47(0x185)](_0x391186);const _0x4ef788=_0x4e0a96(_0x5a57c9[_0x4e2e47(0x1d0)][_0x4e2e47(0x1a2)]);_0x4ef788&&_0x202146[_0x4e2e47(0x1af)](_0x4ef788);}function _0x39d3ff(_0x27497f){const _0x227283=_0x4e2e47;return _0x5e306d[_0x227283(0x1ca)][_0x227283(0x1bd)](_0x27497f)||_0x5e306d[_0x227283(0x1bf)][_0x227283(0x1bd)](_0x27497f)||_0x5e306d[_0x227283(0x1a3)][_0x227283(0x1bd)](_0x27497f);}function _0x4e0a96(_0x2d91f7){const _0x1a332a=_0x4e2e47;if(_0x2d91f7&&_0x557fb1(_0x2d91f7,_0x1a332a(0x1c5))&&!_0x557fb1(_0x2d91f7,_0x1a332a(0x1b1))){const _0x2952fa=_0x557fb1(_0x2d91f7,_0x1a332a(0x1c5));if(!_0x39d3ff(_0x2952fa))return{'node':_0x2d91f7,'type':_0x1a332a(0x182),'id':_0x2952fa};}return null;}this[_0x4e2e47(0x190)]=_0x16966f[_0x4e2e47(0x1a7)]((_0x48ddfc,_0x3eeee1)=>({'changes':_0x48ddfc,'state':_0x4e2e47(0x1b0),'index':_0x3eeee1}));}}
23
+ const _0x14c3b9=_0x3503;(function(_0x22d245,_0x3d56b7){const _0x44eda2=_0x3503,_0x31bf08=_0x22d245();while(!![]){try{const _0x54d484=parseInt(_0x44eda2(0xce))/0x1*(parseInt(_0x44eda2(0xec))/0x2)+-parseInt(_0x44eda2(0x10e))/0x3*(parseInt(_0x44eda2(0x116))/0x4)+-parseInt(_0x44eda2(0xd2))/0x5*(-parseInt(_0x44eda2(0x103))/0x6)+parseInt(_0x44eda2(0x101))/0x7*(parseInt(_0x44eda2(0xdb))/0x8)+parseInt(_0x44eda2(0x11a))/0x9+-parseInt(_0x44eda2(0x11d))/0xa*(-parseInt(_0x44eda2(0xd4))/0xb)+-parseInt(_0x44eda2(0x10d))/0xc;if(_0x54d484===_0x3d56b7)break;else _0x31bf08['push'](_0x31bf08['shift']());}catch(_0x5b444b){_0x31bf08['push'](_0x31bf08['shift']());}}}(_0x2525,0x7f8e3));import{CKEditorError as _0x26d62f,ObservableMixin as _0x13c69c,uid as _0xd43f67}from'ckeditor5/src/utils.js';import{Element as _0x5da7c0,findAll as _0x19b7b5,getAttribute as _0x4d2602,getParents as _0x4cb010,Document as _0x46a129,parse as _0x42b5fa,Text as _0x554648}from'../utils/htmlparser.js';import{AIResponseParser as _0x530140}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x5d814a}from'../pipeline/airesponseapplier.js';function _0x3503(_0x48cc50,_0x4c8ee7){const _0x252528=_0x2525();return _0x3503=function(_0x35039b,_0x145606){_0x35039b=_0x35039b-0xcd;let _0x1ac1fc=_0x252528[_0x35039b];return _0x1ac1fc;},_0x3503(_0x48cc50,_0x4c8ee7);}function _0x2525(){const _0x4b26f2=['color:\x20#808080;\x20font-style:\x20italic','done','658567qPBavK','aiResponseParser','258HWvQnE','parsedContent','fire','modifiedNodeIds','includes','nextSibling','editor','AI_SUGGESTION_CONTENT_PART_REMOVED','removed','sources','23540844WbxQTV','1791807aozzWo','span','pending','changeGroups','ai-get-editor-from-context-no-editor','parsedMergedContent','newNodeIds','push','4tWTHKu','ai-reply-get-content-parts-group-not-found','onContentChange','node','835299cLcGym','parseAndNormalizeHTML','interactionId','1399910ccYjQA','type','isDone','1zsluoS','find','withoutDiff','previousSibling','82675pFtznu','setChangeGroupState','77AmQCBR','_getCachedContentParts','removedNodeIds','modification','getContentParts','content','areActionsDisabled','40wwvKsC','_getDifferentChangeGroups','forEach','splice','state','unshift','withDiff','indexOf','set','merge','appendContent','destroy','cloneNode','data-unstable','change:content','length','replyChangeGroupStateUpdated','1654630UGQPkb','every','aiResponseApplier','documentContextContent','filter','convertMarkdownToHTML','locale','context','replyContentUpdated','new','index','modified','map','changes','_setCachedContentParts','updateChangeGroups','data-id','cachedSuggestionContentParts','stopListening'];_0x2525=function(){return _0x4b26f2;};return _0x2525();}import{getSuggestionPartsFromReply as _0x51b6ef}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x59b3a1}from'../utils/common-translations.js';import{cloneDeep as _0x2cfcb6}from'es-toolkit';export class AIReply extends _0x13c69c(){['id'];[_0x14c3b9(0x11c)];[_0x14c3b9(0x11e)];[_0x14c3b9(0x10c)]=[];[_0x14c3b9(0x104)]=new _0x46a129([]);[_0x14c3b9(0x113)]=new _0x46a129([]);[_0x14c3b9(0x111)]=[];[_0x14c3b9(0xda)]=!0x1;[_0x14c3b9(0xef)];[_0x14c3b9(0x102)];[_0x14c3b9(0xee)];[_0x14c3b9(0x109)];[_0x14c3b9(0xfd)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x3db8b4,content:_0x4d401e='',isDone:_0x43cb2e=!0x1,interactionId:_0x345e1b,areActionsDisabled:_0x5a81f1,documentContextContent:_0x214ae8,editor:_0x5c200b,id:_0x5ede42}){const _0x2d20d6=_0x14c3b9;super(),this['id']=_0x5ede42||_0xd43f67(),this[_0x2d20d6(0x11c)]=_0x345e1b,this[_0x2d20d6(0x11e)]=_0x3db8b4,this[_0x2d20d6(0xda)]=!!_0x5a81f1,this[_0x2d20d6(0x109)]=_0x5c200b,this[_0x2d20d6(0x102)]=new _0x530140(),this[_0x2d20d6(0xee)]=new _0x5d814a(),this[_0x2d20d6(0xef)]=_0x42b5fa(_0x214ae8||''),this[_0x2d20d6(0xe3)](_0x2d20d6(0xcd),_0x43cb2e),this['on'](_0x2d20d6(0xe9),()=>{const _0x50f082=_0x2d20d6;this[_0x50f082(0x118)]();}),this[_0x2d20d6(0xe3)](_0x2d20d6(0xd9),_0x4d401e);}[_0x14c3b9(0xe5)](_0x33b3d2){const _0x494481=_0x14c3b9;this[_0x494481(0xe3)](_0x494481(0xd9),this[_0x494481(0xd9)]+_0x33b3d2);}[_0x14c3b9(0x100)](){const _0x3b1e16=_0x14c3b9;this[_0x3b1e16(0xcd)]||(this[_0x3b1e16(0xe3)](_0x3b1e16(0xcd),!0x0),this[_0x3b1e16(0x118)]());}[_0x14c3b9(0xe6)](){const _0x46a4ad=_0x14c3b9;this[_0x46a4ad(0xfe)]();}[_0x14c3b9(0xd3)](_0x2a6cd3,_0x36ed00){const _0x18c96a=_0x14c3b9;this[_0x18c96a(0x111)][_0x2a6cd3][_0x18c96a(0xdf)]=_0x36ed00,this[_0x18c96a(0x105)](_0x18c96a(0xeb),{'reply':this,'index':_0x2a6cd3,'state':_0x36ed00});}[_0x14c3b9(0xd8)]({showDiff:_0x510061,groupIndex:_0x567175}){const _0x192ef0=_0x14c3b9;if(!this[_0x192ef0(0x109)])throw new _0x26d62f(_0x192ef0(0x112),null,{'aiReply':this});const _0x291651=this[_0x192ef0(0xd5)](_0x510061,_0x567175);if(_0x291651)return _0x291651;let _0x1c2327=[];if(void 0x0===_0x567175)_0x1c2327=this[_0x192ef0(0x111)];else{const _0x380b6b=this[_0x192ef0(0x111)][_0x192ef0(0xcf)](({index:_0x7d434c})=>_0x7d434c===_0x567175);if(!_0x380b6b)throw new _0x26d62f(_0x192ef0(0x117),null,{'aiReply':this,'groupIndex':_0x567175});_0x1c2327=[_0x380b6b];}const _0x4d2768=_0x51b6ef({'editor':this[_0x192ef0(0x109)],'showDiff':_0x510061,'changeGroups':_0x1c2327,'documentContextContent':this[_0x192ef0(0xef)]});return this[_0x192ef0(0xfa)](_0x510061,_0x4d2768),_0x4d2768;}[_0x14c3b9(0xd5)](_0x14ef4d,_0x2e889a){const _0x19a416=_0x14c3b9,_0x5e3bc0=_0x14ef4d?_0x19a416(0xe1):_0x19a416(0xd0);if(!this[_0x19a416(0xfd)][_0x5e3bc0][_0x19a416(0xea)])return null;const _0x2c5910=this[_0x19a416(0xfd)][_0x5e3bc0];if(void 0x0===_0x2e889a)return _0x2c5910[_0x19a416(0xea)]>0x0&&_0x2c5910[_0x19a416(0xea)]!==this[_0x19a416(0x111)][_0x19a416(0xea)]?(this[_0x19a416(0xfa)](_0x14ef4d,null),null):_0x2cfcb6(_0x2c5910);{const _0x3243f4=_0x2c5910[_0x19a416(0xcf)](({index:_0x1e5245})=>_0x1e5245===_0x2e889a);if(_0x3243f4)return[_0x2cfcb6(_0x3243f4)];}return null;}[_0x14c3b9(0xfa)](_0x12e043,_0x1e5a8a){const _0x737f13=_0x14c3b9,_0x417b92=_0x12e043?_0x737f13(0xe1):_0x737f13(0xd0);_0x1e5a8a?_0x1e5a8a[_0x737f13(0xdd)](_0x4edd4e=>{const _0x359b88=_0x737f13,_0x319fb4=this[_0x359b88(0xfd)][_0x417b92],_0x24aedf=_0x319fb4[_0x359b88(0xcf)](({index:_0x370ffb})=>_0x370ffb===_0x4edd4e[_0x359b88(0xf6)]);if(_0x24aedf){const _0x3b8286=_0x319fb4[_0x359b88(0xe2)](_0x24aedf);_0x319fb4[_0x359b88(0xde)](_0x3b8286,0x1,_0x4edd4e);}else _0x319fb4[_0x359b88(0x115)](_0x4edd4e);}):this[_0x737f13(0xfd)][_0x417b92][_0x737f13(0xea)]=0x0;}[_0x14c3b9(0x118)](){const _0x7f9c13=_0x14c3b9;if(_0x7f9c13(0xd7)===this[_0x7f9c13(0x11e)]){this[_0x7f9c13(0x104)]=this[_0x7f9c13(0x102)][_0x7f9c13(0x11b)](this[_0x7f9c13(0xd9)]);const _0x3df8ac=this[_0x7f9c13(0x111)];this[_0x7f9c13(0xfb)]();const _0x5b0045=this[_0x7f9c13(0xdc)](_0x3df8ac,this[_0x7f9c13(0x111)]);(_0x5b0045[_0x7f9c13(0xea)]||this[_0x7f9c13(0xcd)])&&(this[_0x7f9c13(0x105)](_0x7f9c13(0xf4),this,_0x5b0045),this[_0x7f9c13(0xfd)][_0x7f9c13(0xe1)][_0x7f9c13(0xea)]=this[_0x7f9c13(0xfd)][_0x7f9c13(0xd0)][_0x7f9c13(0xea)]=0x0);}else this[_0x7f9c13(0x104)]=this[_0x7f9c13(0x102)][_0x7f9c13(0xf1)](this[_0x7f9c13(0xd9)]),this[_0x7f9c13(0x105)](_0x7f9c13(0xf4),this);}[_0x14c3b9(0xdc)](_0x169ac2,_0x3e6337){const _0x44d839=_0x14c3b9,_0x422bc3=[];for(const _0x5d17ca of _0x3e6337){const _0x3ab588=_0x169ac2[_0x5d17ca[_0x44d839(0xf6)]];_0x3ab588?_0x3ab588[_0x44d839(0xf9)][_0x44d839(0xea)]!==_0x5d17ca[_0x44d839(0xf9)][_0x44d839(0xea)]?_0x422bc3[_0x44d839(0x115)](_0x5d17ca):_0x3ab588[_0x44d839(0xf9)][_0x44d839(0xdd)]((_0xc04acc,_0x17f538)=>{const _0x28ea5d=_0x44d839,_0xf78510=_0x5d17ca[_0x28ea5d(0xf9)][_0x17f538];_0xc04acc['id']!==_0xf78510['id']&&_0x422bc3[_0x28ea5d(0x115)](_0x5d17ca);}):_0x422bc3[_0x44d839(0x115)](_0x5d17ca);}return _0x422bc3;}[_0x14c3b9(0xfb)](){const _0x587dd6=_0x14c3b9,_0x37940c=new _0x5da7c0('p',{},[new _0x5da7c0(_0x587dd6(0x10f),{'style':_0x587dd6(0xff)},[new _0x554648(_0x59b3a1(this[_0x587dd6(0x109)][_0x587dd6(0xf2)],_0x587dd6(0x10a)))])]),_0xa38b39=this[_0x587dd6(0xee)][_0x587dd6(0xe4)](this[_0x587dd6(0x104)],this[_0x587dd6(0xef)][_0x587dd6(0xe7)](!0x0),{'markUnstableElements':!this[_0x587dd6(0xcd)],'replaceRemovedWith':_0x37940c,'cutAfterLastChange':!this[_0x587dd6(0xcd)]});if(!_0xa38b39[_0x587dd6(0x106)][_0x587dd6(0xea)]&&!this[_0x587dd6(0xcd)])return;this[_0x587dd6(0x113)]=_0xa38b39[_0x587dd6(0x104)];let _0x579d01=[];if(_0x19b7b5(_0x321589=>{const _0x12ebdf=_0x587dd6,_0x162528=_0x4d2602(_0x321589,_0x12ebdf(0xfc));if(!_0x162528||!_0x409f25(_0x162528))return!0x1;const _0x2caaeb=[_0x321589,..._0x4cb010(_0x321589)]['at'](-0x2);if(_0x321589!=_0x2caaeb){const _0xa6b28b=_0x4d2602(_0x2caaeb,_0x12ebdf(0xfc));_0x409f25(_0xa6b28b)||(_0x579d01[_0x12ebdf(0x115)]({'node':_0x2caaeb,'id':_0xa6b28b,'type':_0x12ebdf(0xf7)}),_0xa38b39[_0x12ebdf(0x106)][_0x12ebdf(0x115)](_0xa6b28b));}else _0xa38b39[_0x12ebdf(0x106)][_0x12ebdf(0x107)](_0x162528)?_0x579d01[_0x12ebdf(0x115)]({'node':_0x321589,'type':_0x12ebdf(0xf7),'id':_0x162528}):_0xa38b39[_0x12ebdf(0x114)][_0x12ebdf(0x107)](_0x162528)?_0x579d01[_0x12ebdf(0x115)]({'node':_0x321589,'type':_0x12ebdf(0xf5),'id':_0x162528,'anchorId':_0x4d2602(_0x321589[_0x12ebdf(0xd1)],_0x12ebdf(0xfc))}):_0x579d01[_0x12ebdf(0x115)]({'node':_0x321589,'type':_0x12ebdf(0x10b),'id':_0x162528});return!0x0;},this[_0x587dd6(0x113)]),_0x579d01=_0x579d01[_0x587dd6(0xf0)](({node:_0x371ffa})=>[..._0x4cb010(_0x371ffa),_0x371ffa][_0x587dd6(0xed)](_0x382725=>!_0x4d2602(_0x382725,_0x587dd6(0xe8)))),0x0==_0x579d01[_0x587dd6(0xea)])return;const _0x45e941=[[_0x579d01[0x0]]];for(let _0x4e43de=0x1;_0x4e43de<_0x579d01[_0x587dd6(0xea)];_0x4e43de++){const _0x513da0=_0x45e941[_0x45e941[_0x587dd6(0xea)]-0x1],_0x11d685=_0x513da0[_0x513da0[_0x587dd6(0xea)]-0x1];_0x579d01[_0x4e43de][_0x587dd6(0x119)][_0x587dd6(0xd1)]==_0x11d685[_0x587dd6(0x119)]&&_0x587dd6(0xf7)!=_0x579d01[_0x4e43de][_0x587dd6(0x11e)]&&_0x587dd6(0xf7)!=_0x11d685[_0x587dd6(0x11e)]?_0x513da0[_0x587dd6(0x115)](_0x579d01[_0x4e43de]):_0x45e941[_0x587dd6(0x115)]([_0x579d01[_0x4e43de]]);}for(const _0xe59796 of _0x45e941){const _0x127a08=_0xe59796[0x0],_0x26d2de=_0xe59796[_0xe59796[_0x587dd6(0xea)]-0x1],_0x2bb3ac=_0x281f3d(_0x127a08[_0x587dd6(0x119)][_0x587dd6(0xd1)]);_0x2bb3ac&&_0xe59796[_0x587dd6(0xe0)](_0x2bb3ac);const _0x47ab58=_0x281f3d(_0x26d2de[_0x587dd6(0x119)][_0x587dd6(0x108)]);_0x47ab58&&_0xe59796[_0x587dd6(0x115)](_0x47ab58);}function _0x409f25(_0x35b615){const _0x5d4b17=_0x587dd6;return _0xa38b39[_0x5d4b17(0x106)][_0x5d4b17(0x107)](_0x35b615)||_0xa38b39[_0x5d4b17(0x114)][_0x5d4b17(0x107)](_0x35b615)||_0xa38b39[_0x5d4b17(0xd6)][_0x5d4b17(0x107)](_0x35b615);}function _0x281f3d(_0x4e6cd2){const _0x2753b7=_0x587dd6;if(_0x4e6cd2&&_0x4d2602(_0x4e6cd2,_0x2753b7(0xfc))&&!_0x4d2602(_0x4e6cd2,_0x2753b7(0xe8))){const _0x190a13=_0x4d2602(_0x4e6cd2,_0x2753b7(0xfc));if(!_0x409f25(_0x190a13))return{'node':_0x4e6cd2,'type':_0x2753b7(0xf3),'id':_0x190a13};}return null;}this[_0x587dd6(0x111)]=_0x45e941[_0x587dd6(0xf8)]((_0x12b656,_0x1ab5d2)=>({'changes':_0x12b656,'state':_0x587dd6(0x110),'index':_0x1ab5d2}));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1305(){const _0x5a4c25=['cutAfterLastChange','data-wrapped-id','_isExistingContentComment','length','afterbegin','beforebegin','childNodes','removedIds','true','includes','_insertNodes','indexOf','465147KeexhA','afterend','reverse','data-removed','_findReferenceNode','_findPrevElementWithDataId','parentNode','1615231WVqHxd','from','_markUnstableElements','_getNodeDataId','newIds','match','replaceRemovedWith','modifiedIds','_isDelNode','nodeType','_markWrappedElements','_hasWrappedParent','13575DRiBYs','merge','10vrawRA','markUnstableElements','_isExistingNode','_storeDeletedElementIds','_findNextElementWithDataId','new-element','_existingDataIds','cloneNode','lastChild','51318RSzFYk','818090kyqmcJ','_getUid','invalidIds','forEach','data-id','markUnstableElementsDepth','670JdKcWj','51957477DBXVCQ','_removeSpecialComments','_isNewNode','_generateUid','3396256mZzPUP','previousSibling','push','has','nextSibling','slice','splice','trim','_findFallbackReferenceNode','data-unstable','_replaceNode','133OelkHS','filter','map','232ellizF','lastTouchedId','_touchedNodesState','_markLastTagElementUnstable'];_0x1305=function(){return _0x5a4c25;};return _0x1305();}function _0x22d2(_0x362640,_0x29ff06){const _0x1305d7=_0x1305();return _0x22d2=function(_0x22d289,_0x5822df){_0x22d289=_0x22d289-0xd9;let _0x426a25=_0x1305d7[_0x22d289];return _0x426a25;},_0x22d2(_0x362640,_0x29ff06);}const _0x2cd79d=_0x22d2;(function(_0x5c65cd,_0xbab362){const _0x48bbbf=_0x22d2,_0x3ffc2a=_0x5c65cd();while(!![]){try{const _0x1a1f71=-parseInt(_0x48bbbf(0xdc))/0x1+-parseInt(_0x48bbbf(0xfa))/0x2*(parseInt(_0x48bbbf(0xe8))/0x3)+parseInt(_0x48bbbf(0xff))/0x4+-parseInt(_0x48bbbf(0xf4))/0x5+-parseInt(_0x48bbbf(0xf3))/0x6*(-parseInt(_0x48bbbf(0x10a))/0x7)+-parseInt(_0x48bbbf(0x10d))/0x8*(parseInt(_0x48bbbf(0x11d))/0x9)+parseInt(_0x48bbbf(0xea))/0xa*(parseInt(_0x48bbbf(0xfb))/0xb);if(_0x1a1f71===_0xbab362)break;else _0x3ffc2a['push'](_0x3ffc2a['shift']());}catch(_0x2fc613){_0x3ffc2a['push'](_0x3ffc2a['shift']());}}}(_0x1305,0xe5d87));import{ObservableMixin as _0x4134ed,uid as _0x393d5b}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x3e8e80,findByAttribute as _0x37d6af,getAttribute as _0x3a322e,isComment as _0x14d468,isTag as _0x1b8a05,insertElement as _0x4ee6a2,moveElement as _0x3d4200,removeElement as _0x59786a,replaceElement as _0x1122de,serialize as _0x40eb07,setAttribute as _0x4bce9b,clone as _0x43e495,findAllComments as _0x2c09d0,getParents as _0x263565,getNodeNestingLevel as _0x5546a3,areNodesSame as _0x404f37,removeElementsAfter as _0x18a5dd}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x4134ed(){[_0x2cd79d(0xfe)];[_0x2cd79d(0x10f)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x2cd79d(0xf0)]=new Set();constructor(_0x3ee483){const _0xbcd9e9=_0x2cd79d;super(),this[_0xbcd9e9(0xfe)]=_0x3ee483||_0x393d5b;}[_0x2cd79d(0xe9)](_0x1efb4e,_0x3c0741,_0x3faf57){const _0x7c060c=_0x2cd79d,_0x46af8e=_0x43e495(_0x1efb4e);if(0x0===_0x3c0741[_0x7c060c(0x117)][_0x7c060c(0x114)]){const _0x44cf02=[];return _0x3e8e80(_0x7c060c(0xf8),_0x7c060c(0xef),_0x46af8e)[_0x7c060c(0xf7)](_0x3bce19=>{const _0xd3b0c4=_0x7c060c,_0x1caaf4=this[_0xd3b0c4(0xfe)]();_0x4bce9b(_0x3bce19,_0xd3b0c4(0xf8),_0x1caaf4),_0x44cf02[_0xd3b0c4(0x101)](_0x1caaf4);}),this[_0x7c060c(0xfc)](_0x46af8e),{'parsedContent':_0x46af8e,'newNodeIds':_0x44cf02,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x3faf57&&_0x3faf57[_0x7c060c(0xeb)]&&this[_0x7c060c(0x110)](_0x46af8e),this[_0x7c060c(0x10f)][_0x7c060c(0xe0)]=[],this[_0x7c060c(0x10f)][_0x7c060c(0xe3)]=[],this[_0x7c060c(0x10f)][_0x7c060c(0x118)]=[],this[_0x7c060c(0x10f)][_0x7c060c(0xf6)]=[],this[_0x7c060c(0x10f)][_0x7c060c(0x10e)]=null,this[_0x7c060c(0xf0)]=new Set(_0x3e8e80(_0x7c060c(0xf8),null,_0x3c0741)[_0x7c060c(0x10c)](_0x18ed8a=>_0x3a322e(_0x18ed8a,_0x7c060c(0xf8)))[_0x7c060c(0x10b)](_0x1552e2=>!!_0x1552e2));let _0x5e12b=-0x1,_0x3eb34a=!0x1;const _0x24f84c=_0x46af8e[_0x7c060c(0x117)],_0x50f34b=Array[_0x7c060c(0xdd)](_0x24f84c)[_0x7c060c(0x10b)](_0x5bf04a=>!(0x3===_0x5bf04a[_0x7c060c(0xe5)]&&''===_0x40eb07(_0x5bf04a)[_0x7c060c(0x106)]())),_0x52c3e3=_0x50f34b[_0x7c060c(0x114)];for(let _0x2e18cb=0x0;_0x2e18cb<_0x52c3e3;_0x2e18cb++){const _0x438e49=_0x50f34b[_0x2e18cb],_0x37dc40=_0x50f34b[_0x2e18cb+0x1];if(this[_0x7c060c(0xfd)](_0x438e49)){if(-0x1===_0x5e12b&&(_0x5e12b=_0x2e18cb),this[_0x7c060c(0xe6)](_0x438e49),!this[_0x7c060c(0xfd)](_0x37dc40)){const [_0x40b01e,_0x53f330]=this[_0x7c060c(0xd9)](_0x438e49,_0x3eb34a,_0x3c0741);if(_0x40b01e){const _0x80e68c=Array[_0x7c060c(0xdd)](_0x50f34b)[_0x7c060c(0x104)](_0x5e12b,_0x2e18cb+0x1);this[_0x7c060c(0x11b)](_0x40b01e,_0x80e68c,_0x53f330),_0x5e12b=-0x1;}}}else{if(this[_0x7c060c(0x113)](_0x438e49))_0x3eb34a=!0x0;else{if(this[_0x7c060c(0xec)](_0x438e49)){const _0x1a7ba6=_0x3a322e(_0x438e49,_0x7c060c(0xf8));if(_0x1a7ba6&&this[_0x7c060c(0xf0)][_0x7c060c(0x102)](_0x1a7ba6)){const _0x18ec3d=_0x37d6af(_0x7c060c(0xf8),_0x1a7ba6,_0x3c0741);this[_0x7c060c(0x109)](_0x18ec3d,_0x438e49);}if(this[_0x7c060c(0x10f)][_0x7c060c(0x118)][_0x7c060c(0x11a)](_0x1a7ba6)){const _0x3e9352=this[_0x7c060c(0x10f)][_0x7c060c(0x118)][_0x7c060c(0x11c)](_0x1a7ba6);this[_0x7c060c(0x10f)][_0x7c060c(0x118)][_0x7c060c(0x105)](_0x3e9352,0x1);}}else{if(this[_0x7c060c(0xe4)](_0x438e49)){const _0x553670=_0x3a322e(_0x438e49,_0x7c060c(0xf8));this[_0x7c060c(0x10f)][_0x7c060c(0xe3)][_0x7c060c(0x11a)](_0x553670)||this[_0x7c060c(0xed)](_0x438e49);}}}}}for(const _0x49e71c of this[_0x7c060c(0x10f)][_0x7c060c(0x118)]){const _0x2bb218=_0x37d6af(_0x7c060c(0xf8),_0x49e71c,_0x3c0741);if(_0x2bb218){if(_0x3faf57&&_0x3faf57[_0x7c060c(0xe2)]){this[_0x7c060c(0x10f)][_0x7c060c(0x10e)]=_0x49e71c;const _0x26fc62=_0x3faf57[_0x7c060c(0xe2)][_0x7c060c(0xf1)](!0x0);_0x4bce9b(_0x26fc62,_0x7c060c(0xf8),_0x49e71c),_0x4bce9b(_0x26fc62,_0x7c060c(0x120),_0x7c060c(0x119)),_0x1122de(_0x2bb218,_0x26fc62);}else _0x59786a(_0x2bb218);}}if(_0x3e8e80(_0x7c060c(0x112),null,_0x3c0741)[_0x7c060c(0xf7)](_0x54a439=>{const _0x9626e7=_0x7c060c,_0x39b380=_0x3a322e(_0x54a439,_0x9626e7(0x112)),_0x10ceba=_0x37d6af(_0x9626e7(0xf8),_0x39b380,_0x3c0741);_0x10ceba&&_0x3d4200(_0x10ceba,_0x54a439);}),_0x3e8e80(_0x7c060c(0xf8),_0x7c060c(0xef),_0x3c0741)[_0x7c060c(0xf7)](_0x2895f5=>{const _0xc6444d=_0x7c060c,_0x4f0cd3=this[_0xc6444d(0xf5)](_0x2895f5);_0x4bce9b(_0x2895f5,_0xc6444d(0xf8),_0x4f0cd3),this[_0xc6444d(0x10f)][_0xc6444d(0xe0)][_0xc6444d(0x101)](_0x4f0cd3);}),this[_0x7c060c(0xfc)](_0x3c0741),_0x3faf57&&_0x3faf57[_0x7c060c(0xeb)]&&this[_0x7c060c(0xde)](_0x3c0741,_0x3faf57[_0x7c060c(0xf9)]||0x0),_0x3faf57&&_0x3faf57[_0x7c060c(0x111)]&&this[_0x7c060c(0x10f)][_0x7c060c(0x10e)]){let _0x655e77=_0x37d6af(_0x7c060c(0xf8),this[_0x7c060c(0x10f)][_0x7c060c(0x10e)],_0x3c0741);for(;_0x655e77;)_0x18a5dd(_0x655e77),_0x655e77=_0x655e77[_0x7c060c(0xdb)];}return{'parsedContent':_0x3c0741,'newNodeIds':this[_0x7c060c(0x10f)][_0x7c060c(0xe0)],'modifiedNodeIds':this[_0x7c060c(0x10f)][_0x7c060c(0xe3)],'removedNodeIds':this[_0x7c060c(0x10f)][_0x7c060c(0x118)]};}[_0x2cd79d(0x11b)](_0x345d26,_0x2232b0,_0x1b3c43){const _0x4250d1=_0x2cd79d;for(const _0xc17e8c of _0x2232b0){const _0x14f2ad=this[_0x4250d1(0xf5)](_0xc17e8c);_0x4bce9b(_0xc17e8c,_0x4250d1(0xf8),_0x14f2ad),this[_0x4250d1(0x10f)][_0x4250d1(0xe0)][_0x4250d1(0x101)](_0x14f2ad),this[_0x4250d1(0x10f)][_0x4250d1(0x10e)]=_0x14f2ad;}const _0xb90da7=_0x4250d1(0x115)===_0x1b3c43||_0x4250d1(0x11e)===_0x1b3c43?_0x2232b0[_0x4250d1(0x11f)]():_0x2232b0;for(const _0x7ccfc2 of _0xb90da7)_0x4ee6a2(_0x345d26,_0x7ccfc2,_0x1b3c43);}[_0x2cd79d(0x109)](_0x290b48,_0x5b0f93){const _0x3870c4=_0x2cd79d;if(!_0x290b48)return;if(_0x404f37(_0x290b48,_0x5b0f93))return;const _0x30702e=this[_0x3870c4(0xf5)](_0x290b48);_0x4bce9b(_0x5b0f93,_0x3870c4(0xf8),_0x30702e),this[_0x3870c4(0x10f)][_0x3870c4(0xe3)][_0x3870c4(0x101)](_0x30702e),this[_0x3870c4(0x10f)][_0x3870c4(0x10e)]=_0x30702e,_0x1122de(_0x290b48,_0x5b0f93[_0x3870c4(0xf1)](!0x0));}[_0x2cd79d(0xd9)](_0x1475c7,_0x4d5d83,_0x168573){const _0x217fa6=_0x2cd79d,_0x11d50d=this[_0x217fa6(0xda)](_0x1475c7,!0x1);if(_0x11d50d){const _0x14d871=this[_0x217fa6(0xdf)](_0x11d50d),_0x577332=_0x37d6af(_0x217fa6(0xf8),_0x14d871,_0x168573);if(_0x577332)return[_0x577332,_0x217fa6(0x11e)];this[_0x217fa6(0x10f)][_0x217fa6(0xf6)][_0x217fa6(0x101)](_0x14d871);}const _0x57638c=this[_0x217fa6(0xee)](_0x1475c7,!0x1);if(_0x57638c){const _0x283270=this[_0x217fa6(0xdf)](_0x57638c),_0x10acf8=_0x37d6af(_0x217fa6(0xf8),_0x283270,_0x168573);if(_0x10acf8)return[_0x10acf8,_0x217fa6(0x116)];this[_0x217fa6(0x10f)][_0x217fa6(0xf6)][_0x217fa6(0x101)](_0x283270);}return _0x4d5d83?_0x1475c7[_0x217fa6(0x103)]?this[_0x217fa6(0x107)](_0x1475c7,_0x168573):[_0x168573[_0x217fa6(0x117)][_0x168573[_0x217fa6(0x117)][_0x217fa6(0x114)]-0x1],_0x217fa6(0x11e)]:[_0x168573[_0x217fa6(0x117)][0x0],_0x217fa6(0x116)];}[_0x2cd79d(0x107)](_0xb2f8d5,_0x374233){const _0x2cc91c=_0x2cd79d,_0x2b3943=[],_0x3c01bd=this[_0x2cc91c(0xda)](_0xb2f8d5,!0x0);if(_0x3c01bd){const _0x5934c7=this[_0x2cc91c(0xdf)](_0x3c01bd),_0x43f434=_0x37d6af(_0x2cc91c(0xf8),_0x5934c7,_0x374233);_0x43f434&&_0x2b3943[_0x2cc91c(0x101)]([_0x43f434,_0x2cc91c(0x11e)]);}const _0x2da2b2=this[_0x2cc91c(0xee)](_0xb2f8d5,!0x0);if(_0x2da2b2){const _0x5ae065=this[_0x2cc91c(0xdf)](_0x2da2b2),_0x1df23c=_0x37d6af(_0x2cc91c(0xf8),_0x5ae065,_0x374233);_0x1df23c&&_0x2b3943[_0x2cc91c(0x101)]([_0x1df23c,_0x2cc91c(0x116)]);}if(_0x2b3943[_0x2cc91c(0x114)]>0x1)return _0x5546a3(_0x2b3943[0x0][0x0])<=_0x5546a3(_0x2b3943[0x1][0x0])?_0x2b3943[0x0]:_0x2b3943[0x1];return 0x1===_0x2b3943[_0x2cc91c(0x114)]?_0x2b3943[0x0]:[_0x374233[_0x2cc91c(0xf2)],_0x2cc91c(0x11e)];}[_0x2cd79d(0xee)](_0x56ef4a,_0x3b6233){const _0x164a0f=_0x2cd79d;let _0x19a039=_0x56ef4a[_0x164a0f(0x103)],_0x547ed3=null,_0x4f5bb8=!0x1;for(;_0x19a039;){if(_0x14d468(_0x19a039)){if(this[_0x164a0f(0xe4)](_0x19a039)&&(_0x547ed3=_0x19a039),this[_0x164a0f(0x113)](_0x19a039)&&_0x3b6233&&!_0x4f5bb8){_0x4f5bb8=!0x0,_0x19a039=_0x19a039[_0x164a0f(0x103)];continue;}break;}const _0x23e0a9=_0x3a322e(_0x19a039,_0x164a0f(0xf8));if(_0x23e0a9&&_0x164a0f(0xef)!==_0x23e0a9&&this[_0x164a0f(0xf0)][_0x164a0f(0x102)](_0x23e0a9)){_0x547ed3=_0x19a039;break;}_0x19a039=_0x19a039[_0x164a0f(0x103)];}return _0x547ed3;}[_0x2cd79d(0xda)](_0x196a83,_0x4d24ac){const _0x109111=_0x2cd79d;let _0x622d75=_0x196a83[_0x109111(0x100)],_0x3f1f15=null,_0x3bd115=!0x1;for(;_0x622d75;){if(_0x14d468(_0x622d75)){if(this[_0x109111(0xe4)](_0x622d75)&&(_0x3f1f15=_0x622d75),this[_0x109111(0x113)](_0x622d75)&&_0x4d24ac&&!_0x3bd115){_0x3bd115=!0x0,_0x622d75=_0x622d75[_0x109111(0x100)];continue;}break;}const _0x38d21b=_0x3a322e(_0x622d75,_0x109111(0xf8));if(_0x38d21b&&_0x109111(0xef)!==_0x38d21b&&this[_0x109111(0xf0)][_0x109111(0x102)](_0x38d21b)){_0x3f1f15=_0x622d75;break;}_0x622d75=_0x622d75[_0x109111(0x100)];}return _0x3f1f15;}[_0x2cd79d(0xe6)](_0x1ae3eb){const _0x9c3f37=_0x2cd79d;_0x1b8a05(_0x1ae3eb)&&_0x3e8e80(_0x9c3f37(0xf8),null,_0x1ae3eb)[_0x9c3f37(0xf7)](_0xf5487b=>{const _0x24d8e6=_0x9c3f37;if(this[_0x24d8e6(0xec)](_0xf5487b)&&!this[_0x24d8e6(0xe7)](_0xf5487b)){const _0x17c0ba=_0x3a322e(_0xf5487b,_0x24d8e6(0xf8));_0x4bce9b(_0xf5487b,_0x24d8e6(0x112),_0x17c0ba),_0x4bce9b(_0xf5487b,_0x24d8e6(0xf8),null);}});}[_0x2cd79d(0xdf)](_0x459592){const _0x349444=_0x2cd79d;if(!_0x459592)return null;if(_0x1b8a05(_0x459592))return _0x3a322e(_0x459592,_0x349444(0xf8));if(_0x14d468(_0x459592)){const _0xc914c7=_0x40eb07(_0x459592)[_0x349444(0xe1)](/removed[\s*-]data-id="([^"]+)"/);if(_0xc914c7&&_0xc914c7[0x1])return _0xc914c7[0x1];}return null;}[_0x2cd79d(0xed)](_0x3fb61a){const _0x58a5d7=_0x2cd79d;if(_0x14d468(_0x3fb61a)){const _0x2b238b=_0x40eb07(_0x3fb61a)[_0x58a5d7(0xe1)](/removed[\s*-]data-id="([^"]+)"/);_0x2b238b&&_0x2b238b[0x1]&&this[_0x58a5d7(0x10f)][_0x58a5d7(0x118)][_0x58a5d7(0x101)](_0x2b238b[0x1]);}}[_0x2cd79d(0xf5)](_0x43ac64){const _0x3a3782=_0x2cd79d;return this[_0x3a3782(0xec)](_0x43ac64)?_0x3a322e(_0x43ac64,_0x3a3782(0xf8)):this[_0x3a3782(0xfe)]();}[_0x2cd79d(0xfc)](_0x1eb367){const _0x21853c=_0x2cd79d;_0x2c09d0(_0x1eb367)[_0x21853c(0x10b)](_0x5de079=>this[_0x21853c(0xe4)](_0x5de079)||this[_0x21853c(0x113)](_0x5de079))[_0x21853c(0xf7)](_0x5f4000=>{_0x59786a(_0x5f4000);});}[_0x2cd79d(0x110)](_0x51c38b){const _0x391bf8=_0x2cd79d,_0x576229=_0x51c38b[_0x391bf8(0x117)],_0x2da2b9=_0x576229[_0x576229[_0x391bf8(0x114)]-0x1];_0x2da2b9&&_0x1b8a05(_0x2da2b9)&&_0x4bce9b(_0x2da2b9,_0x391bf8(0x108),_0x391bf8(0x119));}[_0x2cd79d(0xde)](_0x2b8d23,_0x2c6882){const _0x161b0b=_0x2cd79d,_0x4d6d3a=_0x37d6af(_0x161b0b(0x108),_0x161b0b(0x119),_0x2b8d23);if(!_0x4d6d3a)return;const _0x5d996f=_0x263565(_0x4d6d3a)[_0x161b0b(0x104)](0x0,-0x1),_0x17a138=_0x5d996f[_0x161b0b(0x114)];let _0x532522=_0x4d6d3a;if(_0x17a138>_0x2c6882){let _0x3fc356=_0x17a138,_0x1b7d0c=null;for(;_0x3fc356>_0x2c6882&&_0x3fc356>=0x0;)_0x3fc356--,_0x1b7d0c=_0x5d996f[_0x3fc356];_0x1b7d0c&&(_0x532522=_0x1b7d0c,_0x4bce9b(_0x4d6d3a,_0x161b0b(0x108),null),_0x4bce9b(_0x1b7d0c,_0x161b0b(0x108),_0x161b0b(0x119)));}else{if(_0x17a138<_0x2c6882){let _0x1b6600=_0x17a138,_0x5a587f=_0x4d6d3a;for(;_0x1b6600<_0x2c6882;){const _0x21308a=_0x5a587f[_0x161b0b(0x117)][_0x161b0b(0x10b)](_0x3931a4=>_0x1b8a05(_0x3931a4));if(0x0===_0x21308a[_0x161b0b(0x114)])break;_0x1b6600++,_0x5a587f=_0x21308a[_0x21308a[_0x161b0b(0x114)]-0x1];}_0x5a587f&&(_0x532522=_0x5a587f,_0x4bce9b(_0x4d6d3a,_0x161b0b(0x108),null),_0x4bce9b(_0x5a587f,_0x161b0b(0x108),_0x161b0b(0x119)));}}let _0xbe69b5=_0x532522;for(;_0xbe69b5;){for(;_0xbe69b5[_0x161b0b(0x103)];)_0xbe69b5=_0xbe69b5[_0x161b0b(0x103)],_0x1b8a05(_0xbe69b5)&&_0x4bce9b(_0xbe69b5,_0x161b0b(0x108),_0x161b0b(0x119));_0xbe69b5=_0xbe69b5[_0x161b0b(0xdb)];}}[_0x2cd79d(0xfd)](_0x3cc4b8){const _0x80d90e=_0x2cd79d;return Boolean(_0x80d90e(0xef)===_0x3a322e(_0x3cc4b8,_0x80d90e(0xf8)));}[_0x2cd79d(0xec)](_0xecfd4e){const _0x10c61c=_0x2cd79d;return Boolean((_0x3a322e(_0xecfd4e,_0x10c61c(0xf8))||'')[_0x10c61c(0x114)]>0x0&&_0x10c61c(0xef)!==_0x3a322e(_0xecfd4e,_0x10c61c(0xf8)));}[_0x2cd79d(0xe4)](_0x2866a1){const _0x4d4d0d=_0x2cd79d;return!!_0x2866a1&&Boolean(_0x14d468(_0x2866a1)&&_0x40eb07(_0x2866a1)[_0x4d4d0d(0xe1)](/removed[\s*-]data-id="[^"]+"/));}[_0x2cd79d(0xe7)](_0x352302){const _0x54b730=_0x2cd79d;let _0x5cc604=_0x352302[_0x54b730(0xdb)];for(;_0x5cc604;){if(_0x3a322e(_0x5cc604,_0x54b730(0x112)))return!0x0;_0x5cc604=_0x5cc604[_0x54b730(0xdb)];}return!0x1;}[_0x2cd79d(0x113)](_0x4941e8){const _0xd28efd=_0x2cd79d;return Boolean(_0x14d468(_0x4941e8)&&_0x40eb07(_0x4941e8)[_0xd28efd(0xe1)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ const _0x25cb04=_0x24cd;(function(_0xfcc6bb,_0x5960a6){const _0x124042=_0x24cd,_0x2d7825=_0xfcc6bb();while(!![]){try{const _0x55ba7a=-parseInt(_0x124042(0x1ff))/0x1*(parseInt(_0x124042(0x232))/0x2)+parseInt(_0x124042(0x206))/0x3*(parseInt(_0x124042(0x1f3))/0x4)+parseInt(_0x124042(0x228))/0x5*(parseInt(_0x124042(0x1f0))/0x6)+parseInt(_0x124042(0x21e))/0x7*(-parseInt(_0x124042(0x1fa))/0x8)+parseInt(_0x124042(0x1f4))/0x9*(parseInt(_0x124042(0x1f6))/0xa)+-parseInt(_0x124042(0x211))/0xb+-parseInt(_0x124042(0x1fd))/0xc*(-parseInt(_0x124042(0x214))/0xd);if(_0x55ba7a===_0x5960a6)break;else _0x2d7825['push'](_0x2d7825['shift']());}catch(_0x232919){_0x2d7825['push'](_0x2d7825['shift']());}}}(_0x2c9f,0x922ff));function _0x24cd(_0x2090ae,_0x12149a){const _0x2c9f7f=_0x2c9f();return _0x24cd=function(_0x24cd55,_0x18e487){_0x24cd55=_0x24cd55-0x1ec;let _0x448dc4=_0x2c9f7f[_0x24cd55];return _0x448dc4;},_0x24cd(_0x2090ae,_0x12149a);}import{ObservableMixin as _0x396f1c,uid as _0xc476e5}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x430249,findByAttribute as _0x3080df,getAttribute as _0x56e1d5,isComment as _0x1b2abf,isTag as _0x1faa1d,insertElement as _0x47905d,moveElement as _0xfbd06c,removeElement as _0x44a560,replaceElement as _0x2b42cd,serialize as _0x3ec396,setAttribute as _0x492fbd,clone as _0x196dd8,findAllComments as _0x29cb21,getParents as _0x283918,getNodeNestingLevel as _0x2b9152,areNodesSame as _0x33a473,removeElementsAfter as _0x41c306}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x396f1c(){[_0x25cb04(0x226)];[_0x25cb04(0x21f)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x25cb04(0x1fc)]=new Set();constructor(_0x34888e){const _0x59417e=_0x25cb04;super(),this[_0x59417e(0x226)]=_0x34888e||_0xc476e5;}[_0x25cb04(0x210)](_0x46b167,_0x2dd0cd,_0x2963d9){const _0x2fa86c=_0x25cb04,_0x3ca0bc=_0x196dd8(_0x46b167);if(0x0===_0x2dd0cd[_0x2fa86c(0x1ee)][_0x2fa86c(0x200)]){const _0x249abf=[];return _0x430249(_0x2fa86c(0x216),_0x2fa86c(0x20e),_0x3ca0bc)[_0x2fa86c(0x1f2)](_0x2c2b7a=>{const _0x54afd4=_0x2fa86c,_0x45618f=this[_0x54afd4(0x226)]();_0x492fbd(_0x2c2b7a,_0x54afd4(0x216),_0x45618f),_0x249abf[_0x54afd4(0x22f)](_0x45618f);}),this[_0x2fa86c(0x1f5)](_0x3ca0bc),{'parsedContent':_0x3ca0bc,'newNodeIds':_0x249abf,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x2963d9&&_0x2963d9[_0x2fa86c(0x1f9)]&&this[_0x2fa86c(0x21b)](_0x3ca0bc),this[_0x2fa86c(0x21f)][_0x2fa86c(0x218)]=[],this[_0x2fa86c(0x21f)][_0x2fa86c(0x22b)]=[],this[_0x2fa86c(0x21f)][_0x2fa86c(0x21c)]=[],this[_0x2fa86c(0x21f)][_0x2fa86c(0x229)]=[],this[_0x2fa86c(0x21f)][_0x2fa86c(0x215)]=null,this[_0x2fa86c(0x1fc)]=new Set(_0x430249(_0x2fa86c(0x216),null,_0x2dd0cd)[_0x2fa86c(0x20f)](_0x5ea77b=>_0x56e1d5(_0x5ea77b,_0x2fa86c(0x216)))[_0x2fa86c(0x207)](_0x1d5b07=>!!_0x1d5b07));let _0x407ab6=-0x1,_0xdc8372=!0x1;const _0x439582=_0x3ca0bc[_0x2fa86c(0x1ee)],_0x433a7f=Array[_0x2fa86c(0x231)](_0x439582)[_0x2fa86c(0x207)](_0x2021ad=>!(0x3===_0x2021ad[_0x2fa86c(0x1ec)]&&''===_0x3ec396(_0x2021ad)[_0x2fa86c(0x22d)]())),_0x34c3bb=_0x433a7f[_0x2fa86c(0x200)];for(let _0x32480f=0x0;_0x32480f<_0x34c3bb;_0x32480f++){const _0x4da901=_0x433a7f[_0x32480f],_0x2137f7=_0x433a7f[_0x32480f+0x1];if(this[_0x2fa86c(0x22a)](_0x4da901)){if(-0x1===_0x407ab6&&(_0x407ab6=_0x32480f),this[_0x2fa86c(0x209)](_0x4da901),!this[_0x2fa86c(0x22a)](_0x2137f7)){const [_0x246e0b,_0x22e8a8]=this[_0x2fa86c(0x212)](_0x4da901,_0xdc8372,_0x2dd0cd);if(_0x246e0b){const _0x461c99=Array[_0x2fa86c(0x231)](_0x433a7f)[_0x2fa86c(0x234)](_0x407ab6,_0x32480f+0x1);this[_0x2fa86c(0x223)](_0x246e0b,_0x461c99,_0x22e8a8),_0x407ab6=-0x1;}}}else{if(this[_0x2fa86c(0x1f1)](_0x4da901))_0xdc8372=!0x0;else{if(this[_0x2fa86c(0x219)](_0x4da901)){const _0x54d509=_0x56e1d5(_0x4da901,_0x2fa86c(0x216));if(_0x54d509&&this[_0x2fa86c(0x1fc)][_0x2fa86c(0x201)](_0x54d509)){const _0x3caea9=_0x3080df(_0x2fa86c(0x216),_0x54d509,_0x2dd0cd);this[_0x2fa86c(0x213)](_0x3caea9,_0x4da901);}if(this[_0x2fa86c(0x21f)][_0x2fa86c(0x21c)][_0x2fa86c(0x1ed)](_0x54d509)){const _0x22b772=this[_0x2fa86c(0x21f)][_0x2fa86c(0x21c)][_0x2fa86c(0x233)](_0x54d509);this[_0x2fa86c(0x21f)][_0x2fa86c(0x21c)][_0x2fa86c(0x217)](_0x22b772,0x1);}}else{if(this[_0x2fa86c(0x202)](_0x4da901)){const _0x5bd4af=_0x56e1d5(_0x4da901,_0x2fa86c(0x216));this[_0x2fa86c(0x21f)][_0x2fa86c(0x22b)][_0x2fa86c(0x1ed)](_0x5bd4af)||this[_0x2fa86c(0x20c)](_0x4da901);}}}}}for(const _0x41b406 of this[_0x2fa86c(0x21f)][_0x2fa86c(0x21c)]){const _0x474e39=_0x3080df(_0x2fa86c(0x216),_0x41b406,_0x2dd0cd);if(_0x474e39){if(_0x2963d9&&_0x2963d9[_0x2fa86c(0x1ef)]){this[_0x2fa86c(0x21f)][_0x2fa86c(0x215)]=_0x41b406;const _0x35dfeb=_0x2963d9[_0x2fa86c(0x1ef)][_0x2fa86c(0x20a)](!0x0);_0x492fbd(_0x35dfeb,_0x2fa86c(0x216),_0x41b406),_0x492fbd(_0x35dfeb,_0x2fa86c(0x21d),_0x2fa86c(0x1f7)),_0x2b42cd(_0x474e39,_0x35dfeb);}else _0x44a560(_0x474e39);}}if(_0x430249(_0x2fa86c(0x20d),null,_0x2dd0cd)[_0x2fa86c(0x1f2)](_0x4b8743=>{const _0x423263=_0x2fa86c,_0x4d67c5=_0x56e1d5(_0x4b8743,_0x423263(0x20d)),_0x4fd52c=_0x3080df(_0x423263(0x216),_0x4d67c5,_0x2dd0cd);_0x4fd52c&&_0xfbd06c(_0x4fd52c,_0x4b8743);}),_0x430249(_0x2fa86c(0x216),_0x2fa86c(0x20e),_0x2dd0cd)[_0x2fa86c(0x1f2)](_0x6f54d3=>{const _0x20ebb7=_0x2fa86c,_0x100663=this[_0x20ebb7(0x230)](_0x6f54d3);_0x492fbd(_0x6f54d3,_0x20ebb7(0x216),_0x100663),this[_0x20ebb7(0x21f)][_0x20ebb7(0x218)][_0x20ebb7(0x22f)](_0x100663);}),this[_0x2fa86c(0x1f5)](_0x2dd0cd),_0x2963d9&&_0x2963d9[_0x2fa86c(0x1f9)]&&this[_0x2fa86c(0x227)](_0x2dd0cd,_0x2963d9[_0x2fa86c(0x22c)]||0x0),_0x2963d9&&_0x2963d9[_0x2fa86c(0x20b)]&&this[_0x2fa86c(0x21f)][_0x2fa86c(0x215)]){let _0x1cb472=_0x3080df(_0x2fa86c(0x216),this[_0x2fa86c(0x21f)][_0x2fa86c(0x215)],_0x2dd0cd);for(;_0x1cb472;)_0x41c306(_0x1cb472),_0x1cb472=_0x1cb472[_0x2fa86c(0x1fe)];}return{'parsedContent':_0x2dd0cd,'newNodeIds':this[_0x2fa86c(0x21f)][_0x2fa86c(0x218)],'modifiedNodeIds':this[_0x2fa86c(0x21f)][_0x2fa86c(0x22b)],'removedNodeIds':this[_0x2fa86c(0x21f)][_0x2fa86c(0x21c)]};}[_0x25cb04(0x223)](_0x5960a4,_0x388bd9,_0x1c24ba){const _0x1701b0=_0x25cb04;for(const _0x432e44 of _0x388bd9){const _0x13d2b0=this[_0x1701b0(0x230)](_0x432e44);_0x492fbd(_0x432e44,_0x1701b0(0x216),_0x13d2b0),this[_0x1701b0(0x21f)][_0x1701b0(0x218)][_0x1701b0(0x22f)](_0x13d2b0),this[_0x1701b0(0x21f)][_0x1701b0(0x215)]=_0x13d2b0;}const _0x2b886b=_0x1701b0(0x21a)===_0x1c24ba||_0x1701b0(0x1fb)===_0x1c24ba?_0x388bd9[_0x1701b0(0x205)]():_0x388bd9;for(const _0x5af965 of _0x2b886b)_0x47905d(_0x5960a4,_0x5af965,_0x1c24ba);}[_0x25cb04(0x213)](_0x399dbe,_0x4f50d2){const _0xc7459=_0x25cb04;if(!_0x399dbe)return;if(_0x33a473(_0x399dbe,_0x4f50d2))return;const _0x413b37=this[_0xc7459(0x230)](_0x399dbe);_0x492fbd(_0x4f50d2,_0xc7459(0x216),_0x413b37),this[_0xc7459(0x21f)][_0xc7459(0x22b)][_0xc7459(0x22f)](_0x413b37),this[_0xc7459(0x21f)][_0xc7459(0x215)]=_0x413b37,_0x2b42cd(_0x399dbe,_0x4f50d2[_0xc7459(0x20a)](!0x0));}[_0x25cb04(0x212)](_0x108e13,_0xda8d6b,_0x56f970){const _0x4d8dbf=_0x25cb04,_0x36afeb=this[_0x4d8dbf(0x203)](_0x108e13,!0x1);if(_0x36afeb){const _0x425d09=this[_0x4d8dbf(0x208)](_0x36afeb),_0x316b91=_0x3080df(_0x4d8dbf(0x216),_0x425d09,_0x56f970);if(_0x316b91)return[_0x316b91,_0x4d8dbf(0x1fb)];this[_0x4d8dbf(0x21f)][_0x4d8dbf(0x229)][_0x4d8dbf(0x22f)](_0x425d09);}const _0x128d96=this[_0x4d8dbf(0x220)](_0x108e13,!0x1);if(_0x128d96){const _0x4415e3=this[_0x4d8dbf(0x208)](_0x128d96),_0x32bbc0=_0x3080df(_0x4d8dbf(0x216),_0x4415e3,_0x56f970);if(_0x32bbc0)return[_0x32bbc0,_0x4d8dbf(0x224)];this[_0x4d8dbf(0x21f)][_0x4d8dbf(0x229)][_0x4d8dbf(0x22f)](_0x4415e3);}return _0xda8d6b?_0x108e13[_0x4d8dbf(0x225)]?this[_0x4d8dbf(0x204)](_0x108e13,_0x56f970):[_0x56f970[_0x4d8dbf(0x1ee)][_0x56f970[_0x4d8dbf(0x1ee)][_0x4d8dbf(0x200)]-0x1],_0x4d8dbf(0x1fb)]:[_0x56f970[_0x4d8dbf(0x1ee)][0x0],_0x4d8dbf(0x224)];}[_0x25cb04(0x204)](_0x39bb2e,_0x4e5ba5){const _0x14478e=_0x25cb04,_0x53ab24=[],_0x353118=this[_0x14478e(0x203)](_0x39bb2e,!0x0);if(_0x353118){const _0x51fc6d=this[_0x14478e(0x208)](_0x353118),_0x4ec1f0=_0x3080df(_0x14478e(0x216),_0x51fc6d,_0x4e5ba5);_0x4ec1f0&&_0x53ab24[_0x14478e(0x22f)]([_0x4ec1f0,_0x14478e(0x1fb)]);}const _0x3fe9a9=this[_0x14478e(0x220)](_0x39bb2e,!0x0);if(_0x3fe9a9){const _0x67efa4=this[_0x14478e(0x208)](_0x3fe9a9),_0x388581=_0x3080df(_0x14478e(0x216),_0x67efa4,_0x4e5ba5);_0x388581&&_0x53ab24[_0x14478e(0x22f)]([_0x388581,_0x14478e(0x224)]);}if(_0x53ab24[_0x14478e(0x200)]>0x1)return _0x2b9152(_0x53ab24[0x0][0x0])<=_0x2b9152(_0x53ab24[0x1][0x0])?_0x53ab24[0x0]:_0x53ab24[0x1];return 0x1===_0x53ab24[_0x14478e(0x200)]?_0x53ab24[0x0]:[_0x4e5ba5[_0x14478e(0x222)],_0x14478e(0x1fb)];}[_0x25cb04(0x220)](_0xb386a6,_0xecfccf){const _0x2d7a5c=_0x25cb04;let _0x262f36=_0xb386a6[_0x2d7a5c(0x225)],_0x2e9e4f=null,_0x3caaf5=!0x1;for(;_0x262f36;){if(_0x1b2abf(_0x262f36)){if(this[_0x2d7a5c(0x202)](_0x262f36)&&(_0x2e9e4f=_0x262f36),this[_0x2d7a5c(0x1f1)](_0x262f36)&&_0xecfccf&&!_0x3caaf5){_0x3caaf5=!0x0,_0x262f36=_0x262f36[_0x2d7a5c(0x225)];continue;}break;}const _0x2a32fc=_0x56e1d5(_0x262f36,_0x2d7a5c(0x216));if(_0x2a32fc&&_0x2d7a5c(0x20e)!==_0x2a32fc&&this[_0x2d7a5c(0x1fc)][_0x2d7a5c(0x201)](_0x2a32fc)){_0x2e9e4f=_0x262f36;break;}_0x262f36=_0x262f36[_0x2d7a5c(0x225)];}return _0x2e9e4f;}[_0x25cb04(0x203)](_0x10fdb8,_0x4a203c){const _0x411710=_0x25cb04;let _0x10aab5=_0x10fdb8[_0x411710(0x221)],_0x36d21a=null,_0x5026cc=!0x1;for(;_0x10aab5;){if(_0x1b2abf(_0x10aab5)){if(this[_0x411710(0x202)](_0x10aab5)&&(_0x36d21a=_0x10aab5),this[_0x411710(0x1f1)](_0x10aab5)&&_0x4a203c&&!_0x5026cc){_0x5026cc=!0x0,_0x10aab5=_0x10aab5[_0x411710(0x221)];continue;}break;}const _0x22e89c=_0x56e1d5(_0x10aab5,_0x411710(0x216));if(_0x22e89c&&_0x411710(0x20e)!==_0x22e89c&&this[_0x411710(0x1fc)][_0x411710(0x201)](_0x22e89c)){_0x36d21a=_0x10aab5;break;}_0x10aab5=_0x10aab5[_0x411710(0x221)];}return _0x36d21a;}[_0x25cb04(0x209)](_0x3c939a){const _0x488fe2=_0x25cb04;_0x1faa1d(_0x3c939a)&&_0x430249(_0x488fe2(0x216),null,_0x3c939a)[_0x488fe2(0x1f2)](_0x3acb75=>{const _0x177ac9=_0x488fe2;if(this[_0x177ac9(0x219)](_0x3acb75)&&!this[_0x177ac9(0x235)](_0x3acb75)){const _0x3714d4=_0x56e1d5(_0x3acb75,_0x177ac9(0x216));_0x492fbd(_0x3acb75,_0x177ac9(0x20d),_0x3714d4),_0x492fbd(_0x3acb75,_0x177ac9(0x216),null);}});}[_0x25cb04(0x208)](_0x4a614f){const _0x15622d=_0x25cb04;if(!_0x4a614f)return null;if(_0x1faa1d(_0x4a614f))return _0x56e1d5(_0x4a614f,_0x15622d(0x216));if(_0x1b2abf(_0x4a614f)){const _0x8eeee5=_0x3ec396(_0x4a614f)[_0x15622d(0x22e)](/removed[\s*-]data-id="([^"]+)"/);if(_0x8eeee5&&_0x8eeee5[0x1])return _0x8eeee5[0x1];}return null;}[_0x25cb04(0x20c)](_0x3e8afb){const _0x345c33=_0x25cb04;if(_0x1b2abf(_0x3e8afb)){const _0x5556fe=_0x3ec396(_0x3e8afb)[_0x345c33(0x22e)](/removed[\s*-]data-id="([^"]+)"/);_0x5556fe&&_0x5556fe[0x1]&&this[_0x345c33(0x21f)][_0x345c33(0x21c)][_0x345c33(0x22f)](_0x5556fe[0x1]);}}[_0x25cb04(0x230)](_0x22c6da){const _0x4ead5a=_0x25cb04;return this[_0x4ead5a(0x219)](_0x22c6da)?_0x56e1d5(_0x22c6da,_0x4ead5a(0x216)):this[_0x4ead5a(0x226)]();}[_0x25cb04(0x1f5)](_0x424689){const _0x1a3fb2=_0x25cb04;_0x29cb21(_0x424689)[_0x1a3fb2(0x207)](_0x245d18=>this[_0x1a3fb2(0x202)](_0x245d18)||this[_0x1a3fb2(0x1f1)](_0x245d18))[_0x1a3fb2(0x1f2)](_0x32ea2f=>{_0x44a560(_0x32ea2f);});}[_0x25cb04(0x21b)](_0x114b8f){const _0x2623d1=_0x25cb04,_0x1ffc66=_0x114b8f[_0x2623d1(0x1ee)],_0x5d929f=_0x1ffc66[_0x1ffc66[_0x2623d1(0x200)]-0x1];_0x5d929f&&_0x1faa1d(_0x5d929f)&&_0x492fbd(_0x5d929f,_0x2623d1(0x1f8),_0x2623d1(0x1f7));}[_0x25cb04(0x227)](_0x273854,_0x249cc6){const _0x4cae11=_0x25cb04,_0x5e9b2d=_0x3080df(_0x4cae11(0x1f8),_0x4cae11(0x1f7),_0x273854);if(!_0x5e9b2d)return;const _0x5d74bd=_0x283918(_0x5e9b2d)[_0x4cae11(0x234)](0x0,-0x1),_0x3ccfa6=_0x5d74bd[_0x4cae11(0x200)];let _0x51f9b2=_0x5e9b2d;if(_0x3ccfa6>_0x249cc6){let _0x3ebc2f=_0x3ccfa6,_0x377111=null;for(;_0x3ebc2f>_0x249cc6&&_0x3ebc2f>=0x0;)_0x3ebc2f--,_0x377111=_0x5d74bd[_0x3ebc2f];_0x377111&&(_0x51f9b2=_0x377111,_0x492fbd(_0x5e9b2d,_0x4cae11(0x1f8),null),_0x492fbd(_0x377111,_0x4cae11(0x1f8),_0x4cae11(0x1f7)));}else{if(_0x3ccfa6<_0x249cc6){let _0x1b8751=_0x3ccfa6,_0x3e8bb7=_0x5e9b2d;for(;_0x1b8751<_0x249cc6;){const _0x254c62=_0x3e8bb7[_0x4cae11(0x1ee)][_0x4cae11(0x207)](_0x419c35=>_0x1faa1d(_0x419c35));if(0x0===_0x254c62[_0x4cae11(0x200)])break;_0x1b8751++,_0x3e8bb7=_0x254c62[_0x254c62[_0x4cae11(0x200)]-0x1];}_0x3e8bb7&&(_0x51f9b2=_0x3e8bb7,_0x492fbd(_0x5e9b2d,_0x4cae11(0x1f8),null),_0x492fbd(_0x3e8bb7,_0x4cae11(0x1f8),_0x4cae11(0x1f7)));}}let _0x4a2658=_0x51f9b2;for(;_0x4a2658;){for(;_0x4a2658[_0x4cae11(0x225)];)_0x4a2658=_0x4a2658[_0x4cae11(0x225)],_0x1faa1d(_0x4a2658)&&_0x492fbd(_0x4a2658,_0x4cae11(0x1f8),_0x4cae11(0x1f7));_0x4a2658=_0x4a2658[_0x4cae11(0x1fe)];}}[_0x25cb04(0x22a)](_0x27dff0){const _0x2e1b78=_0x25cb04;return Boolean(_0x2e1b78(0x20e)===_0x56e1d5(_0x27dff0,_0x2e1b78(0x216)));}[_0x25cb04(0x219)](_0x34136f){const _0x3372ed=_0x25cb04;return Boolean((_0x56e1d5(_0x34136f,_0x3372ed(0x216))||'')[_0x3372ed(0x200)]>0x0&&_0x3372ed(0x20e)!==_0x56e1d5(_0x34136f,_0x3372ed(0x216)));}[_0x25cb04(0x202)](_0x3dbbf7){const _0x177faa=_0x25cb04;return!!_0x3dbbf7&&Boolean(_0x1b2abf(_0x3dbbf7)&&_0x3ec396(_0x3dbbf7)[_0x177faa(0x22e)](/removed[\s*-]data-id="[^"]+"/));}[_0x25cb04(0x235)](_0x17d42a){const _0x3fbacd=_0x25cb04;let _0x56b95c=_0x17d42a[_0x3fbacd(0x1fe)];for(;_0x56b95c;){if(_0x56e1d5(_0x56b95c,_0x3fbacd(0x20d)))return!0x0;_0x56b95c=_0x56b95c[_0x3fbacd(0x1fe)];}return!0x1;}[_0x25cb04(0x1f1)](_0x38cdd1){const _0x19a065=_0x25cb04;return Boolean(_0x1b2abf(_0x38cdd1)&&_0x3ec396(_0x38cdd1)[_0x19a065(0x22e)](/\s*existing[\s*-](content|document)\s*/g));}}function _0x2c9f(){const _0x32b3cb=['_findReferenceNode','_replaceNode','13lLbLgb','lastTouchedId','data-id','splice','newIds','_isExistingNode','afterbegin','_markLastTagElementUnstable','removedIds','data-removed','35WAbLBv','_touchedNodesState','_findNextElementWithDataId','previousSibling','lastChild','_insertNodes','beforebegin','nextSibling','_generateUid','_markUnstableElements','45qjEWKM','invalidIds','_isNewNode','modifiedIds','markUnstableElementsDepth','trim','match','push','_getUid','from','2SjCRoV','indexOf','slice','_hasWrappedParent','nodeType','includes','childNodes','replaceRemovedWith','463866ClTVwu','_isExistingContentComment','forEach','20WEDwQC','409743uAgWSv','_removeSpecialComments','90tUuacv','true','data-unstable','markUnstableElements','1683528ZTqxmL','afterend','_existingDataIds','21523212tFfJiL','parentNode','674807cIhGDl','length','has','_isDelNode','_findPrevElementWithDataId','_findFallbackReferenceNode','reverse','104556OLQKAp','filter','_getNodeDataId','_markWrappedElements','cloneNode','cutAfterLastChange','_storeDeletedElementIds','data-wrapped-id','new-element','map','merge','8223688Dgjmqu'];_0x2c9f=function(){return _0x32b3cb;};return _0x2c9f();}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5f3bb3=_0x3e46;(function(_0x249dfa,_0xf2cf0e){const _0x2ecfcb=_0x3e46,_0x2178e2=_0x249dfa();while(!![]){try{const _0x4bb51f=parseInt(_0x2ecfcb(0x137))/0x1+-parseInt(_0x2ecfcb(0x145))/0x2*(-parseInt(_0x2ecfcb(0x13c))/0x3)+-parseInt(_0x2ecfcb(0x138))/0x4+-parseInt(_0x2ecfcb(0x141))/0x5+parseInt(_0x2ecfcb(0x13f))/0x6*(parseInt(_0x2ecfcb(0x133))/0x7)+parseInt(_0x2ecfcb(0x13a))/0x8+parseInt(_0x2ecfcb(0x144))/0x9*(-parseInt(_0x2ecfcb(0x135))/0xa);if(_0x4bb51f===_0xf2cf0e)break;else _0x2178e2['push'](_0x2178e2['shift']());}catch(_0x241c19){_0x2178e2['push'](_0x2178e2['shift']());}}}(_0x5993,0xbcabd));import{ObservableMixin as _0x370464}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x15a467}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x517d62}from'../utils/htmlparser.js';function _0x3e46(_0x46f8f1,_0x26ed87){const _0x599344=_0x5993();return _0x3e46=function(_0x3e46c4,_0x2b0fdb){_0x3e46c4=_0x3e46c4-0x133;let _0x352355=_0x599344[_0x3e46c4];return _0x352355;},_0x3e46(_0x46f8f1,_0x26ed87);}export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x370464(){[_0x5f3bb3(0x13b)];constructor(){const _0x2c4019=_0x5f3bb3;super(),this[_0x2c4019(0x13b)]=new _0x15a467();}[_0x5f3bb3(0x143)](_0x5c1bfc){const _0x1d8130=_0x5f3bb3,_0x213b9f=this[_0x1d8130(0x13b)][_0x1d8130(0x139)](_0x5c1bfc);return this[_0x1d8130(0x136)](_0x213b9f);}[_0x5f3bb3(0x136)](_0x50cf8d){const _0x334bad=_0x5f3bb3;return this[_0x334bad(0x142)](_0x50cf8d);}[_0x5f3bb3(0x142)](_0x10cad1){const _0x3c922b=_0x5f3bb3,_0x2bc778=_0x10cad1[_0x3c922b(0x13d)](/^\t+/gm,'\x20')[_0x3c922b(0x13d)](/\n*/g,'')[_0x3c922b(0x13d)](/\s+/g,'\x20')[_0x3c922b(0x13d)](/<[^>]*?$/g,''),_0x1c9d4c=_0x517d62(_0x3c922b(0x13e)+_0x2bc778+_0x3c922b(0x134));return _0x1c9d4c[_0x3c922b(0x140)]=_0x1c9d4c[_0x3c922b(0x140)][0x0][_0x3c922b(0x140)],_0x1c9d4c;}}function _0x5993(){const _0x1b393e=['30BRQiBU','parseAndNormalizeHTML','922228FRXEZn','4096196oToBxY','parse','12314360fTRSjs','_m2html','57MRuPJh','replace','<dummy>','42XNbsTi','children','3958400lltOIS','_parseHTML','convertMarkdownToHTML','8102583aRKehK','146814CcVGcR','1433131mXQXef','</dummy>'];_0x5993=function(){return _0x1b393e;};return _0x5993();}
23
+ const _0x38c088=_0x2ea9;function _0x503b(){const _0x1f96db=['14DjCrEd','replace','8347042xOBuMI','3485814GsGktd','32fhKpOy','</dummy>','4dTNarj','382545MYqKNm','convertMarkdownToHTML','parseAndNormalizeHTML','parse','922070PYyTEz','_m2html','547460LhtneI','<dummy>','7193560CkonsL','34330CnIUNt','children','_parseHTML','2763kydbci'];_0x503b=function(){return _0x1f96db;};return _0x503b();}function _0x2ea9(_0x449991,_0x1fcc7a){const _0x503b24=_0x503b();return _0x2ea9=function(_0x2ea94f,_0x12911b){_0x2ea94f=_0x2ea94f-0xbe;let _0x17f0f1=_0x503b24[_0x2ea94f];return _0x17f0f1;},_0x2ea9(_0x449991,_0x1fcc7a);}(function(_0x151a07,_0x4e0968){const _0xf5f03b=_0x2ea9,_0x2dcd8a=_0x151a07();while(!![]){try{const _0x3b033c=parseInt(_0xf5f03b(0xcf))/0x1+parseInt(_0xf5f03b(0xc8))/0x2*(-parseInt(_0xf5f03b(0xc9))/0x3)+parseInt(_0xf5f03b(0xc6))/0x4*(-parseInt(_0xf5f03b(0xcd))/0x5)+-parseInt(_0xf5f03b(0xc5))/0x6*(-parseInt(_0xf5f03b(0xc2))/0x7)+-parseInt(_0xf5f03b(0xd1))/0x8+parseInt(_0xf5f03b(0xc1))/0x9*(parseInt(_0xf5f03b(0xbe))/0xa)+parseInt(_0xf5f03b(0xc4))/0xb;if(_0x3b033c===_0x4e0968)break;else _0x2dcd8a['push'](_0x2dcd8a['shift']());}catch(_0x224897){_0x2dcd8a['push'](_0x2dcd8a['shift']());}}}(_0x503b,0xd9ec6));import{ObservableMixin as _0x516b39}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x1b554b}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x537ae4}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x516b39(){[_0x38c088(0xce)];constructor(){const _0x18139d=_0x38c088;super(),this[_0x18139d(0xce)]=new _0x1b554b();}[_0x38c088(0xca)](_0x25b875){const _0x150a59=_0x38c088,_0x15e3cd=this[_0x150a59(0xce)][_0x150a59(0xcc)](_0x25b875);return this[_0x150a59(0xcb)](_0x15e3cd);}[_0x38c088(0xcb)](_0x4be3d7){const _0x10edec=_0x38c088;return this[_0x10edec(0xc0)](_0x4be3d7);}[_0x38c088(0xc0)](_0x520c9b){const _0x8e7187=_0x38c088,_0x191c07=_0x520c9b[_0x8e7187(0xc3)](/^\t+/gm,'\x20')[_0x8e7187(0xc3)](/\n*/g,'')[_0x8e7187(0xc3)](/\s+/g,'\x20')[_0x8e7187(0xc3)](/<[^>]*?$/g,''),_0x400317=_0x537ae4(_0x8e7187(0xd0)+_0x191c07+_0x8e7187(0xc7));return _0x400317[_0x8e7187(0xbf)]=_0x400317[_0x8e7187(0xbf)][0x0][_0x8e7187(0xbf)],_0x400317;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x2a9c12,_0xa5dc86){var _0x5eb070=_0x5732,_0xb2066c=_0x2a9c12();while(!![]){try{var _0xa3999d=parseInt(_0x5eb070(0x1e6))/0x1+parseInt(_0x5eb070(0x1ee))/0x2*(parseInt(_0x5eb070(0x1e5))/0x3)+parseInt(_0x5eb070(0x1f3))/0x4+parseInt(_0x5eb070(0x1ea))/0x5*(parseInt(_0x5eb070(0x1f0))/0x6)+-parseInt(_0x5eb070(0x1eb))/0x7*(-parseInt(_0x5eb070(0x1ed))/0x8)+parseInt(_0x5eb070(0x1f4))/0x9*(-parseInt(_0x5eb070(0x1f2))/0xa)+parseInt(_0x5eb070(0x1ec))/0xb*(-parseInt(_0x5eb070(0x1ef))/0xc);if(_0xa3999d===_0xa5dc86)break;else _0xb2066c['push'](_0xb2066c['shift']());}catch(_0x41f6e6){_0xb2066c['push'](_0xb2066c['shift']());}}}(_0x31d4,0x1994f));function _0x31d4(){var _0x3247a0=['setTemplate','3NAmkxP','30541BusfFP','AI_DISCLAIMER_TEXT','ck-ai-disclaimer__content','div','55aodaxd','37702cotzfx','11vLWRBu','128CYGOZN','284080hjoJEH','1515300eBoQOa','26322LPIqxz','ck-ai-disclaimer','6810ComvPI','322696DYGbgA','2070DkpUjD'];_0x31d4=function(){return _0x3247a0;};return _0x31d4();}function _0x5732(_0x14a193,_0x21a274){var _0x31d43=_0x31d4();return _0x5732=function(_0x57323c,_0x3dece2){_0x57323c=_0x57323c-0x1e5;var _0x40d936=_0x31d43[_0x57323c];return _0x40d936;},_0x5732(_0x14a193,_0x21a274);}import{View as _0x390244}from'ckeditor5/src/ui.js';import{getTranslation as _0x2741c4}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x390244{constructor(_0x261701){var _0x1197bd=_0x5732;super(_0x261701),this[_0x1197bd(0x1f5)]({'tag':_0x1197bd(0x1e9),'attributes':{'class':['ck',_0x1197bd(0x1f1)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x1197bd(0x1e8)]},'children':[{'text':_0x2741c4(_0x261701,_0x1197bd(0x1e7))}]}]});}}
23
+ function _0x203c(_0x37b60a,_0x1731e6){var _0x21eb91=_0x21eb();return _0x203c=function(_0x203c25,_0x4cb9e4){_0x203c25=_0x203c25-0xac;var _0x5b315d=_0x21eb91[_0x203c25];return _0x5b315d;},_0x203c(_0x37b60a,_0x1731e6);}(function(_0x4b23c6,_0x19905f){var _0x3251d2=_0x203c,_0x3cb6e1=_0x4b23c6();while(!![]){try{var _0x47a472=-parseInt(_0x3251d2(0xb3))/0x1+-parseInt(_0x3251d2(0xac))/0x2*(-parseInt(_0x3251d2(0xb2))/0x3)+-parseInt(_0x3251d2(0xb9))/0x4*(parseInt(_0x3251d2(0xb7))/0x5)+-parseInt(_0x3251d2(0xad))/0x6+parseInt(_0x3251d2(0xb6))/0x7*(parseInt(_0x3251d2(0xb0))/0x8)+-parseInt(_0x3251d2(0xb4))/0x9+parseInt(_0x3251d2(0xba))/0xa*(parseInt(_0x3251d2(0xae))/0xb);if(_0x47a472===_0x19905f)break;else _0x3cb6e1['push'](_0x3cb6e1['shift']());}catch(_0xeecd4e){_0x3cb6e1['push'](_0x3cb6e1['shift']());}}}(_0x21eb,0x65189));import{View as _0x1c35d7}from'ckeditor5/src/ui.js';import{getTranslation as _0x75f4f5}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x1c35d7{constructor(_0x249b14){var _0x485555=_0x203c;super(_0x249b14),this[_0x485555(0xb1)]({'tag':_0x485555(0xb5),'attributes':{'class':['ck',_0x485555(0xb8)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x485555(0xbb)]},'children':[{'text':_0x75f4f5(_0x249b14,_0x485555(0xaf))}]}]});}}function _0x21eb(){var _0x4d2abb=['1526906FpVoiw','253026YwAXgj','11iAPamQ','AI_DISCLAIMER_TEXT','8VduTiD','setTemplate','3wvLNxT','303175LMmDfn','6467733uChpdz','div','5246101NdbsZB','3200635NuwIoQ','ck-ai-disclaimer','4bzkzJf','6053030sSNuMy','ck-ai-disclaimer__content'];_0x21eb=function(){return _0x4d2abb;};return _0x21eb();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5491ea=_0x1594;(function(_0x227703,_0x5a5eb1){const _0x1fc4f3=_0x1594,_0x378e0d=_0x227703();while(!![]){try{const _0x2201cd=-parseInt(_0x1fc4f3(0x9e))/0x1*(-parseInt(_0x1fc4f3(0x88))/0x2)+parseInt(_0x1fc4f3(0x95))/0x3+-parseInt(_0x1fc4f3(0x86))/0x4*(parseInt(_0x1fc4f3(0x8b))/0x5)+parseInt(_0x1fc4f3(0x94))/0x6*(-parseInt(_0x1fc4f3(0x7f))/0x7)+-parseInt(_0x1fc4f3(0x74))/0x8*(-parseInt(_0x1fc4f3(0x9a))/0x9)+parseInt(_0x1fc4f3(0x7a))/0xa*(-parseInt(_0x1fc4f3(0x85))/0xb)+-parseInt(_0x1fc4f3(0x78))/0xc*(parseInt(_0x1fc4f3(0x92))/0xd);if(_0x2201cd===_0x5a5eb1)break;else _0x378e0d['push'](_0x378e0d['shift']());}catch(_0x5a85b5){_0x378e0d['push'](_0x378e0d['shift']());}}}(_0x1ea2,0x9930d));import{View as _0x543f20}from'ckeditor5/src/ui.js';import'../../../theme/common/aiskeleton.css';function _0x1594(_0x4390b0,_0x52ce90){const _0x1ea28d=_0x1ea2();return _0x1594=function(_0x15949c,_0xc6e92){_0x15949c=_0x15949c-0x73;let _0x622e62=_0x1ea28d[_0x15949c];return _0x622e62;},_0x1594(_0x4390b0,_0x52ce90);}export class AISkeletonView extends _0x543f20{constructor(_0x2d1e29,_0x4f1d88){const _0x5307b2=_0x1594;super(_0x2d1e29),this[_0x5307b2(0x81)]({'tag':_0x5307b2(0x9b),'attributes':{'class':['ck',_0x5307b2(0x96)]},'children':this[_0x5307b2(0x77)](_0x4f1d88)});}[_0x5491ea(0x77)](_0xa2f28f){const _0x31bafd=_0x5491ea,_0x441ace=['ck',_0x31bafd(0x98)];return _0xa2f28f[_0x31bafd(0x82)](_0x2bc1bd=>{const _0x7be49b=_0x31bafd;let _0x1b40fe='';switch(_0x2bc1bd[_0x7be49b(0x73)][_0x7be49b(0x76)]){case _0x7be49b(0x91):_0x1b40fe=_0x7be49b(0x75);break;case _0x7be49b(0x84):_0x1b40fe=_0x7be49b(0x8d);break;case _0x7be49b(0x7b):_0x1b40fe=_0x7be49b(0x80);}return{'tag':_0x2bc1bd[_0x7be49b(0x9d)],'attributes':{'class':[..._0x441ace,_0x2bc1bd[_0x7be49b(0x73)][_0x7be49b(0x79)]?_0x2bc1bd[_0x7be49b(0x73)][_0x7be49b(0x79)]:''],'style':_0x7be49b(0x90)+_0x2bc1bd[_0x7be49b(0x73)][_0x7be49b(0x9c)]+_0x7be49b(0x7d)+_0x2bc1bd[_0x7be49b(0x73)][_0x7be49b(0x8a)]+';'+_0x1b40fe}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x5491ea(0x9b),'attributes':{'width':_0x5491ea(0x7e),'height':_0x5491ea(0x99),'align':_0x5491ea(0x91)}},{'tag':_0x5491ea(0x9b),'attributes':{'width':_0x5491ea(0x89),'height':_0x5491ea(0x8f),'align':_0x5491ea(0x91)}},{'tag':_0x5491ea(0x9b),'attributes':{'width':_0x5491ea(0x7e),'height':_0x5491ea(0x8e),'align':_0x5491ea(0x91)}},{'tag':_0x5491ea(0x9b),'attributes':{'width':_0x5491ea(0x87),'height':_0x5491ea(0x8f),'align':_0x5491ea(0x91)}},{'tag':_0x5491ea(0x9b),'attributes':{'width':_0x5491ea(0x7e),'height':_0x5491ea(0x83),'align':_0x5491ea(0x91)}},{'tag':_0x5491ea(0x9b),'attributes':{'width':_0x5491ea(0x89),'height':_0x5491ea(0x8f),'align':_0x5491ea(0x91)}},{'tag':_0x5491ea(0x9b),'attributes':{'width':_0x5491ea(0x7e),'height':_0x5491ea(0x8e),'align':_0x5491ea(0x91)}}],'aiHistory':ta(0x5,_0x5491ea(0x7e),_0x5491ea(0x7c),_0x5491ea(0x91)),'aiChatResources':ta(0x8,_0x5491ea(0x7e),_0x5491ea(0x93),_0x5491ea(0x91)),'aiReviewChecks':[{'tag':_0x5491ea(0x9b),'attributes':{'width':_0x5491ea(0x97),'height':_0x5491ea(0x93),'align':_0x5491ea(0x7b)}},{'tag':_0x5491ea(0x9b),'attributes':{'width':_0x5491ea(0x7e),'height':_0x5491ea(0x93),'align':_0x5491ea(0x7b)}},{'tag':_0x5491ea(0x9b),'attributes':{'width':_0x5491ea(0x97),'height':_0x5491ea(0x93),'align':_0x5491ea(0x7b)}}]};function _0x1ea2(){const _0x3780d7=['1660532OThHND','150px','182848RbfgOE','250px','height','10CVJCyg','fill','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','88px','40px','width:\x20','right','118599AVHsRj','24px','274530knAhGO','1770702klkMlL','ck-ai-skeleton','128px','ck-ai-skeleton__item','72px','9jlIzAs','div','width','tag','8giqIjc','attributes','9466136BLlABm','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','align','_createSkeletonItems','636tmyuBX','class','10nlzrdd','left','44px',';\x20height:\x20','100%','42rlaeXX','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','setTemplate','map','140px','center','3180199deJltV'];_0x1ea2=function(){return _0x3780d7;};return _0x1ea2();}function ta(_0x38d4d0,_0x4078fe,_0xba1063,_0x36bfb7){const _0x46456f=_0x5491ea;return new Array(_0x38d4d0)[_0x46456f(0x8c)](null)[_0x46456f(0x82)](()=>({'tag':_0x46456f(0x9b),'attributes':{'width':_0x4078fe,'height':_0xba1063,'align':_0x36bfb7}}));}
23
+ const _0x50237c=_0x3546;(function(_0x8a05e5,_0x3218a5){const _0x24a52b=_0x3546,_0x4d10b8=_0x8a05e5();while(!![]){try{const _0x45f844=-parseInt(_0x24a52b(0xd9))/0x1+parseInt(_0x24a52b(0xbd))/0x2+parseInt(_0x24a52b(0xce))/0x3*(parseInt(_0x24a52b(0xda))/0x4)+parseInt(_0x24a52b(0xcf))/0x5*(-parseInt(_0x24a52b(0xdd))/0x6)+parseInt(_0x24a52b(0xc6))/0x7+-parseInt(_0x24a52b(0xc2))/0x8+parseInt(_0x24a52b(0xcc))/0x9*(-parseInt(_0x24a52b(0xb9))/0xa);if(_0x45f844===_0x3218a5)break;else _0x4d10b8['push'](_0x4d10b8['shift']());}catch(_0x2a25ee){_0x4d10b8['push'](_0x4d10b8['shift']());}}}(_0x26de,0x7053a));import{View as _0x5baba4}from'ckeditor5/src/ui.js';import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x5baba4{constructor(_0x442668,_0x3f5b8a){const _0x2eb246=_0x3546;super(_0x442668),this[_0x2eb246(0xd5)]({'tag':_0x2eb246(0xc9),'attributes':{'class':['ck',_0x2eb246(0xc8)]},'children':this[_0x2eb246(0xb7)](_0x3f5b8a)});}[_0x50237c(0xb7)](_0xe8b511){const _0x280737=_0x50237c,_0x4effa9=['ck',_0x280737(0xc4)];return _0xe8b511[_0x280737(0xdc)](_0x1cedd9=>{const _0x372d4a=_0x280737;let _0x443ede='';switch(_0x1cedd9[_0x372d4a(0xc5)][_0x372d4a(0xd0)]){case _0x372d4a(0xcb):_0x443ede=_0x372d4a(0xd4);break;case _0x372d4a(0xd8):_0x443ede=_0x372d4a(0xb6);break;case _0x372d4a(0xbc):_0x443ede=_0x372d4a(0xcd);}return{'tag':_0x1cedd9[_0x372d4a(0xc0)],'attributes':{'class':[..._0x4effa9,_0x1cedd9[_0x372d4a(0xc5)][_0x372d4a(0xbf)]?_0x1cedd9[_0x372d4a(0xc5)][_0x372d4a(0xbf)]:''],'style':_0x372d4a(0xc1)+_0x1cedd9[_0x372d4a(0xc5)][_0x372d4a(0xc3)]+_0x372d4a(0xd3)+_0x1cedd9[_0x372d4a(0xc5)][_0x372d4a(0xba)]+';'+_0x443ede}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xde),'height':_0x50237c(0xca),'align':_0x50237c(0xcb)}},{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xd2),'height':_0x50237c(0xd7),'align':_0x50237c(0xcb)}},{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xde),'height':_0x50237c(0xd6),'align':_0x50237c(0xcb)}},{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xbe),'height':_0x50237c(0xd7),'align':_0x50237c(0xcb)}},{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xde),'height':_0x50237c(0xb8),'align':_0x50237c(0xcb)}},{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xd2),'height':_0x50237c(0xd7),'align':_0x50237c(0xcb)}},{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xde),'height':_0x50237c(0xd6),'align':_0x50237c(0xcb)}}],'aiHistory':ta(0x5,_0x50237c(0xde),_0x50237c(0xd1),_0x50237c(0xcb)),'aiChatResources':ta(0x8,_0x50237c(0xde),_0x50237c(0xdb),_0x50237c(0xcb)),'aiReviewChecks':[{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xc7),'height':_0x50237c(0xdb),'align':_0x50237c(0xbc)}},{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xde),'height':_0x50237c(0xdb),'align':_0x50237c(0xbc)}},{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xc7),'height':_0x50237c(0xdb),'align':_0x50237c(0xbc)}}]};function _0x26de(){const _0x52d5a5=['830522cvnYbg','150px','class','tag','width:\x20','64288xRSESl','width','ck-ai-skeleton__item','attributes','1983394YvzWSH','128px','ck-ai-skeleton','div','72px','right','40338UKhnPz','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','111LaDTGV','24390ogEnZb','align','44px','250px',';\x20height:\x20','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','setTemplate','88px','40px','center','189729eYPHFK','68776Ddxgma','24px','map','138dQfckL','100%','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','_createSkeletonItems','140px','1260PUsYaP','height','fill','left'];_0x26de=function(){return _0x52d5a5;};return _0x26de();}function _0x3546(_0x3d2b9f,_0x5239cb){const _0x26de83=_0x26de();return _0x3546=function(_0x354649,_0x3d7f11){_0x354649=_0x354649-0xb6;let _0x427ea7=_0x26de83[_0x354649];return _0x427ea7;},_0x3546(_0x3d2b9f,_0x5239cb);}function ta(_0x5d03e0,_0x13c76e,_0x39d3d2,_0x2c4d12){const _0x5ef660=_0x50237c;return new Array(_0x5d03e0)[_0x5ef660(0xbb)](null)[_0x5ef660(0xdc)](()=>({'tag':_0x5ef660(0xc9),'attributes':{'width':_0x13c76e,'height':_0x39d3d2,'align':_0x2c4d12}}));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x5c502e,_0x4ac520){const _0x124f7d=_0x2ad4,_0x34313a=_0x5c502e();while(!![]){try{const _0x2dfa84=-parseInt(_0x124f7d(0x8a))/0x1*(parseInt(_0x124f7d(0x8f))/0x2)+parseInt(_0x124f7d(0x92))/0x3*(-parseInt(_0x124f7d(0x93))/0x4)+parseInt(_0x124f7d(0x90))/0x5*(parseInt(_0x124f7d(0x8c))/0x6)+-parseInt(_0x124f7d(0x8e))/0x7+-parseInt(_0x124f7d(0x96))/0x8+-parseInt(_0x124f7d(0x91))/0x9*(-parseInt(_0x124f7d(0x88))/0xa)+-parseInt(_0x124f7d(0x87))/0xb*(-parseInt(_0x124f7d(0x8b))/0xc);if(_0x2dfa84===_0x4ac520)break;else _0x34313a['push'](_0x34313a['shift']());}catch(_0x171224){_0x34313a['push'](_0x34313a['shift']());}}}(_0x5467,0xd5a01));import{SpinnerView as _0x43b6b2}from'ckeditor5/src/ui.js';import'../../../theme/common/aispinner.css';function _0x2ad4(_0x238316,_0x1a2db7){const _0x546726=_0x5467();return _0x2ad4=function(_0x2ad41a,_0x1ad842){_0x2ad41a=_0x2ad41a-0x87;let _0x1a0a5e=_0x546726[_0x2ad41a];return _0x1a0a5e;},_0x2ad4(_0x238316,_0x1a2db7);}function _0x5467(){const _0xb23258=['1330eHOHel','9vONZhF','3093555IucgYZ','4ZMJImO','span','extendTemplate','2576368FJyVwx','2750XMUFmG','13490250rktjVZ','ck-ai-spinner','82939JTMWdm','97668rYolul','18780sBfZWU','ck-ai-spinner_','12175086tZtUhy','6qgxJDj'];_0x5467=function(){return _0xb23258;};return _0x5467();}export class AISpinnerView extends _0x43b6b2{constructor(_0x287c34=void 0x0){const _0x3da053=_0x2ad4;super();const _0x4b5650=_0x287c34?_0x3da053(0x8d)+_0x287c34:'';this[_0x3da053(0x95)]({'tag':_0x3da053(0x94),'attributes':{'class':[_0x3da053(0x89),_0x4b5650]}});}}
23
+ (function(_0x2e6414,_0x4f5463){const _0xcba03a=_0xa85e,_0x5dfa40=_0x2e6414();while(!![]){try{const _0x47b9e1=-parseInt(_0xcba03a(0xfa))/0x1*(-parseInt(_0xcba03a(0xf8))/0x2)+parseInt(_0xcba03a(0xf0))/0x3+parseInt(_0xcba03a(0xfd))/0x4*(parseInt(_0xcba03a(0xf9))/0x5)+-parseInt(_0xcba03a(0xf5))/0x6+parseInt(_0xcba03a(0xfc))/0x7*(parseInt(_0xcba03a(0xff))/0x8)+parseInt(_0xcba03a(0xf6))/0x9*(-parseInt(_0xcba03a(0xf2))/0xa)+parseInt(_0xcba03a(0xfb))/0xb*(-parseInt(_0xcba03a(0xf1))/0xc);if(_0x47b9e1===_0x4f5463)break;else _0x5dfa40['push'](_0x5dfa40['shift']());}catch(_0x5bb371){_0x5dfa40['push'](_0x5dfa40['shift']());}}}(_0x1b9b,0xb7933));function _0xa85e(_0x3f76ae,_0x33360a){const _0x1b9b18=_0x1b9b();return _0xa85e=function(_0xa85e2d,_0x3cbf8c){_0xa85e2d=_0xa85e2d-0xf0;let _0x1ad0c9=_0x1b9b18[_0xa85e2d];return _0x1ad0c9;},_0xa85e(_0x3f76ae,_0x33360a);}import{SpinnerView as _0x533839}from'ckeditor5/src/ui.js';import'../../../theme/common/aispinner.css';export class AISpinnerView extends _0x533839{constructor(_0x3b0cde=void 0x0){const _0x56a427=_0xa85e;super();const _0x2c8205=_0x3b0cde?_0x56a427(0xf3)+_0x3b0cde:'';this[_0x56a427(0xfe)]({'tag':_0x56a427(0xf7),'attributes':{'class':[_0x56a427(0xf4),_0x2c8205]}});}}function _0x1b9b(){const _0x1a30a2=['9375jWWltB','2145pclkyI','52646nuebyO','14VUzVFH','1040poJVDD','extendTemplate','5435528zhROmo','4069116JfqaOP','4956bAbdBn','50630GuQgrR','ck-ai-spinner_','ck-ai-spinner','7601136xXfQbJ','711gECrfr','span','1112yqSZJM'];_0x1b9b=function(){return _0x1a30a2;};return _0x1b9b();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4e114e=_0x4599;(function(_0x1de52b,_0x2574a2){const _0x115f33=_0x4599,_0x1b7e00=_0x1de52b();while(!![]){try{const _0xc18396=-parseInt(_0x115f33(0xb2))/0x1+parseInt(_0x115f33(0xac))/0x2*(parseInt(_0x115f33(0xa8))/0x3)+-parseInt(_0x115f33(0xa7))/0x4+parseInt(_0x115f33(0xcb))/0x5*(parseInt(_0x115f33(0xb0))/0x6)+parseInt(_0x115f33(0xb9))/0x7*(-parseInt(_0x115f33(0xae))/0x8)+-parseInt(_0x115f33(0xa9))/0x9*(-parseInt(_0x115f33(0xaf))/0xa)+parseInt(_0x115f33(0xc6))/0xb*(parseInt(_0x115f33(0xbb))/0xc);if(_0xc18396===_0x2574a2)break;else _0x1b7e00['push'](_0x1b7e00['shift']());}catch(_0x2e2c91){_0x1b7e00['push'](_0x1b7e00['shift']());}}}(_0x1e79,0x1d1f4));function _0x4599(_0x10e844,_0x28a32b){const _0x1e79f2=_0x1e79();return _0x4599=function(_0x45997c,_0x409ee8){_0x45997c=_0x45997c-0xa3;let _0x3f9f2f=_0x1e79f2[_0x45997c];return _0x3f9f2f;},_0x4599(_0x10e844,_0x28a32b);}import{ButtonView as _0x1a5399,IconView as _0x1b2a1c,ToolbarView as _0x5720ab}from'ckeditor5/src/ui.js';import{IconCheck as _0x5bffcc,IconCopy as _0x439da3,IconShowChangesOff as _0x5df1de,IconShowChangesOn as _0x546e22,IconThumbDown as _0x128453,IconThumbUp as _0x3c7bdf}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x30c811}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';export class AIMiniToolbarView extends _0x5720ab{[_0x4e114e(0xc1)];[_0x4e114e(0xbe)];[_0x4e114e(0xcf)];[_0x4e114e(0xc5)];[_0x4e114e(0xab)];constructor(_0x5cff6d,_0x337e49={}){const _0x50a769=_0x4e114e;super(_0x5cff6d),this[_0x50a769(0xa6)](_0x50a769(0xd5),!0x0),this[_0x50a769(0xa6)](_0x50a769(0xd4),!0x1),this[_0x50a769(0xab)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x337e49};const _0x413cd4=!(this[_0x50a769(0xab)][_0x50a769(0xbc)]||this[_0x50a769(0xab)][_0x50a769(0xb1)]||this[_0x50a769(0xab)][_0x50a769(0xba)]||this[_0x50a769(0xab)][_0x50a769(0xd8)]||this[_0x50a769(0xab)][_0x50a769(0xda)]?.[_0x50a769(0xd1)]);this[_0x50a769(0xca)]=_0x413cd4?_0x50a769(0xd3):_0x50a769(0xb8),this[_0x50a769(0xab)][_0x50a769(0xbc)]&&(this[_0x50a769(0xd9)](),this[_0x50a769(0xcd)][_0x50a769(0xc3)](this[_0x50a769(0xc1)])),this[_0x50a769(0xab)][_0x50a769(0xb1)]&&(this[_0x50a769(0xb7)](),this[_0x50a769(0xcd)][_0x50a769(0xc3)](this[_0x50a769(0xc5)])),this[_0x50a769(0xcc)](),this[_0x50a769(0xab)][_0x50a769(0xba)]&&this[_0x50a769(0xcd)][_0x50a769(0xc3)](this[_0x50a769(0xbe)]),this[_0x50a769(0xab)][_0x50a769(0xd8)]&&this[_0x50a769(0xcd)][_0x50a769(0xc3)](this[_0x50a769(0xcf)]),this[_0x50a769(0xab)][_0x50a769(0xda)]&&this[_0x50a769(0xcd)][_0x50a769(0xbd)](this[_0x50a769(0xab)][_0x50a769(0xda)]);}[_0x4e114e(0xc4)](_0x4b452d){const _0x4e2dcd=_0x4e114e;this[_0x4e2dcd(0xc5)][_0x4e2dcd(0xd5)]=_0x4b452d;}[_0x4e114e(0xcc)](){const _0x1ec0de=_0x4e114e;this[_0x1ec0de(0xbe)]=new _0x1a5399(this[_0x1ec0de(0xc7)]),this[_0x1ec0de(0xbe)][_0x1ec0de(0xa6)]({'icon':_0x3c7bdf,'label':_0x30c811(this[_0x1ec0de(0xc7)],_0x1ec0de(0xa5)),'tooltip':!0x0}),this[_0x1ec0de(0xbe)][_0x1ec0de(0xd6)](_0x1ec0de(0xd5))['to'](this),this[_0x1ec0de(0xbe)]['on'](_0x1ec0de(0xa4),()=>{const _0x20b085=_0x1ec0de;this[_0x20b085(0xd2)](_0x20b085(0xbf));}),this[_0x1ec0de(0xcf)]=new _0x1a5399(this[_0x1ec0de(0xc7)]),this[_0x1ec0de(0xcf)][_0x1ec0de(0xa6)]({'icon':_0x128453,'label':_0x30c811(this[_0x1ec0de(0xc7)],_0x1ec0de(0xb3)),'tooltip':!0x0}),this[_0x1ec0de(0xcf)][_0x1ec0de(0xd6)](_0x1ec0de(0xd5))['to'](this),this[_0x1ec0de(0xcf)]['on'](_0x1ec0de(0xa4),()=>{const _0x3cf5f3=_0x1ec0de;this[_0x3cf5f3(0xd2)](_0x3cf5f3(0xd7));});}[_0x4e114e(0xd9)](){const _0x89fa1d=_0x4e114e;this[_0x89fa1d(0xc1)]=new _0x1a5399(this[_0x89fa1d(0xc7)]),this[_0x89fa1d(0xc1)][_0x89fa1d(0xa6)]({'icon':_0x439da3,'label':_0x30c811(this[_0x89fa1d(0xc7)],_0x89fa1d(0xce)),'class':_0x89fa1d(0xb6),'tooltip':!0x0}),this[_0x89fa1d(0xc1)][_0x89fa1d(0xd6)](_0x89fa1d(0xd5))['to'](this);const _0x15fdf2=new _0x1b2a1c();_0x15fdf2[_0x89fa1d(0xa6)]({'content':_0x5bffcc}),_0x15fdf2[_0x89fa1d(0xd0)]({'attributes':{'class':[_0x89fa1d(0xc8)]}}),this[_0x89fa1d(0xc1)]['on'](_0x89fa1d(0xa4),()=>{const _0x223334=_0x89fa1d;this[_0x223334(0xc1)][_0x223334(0xca)]=_0x223334(0xaa),setTimeout(()=>{const _0x307b61=_0x223334;this[_0x307b61(0xc1)][_0x307b61(0xca)]=_0x307b61(0xb6);},0x7d0);}),this[_0x89fa1d(0xc1)][_0x89fa1d(0xc0)][_0x89fa1d(0xc3)](_0x15fdf2);}[_0x4e114e(0xb7)](){const _0x152266=_0x4e114e;this[_0x152266(0xc5)]=new _0x1a5399(this[_0x152266(0xc7)]),this[_0x152266(0xc5)][_0x152266(0xa6)]({'icon':_0x5df1de,'label':_0x30c811(this[_0x152266(0xc7)],_0x152266(0xad)),'withText':_0x152266(0xc2)==this[_0x152266(0xab)][_0x152266(0xb1)],'tooltip':_0x152266(0xc2)!=this[_0x152266(0xab)][_0x152266(0xb1)],'class':_0x152266(0xa3)}),this[_0x152266(0xc5)][_0x152266(0xd6)](_0x152266(0xb4))['to'](this,_0x152266(0xd4)),this[_0x152266(0xc5)][_0x152266(0xd6)](_0x152266(0xd5))['to'](this),this[_0x152266(0xc5)][_0x152266(0xd6)](_0x152266(0xb5))['to'](this,_0x152266(0xd4),_0x1f2626=>_0x1f2626?_0x546e22:_0x5df1de),this[_0x152266(0xc5)]['on'](_0x152266(0xa4),()=>{const _0x33f90b=_0x152266;this[_0x33f90b(0xd2)](_0x33f90b(0xc9));});}}function _0x1e79(){const _0x2fe8fb=['5rASGZl','_setupRatingButtons','items','AI_MINI_TOOLBAR_COPY','dislikeButton','extendTemplate','length','fire','ck-ai-mini-toolbar\x20ck-hidden','isShowChangesOn','isEnabled','bind','dislike','showDislike','_setupCopyButton','customView','ck-ai-button-tertiary','execute','AI_MINI_TOOLBAR_LIKE','set','650608VBRImc','72825LOEesS','153sirGrG','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','_config','10hTGTGO','AI_SUGGESTION_BUTTON_SHOW_CHANGES','1061384ZFfFAU','121490dqDrlA','76326LlYozD','showChanges','12176IZvoDl','AI_MINI_TOOLBAR_DISLIKE','isOn','icon','ck-ai-mini-toolbar-copy-button','_setupShowChangesButton','ck-ai-mini-toolbar','7AWsXqT','showLike','168veYOrl','showCopy','addMany','likeButton','like','children','copyButton','full','add','toggleShowChangesEnabled','showChangesButton','67694tWYJCY','locale','ck-ai-mini-toolbar-copy-button__check-mark','toggleShowChanges','class'];_0x1e79=function(){return _0x2fe8fb;};return _0x1e79();}
23
+ const _0xe114d9=_0x75d2;(function(_0x4ceacc,_0x584779){const _0x787fa=_0x75d2,_0x12adde=_0x4ceacc();while(!![]){try{const _0x3f1d48=-parseInt(_0x787fa(0x141))/0x1*(-parseInt(_0x787fa(0x140))/0x2)+parseInt(_0x787fa(0x13c))/0x3+parseInt(_0x787fa(0x164))/0x4+parseInt(_0x787fa(0x139))/0x5+-parseInt(_0x787fa(0x146))/0x6*(parseInt(_0x787fa(0x154))/0x7)+parseInt(_0x787fa(0x163))/0x8*(parseInt(_0x787fa(0x13f))/0x9)+parseInt(_0x787fa(0x155))/0xa*(-parseInt(_0x787fa(0x14b))/0xb);if(_0x3f1d48===_0x584779)break;else _0x12adde['push'](_0x12adde['shift']());}catch(_0x17bbfc){_0x12adde['push'](_0x12adde['shift']());}}}(_0x41e6,0x753f0));function _0x75d2(_0x5acefd,_0x149ec5){const _0x41e605=_0x41e6();return _0x75d2=function(_0x75d2d2,_0x450684){_0x75d2d2=_0x75d2d2-0x134;let _0x2c94ef=_0x41e605[_0x75d2d2];return _0x2c94ef;},_0x75d2(_0x5acefd,_0x149ec5);}import{ButtonView as _0x214e84,IconView as _0x258964,ToolbarView as _0x287526}from'ckeditor5/src/ui.js';import{IconCheck as _0x11cefd,IconCopy as _0x4f7004,IconShowChangesOff as _0x246e5e,IconShowChangesOn as _0x3b20a1,IconThumbDown as _0x524fc2,IconThumbUp as _0x156536}from'@ckeditor/ckeditor5-icons';function _0x41e6(){const _0x52a6c6=['4225160RsXeAy','add','AI_MINI_TOOLBAR_COPY','locale','_setupRatingButtons','showCopy','execute','likeButton','ck-ai-button-tertiary','AI_MINI_TOOLBAR_LIKE','isShowChangesOn','_config','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','showChanges','4941752uqYlnx','1033400lJzmIv','addMany','ck-ai-mini-toolbar\x20ck-hidden','items','ck-ai-mini-toolbar','showLike','bind','length','set','extendTemplate','like','customView','1700995cJJflz','full','dislike','330576ZSZXEO','toggleShowChangesEnabled','copyButton','9qmdOHv','2lCPXqi','750902pFTzUM','isEnabled','ck-ai-mini-toolbar-copy-button','showDislike','showChangesButton','30uVzgDO','_setupShowChangesButton','_setupCopyButton','isOn','fire','22znvbFw','AI_MINI_TOOLBAR_DISLIKE','dislikeButton','class','toggleShowChanges','AI_SUGGESTION_BUTTON_SHOW_CHANGES','icon','ck-ai-mini-toolbar-copy-button__check-mark','children','1052926UJITOr'];_0x41e6=function(){return _0x52a6c6;};return _0x41e6();}import{getTranslation as _0x224f8f}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';export class AIMiniToolbarView extends _0x287526{[_0xe114d9(0x13e)];[_0xe114d9(0x15c)];[_0xe114d9(0x14d)];[_0xe114d9(0x145)];[_0xe114d9(0x160)];constructor(_0xd7a2e0,_0x174d58={}){const _0x4916e6=_0xe114d9;super(_0xd7a2e0),this[_0x4916e6(0x135)](_0x4916e6(0x142),!0x0),this[_0x4916e6(0x135)](_0x4916e6(0x15f),!0x1),this[_0x4916e6(0x160)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x174d58};const _0x4b457e=!(this[_0x4916e6(0x160)][_0x4916e6(0x15a)]||this[_0x4916e6(0x160)][_0x4916e6(0x162)]||this[_0x4916e6(0x160)][_0x4916e6(0x169)]||this[_0x4916e6(0x160)][_0x4916e6(0x144)]||this[_0x4916e6(0x160)][_0x4916e6(0x138)]?.[_0x4916e6(0x134)]);this[_0x4916e6(0x14e)]=_0x4b457e?_0x4916e6(0x166):_0x4916e6(0x168),this[_0x4916e6(0x160)][_0x4916e6(0x15a)]&&(this[_0x4916e6(0x148)](),this[_0x4916e6(0x167)][_0x4916e6(0x156)](this[_0x4916e6(0x13e)])),this[_0x4916e6(0x160)][_0x4916e6(0x162)]&&(this[_0x4916e6(0x147)](),this[_0x4916e6(0x167)][_0x4916e6(0x156)](this[_0x4916e6(0x145)])),this[_0x4916e6(0x159)](),this[_0x4916e6(0x160)][_0x4916e6(0x169)]&&this[_0x4916e6(0x167)][_0x4916e6(0x156)](this[_0x4916e6(0x15c)]),this[_0x4916e6(0x160)][_0x4916e6(0x144)]&&this[_0x4916e6(0x167)][_0x4916e6(0x156)](this[_0x4916e6(0x14d)]),this[_0x4916e6(0x160)][_0x4916e6(0x138)]&&this[_0x4916e6(0x167)][_0x4916e6(0x165)](this[_0x4916e6(0x160)][_0x4916e6(0x138)]);}[_0xe114d9(0x13d)](_0x3e2a98){const _0x1251fe=_0xe114d9;this[_0x1251fe(0x145)][_0x1251fe(0x142)]=_0x3e2a98;}[_0xe114d9(0x159)](){const _0x8760ec=_0xe114d9;this[_0x8760ec(0x15c)]=new _0x214e84(this[_0x8760ec(0x158)]),this[_0x8760ec(0x15c)][_0x8760ec(0x135)]({'icon':_0x156536,'label':_0x224f8f(this[_0x8760ec(0x158)],_0x8760ec(0x15e)),'tooltip':!0x0}),this[_0x8760ec(0x15c)][_0x8760ec(0x16a)](_0x8760ec(0x142))['to'](this),this[_0x8760ec(0x15c)]['on'](_0x8760ec(0x15b),()=>{const _0x25d86=_0x8760ec;this[_0x25d86(0x14a)](_0x25d86(0x137));}),this[_0x8760ec(0x14d)]=new _0x214e84(this[_0x8760ec(0x158)]),this[_0x8760ec(0x14d)][_0x8760ec(0x135)]({'icon':_0x524fc2,'label':_0x224f8f(this[_0x8760ec(0x158)],_0x8760ec(0x14c)),'tooltip':!0x0}),this[_0x8760ec(0x14d)][_0x8760ec(0x16a)](_0x8760ec(0x142))['to'](this),this[_0x8760ec(0x14d)]['on'](_0x8760ec(0x15b),()=>{const _0x26755a=_0x8760ec;this[_0x26755a(0x14a)](_0x26755a(0x13b));});}[_0xe114d9(0x148)](){const _0x1edff0=_0xe114d9;this[_0x1edff0(0x13e)]=new _0x214e84(this[_0x1edff0(0x158)]),this[_0x1edff0(0x13e)][_0x1edff0(0x135)]({'icon':_0x4f7004,'label':_0x224f8f(this[_0x1edff0(0x158)],_0x1edff0(0x157)),'class':_0x1edff0(0x143),'tooltip':!0x0}),this[_0x1edff0(0x13e)][_0x1edff0(0x16a)](_0x1edff0(0x142))['to'](this);const _0x403b37=new _0x258964();_0x403b37[_0x1edff0(0x135)]({'content':_0x11cefd}),_0x403b37[_0x1edff0(0x136)]({'attributes':{'class':[_0x1edff0(0x152)]}}),this[_0x1edff0(0x13e)]['on'](_0x1edff0(0x15b),()=>{const _0x1ebd5f=_0x1edff0;this[_0x1ebd5f(0x13e)][_0x1ebd5f(0x14e)]=_0x1ebd5f(0x161),setTimeout(()=>{const _0x397a57=_0x1ebd5f;this[_0x397a57(0x13e)][_0x397a57(0x14e)]=_0x397a57(0x143);},0x7d0);}),this[_0x1edff0(0x13e)][_0x1edff0(0x153)][_0x1edff0(0x156)](_0x403b37);}[_0xe114d9(0x147)](){const _0x4927e0=_0xe114d9;this[_0x4927e0(0x145)]=new _0x214e84(this[_0x4927e0(0x158)]),this[_0x4927e0(0x145)][_0x4927e0(0x135)]({'icon':_0x246e5e,'label':_0x224f8f(this[_0x4927e0(0x158)],_0x4927e0(0x150)),'withText':_0x4927e0(0x13a)==this[_0x4927e0(0x160)][_0x4927e0(0x162)],'tooltip':_0x4927e0(0x13a)!=this[_0x4927e0(0x160)][_0x4927e0(0x162)],'class':_0x4927e0(0x15d)}),this[_0x4927e0(0x145)][_0x4927e0(0x16a)](_0x4927e0(0x149))['to'](this,_0x4927e0(0x15f)),this[_0x4927e0(0x145)][_0x4927e0(0x16a)](_0x4927e0(0x142))['to'](this),this[_0x4927e0(0x145)][_0x4927e0(0x16a)](_0x4927e0(0x151))['to'](this,_0x4927e0(0x15f),_0xeec978=>_0xeec978?_0x3b20a1:_0x246e5e),this[_0x4927e0(0x145)]['on'](_0x4927e0(0x15b),()=>{const _0x26c4a0=_0x4927e0;this[_0x26c4a0(0x14a)](_0x26c4a0(0x14f));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x21ced6=_0xb77d;(function(_0x467405,_0x5d1818){const _0x37690d=_0xb77d,_0x4b1eda=_0x467405();while(!![]){try{const _0x7d2587=-parseInt(_0x37690d(0x145))/0x1+-parseInt(_0x37690d(0x132))/0x2*(parseInt(_0x37690d(0x139))/0x3)+-parseInt(_0x37690d(0x14e))/0x4*(parseInt(_0x37690d(0x13e))/0x5)+-parseInt(_0x37690d(0x15d))/0x6*(-parseInt(_0x37690d(0x143))/0x7)+-parseInt(_0x37690d(0x124))/0x8*(parseInt(_0x37690d(0x152))/0x9)+-parseInt(_0x37690d(0x12a))/0xa*(-parseInt(_0x37690d(0x153))/0xb)+parseInt(_0x37690d(0x12b))/0xc*(parseInt(_0x37690d(0x147))/0xd);if(_0x7d2587===_0x5d1818)break;else _0x4b1eda['push'](_0x4b1eda['shift']());}catch(_0x2df245){_0x4b1eda['push'](_0x4b1eda['shift']());}}}(_0xeb44,0x74581));import{View as _0x185120}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x3cf15f}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2751fd}from'../../utils/eventnames.js';import{PromiseQueue as _0x5ddb5b}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x11ab1d}from'../../../aichat/ui/feed/aichatfeederroritemview.js';function _0xeb44(){const _0x2a095b=['from','push','getPartView','_children','AI_SUGGESTION_EMPTY_PART_WARNING','delegate','_switchButtonLabelsPlurality','_availableActions','updateContentParts','12sbuqXe','setContent','isVisible','find','div','createCollection','add','AI_SUGGESTION_NO_PARTS_WARNING','some','hasNonEmptyParts','locale','_cachedContentParts','hasChanges','queueEmptyPromise','updatePartState','isEnabled','_areActionsDisabled','1530240LGcDvz','ck-ai-suggestion__body','updateContent','enqueue','updateVisibility','partsCount','300ACBlgK','348MzEOXZ','bodyCollection','hasPendingParts','_emptyPartsWarningView','state','ck-ai-suggestion__body__content-parts','isActive','2578HRTjsy','areActionsDisabled','_actionsView','availableActions','partDefinition','_showUnchangedParts','abort','606qpqmpu','length','_sourcesView','index','_updateContentPartsPromiseQueue','3338525SIhhVz','setPartActive','bind','filter','set','2827468Mucdha','setTemplate','50207GlLWMb','markAsDone','59189RXOVMx','forEach','addSource','empty-parts-warning','isTrackChangesOn','findIndex','pending','4MxScBm','updateSources','warning','addEventListener','9ILEGpn','258951DbfZKd'];_0xeb44=function(){return _0x2a095b;};return _0xeb44();}import{getTranslation as _0x513021}from'../../utils/common-translations.js';function _0xb77d(_0x4f3c98,_0x3438ba){const _0xeb4480=_0xeb44();return _0xb77d=function(_0xb77d7c,_0x141db4){_0xb77d7c=_0xb77d7c-0x117;let _0x37ed77=_0xeb4480[_0xb77d7c];return _0x37ed77;},_0xb77d(_0x4f3c98,_0x3438ba);}import{AIChatFeedSuggestionItemActionsView as _0x334241}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x2c9a74}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x185120{[_0x21ced6(0x134)];[_0x21ced6(0x13b)];[_0x21ced6(0x157)];[_0x21ced6(0x123)];[_0x21ced6(0x137)];[_0x21ced6(0x13d)];[_0x21ced6(0x12e)];[_0x21ced6(0x15b)];[_0x21ced6(0x11e)]=[];constructor(_0x2da063,_0x2a9eeb){const _0x142c0d=_0x21ced6;super(_0x2da063);const {areActionsDisabled:_0x57a21c,showUnchangedParts:_0x4e8579,availableActions:_0x52b662}=_0x2a9eeb;this[_0x142c0d(0x123)]=_0x57a21c,this[_0x142c0d(0x137)]=_0x4e8579,this[_0x142c0d(0x15b)]=_0x52b662,this[_0x142c0d(0x142)](_0x142c0d(0x12d),!0x1),this[_0x142c0d(0x142)](_0x142c0d(0x14b),!0x1),this[_0x142c0d(0x157)]=this[_0x142c0d(0x118)](),this[_0x142c0d(0x13d)]=new _0x5ddb5b(),this[_0x142c0d(0x12e)]=new _0x11ab1d({'id':_0x142c0d(0x14a),'initialContent':_0x513021(_0x2da063,_0x142c0d(0x158)),'level':_0x142c0d(0x150)}),this[_0x142c0d(0x12e)][_0x142c0d(0x15f)]=!0x1,this[_0x142c0d(0x134)]=new _0x334241(_0x2da063,_0x2a9eeb[_0x142c0d(0x135)],this[_0x142c0d(0x123)]),this[_0x142c0d(0x134)][_0x142c0d(0x140)](_0x142c0d(0x14b))['to'](this),this[_0x142c0d(0x13b)]=new _0x2c9a74(this[_0x142c0d(0x11d)],_0x2a9eeb[_0x142c0d(0x12c)]),_0x2a9eeb[_0x142c0d(0x133)]?this[_0x142c0d(0x134)][_0x142c0d(0x122)]=!0x1:this[_0x142c0d(0x134)][_0x142c0d(0x140)](_0x142c0d(0x122))['to'](this,_0x142c0d(0x12d)),this[_0x142c0d(0x134)][_0x142c0d(0x159)](..._0x2751fd)['to'](this),this[_0x142c0d(0x144)]({'tag':_0x142c0d(0x117),'attributes':{'class':['ck',_0x142c0d(0x125)]},'children':[{'tag':_0x142c0d(0x117),'attributes':{'class':['ck',_0x142c0d(0x130)]},'children':this[_0x142c0d(0x157)]},this[_0x142c0d(0x12e)],this[_0x142c0d(0x134)],this[_0x142c0d(0x13b)]]});}get[_0x21ced6(0x129)](){const _0x458037=_0x21ced6;return this[_0x458037(0x157)][_0x458037(0x13a)];}async[_0x21ced6(0x15c)]({parts:_0x56bb0f,renderingStrategy:_0x3df567,abortSignal:_0x2f14de}){const _0x22d1eb=_0x21ced6;this[_0x22d1eb(0x157)][_0x22d1eb(0x13a)]?_0x56bb0f[_0x22d1eb(0x148)](_0x53979d=>{const _0x3175ed=_0x22d1eb,_0x498d6f=this[_0x3175ed(0x11e)][_0x3175ed(0x14c)](_0x13a25c=>_0x13a25c[_0x3175ed(0x13c)]==_0x53979d[_0x3175ed(0x13c)]);-0x1===_0x498d6f?this[_0x3175ed(0x11e)][_0x3175ed(0x155)](_0x53979d):this[_0x3175ed(0x11e)][_0x498d6f]=_0x53979d;}):this[_0x22d1eb(0x11e)]=_0x56bb0f;const _0x3eed0c=this[_0x22d1eb(0x137)]?_0x56bb0f:_0x56bb0f[_0x22d1eb(0x141)](_0x408bcf=>_0x408bcf[_0x22d1eb(0x11f)]);this[_0x22d1eb(0x134)][_0x22d1eb(0x15a)](_0x3eed0c[_0x22d1eb(0x13a)]>0x1);for(const _0x15fe6a of _0x3eed0c)this[_0x22d1eb(0x13d)][_0x22d1eb(0x127)](async _0x422e05=>{const _0x36c335=_0x22d1eb;let _0x36dcd4=this[_0x36c335(0x156)](_0x15fe6a[_0x36c335(0x13c)]);_0x36dcd4||(_0x36dcd4=new _0x3cf15f(this[_0x36c335(0x11d)],{'part':_0x15fe6a,'uiIndex':this[_0x36c335(0x157)][_0x36c335(0x13a)]+0x1,'areActionsDisabled':this[_0x36c335(0x123)],'availableActions':this[_0x36c335(0x15b)]}),_0x36dcd4[_0x36c335(0x159)](..._0x2751fd)['to'](this),this[_0x36c335(0x157)][_0x36c335(0x119)](_0x36dcd4),this[_0x36c335(0x12d)]=!0x0),await _0x36dcd4[_0x36c335(0x126)]({'part':_0x15fe6a,'renderingStrategy':_0x3df567,'showUnchangedParts':this[_0x36c335(0x137)],'abortSignal':_0x422e05}),_0x36dcd4[_0x36c335(0x146)]();});return _0x2f14de?.[_0x22d1eb(0x151)](_0x22d1eb(0x138),()=>{const _0x3ebddc=_0x22d1eb;this[_0x3ebddc(0x13d)][_0x3ebddc(0x138)]();}),this[_0x22d1eb(0x13d)][_0x22d1eb(0x120)];}[_0x21ced6(0x121)](_0xb6a118,_0x59f4c4){const _0x5e4025=_0x21ced6,_0x379cea=this[_0x5e4025(0x156)](_0xb6a118);_0x379cea&&(_0x379cea[_0x5e4025(0x12f)]=_0x59f4c4),this[_0x5e4025(0x12d)]=_0x5e4025(0x14d)==_0x59f4c4||Array[_0x5e4025(0x154)](this[_0x5e4025(0x157)])[_0x5e4025(0x11b)](_0x2e4f48=>_0x5e4025(0x14d)==_0x2e4f48[_0x5e4025(0x12f)]);}[_0x21ced6(0x13f)](_0x32f6dd,_0x4d2250){const _0x1f0be3=_0x21ced6;if(!0x1===_0x32f6dd){for(const _0x9c60ee of this[_0x1f0be3(0x157)])_0x9c60ee[_0x1f0be3(0x131)]=!0x1;}else{const _0x2ca952=this[_0x1f0be3(0x156)](_0x32f6dd);_0x2ca952&&(_0x2ca952[_0x1f0be3(0x131)]=_0x4d2250);}}[_0x21ced6(0x14f)](_0x4a6eab){const _0x5da691=_0x21ced6;_0x4a6eab[_0x5da691(0x148)](_0x41492e=>this[_0x5da691(0x13b)][_0x5da691(0x149)](_0x41492e)),this[_0x5da691(0x13b)][_0x5da691(0x15f)]=!0x0;}[_0x21ced6(0x156)](_0x3475e8){const _0x2f9ffe=_0x21ced6;return this[_0x2f9ffe(0x157)][_0x2f9ffe(0x160)](_0x4a59f3=>_0x4a59f3[_0x2f9ffe(0x136)][_0x2f9ffe(0x13c)]==_0x3475e8)??null;}[_0x21ced6(0x146)](){const _0x18455e=_0x21ced6;if(!this[_0x18455e(0x137)]){const _0x318687=!this[_0x18455e(0x11e)][_0x18455e(0x160)](({hasChanges:_0x4c6b8c})=>_0x4c6b8c),_0x4f020a=!!this[_0x18455e(0x11e)][_0x18455e(0x160)](({hasChanges:_0x3b730f})=>!_0x3b730f);this[_0x18455e(0x12e)][_0x18455e(0x15f)]=0x0==this[_0x18455e(0x157)][_0x18455e(0x13a)]||_0x4f020a,_0x318687?this[_0x18455e(0x12e)][_0x18455e(0x15e)](_0x513021(this[_0x18455e(0x11d)],_0x18455e(0x11a))):this[_0x18455e(0x12e)][_0x18455e(0x15e)](_0x513021(this[_0x18455e(0x11d)],_0x18455e(0x158)));}this[_0x18455e(0x157)][_0x18455e(0x148)](_0x522168=>_0x522168[_0x18455e(0x146)]()),this[_0x18455e(0x134)][_0x18455e(0x128)](this[_0x18455e(0x11c)]);}get[_0x21ced6(0x11c)](){const _0x56fdb5=_0x21ced6;return this[_0x56fdb5(0x157)][_0x56fdb5(0x141)](_0x1998ec=>_0x1998ec[_0x56fdb5(0x136)][_0x56fdb5(0x11f)])[_0x56fdb5(0x13a)]>0x0;}}
23
+ const _0x5cdc26=_0x1c50;(function(_0x25d9e6,_0x1bea54){const _0x576bb2=_0x1c50,_0x56c969=_0x25d9e6();while(!![]){try{const _0x2636ab=-parseInt(_0x576bb2(0x14c))/0x1*(parseInt(_0x576bb2(0x143))/0x2)+parseInt(_0x576bb2(0x14d))/0x3*(-parseInt(_0x576bb2(0x157))/0x4)+parseInt(_0x576bb2(0x165))/0x5+-parseInt(_0x576bb2(0x164))/0x6+parseInt(_0x576bb2(0x17e))/0x7+parseInt(_0x576bb2(0x138))/0x8*(parseInt(_0x576bb2(0x156))/0x9)+-parseInt(_0x576bb2(0x141))/0xa*(-parseInt(_0x576bb2(0x144))/0xb);if(_0x2636ab===_0x1bea54)break;else _0x56c969['push'](_0x56c969['shift']());}catch(_0xfafcaa){_0x56c969['push'](_0x56c969['shift']());}}}(_0x40de,0xb3f8f));import{View as _0x2cf521}from'ckeditor5/src/ui.js';function _0x40de(){const _0x782a56=['set','findIndex','7839972kEmcRE','56wSWDWI','availableActions','filter','_updateContentPartsPromiseQueue','_switchButtonLabelsPlurality','_showUnchangedParts','_areActionsDisabled','_availableActions','_emptyPartsWarningView','addSource','ck-ai-suggestion__body','_cachedContentParts','updatePartState','7427574eBejzY','498285LLndon','isTrackChangesOn','partsCount','div','isEnabled','warning','setContent','markAsDone','abort','hasNonEmptyParts','bodyCollection','queueEmptyPromise','forEach','index','pending','isActive','setPartActive','_sourcesView','createCollection','hasPendingParts','addEventListener','getPartView','areActionsDisabled','push','find','3784067WqiiqT','empty-parts-warning','8agCaKA','AI_SUGGESTION_EMPTY_PART_WARNING','hasChanges','_actionsView','locale','updateContentParts','updateContent','bind','some','40VgCqZP','AI_SUGGESTION_NO_PARTS_WARNING','2122QxSuTE','5308116GHHKiW','updateVisibility','_children','length','from','partDefinition','updateSources','setTemplate','326aTcqQe','240126BhHqVO','add','enqueue','ck-ai-suggestion__body__content-parts','delegate','state','isVisible'];_0x40de=function(){return _0x782a56;};return _0x40de();}import{AISuggestionBodyViewContentPartView as _0x2379f9}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2abefa}from'../../utils/eventnames.js';import{PromiseQueue as _0x1fdc92}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x3e0544}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x59fe94}from'../../utils/common-translations.js';function _0x1c50(_0x4f5f92,_0x2c85f6){const _0x40de9c=_0x40de();return _0x1c50=function(_0x1c5082,_0x4b0e07){_0x1c5082=_0x1c5082-0x137;let _0x112f4b=_0x40de9c[_0x1c5082];return _0x112f4b;},_0x1c50(_0x4f5f92,_0x2c85f6);}import{AIChatFeedSuggestionItemActionsView as _0x519992}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x4a8760}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x2cf521{[_0x5cdc26(0x13b)];[_0x5cdc26(0x176)];[_0x5cdc26(0x146)];[_0x5cdc26(0x15d)];[_0x5cdc26(0x15c)];[_0x5cdc26(0x15a)];[_0x5cdc26(0x15f)];[_0x5cdc26(0x15e)];[_0x5cdc26(0x162)]=[];constructor(_0x25ff0d,_0x223079){const _0x540efa=_0x5cdc26;super(_0x25ff0d);const {areActionsDisabled:_0xc60de7,showUnchangedParts:_0x24f87e,availableActions:_0x2a3e07}=_0x223079;this[_0x540efa(0x15d)]=_0xc60de7,this[_0x540efa(0x15c)]=_0x24f87e,this[_0x540efa(0x15e)]=_0x2a3e07,this[_0x540efa(0x154)](_0x540efa(0x178),!0x1),this[_0x540efa(0x154)](_0x540efa(0x166),!0x1),this[_0x540efa(0x146)]=this[_0x540efa(0x177)](),this[_0x540efa(0x15a)]=new _0x1fdc92(),this[_0x540efa(0x15f)]=new _0x3e0544({'id':_0x540efa(0x137),'initialContent':_0x59fe94(_0x25ff0d,_0x540efa(0x139)),'level':_0x540efa(0x16a)}),this[_0x540efa(0x15f)][_0x540efa(0x153)]=!0x1,this[_0x540efa(0x13b)]=new _0x519992(_0x25ff0d,_0x223079[_0x540efa(0x158)],this[_0x540efa(0x15d)]),this[_0x540efa(0x13b)][_0x540efa(0x13f)](_0x540efa(0x166))['to'](this),this[_0x540efa(0x176)]=new _0x4a8760(this[_0x540efa(0x13c)],_0x223079[_0x540efa(0x16f)]),_0x223079[_0x540efa(0x17b)]?this[_0x540efa(0x13b)][_0x540efa(0x169)]=!0x1:this[_0x540efa(0x13b)][_0x540efa(0x13f)](_0x540efa(0x169))['to'](this,_0x540efa(0x178)),this[_0x540efa(0x13b)][_0x540efa(0x151)](..._0x2abefa)['to'](this),this[_0x540efa(0x14b)]({'tag':_0x540efa(0x168),'attributes':{'class':['ck',_0x540efa(0x161)]},'children':[{'tag':_0x540efa(0x168),'attributes':{'class':['ck',_0x540efa(0x150)]},'children':this[_0x540efa(0x146)]},this[_0x540efa(0x15f)],this[_0x540efa(0x13b)],this[_0x540efa(0x176)]]});}get[_0x5cdc26(0x167)](){const _0x3b29af=_0x5cdc26;return this[_0x3b29af(0x146)][_0x3b29af(0x147)];}async[_0x5cdc26(0x13d)]({parts:_0x1eadbd,renderingStrategy:_0x7673b3,abortSignal:_0x3847b0}){const _0x36210e=_0x5cdc26;this[_0x36210e(0x146)][_0x36210e(0x147)]?_0x1eadbd[_0x36210e(0x171)](_0x2b4256=>{const _0x1736c3=_0x36210e,_0x46e963=this[_0x1736c3(0x162)][_0x1736c3(0x155)](_0xaeb3a=>_0xaeb3a[_0x1736c3(0x172)]==_0x2b4256[_0x1736c3(0x172)]);-0x1===_0x46e963?this[_0x1736c3(0x162)][_0x1736c3(0x17c)](_0x2b4256):this[_0x1736c3(0x162)][_0x46e963]=_0x2b4256;}):this[_0x36210e(0x162)]=_0x1eadbd;const _0xa8a1ae=this[_0x36210e(0x15c)]?_0x1eadbd:_0x1eadbd[_0x36210e(0x159)](_0x17638a=>_0x17638a[_0x36210e(0x13a)]);this[_0x36210e(0x13b)][_0x36210e(0x15b)](_0xa8a1ae[_0x36210e(0x147)]>0x1);for(const _0x662f0 of _0xa8a1ae)this[_0x36210e(0x15a)][_0x36210e(0x14f)](async _0x2ed987=>{const _0x38c4af=_0x36210e;let _0x16d56d=this[_0x38c4af(0x17a)](_0x662f0[_0x38c4af(0x172)]);_0x16d56d||(_0x16d56d=new _0x2379f9(this[_0x38c4af(0x13c)],{'part':_0x662f0,'uiIndex':this[_0x38c4af(0x146)][_0x38c4af(0x147)]+0x1,'areActionsDisabled':this[_0x38c4af(0x15d)],'availableActions':this[_0x38c4af(0x15e)]}),_0x16d56d[_0x38c4af(0x151)](..._0x2abefa)['to'](this),this[_0x38c4af(0x146)][_0x38c4af(0x14e)](_0x16d56d),this[_0x38c4af(0x178)]=!0x0),await _0x16d56d[_0x38c4af(0x13e)]({'part':_0x662f0,'renderingStrategy':_0x7673b3,'showUnchangedParts':this[_0x38c4af(0x15c)],'abortSignal':_0x2ed987}),_0x16d56d[_0x38c4af(0x16c)]();});return _0x3847b0?.[_0x36210e(0x179)](_0x36210e(0x16d),()=>{const _0x590c4d=_0x36210e;this[_0x590c4d(0x15a)][_0x590c4d(0x16d)]();}),this[_0x36210e(0x15a)][_0x36210e(0x170)];}[_0x5cdc26(0x163)](_0x126279,_0x5040b8){const _0x2b81d0=_0x5cdc26,_0x21cb0a=this[_0x2b81d0(0x17a)](_0x126279);_0x21cb0a&&(_0x21cb0a[_0x2b81d0(0x152)]=_0x5040b8),this[_0x2b81d0(0x178)]=_0x2b81d0(0x173)==_0x5040b8||Array[_0x2b81d0(0x148)](this[_0x2b81d0(0x146)])[_0x2b81d0(0x140)](_0x18fd85=>_0x2b81d0(0x173)==_0x18fd85[_0x2b81d0(0x152)]);}[_0x5cdc26(0x175)](_0x2a5be7,_0x551f3d){const _0x533944=_0x5cdc26;if(!0x1===_0x2a5be7){for(const _0x2b0caa of this[_0x533944(0x146)])_0x2b0caa[_0x533944(0x174)]=!0x1;}else{const _0x2e1f0f=this[_0x533944(0x17a)](_0x2a5be7);_0x2e1f0f&&(_0x2e1f0f[_0x533944(0x174)]=_0x551f3d);}}[_0x5cdc26(0x14a)](_0x3407b4){const _0x54c82f=_0x5cdc26;_0x3407b4[_0x54c82f(0x171)](_0x5d1390=>this[_0x54c82f(0x176)][_0x54c82f(0x160)](_0x5d1390)),this[_0x54c82f(0x176)][_0x54c82f(0x153)]=!0x0;}[_0x5cdc26(0x17a)](_0x14982c){const _0x4c80ee=_0x5cdc26;return this[_0x4c80ee(0x146)][_0x4c80ee(0x17d)](_0x165f32=>_0x165f32[_0x4c80ee(0x149)][_0x4c80ee(0x172)]==_0x14982c)??null;}[_0x5cdc26(0x16c)](){const _0x46c837=_0x5cdc26;if(!this[_0x46c837(0x15c)]){const _0x37d914=!this[_0x46c837(0x162)][_0x46c837(0x17d)](({hasChanges:_0x2f766a})=>_0x2f766a),_0x31de55=!!this[_0x46c837(0x162)][_0x46c837(0x17d)](({hasChanges:_0x46df63})=>!_0x46df63);this[_0x46c837(0x15f)][_0x46c837(0x153)]=0x0==this[_0x46c837(0x146)][_0x46c837(0x147)]||_0x31de55,_0x37d914?this[_0x46c837(0x15f)][_0x46c837(0x16b)](_0x59fe94(this[_0x46c837(0x13c)],_0x46c837(0x142))):this[_0x46c837(0x15f)][_0x46c837(0x16b)](_0x59fe94(this[_0x46c837(0x13c)],_0x46c837(0x139)));}this[_0x46c837(0x146)][_0x46c837(0x171)](_0x4ddf4e=>_0x4ddf4e[_0x46c837(0x16c)]()),this[_0x46c837(0x13b)][_0x46c837(0x145)](this[_0x46c837(0x16e)]);}get[_0x5cdc26(0x16e)](){const _0x1cc118=_0x5cdc26;return this[_0x1cc118(0x146)][_0x1cc118(0x159)](_0x499a78=>_0x499a78[_0x1cc118(0x149)][_0x1cc118(0x13a)])[_0x1cc118(0x147)]>0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2436(){const _0x531efb=['4503350bdSWen','bind','15155lbKokv','164079LeIsHW','hasNonEmptyParts','headerView','updateContentParts','add','setTemplate','isShowChangesToggleVisible','areChangesVisible','490392yXlqnV','149374coimYO','1038JcfdcV','div','markAsDone','8UqYoKX','ck-ai-suggestion__container','set','536PMstJi','isTrackChangesOn','isOn','toggleSuggestionDisplayMode','createCollection','308015azqOHI','bodyView','fire','updateSources','children','2718894lAnMsA','updateContent','delegate','ck-rounded-corners','toggleShowChanges'];_0x2436=function(){return _0x531efb;};return _0x2436();}const _0x336577=_0x5d8c;(function(_0x230ad2,_0x4b2a70){const _0x517555=_0x5d8c,_0xe4f482=_0x230ad2();while(!![]){try{const _0x432227=-parseInt(_0x517555(0xdb))/0x1*(-parseInt(_0x517555(0xd7))/0x2)+-parseInt(_0x517555(0xe8))/0x3+-parseInt(_0x517555(0xd6))/0x4+-parseInt(_0x517555(0xe3))/0x5+parseInt(_0x517555(0xd8))/0x6*(parseInt(_0x517555(0xef))/0x7)+parseInt(_0x517555(0xde))/0x8*(parseInt(_0x517555(0xf0))/0x9)+-parseInt(_0x517555(0xed))/0xa;if(_0x432227===_0x4b2a70)break;else _0xe4f482['push'](_0xe4f482['shift']());}catch(_0x400c89){_0xe4f482['push'](_0xe4f482['shift']());}}}(_0x2436,0x9f58c));import{View as _0x52277d}from'ckeditor5/src/ui.js';function _0x5d8c(_0x1ed5b7,_0x1445c3){const _0x24368f=_0x2436();return _0x5d8c=function(_0x5d8cec,_0x398629){_0x5d8cec=_0x5d8cec-0xd1;let _0x3c20b9=_0x24368f[_0x5d8cec];return _0x3c20b9;},_0x5d8c(_0x1ed5b7,_0x1445c3);}import{AISuggestionHeaderView as _0x4664d1}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x10d48b}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4c8112}from'../../utils/eventnames.js';import'../../../../theme/aichat/aisuggestioncontainer.css';export class AISuggestionContainerView extends _0x52277d{[_0x336577(0xe4)];[_0x336577(0xe7)];[_0x336577(0xf2)];constructor(_0xfc1eaa,_0x11054c,_0x2f5f71){const _0x17960b=_0x336577;super(_0xfc1eaa);const {showDiff:_0x4f5f3a,areActionsDisabled:_0x237cce,showUnchangedParts:_0x2710e0,availableActions:_0x195bb7}=_0x11054c;this[_0x17960b(0xdd)](_0x17960b(0xdf),!0x1),this[_0x17960b(0xdd)](_0x17960b(0xd5),!0x1),this[_0x17960b(0xe7)]=this[_0x17960b(0xe2)](),this[_0x17960b(0xf2)]=new _0x4664d1(_0xfc1eaa,{'showDiff':_0x4f5f3a}),this[_0x17960b(0xf2)]['on'](_0x17960b(0xec),(_0x1ce6b3,_0x496e20)=>{const _0x4445d3=_0x17960b;this[_0x4445d3(0xd5)]=_0x496e20[_0x4445d3(0xe0)],this[_0x4445d3(0xe5)](_0x4445d3(0xe1),{'showDiff':_0x496e20[_0x4445d3(0xe0)]});}),this[_0x17960b(0xe7)][_0x17960b(0xd2)](this[_0x17960b(0xf2)]),this[_0x17960b(0xe4)]=new _0x10d48b(_0xfc1eaa,{'areActionsDisabled':_0x237cce,'showUnchangedParts':!!_0x2710e0,'availableActions':_0x195bb7,'bodyCollection':_0x2f5f71}),this[_0x17960b(0xe4)][_0x17960b(0xea)](..._0x4c8112)['to'](this),this[_0x17960b(0xe4)][_0x17960b(0xee)](_0x17960b(0xdf))['to'](this),this[_0x17960b(0xe7)][_0x17960b(0xd2)](this[_0x17960b(0xe4)]),this[_0x17960b(0xd3)]({'tag':_0x17960b(0xd9),'attributes':{'class':['ck',_0x17960b(0xdc),_0x17960b(0xeb)]},'children':this[_0x17960b(0xe7)]});}async[_0x336577(0xe9)](_0x2dc99a){const _0x507d98=_0x336577;await this[_0x507d98(0xe4)][_0x507d98(0xd1)](_0x2dc99a);}[_0x336577(0xe6)](_0x2ca347){const _0x23ed2a=_0x336577;this[_0x23ed2a(0xe4)][_0x23ed2a(0xe6)](_0x2ca347);}[_0x336577(0xda)](){const _0x5019a7=_0x336577;this[_0x5019a7(0xe4)][_0x5019a7(0xda)](),this[_0x5019a7(0xf2)]&&(this[_0x5019a7(0xf2)][_0x5019a7(0xd4)]=this[_0x5019a7(0xe4)][_0x5019a7(0xf1)]);}}
23
+ const _0x5790da=_0x3930;function _0x35c7(){const _0x374633=['areChangesVisible','117KIRrZY','set','isShowChangesToggleVisible','206620lrkPwf','setTemplate','8uZcceK','7932216pCdrTD','410QBpYKM','updateContentParts','ck-rounded-corners','38338CVJxgK','943841RqFJyv','bodyView','3399333IIPydE','24604316udowua','isTrackChangesOn','div','toggleShowChanges','ck-ai-suggestion__container','children','fire','headerView','isOn','updateSources','71901qwkgSu','delegate','add','updateContent','toggleSuggestionDisplayMode','createCollection','bind','hasNonEmptyParts','markAsDone','4iERjeF'];_0x35c7=function(){return _0x374633;};return _0x35c7();}(function(_0x35f957,_0x545046){const _0x652d7a=_0x3930,_0x15939a=_0x35f957();while(!![]){try{const _0x21bcd2=-parseInt(_0x652d7a(0xc8))/0x1+parseInt(_0x652d7a(0xc7))/0x2*(parseInt(_0x652d7a(0xbd))/0x3)+-parseInt(_0x652d7a(0xbb))/0x4*(-parseInt(_0x652d7a(0xc0))/0x5)+-parseInt(_0x652d7a(0xc3))/0x6+parseInt(_0x652d7a(0xca))/0x7*(parseInt(_0x652d7a(0xc2))/0x8)+parseInt(_0x652d7a(0xb2))/0x9*(-parseInt(_0x652d7a(0xc4))/0xa)+parseInt(_0x652d7a(0xcb))/0xb;if(_0x21bcd2===_0x545046)break;else _0x15939a['push'](_0x15939a['shift']());}catch(_0x27f798){_0x15939a['push'](_0x15939a['shift']());}}}(_0x35c7,0xe0168));import{View as _0x45697b}from'ckeditor5/src/ui.js';import{AISuggestionHeaderView as _0x575c51}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x5aebd1}from'./aisuggestionbodyview.js';function _0x3930(_0x333fca,_0x572f96){const _0x35c718=_0x35c7();return _0x3930=function(_0x3930bc,_0x4acdeb){_0x3930bc=_0x3930bc-0xaa;let _0x5c5dd1=_0x35c718[_0x3930bc];return _0x5c5dd1;},_0x3930(_0x333fca,_0x572f96);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x1a8af0}from'../../utils/eventnames.js';import'../../../../theme/aichat/aisuggestioncontainer.css';export class AISuggestionContainerView extends _0x45697b{[_0x5790da(0xc9)];[_0x5790da(0xad)];[_0x5790da(0xaf)];constructor(_0x270dca,_0x4ab8cd,_0x2aac7b){const _0x529686=_0x5790da;super(_0x270dca);const {showDiff:_0x3b52d2,areActionsDisabled:_0x44e885,showUnchangedParts:_0x321c7d,availableActions:_0x336128}=_0x4ab8cd;this[_0x529686(0xbe)](_0x529686(0xcc),!0x1),this[_0x529686(0xbe)](_0x529686(0xbc),!0x1),this[_0x529686(0xad)]=this[_0x529686(0xb7)](),this[_0x529686(0xaf)]=new _0x575c51(_0x270dca,{'showDiff':_0x3b52d2}),this[_0x529686(0xaf)]['on'](_0x529686(0xab),(_0x8838ac,_0x5debbd)=>{const _0x1e9dcc=_0x529686;this[_0x1e9dcc(0xbc)]=_0x5debbd[_0x1e9dcc(0xb0)],this[_0x1e9dcc(0xae)](_0x1e9dcc(0xb6),{'showDiff':_0x5debbd[_0x1e9dcc(0xb0)]});}),this[_0x529686(0xad)][_0x529686(0xb4)](this[_0x529686(0xaf)]),this[_0x529686(0xc9)]=new _0x5aebd1(_0x270dca,{'areActionsDisabled':_0x44e885,'showUnchangedParts':!!_0x321c7d,'availableActions':_0x336128,'bodyCollection':_0x2aac7b}),this[_0x529686(0xc9)][_0x529686(0xb3)](..._0x1a8af0)['to'](this),this[_0x529686(0xc9)][_0x529686(0xb8)](_0x529686(0xcc))['to'](this),this[_0x529686(0xad)][_0x529686(0xb4)](this[_0x529686(0xc9)]),this[_0x529686(0xc1)]({'tag':_0x529686(0xaa),'attributes':{'class':['ck',_0x529686(0xac),_0x529686(0xc6)]},'children':this[_0x529686(0xad)]});}async[_0x5790da(0xb5)](_0x414534){const _0xd6e1e1=_0x5790da;await this[_0xd6e1e1(0xc9)][_0xd6e1e1(0xc5)](_0x414534);}[_0x5790da(0xb1)](_0x24d660){const _0xb694a4=_0x5790da;this[_0xb694a4(0xc9)][_0xb694a4(0xb1)](_0x24d660);}[_0x5790da(0xba)](){const _0x5b0aa7=_0x5790da;this[_0x5b0aa7(0xc9)][_0x5b0aa7(0xba)](),this[_0x5b0aa7(0xaf)]&&(this[_0x5b0aa7(0xaf)][_0x5b0aa7(0xbf)]=this[_0x5b0aa7(0xc9)][_0x5b0aa7(0xb9)]);}}