@ckeditor/ckeditor5-ai 47.6.2-alpha.1 → 47.7.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.js +1 -1
  180. package/src/aichat/model/aichatconversation.js +1 -1
  181. package/src/aichat/model/aichatinteraction.js +1 -1
  182. package/src/aichat/ui/aichatballoonview.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  221. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  223. package/src/aicore/aiconnector.js +1 -1
  224. package/src/aicore/aiediting.js +1 -1
  225. package/src/aicore/model/aicapabilities.js +1 -1
  226. package/src/aicore/model/aicontext.js +1 -1
  227. package/src/aicore/model/aiinteraction.js +1 -1
  228. package/src/aicore/model/aimodels.js +1 -1
  229. package/src/aicore/model/aireply.js +1 -1
  230. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  231. package/src/aicore/pipeline/airesponseparser.js +2 -2
  232. package/src/aicore/ui/aidisclaimerview.js +1 -1
  233. package/src/aicore/ui/aiskeleton.js +1 -1
  234. package/src/aicore/ui/aispinner.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  246. package/src/aicore/utils/common-translations.js +1 -1
  247. package/src/aicore/utils/createresizebutton.js +1 -1
  248. package/src/aicore/utils/documentposition.js +1 -1
  249. package/src/aicore/utils/documentrange.js +1 -1
  250. package/src/aicore/utils/eventnames.js +1 -1
  251. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  252. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  253. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  254. package/src/aicore/utils/htmlparser.js +1 -1
  255. package/src/aicore/utils/htmlstreamer.js +1 -1
  256. package/src/aicore/utils/scrollmanager.js +1 -1
  257. package/src/aieditorintegration/aieditorintegration.js +1 -1
  258. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  260. package/src/aiquickactions/aiquickactions.js +1 -1
  261. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  262. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  263. package/src/aiquickactions/aiquickactionsui.js +1 -1
  264. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  268. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  271. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  272. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  273. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  274. package/src/aireviewcore/aireviewcoreui.js +1 -1
  275. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  276. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  277. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  280. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  281. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  292. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  294. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  295. package/src/aireviewmode/aireviewmode.js +1 -1
  296. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  297. package/src/aireviewmode/aireviewmodeui.js +1 -1
  298. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  300. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  301. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  303. package/src/aitabs/aitabs.js +1 -1
  304. package/src/aitabs/aitabsmainview.js +1 -1
  305. package/src/aitabs/tabs/aitabsview.js +1 -1
  306. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  307. package/src/aitabs/tabs/tabpanelview.js +1 -1
  308. package/src/aitranslate/aitranslate.js +1 -1
  309. package/src/aitranslate/aitranslatecontroller.js +1 -1
  310. package/src/aitranslate/aitranslateui.js +1 -1
  311. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  312. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  313. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  314. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  315. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  316. package/src/errors.js +1 -1
  317. package/src/errorsmap.js +1 -1
  318. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3b163c=_0xa2cb;(function(_0x330b70,_0x37c6ca){const _0x4cdc61=_0xa2cb,_0x1857a0=_0x330b70();while(!![]){try{const _0x56f38a=parseInt(_0x4cdc61(0xf3))/0x1+-parseInt(_0x4cdc61(0xe1))/0x2+parseInt(_0x4cdc61(0xfe))/0x3+parseInt(_0x4cdc61(0xff))/0x4*(-parseInt(_0x4cdc61(0xbb))/0x5)+parseInt(_0x4cdc61(0xb8))/0x6*(-parseInt(_0x4cdc61(0xf7))/0x7)+-parseInt(_0x4cdc61(0x102))/0x8+parseInt(_0x4cdc61(0xb1))/0x9;if(_0x56f38a===_0x37c6ca)break;else _0x1857a0['push'](_0x1857a0['shift']());}catch(_0x959b94){_0x1857a0['push'](_0x1857a0['shift']());}}}(_0x1cf7,0x2e66f));import{CKEditorError as _0xe8da2a,EmitterMixin as _0x2cc2fc,uid as _0x5e449c}from'ckeditor5/src/utils.js';function _0xa2cb(_0x6884b8,_0x2c7b4a){const _0x1cf7e9=_0x1cf7();return _0xa2cb=function(_0xa2cb1a,_0x4ea71d){_0xa2cb1a=_0xa2cb1a-0xad;let _0x5b3911=_0x1cf7e9[_0xa2cb1a];return _0x5b3911;},_0xa2cb(_0x6884b8,_0x2c7b4a);}import{AIReply as _0x99ff67}from'./aireply.js';function _0x1cf7(){const _0x36a3eb=['notification','abortController','webSearchStarted','destroy','resetReasoningState','reasoningFinished','_finalizeInteraction','interactionStopped','getStream','replies','textDelta','interactionStarted','toolName','result','resetWebSearchState','conversationTitle','start','stopListening','isDestroyed','isStopped','appendContent','interactionFinished','getReply','delegate','text-delta','action-metadata','text','callId','currentRequest','_handleToolResultData','data','find','470952xOMpER','webSearchFinished','done','reasoning','replyCreated','sources','interactionDestroyed','event','push','attributes','connector','editor','_isReasoning','actionCallId','_handleToolNotificationData','replyContentUpdated','length','_isWebSearching','41395pFxBgl','forEach','modification-delta','stop','231AuQqbj','sendRequest','interactionCreated','replyChangeGroupStateUpdated','content','conversation-title','setConversationTitle','350385eNPjMF','100BgSIjl','reasoningStarted','currentReply','1681080LfilXO','modification','abort','mcp-tool-notification','web-search','7536960GbhYiI','fire','type','ai-chat-interaction-error','mcp-tool-result','splice','error','10842UKMTPd','messageId','createReply','60065fTjLuz','toolDataReceived','message-metadata','source','getDocumentContext','parse'];_0x1cf7=function(){return _0x36a3eb;};return _0x1cf7();}export const AI_MODEL_EVENT_NAMES=[_0x3b163c(0xf9),_0x3b163c(0xcc),_0x3b163c(0xc8),_0x3b163c(0xd6),_0x3b163c(0xe7),_0x3b163c(0xe5),_0x3b163c(0xf0),_0x3b163c(0xfa),_0x3b163c(0xfd),_0x3b163c(0xc3),_0x3b163c(0xe2),_0x3b163c(0x100),_0x3b163c(0xc6),_0x3b163c(0xbc),_0x3b163c(0xb7)];export class AIInteraction extends _0x2cc2fc(){['id'];[_0x3b163c(0xca)]=[];[_0x3b163c(0x101)];[_0x3b163c(0xb9)];[_0x3b163c(0xee)];[_0x3b163c(0xdd)];[_0x3b163c(0xeb)];[_0x3b163c(0xd4)]=!0x1;[_0x3b163c(0xd3)]=!0x1;[_0x3b163c(0xec)];[_0x3b163c(0xed)]=!0x1;[_0x3b163c(0xf2)]=!0x1;constructor({connector:_0x90f838,editor:_0x58ec12}){const _0x141caf=_0x3b163c;super(),this['id']=_0x5e449c(),this[_0x141caf(0xeb)]=_0x90f838,this[_0x141caf(0xd4)]=!0x0,this[_0x141caf(0xec)]=_0x58ec12;}async[_0x3b163c(0xd1)](){const _0x14471a=_0x3b163c,_0x3ec272=[];let _0x4dc93c,_0x357d48,_0x14cc73;this[_0x14471a(0xd4)]=!0x1;try{this[_0x14471a(0xdd)]=await this[_0x14471a(0xf8)](),this[_0x14471a(0xb2)](_0x14471a(0xcc),this);const _0x22d966=await this[_0x14471a(0xdd)][_0x14471a(0xc9)]();for await(const _0x5dfcc7 of _0x22d966){if(this[_0x14471a(0xd4)])return;if(_0x14471a(0xb7)==_0x5dfcc7[_0x14471a(0xe8)])return void this[_0x14471a(0xb2)](_0x14471a(0xb7),{'error':new _0xe8da2a(_0x14471a(0xb4),this)});switch(_0x5dfcc7[_0x14471a(0xe8)]){case _0x14471a(0xbd):this[_0x14471a(0xb9)]=_0x5dfcc7[_0x14471a(0xdf)][_0x14471a(0xb9)];break;case _0x14471a(0xda):this[_0x14471a(0xee)]=_0x5dfcc7[_0x14471a(0xdf)][_0x14471a(0xdc)];break;case _0x14471a(0xfc):this[_0x14471a(0xfd)](_0x5dfcc7[_0x14471a(0xdf)][_0x14471a(0xd0)],!0x0);break;case _0x14471a(0xbe):_0x3ec272[_0x14471a(0xe9)](_0x5dfcc7[_0x14471a(0xdf)][_0x14471a(0xbe)]);break;case _0x14471a(0xb0):this[_0x14471a(0xf2)]||(this[_0x14471a(0xf2)]=!0x0,this[_0x14471a(0xb2)](_0x14471a(0xc3),this));break;case _0x14471a(0xe4):this[_0x14471a(0xed)]||(this[_0x14471a(0xed)]=!0x0,this[_0x14471a(0xb2)](_0x14471a(0x100),this));break;case _0x14471a(0xf5):case _0x14471a(0xd9):this[_0x14471a(0xc5)](),this[_0x14471a(0xcf)](),_0x4dc93c=_0x14471a(0xf5)==_0x5dfcc7[_0x14471a(0xe8)]?_0x14471a(0xad):_0x14471a(0xdb),_0x357d48=_0x14471a(0xf5)==_0x5dfcc7[_0x14471a(0xe8)]?_0x5dfcc7[_0x14471a(0xdf)]['id']:void 0x0,this[_0x14471a(0x101)]&&this[_0x14471a(0x101)][_0x14471a(0xb3)]!=_0x4dc93c&&(this[_0x14471a(0x101)][_0x14471a(0xe3)](),this[_0x14471a(0x101)]=void 0x0),this[_0x14471a(0x101)]||(this[_0x14471a(0x101)]=this[_0x14471a(0xba)]({'type':_0x4dc93c,'interactionId':this['id'],'id':_0x357d48}),_0x14471a(0xad)==_0x4dc93c&&(this[_0x14471a(0x101)][_0x14471a(0xe6)]=_0x3ec272[_0x14471a(0xb6)](0x0))),this[_0x14471a(0x101)][_0x14471a(0xd5)](_0x5dfcc7[_0x14471a(0xdf)][_0x14471a(0xcb)]);break;case _0x14471a(0xb5):_0x14cc73=JSON[_0x14471a(0xc0)](_0x5dfcc7[_0x14471a(0xdf)][_0x14471a(0xce)]),this[_0x14471a(0xde)]({'toolName':_0x5dfcc7[_0x14471a(0xdf)][_0x14471a(0xcd)],'data':_0x14cc73[_0x14471a(0xdf)],'attributes':_0x14cc73[_0x14471a(0xea)]});break;case _0x14471a(0xaf):this[_0x14471a(0xef)]({'toolName':_0x5dfcc7[_0x14471a(0xdf)][_0x14471a(0xcd)],'data':_0x5dfcc7[_0x14471a(0xdf)][_0x14471a(0xdf)]});}}}finally{this[_0x14471a(0xd4)]||(this[_0x14471a(0x101)]&&_0x3ec272[_0x14471a(0xf1)]>0x0&&(this[_0x14471a(0x101)][_0x14471a(0xe6)]=_0x3ec272[_0x14471a(0xb6)](0x0)),this[_0x14471a(0xc7)](),this[_0x14471a(0xb2)](_0x14471a(0xd6),this));}}[_0x3b163c(0xf6)](){const _0x410386=_0x3b163c;this[_0x410386(0xd4)]||(this[_0x410386(0xc7)](),this[_0x410386(0xb2)](_0x410386(0xc8),this));}[_0x3b163c(0xd7)](_0x4af7be){const _0x25775d=_0x3b163c;return this[_0x25775d(0xca)][_0x25775d(0xe0)](_0x5f173a=>_0x5f173a['id']===_0x4af7be);}[_0x3b163c(0xc4)](){const _0xb6f4df=_0x3b163c;this[_0xb6f4df(0xd3)]||(this[_0xb6f4df(0xf6)](),this[_0xb6f4df(0xca)][_0xb6f4df(0xf4)](_0x33e312=>_0x33e312[_0xb6f4df(0xc4)]()),this[_0xb6f4df(0xca)]=[],this[_0xb6f4df(0xd3)]=!0x0,this[_0xb6f4df(0xb2)](_0xb6f4df(0xe7),this),this[_0xb6f4df(0xd2)]());}[_0x3b163c(0xba)](_0x2a78c9){const _0x21474a=_0x3b163c,_0x1f5f43=new _0x99ff67({'editor':this[_0x21474a(0xec)],'documentContextContent':this[_0x21474a(0xbf)]()?.[_0x21474a(0xfb)],..._0x2a78c9});return this[_0x21474a(0xca)][_0x21474a(0xe9)](_0x1f5f43),_0x1f5f43[_0x21474a(0xd8)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x21474a(0xb2)](_0x21474a(0xe5),_0x1f5f43),_0x1f5f43;}[_0x3b163c(0xfd)](_0x46eea8,_0x4bed72=!0x1){const _0x383390=_0x3b163c;this[_0x383390(0xb2)](_0x383390(0xfd),_0x46eea8,_0x4bed72);}[_0x3b163c(0xcf)](){const _0x38d77f=_0x3b163c;this[_0x38d77f(0xf2)]&&(this[_0x38d77f(0xf2)]=!0x1,this[_0x38d77f(0xb2)](_0x38d77f(0xe2),this));}[_0x3b163c(0xc5)](){const _0x1a9d78=_0x3b163c;this[_0x1a9d78(0xed)]&&(this[_0x1a9d78(0xed)]=!0x1,this[_0x1a9d78(0xb2)](_0x1a9d78(0xc6),this));}[_0x3b163c(0xde)](_0x4252e2){const _0x33092f=_0x3b163c;this[_0x33092f(0xb2)](_0x33092f(0xbc),{'type':_0x33092f(0xce),'toolName':_0x4252e2[_0x33092f(0xcd)],'data':structuredClone(_0x4252e2[_0x33092f(0xdf)]||{}),'attributes':structuredClone(_0x4252e2[_0x33092f(0xea)]||{})},this);}[_0x3b163c(0xef)](_0xa07846){const _0x22d964=_0x3b163c;this[_0x22d964(0xb2)](_0x22d964(0xbc),{'type':_0x22d964(0xc1),'toolName':_0xa07846[_0x22d964(0xcd)],'data':structuredClone(_0xa07846[_0x22d964(0xdf)])},this);}[_0x3b163c(0xc7)](){const _0x393f43=_0x3b163c;this[_0x393f43(0xd4)]=!0x0,this[_0x393f43(0xdd)]&&this[_0x393f43(0xdd)][_0x393f43(0xc2)][_0x393f43(0xae)](),this[_0x393f43(0x101)]&&this[_0x393f43(0x101)][_0x393f43(0xe3)](),this[_0x393f43(0xdd)]=this[_0x393f43(0x101)]=void 0x0;}}
