@ckeditor/ckeditor5-ai 47.7.0-alpha.2 → 47.7.0-alpha.4

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 _0x24ce74=_0x2f3e;(function(_0x1bc237,_0x2111f3){const _0x1b8cad=_0x2f3e,_0xbdf19d=_0x1bc237();while(!![]){try{const _0xe08f21=parseInt(_0x1b8cad(0x157))/0x1+parseInt(_0x1b8cad(0x17d))/0x2*(-parseInt(_0x1b8cad(0x18c))/0x3)+parseInt(_0x1b8cad(0x164))/0x4+parseInt(_0x1b8cad(0x18d))/0x5*(-parseInt(_0x1b8cad(0x145))/0x6)+-parseInt(_0x1b8cad(0x19b))/0x7*(-parseInt(_0x1b8cad(0x155))/0x8)+parseInt(_0x1b8cad(0x162))/0x9+-parseInt(_0x1b8cad(0x16b))/0xa*(parseInt(_0x1b8cad(0x190))/0xb);if(_0xe08f21===_0x2111f3)break;else _0xbdf19d['push'](_0xbdf19d['shift']());}catch(_0x9d290a){_0xbdf19d['push'](_0xbdf19d['shift']());}}}(_0x1edf,0xbac7b));import{CKEditorError as _0x45fe0c,EmitterMixin as _0x3ef4e7,uid as _0x31250e}from'ckeditor5/src/utils.js';import{AIReply as _0x5054ae}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x24ce74(0x167),_0x24ce74(0x187),_0x24ce74(0x17f),_0x24ce74(0x166),_0x24ce74(0x181),_0x24ce74(0x188),_0x24ce74(0x172),_0x24ce74(0x173),_0x24ce74(0x19a),_0x24ce74(0x184),_0x24ce74(0x153),_0x24ce74(0x161),_0x24ce74(0x15f),_0x24ce74(0x14d),_0x24ce74(0x192)];function _0x1edf(){const _0x3a72ea=['textDelta','interactionDestroyed','getDocumentContext','type','webSearchStarted','modification','createReply','interactionStarted','replyCreated','_isReasoning','start','content','745689pcCluc','985DdxYkw','abortController','getReply','485969rHMKzG','getStream','error','_handleToolNotificationData','editor','replies','action-metadata','find','_isWebSearching','isDestroyed','setConversationTitle','602jBpllG','fire','21180xXXRHM','source','_finalizeInteraction','mcp-tool-notification','currentReply','messageId','reasoning','toolName','toolDataReceived','isStopped','event','sources','callId','resetReasoningState','webSearchFinished','splice','2968arXnzo','stopListening','849076RoUVzB','currentRequest','result','done','text-delta','message-metadata','connector','forEach','reasoningFinished','attributes','reasoningStarted','10586466IVYpLq','mcp-tool-result','4085268pSMnwh','ai-chat-interaction-error','interactionFinished','interactionCreated','appendContent','text','sendRequest','310wsstsx','delegate','abort','conversationTitle','notification','data','stop','replyContentUpdated','replyChangeGroupStateUpdated','actionCallId','destroy','resetWebSearchState','conversation-title','web-search','parse','modification-delta','_handleToolResultData','push','2qRMEem','length','interactionStopped'];_0x1edf=function(){return _0x3a72ea;};return _0x1edf();}function _0x2f3e(_0xa14a0b,_0xbfc70b){const _0x1edfb4=_0x1edf();return _0x2f3e=function(_0x2f3e55,_0x54fd93){_0x2f3e55=_0x2f3e55-0x144;let _0x168216=_0x1edfb4[_0x2f3e55];return _0x168216;},_0x2f3e(_0xa14a0b,_0xbfc70b);}export class AIInteraction extends _0x3ef4e7(){['id'];[_0x24ce74(0x195)]=[];[_0x24ce74(0x149)];[_0x24ce74(0x14a)];[_0x24ce74(0x174)];[_0x24ce74(0x158)];[_0x24ce74(0x15d)];[_0x24ce74(0x14e)]=!0x1;[_0x24ce74(0x199)]=!0x1;[_0x24ce74(0x194)];[_0x24ce74(0x189)]=!0x1;[_0x24ce74(0x198)]=!0x1;constructor({connector:_0x3873d0,editor:_0x1eba83}){const _0x4c4f42=_0x24ce74;super(),this['id']=_0x31250e(),this[_0x4c4f42(0x15d)]=_0x3873d0,this[_0x4c4f42(0x14e)]=!0x0,this[_0x4c4f42(0x194)]=_0x1eba83;}async[_0x24ce74(0x18a)](){const _0x327fff=_0x24ce74,_0x3896cb=[];let _0x3acf15,_0xd16449,_0x26018e;this[_0x327fff(0x14e)]=!0x1;try{this[_0x327fff(0x158)]=await this[_0x327fff(0x16a)](),this[_0x327fff(0x144)](_0x327fff(0x187),this);const _0x1d458f=await this[_0x327fff(0x158)][_0x327fff(0x191)]();for await(const _0x2ccbb0 of _0x1d458f){if(this[_0x327fff(0x14e)])return;if(_0x327fff(0x192)==_0x2ccbb0[_0x327fff(0x14f)])return void this[_0x327fff(0x144)](_0x327fff(0x192),{'error':new _0x45fe0c(_0x327fff(0x165),this)});switch(_0x2ccbb0[_0x327fff(0x14f)]){case _0x327fff(0x15c):this[_0x327fff(0x14a)]=_0x2ccbb0[_0x327fff(0x170)][_0x327fff(0x14a)];break;case _0x327fff(0x196):this[_0x327fff(0x174)]=_0x2ccbb0[_0x327fff(0x170)][_0x327fff(0x151)];break;case _0x327fff(0x177):this[_0x327fff(0x19a)](_0x2ccbb0[_0x327fff(0x170)][_0x327fff(0x16e)],!0x0);break;case _0x327fff(0x146):_0x3896cb[_0x327fff(0x17c)](_0x2ccbb0[_0x327fff(0x170)][_0x327fff(0x146)]);break;case _0x327fff(0x178):this[_0x327fff(0x198)]||(this[_0x327fff(0x198)]=!0x0,this[_0x327fff(0x144)](_0x327fff(0x184),this));break;case _0x327fff(0x14b):this[_0x327fff(0x189)]||(this[_0x327fff(0x189)]=!0x0,this[_0x327fff(0x144)](_0x327fff(0x161),this));break;case _0x327fff(0x17a):case _0x327fff(0x15b):this[_0x327fff(0x152)](),this[_0x327fff(0x176)](),_0x3acf15=_0x327fff(0x17a)==_0x2ccbb0[_0x327fff(0x14f)]?_0x327fff(0x185):_0x327fff(0x169),_0xd16449=_0x327fff(0x17a)==_0x2ccbb0[_0x327fff(0x14f)]?_0x2ccbb0[_0x327fff(0x170)]['id']:void 0x0,this[_0x327fff(0x149)]&&this[_0x327fff(0x149)][_0x327fff(0x183)]!=_0x3acf15&&(this[_0x327fff(0x149)][_0x327fff(0x15a)](),this[_0x327fff(0x149)]=void 0x0),this[_0x327fff(0x149)]||(this[_0x327fff(0x149)]=this[_0x327fff(0x186)]({'type':_0x3acf15,'interactionId':this['id'],'id':_0xd16449}),_0x327fff(0x185)==_0x3acf15&&(this[_0x327fff(0x149)][_0x327fff(0x150)]=_0x3896cb[_0x327fff(0x154)](0x0))),this[_0x327fff(0x149)][_0x327fff(0x168)](_0x2ccbb0[_0x327fff(0x170)][_0x327fff(0x180)]);break;case _0x327fff(0x163):_0x26018e=JSON[_0x327fff(0x179)](_0x2ccbb0[_0x327fff(0x170)][_0x327fff(0x159)]),this[_0x327fff(0x17b)]({'toolName':_0x2ccbb0[_0x327fff(0x170)][_0x327fff(0x14c)],'data':_0x26018e[_0x327fff(0x170)],'attributes':_0x26018e[_0x327fff(0x160)]});break;case _0x327fff(0x148):this[_0x327fff(0x193)]({'toolName':_0x2ccbb0[_0x327fff(0x170)][_0x327fff(0x14c)],'data':_0x2ccbb0[_0x327fff(0x170)][_0x327fff(0x170)]});}}}finally{this[_0x327fff(0x14e)]||(this[_0x327fff(0x149)]&&_0x3896cb[_0x327fff(0x17e)]>0x0&&(this[_0x327fff(0x149)][_0x327fff(0x150)]=_0x3896cb[_0x327fff(0x154)](0x0)),this[_0x327fff(0x147)](),this[_0x327fff(0x144)](_0x327fff(0x166),this));}}[_0x24ce74(0x171)](){const _0x507565=_0x24ce74;this[_0x507565(0x14e)]||(this[_0x507565(0x147)](),this[_0x507565(0x144)](_0x507565(0x17f),this));}[_0x24ce74(0x18f)](_0x2185b0){const _0x176e0b=_0x24ce74;return this[_0x176e0b(0x195)][_0x176e0b(0x197)](_0x3f1a9a=>_0x3f1a9a['id']===_0x2185b0);}[_0x24ce74(0x175)](){const _0x366e58=_0x24ce74;this[_0x366e58(0x199)]||(this[_0x366e58(0x171)](),this[_0x366e58(0x195)][_0x366e58(0x15e)](_0xaeebb0=>_0xaeebb0[_0x366e58(0x175)]()),this[_0x366e58(0x195)]=[],this[_0x366e58(0x199)]=!0x0,this[_0x366e58(0x144)](_0x366e58(0x181),this),this[_0x366e58(0x156)]());}[_0x24ce74(0x186)](_0x2cc5f1){const _0x47467f=_0x24ce74,_0x1cc70d=new _0x5054ae({'editor':this[_0x47467f(0x194)],'documentContextContent':this[_0x47467f(0x182)]()?.[_0x47467f(0x18b)],..._0x2cc5f1});return this[_0x47467f(0x195)][_0x47467f(0x17c)](_0x1cc70d),_0x1cc70d[_0x47467f(0x16c)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x47467f(0x144)](_0x47467f(0x188),_0x1cc70d),_0x1cc70d;}[_0x24ce74(0x19a)](_0x4e39a8,_0xc3421=!0x1){const _0x2dc8db=_0x24ce74;this[_0x2dc8db(0x144)](_0x2dc8db(0x19a),_0x4e39a8,_0xc3421);}[_0x24ce74(0x176)](){const _0x3d7818=_0x24ce74;this[_0x3d7818(0x198)]&&(this[_0x3d7818(0x198)]=!0x1,this[_0x3d7818(0x144)](_0x3d7818(0x153),this));}[_0x24ce74(0x152)](){const _0x2e0aa6=_0x24ce74;this[_0x2e0aa6(0x189)]&&(this[_0x2e0aa6(0x189)]=!0x1,this[_0x2e0aa6(0x144)](_0x2e0aa6(0x15f),this));}[_0x24ce74(0x17b)](_0x3b8b56){const _0x392184=_0x24ce74;this[_0x392184(0x144)](_0x392184(0x14d),{'type':_0x392184(0x159),'toolName':_0x3b8b56[_0x392184(0x14c)],'data':structuredClone(_0x3b8b56[_0x392184(0x170)]||{}),'attributes':structuredClone(_0x3b8b56[_0x392184(0x160)]||{})},this);}[_0x24ce74(0x193)](_0x11372e){const _0x226db0=_0x24ce74;this[_0x226db0(0x144)](_0x226db0(0x14d),{'type':_0x226db0(0x16f),'toolName':_0x11372e[_0x226db0(0x14c)],'data':structuredClone(_0x11372e[_0x226db0(0x170)])},this);}[_0x24ce74(0x147)](){const _0x1c3347=_0x24ce74;this[_0x1c3347(0x14e)]=!0x0,this[_0x1c3347(0x158)]&&this[_0x1c3347(0x158)][_0x1c3347(0x18e)][_0x1c3347(0x16d)](),this[_0x1c3347(0x149)]&&this[_0x1c3347(0x149)][_0x1c3347(0x15a)](),this[_0x1c3347(0x158)]=this[_0x1c3347(0x149)]=void 0x0;}}
23
+ function _0x2bb9(_0x5ea751,_0x42e336){const _0x81539c=_0x8153();return _0x2bb9=function(_0x2bb980,_0x17445f){_0x2bb980=_0x2bb980-0x94;let _0x14983d=_0x81539c[_0x2bb980];return _0x14983d;},_0x2bb9(_0x5ea751,_0x42e336);}const _0x594800=_0x2bb9;(function(_0x2949d3,_0x25126f){const _0x3b9cf9=_0x2bb9,_0x4f1b0c=_0x2949d3();while(!![]){try{const _0x300c1f=-parseInt(_0x3b9cf9(0xa1))/0x1*(parseInt(_0x3b9cf9(0xea))/0x2)+parseInt(_0x3b9cf9(0xc6))/0x3*(-parseInt(_0x3b9cf9(0xd5))/0x4)+parseInt(_0x3b9cf9(0xa8))/0x5+-parseInt(_0x3b9cf9(0xc1))/0x6+-parseInt(_0x3b9cf9(0xd4))/0x7*(parseInt(_0x3b9cf9(0xab))/0x8)+-parseInt(_0x3b9cf9(0xe2))/0x9*(-parseInt(_0x3b9cf9(0x9f))/0xa)+parseInt(_0x3b9cf9(0xd9))/0xb;if(_0x300c1f===_0x25126f)break;else _0x4f1b0c['push'](_0x4f1b0c['shift']());}catch(_0x40c12c){_0x4f1b0c['push'](_0x4f1b0c['shift']());}}}(_0x8153,0x3e44f));import{CKEditorError as _0x2e6595,EmitterMixin as _0x28186d,uid as _0x126320}from'ckeditor5/src/utils.js';import{AIReply as _0x4f9738}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x594800(0xb1),_0x594800(0xc0),_0x594800(0xd2),_0x594800(0xb7),_0x594800(0xc2),_0x594800(0xd8),_0x594800(0xb6),_0x594800(0x9c),_0x594800(0x94),_0x594800(0xdf),_0x594800(0x98),_0x594800(0xaa),_0x594800(0xda),_0x594800(0xb2),_0x594800(0xb9)];export class AIInteraction extends _0x28186d(){['id'];[_0x594800(0xd6)]=[];[_0x594800(0xd3)];[_0x594800(0xa9)];[_0x594800(0x99)];[_0x594800(0xc8)];[_0x594800(0xb8)];[_0x594800(0xe5)]=!0x1;[_0x594800(0xb5)]=!0x1;[_0x594800(0xa3)];[_0x594800(0xcf)]=!0x1;[_0x594800(0xc4)]=!0x1;constructor({connector:_0xc6f49f,editor:_0x43ca73}){const _0xdf9e7e=_0x594800;super(),this['id']=_0x126320(),this[_0xdf9e7e(0xb8)]=_0xc6f49f,this[_0xdf9e7e(0xe5)]=!0x0,this[_0xdf9e7e(0xa3)]=_0x43ca73;}async[_0x594800(0xa5)](){const _0x3d062c=_0x594800,_0x50f013=[];let _0x11a5da,_0x51923e,_0x564c53;this[_0x3d062c(0xe5)]=!0x1;try{this[_0x3d062c(0xc8)]=await this[_0x3d062c(0x9a)](),this[_0x3d062c(0xa0)](_0x3d062c(0xc0),this);const _0x15b003=await this[_0x3d062c(0xc8)][_0x3d062c(0xae)]();for await(const _0x1b3278 of _0x15b003){if(this[_0x3d062c(0xe5)])return;if(_0x3d062c(0xb9)==_0x1b3278[_0x3d062c(0x97)])return void this[_0x3d062c(0xa0)](_0x3d062c(0xb9),{'error':new _0x2e6595(_0x3d062c(0x96),this)});switch(_0x1b3278[_0x3d062c(0x97)]){case _0x3d062c(0x95):this[_0x3d062c(0xa9)]=_0x1b3278[_0x3d062c(0xbc)][_0x3d062c(0xa9)];break;case _0x3d062c(0xba):this[_0x3d062c(0x99)]=_0x1b3278[_0x3d062c(0xbc)][_0x3d062c(0xaf)];break;case _0x3d062c(0xbd):this[_0x3d062c(0x94)](_0x1b3278[_0x3d062c(0xbc)][_0x3d062c(0xa7)],!0x0);break;case _0x3d062c(0xa2):_0x50f013[_0x3d062c(0xde)](_0x1b3278[_0x3d062c(0xbc)][_0x3d062c(0xa2)]);break;case _0x3d062c(0x9e):this[_0x3d062c(0xc4)]||(this[_0x3d062c(0xc4)]=!0x0,this[_0x3d062c(0xa0)](_0x3d062c(0xdf),this));break;case _0x3d062c(0xe0):this[_0x3d062c(0xcf)]||(this[_0x3d062c(0xcf)]=!0x0,this[_0x3d062c(0xa0)](_0x3d062c(0xaa),this));break;case _0x3d062c(0xb0):case _0x3d062c(0x9b):this[_0x3d062c(0xe8)](),this[_0x3d062c(0xd0)](),_0x11a5da=_0x3d062c(0xb0)==_0x1b3278[_0x3d062c(0x97)]?_0x3d062c(0xb3):_0x3d062c(0xdc),_0x51923e=_0x3d062c(0xb0)==_0x1b3278[_0x3d062c(0x97)]?_0x1b3278[_0x3d062c(0xbc)]['id']:void 0x0,this[_0x3d062c(0xd3)]&&this[_0x3d062c(0xd3)][_0x3d062c(0xce)]!=_0x11a5da&&(this[_0x3d062c(0xd3)][_0x3d062c(0x9d)](),this[_0x3d062c(0xd3)]=void 0x0),this[_0x3d062c(0xd3)]||(this[_0x3d062c(0xd3)]=this[_0x3d062c(0xcd)]({'type':_0x11a5da,'interactionId':this['id'],'id':_0x51923e}),_0x3d062c(0xb3)==_0x11a5da&&(this[_0x3d062c(0xd3)][_0x3d062c(0xe9)]=_0x50f013[_0x3d062c(0xbe)](0x0))),this[_0x3d062c(0xd3)][_0x3d062c(0xe7)](_0x1b3278[_0x3d062c(0xbc)][_0x3d062c(0xb4)]);break;case _0x3d062c(0xca):_0x564c53=JSON[_0x3d062c(0xbb)](_0x1b3278[_0x3d062c(0xbc)][_0x3d062c(0xcc)]),this[_0x3d062c(0xac)]({'toolName':_0x1b3278[_0x3d062c(0xbc)][_0x3d062c(0xad)],'data':_0x564c53[_0x3d062c(0xbc)],'attributes':_0x564c53[_0x3d062c(0xe4)]});break;case _0x3d062c(0xe6):this[_0x3d062c(0xa6)]({'toolName':_0x1b3278[_0x3d062c(0xbc)][_0x3d062c(0xad)],'data':_0x1b3278[_0x3d062c(0xbc)][_0x3d062c(0xbc)]});}}}finally{this[_0x3d062c(0xe5)]||(this[_0x3d062c(0xd3)]&&_0x50f013[_0x3d062c(0xe3)]>0x0&&(this[_0x3d062c(0xd3)][_0x3d062c(0xe9)]=_0x50f013[_0x3d062c(0xbe)](0x0)),this[_0x3d062c(0xc7)](),this[_0x3d062c(0xa0)](_0x3d062c(0xb7),this));}}[_0x594800(0xc9)](){const _0x31e4d7=_0x594800;this[_0x31e4d7(0xe5)]||(this[_0x31e4d7(0xc7)](),this[_0x31e4d7(0xa0)](_0x31e4d7(0xd2),this));}[_0x594800(0xe1)](_0x1ebb61){const _0x9ad809=_0x594800;return this[_0x9ad809(0xd6)][_0x9ad809(0xcb)](_0x21e641=>_0x21e641['id']===_0x1ebb61);}[_0x594800(0xc3)](){const _0x2ca635=_0x594800;this[_0x2ca635(0xb5)]||(this[_0x2ca635(0xc9)](),this[_0x2ca635(0xd6)][_0x2ca635(0xbf)](_0x1503d5=>_0x1503d5[_0x2ca635(0xc3)]()),this[_0x2ca635(0xd6)]=[],this[_0x2ca635(0xb5)]=!0x0,this[_0x2ca635(0xa0)](_0x2ca635(0xc2),this),this[_0x2ca635(0xc5)]());}[_0x594800(0xcd)](_0x1f4392){const _0x10dfc9=_0x594800,_0x44ba6f=new _0x4f9738({'editor':this[_0x10dfc9(0xa3)],'documentContextContent':this[_0x10dfc9(0xdd)]()?.[_0x10dfc9(0xd1)],..._0x1f4392});return this[_0x10dfc9(0xd6)][_0x10dfc9(0xde)](_0x44ba6f),_0x44ba6f[_0x10dfc9(0xeb)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x10dfc9(0xa0)](_0x10dfc9(0xd8),_0x44ba6f),_0x44ba6f;}[_0x594800(0x94)](_0x4c85d0,_0x181cfd=!0x1){const _0x17e951=_0x594800;this[_0x17e951(0xa0)](_0x17e951(0x94),_0x4c85d0,_0x181cfd);}[_0x594800(0xd0)](){const _0xdfefc2=_0x594800;this[_0xdfefc2(0xc4)]&&(this[_0xdfefc2(0xc4)]=!0x1,this[_0xdfefc2(0xa0)](_0xdfefc2(0x98),this));}[_0x594800(0xe8)](){const _0x4aac3b=_0x594800;this[_0x4aac3b(0xcf)]&&(this[_0x4aac3b(0xcf)]=!0x1,this[_0x4aac3b(0xa0)](_0x4aac3b(0xda),this));}[_0x594800(0xac)](_0x5860db){const _0x320bda=_0x594800;this[_0x320bda(0xa0)](_0x320bda(0xb2),{'type':_0x320bda(0xcc),'toolName':_0x5860db[_0x320bda(0xad)],'data':structuredClone(_0x5860db[_0x320bda(0xbc)]||{}),'attributes':structuredClone(_0x5860db[_0x320bda(0xe4)]||{})},this);}[_0x594800(0xa6)](_0x2ba539){const _0x556853=_0x594800;this[_0x556853(0xa0)](_0x556853(0xb2),{'type':_0x556853(0xd7),'toolName':_0x2ba539[_0x556853(0xad)],'data':structuredClone(_0x2ba539[_0x556853(0xbc)])},this);}[_0x594800(0xc7)](){const _0x549745=_0x594800;this[_0x549745(0xe5)]=!0x0,this[_0x549745(0xc8)]&&this[_0x549745(0xc8)][_0x549745(0xdb)][_0x549745(0xa4)](),this[_0x549745(0xd3)]&&this[_0x549745(0xd3)][_0x549745(0x9d)](),this[_0x549745(0xc8)]=this[_0x549745(0xd3)]=void 0x0;}}function _0x8153(){const _0x2f5ebc=['done','web-search','912370tLLCsF','fire','630srRsJI','source','editor','abort','start','_handleToolNotificationData','conversationTitle','1736520Lhtpnh','messageId','reasoningStarted','32dIOAdC','_handleToolResultData','toolName','getStream','callId','modification-delta','interactionCreated','toolDataReceived','modification','textDelta','isDestroyed','replyContentUpdated','interactionFinished','connector','error','action-metadata','parse','data','conversation-title','splice','forEach','interactionStarted','1544700UuphWa','interactionDestroyed','destroy','_isWebSearching','stopListening','44655BxUrWX','_finalizeInteraction','currentRequest','stop','mcp-tool-result','find','result','createReply','type','_isReasoning','resetWebSearchState','content','interactionStopped','currentReply','330764ZPdiWj','8mjsOMR','replies','notification','replyCreated','4095828CSIosr','reasoningFinished','abortController','text','getDocumentContext','push','webSearchStarted','reasoning','getReply','27rCqgZy','length','attributes','isStopped','mcp-tool-notification','appendContent','resetReasoningState','sources','832vWkplR','delegate','setConversationTitle','message-metadata','ai-chat-interaction-error','event','webSearchFinished','actionCallId','sendRequest','text-delta','replyChangeGroupStateUpdated'];_0x8153=function(){return _0x2f5ebc;};return _0x8153();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x269e(_0x43af09,_0x37a8ef){const _0x95729f=_0x9572();return _0x269e=function(_0x269e05,_0x156fb2){_0x269e05=_0x269e05-0x117;let _0x19ea85=_0x95729f[_0x269e05];return _0x19ea85;},_0x269e(_0x43af09,_0x37a8ef);}const _0x5c491f=_0x269e;(function(_0x3e1458,_0x54579e){const _0x457838=_0x269e,_0x286488=_0x3e1458();while(!![]){try{const _0x461997=parseInt(_0x457838(0x137))/0x1+-parseInt(_0x457838(0x14c))/0x2*(-parseInt(_0x457838(0x117))/0x3)+-parseInt(_0x457838(0x125))/0x4*(parseInt(_0x457838(0x139))/0x5)+-parseInt(_0x457838(0x14a))/0x6*(parseInt(_0x457838(0x136))/0x7)+-parseInt(_0x457838(0x123))/0x8*(-parseInt(_0x457838(0x12e))/0x9)+parseInt(_0x457838(0x143))/0xa*(parseInt(_0x457838(0x124))/0xb)+-parseInt(_0x457838(0x119))/0xc;if(_0x461997===_0x54579e)break;else _0x286488['push'](_0x286488['shift']());}catch(_0x2a54f5){_0x286488['push'](_0x286488['shift']());}}}(_0x9572,0xba082));import{EmitterMixin as _0x3a4a9c,logWarning as _0xcfa281,logError as _0x3932b1}from'ckeditor5/src/utils.js';import{getTranslation as _0x3b6479}from'../utils/common-translations.js';function _0x9572(){const _0x1c3dbb=['isAvailable','467845elQKjf','895910kCHsTC','defaultModelId','10JKIxXi','_locale','has','getModel','agent','getAll','auto','getDefault','_defaultModelId','displayedModels','20yapmYR','_isMatchingFilter','toLocaleLowerCase','items','add','getAvailableModels','uiLanguage','48xVvmvQ','ai-models-unable-to-retrieve','766156UESDaQ','9vJmVEd','_filterModels','37868760RFMqmW','ai-chat-model-id-unrecognized','length','_connector','_getModelById','_modelsRequest','push','AI_MODEL_NAME_AUTO','list','name','1319888pcuYDZ','6502969MuTlKg','189988dYXfBz','filter','_modelList','string','getModels','ai-chat-default-model-id-unrecognized','_retrieveModels','recommended','_config','72GegbBf','find','startsWith','provider','some','map','_availableModels'];_0x9572=function(){return _0x1c3dbb;};return _0x9572();}export class AIModels extends _0x3a4a9c(){[_0x5c491f(0x11c)];[_0x5c491f(0x12d)];[_0x5c491f(0x13a)];[_0x5c491f(0x127)]=[];[_0x5c491f(0x11e)]=null;constructor({connector:_0x31329c,config:_0x4fe244,locale:_0x429248}){const _0x2623c4=_0x5c491f;super(),this[_0x2623c4(0x11c)]=_0x31329c,this[_0x2623c4(0x12d)]=_0x4fe244,this[_0x2623c4(0x13a)]=_0x429248;}get[_0x5c491f(0x134)](){const _0x3d2700=_0x5c491f;return this[_0x3d2700(0x12d)]?.[_0x3d2700(0x142)];}get[_0x5c491f(0x141)](){const _0x4e4ae3=_0x5c491f;return this[_0x4e4ae3(0x12d)]?.[_0x4e4ae3(0x138)];}async[_0x5c491f(0x13e)](){const _0x4f5ddf=_0x5c491f;return this[_0x4f5ddf(0x11e)]||(this[_0x4f5ddf(0x11e)]=this[_0x4f5ddf(0x12b)]()),this[_0x4f5ddf(0x11e)];}async[_0x5c491f(0x148)](){const _0x1e461c=_0x5c491f,_0x1fc15a=await this[_0x1e461c(0x13e)]();let _0x2e6f9d;return _0x2e6f9d=this[_0x1e461c(0x134)]?this[_0x1e461c(0x118)](_0x1fc15a,this[_0x1e461c(0x134)]):_0x1fc15a[_0x1e461c(0x126)](_0x300876=>_0x300876[_0x1e461c(0x12c)]),_0x2e6f9d;}async[_0x5c491f(0x13c)](_0x1c843a){const _0x486aab=_0x5c491f,_0x517fc6=await this[_0x486aab(0x13e)]();if(!_0x517fc6[_0x486aab(0x11b)])return null;if(_0x1c843a){const _0x386841=this[_0x486aab(0x11d)](_0x517fc6,_0x1c843a);if(_0x386841)return _0x386841;_0xcfa281(_0x486aab(0x11a),{'modelId':_0x1c843a,'fallBackModelId':this[_0x486aab(0x141)]});}return this[_0x486aab(0x140)]();}async[_0x5c491f(0x140)](){const _0x2dfa00=_0x5c491f,_0x444306=await this[_0x2dfa00(0x148)]();if(!_0x444306[_0x2dfa00(0x11b)])return null;if(this[_0x2dfa00(0x141)]){const _0x3aba09=this[_0x2dfa00(0x11d)](_0x444306,this[_0x2dfa00(0x141)]);if(_0x3aba09)return _0x3aba09;_0xcfa281(_0x2dfa00(0x12a),{'defaultModelId':this[_0x2dfa00(0x141)],'fallBackModelId':_0x444306[0x0]['id']});}return _0x444306[0x0];}async[_0x5c491f(0x135)](_0x23c818){const _0x3de559=_0x5c491f;return(await this[_0x3de559(0x148)]())[_0x3de559(0x132)](_0x50549a=>_0x50549a[_0x3de559(0x122)]===_0x23c818[_0x3de559(0x122)]&&_0x50549a[_0x3de559(0x131)]===_0x23c818[_0x3de559(0x131)]);}async[_0x5c491f(0x12b)](){const _0x2e855f=_0x5c491f;if(!this[_0x2e855f(0x127)][_0x2e855f(0x11b)])try{const _0x49abbb=this[_0x2e855f(0x13a)][_0x2e855f(0x149)]||'en',_0x483417=this[_0x2e855f(0x11c)][_0x2e855f(0x129)](_0x49abbb),_0x571ed8=await _0x483417[_0x2e855f(0x121)]();this[_0x2e855f(0x127)]=_0x571ed8[_0x2e855f(0x146)][_0x2e855f(0x133)](_0x30267f=>vi(_0x30267f)?{..._0x30267f,'name':_0x3b6479(this[_0x2e855f(0x13a)],_0x2e855f(0x120))}:_0x30267f);}catch(_0x1feca4){throw _0x3932b1(_0x2e855f(0x14b),{'error':_0x1feca4}),_0x1feca4;}return[...this[_0x2e855f(0x127)]];}[_0x5c491f(0x118)](_0x483a85,_0x2aee6c){const _0x43b4fd=_0x5c491f;let _0x100d8d;if(_0x2aee6c){_0x100d8d=[];const _0x3e0326=new Set(),_0x3f5340=_0x43b4fd(0x128)==typeof _0x2aee6c?[_0x2aee6c[_0x43b4fd(0x145)]()]:_0x2aee6c[_0x43b4fd(0x133)](_0x12544f=>_0x12544f[_0x43b4fd(0x145)]());for(const _0x54324a of _0x3f5340)for(const _0x2a064d of _0x483a85)!_0x3e0326[_0x43b4fd(0x13b)](_0x2a064d['id'])&&this[_0x43b4fd(0x144)](_0x2a064d,_0x54324a)&&(_0x100d8d[_0x43b4fd(0x11f)](_0x2a064d),_0x3e0326[_0x43b4fd(0x147)](_0x2a064d['id']));}else _0x100d8d=_0x483a85;return _0x100d8d;}[_0x5c491f(0x144)](_0x47670b,_0x2c8a49){const _0x1ea37f=_0x5c491f,_0x26a7c9=_0x47670b['id'][_0x1ea37f(0x145)](),_0x578084=_0x47670b[_0x1ea37f(0x122)][_0x1ea37f(0x145)](),_0x41f6e1=_0x47670b[_0x1ea37f(0x131)][_0x1ea37f(0x145)]();return _0x26a7c9===_0x2c8a49||_0x578084===_0x2c8a49||vi(_0x47670b)&&_0x1ea37f(0x13f)===_0x2c8a49||_0x41f6e1===_0x2c8a49||_0x26a7c9[_0x1ea37f(0x130)](_0x2c8a49);}[_0x5c491f(0x11d)](_0xdb6a0b,_0x27ff99){const _0x33de82=_0x5c491f;return _0xdb6a0b[_0x33de82(0x12f)](_0x122d72=>vi(_0x122d72)&&_0x33de82(0x13f)===_0x27ff99?_0x122d72:_0x122d72['id']===_0x27ff99)||null;}}function vi(_0x6dba36){const _0x16c22d=_0x5c491f;return _0x6dba36['id'][_0x16c22d(0x130)](_0x16c22d(0x13d));}
23
+ const _0xee3c3d=_0xc24b;(function(_0x245ed0,_0x382d78){const _0x43292b=_0xc24b,_0x5741c1=_0x245ed0();while(!![]){try{const _0x1b1c99=-parseInt(_0x43292b(0x1fc))/0x1+parseInt(_0x43292b(0x213))/0x2*(-parseInt(_0x43292b(0x222))/0x3)+-parseInt(_0x43292b(0x217))/0x4+parseInt(_0x43292b(0x219))/0x5*(parseInt(_0x43292b(0x218))/0x6)+parseInt(_0x43292b(0x220))/0x7+parseInt(_0x43292b(0x200))/0x8*(parseInt(_0x43292b(0x1f4))/0x9)+parseInt(_0x43292b(0x20b))/0xa;if(_0x1b1c99===_0x382d78)break;else _0x5741c1['push'](_0x5741c1['shift']());}catch(_0x2002f1){_0x5741c1['push'](_0x5741c1['shift']());}}}(_0x5b3d,0x79258));import{EmitterMixin as _0x28ae77,logWarning as _0x4e82aa,logError as _0x1be724}from'ckeditor5/src/utils.js';function _0xc24b(_0x310ad0,_0x2ef47f){const _0x5b3dc1=_0x5b3d();return _0xc24b=function(_0xc24b03,_0x8b32c1){_0xc24b03=_0xc24b03-0x1ef;let _0x30dbca=_0x5b3dc1[_0xc24b03];return _0x30dbca;},_0xc24b(_0x310ad0,_0x2ef47f);}import{getTranslation as _0x252898}from'../utils/common-translations.js';export class AIModels extends _0x28ae77(){[_0xee3c3d(0x1fe)];[_0xee3c3d(0x201)];[_0xee3c3d(0x21e)];[_0xee3c3d(0x1f8)]=[];[_0xee3c3d(0x21f)]=null;constructor({connector:_0x436f24,config:_0x3d8564,locale:_0x553a50}){const _0x125643=_0xee3c3d;super(),this[_0x125643(0x1fe)]=_0x436f24,this[_0x125643(0x201)]=_0x3d8564,this[_0x125643(0x21e)]=_0x553a50;}get[_0xee3c3d(0x21d)](){const _0x1603b1=_0xee3c3d;return this[_0x1603b1(0x201)]?.[_0x1603b1(0x1f5)];}get[_0xee3c3d(0x1fb)](){const _0x1741a4=_0xee3c3d;return this[_0x1741a4(0x201)]?.[_0x1741a4(0x203)];}async[_0xee3c3d(0x208)](){const _0x39fde9=_0xee3c3d;return this[_0x39fde9(0x21f)]||(this[_0x39fde9(0x21f)]=this[_0x39fde9(0x1f3)]()),this[_0x39fde9(0x21f)];}async[_0xee3c3d(0x221)](){const _0xbdb01e=_0xee3c3d,_0x28c2b7=await this[_0xbdb01e(0x208)]();let _0x45c6a8;return _0x45c6a8=this[_0xbdb01e(0x21d)]?this[_0xbdb01e(0x211)](_0x28c2b7,this[_0xbdb01e(0x21d)]):_0x28c2b7[_0xbdb01e(0x209)](_0x109c64=>_0x109c64[_0xbdb01e(0x21c)]),_0x45c6a8;}async[_0xee3c3d(0x210)](_0x31b39f){const _0xe17c62=_0xee3c3d,_0x196328=await this[_0xe17c62(0x208)]();if(!_0x196328[_0xe17c62(0x1fd)])return null;if(_0x31b39f){const _0x5d1b61=this[_0xe17c62(0x1f0)](_0x196328,_0x31b39f);if(_0x5d1b61)return _0x5d1b61;_0x4e82aa(_0xe17c62(0x20d),{'modelId':_0x31b39f,'fallBackModelId':this[_0xe17c62(0x1fb)]});}return this[_0xe17c62(0x21a)]();}async[_0xee3c3d(0x21a)](){const _0x4e3f88=_0xee3c3d,_0x40a097=await this[_0x4e3f88(0x221)]();if(!_0x40a097[_0x4e3f88(0x1fd)])return null;if(this[_0x4e3f88(0x1fb)]){const _0x4c7fe0=this[_0x4e3f88(0x1f0)](_0x40a097,this[_0x4e3f88(0x1fb)]);if(_0x4c7fe0)return _0x4c7fe0;_0x4e82aa(_0x4e3f88(0x21b),{'defaultModelId':this[_0x4e3f88(0x1fb)],'fallBackModelId':_0x40a097[0x0]['id']});}return _0x40a097[0x0];}async[_0xee3c3d(0x1ff)](_0x154fb1){const _0x10e955=_0xee3c3d;return(await this[_0x10e955(0x221)]())[_0x10e955(0x215)](_0x84f788=>_0x84f788[_0x10e955(0x1f9)]===_0x154fb1[_0x10e955(0x1f9)]&&_0x84f788[_0x10e955(0x202)]===_0x154fb1[_0x10e955(0x202)]);}async[_0xee3c3d(0x1f3)](){const _0xe1cada=_0xee3c3d;if(!this[_0xe1cada(0x1f8)][_0xe1cada(0x1fd)])try{const _0x2044db=this[_0xe1cada(0x21e)][_0xe1cada(0x1f1)]||'en',_0x137457=this[_0xe1cada(0x1fe)][_0xe1cada(0x20e)](_0x2044db),_0xabeb31=await _0x137457[_0xe1cada(0x212)]();this[_0xe1cada(0x1f8)]=_0xabeb31[_0xe1cada(0x1f6)][_0xe1cada(0x1ef)](_0x12e0b5=>vi(_0x12e0b5)?{..._0x12e0b5,'name':_0x252898(this[_0xe1cada(0x21e)],_0xe1cada(0x1f7))}:_0x12e0b5);}catch(_0xccac7d){throw _0x1be724(_0xe1cada(0x1fa),{'error':_0xccac7d}),_0xccac7d;}return[...this[_0xe1cada(0x1f8)]];}[_0xee3c3d(0x211)](_0x35928b,_0x2462aa){const _0x5e8c8b=_0xee3c3d;let _0x357203;if(_0x2462aa){_0x357203=[];const _0x58132a=new Set(),_0x4d16c5=_0x5e8c8b(0x20c)==typeof _0x2462aa?[_0x2462aa[_0x5e8c8b(0x216)]()]:_0x2462aa[_0x5e8c8b(0x1ef)](_0x12fa49=>_0x12fa49[_0x5e8c8b(0x216)]());for(const _0x2f9f35 of _0x4d16c5)for(const _0x1b2d4b of _0x35928b)!_0x58132a[_0x5e8c8b(0x1f2)](_0x1b2d4b['id'])&&this[_0x5e8c8b(0x20a)](_0x1b2d4b,_0x2f9f35)&&(_0x357203[_0x5e8c8b(0x214)](_0x1b2d4b),_0x58132a[_0x5e8c8b(0x205)](_0x1b2d4b['id']));}else _0x357203=_0x35928b;return _0x357203;}[_0xee3c3d(0x20a)](_0x5d5c9c,_0x1dce1e){const _0x47e4b0=_0xee3c3d,_0x7b86df=_0x5d5c9c['id'][_0x47e4b0(0x216)](),_0x37cf9b=_0x5d5c9c[_0x47e4b0(0x1f9)][_0x47e4b0(0x216)](),_0x559b6c=_0x5d5c9c[_0x47e4b0(0x202)][_0x47e4b0(0x216)]();return _0x7b86df===_0x1dce1e||_0x37cf9b===_0x1dce1e||vi(_0x5d5c9c)&&_0x47e4b0(0x206)===_0x1dce1e||_0x559b6c===_0x1dce1e||_0x7b86df[_0x47e4b0(0x204)](_0x1dce1e);}[_0xee3c3d(0x1f0)](_0x47bd2f,_0x7637be){const _0x54e74b=_0xee3c3d;return _0x47bd2f[_0x54e74b(0x20f)](_0x4a7ec4=>vi(_0x4a7ec4)&&_0x54e74b(0x206)===_0x7637be?_0x4a7ec4:_0x4a7ec4['id']===_0x7637be)||null;}}function vi(_0x1a8b1c){const _0x3a5942=_0xee3c3d;return _0x1a8b1c['id'][_0x3a5942(0x204)](_0x3a5942(0x207));}function _0x5b3d(){const _0x5e0a0b=['length','_connector','isAvailable','104OCfGAa','_config','provider','defaultModelId','startsWith','add','auto','agent','getAll','filter','_isMatchingFilter','99400EEazRy','string','ai-chat-model-id-unrecognized','getModels','find','getModel','_filterModels','list','2ZHfsdP','push','some','toLocaleLowerCase','2117712vzsTNY','12UrOtCP','318205UUmzWX','getDefault','ai-chat-default-model-id-unrecognized','recommended','_availableModels','_locale','_modelsRequest','6158362imByTR','getAvailableModels','556899gnymPb','map','_getModelById','uiLanguage','has','_retrieveModels','368802FgmRJp','displayedModels','items','AI_MODEL_NAME_AUTO','_modelList','name','ai-models-unable-to-retrieve','_defaultModelId','338425nUezPd'];_0x5b3d=function(){return _0x5e0a0b;};return _0x5b3d();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4fc3dc=_0x14e2;(function(_0x26fa40,_0x5a4d16){const _0x19380f=_0x14e2,_0xac2472=_0x26fa40();while(!![]){try{const _0x57dbd1=parseInt(_0x19380f(0x1e9))/0x1+parseInt(_0x19380f(0x200))/0x2*(-parseInt(_0x19380f(0x204))/0x3)+-parseInt(_0x19380f(0x203))/0x4*(parseInt(_0x19380f(0x20b))/0x5)+parseInt(_0x19380f(0x1df))/0x6+parseInt(_0x19380f(0x1dc))/0x7+-parseInt(_0x19380f(0x217))/0x8+parseInt(_0x19380f(0x1da))/0x9;if(_0x57dbd1===_0x5a4d16)break;else _0xac2472['push'](_0xac2472['shift']());}catch(_0x5bddac){_0xac2472['push'](_0xac2472['shift']());}}}(_0x89fa,0x4fb4c));import{CKEditorError as _0x350489,ObservableMixin as _0x48fd25,uid as _0x31739a}from'ckeditor5/src/utils.js';function _0x89fa(){const _0x2bda5d=['withDiff','data-unstable','nextSibling','modified','_getDifferentChangeGroups','merge','type','modification','every','color:\x20#808080;\x20font-style:\x20italic','appendContent','includes','_getCachedContentParts','length','AI_SUGGESTION_CONTENT_PART_REMOVED','ai-reply-get-content-parts-group-not-found','5666463xURKXv','withoutDiff','2682064fZIdjB','areActionsDisabled','unshift','603606LmuNAj','removed','parseAndNormalizeHTML','indexOf','splice','sources','span','parsedContent','stopListening','aiResponseParser','61259ZOEpyy','modifiedNodeIds','destroy','_setCachedContentParts','updateChangeGroups','replyChangeGroupStateUpdated','content','new','cachedSuggestionContentParts','documentContextContent','replyContentUpdated','isDone','interactionId','changeGroups','push','changes','find','previousSibling','set','cloneNode','forEach','newNodeIds','change:content','2TBwGmE','context','node','196dmzDVt','1722921hjwKOJ','parsedMergedContent','editor','done','state','data-id','setChangeGroupState','19655zTrDNr','aiResponseApplier','getContentParts','fire','onContentChange','ai-get-editor-from-context-no-editor','removedNodeIds','map','locale','index','pending','filter','649736FJwWeM','convertMarkdownToHTML'];_0x89fa=function(){return _0x2bda5d;};return _0x89fa();}import{Element as _0x2efd18,findAll as _0x41e335,getAttribute as _0xae4a55,getParents as _0x44201d,Document as _0x2c4379,parse as _0x241eed,Text as _0x2401fe}from'../utils/htmlparser.js';import{AIResponseParser as _0x9c63db}from'../pipeline/airesponseparser.js';function _0x14e2(_0x15a08a,_0x24a0c7){const _0x89fabb=_0x89fa();return _0x14e2=function(_0x14e2e1,_0x574b85){_0x14e2e1=_0x14e2e1-0x1d1;let _0x4ba41b=_0x89fabb[_0x14e2e1];return _0x4ba41b;},_0x14e2(_0x15a08a,_0x24a0c7);}import{AIResponseApplier as _0x1b9a1a}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x51bcf5}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x121cc4}from'../utils/common-translations.js';import{cloneDeep as _0x2f7a14}from'es-toolkit';export class AIReply extends _0x48fd25(){['id'];[_0x4fc3dc(0x1f5)];[_0x4fc3dc(0x21f)];[_0x4fc3dc(0x1e4)]=[];[_0x4fc3dc(0x1e6)]=new _0x2c4379([]);[_0x4fc3dc(0x205)]=new _0x2c4379([]);[_0x4fc3dc(0x1f6)]=[];[_0x4fc3dc(0x1dd)]=!0x1;[_0x4fc3dc(0x1f2)];[_0x4fc3dc(0x1e8)];[_0x4fc3dc(0x20c)];[_0x4fc3dc(0x206)];[_0x4fc3dc(0x1f1)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x5f0a05,content:_0x539d35='',isDone:_0x469636=!0x1,interactionId:_0x139b32,areActionsDisabled:_0x4e4f26,documentContextContent:_0x478482,editor:_0x1278ba,id:_0x3db7ad}){const _0x5eb9f2=_0x4fc3dc;super(),this['id']=_0x3db7ad||_0x31739a(),this[_0x5eb9f2(0x1f5)]=_0x139b32,this[_0x5eb9f2(0x21f)]=_0x5f0a05,this[_0x5eb9f2(0x1dd)]=!!_0x4e4f26,this[_0x5eb9f2(0x206)]=_0x1278ba,this[_0x5eb9f2(0x1e8)]=new _0x9c63db(),this[_0x5eb9f2(0x20c)]=new _0x1b9a1a(),this[_0x5eb9f2(0x1f2)]=_0x241eed(_0x478482||''),this[_0x5eb9f2(0x1fb)](_0x5eb9f2(0x1f4),_0x469636),this['on'](_0x5eb9f2(0x1ff),()=>{const _0x3a505f=_0x5eb9f2;this[_0x3a505f(0x20f)]();}),this[_0x5eb9f2(0x1fb)](_0x5eb9f2(0x1ef),_0x539d35);}[_0x4fc3dc(0x1d4)](_0x3b7a9c){const _0x4c036c=_0x4fc3dc;this[_0x4c036c(0x1fb)](_0x4c036c(0x1ef),this[_0x4c036c(0x1ef)]+_0x3b7a9c);}[_0x4fc3dc(0x207)](){const _0x300760=_0x4fc3dc;this[_0x300760(0x1f4)]||(this[_0x300760(0x1fb)](_0x300760(0x1f4),!0x0),this[_0x300760(0x20f)]());}[_0x4fc3dc(0x1eb)](){const _0x63d8d4=_0x4fc3dc;this[_0x63d8d4(0x1e7)]();}[_0x4fc3dc(0x20a)](_0x5dad34,_0x5c9278){const _0x2f4e98=_0x4fc3dc;this[_0x2f4e98(0x1f6)][_0x5dad34][_0x2f4e98(0x208)]=_0x5c9278,this[_0x2f4e98(0x20e)](_0x2f4e98(0x1ee),{'reply':this,'index':_0x5dad34,'state':_0x5c9278});}[_0x4fc3dc(0x20d)]({showDiff:_0x5cc07e,groupIndex:_0x3c987a}){const _0x13a37a=_0x4fc3dc;if(!this[_0x13a37a(0x206)])throw new _0x350489(_0x13a37a(0x210),null,{'aiReply':this});const _0x548da5=this[_0x13a37a(0x1d6)](_0x5cc07e,_0x3c987a);if(_0x548da5)return _0x548da5;let _0x4b26d5=[];if(void 0x0===_0x3c987a)_0x4b26d5=this[_0x13a37a(0x1f6)];else{const _0xb52924=this[_0x13a37a(0x1f6)][_0x13a37a(0x1f9)](({index:_0x1d6379})=>_0x1d6379===_0x3c987a);if(!_0xb52924)throw new _0x350489(_0x13a37a(0x1d9),null,{'aiReply':this,'groupIndex':_0x3c987a});_0x4b26d5=[_0xb52924];}const _0xee5628=_0x51bcf5({'editor':this[_0x13a37a(0x206)],'showDiff':_0x5cc07e,'changeGroups':_0x4b26d5,'documentContextContent':this[_0x13a37a(0x1f2)]});return this[_0x13a37a(0x1ec)](_0x5cc07e,_0xee5628),_0xee5628;}[_0x4fc3dc(0x1d6)](_0x1853de,_0x29ac79){const _0x46d58f=_0x4fc3dc,_0x111114=_0x1853de?_0x46d58f(0x219):_0x46d58f(0x1db);if(!this[_0x46d58f(0x1f1)][_0x111114][_0x46d58f(0x1d7)])return null;const _0x424daa=this[_0x46d58f(0x1f1)][_0x111114];if(void 0x0===_0x29ac79)return _0x424daa[_0x46d58f(0x1d7)]>0x0&&_0x424daa[_0x46d58f(0x1d7)]!==this[_0x46d58f(0x1f6)][_0x46d58f(0x1d7)]?(this[_0x46d58f(0x1ec)](_0x1853de,null),null):_0x2f7a14(_0x424daa);{const _0x42be82=_0x424daa[_0x46d58f(0x1f9)](({index:_0xb4f04c})=>_0xb4f04c===_0x29ac79);if(_0x42be82)return[_0x2f7a14(_0x42be82)];}return null;}[_0x4fc3dc(0x1ec)](_0x1ca439,_0x31db5c){const _0x4431a6=_0x4fc3dc,_0x199480=_0x1ca439?_0x4431a6(0x219):_0x4431a6(0x1db);_0x31db5c?_0x31db5c[_0x4431a6(0x1fd)](_0x543de0=>{const _0x1712d8=_0x4431a6,_0x5019a8=this[_0x1712d8(0x1f1)][_0x199480],_0x42c661=_0x5019a8[_0x1712d8(0x1f9)](({index:_0x1646ff})=>_0x1646ff===_0x543de0[_0x1712d8(0x214)]);if(_0x42c661){const _0x53d24b=_0x5019a8[_0x1712d8(0x1e2)](_0x42c661);_0x5019a8[_0x1712d8(0x1e3)](_0x53d24b,0x1,_0x543de0);}else _0x5019a8[_0x1712d8(0x1f7)](_0x543de0);}):this[_0x4431a6(0x1f1)][_0x199480][_0x4431a6(0x1d7)]=0x0;}[_0x4fc3dc(0x20f)](){const _0x2d16e9=_0x4fc3dc;if(_0x2d16e9(0x1d1)===this[_0x2d16e9(0x21f)]){this[_0x2d16e9(0x1e6)]=this[_0x2d16e9(0x1e8)][_0x2d16e9(0x1e1)](this[_0x2d16e9(0x1ef)]);const _0x35f826=this[_0x2d16e9(0x1f6)];this[_0x2d16e9(0x1ed)]();const _0x3273db=this[_0x2d16e9(0x21d)](_0x35f826,this[_0x2d16e9(0x1f6)]);(_0x3273db[_0x2d16e9(0x1d7)]||this[_0x2d16e9(0x1f4)])&&(this[_0x2d16e9(0x20e)](_0x2d16e9(0x1f3),this,_0x3273db),this[_0x2d16e9(0x1f1)][_0x2d16e9(0x219)][_0x2d16e9(0x1d7)]=this[_0x2d16e9(0x1f1)][_0x2d16e9(0x1db)][_0x2d16e9(0x1d7)]=0x0);}else this[_0x2d16e9(0x1e6)]=this[_0x2d16e9(0x1e8)][_0x2d16e9(0x218)](this[_0x2d16e9(0x1ef)]),this[_0x2d16e9(0x20e)](_0x2d16e9(0x1f3),this);}[_0x4fc3dc(0x21d)](_0x4784dd,_0x2265c3){const _0x16e9fe=_0x4fc3dc,_0x1c9dcb=[];for(const _0x156e7d of _0x2265c3){const _0x199cb3=_0x4784dd[_0x156e7d[_0x16e9fe(0x214)]];_0x199cb3?_0x199cb3[_0x16e9fe(0x1f8)][_0x16e9fe(0x1d7)]!==_0x156e7d[_0x16e9fe(0x1f8)][_0x16e9fe(0x1d7)]?_0x1c9dcb[_0x16e9fe(0x1f7)](_0x156e7d):_0x199cb3[_0x16e9fe(0x1f8)][_0x16e9fe(0x1fd)]((_0x61d7ee,_0x2aa869)=>{const _0x437da8=_0x16e9fe,_0x3ccf77=_0x156e7d[_0x437da8(0x1f8)][_0x2aa869];_0x61d7ee['id']!==_0x3ccf77['id']&&_0x1c9dcb[_0x437da8(0x1f7)](_0x156e7d);}):_0x1c9dcb[_0x16e9fe(0x1f7)](_0x156e7d);}return _0x1c9dcb;}[_0x4fc3dc(0x1ed)](){const _0x4a8f5b=_0x4fc3dc,_0x39ab8b=new _0x2efd18('p',{},[new _0x2efd18(_0x4a8f5b(0x1e5),{'style':_0x4a8f5b(0x1d3)},[new _0x2401fe(_0x121cc4(this[_0x4a8f5b(0x206)][_0x4a8f5b(0x213)],_0x4a8f5b(0x1d8)))])]),_0x2b2abc=this[_0x4a8f5b(0x20c)][_0x4a8f5b(0x21e)](this[_0x4a8f5b(0x1e6)],this[_0x4a8f5b(0x1f2)][_0x4a8f5b(0x1fc)](!0x0),{'markUnstableElements':!this[_0x4a8f5b(0x1f4)],'replaceRemovedWith':_0x39ab8b,'cutAfterLastChange':!this[_0x4a8f5b(0x1f4)]});if(!_0x2b2abc[_0x4a8f5b(0x1ea)][_0x4a8f5b(0x1d7)]&&!this[_0x4a8f5b(0x1f4)])return;this[_0x4a8f5b(0x205)]=_0x2b2abc[_0x4a8f5b(0x1e6)];let _0x2cc26d=[];if(_0x41e335(_0x5a66a6=>{const _0x1cf8e4=_0x4a8f5b,_0x4dba22=_0xae4a55(_0x5a66a6,_0x1cf8e4(0x209));if(!_0x4dba22||!_0x10df32(_0x4dba22))return!0x1;const _0x6b9fb0=[_0x5a66a6,..._0x44201d(_0x5a66a6)]['at'](-0x2);if(_0x5a66a6!=_0x6b9fb0){const _0x4e22c2=_0xae4a55(_0x6b9fb0,_0x1cf8e4(0x209));_0x10df32(_0x4e22c2)||(_0x2cc26d[_0x1cf8e4(0x1f7)]({'node':_0x6b9fb0,'id':_0x4e22c2,'type':_0x1cf8e4(0x21c)}),_0x2b2abc[_0x1cf8e4(0x1ea)][_0x1cf8e4(0x1f7)](_0x4e22c2));}else _0x2b2abc[_0x1cf8e4(0x1ea)][_0x1cf8e4(0x1d5)](_0x4dba22)?_0x2cc26d[_0x1cf8e4(0x1f7)]({'node':_0x5a66a6,'type':_0x1cf8e4(0x21c),'id':_0x4dba22}):_0x2b2abc[_0x1cf8e4(0x1fe)][_0x1cf8e4(0x1d5)](_0x4dba22)?_0x2cc26d[_0x1cf8e4(0x1f7)]({'node':_0x5a66a6,'type':_0x1cf8e4(0x1f0),'id':_0x4dba22,'anchorId':_0xae4a55(_0x5a66a6[_0x1cf8e4(0x1fa)],_0x1cf8e4(0x209))}):_0x2cc26d[_0x1cf8e4(0x1f7)]({'node':_0x5a66a6,'type':_0x1cf8e4(0x1e0),'id':_0x4dba22});return!0x0;},this[_0x4a8f5b(0x205)]),_0x2cc26d=_0x2cc26d[_0x4a8f5b(0x216)](({node:_0x4c81fb})=>[..._0x44201d(_0x4c81fb),_0x4c81fb][_0x4a8f5b(0x1d2)](_0x56a34e=>!_0xae4a55(_0x56a34e,_0x4a8f5b(0x21a)))),0x0==_0x2cc26d[_0x4a8f5b(0x1d7)])return;const _0x220298=[[_0x2cc26d[0x0]]];for(let _0x3dbc38=0x1;_0x3dbc38<_0x2cc26d[_0x4a8f5b(0x1d7)];_0x3dbc38++){const _0x1d7532=_0x220298[_0x220298[_0x4a8f5b(0x1d7)]-0x1],_0x56b6bc=_0x1d7532[_0x1d7532[_0x4a8f5b(0x1d7)]-0x1];_0x2cc26d[_0x3dbc38][_0x4a8f5b(0x202)][_0x4a8f5b(0x1fa)]==_0x56b6bc[_0x4a8f5b(0x202)]&&_0x4a8f5b(0x21c)!=_0x2cc26d[_0x3dbc38][_0x4a8f5b(0x21f)]&&_0x4a8f5b(0x21c)!=_0x56b6bc[_0x4a8f5b(0x21f)]?_0x1d7532[_0x4a8f5b(0x1f7)](_0x2cc26d[_0x3dbc38]):_0x220298[_0x4a8f5b(0x1f7)]([_0x2cc26d[_0x3dbc38]]);}for(const _0x2f1559 of _0x220298){const _0x11dd4d=_0x2f1559[0x0],_0x32aee0=_0x2f1559[_0x2f1559[_0x4a8f5b(0x1d7)]-0x1],_0x470181=_0x474c27(_0x11dd4d[_0x4a8f5b(0x202)][_0x4a8f5b(0x1fa)]);_0x470181&&_0x2f1559[_0x4a8f5b(0x1de)](_0x470181);const _0xf4dbe8=_0x474c27(_0x32aee0[_0x4a8f5b(0x202)][_0x4a8f5b(0x21b)]);_0xf4dbe8&&_0x2f1559[_0x4a8f5b(0x1f7)](_0xf4dbe8);}function _0x10df32(_0x1e2246){const _0x561f68=_0x4a8f5b;return _0x2b2abc[_0x561f68(0x1ea)][_0x561f68(0x1d5)](_0x1e2246)||_0x2b2abc[_0x561f68(0x1fe)][_0x561f68(0x1d5)](_0x1e2246)||_0x2b2abc[_0x561f68(0x211)][_0x561f68(0x1d5)](_0x1e2246);}function _0x474c27(_0x50a158){const _0x2ddd04=_0x4a8f5b;if(_0x50a158&&_0xae4a55(_0x50a158,_0x2ddd04(0x209))&&!_0xae4a55(_0x50a158,_0x2ddd04(0x21a))){const _0x4d635f=_0xae4a55(_0x50a158,_0x2ddd04(0x209));if(!_0x10df32(_0x4d635f))return{'node':_0x50a158,'type':_0x2ddd04(0x201),'id':_0x4d635f};}return null;}this[_0x4a8f5b(0x1f6)]=_0x220298[_0x4a8f5b(0x212)]((_0x40e513,_0x2bff74)=>({'changes':_0x40e513,'state':_0x4a8f5b(0x215),'index':_0x2bff74}));}}
23
+ function _0x57ef(_0x4e2ef6,_0x3cf411){const _0x2bf781=_0x2bf7();return _0x57ef=function(_0x57ef04,_0x37500f){_0x57ef04=_0x57ef04-0xde;let _0x120ef7=_0x2bf781[_0x57ef04];return _0x120ef7;},_0x57ef(_0x4e2ef6,_0x3cf411);}const _0x18aca2=_0x57ef;(function(_0x227c95,_0x52c2d3){const _0x3ed596=_0x57ef,_0x5aa91f=_0x227c95();while(!![]){try{const _0x54faac=parseInt(_0x3ed596(0x125))/0x1+parseInt(_0x3ed596(0x117))/0x2+-parseInt(_0x3ed596(0xfa))/0x3+-parseInt(_0x3ed596(0x118))/0x4*(-parseInt(_0x3ed596(0xef))/0x5)+-parseInt(_0x3ed596(0x113))/0x6+-parseInt(_0x3ed596(0x11a))/0x7+-parseInt(_0x3ed596(0x101))/0x8*(parseInt(_0x3ed596(0x124))/0x9);if(_0x54faac===_0x52c2d3)break;else _0x5aa91f['push'](_0x5aa91f['shift']());}catch(_0x5c1479){_0x5aa91f['push'](_0x5aa91f['shift']());}}}(_0x2bf7,0x9917d));import{CKEditorError as _0x27af3a,ObservableMixin as _0x52611c,uid as _0x244a74}from'ckeditor5/src/utils.js';import{Element as _0x324360,findAll as _0x52ee30,getAttribute as _0x32e987,getParents as _0x5d29be,Document as _0x57ba46,parse as _0x405e72,Text as _0x310a83}from'../utils/htmlparser.js';function _0x2bf7(){const _0x377c31=['parsedMergedContent','indexOf','includes','isDone','ai-reply-get-content-parts-group-not-found','map','locale','_getDifferentChangeGroups','content','ai-get-editor-from-context-no-editor','parsedContent','new','getContentParts','merge','aiResponseParser','245zyBHxW','removed','sources','areActionsDisabled','data-id','aiResponseApplier','destroy','state','replyChangeGroupStateUpdated','_getCachedContentParts','documentContextContent','390555tBICpn','context','unshift','replyContentUpdated','data-unstable','color:\x20#808080;\x20font-style:\x20italic','change:content','474544etDSeI','filter','every','withDiff','type','updateChangeGroups','AI_SUGGESTION_CONTENT_PART_REMOVED','modified','pending','interactionId','newNodeIds','splice','find','parseAndNormalizeHTML','push','span','node','cloneNode','2075592yGKEMj','editor','removedNodeIds','modifiedNodeIds','1743114YesDbf','40908vijCnD','cachedSuggestionContentParts','2431653YrRnir','_setCachedContentParts','stopListening','modification','fire','done','forEach','nextSibling','length','previousSibling','18gzcyxA','196521hFZyNK','appendContent','onContentChange','set','withoutDiff','changes','changeGroups','setChangeGroupState','index','convertMarkdownToHTML'];_0x2bf7=function(){return _0x377c31;};return _0x2bf7();}import{AIResponseParser as _0x32448d}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x5d30a3}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x58faf6}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x458cf8}from'../utils/common-translations.js';import{cloneDeep as _0x424256}from'es-toolkit';export class AIReply extends _0x52611c(){['id'];[_0x18aca2(0x10a)];[_0x18aca2(0x105)];[_0x18aca2(0xf1)]=[];[_0x18aca2(0xea)]=new _0x57ba46([]);[_0x18aca2(0xe0)]=new _0x57ba46([]);[_0x18aca2(0x12b)]=[];[_0x18aca2(0xf2)]=!0x1;[_0x18aca2(0xf9)];[_0x18aca2(0xee)];[_0x18aca2(0xf4)];[_0x18aca2(0x114)];[_0x18aca2(0x119)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x7b3936,content:_0x1d0e0d='',isDone:_0x5fc6d1=!0x1,interactionId:_0x26154f,areActionsDisabled:_0x614fb9,documentContextContent:_0x294b1f,editor:_0x11f98d,id:_0x59bafc}){const _0x365a2e=_0x18aca2;super(),this['id']=_0x59bafc||_0x244a74(),this[_0x365a2e(0x10a)]=_0x26154f,this[_0x365a2e(0x105)]=_0x7b3936,this[_0x365a2e(0xf2)]=!!_0x614fb9,this[_0x365a2e(0x114)]=_0x11f98d,this[_0x365a2e(0xee)]=new _0x32448d(),this[_0x365a2e(0xf4)]=new _0x5d30a3(),this[_0x365a2e(0xf9)]=_0x405e72(_0x294b1f||''),this[_0x365a2e(0x128)](_0x365a2e(0xe3),_0x5fc6d1),this['on'](_0x365a2e(0x100),()=>{const _0x1574ca=_0x365a2e;this[_0x1574ca(0x127)]();}),this[_0x365a2e(0x128)](_0x365a2e(0xe8),_0x1d0e0d);}[_0x18aca2(0x126)](_0x1b9348){const _0x11a7fc=_0x18aca2;this[_0x11a7fc(0x128)](_0x11a7fc(0xe8),this[_0x11a7fc(0xe8)]+_0x1b9348);}[_0x18aca2(0x11f)](){const _0x2aa802=_0x18aca2;this[_0x2aa802(0xe3)]||(this[_0x2aa802(0x128)](_0x2aa802(0xe3),!0x0),this[_0x2aa802(0x127)]());}[_0x18aca2(0xf5)](){const _0x417993=_0x18aca2;this[_0x417993(0x11c)]();}[_0x18aca2(0x12c)](_0x46505b,_0x2f2dd8){const _0x4b08a8=_0x18aca2;this[_0x4b08a8(0x12b)][_0x46505b][_0x4b08a8(0xf6)]=_0x2f2dd8,this[_0x4b08a8(0x11e)](_0x4b08a8(0xf7),{'reply':this,'index':_0x46505b,'state':_0x2f2dd8});}[_0x18aca2(0xec)]({showDiff:_0x48bb49,groupIndex:_0x122c9f}){const _0x40656e=_0x18aca2;if(!this[_0x40656e(0x114)])throw new _0x27af3a(_0x40656e(0xe9),null,{'aiReply':this});const _0x31e239=this[_0x40656e(0xf8)](_0x48bb49,_0x122c9f);if(_0x31e239)return _0x31e239;let _0x2a0467=[];if(void 0x0===_0x122c9f)_0x2a0467=this[_0x40656e(0x12b)];else{const _0x51bd3a=this[_0x40656e(0x12b)][_0x40656e(0x10d)](({index:_0x617d23})=>_0x617d23===_0x122c9f);if(!_0x51bd3a)throw new _0x27af3a(_0x40656e(0xe4),null,{'aiReply':this,'groupIndex':_0x122c9f});_0x2a0467=[_0x51bd3a];}const _0x49cb6b=_0x58faf6({'editor':this[_0x40656e(0x114)],'showDiff':_0x48bb49,'changeGroups':_0x2a0467,'documentContextContent':this[_0x40656e(0xf9)]});return this[_0x40656e(0x11b)](_0x48bb49,_0x49cb6b),_0x49cb6b;}[_0x18aca2(0xf8)](_0x51b27b,_0x50bcb1){const _0x2b8505=_0x18aca2,_0x190c02=_0x51b27b?_0x2b8505(0x104):_0x2b8505(0x129);if(!this[_0x2b8505(0x119)][_0x190c02][_0x2b8505(0x122)])return null;const _0x2907f5=this[_0x2b8505(0x119)][_0x190c02];if(void 0x0===_0x50bcb1)return _0x2907f5[_0x2b8505(0x122)]>0x0&&_0x2907f5[_0x2b8505(0x122)]!==this[_0x2b8505(0x12b)][_0x2b8505(0x122)]?(this[_0x2b8505(0x11b)](_0x51b27b,null),null):_0x424256(_0x2907f5);{const _0x449655=_0x2907f5[_0x2b8505(0x10d)](({index:_0x8e409c})=>_0x8e409c===_0x50bcb1);if(_0x449655)return[_0x424256(_0x449655)];}return null;}[_0x18aca2(0x11b)](_0x4eed04,_0x1c227b){const _0xc9c72a=_0x18aca2,_0x478d69=_0x4eed04?_0xc9c72a(0x104):_0xc9c72a(0x129);_0x1c227b?_0x1c227b[_0xc9c72a(0x120)](_0x2c5a4e=>{const _0x4384e3=_0xc9c72a,_0x148700=this[_0x4384e3(0x119)][_0x478d69],_0x3fb5bd=_0x148700[_0x4384e3(0x10d)](({index:_0x272cbb})=>_0x272cbb===_0x2c5a4e[_0x4384e3(0xde)]);if(_0x3fb5bd){const _0x292ac2=_0x148700[_0x4384e3(0xe1)](_0x3fb5bd);_0x148700[_0x4384e3(0x10c)](_0x292ac2,0x1,_0x2c5a4e);}else _0x148700[_0x4384e3(0x10f)](_0x2c5a4e);}):this[_0xc9c72a(0x119)][_0x478d69][_0xc9c72a(0x122)]=0x0;}[_0x18aca2(0x127)](){const _0x5c56fe=_0x18aca2;if(_0x5c56fe(0x11d)===this[_0x5c56fe(0x105)]){this[_0x5c56fe(0xea)]=this[_0x5c56fe(0xee)][_0x5c56fe(0x10e)](this[_0x5c56fe(0xe8)]);const _0xee99c4=this[_0x5c56fe(0x12b)];this[_0x5c56fe(0x106)]();const _0x17b382=this[_0x5c56fe(0xe7)](_0xee99c4,this[_0x5c56fe(0x12b)]);(_0x17b382[_0x5c56fe(0x122)]||this[_0x5c56fe(0xe3)])&&(this[_0x5c56fe(0x11e)](_0x5c56fe(0xfd),this,_0x17b382),this[_0x5c56fe(0x119)][_0x5c56fe(0x104)][_0x5c56fe(0x122)]=this[_0x5c56fe(0x119)][_0x5c56fe(0x129)][_0x5c56fe(0x122)]=0x0);}else this[_0x5c56fe(0xea)]=this[_0x5c56fe(0xee)][_0x5c56fe(0xdf)](this[_0x5c56fe(0xe8)]),this[_0x5c56fe(0x11e)](_0x5c56fe(0xfd),this);}[_0x18aca2(0xe7)](_0x89aef9,_0x3a9697){const _0x231f46=_0x18aca2,_0x3d2099=[];for(const _0x7af9f5 of _0x3a9697){const _0x346668=_0x89aef9[_0x7af9f5[_0x231f46(0xde)]];_0x346668?_0x346668[_0x231f46(0x12a)][_0x231f46(0x122)]!==_0x7af9f5[_0x231f46(0x12a)][_0x231f46(0x122)]?_0x3d2099[_0x231f46(0x10f)](_0x7af9f5):_0x346668[_0x231f46(0x12a)][_0x231f46(0x120)]((_0x37a559,_0x24fdf7)=>{const _0x388554=_0x231f46,_0x3843eb=_0x7af9f5[_0x388554(0x12a)][_0x24fdf7];_0x37a559['id']!==_0x3843eb['id']&&_0x3d2099[_0x388554(0x10f)](_0x7af9f5);}):_0x3d2099[_0x231f46(0x10f)](_0x7af9f5);}return _0x3d2099;}[_0x18aca2(0x106)](){const _0x23d318=_0x18aca2,_0x853d4f=new _0x324360('p',{},[new _0x324360(_0x23d318(0x110),{'style':_0x23d318(0xff)},[new _0x310a83(_0x458cf8(this[_0x23d318(0x114)][_0x23d318(0xe6)],_0x23d318(0x107)))])]),_0x4fd196=this[_0x23d318(0xf4)][_0x23d318(0xed)](this[_0x23d318(0xea)],this[_0x23d318(0xf9)][_0x23d318(0x112)](!0x0),{'markUnstableElements':!this[_0x23d318(0xe3)],'replaceRemovedWith':_0x853d4f,'cutAfterLastChange':!this[_0x23d318(0xe3)]});if(!_0x4fd196[_0x23d318(0x116)][_0x23d318(0x122)]&&!this[_0x23d318(0xe3)])return;this[_0x23d318(0xe0)]=_0x4fd196[_0x23d318(0xea)];let _0x2b4cb2=[];if(_0x52ee30(_0xf1a7d2=>{const _0x2a122b=_0x23d318,_0x9e7d8=_0x32e987(_0xf1a7d2,_0x2a122b(0xf3));if(!_0x9e7d8||!_0x2a0fe3(_0x9e7d8))return!0x1;const _0x28afe0=[_0xf1a7d2,..._0x5d29be(_0xf1a7d2)]['at'](-0x2);if(_0xf1a7d2!=_0x28afe0){const _0x5465ed=_0x32e987(_0x28afe0,_0x2a122b(0xf3));_0x2a0fe3(_0x5465ed)||(_0x2b4cb2[_0x2a122b(0x10f)]({'node':_0x28afe0,'id':_0x5465ed,'type':_0x2a122b(0x108)}),_0x4fd196[_0x2a122b(0x116)][_0x2a122b(0x10f)](_0x5465ed));}else _0x4fd196[_0x2a122b(0x116)][_0x2a122b(0xe2)](_0x9e7d8)?_0x2b4cb2[_0x2a122b(0x10f)]({'node':_0xf1a7d2,'type':_0x2a122b(0x108),'id':_0x9e7d8}):_0x4fd196[_0x2a122b(0x10b)][_0x2a122b(0xe2)](_0x9e7d8)?_0x2b4cb2[_0x2a122b(0x10f)]({'node':_0xf1a7d2,'type':_0x2a122b(0xeb),'id':_0x9e7d8,'anchorId':_0x32e987(_0xf1a7d2[_0x2a122b(0x123)],_0x2a122b(0xf3))}):_0x2b4cb2[_0x2a122b(0x10f)]({'node':_0xf1a7d2,'type':_0x2a122b(0xf0),'id':_0x9e7d8});return!0x0;},this[_0x23d318(0xe0)]),_0x2b4cb2=_0x2b4cb2[_0x23d318(0x102)](({node:_0x2980d9})=>[..._0x5d29be(_0x2980d9),_0x2980d9][_0x23d318(0x103)](_0x181be6=>!_0x32e987(_0x181be6,_0x23d318(0xfe)))),0x0==_0x2b4cb2[_0x23d318(0x122)])return;const _0x112a4a=[[_0x2b4cb2[0x0]]];for(let _0x26a580=0x1;_0x26a580<_0x2b4cb2[_0x23d318(0x122)];_0x26a580++){const _0x34017f=_0x112a4a[_0x112a4a[_0x23d318(0x122)]-0x1],_0x1d3e87=_0x34017f[_0x34017f[_0x23d318(0x122)]-0x1];_0x2b4cb2[_0x26a580][_0x23d318(0x111)][_0x23d318(0x123)]==_0x1d3e87[_0x23d318(0x111)]&&_0x23d318(0x108)!=_0x2b4cb2[_0x26a580][_0x23d318(0x105)]&&_0x23d318(0x108)!=_0x1d3e87[_0x23d318(0x105)]?_0x34017f[_0x23d318(0x10f)](_0x2b4cb2[_0x26a580]):_0x112a4a[_0x23d318(0x10f)]([_0x2b4cb2[_0x26a580]]);}for(const _0x1331f7 of _0x112a4a){const _0x26d0ec=_0x1331f7[0x0],_0x514770=_0x1331f7[_0x1331f7[_0x23d318(0x122)]-0x1],_0x507996=_0x2a5c06(_0x26d0ec[_0x23d318(0x111)][_0x23d318(0x123)]);_0x507996&&_0x1331f7[_0x23d318(0xfc)](_0x507996);const _0x332946=_0x2a5c06(_0x514770[_0x23d318(0x111)][_0x23d318(0x121)]);_0x332946&&_0x1331f7[_0x23d318(0x10f)](_0x332946);}function _0x2a0fe3(_0x52a441){const _0xb575ed=_0x23d318;return _0x4fd196[_0xb575ed(0x116)][_0xb575ed(0xe2)](_0x52a441)||_0x4fd196[_0xb575ed(0x10b)][_0xb575ed(0xe2)](_0x52a441)||_0x4fd196[_0xb575ed(0x115)][_0xb575ed(0xe2)](_0x52a441);}function _0x2a5c06(_0x3c3177){const _0x209a94=_0x23d318;if(_0x3c3177&&_0x32e987(_0x3c3177,_0x209a94(0xf3))&&!_0x32e987(_0x3c3177,_0x209a94(0xfe))){const _0x3b931e=_0x32e987(_0x3c3177,_0x209a94(0xf3));if(!_0x2a0fe3(_0x3b931e))return{'node':_0x3c3177,'type':_0x209a94(0xfb),'id':_0x3b931e};}return null;}this[_0x23d318(0x12b)]=_0x112a4a[_0x23d318(0xe5)]((_0x57efe9,_0x5ed629)=>({'changes':_0x57efe9,'state':_0x23d318(0x109),'index':_0x5ed629}));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f5fc2=_0x868d;(function(_0x38c08e,_0x305aab){const _0x995206=_0x868d,_0x3d2abd=_0x38c08e();while(!![]){try{const _0x458d72=parseInt(_0x995206(0x194))/0x1*(parseInt(_0x995206(0x187))/0x2)+-parseInt(_0x995206(0x16e))/0x3*(-parseInt(_0x995206(0x193))/0x4)+parseInt(_0x995206(0x176))/0x5*(parseInt(_0x995206(0x174))/0x6)+-parseInt(_0x995206(0x1a5))/0x7+parseInt(_0x995206(0x182))/0x8+parseInt(_0x995206(0x191))/0x9+parseInt(_0x995206(0x1a7))/0xa*(-parseInt(_0x995206(0x170))/0xb);if(_0x458d72===_0x305aab)break;else _0x3d2abd['push'](_0x3d2abd['shift']());}catch(_0x5d5385){_0x3d2abd['push'](_0x3d2abd['shift']());}}}(_0x1b89,0x45e47));function _0x868d(_0xb222d2,_0x3dbc6e){const _0x1b8970=_0x1b89();return _0x868d=function(_0x868d93,_0x4991ff){_0x868d93=_0x868d93-0x165;let _0x500121=_0x1b8970[_0x868d93];return _0x500121;},_0x868d(_0xb222d2,_0x3dbc6e);}import{ObservableMixin as _0x2b93f9,uid as _0x379051}from'ckeditor5/src/utils.js';function _0x1b89(){const _0x2e8977=['data-removed','14526NMtnHW','_generateUid','1005VpWoQX','_replaceNode','_hasWrappedParent','_getNodeDataId','_existingDataIds','has','data-unstable','_touchedNodesState','splice','data-id','_findReferenceNode','trim','1968520btVlQf','lastChild','removedIds','previousSibling','_findNextElementWithDataId','2BjVFPF','_isExistingNode','new-element','_markUnstableElements','afterbegin','beforebegin','nextSibling','afterend','_findPrevElementWithDataId','reverse','538668rUnGmI','_removeSpecialComments','1953076aFvWQv','507757NSSJLU','childNodes','markUnstableElements','length','merge','newIds','_getUid','from','_markLastTagElementUnstable','true','filter','data-wrapped-id','includes','push','map','lastTouchedId','nodeType','224469JDvcgh','_insertNodes','10jKOQAx','invalidIds','parentNode','_markWrappedElements','indexOf','forEach','slice','cloneNode','replaceRemovedWith','_findFallbackReferenceNode','match','_isExistingContentComment','cutAfterLastChange','modifiedIds','_isDelNode','3lWMxKH','markUnstableElementsDepth','16172398wBQlwK','_isNewNode','_storeDeletedElementIds'];_0x1b89=function(){return _0x2e8977;};return _0x1b89();}import{findAllByAttribute as _0x1e2693,findByAttribute as _0x457e33,getAttribute as _0x180758,isComment as _0x45d8a1,isTag as _0x4b8a14,insertElement as _0x154548,moveElement as _0x2702ec,removeElement as _0x41a5d3,replaceElement as _0x3e941d,serialize as _0x5c00bb,setAttribute as _0x37c3af,clone as _0x6c2a4e,findAllComments as _0x3f138a,getParents as _0x219c5d,getNodeNestingLevel as _0x24c999,areNodesSame as _0x3b8787,removeElementsAfter as _0x116ba2}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x2b93f9(){[_0x3f5fc2(0x175)];[_0x3f5fc2(0x17d)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x3f5fc2(0x17a)]=new Set();constructor(_0x2e85c3){const _0x4d7fda=_0x3f5fc2;super(),this[_0x4d7fda(0x175)]=_0x2e85c3||_0x379051;}[_0x3f5fc2(0x198)](_0xc90b10,_0x2c1e15,_0x146d0a){const _0x523cfc=_0x3f5fc2,_0x1d0f88=_0x6c2a4e(_0xc90b10);if(0x0===_0x2c1e15[_0x523cfc(0x195)][_0x523cfc(0x197)]){const _0x1b8b0d=[];return _0x1e2693(_0x523cfc(0x17f),_0x523cfc(0x189),_0x1d0f88)[_0x523cfc(0x1ac)](_0x39145d=>{const _0x4cf009=_0x523cfc,_0x1e2134=this[_0x4cf009(0x175)]();_0x37c3af(_0x39145d,_0x4cf009(0x17f),_0x1e2134),_0x1b8b0d[_0x4cf009(0x1a1)](_0x1e2134);}),this[_0x523cfc(0x192)](_0x1d0f88),{'parsedContent':_0x1d0f88,'newNodeIds':_0x1b8b0d,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x146d0a&&_0x146d0a[_0x523cfc(0x196)]&&this[_0x523cfc(0x19c)](_0x1d0f88),this[_0x523cfc(0x17d)][_0x523cfc(0x199)]=[],this[_0x523cfc(0x17d)][_0x523cfc(0x16c)]=[],this[_0x523cfc(0x17d)][_0x523cfc(0x184)]=[],this[_0x523cfc(0x17d)][_0x523cfc(0x1a8)]=[],this[_0x523cfc(0x17d)][_0x523cfc(0x1a3)]=null,this[_0x523cfc(0x17a)]=new Set(_0x1e2693(_0x523cfc(0x17f),null,_0x2c1e15)[_0x523cfc(0x1a2)](_0x51e368=>_0x180758(_0x51e368,_0x523cfc(0x17f)))[_0x523cfc(0x19e)](_0x39c7c2=>!!_0x39c7c2));let _0x2f82f0=-0x1,_0x542962=!0x1;const _0x5308b6=_0x1d0f88[_0x523cfc(0x195)],_0x310899=Array[_0x523cfc(0x19b)](_0x5308b6)[_0x523cfc(0x19e)](_0x3060fe=>!(0x3===_0x3060fe[_0x523cfc(0x1a4)]&&''===_0x5c00bb(_0x3060fe)[_0x523cfc(0x181)]())),_0xe4a528=_0x310899[_0x523cfc(0x197)];for(let _0x5f20e0=0x0;_0x5f20e0<_0xe4a528;_0x5f20e0++){const _0xe12670=_0x310899[_0x5f20e0],_0x212f36=_0x310899[_0x5f20e0+0x1];if(this[_0x523cfc(0x171)](_0xe12670)){if(-0x1===_0x2f82f0&&(_0x2f82f0=_0x5f20e0),this[_0x523cfc(0x1aa)](_0xe12670),!this[_0x523cfc(0x171)](_0x212f36)){const [_0x2aedd5,_0x1970ee]=this[_0x523cfc(0x180)](_0xe12670,_0x542962,_0x2c1e15);if(_0x2aedd5){const _0x4880ae=Array[_0x523cfc(0x19b)](_0x310899)[_0x523cfc(0x165)](_0x2f82f0,_0x5f20e0+0x1);this[_0x523cfc(0x1a6)](_0x2aedd5,_0x4880ae,_0x1970ee),_0x2f82f0=-0x1;}}}else{if(this[_0x523cfc(0x16a)](_0xe12670))_0x542962=!0x0;else{if(this[_0x523cfc(0x188)](_0xe12670)){const _0x4646c3=_0x180758(_0xe12670,_0x523cfc(0x17f));if(_0x4646c3&&this[_0x523cfc(0x17a)][_0x523cfc(0x17b)](_0x4646c3)){const _0x104545=_0x457e33(_0x523cfc(0x17f),_0x4646c3,_0x2c1e15);this[_0x523cfc(0x177)](_0x104545,_0xe12670);}if(this[_0x523cfc(0x17d)][_0x523cfc(0x184)][_0x523cfc(0x1a0)](_0x4646c3)){const _0x543199=this[_0x523cfc(0x17d)][_0x523cfc(0x184)][_0x523cfc(0x1ab)](_0x4646c3);this[_0x523cfc(0x17d)][_0x523cfc(0x184)][_0x523cfc(0x17e)](_0x543199,0x1);}}else{if(this[_0x523cfc(0x16d)](_0xe12670)){const _0x1e0b27=_0x180758(_0xe12670,_0x523cfc(0x17f));this[_0x523cfc(0x17d)][_0x523cfc(0x16c)][_0x523cfc(0x1a0)](_0x1e0b27)||this[_0x523cfc(0x172)](_0xe12670);}}}}}for(const _0xb1dca8 of this[_0x523cfc(0x17d)][_0x523cfc(0x184)]){const _0x147933=_0x457e33(_0x523cfc(0x17f),_0xb1dca8,_0x2c1e15);if(_0x147933){if(_0x146d0a&&_0x146d0a[_0x523cfc(0x167)]){this[_0x523cfc(0x17d)][_0x523cfc(0x1a3)]=_0xb1dca8;const _0xf22d2e=_0x146d0a[_0x523cfc(0x167)][_0x523cfc(0x166)](!0x0);_0x37c3af(_0xf22d2e,_0x523cfc(0x17f),_0xb1dca8),_0x37c3af(_0xf22d2e,_0x523cfc(0x173),_0x523cfc(0x19d)),_0x3e941d(_0x147933,_0xf22d2e);}else _0x41a5d3(_0x147933);}}if(_0x1e2693(_0x523cfc(0x19f),null,_0x2c1e15)[_0x523cfc(0x1ac)](_0xb43182=>{const _0x25da43=_0x523cfc,_0x2b843f=_0x180758(_0xb43182,_0x25da43(0x19f)),_0x6aaaca=_0x457e33(_0x25da43(0x17f),_0x2b843f,_0x2c1e15);_0x6aaaca&&_0x2702ec(_0x6aaaca,_0xb43182);}),_0x1e2693(_0x523cfc(0x17f),_0x523cfc(0x189),_0x2c1e15)[_0x523cfc(0x1ac)](_0x23cdfd=>{const _0xeaa9e=_0x523cfc,_0x1abd1b=this[_0xeaa9e(0x19a)](_0x23cdfd);_0x37c3af(_0x23cdfd,_0xeaa9e(0x17f),_0x1abd1b),this[_0xeaa9e(0x17d)][_0xeaa9e(0x199)][_0xeaa9e(0x1a1)](_0x1abd1b);}),this[_0x523cfc(0x192)](_0x2c1e15),_0x146d0a&&_0x146d0a[_0x523cfc(0x196)]&&this[_0x523cfc(0x18a)](_0x2c1e15,_0x146d0a[_0x523cfc(0x16f)]||0x0),_0x146d0a&&_0x146d0a[_0x523cfc(0x16b)]&&this[_0x523cfc(0x17d)][_0x523cfc(0x1a3)]){let _0x5d3b65=_0x457e33(_0x523cfc(0x17f),this[_0x523cfc(0x17d)][_0x523cfc(0x1a3)],_0x2c1e15);for(;_0x5d3b65;)_0x116ba2(_0x5d3b65),_0x5d3b65=_0x5d3b65[_0x523cfc(0x1a9)];}return{'parsedContent':_0x2c1e15,'newNodeIds':this[_0x523cfc(0x17d)][_0x523cfc(0x199)],'modifiedNodeIds':this[_0x523cfc(0x17d)][_0x523cfc(0x16c)],'removedNodeIds':this[_0x523cfc(0x17d)][_0x523cfc(0x184)]};}[_0x3f5fc2(0x1a6)](_0x50deac,_0xf45e55,_0x5e4169){const _0x397b15=_0x3f5fc2;for(const _0x146ae3 of _0xf45e55){const _0x29bb20=this[_0x397b15(0x19a)](_0x146ae3);_0x37c3af(_0x146ae3,_0x397b15(0x17f),_0x29bb20),this[_0x397b15(0x17d)][_0x397b15(0x199)][_0x397b15(0x1a1)](_0x29bb20),this[_0x397b15(0x17d)][_0x397b15(0x1a3)]=_0x29bb20;}const _0x463976=_0x397b15(0x18b)===_0x5e4169||_0x397b15(0x18e)===_0x5e4169?_0xf45e55[_0x397b15(0x190)]():_0xf45e55;for(const _0x364277 of _0x463976)_0x154548(_0x50deac,_0x364277,_0x5e4169);}[_0x3f5fc2(0x177)](_0x13758d,_0x242b86){const _0x436b1e=_0x3f5fc2;if(!_0x13758d)return;if(_0x3b8787(_0x13758d,_0x242b86))return;const _0x40fae0=this[_0x436b1e(0x19a)](_0x13758d);_0x37c3af(_0x242b86,_0x436b1e(0x17f),_0x40fae0),this[_0x436b1e(0x17d)][_0x436b1e(0x16c)][_0x436b1e(0x1a1)](_0x40fae0),this[_0x436b1e(0x17d)][_0x436b1e(0x1a3)]=_0x40fae0,_0x3e941d(_0x13758d,_0x242b86[_0x436b1e(0x166)](!0x0));}[_0x3f5fc2(0x180)](_0x3ab5e4,_0x1f0451,_0x410794){const _0x4e778f=_0x3f5fc2,_0x1dacec=this[_0x4e778f(0x18f)](_0x3ab5e4,!0x1);if(_0x1dacec){const _0x374911=this[_0x4e778f(0x179)](_0x1dacec),_0x540782=_0x457e33(_0x4e778f(0x17f),_0x374911,_0x410794);if(_0x540782)return[_0x540782,_0x4e778f(0x18e)];this[_0x4e778f(0x17d)][_0x4e778f(0x1a8)][_0x4e778f(0x1a1)](_0x374911);}const _0x7b9f44=this[_0x4e778f(0x186)](_0x3ab5e4,!0x1);if(_0x7b9f44){const _0x52a355=this[_0x4e778f(0x179)](_0x7b9f44),_0x50ff62=_0x457e33(_0x4e778f(0x17f),_0x52a355,_0x410794);if(_0x50ff62)return[_0x50ff62,_0x4e778f(0x18c)];this[_0x4e778f(0x17d)][_0x4e778f(0x1a8)][_0x4e778f(0x1a1)](_0x52a355);}return _0x1f0451?_0x3ab5e4[_0x4e778f(0x18d)]?this[_0x4e778f(0x168)](_0x3ab5e4,_0x410794):[_0x410794[_0x4e778f(0x195)][_0x410794[_0x4e778f(0x195)][_0x4e778f(0x197)]-0x1],_0x4e778f(0x18e)]:[_0x410794[_0x4e778f(0x195)][0x0],_0x4e778f(0x18c)];}[_0x3f5fc2(0x168)](_0x2ca4bd,_0x378ef9){const _0xcb7cea=_0x3f5fc2,_0x2d2064=[],_0x601082=this[_0xcb7cea(0x18f)](_0x2ca4bd,!0x0);if(_0x601082){const _0xf51dcd=this[_0xcb7cea(0x179)](_0x601082),_0x4650cc=_0x457e33(_0xcb7cea(0x17f),_0xf51dcd,_0x378ef9);_0x4650cc&&_0x2d2064[_0xcb7cea(0x1a1)]([_0x4650cc,_0xcb7cea(0x18e)]);}const _0x26ef76=this[_0xcb7cea(0x186)](_0x2ca4bd,!0x0);if(_0x26ef76){const _0x20dcb8=this[_0xcb7cea(0x179)](_0x26ef76),_0x66b3ac=_0x457e33(_0xcb7cea(0x17f),_0x20dcb8,_0x378ef9);_0x66b3ac&&_0x2d2064[_0xcb7cea(0x1a1)]([_0x66b3ac,_0xcb7cea(0x18c)]);}if(_0x2d2064[_0xcb7cea(0x197)]>0x1)return _0x24c999(_0x2d2064[0x0][0x0])<=_0x24c999(_0x2d2064[0x1][0x0])?_0x2d2064[0x0]:_0x2d2064[0x1];return 0x1===_0x2d2064[_0xcb7cea(0x197)]?_0x2d2064[0x0]:[_0x378ef9[_0xcb7cea(0x183)],_0xcb7cea(0x18e)];}[_0x3f5fc2(0x186)](_0x14d40e,_0x150c95){const _0x1628c5=_0x3f5fc2;let _0x43922a=_0x14d40e[_0x1628c5(0x18d)],_0x5b925e=null,_0x49b0fb=!0x1;for(;_0x43922a;){if(_0x45d8a1(_0x43922a)){if(this[_0x1628c5(0x16d)](_0x43922a)&&(_0x5b925e=_0x43922a),this[_0x1628c5(0x16a)](_0x43922a)&&_0x150c95&&!_0x49b0fb){_0x49b0fb=!0x0,_0x43922a=_0x43922a[_0x1628c5(0x18d)];continue;}break;}const _0x262285=_0x180758(_0x43922a,_0x1628c5(0x17f));if(_0x262285&&_0x1628c5(0x189)!==_0x262285&&this[_0x1628c5(0x17a)][_0x1628c5(0x17b)](_0x262285)){_0x5b925e=_0x43922a;break;}_0x43922a=_0x43922a[_0x1628c5(0x18d)];}return _0x5b925e;}[_0x3f5fc2(0x18f)](_0x521ca5,_0x4807c0){const _0x335c24=_0x3f5fc2;let _0x2b1588=_0x521ca5[_0x335c24(0x185)],_0x1c5b2b=null,_0x40d689=!0x1;for(;_0x2b1588;){if(_0x45d8a1(_0x2b1588)){if(this[_0x335c24(0x16d)](_0x2b1588)&&(_0x1c5b2b=_0x2b1588),this[_0x335c24(0x16a)](_0x2b1588)&&_0x4807c0&&!_0x40d689){_0x40d689=!0x0,_0x2b1588=_0x2b1588[_0x335c24(0x185)];continue;}break;}const _0x33c7ed=_0x180758(_0x2b1588,_0x335c24(0x17f));if(_0x33c7ed&&_0x335c24(0x189)!==_0x33c7ed&&this[_0x335c24(0x17a)][_0x335c24(0x17b)](_0x33c7ed)){_0x1c5b2b=_0x2b1588;break;}_0x2b1588=_0x2b1588[_0x335c24(0x185)];}return _0x1c5b2b;}[_0x3f5fc2(0x1aa)](_0x294c95){const _0x3d89ec=_0x3f5fc2;_0x4b8a14(_0x294c95)&&_0x1e2693(_0x3d89ec(0x17f),null,_0x294c95)[_0x3d89ec(0x1ac)](_0xe04670=>{const _0x22cd5c=_0x3d89ec;if(this[_0x22cd5c(0x188)](_0xe04670)&&!this[_0x22cd5c(0x178)](_0xe04670)){const _0x58a279=_0x180758(_0xe04670,_0x22cd5c(0x17f));_0x37c3af(_0xe04670,_0x22cd5c(0x19f),_0x58a279),_0x37c3af(_0xe04670,_0x22cd5c(0x17f),null);}});}[_0x3f5fc2(0x179)](_0x47c580){const _0x5d9139=_0x3f5fc2;if(!_0x47c580)return null;if(_0x4b8a14(_0x47c580))return _0x180758(_0x47c580,_0x5d9139(0x17f));if(_0x45d8a1(_0x47c580)){const _0x5f257f=_0x5c00bb(_0x47c580)[_0x5d9139(0x169)](/removed[\s*-]data-id="([^"]+)"/);if(_0x5f257f&&_0x5f257f[0x1])return _0x5f257f[0x1];}return null;}[_0x3f5fc2(0x172)](_0x543da9){const _0x3d0a91=_0x3f5fc2;if(_0x45d8a1(_0x543da9)){const _0x906ea7=_0x5c00bb(_0x543da9)[_0x3d0a91(0x169)](/removed[\s*-]data-id="([^"]+)"/);_0x906ea7&&_0x906ea7[0x1]&&this[_0x3d0a91(0x17d)][_0x3d0a91(0x184)][_0x3d0a91(0x1a1)](_0x906ea7[0x1]);}}[_0x3f5fc2(0x19a)](_0x53295c){const _0x17bfc4=_0x3f5fc2;return this[_0x17bfc4(0x188)](_0x53295c)?_0x180758(_0x53295c,_0x17bfc4(0x17f)):this[_0x17bfc4(0x175)]();}[_0x3f5fc2(0x192)](_0x3c53c3){const _0xd4113e=_0x3f5fc2;_0x3f138a(_0x3c53c3)[_0xd4113e(0x19e)](_0x417c76=>this[_0xd4113e(0x16d)](_0x417c76)||this[_0xd4113e(0x16a)](_0x417c76))[_0xd4113e(0x1ac)](_0xe32b7=>{_0x41a5d3(_0xe32b7);});}[_0x3f5fc2(0x19c)](_0x6e8c9b){const _0x2bc33b=_0x3f5fc2,_0x3a7406=_0x6e8c9b[_0x2bc33b(0x195)],_0x12263c=_0x3a7406[_0x3a7406[_0x2bc33b(0x197)]-0x1];_0x12263c&&_0x4b8a14(_0x12263c)&&_0x37c3af(_0x12263c,_0x2bc33b(0x17c),_0x2bc33b(0x19d));}[_0x3f5fc2(0x18a)](_0x14733e,_0x2b6323){const _0x43c233=_0x3f5fc2,_0x742555=_0x457e33(_0x43c233(0x17c),_0x43c233(0x19d),_0x14733e);if(!_0x742555)return;const _0x392387=_0x219c5d(_0x742555)[_0x43c233(0x165)](0x0,-0x1),_0x35821e=_0x392387[_0x43c233(0x197)];let _0x3d620c=_0x742555;if(_0x35821e>_0x2b6323){let _0x1b870b=_0x35821e,_0x5d2ef6=null;for(;_0x1b870b>_0x2b6323&&_0x1b870b>=0x0;)_0x1b870b--,_0x5d2ef6=_0x392387[_0x1b870b];_0x5d2ef6&&(_0x3d620c=_0x5d2ef6,_0x37c3af(_0x742555,_0x43c233(0x17c),null),_0x37c3af(_0x5d2ef6,_0x43c233(0x17c),_0x43c233(0x19d)));}else{if(_0x35821e<_0x2b6323){let _0x2c93da=_0x35821e,_0x21fca2=_0x742555;for(;_0x2c93da<_0x2b6323;){const _0x5f1187=_0x21fca2[_0x43c233(0x195)][_0x43c233(0x19e)](_0x17edc1=>_0x4b8a14(_0x17edc1));if(0x0===_0x5f1187[_0x43c233(0x197)])break;_0x2c93da++,_0x21fca2=_0x5f1187[_0x5f1187[_0x43c233(0x197)]-0x1];}_0x21fca2&&(_0x3d620c=_0x21fca2,_0x37c3af(_0x742555,_0x43c233(0x17c),null),_0x37c3af(_0x21fca2,_0x43c233(0x17c),_0x43c233(0x19d)));}}let _0x598460=_0x3d620c;for(;_0x598460;){for(;_0x598460[_0x43c233(0x18d)];)_0x598460=_0x598460[_0x43c233(0x18d)],_0x4b8a14(_0x598460)&&_0x37c3af(_0x598460,_0x43c233(0x17c),_0x43c233(0x19d));_0x598460=_0x598460[_0x43c233(0x1a9)];}}[_0x3f5fc2(0x171)](_0x17363c){const _0x5bf5f4=_0x3f5fc2;return Boolean(_0x5bf5f4(0x189)===_0x180758(_0x17363c,_0x5bf5f4(0x17f)));}[_0x3f5fc2(0x188)](_0x4c4b6c){const _0x102959=_0x3f5fc2;return Boolean((_0x180758(_0x4c4b6c,_0x102959(0x17f))||'')[_0x102959(0x197)]>0x0&&_0x102959(0x189)!==_0x180758(_0x4c4b6c,_0x102959(0x17f)));}[_0x3f5fc2(0x16d)](_0x2db218){const _0x561d13=_0x3f5fc2;return!!_0x2db218&&Boolean(_0x45d8a1(_0x2db218)&&_0x5c00bb(_0x2db218)[_0x561d13(0x169)](/removed[\s*-]data-id="[^"]+"/));}[_0x3f5fc2(0x178)](_0x615e10){const _0x4b48ae=_0x3f5fc2;let _0x243a95=_0x615e10[_0x4b48ae(0x1a9)];for(;_0x243a95;){if(_0x180758(_0x243a95,_0x4b48ae(0x19f)))return!0x0;_0x243a95=_0x243a95[_0x4b48ae(0x1a9)];}return!0x1;}[_0x3f5fc2(0x16a)](_0x4de02a){const _0x30f719=_0x3f5fc2;return Boolean(_0x45d8a1(_0x4de02a)&&_0x5c00bb(_0x4de02a)[_0x30f719(0x169)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ const _0x30912c=_0x329e;function _0x329e(_0x4fd60b,_0x13f946){const _0x3cb484=_0x3cb4();return _0x329e=function(_0x329eb3,_0x4dd738){_0x329eb3=_0x329eb3-0x13d;let _0x173c93=_0x3cb484[_0x329eb3];return _0x173c93;},_0x329e(_0x4fd60b,_0x13f946);}(function(_0x3b3ef2,_0x1d73ed){const _0xe48b91=_0x329e,_0x5cf57d=_0x3b3ef2();while(!![]){try{const _0x27f42b=-parseInt(_0xe48b91(0x15e))/0x1+-parseInt(_0xe48b91(0x161))/0x2*(parseInt(_0xe48b91(0x150))/0x3)+parseInt(_0xe48b91(0x15d))/0x4*(-parseInt(_0xe48b91(0x168))/0x5)+parseInt(_0xe48b91(0x14f))/0x6+-parseInt(_0xe48b91(0x185))/0x7*(parseInt(_0xe48b91(0x140))/0x8)+parseInt(_0xe48b91(0x15b))/0x9*(-parseInt(_0xe48b91(0x182))/0xa)+-parseInt(_0xe48b91(0x157))/0xb*(-parseInt(_0xe48b91(0x181))/0xc);if(_0x27f42b===_0x1d73ed)break;else _0x5cf57d['push'](_0x5cf57d['shift']());}catch(_0x290b47){_0x5cf57d['push'](_0x5cf57d['shift']());}}}(_0x3cb4,0xd497d));function _0x3cb4(){const _0x1347eb=['reverse','_findReferenceNode','_markWrappedElements','24xMZlzk','14519010rNVGAN','push','_findFallbackReferenceNode','4725518ByfiVA','_findPrevElementWithDataId','_storeDeletedElementIds','from','8FOoBeI','nextSibling','_getNodeDataId','_markUnstableElements','childNodes','beforebegin','splice','_replaceNode','_getUid','merge','newIds','afterbegin','cutAfterLastChange','trim','cloneNode','9591654AmoFIb','51717dYjbhB','markUnstableElementsDepth','invalidIds','_isDelNode','_isNewNode','_touchedNodesState','indexOf','16259463qIDsjX','data-wrapped-id','_findNextElementWithDataId','previousSibling','9TWYamA','_markLastTagElementUnstable','4AfPdUe','1018001NJDuWG','slice','data-unstable','2yqJphz','lastTouchedId','_hasWrappedParent','true','_insertNodes','includes','_isExistingContentComment','2609395dFVLuC','removedIds','forEach','_existingDataIds','replaceRemovedWith','data-id','lastChild','length','markUnstableElements','afterend','has','data-removed','match','modifiedIds','_isExistingNode','map','new-element','_removeSpecialComments','nodeType','_generateUid','parentNode','filter'];_0x3cb4=function(){return _0x1347eb;};return _0x3cb4();}import{ObservableMixin as _0x3addd6,uid as _0x259ba5}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x1abbea,findByAttribute as _0x40c561,getAttribute as _0x1ed839,isComment as _0x4cf7db,isTag as _0x2b4c3e,insertElement as _0x2092c5,moveElement as _0x362a72,removeElement as _0x13efba,replaceElement as _0x10cae1,serialize as _0x1c1e86,setAttribute as _0x472831,clone as _0x57dfba,findAllComments as _0x1b1c66,getParents as _0x203b30,getNodeNestingLevel as _0x25a067,areNodesSame as _0x43e7aa,removeElementsAfter as _0x5f181a}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x3addd6(){[_0x30912c(0x17b)];[_0x30912c(0x155)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x30912c(0x16b)]=new Set();constructor(_0x32f5ec){const _0x1e107c=_0x30912c;super(),this[_0x1e107c(0x17b)]=_0x32f5ec||_0x259ba5;}[_0x30912c(0x149)](_0x2abbdd,_0x504f88,_0x1d5abf){const _0x1d593a=_0x30912c,_0x14b6aa=_0x57dfba(_0x2abbdd);if(0x0===_0x504f88[_0x1d593a(0x144)][_0x1d593a(0x16f)]){const _0x1194ba=[];return _0x1abbea(_0x1d593a(0x16d),_0x1d593a(0x178),_0x14b6aa)[_0x1d593a(0x16a)](_0x1bd8c1=>{const _0x367622=_0x1d593a,_0x3476e4=this[_0x367622(0x17b)]();_0x472831(_0x1bd8c1,_0x367622(0x16d),_0x3476e4),_0x1194ba[_0x367622(0x183)](_0x3476e4);}),this[_0x1d593a(0x179)](_0x14b6aa),{'parsedContent':_0x14b6aa,'newNodeIds':_0x1194ba,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x1d5abf&&_0x1d5abf[_0x1d593a(0x170)]&&this[_0x1d593a(0x15c)](_0x14b6aa),this[_0x1d593a(0x155)][_0x1d593a(0x14a)]=[],this[_0x1d593a(0x155)][_0x1d593a(0x175)]=[],this[_0x1d593a(0x155)][_0x1d593a(0x169)]=[],this[_0x1d593a(0x155)][_0x1d593a(0x152)]=[],this[_0x1d593a(0x155)][_0x1d593a(0x162)]=null,this[_0x1d593a(0x16b)]=new Set(_0x1abbea(_0x1d593a(0x16d),null,_0x504f88)[_0x1d593a(0x177)](_0x82670a=>_0x1ed839(_0x82670a,_0x1d593a(0x16d)))[_0x1d593a(0x17d)](_0x504258=>!!_0x504258));let _0x107d81=-0x1,_0xabf75a=!0x1;const _0x2705c0=_0x14b6aa[_0x1d593a(0x144)],_0x3e0423=Array[_0x1d593a(0x13f)](_0x2705c0)[_0x1d593a(0x17d)](_0x1388c8=>!(0x3===_0x1388c8[_0x1d593a(0x17a)]&&''===_0x1c1e86(_0x1388c8)[_0x1d593a(0x14d)]())),_0x411687=_0x3e0423[_0x1d593a(0x16f)];for(let _0x52c5d6=0x0;_0x52c5d6<_0x411687;_0x52c5d6++){const _0x3b0368=_0x3e0423[_0x52c5d6],_0x57b9bb=_0x3e0423[_0x52c5d6+0x1];if(this[_0x1d593a(0x154)](_0x3b0368)){if(-0x1===_0x107d81&&(_0x107d81=_0x52c5d6),this[_0x1d593a(0x180)](_0x3b0368),!this[_0x1d593a(0x154)](_0x57b9bb)){const [_0x5d4855,_0x3e10c6]=this[_0x1d593a(0x17f)](_0x3b0368,_0xabf75a,_0x504f88);if(_0x5d4855){const _0x21a5f3=Array[_0x1d593a(0x13f)](_0x3e0423)[_0x1d593a(0x15f)](_0x107d81,_0x52c5d6+0x1);this[_0x1d593a(0x165)](_0x5d4855,_0x21a5f3,_0x3e10c6),_0x107d81=-0x1;}}}else{if(this[_0x1d593a(0x167)](_0x3b0368))_0xabf75a=!0x0;else{if(this[_0x1d593a(0x176)](_0x3b0368)){const _0x4ed825=_0x1ed839(_0x3b0368,_0x1d593a(0x16d));if(_0x4ed825&&this[_0x1d593a(0x16b)][_0x1d593a(0x172)](_0x4ed825)){const _0x3e2868=_0x40c561(_0x1d593a(0x16d),_0x4ed825,_0x504f88);this[_0x1d593a(0x147)](_0x3e2868,_0x3b0368);}if(this[_0x1d593a(0x155)][_0x1d593a(0x169)][_0x1d593a(0x166)](_0x4ed825)){const _0x260df7=this[_0x1d593a(0x155)][_0x1d593a(0x169)][_0x1d593a(0x156)](_0x4ed825);this[_0x1d593a(0x155)][_0x1d593a(0x169)][_0x1d593a(0x146)](_0x260df7,0x1);}}else{if(this[_0x1d593a(0x153)](_0x3b0368)){const _0x4685d6=_0x1ed839(_0x3b0368,_0x1d593a(0x16d));this[_0x1d593a(0x155)][_0x1d593a(0x175)][_0x1d593a(0x166)](_0x4685d6)||this[_0x1d593a(0x13e)](_0x3b0368);}}}}}for(const _0x2313ac of this[_0x1d593a(0x155)][_0x1d593a(0x169)]){const _0xa52c9b=_0x40c561(_0x1d593a(0x16d),_0x2313ac,_0x504f88);if(_0xa52c9b){if(_0x1d5abf&&_0x1d5abf[_0x1d593a(0x16c)]){this[_0x1d593a(0x155)][_0x1d593a(0x162)]=_0x2313ac;const _0x287077=_0x1d5abf[_0x1d593a(0x16c)][_0x1d593a(0x14e)](!0x0);_0x472831(_0x287077,_0x1d593a(0x16d),_0x2313ac),_0x472831(_0x287077,_0x1d593a(0x173),_0x1d593a(0x164)),_0x10cae1(_0xa52c9b,_0x287077);}else _0x13efba(_0xa52c9b);}}if(_0x1abbea(_0x1d593a(0x158),null,_0x504f88)[_0x1d593a(0x16a)](_0x59e683=>{const _0x492614=_0x1d593a,_0x14689e=_0x1ed839(_0x59e683,_0x492614(0x158)),_0x58701c=_0x40c561(_0x492614(0x16d),_0x14689e,_0x504f88);_0x58701c&&_0x362a72(_0x58701c,_0x59e683);}),_0x1abbea(_0x1d593a(0x16d),_0x1d593a(0x178),_0x504f88)[_0x1d593a(0x16a)](_0x3d8bc9=>{const _0x8029cf=_0x1d593a,_0x20891c=this[_0x8029cf(0x148)](_0x3d8bc9);_0x472831(_0x3d8bc9,_0x8029cf(0x16d),_0x20891c),this[_0x8029cf(0x155)][_0x8029cf(0x14a)][_0x8029cf(0x183)](_0x20891c);}),this[_0x1d593a(0x179)](_0x504f88),_0x1d5abf&&_0x1d5abf[_0x1d593a(0x170)]&&this[_0x1d593a(0x143)](_0x504f88,_0x1d5abf[_0x1d593a(0x151)]||0x0),_0x1d5abf&&_0x1d5abf[_0x1d593a(0x14c)]&&this[_0x1d593a(0x155)][_0x1d593a(0x162)]){let _0x2cdbe8=_0x40c561(_0x1d593a(0x16d),this[_0x1d593a(0x155)][_0x1d593a(0x162)],_0x504f88);for(;_0x2cdbe8;)_0x5f181a(_0x2cdbe8),_0x2cdbe8=_0x2cdbe8[_0x1d593a(0x17c)];}return{'parsedContent':_0x504f88,'newNodeIds':this[_0x1d593a(0x155)][_0x1d593a(0x14a)],'modifiedNodeIds':this[_0x1d593a(0x155)][_0x1d593a(0x175)],'removedNodeIds':this[_0x1d593a(0x155)][_0x1d593a(0x169)]};}[_0x30912c(0x165)](_0x254551,_0x524028,_0x33c9e5){const _0x2a0391=_0x30912c;for(const _0x3323d4 of _0x524028){const _0x2350d8=this[_0x2a0391(0x148)](_0x3323d4);_0x472831(_0x3323d4,_0x2a0391(0x16d),_0x2350d8),this[_0x2a0391(0x155)][_0x2a0391(0x14a)][_0x2a0391(0x183)](_0x2350d8),this[_0x2a0391(0x155)][_0x2a0391(0x162)]=_0x2350d8;}const _0x36dc27=_0x2a0391(0x14b)===_0x33c9e5||_0x2a0391(0x171)===_0x33c9e5?_0x524028[_0x2a0391(0x17e)]():_0x524028;for(const _0x27804a of _0x36dc27)_0x2092c5(_0x254551,_0x27804a,_0x33c9e5);}[_0x30912c(0x147)](_0x260515,_0xaf42b4){const _0x124d5b=_0x30912c;if(!_0x260515)return;if(_0x43e7aa(_0x260515,_0xaf42b4))return;const _0x31c895=this[_0x124d5b(0x148)](_0x260515);_0x472831(_0xaf42b4,_0x124d5b(0x16d),_0x31c895),this[_0x124d5b(0x155)][_0x124d5b(0x175)][_0x124d5b(0x183)](_0x31c895),this[_0x124d5b(0x155)][_0x124d5b(0x162)]=_0x31c895,_0x10cae1(_0x260515,_0xaf42b4[_0x124d5b(0x14e)](!0x0));}[_0x30912c(0x17f)](_0x5edf09,_0x425445,_0x48dd61){const _0x588af9=_0x30912c,_0xed6cb3=this[_0x588af9(0x13d)](_0x5edf09,!0x1);if(_0xed6cb3){const _0x459198=this[_0x588af9(0x142)](_0xed6cb3),_0x2afba0=_0x40c561(_0x588af9(0x16d),_0x459198,_0x48dd61);if(_0x2afba0)return[_0x2afba0,_0x588af9(0x171)];this[_0x588af9(0x155)][_0x588af9(0x152)][_0x588af9(0x183)](_0x459198);}const _0x352e02=this[_0x588af9(0x159)](_0x5edf09,!0x1);if(_0x352e02){const _0x11a2df=this[_0x588af9(0x142)](_0x352e02),_0x5f56d0=_0x40c561(_0x588af9(0x16d),_0x11a2df,_0x48dd61);if(_0x5f56d0)return[_0x5f56d0,_0x588af9(0x145)];this[_0x588af9(0x155)][_0x588af9(0x152)][_0x588af9(0x183)](_0x11a2df);}return _0x425445?_0x5edf09[_0x588af9(0x141)]?this[_0x588af9(0x184)](_0x5edf09,_0x48dd61):[_0x48dd61[_0x588af9(0x144)][_0x48dd61[_0x588af9(0x144)][_0x588af9(0x16f)]-0x1],_0x588af9(0x171)]:[_0x48dd61[_0x588af9(0x144)][0x0],_0x588af9(0x145)];}[_0x30912c(0x184)](_0x4b5faf,_0x71a92){const _0xd58f6d=_0x30912c,_0x492526=[],_0x5467e5=this[_0xd58f6d(0x13d)](_0x4b5faf,!0x0);if(_0x5467e5){const _0xedb943=this[_0xd58f6d(0x142)](_0x5467e5),_0x371b35=_0x40c561(_0xd58f6d(0x16d),_0xedb943,_0x71a92);_0x371b35&&_0x492526[_0xd58f6d(0x183)]([_0x371b35,_0xd58f6d(0x171)]);}const _0x4ae4dd=this[_0xd58f6d(0x159)](_0x4b5faf,!0x0);if(_0x4ae4dd){const _0x3d7cc7=this[_0xd58f6d(0x142)](_0x4ae4dd),_0x3a0e5f=_0x40c561(_0xd58f6d(0x16d),_0x3d7cc7,_0x71a92);_0x3a0e5f&&_0x492526[_0xd58f6d(0x183)]([_0x3a0e5f,_0xd58f6d(0x145)]);}if(_0x492526[_0xd58f6d(0x16f)]>0x1)return _0x25a067(_0x492526[0x0][0x0])<=_0x25a067(_0x492526[0x1][0x0])?_0x492526[0x0]:_0x492526[0x1];return 0x1===_0x492526[_0xd58f6d(0x16f)]?_0x492526[0x0]:[_0x71a92[_0xd58f6d(0x16e)],_0xd58f6d(0x171)];}[_0x30912c(0x159)](_0x2aaeec,_0x521c96){const _0x4841db=_0x30912c;let _0x137457=_0x2aaeec[_0x4841db(0x141)],_0x4ee8c1=null,_0x5d77d6=!0x1;for(;_0x137457;){if(_0x4cf7db(_0x137457)){if(this[_0x4841db(0x153)](_0x137457)&&(_0x4ee8c1=_0x137457),this[_0x4841db(0x167)](_0x137457)&&_0x521c96&&!_0x5d77d6){_0x5d77d6=!0x0,_0x137457=_0x137457[_0x4841db(0x141)];continue;}break;}const _0x59bca9=_0x1ed839(_0x137457,_0x4841db(0x16d));if(_0x59bca9&&_0x4841db(0x178)!==_0x59bca9&&this[_0x4841db(0x16b)][_0x4841db(0x172)](_0x59bca9)){_0x4ee8c1=_0x137457;break;}_0x137457=_0x137457[_0x4841db(0x141)];}return _0x4ee8c1;}[_0x30912c(0x13d)](_0x5c8649,_0x2f70da){const _0x4aa887=_0x30912c;let _0xf1d6a9=_0x5c8649[_0x4aa887(0x15a)],_0x81530d=null,_0x1111ae=!0x1;for(;_0xf1d6a9;){if(_0x4cf7db(_0xf1d6a9)){if(this[_0x4aa887(0x153)](_0xf1d6a9)&&(_0x81530d=_0xf1d6a9),this[_0x4aa887(0x167)](_0xf1d6a9)&&_0x2f70da&&!_0x1111ae){_0x1111ae=!0x0,_0xf1d6a9=_0xf1d6a9[_0x4aa887(0x15a)];continue;}break;}const _0x3cab27=_0x1ed839(_0xf1d6a9,_0x4aa887(0x16d));if(_0x3cab27&&_0x4aa887(0x178)!==_0x3cab27&&this[_0x4aa887(0x16b)][_0x4aa887(0x172)](_0x3cab27)){_0x81530d=_0xf1d6a9;break;}_0xf1d6a9=_0xf1d6a9[_0x4aa887(0x15a)];}return _0x81530d;}[_0x30912c(0x180)](_0x2b0cc2){const _0x4c7465=_0x30912c;_0x2b4c3e(_0x2b0cc2)&&_0x1abbea(_0x4c7465(0x16d),null,_0x2b0cc2)[_0x4c7465(0x16a)](_0x169cd9=>{const _0xd4d45a=_0x4c7465;if(this[_0xd4d45a(0x176)](_0x169cd9)&&!this[_0xd4d45a(0x163)](_0x169cd9)){const _0x326501=_0x1ed839(_0x169cd9,_0xd4d45a(0x16d));_0x472831(_0x169cd9,_0xd4d45a(0x158),_0x326501),_0x472831(_0x169cd9,_0xd4d45a(0x16d),null);}});}[_0x30912c(0x142)](_0x440653){const _0x1f21c6=_0x30912c;if(!_0x440653)return null;if(_0x2b4c3e(_0x440653))return _0x1ed839(_0x440653,_0x1f21c6(0x16d));if(_0x4cf7db(_0x440653)){const _0x3ce40e=_0x1c1e86(_0x440653)[_0x1f21c6(0x174)](/removed[\s*-]data-id="([^"]+)"/);if(_0x3ce40e&&_0x3ce40e[0x1])return _0x3ce40e[0x1];}return null;}[_0x30912c(0x13e)](_0x37b302){const _0x10cae6=_0x30912c;if(_0x4cf7db(_0x37b302)){const _0x42ca4=_0x1c1e86(_0x37b302)[_0x10cae6(0x174)](/removed[\s*-]data-id="([^"]+)"/);_0x42ca4&&_0x42ca4[0x1]&&this[_0x10cae6(0x155)][_0x10cae6(0x169)][_0x10cae6(0x183)](_0x42ca4[0x1]);}}[_0x30912c(0x148)](_0x5cb146){const _0x34f7b2=_0x30912c;return this[_0x34f7b2(0x176)](_0x5cb146)?_0x1ed839(_0x5cb146,_0x34f7b2(0x16d)):this[_0x34f7b2(0x17b)]();}[_0x30912c(0x179)](_0xd3dab1){const _0x35c7d7=_0x30912c;_0x1b1c66(_0xd3dab1)[_0x35c7d7(0x17d)](_0xa503ec=>this[_0x35c7d7(0x153)](_0xa503ec)||this[_0x35c7d7(0x167)](_0xa503ec))[_0x35c7d7(0x16a)](_0x2604ea=>{_0x13efba(_0x2604ea);});}[_0x30912c(0x15c)](_0x3ca4fb){const _0x19aaae=_0x30912c,_0x5ba146=_0x3ca4fb[_0x19aaae(0x144)],_0x1c1f7f=_0x5ba146[_0x5ba146[_0x19aaae(0x16f)]-0x1];_0x1c1f7f&&_0x2b4c3e(_0x1c1f7f)&&_0x472831(_0x1c1f7f,_0x19aaae(0x160),_0x19aaae(0x164));}[_0x30912c(0x143)](_0x5136e0,_0x18265c){const _0x3c4c90=_0x30912c,_0x3005a2=_0x40c561(_0x3c4c90(0x160),_0x3c4c90(0x164),_0x5136e0);if(!_0x3005a2)return;const _0x2a2cc0=_0x203b30(_0x3005a2)[_0x3c4c90(0x15f)](0x0,-0x1),_0x2728da=_0x2a2cc0[_0x3c4c90(0x16f)];let _0x49f193=_0x3005a2;if(_0x2728da>_0x18265c){let _0x3153fe=_0x2728da,_0x19d371=null;for(;_0x3153fe>_0x18265c&&_0x3153fe>=0x0;)_0x3153fe--,_0x19d371=_0x2a2cc0[_0x3153fe];_0x19d371&&(_0x49f193=_0x19d371,_0x472831(_0x3005a2,_0x3c4c90(0x160),null),_0x472831(_0x19d371,_0x3c4c90(0x160),_0x3c4c90(0x164)));}else{if(_0x2728da<_0x18265c){let _0x3a5e74=_0x2728da,_0x21ac5=_0x3005a2;for(;_0x3a5e74<_0x18265c;){const _0x20d7a4=_0x21ac5[_0x3c4c90(0x144)][_0x3c4c90(0x17d)](_0x5bd8f5=>_0x2b4c3e(_0x5bd8f5));if(0x0===_0x20d7a4[_0x3c4c90(0x16f)])break;_0x3a5e74++,_0x21ac5=_0x20d7a4[_0x20d7a4[_0x3c4c90(0x16f)]-0x1];}_0x21ac5&&(_0x49f193=_0x21ac5,_0x472831(_0x3005a2,_0x3c4c90(0x160),null),_0x472831(_0x21ac5,_0x3c4c90(0x160),_0x3c4c90(0x164)));}}let _0x362c22=_0x49f193;for(;_0x362c22;){for(;_0x362c22[_0x3c4c90(0x141)];)_0x362c22=_0x362c22[_0x3c4c90(0x141)],_0x2b4c3e(_0x362c22)&&_0x472831(_0x362c22,_0x3c4c90(0x160),_0x3c4c90(0x164));_0x362c22=_0x362c22[_0x3c4c90(0x17c)];}}[_0x30912c(0x154)](_0x177120){const _0x29aebb=_0x30912c;return Boolean(_0x29aebb(0x178)===_0x1ed839(_0x177120,_0x29aebb(0x16d)));}[_0x30912c(0x176)](_0x49bb01){const _0x35280b=_0x30912c;return Boolean((_0x1ed839(_0x49bb01,_0x35280b(0x16d))||'')[_0x35280b(0x16f)]>0x0&&_0x35280b(0x178)!==_0x1ed839(_0x49bb01,_0x35280b(0x16d)));}[_0x30912c(0x153)](_0x11b06b){const _0x585d98=_0x30912c;return!!_0x11b06b&&Boolean(_0x4cf7db(_0x11b06b)&&_0x1c1e86(_0x11b06b)[_0x585d98(0x174)](/removed[\s*-]data-id="[^"]+"/));}[_0x30912c(0x163)](_0x2d4230){const _0xcfa55a=_0x30912c;let _0x1d1187=_0x2d4230[_0xcfa55a(0x17c)];for(;_0x1d1187;){if(_0x1ed839(_0x1d1187,_0xcfa55a(0x158)))return!0x0;_0x1d1187=_0x1d1187[_0xcfa55a(0x17c)];}return!0x1;}[_0x30912c(0x167)](_0x48336d){const _0x5af44b=_0x30912c;return Boolean(_0x4cf7db(_0x48336d)&&_0x1c1e86(_0x48336d)[_0x5af44b(0x174)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5e59(_0x761330,_0x276ced){const _0x467252=_0x4672();return _0x5e59=function(_0x5e596d,_0x5e76a2){_0x5e596d=_0x5e596d-0x144;let _0x160070=_0x467252[_0x5e596d];return _0x160070;},_0x5e59(_0x761330,_0x276ced);}const _0x1111ff=_0x5e59;function _0x4672(){const _0x5c50c9=['310ZuKJyn','_m2html','_parseHTML','1134bcDwLJ','384442QYmvmA','1827GAFVhG','19302WwVgUr','parse','replace','parseAndNormalizeHTML','44684kKTZoa','988309VVMTkY','23482830DejiZK','convertMarkdownToHTML','<dummy>','1621932IZckSZ','21336WxjRKs','children','</dummy>'];_0x4672=function(){return _0x5c50c9;};return _0x4672();}(function(_0x1664b1,_0xc7ff45){const _0x4bbfab=_0x5e59,_0x32a060=_0x1664b1();while(!![]){try{const _0x4f3601=-parseInt(_0x4bbfab(0x156))/0x1+parseInt(_0x4bbfab(0x14f))/0x2+-parseInt(_0x4bbfab(0x147))/0x3+-parseInt(_0x4bbfab(0x155))/0x4*(-parseInt(_0x4bbfab(0x14b))/0x5)+parseInt(_0x4bbfab(0x151))/0x6*(-parseInt(_0x4bbfab(0x150))/0x7)+-parseInt(_0x4bbfab(0x148))/0x8*(parseInt(_0x4bbfab(0x14e))/0x9)+parseInt(_0x4bbfab(0x144))/0xa;if(_0x4f3601===_0xc7ff45)break;else _0x32a060['push'](_0x32a060['shift']());}catch(_0x6332cf){_0x32a060['push'](_0x32a060['shift']());}}}(_0x4672,0x8105a));import{ObservableMixin as _0xd287d4}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x4d986f}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x4fab20}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0xd287d4(){[_0x1111ff(0x14c)];constructor(){const _0x40711f=_0x1111ff;super(),this[_0x40711f(0x14c)]=new _0x4d986f();}[_0x1111ff(0x145)](_0x7ecfca){const _0x4f46f4=_0x1111ff,_0x3cf88a=this[_0x4f46f4(0x14c)][_0x4f46f4(0x152)](_0x7ecfca);return this[_0x4f46f4(0x154)](_0x3cf88a);}[_0x1111ff(0x154)](_0x550df4){const _0x34f141=_0x1111ff;return this[_0x34f141(0x14d)](_0x550df4);}[_0x1111ff(0x14d)](_0x283ef2){const _0x294e0a=_0x1111ff,_0x4bc47e=_0x283ef2[_0x294e0a(0x153)](/^\t+/gm,'\x20')[_0x294e0a(0x153)](/\n*/g,'')[_0x294e0a(0x153)](/\s+/g,'\x20')[_0x294e0a(0x153)](/<[^>]*?$/g,''),_0x25b2a5=_0x4fab20(_0x294e0a(0x146)+_0x4bc47e+_0x294e0a(0x14a));return _0x25b2a5[_0x294e0a(0x149)]=_0x25b2a5[_0x294e0a(0x149)][0x0][_0x294e0a(0x149)],_0x25b2a5;}}
23
+ const _0x459400=_0x1854;function _0x1854(_0x140a8c,_0x515093){const _0x4f3320=_0x4f33();return _0x1854=function(_0x185487,_0xbad042){_0x185487=_0x185487-0xe5;let _0x1be320=_0x4f3320[_0x185487];return _0x1be320;},_0x1854(_0x140a8c,_0x515093);}(function(_0x226e0e,_0x4268a1){const _0x130a7a=_0x1854,_0x3345c7=_0x226e0e();while(!![]){try{const _0x5676b5=parseInt(_0x130a7a(0xea))/0x1*(parseInt(_0x130a7a(0xf4))/0x2)+parseInt(_0x130a7a(0xed))/0x3*(parseInt(_0x130a7a(0xec))/0x4)+parseInt(_0x130a7a(0xf0))/0x5*(parseInt(_0x130a7a(0xeb))/0x6)+-parseInt(_0x130a7a(0xe6))/0x7*(parseInt(_0x130a7a(0xef))/0x8)+parseInt(_0x130a7a(0xf6))/0x9+-parseInt(_0x130a7a(0xf5))/0xa+parseInt(_0x130a7a(0xf8))/0xb;if(_0x5676b5===_0x4268a1)break;else _0x3345c7['push'](_0x3345c7['shift']());}catch(_0x5315e6){_0x3345c7['push'](_0x3345c7['shift']());}}}(_0x4f33,0xc379f));function _0x4f33(){const _0x45d7b5=['children','parse','1IDXcPQ','532464vbrzRY','52dnkAIH','25386VSKKDf','replace','5909776nUCSLz','10PhsZSs','<dummy>','_m2html','parseAndNormalizeHTML','399832rnyCQe','472670flzqRg','4168197KjvoQj','</dummy>','6997287dFWBSy','_parseHTML','7AVQpLT','convertMarkdownToHTML'];_0x4f33=function(){return _0x45d7b5;};return _0x4f33();}import{ObservableMixin as _0x184a67}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x23fd25}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x1b89ed}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x184a67(){[_0x459400(0xf2)];constructor(){const _0x55ebbb=_0x459400;super(),this[_0x55ebbb(0xf2)]=new _0x23fd25();}[_0x459400(0xe7)](_0x1f598c){const _0x45db30=_0x459400,_0x38d865=this[_0x45db30(0xf2)][_0x45db30(0xe9)](_0x1f598c);return this[_0x45db30(0xf3)](_0x38d865);}[_0x459400(0xf3)](_0xb21ee8){const _0x8bc929=_0x459400;return this[_0x8bc929(0xe5)](_0xb21ee8);}[_0x459400(0xe5)](_0x35963a){const _0x309b76=_0x459400,_0x2131b5=_0x35963a[_0x309b76(0xee)](/^\t+/gm,'\x20')[_0x309b76(0xee)](/\n*/g,'')[_0x309b76(0xee)](/\s+/g,'\x20')[_0x309b76(0xee)](/<[^>]*?$/g,''),_0xe1eda6=_0x1b89ed(_0x309b76(0xf1)+_0x2131b5+_0x309b76(0xf7));return _0xe1eda6[_0x309b76(0xe8)]=_0xe1eda6[_0x309b76(0xe8)][0x0][_0x309b76(0xe8)],_0xe1eda6;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x1e6a33,_0x1a6aca){var _0x13ed93=_0x5e6d,_0x5600f3=_0x1e6a33();while(!![]){try{var _0x5c1b70=-parseInt(_0x13ed93(0x96))/0x1*(-parseInt(_0x13ed93(0x95))/0x2)+parseInt(_0x13ed93(0x90))/0x3*(parseInt(_0x13ed93(0x91))/0x4)+parseInt(_0x13ed93(0x94))/0x5+-parseInt(_0x13ed93(0x9b))/0x6*(parseInt(_0x13ed93(0x8e))/0x7)+parseInt(_0x13ed93(0x92))/0x8*(-parseInt(_0x13ed93(0x9a))/0x9)+-parseInt(_0x13ed93(0x9d))/0xa+parseInt(_0x13ed93(0x8f))/0xb;if(_0x5c1b70===_0x1a6aca)break;else _0x5600f3['push'](_0x5600f3['shift']());}catch(_0x4d15c8){_0x5600f3['push'](_0x5600f3['shift']());}}}(_0x1a8a,0x969ea));function _0x1a8a(){var _0xfb4aba=['div','3984780ddIela','44828DLTtgT','226237BODsqO','3FdHLYk','2305436loVQTx','184WZKzXN','ck-ai-disclaimer__content','5512165KZJWxk','1579876MtGScX','1pHxCae','AI_DISCLAIMER_TEXT','ck-ai-disclaimer','setTemplate','433899bgecUB','342icMyMl'];_0x1a8a=function(){return _0xfb4aba;};return _0x1a8a();}import{View as _0x2f346d}from'ckeditor5/src/ui.js';function _0x5e6d(_0x288b3d,_0x435ff8){var _0x1a8a0f=_0x1a8a();return _0x5e6d=function(_0x5e6daf,_0xf0545c){_0x5e6daf=_0x5e6daf-0x8e;var _0x3b7fe9=_0x1a8a0f[_0x5e6daf];return _0x3b7fe9;},_0x5e6d(_0x288b3d,_0x435ff8);}import{getTranslation as _0x4847b1}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x2f346d{constructor(_0x2ccb66){var _0x26a1b9=_0x5e6d;super(_0x2ccb66),this[_0x26a1b9(0x99)]({'tag':_0x26a1b9(0x9c),'attributes':{'class':['ck',_0x26a1b9(0x98)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x26a1b9(0x93)]},'children':[{'text':_0x4847b1(_0x2ccb66,_0x26a1b9(0x97))}]}]});}}
23
+ (function(_0x33120f,_0x4a4f36){var _0x74679a=_0x3ca6,_0x52307d=_0x33120f();while(!![]){try{var _0x563998=-parseInt(_0x74679a(0x12f))/0x1*(parseInt(_0x74679a(0x12c))/0x2)+parseInt(_0x74679a(0x123))/0x3+parseInt(_0x74679a(0x12e))/0x4*(parseInt(_0x74679a(0x124))/0x5)+parseInt(_0x74679a(0x130))/0x6+-parseInt(_0x74679a(0x12a))/0x7+-parseInt(_0x74679a(0x125))/0x8+parseInt(_0x74679a(0x128))/0x9;if(_0x563998===_0x4a4f36)break;else _0x52307d['push'](_0x52307d['shift']());}catch(_0x297510){_0x52307d['push'](_0x52307d['shift']());}}}(_0x27d9,0x26592));function _0x27d9(){var _0x37bce8=['2523312hNageZ','setTemplate','1176182jpuxFF','ck-ai-disclaimer__content','10yHOaZR','ck-ai-disclaimer','96348uPHBtC','43539roYFGx','801048lDZWsT','175563hwsYpj','15xBEZDq','14904AlenIY','div','AI_DISCLAIMER_TEXT'];_0x27d9=function(){return _0x37bce8;};return _0x27d9();}function _0x3ca6(_0x1fcabd,_0x5d42ac){var _0x27d982=_0x27d9();return _0x3ca6=function(_0x3ca629,_0x5ceb45){_0x3ca629=_0x3ca629-0x123;var _0x3c80a7=_0x27d982[_0x3ca629];return _0x3c80a7;},_0x3ca6(_0x1fcabd,_0x5d42ac);}import{View as _0x4181fc}from'ckeditor5/src/ui.js';import{getTranslation as _0x5293c4}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x4181fc{constructor(_0x18266e){var _0x32da0b=_0x3ca6;super(_0x18266e),this[_0x32da0b(0x129)]({'tag':_0x32da0b(0x126),'attributes':{'class':['ck',_0x32da0b(0x12d)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x32da0b(0x12b)]},'children':[{'text':_0x5293c4(_0x18266e,_0x32da0b(0x127))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2e27(_0xa54c2c,_0x4f8d9f){const _0x1bceaa=_0x1bce();return _0x2e27=function(_0x2e2700,_0x4f3660){_0x2e2700=_0x2e2700-0xa6;let _0x4318d5=_0x1bceaa[_0x2e2700];return _0x4318d5;},_0x2e27(_0xa54c2c,_0x4f8d9f);}function _0x1bce(){const _0x590497=['_createSkeletonItems','right','map','58fgxBgS','4641976MoQRtL','height','30965572cDtbmM','12ZUIijr','4945695TGauDG','14448JShrII','ck-ai-skeleton','div','2814PKmtAT','150px','fill','128px','42069SEjfxj','center','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','width','250px',';\x20height:\x20','44px','setTemplate','1607577aCvvkq','72px','88px','24px','left','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','ck-ai-skeleton__item','attributes','10749430KnjRjD','width:\x20','9OZHZKJ','40px','140px','class','tag','align','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','4rDNktK','100%'];_0x1bce=function(){return _0x590497;};return _0x1bce();}const _0x519cf6=_0x2e27;(function(_0x25c66b,_0x294ba9){const _0x5a770e=_0x2e27,_0x59ec2b=_0x25c66b();while(!![]){try{const _0x47494d=parseInt(_0x5a770e(0xc6))/0x1*(-parseInt(_0x5a770e(0xb9))/0x2)+-parseInt(_0x5a770e(0xce))/0x3*(-parseInt(_0x5a770e(0xb4))/0x4)+-parseInt(_0x5a770e(0xbe))/0x5+-parseInt(_0x5a770e(0xbf))/0x6*(parseInt(_0x5a770e(0xc2))/0x7)+-parseInt(_0x5a770e(0xba))/0x8+-parseInt(_0x5a770e(0xad))/0x9*(-parseInt(_0x5a770e(0xab))/0xa)+parseInt(_0x5a770e(0xbc))/0xb*(parseInt(_0x5a770e(0xbd))/0xc);if(_0x47494d===_0x294ba9)break;else _0x59ec2b['push'](_0x59ec2b['shift']());}catch(_0x1a6f89){_0x59ec2b['push'](_0x59ec2b['shift']());}}}(_0x1bce,0xa3323));import{View as _0x3d970c}from'ckeditor5/src/ui.js';import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x3d970c{constructor(_0x54483c,_0xf9ea7a){const _0x3eeb46=_0x2e27;super(_0x54483c),this[_0x3eeb46(0xcd)]({'tag':_0x3eeb46(0xc1),'attributes':{'class':['ck',_0x3eeb46(0xc0)]},'children':this[_0x3eeb46(0xb6)](_0xf9ea7a)});}[_0x519cf6(0xb6)](_0x72f9c3){const _0x14144b=_0x519cf6,_0x1781f6=['ck',_0x14144b(0xa9)];return _0x72f9c3[_0x14144b(0xb8)](_0x64167e=>{const _0x4546ab=_0x14144b;let _0x5cac3a='';switch(_0x64167e[_0x4546ab(0xaa)][_0x4546ab(0xb2)]){case _0x4546ab(0xb7):_0x5cac3a=_0x4546ab(0xa8);break;case _0x4546ab(0xc7):_0x5cac3a=_0x4546ab(0xb3);break;case _0x4546ab(0xa7):_0x5cac3a=_0x4546ab(0xc8);}return{'tag':_0x64167e[_0x4546ab(0xb1)],'attributes':{'class':[..._0x1781f6,_0x64167e[_0x4546ab(0xaa)][_0x4546ab(0xb0)]?_0x64167e[_0x4546ab(0xaa)][_0x4546ab(0xb0)]:''],'style':_0x4546ab(0xac)+_0x64167e[_0x4546ab(0xaa)][_0x4546ab(0xc9)]+_0x4546ab(0xcb)+_0x64167e[_0x4546ab(0xaa)][_0x4546ab(0xbb)]+';'+_0x5cac3a}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x519cf6(0xc1),'attributes':{'width':_0x519cf6(0xb5),'height':_0x519cf6(0xcf),'align':_0x519cf6(0xb7)}},{'tag':_0x519cf6(0xc1),'attributes':{'width':_0x519cf6(0xca),'height':_0x519cf6(0xae),'align':_0x519cf6(0xb7)}},{'tag':_0x519cf6(0xc1),'attributes':{'width':_0x519cf6(0xb5),'height':_0x519cf6(0xd0),'align':_0x519cf6(0xb7)}},{'tag':_0x519cf6(0xc1),'attributes':{'width':_0x519cf6(0xc3),'height':_0x519cf6(0xae),'align':_0x519cf6(0xb7)}},{'tag':_0x519cf6(0xc1),'attributes':{'width':_0x519cf6(0xb5),'height':_0x519cf6(0xaf),'align':_0x519cf6(0xb7)}},{'tag':_0x519cf6(0xc1),'attributes':{'width':_0x519cf6(0xca),'height':_0x519cf6(0xae),'align':_0x519cf6(0xb7)}},{'tag':_0x519cf6(0xc1),'attributes':{'width':_0x519cf6(0xb5),'height':_0x519cf6(0xd0),'align':_0x519cf6(0xb7)}}],'aiHistory':ta(0x5,_0x519cf6(0xb5),_0x519cf6(0xcc),_0x519cf6(0xb7)),'aiChatResources':ta(0x8,_0x519cf6(0xb5),_0x519cf6(0xa6),_0x519cf6(0xb7)),'aiReviewChecks':[{'tag':_0x519cf6(0xc1),'attributes':{'width':_0x519cf6(0xc5),'height':_0x519cf6(0xa6),'align':_0x519cf6(0xa7)}},{'tag':_0x519cf6(0xc1),'attributes':{'width':_0x519cf6(0xb5),'height':_0x519cf6(0xa6),'align':_0x519cf6(0xa7)}},{'tag':_0x519cf6(0xc1),'attributes':{'width':_0x519cf6(0xc5),'height':_0x519cf6(0xa6),'align':_0x519cf6(0xa7)}}]};function ta(_0x10a42e,_0x2d0676,_0x36dde1,_0x184761){const _0x5c93fd=_0x519cf6;return new Array(_0x10a42e)[_0x5c93fd(0xc4)](null)[_0x5c93fd(0xb8)](()=>({'tag':_0x5c93fd(0xc1),'attributes':{'width':_0x2d0676,'height':_0x36dde1,'align':_0x184761}}));}
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}}));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x5349d2,_0x35d81a){const _0x56595b=_0x3c6b,_0x2ae648=_0x5349d2();while(!![]){try{const _0x3c0a52=parseInt(_0x56595b(0x1e0))/0x1+parseInt(_0x56595b(0x1de))/0x2+parseInt(_0x56595b(0x1e1))/0x3*(-parseInt(_0x56595b(0x1e6))/0x4)+-parseInt(_0x56595b(0x1e7))/0x5+parseInt(_0x56595b(0x1e3))/0x6+parseInt(_0x56595b(0x1e5))/0x7+-parseInt(_0x56595b(0x1e2))/0x8;if(_0x3c0a52===_0x35d81a)break;else _0x2ae648['push'](_0x2ae648['shift']());}catch(_0x1561b2){_0x2ae648['push'](_0x2ae648['shift']());}}}(_0x14d3,0xb8d52));import{SpinnerView as _0x5eebcc}from'ckeditor5/src/ui.js';function _0x3c6b(_0x5b94b6,_0x15a307){const _0x14d3ba=_0x14d3();return _0x3c6b=function(_0x3c6b07,_0x89df2c){_0x3c6b07=_0x3c6b07-0x1de;let _0x33b297=_0x14d3ba[_0x3c6b07];return _0x33b297;},_0x3c6b(_0x5b94b6,_0x15a307);}import'../../../theme/common/aispinner.css';export class AISpinnerView extends _0x5eebcc{constructor(_0x5b4381=void 0x0){const _0x4cff0b=_0x3c6b;super();const _0xec3d33=_0x5b4381?_0x4cff0b(0x1df)+_0x5b4381:'';this[_0x4cff0b(0x1e8)]({'tag':_0x4cff0b(0x1e9),'attributes':{'class':[_0x4cff0b(0x1e4),_0xec3d33]}});}}function _0x14d3(){const _0x1c2a0b=['4383284pFLCzq','6615115esjqPf','extendTemplate','span','2896744cPIBgN','ck-ai-spinner_','1189044jdWLvA','3khlYtt','11237136wAZizl','7398630sjaEyu','ck-ai-spinner','4970273SItBsY'];_0x14d3=function(){return _0x1c2a0b;};return _0x14d3();}
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]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5284(_0x318571,_0x28398d){const _0x1508ad=_0x1508();return _0x5284=function(_0x52844e,_0x81f5cb){_0x52844e=_0x52844e-0x18d;let _0x4e654f=_0x1508ad[_0x52844e];return _0x4e654f;},_0x5284(_0x318571,_0x28398d);}const _0x530f49=_0x5284;(function(_0x226630,_0x39654f){const _0x5105db=_0x5284,_0x5399e4=_0x226630();while(!![]){try{const _0x1c6e72=-parseInt(_0x5105db(0x191))/0x1+parseInt(_0x5105db(0x1a0))/0x2*(-parseInt(_0x5105db(0x1bb))/0x3)+-parseInt(_0x5105db(0x1a2))/0x4*(-parseInt(_0x5105db(0x1bf))/0x5)+parseInt(_0x5105db(0x198))/0x6+parseInt(_0x5105db(0x1b8))/0x7*(-parseInt(_0x5105db(0x18d))/0x8)+parseInt(_0x5105db(0x1b2))/0x9+-parseInt(_0x5105db(0x196))/0xa;if(_0x1c6e72===_0x39654f)break;else _0x5399e4['push'](_0x5399e4['shift']());}catch(_0x2f6067){_0x5399e4['push'](_0x5399e4['shift']());}}}(_0x1508,0x9f46a));import{ButtonView as _0x2c1980,IconView as _0x255492,ToolbarView as _0x1327ec}from'ckeditor5/src/ui.js';import{IconCheck as _0x4402ff,IconCopy as _0x156148,IconShowChangesOff as _0x2c9565,IconShowChangesOn as _0x3d24c9,IconThumbDown as _0x261d40,IconThumbUp as _0x2dc791}from'@ckeditor/ckeditor5-icons';function _0x1508(){const _0x343774=['ck-ai-button-tertiary','_config','length','icon','_setupShowChangesButton','likeButton','toggleShowChanges','items','class','bind','fire','locale','AI_MINI_TOOLBAR_COPY','AI_MINI_TOOLBAR_DISLIKE','6746436QjoPAr','full','ck-ai-mini-toolbar-copy-button__check-mark','add','set','like','567ljIdef','ck-ai-mini-toolbar-copy-button','children','3AVPHmn','dislike','toggleShowChangesEnabled','_setupCopyButton','11625MjdTLy','ck-ai-mini-toolbar\x20ck-hidden','showDislike','showCopy','46152UiCeZs','execute','ck-ai-mini-toolbar','AI_SUGGESTION_BUTTON_SHOW_CHANGES','3198yQmSro','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','AI_MINI_TOOLBAR_LIKE','showLike','_setupRatingButtons','2055340OCDQqn','customView','4875414fHHEhp','showChangesButton','isEnabled','dislikeButton','extendTemplate','addMany','isShowChangesOn','showChanges','1857866nDZUha','copyButton','1196PRPQtM','isOn'];_0x1508=function(){return _0x343774;};return _0x1508();}import{getTranslation as _0x1ed107}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';export class AIMiniToolbarView extends _0x1327ec{[_0x530f49(0x1a1)];[_0x530f49(0x1a9)];[_0x530f49(0x19b)];[_0x530f49(0x199)];[_0x530f49(0x1a5)];constructor(_0x155a66,_0x461a3f={}){const _0x408f47=_0x530f49;super(_0x155a66),this[_0x408f47(0x1b6)](_0x408f47(0x19a),!0x0),this[_0x408f47(0x1b6)](_0x408f47(0x19e),!0x1),this[_0x408f47(0x1a5)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x461a3f};const _0x4817fe=!(this[_0x408f47(0x1a5)][_0x408f47(0x1c2)]||this[_0x408f47(0x1a5)][_0x408f47(0x19f)]||this[_0x408f47(0x1a5)][_0x408f47(0x194)]||this[_0x408f47(0x1a5)][_0x408f47(0x1c1)]||this[_0x408f47(0x1a5)][_0x408f47(0x197)]?.[_0x408f47(0x1a6)]);this[_0x408f47(0x1ac)]=_0x4817fe?_0x408f47(0x1c0):_0x408f47(0x18f),this[_0x408f47(0x1a5)][_0x408f47(0x1c2)]&&(this[_0x408f47(0x1be)](),this[_0x408f47(0x1ab)][_0x408f47(0x1b5)](this[_0x408f47(0x1a1)])),this[_0x408f47(0x1a5)][_0x408f47(0x19f)]&&(this[_0x408f47(0x1a8)](),this[_0x408f47(0x1ab)][_0x408f47(0x1b5)](this[_0x408f47(0x199)])),this[_0x408f47(0x195)](),this[_0x408f47(0x1a5)][_0x408f47(0x194)]&&this[_0x408f47(0x1ab)][_0x408f47(0x1b5)](this[_0x408f47(0x1a9)]),this[_0x408f47(0x1a5)][_0x408f47(0x1c1)]&&this[_0x408f47(0x1ab)][_0x408f47(0x1b5)](this[_0x408f47(0x19b)]),this[_0x408f47(0x1a5)][_0x408f47(0x197)]&&this[_0x408f47(0x1ab)][_0x408f47(0x19d)](this[_0x408f47(0x1a5)][_0x408f47(0x197)]);}[_0x530f49(0x1bd)](_0xd43996){const _0x1f5cba=_0x530f49;this[_0x1f5cba(0x199)][_0x1f5cba(0x19a)]=_0xd43996;}[_0x530f49(0x195)](){const _0x3dca24=_0x530f49;this[_0x3dca24(0x1a9)]=new _0x2c1980(this[_0x3dca24(0x1af)]),this[_0x3dca24(0x1a9)][_0x3dca24(0x1b6)]({'icon':_0x2dc791,'label':_0x1ed107(this[_0x3dca24(0x1af)],_0x3dca24(0x193)),'tooltip':!0x0}),this[_0x3dca24(0x1a9)][_0x3dca24(0x1ad)](_0x3dca24(0x19a))['to'](this),this[_0x3dca24(0x1a9)]['on'](_0x3dca24(0x18e),()=>{const _0x4b3b3d=_0x3dca24;this[_0x4b3b3d(0x1ae)](_0x4b3b3d(0x1b7));}),this[_0x3dca24(0x19b)]=new _0x2c1980(this[_0x3dca24(0x1af)]),this[_0x3dca24(0x19b)][_0x3dca24(0x1b6)]({'icon':_0x261d40,'label':_0x1ed107(this[_0x3dca24(0x1af)],_0x3dca24(0x1b1)),'tooltip':!0x0}),this[_0x3dca24(0x19b)][_0x3dca24(0x1ad)](_0x3dca24(0x19a))['to'](this),this[_0x3dca24(0x19b)]['on'](_0x3dca24(0x18e),()=>{const _0x290d66=_0x3dca24;this[_0x290d66(0x1ae)](_0x290d66(0x1bc));});}[_0x530f49(0x1be)](){const _0x179bbf=_0x530f49;this[_0x179bbf(0x1a1)]=new _0x2c1980(this[_0x179bbf(0x1af)]),this[_0x179bbf(0x1a1)][_0x179bbf(0x1b6)]({'icon':_0x156148,'label':_0x1ed107(this[_0x179bbf(0x1af)],_0x179bbf(0x1b0)),'class':_0x179bbf(0x1b9),'tooltip':!0x0}),this[_0x179bbf(0x1a1)][_0x179bbf(0x1ad)](_0x179bbf(0x19a))['to'](this);const _0x1ed17e=new _0x255492();_0x1ed17e[_0x179bbf(0x1b6)]({'content':_0x4402ff}),_0x1ed17e[_0x179bbf(0x19c)]({'attributes':{'class':[_0x179bbf(0x1b4)]}}),this[_0x179bbf(0x1a1)]['on'](_0x179bbf(0x18e),()=>{const _0x4ae34d=_0x179bbf;this[_0x4ae34d(0x1a1)][_0x4ae34d(0x1ac)]=_0x4ae34d(0x192),setTimeout(()=>{const _0x2ed0ae=_0x4ae34d;this[_0x2ed0ae(0x1a1)][_0x2ed0ae(0x1ac)]=_0x2ed0ae(0x1b9);},0x7d0);}),this[_0x179bbf(0x1a1)][_0x179bbf(0x1ba)][_0x179bbf(0x1b5)](_0x1ed17e);}[_0x530f49(0x1a8)](){const _0xc4a0ac=_0x530f49;this[_0xc4a0ac(0x199)]=new _0x2c1980(this[_0xc4a0ac(0x1af)]),this[_0xc4a0ac(0x199)][_0xc4a0ac(0x1b6)]({'icon':_0x2c9565,'label':_0x1ed107(this[_0xc4a0ac(0x1af)],_0xc4a0ac(0x190)),'withText':_0xc4a0ac(0x1b3)==this[_0xc4a0ac(0x1a5)][_0xc4a0ac(0x19f)],'tooltip':_0xc4a0ac(0x1b3)!=this[_0xc4a0ac(0x1a5)][_0xc4a0ac(0x19f)],'class':_0xc4a0ac(0x1a4)}),this[_0xc4a0ac(0x199)][_0xc4a0ac(0x1ad)](_0xc4a0ac(0x1a3))['to'](this,_0xc4a0ac(0x19e)),this[_0xc4a0ac(0x199)][_0xc4a0ac(0x1ad)](_0xc4a0ac(0x19a))['to'](this),this[_0xc4a0ac(0x199)][_0xc4a0ac(0x1ad)](_0xc4a0ac(0x1a7))['to'](this,_0xc4a0ac(0x19e),_0x495318=>_0x495318?_0x3d24c9:_0x2c9565),this[_0xc4a0ac(0x199)]['on'](_0xc4a0ac(0x18e),()=>{const _0x4d4400=_0xc4a0ac;this[_0x4d4400(0x1ae)](_0x4d4400(0x1aa));});}}
23
+ const _0x3263e7=_0x4504;function _0x4507(){const _0x331643=['execute','showChangesButton','toggleShowChanges','_setupShowChangesButton','_config','ck-ai-mini-toolbar','length','3860228QhLaGz','isOn','AI_MINI_TOOLBAR_LIKE','AI_MINI_TOOLBAR_COPY','class','extendTemplate','children','fire','toggleShowChangesEnabled','full','483861CAmNPV','addMany','ck-ai-mini-toolbar-copy-button__check-mark','AI_MINI_TOOLBAR_DISLIKE','ck-ai-mini-toolbar-copy-button','719710gvyjAu','ck-ai-button-tertiary','like','_setupRatingButtons','showDislike','_setupCopyButton','AI_SUGGESTION_BUTTON_SHOW_CHANGES','likeButton','showCopy','316428DXBzhj','isShowChangesOn','showLike','18KtCkUr','add','isEnabled','dislike','copyButton','customView','icon','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','showChanges','5MFgUzh','604988WlLQjW','set','items','locale','ck-ai-mini-toolbar\x20ck-hidden','16JAXsZr','122867hIwdoe','4066086zcsXDj','dislikeButton','bind'];_0x4507=function(){return _0x331643;};return _0x4507();}(function(_0x3c7770,_0x29b2c0){const _0x557712=_0x4504,_0x210cbf=_0x3c7770();while(!![]){try{const _0x10ddf4=parseInt(_0x557712(0x99))/0x1+parseInt(_0x557712(0x93))/0x2+parseInt(_0x557712(0xbc))/0x3+-parseInt(_0x557712(0xa4))/0x4*(-parseInt(_0x557712(0x92))/0x5)+-parseInt(_0x557712(0x9a))/0x6+-parseInt(_0x557712(0xae))/0x7*(parseInt(_0x557712(0x98))/0x8)+parseInt(_0x557712(0x89))/0x9*(-parseInt(_0x557712(0xb3))/0xa);if(_0x10ddf4===_0x29b2c0)break;else _0x210cbf['push'](_0x210cbf['shift']());}catch(_0x3225e6){_0x210cbf['push'](_0x210cbf['shift']());}}}(_0x4507,0x82dd9));import{ButtonView as _0x4e4654,IconView as _0x3973b5,ToolbarView as _0x17af44}from'ckeditor5/src/ui.js';import{IconCheck as _0x5e5f99,IconCopy as _0x49f3da,IconShowChangesOff as _0x3fcdb6,IconShowChangesOn as _0x50ca04,IconThumbDown as _0x2048d5,IconThumbUp as _0x1c1d8c}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x29a7f}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';function _0x4504(_0x2f5147,_0x2d4650){const _0x4507b9=_0x4507();return _0x4504=function(_0x450421,_0x31a12f){_0x450421=_0x450421-0x89;let _0x41ec69=_0x4507b9[_0x450421];return _0x41ec69;},_0x4504(_0x2f5147,_0x2d4650);}export class AIMiniToolbarView extends _0x17af44{[_0x3263e7(0x8d)];[_0x3263e7(0xba)];[_0x3263e7(0x9b)];[_0x3263e7(0x9e)];[_0x3263e7(0xa1)];constructor(_0x40d966,_0x11a496={}){const _0x1e3ee1=_0x3263e7;super(_0x40d966),this[_0x1e3ee1(0x94)](_0x1e3ee1(0x8b),!0x0),this[_0x1e3ee1(0x94)](_0x1e3ee1(0xbd),!0x1),this[_0x1e3ee1(0xa1)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x11a496};const _0x31d49d=!(this[_0x1e3ee1(0xa1)][_0x1e3ee1(0xbb)]||this[_0x1e3ee1(0xa1)][_0x1e3ee1(0x91)]||this[_0x1e3ee1(0xa1)][_0x1e3ee1(0xbe)]||this[_0x1e3ee1(0xa1)][_0x1e3ee1(0xb7)]||this[_0x1e3ee1(0xa1)][_0x1e3ee1(0x8e)]?.[_0x1e3ee1(0xa3)]);this[_0x1e3ee1(0xa8)]=_0x31d49d?_0x1e3ee1(0x97):_0x1e3ee1(0xa2),this[_0x1e3ee1(0xa1)][_0x1e3ee1(0xbb)]&&(this[_0x1e3ee1(0xb8)](),this[_0x1e3ee1(0x95)][_0x1e3ee1(0x8a)](this[_0x1e3ee1(0x8d)])),this[_0x1e3ee1(0xa1)][_0x1e3ee1(0x91)]&&(this[_0x1e3ee1(0xa0)](),this[_0x1e3ee1(0x95)][_0x1e3ee1(0x8a)](this[_0x1e3ee1(0x9e)])),this[_0x1e3ee1(0xb6)](),this[_0x1e3ee1(0xa1)][_0x1e3ee1(0xbe)]&&this[_0x1e3ee1(0x95)][_0x1e3ee1(0x8a)](this[_0x1e3ee1(0xba)]),this[_0x1e3ee1(0xa1)][_0x1e3ee1(0xb7)]&&this[_0x1e3ee1(0x95)][_0x1e3ee1(0x8a)](this[_0x1e3ee1(0x9b)]),this[_0x1e3ee1(0xa1)][_0x1e3ee1(0x8e)]&&this[_0x1e3ee1(0x95)][_0x1e3ee1(0xaf)](this[_0x1e3ee1(0xa1)][_0x1e3ee1(0x8e)]);}[_0x3263e7(0xac)](_0x1393c0){const _0x1c0534=_0x3263e7;this[_0x1c0534(0x9e)][_0x1c0534(0x8b)]=_0x1393c0;}[_0x3263e7(0xb6)](){const _0x10d4b8=_0x3263e7;this[_0x10d4b8(0xba)]=new _0x4e4654(this[_0x10d4b8(0x96)]),this[_0x10d4b8(0xba)][_0x10d4b8(0x94)]({'icon':_0x1c1d8c,'label':_0x29a7f(this[_0x10d4b8(0x96)],_0x10d4b8(0xa6)),'tooltip':!0x0}),this[_0x10d4b8(0xba)][_0x10d4b8(0x9c)](_0x10d4b8(0x8b))['to'](this),this[_0x10d4b8(0xba)]['on'](_0x10d4b8(0x9d),()=>{const _0x328f7a=_0x10d4b8;this[_0x328f7a(0xab)](_0x328f7a(0xb5));}),this[_0x10d4b8(0x9b)]=new _0x4e4654(this[_0x10d4b8(0x96)]),this[_0x10d4b8(0x9b)][_0x10d4b8(0x94)]({'icon':_0x2048d5,'label':_0x29a7f(this[_0x10d4b8(0x96)],_0x10d4b8(0xb1)),'tooltip':!0x0}),this[_0x10d4b8(0x9b)][_0x10d4b8(0x9c)](_0x10d4b8(0x8b))['to'](this),this[_0x10d4b8(0x9b)]['on'](_0x10d4b8(0x9d),()=>{const _0x40c683=_0x10d4b8;this[_0x40c683(0xab)](_0x40c683(0x8c));});}[_0x3263e7(0xb8)](){const _0x4ad293=_0x3263e7;this[_0x4ad293(0x8d)]=new _0x4e4654(this[_0x4ad293(0x96)]),this[_0x4ad293(0x8d)][_0x4ad293(0x94)]({'icon':_0x49f3da,'label':_0x29a7f(this[_0x4ad293(0x96)],_0x4ad293(0xa7)),'class':_0x4ad293(0xb2),'tooltip':!0x0}),this[_0x4ad293(0x8d)][_0x4ad293(0x9c)](_0x4ad293(0x8b))['to'](this);const _0x4fb85a=new _0x3973b5();_0x4fb85a[_0x4ad293(0x94)]({'content':_0x5e5f99}),_0x4fb85a[_0x4ad293(0xa9)]({'attributes':{'class':[_0x4ad293(0xb0)]}}),this[_0x4ad293(0x8d)]['on'](_0x4ad293(0x9d),()=>{const _0x8c07b2=_0x4ad293;this[_0x8c07b2(0x8d)][_0x8c07b2(0xa8)]=_0x8c07b2(0x90),setTimeout(()=>{const _0x1083a9=_0x8c07b2;this[_0x1083a9(0x8d)][_0x1083a9(0xa8)]=_0x1083a9(0xb2);},0x7d0);}),this[_0x4ad293(0x8d)][_0x4ad293(0xaa)][_0x4ad293(0x8a)](_0x4fb85a);}[_0x3263e7(0xa0)](){const _0x546eb9=_0x3263e7;this[_0x546eb9(0x9e)]=new _0x4e4654(this[_0x546eb9(0x96)]),this[_0x546eb9(0x9e)][_0x546eb9(0x94)]({'icon':_0x3fcdb6,'label':_0x29a7f(this[_0x546eb9(0x96)],_0x546eb9(0xb9)),'withText':_0x546eb9(0xad)==this[_0x546eb9(0xa1)][_0x546eb9(0x91)],'tooltip':_0x546eb9(0xad)!=this[_0x546eb9(0xa1)][_0x546eb9(0x91)],'class':_0x546eb9(0xb4)}),this[_0x546eb9(0x9e)][_0x546eb9(0x9c)](_0x546eb9(0xa5))['to'](this,_0x546eb9(0xbd)),this[_0x546eb9(0x9e)][_0x546eb9(0x9c)](_0x546eb9(0x8b))['to'](this),this[_0x546eb9(0x9e)][_0x546eb9(0x9c)](_0x546eb9(0x8f))['to'](this,_0x546eb9(0xbd),_0x1f2a0b=>_0x1f2a0b?_0x50ca04:_0x3fcdb6),this[_0x546eb9(0x9e)]['on'](_0x546eb9(0x9d),()=>{const _0x2d6707=_0x546eb9;this[_0x2d6707(0xab)](_0x2d6707(0x9f));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4276a6=_0x15c0;(function(_0x5d94ff,_0xd228b1){const _0x495ffc=_0x15c0,_0x5deccb=_0x5d94ff();while(!![]){try{const _0x1cc645=-parseInt(_0x495ffc(0xed))/0x1+parseInt(_0x495ffc(0xe8))/0x2*(parseInt(_0x495ffc(0xc6))/0x3)+parseInt(_0x495ffc(0xd5))/0x4+parseInt(_0x495ffc(0xf0))/0x5*(-parseInt(_0x495ffc(0xc7))/0x6)+-parseInt(_0x495ffc(0xcf))/0x7*(parseInt(_0x495ffc(0xdc))/0x8)+-parseInt(_0x495ffc(0xeb))/0x9+parseInt(_0x495ffc(0x10b))/0xa*(parseInt(_0x495ffc(0x101))/0xb);if(_0x1cc645===_0xd228b1)break;else _0x5deccb['push'](_0x5deccb['shift']());}catch(_0x6456bd){_0x5deccb['push'](_0x5deccb['shift']());}}}(_0x11c8,0xd2e10));import{View as _0x3976fd}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x91139d}from'./aisuggestioncontentpartview.js';function _0x11c8(){const _0x1718c9=['AI_SUGGESTION_NO_PARTS_WARNING','33suRAFC','empty-parts-warning','pending','updatePartState','div','hasNonEmptyParts','updateContentParts','updateSources','setContent','_children','5821820bAUEyz','setTemplate','findIndex','4119IBoijH','18nGPNaM','state','from','markAsDone','isVisible','isTrackChangesOn','forEach','addSource','4610865fTsspj','partsCount','locale','createCollection','ck-ai-suggestion__body','updateContent','5760768rPXEFP','isActive','bodyCollection','hasPendingParts','partDefinition','availableActions','_actionsView','8HNkFrC','setPartActive','updateVisibility','_switchButtonLabelsPlurality','_cachedContentParts','warning','_areActionsDisabled','index','getPartView','_showUnchangedParts','push','some','1430sRHWFz','abort','find','6470451TtwcbC','_emptyPartsWarningView','1164205ttmRFI','_availableActions','delegate','1271390XqVMyU','areActionsDisabled','filter','_updateContentPartsPromiseQueue','AI_SUGGESTION_EMPTY_PART_WARNING','ck-ai-suggestion__body__content-parts','set','hasChanges','enqueue','_sourcesView','addEventListener','queueEmptyPromise','length','bind','add','isEnabled'];_0x11c8=function(){return _0x1718c9;};return _0x11c8();}function _0x15c0(_0x32a2c4,_0x537194){const _0x11c8d8=_0x11c8();return _0x15c0=function(_0x15c00e,_0x5eaef1){_0x15c00e=_0x15c00e-0xc5;let _0x2eeebb=_0x11c8d8[_0x15c00e];return _0x2eeebb;},_0x15c0(_0x32a2c4,_0x537194);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x570a58}from'../../utils/eventnames.js';import{PromiseQueue as _0x3cb642}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x50254a}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x52b26a}from'../../utils/common-translations.js';import{AIChatFeedSuggestionItemActionsView as _0x593ac3}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x1f4ce2}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x3976fd{[_0x4276a6(0xdb)];[_0x4276a6(0xf9)];[_0x4276a6(0x10a)];[_0x4276a6(0xe2)];[_0x4276a6(0xe5)];[_0x4276a6(0xf3)];[_0x4276a6(0xec)];[_0x4276a6(0xee)];[_0x4276a6(0xe0)]=[];constructor(_0x3be772,_0x5a3a5e){const _0x47c4e7=_0x4276a6;super(_0x3be772);const {areActionsDisabled:_0x3b3a93,showUnchangedParts:_0x4061c2,availableActions:_0x5501ff}=_0x5a3a5e;this[_0x47c4e7(0xe2)]=_0x3b3a93,this[_0x47c4e7(0xe5)]=_0x4061c2,this[_0x47c4e7(0xee)]=_0x5501ff,this[_0x47c4e7(0xf6)](_0x47c4e7(0xd8),!0x1),this[_0x47c4e7(0xf6)](_0x47c4e7(0xcc),!0x1),this[_0x47c4e7(0x10a)]=this[_0x47c4e7(0xd2)](),this[_0x47c4e7(0xf3)]=new _0x3cb642(),this[_0x47c4e7(0xec)]=new _0x50254a({'id':_0x47c4e7(0x102),'initialContent':_0x52b26a(_0x3be772,_0x47c4e7(0xf4)),'level':_0x47c4e7(0xe1)}),this[_0x47c4e7(0xec)][_0x47c4e7(0xcb)]=!0x1,this[_0x47c4e7(0xdb)]=new _0x593ac3(_0x3be772,_0x5a3a5e[_0x47c4e7(0xda)],this[_0x47c4e7(0xe2)]),this[_0x47c4e7(0xdb)][_0x47c4e7(0xfd)](_0x47c4e7(0xcc))['to'](this),this[_0x47c4e7(0xf9)]=new _0x1f4ce2(this[_0x47c4e7(0xd1)],_0x5a3a5e[_0x47c4e7(0xd7)]),_0x5a3a5e[_0x47c4e7(0xf1)]?this[_0x47c4e7(0xdb)][_0x47c4e7(0xff)]=!0x1:this[_0x47c4e7(0xdb)][_0x47c4e7(0xfd)](_0x47c4e7(0xff))['to'](this,_0x47c4e7(0xd8)),this[_0x47c4e7(0xdb)][_0x47c4e7(0xef)](..._0x570a58)['to'](this),this[_0x47c4e7(0x10c)]({'tag':_0x47c4e7(0x105),'attributes':{'class':['ck',_0x47c4e7(0xd3)]},'children':[{'tag':_0x47c4e7(0x105),'attributes':{'class':['ck',_0x47c4e7(0xf5)]},'children':this[_0x47c4e7(0x10a)]},this[_0x47c4e7(0xec)],this[_0x47c4e7(0xdb)],this[_0x47c4e7(0xf9)]]});}get[_0x4276a6(0xd0)](){const _0x58153c=_0x4276a6;return this[_0x58153c(0x10a)][_0x58153c(0xfc)];}async[_0x4276a6(0x107)]({parts:_0xe772f5,renderingStrategy:_0x162f1a,abortSignal:_0x1ac9c1}){const _0x447add=_0x4276a6;this[_0x447add(0x10a)][_0x447add(0xfc)]?_0xe772f5[_0x447add(0xcd)](_0x58b010=>{const _0x29752d=_0x447add,_0x457a28=this[_0x29752d(0xe0)][_0x29752d(0xc5)](_0x29493f=>_0x29493f[_0x29752d(0xe3)]==_0x58b010[_0x29752d(0xe3)]);-0x1===_0x457a28?this[_0x29752d(0xe0)][_0x29752d(0xe6)](_0x58b010):this[_0x29752d(0xe0)][_0x457a28]=_0x58b010;}):this[_0x447add(0xe0)]=_0xe772f5;const _0x236109=this[_0x447add(0xe5)]?_0xe772f5:_0xe772f5[_0x447add(0xf2)](_0x431c6b=>_0x431c6b[_0x447add(0xf7)]);this[_0x447add(0xdb)][_0x447add(0xdf)](_0x236109[_0x447add(0xfc)]>0x1);for(const _0x4def79 of _0x236109)this[_0x447add(0xf3)][_0x447add(0xf8)](async _0xa33273=>{const _0x35fb3d=_0x447add;let _0x1f4640=this[_0x35fb3d(0xe4)](_0x4def79[_0x35fb3d(0xe3)]);_0x1f4640||(_0x1f4640=new _0x91139d(this[_0x35fb3d(0xd1)],{'part':_0x4def79,'uiIndex':this[_0x35fb3d(0x10a)][_0x35fb3d(0xfc)]+0x1,'areActionsDisabled':this[_0x35fb3d(0xe2)],'availableActions':this[_0x35fb3d(0xee)]}),_0x1f4640[_0x35fb3d(0xef)](..._0x570a58)['to'](this),this[_0x35fb3d(0x10a)][_0x35fb3d(0xfe)](_0x1f4640),this[_0x35fb3d(0xd8)]=!0x0),await _0x1f4640[_0x35fb3d(0xd4)]({'part':_0x4def79,'renderingStrategy':_0x162f1a,'showUnchangedParts':this[_0x35fb3d(0xe5)],'abortSignal':_0xa33273}),_0x1f4640[_0x35fb3d(0xca)]();});return _0x1ac9c1?.[_0x447add(0xfa)](_0x447add(0xe9),()=>{const _0x30b65c=_0x447add;this[_0x30b65c(0xf3)][_0x30b65c(0xe9)]();}),this[_0x447add(0xf3)][_0x447add(0xfb)];}[_0x4276a6(0x104)](_0x47ae6e,_0x137ef8){const _0xce84c9=_0x4276a6,_0x275456=this[_0xce84c9(0xe4)](_0x47ae6e);_0x275456&&(_0x275456[_0xce84c9(0xc8)]=_0x137ef8),this[_0xce84c9(0xd8)]=_0xce84c9(0x103)==_0x137ef8||Array[_0xce84c9(0xc9)](this[_0xce84c9(0x10a)])[_0xce84c9(0xe7)](_0x49694d=>_0xce84c9(0x103)==_0x49694d[_0xce84c9(0xc8)]);}[_0x4276a6(0xdd)](_0x7791bf,_0x52d13c){const _0x10fb95=_0x4276a6;if(!0x1===_0x7791bf){for(const _0xadc032 of this[_0x10fb95(0x10a)])_0xadc032[_0x10fb95(0xd6)]=!0x1;}else{const _0x209007=this[_0x10fb95(0xe4)](_0x7791bf);_0x209007&&(_0x209007[_0x10fb95(0xd6)]=_0x52d13c);}}[_0x4276a6(0x108)](_0x14c914){const _0x5974a8=_0x4276a6;_0x14c914[_0x5974a8(0xcd)](_0x4a4fb6=>this[_0x5974a8(0xf9)][_0x5974a8(0xce)](_0x4a4fb6)),this[_0x5974a8(0xf9)][_0x5974a8(0xcb)]=!0x0;}[_0x4276a6(0xe4)](_0x4407f7){const _0x3dc602=_0x4276a6;return this[_0x3dc602(0x10a)][_0x3dc602(0xea)](_0x49ddf6=>_0x49ddf6[_0x3dc602(0xd9)][_0x3dc602(0xe3)]==_0x4407f7)??null;}[_0x4276a6(0xca)](){const _0x249872=_0x4276a6;if(!this[_0x249872(0xe5)]){const _0x5462d8=!this[_0x249872(0xe0)][_0x249872(0xea)](({hasChanges:_0x24aba5})=>_0x24aba5),_0x2a94f5=!!this[_0x249872(0xe0)][_0x249872(0xea)](({hasChanges:_0x23cdb1})=>!_0x23cdb1);this[_0x249872(0xec)][_0x249872(0xcb)]=0x0==this[_0x249872(0x10a)][_0x249872(0xfc)]||_0x2a94f5,_0x5462d8?this[_0x249872(0xec)][_0x249872(0x109)](_0x52b26a(this[_0x249872(0xd1)],_0x249872(0x100))):this[_0x249872(0xec)][_0x249872(0x109)](_0x52b26a(this[_0x249872(0xd1)],_0x249872(0xf4)));}this[_0x249872(0x10a)][_0x249872(0xcd)](_0xc51524=>_0xc51524[_0x249872(0xca)]()),this[_0x249872(0xdb)][_0x249872(0xde)](this[_0x249872(0x106)]);}get[_0x4276a6(0x106)](){const _0x38efb7=_0x4276a6;return this[_0x38efb7(0x10a)][_0x38efb7(0xf2)](_0x2eac81=>_0x2eac81[_0x38efb7(0xd9)][_0x38efb7(0xf7)])[_0x38efb7(0xfc)]>0x0;}}
23
+ const _0x2a14a7=_0x2448;(function(_0x2a39db,_0x1a1b0c){const _0x4e4443=_0x2448,_0x3c427f=_0x2a39db();while(!![]){try{const _0x118dc8=parseInt(_0x4e4443(0x197))/0x1+-parseInt(_0x4e4443(0x176))/0x2*(parseInt(_0x4e4443(0x186))/0x3)+-parseInt(_0x4e4443(0x19a))/0x4*(-parseInt(_0x4e4443(0x1b4))/0x5)+parseInt(_0x4e4443(0x1a5))/0x6*(parseInt(_0x4e4443(0x189))/0x7)+-parseInt(_0x4e4443(0x191))/0x8*(parseInt(_0x4e4443(0x196))/0x9)+-parseInt(_0x4e4443(0x175))/0xa+parseInt(_0x4e4443(0x19f))/0xb;if(_0x118dc8===_0x1a1b0c)break;else _0x3c427f['push'](_0x3c427f['shift']());}catch(_0x3fef53){_0x3c427f['push'](_0x3c427f['shift']());}}}(_0x22ba,0x7e69a));function _0x22ba(){const _0x15fa2b=['3701384jSczdn','partsCount','_areActionsDisabled','updateContent','isVisible','9APLtJg','932878LyCLkE','queueEmptyPromise','findIndex','609624uNbAei','length','some','_availableActions','state','1955866zrcxcj','warning','_emptyPartsWarningView','availableActions','find','_sourcesView','5772QcErUK','isEnabled','_actionsView','index','enqueue','setContent','push','_updateContentPartsPromiseQueue','isTrackChangesOn','ck-ai-suggestion__body__content-parts','partDefinition','AI_SUGGESTION_NO_PARTS_WARNING','areActionsDisabled','_children','hasPendingParts','15rVvxXO','addSource','locale','setTemplate','updateVisibility','pending','addEventListener','updateSources','hasNonEmptyParts','7957810JJfWBn','48hEnHNI','bind','_switchButtonLabelsPlurality','forEach','updatePartState','setPartActive','AI_SUGGESTION_EMPTY_PART_WARNING','delegate','filter','markAsDone','ck-ai-suggestion__body','createCollection','_showUnchangedParts','set','hasChanges','add','77493JlcrnD','from','updateContentParts','6027eRaTPc','bodyCollection','empty-parts-warning','isActive','div','_cachedContentParts','getPartView','abort'];_0x22ba=function(){return _0x15fa2b;};return _0x22ba();}import{View as _0xab8bf7}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x3fc753}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x22674d}from'../../utils/eventnames.js';function _0x2448(_0x57f42d,_0xc696ea){const _0x22ba3b=_0x22ba();return _0x2448=function(_0x244808,_0x48c890){_0x244808=_0x244808-0x16d;let _0xaee63d=_0x22ba3b[_0x244808];return _0xaee63d;},_0x2448(_0x57f42d,_0xc696ea);}import{PromiseQueue as _0x1ea3ef}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x2e79f7}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x4490da}from'../../utils/common-translations.js';import{AIChatFeedSuggestionItemActionsView as _0x5cfb43}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x4142b7}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0xab8bf7{[_0x2a14a7(0x1a7)];[_0x2a14a7(0x1a4)];[_0x2a14a7(0x1b2)];[_0x2a14a7(0x193)];[_0x2a14a7(0x182)];[_0x2a14a7(0x1ac)];[_0x2a14a7(0x1a1)];[_0x2a14a7(0x19d)];[_0x2a14a7(0x18e)]=[];constructor(_0x284f3c,_0x1dd2d1){const _0xcb3c2b=_0x2a14a7;super(_0x284f3c);const {areActionsDisabled:_0x90e38f,showUnchangedParts:_0x38d355,availableActions:_0x44ec5f}=_0x1dd2d1;this[_0xcb3c2b(0x193)]=_0x90e38f,this[_0xcb3c2b(0x182)]=_0x38d355,this[_0xcb3c2b(0x19d)]=_0x44ec5f,this[_0xcb3c2b(0x183)](_0xcb3c2b(0x1b3),!0x1),this[_0xcb3c2b(0x183)](_0xcb3c2b(0x1ad),!0x1),this[_0xcb3c2b(0x1b2)]=this[_0xcb3c2b(0x181)](),this[_0xcb3c2b(0x1ac)]=new _0x1ea3ef(),this[_0xcb3c2b(0x1a1)]=new _0x2e79f7({'id':_0xcb3c2b(0x18b),'initialContent':_0x4490da(_0x284f3c,_0xcb3c2b(0x17c)),'level':_0xcb3c2b(0x1a0)}),this[_0xcb3c2b(0x1a1)][_0xcb3c2b(0x195)]=!0x1,this[_0xcb3c2b(0x1a7)]=new _0x5cfb43(_0x284f3c,_0x1dd2d1[_0xcb3c2b(0x1a2)],this[_0xcb3c2b(0x193)]),this[_0xcb3c2b(0x1a7)][_0xcb3c2b(0x177)](_0xcb3c2b(0x1ad))['to'](this),this[_0xcb3c2b(0x1a4)]=new _0x4142b7(this[_0xcb3c2b(0x16e)],_0x1dd2d1[_0xcb3c2b(0x18a)]),_0x1dd2d1[_0xcb3c2b(0x1b1)]?this[_0xcb3c2b(0x1a7)][_0xcb3c2b(0x1a6)]=!0x1:this[_0xcb3c2b(0x1a7)][_0xcb3c2b(0x177)](_0xcb3c2b(0x1a6))['to'](this,_0xcb3c2b(0x1b3)),this[_0xcb3c2b(0x1a7)][_0xcb3c2b(0x17d)](..._0x22674d)['to'](this),this[_0xcb3c2b(0x16f)]({'tag':_0xcb3c2b(0x18d),'attributes':{'class':['ck',_0xcb3c2b(0x180)]},'children':[{'tag':_0xcb3c2b(0x18d),'attributes':{'class':['ck',_0xcb3c2b(0x1ae)]},'children':this[_0xcb3c2b(0x1b2)]},this[_0xcb3c2b(0x1a1)],this[_0xcb3c2b(0x1a7)],this[_0xcb3c2b(0x1a4)]]});}get[_0x2a14a7(0x192)](){const _0x489669=_0x2a14a7;return this[_0x489669(0x1b2)][_0x489669(0x19b)];}async[_0x2a14a7(0x188)]({parts:_0x58a5f2,renderingStrategy:_0x443d70,abortSignal:_0x571915}){const _0x214527=_0x2a14a7;this[_0x214527(0x1b2)][_0x214527(0x19b)]?_0x58a5f2[_0x214527(0x179)](_0xd8a03b=>{const _0x5edaa2=_0x214527,_0x2b852d=this[_0x5edaa2(0x18e)][_0x5edaa2(0x199)](_0x71c589=>_0x71c589[_0x5edaa2(0x1a8)]==_0xd8a03b[_0x5edaa2(0x1a8)]);-0x1===_0x2b852d?this[_0x5edaa2(0x18e)][_0x5edaa2(0x1ab)](_0xd8a03b):this[_0x5edaa2(0x18e)][_0x2b852d]=_0xd8a03b;}):this[_0x214527(0x18e)]=_0x58a5f2;const _0x4ae764=this[_0x214527(0x182)]?_0x58a5f2:_0x58a5f2[_0x214527(0x17e)](_0xc0afcb=>_0xc0afcb[_0x214527(0x184)]);this[_0x214527(0x1a7)][_0x214527(0x178)](_0x4ae764[_0x214527(0x19b)]>0x1);for(const _0x35841e of _0x4ae764)this[_0x214527(0x1ac)][_0x214527(0x1a9)](async _0xdd7a58=>{const _0x5d4950=_0x214527;let _0x558948=this[_0x5d4950(0x18f)](_0x35841e[_0x5d4950(0x1a8)]);_0x558948||(_0x558948=new _0x3fc753(this[_0x5d4950(0x16e)],{'part':_0x35841e,'uiIndex':this[_0x5d4950(0x1b2)][_0x5d4950(0x19b)]+0x1,'areActionsDisabled':this[_0x5d4950(0x193)],'availableActions':this[_0x5d4950(0x19d)]}),_0x558948[_0x5d4950(0x17d)](..._0x22674d)['to'](this),this[_0x5d4950(0x1b2)][_0x5d4950(0x185)](_0x558948),this[_0x5d4950(0x1b3)]=!0x0),await _0x558948[_0x5d4950(0x194)]({'part':_0x35841e,'renderingStrategy':_0x443d70,'showUnchangedParts':this[_0x5d4950(0x182)],'abortSignal':_0xdd7a58}),_0x558948[_0x5d4950(0x17f)]();});return _0x571915?.[_0x214527(0x172)](_0x214527(0x190),()=>{const _0x318578=_0x214527;this[_0x318578(0x1ac)][_0x318578(0x190)]();}),this[_0x214527(0x1ac)][_0x214527(0x198)];}[_0x2a14a7(0x17a)](_0x154954,_0xa2a561){const _0x5339b5=_0x2a14a7,_0x4c3c8a=this[_0x5339b5(0x18f)](_0x154954);_0x4c3c8a&&(_0x4c3c8a[_0x5339b5(0x19e)]=_0xa2a561),this[_0x5339b5(0x1b3)]=_0x5339b5(0x171)==_0xa2a561||Array[_0x5339b5(0x187)](this[_0x5339b5(0x1b2)])[_0x5339b5(0x19c)](_0x3f034c=>_0x5339b5(0x171)==_0x3f034c[_0x5339b5(0x19e)]);}[_0x2a14a7(0x17b)](_0x53e4d3,_0x345c6a){const _0x1896d6=_0x2a14a7;if(!0x1===_0x53e4d3){for(const _0x10af9a of this[_0x1896d6(0x1b2)])_0x10af9a[_0x1896d6(0x18c)]=!0x1;}else{const _0x21d033=this[_0x1896d6(0x18f)](_0x53e4d3);_0x21d033&&(_0x21d033[_0x1896d6(0x18c)]=_0x345c6a);}}[_0x2a14a7(0x173)](_0x57b733){const _0x33c015=_0x2a14a7;_0x57b733[_0x33c015(0x179)](_0x345fff=>this[_0x33c015(0x1a4)][_0x33c015(0x16d)](_0x345fff)),this[_0x33c015(0x1a4)][_0x33c015(0x195)]=!0x0;}[_0x2a14a7(0x18f)](_0xa581ca){const _0x50322a=_0x2a14a7;return this[_0x50322a(0x1b2)][_0x50322a(0x1a3)](_0x31c3ab=>_0x31c3ab[_0x50322a(0x1af)][_0x50322a(0x1a8)]==_0xa581ca)??null;}[_0x2a14a7(0x17f)](){const _0x5f0238=_0x2a14a7;if(!this[_0x5f0238(0x182)]){const _0x18c9c6=!this[_0x5f0238(0x18e)][_0x5f0238(0x1a3)](({hasChanges:_0x4f9883})=>_0x4f9883),_0x2cfdfb=!!this[_0x5f0238(0x18e)][_0x5f0238(0x1a3)](({hasChanges:_0x6908aa})=>!_0x6908aa);this[_0x5f0238(0x1a1)][_0x5f0238(0x195)]=0x0==this[_0x5f0238(0x1b2)][_0x5f0238(0x19b)]||_0x2cfdfb,_0x18c9c6?this[_0x5f0238(0x1a1)][_0x5f0238(0x1aa)](_0x4490da(this[_0x5f0238(0x16e)],_0x5f0238(0x1b0))):this[_0x5f0238(0x1a1)][_0x5f0238(0x1aa)](_0x4490da(this[_0x5f0238(0x16e)],_0x5f0238(0x17c)));}this[_0x5f0238(0x1b2)][_0x5f0238(0x179)](_0x5a47a7=>_0x5a47a7[_0x5f0238(0x17f)]()),this[_0x5f0238(0x1a7)][_0x5f0238(0x170)](this[_0x5f0238(0x174)]);}get[_0x2a14a7(0x174)](){const _0x5454b4=_0x2a14a7;return this[_0x5454b4(0x1b2)][_0x5454b4(0x17e)](_0x369f79=>_0x369f79[_0x5454b4(0x1af)][_0x5454b4(0x184)])[_0x5454b4(0x19b)]>0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c7cb2=_0x2357;function _0x237d(){const _0x594dc8=['16feToXE','20XwIURV','div','ck-rounded-corners','bodyView','158359QjerAv','2628gcuPZp','set','setTemplate','1784740dlcaAd','headerView','isShowChangesToggleVisible','14btOgVo','updateContentParts','isOn','updateSources','123882VnoSMo','fire','children','toggleShowChanges','1940thrvdP','5258477ptrrcT','isTrackChangesOn','updateContent','10097658HeHlkx','areChangesVisible','toggleSuggestionDisplayMode','4789335HiETdM','createCollection','add','markAsDone','ck-ai-suggestion__container','delegate','hasNonEmptyParts','bind','39789WzxOvu'];_0x237d=function(){return _0x594dc8;};return _0x237d();}(function(_0x4990d6,_0xa3c698){const _0x14f1bf=_0x2357,_0xa9355b=_0x4990d6();while(!![]){try{const _0x589f79=-parseInt(_0x14f1bf(0x176))/0x1*(-parseInt(_0x14f1bf(0x17d))/0x2)+parseInt(_0x14f1bf(0x168))/0x3+-parseInt(_0x14f1bf(0x17a))/0x4*(-parseInt(_0x14f1bf(0x172))/0x5)+-parseInt(_0x14f1bf(0x165))/0x6+-parseInt(_0x14f1bf(0x162))/0x7*(-parseInt(_0x14f1bf(0x171))/0x8)+parseInt(_0x14f1bf(0x170))/0x9*(-parseInt(_0x14f1bf(0x185))/0xa)+-parseInt(_0x14f1bf(0x181))/0xb*(parseInt(_0x14f1bf(0x177))/0xc);if(_0x589f79===_0xa3c698)break;else _0xa9355b['push'](_0xa9355b['shift']());}catch(_0x30c075){_0xa9355b['push'](_0xa9355b['shift']());}}}(_0x237d,0xf0825));import{View as _0x549300}from'ckeditor5/src/ui.js';import{AISuggestionHeaderView as _0x299e78}from'./aisuggestionheaderview.js';function _0x2357(_0x3c183b,_0x2cb062){const _0x237dc8=_0x237d();return _0x2357=function(_0x23571f,_0x42e4bd){_0x23571f=_0x23571f-0x162;let _0x342727=_0x237dc8[_0x23571f];return _0x342727;},_0x2357(_0x3c183b,_0x2cb062);}import{AISuggestionBodyView as _0x2f00cc}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2ab08e}from'../../utils/eventnames.js';import'../../../../theme/aichat/aisuggestioncontainer.css';export class AISuggestionContainerView extends _0x549300{[_0x1c7cb2(0x175)];[_0x1c7cb2(0x183)];[_0x1c7cb2(0x17b)];constructor(_0x10cd05,_0x5f8bc3,_0x353309){const _0x26c650=_0x1c7cb2;super(_0x10cd05);const {showDiff:_0x27e73a,areActionsDisabled:_0x23efcd,showUnchangedParts:_0x19358d,availableActions:_0x13cc2b}=_0x5f8bc3;this[_0x26c650(0x178)](_0x26c650(0x163),!0x1),this[_0x26c650(0x178)](_0x26c650(0x166),!0x1),this[_0x26c650(0x183)]=this[_0x26c650(0x169)](),this[_0x26c650(0x17b)]=new _0x299e78(_0x10cd05,{'showDiff':_0x27e73a}),this[_0x26c650(0x17b)]['on'](_0x26c650(0x184),(_0x23527e,_0x6bd6bc)=>{const _0x524a32=_0x26c650;this[_0x524a32(0x166)]=_0x6bd6bc[_0x524a32(0x17f)],this[_0x524a32(0x182)](_0x524a32(0x167),{'showDiff':_0x6bd6bc[_0x524a32(0x17f)]});}),this[_0x26c650(0x183)][_0x26c650(0x16a)](this[_0x26c650(0x17b)]),this[_0x26c650(0x175)]=new _0x2f00cc(_0x10cd05,{'areActionsDisabled':_0x23efcd,'showUnchangedParts':!!_0x19358d,'availableActions':_0x13cc2b,'bodyCollection':_0x353309}),this[_0x26c650(0x175)][_0x26c650(0x16d)](..._0x2ab08e)['to'](this),this[_0x26c650(0x175)][_0x26c650(0x16f)](_0x26c650(0x163))['to'](this),this[_0x26c650(0x183)][_0x26c650(0x16a)](this[_0x26c650(0x175)]),this[_0x26c650(0x179)]({'tag':_0x26c650(0x173),'attributes':{'class':['ck',_0x26c650(0x16c),_0x26c650(0x174)]},'children':this[_0x26c650(0x183)]});}async[_0x1c7cb2(0x164)](_0x343a20){const _0xa23a9=_0x1c7cb2;await this[_0xa23a9(0x175)][_0xa23a9(0x17e)](_0x343a20);}[_0x1c7cb2(0x180)](_0x1ec2f7){const _0x4677cd=_0x1c7cb2;this[_0x4677cd(0x175)][_0x4677cd(0x180)](_0x1ec2f7);}[_0x1c7cb2(0x16b)](){const _0x4eb128=_0x1c7cb2;this[_0x4eb128(0x175)][_0x4eb128(0x16b)](),this[_0x4eb128(0x17b)]&&(this[_0x4eb128(0x17b)][_0x4eb128(0x17c)]=this[_0x4eb128(0x175)][_0x4eb128(0x16e)]);}}
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)]);}}