23
+ const _0x3bbbca=_0x4e9f;(function(_0x1fb34e,_0x5ac3cc){const _0x2486ec=_0x4e9f,_0x400ba0=_0x1fb34e();while(!![]){try{const _0x41c8da=parseInt(_0x2486ec(0x100))/0x1*(parseInt(_0x2486ec(0xf6))/0x2)+parseInt(_0x2486ec(0xcf))/0x3*(-parseInt(_0x2486ec(0xd1))/0x4)+-parseInt(_0x2486ec(0x101))/0x5*(parseInt(_0x2486ec(0xc7))/0x6)+-parseInt(_0x2486ec(0xda))/0x7+parseInt(_0x2486ec(0x10d))/0x8+parseInt(_0x2486ec(0xfd))/0x9+parseInt(_0x2486ec(0xd9))/0xa*(parseInt(_0x2486ec(0xec))/0xb);if(_0x41c8da===_0x5ac3cc)break;else _0x400ba0['push'](_0x400ba0['shift']());}catch(_0x105ecb){_0x400ba0['push'](_0x400ba0['shift']());}}}(_0x3526,0x3af08));import{CKEditorError as _0x452652,EmitterMixin as _0x3fdf9b,uid as _0xe7dad6}from'ckeditor5/src/utils.js';function _0x3526(){const _0x49258c=['isDestroyed','888363zXXIlG','reasoning','reasoningFinished','10eSenNC','572255MsombX','content','_isWebSearching','callId','splice','text','replies','source','replyCreated','webSearchFinished','abortController','resetWebSearchState','1258856AHGWjX','conversationTitle','webSearchStarted','interactionStarted','data','actionCallId','interactionDestroyed','web-search','interactionCreated','error','start','appendContent','connector','getDocumentContext','replyChangeGroupStateUpdated','modification-delta','ai-chat-interaction-error','currentReply','18Mznmeq','createReply','destroy','stopListening','abort','action-metadata','setConversationTitle','push','51501NlkOuq','parse','96JRxBIG','sources','text-delta','conversation-title','interactionFinished','_finalizeInteraction','interactionStopped','editor','1311230wNVgBx','2984506AqHPch','fire','resetReasoningState','forEach','message-metadata','event','modification','notification','replyContentUpdated','result','toolName','messageId','_handleToolNotificationData','mcp-tool-notification','find','getReply','sendRequest','currentRequest','77OkniqX','_isReasoning','stop','mcp-tool-result','isStopped','length','reasoningStarted','getStream','toolDataReceived','attributes','49842Iktapt','delegate','done','textDelta','type','_handleToolResultData'];_0x3526=function(){return _0x49258c;};return _0x3526();}import{AIReply as _0x235828}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x3bbbca(0xbd),_0x3bbbca(0xb8),_0x3bbbca(0xd7),_0x3bbbca(0xd5),_0x3bbbca(0xbb),_0x3bbbca(0x109),_0x3bbbca(0xe2),_0x3bbbca(0xc3),_0x3bbbca(0xcd),_0x3bbbca(0xb7),_0x3bbbca(0x10a),_0x3bbbca(0xf2),_0x3bbbca(0xff),_0x3bbbca(0xf4),_0x3bbbca(0xbe)];function _0x4e9f(_0x423d55,_0x31118f){const _0x352629=_0x3526();return _0x4e9f=function(_0x4e9f83,_0x4c2516){_0x4e9f83=_0x4e9f83-0xb7;let _0x51cb20=_0x352629[_0x4e9f83];return _0x51cb20;},_0x4e9f(_0x423d55,_0x31118f);}export class AIInteraction extends _0x3fdf9b(){['id'];[_0x3bbbca(0x107)]=[];[_0x3bbbca(0xc6)];[_0x3bbbca(0xe5)];[_0x3bbbca(0xba)];[_0x3bbbca(0xeb)];[_0x3bbbca(0xc1)];[_0x3bbbca(0xf0)]=!0x1;[_0x3bbbca(0xfc)]=!0x1;[_0x3bbbca(0xd8)];[_0x3bbbca(0xed)]=!0x1;[_0x3bbbca(0x103)]=!0x1;constructor({connector:_0x349f8e,editor:_0x5380b1}){const _0x4b64cb=_0x3bbbca;super(),this['id']=_0xe7dad6(),this[_0x4b64cb(0xc1)]=_0x349f8e,this[_0x4b64cb(0xf0)]=!0x0,this[_0x4b64cb(0xd8)]=_0x5380b1;}async[_0x3bbbca(0xbf)](){const _0x1d7979=_0x3bbbca,_0x223ddc=[];let _0x69b9ed,_0x426b41,_0x4135b5;this[_0x1d7979(0xf0)]=!0x1;try{this[_0x1d7979(0xeb)]=await this[_0x1d7979(0xea)](),this[_0x1d7979(0xdb)](_0x1d7979(0xb8),this);const _0x6d0dc4=await this[_0x1d7979(0xeb)][_0x1d7979(0xf3)]();for await(const _0x1bba60 of _0x6d0dc4){if(this[_0x1d7979(0xf0)])return;if(_0x1d7979(0xbe)==_0x1bba60[_0x1d7979(0xdf)])return void this[_0x1d7979(0xdb)](_0x1d7979(0xbe),{'error':new _0x452652(_0x1d7979(0xc5),this)});switch(_0x1bba60[_0x1d7979(0xdf)]){case _0x1d7979(0xde):this[_0x1d7979(0xe5)]=_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0xe5)];break;case _0x1d7979(0xcc):this[_0x1d7979(0xba)]=_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0x104)];break;case _0x1d7979(0xd4):this[_0x1d7979(0xcd)](_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0x10e)],!0x0);break;case _0x1d7979(0x108):_0x223ddc[_0x1d7979(0xce)](_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0x108)]);break;case _0x1d7979(0xbc):this[_0x1d7979(0x103)]||(this[_0x1d7979(0x103)]=!0x0,this[_0x1d7979(0xdb)](_0x1d7979(0xb7),this));break;case _0x1d7979(0xfe):this[_0x1d7979(0xed)]||(this[_0x1d7979(0xed)]=!0x0,this[_0x1d7979(0xdb)](_0x1d7979(0xf2),this));break;case _0x1d7979(0xc4):case _0x1d7979(0xd3):this[_0x1d7979(0xdc)](),this[_0x1d7979(0x10c)](),_0x69b9ed=_0x1d7979(0xc4)==_0x1bba60[_0x1d7979(0xdf)]?_0x1d7979(0xe0):_0x1d7979(0x106),_0x426b41=_0x1d7979(0xc4)==_0x1bba60[_0x1d7979(0xdf)]?_0x1bba60[_0x1d7979(0xb9)]['id']:void 0x0,this[_0x1d7979(0xc6)]&&this[_0x1d7979(0xc6)][_0x1d7979(0xfa)]!=_0x69b9ed&&(this[_0x1d7979(0xc6)][_0x1d7979(0xf8)](),this[_0x1d7979(0xc6)]=void 0x0),this[_0x1d7979(0xc6)]||(this[_0x1d7979(0xc6)]=this[_0x1d7979(0xc8)]({'type':_0x69b9ed,'interactionId':this['id'],'id':_0x426b41}),_0x1d7979(0xe0)==_0x69b9ed&&(this[_0x1d7979(0xc6)][_0x1d7979(0xd2)]=_0x223ddc[_0x1d7979(0x105)](0x0))),this[_0x1d7979(0xc6)][_0x1d7979(0xc0)](_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0xf9)]);break;case _0x1d7979(0xef):_0x4135b5=JSON[_0x1d7979(0xd0)](_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0xe3)]),this[_0x1d7979(0xfb)]({'toolName':_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0xe4)],'data':_0x4135b5[_0x1d7979(0xb9)],'attributes':_0x4135b5[_0x1d7979(0xf5)]});break;case _0x1d7979(0xe7):this[_0x1d7979(0xe6)]({'toolName':_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0xe4)],'data':_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0xb9)]});}}}finally{this[_0x1d7979(0xf0)]||(this[_0x1d7979(0xc6)]&&_0x223ddc[_0x1d7979(0xf1)]>0x0&&(this[_0x1d7979(0xc6)][_0x1d7979(0xd2)]=_0x223ddc[_0x1d7979(0x105)](0x0)),this[_0x1d7979(0xd6)](),this[_0x1d7979(0xdb)](_0x1d7979(0xd5),this));}}[_0x3bbbca(0xee)](){const _0x4bd502=_0x3bbbca;this[_0x4bd502(0xf0)]||(this[_0x4bd502(0xd6)](),this[_0x4bd502(0xdb)](_0x4bd502(0xd7),this));}[_0x3bbbca(0xe9)](_0x7995b5){const _0x153350=_0x3bbbca;return this[_0x153350(0x107)][_0x153350(0xe8)](_0x2b6081=>_0x2b6081['id']===_0x7995b5);}[_0x3bbbca(0xc9)](){const _0x4d3381=_0x3bbbca;this[_0x4d3381(0xfc)]||(this[_0x4d3381(0xee)](),this[_0x4d3381(0x107)][_0x4d3381(0xdd)](_0x9e27d5=>_0x9e27d5[_0x4d3381(0xc9)]()),this[_0x4d3381(0x107)]=[],this[_0x4d3381(0xfc)]=!0x0,this[_0x4d3381(0xdb)](_0x4d3381(0xbb),this),this[_0x4d3381(0xca)]());}[_0x3bbbca(0xc8)](_0x3f0cc6){const _0xe9e2ee=_0x3bbbca,_0x253e71=new _0x235828({'editor':this[_0xe9e2ee(0xd8)],'documentContextContent':this[_0xe9e2ee(0xc2)]()?.[_0xe9e2ee(0x102)],..._0x3f0cc6});return this[_0xe9e2ee(0x107)][_0xe9e2ee(0xce)](_0x253e71),_0x253e71[_0xe9e2ee(0xf7)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0xe9e2ee(0xdb)](_0xe9e2ee(0x109),_0x253e71),_0x253e71;}[_0x3bbbca(0xcd)](_0xb1e4a,_0x52c7b3=!0x1){const _0x5c856c=_0x3bbbca;this[_0x5c856c(0xdb)](_0x5c856c(0xcd),_0xb1e4a,_0x52c7b3);}[_0x3bbbca(0x10c)](){const _0x46e9b9=_0x3bbbca;this[_0x46e9b9(0x103)]&&(this[_0x46e9b9(0x103)]=!0x1,this[_0x46e9b9(0xdb)](_0x46e9b9(0x10a),this));}[_0x3bbbca(0xdc)](){const _0x3d3e24=_0x3bbbca;this[_0x3d3e24(0xed)]&&(this[_0x3d3e24(0xed)]=!0x1,this[_0x3d3e24(0xdb)](_0x3d3e24(0xff),this));}[_0x3bbbca(0xfb)](_0x525322){const _0x21f596=_0x3bbbca;this[_0x21f596(0xdb)](_0x21f596(0xf4),{'type':_0x21f596(0xe3),'toolName':_0x525322[_0x21f596(0xe4)],'data':structuredClone(_0x525322[_0x21f596(0xb9)]||{}),'attributes':structuredClone(_0x525322[_0x21f596(0xf5)]||{})},this);}[_0x3bbbca(0xe6)](_0x54e687){const _0x3b700c=_0x3bbbca;this[_0x3b700c(0xdb)](_0x3b700c(0xf4),{'type':_0x3b700c(0xe1),'toolName':_0x54e687[_0x3b700c(0xe4)],'data':structuredClone(_0x54e687[_0x3b700c(0xb9)])},this);}[_0x3bbbca(0xd6)](){const _0x5b3407=_0x3bbbca;this[_0x5b3407(0xf0)]=!0x0,this[_0x5b3407(0xeb)]&&this[_0x5b3407(0xeb)][_0x5b3407(0x10b)][_0x5b3407(0xcb)](),this[_0x5b3407(0xc6)]&&this[_0x5b3407(0xc6)][_0x5b3407(0xf8)](),this[_0x5b3407(0xeb)]=this[_0x5b3407(0xc6)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b288d=_0x4067;(function(_0x1d4b82,_0x14172e){const _0x57f320=_0x4067,_0x14fcf7=_0x1d4b82();while(!![]){try{const _0x483fb4=-parseInt(_0x57f320(0xf3))/0x1+-parseInt(_0x57f320(0xd6))/0x2+parseInt(_0x57f320(0xea))/0x3*(-parseInt(_0x57f320(0xd1))/0x4)+-parseInt(_0x57f320(0xec))/0x5*(parseInt(_0x57f320(0xe6))/0x6)+parseInt(_0x57f320(0xd0))/0x7+-parseInt(_0x57f320(0xe3))/0x8*(parseInt(_0x57f320(0xf5))/0x9)+parseInt(_0x57f320(0xc6))/0xa*(parseInt(_0x57f320(0xf4))/0xb);if(_0x483fb4===_0x14172e)break;else _0x14fcf7['push'](_0x14fcf7['shift']());}catch(_0x4b326f){_0x14fcf7['push'](_0x14fcf7['shift']());}}}(_0x37fd,0x60e17));function _0x4067(_0x4bc023,_0x29c5d3){const _0x37fde2=_0x37fd();return _0x4067=function(_0x406758,_0x2447b0){_0x406758=_0x406758-0xc2;let _0x3b34c8=_0x37fde2[_0x406758];return _0x3b34c8;},_0x4067(_0x4bc023,_0x29c5d3);}import{EmitterMixin as _0xa9054b,logWarning as _0x27c5b9,logError as _0x17f1fc}from'ckeditor5/src/utils.js';import{getTranslation as _0x5112d7}from'../utils/common-translations.js';function _0x37fd(){const _0x1f8378=['getModels','length','1214072JwSNex','_modelList','recommended','24TGJVzC','_filterModels','list','_availableModels','3CsAXKu','_modelsRequest','348200iwywJj','defaultModelId','getAll','_getModelById','ai-chat-default-model-id-unrecognized','displayedModels','_defaultModelId','390540ySiDXV','3451646pNDusM','18oUDitm','isAvailable','auto','has','_locale','agent','40cVtXpQ','getAvailableModels','some','provider','items','_isMatchingFilter','uiLanguage','_config','_retrieveModels','ai-chat-model-id-unrecognized','3051377jfOvXX','603676wKVCeY','ai-models-unable-to-retrieve','getDefault','push','_connector','341390kdMBcm','getModel','filter','startsWith','find','toLocaleLowerCase','AI_MODEL_NAME_AUTO','string','add','name','map'];_0x37fd=function(){return _0x1f8378;};return _0x37fd();}export class AIModels extends _0xa9054b(){[_0x5b288d(0xd5)];[_0x5b288d(0xcd)];[_0x5b288d(0xc4)];[_0x5b288d(0xe4)]=[];[_0x5b288d(0xeb)]=null;constructor({connector:_0x90e892,config:_0x422cef,locale:_0x55f0a7}){const _0x5939b2=_0x5b288d;super(),this[_0x5939b2(0xd5)]=_0x90e892,this[_0x5939b2(0xcd)]=_0x422cef,this[_0x5939b2(0xc4)]=_0x55f0a7;}get[_0x5b288d(0xe9)](){const _0x4f0e47=_0x5b288d;return this[_0x4f0e47(0xcd)]?.[_0x4f0e47(0xf1)];}get[_0x5b288d(0xf2)](){const _0x139c2d=_0x5b288d;return this[_0x139c2d(0xcd)]?.[_0x139c2d(0xed)];}async[_0x5b288d(0xee)](){const _0xf087ff=_0x5b288d;return this[_0xf087ff(0xeb)]||(this[_0xf087ff(0xeb)]=this[_0xf087ff(0xce)]()),this[_0xf087ff(0xeb)];}async[_0x5b288d(0xc7)](){const _0x52f87c=_0x5b288d,_0xc0e87=await this[_0x52f87c(0xee)]();let _0x5415a5;return _0x5415a5=this[_0x52f87c(0xe9)]?this[_0x52f87c(0xe7)](_0xc0e87,this[_0x52f87c(0xe9)]):_0xc0e87[_0x52f87c(0xd8)](_0x201a3a=>_0x201a3a[_0x52f87c(0xe5)]),_0x5415a5;}async[_0x5b288d(0xd7)](_0xda08ce){const _0x2158dd=_0x5b288d,_0x37ca76=await this[_0x2158dd(0xee)]();if(!_0x37ca76[_0x2158dd(0xe2)])return null;if(_0xda08ce){const _0x1a9e0d=this[_0x2158dd(0xef)](_0x37ca76,_0xda08ce);if(_0x1a9e0d)return _0x1a9e0d;_0x27c5b9(_0x2158dd(0xcf),{'modelId':_0xda08ce,'fallBackModelId':this[_0x2158dd(0xf2)]});}return this[_0x2158dd(0xd3)]();}async[_0x5b288d(0xd3)](){const _0x5b9c9e=_0x5b288d,_0x3605ae=await this[_0x5b9c9e(0xc7)]();if(!_0x3605ae[_0x5b9c9e(0xe2)])return null;if(this[_0x5b9c9e(0xf2)]){const _0x5044bb=this[_0x5b9c9e(0xef)](_0x3605ae,this[_0x5b9c9e(0xf2)]);if(_0x5044bb)return _0x5044bb;_0x27c5b9(_0x5b9c9e(0xf0),{'defaultModelId':this[_0x5b9c9e(0xf2)],'fallBackModelId':_0x3605ae[0x0]['id']});}return _0x3605ae[0x0];}async[_0x5b288d(0xf6)](_0x76b1ea){const _0x2e5c63=_0x5b288d;return(await this[_0x2e5c63(0xc7)]())[_0x2e5c63(0xc8)](_0x210856=>_0x210856[_0x2e5c63(0xdf)]===_0x76b1ea[_0x2e5c63(0xdf)]&&_0x210856[_0x2e5c63(0xc9)]===_0x76b1ea[_0x2e5c63(0xc9)]);}async[_0x5b288d(0xce)](){const _0x14e780=_0x5b288d;if(!this[_0x14e780(0xe4)][_0x14e780(0xe2)])try{const _0x3a8d53=this[_0x14e780(0xc4)][_0x14e780(0xcc)]||'en',_0x1751af=this[_0x14e780(0xd5)][_0x14e780(0xe1)](_0x3a8d53),_0x347795=await _0x1751af[_0x14e780(0xe8)]();this[_0x14e780(0xe4)]=_0x347795[_0x14e780(0xca)][_0x14e780(0xe0)](_0x40b475=>Xi(_0x40b475)?{..._0x40b475,'name':_0x5112d7(this[_0x14e780(0xc4)],_0x14e780(0xdc))}:_0x40b475);}catch(_0x2ee8eb){throw _0x17f1fc(_0x14e780(0xd2),{'error':_0x2ee8eb}),_0x2ee8eb;}return[...this[_0x14e780(0xe4)]];}[_0x5b288d(0xe7)](_0x220c34,_0x56c9ed){const _0x1d839d=_0x5b288d;let _0x424f13;if(_0x56c9ed){_0x424f13=[];const _0x3aca56=new Set(),_0x12fccf=_0x1d839d(0xdd)==typeof _0x56c9ed?[_0x56c9ed[_0x1d839d(0xdb)]()]:_0x56c9ed[_0x1d839d(0xe0)](_0x20c7ad=>_0x20c7ad[_0x1d839d(0xdb)]());for(const _0x1d76d8 of _0x12fccf)for(const _0x166f06 of _0x220c34)!_0x3aca56[_0x1d839d(0xc3)](_0x166f06['id'])&&this[_0x1d839d(0xcb)](_0x166f06,_0x1d76d8)&&(_0x424f13[_0x1d839d(0xd4)](_0x166f06),_0x3aca56[_0x1d839d(0xde)](_0x166f06['id']));}else _0x424f13=_0x220c34;return _0x424f13;}[_0x5b288d(0xcb)](_0x5bc993,_0x580822){const _0x3ff00c=_0x5b288d,_0x4fa786=_0x5bc993['id'][_0x3ff00c(0xdb)](),_0x5c4e63=_0x5bc993[_0x3ff00c(0xdf)][_0x3ff00c(0xdb)](),_0x88b139=_0x5bc993[_0x3ff00c(0xc9)][_0x3ff00c(0xdb)]();return _0x4fa786===_0x580822||_0x5c4e63===_0x580822||Xi(_0x5bc993)&&_0x3ff00c(0xc2)===_0x580822||_0x88b139===_0x580822||_0x4fa786[_0x3ff00c(0xd9)](_0x580822);}[_0x5b288d(0xef)](_0x3756bf,_0x4b3062){const _0x343567=_0x5b288d;return _0x3756bf[_0x343567(0xda)](_0x249a77=>Xi(_0x249a77)&&_0x343567(0xc2)===_0x4b3062?_0x249a77:_0x249a77['id']===_0x4b3062)||null;}}function Xi(_0x44cb94){const _0x55edc1=_0x5b288d;return _0x44cb94['id'][_0x55edc1(0xd9)](_0x55edc1(0xc5));}
23
+ const _0x3263fb=_0x210c;(function(_0x22d58,_0x375b23){const _0x4c371d=_0x210c,_0x4b37a9=_0x22d58();while(!![]){try{const _0x33d42b=-parseInt(_0x4c371d(0x196))/0x1+-parseInt(_0x4c371d(0x18d))/0x2*(parseInt(_0x4c371d(0x1a1))/0x3)+parseInt(_0x4c371d(0x19b))/0x4*(parseInt(_0x4c371d(0x197))/0x5)+parseInt(_0x4c371d(0x1a6))/0x6+parseInt(_0x4c371d(0x193))/0x7+parseInt(_0x4c371d(0x199))/0x8*(-parseInt(_0x4c371d(0x194))/0x9)+parseInt(_0x4c371d(0x186))/0xa;if(_0x33d42b===_0x375b23)break;else _0x4b37a9['push'](_0x4b37a9['shift']());}catch(_0x2430a0){_0x4b37a9['push'](_0x4b37a9['shift']());}}}(_0x3b05,0x8b078));function _0x210c(_0x42c1ea,_0x52d307){const _0x3b057f=_0x3b05();return _0x210c=function(_0x210cb7,_0x59947f){_0x210cb7=_0x210cb7-0x173;let _0x15d83b=_0x3b057f[_0x210cb7];return _0x15d83b;},_0x210c(_0x42c1ea,_0x52d307);}import{EmitterMixin as _0x47fefe,logWarning as _0x22f5b6,logError as _0x566aba}from'ckeditor5/src/utils.js';import{getTranslation as _0x3e4ede}from'../utils/common-translations.js';export class AIModels extends _0x47fefe(){[_0x3263fb(0x18a)];[_0x3263fb(0x17c)];[_0x3263fb(0x173)];[_0x3263fb(0x17e)]=[];[_0x3263fb(0x184)]=null;constructor({connector:_0x52bf00,config:_0x42b7bb,locale:_0x12dd25}){const _0x3417e9=_0x3263fb;super(),this[_0x3417e9(0x18a)]=_0x52bf00,this[_0x3417e9(0x17c)]=_0x42b7bb,this[_0x3417e9(0x173)]=_0x12dd25;}get[_0x3263fb(0x182)](){const _0x5a5ba4=_0x3263fb;return this[_0x5a5ba4(0x17c)]?.[_0x5a5ba4(0x180)];}get[_0x3263fb(0x19c)](){const _0x5e551d=_0x3263fb;return this[_0x5e551d(0x17c)]?.[_0x5e551d(0x192)];}async[_0x3263fb(0x1a3)](){const _0x319a82=_0x3263fb;return this[_0x319a82(0x184)]||(this[_0x319a82(0x184)]=this[_0x319a82(0x17b)]()),this[_0x319a82(0x184)];}async[_0x3263fb(0x18c)](){const _0xdaf700=_0x3263fb,_0x5155f7=await this[_0xdaf700(0x1a3)]();let _0x13d8d2;return _0x13d8d2=this[_0xdaf700(0x182)]?this[_0xdaf700(0x18e)](_0x5155f7,this[_0xdaf700(0x182)]):_0x5155f7[_0xdaf700(0x19e)](_0x3dfcfe=>_0x3dfcfe[_0xdaf700(0x1a4)]),_0x13d8d2;}async[_0x3263fb(0x175)](_0x550f80){const _0x93ea98=_0x3263fb,_0x3608cb=await this[_0x93ea98(0x1a3)]();if(!_0x3608cb[_0x93ea98(0x195)])return null;if(_0x550f80){const _0x44c189=this[_0x93ea98(0x189)](_0x3608cb,_0x550f80);if(_0x44c189)return _0x44c189;_0x22f5b6(_0x93ea98(0x18b),{'modelId':_0x550f80,'fallBackModelId':this[_0x93ea98(0x19c)]});}return this[_0x93ea98(0x1a0)]();}async[_0x3263fb(0x1a0)](){const _0x139984=_0x3263fb,_0xf8c862=await this[_0x139984(0x18c)]();if(!_0xf8c862[_0x139984(0x195)])return null;if(this[_0x139984(0x19c)]){const _0x31e442=this[_0x139984(0x189)](_0xf8c862,this[_0x139984(0x19c)]);if(_0x31e442)return _0x31e442;_0x22f5b6(_0x139984(0x174),{'defaultModelId':this[_0x139984(0x19c)],'fallBackModelId':_0xf8c862[0x0]['id']});}return _0xf8c862[0x0];}async[_0x3263fb(0x17a)](_0x156969){const _0x4b0017=_0x3263fb;return(await this[_0x4b0017(0x18c)]())[_0x4b0017(0x17d)](_0x18786b=>_0x18786b[_0x4b0017(0x190)]===_0x156969[_0x4b0017(0x190)]&&_0x18786b[_0x4b0017(0x179)]===_0x156969[_0x4b0017(0x179)]);}async[_0x3263fb(0x17b)](){const _0x2312ad=_0x3263fb;if(!this[_0x2312ad(0x17e)][_0x2312ad(0x195)])try{const _0x404f18=this[_0x2312ad(0x173)][_0x2312ad(0x18f)]||'en',_0x4c915a=this[_0x2312ad(0x18a)][_0x2312ad(0x177)](_0x404f18),_0x1f2336=await _0x4c915a[_0x2312ad(0x1a2)]();this[_0x2312ad(0x17e)]=_0x1f2336[_0x2312ad(0x19a)][_0x2312ad(0x183)](_0x1535a6=>ze(_0x1535a6)?{..._0x1535a6,'name':_0x3e4ede(this[_0x2312ad(0x173)],_0x2312ad(0x198))}:_0x1535a6);}catch(_0x14f0e9){throw _0x566aba(_0x2312ad(0x176),{'error':_0x14f0e9}),_0x14f0e9;}return[...this[_0x2312ad(0x17e)]];}[_0x3263fb(0x18e)](_0x28c869,_0x2ed42c){const _0x1928c2=_0x3263fb;let _0x4128aa;if(_0x2ed42c){_0x4128aa=[];const _0x34c85c=new Set(),_0x1c505b=_0x1928c2(0x178)==typeof _0x2ed42c?[_0x2ed42c[_0x1928c2(0x185)]()]:_0x2ed42c[_0x1928c2(0x183)](_0x18f1cc=>_0x18f1cc[_0x1928c2(0x185)]());for(const _0x2e571c of _0x1c505b)for(const _0x58ae37 of _0x28c869)!_0x34c85c[_0x1928c2(0x17f)](_0x58ae37['id'])&&this[_0x1928c2(0x19d)](_0x58ae37,_0x2e571c)&&(_0x4128aa[_0x1928c2(0x187)](_0x58ae37),_0x34c85c[_0x1928c2(0x191)](_0x58ae37['id']));}else _0x4128aa=_0x28c869;return _0x4128aa;}[_0x3263fb(0x19d)](_0x20646e,_0xc8694c){const _0xdbdcba=_0x3263fb,_0x386fc0=_0x20646e['id'][_0xdbdcba(0x185)](),_0x545355=_0x20646e[_0xdbdcba(0x190)][_0xdbdcba(0x185)](),_0x4d9099=_0x20646e[_0xdbdcba(0x179)][_0xdbdcba(0x185)]();return _0x386fc0===_0xc8694c||_0x545355===_0xc8694c||ze(_0x20646e)&&_0xdbdcba(0x181)===_0xc8694c||_0x4d9099===_0xc8694c||_0x386fc0[_0xdbdcba(0x1a5)](_0xc8694c);}[_0x3263fb(0x189)](_0x4a1bce,_0x3e36c6){const _0x588292=_0x3263fb;return _0x4a1bce[_0x588292(0x19f)](_0x4b212d=>ze(_0x4b212d)&&_0x588292(0x181)===_0x3e36c6?_0x4b212d:_0x4b212d['id']===_0x3e36c6)||null;}}function _0x3b05(){const _0x3fea71=['getModel','ai-models-unable-to-retrieve','getModels','string','provider','isAvailable','_retrieveModels','_config','some','_modelList','has','displayedModels','auto','_availableModels','map','_modelsRequest','toLocaleLowerCase','8606000XIQSLZ','push','agent','_getModelById','_connector','ai-chat-model-id-unrecognized','getAvailableModels','1877218TdMHly','_filterModels','uiLanguage','name','add','defaultModelId','4591699ceIXrF','1683lmmLSR','length','364747ioCYJb','5FvCbpq','AI_MODEL_NAME_AUTO','44080SPAwDl','items','2637960UGugBr','_defaultModelId','_isMatchingFilter','filter','find','getDefault','3NmweiD','list','getAll','recommended','startsWith','4362858FtCTKP','_locale','ai-chat-default-model-id-unrecognized'];_0x3b05=function(){return _0x3fea71;};return _0x3b05();}function ze(_0x71220c){const _0x30d1d2=_0x3263fb;return _0x71220c['id'][_0x30d1d2(0x1a5)](_0x30d1d2(0x188));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x9d56(){const _0x33ac6c=['state','17809ZFoOwe','parsedContent','nextSibling','stopListening','modifiedNodeIds','every','setChangeGroupState','removed','5702268DwsTbD','modified','type','content','modification','changeGroups','withDiff','done','_getCachedContentParts','change:content','map','5890OCCKtF','filter','find','new','ai-get-editor-from-context-no-editor','replyChangeGroupStateUpdated','201658GowTFN','getContentParts','sources','editor','data-unstable','isDone','replyContentUpdated','newNodeIds','parsedMergedContent','documentContextContent','appendContent','changes','areActionsDisabled','includes','locale','withoutDiff','ai-reply-get-content-parts-group-not-found','unshift','onContentChange','span','fire','152ahEFlE','cachedSuggestionContentParts','index','736094QsXYEp','318afTQzw','merge','interactionId','convertMarkdownToHTML','_setCachedContentParts','_getDifferentChangeGroups','7790590kksBYx','color:\x20#808080;\x20font-style:\x20italic','node','parseAndNormalizeHTML','splice','aiResponseParser','aiResponseApplier','535662XRHPbi','14371pVGkfI','context','previousSibling','set','3ldIMrR','AI_SUGGESTION_CONTENT_PART_REMOVED','cloneNode','updateChangeGroups','push','length','forEach','data-id','pending','removedNodeIds','indexOf','destroy'];_0x9d56=function(){return _0x33ac6c;};return _0x9d56();}const _0x3b346d=_0x2d63;(function(_0x3c10fe,_0x4f293e){const _0x2fe7e7=_0x2d63,_0x1e98d2=_0x3c10fe();while(!![]){try{const _0x8c8216=parseInt(_0x2fe7e7(0xa8))/0x1+-parseInt(_0x2fe7e7(0x90))/0x2*(parseInt(_0x2fe7e7(0x6a))/0x3)+parseInt(_0x2fe7e7(0x7f))/0x4+-parseInt(_0x2fe7e7(0xaf))/0x5+-parseInt(_0x2fe7e7(0xa9))/0x6*(-parseInt(_0x2fe7e7(0xb7))/0x7)+-parseInt(_0x2fe7e7(0xa5))/0x8*(-parseInt(_0x2fe7e7(0xb6))/0x9)+parseInt(_0x2fe7e7(0x8a))/0xa*(-parseInt(_0x2fe7e7(0x77))/0xb);if(_0x8c8216===_0x4f293e)break;else _0x1e98d2['push'](_0x1e98d2['shift']());}catch(_0xc918c3){_0x1e98d2['push'](_0x1e98d2['shift']());}}}(_0x9d56,0xc0926));import{CKEditorError as _0x2bdca8,ObservableMixin as _0x3c52d2,uid as _0x509d19}from'ckeditor5/src/utils.js';import{Element as _0x3fc04d,findAll as _0x5705d2,getAttribute as _0x29d93b,getParents as _0x2096bd,Document as _0x56695b,parse as _0x4d28b1,Text as _0x45154a}from'../utils/htmlparser.js';import{AIResponseParser as _0x1e1f6b}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0xc4be5a}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x56ca6c}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x2c585}from'../utils/common-translations.js';import{cloneDeep as _0x44146c}from'es-toolkit';function _0x2d63(_0x27af23,_0x5d8658){const _0x9d56f=_0x9d56();return _0x2d63=function(_0x2d6307,_0x5ca6d0){_0x2d6307=_0x2d6307-0x68;let _0x2fc746=_0x9d56f[_0x2d6307];return _0x2fc746;},_0x2d63(_0x27af23,_0x5d8658);}export class AIReply extends _0x3c52d2(){['id'];[_0x3b346d(0xab)];[_0x3b346d(0x81)];[_0x3b346d(0x92)]=[];[_0x3b346d(0x78)]=new _0x56695b([]);[_0x3b346d(0x98)]=new _0x56695b([]);[_0x3b346d(0x84)]=[];[_0x3b346d(0x9c)]=!0x1;[_0x3b346d(0x99)];[_0x3b346d(0xb4)];[_0x3b346d(0xb5)];[_0x3b346d(0x93)];[_0x3b346d(0xa6)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x5ae6b8,content:_0x2804dc='',isDone:_0x1212b4=!0x1,interactionId:_0x7cb4d0,areActionsDisabled:_0x2343de,documentContextContent:_0x3990b9,editor:_0x4afa3b,id:_0x43b38c}){const _0x316b8b=_0x3b346d;super(),this['id']=_0x43b38c||_0x509d19(),this[_0x316b8b(0xab)]=_0x7cb4d0,this[_0x316b8b(0x81)]=_0x5ae6b8,this[_0x316b8b(0x9c)]=!!_0x2343de,this[_0x316b8b(0x93)]=_0x4afa3b,this[_0x316b8b(0xb4)]=new _0x1e1f6b(),this[_0x316b8b(0xb5)]=new _0xc4be5a(),this[_0x316b8b(0x99)]=_0x4d28b1(_0x3990b9||''),this[_0x316b8b(0x69)](_0x316b8b(0x95),_0x1212b4),this['on'](_0x316b8b(0x88),()=>{const _0x3204a9=_0x316b8b;this[_0x3204a9(0xa2)]();}),this[_0x316b8b(0x69)](_0x316b8b(0x82),_0x2804dc);}[_0x3b346d(0x9a)](_0x3b5c68){const _0x1d5393=_0x3b346d;this[_0x1d5393(0x69)](_0x1d5393(0x82),this[_0x1d5393(0x82)]+_0x3b5c68);}[_0x3b346d(0x86)](){const _0x570bb9=_0x3b346d;this[_0x570bb9(0x95)]||(this[_0x570bb9(0x69)](_0x570bb9(0x95),!0x0),this[_0x570bb9(0xa2)]());}[_0x3b346d(0x75)](){const _0x40fbb5=_0x3b346d;this[_0x40fbb5(0x7a)]();}[_0x3b346d(0x7d)](_0x276901,_0x1cd232){const _0x3631c9=_0x3b346d;this[_0x3631c9(0x84)][_0x276901][_0x3631c9(0x76)]=_0x1cd232,this[_0x3631c9(0xa4)](_0x3631c9(0x8f),{'reply':this,'index':_0x276901,'state':_0x1cd232});}[_0x3b346d(0x91)]({showDiff:_0xe75e0b,groupIndex:_0x5b6066}){const _0x2d30bf=_0x3b346d;if(!this[_0x2d30bf(0x93)])throw new _0x2bdca8(_0x2d30bf(0x8e),null,{'aiReply':this});const _0x52f3eb=this[_0x2d30bf(0x87)](_0xe75e0b,_0x5b6066);if(_0x52f3eb)return _0x52f3eb;let _0x11b95f=[];if(void 0x0===_0x5b6066)_0x11b95f=this[_0x2d30bf(0x84)];else{const _0x2607b2=this[_0x2d30bf(0x84)][_0x2d30bf(0x8c)](({index:_0x21a1c5})=>_0x21a1c5===_0x5b6066);if(!_0x2607b2)throw new _0x2bdca8(_0x2d30bf(0xa0),null,{'aiReply':this,'groupIndex':_0x5b6066});_0x11b95f=[_0x2607b2];}const _0x551b41=_0x56ca6c({'editor':this[_0x2d30bf(0x93)],'showDiff':_0xe75e0b,'changeGroups':_0x11b95f,'documentContextContent':this[_0x2d30bf(0x99)]});return this[_0x2d30bf(0xad)](_0xe75e0b,_0x551b41),_0x551b41;}[_0x3b346d(0x87)](_0x587e45,_0x568523){const _0xf2806e=_0x3b346d,_0x411ba3=_0x587e45?_0xf2806e(0x85):_0xf2806e(0x9f);if(!this[_0xf2806e(0xa6)][_0x411ba3][_0xf2806e(0x6f)])return null;const _0xbe0ea9=this[_0xf2806e(0xa6)][_0x411ba3];if(void 0x0===_0x568523)return _0xbe0ea9[_0xf2806e(0x6f)]>0x0&&_0xbe0ea9[_0xf2806e(0x6f)]!==this[_0xf2806e(0x84)][_0xf2806e(0x6f)]?(this[_0xf2806e(0xad)](_0x587e45,null),null):_0x44146c(_0xbe0ea9);{const _0x467a32=_0xbe0ea9[_0xf2806e(0x8c)](({index:_0x1eb91e})=>_0x1eb91e===_0x568523);if(_0x467a32)return[_0x44146c(_0x467a32)];}return null;}[_0x3b346d(0xad)](_0x21f278,_0x567c2f){const _0x4ce6a8=_0x3b346d,_0x475da7=_0x21f278?_0x4ce6a8(0x85):_0x4ce6a8(0x9f);_0x567c2f?_0x567c2f[_0x4ce6a8(0x70)](_0x4043ba=>{const _0x44c6bc=_0x4ce6a8,_0x145cc9=this[_0x44c6bc(0xa6)][_0x475da7],_0x5d7aff=_0x145cc9[_0x44c6bc(0x8c)](({index:_0x5a23b7})=>_0x5a23b7===_0x4043ba[_0x44c6bc(0xa7)]);if(_0x5d7aff){const _0x30e1c8=_0x145cc9[_0x44c6bc(0x74)](_0x5d7aff);_0x145cc9[_0x44c6bc(0xb3)](_0x30e1c8,0x1,_0x4043ba);}else _0x145cc9[_0x44c6bc(0x6e)](_0x4043ba);}):this[_0x4ce6a8(0xa6)][_0x475da7][_0x4ce6a8(0x6f)]=0x0;}[_0x3b346d(0xa2)](){const _0x3a593e=_0x3b346d;if(_0x3a593e(0x83)===this[_0x3a593e(0x81)]){this[_0x3a593e(0x78)]=this[_0x3a593e(0xb4)][_0x3a593e(0xb2)](this[_0x3a593e(0x82)]);const _0x356104=this[_0x3a593e(0x84)];this[_0x3a593e(0x6d)]();const _0x4196c8=this[_0x3a593e(0xae)](_0x356104,this[_0x3a593e(0x84)]);(_0x4196c8[_0x3a593e(0x6f)]||this[_0x3a593e(0x95)])&&(this[_0x3a593e(0xa4)](_0x3a593e(0x96),this,_0x4196c8),this[_0x3a593e(0xa6)][_0x3a593e(0x85)][_0x3a593e(0x6f)]=this[_0x3a593e(0xa6)][_0x3a593e(0x9f)][_0x3a593e(0x6f)]=0x0);}else this[_0x3a593e(0x78)]=this[_0x3a593e(0xb4)][_0x3a593e(0xac)](this[_0x3a593e(0x82)]),this[_0x3a593e(0xa4)](_0x3a593e(0x96),this);}[_0x3b346d(0xae)](_0x23c4b0,_0x513f6b){const _0x5e3949=_0x3b346d,_0x30d515=[];for(const _0x357de5 of _0x513f6b){const _0x21e921=_0x23c4b0[_0x357de5[_0x5e3949(0xa7)]];_0x21e921?_0x21e921[_0x5e3949(0x9b)][_0x5e3949(0x6f)]!==_0x357de5[_0x5e3949(0x9b)][_0x5e3949(0x6f)]?_0x30d515[_0x5e3949(0x6e)](_0x357de5):_0x21e921[_0x5e3949(0x9b)][_0x5e3949(0x70)]((_0x3c59b5,_0x5b8451)=>{const _0x4ceae0=_0x5e3949,_0xd8d050=_0x357de5[_0x4ceae0(0x9b)][_0x5b8451];_0x3c59b5['id']!==_0xd8d050['id']&&_0x30d515[_0x4ceae0(0x6e)](_0x357de5);}):_0x30d515[_0x5e3949(0x6e)](_0x357de5);}return _0x30d515;}[_0x3b346d(0x6d)](){const _0x5cdaa5=_0x3b346d,_0x454088=new _0x3fc04d('p',{},[new _0x3fc04d(_0x5cdaa5(0xa3),{'style':_0x5cdaa5(0xb0)},[new _0x45154a(_0x2c585(this[_0x5cdaa5(0x93)][_0x5cdaa5(0x9e)],_0x5cdaa5(0x6b)))])]),_0x2c61b5=this[_0x5cdaa5(0xb5)][_0x5cdaa5(0xaa)](this[_0x5cdaa5(0x78)],this[_0x5cdaa5(0x99)][_0x5cdaa5(0x6c)](!0x0),{'markUnstableElements':!this[_0x5cdaa5(0x95)],'replaceRemovedWith':_0x454088,'cutAfterLastChange':!this[_0x5cdaa5(0x95)]});if(!_0x2c61b5[_0x5cdaa5(0x7b)][_0x5cdaa5(0x6f)]&&!this[_0x5cdaa5(0x95)])return;this[_0x5cdaa5(0x98)]=_0x2c61b5[_0x5cdaa5(0x78)];let _0x43b9a1=[];if(_0x5705d2(_0x58938d=>{const _0x48253d=_0x5cdaa5,_0x45abad=_0x29d93b(_0x58938d,_0x48253d(0x71));if(!_0x45abad||!_0x1a1f92(_0x45abad))return!0x1;const _0x9680fc=[_0x58938d,..._0x2096bd(_0x58938d)]['at'](-0x2);if(_0x58938d!=_0x9680fc){const _0x5ebdef=_0x29d93b(_0x9680fc,_0x48253d(0x71));_0x1a1f92(_0x5ebdef)||(_0x43b9a1[_0x48253d(0x6e)]({'node':_0x9680fc,'id':_0x5ebdef,'type':_0x48253d(0x80)}),_0x2c61b5[_0x48253d(0x7b)][_0x48253d(0x6e)](_0x5ebdef));}else _0x2c61b5[_0x48253d(0x7b)][_0x48253d(0x9d)](_0x45abad)?_0x43b9a1[_0x48253d(0x6e)]({'node':_0x58938d,'type':_0x48253d(0x80),'id':_0x45abad}):_0x2c61b5[_0x48253d(0x97)][_0x48253d(0x9d)](_0x45abad)?_0x43b9a1[_0x48253d(0x6e)]({'node':_0x58938d,'type':_0x48253d(0x8d),'id':_0x45abad,'anchorId':_0x29d93b(_0x58938d[_0x48253d(0x68)],_0x48253d(0x71))}):_0x43b9a1[_0x48253d(0x6e)]({'node':_0x58938d,'type':_0x48253d(0x7e),'id':_0x45abad});return!0x0;},this[_0x5cdaa5(0x98)]),_0x43b9a1=_0x43b9a1[_0x5cdaa5(0x8b)](({node:_0xdebb0b})=>[..._0x2096bd(_0xdebb0b),_0xdebb0b][_0x5cdaa5(0x7c)](_0x1442e8=>!_0x29d93b(_0x1442e8,_0x5cdaa5(0x94)))),0x0==_0x43b9a1[_0x5cdaa5(0x6f)])return;const _0x31d011=[[_0x43b9a1[0x0]]];for(let _0x3ead73=0x1;_0x3ead73<_0x43b9a1[_0x5cdaa5(0x6f)];_0x3ead73++){const _0x3eaab6=_0x31d011[_0x31d011[_0x5cdaa5(0x6f)]-0x1],_0x350da4=_0x3eaab6[_0x3eaab6[_0x5cdaa5(0x6f)]-0x1];_0x43b9a1[_0x3ead73][_0x5cdaa5(0xb1)][_0x5cdaa5(0x68)]==_0x350da4[_0x5cdaa5(0xb1)]&&_0x5cdaa5(0x80)!=_0x43b9a1[_0x3ead73][_0x5cdaa5(0x81)]&&_0x5cdaa5(0x80)!=_0x350da4[_0x5cdaa5(0x81)]?_0x3eaab6[_0x5cdaa5(0x6e)](_0x43b9a1[_0x3ead73]):_0x31d011[_0x5cdaa5(0x6e)]([_0x43b9a1[_0x3ead73]]);}for(const _0x128760 of _0x31d011){const _0x56b1ae=_0x128760[0x0],_0x3d4092=_0x128760[_0x128760[_0x5cdaa5(0x6f)]-0x1],_0x432692=_0x1d3194(_0x56b1ae[_0x5cdaa5(0xb1)][_0x5cdaa5(0x68)]);_0x432692&&_0x128760[_0x5cdaa5(0xa1)](_0x432692);const _0x46643a=_0x1d3194(_0x3d4092[_0x5cdaa5(0xb1)][_0x5cdaa5(0x79)]);_0x46643a&&_0x128760[_0x5cdaa5(0x6e)](_0x46643a);}function _0x1a1f92(_0x1d4464){const _0x40ce04=_0x5cdaa5;return _0x2c61b5[_0x40ce04(0x7b)][_0x40ce04(0x9d)](_0x1d4464)||_0x2c61b5[_0x40ce04(0x97)][_0x40ce04(0x9d)](_0x1d4464)||_0x2c61b5[_0x40ce04(0x73)][_0x40ce04(0x9d)](_0x1d4464);}function _0x1d3194(_0x3e81f7){const _0x4af681=_0x5cdaa5;if(_0x3e81f7&&_0x29d93b(_0x3e81f7,_0x4af681(0x71))&&!_0x29d93b(_0x3e81f7,_0x4af681(0x94))){const _0x393f23=_0x29d93b(_0x3e81f7,_0x4af681(0x71));if(!_0x1a1f92(_0x393f23))return{'node':_0x3e81f7,'type':_0x4af681(0xb8),'id':_0x393f23};}return null;}this[_0x5cdaa5(0x84)]=_0x31d011[_0x5cdaa5(0x89)]((_0xc212c3,_0x17c865)=>({'changes':_0xc212c3,'state':_0x5cdaa5(0x72),'index':_0x17c865}));}}
23
+ const _0x133240=_0x1276;function _0x2366(){const _0x3864d2=['unshift','editor','8DfVpbI','content','previousSibling','changes','612733BEJExI','aiResponseApplier','new','change:content','_getDifferentChangeGroups','1430DMOvNK','node','removedNodeIds','newNodeIds','aiResponseParser','_setCachedContentParts','map','modifiedNodeIds','582804CsBvZg','filter','locale','_getCachedContentParts','14481blGYWd','includes','setChangeGroupState','index','cachedSuggestionContentParts','span','updateChangeGroups','modification','done','2849130iXlbjm','state','interactionId','modified','removed','1988gCmNOx','replyChangeGroupStateUpdated','merge','ai-reply-get-content-parts-group-not-found','isDone','length','getContentParts','sources','convertMarkdownToHTML','areActionsDisabled','changeGroups','find','nextSibling','pending','ai-get-editor-from-context-no-editor','10JVtHTp','destroy','1455513yCENRs','replyContentUpdated','push','every','withoutDiff','12576JOOtbb','type','parsedContent','stopListening','indexOf','forEach','onContentChange','data-unstable','splice','parsedMergedContent','appendContent','color:\x20#808080;\x20font-style:\x20italic','withDiff','cloneNode','parseAndNormalizeHTML','documentContextContent','data-id','set','AI_SUGGESTION_CONTENT_PART_REMOVED','4633518LyyFUd','fire','context'];_0x2366=function(){return _0x3864d2;};return _0x2366();}(function(_0x2ee95e,_0x351a78){const _0x4312e9=_0x1276,_0xb7795d=_0x2ee95e();while(!![]){try{const _0x2c494d=-parseInt(_0x4312e9(0xc1))/0x1+parseInt(_0x4312e9(0xce))/0x2+parseInt(_0x4312e9(0x93))/0x3*(parseInt(_0x4312e9(0xb0))/0x4)+parseInt(_0x4312e9(0x91))/0x5*(-parseInt(_0x4312e9(0xab))/0x6)+-parseInt(_0x4312e9(0xd3))/0x7*(-parseInt(_0x4312e9(0x98))/0x8)+-parseInt(_0x4312e9(0xc5))/0x9*(-parseInt(_0x4312e9(0xb9))/0xa)+-parseInt(_0x4312e9(0xb4))/0xb;if(_0x2c494d===_0x351a78)break;else _0xb7795d['push'](_0xb7795d['shift']());}catch(_0x562cf9){_0xb7795d['push'](_0xb7795d['shift']());}}}(_0x2366,0xd8e6d));import{CKEditorError as _0x35bd97,ObservableMixin as _0x3378d9,uid as _0x184f65}from'ckeditor5/src/utils.js';function _0x1276(_0x23c05b,_0x1e1fd0){const _0x236614=_0x2366();return _0x1276=function(_0x127660,_0x3db56a){_0x127660=_0x127660-0x88;let _0x1d76cb=_0x236614[_0x127660];return _0x1d76cb;},_0x1276(_0x23c05b,_0x1e1fd0);}import{Element as _0x1b7a25,findAll as _0x53c501,getAttribute as _0x1b5aca,getParents as _0x3ddae2,Document as _0x5f4863,parse as _0x30d067,Text as _0x21caf2}from'../utils/htmlparser.js';import{AIResponseParser as _0x69afc0}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x547365}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x5ee9af}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x4401d9}from'../utils/common-translations.js';import{cloneDeep as _0x1ed1eb}from'es-toolkit';export class AIReply extends _0x3378d9(){['id'];[_0x133240(0xd0)];[_0x133240(0x99)];[_0x133240(0x89)]=[];[_0x133240(0x9a)]=new _0x5f4863([]);[_0x133240(0xa1)]=new _0x5f4863([]);[_0x133240(0x8c)]=[];[_0x133240(0x8b)]=!0x1;[_0x133240(0xa7)];[_0x133240(0xbd)];[_0x133240(0xb5)];[_0x133240(0xaf)];[_0x133240(0xc9)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x321266,content:_0x2dd8d7='',isDone:_0x4bbf61=!0x1,interactionId:_0x5d6447,areActionsDisabled:_0xcafcfb,documentContextContent:_0x3b4477,editor:_0x52e1e3,id:_0xda752f}){const _0x1e4424=_0x133240;super(),this['id']=_0xda752f||_0x184f65(),this[_0x1e4424(0xd0)]=_0x5d6447,this[_0x1e4424(0x99)]=_0x321266,this[_0x1e4424(0x8b)]=!!_0xcafcfb,this[_0x1e4424(0xaf)]=_0x52e1e3,this[_0x1e4424(0xbd)]=new _0x69afc0(),this[_0x1e4424(0xb5)]=new _0x547365(),this[_0x1e4424(0xa7)]=_0x30d067(_0x3b4477||''),this[_0x1e4424(0xa9)](_0x1e4424(0xd7),_0x4bbf61),this['on'](_0x1e4424(0xb7),()=>{const _0x23fd89=_0x1e4424;this[_0x23fd89(0x9e)]();}),this[_0x1e4424(0xa9)](_0x1e4424(0xb1),_0x2dd8d7);}[_0x133240(0xa2)](_0x9df1ee){const _0x5d9683=_0x133240;this[_0x5d9683(0xa9)](_0x5d9683(0xb1),this[_0x5d9683(0xb1)]+_0x9df1ee);}[_0x133240(0xcd)](){const _0x4e8e93=_0x133240;this[_0x4e8e93(0xd7)]||(this[_0x4e8e93(0xa9)](_0x4e8e93(0xd7),!0x0),this[_0x4e8e93(0x9e)]());}[_0x133240(0x92)](){const _0x450079=_0x133240;this[_0x450079(0x9b)]();}[_0x133240(0xc7)](_0x14e4ad,_0x46d727){const _0x1a330c=_0x133240;this[_0x1a330c(0x8c)][_0x14e4ad][_0x1a330c(0xcf)]=_0x46d727,this[_0x1a330c(0xac)](_0x1a330c(0xd4),{'reply':this,'index':_0x14e4ad,'state':_0x46d727});}[_0x133240(0x88)]({showDiff:_0x273b0b,groupIndex:_0x4159a5}){const _0x23367b=_0x133240;if(!this[_0x23367b(0xaf)])throw new _0x35bd97(_0x23367b(0x90),null,{'aiReply':this});const _0xb9347f=this[_0x23367b(0xc4)](_0x273b0b,_0x4159a5);if(_0xb9347f)return _0xb9347f;let _0x14971b=[];if(void 0x0===_0x4159a5)_0x14971b=this[_0x23367b(0x8c)];else{const _0x1eb19b=this[_0x23367b(0x8c)][_0x23367b(0x8d)](({index:_0x5cff17})=>_0x5cff17===_0x4159a5);if(!_0x1eb19b)throw new _0x35bd97(_0x23367b(0xd6),null,{'aiReply':this,'groupIndex':_0x4159a5});_0x14971b=[_0x1eb19b];}const _0x17941e=_0x5ee9af({'editor':this[_0x23367b(0xaf)],'showDiff':_0x273b0b,'changeGroups':_0x14971b,'documentContextContent':this[_0x23367b(0xa7)]});return this[_0x23367b(0xbe)](_0x273b0b,_0x17941e),_0x17941e;}[_0x133240(0xc4)](_0x28adb,_0x3a11d6){const _0x311772=_0x133240,_0x59da44=_0x28adb?_0x311772(0xa4):_0x311772(0x97);if(!this[_0x311772(0xc9)][_0x59da44][_0x311772(0xd8)])return null;const _0x3ba1ca=this[_0x311772(0xc9)][_0x59da44];if(void 0x0===_0x3a11d6)return _0x3ba1ca[_0x311772(0xd8)]>0x0&&_0x3ba1ca[_0x311772(0xd8)]!==this[_0x311772(0x8c)][_0x311772(0xd8)]?(this[_0x311772(0xbe)](_0x28adb,null),null):_0x1ed1eb(_0x3ba1ca);{const _0x2f09d8=_0x3ba1ca[_0x311772(0x8d)](({index:_0x147a43})=>_0x147a43===_0x3a11d6);if(_0x2f09d8)return[_0x1ed1eb(_0x2f09d8)];}return null;}[_0x133240(0xbe)](_0x18d0ec,_0x12aa5d){const _0x40f735=_0x133240,_0x12a4a6=_0x18d0ec?_0x40f735(0xa4):_0x40f735(0x97);_0x12aa5d?_0x12aa5d[_0x40f735(0x9d)](_0x32b34d=>{const _0x197ebe=_0x40f735,_0x2ecbc1=this[_0x197ebe(0xc9)][_0x12a4a6],_0x5882cd=_0x2ecbc1[_0x197ebe(0x8d)](({index:_0x539f97})=>_0x539f97===_0x32b34d[_0x197ebe(0xc8)]);if(_0x5882cd){const _0x1b5dd0=_0x2ecbc1[_0x197ebe(0x9c)](_0x5882cd);_0x2ecbc1[_0x197ebe(0xa0)](_0x1b5dd0,0x1,_0x32b34d);}else _0x2ecbc1[_0x197ebe(0x95)](_0x32b34d);}):this[_0x40f735(0xc9)][_0x12a4a6][_0x40f735(0xd8)]=0x0;}[_0x133240(0x9e)](){const _0x113af4=_0x133240;if(_0x113af4(0xcc)===this[_0x113af4(0x99)]){this[_0x113af4(0x9a)]=this[_0x113af4(0xbd)][_0x113af4(0xa6)](this[_0x113af4(0xb1)]);const _0x28212f=this[_0x113af4(0x8c)];this[_0x113af4(0xcb)]();const _0x6ea48f=this[_0x113af4(0xb8)](_0x28212f,this[_0x113af4(0x8c)]);(_0x6ea48f[_0x113af4(0xd8)]||this[_0x113af4(0xd7)])&&(this[_0x113af4(0xac)](_0x113af4(0x94),this,_0x6ea48f),this[_0x113af4(0xc9)][_0x113af4(0xa4)][_0x113af4(0xd8)]=this[_0x113af4(0xc9)][_0x113af4(0x97)][_0x113af4(0xd8)]=0x0);}else this[_0x113af4(0x9a)]=this[_0x113af4(0xbd)][_0x113af4(0x8a)](this[_0x113af4(0xb1)]),this[_0x113af4(0xac)](_0x113af4(0x94),this);}[_0x133240(0xb8)](_0x57733b,_0x17c09e){const _0x212398=_0x133240,_0x3ed0b3=[];for(const _0x1bbfd1 of _0x17c09e){const _0x2230fc=_0x57733b[_0x1bbfd1[_0x212398(0xc8)]];_0x2230fc?_0x2230fc[_0x212398(0xb3)][_0x212398(0xd8)]!==_0x1bbfd1[_0x212398(0xb3)][_0x212398(0xd8)]?_0x3ed0b3[_0x212398(0x95)](_0x1bbfd1):_0x2230fc[_0x212398(0xb3)][_0x212398(0x9d)]((_0x38e251,_0x1c7e97)=>{const _0x149395=_0x212398,_0x1fd4f8=_0x1bbfd1[_0x149395(0xb3)][_0x1c7e97];_0x38e251['id']!==_0x1fd4f8['id']&&_0x3ed0b3[_0x149395(0x95)](_0x1bbfd1);}):_0x3ed0b3[_0x212398(0x95)](_0x1bbfd1);}return _0x3ed0b3;}[_0x133240(0xcb)](){const _0x143f33=_0x133240,_0x282d31=new _0x1b7a25('p',{},[new _0x1b7a25(_0x143f33(0xca),{'style':_0x143f33(0xa3)},[new _0x21caf2(_0x4401d9(this[_0x143f33(0xaf)][_0x143f33(0xc3)],_0x143f33(0xaa)))])]),_0x24925c=this[_0x143f33(0xb5)][_0x143f33(0xd5)](this[_0x143f33(0x9a)],this[_0x143f33(0xa7)][_0x143f33(0xa5)](!0x0),{'markUnstableElements':!this[_0x143f33(0xd7)],'replaceRemovedWith':_0x282d31,'cutAfterLastChange':!this[_0x143f33(0xd7)]});if(!_0x24925c[_0x143f33(0xc0)][_0x143f33(0xd8)]&&!this[_0x143f33(0xd7)])return;this[_0x143f33(0xa1)]=_0x24925c[_0x143f33(0x9a)];let _0x53f16f=[];if(_0x53c501(_0x434d43=>{const _0x3cba3e=_0x143f33,_0x39aceb=_0x1b5aca(_0x434d43,_0x3cba3e(0xa8));if(!_0x39aceb||!_0x197229(_0x39aceb))return!0x1;const _0x190771=[_0x434d43,..._0x3ddae2(_0x434d43)]['at'](-0x2);if(_0x434d43!=_0x190771){const _0x1e4029=_0x1b5aca(_0x190771,_0x3cba3e(0xa8));_0x197229(_0x1e4029)||(_0x53f16f[_0x3cba3e(0x95)]({'node':_0x190771,'id':_0x1e4029,'type':_0x3cba3e(0xd1)}),_0x24925c[_0x3cba3e(0xc0)][_0x3cba3e(0x95)](_0x1e4029));}else _0x24925c[_0x3cba3e(0xc0)][_0x3cba3e(0xc6)](_0x39aceb)?_0x53f16f[_0x3cba3e(0x95)]({'node':_0x434d43,'type':_0x3cba3e(0xd1),'id':_0x39aceb}):_0x24925c[_0x3cba3e(0xbc)][_0x3cba3e(0xc6)](_0x39aceb)?_0x53f16f[_0x3cba3e(0x95)]({'node':_0x434d43,'type':_0x3cba3e(0xb6),'id':_0x39aceb,'anchorId':_0x1b5aca(_0x434d43[_0x3cba3e(0xb2)],_0x3cba3e(0xa8))}):_0x53f16f[_0x3cba3e(0x95)]({'node':_0x434d43,'type':_0x3cba3e(0xd2),'id':_0x39aceb});return!0x0;},this[_0x143f33(0xa1)]),_0x53f16f=_0x53f16f[_0x143f33(0xc2)](({node:_0xc62b01})=>[..._0x3ddae2(_0xc62b01),_0xc62b01][_0x143f33(0x96)](_0x3d3d6b=>!_0x1b5aca(_0x3d3d6b,_0x143f33(0x9f)))),0x0==_0x53f16f[_0x143f33(0xd8)])return;const _0x2a4f97=[[_0x53f16f[0x0]]];for(let _0x50d227=0x1;_0x50d227<_0x53f16f[_0x143f33(0xd8)];_0x50d227++){const _0x1d7da1=_0x2a4f97[_0x2a4f97[_0x143f33(0xd8)]-0x1],_0x4b09e4=_0x1d7da1[_0x1d7da1[_0x143f33(0xd8)]-0x1];_0x53f16f[_0x50d227][_0x143f33(0xba)][_0x143f33(0xb2)]==_0x4b09e4[_0x143f33(0xba)]&&_0x143f33(0xd1)!=_0x53f16f[_0x50d227][_0x143f33(0x99)]&&_0x143f33(0xd1)!=_0x4b09e4[_0x143f33(0x99)]?_0x1d7da1[_0x143f33(0x95)](_0x53f16f[_0x50d227]):_0x2a4f97[_0x143f33(0x95)]([_0x53f16f[_0x50d227]]);}for(const _0xfa927a of _0x2a4f97){const _0x326a7c=_0xfa927a[0x0],_0x51717e=_0xfa927a[_0xfa927a[_0x143f33(0xd8)]-0x1],_0x3e0291=_0x3a6fc4(_0x326a7c[_0x143f33(0xba)][_0x143f33(0xb2)]);_0x3e0291&&_0xfa927a[_0x143f33(0xae)](_0x3e0291);const _0xc2f32e=_0x3a6fc4(_0x51717e[_0x143f33(0xba)][_0x143f33(0x8e)]);_0xc2f32e&&_0xfa927a[_0x143f33(0x95)](_0xc2f32e);}function _0x197229(_0x123fe6){const _0x91b125=_0x143f33;return _0x24925c[_0x91b125(0xc0)][_0x91b125(0xc6)](_0x123fe6)||_0x24925c[_0x91b125(0xbc)][_0x91b125(0xc6)](_0x123fe6)||_0x24925c[_0x91b125(0xbb)][_0x91b125(0xc6)](_0x123fe6);}function _0x3a6fc4(_0x161414){const _0x593cae=_0x143f33;if(_0x161414&&_0x1b5aca(_0x161414,_0x593cae(0xa8))&&!_0x1b5aca(_0x161414,_0x593cae(0x9f))){const _0x1e2ee6=_0x1b5aca(_0x161414,_0x593cae(0xa8));if(!_0x197229(_0x1e2ee6))return{'node':_0x161414,'type':_0x593cae(0xad),'id':_0x1e2ee6};}return null;}this[_0x143f33(0x8c)]=_0x2a4f97[_0x143f33(0xbf)]((_0x19c7f3,_0x33304f)=>({'changes':_0x19c7f3,'state':_0x143f33(0x8f),'index':_0x33304f}));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4efe(_0x28d514,_0x1feeab){const _0xec3e88=_0xec3e();return _0x4efe=function(_0x4efe3b,_0x26cbe5){_0x4efe3b=_0x4efe3b-0x116;let _0x4449d8=_0xec3e88[_0x4efe3b];return _0x4449d8;},_0x4efe(_0x28d514,_0x1feeab);}function _0xec3e(){const _0x2d06c5=['previousSibling','1188080BWACeZ','from','push','includes','_hasWrappedParent','data-removed','data-id','parentNode','_touchedNodesState','108DTZXru','afterbegin','filter','length','merge','childNodes','_markWrappedElements','_findNextElementWithDataId','forEach','26RELGeq','markUnstableElements','225QhSkZK','25600HQqiUD','_removeSpecialComments','trim','data-wrapped-id','true','_findFallbackReferenceNode','_findPrevElementWithDataId','_generateUid','nextSibling','removedIds','_isExistingNode','indexOf','_markLastTagElementUnstable','data-unstable','has','12mpJQFs','_isNewNode','afterend','splice','230fUGYGi','_isDelNode','new-element','markUnstableElementsDepth','_insertNodes','reverse','nodeType','_getNodeDataId','lastChild','169628QzSjcS','_markUnstableElements','cloneNode','_getUid','slice','modifiedIds','1638021PwxQAa','lastTouchedId','match','_storeDeletedElementIds','3JWGfAm','_findReferenceNode','_replaceNode','replaceRemovedWith','beforebegin','cutAfterLastChange','_existingDataIds','map','_isExistingContentComment','12660saHkyr','invalidIds','newIds','1424542XktPEG'];_0xec3e=function(){return _0x2d06c5;};return _0xec3e();}const _0x4da76b=_0x4efe;(function(_0x1d2d17,_0x245222){const _0x3cdb22=_0x4efe,_0x54728e=_0x1d2d17();while(!![]){try{const _0x5e816b=parseInt(_0x3cdb22(0x12a))/0x1*(-parseInt(_0x3cdb22(0x128))/0x2)+parseInt(_0x3cdb22(0x151))/0x3*(-parseInt(_0x3cdb22(0x147))/0x4)+-parseInt(_0x3cdb22(0x13e))/0x5*(-parseInt(_0x3cdb22(0x15a))/0x6)+-parseInt(_0x3cdb22(0x15d))/0x7+parseInt(_0x3cdb22(0x116))/0x8+parseInt(_0x3cdb22(0x11f))/0x9*(-parseInt(_0x3cdb22(0x12b))/0xa)+parseInt(_0x3cdb22(0x14d))/0xb*(parseInt(_0x3cdb22(0x13a))/0xc);if(_0x5e816b===_0x245222)break;else _0x54728e['push'](_0x54728e['shift']());}catch(_0x47f317){_0x54728e['push'](_0x54728e['shift']());}}}(_0xec3e,0x1c0eb));import{ObservableMixin as _0x185acb,uid as _0x247c22}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x2a7f33,findByAttribute as _0xbd672a,getAttribute as _0x34a64d,isComment as _0x141f2f,isTag as _0x5ce0bf,insertElement as _0x4fcf58,moveElement as _0x1c3317,removeElement as _0x5e14b3,replaceElement as _0x15ed01,serialize as _0x5420e9,setAttribute as _0x515741,clone as _0xd9d3eb,findAllComments as _0x336510,getParents as _0x49fa0f,getNodeNestingLevel as _0x373df,areNodesSame as _0x440862,removeElementsAfter as _0x2d35b7}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x185acb(){[_0x4da76b(0x132)];[_0x4da76b(0x11e)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x4da76b(0x157)]=new Set();constructor(_0x572e49){const _0x35c04b=_0x4da76b;super(),this[_0x35c04b(0x132)]=_0x572e49||_0x247c22;}[_0x4da76b(0x123)](_0x260628,_0x1e4937,_0x304167){const _0x40981a=_0x4da76b,_0x1747d9=_0xd9d3eb(_0x260628);if(0x0===_0x1e4937[_0x40981a(0x124)][_0x40981a(0x122)]){const _0x323826=[];return _0x2a7f33(_0x40981a(0x11c),_0x40981a(0x140),_0x1747d9)[_0x40981a(0x127)](_0x2de2bf=>{const _0x327e4a=_0x40981a,_0x246c3e=this[_0x327e4a(0x132)]();_0x515741(_0x2de2bf,_0x327e4a(0x11c),_0x246c3e),_0x323826[_0x327e4a(0x118)](_0x246c3e);}),this[_0x40981a(0x12c)](_0x1747d9),{'parsedContent':_0x1747d9,'newNodeIds':_0x323826,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x304167&&_0x304167[_0x40981a(0x129)]&&this[_0x40981a(0x137)](_0x1747d9),this[_0x40981a(0x11e)][_0x40981a(0x15c)]=[],this[_0x40981a(0x11e)][_0x40981a(0x14c)]=[],this[_0x40981a(0x11e)][_0x40981a(0x134)]=[],this[_0x40981a(0x11e)][_0x40981a(0x15b)]=[],this[_0x40981a(0x11e)][_0x40981a(0x14e)]=null,this[_0x40981a(0x157)]=new Set(_0x2a7f33(_0x40981a(0x11c),null,_0x1e4937)[_0x40981a(0x158)](_0x1e4e43=>_0x34a64d(_0x1e4e43,_0x40981a(0x11c)))[_0x40981a(0x121)](_0x419ce6=>!!_0x419ce6));let _0x477ddc=-0x1,_0x5c5410=!0x1;const _0x527468=_0x1747d9[_0x40981a(0x124)],_0xdbc719=Array[_0x40981a(0x117)](_0x527468)[_0x40981a(0x121)](_0x9bc16e=>!(0x3===_0x9bc16e[_0x40981a(0x144)]&&''===_0x5420e9(_0x9bc16e)[_0x40981a(0x12d)]())),_0x5dbf13=_0xdbc719[_0x40981a(0x122)];for(let _0x20f3d6=0x0;_0x20f3d6<_0x5dbf13;_0x20f3d6++){const _0x3d6bf1=_0xdbc719[_0x20f3d6],_0x5f0a4f=_0xdbc719[_0x20f3d6+0x1];if(this[_0x40981a(0x13b)](_0x3d6bf1)){if(-0x1===_0x477ddc&&(_0x477ddc=_0x20f3d6),this[_0x40981a(0x125)](_0x3d6bf1),!this[_0x40981a(0x13b)](_0x5f0a4f)){const [_0x293be9,_0x30de60]=this[_0x40981a(0x152)](_0x3d6bf1,_0x5c5410,_0x1e4937);if(_0x293be9){const _0x1631c7=Array[_0x40981a(0x117)](_0xdbc719)[_0x40981a(0x14b)](_0x477ddc,_0x20f3d6+0x1);this[_0x40981a(0x142)](_0x293be9,_0x1631c7,_0x30de60),_0x477ddc=-0x1;}}}else{if(this[_0x40981a(0x159)](_0x3d6bf1))_0x5c5410=!0x0;else{if(this[_0x40981a(0x135)](_0x3d6bf1)){const _0x969ddc=_0x34a64d(_0x3d6bf1,_0x40981a(0x11c));if(_0x969ddc&&this[_0x40981a(0x157)][_0x40981a(0x139)](_0x969ddc)){const _0x54410d=_0xbd672a(_0x40981a(0x11c),_0x969ddc,_0x1e4937);this[_0x40981a(0x153)](_0x54410d,_0x3d6bf1);}if(this[_0x40981a(0x11e)][_0x40981a(0x134)][_0x40981a(0x119)](_0x969ddc)){const _0x7e0bda=this[_0x40981a(0x11e)][_0x40981a(0x134)][_0x40981a(0x136)](_0x969ddc);this[_0x40981a(0x11e)][_0x40981a(0x134)][_0x40981a(0x13d)](_0x7e0bda,0x1);}}else{if(this[_0x40981a(0x13f)](_0x3d6bf1)){const _0x1300ec=_0x34a64d(_0x3d6bf1,_0x40981a(0x11c));this[_0x40981a(0x11e)][_0x40981a(0x14c)][_0x40981a(0x119)](_0x1300ec)||this[_0x40981a(0x150)](_0x3d6bf1);}}}}}for(const _0xd8c97a of this[_0x40981a(0x11e)][_0x40981a(0x134)]){const _0x37d1a8=_0xbd672a(_0x40981a(0x11c),_0xd8c97a,_0x1e4937);if(_0x37d1a8){if(_0x304167&&_0x304167[_0x40981a(0x154)]){this[_0x40981a(0x11e)][_0x40981a(0x14e)]=_0xd8c97a;const _0x4fabd6=_0x304167[_0x40981a(0x154)][_0x40981a(0x149)](!0x0);_0x515741(_0x4fabd6,_0x40981a(0x11c),_0xd8c97a),_0x515741(_0x4fabd6,_0x40981a(0x11b),_0x40981a(0x12f)),_0x15ed01(_0x37d1a8,_0x4fabd6);}else _0x5e14b3(_0x37d1a8);}}if(_0x2a7f33(_0x40981a(0x12e),null,_0x1e4937)[_0x40981a(0x127)](_0x1128d4=>{const _0x1455e3=_0x40981a,_0x34c965=_0x34a64d(_0x1128d4,_0x1455e3(0x12e)),_0x4d4995=_0xbd672a(_0x1455e3(0x11c),_0x34c965,_0x1e4937);_0x4d4995&&_0x1c3317(_0x4d4995,_0x1128d4);}),_0x2a7f33(_0x40981a(0x11c),_0x40981a(0x140),_0x1e4937)[_0x40981a(0x127)](_0x4f0d98=>{const _0x3e6f1d=_0x40981a,_0x15c2bc=this[_0x3e6f1d(0x14a)](_0x4f0d98);_0x515741(_0x4f0d98,_0x3e6f1d(0x11c),_0x15c2bc),this[_0x3e6f1d(0x11e)][_0x3e6f1d(0x15c)][_0x3e6f1d(0x118)](_0x15c2bc);}),this[_0x40981a(0x12c)](_0x1e4937),_0x304167&&_0x304167[_0x40981a(0x129)]&&this[_0x40981a(0x148)](_0x1e4937,_0x304167[_0x40981a(0x141)]||0x0),_0x304167&&_0x304167[_0x40981a(0x156)]&&this[_0x40981a(0x11e)][_0x40981a(0x14e)]){let _0x116ef9=_0xbd672a(_0x40981a(0x11c),this[_0x40981a(0x11e)][_0x40981a(0x14e)],_0x1e4937);for(;_0x116ef9;)_0x2d35b7(_0x116ef9),_0x116ef9=_0x116ef9[_0x40981a(0x11d)];}return{'parsedContent':_0x1e4937,'newNodeIds':this[_0x40981a(0x11e)][_0x40981a(0x15c)],'modifiedNodeIds':this[_0x40981a(0x11e)][_0x40981a(0x14c)],'removedNodeIds':this[_0x40981a(0x11e)][_0x40981a(0x134)]};}[_0x4da76b(0x142)](_0x20f716,_0x358d96,_0x210020){const _0x505fe5=_0x4da76b;for(const _0x99e0ae of _0x358d96){const _0x29fe11=this[_0x505fe5(0x14a)](_0x99e0ae);_0x515741(_0x99e0ae,_0x505fe5(0x11c),_0x29fe11),this[_0x505fe5(0x11e)][_0x505fe5(0x15c)][_0x505fe5(0x118)](_0x29fe11),this[_0x505fe5(0x11e)][_0x505fe5(0x14e)]=_0x29fe11;}const _0x5f3374=_0x505fe5(0x120)===_0x210020||_0x505fe5(0x13c)===_0x210020?_0x358d96[_0x505fe5(0x143)]():_0x358d96;for(const _0x1db774 of _0x5f3374)_0x4fcf58(_0x20f716,_0x1db774,_0x210020);}[_0x4da76b(0x153)](_0x3baee3,_0x49f329){const _0x2230f1=_0x4da76b;if(!_0x3baee3)return;if(_0x440862(_0x3baee3,_0x49f329))return;const _0x42f522=this[_0x2230f1(0x14a)](_0x3baee3);_0x515741(_0x49f329,_0x2230f1(0x11c),_0x42f522),this[_0x2230f1(0x11e)][_0x2230f1(0x14c)][_0x2230f1(0x118)](_0x42f522),this[_0x2230f1(0x11e)][_0x2230f1(0x14e)]=_0x42f522,_0x15ed01(_0x3baee3,_0x49f329[_0x2230f1(0x149)](!0x0));}[_0x4da76b(0x152)](_0x8822d2,_0x407085,_0x1a20b4){const _0x236404=_0x4da76b,_0x3674fe=this[_0x236404(0x131)](_0x8822d2,!0x1);if(_0x3674fe){const _0x54b5bc=this[_0x236404(0x145)](_0x3674fe),_0x12bca9=_0xbd672a(_0x236404(0x11c),_0x54b5bc,_0x1a20b4);if(_0x12bca9)return[_0x12bca9,_0x236404(0x13c)];this[_0x236404(0x11e)][_0x236404(0x15b)][_0x236404(0x118)](_0x54b5bc);}const _0x4489dd=this[_0x236404(0x126)](_0x8822d2,!0x1);if(_0x4489dd){const _0x481177=this[_0x236404(0x145)](_0x4489dd),_0xf6e94e=_0xbd672a(_0x236404(0x11c),_0x481177,_0x1a20b4);if(_0xf6e94e)return[_0xf6e94e,_0x236404(0x155)];this[_0x236404(0x11e)][_0x236404(0x15b)][_0x236404(0x118)](_0x481177);}return _0x407085?_0x8822d2[_0x236404(0x133)]?this[_0x236404(0x130)](_0x8822d2,_0x1a20b4):[_0x1a20b4[_0x236404(0x124)][_0x1a20b4[_0x236404(0x124)][_0x236404(0x122)]-0x1],_0x236404(0x13c)]:[_0x1a20b4[_0x236404(0x124)][0x0],_0x236404(0x155)];}[_0x4da76b(0x130)](_0x28b901,_0x5b1df1){const _0x244d12=_0x4da76b,_0x54cbb7=[],_0x2c5db5=this[_0x244d12(0x131)](_0x28b901,!0x0);if(_0x2c5db5){const _0x52ba6d=this[_0x244d12(0x145)](_0x2c5db5),_0x34059a=_0xbd672a(_0x244d12(0x11c),_0x52ba6d,_0x5b1df1);_0x34059a&&_0x54cbb7[_0x244d12(0x118)]([_0x34059a,_0x244d12(0x13c)]);}const _0x458181=this[_0x244d12(0x126)](_0x28b901,!0x0);if(_0x458181){const _0x6b7215=this[_0x244d12(0x145)](_0x458181),_0x555c91=_0xbd672a(_0x244d12(0x11c),_0x6b7215,_0x5b1df1);_0x555c91&&_0x54cbb7[_0x244d12(0x118)]([_0x555c91,_0x244d12(0x155)]);}if(_0x54cbb7[_0x244d12(0x122)]>0x1)return _0x373df(_0x54cbb7[0x0][0x0])<=_0x373df(_0x54cbb7[0x1][0x0])?_0x54cbb7[0x0]:_0x54cbb7[0x1];return 0x1===_0x54cbb7[_0x244d12(0x122)]?_0x54cbb7[0x0]:[_0x5b1df1[_0x244d12(0x146)],_0x244d12(0x13c)];}[_0x4da76b(0x126)](_0x45d5c2,_0x33b469){const _0x486d30=_0x4da76b;let _0x39c416=_0x45d5c2[_0x486d30(0x133)],_0x53a74d=null,_0x4360a0=!0x1;for(;_0x39c416;){if(_0x141f2f(_0x39c416)){if(this[_0x486d30(0x13f)](_0x39c416)&&(_0x53a74d=_0x39c416),this[_0x486d30(0x159)](_0x39c416)&&_0x33b469&&!_0x4360a0){_0x4360a0=!0x0,_0x39c416=_0x39c416[_0x486d30(0x133)];continue;}break;}const _0xf2abc3=_0x34a64d(_0x39c416,_0x486d30(0x11c));if(_0xf2abc3&&_0x486d30(0x140)!==_0xf2abc3&&this[_0x486d30(0x157)][_0x486d30(0x139)](_0xf2abc3)){_0x53a74d=_0x39c416;break;}_0x39c416=_0x39c416[_0x486d30(0x133)];}return _0x53a74d;}[_0x4da76b(0x131)](_0x341ca4,_0x543209){const _0x69eb97=_0x4da76b;let _0x51db6b=_0x341ca4[_0x69eb97(0x15e)],_0x4b7caa=null,_0x3e944e=!0x1;for(;_0x51db6b;){if(_0x141f2f(_0x51db6b)){if(this[_0x69eb97(0x13f)](_0x51db6b)&&(_0x4b7caa=_0x51db6b),this[_0x69eb97(0x159)](_0x51db6b)&&_0x543209&&!_0x3e944e){_0x3e944e=!0x0,_0x51db6b=_0x51db6b[_0x69eb97(0x15e)];continue;}break;}const _0x37201e=_0x34a64d(_0x51db6b,_0x69eb97(0x11c));if(_0x37201e&&_0x69eb97(0x140)!==_0x37201e&&this[_0x69eb97(0x157)][_0x69eb97(0x139)](_0x37201e)){_0x4b7caa=_0x51db6b;break;}_0x51db6b=_0x51db6b[_0x69eb97(0x15e)];}return _0x4b7caa;}[_0x4da76b(0x125)](_0x4e6c46){const _0x39c680=_0x4da76b;_0x5ce0bf(_0x4e6c46)&&_0x2a7f33(_0x39c680(0x11c),null,_0x4e6c46)[_0x39c680(0x127)](_0x2d341c=>{const _0x265de5=_0x39c680;if(this[_0x265de5(0x135)](_0x2d341c)&&!this[_0x265de5(0x11a)](_0x2d341c)){const _0x247dee=_0x34a64d(_0x2d341c,_0x265de5(0x11c));_0x515741(_0x2d341c,_0x265de5(0x12e),_0x247dee),_0x515741(_0x2d341c,_0x265de5(0x11c),null);}});}[_0x4da76b(0x145)](_0x48a935){const _0x30b15c=_0x4da76b;if(!_0x48a935)return null;if(_0x5ce0bf(_0x48a935))return _0x34a64d(_0x48a935,_0x30b15c(0x11c));if(_0x141f2f(_0x48a935)){const _0x4ee80b=_0x5420e9(_0x48a935)[_0x30b15c(0x14f)](/removed[\s*-]data-id="([^"]+)"/);if(_0x4ee80b&&_0x4ee80b[0x1])return _0x4ee80b[0x1];}return null;}[_0x4da76b(0x150)](_0x35d123){const _0x37af7f=_0x4da76b;if(_0x141f2f(_0x35d123)){const _0x5290fd=_0x5420e9(_0x35d123)[_0x37af7f(0x14f)](/removed[\s*-]data-id="([^"]+)"/);_0x5290fd&&_0x5290fd[0x1]&&this[_0x37af7f(0x11e)][_0x37af7f(0x134)][_0x37af7f(0x118)](_0x5290fd[0x1]);}}[_0x4da76b(0x14a)](_0x493c90){const _0x1c01d2=_0x4da76b;return this[_0x1c01d2(0x135)](_0x493c90)?_0x34a64d(_0x493c90,_0x1c01d2(0x11c)):this[_0x1c01d2(0x132)]();}[_0x4da76b(0x12c)](_0x2fd859){const _0x2df66f=_0x4da76b;_0x336510(_0x2fd859)[_0x2df66f(0x121)](_0x332c1b=>this[_0x2df66f(0x13f)](_0x332c1b)||this[_0x2df66f(0x159)](_0x332c1b))[_0x2df66f(0x127)](_0x143c33=>{_0x5e14b3(_0x143c33);});}[_0x4da76b(0x137)](_0x42f107){const _0x1988aa=_0x4da76b,_0x4405b2=_0x42f107[_0x1988aa(0x124)],_0x4a836a=_0x4405b2[_0x4405b2[_0x1988aa(0x122)]-0x1];_0x4a836a&&_0x5ce0bf(_0x4a836a)&&_0x515741(_0x4a836a,_0x1988aa(0x138),_0x1988aa(0x12f));}[_0x4da76b(0x148)](_0x3d1662,_0x387c94){const _0x1f37a2=_0x4da76b,_0x4f3f35=_0xbd672a(_0x1f37a2(0x138),_0x1f37a2(0x12f),_0x3d1662);if(!_0x4f3f35)return;const _0x33e537=_0x49fa0f(_0x4f3f35)[_0x1f37a2(0x14b)](0x0,-0x1),_0x20b02e=_0x33e537[_0x1f37a2(0x122)];let _0x4851de=_0x4f3f35;if(_0x20b02e>_0x387c94){let _0x4c5d86=_0x20b02e,_0x40c76c=null;for(;_0x4c5d86>_0x387c94&&_0x4c5d86>=0x0;)_0x4c5d86--,_0x40c76c=_0x33e537[_0x4c5d86];_0x40c76c&&(_0x4851de=_0x40c76c,_0x515741(_0x4f3f35,_0x1f37a2(0x138),null),_0x515741(_0x40c76c,_0x1f37a2(0x138),_0x1f37a2(0x12f)));}else{if(_0x20b02e<_0x387c94){let _0x14d84e=_0x20b02e,_0x464d2e=_0x4f3f35;for(;_0x14d84e<_0x387c94;){const _0x2bccfb=_0x464d2e[_0x1f37a2(0x124)][_0x1f37a2(0x121)](_0x3670eb=>_0x5ce0bf(_0x3670eb));if(0x0===_0x2bccfb[_0x1f37a2(0x122)])break;_0x14d84e++,_0x464d2e=_0x2bccfb[_0x2bccfb[_0x1f37a2(0x122)]-0x1];}_0x464d2e&&(_0x4851de=_0x464d2e,_0x515741(_0x4f3f35,_0x1f37a2(0x138),null),_0x515741(_0x464d2e,_0x1f37a2(0x138),_0x1f37a2(0x12f)));}}let _0x4afef4=_0x4851de;for(;_0x4afef4;){for(;_0x4afef4[_0x1f37a2(0x133)];)_0x4afef4=_0x4afef4[_0x1f37a2(0x133)],_0x5ce0bf(_0x4afef4)&&_0x515741(_0x4afef4,_0x1f37a2(0x138),_0x1f37a2(0x12f));_0x4afef4=_0x4afef4[_0x1f37a2(0x11d)];}}[_0x4da76b(0x13b)](_0x49d001){const _0x18eba5=_0x4da76b;return Boolean(_0x18eba5(0x140)===_0x34a64d(_0x49d001,_0x18eba5(0x11c)));}[_0x4da76b(0x135)](_0x4bf311){const _0x97fa06=_0x4da76b;return Boolean((_0x34a64d(_0x4bf311,_0x97fa06(0x11c))||'')[_0x97fa06(0x122)]>0x0&&_0x97fa06(0x140)!==_0x34a64d(_0x4bf311,_0x97fa06(0x11c)));}[_0x4da76b(0x13f)](_0x518129){const _0x598759=_0x4da76b;return!!_0x518129&&Boolean(_0x141f2f(_0x518129)&&_0x5420e9(_0x518129)[_0x598759(0x14f)](/removed[\s*-]data-id="[^"]+"/));}[_0x4da76b(0x11a)](_0x188846){const _0x25e529=_0x4da76b;let _0x4ea6c7=_0x188846[_0x25e529(0x11d)];for(;_0x4ea6c7;){if(_0x34a64d(_0x4ea6c7,_0x25e529(0x12e)))return!0x0;_0x4ea6c7=_0x4ea6c7[_0x25e529(0x11d)];}return!0x1;}[_0x4da76b(0x159)](_0x40aa85){const _0x3b1d1b=_0x4da76b;return Boolean(_0x141f2f(_0x40aa85)&&_0x5420e9(_0x40aa85)[_0x3b1d1b(0x14f)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ const _0x2fb9aa=_0x42aa;(function(_0x1cbdc4,_0x435651){const _0x17fb1f=_0x42aa,_0x286f4b=_0x1cbdc4();while(!![]){try{const _0xc50e0=parseInt(_0x17fb1f(0x1c2))/0x1*(-parseInt(_0x17fb1f(0x1d9))/0x2)+parseInt(_0x17fb1f(0x1cb))/0x3*(parseInt(_0x17fb1f(0x1dc))/0x4)+-parseInt(_0x17fb1f(0x1ef))/0x5+parseInt(_0x17fb1f(0x1e6))/0x6+-parseInt(_0x17fb1f(0x1d5))/0x7*(-parseInt(_0x17fb1f(0x1b1))/0x8)+parseInt(_0x17fb1f(0x1dd))/0x9*(parseInt(_0x17fb1f(0x1bf))/0xa)+-parseInt(_0x17fb1f(0x1cd))/0xb;if(_0xc50e0===_0x435651)break;else _0x286f4b['push'](_0x286f4b['shift']());}catch(_0x1b8d7d){_0x286f4b['push'](_0x286f4b['shift']());}}}(_0x177e,0x6c2f8));function _0x42aa(_0x21c908,_0x2edb70){const _0x177efd=_0x177e();return _0x42aa=function(_0x42aadb,_0x4af54c){_0x42aadb=_0x42aadb-0x1a9;let _0x445882=_0x177efd[_0x42aadb];return _0x445882;},_0x42aa(_0x21c908,_0x2edb70);}import{ObservableMixin as _0x5c429e,uid as _0x39de47}from'ckeditor5/src/utils.js';function _0x177e(){const _0x52c8c3=['map','new-element','slice','664728erQtma','_existingDataIds','_insertNodes','_generateUid','markUnstableElementsDepth','_storeDeletedElementIds','afterbegin','_findPrevElementWithDataId','_findNextElementWithDataId','1634100vMFbbi','data-removed','nodeType','data-unstable','includes','_isExistingNode','_markUnstableElements','match','_findReferenceNode','lastChild','8lhDFBS','beforebegin','removedIds','invalidIds','indexOf','merge','_touchedNodesState','_markLastTagElementUnstable','afterend','length','has','_findFallbackReferenceNode','_isDelNode','cloneNode','249950SGJvGJ','_removeSpecialComments','from','190367wPCHbi','_hasWrappedParent','replaceRemovedWith','reverse','_markWrappedElements','forEach','data-wrapped-id','nextSibling','_isExistingContentComment','1108284dUCNOs','trim','5550248pcUNDM','childNodes','newIds','lastTouchedId','true','markUnstableElements','modifiedIds','cutAfterLastChange','4793089XaPgxy','data-id','splice','_getNodeDataId','2RxqFXv','filter','previousSibling','4WZULZr','108wRAIqF','parentNode','_isNewNode','_getUid','push','_replaceNode'];_0x177e=function(){return _0x52c8c3;};return _0x177e();}import{findAllByAttribute as _0x36c99f,findByAttribute as _0x357e2d,getAttribute as _0x2ad3fd,isComment as _0x36eef7,isTag as _0x328a22,insertElement as _0x466d82,moveElement as _0x574358,removeElement as _0x149f9c,replaceElement as _0x2ef022,serialize as _0x5a9b3b,setAttribute as _0x8dee3c,clone as _0x3880b6,findAllComments as _0x10a01b,getParents as _0x5ace6b,getNodeNestingLevel as _0x58d003,areNodesSame as _0x43e662,removeElementsAfter as _0x159905}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x5c429e(){[_0x2fb9aa(0x1e9)];[_0x2fb9aa(0x1b7)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x2fb9aa(0x1e7)]=new Set();constructor(_0x29124b){const _0x16a889=_0x2fb9aa;super(),this[_0x16a889(0x1e9)]=_0x29124b||_0x39de47;}[_0x2fb9aa(0x1b6)](_0x3215ab,_0xf33d81,_0x423b85){const _0x3fb2de=_0x2fb9aa,_0x1e74ba=_0x3880b6(_0x3215ab);if(0x0===_0xf33d81[_0x3fb2de(0x1ce)][_0x3fb2de(0x1ba)]){const _0x393375=[];return _0x36c99f(_0x3fb2de(0x1d6),_0x3fb2de(0x1e4),_0x1e74ba)[_0x3fb2de(0x1c7)](_0x13ac02=>{const _0x1371f9=_0x3fb2de,_0xd91d63=this[_0x1371f9(0x1e9)]();_0x8dee3c(_0x13ac02,_0x1371f9(0x1d6),_0xd91d63),_0x393375[_0x1371f9(0x1e1)](_0xd91d63);}),this[_0x3fb2de(0x1c0)](_0x1e74ba),{'parsedContent':_0x1e74ba,'newNodeIds':_0x393375,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x423b85&&_0x423b85[_0x3fb2de(0x1d2)]&&this[_0x3fb2de(0x1b8)](_0x1e74ba),this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1cf)]=[],this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d3)]=[],this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b3)]=[],this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b4)]=[],this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d0)]=null,this[_0x3fb2de(0x1e7)]=new Set(_0x36c99f(_0x3fb2de(0x1d6),null,_0xf33d81)[_0x3fb2de(0x1e3)](_0x50787f=>_0x2ad3fd(_0x50787f,_0x3fb2de(0x1d6)))[_0x3fb2de(0x1da)](_0x1e9167=>!!_0x1e9167));let _0x28a153=-0x1,_0x443618=!0x1;const _0x500c25=_0x1e74ba[_0x3fb2de(0x1ce)],_0x167230=Array[_0x3fb2de(0x1c1)](_0x500c25)[_0x3fb2de(0x1da)](_0x3cf47b=>!(0x3===_0x3cf47b[_0x3fb2de(0x1a9)]&&''===_0x5a9b3b(_0x3cf47b)[_0x3fb2de(0x1cc)]())),_0x4a2335=_0x167230[_0x3fb2de(0x1ba)];for(let _0x53a65a=0x0;_0x53a65a<_0x4a2335;_0x53a65a++){const _0x33b615=_0x167230[_0x53a65a],_0x24cacd=_0x167230[_0x53a65a+0x1];if(this[_0x3fb2de(0x1df)](_0x33b615)){if(-0x1===_0x28a153&&(_0x28a153=_0x53a65a),this[_0x3fb2de(0x1c6)](_0x33b615),!this[_0x3fb2de(0x1df)](_0x24cacd)){const [_0x4f5ee2,_0x541e1e]=this[_0x3fb2de(0x1af)](_0x33b615,_0x443618,_0xf33d81);if(_0x4f5ee2){const _0x458df6=Array[_0x3fb2de(0x1c1)](_0x167230)[_0x3fb2de(0x1e5)](_0x28a153,_0x53a65a+0x1);this[_0x3fb2de(0x1e8)](_0x4f5ee2,_0x458df6,_0x541e1e),_0x28a153=-0x1;}}}else{if(this[_0x3fb2de(0x1ca)](_0x33b615))_0x443618=!0x0;else{if(this[_0x3fb2de(0x1ac)](_0x33b615)){const _0x36aa24=_0x2ad3fd(_0x33b615,_0x3fb2de(0x1d6));if(_0x36aa24&&this[_0x3fb2de(0x1e7)][_0x3fb2de(0x1bb)](_0x36aa24)){const _0xe62f5f=_0x357e2d(_0x3fb2de(0x1d6),_0x36aa24,_0xf33d81);this[_0x3fb2de(0x1e2)](_0xe62f5f,_0x33b615);}if(this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b3)][_0x3fb2de(0x1ab)](_0x36aa24)){const _0x28700a=this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b3)][_0x3fb2de(0x1b5)](_0x36aa24);this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b3)][_0x3fb2de(0x1d7)](_0x28700a,0x1);}}else{if(this[_0x3fb2de(0x1bd)](_0x33b615)){const _0x2231e8=_0x2ad3fd(_0x33b615,_0x3fb2de(0x1d6));this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d3)][_0x3fb2de(0x1ab)](_0x2231e8)||this[_0x3fb2de(0x1eb)](_0x33b615);}}}}}for(const _0x5abcd6 of this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b3)]){const _0x397475=_0x357e2d(_0x3fb2de(0x1d6),_0x5abcd6,_0xf33d81);if(_0x397475){if(_0x423b85&&_0x423b85[_0x3fb2de(0x1c4)]){this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d0)]=_0x5abcd6;const _0x170b70=_0x423b85[_0x3fb2de(0x1c4)][_0x3fb2de(0x1be)](!0x0);_0x8dee3c(_0x170b70,_0x3fb2de(0x1d6),_0x5abcd6),_0x8dee3c(_0x170b70,_0x3fb2de(0x1f0),_0x3fb2de(0x1d1)),_0x2ef022(_0x397475,_0x170b70);}else _0x149f9c(_0x397475);}}if(_0x36c99f(_0x3fb2de(0x1c8),null,_0xf33d81)[_0x3fb2de(0x1c7)](_0x1cb67d=>{const _0x48d2a2=_0x3fb2de,_0x3a86ab=_0x2ad3fd(_0x1cb67d,_0x48d2a2(0x1c8)),_0x5d4c19=_0x357e2d(_0x48d2a2(0x1d6),_0x3a86ab,_0xf33d81);_0x5d4c19&&_0x574358(_0x5d4c19,_0x1cb67d);}),_0x36c99f(_0x3fb2de(0x1d6),_0x3fb2de(0x1e4),_0xf33d81)[_0x3fb2de(0x1c7)](_0x52323a=>{const _0x348e81=_0x3fb2de,_0x3eec3f=this[_0x348e81(0x1e0)](_0x52323a);_0x8dee3c(_0x52323a,_0x348e81(0x1d6),_0x3eec3f),this[_0x348e81(0x1b7)][_0x348e81(0x1cf)][_0x348e81(0x1e1)](_0x3eec3f);}),this[_0x3fb2de(0x1c0)](_0xf33d81),_0x423b85&&_0x423b85[_0x3fb2de(0x1d2)]&&this[_0x3fb2de(0x1ad)](_0xf33d81,_0x423b85[_0x3fb2de(0x1ea)]||0x0),_0x423b85&&_0x423b85[_0x3fb2de(0x1d4)]&&this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d0)]){let _0x4fa3ab=_0x357e2d(_0x3fb2de(0x1d6),this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d0)],_0xf33d81);for(;_0x4fa3ab;)_0x159905(_0x4fa3ab),_0x4fa3ab=_0x4fa3ab[_0x3fb2de(0x1de)];}return{'parsedContent':_0xf33d81,'newNodeIds':this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1cf)],'modifiedNodeIds':this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d3)],'removedNodeIds':this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b3)]};}[_0x2fb9aa(0x1e8)](_0x51ea49,_0x17a60d,_0x3f2240){const _0x3ecb8f=_0x2fb9aa;for(const _0xe03194 of _0x17a60d){const _0x190284=this[_0x3ecb8f(0x1e0)](_0xe03194);_0x8dee3c(_0xe03194,_0x3ecb8f(0x1d6),_0x190284),this[_0x3ecb8f(0x1b7)][_0x3ecb8f(0x1cf)][_0x3ecb8f(0x1e1)](_0x190284),this[_0x3ecb8f(0x1b7)][_0x3ecb8f(0x1d0)]=_0x190284;}const _0x24fbe9=_0x3ecb8f(0x1ec)===_0x3f2240||_0x3ecb8f(0x1b9)===_0x3f2240?_0x17a60d[_0x3ecb8f(0x1c5)]():_0x17a60d;for(const _0xd4a2dd of _0x24fbe9)_0x466d82(_0x51ea49,_0xd4a2dd,_0x3f2240);}[_0x2fb9aa(0x1e2)](_0xacbd92,_0x2fb5e2){const _0x2eff93=_0x2fb9aa;if(!_0xacbd92)return;if(_0x43e662(_0xacbd92,_0x2fb5e2))return;const _0x275a6a=this[_0x2eff93(0x1e0)](_0xacbd92);_0x8dee3c(_0x2fb5e2,_0x2eff93(0x1d6),_0x275a6a),this[_0x2eff93(0x1b7)][_0x2eff93(0x1d3)][_0x2eff93(0x1e1)](_0x275a6a),this[_0x2eff93(0x1b7)][_0x2eff93(0x1d0)]=_0x275a6a,_0x2ef022(_0xacbd92,_0x2fb5e2[_0x2eff93(0x1be)](!0x0));}[_0x2fb9aa(0x1af)](_0x16c52e,_0x13e639,_0x3f5154){const _0x362dbe=_0x2fb9aa,_0x80903a=this[_0x362dbe(0x1ed)](_0x16c52e,!0x1);if(_0x80903a){const _0x2396bb=this[_0x362dbe(0x1d8)](_0x80903a),_0x49b439=_0x357e2d(_0x362dbe(0x1d6),_0x2396bb,_0x3f5154);if(_0x49b439)return[_0x49b439,_0x362dbe(0x1b9)];this[_0x362dbe(0x1b7)][_0x362dbe(0x1b4)][_0x362dbe(0x1e1)](_0x2396bb);}const _0x5f3859=this[_0x362dbe(0x1ee)](_0x16c52e,!0x1);if(_0x5f3859){const _0x1fd63e=this[_0x362dbe(0x1d8)](_0x5f3859),_0x28b3e9=_0x357e2d(_0x362dbe(0x1d6),_0x1fd63e,_0x3f5154);if(_0x28b3e9)return[_0x28b3e9,_0x362dbe(0x1b2)];this[_0x362dbe(0x1b7)][_0x362dbe(0x1b4)][_0x362dbe(0x1e1)](_0x1fd63e);}return _0x13e639?_0x16c52e[_0x362dbe(0x1c9)]?this[_0x362dbe(0x1bc)](_0x16c52e,_0x3f5154):[_0x3f5154[_0x362dbe(0x1ce)][_0x3f5154[_0x362dbe(0x1ce)][_0x362dbe(0x1ba)]-0x1],_0x362dbe(0x1b9)]:[_0x3f5154[_0x362dbe(0x1ce)][0x0],_0x362dbe(0x1b2)];}[_0x2fb9aa(0x1bc)](_0x302b2b,_0x3fd188){const _0x44ff4a=_0x2fb9aa,_0x3c1ae4=[],_0x1c73a9=this[_0x44ff4a(0x1ed)](_0x302b2b,!0x0);if(_0x1c73a9){const _0x17ce32=this[_0x44ff4a(0x1d8)](_0x1c73a9),_0x10a23f=_0x357e2d(_0x44ff4a(0x1d6),_0x17ce32,_0x3fd188);_0x10a23f&&_0x3c1ae4[_0x44ff4a(0x1e1)]([_0x10a23f,_0x44ff4a(0x1b9)]);}const _0x30d5a5=this[_0x44ff4a(0x1ee)](_0x302b2b,!0x0);if(_0x30d5a5){const _0x530940=this[_0x44ff4a(0x1d8)](_0x30d5a5),_0x3b8dc3=_0x357e2d(_0x44ff4a(0x1d6),_0x530940,_0x3fd188);_0x3b8dc3&&_0x3c1ae4[_0x44ff4a(0x1e1)]([_0x3b8dc3,_0x44ff4a(0x1b2)]);}if(_0x3c1ae4[_0x44ff4a(0x1ba)]>0x1)return _0x58d003(_0x3c1ae4[0x0][0x0])<=_0x58d003(_0x3c1ae4[0x1][0x0])?_0x3c1ae4[0x0]:_0x3c1ae4[0x1];return 0x1===_0x3c1ae4[_0x44ff4a(0x1ba)]?_0x3c1ae4[0x0]:[_0x3fd188[_0x44ff4a(0x1b0)],_0x44ff4a(0x1b9)];}[_0x2fb9aa(0x1ee)](_0x28240a,_0x58ec6b){const _0x1b507a=_0x2fb9aa;let _0x42eff=_0x28240a[_0x1b507a(0x1c9)],_0x5ceb86=null,_0x42e855=!0x1;for(;_0x42eff;){if(_0x36eef7(_0x42eff)){if(this[_0x1b507a(0x1bd)](_0x42eff)&&(_0x5ceb86=_0x42eff),this[_0x1b507a(0x1ca)](_0x42eff)&&_0x58ec6b&&!_0x42e855){_0x42e855=!0x0,_0x42eff=_0x42eff[_0x1b507a(0x1c9)];continue;}break;}const _0x1a53dc=_0x2ad3fd(_0x42eff,_0x1b507a(0x1d6));if(_0x1a53dc&&_0x1b507a(0x1e4)!==_0x1a53dc&&this[_0x1b507a(0x1e7)][_0x1b507a(0x1bb)](_0x1a53dc)){_0x5ceb86=_0x42eff;break;}_0x42eff=_0x42eff[_0x1b507a(0x1c9)];}return _0x5ceb86;}[_0x2fb9aa(0x1ed)](_0x52c262,_0x302f12){const _0x5ebb7a=_0x2fb9aa;let _0x238715=_0x52c262[_0x5ebb7a(0x1db)],_0x1bc8a1=null,_0x3aae12=!0x1;for(;_0x238715;){if(_0x36eef7(_0x238715)){if(this[_0x5ebb7a(0x1bd)](_0x238715)&&(_0x1bc8a1=_0x238715),this[_0x5ebb7a(0x1ca)](_0x238715)&&_0x302f12&&!_0x3aae12){_0x3aae12=!0x0,_0x238715=_0x238715[_0x5ebb7a(0x1db)];continue;}break;}const _0x599c25=_0x2ad3fd(_0x238715,_0x5ebb7a(0x1d6));if(_0x599c25&&_0x5ebb7a(0x1e4)!==_0x599c25&&this[_0x5ebb7a(0x1e7)][_0x5ebb7a(0x1bb)](_0x599c25)){_0x1bc8a1=_0x238715;break;}_0x238715=_0x238715[_0x5ebb7a(0x1db)];}return _0x1bc8a1;}[_0x2fb9aa(0x1c6)](_0x3419e7){const _0x2eca8f=_0x2fb9aa;_0x328a22(_0x3419e7)&&_0x36c99f(_0x2eca8f(0x1d6),null,_0x3419e7)[_0x2eca8f(0x1c7)](_0x13ee5e=>{const _0x2debd6=_0x2eca8f;if(this[_0x2debd6(0x1ac)](_0x13ee5e)&&!this[_0x2debd6(0x1c3)](_0x13ee5e)){const _0x291729=_0x2ad3fd(_0x13ee5e,_0x2debd6(0x1d6));_0x8dee3c(_0x13ee5e,_0x2debd6(0x1c8),_0x291729),_0x8dee3c(_0x13ee5e,_0x2debd6(0x1d6),null);}});}[_0x2fb9aa(0x1d8)](_0x373510){const _0x1687a7=_0x2fb9aa;if(!_0x373510)return null;if(_0x328a22(_0x373510))return _0x2ad3fd(_0x373510,_0x1687a7(0x1d6));if(_0x36eef7(_0x373510)){const _0x3b8981=_0x5a9b3b(_0x373510)[_0x1687a7(0x1ae)](/removed[\s*-]data-id="([^"]+)"/);if(_0x3b8981&&_0x3b8981[0x1])return _0x3b8981[0x1];}return null;}[_0x2fb9aa(0x1eb)](_0x3fb016){const _0x2097df=_0x2fb9aa;if(_0x36eef7(_0x3fb016)){const _0x141558=_0x5a9b3b(_0x3fb016)[_0x2097df(0x1ae)](/removed[\s*-]data-id="([^"]+)"/);_0x141558&&_0x141558[0x1]&&this[_0x2097df(0x1b7)][_0x2097df(0x1b3)][_0x2097df(0x1e1)](_0x141558[0x1]);}}[_0x2fb9aa(0x1e0)](_0x348353){const _0x1b0b6f=_0x2fb9aa;return this[_0x1b0b6f(0x1ac)](_0x348353)?_0x2ad3fd(_0x348353,_0x1b0b6f(0x1d6)):this[_0x1b0b6f(0x1e9)]();}[_0x2fb9aa(0x1c0)](_0x2e3c11){const _0x54fec4=_0x2fb9aa;_0x10a01b(_0x2e3c11)[_0x54fec4(0x1da)](_0x127637=>this[_0x54fec4(0x1bd)](_0x127637)||this[_0x54fec4(0x1ca)](_0x127637))[_0x54fec4(0x1c7)](_0x2c0c1f=>{_0x149f9c(_0x2c0c1f);});}[_0x2fb9aa(0x1b8)](_0x4109a4){const _0x59f71f=_0x2fb9aa,_0x20d254=_0x4109a4[_0x59f71f(0x1ce)],_0x46c707=_0x20d254[_0x20d254[_0x59f71f(0x1ba)]-0x1];_0x46c707&&_0x328a22(_0x46c707)&&_0x8dee3c(_0x46c707,_0x59f71f(0x1aa),_0x59f71f(0x1d1));}[_0x2fb9aa(0x1ad)](_0x353b50,_0x57f344){const _0xfcbef6=_0x2fb9aa,_0x5e0c82=_0x357e2d(_0xfcbef6(0x1aa),_0xfcbef6(0x1d1),_0x353b50);if(!_0x5e0c82)return;const _0x4c10be=_0x5ace6b(_0x5e0c82)[_0xfcbef6(0x1e5)](0x0,-0x1),_0x5ba3b1=_0x4c10be[_0xfcbef6(0x1ba)];let _0x4f34a9=_0x5e0c82;if(_0x5ba3b1>_0x57f344){let _0x256aab=_0x5ba3b1,_0x56bf95=null;for(;_0x256aab>_0x57f344&&_0x256aab>=0x0;)_0x256aab--,_0x56bf95=_0x4c10be[_0x256aab];_0x56bf95&&(_0x4f34a9=_0x56bf95,_0x8dee3c(_0x5e0c82,_0xfcbef6(0x1aa),null),_0x8dee3c(_0x56bf95,_0xfcbef6(0x1aa),_0xfcbef6(0x1d1)));}else{if(_0x5ba3b1<_0x57f344){let _0x277292=_0x5ba3b1,_0xcfd737=_0x5e0c82;for(;_0x277292<_0x57f344;){const _0x17e2e5=_0xcfd737[_0xfcbef6(0x1ce)][_0xfcbef6(0x1da)](_0x4b9b43=>_0x328a22(_0x4b9b43));if(0x0===_0x17e2e5[_0xfcbef6(0x1ba)])break;_0x277292++,_0xcfd737=_0x17e2e5[_0x17e2e5[_0xfcbef6(0x1ba)]-0x1];}_0xcfd737&&(_0x4f34a9=_0xcfd737,_0x8dee3c(_0x5e0c82,_0xfcbef6(0x1aa),null),_0x8dee3c(_0xcfd737,_0xfcbef6(0x1aa),_0xfcbef6(0x1d1)));}}let _0x4af2dd=_0x4f34a9;for(;_0x4af2dd;){for(;_0x4af2dd[_0xfcbef6(0x1c9)];)_0x4af2dd=_0x4af2dd[_0xfcbef6(0x1c9)],_0x328a22(_0x4af2dd)&&_0x8dee3c(_0x4af2dd,_0xfcbef6(0x1aa),_0xfcbef6(0x1d1));_0x4af2dd=_0x4af2dd[_0xfcbef6(0x1de)];}}[_0x2fb9aa(0x1df)](_0x6a67){const _0x4c1850=_0x2fb9aa;return Boolean(_0x4c1850(0x1e4)===_0x2ad3fd(_0x6a67,_0x4c1850(0x1d6)));}[_0x2fb9aa(0x1ac)](_0x3d667a){const _0x347163=_0x2fb9aa;return Boolean((_0x2ad3fd(_0x3d667a,_0x347163(0x1d6))||'')[_0x347163(0x1ba)]>0x0&&_0x347163(0x1e4)!==_0x2ad3fd(_0x3d667a,_0x347163(0x1d6)));}[_0x2fb9aa(0x1bd)](_0x71d5ff){const _0x4afe2b=_0x2fb9aa;return!!_0x71d5ff&&Boolean(_0x36eef7(_0x71d5ff)&&_0x5a9b3b(_0x71d5ff)[_0x4afe2b(0x1ae)](/removed[\s*-]data-id="[^"]+"/));}[_0x2fb9aa(0x1c3)](_0x11e7f7){const _0xa36288=_0x2fb9aa;let _0x32a2b9=_0x11e7f7[_0xa36288(0x1de)];for(;_0x32a2b9;){if(_0x2ad3fd(_0x32a2b9,_0xa36288(0x1c8)))return!0x0;_0x32a2b9=_0x32a2b9[_0xa36288(0x1de)];}return!0x1;}[_0x2fb9aa(0x1ca)](_0x44f1ee){const _0x16af98=_0x2fb9aa;return Boolean(_0x36eef7(_0x44f1ee)&&_0x5a9b3b(_0x44f1ee)[_0x16af98(0x1ae)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f1107=_0x5664;(function(_0x55baf9,_0x212c5b){const _0x2c0e9a=_0x5664,_0x4a714b=_0x55baf9();while(!![]){try{const _0x4b7f6c=parseInt(_0x2c0e9a(0x8f))/0x1+parseInt(_0x2c0e9a(0x94))/0x2*(-parseInt(_0x2c0e9a(0x93))/0x3)+-parseInt(_0x2c0e9a(0x8e))/0x4+-parseInt(_0x2c0e9a(0x9c))/0x5+-parseInt(_0x2c0e9a(0x96))/0x6*(-parseInt(_0x2c0e9a(0x8d))/0x7)+-parseInt(_0x2c0e9a(0x98))/0x8+parseInt(_0x2c0e9a(0x91))/0x9*(parseInt(_0x2c0e9a(0x8a))/0xa);if(_0x4b7f6c===_0x212c5b)break;else _0x4a714b['push'](_0x4a714b['shift']());}catch(_0x5d1f2d){_0x4a714b['push'](_0x4a714b['shift']());}}}(_0x399b,0xe29f2));function _0x399b(){const _0x14fa7e=['585UnIklO','convertMarkdownToHTML','15iyRYlm','540466BTBaDi','_m2html','7356jjPnyx','children','14019376bgwAoC','parse','parseAndNormalizeHTML','<dummy>','1243735zdPckT','494310SvSBkY','</dummy>','replace','6937cxhgDf','4520292iextLw','982668Iulqnd','_parseHTML'];_0x399b=function(){return _0x14fa7e;};return _0x399b();}import{ObservableMixin as _0x32a212}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x110259}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x4a917c}from'../utils/htmlparser.js';function _0x5664(_0x224786,_0x20f551){const _0x399b3e=_0x399b();return _0x5664=function(_0x566419,_0x1b78c7){_0x566419=_0x566419-0x8a;let _0x4aed1a=_0x399b3e[_0x566419];return _0x4aed1a;},_0x5664(_0x224786,_0x20f551);}export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x32a212(){[_0x3f1107(0x95)];constructor(){const _0x277235=_0x3f1107;super(),this[_0x277235(0x95)]=new _0x110259();}[_0x3f1107(0x92)](_0x1d442a){const _0x20fb2d=_0x3f1107,_0xa55dbf=this[_0x20fb2d(0x95)][_0x20fb2d(0x99)](_0x1d442a);return this[_0x20fb2d(0x9a)](_0xa55dbf);}[_0x3f1107(0x9a)](_0x3f3662){const _0x2a9750=_0x3f1107;return this[_0x2a9750(0x90)](_0x3f3662);}[_0x3f1107(0x90)](_0x4ac9c0){const _0x5e27c4=_0x3f1107,_0xbed28b=_0x4ac9c0[_0x5e27c4(0x8c)](/^\t+/gm,'\x20')[_0x5e27c4(0x8c)](/\n*/g,'')[_0x5e27c4(0x8c)](/\s+/g,'\x20')[_0x5e27c4(0x8c)](/<[^>]*?$/g,''),_0x18695a=_0x4a917c(_0x5e27c4(0x9b)+_0xbed28b+_0x5e27c4(0x8b));return _0x18695a[_0x5e27c4(0x97)]=_0x18695a[_0x5e27c4(0x97)][0x0][_0x5e27c4(0x97)],_0x18695a;}}
23
+ function _0x4cd3(_0x56e982,_0x522628){const _0x2a6325=_0x2a63();return _0x4cd3=function(_0x4cd34a,_0xa13325){_0x4cd34a=_0x4cd34a-0x1e0;let _0x5f0231=_0x2a6325[_0x4cd34a];return _0x5f0231;},_0x4cd3(_0x56e982,_0x522628);}const _0x329b22=_0x4cd3;function _0x2a63(){const _0x4b5649=['9652860qqkoPm','replace','</dummy>','28JuouqC','parseAndNormalizeHTML','children','2984527aBYtzF','parse','<dummy>','1685325HqLWhq','215536zBMOCJ','23665zVwyvf','1398glzjnZ','_parseHTML','_m2html','8QRaHSp','convertMarkdownToHTML','3221307OWfYnR','43691qHYxSB'];_0x2a63=function(){return _0x4b5649;};return _0x2a63();}(function(_0x2437e0,_0x118ad3){const _0x2a17d2=_0x4cd3,_0x4392e7=_0x2437e0();while(!![]){try{const _0x311e83=-parseInt(_0x2a17d2(0x1e3))/0x1*(parseInt(_0x2a17d2(0x1e7))/0x2)+parseInt(_0x2a17d2(0x1ed))/0x3+parseInt(_0x2a17d2(0x1ee))/0x4+parseInt(_0x2a17d2(0x1ef))/0x5*(-parseInt(_0x2a17d2(0x1f0))/0x6)+parseInt(_0x2a17d2(0x1ea))/0x7+-parseInt(_0x2a17d2(0x1e0))/0x8*(-parseInt(_0x2a17d2(0x1e2))/0x9)+parseInt(_0x2a17d2(0x1e4))/0xa;if(_0x311e83===_0x118ad3)break;else _0x4392e7['push'](_0x4392e7['shift']());}catch(_0x57b4a){_0x4392e7['push'](_0x4392e7['shift']());}}}(_0x2a63,0x9ee0e));import{ObservableMixin as _0x574c7f}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x17fb03}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x4984d4}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x574c7f(){[_0x329b22(0x1f2)];constructor(){const _0x30daa1=_0x329b22;super(),this[_0x30daa1(0x1f2)]=new _0x17fb03();}[_0x329b22(0x1e1)](_0x2c341a){const _0x4e35e3=_0x329b22,_0xddb7fc=this[_0x4e35e3(0x1f2)][_0x4e35e3(0x1eb)](_0x2c341a);return this[_0x4e35e3(0x1e8)](_0xddb7fc);}[_0x329b22(0x1e8)](_0x28b26b){const _0x4c2ced=_0x329b22;return this[_0x4c2ced(0x1f1)](_0x28b26b);}[_0x329b22(0x1f1)](_0x49b8af){const _0x7ace22=_0x329b22,_0x1bd74c=_0x49b8af[_0x7ace22(0x1e5)](/^\t+/gm,'\x20')[_0x7ace22(0x1e5)](/\n*/g,'')[_0x7ace22(0x1e5)](/\s+/g,'\x20')[_0x7ace22(0x1e5)](/<[^>]*?$/g,''),_0x51c0dc=_0x4984d4(_0x7ace22(0x1ec)+_0x1bd74c+_0x7ace22(0x1e6));return _0x51c0dc[_0x7ace22(0x1e9)]=_0x51c0dc[_0x7ace22(0x1e9)][0x0][_0x7ace22(0x1e9)],_0x51c0dc;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x2b3f18,_0x5e7201){var _0x45f07d=_0x5106,_0x27aa89=_0x2b3f18();while(!![]){try{var _0x3057ba=-parseInt(_0x45f07d(0x186))/0x1+parseInt(_0x45f07d(0x183))/0x2*(parseInt(_0x45f07d(0x181))/0x3)+-parseInt(_0x45f07d(0x17b))/0x4*(-parseInt(_0x45f07d(0x178))/0x5)+parseInt(_0x45f07d(0x182))/0x6*(parseInt(_0x45f07d(0x17d))/0x7)+parseInt(_0x45f07d(0x185))/0x8*(-parseInt(_0x45f07d(0x184))/0x9)+-parseInt(_0x45f07d(0x17f))/0xa+parseInt(_0x45f07d(0x179))/0xb*(parseInt(_0x45f07d(0x17c))/0xc);if(_0x3057ba===_0x5e7201)break;else _0x27aa89['push'](_0x27aa89['shift']());}catch(_0x5daed2){_0x27aa89['push'](_0x27aa89['shift']());}}}(_0xb1ba,0x5cd2d));import{View as _0x32b692}from'ckeditor5/src/ui.js';import{getTranslation as _0x219cd9}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';function _0x5106(_0x3d9371,_0x597755){var _0xb1ba44=_0xb1ba();return _0x5106=function(_0x51067b,_0x4cafd7){_0x51067b=_0x51067b-0x177;var _0x2a3b7a=_0xb1ba44[_0x51067b];return _0x2a3b7a;},_0x5106(_0x3d9371,_0x597755);}function _0xb1ba(){var _0x66da54=['66qAHqVt','60482nTMZul','9jJgXZA','5944696yvZReW','689456qZFWKt','ck-ai-disclaimer__content','setTemplate','674450gOAdmo','11qWqUnI','ck-ai-disclaimer','20BYBvGo','11945268DlmnMD','232589dSnIaL','AI_DISCLAIMER_TEXT','5855300pCqtTs','div','36seLpUQ'];_0xb1ba=function(){return _0x66da54;};return _0xb1ba();}export class AIDisclaimerView extends _0x32b692{constructor(_0x12d0ed){var _0x472f47=_0x5106;super(_0x12d0ed),this[_0x472f47(0x177)]({'tag':_0x472f47(0x180),'attributes':{'class':['ck',_0x472f47(0x17a)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x472f47(0x187)]},'children':[{'text':_0x219cd9(_0x12d0ed,_0x472f47(0x17e))}]}]});}}
23
+ function _0x40c9(_0x3dd440,_0x79887f){var _0x34fed8=_0x34fe();return _0x40c9=function(_0x40c919,_0x2db29d){_0x40c919=_0x40c919-0x89;var _0x1d6f44=_0x34fed8[_0x40c919];return _0x1d6f44;},_0x40c9(_0x3dd440,_0x79887f);}(function(_0x499ac6,_0x1cdc99){var _0x33b264=_0x40c9,_0x1f07ba=_0x499ac6();while(!![]){try{var _0x4ff172=parseInt(_0x33b264(0x8f))/0x1+-parseInt(_0x33b264(0x8d))/0x2+parseInt(_0x33b264(0x8c))/0x3+parseInt(_0x33b264(0x90))/0x4*(parseInt(_0x33b264(0x8b))/0x5)+-parseInt(_0x33b264(0x95))/0x6*(-parseInt(_0x33b264(0x96))/0x7)+-parseInt(_0x33b264(0x91))/0x8+parseInt(_0x33b264(0x89))/0x9;if(_0x4ff172===_0x1cdc99)break;else _0x1f07ba['push'](_0x1f07ba['shift']());}catch(_0x1ab635){_0x1f07ba['push'](_0x1f07ba['shift']());}}}(_0x34fe,0xc9223));import{View as _0x2d7884}from'ckeditor5/src/ui.js';import{getTranslation as _0x2d2612}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x2d7884{constructor(_0x35b081){var _0xd52287=_0x40c9;super(_0x35b081),this[_0xd52287(0x8a)]({'tag':_0xd52287(0x93),'attributes':{'class':['ck',_0xd52287(0x94)]},'children':[{'tag':'p','attributes':{'class':['ck',_0xd52287(0x92)]},'children':[{'text':_0x2d2612(_0x35b081,_0xd52287(0x8e))}]}]});}}function _0x34fe(){var _0x5bb71a=['119fVnMFH','8737911YCLZOG','setTemplate','2789435fMxJow','1744503YaBOHg','2279974IUUvxs','AI_DISCLAIMER_TEXT','141537omLqhB','8uNKOyF','9215976NDQFjJ','ck-ai-disclaimer__content','div','ck-ai-disclaimer','108048IMNqdB'];_0x34fe=function(){return _0x5bb71a;};return _0x34fe();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x54e6c9=_0x3c6c;(function(_0x5e7de9,_0x5036ae){const _0x9f25e4=_0x3c6c,_0xe50031=_0x5e7de9();while(!![]){try{const _0x33c137=parseInt(_0x9f25e4(0x1e0))/0x1*(-parseInt(_0x9f25e4(0x1d5))/0x2)+parseInt(_0x9f25e4(0x1fb))/0x3+parseInt(_0x9f25e4(0x1e2))/0x4*(parseInt(_0x9f25e4(0x1df))/0x5)+-parseInt(_0x9f25e4(0x1f3))/0x6*(-parseInt(_0x9f25e4(0x1f9))/0x7)+-parseInt(_0x9f25e4(0x1e8))/0x8+parseInt(_0x9f25e4(0x1e5))/0x9*(-parseInt(_0x9f25e4(0x1e7))/0xa)+parseInt(_0x9f25e4(0x1f0))/0xb*(parseInt(_0x9f25e4(0x1e9))/0xc);if(_0x33c137===_0x5036ae)break;else _0xe50031['push'](_0xe50031['shift']());}catch(_0x18cb98){_0xe50031['push'](_0xe50031['shift']());}}}(_0x18fd,0xaa612));import{View as _0x11408a}from'ckeditor5/src/ui.js';function _0x18fd(){const _0x1bdcc4=['40px','72px','1490069XNnvaH','44px','2243748WXoFOL','setTemplate','100%','tag','fill','812962raoRGo','ck-ai-skeleton__item','attributes','150px','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','88px','250px','div',';\x20height:\x20','class','4805fvCmqY','3dpDnFH','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','4924WltzpF','24px','left','49293ogrRjj','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','970JLwRoY','2259088jqQDGT','4491972YNCYji','align','center','right','128px','_createSkeletonItems','ck-ai-skeleton','11jdRCrZ','height','map','12qMjIbF','width:\x20','140px','width'];_0x18fd=function(){return _0x1bdcc4;};return _0x18fd();}function _0x3c6c(_0x4d1bd6,_0x11de98){const _0x18fd28=_0x18fd();return _0x3c6c=function(_0x3c6c28,_0x5908ca){_0x3c6c28=_0x3c6c28-0x1d4;let _0x4c62d2=_0x18fd28[_0x3c6c28];return _0x4c62d2;},_0x3c6c(_0x4d1bd6,_0x11de98);}import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x11408a{constructor(_0x572354,_0x16e651){const _0x33c98d=_0x3c6c;super(_0x572354),this[_0x33c98d(0x1fc)]({'tag':_0x33c98d(0x1dc),'attributes':{'class':['ck',_0x33c98d(0x1ef)]},'children':this[_0x33c98d(0x1ee)](_0x16e651)});}[_0x54e6c9(0x1ee)](_0x2f13a9){const _0x21d2ea=_0x54e6c9,_0x49b6dc=['ck',_0x21d2ea(0x1d6)];return _0x2f13a9[_0x21d2ea(0x1f2)](_0x54008c=>{const _0x47260e=_0x21d2ea;let _0x3326af='';switch(_0x54008c[_0x47260e(0x1d7)][_0x47260e(0x1ea)]){case _0x47260e(0x1ec):_0x3326af=_0x47260e(0x1e1);break;case _0x47260e(0x1eb):_0x3326af=_0x47260e(0x1d9);break;case _0x47260e(0x1e4):_0x3326af=_0x47260e(0x1e6);}return{'tag':_0x54008c[_0x47260e(0x1fe)],'attributes':{'class':[..._0x49b6dc,_0x54008c[_0x47260e(0x1d7)][_0x47260e(0x1de)]?_0x54008c[_0x47260e(0x1d7)][_0x47260e(0x1de)]:''],'style':_0x47260e(0x1f4)+_0x54008c[_0x47260e(0x1d7)][_0x47260e(0x1f6)]+_0x47260e(0x1dd)+_0x54008c[_0x47260e(0x1d7)][_0x47260e(0x1f1)]+';'+_0x3326af}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x54e6c9(0x1dc),'attributes':{'width':_0x54e6c9(0x1fd),'height':_0x54e6c9(0x1f8),'align':_0x54e6c9(0x1ec)}},{'tag':_0x54e6c9(0x1dc),'attributes':{'width':_0x54e6c9(0x1db),'height':_0x54e6c9(0x1f7),'align':_0x54e6c9(0x1ec)}},{'tag':_0x54e6c9(0x1dc),'attributes':{'width':_0x54e6c9(0x1fd),'height':_0x54e6c9(0x1da),'align':_0x54e6c9(0x1ec)}},{'tag':_0x54e6c9(0x1dc),'attributes':{'width':_0x54e6c9(0x1d8),'height':_0x54e6c9(0x1f7),'align':_0x54e6c9(0x1ec)}},{'tag':_0x54e6c9(0x1dc),'attributes':{'width':_0x54e6c9(0x1fd),'height':_0x54e6c9(0x1f5),'align':_0x54e6c9(0x1ec)}},{'tag':_0x54e6c9(0x1dc),'attributes':{'width':_0x54e6c9(0x1db),'height':_0x54e6c9(0x1f7),'align':_0x54e6c9(0x1ec)}},{'tag':_0x54e6c9(0x1dc),'attributes':{'width':_0x54e6c9(0x1fd),'height':_0x54e6c9(0x1da),'align':_0x54e6c9(0x1ec)}}],'aiHistory':ta(0x5,_0x54e6c9(0x1fd),_0x54e6c9(0x1fa),_0x54e6c9(0x1ec)),'aiChatResources':ta(0x8,_0x54e6c9(0x1fd),_0x54e6c9(0x1e3),_0x54e6c9(0x1ec)),'aiReviewChecks':[{'tag':_0x54e6c9(0x1dc),'attributes':{'width':_0x54e6c9(0x1ed),'height':_0x54e6c9(0x1e3),'align':_0x54e6c9(0x1e4)}},{'tag':_0x54e6c9(0x1dc),'attributes':{'width':_0x54e6c9(0x1fd),'height':_0x54e6c9(0x1e3),'align':_0x54e6c9(0x1e4)}},{'tag':_0x54e6c9(0x1dc),'attributes':{'width':_0x54e6c9(0x1ed),'height':_0x54e6c9(0x1e3),'align':_0x54e6c9(0x1e4)}}]};function ta(_0x23b48a,_0x4f9a13,_0x1a371e,_0x210446){const _0x2c94db=_0x54e6c9;return new Array(_0x23b48a)[_0x2c94db(0x1d4)](null)[_0x2c94db(0x1f2)](()=>({'tag':_0x2c94db(0x1dc),'attributes':{'width':_0x4f9a13,'height':_0x1a371e,'align':_0x210446}}));}
23
+ const _0x9804cb=_0x7e9d;(function(_0x5cf9b2,_0x4a6e99){const _0x9adf33=_0x7e9d,_0x4d4019=_0x5cf9b2();while(!![]){try{const _0x153d0e=parseInt(_0x9adf33(0x101))/0x1+parseInt(_0x9adf33(0x120))/0x2+parseInt(_0x9adf33(0x11d))/0x3+parseInt(_0x9adf33(0x115))/0x4+parseInt(_0x9adf33(0x112))/0x5+parseInt(_0x9adf33(0x104))/0x6+-parseInt(_0x9adf33(0xff))/0x7*(parseInt(_0x9adf33(0x118))/0x8);if(_0x153d0e===_0x4a6e99)break;else _0x4d4019['push'](_0x4d4019['shift']());}catch(_0x50f692){_0x4d4019['push'](_0x4d4019['shift']());}}}(_0x2df7,0x57777));function _0x2df7(){const _0x5a81e7=['16806056TttfPb','height','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','fill','140px','687480hZASSx','attributes','class','757662UmoeHx','40px','_createSkeletonItems','ck-ai-skeleton__item','center','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','7nyTfET','div','340845uKFfbJ','map','100%','2972832FeNoQp','150px','align',';\x20height:\x20','24px','right','ck-ai-skeleton','128px','72px','44px','88px','setTemplate','left','width','1829595diAskA','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','250px','2595172NjIDyJ','tag','width:\x20'];_0x2df7=function(){return _0x5a81e7;};return _0x2df7();}import{View as _0x2f317d}from'ckeditor5/src/ui.js';function _0x7e9d(_0x3ecc65,_0x4948ae){const _0x2df7c8=_0x2df7();return _0x7e9d=function(_0x7e9d97,_0x348ada){_0x7e9d97=_0x7e9d97-0xfb;let _0x5ef8b4=_0x2df7c8[_0x7e9d97];return _0x5ef8b4;},_0x7e9d(_0x3ecc65,_0x4948ae);}import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x2f317d{constructor(_0x2e96c7,_0x196183){const _0x467422=_0x7e9d;super(_0x2e96c7),this[_0x467422(0x10f)]({'tag':_0x467422(0x100),'attributes':{'class':['ck',_0x467422(0x10a)]},'children':this[_0x467422(0xfb)](_0x196183)});}[_0x9804cb(0xfb)](_0x386be0){const _0x29874e=_0x9804cb,_0x4e5c7a=['ck',_0x29874e(0xfc)];return _0x386be0[_0x29874e(0x102)](_0x216fe5=>{const _0x53f81a=_0x29874e;let _0x1e1f42='';switch(_0x216fe5[_0x53f81a(0x11e)][_0x53f81a(0x106)]){case _0x53f81a(0x109):_0x1e1f42=_0x53f81a(0x11a);break;case _0x53f81a(0xfd):_0x1e1f42=_0x53f81a(0xfe);break;case _0x53f81a(0x110):_0x1e1f42=_0x53f81a(0x113);}return{'tag':_0x216fe5[_0x53f81a(0x116)],'attributes':{'class':[..._0x4e5c7a,_0x216fe5[_0x53f81a(0x11e)][_0x53f81a(0x11f)]?_0x216fe5[_0x53f81a(0x11e)][_0x53f81a(0x11f)]:''],'style':_0x53f81a(0x117)+_0x216fe5[_0x53f81a(0x11e)][_0x53f81a(0x111)]+_0x53f81a(0x107)+_0x216fe5[_0x53f81a(0x11e)][_0x53f81a(0x119)]+';'+_0x1e1f42}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x103),'height':_0x9804cb(0x10c),'align':_0x9804cb(0x109)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x114),'height':_0x9804cb(0x121),'align':_0x9804cb(0x109)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x103),'height':_0x9804cb(0x10e),'align':_0x9804cb(0x109)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x105),'height':_0x9804cb(0x121),'align':_0x9804cb(0x109)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x103),'height':_0x9804cb(0x11c),'align':_0x9804cb(0x109)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x114),'height':_0x9804cb(0x121),'align':_0x9804cb(0x109)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x103),'height':_0x9804cb(0x10e),'align':_0x9804cb(0x109)}}],'aiHistory':ta(0x5,_0x9804cb(0x103),_0x9804cb(0x10d),_0x9804cb(0x109)),'aiChatResources':ta(0x8,_0x9804cb(0x103),_0x9804cb(0x108),_0x9804cb(0x109)),'aiReviewChecks':[{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x10b),'height':_0x9804cb(0x108),'align':_0x9804cb(0x110)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x103),'height':_0x9804cb(0x108),'align':_0x9804cb(0x110)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x10b),'height':_0x9804cb(0x108),'align':_0x9804cb(0x110)}}]};function ta(_0x1a1c47,_0x44b279,_0x515acd,_0x36b7a9){const _0x3f1e28=_0x9804cb;return new Array(_0x1a1c47)[_0x3f1e28(0x11b)](null)[_0x3f1e28(0x102)](()=>({'tag':_0x3f1e28(0x100),'attributes':{'width':_0x44b279,'height':_0x515acd,'align':_0x36b7a9}}));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4ed8(_0x20c2f0,_0x418a70){const _0x4a1f35=_0x4a1f();return _0x4ed8=function(_0x4ed8bf,_0x598ed3){_0x4ed8bf=_0x4ed8bf-0x196;let _0x252111=_0x4a1f35[_0x4ed8bf];return _0x252111;},_0x4ed8(_0x20c2f0,_0x418a70);}(function(_0x2c3e4f,_0x467e7a){const _0x2284a7=_0x4ed8,_0x23f392=_0x2c3e4f();while(!![]){try{const _0x538a63=-parseInt(_0x2284a7(0x1a1))/0x1+parseInt(_0x2284a7(0x197))/0x2+-parseInt(_0x2284a7(0x19a))/0x3*(-parseInt(_0x2284a7(0x19c))/0x4)+parseInt(_0x2284a7(0x1a2))/0x5+parseInt(_0x2284a7(0x199))/0x6+parseInt(_0x2284a7(0x19e))/0x7+parseInt(_0x2284a7(0x19f))/0x8*(-parseInt(_0x2284a7(0x19d))/0x9);if(_0x538a63===_0x467e7a)break;else _0x23f392['push'](_0x23f392['shift']());}catch(_0x3214a2){_0x23f392['push'](_0x23f392['shift']());}}}(_0x4a1f,0xc2b12));import{SpinnerView as _0x3b6f40}from'ckeditor5/src/ui.js';import'../../../theme/common/aispinner.css';function _0x4a1f(){const _0x547f51=['8539938lGApdr','45492Dziofp','ck-ai-spinner','196DytioG','6669yeFIlt','1009785Fuarmf','45832Qkgpui','ck-ai-spinner_','210276vSpPyX','7705645XrYwMg','extendTemplate','2802360KWCjmp','span'];_0x4a1f=function(){return _0x547f51;};return _0x4a1f();}export class AISpinnerView extends _0x3b6f40{constructor(_0x1b12f2=void 0x0){const _0x3f4f60=_0x4ed8;super();const _0x159ff9=_0x1b12f2?_0x3f4f60(0x1a0)+_0x1b12f2:'';this[_0x3f4f60(0x196)]({'tag':_0x3f4f60(0x198),'attributes':{'class':[_0x3f4f60(0x19b),_0x159ff9]}});}}
23
+ (function(_0x1ec2fd,_0x5f3e3e){const _0x47cd8a=_0x56aa,_0x156c0d=_0x1ec2fd();while(!![]){try{const _0x5e68a3=-parseInt(_0x47cd8a(0x120))/0x1+-parseInt(_0x47cd8a(0x11c))/0x2+-parseInt(_0x47cd8a(0x117))/0x3*(parseInt(_0x47cd8a(0x118))/0x4)+parseInt(_0x47cd8a(0x115))/0x5*(-parseInt(_0x47cd8a(0x11f))/0x6)+-parseInt(_0x47cd8a(0x11b))/0x7+parseInt(_0x47cd8a(0x11a))/0x8+-parseInt(_0x47cd8a(0x116))/0x9*(-parseInt(_0x47cd8a(0x113))/0xa);if(_0x5e68a3===_0x5f3e3e)break;else _0x156c0d['push'](_0x156c0d['shift']());}catch(_0x35b8f4){_0x156c0d['push'](_0x156c0d['shift']());}}}(_0x2406,0xd935b));function _0x56aa(_0x3fc3ce,_0x81fef2){const _0x24061d=_0x2406();return _0x56aa=function(_0x56aa90,_0x32d673){_0x56aa90=_0x56aa90-0x113;let _0x510cbf=_0x24061d[_0x56aa90];return _0x510cbf;},_0x56aa(_0x3fc3ce,_0x81fef2);}import{SpinnerView as _0x147ea4}from'ckeditor5/src/ui.js';function _0x2406(){const _0x27490a=['10629080UKTQIU','7640794LkpBvp','1471086SXgHdd','extendTemplate','span','42oWvreT','961123WBxFdh','56645050cGmimR','ck-ai-spinner_','1125830LOpZFF','9PULnGY','579693UmUFtB','36euTftT','ck-ai-spinner'];_0x2406=function(){return _0x27490a;};return _0x2406();}import'../../../theme/common/aispinner.css';export class AISpinnerView extends _0x147ea4{constructor(_0x10c22e=void 0x0){const _0x54df05=_0x56aa;super();const _0x3bc179=_0x10c22e?_0x54df05(0x114)+_0x10c22e:'';this[_0x54df05(0x11d)]({'tag':_0x54df05(0x11e),'attributes':{'class':[_0x54df05(0x119),_0x3bc179]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ea07b=_0x43cf;function _0x43cf(_0x441c8f,_0x1fe4bd){const _0x44a9dc=_0x44a9();return _0x43cf=function(_0x43cf42,_0x50d3af){_0x43cf42=_0x43cf42-0x7d;let _0x56a2ed=_0x44a9dc[_0x43cf42];return _0x56a2ed;},_0x43cf(_0x441c8f,_0x1fe4bd);}function _0x44a9(){const _0x22dbc2=['ck-ai-mini-toolbar-copy-button__check-mark','addMany','like','locale','showChangesButton','toggleShowChanges','showChanges','AI_SUGGESTION_BUTTON_SHOW_CHANGES','isShowChangesOn','ck-ai-mini-toolbar','447nsBJaQ','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','_setupCopyButton','_config','1642EkREgZ','889209EEDoOz','AI_MINI_TOOLBAR_DISLIKE','AI_MINI_TOOLBAR_LIKE','execute','toggleShowChangesEnabled','24cqCZKO','showDislike','6fkjFLS','ck-ai-mini-toolbar\x20ck-hidden','icon','class','set','items','408rFOnha','copyButton','children','dislikeButton','isEnabled','bind','customView','ck-ai-mini-toolbar-copy-button','dislike','ck-ai-button-tertiary','length','29747685KOXoPV','_setupShowChangesButton','likeButton','_setupRatingButtons','1682247NXVRSF','fire','full','6216415PDMbTn','AI_MINI_TOOLBAR_COPY','extendTemplate','6216040QyWcjp','showCopy','add','showLike','30872SPKYeb','isOn'];_0x44a9=function(){return _0x22dbc2;};return _0x44a9();}(function(_0x51d3b3,_0x4d331a){const _0x281723=_0x43cf,_0x4936fe=_0x51d3b3();while(!![]){try{const _0x2455c5=-parseInt(_0x281723(0x9c))/0x1*(-parseInt(_0x281723(0xaa))/0x2)+-parseInt(_0x281723(0x98))/0x3*(parseInt(_0x281723(0x8c))/0x4)+-parseInt(_0x281723(0x85))/0x5*(parseInt(_0x281723(0xa4))/0x6)+-parseInt(_0x281723(0x82))/0x7+parseInt(_0x281723(0xa2))/0x8*(-parseInt(_0x281723(0x9d))/0x9)+parseInt(_0x281723(0x88))/0xa+parseInt(_0x281723(0x7e))/0xb;if(_0x2455c5===_0x4d331a)break;else _0x4936fe['push'](_0x4936fe['shift']());}catch(_0x596876){_0x4936fe['push'](_0x4936fe['shift']());}}}(_0x44a9,0xb2726));import{ButtonView as _0xdbcbaa,IconView as _0x4052f5,ToolbarView as _0x3c91af}from'ckeditor5/src/ui.js';import{IconCheck as _0x579d10,IconCopy as _0x44ae2e,IconShowChangesOff as _0x219286,IconShowChangesOn as _0x52e9eb,IconThumbDown as _0x3767aa,IconThumbUp as _0x375b73}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x24ae85}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';export class AIMiniToolbarView extends _0x3c91af{[_0x1ea07b(0xab)];[_0x1ea07b(0x80)];[_0x1ea07b(0xad)];[_0x1ea07b(0x92)];[_0x1ea07b(0x9b)];constructor(_0x408a09,_0x3efc11={}){const _0x3309e7=_0x1ea07b;super(_0x408a09),this[_0x3309e7(0xa8)](_0x3309e7(0xae),!0x0),this[_0x3309e7(0xa8)](_0x3309e7(0x96),!0x1),this[_0x3309e7(0x9b)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x3efc11};const _0x5b24d4=!(this[_0x3309e7(0x9b)][_0x3309e7(0x89)]||this[_0x3309e7(0x9b)][_0x3309e7(0x94)]||this[_0x3309e7(0x9b)][_0x3309e7(0x8b)]||this[_0x3309e7(0x9b)][_0x3309e7(0xa3)]||this[_0x3309e7(0x9b)][_0x3309e7(0xb0)]?.[_0x3309e7(0x7d)]);this[_0x3309e7(0xa7)]=_0x5b24d4?_0x3309e7(0xa5):_0x3309e7(0x97),this[_0x3309e7(0x9b)][_0x3309e7(0x89)]&&(this[_0x3309e7(0x9a)](),this[_0x3309e7(0xa9)][_0x3309e7(0x8a)](this[_0x3309e7(0xab)])),this[_0x3309e7(0x9b)][_0x3309e7(0x94)]&&(this[_0x3309e7(0x7f)](),this[_0x3309e7(0xa9)][_0x3309e7(0x8a)](this[_0x3309e7(0x92)])),this[_0x3309e7(0x81)](),this[_0x3309e7(0x9b)][_0x3309e7(0x8b)]&&this[_0x3309e7(0xa9)][_0x3309e7(0x8a)](this[_0x3309e7(0x80)]),this[_0x3309e7(0x9b)][_0x3309e7(0xa3)]&&this[_0x3309e7(0xa9)][_0x3309e7(0x8a)](this[_0x3309e7(0xad)]),this[_0x3309e7(0x9b)][_0x3309e7(0xb0)]&&this[_0x3309e7(0xa9)][_0x3309e7(0x8f)](this[_0x3309e7(0x9b)][_0x3309e7(0xb0)]);}[_0x1ea07b(0xa1)](_0xa317a3){const _0x3bba5d=_0x1ea07b;this[_0x3bba5d(0x92)][_0x3bba5d(0xae)]=_0xa317a3;}[_0x1ea07b(0x81)](){const _0x457c56=_0x1ea07b;this[_0x457c56(0x80)]=new _0xdbcbaa(this[_0x457c56(0x91)]),this[_0x457c56(0x80)][_0x457c56(0xa8)]({'icon':_0x375b73,'label':_0x24ae85(this[_0x457c56(0x91)],_0x457c56(0x9f)),'tooltip':!0x0}),this[_0x457c56(0x80)][_0x457c56(0xaf)](_0x457c56(0xae))['to'](this),this[_0x457c56(0x80)]['on'](_0x457c56(0xa0),()=>{const _0xf238f4=_0x457c56;this[_0xf238f4(0x83)](_0xf238f4(0x90));}),this[_0x457c56(0xad)]=new _0xdbcbaa(this[_0x457c56(0x91)]),this[_0x457c56(0xad)][_0x457c56(0xa8)]({'icon':_0x3767aa,'label':_0x24ae85(this[_0x457c56(0x91)],_0x457c56(0x9e)),'tooltip':!0x0}),this[_0x457c56(0xad)][_0x457c56(0xaf)](_0x457c56(0xae))['to'](this),this[_0x457c56(0xad)]['on'](_0x457c56(0xa0),()=>{const _0x3efe12=_0x457c56;this[_0x3efe12(0x83)](_0x3efe12(0xb2));});}[_0x1ea07b(0x9a)](){const _0x4c6395=_0x1ea07b;this[_0x4c6395(0xab)]=new _0xdbcbaa(this[_0x4c6395(0x91)]),this[_0x4c6395(0xab)][_0x4c6395(0xa8)]({'icon':_0x44ae2e,'label':_0x24ae85(this[_0x4c6395(0x91)],_0x4c6395(0x86)),'class':_0x4c6395(0xb1),'tooltip':!0x0}),this[_0x4c6395(0xab)][_0x4c6395(0xaf)](_0x4c6395(0xae))['to'](this);const _0x29a21d=new _0x4052f5();_0x29a21d[_0x4c6395(0xa8)]({'content':_0x579d10}),_0x29a21d[_0x4c6395(0x87)]({'attributes':{'class':[_0x4c6395(0x8e)]}}),this[_0x4c6395(0xab)]['on'](_0x4c6395(0xa0),()=>{const _0x6f11c4=_0x4c6395;this[_0x6f11c4(0xab)][_0x6f11c4(0xa7)]=_0x6f11c4(0x99),setTimeout(()=>{const _0x3f0f97=_0x6f11c4;this[_0x3f0f97(0xab)][_0x3f0f97(0xa7)]=_0x3f0f97(0xb1);},0x7d0);}),this[_0x4c6395(0xab)][_0x4c6395(0xac)][_0x4c6395(0x8a)](_0x29a21d);}[_0x1ea07b(0x7f)](){const _0x3a9881=_0x1ea07b;this[_0x3a9881(0x92)]=new _0xdbcbaa(this[_0x3a9881(0x91)]),this[_0x3a9881(0x92)][_0x3a9881(0xa8)]({'icon':_0x219286,'label':_0x24ae85(this[_0x3a9881(0x91)],_0x3a9881(0x95)),'withText':_0x3a9881(0x84)==this[_0x3a9881(0x9b)][_0x3a9881(0x94)],'tooltip':_0x3a9881(0x84)!=this[_0x3a9881(0x9b)][_0x3a9881(0x94)],'class':_0x3a9881(0xb3)}),this[_0x3a9881(0x92)][_0x3a9881(0xaf)](_0x3a9881(0x8d))['to'](this,_0x3a9881(0x96)),this[_0x3a9881(0x92)][_0x3a9881(0xaf)](_0x3a9881(0xae))['to'](this),this[_0x3a9881(0x92)][_0x3a9881(0xaf)](_0x3a9881(0xa6))['to'](this,_0x3a9881(0x96),_0x178717=>_0x178717?_0x52e9eb:_0x219286),this[_0x3a9881(0x92)]['on'](_0x3a9881(0xa0),()=>{const _0x277294=_0x3a9881;this[_0x277294(0x83)](_0x277294(0x93));});}}
23
+ const _0x4bbf0a=_0x2bbf;(function(_0x516307,_0x2799aa){const _0x3e2833=_0x2bbf,_0x51383d=_0x516307();while(!![]){try{const _0x5cbb7f=-parseInt(_0x3e2833(0x179))/0x1+-parseInt(_0x3e2833(0x17d))/0x2*(parseInt(_0x3e2833(0x187))/0x3)+-parseInt(_0x3e2833(0x1a2))/0x4+parseInt(_0x3e2833(0x1a5))/0x5+parseInt(_0x3e2833(0x18a))/0x6*(-parseInt(_0x3e2833(0x173))/0x7)+parseInt(_0x3e2833(0x190))/0x8*(-parseInt(_0x3e2833(0x180))/0x9)+-parseInt(_0x3e2833(0x18d))/0xa*(-parseInt(_0x3e2833(0x1a1))/0xb);if(_0x5cbb7f===_0x2799aa)break;else _0x51383d['push'](_0x51383d['shift']());}catch(_0x5c679b){_0x51383d['push'](_0x51383d['shift']());}}}(_0xf313,0xace8f));function _0xf313(){const _0x19bac9=['361298MhsWQa','length','isOn','ck-ai-mini-toolbar','1265586foWwNz','set','AI_MINI_TOOLBAR_DISLIKE','81myCXMH','full','showChanges','customView','isEnabled','icon','_setupRatingButtons','3CMrbfE','fire','showChangesButton','1254GTMgcK','_setupCopyButton','locale','11432080FXEQjY','showDislike','_setupShowChangesButton','906424KUlphF','bind','extendTemplate','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','isShowChangesOn','add','class','dislikeButton','toggleShowChanges','like','toggleShowChangesEnabled','showCopy','copyButton','AI_MINI_TOOLBAR_COPY','children','ck-ai-mini-toolbar-copy-button__check-mark','ck-ai-mini-toolbar-copy-button','44LbHmbB','3303628VSUPnS','ck-ai-button-tertiary','addMany','1080870wTctyh','execute','AI_MINI_TOOLBAR_LIKE','items','likeButton','41566nQzTXz','showLike','_config','AI_SUGGESTION_BUTTON_SHOW_CHANGES','dislike','ck-ai-mini-toolbar\x20ck-hidden'];_0xf313=function(){return _0x19bac9;};return _0xf313();}import{ButtonView as _0x25f86a,IconView as _0x549260,ToolbarView as _0x5a9d3b}from'ckeditor5/src/ui.js';import{IconCheck as _0x891f94,IconCopy as _0x4538eb,IconShowChangesOff as _0x11dd25,IconShowChangesOn as _0x5c1256,IconThumbDown as _0x1e2860,IconThumbUp as _0x5f53d3}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x4d081f}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';function _0x2bbf(_0x12a531,_0x59ec4a){const _0xf31325=_0xf313();return _0x2bbf=function(_0x2bbf4a,_0x39fb5a){_0x2bbf4a=_0x2bbf4a-0x173;let _0x1bf279=_0xf31325[_0x2bbf4a];return _0x1bf279;},_0x2bbf(_0x12a531,_0x59ec4a);}export class AIMiniToolbarView extends _0x5a9d3b{[_0x4bbf0a(0x19c)];[_0x4bbf0a(0x1a9)];[_0x4bbf0a(0x197)];[_0x4bbf0a(0x189)];[_0x4bbf0a(0x175)];constructor(_0x39ec93,_0x14dfdd={}){const _0xc07a0d=_0x4bbf0a;super(_0x39ec93),this[_0xc07a0d(0x17e)](_0xc07a0d(0x184),!0x0),this[_0xc07a0d(0x17e)](_0xc07a0d(0x194),!0x1),this[_0xc07a0d(0x175)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x14dfdd};const _0x2923bc=!(this[_0xc07a0d(0x175)][_0xc07a0d(0x19b)]||this[_0xc07a0d(0x175)][_0xc07a0d(0x182)]||this[_0xc07a0d(0x175)][_0xc07a0d(0x174)]||this[_0xc07a0d(0x175)][_0xc07a0d(0x18e)]||this[_0xc07a0d(0x175)][_0xc07a0d(0x183)]?.[_0xc07a0d(0x17a)]);this[_0xc07a0d(0x196)]=_0x2923bc?_0xc07a0d(0x178):_0xc07a0d(0x17c),this[_0xc07a0d(0x175)][_0xc07a0d(0x19b)]&&(this[_0xc07a0d(0x18b)](),this[_0xc07a0d(0x1a8)][_0xc07a0d(0x195)](this[_0xc07a0d(0x19c)])),this[_0xc07a0d(0x175)][_0xc07a0d(0x182)]&&(this[_0xc07a0d(0x18f)](),this[_0xc07a0d(0x1a8)][_0xc07a0d(0x195)](this[_0xc07a0d(0x189)])),this[_0xc07a0d(0x186)](),this[_0xc07a0d(0x175)][_0xc07a0d(0x174)]&&this[_0xc07a0d(0x1a8)][_0xc07a0d(0x195)](this[_0xc07a0d(0x1a9)]),this[_0xc07a0d(0x175)][_0xc07a0d(0x18e)]&&this[_0xc07a0d(0x1a8)][_0xc07a0d(0x195)](this[_0xc07a0d(0x197)]),this[_0xc07a0d(0x175)][_0xc07a0d(0x183)]&&this[_0xc07a0d(0x1a8)][_0xc07a0d(0x1a4)](this[_0xc07a0d(0x175)][_0xc07a0d(0x183)]);}[_0x4bbf0a(0x19a)](_0x5ad758){const _0x53ad2a=_0x4bbf0a;this[_0x53ad2a(0x189)][_0x53ad2a(0x184)]=_0x5ad758;}[_0x4bbf0a(0x186)](){const _0x7970f0=_0x4bbf0a;this[_0x7970f0(0x1a9)]=new _0x25f86a(this[_0x7970f0(0x18c)]),this[_0x7970f0(0x1a9)][_0x7970f0(0x17e)]({'icon':_0x5f53d3,'label':_0x4d081f(this[_0x7970f0(0x18c)],_0x7970f0(0x1a7)),'tooltip':!0x0}),this[_0x7970f0(0x1a9)][_0x7970f0(0x191)](_0x7970f0(0x184))['to'](this),this[_0x7970f0(0x1a9)]['on'](_0x7970f0(0x1a6),()=>{const _0x5f174e=_0x7970f0;this[_0x5f174e(0x188)](_0x5f174e(0x199));}),this[_0x7970f0(0x197)]=new _0x25f86a(this[_0x7970f0(0x18c)]),this[_0x7970f0(0x197)][_0x7970f0(0x17e)]({'icon':_0x1e2860,'label':_0x4d081f(this[_0x7970f0(0x18c)],_0x7970f0(0x17f)),'tooltip':!0x0}),this[_0x7970f0(0x197)][_0x7970f0(0x191)](_0x7970f0(0x184))['to'](this),this[_0x7970f0(0x197)]['on'](_0x7970f0(0x1a6),()=>{const _0x1abce8=_0x7970f0;this[_0x1abce8(0x188)](_0x1abce8(0x177));});}[_0x4bbf0a(0x18b)](){const _0x1299cf=_0x4bbf0a;this[_0x1299cf(0x19c)]=new _0x25f86a(this[_0x1299cf(0x18c)]),this[_0x1299cf(0x19c)][_0x1299cf(0x17e)]({'icon':_0x4538eb,'label':_0x4d081f(this[_0x1299cf(0x18c)],_0x1299cf(0x19d)),'class':_0x1299cf(0x1a0),'tooltip':!0x0}),this[_0x1299cf(0x19c)][_0x1299cf(0x191)](_0x1299cf(0x184))['to'](this);const _0x21488b=new _0x549260();_0x21488b[_0x1299cf(0x17e)]({'content':_0x891f94}),_0x21488b[_0x1299cf(0x192)]({'attributes':{'class':[_0x1299cf(0x19f)]}}),this[_0x1299cf(0x19c)]['on'](_0x1299cf(0x1a6),()=>{const _0x4c8e61=_0x1299cf;this[_0x4c8e61(0x19c)][_0x4c8e61(0x196)]=_0x4c8e61(0x193),setTimeout(()=>{const _0xeff223=_0x4c8e61;this[_0xeff223(0x19c)][_0xeff223(0x196)]=_0xeff223(0x1a0);},0x7d0);}),this[_0x1299cf(0x19c)][_0x1299cf(0x19e)][_0x1299cf(0x195)](_0x21488b);}[_0x4bbf0a(0x18f)](){const _0x5b9ef6=_0x4bbf0a;this[_0x5b9ef6(0x189)]=new _0x25f86a(this[_0x5b9ef6(0x18c)]),this[_0x5b9ef6(0x189)][_0x5b9ef6(0x17e)]({'icon':_0x11dd25,'label':_0x4d081f(this[_0x5b9ef6(0x18c)],_0x5b9ef6(0x176)),'withText':_0x5b9ef6(0x181)==this[_0x5b9ef6(0x175)][_0x5b9ef6(0x182)],'tooltip':_0x5b9ef6(0x181)!=this[_0x5b9ef6(0x175)][_0x5b9ef6(0x182)],'class':_0x5b9ef6(0x1a3)}),this[_0x5b9ef6(0x189)][_0x5b9ef6(0x191)](_0x5b9ef6(0x17b))['to'](this,_0x5b9ef6(0x194)),this[_0x5b9ef6(0x189)][_0x5b9ef6(0x191)](_0x5b9ef6(0x184))['to'](this),this[_0x5b9ef6(0x189)][_0x5b9ef6(0x191)](_0x5b9ef6(0x185))['to'](this,_0x5b9ef6(0x194),_0x178bd7=>_0x178bd7?_0x5c1256:_0x11dd25),this[_0x5b9ef6(0x189)]['on'](_0x5b9ef6(0x1a6),()=>{const _0x4ab9b0=_0x5b9ef6;this[_0x4ab9b0(0x188)](_0x4ab9b0(0x198));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2e41(){const _0x21d3eb=['AI_SUGGESTION_NO_PARTS_WARNING','_actionsView','index','124996FXeTCY','updatePartState','bind','empty-parts-warning','_sourcesView','isEnabled','partsCount','1957812MYSEqC','bodyCollection','push','updateVisibility','4jTYrTd','858903qnJjLp','forEach','5rdOUZp','enqueue','setContent','div','_children','set','_updateContentPartsPromiseQueue','8RDLEti','_availableActions','setPartActive','isTrackChangesOn','_showUnchangedParts','setTemplate','_emptyPartsWarningView','addSource','ck-ai-suggestion__body__content-parts','isVisible','markAsDone','hasChanges','queueEmptyPromise','AI_SUGGESTION_EMPTY_PART_WARNING','hasNonEmptyParts','pending','filter','360829XmKQaI','_switchButtonLabelsPlurality','35865zCvdFE','hasPendingParts','some','10pOTrrD','findIndex','areActionsDisabled','warning','addEventListener','length','updateContentParts','state','locale','abort','availableActions','partDefinition','ck-ai-suggestion__body','2899622sbUGVn','createCollection','updateContent','updateSources','49663EbzNow','find','getPartView','from','_cachedContentParts','delegate','_areActionsDisabled','add','isActive'];_0x2e41=function(){return _0x21d3eb;};return _0x2e41();}const _0x477ff3=_0x382b;(function(_0x5560a2,_0x10bfe9){const _0x20adfd=_0x382b,_0x390168=_0x5560a2();while(!![]){try{const _0x42dfd1=parseInt(_0x20adfd(0x157))/0x1*(-parseInt(_0x20adfd(0x126))/0x2)+parseInt(_0x20adfd(0x127))/0x3+-parseInt(_0x20adfd(0x163))/0x4+parseInt(_0x20adfd(0x129))/0x5*(parseInt(_0x20adfd(0x16a))/0x6)+parseInt(_0x20adfd(0x141))/0x7*(-parseInt(_0x20adfd(0x130))/0x8)+parseInt(_0x20adfd(0x143))/0x9+parseInt(_0x20adfd(0x146))/0xa*(-parseInt(_0x20adfd(0x153))/0xb);if(_0x42dfd1===_0x10bfe9)break;else _0x390168['push'](_0x390168['shift']());}catch(_0x3e1816){_0x390168['push'](_0x390168['shift']());}}}(_0x2e41,0x29b70));import{View as _0x59c749}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x4541fd}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x5c291a}from'../../utils/eventnames.js';import{PromiseQueue as _0x3a6fe1}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x396d37}from'../../../aichat/ui/feed/aichatfeederroritemview.js';function _0x382b(_0x57250d,_0x522e6c){const _0x2e414d=_0x2e41();return _0x382b=function(_0x382b68,_0x288372){_0x382b68=_0x382b68-0x123;let _0x2fb2ab=_0x2e414d[_0x382b68];return _0x2fb2ab;},_0x382b(_0x57250d,_0x522e6c);}import{getTranslation as _0x9f1469}from'../../utils/common-translations.js';import{AIChatFeedSuggestionItemActionsView as _0x430739}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x4fe7ee}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x59c749{[_0x477ff3(0x161)];[_0x477ff3(0x167)];[_0x477ff3(0x12d)];[_0x477ff3(0x15d)];[_0x477ff3(0x134)];[_0x477ff3(0x12f)];[_0x477ff3(0x136)];[_0x477ff3(0x131)];[_0x477ff3(0x15b)]=[];constructor(_0x218873,_0x4b403b){const _0x30adb6=_0x477ff3;super(_0x218873);const {areActionsDisabled:_0x2bbbbc,showUnchangedParts:_0x35bd60,availableActions:_0x2d5ab7}=_0x4b403b;this[_0x30adb6(0x15d)]=_0x2bbbbc,this[_0x30adb6(0x134)]=_0x35bd60,this[_0x30adb6(0x131)]=_0x2d5ab7,this[_0x30adb6(0x12e)](_0x30adb6(0x144),!0x1),this[_0x30adb6(0x12e)](_0x30adb6(0x133),!0x1),this[_0x30adb6(0x12d)]=this[_0x30adb6(0x154)](),this[_0x30adb6(0x12f)]=new _0x3a6fe1(),this[_0x30adb6(0x136)]=new _0x396d37({'id':_0x30adb6(0x166),'initialContent':_0x9f1469(_0x218873,_0x30adb6(0x13d)),'level':_0x30adb6(0x149)}),this[_0x30adb6(0x136)][_0x30adb6(0x139)]=!0x1,this[_0x30adb6(0x161)]=new _0x430739(_0x218873,_0x4b403b[_0x30adb6(0x150)],this[_0x30adb6(0x15d)]),this[_0x30adb6(0x161)][_0x30adb6(0x165)](_0x30adb6(0x133))['to'](this),this[_0x30adb6(0x167)]=new _0x4fe7ee(this[_0x30adb6(0x14e)],_0x4b403b[_0x30adb6(0x123)]),_0x4b403b[_0x30adb6(0x148)]?this[_0x30adb6(0x161)][_0x30adb6(0x168)]=!0x1:this[_0x30adb6(0x161)][_0x30adb6(0x165)](_0x30adb6(0x168))['to'](this,_0x30adb6(0x144)),this[_0x30adb6(0x161)][_0x30adb6(0x15c)](..._0x5c291a)['to'](this),this[_0x30adb6(0x135)]({'tag':_0x30adb6(0x12c),'attributes':{'class':['ck',_0x30adb6(0x152)]},'children':[{'tag':_0x30adb6(0x12c),'attributes':{'class':['ck',_0x30adb6(0x138)]},'children':this[_0x30adb6(0x12d)]},this[_0x30adb6(0x136)],this[_0x30adb6(0x161)],this[_0x30adb6(0x167)]]});}get[_0x477ff3(0x169)](){const _0x1ead5e=_0x477ff3;return this[_0x1ead5e(0x12d)][_0x1ead5e(0x14b)];}async[_0x477ff3(0x14c)]({parts:_0x3e95c8,renderingStrategy:_0x5eb2fc,abortSignal:_0x225bbb}){const _0x36dea2=_0x477ff3;this[_0x36dea2(0x12d)][_0x36dea2(0x14b)]?_0x3e95c8[_0x36dea2(0x128)](_0x5ad85b=>{const _0x414043=_0x36dea2,_0x188815=this[_0x414043(0x15b)][_0x414043(0x147)](_0x5de400=>_0x5de400[_0x414043(0x162)]==_0x5ad85b[_0x414043(0x162)]);-0x1===_0x188815?this[_0x414043(0x15b)][_0x414043(0x124)](_0x5ad85b):this[_0x414043(0x15b)][_0x188815]=_0x5ad85b;}):this[_0x36dea2(0x15b)]=_0x3e95c8;const _0xc0c954=this[_0x36dea2(0x134)]?_0x3e95c8:_0x3e95c8[_0x36dea2(0x140)](_0x57a3cf=>_0x57a3cf[_0x36dea2(0x13b)]);this[_0x36dea2(0x161)][_0x36dea2(0x142)](_0xc0c954[_0x36dea2(0x14b)]>0x1);for(const _0xb9e05c of _0xc0c954)this[_0x36dea2(0x12f)][_0x36dea2(0x12a)](async _0x3aaf3d=>{const _0x29db8b=_0x36dea2;let _0x33c2b3=this[_0x29db8b(0x159)](_0xb9e05c[_0x29db8b(0x162)]);_0x33c2b3||(_0x33c2b3=new _0x4541fd(this[_0x29db8b(0x14e)],{'part':_0xb9e05c,'uiIndex':this[_0x29db8b(0x12d)][_0x29db8b(0x14b)]+0x1,'areActionsDisabled':this[_0x29db8b(0x15d)],'availableActions':this[_0x29db8b(0x131)]}),_0x33c2b3[_0x29db8b(0x15c)](..._0x5c291a)['to'](this),this[_0x29db8b(0x12d)][_0x29db8b(0x15e)](_0x33c2b3),this[_0x29db8b(0x144)]=!0x0),await _0x33c2b3[_0x29db8b(0x155)]({'part':_0xb9e05c,'renderingStrategy':_0x5eb2fc,'showUnchangedParts':this[_0x29db8b(0x134)],'abortSignal':_0x3aaf3d}),_0x33c2b3[_0x29db8b(0x13a)]();});return _0x225bbb?.[_0x36dea2(0x14a)](_0x36dea2(0x14f),()=>{const _0x4c6e4d=_0x36dea2;this[_0x4c6e4d(0x12f)][_0x4c6e4d(0x14f)]();}),this[_0x36dea2(0x12f)][_0x36dea2(0x13c)];}[_0x477ff3(0x164)](_0x585881,_0x50a5cf){const _0xed3010=_0x477ff3,_0x43f0db=this[_0xed3010(0x159)](_0x585881);_0x43f0db&&(_0x43f0db[_0xed3010(0x14d)]=_0x50a5cf),this[_0xed3010(0x144)]=_0xed3010(0x13f)==_0x50a5cf||Array[_0xed3010(0x15a)](this[_0xed3010(0x12d)])[_0xed3010(0x145)](_0x46fc6f=>_0xed3010(0x13f)==_0x46fc6f[_0xed3010(0x14d)]);}[_0x477ff3(0x132)](_0x207875,_0x598a9a){const _0x5b04dc=_0x477ff3;if(!0x1===_0x207875){for(const _0x187099 of this[_0x5b04dc(0x12d)])_0x187099[_0x5b04dc(0x15f)]=!0x1;}else{const _0xd55858=this[_0x5b04dc(0x159)](_0x207875);_0xd55858&&(_0xd55858[_0x5b04dc(0x15f)]=_0x598a9a);}}[_0x477ff3(0x156)](_0x2ab5b2){const _0x17cee3=_0x477ff3;_0x2ab5b2[_0x17cee3(0x128)](_0x728376=>this[_0x17cee3(0x167)][_0x17cee3(0x137)](_0x728376)),this[_0x17cee3(0x167)][_0x17cee3(0x139)]=!0x0;}[_0x477ff3(0x159)](_0x3c8e02){const _0x2f5f2b=_0x477ff3;return this[_0x2f5f2b(0x12d)][_0x2f5f2b(0x158)](_0x31360f=>_0x31360f[_0x2f5f2b(0x151)][_0x2f5f2b(0x162)]==_0x3c8e02)??null;}[_0x477ff3(0x13a)](){const _0x1d643b=_0x477ff3;if(!this[_0x1d643b(0x134)]){const _0x335ec8=!this[_0x1d643b(0x15b)][_0x1d643b(0x158)](({hasChanges:_0x75592e})=>_0x75592e),_0x3fe8f6=!!this[_0x1d643b(0x15b)][_0x1d643b(0x158)](({hasChanges:_0x46372a})=>!_0x46372a);this[_0x1d643b(0x136)][_0x1d643b(0x139)]=0x0==this[_0x1d643b(0x12d)][_0x1d643b(0x14b)]||_0x3fe8f6,_0x335ec8?this[_0x1d643b(0x136)][_0x1d643b(0x12b)](_0x9f1469(this[_0x1d643b(0x14e)],_0x1d643b(0x160))):this[_0x1d643b(0x136)][_0x1d643b(0x12b)](_0x9f1469(this[_0x1d643b(0x14e)],_0x1d643b(0x13d)));}this[_0x1d643b(0x12d)][_0x1d643b(0x128)](_0xbae5a3=>_0xbae5a3[_0x1d643b(0x13a)]()),this[_0x1d643b(0x161)][_0x1d643b(0x125)](this[_0x1d643b(0x13e)]);}get[_0x477ff3(0x13e)](){const _0x5ab731=_0x477ff3;return this[_0x5ab731(0x12d)][_0x5ab731(0x140)](_0x37f2cf=>_0x37f2cf[_0x5ab731(0x151)][_0x5ab731(0x13b)])[_0x5ab731(0x14b)]>0x0;}}
23
+ const _0x5551db=_0x3a4c;(function(_0x2ffe6b,_0x469084){const _0x58f162=_0x3a4c,_0x1f9007=_0x2ffe6b();while(!![]){try{const _0x8dde4f=-parseInt(_0x58f162(0x169))/0x1*(parseInt(_0x58f162(0x17c))/0x2)+parseInt(_0x58f162(0x174))/0x3+parseInt(_0x58f162(0x195))/0x4+-parseInt(_0x58f162(0x17e))/0x5+parseInt(_0x58f162(0x167))/0x6+-parseInt(_0x58f162(0x171))/0x7+parseInt(_0x58f162(0x16f))/0x8;if(_0x8dde4f===_0x469084)break;else _0x1f9007['push'](_0x1f9007['shift']());}catch(_0x57d484){_0x1f9007['push'](_0x1f9007['shift']());}}}(_0x4370,0x21da1));import{View as _0x53e3dc}from'ckeditor5/src/ui.js';function _0x4370(){const _0x2a052c=['index','ck-ai-suggestion__body','bind','state','_actionsView','find','length','from','addEventListener','hasNonEmptyParts','queueEmptyPromise','updateVisibility','areActionsDisabled','793680lEhdyI','warning','13zOqNOj','markAsDone','createCollection','setTemplate','_updateContentPartsPromiseQueue','_children','1951504RKZSVO','_areActionsDisabled','1110480lcaiMf','AI_SUGGESTION_NO_PARTS_WARNING','pending','314565jNzcBg','forEach','isEnabled','set','setPartActive','abort','isTrackChangesOn','hasPendingParts','17526ZOKggq','enqueue','819445dGggph','addSource','findIndex','locale','hasChanges','isActive','some','filter','AI_SUGGESTION_EMPTY_PART_WARNING','setContent','empty-parts-warning','partsCount','updateContentParts','_showUnchangedParts','_emptyPartsWarningView','_switchButtonLabelsPlurality','_sourcesView','updateContent','_availableActions','add','partDefinition','updateSources','bodyCollection','376128dYIDjI','push','_cachedContentParts','delegate','updatePartState','availableActions','isVisible','getPartView','ck-ai-suggestion__body__content-parts','div'];_0x4370=function(){return _0x2a052c;};return _0x4370();}import{AISuggestionBodyViewContentPartView as _0x598034}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x465c2d}from'../../utils/eventnames.js';import{PromiseQueue as _0x1b9173}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0xe0ac6f}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x511914}from'../../utils/common-translations.js';function _0x3a4c(_0x1a7fd6,_0x122a7c){const _0x4370e8=_0x4370();return _0x3a4c=function(_0x3a4c83,_0x4e294e){_0x3a4c83=_0x3a4c83-0x153;let _0x429013=_0x4370e8[_0x3a4c83];return _0x429013;},_0x3a4c(_0x1a7fd6,_0x122a7c);}import{AIChatFeedSuggestionItemActionsView as _0x4598b4}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x1f4855}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x53e3dc{[_0x5551db(0x15e)];[_0x5551db(0x18e)];[_0x5551db(0x16e)];[_0x5551db(0x170)];[_0x5551db(0x18b)];[_0x5551db(0x16d)];[_0x5551db(0x18c)];[_0x5551db(0x190)];[_0x5551db(0x197)]=[];constructor(_0x2d4a8c,_0x2e30ab){const _0x4bc225=_0x5551db;super(_0x2d4a8c);const {areActionsDisabled:_0x2151c3,showUnchangedParts:_0x17b1b7,availableActions:_0x4fa612}=_0x2e30ab;this[_0x4bc225(0x170)]=_0x2151c3,this[_0x4bc225(0x18b)]=_0x17b1b7,this[_0x4bc225(0x190)]=_0x4fa612,this[_0x4bc225(0x177)](_0x4bc225(0x17b),!0x1),this[_0x4bc225(0x177)](_0x4bc225(0x17a),!0x1),this[_0x4bc225(0x16e)]=this[_0x4bc225(0x16b)](),this[_0x4bc225(0x16d)]=new _0x1b9173(),this[_0x4bc225(0x18c)]=new _0xe0ac6f({'id':_0x4bc225(0x188),'initialContent':_0x511914(_0x2d4a8c,_0x4bc225(0x186)),'level':_0x4bc225(0x168)}),this[_0x4bc225(0x18c)][_0x4bc225(0x156)]=!0x1,this[_0x4bc225(0x15e)]=new _0x4598b4(_0x2d4a8c,_0x2e30ab[_0x4bc225(0x155)],this[_0x4bc225(0x170)]),this[_0x4bc225(0x15e)][_0x4bc225(0x15c)](_0x4bc225(0x17a))['to'](this),this[_0x4bc225(0x18e)]=new _0x1f4855(this[_0x4bc225(0x181)],_0x2e30ab[_0x4bc225(0x194)]),_0x2e30ab[_0x4bc225(0x166)]?this[_0x4bc225(0x15e)][_0x4bc225(0x176)]=!0x1:this[_0x4bc225(0x15e)][_0x4bc225(0x15c)](_0x4bc225(0x176))['to'](this,_0x4bc225(0x17b)),this[_0x4bc225(0x15e)][_0x4bc225(0x153)](..._0x465c2d)['to'](this),this[_0x4bc225(0x16c)]({'tag':_0x4bc225(0x159),'attributes':{'class':['ck',_0x4bc225(0x15b)]},'children':[{'tag':_0x4bc225(0x159),'attributes':{'class':['ck',_0x4bc225(0x158)]},'children':this[_0x4bc225(0x16e)]},this[_0x4bc225(0x18c)],this[_0x4bc225(0x15e)],this[_0x4bc225(0x18e)]]});}get[_0x5551db(0x189)](){const _0x27b727=_0x5551db;return this[_0x27b727(0x16e)][_0x27b727(0x160)];}async[_0x5551db(0x18a)]({parts:_0x1f06f7,renderingStrategy:_0x475806,abortSignal:_0x223d9c}){const _0x283c0b=_0x5551db;this[_0x283c0b(0x16e)][_0x283c0b(0x160)]?_0x1f06f7[_0x283c0b(0x175)](_0x1d9990=>{const _0x29fafe=_0x283c0b,_0x308e14=this[_0x29fafe(0x197)][_0x29fafe(0x180)](_0x5bb799=>_0x5bb799[_0x29fafe(0x15a)]==_0x1d9990[_0x29fafe(0x15a)]);-0x1===_0x308e14?this[_0x29fafe(0x197)][_0x29fafe(0x196)](_0x1d9990):this[_0x29fafe(0x197)][_0x308e14]=_0x1d9990;}):this[_0x283c0b(0x197)]=_0x1f06f7;const _0x10820a=this[_0x283c0b(0x18b)]?_0x1f06f7:_0x1f06f7[_0x283c0b(0x185)](_0x252c2a=>_0x252c2a[_0x283c0b(0x182)]);this[_0x283c0b(0x15e)][_0x283c0b(0x18d)](_0x10820a[_0x283c0b(0x160)]>0x1);for(const _0x283ca9 of _0x10820a)this[_0x283c0b(0x16d)][_0x283c0b(0x17d)](async _0x4ab46c=>{const _0x3334cc=_0x283c0b;let _0x20ecc6=this[_0x3334cc(0x157)](_0x283ca9[_0x3334cc(0x15a)]);_0x20ecc6||(_0x20ecc6=new _0x598034(this[_0x3334cc(0x181)],{'part':_0x283ca9,'uiIndex':this[_0x3334cc(0x16e)][_0x3334cc(0x160)]+0x1,'areActionsDisabled':this[_0x3334cc(0x170)],'availableActions':this[_0x3334cc(0x190)]}),_0x20ecc6[_0x3334cc(0x153)](..._0x465c2d)['to'](this),this[_0x3334cc(0x16e)][_0x3334cc(0x191)](_0x20ecc6),this[_0x3334cc(0x17b)]=!0x0),await _0x20ecc6[_0x3334cc(0x18f)]({'part':_0x283ca9,'renderingStrategy':_0x475806,'showUnchangedParts':this[_0x3334cc(0x18b)],'abortSignal':_0x4ab46c}),_0x20ecc6[_0x3334cc(0x16a)]();});return _0x223d9c?.[_0x283c0b(0x162)](_0x283c0b(0x179),()=>{const _0x3a3928=_0x283c0b;this[_0x3a3928(0x16d)][_0x3a3928(0x179)]();}),this[_0x283c0b(0x16d)][_0x283c0b(0x164)];}[_0x5551db(0x154)](_0x4acc52,_0xc1efa4){const _0x50db3e=_0x5551db,_0x155752=this[_0x50db3e(0x157)](_0x4acc52);_0x155752&&(_0x155752[_0x50db3e(0x15d)]=_0xc1efa4),this[_0x50db3e(0x17b)]=_0x50db3e(0x173)==_0xc1efa4||Array[_0x50db3e(0x161)](this[_0x50db3e(0x16e)])[_0x50db3e(0x184)](_0x55f946=>_0x50db3e(0x173)==_0x55f946[_0x50db3e(0x15d)]);}[_0x5551db(0x178)](_0x3b2371,_0x10d5fa){const _0x164187=_0x5551db;if(!0x1===_0x3b2371){for(const _0x4f61ae of this[_0x164187(0x16e)])_0x4f61ae[_0x164187(0x183)]=!0x1;}else{const _0x137ace=this[_0x164187(0x157)](_0x3b2371);_0x137ace&&(_0x137ace[_0x164187(0x183)]=_0x10d5fa);}}[_0x5551db(0x193)](_0x27c5cc){const _0x1e06d1=_0x5551db;_0x27c5cc[_0x1e06d1(0x175)](_0x28747d=>this[_0x1e06d1(0x18e)][_0x1e06d1(0x17f)](_0x28747d)),this[_0x1e06d1(0x18e)][_0x1e06d1(0x156)]=!0x0;}[_0x5551db(0x157)](_0x31b474){const _0x134a48=_0x5551db;return this[_0x134a48(0x16e)][_0x134a48(0x15f)](_0x123ea6=>_0x123ea6[_0x134a48(0x192)][_0x134a48(0x15a)]==_0x31b474)??null;}[_0x5551db(0x16a)](){const _0x24cc0c=_0x5551db;if(!this[_0x24cc0c(0x18b)]){const _0x39a98d=!this[_0x24cc0c(0x197)][_0x24cc0c(0x15f)](({hasChanges:_0x4c28d9})=>_0x4c28d9),_0x464b66=!!this[_0x24cc0c(0x197)][_0x24cc0c(0x15f)](({hasChanges:_0x2ee9f1})=>!_0x2ee9f1);this[_0x24cc0c(0x18c)][_0x24cc0c(0x156)]=0x0==this[_0x24cc0c(0x16e)][_0x24cc0c(0x160)]||_0x464b66,_0x39a98d?this[_0x24cc0c(0x18c)][_0x24cc0c(0x187)](_0x511914(this[_0x24cc0c(0x181)],_0x24cc0c(0x172))):this[_0x24cc0c(0x18c)][_0x24cc0c(0x187)](_0x511914(this[_0x24cc0c(0x181)],_0x24cc0c(0x186)));}this[_0x24cc0c(0x16e)][_0x24cc0c(0x175)](_0x37ff91=>_0x37ff91[_0x24cc0c(0x16a)]()),this[_0x24cc0c(0x15e)][_0x24cc0c(0x165)](this[_0x24cc0c(0x163)]);}get[_0x5551db(0x163)](){const _0x592353=_0x5551db;return this[_0x592353(0x16e)][_0x592353(0x185)](_0x2648ea=>_0x2648ea[_0x592353(0x192)][_0x592353(0x182)])[_0x592353(0x160)]>0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3dc87a=_0x18a7;(function(_0x5c9f33,_0x308865){const _0x4eaa9a=_0x18a7,_0xc8ad28=_0x5c9f33();while(!![]){try{const _0x46a1d5=parseInt(_0x4eaa9a(0x89))/0x1*(-parseInt(_0x4eaa9a(0xa3))/0x2)+-parseInt(_0x4eaa9a(0x82))/0x3*(parseInt(_0x4eaa9a(0x8e))/0x4)+-parseInt(_0x4eaa9a(0x81))/0x5+-parseInt(_0x4eaa9a(0x87))/0x6*(parseInt(_0x4eaa9a(0x98))/0x7)+-parseInt(_0x4eaa9a(0x93))/0x8+-parseInt(_0x4eaa9a(0x9e))/0x9+parseInt(_0x4eaa9a(0x84))/0xa*(parseInt(_0x4eaa9a(0x92))/0xb);if(_0x46a1d5===_0x308865)break;else _0xc8ad28['push'](_0xc8ad28['shift']());}catch(_0x379c4e){_0xc8ad28['push'](_0xc8ad28['shift']());}}}(_0x3d04,0xda0a9));import{View as _0xf9f0af}from'ckeditor5/src/ui.js';import{AISuggestionHeaderView as _0x55a291}from'./aisuggestionheaderview.js';function _0x18a7(_0x3a4313,_0x4a76ce){const _0x3d0489=_0x3d04();return _0x18a7=function(_0x18a7f1,_0x20cc05){_0x18a7f1=_0x18a7f1-0x81;let _0xcbb1e4=_0x3d0489[_0x18a7f1];return _0xcbb1e4;},_0x18a7(_0x3a4313,_0x4a76ce);}import{AISuggestionBodyView as _0x9a6e10}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2df636}from'../../utils/eventnames.js';import'../../../../theme/aichat/aisuggestioncontainer.css';function _0x3d04(){const _0x41a833=['25982xcAjBM','13669528xxstOe','children','headerView','set','delegate','75236NehEEX','hasNonEmptyParts','updateContent','toggleSuggestionDisplayMode','updateSources','fire','3473802pNrRfJ','updateContentParts','markAsDone','bind','setTemplate','749754NXHLkX','373825RWBnlt','6549tIAlyz','createCollection','21600znydJh','areChangesVisible','isShowChangesToggleVisible','54FwoRMu','ck-ai-suggestion__container','4WHoNFY','isOn','isTrackChangesOn','ck-rounded-corners','div','812CBHPBR','toggleShowChanges','add','bodyView'];_0x3d04=function(){return _0x41a833;};return _0x3d04();}export class AISuggestionContainerView extends _0xf9f0af{[_0x3dc87a(0x91)];[_0x3dc87a(0x94)];[_0x3dc87a(0x95)];constructor(_0x4b3f19,_0x406fd0,_0x2bdc0d){const _0x2eae32=_0x3dc87a;super(_0x4b3f19);const {showDiff:_0x2be3a9,areActionsDisabled:_0x4d8dca,showUnchangedParts:_0x5b4458,availableActions:_0x4c1bf3}=_0x406fd0;this[_0x2eae32(0x96)](_0x2eae32(0x8b),!0x1),this[_0x2eae32(0x96)](_0x2eae32(0x85),!0x1),this[_0x2eae32(0x94)]=this[_0x2eae32(0x83)](),this[_0x2eae32(0x95)]=new _0x55a291(_0x4b3f19,{'showDiff':_0x2be3a9}),this[_0x2eae32(0x95)]['on'](_0x2eae32(0x8f),(_0x21aca2,_0x5d205f)=>{const _0xbfe1a0=_0x2eae32;this[_0xbfe1a0(0x85)]=_0x5d205f[_0xbfe1a0(0x8a)],this[_0xbfe1a0(0x9d)](_0xbfe1a0(0x9b),{'showDiff':_0x5d205f[_0xbfe1a0(0x8a)]});}),this[_0x2eae32(0x94)][_0x2eae32(0x90)](this[_0x2eae32(0x95)]),this[_0x2eae32(0x91)]=new _0x9a6e10(_0x4b3f19,{'areActionsDisabled':_0x4d8dca,'showUnchangedParts':!!_0x5b4458,'availableActions':_0x4c1bf3,'bodyCollection':_0x2bdc0d}),this[_0x2eae32(0x91)][_0x2eae32(0x97)](..._0x2df636)['to'](this),this[_0x2eae32(0x91)][_0x2eae32(0xa1)](_0x2eae32(0x8b))['to'](this),this[_0x2eae32(0x94)][_0x2eae32(0x90)](this[_0x2eae32(0x91)]),this[_0x2eae32(0xa2)]({'tag':_0x2eae32(0x8d),'attributes':{'class':['ck',_0x2eae32(0x88),_0x2eae32(0x8c)]},'children':this[_0x2eae32(0x94)]});}async[_0x3dc87a(0x9a)](_0x2a0d2d){const _0x383536=_0x3dc87a;await this[_0x383536(0x91)][_0x383536(0x9f)](_0x2a0d2d);}[_0x3dc87a(0x9c)](_0x33f090){const _0x2a15c7=_0x3dc87a;this[_0x2a15c7(0x91)][_0x2a15c7(0x9c)](_0x33f090);}[_0x3dc87a(0xa0)](){const _0x30145=_0x3dc87a;this[_0x30145(0x91)][_0x30145(0xa0)](),this[_0x30145(0x95)]&&(this[_0x30145(0x95)][_0x30145(0x86)]=this[_0x30145(0x91)][_0x30145(0x99)]);}}
23
+ const _0x44a6c3=_0x201c;(function(_0x34f4ce,_0x3e0acd){const _0x1b10b9=_0x201c,_0x1c4a78=_0x34f4ce();while(!![]){try{const _0x394b8e=parseInt(_0x1b10b9(0x18b))/0x1+-parseInt(_0x1b10b9(0x18a))/0x2+-parseInt(_0x1b10b9(0x18d))/0x3*(-parseInt(_0x1b10b9(0x199))/0x4)+parseInt(_0x1b10b9(0x18e))/0x5+-parseInt(_0x1b10b9(0x17e))/0x6*(parseInt(_0x1b10b9(0x18c))/0x7)+parseInt(_0x1b10b9(0x19a))/0x8*(parseInt(_0x1b10b9(0x195))/0x9)+parseInt(_0x1b10b9(0x196))/0xa;if(_0x394b8e===_0x3e0acd)break;else _0x1c4a78['push'](_0x1c4a78['shift']());}catch(_0x36d7db){_0x1c4a78['push'](_0x1c4a78['shift']());}}}(_0x4593,0x49bc5));function _0x201c(_0x4a688c,_0x5d702f){const _0x4593df=_0x4593();return _0x201c=function(_0x201c17,_0x330e07){_0x201c17=_0x201c17-0x17a;let _0x46aa1b=_0x4593df[_0x201c17];return _0x46aa1b;},_0x201c(_0x4a688c,_0x5d702f);}import{View as _0x5c5f53}from'ckeditor5/src/ui.js';import{AISuggestionHeaderView as _0x5cb4d0}from'./aisuggestionheaderview.js';function _0x4593(){const _0x29f7cd=['bodyView','isShowChangesToggleVisible','662262YmUzFk','328616timTsj','7fGusZT','249969TfdHHV','964910WylfeR','headerView','createCollection','children','markAsDone','isOn','div','22860fbpEiI','939670UQOKOR','bind','updateContent','4siXiQo','768UPmQEu','isTrackChangesOn','ck-ai-suggestion__container','toggleSuggestionDisplayMode','updateContentParts','fire','1857456soEQkW','add','set','delegate','updateSources','setTemplate','areChangesVisible','ck-rounded-corners','toggleShowChanges','hasNonEmptyParts'];_0x4593=function(){return _0x29f7cd;};return _0x4593();}import{AISuggestionBodyView as _0x74c478}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x203458}from'../../utils/eventnames.js';import'../../../../theme/aichat/aisuggestioncontainer.css';export class AISuggestionContainerView extends _0x5c5f53{[_0x44a6c3(0x188)];[_0x44a6c3(0x191)];[_0x44a6c3(0x18f)];constructor(_0x2aa842,_0x4f7ab4,_0x18d74e){const _0x36e2a9=_0x44a6c3;super(_0x2aa842);const {showDiff:_0x3bc4f8,areActionsDisabled:_0x278322,showUnchangedParts:_0x147f74,availableActions:_0x437595}=_0x4f7ab4;this[_0x36e2a9(0x180)](_0x36e2a9(0x19b),!0x1),this[_0x36e2a9(0x180)](_0x36e2a9(0x184),!0x1),this[_0x36e2a9(0x191)]=this[_0x36e2a9(0x190)](),this[_0x36e2a9(0x18f)]=new _0x5cb4d0(_0x2aa842,{'showDiff':_0x3bc4f8}),this[_0x36e2a9(0x18f)]['on'](_0x36e2a9(0x186),(_0x192821,_0x4d4dba)=>{const _0x11549d=_0x36e2a9;this[_0x11549d(0x184)]=_0x4d4dba[_0x11549d(0x193)],this[_0x11549d(0x17d)](_0x11549d(0x17b),{'showDiff':_0x4d4dba[_0x11549d(0x193)]});}),this[_0x36e2a9(0x191)][_0x36e2a9(0x17f)](this[_0x36e2a9(0x18f)]),this[_0x36e2a9(0x188)]=new _0x74c478(_0x2aa842,{'areActionsDisabled':_0x278322,'showUnchangedParts':!!_0x147f74,'availableActions':_0x437595,'bodyCollection':_0x18d74e}),this[_0x36e2a9(0x188)][_0x36e2a9(0x181)](..._0x203458)['to'](this),this[_0x36e2a9(0x188)][_0x36e2a9(0x197)](_0x36e2a9(0x19b))['to'](this),this[_0x36e2a9(0x191)][_0x36e2a9(0x17f)](this[_0x36e2a9(0x188)]),this[_0x36e2a9(0x183)]({'tag':_0x36e2a9(0x194),'attributes':{'class':['ck',_0x36e2a9(0x17a),_0x36e2a9(0x185)]},'children':this[_0x36e2a9(0x191)]});}async[_0x44a6c3(0x198)](_0x296e16){const _0x1497de=_0x44a6c3;await this[_0x1497de(0x188)][_0x1497de(0x17c)](_0x296e16);}[_0x44a6c3(0x182)](_0x4cd2cf){const _0x1fd7b6=_0x44a6c3;this[_0x1fd7b6(0x188)][_0x1fd7b6(0x182)](_0x4cd2cf);}[_0x44a6c3(0x192)](){const _0x14e573=_0x44a6c3;this[_0x14e573(0x188)][_0x14e573(0x192)](),this[_0x14e573(0x18f)]&&(this[_0x14e573(0x18f)][_0x14e573(0x189)]=this[_0x14e573(0x188)][_0x14e573(0x187)]);}}