@ckeditor/ckeditor5-ai 47.5.0 → 47.6.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 (515) hide show
  1. package/build/966.ai.js +5 -0
  2. package/build/ai.js +1 -2
  3. package/build/translations/af.js +1 -1
  4. package/build/translations/ar.js +1 -1
  5. package/build/translations/ast.js +1 -1
  6. package/build/translations/az.js +1 -1
  7. package/build/translations/be.js +1 -1
  8. package/build/translations/bg.js +1 -1
  9. package/build/translations/bn.js +1 -1
  10. package/build/translations/bs.js +1 -1
  11. package/build/translations/ca.js +1 -1
  12. package/build/translations/cs.js +1 -1
  13. package/build/translations/da.js +1 -1
  14. package/build/translations/de-ch.js +1 -1
  15. package/build/translations/de.js +1 -1
  16. package/build/translations/el.js +1 -1
  17. package/build/translations/en-au.js +1 -1
  18. package/build/translations/en-gb.js +1 -1
  19. package/build/translations/en.js +1 -0
  20. package/build/translations/eo.js +1 -1
  21. package/build/translations/es-co.js +1 -1
  22. package/build/translations/es.js +1 -1
  23. package/build/translations/et.js +1 -1
  24. package/build/translations/eu.js +1 -1
  25. package/build/translations/fa.js +1 -1
  26. package/build/translations/fi.js +1 -1
  27. package/build/translations/fr.js +1 -1
  28. package/build/translations/gl.js +1 -1
  29. package/build/translations/gu.js +1 -1
  30. package/build/translations/he.js +1 -1
  31. package/build/translations/hi.js +1 -1
  32. package/build/translations/hr.js +1 -1
  33. package/build/translations/hu.js +1 -1
  34. package/build/translations/hy.js +1 -1
  35. package/build/translations/id.js +1 -1
  36. package/build/translations/it.js +1 -1
  37. package/build/translations/ja.js +1 -1
  38. package/build/translations/jv.js +1 -1
  39. package/build/translations/kk.js +1 -1
  40. package/build/translations/km.js +1 -1
  41. package/build/translations/kn.js +1 -1
  42. package/build/translations/ko.js +1 -1
  43. package/build/translations/ku.js +1 -1
  44. package/build/translations/lt.js +1 -1
  45. package/build/translations/lv.js +1 -1
  46. package/build/translations/ms.js +1 -1
  47. package/build/translations/nb.js +1 -1
  48. package/build/translations/ne.js +1 -1
  49. package/build/translations/nl.js +1 -1
  50. package/build/translations/no.js +1 -1
  51. package/build/translations/oc.js +1 -1
  52. package/build/translations/pl.js +1 -1
  53. package/build/translations/pt-br.js +1 -1
  54. package/build/translations/pt.js +1 -1
  55. package/build/translations/ro.js +1 -1
  56. package/build/translations/ru.js +1 -1
  57. package/build/translations/si.js +1 -1
  58. package/build/translations/sk.js +1 -1
  59. package/build/translations/sl.js +1 -1
  60. package/build/translations/sq.js +1 -1
  61. package/build/translations/sr-latn.js +1 -1
  62. package/build/translations/sr.js +1 -1
  63. package/build/translations/sv.js +1 -1
  64. package/build/translations/th.js +1 -1
  65. package/build/translations/ti.js +1 -1
  66. package/build/translations/tk.js +1 -1
  67. package/build/translations/tr.js +1 -1
  68. package/build/translations/tt.js +1 -1
  69. package/build/translations/ug.js +1 -1
  70. package/build/translations/uk.js +1 -1
  71. package/build/translations/ur.js +1 -1
  72. package/build/translations/uz.js +1 -1
  73. package/build/translations/vi.js +1 -1
  74. package/build/translations/zh-cn.js +1 -1
  75. package/build/translations/zh.js +1 -1
  76. package/dist/index-editor.css +387 -403
  77. package/dist/index.css +441 -413
  78. package/dist/index.js +5 -5
  79. package/dist/translations/af.js +1 -1
  80. package/dist/translations/af.umd.js +1 -1
  81. package/dist/translations/ar.js +1 -1
  82. package/dist/translations/ar.umd.js +1 -1
  83. package/dist/translations/ast.js +1 -1
  84. package/dist/translations/ast.umd.js +1 -1
  85. package/dist/translations/az.js +1 -1
  86. package/dist/translations/az.umd.js +1 -1
  87. package/dist/translations/be.js +1 -1
  88. package/dist/translations/be.umd.js +1 -1
  89. package/dist/translations/bg.js +1 -1
  90. package/dist/translations/bg.umd.js +1 -1
  91. package/dist/translations/bn.js +1 -1
  92. package/dist/translations/bn.umd.js +1 -1
  93. package/dist/translations/bs.js +1 -1
  94. package/dist/translations/bs.umd.js +1 -1
  95. package/dist/translations/ca.js +1 -1
  96. package/dist/translations/ca.umd.js +1 -1
  97. package/dist/translations/cs.js +1 -1
  98. package/dist/translations/cs.umd.js +1 -1
  99. package/dist/translations/da.js +1 -1
  100. package/dist/translations/da.umd.js +1 -1
  101. package/dist/translations/de-ch.js +1 -1
  102. package/dist/translations/de-ch.umd.js +1 -1
  103. package/dist/translations/de.js +1 -1
  104. package/dist/translations/de.umd.js +1 -1
  105. package/dist/translations/el.js +1 -1
  106. package/dist/translations/el.umd.js +1 -1
  107. package/dist/translations/en-au.js +1 -1
  108. package/dist/translations/en-au.umd.js +1 -1
  109. package/dist/translations/en-gb.js +1 -1
  110. package/dist/translations/en-gb.umd.js +1 -1
  111. package/dist/translations/en.js +1 -1
  112. package/dist/translations/en.umd.js +1 -1
  113. package/dist/translations/eo.js +1 -1
  114. package/dist/translations/eo.umd.js +1 -1
  115. package/dist/translations/es-co.js +1 -1
  116. package/dist/translations/es-co.umd.js +1 -1
  117. package/dist/translations/es.js +1 -1
  118. package/dist/translations/es.umd.js +1 -1
  119. package/dist/translations/et.js +1 -1
  120. package/dist/translations/et.umd.js +1 -1
  121. package/dist/translations/eu.js +1 -1
  122. package/dist/translations/eu.umd.js +1 -1
  123. package/dist/translations/fa.js +1 -1
  124. package/dist/translations/fa.umd.js +1 -1
  125. package/dist/translations/fi.js +1 -1
  126. package/dist/translations/fi.umd.js +1 -1
  127. package/dist/translations/fr.js +1 -1
  128. package/dist/translations/fr.umd.js +1 -1
  129. package/dist/translations/gl.js +1 -1
  130. package/dist/translations/gl.umd.js +1 -1
  131. package/dist/translations/gu.js +1 -1
  132. package/dist/translations/gu.umd.js +1 -1
  133. package/dist/translations/he.js +1 -1
  134. package/dist/translations/he.umd.js +1 -1
  135. package/dist/translations/hi.js +1 -1
  136. package/dist/translations/hi.umd.js +1 -1
  137. package/dist/translations/hr.js +1 -1
  138. package/dist/translations/hr.umd.js +1 -1
  139. package/dist/translations/hu.js +1 -1
  140. package/dist/translations/hu.umd.js +1 -1
  141. package/dist/translations/hy.js +1 -1
  142. package/dist/translations/hy.umd.js +1 -1
  143. package/dist/translations/id.js +1 -1
  144. package/dist/translations/id.umd.js +1 -1
  145. package/dist/translations/it.js +1 -1
  146. package/dist/translations/it.umd.js +1 -1
  147. package/dist/translations/ja.js +1 -1
  148. package/dist/translations/ja.umd.js +1 -1
  149. package/dist/translations/jv.js +1 -1
  150. package/dist/translations/jv.umd.js +1 -1
  151. package/dist/translations/kk.js +1 -1
  152. package/dist/translations/kk.umd.js +1 -1
  153. package/dist/translations/km.js +1 -1
  154. package/dist/translations/km.umd.js +1 -1
  155. package/dist/translations/kn.js +1 -1
  156. package/dist/translations/kn.umd.js +1 -1
  157. package/dist/translations/ko.js +1 -1
  158. package/dist/translations/ko.umd.js +1 -1
  159. package/dist/translations/ku.js +1 -1
  160. package/dist/translations/ku.umd.js +1 -1
  161. package/dist/translations/lt.js +1 -1
  162. package/dist/translations/lt.umd.js +1 -1
  163. package/dist/translations/lv.js +1 -1
  164. package/dist/translations/lv.umd.js +1 -1
  165. package/dist/translations/ms.js +1 -1
  166. package/dist/translations/ms.umd.js +1 -1
  167. package/dist/translations/nb.js +1 -1
  168. package/dist/translations/nb.umd.js +1 -1
  169. package/dist/translations/ne.js +1 -1
  170. package/dist/translations/ne.umd.js +1 -1
  171. package/dist/translations/nl.js +1 -1
  172. package/dist/translations/nl.umd.js +1 -1
  173. package/dist/translations/no.js +1 -1
  174. package/dist/translations/no.umd.js +1 -1
  175. package/dist/translations/oc.js +1 -1
  176. package/dist/translations/oc.umd.js +1 -1
  177. package/dist/translations/pl.js +1 -1
  178. package/dist/translations/pl.umd.js +1 -1
  179. package/dist/translations/pt-br.js +1 -1
  180. package/dist/translations/pt-br.umd.js +1 -1
  181. package/dist/translations/pt.js +1 -1
  182. package/dist/translations/pt.umd.js +1 -1
  183. package/dist/translations/ro.js +1 -1
  184. package/dist/translations/ro.umd.js +1 -1
  185. package/dist/translations/ru.js +1 -1
  186. package/dist/translations/ru.umd.js +1 -1
  187. package/dist/translations/si.js +1 -1
  188. package/dist/translations/si.umd.js +1 -1
  189. package/dist/translations/sk.js +1 -1
  190. package/dist/translations/sk.umd.js +1 -1
  191. package/dist/translations/sl.js +1 -1
  192. package/dist/translations/sl.umd.js +1 -1
  193. package/dist/translations/sq.js +1 -1
  194. package/dist/translations/sq.umd.js +1 -1
  195. package/dist/translations/sr-latn.js +1 -1
  196. package/dist/translations/sr-latn.umd.js +1 -1
  197. package/dist/translations/sr.js +1 -1
  198. package/dist/translations/sr.umd.js +1 -1
  199. package/dist/translations/sv.js +1 -1
  200. package/dist/translations/sv.umd.js +1 -1
  201. package/dist/translations/th.js +1 -1
  202. package/dist/translations/th.umd.js +1 -1
  203. package/dist/translations/ti.js +1 -1
  204. package/dist/translations/ti.umd.js +1 -1
  205. package/dist/translations/tk.js +1 -1
  206. package/dist/translations/tk.umd.js +1 -1
  207. package/dist/translations/tr.js +1 -1
  208. package/dist/translations/tr.umd.js +1 -1
  209. package/dist/translations/tt.js +1 -1
  210. package/dist/translations/tt.umd.js +1 -1
  211. package/dist/translations/ug.js +1 -1
  212. package/dist/translations/ug.umd.js +1 -1
  213. package/dist/translations/uk.js +1 -1
  214. package/dist/translations/uk.umd.js +1 -1
  215. package/dist/translations/ur.js +1 -1
  216. package/dist/translations/ur.umd.js +1 -1
  217. package/dist/translations/uz.js +1 -1
  218. package/dist/translations/uz.umd.js +1 -1
  219. package/dist/translations/vi.js +1 -1
  220. package/dist/translations/vi.umd.js +1 -1
  221. package/dist/translations/zh-cn.js +1 -1
  222. package/dist/translations/zh-cn.umd.js +1 -1
  223. package/dist/translations/zh.js +1 -1
  224. package/dist/translations/zh.umd.js +1 -1
  225. package/lang/contexts.json +1 -0
  226. package/lang/translations/af.po +8 -4
  227. package/lang/translations/ar.po +8 -4
  228. package/lang/translations/ast.po +8 -4
  229. package/lang/translations/az.po +8 -4
  230. package/lang/translations/be.po +8 -4
  231. package/lang/translations/bg.po +8 -4
  232. package/lang/translations/bn.po +8 -4
  233. package/lang/translations/bs.po +8 -4
  234. package/lang/translations/ca.po +8 -4
  235. package/lang/translations/cs.po +8 -4
  236. package/lang/translations/da.po +8 -4
  237. package/lang/translations/de-ch.po +8 -4
  238. package/lang/translations/de.po +8 -4
  239. package/lang/translations/el.po +8 -4
  240. package/lang/translations/en-au.po +8 -4
  241. package/lang/translations/en-gb.po +8 -4
  242. package/lang/translations/en.po +8 -4
  243. package/lang/translations/eo.po +8 -4
  244. package/lang/translations/es-co.po +8 -4
  245. package/lang/translations/es.po +8 -4
  246. package/lang/translations/et.po +8 -4
  247. package/lang/translations/eu.po +8 -4
  248. package/lang/translations/fa.po +8 -4
  249. package/lang/translations/fi.po +8 -4
  250. package/lang/translations/fr.po +8 -4
  251. package/lang/translations/gl.po +8 -4
  252. package/lang/translations/gu.po +8 -4
  253. package/lang/translations/he.po +8 -4
  254. package/lang/translations/hi.po +8 -4
  255. package/lang/translations/hr.po +8 -4
  256. package/lang/translations/hu.po +8 -4
  257. package/lang/translations/hy.po +8 -4
  258. package/lang/translations/id.po +8 -4
  259. package/lang/translations/it.po +8 -4
  260. package/lang/translations/ja.po +8 -4
  261. package/lang/translations/jv.po +8 -4
  262. package/lang/translations/kk.po +8 -4
  263. package/lang/translations/km.po +8 -4
  264. package/lang/translations/kn.po +8 -4
  265. package/lang/translations/ko.po +8 -4
  266. package/lang/translations/ku.po +8 -4
  267. package/lang/translations/lt.po +8 -4
  268. package/lang/translations/lv.po +8 -4
  269. package/lang/translations/ms.po +8 -4
  270. package/lang/translations/nb.po +8 -4
  271. package/lang/translations/ne.po +8 -4
  272. package/lang/translations/nl.po +8 -4
  273. package/lang/translations/no.po +8 -4
  274. package/lang/translations/oc.po +8 -4
  275. package/lang/translations/pl.po +8 -4
  276. package/lang/translations/pt-br.po +8 -4
  277. package/lang/translations/pt.po +8 -4
  278. package/lang/translations/ro.po +8 -4
  279. package/lang/translations/ru.po +8 -4
  280. package/lang/translations/si.po +8 -4
  281. package/lang/translations/sk.po +8 -4
  282. package/lang/translations/sl.po +8 -4
  283. package/lang/translations/sq.po +8 -4
  284. package/lang/translations/sr-latn.po +8 -4
  285. package/lang/translations/sr.po +8 -4
  286. package/lang/translations/sv.po +8 -4
  287. package/lang/translations/th.po +8 -4
  288. package/lang/translations/ti.po +8 -4
  289. package/lang/translations/tk.po +8 -4
  290. package/lang/translations/tr.po +8 -4
  291. package/lang/translations/tt.po +8 -4
  292. package/lang/translations/ug.po +8 -4
  293. package/lang/translations/uk.po +8 -4
  294. package/lang/translations/ur.po +8 -4
  295. package/lang/translations/uz.po +8 -4
  296. package/lang/translations/vi.po +8 -4
  297. package/lang/translations/zh-cn.po +8 -4
  298. package/lang/translations/zh.po +8 -4
  299. package/package.json +21 -21
  300. package/src/aiactions/aiactions.js +1 -1
  301. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  302. package/src/aiactions/model/aiactionsreply.js +1 -1
  303. package/src/aiassistant/adapters/aiadapter.js +1 -1
  304. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  305. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  306. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  307. package/src/aiassistant/aiassistant.js +1 -1
  308. package/src/aiassistant/aiassistantediting.js +1 -1
  309. package/src/aiassistant/aiassistantui.js +1 -1
  310. package/src/aiassistant/legacyerrors.js +1 -1
  311. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  312. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  313. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  314. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  315. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  316. package/src/aiassistant/ui/form/aiformview.js +1 -1
  317. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  318. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  319. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  320. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  321. package/src/aiassistant/utils/common-translations.js +1 -1
  322. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  323. package/src/aiballoon/aiballoon.js +1 -1
  324. package/src/aiballoon/ui/aiballoonview.js +1 -1
  325. package/src/aichat/aichat.d.ts +12 -8
  326. package/src/aichat/aichat.js +1 -1
  327. package/src/aichat/aichatballoon.js +1 -1
  328. package/src/aichat/aichatcontroller.d.ts +4 -0
  329. package/src/aichat/aichatcontroller.js +1 -1
  330. package/src/aichat/aichatui.d.ts +24 -1
  331. package/src/aichat/aichatui.js +1 -1
  332. package/src/aichat/model/aichatcontext.js +1 -1
  333. package/src/aichat/model/aichatconversation.d.ts +13 -0
  334. package/src/aichat/model/aichatconversation.js +1 -1
  335. package/src/aichat/model/aichatinteraction.js +1 -1
  336. package/src/aichat/ui/aichatballoonview.js +1 -1
  337. package/src/aichat/ui/aichatcontrolsview.d.ts +5 -1
  338. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  339. package/src/aichat/ui/aichatfeedview.d.ts +4 -0
  340. package/src/aichat/ui/aichatfeedview.js +1 -1
  341. package/src/aichat/ui/aichatheaderview.js +1 -1
  342. package/src/aichat/ui/aichatview.js +1 -1
  343. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  344. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  345. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  346. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  347. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  348. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  349. package/src/aichat/ui/controls/aichatpromptinputview.d.ts +5 -0
  350. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  351. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  352. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  353. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  354. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  355. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  356. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  357. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  358. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  359. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  360. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  361. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  362. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  363. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  364. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  365. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  366. package/src/aichat/utils/eventnames.js +1 -1
  367. package/src/aichat/utils/promisequeue.js +1 -1
  368. package/src/aichathistory/aichathistory.js +1 -1
  369. package/src/aichathistory/aichathistorycontroller.js +1 -1
  370. package/src/aichathistory/aichathistoryui.js +1 -1
  371. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  372. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  373. package/src/aichathistory/ui/aichathistorylistitemview.d.ts +1 -1
  374. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  375. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  376. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  377. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  378. package/src/aichatshortcuts/aichatshortcuts.d.ts +324 -0
  379. package/src/aichatshortcuts/aichatshortcuts.js +23 -0
  380. package/src/aichatshortcuts/ui/aichatshortcutsview.d.ts +23 -0
  381. package/src/aichatshortcuts/ui/aichatshortcutsview.js +23 -0
  382. package/src/aichatshortcuts/ui/aichatshortcutview.d.ts +23 -0
  383. package/src/aichatshortcuts/ui/aichatshortcutview.js +23 -0
  384. package/src/aiconfig.d.ts +7 -0
  385. package/src/aicore/aiconnector.js +1 -1
  386. package/src/aicore/aiediting.js +1 -1
  387. package/src/aicore/model/aicapabilities.d.ts +8 -0
  388. package/src/aicore/model/aicapabilities.js +1 -1
  389. package/src/aicore/model/aicontext.d.ts +7 -1
  390. package/src/aicore/model/aicontext.js +1 -1
  391. package/src/aicore/model/aiinteraction.js +1 -1
  392. package/src/aicore/model/aimodels.js +1 -1
  393. package/src/aicore/model/aireply.js +1 -1
  394. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  395. package/src/aicore/pipeline/airesponseparser.js +2 -2
  396. package/src/aicore/ui/aidisclaimerview.js +1 -1
  397. package/src/aicore/ui/aiskeleton.js +1 -1
  398. package/src/aicore/ui/aispinner.js +1 -1
  399. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  400. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  401. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  402. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  403. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  404. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  405. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  406. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  407. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  408. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  409. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  410. package/src/aicore/utils/common-translations.js +1 -1
  411. package/src/aicore/utils/createresizebutton.d.ts +1 -0
  412. package/src/aicore/utils/createresizebutton.js +1 -1
  413. package/src/aicore/utils/documentposition.js +1 -1
  414. package/src/aicore/utils/documentrange.js +1 -1
  415. package/src/aicore/utils/eventnames.js +1 -1
  416. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  417. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  418. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  419. package/src/aicore/utils/htmlparser.js +1 -1
  420. package/src/aicore/utils/htmlstreamer.js +1 -1
  421. package/src/aicore/utils/scrollmanager.js +1 -1
  422. package/src/aieditorintegration/aieditorintegration.js +1 -1
  423. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  424. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  425. package/src/aiquickactions/aiquickactions.js +1 -1
  426. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  427. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  428. package/src/aiquickactions/aiquickactionsui.js +1 -1
  429. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  430. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  431. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  432. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  433. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  434. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  435. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  436. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  437. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  438. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  439. package/src/aireviewcore/aireviewcoreui.js +1 -1
  440. package/src/aireviewcore/model/aireviewcheck.d.ts +4 -0
  441. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  442. package/src/aireviewcore/model/aireviewchecklist.d.ts +3 -3
  443. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  444. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  445. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  446. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  447. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  448. package/src/aireviewcore/types.d.ts +11 -2
  449. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  450. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  451. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  452. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  453. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  454. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  455. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  456. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  457. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  458. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  459. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  460. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  461. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  462. package/src/aireviewmode/aireviewcheckdefinitions.d.ts +4 -0
  463. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  464. package/src/aireviewmode/aireviewmode.d.ts +95 -0
  465. package/src/aireviewmode/aireviewmode.js +1 -1
  466. package/src/aireviewmode/aireviewmodecontroller.d.ts +5 -0
  467. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  468. package/src/aireviewmode/aireviewmodeui.js +1 -1
  469. package/src/aireviewmode/model/aireviewcheckcustom.d.ts +6 -3
  470. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  471. package/src/aireviewmode/model/aireviewcheckextra.d.ts +35 -0
  472. package/src/aireviewmode/model/aireviewcheckextra.js +23 -0
  473. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +2 -1
  474. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  475. package/src/aireviewmode/model/aireviewextracheckrun.d.ts +20 -0
  476. package/src/aireviewmode/model/aireviewextracheckrun.js +23 -0
  477. package/src/aireviewmode/model/aireviewmodechecklist.d.ts +10 -0
  478. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  479. package/src/aitabs/aitabs.js +1 -1
  480. package/src/aitabs/aitabsmainview.js +1 -1
  481. package/src/aitabs/tabs/aitabsview.js +1 -1
  482. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  483. package/src/aitabs/tabs/tabpanelview.js +1 -1
  484. package/src/aitranslate/aitranslate.js +1 -1
  485. package/src/aitranslate/aitranslatecontroller.js +1 -1
  486. package/src/aitranslate/aitranslateui.js +1 -1
  487. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  488. package/src/aitranslate/model/aitranslatechecklist.d.ts +5 -0
  489. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  490. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  491. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  492. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  493. package/src/augmentation.d.ts +2 -0
  494. package/src/errors.js +1 -1
  495. package/src/errorsmap.js +1 -1
  496. package/src/index.d.ts +2 -1
  497. package/src/index.js +1 -1
  498. package/theme/aichat/aichat-controls/aichat-context-controls.css +0 -1
  499. package/theme/aichat/aichat-controls/aichat-controls-button.css +22 -23
  500. package/theme/aichat/aichat-controls/prompt-input.css +23 -0
  501. package/theme/aichat/aichat-controls.css +0 -19
  502. package/theme/aichat/aichathistory.css +1 -1
  503. package/theme/aichat/aiminitoolbar.css +0 -16
  504. package/theme/aichatshortcuts/aichatshortcuts.css +84 -0
  505. package/theme/aieditorintegration/aitogglebutton.css +5 -11
  506. package/theme/aiquickactions/aiquickactions.css +6 -11
  507. package/theme/aiquickactions/aiquickactionsballoon.css +37 -29
  508. package/theme/aireviewcore/aireviewcore-check-run.css +4 -0
  509. package/theme/aireviewcore/aireviewcore.css +4 -4
  510. package/theme/aitabs/aitabsresizebutton.css +14 -0
  511. package/theme/aitranslate/aitranslate.css +4 -0
  512. package/theme/common/aibutton.css +56 -67
  513. package/theme/common/aiheader.css +1 -1
  514. package/theme/common/aisuggestioncontentparttoolbar.css +1 -1
  515. package/theme/common/aisuggestionstreamablecontent.css +4 -1
@@ -39,6 +39,14 @@ export declare class AICapabilities extends /* #__PURE__ */ AICapabilities_base
39
39
  * Toggles the reasoning enabled state.
40
40
  */
41
41
  toggleReasoning(): void;
42
+ /**
43
+ * Sets the web search enabled state and fires an event with current state.
44
+ */
45
+ setWebSearch(isWebSearchEnabled: boolean): void;
46
+ /**
47
+ * Sets the reasoning enabled state and fires an event with current state.
48
+ */
49
+ setReasoning(isReasoningEnabled: boolean): void;
42
50
  }
43
51
  export type AICapabilitiesUpdatedEvent = {
44
52
  name: 'capabilitiesUpdated';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5236d0=_0x5e69;(function(_0x1fad7e,_0x909749){const _0x19b41d=_0x5e69,_0x18885b=_0x1fad7e();while(!![]){try{const _0x3b972f=-parseInt(_0x19b41d(0x179))/0x1*(-parseInt(_0x19b41d(0x16e))/0x2)+parseInt(_0x19b41d(0x16c))/0x3+-parseInt(_0x19b41d(0x176))/0x4+-parseInt(_0x19b41d(0x168))/0x5+-parseInt(_0x19b41d(0x174))/0x6+-parseInt(_0x19b41d(0x16d))/0x7*(parseInt(_0x19b41d(0x167))/0x8)+parseInt(_0x19b41d(0x173))/0x9;if(_0x3b972f===_0x909749)break;else _0x18885b['push'](_0x18885b['shift']());}catch(_0x518399){_0x18885b['push'](_0x18885b['shift']());}}}(_0xab0f,0x2e59e));function _0x5e69(_0x3817e7,_0x1cb362){const _0xab0fa9=_0xab0f();return _0x5e69=function(_0x5e69a6,_0x15ff63){_0x5e69a6=_0x5e69a6-0x162;let _0x4e7321=_0xab0fa9[_0x5e69a6];return _0x4e7321;},_0x5e69(_0x3817e7,_0x1cb362);}import{EmitterMixin as _0xde1c8b}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x5236d0(0x162)];export class AICapabilities extends _0xde1c8b(){[_0x5236d0(0x165)];[_0x5236d0(0x169)];constructor(){const _0x4904ad=_0x5236d0;super(),this[_0x4904ad(0x165)]=!0x1,this[_0x4904ad(0x169)]=!0x1;}[_0x5236d0(0x16b)](){const _0x45214b=_0x5236d0;this[_0x45214b(0x164)]();}[_0x5236d0(0x164)](){const _0x194a9f=_0x5236d0;this[_0x194a9f(0x166)](!0x1),this[_0x194a9f(0x172)](!0x1);}[_0x5236d0(0x16a)](){const _0x5f0c36=_0x5236d0;return{'isWebSearchEnabled':this[_0x5f0c36(0x165)],'isReasoningEnabled':this[_0x5f0c36(0x169)]};}static[_0x5236d0(0x177)](_0x3a4bc5){const _0x5ae304=_0x5236d0,_0x40345a={};return _0x3a4bc5&&_0x3a4bc5[_0x5ae304(0x175)]&&(_0x40345a[_0x5ae304(0x178)]={}),_0x3a4bc5&&_0x3a4bc5[_0x5ae304(0x171)]&&(_0x40345a[_0x5ae304(0x16f)]={}),_0x40345a;}[_0x5236d0(0x17a)](){const _0xa23a4a=_0x5236d0;this[_0xa23a4a(0x166)](!this[_0xa23a4a(0x165)]);}[_0x5236d0(0x170)](){const _0x4f147f=_0x5236d0;this[_0x4f147f(0x172)](!this[_0x4f147f(0x169)]);}[_0x5236d0(0x166)](_0x52c6f9){const _0x1d0dbd=_0x5236d0;_0x52c6f9!==this[_0x1d0dbd(0x165)]&&(this[_0x1d0dbd(0x165)]=_0x52c6f9,this[_0x1d0dbd(0x163)](_0x1d0dbd(0x162),this[_0x1d0dbd(0x16a)]()));}[_0x5236d0(0x172)](_0x2f1267){const _0x59cc85=_0x5236d0;_0x2f1267!==this[_0x59cc85(0x169)]&&(this[_0x59cc85(0x169)]=_0x2f1267,this[_0x59cc85(0x163)](_0x59cc85(0x162),this[_0x59cc85(0x16a)]()));}}function _0xab0f(){const _0x2469d3=['_isReasoningEnabled','getCapabilitiesConfig','init','290319IBuiaE','51429ulYYLL','2PPquWQ','reasoning','toggleReasoning','isReasoningEnabled','setReasoning','4840578NNqJBW','1327224HFYxyR','isWebSearchEnabled','295972SAhQps','getCapabilitiesRequestData','webSearch','265957PuMnjJ','toggleWebSearch','capabilitiesUpdated','fire','reset','_isWebSearchEnabled','setWebSearch','48NWfHuW','1857195HDoCnI'];_0xab0f=function(){return _0x2469d3;};return _0xab0f();}
23
+ const _0x3c0134=_0x9631;(function(_0x53a8f2,_0x389c44){const _0x5e93dc=_0x9631,_0xeed791=_0x53a8f2();while(!![]){try{const _0x1dea60=parseInt(_0x5e93dc(0x146))/0x1*(-parseInt(_0x5e93dc(0x133))/0x2)+parseInt(_0x5e93dc(0x143))/0x3+parseInt(_0x5e93dc(0x14b))/0x4+-parseInt(_0x5e93dc(0x140))/0x5*(-parseInt(_0x5e93dc(0x149))/0x6)+parseInt(_0x5e93dc(0x148))/0x7+parseInt(_0x5e93dc(0x136))/0x8*(-parseInt(_0x5e93dc(0x145))/0x9)+-parseInt(_0x5e93dc(0x132))/0xa*(parseInt(_0x5e93dc(0x139))/0xb);if(_0x1dea60===_0x389c44)break;else _0xeed791['push'](_0xeed791['shift']());}catch(_0x4f7f89){_0xeed791['push'](_0xeed791['shift']());}}}(_0x3e5d,0xcf77a));function _0x3e5d(){const _0x580496=['1621155aiCNwi','getCapabilitiesRequestData','isReasoningEnabled','4854027QkDagl','isWebSearchEnabled','1251bbjxbn','19XykOQf','reset','7149184WKsPrt','6RXBKCM','reasoning','5401496worEmZ','_isReasoningEnabled','166570UBrZiV','11460WPEbbH','toggleWebSearch','fire','86696QoIXHl','setWebSearch','capabilitiesUpdated','1221YnBXjn','init','webSearch','setReasoning','getCapabilitiesConfig','toggleReasoning','_isWebSearchEnabled'];_0x3e5d=function(){return _0x580496;};return _0x3e5d();}import{EmitterMixin as _0x2ff852}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x3c0134(0x138)];function _0x9631(_0x393399,_0x170c9d){const _0x3e5dd4=_0x3e5d();return _0x9631=function(_0x96311b,_0x1ed4ff){_0x96311b=_0x96311b-0x132;let _0x28ff26=_0x3e5dd4[_0x96311b];return _0x28ff26;},_0x9631(_0x393399,_0x170c9d);}export class AICapabilities extends _0x2ff852(){[_0x3c0134(0x13f)];[_0x3c0134(0x14c)];constructor(){const _0x444481=_0x3c0134;super(),this[_0x444481(0x13f)]=!0x1,this[_0x444481(0x14c)]=!0x1;}[_0x3c0134(0x13a)](){const _0x51128b=_0x3c0134;this[_0x51128b(0x147)]();}[_0x3c0134(0x147)](){const _0x308e1a=_0x3c0134;this[_0x308e1a(0x137)](!0x1),this[_0x308e1a(0x13c)](!0x1);}[_0x3c0134(0x13d)](){const _0x393878=_0x3c0134;return{'isWebSearchEnabled':this[_0x393878(0x13f)],'isReasoningEnabled':this[_0x393878(0x14c)]};}static[_0x3c0134(0x141)](_0x2cecd3){const _0x55ef89=_0x3c0134,_0x103794={};return _0x2cecd3&&_0x2cecd3[_0x55ef89(0x144)]&&(_0x103794[_0x55ef89(0x13b)]={}),_0x2cecd3&&_0x2cecd3[_0x55ef89(0x142)]&&(_0x103794[_0x55ef89(0x14a)]={}),_0x103794;}[_0x3c0134(0x134)](){const _0x49a563=_0x3c0134;this[_0x49a563(0x137)](!this[_0x49a563(0x13f)]);}[_0x3c0134(0x13e)](){const _0x9c5f29=_0x3c0134;this[_0x9c5f29(0x13c)](!this[_0x9c5f29(0x14c)]);}[_0x3c0134(0x137)](_0x1061b3){const _0x34e845=_0x3c0134;_0x1061b3!==this[_0x34e845(0x13f)]&&(this[_0x34e845(0x13f)]=_0x1061b3,this[_0x34e845(0x135)](_0x34e845(0x138),this[_0x34e845(0x13d)]()));}[_0x3c0134(0x13c)](_0xcd027a){const _0xeb5534=_0x3c0134;_0xcd027a!==this[_0xeb5534(0x14c)]&&(this[_0xeb5534(0x14c)]=_0xcd027a,this[_0xeb5534(0x135)](_0xeb5534(0x138),this[_0xeb5534(0x13d)]()));}}
@@ -61,12 +61,18 @@ export type AIContextItem = AIContextItemRequestData & {
61
61
  end: number;
62
62
  }>;
63
63
  };
64
+ /**
65
+ * A tool-related context item.
66
+ */
64
67
  export type AIToolContextItem = AIContextItem & {
65
68
  type: AIContextItemType.TOOL;
66
69
  mcpServerName: string;
67
70
  toolName?: string;
68
71
  data: Record<string, any>;
69
- id: string;
72
+ /**
73
+ * ID length can be between 1 and 21 characters. If not provided, it will be randomly generated 21 characters long string.
74
+ */
75
+ id?: string;
70
76
  };
71
77
  /**
72
78
  * A context item request data for using in the {@link module:ai/aicore/aiconnector~AIConnector}.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2f40(_0x34cd33,_0x3025d3){var _0x39b341=_0x39b3();return _0x2f40=function(_0x2f40e8,_0x422741){_0x2f40e8=_0x2f40e8-0xcf;var _0x3634b5=_0x39b341[_0x2f40e8];return _0x3634b5;},_0x2f40(_0x34cd33,_0x3025d3);}(function(_0x595a6e,_0x311343){var _0x47c170=_0x2f40,_0x57a90c=_0x595a6e();while(!![]){try{var _0x307f41=parseInt(_0x47c170(0xde))/0x1*(-parseInt(_0x47c170(0xe4))/0x2)+parseInt(_0x47c170(0xd5))/0x3+parseInt(_0x47c170(0xe3))/0x4+parseInt(_0x47c170(0xcf))/0x5+-parseInt(_0x47c170(0xd4))/0x6*(parseInt(_0x47c170(0xd8))/0x7)+parseInt(_0x47c170(0xdf))/0x8+-parseInt(_0x47c170(0xdc))/0x9;if(_0x307f41===_0x311343)break;else _0x57a90c['push'](_0x57a90c['shift']());}catch(_0x41c4dc){_0x57a90c['push'](_0x57a90c['shift']());}}}(_0x39b3,0xd1316));export var AIContextItemType;!function(_0x3e8366){var _0x50964c=_0x2f40;_0x3e8366[_0x50964c(0xda)]=_0x50964c(0xdb),_0x3e8366[_0x50964c(0xd7)]=_0x50964c(0xd0),_0x3e8366[_0x50964c(0xe5)]=_0x50964c(0xe7),_0x3e8366[_0x50964c(0xe2)]=_0x50964c(0xd9),_0x3e8366[_0x50964c(0xd3)]=_0x50964c(0xe0),_0x3e8366[_0x50964c(0xd6)]=_0x50964c(0xd2);}(AIContextItemType||(AIContextItemType={}));function _0x39b3(){var _0x53c1fd=['80284CXZfdJ','DOCUMENT','MARKDOWN','document','6003725oFsiQI','file','HTML','selection','TEXT','1662PUcJKy','4622430xCZvhD','SELECTION','FILE','40628oycrjm','web-resource','TOOL','mcp-tool-context','19078767JbbJcz','markdown','14tGLPUv','11787128lQbUxf','text','html','URL','3725868RNvWrn'];_0x39b3=function(){return _0x53c1fd;};return _0x39b3();}export var AIContextTextResourceType;!function(_0x24a52b){var _0x41df3b=_0x2f40;_0x24a52b[_0x41df3b(0xd3)]=_0x41df3b(0xe0),_0x24a52b[_0x41df3b(0xe6)]=_0x41df3b(0xdd),_0x24a52b[_0x41df3b(0xd1)]=_0x41df3b(0xe1);}(AIContextTextResourceType||(AIContextTextResourceType={}));
23
+ (function(_0x3d6ea5,_0x260824){var _0x54e8c9=_0x4bd8,_0x27b00d=_0x3d6ea5();while(!![]){try{var _0x598ce2=-parseInt(_0x54e8c9(0x9c))/0x1+parseInt(_0x54e8c9(0x8b))/0x2*(-parseInt(_0x54e8c9(0x89))/0x3)+-parseInt(_0x54e8c9(0x85))/0x4*(-parseInt(_0x54e8c9(0x88))/0x5)+-parseInt(_0x54e8c9(0x9b))/0x6+parseInt(_0x54e8c9(0x98))/0x7*(-parseInt(_0x54e8c9(0x93))/0x8)+-parseInt(_0x54e8c9(0x9d))/0x9*(-parseInt(_0x54e8c9(0x8f))/0xa)+parseInt(_0x54e8c9(0x92))/0xb;if(_0x598ce2===_0x260824)break;else _0x27b00d['push'](_0x27b00d['shift']());}catch(_0x1178c6){_0x27b00d['push'](_0x27b00d['shift']());}}}(_0x4802,0xa1e1b));export var AIContextItemType;function _0x4802(){var _0x2fe4ab=['FILE','SELECTION','887308OBxMGk','markdown','URL','25NPgueV','398103OVejrf','MARKDOWN','2ldncFH','DOCUMENT','web-resource','file','53780owtyYt','document','text','1937496JdLYrI','66896tHSjks','HTML','TOOL','mcp-tool-context','html','182pgcwRL','TEXT','selection','1990188sFRuhJ','838519ZbCLKI','1503opwAWw'];_0x4802=function(){return _0x2fe4ab;};return _0x4802();}!function(_0x235301){var _0x428d1a=_0x4bd8;_0x235301[_0x428d1a(0x95)]=_0x428d1a(0x96),_0x235301[_0x428d1a(0x83)]=_0x428d1a(0x8e),_0x235301[_0x428d1a(0x8c)]=_0x428d1a(0x90),_0x235301[_0x428d1a(0x87)]=_0x428d1a(0x8d),_0x235301[_0x428d1a(0x99)]=_0x428d1a(0x91),_0x235301[_0x428d1a(0x84)]=_0x428d1a(0x9a);}(AIContextItemType||(AIContextItemType={}));function _0x4bd8(_0x2a0a3b,_0x338c3e){var _0x480264=_0x4802();return _0x4bd8=function(_0x4bd888,_0x440a8e){_0x4bd888=_0x4bd888-0x83;var _0x328eed=_0x480264[_0x4bd888];return _0x328eed;},_0x4bd8(_0x2a0a3b,_0x338c3e);}export var AIContextTextResourceType;!function(_0x4c3a10){var _0x587873=_0x4bd8;_0x4c3a10[_0x587873(0x99)]=_0x587873(0x91),_0x4c3a10[_0x587873(0x8a)]=_0x587873(0x86),_0x4c3a10[_0x587873(0x94)]=_0x587873(0x97);}(AIContextTextResourceType||(AIContextTextResourceType={}));
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xc167(_0x143c07,_0x2e5425){const _0x37ed92=_0x37ed();return _0xc167=function(_0xc167b,_0x1d1322){_0xc167b=_0xc167b-0xd2;let _0x17f865=_0x37ed92[_0xc167b];return _0x17f865;},_0xc167(_0x143c07,_0x2e5425);}const _0x49dc38=_0xc167;function _0x37ed(){const _0x23916f=['203dlyEQt','delegate','event','5398085rSkOXq','stopListening','56RUOVqv','length','error','interactionStarted','appendContent','messageId','_handleToolResultData','webSearchFinished','abort','push','485151CupaUo','data','stop','mcp-tool-notification','modification-delta','interactionDestroyed','parse','50nxIvVd','reasoning','sendRequest','494955mIjeaE','action-metadata','isStopped','resetReasoningState','258392OcXpiv','573006EolUMj','createReply','toolName','_isWebSearching','_finalizeInteraction','currentRequest','getDocumentContext','find','replyContentUpdated','modification','reasoningStarted','conversationTitle','message-metadata','destroy','ai-chat-interaction-error','text','replyCreated','webSearchStarted','interactionFinished','7505340eEkKOl','resetWebSearchState','6uCyOPt','attributes','_handleToolNotificationData','type','getReply','actionCallId','web-search','12RiMFgj','sources','start','isDestroyed','replyChangeGroupStateUpdated','abortController','conversation-title','editor','reasoningFinished','setConversationTitle','fire','forEach','connector','currentReply','content','toolDataReceived','interactionStopped','_isReasoning','33564cPpAWd','textDelta','done','text-delta','interactionCreated','notification','getStream','replies','result','callId','source','mcp-tool-result','splice'];_0x37ed=function(){return _0x23916f;};return _0x37ed();}(function(_0x254953,_0x34c300){const _0x3ae40f=_0xc167,_0x1da2e2=_0x254953();while(!![]){try{const _0x1dfb90=-parseInt(_0x3ae40f(0xfd))/0x1+parseInt(_0x3ae40f(0x112))/0x2*(-parseInt(_0x3ae40f(0xee))/0x3)+parseInt(_0x3ae40f(0xfc))/0x4*(parseInt(_0x3ae40f(0xf5))/0x5)+-parseInt(_0x3ae40f(0xd2))/0x6*(-parseInt(_0x3ae40f(0xdf))/0x7)+-parseInt(_0x3ae40f(0xe4))/0x8*(-parseInt(_0x3ae40f(0xf8))/0x9)+parseInt(_0x3ae40f(0x110))/0xa+-parseInt(_0x3ae40f(0xe2))/0xb*(parseInt(_0x3ae40f(0x119))/0xc);if(_0x1dfb90===_0x34c300)break;else _0x1da2e2['push'](_0x1da2e2['shift']());}catch(_0x134cf6){_0x1da2e2['push'](_0x1da2e2['shift']());}}}(_0x37ed,0x6063d));import{CKEditorError as _0x2dfcc3,EmitterMixin as _0x48c625,uid as _0x126fbf}from'ckeditor5/src/utils.js';import{AIReply as _0x243ca6}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x49dc38(0xd6),_0x49dc38(0xe7),_0x49dc38(0x129),_0x49dc38(0x10f),_0x49dc38(0xf3),_0x49dc38(0x10d),_0x49dc38(0x105),_0x49dc38(0x11d),_0x49dc38(0x122),_0x49dc38(0x10e),_0x49dc38(0xeb),_0x49dc38(0x107),_0x49dc38(0x121),_0x49dc38(0x128),_0x49dc38(0xe6)];export class AIInteraction extends _0x48c625(){['id'];[_0x49dc38(0xd9)]=[];[_0x49dc38(0x126)];[_0x49dc38(0xe9)];[_0x49dc38(0x117)];[_0x49dc38(0x102)];[_0x49dc38(0x125)];[_0x49dc38(0xfa)]=!0x1;[_0x49dc38(0x11c)]=!0x1;[_0x49dc38(0x120)];[_0x49dc38(0x12a)]=!0x1;[_0x49dc38(0x100)]=!0x1;constructor({connector:_0x48a260,editor:_0x13407a}){const _0x3ec46e=_0x49dc38;super(),this['id']=_0x126fbf(),this[_0x3ec46e(0x125)]=_0x48a260,this[_0x3ec46e(0xfa)]=!0x0,this[_0x3ec46e(0x120)]=_0x13407a;}async[_0x49dc38(0x11b)](){const _0x1107df=_0x49dc38,_0x2a117c=[];let _0x2b0c5b,_0x48a1b9,_0x1e11d7;this[_0x1107df(0xfa)]=!0x1;try{this[_0x1107df(0x102)]=await this[_0x1107df(0xf7)](),this[_0x1107df(0x123)](_0x1107df(0xe7),this);const _0x42672a=await this[_0x1107df(0x102)][_0x1107df(0xd8)]();for await(const _0x3a6917 of _0x42672a){if(this[_0x1107df(0xfa)])return;if(_0x1107df(0xe6)==_0x3a6917[_0x1107df(0xe1)])return void this[_0x1107df(0x123)](_0x1107df(0xe6),{'error':new _0x2dfcc3(_0x1107df(0x10b),this)});switch(_0x3a6917[_0x1107df(0xe1)]){case _0x1107df(0x109):this[_0x1107df(0xe9)]=_0x3a6917[_0x1107df(0xef)][_0x1107df(0xe9)];break;case _0x1107df(0xf9):this[_0x1107df(0x117)]=_0x3a6917[_0x1107df(0xef)][_0x1107df(0xdb)];break;case _0x1107df(0x11f):this[_0x1107df(0x122)](_0x3a6917[_0x1107df(0xef)][_0x1107df(0x108)],!0x0);break;case _0x1107df(0xdc):_0x2a117c[_0x1107df(0xed)](_0x3a6917[_0x1107df(0xef)][_0x1107df(0xdc)]);break;case _0x1107df(0x118):this[_0x1107df(0x100)]||(this[_0x1107df(0x100)]=!0x0,this[_0x1107df(0x123)](_0x1107df(0x10e),this));break;case _0x1107df(0xf6):this[_0x1107df(0x12a)]||(this[_0x1107df(0x12a)]=!0x0,this[_0x1107df(0x123)](_0x1107df(0x107),this));break;case _0x1107df(0xf2):case _0x1107df(0xd5):this[_0x1107df(0xfb)](),this[_0x1107df(0x111)](),_0x2b0c5b=_0x1107df(0xf2)==_0x3a6917[_0x1107df(0xe1)]?_0x1107df(0x106):_0x1107df(0x10c),_0x48a1b9=_0x1107df(0xf2)==_0x3a6917[_0x1107df(0xe1)]?_0x3a6917[_0x1107df(0xef)]['id']:void 0x0,this[_0x1107df(0x126)]&&this[_0x1107df(0x126)][_0x1107df(0x115)]!=_0x2b0c5b&&(this[_0x1107df(0x126)][_0x1107df(0xd4)](),this[_0x1107df(0x126)]=void 0x0),this[_0x1107df(0x126)]||(this[_0x1107df(0x126)]=this[_0x1107df(0xfe)]({'type':_0x2b0c5b,'interactionId':this['id'],'id':_0x48a1b9}),_0x1107df(0x106)==_0x2b0c5b&&(this[_0x1107df(0x126)][_0x1107df(0x11a)]=_0x2a117c[_0x1107df(0xde)](0x0))),this[_0x1107df(0x126)][_0x1107df(0xe8)](_0x3a6917[_0x1107df(0xef)][_0x1107df(0xd3)]);break;case _0x1107df(0xdd):_0x1e11d7=JSON[_0x1107df(0xf4)](_0x3a6917[_0x1107df(0xef)][_0x1107df(0xda)]),this[_0x1107df(0xea)]({'toolName':_0x3a6917[_0x1107df(0xef)][_0x1107df(0xff)],'data':_0x1e11d7[_0x1107df(0xef)],'attributes':_0x1e11d7[_0x1107df(0x113)]});break;case _0x1107df(0xf1):this[_0x1107df(0x114)]({'toolName':_0x3a6917[_0x1107df(0xef)][_0x1107df(0xff)],'data':_0x3a6917[_0x1107df(0xef)][_0x1107df(0xef)]});}}}finally{this[_0x1107df(0xfa)]||(this[_0x1107df(0x126)]&&_0x2a117c[_0x1107df(0xe5)]>0x0&&(this[_0x1107df(0x126)][_0x1107df(0x11a)]=_0x2a117c[_0x1107df(0xde)](0x0)),this[_0x1107df(0x101)](),this[_0x1107df(0x123)](_0x1107df(0x10f),this));}}[_0x49dc38(0xf0)](){const _0x1dc81b=_0x49dc38;this[_0x1dc81b(0xfa)]||(this[_0x1dc81b(0x101)](),this[_0x1dc81b(0x123)](_0x1dc81b(0x129),this));}[_0x49dc38(0x116)](_0x86ba6f){const _0x3e2f4e=_0x49dc38;return this[_0x3e2f4e(0xd9)][_0x3e2f4e(0x104)](_0xcaf626=>_0xcaf626['id']===_0x86ba6f);}[_0x49dc38(0x10a)](){const _0x3438f1=_0x49dc38;this[_0x3438f1(0x11c)]||(this[_0x3438f1(0xf0)](),this[_0x3438f1(0xd9)][_0x3438f1(0x124)](_0x5cf82e=>_0x5cf82e[_0x3438f1(0x10a)]()),this[_0x3438f1(0xd9)]=[],this[_0x3438f1(0x11c)]=!0x0,this[_0x3438f1(0x123)](_0x3438f1(0xf3),this),this[_0x3438f1(0xe3)]());}[_0x49dc38(0xfe)](_0x55135b){const _0x2943b5=_0x49dc38,_0x292c2e=new _0x243ca6({'editor':this[_0x2943b5(0x120)],'documentContextContent':this[_0x2943b5(0x103)]()?.[_0x2943b5(0x127)],..._0x55135b});return this[_0x2943b5(0xd9)][_0x2943b5(0xed)](_0x292c2e),_0x292c2e[_0x2943b5(0xe0)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x2943b5(0x123)](_0x2943b5(0x10d),_0x292c2e),_0x292c2e;}[_0x49dc38(0x122)](_0x316759,_0x50739a=!0x1){const _0x2d187f=_0x49dc38;this[_0x2d187f(0x123)](_0x2d187f(0x122),_0x316759,_0x50739a);}[_0x49dc38(0x111)](){const _0x4179a2=_0x49dc38;this[_0x4179a2(0x100)]&&(this[_0x4179a2(0x100)]=!0x1,this[_0x4179a2(0x123)](_0x4179a2(0xeb),this));}[_0x49dc38(0xfb)](){const _0x4a5d94=_0x49dc38;this[_0x4a5d94(0x12a)]&&(this[_0x4a5d94(0x12a)]=!0x1,this[_0x4a5d94(0x123)](_0x4a5d94(0x121),this));}[_0x49dc38(0xea)](_0x476b21){const _0x583c72=_0x49dc38;this[_0x583c72(0x123)](_0x583c72(0x128),{'type':_0x583c72(0xda),'toolName':_0x476b21[_0x583c72(0xff)],'data':structuredClone(_0x476b21[_0x583c72(0xef)]||{}),'attributes':structuredClone(_0x476b21[_0x583c72(0x113)]||{})},this);}[_0x49dc38(0x114)](_0x4b5deb){const _0x3c201b=_0x49dc38;this[_0x3c201b(0x123)](_0x3c201b(0x128),{'type':_0x3c201b(0xd7),'toolName':_0x4b5deb[_0x3c201b(0xff)],'data':structuredClone(_0x4b5deb[_0x3c201b(0xef)])},this);}[_0x49dc38(0x101)](){const _0x42ce41=_0x49dc38;this[_0x42ce41(0xfa)]=!0x0,this[_0x42ce41(0x102)]&&this[_0x42ce41(0x102)][_0x42ce41(0x11e)][_0x42ce41(0xec)](),this[_0x42ce41(0x126)]&&this[_0x42ce41(0x126)][_0x42ce41(0xd4)](),this[_0x42ce41(0x102)]=this[_0x42ce41(0x126)]=void 0x0;}}
23
+ function _0x3b9c(_0x2f4189,_0x2ed952){const _0x4a888b=_0x4a88();return _0x3b9c=function(_0x3b9c56,_0x4335e0){_0x3b9c56=_0x3b9c56-0xaf;let _0x232df7=_0x4a888b[_0x3b9c56];return _0x232df7;},_0x3b9c(_0x2f4189,_0x2ed952);}const _0x5f94b1=_0x3b9c;(function(_0x1eed53,_0x4097a8){const _0x255816=_0x3b9c,_0x4a5070=_0x1eed53();while(!![]){try{const _0x3c1077=-parseInt(_0x255816(0xc5))/0x1+-parseInt(_0x255816(0x101))/0x2+parseInt(_0x255816(0xe5))/0x3+-parseInt(_0x255816(0xcd))/0x4+parseInt(_0x255816(0xc3))/0x5+parseInt(_0x255816(0xc1))/0x6*(-parseInt(_0x255816(0xec))/0x7)+parseInt(_0x255816(0x103))/0x8;if(_0x3c1077===_0x4097a8)break;else _0x4a5070['push'](_0x4a5070['shift']());}catch(_0x511b82){_0x4a5070['push'](_0x4a5070['shift']());}}}(_0x4a88,0xa0a12));function _0x4a88(){const _0x481e50=['12OvuGkd','replies','5331860ofpQfU','error','625085rGUpDQ','splice','webSearchFinished','result','interactionStarted','currentReply','delegate','interactionStopped','366664XnKOoX','web-search','getStream','reasoning','_handleToolResultData','_isWebSearching','appendContent','resetReasoningState','modification-delta','webSearchStarted','event','resetWebSearchState','replyContentUpdated','mcp-tool-result','sendRequest','callId','setConversationTitle','stop','createReply','replyChangeGroupStateUpdated','conversationTitle','_finalizeInteraction','toolDataReceived','connector','2706843ccwXdN','source','message-metadata','replyCreated','reasoningStarted','_handleToolNotificationData','interactionCreated','2316181dkncYJ','push','isStopped','text-delta','reasoningFinished','parse','text','content','modification','attributes','done','actionCallId','length','toolName','mcp-tool-notification','type','isDestroyed','_isReasoning','interactionDestroyed','textDelta','currentRequest','290432XQjCvU','destroy','1704144azFOxa','stopListening','notification','editor','forEach','conversation-title','getReply','sources','abortController','start','interactionFinished','find','messageId','fire','getDocumentContext','data','ai-chat-interaction-error','action-metadata','abort'];_0x4a88=function(){return _0x481e50;};return _0x4a88();}import{CKEditorError as _0x2f832e,EmitterMixin as _0x16426c,uid as _0x3744ba}from'ckeditor5/src/utils.js';import{AIReply as _0x36c7dc}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x5f94b1(0xeb),_0x5f94b1(0xc9),_0x5f94b1(0xcc),_0x5f94b1(0xb8),_0x5f94b1(0xfe),_0x5f94b1(0xe8),_0x5f94b1(0xd9),_0x5f94b1(0xe0),_0x5f94b1(0xdd),_0x5f94b1(0xd6),_0x5f94b1(0xc7),_0x5f94b1(0xe9),_0x5f94b1(0xf0),_0x5f94b1(0xe3),_0x5f94b1(0xc4)];export class AIInteraction extends _0x16426c(){['id'];[_0x5f94b1(0xc2)]=[];[_0x5f94b1(0xca)];[_0x5f94b1(0xba)];[_0x5f94b1(0xf7)];[_0x5f94b1(0x100)];[_0x5f94b1(0xe4)];[_0x5f94b1(0xee)]=!0x1;[_0x5f94b1(0xfc)]=!0x1;[_0x5f94b1(0xb1)];[_0x5f94b1(0xfd)]=!0x1;[_0x5f94b1(0xd2)]=!0x1;constructor({connector:_0x361677,editor:_0x1c03ac}){const _0x8c9857=_0x5f94b1;super(),this['id']=_0x3744ba(),this[_0x8c9857(0xe4)]=_0x361677,this[_0x8c9857(0xee)]=!0x0,this[_0x8c9857(0xb1)]=_0x1c03ac;}async[_0x5f94b1(0xb7)](){const _0xc9ed3a=_0x5f94b1,_0x2b3db8=[];let _0x47c925,_0x2ecede,_0x3ac165;this[_0xc9ed3a(0xee)]=!0x1;try{this[_0xc9ed3a(0x100)]=await this[_0xc9ed3a(0xdb)](),this[_0xc9ed3a(0xbb)](_0xc9ed3a(0xc9),this);const _0x288ec4=await this[_0xc9ed3a(0x100)][_0xc9ed3a(0xcf)]();for await(const _0x47fb4a of _0x288ec4){if(this[_0xc9ed3a(0xee)])return;if(_0xc9ed3a(0xc4)==_0x47fb4a[_0xc9ed3a(0xd7)])return void this[_0xc9ed3a(0xbb)](_0xc9ed3a(0xc4),{'error':new _0x2f832e(_0xc9ed3a(0xbe),this)});switch(_0x47fb4a[_0xc9ed3a(0xd7)]){case _0xc9ed3a(0xe7):this[_0xc9ed3a(0xba)]=_0x47fb4a[_0xc9ed3a(0xbd)][_0xc9ed3a(0xba)];break;case _0xc9ed3a(0xbf):this[_0xc9ed3a(0xf7)]=_0x47fb4a[_0xc9ed3a(0xbd)][_0xc9ed3a(0xdc)];break;case _0xc9ed3a(0xb3):this[_0xc9ed3a(0xdd)](_0x47fb4a[_0xc9ed3a(0xbd)][_0xc9ed3a(0xe1)],!0x0);break;case _0xc9ed3a(0xe6):_0x2b3db8[_0xc9ed3a(0xed)](_0x47fb4a[_0xc9ed3a(0xbd)][_0xc9ed3a(0xe6)]);break;case _0xc9ed3a(0xce):this[_0xc9ed3a(0xd2)]||(this[_0xc9ed3a(0xd2)]=!0x0,this[_0xc9ed3a(0xbb)](_0xc9ed3a(0xd6),this));break;case _0xc9ed3a(0xd0):this[_0xc9ed3a(0xfd)]||(this[_0xc9ed3a(0xfd)]=!0x0,this[_0xc9ed3a(0xbb)](_0xc9ed3a(0xe9),this));break;case _0xc9ed3a(0xd5):case _0xc9ed3a(0xef):this[_0xc9ed3a(0xd4)](),this[_0xc9ed3a(0xd8)](),_0x47c925=_0xc9ed3a(0xd5)==_0x47fb4a[_0xc9ed3a(0xd7)]?_0xc9ed3a(0xf4):_0xc9ed3a(0xf2),_0x2ecede=_0xc9ed3a(0xd5)==_0x47fb4a[_0xc9ed3a(0xd7)]?_0x47fb4a[_0xc9ed3a(0xbd)]['id']:void 0x0,this[_0xc9ed3a(0xca)]&&this[_0xc9ed3a(0xca)][_0xc9ed3a(0xfb)]!=_0x47c925&&(this[_0xc9ed3a(0xca)][_0xc9ed3a(0xf6)](),this[_0xc9ed3a(0xca)]=void 0x0),this[_0xc9ed3a(0xca)]||(this[_0xc9ed3a(0xca)]=this[_0xc9ed3a(0xdf)]({'type':_0x47c925,'interactionId':this['id'],'id':_0x2ecede}),_0xc9ed3a(0xf4)==_0x47c925&&(this[_0xc9ed3a(0xca)][_0xc9ed3a(0xb5)]=_0x2b3db8[_0xc9ed3a(0xc6)](0x0))),this[_0xc9ed3a(0xca)][_0xc9ed3a(0xd3)](_0x47fb4a[_0xc9ed3a(0xbd)][_0xc9ed3a(0xff)]);break;case _0xc9ed3a(0xda):_0x3ac165=JSON[_0xc9ed3a(0xf1)](_0x47fb4a[_0xc9ed3a(0xbd)][_0xc9ed3a(0xc8)]),this[_0xc9ed3a(0xd1)]({'toolName':_0x47fb4a[_0xc9ed3a(0xbd)][_0xc9ed3a(0xf9)],'data':_0x3ac165[_0xc9ed3a(0xbd)],'attributes':_0x3ac165[_0xc9ed3a(0xf5)]});break;case _0xc9ed3a(0xfa):this[_0xc9ed3a(0xea)]({'toolName':_0x47fb4a[_0xc9ed3a(0xbd)][_0xc9ed3a(0xf9)],'data':_0x47fb4a[_0xc9ed3a(0xbd)][_0xc9ed3a(0xbd)]});}}}finally{this[_0xc9ed3a(0xee)]||(this[_0xc9ed3a(0xca)]&&_0x2b3db8[_0xc9ed3a(0xf8)]>0x0&&(this[_0xc9ed3a(0xca)][_0xc9ed3a(0xb5)]=_0x2b3db8[_0xc9ed3a(0xc6)](0x0)),this[_0xc9ed3a(0xe2)](),this[_0xc9ed3a(0xbb)](_0xc9ed3a(0xb8),this));}}[_0x5f94b1(0xde)](){const _0x5c560e=_0x5f94b1;this[_0x5c560e(0xee)]||(this[_0x5c560e(0xe2)](),this[_0x5c560e(0xbb)](_0x5c560e(0xcc),this));}[_0x5f94b1(0xb4)](_0x1e022d){const _0x20a331=_0x5f94b1;return this[_0x20a331(0xc2)][_0x20a331(0xb9)](_0x291b45=>_0x291b45['id']===_0x1e022d);}[_0x5f94b1(0x102)](){const _0x58e229=_0x5f94b1;this[_0x58e229(0xfc)]||(this[_0x58e229(0xde)](),this[_0x58e229(0xc2)][_0x58e229(0xb2)](_0x53bfef=>_0x53bfef[_0x58e229(0x102)]()),this[_0x58e229(0xc2)]=[],this[_0x58e229(0xfc)]=!0x0,this[_0x58e229(0xbb)](_0x58e229(0xfe),this),this[_0x58e229(0xaf)]());}[_0x5f94b1(0xdf)](_0x2788c9){const _0x1830d3=_0x5f94b1,_0x393e71=new _0x36c7dc({'editor':this[_0x1830d3(0xb1)],'documentContextContent':this[_0x1830d3(0xbc)]()?.[_0x1830d3(0xf3)],..._0x2788c9});return this[_0x1830d3(0xc2)][_0x1830d3(0xed)](_0x393e71),_0x393e71[_0x1830d3(0xcb)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x1830d3(0xbb)](_0x1830d3(0xe8),_0x393e71),_0x393e71;}[_0x5f94b1(0xdd)](_0x1a515b,_0x25bf68=!0x1){const _0x59e5fa=_0x5f94b1;this[_0x59e5fa(0xbb)](_0x59e5fa(0xdd),_0x1a515b,_0x25bf68);}[_0x5f94b1(0xd8)](){const _0x4b49b1=_0x5f94b1;this[_0x4b49b1(0xd2)]&&(this[_0x4b49b1(0xd2)]=!0x1,this[_0x4b49b1(0xbb)](_0x4b49b1(0xc7),this));}[_0x5f94b1(0xd4)](){const _0x540a6e=_0x5f94b1;this[_0x540a6e(0xfd)]&&(this[_0x540a6e(0xfd)]=!0x1,this[_0x540a6e(0xbb)](_0x540a6e(0xf0),this));}[_0x5f94b1(0xd1)](_0x256240){const _0x5f164b=_0x5f94b1;this[_0x5f164b(0xbb)](_0x5f164b(0xe3),{'type':_0x5f164b(0xc8),'toolName':_0x256240[_0x5f164b(0xf9)],'data':structuredClone(_0x256240[_0x5f164b(0xbd)]||{}),'attributes':structuredClone(_0x256240[_0x5f164b(0xf5)]||{})},this);}[_0x5f94b1(0xea)](_0x477169){const _0x519688=_0x5f94b1;this[_0x519688(0xbb)](_0x519688(0xe3),{'type':_0x519688(0xb0),'toolName':_0x477169[_0x519688(0xf9)],'data':structuredClone(_0x477169[_0x519688(0xbd)])},this);}[_0x5f94b1(0xe2)](){const _0x5e0ce2=_0x5f94b1;this[_0x5e0ce2(0xee)]=!0x0,this[_0x5e0ce2(0x100)]&&this[_0x5e0ce2(0x100)][_0x5e0ce2(0xb6)][_0x5e0ce2(0xc0)](),this[_0x5e0ce2(0xca)]&&this[_0x5e0ce2(0xca)][_0x5e0ce2(0xf6)](),this[_0x5e0ce2(0x100)]=this[_0x5e0ce2(0xca)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x259810=_0x16ec;(function(_0x56d1f5,_0x542f28){const _0xdd4eef=_0x16ec,_0x3b4f51=_0x56d1f5();while(!![]){try{const _0x4e4107=-parseInt(_0xdd4eef(0x191))/0x1+parseInt(_0xdd4eef(0x193))/0x2+-parseInt(_0xdd4eef(0x180))/0x3*(parseInt(_0xdd4eef(0x18c))/0x4)+parseInt(_0xdd4eef(0x181))/0x5*(-parseInt(_0xdd4eef(0x18d))/0x6)+parseInt(_0xdd4eef(0x17f))/0x7*(parseInt(_0xdd4eef(0x194))/0x8)+parseInt(_0xdd4eef(0x195))/0x9+parseInt(_0xdd4eef(0x184))/0xa;if(_0x4e4107===_0x542f28)break;else _0x3b4f51['push'](_0x3b4f51['shift']());}catch(_0x2fe5dc){_0x3b4f51['push'](_0x3b4f51['shift']());}}}(_0x141c,0xbe8d0));import{EmitterMixin as _0x18d291,logWarning as _0x4ee73f,logError as _0x4345e4}from'ckeditor5/src/utils.js';import{getTranslation as _0x1c76f0}from'../utils/common-translations.js';export class AIModels extends _0x18d291(){[_0x259810(0x183)];[_0x259810(0x1a9)];[_0x259810(0x17c)];[_0x259810(0x188)]=[];constructor({connector:_0x1da961,config:_0x4f57ba,locale:_0x5d8723}){const _0x389244=_0x259810;super(),this[_0x389244(0x183)]=_0x1da961,this[_0x389244(0x1a9)]=_0x4f57ba,this[_0x389244(0x17c)]=_0x5d8723;}get[_0x259810(0x18a)](){const _0x123ff1=_0x259810;return this[_0x123ff1(0x1a9)]?.[_0x123ff1(0x19c)];}get[_0x259810(0x17d)](){const _0xd5335c=_0x259810;return this[_0xd5335c(0x1a9)]?.[_0xd5335c(0x1a3)];}async[_0x259810(0x1a2)](){const _0x1eb489=_0x259810;if(!this[_0x1eb489(0x188)][_0x1eb489(0x185)])try{const _0x159bfd=this[_0x1eb489(0x17c)][_0x1eb489(0x1a4)]||'en',_0x262be2=this[_0x1eb489(0x183)][_0x1eb489(0x189)](_0x159bfd),_0x1fec77=await _0x262be2[_0x1eb489(0x1a8)]();this[_0x1eb489(0x188)]=_0x1fec77[_0x1eb489(0x1ac)][_0x1eb489(0x1aa)](_0x4072cf=>Bi(_0x4072cf)?{..._0x4072cf,'name':_0x1c76f0(this[_0x1eb489(0x17c)],_0x1eb489(0x19b))}:_0x4072cf);}catch(_0x5fee26){throw _0x4345e4(_0x1eb489(0x1a7),{'error':_0x5fee26}),_0x5fee26;}return[...this[_0x1eb489(0x188)]];}async[_0x259810(0x1ad)](){const _0x42a1f8=_0x259810,_0x5a5dc6=await this[_0x42a1f8(0x1a2)]();let _0x54f654;return _0x54f654=this[_0x42a1f8(0x18a)]?this[_0x42a1f8(0x199)](_0x5a5dc6,this[_0x42a1f8(0x18a)]):_0x5a5dc6[_0x42a1f8(0x1a0)](_0x27feb1=>_0x27feb1[_0x42a1f8(0x1ab)]),_0x54f654;}async[_0x259810(0x182)](_0x4079ed){const _0x10a5ad=_0x259810,_0x4d5ce0=await this[_0x10a5ad(0x1a2)]();if(!_0x4d5ce0[_0x10a5ad(0x185)])return null;if(_0x4079ed){const _0x5e2d24=this[_0x10a5ad(0x197)](_0x4d5ce0,_0x4079ed);if(_0x5e2d24)return _0x5e2d24;_0x4ee73f(_0x10a5ad(0x18b),{'modelId':_0x4079ed,'fallBackModelId':this[_0x10a5ad(0x17d)]});}return this[_0x10a5ad(0x192)]();}async[_0x259810(0x192)](){const _0x315079=_0x259810,_0x3d9f89=await this[_0x315079(0x1ad)]();if(!_0x3d9f89[_0x315079(0x185)])return null;if(this[_0x315079(0x17d)]){const _0x495f7b=this[_0x315079(0x197)](_0x3d9f89,this[_0x315079(0x17d)]);if(_0x495f7b)return _0x495f7b;_0x4ee73f(_0x315079(0x1a1),{'defaultModelId':this[_0x315079(0x17d)],'fallBackModelId':_0x3d9f89[0x0]['id']});}return _0x3d9f89[0x0];}async[_0x259810(0x19e)](_0xc63c04){const _0xa973d7=_0x259810;return(await this[_0xa973d7(0x1ad)]())[_0xa973d7(0x17e)](_0x445384=>_0x445384[_0xa973d7(0x18f)]===_0xc63c04[_0xa973d7(0x18f)]&&_0x445384[_0xa973d7(0x19d)]===_0xc63c04[_0xa973d7(0x19d)]);}[_0x259810(0x199)](_0x1bd9cc,_0x1c641b){const _0x15c98c=_0x259810;let _0x773191;if(_0x1c641b){_0x773191=[];const _0x54503e=new Set(),_0x10a32e=_0x15c98c(0x198)==typeof _0x1c641b?[_0x1c641b[_0x15c98c(0x19a)]()]:_0x1c641b[_0x15c98c(0x1aa)](_0x526111=>_0x526111[_0x15c98c(0x19a)]());for(const _0x144af7 of _0x10a32e)for(const _0x4b2c72 of _0x1bd9cc)!_0x54503e[_0x15c98c(0x1a6)](_0x4b2c72['id'])&&this[_0x15c98c(0x190)](_0x4b2c72,_0x144af7)&&(_0x773191[_0x15c98c(0x186)](_0x4b2c72),_0x54503e[_0x15c98c(0x19f)](_0x4b2c72['id']));}else _0x773191=_0x1bd9cc;return _0x773191;}[_0x259810(0x190)](_0x19e60d,_0x369b0b){const _0x54037f=_0x259810,_0x260da=_0x19e60d['id'][_0x54037f(0x19a)](),_0xb00929=_0x19e60d[_0x54037f(0x18f)][_0x54037f(0x19a)](),_0x224e66=_0x19e60d[_0x54037f(0x19d)][_0x54037f(0x19a)]();return _0x260da===_0x369b0b||_0xb00929===_0x369b0b||Bi(_0x19e60d)&&_0x54037f(0x196)===_0x369b0b||_0x224e66===_0x369b0b||_0x260da[_0x54037f(0x1a5)](_0x369b0b);}[_0x259810(0x197)](_0x56fcb4,_0x5364c9){const _0x42f149=_0x259810;return _0x56fcb4[_0x42f149(0x18e)](_0x4a1b78=>Bi(_0x4a1b78)&&_0x42f149(0x196)===_0x5364c9?_0x4a1b78:_0x4a1b78['id']===_0x5364c9)||null;}}function _0x141c(){const _0x43e55a=['191728OsUePe','2914224xNnNei','find','name','_isMatchingFilter','915013asngCW','getDefault','1354008hBSXMR','6913608BqQfxp','13787451AvUjeo','auto','_getModelById','string','_filterModels','toLocaleLowerCase','AI_MODEL_NAME_AUTO','displayedModels','provider','isAvailable','add','filter','ai-chat-default-model-id-unrecognized','getAll','defaultModelId','uiLanguage','startsWith','has','ai-models-unable-to-retrieve','list','_config','map','recommended','items','getAvailableModels','_locale','_defaultModelId','some','7gwuvOz','15gWoCxa','15TayBKp','getModel','_connector','3191370YvwwxA','length','push','agent','_modelList','getModels','_availableModels','ai-chat-model-id-unrecognized'];_0x141c=function(){return _0x43e55a;};return _0x141c();}function _0x16ec(_0x2146dc,_0x598869){const _0x141ce8=_0x141c();return _0x16ec=function(_0x16ecaa,_0x272a65){_0x16ecaa=_0x16ecaa-0x17c;let _0xb505dd=_0x141ce8[_0x16ecaa];return _0xb505dd;},_0x16ec(_0x2146dc,_0x598869);}function Bi(_0x2d6e32){const _0x13849e=_0x259810;return _0x2d6e32['id'][_0x13849e(0x1a5)](_0x13849e(0x187));}
23
+ const _0x22afb1=_0x5b5a;(function(_0x31f606,_0x1df6d0){const _0x378ca2=_0x5b5a,_0x59a560=_0x31f606();while(!![]){try{const _0x87e0ca=parseInt(_0x378ca2(0xf1))/0x1*(parseInt(_0x378ca2(0xf7))/0x2)+parseInt(_0x378ca2(0xea))/0x3+-parseInt(_0x378ca2(0xf0))/0x4+-parseInt(_0x378ca2(0xf3))/0x5+-parseInt(_0x378ca2(0xd8))/0x6+parseInt(_0x378ca2(0xe4))/0x7+parseInt(_0x378ca2(0xd2))/0x8;if(_0x87e0ca===_0x1df6d0)break;else _0x59a560['push'](_0x59a560['shift']());}catch(_0x26e0a8){_0x59a560['push'](_0x59a560['shift']());}}}(_0x3c15,0x254a6));function _0x5b5a(_0x77610b,_0x7af23b){const _0x3c158d=_0x3c15();return _0x5b5a=function(_0x5b5ad3,_0x3ff66a){_0x5b5ad3=_0x5b5ad3-0xc6;let _0x218fd9=_0x3c158d[_0x5b5ad3];return _0x218fd9;},_0x5b5a(_0x77610b,_0x7af23b);}import{EmitterMixin as _0x41d6a8,logWarning as _0x5bb386,logError as _0x16a2b6}from'ckeditor5/src/utils.js';import{getTranslation as _0x4ea54d}from'../utils/common-translations.js';export class AIModels extends _0x41d6a8(){[_0x22afb1(0xdb)];[_0x22afb1(0xd9)];[_0x22afb1(0xc6)];[_0x22afb1(0xd1)]=[];[_0x22afb1(0xe1)]=null;constructor({connector:_0x1a99f4,config:_0x37156a,locale:_0x2912eb}){const _0x207896=_0x22afb1;super(),this[_0x207896(0xdb)]=_0x1a99f4,this[_0x207896(0xd9)]=_0x37156a,this[_0x207896(0xc6)]=_0x2912eb;}get[_0x22afb1(0xdf)](){const _0x1534a3=_0x22afb1;return this[_0x1534a3(0xd9)]?.[_0x1534a3(0xd6)];}get[_0x22afb1(0xd5)](){const _0x4708a1=_0x22afb1;return this[_0x4708a1(0xd9)]?.[_0x4708a1(0xee)];}async[_0x22afb1(0xca)](){const _0x6d8492=_0x22afb1;return this[_0x6d8492(0xe1)]||(this[_0x6d8492(0xe1)]=this[_0x6d8492(0xed)]()),this[_0x6d8492(0xe1)];}async[_0x22afb1(0xec)](){const _0x1b97cf=_0x22afb1,_0x1983b6=await this[_0x1b97cf(0xca)]();let _0x5c925b;return _0x5c925b=this[_0x1b97cf(0xdf)]?this[_0x1b97cf(0xe8)](_0x1983b6,this[_0x1b97cf(0xdf)]):_0x1983b6[_0x1b97cf(0xdc)](_0x54ae85=>_0x54ae85[_0x1b97cf(0xd4)]),_0x5c925b;}async[_0x22afb1(0xf4)](_0x166061){const _0x290579=_0x22afb1,_0x19d716=await this[_0x290579(0xca)]();if(!_0x19d716[_0x290579(0xcf)])return null;if(_0x166061){const _0x576226=this[_0x290579(0xe2)](_0x19d716,_0x166061);if(_0x576226)return _0x576226;_0x5bb386(_0x290579(0xc8),{'modelId':_0x166061,'fallBackModelId':this[_0x290579(0xd5)]});}return this[_0x290579(0xda)]();}async[_0x22afb1(0xda)](){const _0x1171c6=_0x22afb1,_0x35212e=await this[_0x1171c6(0xec)]();if(!_0x35212e[_0x1171c6(0xcf)])return null;if(this[_0x1171c6(0xd5)]){const _0x36dcfd=this[_0x1171c6(0xe2)](_0x35212e,this[_0x1171c6(0xd5)]);if(_0x36dcfd)return _0x36dcfd;_0x5bb386(_0x1171c6(0xc7),{'defaultModelId':this[_0x1171c6(0xd5)],'fallBackModelId':_0x35212e[0x0]['id']});}return _0x35212e[0x0];}async[_0x22afb1(0xcd)](_0x3330fd){const _0x6555c3=_0x22afb1;return(await this[_0x6555c3(0xec)]())[_0x6555c3(0xf5)](_0x30c5d6=>_0x30c5d6[_0x6555c3(0xd0)]===_0x3330fd[_0x6555c3(0xd0)]&&_0x30c5d6[_0x6555c3(0xf6)]===_0x3330fd[_0x6555c3(0xf6)]);}async[_0x22afb1(0xed)](){const _0x56a94a=_0x22afb1;if(!this[_0x56a94a(0xd1)][_0x56a94a(0xcf)])try{const _0x27fda0=this[_0x56a94a(0xc6)][_0x56a94a(0xcc)]||'en',_0x449a4a=this[_0x56a94a(0xdb)][_0x56a94a(0xcb)](_0x27fda0),_0x3aa923=await _0x449a4a[_0x56a94a(0xd7)]();this[_0x56a94a(0xd1)]=_0x3aa923[_0x56a94a(0xd3)][_0x56a94a(0xe9)](_0x101c30=>zi(_0x101c30)?{..._0x101c30,'name':_0x4ea54d(this[_0x56a94a(0xc6)],_0x56a94a(0xe0))}:_0x101c30);}catch(_0x407e3f){throw _0x16a2b6(_0x56a94a(0xe7),{'error':_0x407e3f}),_0x407e3f;}return[...this[_0x56a94a(0xd1)]];}[_0x22afb1(0xe8)](_0x5c5266,_0x5a1d70){const _0x48456a=_0x22afb1;let _0x426b23;if(_0x5a1d70){_0x426b23=[];const _0x10c26b=new Set(),_0x101c65=_0x48456a(0xdd)==typeof _0x5a1d70?[_0x5a1d70[_0x48456a(0xeb)]()]:_0x5a1d70[_0x48456a(0xe9)](_0x30db2d=>_0x30db2d[_0x48456a(0xeb)]());for(const _0xf8e18e of _0x101c65)for(const _0x589a66 of _0x5c5266)!_0x10c26b[_0x48456a(0xe6)](_0x589a66['id'])&&this[_0x48456a(0xe5)](_0x589a66,_0xf8e18e)&&(_0x426b23[_0x48456a(0xde)](_0x589a66),_0x10c26b[_0x48456a(0xe3)](_0x589a66['id']));}else _0x426b23=_0x5c5266;return _0x426b23;}[_0x22afb1(0xe5)](_0x6bbf62,_0x133da6){const _0x1ccfee=_0x22afb1,_0x4a99f6=_0x6bbf62['id'][_0x1ccfee(0xeb)](),_0x2b0096=_0x6bbf62[_0x1ccfee(0xd0)][_0x1ccfee(0xeb)](),_0x1a5663=_0x6bbf62[_0x1ccfee(0xf6)][_0x1ccfee(0xeb)]();return _0x4a99f6===_0x133da6||_0x2b0096===_0x133da6||zi(_0x6bbf62)&&_0x1ccfee(0xce)===_0x133da6||_0x1a5663===_0x133da6||_0x4a99f6[_0x1ccfee(0xef)](_0x133da6);}[_0x22afb1(0xe2)](_0x30c952,_0x34f943){const _0x46f941=_0x22afb1;return _0x30c952[_0x46f941(0xc9)](_0x48e94d=>zi(_0x48e94d)&&_0x46f941(0xce)===_0x34f943?_0x48e94d:_0x48e94d['id']===_0x34f943)||null;}}function _0x3c15(){const _0x1a8505=['_getModelById','add','128359MaYNsn','_isMatchingFilter','has','ai-models-unable-to-retrieve','_filterModels','map','419952NHMYPS','toLocaleLowerCase','getAvailableModels','_retrieveModels','defaultModelId','startsWith','889520Ncnduu','2HBZXjA','agent','484945NZaiDL','getModel','some','provider','37618bXauBe','_locale','ai-chat-default-model-id-unrecognized','ai-chat-model-id-unrecognized','find','getAll','getModels','uiLanguage','isAvailable','auto','length','name','_modelList','2530048WmZCja','items','recommended','_defaultModelId','displayedModels','list','240504OSpPNF','_config','getDefault','_connector','filter','string','push','_availableModels','AI_MODEL_NAME_AUTO','_modelsRequest'];_0x3c15=function(){return _0x1a8505;};return _0x3c15();}function zi(_0x4fbe93){const _0x54a3c2=_0x22afb1;return _0x4fbe93['id'][_0x54a3c2(0xef)](_0x54a3c2(0xf2));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ab8e2=_0x4ab1;(function(_0x331b5e,_0x531c65){const _0x3d5dfa=_0x4ab1,_0x485939=_0x331b5e();while(!![]){try{const _0x410b48=-parseInt(_0x3d5dfa(0x1e4))/0x1+-parseInt(_0x3d5dfa(0x1d4))/0x2*(-parseInt(_0x3d5dfa(0x217))/0x3)+parseInt(_0x3d5dfa(0x1e1))/0x4*(-parseInt(_0x3d5dfa(0x20d))/0x5)+-parseInt(_0x3d5dfa(0x1f7))/0x6+-parseInt(_0x3d5dfa(0x213))/0x7*(-parseInt(_0x3d5dfa(0x1e3))/0x8)+-parseInt(_0x3d5dfa(0x1fa))/0x9+parseInt(_0x3d5dfa(0x1f2))/0xa;if(_0x410b48===_0x531c65)break;else _0x485939['push'](_0x485939['shift']());}catch(_0x11661d){_0x485939['push'](_0x485939['shift']());}}}(_0x51d7,0x2c9a8));import{CKEditorError as _0x27a916,ObservableMixin as _0x3c2c15,uid as _0x23d6eb}from'ckeditor5/src/utils.js';import{Element as _0x517749,findAll as _0x672614,getAttribute as _0x49231b,getParents as _0x12e21c,Document as _0x174741,parse as _0x3ed254,Text as _0xc45a0c}from'../utils/htmlparser.js';import{AIResponseParser as _0xe994e4}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x19c1b3}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x4e81a6}from'../utils/getsuggestionpartsfromreply.js';function _0x4ab1(_0x486c7c,_0x3d9b88){const _0x51d7f3=_0x51d7();return _0x4ab1=function(_0x4ab165,_0x9cf4b2){_0x4ab165=_0x4ab165-0x1cd;let _0x3d497a=_0x51d7f3[_0x4ab165];return _0x3d497a;},_0x4ab1(_0x486c7c,_0x3d9b88);}import{getTranslation as _0x59b766}from'../utils/common-translations.js';import{cloneDeep as _0x357faf}from'es-toolkit';export class AIReply extends _0x3c2c15(){['id'];[_0x1ab8e2(0x211)];[_0x1ab8e2(0x1d3)];[_0x1ab8e2(0x202)]=[];[_0x1ab8e2(0x1e7)]=new _0x174741([]);[_0x1ab8e2(0x1f3)]=new _0x174741([]);[_0x1ab8e2(0x1cf)]=[];[_0x1ab8e2(0x1d6)]=!0x1;[_0x1ab8e2(0x1e2)];[_0x1ab8e2(0x210)];[_0x1ab8e2(0x209)];[_0x1ab8e2(0x1d0)];[_0x1ab8e2(0x1dc)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x5e6be,content:_0x311562='',isDone:_0x5cf712=!0x1,interactionId:_0x58546d,areActionsDisabled:_0x521f02,documentContextContent:_0x127774,editor:_0x4d29a4,id:_0x166aa5}){const _0x3d1f16=_0x1ab8e2;super(),this['id']=_0x166aa5||_0x23d6eb(),this[_0x3d1f16(0x211)]=_0x58546d,this[_0x3d1f16(0x1d3)]=_0x5e6be,this[_0x3d1f16(0x1d6)]=!!_0x521f02,this[_0x3d1f16(0x1d0)]=_0x4d29a4,this[_0x3d1f16(0x210)]=new _0xe994e4(),this[_0x3d1f16(0x209)]=new _0x19c1b3(),this[_0x3d1f16(0x1e2)]=_0x3ed254(_0x127774||''),this[_0x3d1f16(0x1ea)](_0x3d1f16(0x1df),_0x5cf712),this['on'](_0x3d1f16(0x208),()=>{const _0x10b8f6=_0x3d1f16;this[_0x10b8f6(0x212)]();}),this[_0x3d1f16(0x1ea)](_0x3d1f16(0x20a),_0x311562);}[_0x1ab8e2(0x215)](_0x53df6c){const _0x39eb0d=_0x1ab8e2;this[_0x39eb0d(0x1ea)](_0x39eb0d(0x20a),this[_0x39eb0d(0x20a)]+_0x53df6c);}[_0x1ab8e2(0x1d7)](){const _0x32e439=_0x1ab8e2;this[_0x32e439(0x1df)]||(this[_0x32e439(0x1ea)](_0x32e439(0x1df),!0x0),this[_0x32e439(0x212)]());}[_0x1ab8e2(0x21c)](){const _0x2cfd54=_0x1ab8e2;this[_0x2cfd54(0x1ce)]();}[_0x1ab8e2(0x1f4)](_0x48b993,_0xa8a78d){const _0xf29b5f=_0x1ab8e2;this[_0xf29b5f(0x1cf)][_0x48b993][_0xf29b5f(0x1fb)]=_0xa8a78d,this[_0xf29b5f(0x1d8)](_0xf29b5f(0x1fd),{'reply':this,'index':_0x48b993,'state':_0xa8a78d});}[_0x1ab8e2(0x214)]({showDiff:_0x3998f3,groupIndex:_0x521bae}){const _0x48bc9e=_0x1ab8e2;if(!this[_0x48bc9e(0x1d0)])throw new _0x27a916(_0x48bc9e(0x1fe),null,{'aiReply':this});const _0x73e7af=this[_0x48bc9e(0x1ed)](_0x3998f3,_0x521bae);if(_0x73e7af)return _0x73e7af;let _0x299ad9=[];if(void 0x0===_0x521bae)_0x299ad9=this[_0x48bc9e(0x1cf)];else{const _0x2e84e8=this[_0x48bc9e(0x1cf)][_0x48bc9e(0x1de)](({index:_0x3c3f6c})=>_0x3c3f6c===_0x521bae);if(!_0x2e84e8)throw new _0x27a916(_0x48bc9e(0x1f9),null,{'aiReply':this,'groupIndex':_0x521bae});_0x299ad9=[_0x2e84e8];}const _0x2c770b=_0x4e81a6({'editor':this[_0x48bc9e(0x1d0)],'showDiff':_0x3998f3,'changeGroups':_0x299ad9,'documentContextContent':this[_0x48bc9e(0x1e2)]});return this[_0x48bc9e(0x1d1)](_0x3998f3,_0x2c770b),_0x2c770b;}[_0x1ab8e2(0x1ed)](_0x5a2631,_0x26e62a){const _0x320631=_0x1ab8e2,_0x5188fa=_0x5a2631?_0x320631(0x1f0):_0x320631(0x1d5);if(!this[_0x320631(0x1dc)][_0x5188fa][_0x320631(0x20b)])return null;const _0x2e2d86=this[_0x320631(0x1dc)][_0x5188fa];if(void 0x0===_0x26e62a)return _0x2e2d86[_0x320631(0x20b)]>0x0&&_0x2e2d86[_0x320631(0x20b)]!==this[_0x320631(0x1cf)][_0x320631(0x20b)]?(this[_0x320631(0x1d1)](_0x5a2631,null),null):_0x357faf(_0x2e2d86);{const _0x4c223c=_0x2e2d86[_0x320631(0x1de)](({index:_0x259188})=>_0x259188===_0x26e62a);if(_0x4c223c)return[_0x357faf(_0x4c223c)];}return null;}[_0x1ab8e2(0x1d1)](_0x51a900,_0x62b801){const _0x2af962=_0x1ab8e2,_0x679df0=_0x51a900?_0x2af962(0x1f0):_0x2af962(0x1d5);_0x62b801?_0x62b801[_0x2af962(0x203)](_0x37a936=>{const _0x51bb70=_0x2af962,_0x231b38=this[_0x51bb70(0x1dc)][_0x679df0],_0x283a04=_0x231b38[_0x51bb70(0x1de)](({index:_0x2b964d})=>_0x2b964d===_0x37a936[_0x51bb70(0x1e0)]);if(_0x283a04){const _0x530de3=_0x231b38[_0x51bb70(0x1d9)](_0x283a04);_0x231b38[_0x51bb70(0x1eb)](_0x530de3,0x1,_0x37a936);}else _0x231b38[_0x51bb70(0x1ef)](_0x37a936);}):this[_0x2af962(0x1dc)][_0x679df0][_0x2af962(0x20b)]=0x0;}[_0x1ab8e2(0x212)](){const _0x5813e3=_0x1ab8e2;if(_0x5813e3(0x20e)===this[_0x5813e3(0x1d3)]){this[_0x5813e3(0x1e7)]=this[_0x5813e3(0x210)][_0x5813e3(0x1cd)](this[_0x5813e3(0x20a)]);const _0x6b8b36=this[_0x5813e3(0x1cf)];this[_0x5813e3(0x206)]();const _0x478f87=this[_0x5813e3(0x207)](_0x6b8b36,this[_0x5813e3(0x1cf)]);(_0x478f87[_0x5813e3(0x20b)]||this[_0x5813e3(0x1df)])&&(this[_0x5813e3(0x1d8)](_0x5813e3(0x1d2),this,_0x478f87),this[_0x5813e3(0x1dc)][_0x5813e3(0x1f0)][_0x5813e3(0x20b)]=this[_0x5813e3(0x1dc)][_0x5813e3(0x1d5)][_0x5813e3(0x20b)]=0x0);}else this[_0x5813e3(0x1e7)]=this[_0x5813e3(0x210)][_0x5813e3(0x20c)](this[_0x5813e3(0x20a)]),this[_0x5813e3(0x1d8)](_0x5813e3(0x1d2),this);}[_0x1ab8e2(0x207)](_0x431942,_0x19051b){const _0xec8431=_0x1ab8e2,_0x18a220=[];for(const _0x13e199 of _0x19051b){const _0x12e68c=_0x431942[_0x13e199[_0xec8431(0x1e0)]];_0x12e68c?_0x12e68c[_0xec8431(0x1ec)][_0xec8431(0x20b)]!==_0x13e199[_0xec8431(0x1ec)][_0xec8431(0x20b)]?_0x18a220[_0xec8431(0x1ef)](_0x13e199):_0x12e68c[_0xec8431(0x1ec)][_0xec8431(0x203)]((_0x319c3f,_0x5569c7)=>{const _0xabc5fd=_0xec8431,_0x1e31b6=_0x13e199[_0xabc5fd(0x1ec)][_0x5569c7];_0x319c3f['id']!==_0x1e31b6['id']&&_0x18a220[_0xabc5fd(0x1ef)](_0x13e199);}):_0x18a220[_0xec8431(0x1ef)](_0x13e199);}return _0x18a220;}[_0x1ab8e2(0x206)](){const _0x1c04b9=_0x1ab8e2,_0x3cda5d=new _0x517749('p',{},[new _0x517749(_0x1c04b9(0x204),{'style':_0x1c04b9(0x1f1)},[new _0xc45a0c(_0x59b766(this[_0x1c04b9(0x1d0)][_0x1c04b9(0x1e8)],_0x1c04b9(0x1f8)))])]),_0x401bbb=this[_0x1c04b9(0x209)][_0x1c04b9(0x218)](this[_0x1c04b9(0x1e7)],this[_0x1c04b9(0x1e2)][_0x1c04b9(0x1f6)](!0x0),{'markUnstableElements':!this[_0x1c04b9(0x1df)],'replaceRemovedWith':_0x3cda5d,'cutAfterLastChange':!this[_0x1c04b9(0x1df)]});if(!_0x401bbb[_0x1c04b9(0x1da)][_0x1c04b9(0x20b)]&&!this[_0x1c04b9(0x1df)])return;this[_0x1c04b9(0x1f3)]=_0x401bbb[_0x1c04b9(0x1e7)];let _0x2ef34a=[];if(_0x672614(_0x16bf38=>{const _0x4a13cf=_0x1c04b9,_0x3a04ef=_0x49231b(_0x16bf38,_0x4a13cf(0x21a));if(!_0x3a04ef||!_0x290354(_0x3a04ef))return!0x1;const _0x57d37a=[_0x16bf38,..._0x12e21c(_0x16bf38)]['at'](-0x2);if(_0x16bf38!=_0x57d37a){const _0x13f895=_0x49231b(_0x57d37a,_0x4a13cf(0x21a));_0x290354(_0x13f895)||(_0x2ef34a[_0x4a13cf(0x1ef)]({'node':_0x57d37a,'id':_0x13f895,'type':_0x4a13cf(0x1ff)}),_0x401bbb[_0x4a13cf(0x1da)][_0x4a13cf(0x1ef)](_0x13f895));}else _0x401bbb[_0x4a13cf(0x1da)][_0x4a13cf(0x200)](_0x3a04ef)?_0x2ef34a[_0x4a13cf(0x1ef)]({'node':_0x16bf38,'type':_0x4a13cf(0x1ff),'id':_0x3a04ef}):_0x401bbb[_0x4a13cf(0x1e9)][_0x4a13cf(0x200)](_0x3a04ef)?_0x2ef34a[_0x4a13cf(0x1ef)]({'node':_0x16bf38,'type':_0x4a13cf(0x1e6),'id':_0x3a04ef,'anchorId':_0x49231b(_0x16bf38[_0x4a13cf(0x21b)],_0x4a13cf(0x21a))}):_0x2ef34a[_0x4a13cf(0x1ef)]({'node':_0x16bf38,'type':_0x4a13cf(0x1fc),'id':_0x3a04ef});return!0x0;},this[_0x1c04b9(0x1f3)]),_0x2ef34a=_0x2ef34a[_0x1c04b9(0x219)](({node:_0x4af6ea})=>[..._0x12e21c(_0x4af6ea),_0x4af6ea][_0x1c04b9(0x1db)](_0x261f4a=>!_0x49231b(_0x261f4a,_0x1c04b9(0x20f)))),0x0==_0x2ef34a[_0x1c04b9(0x20b)])return;const _0xd1a573=[[_0x2ef34a[0x0]]];for(let _0x13d0ab=0x1;_0x13d0ab<_0x2ef34a[_0x1c04b9(0x20b)];_0x13d0ab++){const _0x587a94=_0xd1a573[_0xd1a573[_0x1c04b9(0x20b)]-0x1],_0x2cd076=_0x587a94[_0x587a94[_0x1c04b9(0x20b)]-0x1];_0x2ef34a[_0x13d0ab][_0x1c04b9(0x1dd)][_0x1c04b9(0x21b)]==_0x2cd076[_0x1c04b9(0x1dd)]&&_0x1c04b9(0x1ff)!=_0x2ef34a[_0x13d0ab][_0x1c04b9(0x1d3)]&&_0x1c04b9(0x1ff)!=_0x2cd076[_0x1c04b9(0x1d3)]?_0x587a94[_0x1c04b9(0x1ef)](_0x2ef34a[_0x13d0ab]):_0xd1a573[_0x1c04b9(0x1ef)]([_0x2ef34a[_0x13d0ab]]);}for(const _0x43f195 of _0xd1a573){const _0x239d06=_0x43f195[0x0],_0xf025e=_0x43f195[_0x43f195[_0x1c04b9(0x20b)]-0x1],_0x34c3ae=_0x49ee21(_0x239d06[_0x1c04b9(0x1dd)][_0x1c04b9(0x21b)]);_0x34c3ae&&_0x43f195[_0x1c04b9(0x1e5)](_0x34c3ae);const _0x182069=_0x49ee21(_0xf025e[_0x1c04b9(0x1dd)][_0x1c04b9(0x216)]);_0x182069&&_0x43f195[_0x1c04b9(0x1ef)](_0x182069);}function _0x290354(_0x2f3fd2){const _0x2a060f=_0x1c04b9;return _0x401bbb[_0x2a060f(0x1da)][_0x2a060f(0x200)](_0x2f3fd2)||_0x401bbb[_0x2a060f(0x1e9)][_0x2a060f(0x200)](_0x2f3fd2)||_0x401bbb[_0x2a060f(0x1f5)][_0x2a060f(0x200)](_0x2f3fd2);}function _0x49ee21(_0xc38fa9){const _0x215834=_0x1c04b9;if(_0xc38fa9&&_0x49231b(_0xc38fa9,_0x215834(0x21a))&&!_0x49231b(_0xc38fa9,_0x215834(0x20f))){const _0x323bd7=_0x49231b(_0xc38fa9,_0x215834(0x21a));if(!_0x290354(_0x323bd7))return{'node':_0xc38fa9,'type':_0x215834(0x201),'id':_0x323bd7};}return null;}this[_0x1c04b9(0x1cf)]=_0xd1a573[_0x1c04b9(0x205)]((_0x197cca,_0x4c89be)=>({'changes':_0x197cca,'state':_0x1c04b9(0x1ee),'index':_0x4c89be}));}}function _0x51d7(){const _0x47831e=['846318fEEWwG','AI_SUGGESTION_CONTENT_PART_REMOVED','ai-reply-get-content-parts-group-not-found','1679058nSMaRz','state','removed','replyChangeGroupStateUpdated','ai-get-editor-from-context-no-editor','modified','includes','context','sources','forEach','span','map','updateChangeGroups','_getDifferentChangeGroups','change:content','aiResponseApplier','content','length','convertMarkdownToHTML','3870IKUbuS','modification','data-unstable','aiResponseParser','interactionId','onContentChange','2321977spIddJ','getContentParts','appendContent','nextSibling','15CiRsHU','merge','filter','data-id','previousSibling','destroy','parseAndNormalizeHTML','stopListening','changeGroups','editor','_setCachedContentParts','replyContentUpdated','type','42954YJeIIX','withoutDiff','areActionsDisabled','done','fire','indexOf','modifiedNodeIds','every','cachedSuggestionContentParts','node','find','isDone','index','12Zwksoa','documentContextContent','8WgfhDF','274050cjmJfx','unshift','new','parsedContent','locale','newNodeIds','set','splice','changes','_getCachedContentParts','pending','push','withDiff','color:\x20#808080;\x20font-style:\x20italic','3475870GQpfvX','parsedMergedContent','setChangeGroupState','removedNodeIds','cloneNode'];_0x51d7=function(){return _0x47831e;};return _0x51d7();}
23
+ function _0x3a54(_0x4ae0c,_0x3a44cc){const _0xc8dddb=_0xc8dd();return _0x3a54=function(_0x3a540b,_0x4ce66a){_0x3a540b=_0x3a540b-0x8e;let _0x1daa30=_0xc8dddb[_0x3a540b];return _0x1daa30;},_0x3a54(_0x4ae0c,_0x3a44cc);}const _0x3fa3b0=_0x3a54;(function(_0x5e1a90,_0x485385){const _0x2a9c15=_0x3a54,_0x55a6de=_0x5e1a90();while(!![]){try{const _0x2a247d=-parseInt(_0x2a9c15(0xb0))/0x1*(-parseInt(_0x2a9c15(0xad))/0x2)+parseInt(_0x2a9c15(0x93))/0x3+-parseInt(_0x2a9c15(0x91))/0x4*(parseInt(_0x2a9c15(0xd5))/0x5)+parseInt(_0x2a9c15(0x9a))/0x6+parseInt(_0x2a9c15(0xaf))/0x7+-parseInt(_0x2a9c15(0xa5))/0x8+-parseInt(_0x2a9c15(0x96))/0x9;if(_0x2a247d===_0x485385)break;else _0x55a6de['push'](_0x55a6de['shift']());}catch(_0x327dba){_0x55a6de['push'](_0x55a6de['shift']());}}}(_0xc8dd,0x21bfa));import{CKEditorError as _0x175b14,ObservableMixin as _0x3a31dd,uid as _0x2bbc84}from'ckeditor5/src/utils.js';import{Element as _0x1eacf9,findAll as _0xa1aa9f,getAttribute as _0x2a64a4,getParents as _0x1bddc8,Document as _0x3bf8af,parse as _0x5cc162,Text as _0x5f06b7}from'../utils/htmlparser.js';import{AIResponseParser as _0x11e7a0}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x4860ed}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0xa7985d}from'../utils/getsuggestionpartsfromreply.js';function _0xc8dd(){const _0x41de51=['done','modified','changes','720472mapozb','onContentChange','interactionId','modifiedNodeIds','fire','cachedSuggestionContentParts','unshift','withoutDiff','190ljaHQh','parsedMergedContent','1856981nqArof','1758yEOUbD','type','context','sources','modification','parsedContent','areActionsDisabled','indexOf','_getCachedContentParts','_setCachedContentParts','locale','merge','includes','previousSibling','ai-get-editor-from-context-no-editor','data-id','span','setChangeGroupState','filter','splice','length','editor','changeGroups','replyContentUpdated','color:\x20#808080;\x20font-style:\x20italic','pending','aiResponseParser','data-unstable','find','push','appendContent','isDone','replyChangeGroupStateUpdated','getContentParts','AI_SUGGESTION_CONTENT_PART_REMOVED','map','state','4955TGMlBu','content','newNodeIds','set','new','_getDifferentChangeGroups','aiResponseApplier','removed','forEach','cloneNode','updateChangeGroups','644hPfyQq','node','653895oUwpZG','every','parseAndNormalizeHTML','4052178QElrhV','destroy','stopListening','nextSibling','1126968sOMMAP','index','ai-reply-get-content-parts-group-not-found','convertMarkdownToHTML','withDiff','removedNodeIds','documentContextContent','change:content'];_0xc8dd=function(){return _0x41de51;};return _0xc8dd();}import{getTranslation as _0x2da7d8}from'../utils/common-translations.js';import{cloneDeep as _0x4c7fcb}from'es-toolkit';export class AIReply extends _0x3a31dd(){['id'];[_0x3fa3b0(0xa7)];[_0x3fa3b0(0xb1)];[_0x3fa3b0(0xb3)]=[];[_0x3fa3b0(0xb5)]=new _0x3bf8af([]);[_0x3fa3b0(0xae)]=new _0x3bf8af([]);[_0x3fa3b0(0xc6)]=[];[_0x3fa3b0(0xb6)]=!0x1;[_0x3fa3b0(0xa0)];[_0x3fa3b0(0xca)];[_0x3fa3b0(0xdb)];[_0x3fa3b0(0xc5)];[_0x3fa3b0(0xaa)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x1a6f43,content:_0x12afb7='',isDone:_0x228824=!0x1,interactionId:_0x287c8c,areActionsDisabled:_0x199198,documentContextContent:_0x8b0100,editor:_0x2bb317,id:_0x3280a4}){const _0x172a94=_0x3fa3b0;super(),this['id']=_0x3280a4||_0x2bbc84(),this[_0x172a94(0xa7)]=_0x287c8c,this[_0x172a94(0xb1)]=_0x1a6f43,this[_0x172a94(0xb6)]=!!_0x199198,this[_0x172a94(0xc5)]=_0x2bb317,this[_0x172a94(0xca)]=new _0x11e7a0(),this[_0x172a94(0xdb)]=new _0x4860ed(),this[_0x172a94(0xa0)]=_0x5cc162(_0x8b0100||''),this[_0x172a94(0xd8)](_0x172a94(0xcf),_0x228824),this['on'](_0x172a94(0xa1),()=>{const _0x309b09=_0x172a94;this[_0x309b09(0xa6)]();}),this[_0x172a94(0xd8)](_0x172a94(0xd6),_0x12afb7);}[_0x3fa3b0(0xce)](_0x4f7b52){const _0x3c148c=_0x3fa3b0;this[_0x3c148c(0xd8)](_0x3c148c(0xd6),this[_0x3c148c(0xd6)]+_0x4f7b52);}[_0x3fa3b0(0xa2)](){const _0x322847=_0x3fa3b0;this[_0x322847(0xcf)]||(this[_0x322847(0xd8)](_0x322847(0xcf),!0x0),this[_0x322847(0xa6)]());}[_0x3fa3b0(0x97)](){const _0xb3be37=_0x3fa3b0;this[_0xb3be37(0x98)]();}[_0x3fa3b0(0xc1)](_0xbb72fa,_0x36fbd7){const _0x242f8a=_0x3fa3b0;this[_0x242f8a(0xc6)][_0xbb72fa][_0x242f8a(0xd4)]=_0x36fbd7,this[_0x242f8a(0xa9)](_0x242f8a(0xd0),{'reply':this,'index':_0xbb72fa,'state':_0x36fbd7});}[_0x3fa3b0(0xd1)]({showDiff:_0x47b6ad,groupIndex:_0x3ba1a4}){const _0x2bbd0f=_0x3fa3b0;if(!this[_0x2bbd0f(0xc5)])throw new _0x175b14(_0x2bbd0f(0xbe),null,{'aiReply':this});const _0x1b2c9f=this[_0x2bbd0f(0xb8)](_0x47b6ad,_0x3ba1a4);if(_0x1b2c9f)return _0x1b2c9f;let _0xcdd9df=[];if(void 0x0===_0x3ba1a4)_0xcdd9df=this[_0x2bbd0f(0xc6)];else{const _0x5bc6dc=this[_0x2bbd0f(0xc6)][_0x2bbd0f(0xcc)](({index:_0x4fd9e0})=>_0x4fd9e0===_0x3ba1a4);if(!_0x5bc6dc)throw new _0x175b14(_0x2bbd0f(0x9c),null,{'aiReply':this,'groupIndex':_0x3ba1a4});_0xcdd9df=[_0x5bc6dc];}const _0x246391=_0xa7985d({'editor':this[_0x2bbd0f(0xc5)],'showDiff':_0x47b6ad,'changeGroups':_0xcdd9df,'documentContextContent':this[_0x2bbd0f(0xa0)]});return this[_0x2bbd0f(0xb9)](_0x47b6ad,_0x246391),_0x246391;}[_0x3fa3b0(0xb8)](_0x1f9fec,_0x52ab1b){const _0x52d8cd=_0x3fa3b0,_0xe0d3dd=_0x1f9fec?_0x52d8cd(0x9e):_0x52d8cd(0xac);if(!this[_0x52d8cd(0xaa)][_0xe0d3dd][_0x52d8cd(0xc4)])return null;const _0x3005a7=this[_0x52d8cd(0xaa)][_0xe0d3dd];if(void 0x0===_0x52ab1b)return _0x3005a7[_0x52d8cd(0xc4)]>0x0&&_0x3005a7[_0x52d8cd(0xc4)]!==this[_0x52d8cd(0xc6)][_0x52d8cd(0xc4)]?(this[_0x52d8cd(0xb9)](_0x1f9fec,null),null):_0x4c7fcb(_0x3005a7);{const _0x35bf58=_0x3005a7[_0x52d8cd(0xcc)](({index:_0x3012f4})=>_0x3012f4===_0x52ab1b);if(_0x35bf58)return[_0x4c7fcb(_0x35bf58)];}return null;}[_0x3fa3b0(0xb9)](_0x47132a,_0x122aab){const _0x48b3c9=_0x3fa3b0,_0x2bcad5=_0x47132a?_0x48b3c9(0x9e):_0x48b3c9(0xac);_0x122aab?_0x122aab[_0x48b3c9(0x8e)](_0x2213ad=>{const _0x38fc4b=_0x48b3c9,_0x15e821=this[_0x38fc4b(0xaa)][_0x2bcad5],_0x1106b9=_0x15e821[_0x38fc4b(0xcc)](({index:_0x53b2b9})=>_0x53b2b9===_0x2213ad[_0x38fc4b(0x9b)]);if(_0x1106b9){const _0x4df1ee=_0x15e821[_0x38fc4b(0xb7)](_0x1106b9);_0x15e821[_0x38fc4b(0xc3)](_0x4df1ee,0x1,_0x2213ad);}else _0x15e821[_0x38fc4b(0xcd)](_0x2213ad);}):this[_0x48b3c9(0xaa)][_0x2bcad5][_0x48b3c9(0xc4)]=0x0;}[_0x3fa3b0(0xa6)](){const _0xeb4d8d=_0x3fa3b0;if(_0xeb4d8d(0xb4)===this[_0xeb4d8d(0xb1)]){this[_0xeb4d8d(0xb5)]=this[_0xeb4d8d(0xca)][_0xeb4d8d(0x95)](this[_0xeb4d8d(0xd6)]);const _0x5a6e28=this[_0xeb4d8d(0xc6)];this[_0xeb4d8d(0x90)]();const _0x2070a4=this[_0xeb4d8d(0xda)](_0x5a6e28,this[_0xeb4d8d(0xc6)]);(_0x2070a4[_0xeb4d8d(0xc4)]||this[_0xeb4d8d(0xcf)])&&(this[_0xeb4d8d(0xa9)](_0xeb4d8d(0xc7),this,_0x2070a4),this[_0xeb4d8d(0xaa)][_0xeb4d8d(0x9e)][_0xeb4d8d(0xc4)]=this[_0xeb4d8d(0xaa)][_0xeb4d8d(0xac)][_0xeb4d8d(0xc4)]=0x0);}else this[_0xeb4d8d(0xb5)]=this[_0xeb4d8d(0xca)][_0xeb4d8d(0x9d)](this[_0xeb4d8d(0xd6)]),this[_0xeb4d8d(0xa9)](_0xeb4d8d(0xc7),this);}[_0x3fa3b0(0xda)](_0x4189a6,_0x1ae2d3){const _0x153078=_0x3fa3b0,_0x647b7b=[];for(const _0x3da52f of _0x1ae2d3){const _0x396776=_0x4189a6[_0x3da52f[_0x153078(0x9b)]];_0x396776?_0x396776[_0x153078(0xa4)][_0x153078(0xc4)]!==_0x3da52f[_0x153078(0xa4)][_0x153078(0xc4)]?_0x647b7b[_0x153078(0xcd)](_0x3da52f):_0x396776[_0x153078(0xa4)][_0x153078(0x8e)]((_0x5673cc,_0x4a127a)=>{const _0x3272bc=_0x153078,_0x3822d1=_0x3da52f[_0x3272bc(0xa4)][_0x4a127a];_0x5673cc['id']!==_0x3822d1['id']&&_0x647b7b[_0x3272bc(0xcd)](_0x3da52f);}):_0x647b7b[_0x153078(0xcd)](_0x3da52f);}return _0x647b7b;}[_0x3fa3b0(0x90)](){const _0x573348=_0x3fa3b0,_0x2c5d7=new _0x1eacf9('p',{},[new _0x1eacf9(_0x573348(0xc0),{'style':_0x573348(0xc8)},[new _0x5f06b7(_0x2da7d8(this[_0x573348(0xc5)][_0x573348(0xba)],_0x573348(0xd2)))])]),_0x1f3959=this[_0x573348(0xdb)][_0x573348(0xbb)](this[_0x573348(0xb5)],this[_0x573348(0xa0)][_0x573348(0x8f)](!0x0),{'markUnstableElements':!this[_0x573348(0xcf)],'replaceRemovedWith':_0x2c5d7,'cutAfterLastChange':!this[_0x573348(0xcf)]});if(!_0x1f3959[_0x573348(0xa8)][_0x573348(0xc4)]&&!this[_0x573348(0xcf)])return;this[_0x573348(0xae)]=_0x1f3959[_0x573348(0xb5)];let _0x4d5b24=[];if(_0xa1aa9f(_0x327d43=>{const _0x1fc886=_0x573348,_0x58e321=_0x2a64a4(_0x327d43,_0x1fc886(0xbf));if(!_0x58e321||!_0x4eeace(_0x58e321))return!0x1;const _0x15901e=[_0x327d43,..._0x1bddc8(_0x327d43)]['at'](-0x2);if(_0x327d43!=_0x15901e){const _0x2171f4=_0x2a64a4(_0x15901e,_0x1fc886(0xbf));_0x4eeace(_0x2171f4)||(_0x4d5b24[_0x1fc886(0xcd)]({'node':_0x15901e,'id':_0x2171f4,'type':_0x1fc886(0xa3)}),_0x1f3959[_0x1fc886(0xa8)][_0x1fc886(0xcd)](_0x2171f4));}else _0x1f3959[_0x1fc886(0xa8)][_0x1fc886(0xbc)](_0x58e321)?_0x4d5b24[_0x1fc886(0xcd)]({'node':_0x327d43,'type':_0x1fc886(0xa3),'id':_0x58e321}):_0x1f3959[_0x1fc886(0xd7)][_0x1fc886(0xbc)](_0x58e321)?_0x4d5b24[_0x1fc886(0xcd)]({'node':_0x327d43,'type':_0x1fc886(0xd9),'id':_0x58e321,'anchorId':_0x2a64a4(_0x327d43[_0x1fc886(0xbd)],_0x1fc886(0xbf))}):_0x4d5b24[_0x1fc886(0xcd)]({'node':_0x327d43,'type':_0x1fc886(0xdc),'id':_0x58e321});return!0x0;},this[_0x573348(0xae)]),_0x4d5b24=_0x4d5b24[_0x573348(0xc2)](({node:_0x49de2e})=>[..._0x1bddc8(_0x49de2e),_0x49de2e][_0x573348(0x94)](_0x373249=>!_0x2a64a4(_0x373249,_0x573348(0xcb)))),0x0==_0x4d5b24[_0x573348(0xc4)])return;const _0x57428e=[[_0x4d5b24[0x0]]];for(let _0x42c329=0x1;_0x42c329<_0x4d5b24[_0x573348(0xc4)];_0x42c329++){const _0xad9131=_0x57428e[_0x57428e[_0x573348(0xc4)]-0x1],_0x4b8bdb=_0xad9131[_0xad9131[_0x573348(0xc4)]-0x1];_0x4d5b24[_0x42c329][_0x573348(0x92)][_0x573348(0xbd)]==_0x4b8bdb[_0x573348(0x92)]&&_0x573348(0xa3)!=_0x4d5b24[_0x42c329][_0x573348(0xb1)]&&_0x573348(0xa3)!=_0x4b8bdb[_0x573348(0xb1)]?_0xad9131[_0x573348(0xcd)](_0x4d5b24[_0x42c329]):_0x57428e[_0x573348(0xcd)]([_0x4d5b24[_0x42c329]]);}for(const _0x552032 of _0x57428e){const _0x49d73b=_0x552032[0x0],_0x33ce43=_0x552032[_0x552032[_0x573348(0xc4)]-0x1],_0x824149=_0x159272(_0x49d73b[_0x573348(0x92)][_0x573348(0xbd)]);_0x824149&&_0x552032[_0x573348(0xab)](_0x824149);const _0x2e569c=_0x159272(_0x33ce43[_0x573348(0x92)][_0x573348(0x99)]);_0x2e569c&&_0x552032[_0x573348(0xcd)](_0x2e569c);}function _0x4eeace(_0x5d287a){const _0x407f4c=_0x573348;return _0x1f3959[_0x407f4c(0xa8)][_0x407f4c(0xbc)](_0x5d287a)||_0x1f3959[_0x407f4c(0xd7)][_0x407f4c(0xbc)](_0x5d287a)||_0x1f3959[_0x407f4c(0x9f)][_0x407f4c(0xbc)](_0x5d287a);}function _0x159272(_0x4f40e8){const _0x4a168d=_0x573348;if(_0x4f40e8&&_0x2a64a4(_0x4f40e8,_0x4a168d(0xbf))&&!_0x2a64a4(_0x4f40e8,_0x4a168d(0xcb))){const _0x3a190d=_0x2a64a4(_0x4f40e8,_0x4a168d(0xbf));if(!_0x4eeace(_0x3a190d))return{'node':_0x4f40e8,'type':_0x4a168d(0xb2),'id':_0x3a190d};}return null;}this[_0x573348(0xc6)]=_0x57428e[_0x573348(0xd3)]((_0x99d53,_0x419a8c)=>({'changes':_0x99d53,'state':_0x573348(0xc9),'index':_0x419a8c}));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3c9f0e=_0x31b7;function _0x351e(){const _0xbf289c=['283314VKnUUe','63eIcTNm','_findReferenceNode','1198726ESmbGA','1848756NfkPab','_hasWrappedParent','data-unstable','reverse','_findPrevElementWithDataId','cutAfterLastChange','_markLastTagElementUnstable','lastChild','modifiedIds','beforebegin','trim','merge','cloneNode','_removeSpecialComments','new-element','invalidIds','2514843fkSXSm','afterbegin','afterend','has','slice','_markUnstableElements','map','_isNewNode','_existingDataIds','replaceRemovedWith','forEach','previousSibling','8rxdEyp','_findFallbackReferenceNode','11NtMcrD','from','_replaceNode','_markWrappedElements','lastTouchedId','removedIds','_isExistingContentComment','true','16624090ngScBh','_generateUid','markUnstableElements','_findNextElementWithDataId','_isDelNode','filter','_getNodeDataId','_storeDeletedElementIds','_getUid','childNodes','indexOf','1335DfQcKn','match','_insertNodes','push','parentNode','newIds','includes','data-wrapped-id','nextSibling','splice','946232IOIDql','nodeType','2694rzkgTt','_isExistingNode','markUnstableElementsDepth','data-id','data-removed','_touchedNodesState','length'];_0x351e=function(){return _0xbf289c;};return _0x351e();}(function(_0x47a44a,_0x73a3b9){const _0x21b50b=_0x31b7,_0x6baffa=_0x47a44a();while(!![]){try{const _0x54d3f1=parseInt(_0x21b50b(0xa7))/0x1+parseInt(_0x21b50b(0xaa))/0x2+parseInt(_0x21b50b(0xab))/0x3*(-parseInt(_0x21b50b(0x7f))/0x4)+parseInt(_0x21b50b(0x94))/0x5*(parseInt(_0x21b50b(0xa0))/0x6)+-parseInt(_0x21b50b(0xa8))/0x7*(parseInt(_0x21b50b(0x9e))/0x8)+parseInt(_0x21b50b(0x73))/0x9+parseInt(_0x21b50b(0x89))/0xa*(parseInt(_0x21b50b(0x81))/0xb);if(_0x54d3f1===_0x73a3b9)break;else _0x6baffa['push'](_0x6baffa['shift']());}catch(_0x56c2f8){_0x6baffa['push'](_0x6baffa['shift']());}}}(_0x351e,0x9e0d5));import{ObservableMixin as _0x2af682,uid as _0x47511b}from'ckeditor5/src/utils.js';function _0x31b7(_0x443e37,_0x7e90f){const _0x351e89=_0x351e();return _0x31b7=function(_0x31b7d6,_0x288315){_0x31b7d6=_0x31b7d6-0x72;let _0x11148d=_0x351e89[_0x31b7d6];return _0x11148d;},_0x31b7(_0x443e37,_0x7e90f);}import{findAllByAttribute as _0x2cf522,findByAttribute as _0x55c942,getAttribute as _0x4a5f8f,isComment as _0x41f7b4,isTag as _0x145ab4,insertElement as _0x1d3622,moveElement as _0x59c9c2,removeElement as _0x166f20,replaceElement as _0x42b0aa,serialize as _0x33486c,setAttribute as _0x3f76de,clone as _0x1e9ed6,findAllComments as _0x199f59,getParents as _0x44593b,getNodeNestingLevel as _0x1c9558,areNodesSame as _0x40a79c,removeElementsAfter as _0x1c9749}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x2af682(){[_0x3c9f0e(0x8a)];[_0x3c9f0e(0xa5)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x3c9f0e(0x7b)]=new Set();constructor(_0xde9edc){const _0x180d0e=_0x3c9f0e;super(),this[_0x180d0e(0x8a)]=_0xde9edc||_0x47511b;}[_0x3c9f0e(0xb6)](_0x5f2e7d,_0x50d05b,_0x5dda41){const _0x5d8b06=_0x3c9f0e,_0x15bfc4=_0x1e9ed6(_0x5f2e7d);if(0x0===_0x50d05b[_0x5d8b06(0x92)][_0x5d8b06(0xa6)]){const _0x3c513e=[];return _0x2cf522(_0x5d8b06(0xa3),_0x5d8b06(0xb9),_0x15bfc4)[_0x5d8b06(0x7d)](_0x36f5ca=>{const _0x3ea8f5=_0x5d8b06,_0x377631=this[_0x3ea8f5(0x8a)]();_0x3f76de(_0x36f5ca,_0x3ea8f5(0xa3),_0x377631),_0x3c513e[_0x3ea8f5(0x97)](_0x377631);}),this[_0x5d8b06(0xb8)](_0x15bfc4),{'parsedContent':_0x15bfc4,'newNodeIds':_0x3c513e,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x5dda41&&_0x5dda41[_0x5d8b06(0x8b)]&&this[_0x5d8b06(0xb1)](_0x15bfc4),this[_0x5d8b06(0xa5)][_0x5d8b06(0x99)]=[],this[_0x5d8b06(0xa5)][_0x5d8b06(0xb3)]=[],this[_0x5d8b06(0xa5)][_0x5d8b06(0x86)]=[],this[_0x5d8b06(0xa5)][_0x5d8b06(0x72)]=[],this[_0x5d8b06(0xa5)][_0x5d8b06(0x85)]=null,this[_0x5d8b06(0x7b)]=new Set(_0x2cf522(_0x5d8b06(0xa3),null,_0x50d05b)[_0x5d8b06(0x79)](_0x2036cb=>_0x4a5f8f(_0x2036cb,_0x5d8b06(0xa3)))[_0x5d8b06(0x8e)](_0xc3ab89=>!!_0xc3ab89));let _0x1852ee=-0x1,_0x1eaefb=!0x1;const _0x3a6266=_0x15bfc4[_0x5d8b06(0x92)],_0x22a0e8=Array[_0x5d8b06(0x82)](_0x3a6266)[_0x5d8b06(0x8e)](_0x4bc024=>!(0x3===_0x4bc024[_0x5d8b06(0x9f)]&&''===_0x33486c(_0x4bc024)[_0x5d8b06(0xb5)]())),_0xc07062=_0x22a0e8[_0x5d8b06(0xa6)];for(let _0x4a6e3f=0x0;_0x4a6e3f<_0xc07062;_0x4a6e3f++){const _0x3ca6f6=_0x22a0e8[_0x4a6e3f],_0x54d218=_0x22a0e8[_0x4a6e3f+0x1];if(this[_0x5d8b06(0x7a)](_0x3ca6f6)){if(-0x1===_0x1852ee&&(_0x1852ee=_0x4a6e3f),this[_0x5d8b06(0x84)](_0x3ca6f6),!this[_0x5d8b06(0x7a)](_0x54d218)){const [_0xf31b3e,_0x2e39b8]=this[_0x5d8b06(0xa9)](_0x3ca6f6,_0x1eaefb,_0x50d05b);if(_0xf31b3e){const _0x3c1c5a=Array[_0x5d8b06(0x82)](_0x22a0e8)[_0x5d8b06(0x77)](_0x1852ee,_0x4a6e3f+0x1);this[_0x5d8b06(0x96)](_0xf31b3e,_0x3c1c5a,_0x2e39b8),_0x1852ee=-0x1;}}}else{if(this[_0x5d8b06(0x87)](_0x3ca6f6))_0x1eaefb=!0x0;else{if(this[_0x5d8b06(0xa1)](_0x3ca6f6)){const _0x38bfb4=_0x4a5f8f(_0x3ca6f6,_0x5d8b06(0xa3));if(_0x38bfb4&&this[_0x5d8b06(0x7b)][_0x5d8b06(0x76)](_0x38bfb4)){const _0x30326c=_0x55c942(_0x5d8b06(0xa3),_0x38bfb4,_0x50d05b);this[_0x5d8b06(0x83)](_0x30326c,_0x3ca6f6);}if(this[_0x5d8b06(0xa5)][_0x5d8b06(0x86)][_0x5d8b06(0x9a)](_0x38bfb4)){const _0x4be585=this[_0x5d8b06(0xa5)][_0x5d8b06(0x86)][_0x5d8b06(0x93)](_0x38bfb4);this[_0x5d8b06(0xa5)][_0x5d8b06(0x86)][_0x5d8b06(0x9d)](_0x4be585,0x1);}}else{if(this[_0x5d8b06(0x8d)](_0x3ca6f6)){const _0x5a8b80=_0x4a5f8f(_0x3ca6f6,_0x5d8b06(0xa3));this[_0x5d8b06(0xa5)][_0x5d8b06(0xb3)][_0x5d8b06(0x9a)](_0x5a8b80)||this[_0x5d8b06(0x90)](_0x3ca6f6);}}}}}for(const _0x3345c7 of this[_0x5d8b06(0xa5)][_0x5d8b06(0x86)]){const _0x53e0c9=_0x55c942(_0x5d8b06(0xa3),_0x3345c7,_0x50d05b);if(_0x53e0c9){if(_0x5dda41&&_0x5dda41[_0x5d8b06(0x7c)]){this[_0x5d8b06(0xa5)][_0x5d8b06(0x85)]=_0x3345c7;const _0x3e37d6=_0x5dda41[_0x5d8b06(0x7c)][_0x5d8b06(0xb7)](!0x0);_0x3f76de(_0x3e37d6,_0x5d8b06(0xa3),_0x3345c7),_0x3f76de(_0x3e37d6,_0x5d8b06(0xa4),_0x5d8b06(0x88)),_0x42b0aa(_0x53e0c9,_0x3e37d6);}else _0x166f20(_0x53e0c9);}}if(_0x2cf522(_0x5d8b06(0x9b),null,_0x50d05b)[_0x5d8b06(0x7d)](_0x6d6173=>{const _0x438f48=_0x5d8b06,_0x1ff2ac=_0x4a5f8f(_0x6d6173,_0x438f48(0x9b)),_0x304ff1=_0x55c942(_0x438f48(0xa3),_0x1ff2ac,_0x50d05b);_0x304ff1&&_0x59c9c2(_0x304ff1,_0x6d6173);}),_0x2cf522(_0x5d8b06(0xa3),_0x5d8b06(0xb9),_0x50d05b)[_0x5d8b06(0x7d)](_0x5b31bf=>{const _0x3613ca=_0x5d8b06,_0x1fa9ad=this[_0x3613ca(0x91)](_0x5b31bf);_0x3f76de(_0x5b31bf,_0x3613ca(0xa3),_0x1fa9ad),this[_0x3613ca(0xa5)][_0x3613ca(0x99)][_0x3613ca(0x97)](_0x1fa9ad);}),this[_0x5d8b06(0xb8)](_0x50d05b),_0x5dda41&&_0x5dda41[_0x5d8b06(0x8b)]&&this[_0x5d8b06(0x78)](_0x50d05b,_0x5dda41[_0x5d8b06(0xa2)]||0x0),_0x5dda41&&_0x5dda41[_0x5d8b06(0xb0)]&&this[_0x5d8b06(0xa5)][_0x5d8b06(0x85)]){let _0x34bb1b=_0x55c942(_0x5d8b06(0xa3),this[_0x5d8b06(0xa5)][_0x5d8b06(0x85)],_0x50d05b);for(;_0x34bb1b;)_0x1c9749(_0x34bb1b),_0x34bb1b=_0x34bb1b[_0x5d8b06(0x98)];}return{'parsedContent':_0x50d05b,'newNodeIds':this[_0x5d8b06(0xa5)][_0x5d8b06(0x99)],'modifiedNodeIds':this[_0x5d8b06(0xa5)][_0x5d8b06(0xb3)],'removedNodeIds':this[_0x5d8b06(0xa5)][_0x5d8b06(0x86)]};}[_0x3c9f0e(0x96)](_0x5b03c8,_0x35a81d,_0x385e98){const _0x4afd12=_0x3c9f0e;for(const _0x5633fd of _0x35a81d){const _0x27ab57=this[_0x4afd12(0x91)](_0x5633fd);_0x3f76de(_0x5633fd,_0x4afd12(0xa3),_0x27ab57),this[_0x4afd12(0xa5)][_0x4afd12(0x99)][_0x4afd12(0x97)](_0x27ab57),this[_0x4afd12(0xa5)][_0x4afd12(0x85)]=_0x27ab57;}const _0x2f09ca=_0x4afd12(0x74)===_0x385e98||_0x4afd12(0x75)===_0x385e98?_0x35a81d[_0x4afd12(0xae)]():_0x35a81d;for(const _0x2c959f of _0x2f09ca)_0x1d3622(_0x5b03c8,_0x2c959f,_0x385e98);}[_0x3c9f0e(0x83)](_0x4d2e4a,_0x12021a){const _0x4eb740=_0x3c9f0e;if(!_0x4d2e4a)return;if(_0x40a79c(_0x4d2e4a,_0x12021a))return;const _0x2aaf9a=this[_0x4eb740(0x91)](_0x4d2e4a);_0x3f76de(_0x12021a,_0x4eb740(0xa3),_0x2aaf9a),this[_0x4eb740(0xa5)][_0x4eb740(0xb3)][_0x4eb740(0x97)](_0x2aaf9a),this[_0x4eb740(0xa5)][_0x4eb740(0x85)]=_0x2aaf9a,_0x42b0aa(_0x4d2e4a,_0x12021a[_0x4eb740(0xb7)](!0x0));}[_0x3c9f0e(0xa9)](_0x118732,_0x3cac13,_0x1d511b){const _0x567622=_0x3c9f0e,_0x5a760a=this[_0x567622(0xaf)](_0x118732,!0x1);if(_0x5a760a){const _0x182e8d=this[_0x567622(0x8f)](_0x5a760a),_0x377da7=_0x55c942(_0x567622(0xa3),_0x182e8d,_0x1d511b);if(_0x377da7)return[_0x377da7,_0x567622(0x75)];this[_0x567622(0xa5)][_0x567622(0x72)][_0x567622(0x97)](_0x182e8d);}const _0x1484d9=this[_0x567622(0x8c)](_0x118732,!0x1);if(_0x1484d9){const _0x271f25=this[_0x567622(0x8f)](_0x1484d9),_0x3a2619=_0x55c942(_0x567622(0xa3),_0x271f25,_0x1d511b);if(_0x3a2619)return[_0x3a2619,_0x567622(0xb4)];this[_0x567622(0xa5)][_0x567622(0x72)][_0x567622(0x97)](_0x271f25);}return _0x3cac13?_0x118732[_0x567622(0x9c)]?this[_0x567622(0x80)](_0x118732,_0x1d511b):[_0x1d511b[_0x567622(0x92)][_0x1d511b[_0x567622(0x92)][_0x567622(0xa6)]-0x1],_0x567622(0x75)]:[_0x1d511b[_0x567622(0x92)][0x0],_0x567622(0xb4)];}[_0x3c9f0e(0x80)](_0x4a1599,_0x433e0b){const _0x477d2c=_0x3c9f0e,_0x59a690=[],_0x45b02a=this[_0x477d2c(0xaf)](_0x4a1599,!0x0);if(_0x45b02a){const _0x4977d8=this[_0x477d2c(0x8f)](_0x45b02a),_0x46313a=_0x55c942(_0x477d2c(0xa3),_0x4977d8,_0x433e0b);_0x46313a&&_0x59a690[_0x477d2c(0x97)]([_0x46313a,_0x477d2c(0x75)]);}const _0x486dfd=this[_0x477d2c(0x8c)](_0x4a1599,!0x0);if(_0x486dfd){const _0x4c5ed6=this[_0x477d2c(0x8f)](_0x486dfd),_0xa3339f=_0x55c942(_0x477d2c(0xa3),_0x4c5ed6,_0x433e0b);_0xa3339f&&_0x59a690[_0x477d2c(0x97)]([_0xa3339f,_0x477d2c(0xb4)]);}if(_0x59a690[_0x477d2c(0xa6)]>0x1)return _0x1c9558(_0x59a690[0x0][0x0])<=_0x1c9558(_0x59a690[0x1][0x0])?_0x59a690[0x0]:_0x59a690[0x1];return 0x1===_0x59a690[_0x477d2c(0xa6)]?_0x59a690[0x0]:[_0x433e0b[_0x477d2c(0xb2)],_0x477d2c(0x75)];}[_0x3c9f0e(0x8c)](_0x4ca35a,_0x459a30){const _0x11aecc=_0x3c9f0e;let _0xb17f4f=_0x4ca35a[_0x11aecc(0x9c)],_0x378c51=null,_0x29acb0=!0x1;for(;_0xb17f4f;){if(_0x41f7b4(_0xb17f4f)){if(this[_0x11aecc(0x8d)](_0xb17f4f)&&(_0x378c51=_0xb17f4f),this[_0x11aecc(0x87)](_0xb17f4f)&&_0x459a30&&!_0x29acb0){_0x29acb0=!0x0,_0xb17f4f=_0xb17f4f[_0x11aecc(0x9c)];continue;}break;}const _0x51a6b7=_0x4a5f8f(_0xb17f4f,_0x11aecc(0xa3));if(_0x51a6b7&&_0x11aecc(0xb9)!==_0x51a6b7&&this[_0x11aecc(0x7b)][_0x11aecc(0x76)](_0x51a6b7)){_0x378c51=_0xb17f4f;break;}_0xb17f4f=_0xb17f4f[_0x11aecc(0x9c)];}return _0x378c51;}[_0x3c9f0e(0xaf)](_0x20a5ae,_0x4a0c66){const _0x3de82f=_0x3c9f0e;let _0x4d9bf7=_0x20a5ae[_0x3de82f(0x7e)],_0x3a1f67=null,_0x3e5e09=!0x1;for(;_0x4d9bf7;){if(_0x41f7b4(_0x4d9bf7)){if(this[_0x3de82f(0x8d)](_0x4d9bf7)&&(_0x3a1f67=_0x4d9bf7),this[_0x3de82f(0x87)](_0x4d9bf7)&&_0x4a0c66&&!_0x3e5e09){_0x3e5e09=!0x0,_0x4d9bf7=_0x4d9bf7[_0x3de82f(0x7e)];continue;}break;}const _0x1bf7c6=_0x4a5f8f(_0x4d9bf7,_0x3de82f(0xa3));if(_0x1bf7c6&&_0x3de82f(0xb9)!==_0x1bf7c6&&this[_0x3de82f(0x7b)][_0x3de82f(0x76)](_0x1bf7c6)){_0x3a1f67=_0x4d9bf7;break;}_0x4d9bf7=_0x4d9bf7[_0x3de82f(0x7e)];}return _0x3a1f67;}[_0x3c9f0e(0x84)](_0x3aeb3f){const _0x1452b6=_0x3c9f0e;_0x145ab4(_0x3aeb3f)&&_0x2cf522(_0x1452b6(0xa3),null,_0x3aeb3f)[_0x1452b6(0x7d)](_0x30bd05=>{const _0x5d2576=_0x1452b6;if(this[_0x5d2576(0xa1)](_0x30bd05)&&!this[_0x5d2576(0xac)](_0x30bd05)){const _0x27c9ef=_0x4a5f8f(_0x30bd05,_0x5d2576(0xa3));_0x3f76de(_0x30bd05,_0x5d2576(0x9b),_0x27c9ef),_0x3f76de(_0x30bd05,_0x5d2576(0xa3),null);}});}[_0x3c9f0e(0x8f)](_0x4e3af4){const _0x106743=_0x3c9f0e;if(!_0x4e3af4)return null;if(_0x145ab4(_0x4e3af4))return _0x4a5f8f(_0x4e3af4,_0x106743(0xa3));if(_0x41f7b4(_0x4e3af4)){const _0x88f5e4=_0x33486c(_0x4e3af4)[_0x106743(0x95)](/removed[\s*-]data-id="([^"]+)"/);if(_0x88f5e4&&_0x88f5e4[0x1])return _0x88f5e4[0x1];}return null;}[_0x3c9f0e(0x90)](_0xb0175b){const _0x4bf4aa=_0x3c9f0e;if(_0x41f7b4(_0xb0175b)){const _0x496793=_0x33486c(_0xb0175b)[_0x4bf4aa(0x95)](/removed[\s*-]data-id="([^"]+)"/);_0x496793&&_0x496793[0x1]&&this[_0x4bf4aa(0xa5)][_0x4bf4aa(0x86)][_0x4bf4aa(0x97)](_0x496793[0x1]);}}[_0x3c9f0e(0x91)](_0x5b2cbd){const _0x7ebca9=_0x3c9f0e;return this[_0x7ebca9(0xa1)](_0x5b2cbd)?_0x4a5f8f(_0x5b2cbd,_0x7ebca9(0xa3)):this[_0x7ebca9(0x8a)]();}[_0x3c9f0e(0xb8)](_0x4d53a2){const _0x4cccd8=_0x3c9f0e;_0x199f59(_0x4d53a2)[_0x4cccd8(0x8e)](_0x35bc40=>this[_0x4cccd8(0x8d)](_0x35bc40)||this[_0x4cccd8(0x87)](_0x35bc40))[_0x4cccd8(0x7d)](_0xb435=>{_0x166f20(_0xb435);});}[_0x3c9f0e(0xb1)](_0x33d0cd){const _0x307096=_0x3c9f0e,_0x227f8b=_0x33d0cd[_0x307096(0x92)],_0x2298ab=_0x227f8b[_0x227f8b[_0x307096(0xa6)]-0x1];_0x2298ab&&_0x145ab4(_0x2298ab)&&_0x3f76de(_0x2298ab,_0x307096(0xad),_0x307096(0x88));}[_0x3c9f0e(0x78)](_0x50195e,_0x11c102){const _0x289dd2=_0x3c9f0e,_0x5e7ed1=_0x55c942(_0x289dd2(0xad),_0x289dd2(0x88),_0x50195e);if(!_0x5e7ed1)return;const _0x13c495=_0x44593b(_0x5e7ed1)[_0x289dd2(0x77)](0x0,-0x1),_0x435aa2=_0x13c495[_0x289dd2(0xa6)];let _0x51bd18=_0x5e7ed1;if(_0x435aa2>_0x11c102){let _0xad9fa8=_0x435aa2,_0x22814e=null;for(;_0xad9fa8>_0x11c102&&_0xad9fa8>=0x0;)_0xad9fa8--,_0x22814e=_0x13c495[_0xad9fa8];_0x22814e&&(_0x51bd18=_0x22814e,_0x3f76de(_0x5e7ed1,_0x289dd2(0xad),null),_0x3f76de(_0x22814e,_0x289dd2(0xad),_0x289dd2(0x88)));}else{if(_0x435aa2<_0x11c102){let _0x2ecfee=_0x435aa2,_0x5b2d4a=_0x5e7ed1;for(;_0x2ecfee<_0x11c102;){const _0x4aa85b=_0x5b2d4a[_0x289dd2(0x92)][_0x289dd2(0x8e)](_0x347159=>_0x145ab4(_0x347159));if(0x0===_0x4aa85b[_0x289dd2(0xa6)])break;_0x2ecfee++,_0x5b2d4a=_0x4aa85b[_0x4aa85b[_0x289dd2(0xa6)]-0x1];}_0x5b2d4a&&(_0x51bd18=_0x5b2d4a,_0x3f76de(_0x5e7ed1,_0x289dd2(0xad),null),_0x3f76de(_0x5b2d4a,_0x289dd2(0xad),_0x289dd2(0x88)));}}let _0x140c39=_0x51bd18;for(;_0x140c39;){for(;_0x140c39[_0x289dd2(0x9c)];)_0x140c39=_0x140c39[_0x289dd2(0x9c)],_0x145ab4(_0x140c39)&&_0x3f76de(_0x140c39,_0x289dd2(0xad),_0x289dd2(0x88));_0x140c39=_0x140c39[_0x289dd2(0x98)];}}[_0x3c9f0e(0x7a)](_0x2f844d){const _0x382692=_0x3c9f0e;return Boolean(_0x382692(0xb9)===_0x4a5f8f(_0x2f844d,_0x382692(0xa3)));}[_0x3c9f0e(0xa1)](_0x4b86da){const _0x270240=_0x3c9f0e;return Boolean((_0x4a5f8f(_0x4b86da,_0x270240(0xa3))||'')[_0x270240(0xa6)]>0x0&&_0x270240(0xb9)!==_0x4a5f8f(_0x4b86da,_0x270240(0xa3)));}[_0x3c9f0e(0x8d)](_0x2837d2){const _0x3ab663=_0x3c9f0e;return!!_0x2837d2&&Boolean(_0x41f7b4(_0x2837d2)&&_0x33486c(_0x2837d2)[_0x3ab663(0x95)](/removed[\s*-]data-id="[^"]+"/));}[_0x3c9f0e(0xac)](_0x315d4b){const _0x32393d=_0x3c9f0e;let _0x147ee5=_0x315d4b[_0x32393d(0x98)];for(;_0x147ee5;){if(_0x4a5f8f(_0x147ee5,_0x32393d(0x9b)))return!0x0;_0x147ee5=_0x147ee5[_0x32393d(0x98)];}return!0x1;}[_0x3c9f0e(0x87)](_0x3b5594){const _0x290b7a=_0x3c9f0e;return Boolean(_0x41f7b4(_0x3b5594)&&_0x33486c(_0x3b5594)[_0x290b7a(0x95)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ const _0x13b85f=_0x196a;(function(_0x1892a2,_0x250626){const _0x4a7968=_0x196a,_0x150d85=_0x1892a2();while(!![]){try{const _0x4ee3d6=-parseInt(_0x4a7968(0xc1))/0x1*(parseInt(_0x4a7968(0xac))/0x2)+parseInt(_0x4a7968(0xca))/0x3*(parseInt(_0x4a7968(0xb0))/0x4)+-parseInt(_0x4a7968(0xe0))/0x5+-parseInt(_0x4a7968(0xd5))/0x6*(parseInt(_0x4a7968(0xb1))/0x7)+parseInt(_0x4a7968(0xc7))/0x8+parseInt(_0x4a7968(0xe4))/0x9*(parseInt(_0x4a7968(0xde))/0xa)+-parseInt(_0x4a7968(0xe2))/0xb*(-parseInt(_0x4a7968(0xd9))/0xc);if(_0x4ee3d6===_0x250626)break;else _0x150d85['push'](_0x150d85['shift']());}catch(_0x393383){_0x150d85['push'](_0x150d85['shift']());}}}(_0x39a0,0x2527f));function _0x196a(_0x18b33d,_0xea2df){const _0x39a0ce=_0x39a0();return _0x196a=function(_0x196ab0,_0x1cf240){_0x196ab0=_0x196ab0-0xa2;let _0x1e40c4=_0x39a0ce[_0x196ab0];return _0x1e40c4;},_0x196a(_0x18b33d,_0xea2df);}import{ObservableMixin as _0x317f23,uid as _0x2e13de}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0xfc0253,findByAttribute as _0x5f328f,getAttribute as _0x50b759,isComment as _0x203ff4,isTag as _0x5e75b6,insertElement as _0x5768c5,moveElement as _0x57a336,removeElement as _0x1d6f66,replaceElement as _0x106ba7,serialize as _0x10de9c,setAttribute as _0x395373,clone as _0x1d8da8,findAllComments as _0x3bb9f4,getParents as _0x176897,getNodeNestingLevel as _0x73910d,areNodesSame as _0x36887f,removeElementsAfter as _0x5421b8}from'../utils/htmlparser.js';function _0x39a0(){const _0x1354da=['true','_storeDeletedElementIds','_insertNodes','beforebegin','lastTouchedId','nodeType','_hasWrappedParent','_markUnstableElements','childNodes','push','parentNode','nextSibling','_existingDataIds','818slRgnm','forEach','modifiedIds','data-id','_markLastTagElementUnstable','_isExistingContentComment','738016XdAGcB','slice','afterbegin','66558QHtHFh','replaceRemovedWith','_findPrevElementWithDataId','includes','_findFallbackReferenceNode','_touchedNodesState','lastChild','from','length','_isNewNode','map','6ZRPekp','cutAfterLastChange','previousSibling','markUnstableElementsDepth','11448TMbIhg','invalidIds','_getUid','_findNextElementWithDataId','afterend','1529390kAOBKI','data-unstable','788980BqDfeA','match','3267oURhuk','new-element','9EKFHsh','trim','markUnstableElements','_markWrappedElements','_isExistingNode','cloneNode','has','data-removed','newIds','indexOf','removedIds','_getNodeDataId','_replaceNode','merge','_isDelNode','data-wrapped-id','_generateUid','670NDBzTr','_removeSpecialComments','reverse','filter','28KplGFR','698698dxzOZM','splice','_findReferenceNode'];_0x39a0=function(){return _0x1354da;};return _0x39a0();}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x317f23(){[_0x13b85f(0xab)];[_0x13b85f(0xcf)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x13b85f(0xc0)]=new Set();constructor(_0x26ca70){const _0xdbf60c=_0x13b85f;super(),this[_0xdbf60c(0xab)]=_0x26ca70||_0x2e13de;}[_0x13b85f(0xa8)](_0x5137e7,_0x13c25f,_0x491f7c){const _0x29d8d3=_0x13b85f,_0x54ba4b=_0x1d8da8(_0x5137e7);if(0x0===_0x13c25f[_0x29d8d3(0xbc)][_0x29d8d3(0xd2)]){const _0x485f53=[];return _0xfc0253(_0x29d8d3(0xc4),_0x29d8d3(0xe3),_0x54ba4b)[_0x29d8d3(0xc2)](_0x11a63b=>{const _0x1afafa=_0x29d8d3,_0x6f90ad=this[_0x1afafa(0xab)]();_0x395373(_0x11a63b,_0x1afafa(0xc4),_0x6f90ad),_0x485f53[_0x1afafa(0xbd)](_0x6f90ad);}),this[_0x29d8d3(0xad)](_0x54ba4b),{'parsedContent':_0x54ba4b,'newNodeIds':_0x485f53,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x491f7c&&_0x491f7c[_0x29d8d3(0xe6)]&&this[_0x29d8d3(0xc5)](_0x54ba4b),this[_0x29d8d3(0xcf)][_0x29d8d3(0xa3)]=[],this[_0x29d8d3(0xcf)][_0x29d8d3(0xc3)]=[],this[_0x29d8d3(0xcf)][_0x29d8d3(0xa5)]=[],this[_0x29d8d3(0xcf)][_0x29d8d3(0xda)]=[],this[_0x29d8d3(0xcf)][_0x29d8d3(0xb8)]=null,this[_0x29d8d3(0xc0)]=new Set(_0xfc0253(_0x29d8d3(0xc4),null,_0x13c25f)[_0x29d8d3(0xd4)](_0x430036=>_0x50b759(_0x430036,_0x29d8d3(0xc4)))[_0x29d8d3(0xaf)](_0x1e3fde=>!!_0x1e3fde));let _0x444c67=-0x1,_0xa51323=!0x1;const _0x4ae5bf=_0x54ba4b[_0x29d8d3(0xbc)],_0x103135=Array[_0x29d8d3(0xd1)](_0x4ae5bf)[_0x29d8d3(0xaf)](_0x392545=>!(0x3===_0x392545[_0x29d8d3(0xb9)]&&''===_0x10de9c(_0x392545)[_0x29d8d3(0xe5)]())),_0x9a1e49=_0x103135[_0x29d8d3(0xd2)];for(let _0x403776=0x0;_0x403776<_0x9a1e49;_0x403776++){const _0x53ce35=_0x103135[_0x403776],_0x5cd815=_0x103135[_0x403776+0x1];if(this[_0x29d8d3(0xd3)](_0x53ce35)){if(-0x1===_0x444c67&&(_0x444c67=_0x403776),this[_0x29d8d3(0xe7)](_0x53ce35),!this[_0x29d8d3(0xd3)](_0x5cd815)){const [_0x5d5338,_0x52bd48]=this[_0x29d8d3(0xb3)](_0x53ce35,_0xa51323,_0x13c25f);if(_0x5d5338){const _0x49b0f4=Array[_0x29d8d3(0xd1)](_0x103135)[_0x29d8d3(0xc8)](_0x444c67,_0x403776+0x1);this[_0x29d8d3(0xb6)](_0x5d5338,_0x49b0f4,_0x52bd48),_0x444c67=-0x1;}}}else{if(this[_0x29d8d3(0xc6)](_0x53ce35))_0xa51323=!0x0;else{if(this[_0x29d8d3(0xe8)](_0x53ce35)){const _0x1ea93c=_0x50b759(_0x53ce35,_0x29d8d3(0xc4));if(_0x1ea93c&&this[_0x29d8d3(0xc0)][_0x29d8d3(0xea)](_0x1ea93c)){const _0x3adeb7=_0x5f328f(_0x29d8d3(0xc4),_0x1ea93c,_0x13c25f);this[_0x29d8d3(0xa7)](_0x3adeb7,_0x53ce35);}if(this[_0x29d8d3(0xcf)][_0x29d8d3(0xa5)][_0x29d8d3(0xcd)](_0x1ea93c)){const _0xd18af6=this[_0x29d8d3(0xcf)][_0x29d8d3(0xa5)][_0x29d8d3(0xa4)](_0x1ea93c);this[_0x29d8d3(0xcf)][_0x29d8d3(0xa5)][_0x29d8d3(0xb2)](_0xd18af6,0x1);}}else{if(this[_0x29d8d3(0xa9)](_0x53ce35)){const _0x1e14d5=_0x50b759(_0x53ce35,_0x29d8d3(0xc4));this[_0x29d8d3(0xcf)][_0x29d8d3(0xc3)][_0x29d8d3(0xcd)](_0x1e14d5)||this[_0x29d8d3(0xb5)](_0x53ce35);}}}}}for(const _0x5c1aaa of this[_0x29d8d3(0xcf)][_0x29d8d3(0xa5)]){const _0x217163=_0x5f328f(_0x29d8d3(0xc4),_0x5c1aaa,_0x13c25f);if(_0x217163){if(_0x491f7c&&_0x491f7c[_0x29d8d3(0xcb)]){this[_0x29d8d3(0xcf)][_0x29d8d3(0xb8)]=_0x5c1aaa;const _0x4157a2=_0x491f7c[_0x29d8d3(0xcb)][_0x29d8d3(0xe9)](!0x0);_0x395373(_0x4157a2,_0x29d8d3(0xc4),_0x5c1aaa),_0x395373(_0x4157a2,_0x29d8d3(0xa2),_0x29d8d3(0xb4)),_0x106ba7(_0x217163,_0x4157a2);}else _0x1d6f66(_0x217163);}}if(_0xfc0253(_0x29d8d3(0xaa),null,_0x13c25f)[_0x29d8d3(0xc2)](_0x3c2c10=>{const _0x327e4b=_0x29d8d3,_0x150b78=_0x50b759(_0x3c2c10,_0x327e4b(0xaa)),_0xab713c=_0x5f328f(_0x327e4b(0xc4),_0x150b78,_0x13c25f);_0xab713c&&_0x57a336(_0xab713c,_0x3c2c10);}),_0xfc0253(_0x29d8d3(0xc4),_0x29d8d3(0xe3),_0x13c25f)[_0x29d8d3(0xc2)](_0x3e90bd=>{const _0xe7203b=_0x29d8d3,_0x1da652=this[_0xe7203b(0xdb)](_0x3e90bd);_0x395373(_0x3e90bd,_0xe7203b(0xc4),_0x1da652),this[_0xe7203b(0xcf)][_0xe7203b(0xa3)][_0xe7203b(0xbd)](_0x1da652);}),this[_0x29d8d3(0xad)](_0x13c25f),_0x491f7c&&_0x491f7c[_0x29d8d3(0xe6)]&&this[_0x29d8d3(0xbb)](_0x13c25f,_0x491f7c[_0x29d8d3(0xd8)]||0x0),_0x491f7c&&_0x491f7c[_0x29d8d3(0xd6)]&&this[_0x29d8d3(0xcf)][_0x29d8d3(0xb8)]){let _0x4064aa=_0x5f328f(_0x29d8d3(0xc4),this[_0x29d8d3(0xcf)][_0x29d8d3(0xb8)],_0x13c25f);for(;_0x4064aa;)_0x5421b8(_0x4064aa),_0x4064aa=_0x4064aa[_0x29d8d3(0xbe)];}return{'parsedContent':_0x13c25f,'newNodeIds':this[_0x29d8d3(0xcf)][_0x29d8d3(0xa3)],'modifiedNodeIds':this[_0x29d8d3(0xcf)][_0x29d8d3(0xc3)],'removedNodeIds':this[_0x29d8d3(0xcf)][_0x29d8d3(0xa5)]};}[_0x13b85f(0xb6)](_0x1cb791,_0x39b5da,_0x11e622){const _0x56ab06=_0x13b85f;for(const _0x3f2fe8 of _0x39b5da){const _0x27ef01=this[_0x56ab06(0xdb)](_0x3f2fe8);_0x395373(_0x3f2fe8,_0x56ab06(0xc4),_0x27ef01),this[_0x56ab06(0xcf)][_0x56ab06(0xa3)][_0x56ab06(0xbd)](_0x27ef01),this[_0x56ab06(0xcf)][_0x56ab06(0xb8)]=_0x27ef01;}const _0x2be4c7=_0x56ab06(0xc9)===_0x11e622||_0x56ab06(0xdd)===_0x11e622?_0x39b5da[_0x56ab06(0xae)]():_0x39b5da;for(const _0x5b7a5f of _0x2be4c7)_0x5768c5(_0x1cb791,_0x5b7a5f,_0x11e622);}[_0x13b85f(0xa7)](_0x4caa22,_0x2dc40b){const _0x208805=_0x13b85f;if(!_0x4caa22)return;if(_0x36887f(_0x4caa22,_0x2dc40b))return;const _0x5352bf=this[_0x208805(0xdb)](_0x4caa22);_0x395373(_0x2dc40b,_0x208805(0xc4),_0x5352bf),this[_0x208805(0xcf)][_0x208805(0xc3)][_0x208805(0xbd)](_0x5352bf),this[_0x208805(0xcf)][_0x208805(0xb8)]=_0x5352bf,_0x106ba7(_0x4caa22,_0x2dc40b[_0x208805(0xe9)](!0x0));}[_0x13b85f(0xb3)](_0x57f971,_0x216d31,_0x4bad72){const _0x398eff=_0x13b85f,_0x5ae478=this[_0x398eff(0xcc)](_0x57f971,!0x1);if(_0x5ae478){const _0x504d71=this[_0x398eff(0xa6)](_0x5ae478),_0x125794=_0x5f328f(_0x398eff(0xc4),_0x504d71,_0x4bad72);if(_0x125794)return[_0x125794,_0x398eff(0xdd)];this[_0x398eff(0xcf)][_0x398eff(0xda)][_0x398eff(0xbd)](_0x504d71);}const _0xac3ebf=this[_0x398eff(0xdc)](_0x57f971,!0x1);if(_0xac3ebf){const _0x2dd94a=this[_0x398eff(0xa6)](_0xac3ebf),_0xdf59eb=_0x5f328f(_0x398eff(0xc4),_0x2dd94a,_0x4bad72);if(_0xdf59eb)return[_0xdf59eb,_0x398eff(0xb7)];this[_0x398eff(0xcf)][_0x398eff(0xda)][_0x398eff(0xbd)](_0x2dd94a);}return _0x216d31?_0x57f971[_0x398eff(0xbf)]?this[_0x398eff(0xce)](_0x57f971,_0x4bad72):[_0x4bad72[_0x398eff(0xbc)][_0x4bad72[_0x398eff(0xbc)][_0x398eff(0xd2)]-0x1],_0x398eff(0xdd)]:[_0x4bad72[_0x398eff(0xbc)][0x0],_0x398eff(0xb7)];}[_0x13b85f(0xce)](_0x2a101a,_0x425a95){const _0x2bdaea=_0x13b85f,_0x56ce08=[],_0x49671e=this[_0x2bdaea(0xcc)](_0x2a101a,!0x0);if(_0x49671e){const _0x1940a3=this[_0x2bdaea(0xa6)](_0x49671e),_0xf1599a=_0x5f328f(_0x2bdaea(0xc4),_0x1940a3,_0x425a95);_0xf1599a&&_0x56ce08[_0x2bdaea(0xbd)]([_0xf1599a,_0x2bdaea(0xdd)]);}const _0x445367=this[_0x2bdaea(0xdc)](_0x2a101a,!0x0);if(_0x445367){const _0x3c2193=this[_0x2bdaea(0xa6)](_0x445367),_0x3c3009=_0x5f328f(_0x2bdaea(0xc4),_0x3c2193,_0x425a95);_0x3c3009&&_0x56ce08[_0x2bdaea(0xbd)]([_0x3c3009,_0x2bdaea(0xb7)]);}if(_0x56ce08[_0x2bdaea(0xd2)]>0x1)return _0x73910d(_0x56ce08[0x0][0x0])<=_0x73910d(_0x56ce08[0x1][0x0])?_0x56ce08[0x0]:_0x56ce08[0x1];return 0x1===_0x56ce08[_0x2bdaea(0xd2)]?_0x56ce08[0x0]:[_0x425a95[_0x2bdaea(0xd0)],_0x2bdaea(0xdd)];}[_0x13b85f(0xdc)](_0x4a7e6f,_0x3dbd0d){const _0x1b7731=_0x13b85f;let _0x4428c2=_0x4a7e6f[_0x1b7731(0xbf)],_0x118f1f=null,_0x11bacc=!0x1;for(;_0x4428c2;){if(_0x203ff4(_0x4428c2)){if(this[_0x1b7731(0xa9)](_0x4428c2)&&(_0x118f1f=_0x4428c2),this[_0x1b7731(0xc6)](_0x4428c2)&&_0x3dbd0d&&!_0x11bacc){_0x11bacc=!0x0,_0x4428c2=_0x4428c2[_0x1b7731(0xbf)];continue;}break;}const _0x582774=_0x50b759(_0x4428c2,_0x1b7731(0xc4));if(_0x582774&&_0x1b7731(0xe3)!==_0x582774&&this[_0x1b7731(0xc0)][_0x1b7731(0xea)](_0x582774)){_0x118f1f=_0x4428c2;break;}_0x4428c2=_0x4428c2[_0x1b7731(0xbf)];}return _0x118f1f;}[_0x13b85f(0xcc)](_0x3a952e,_0x1afcf3){const _0x444a87=_0x13b85f;let _0x2cf73f=_0x3a952e[_0x444a87(0xd7)],_0x13ca1e=null,_0x3bb2f2=!0x1;for(;_0x2cf73f;){if(_0x203ff4(_0x2cf73f)){if(this[_0x444a87(0xa9)](_0x2cf73f)&&(_0x13ca1e=_0x2cf73f),this[_0x444a87(0xc6)](_0x2cf73f)&&_0x1afcf3&&!_0x3bb2f2){_0x3bb2f2=!0x0,_0x2cf73f=_0x2cf73f[_0x444a87(0xd7)];continue;}break;}const _0x371ccb=_0x50b759(_0x2cf73f,_0x444a87(0xc4));if(_0x371ccb&&_0x444a87(0xe3)!==_0x371ccb&&this[_0x444a87(0xc0)][_0x444a87(0xea)](_0x371ccb)){_0x13ca1e=_0x2cf73f;break;}_0x2cf73f=_0x2cf73f[_0x444a87(0xd7)];}return _0x13ca1e;}[_0x13b85f(0xe7)](_0x2b9729){const _0x50633e=_0x13b85f;_0x5e75b6(_0x2b9729)&&_0xfc0253(_0x50633e(0xc4),null,_0x2b9729)[_0x50633e(0xc2)](_0x49f566=>{const _0x501365=_0x50633e;if(this[_0x501365(0xe8)](_0x49f566)&&!this[_0x501365(0xba)](_0x49f566)){const _0x26ac30=_0x50b759(_0x49f566,_0x501365(0xc4));_0x395373(_0x49f566,_0x501365(0xaa),_0x26ac30),_0x395373(_0x49f566,_0x501365(0xc4),null);}});}[_0x13b85f(0xa6)](_0x1fcf8e){const _0x120621=_0x13b85f;if(!_0x1fcf8e)return null;if(_0x5e75b6(_0x1fcf8e))return _0x50b759(_0x1fcf8e,_0x120621(0xc4));if(_0x203ff4(_0x1fcf8e)){const _0x206442=_0x10de9c(_0x1fcf8e)[_0x120621(0xe1)](/removed[\s*-]data-id="([^"]+)"/);if(_0x206442&&_0x206442[0x1])return _0x206442[0x1];}return null;}[_0x13b85f(0xb5)](_0x4da230){const _0xda2ba2=_0x13b85f;if(_0x203ff4(_0x4da230)){const _0x4b184f=_0x10de9c(_0x4da230)[_0xda2ba2(0xe1)](/removed[\s*-]data-id="([^"]+)"/);_0x4b184f&&_0x4b184f[0x1]&&this[_0xda2ba2(0xcf)][_0xda2ba2(0xa5)][_0xda2ba2(0xbd)](_0x4b184f[0x1]);}}[_0x13b85f(0xdb)](_0x1704b7){const _0xfab4=_0x13b85f;return this[_0xfab4(0xe8)](_0x1704b7)?_0x50b759(_0x1704b7,_0xfab4(0xc4)):this[_0xfab4(0xab)]();}[_0x13b85f(0xad)](_0x45c140){const _0x5dce7e=_0x13b85f;_0x3bb9f4(_0x45c140)[_0x5dce7e(0xaf)](_0x4abb06=>this[_0x5dce7e(0xa9)](_0x4abb06)||this[_0x5dce7e(0xc6)](_0x4abb06))[_0x5dce7e(0xc2)](_0x375146=>{_0x1d6f66(_0x375146);});}[_0x13b85f(0xc5)](_0x48d280){const _0x5c4c71=_0x13b85f,_0x1331f8=_0x48d280[_0x5c4c71(0xbc)],_0x39e9f8=_0x1331f8[_0x1331f8[_0x5c4c71(0xd2)]-0x1];_0x39e9f8&&_0x5e75b6(_0x39e9f8)&&_0x395373(_0x39e9f8,_0x5c4c71(0xdf),_0x5c4c71(0xb4));}[_0x13b85f(0xbb)](_0x1c6f03,_0x7985d7){const _0x231dee=_0x13b85f,_0x22d31b=_0x5f328f(_0x231dee(0xdf),_0x231dee(0xb4),_0x1c6f03);if(!_0x22d31b)return;const _0x277523=_0x176897(_0x22d31b)[_0x231dee(0xc8)](0x0,-0x1),_0x4d1b74=_0x277523[_0x231dee(0xd2)];let _0x574581=_0x22d31b;if(_0x4d1b74>_0x7985d7){let _0x1eebf1=_0x4d1b74,_0xcf4101=null;for(;_0x1eebf1>_0x7985d7&&_0x1eebf1>=0x0;)_0x1eebf1--,_0xcf4101=_0x277523[_0x1eebf1];_0xcf4101&&(_0x574581=_0xcf4101,_0x395373(_0x22d31b,_0x231dee(0xdf),null),_0x395373(_0xcf4101,_0x231dee(0xdf),_0x231dee(0xb4)));}else{if(_0x4d1b74<_0x7985d7){let _0x8df825=_0x4d1b74,_0x26d27c=_0x22d31b;for(;_0x8df825<_0x7985d7;){const _0x5ecd97=_0x26d27c[_0x231dee(0xbc)][_0x231dee(0xaf)](_0x22017c=>_0x5e75b6(_0x22017c));if(0x0===_0x5ecd97[_0x231dee(0xd2)])break;_0x8df825++,_0x26d27c=_0x5ecd97[_0x5ecd97[_0x231dee(0xd2)]-0x1];}_0x26d27c&&(_0x574581=_0x26d27c,_0x395373(_0x22d31b,_0x231dee(0xdf),null),_0x395373(_0x26d27c,_0x231dee(0xdf),_0x231dee(0xb4)));}}let _0x559fc6=_0x574581;for(;_0x559fc6;){for(;_0x559fc6[_0x231dee(0xbf)];)_0x559fc6=_0x559fc6[_0x231dee(0xbf)],_0x5e75b6(_0x559fc6)&&_0x395373(_0x559fc6,_0x231dee(0xdf),_0x231dee(0xb4));_0x559fc6=_0x559fc6[_0x231dee(0xbe)];}}[_0x13b85f(0xd3)](_0x45cde0){const _0x485aa2=_0x13b85f;return Boolean(_0x485aa2(0xe3)===_0x50b759(_0x45cde0,_0x485aa2(0xc4)));}[_0x13b85f(0xe8)](_0x16e8d9){const _0x43fe95=_0x13b85f;return Boolean((_0x50b759(_0x16e8d9,_0x43fe95(0xc4))||'')[_0x43fe95(0xd2)]>0x0&&_0x43fe95(0xe3)!==_0x50b759(_0x16e8d9,_0x43fe95(0xc4)));}[_0x13b85f(0xa9)](_0x34b9ed){const _0x3f05ec=_0x13b85f;return!!_0x34b9ed&&Boolean(_0x203ff4(_0x34b9ed)&&_0x10de9c(_0x34b9ed)[_0x3f05ec(0xe1)](/removed[\s*-]data-id="[^"]+"/));}[_0x13b85f(0xba)](_0x491af3){const _0x417df0=_0x13b85f;let _0xf7f752=_0x491af3[_0x417df0(0xbe)];for(;_0xf7f752;){if(_0x50b759(_0xf7f752,_0x417df0(0xaa)))return!0x0;_0xf7f752=_0xf7f752[_0x417df0(0xbe)];}return!0x1;}[_0x13b85f(0xc6)](_0x3f564e){const _0x3348a4=_0x13b85f;return Boolean(_0x203ff4(_0x3f564e)&&_0x10de9c(_0x3f564e)[_0x3348a4(0xe1)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b4fc2=_0xe8d9;(function(_0x28214b,_0x343a4f){const _0x5e4dc6=_0xe8d9,_0x14d38f=_0x28214b();while(!![]){try{const _0x8c55b0=parseInt(_0x5e4dc6(0x128))/0x1*(-parseInt(_0x5e4dc6(0x12b))/0x2)+-parseInt(_0x5e4dc6(0x123))/0x3+parseInt(_0x5e4dc6(0x122))/0x4*(-parseInt(_0x5e4dc6(0x11d))/0x5)+parseInt(_0x5e4dc6(0x12a))/0x6+-parseInt(_0x5e4dc6(0x11e))/0x7+parseInt(_0x5e4dc6(0x126))/0x8+parseInt(_0x5e4dc6(0x120))/0x9;if(_0x8c55b0===_0x343a4f)break;else _0x14d38f['push'](_0x14d38f['shift']());}catch(_0x1a64a9){_0x14d38f['push'](_0x14d38f['shift']());}}}(_0x56ea,0xcd122));function _0xe8d9(_0x3593d5,_0x3f962c){const _0x56eacc=_0x56ea();return _0xe8d9=function(_0xe8d91b,_0x4eecaa){_0xe8d91b=_0xe8d91b-0x11b;let _0x27edaf=_0x56eacc[_0xe8d91b];return _0x27edaf;},_0xe8d9(_0x3593d5,_0x3f962c);}import{ObservableMixin as _0x796ad4}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x23c3fa}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x5dc06f}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x796ad4(){[_0x5b4fc2(0x124)];constructor(){const _0x30047b=_0x5b4fc2;super(),this[_0x30047b(0x124)]=new _0x23c3fa();}[_0x5b4fc2(0x11c)](_0x36f669){const _0x5aace5=_0x5b4fc2,_0x1abf1a=this[_0x5aace5(0x124)][_0x5aace5(0x11f)](_0x36f669);return this[_0x5aace5(0x125)](_0x1abf1a);}[_0x5b4fc2(0x125)](_0xc69e26){const _0x517824=_0x5b4fc2;return this[_0x517824(0x11b)](_0xc69e26);}[_0x5b4fc2(0x11b)](_0x454ece){const _0x4b6a47=_0x5b4fc2,_0x5258cf=_0x454ece[_0x4b6a47(0x12c)](/^\t+/gm,'\x20')[_0x4b6a47(0x12c)](/\n*/g,'')[_0x4b6a47(0x12c)](/\s+/g,'\x20')[_0x4b6a47(0x12c)](/<[^>]*?$/g,''),_0x3995b8=_0x5dc06f(_0x4b6a47(0x129)+_0x5258cf+_0x4b6a47(0x121));return _0x3995b8[_0x4b6a47(0x127)]=_0x3995b8[_0x4b6a47(0x127)][0x0][_0x4b6a47(0x127)],_0x3995b8;}}function _0x56ea(){const _0x135253=['27574NhMRLH','replace','_parseHTML','convertMarkdownToHTML','170LKcbrb','5367726zjrKpu','parse','24363792xVoySH','</dummy>','138792quvtdC','4968825dvwQXT','_m2html','parseAndNormalizeHTML','7999880pIcRJl','children','21PsHqkr','<dummy>','6151494hSRViP'];_0x56ea=function(){return _0x135253;};return _0x56ea();}
23
+ const _0x49bdd=_0x5a61;(function(_0x554d76,_0x27c8af){const _0x336ef4=_0x5a61,_0x1c7f9a=_0x554d76();while(!![]){try{const _0x8bd07f=-parseInt(_0x336ef4(0x100))/0x1+parseInt(_0x336ef4(0x109))/0x2*(parseInt(_0x336ef4(0x10d))/0x3)+parseInt(_0x336ef4(0x103))/0x4+parseInt(_0x336ef4(0x106))/0x5+-parseInt(_0x336ef4(0x10c))/0x6+parseInt(_0x336ef4(0xfe))/0x7*(parseInt(_0x336ef4(0xfd))/0x8)+-parseInt(_0x336ef4(0x10a))/0x9;if(_0x8bd07f===_0x27c8af)break;else _0x1c7f9a['push'](_0x1c7f9a['shift']());}catch(_0x21487f){_0x1c7f9a['push'](_0x1c7f9a['shift']());}}}(_0x1321,0xc0892));function _0x1321(){const _0x1c3cfc=['_m2html','8546ClWpfX','18315234WxRSGk','convertMarkdownToHTML','1209222EFQhQL','1011horuZO','parse','536JrbUxs','108787TRgQzt','<dummy>','317712WbUfhK','_parseHTML','children','1191020NiGMoK','replace','</dummy>','2819490hRGwzW','parseAndNormalizeHTML'];_0x1321=function(){return _0x1c3cfc;};return _0x1321();}import{ObservableMixin as _0x157d69}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0xf9c7a1}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x5cdd4b}from'../utils/htmlparser.js';function _0x5a61(_0x3673d7,_0x376768){const _0x132134=_0x1321();return _0x5a61=function(_0x5a61f9,_0x35eacf){_0x5a61f9=_0x5a61f9-0xfc;let _0x8e5e79=_0x132134[_0x5a61f9];return _0x8e5e79;},_0x5a61(_0x3673d7,_0x376768);}export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x157d69(){[_0x49bdd(0x108)];constructor(){const _0xf8e3c4=_0x49bdd;super(),this[_0xf8e3c4(0x108)]=new _0xf9c7a1();}[_0x49bdd(0x10b)](_0x37f4b8){const _0x1dd253=_0x49bdd,_0x3d818f=this[_0x1dd253(0x108)][_0x1dd253(0xfc)](_0x37f4b8);return this[_0x1dd253(0x107)](_0x3d818f);}[_0x49bdd(0x107)](_0x448f9c){const _0x2d7a4a=_0x49bdd;return this[_0x2d7a4a(0x101)](_0x448f9c);}[_0x49bdd(0x101)](_0x27e323){const _0x47cabc=_0x49bdd,_0x27211e=_0x27e323[_0x47cabc(0x104)](/^\t+/gm,'\x20')[_0x47cabc(0x104)](/\n*/g,'')[_0x47cabc(0x104)](/\s+/g,'\x20')[_0x47cabc(0x104)](/<[^>]*?$/g,''),_0x319ea8=_0x5cdd4b(_0x47cabc(0xff)+_0x27211e+_0x47cabc(0x105));return _0x319ea8[_0x47cabc(0x102)]=_0x319ea8[_0x47cabc(0x102)][0x0][_0x47cabc(0x102)],_0x319ea8;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x547ae6,_0x4f9db5){var _0x1643b2=_0x1014,_0x167142=_0x547ae6();while(!![]){try{var _0x34e7fb=-parseInt(_0x1643b2(0x176))/0x1*(-parseInt(_0x1643b2(0x17c))/0x2)+-parseInt(_0x1643b2(0x17a))/0x3+-parseInt(_0x1643b2(0x178))/0x4+-parseInt(_0x1643b2(0x17b))/0x5+parseInt(_0x1643b2(0x174))/0x6+parseInt(_0x1643b2(0x175))/0x7*(-parseInt(_0x1643b2(0x17f))/0x8)+-parseInt(_0x1643b2(0x179))/0x9*(-parseInt(_0x1643b2(0x17d))/0xa);if(_0x34e7fb===_0x4f9db5)break;else _0x167142['push'](_0x167142['shift']());}catch(_0x5d3011){_0x167142['push'](_0x167142['shift']());}}}(_0x1343,0xe6c71));import{View as _0x2a24e2}from'ckeditor5/src/ui.js';function _0x1014(_0x1cf580,_0x5854cd){var _0x13433c=_0x1343();return _0x1014=function(_0x101428,_0x1d6081){_0x101428=_0x101428-0x174;var _0x2ddccf=_0x13433c[_0x101428];return _0x2ddccf;},_0x1014(_0x1cf580,_0x5854cd);}import{getTranslation as _0x13fc52}from'../../aicore/utils/common-translations.js';function _0x1343(){var _0x43a8be=['7552230hDJiVM','679boiwSf','21jLubgH','setTemplate','1025564yJvZmU','14690763JMQVsR','5226927urJhnh','3484275JmMtPz','79198PwCTNq','10bFxzDN','div','6744JqeGGw','ck-ai-disclaimer','AI_DISCLAIMER_TEXT','ck-ai-disclaimer__content'];_0x1343=function(){return _0x43a8be;};return _0x1343();}export class AIDisclaimerView extends _0x2a24e2{constructor(_0x36374d){var _0x24d7ad=_0x1014;super(_0x36374d),this[_0x24d7ad(0x177)]({'tag':_0x24d7ad(0x17e),'attributes':{'class':['ck',_0x24d7ad(0x180)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x24d7ad(0x182)]},'children':[{'text':_0x13fc52(_0x36374d,_0x24d7ad(0x181))}]}]});}}
23
+ function _0x51e6(_0x140b38,_0x358846){var _0x279c7c=_0x279c();return _0x51e6=function(_0x51e685,_0x29adfd){_0x51e685=_0x51e685-0xfd;var _0x895094=_0x279c7c[_0x51e685];return _0x895094;},_0x51e6(_0x140b38,_0x358846);}(function(_0x131971,_0x2ad75c){var _0xeda44d=_0x51e6,_0x312ddb=_0x131971();while(!![]){try{var _0x3d5903=parseInt(_0xeda44d(0x107))/0x1+parseInt(_0xeda44d(0x108))/0x2+-parseInt(_0xeda44d(0xfd))/0x3*(-parseInt(_0xeda44d(0x106))/0x4)+-parseInt(_0xeda44d(0xff))/0x5+-parseInt(_0xeda44d(0x109))/0x6+-parseInt(_0xeda44d(0x105))/0x7*(-parseInt(_0xeda44d(0xfe))/0x8)+-parseInt(_0xeda44d(0x102))/0x9;if(_0x3d5903===_0x2ad75c)break;else _0x312ddb['push'](_0x312ddb['shift']());}catch(_0x4d1703){_0x312ddb['push'](_0x312ddb['shift']());}}}(_0x279c,0x9669c));import{View as _0x8d7114}from'ckeditor5/src/ui.js';function _0x279c(){var _0x168d79=['ck-ai-disclaimer','9HSVawW','472WMNHbm','3341785emEaXS','AI_DISCLAIMER_TEXT','setTemplate','10333782DHYtOf','div','ck-ai-disclaimer__content','141274TrWlhh','1410052CwCoiv','199642aUFHsb','1144910bivmAV','3526362OrEeLd'];_0x279c=function(){return _0x168d79;};return _0x279c();}import{getTranslation as _0x2e28aa}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0x8d7114{constructor(_0x3271ec){var _0x5e4f37=_0x51e6;super(_0x3271ec),this[_0x5e4f37(0x101)]({'tag':_0x5e4f37(0x103),'attributes':{'class':['ck',_0x5e4f37(0x10a)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x5e4f37(0x104)]},'children':[{'text':_0x2e28aa(_0x3271ec,_0x5e4f37(0x100))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c9f2e=_0x4d15;(function(_0x23949b,_0x5ef818){const _0x2d1f83=_0x4d15,_0x27ae45=_0x23949b();while(!![]){try{const _0x2c8fd9=parseInt(_0x2d1f83(0x1ed))/0x1*(-parseInt(_0x2d1f83(0x1eb))/0x2)+parseInt(_0x2d1f83(0x1fe))/0x3+-parseInt(_0x2d1f83(0x1fb))/0x4*(-parseInt(_0x2d1f83(0x20d))/0x5)+-parseInt(_0x2d1f83(0x20c))/0x6*(-parseInt(_0x2d1f83(0x1f5))/0x7)+-parseInt(_0x2d1f83(0x201))/0x8*(-parseInt(_0x2d1f83(0x202))/0x9)+-parseInt(_0x2d1f83(0x205))/0xa+-parseInt(_0x2d1f83(0x20e))/0xb*(parseInt(_0x2d1f83(0x1ef))/0xc);if(_0x2c8fd9===_0x5ef818)break;else _0x27ae45['push'](_0x27ae45['shift']());}catch(_0x40f77c){_0x27ae45['push'](_0x27ae45['shift']());}}}(_0x1ec0,0x47232));function _0x1ec0(){const _0x116e66=['10062rozvzG','559210nHkWPG','9479602FSaUDS','44px','24px','div','ck-ai-skeleton__item','right','height','140px','2LNGRIS','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','17843cZsXJv','width:\x20','12DDCvAz','40px','align','setTemplate','72px','attributes','658TVUTYt','center','128px','fill','left','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','16hUSrWw','tag','100%','592641kjpAqq','_createSkeletonItems','map','695104KcBHLd','45HXYeEL','width',';\x20height:\x20','659900xMlmJl','150px','ck-ai-skeleton','class','250px','88px','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;'];_0x1ec0=function(){return _0x116e66;};return _0x1ec0();}import{View as _0x2e6a38}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x2e6a38{constructor(_0x43342b,_0x25eae8){const _0x553a14=_0x4d15;super(_0x43342b),this[_0x553a14(0x1f2)]({'tag':_0x553a14(0x1e6),'attributes':{'class':['ck',_0x553a14(0x207)]},'children':this[_0x553a14(0x1ff)](_0x25eae8)});}[_0x1c9f2e(0x1ff)](_0x778d49){const _0x233212=_0x1c9f2e,_0x4ba89c=['ck',_0x233212(0x1e7)];return _0x778d49[_0x233212(0x200)](_0x3a9a45=>{const _0x5b9edf=_0x233212;let _0x25f591='';switch(_0x3a9a45[_0x5b9edf(0x1f4)][_0x5b9edf(0x1f1)]){case _0x5b9edf(0x1e8):_0x25f591=_0x5b9edf(0x1fa);break;case _0x5b9edf(0x1f6):_0x25f591=_0x5b9edf(0x20b);break;case _0x5b9edf(0x1f9):_0x25f591=_0x5b9edf(0x1ec);}return{'tag':_0x3a9a45[_0x5b9edf(0x1fc)],'attributes':{'class':[..._0x4ba89c,_0x3a9a45[_0x5b9edf(0x1f4)][_0x5b9edf(0x208)]?_0x3a9a45[_0x5b9edf(0x1f4)][_0x5b9edf(0x208)]:''],'style':_0x5b9edf(0x1ee)+_0x3a9a45[_0x5b9edf(0x1f4)][_0x5b9edf(0x203)]+_0x5b9edf(0x204)+_0x3a9a45[_0x5b9edf(0x1f4)][_0x5b9edf(0x1e9)]+';'+_0x25f591}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x1c9f2e(0x1e6),'attributes':{'width':_0x1c9f2e(0x1fd),'height':_0x1c9f2e(0x1f3),'align':_0x1c9f2e(0x1e8)}},{'tag':_0x1c9f2e(0x1e6),'attributes':{'width':_0x1c9f2e(0x209),'height':_0x1c9f2e(0x1f0),'align':_0x1c9f2e(0x1e8)}},{'tag':_0x1c9f2e(0x1e6),'attributes':{'width':_0x1c9f2e(0x1fd),'height':_0x1c9f2e(0x20a),'align':_0x1c9f2e(0x1e8)}},{'tag':_0x1c9f2e(0x1e6),'attributes':{'width':_0x1c9f2e(0x206),'height':_0x1c9f2e(0x1f0),'align':_0x1c9f2e(0x1e8)}},{'tag':_0x1c9f2e(0x1e6),'attributes':{'width':_0x1c9f2e(0x1fd),'height':_0x1c9f2e(0x1ea),'align':_0x1c9f2e(0x1e8)}},{'tag':_0x1c9f2e(0x1e6),'attributes':{'width':_0x1c9f2e(0x209),'height':_0x1c9f2e(0x1f0),'align':_0x1c9f2e(0x1e8)}},{'tag':_0x1c9f2e(0x1e6),'attributes':{'width':_0x1c9f2e(0x1fd),'height':_0x1c9f2e(0x20a),'align':_0x1c9f2e(0x1e8)}}],'aiHistory':ta(0x5,_0x1c9f2e(0x1fd),_0x1c9f2e(0x20f),_0x1c9f2e(0x1e8)),'aiChatResources':ta(0x8,_0x1c9f2e(0x1fd),_0x1c9f2e(0x1e5),_0x1c9f2e(0x1e8)),'aiReviewChecks':[{'tag':_0x1c9f2e(0x1e6),'attributes':{'width':_0x1c9f2e(0x1f7),'height':_0x1c9f2e(0x1e5),'align':_0x1c9f2e(0x1f9)}},{'tag':_0x1c9f2e(0x1e6),'attributes':{'width':_0x1c9f2e(0x1fd),'height':_0x1c9f2e(0x1e5),'align':_0x1c9f2e(0x1f9)}},{'tag':_0x1c9f2e(0x1e6),'attributes':{'width':_0x1c9f2e(0x1f7),'height':_0x1c9f2e(0x1e5),'align':_0x1c9f2e(0x1f9)}}]};function _0x4d15(_0x3bde9f,_0x595ca2){const _0x1ec005=_0x1ec0();return _0x4d15=function(_0x4d15ea,_0x2bf33c){_0x4d15ea=_0x4d15ea-0x1e5;let _0x184544=_0x1ec005[_0x4d15ea];return _0x184544;},_0x4d15(_0x3bde9f,_0x595ca2);}function ta(_0x37ae16,_0x5873e9,_0x27d500,_0x529bed){const _0x282a01=_0x1c9f2e;return new Array(_0x37ae16)[_0x282a01(0x1f8)](null)[_0x282a01(0x200)](()=>({'tag':_0x282a01(0x1e6),'attributes':{'width':_0x5873e9,'height':_0x27d500,'align':_0x529bed}}));}
23
+ const _0xf9750e=_0x4449;function _0x1517(){const _0x43434b=['fill','align','ck-ai-skeleton','2411632QIMedw','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','128px',';\x20height:\x20','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','left','44BFpwkE','setTemplate','5765ctyjHW','ck-ai-skeleton__item','100%','7731333okefuu','3676PzbrxI','width','3499916TQjgFs','height','right','24px','150px','6780364AzUEEM','width:\x20','250px','center','88px','10CsrbNv','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','tag','div','class','1002564udQCHT','71zpNqml','44px','72px','5838IfVwcX','3seGyJQ','_createSkeletonItems','map','40px','140px','attributes'];_0x1517=function(){return _0x43434b;};return _0x1517();}(function(_0x4e40ae,_0x1fc0e0){const _0xed5c7c=_0x4449,_0x101731=_0x4e40ae();while(!![]){try{const _0x3cbc3c=-parseInt(_0xed5c7c(0x15a))/0x1*(-parseInt(_0xed5c7c(0x148))/0x2)+-parseInt(_0xed5c7c(0x133))/0x3*(parseInt(_0xed5c7c(0x14f))/0x4)+-parseInt(_0xed5c7c(0x144))/0x5*(-parseInt(_0xed5c7c(0x132))/0x6)+parseInt(_0xed5c7c(0x14a))/0x7+-parseInt(_0xed5c7c(0x13c))/0x8+-parseInt(_0xed5c7c(0x147))/0x9*(-parseInt(_0xed5c7c(0x154))/0xa)+-parseInt(_0xed5c7c(0x142))/0xb*(-parseInt(_0xed5c7c(0x159))/0xc);if(_0x3cbc3c===_0x1fc0e0)break;else _0x101731['push'](_0x101731['shift']());}catch(_0x17a859){_0x101731['push'](_0x101731['shift']());}}}(_0x1517,0xe7b2b));import{View as _0xb54125}from'ckeditor5/src/ui.js';function _0x4449(_0x38619d,_0x16baaf){const _0x15178a=_0x1517();return _0x4449=function(_0x44499e,_0x2d365e){_0x44499e=_0x44499e-0x132;let _0x2ce47c=_0x15178a[_0x44499e];return _0x2ce47c;},_0x4449(_0x38619d,_0x16baaf);}export class AISkeletonView extends _0xb54125{constructor(_0x4ce68f,_0x5315d3){const _0x5608f1=_0x4449;super(_0x4ce68f),this[_0x5608f1(0x143)]({'tag':_0x5608f1(0x157),'attributes':{'class':['ck',_0x5608f1(0x13b)]},'children':this[_0x5608f1(0x134)](_0x5315d3)});}[_0xf9750e(0x134)](_0xf98b14){const _0x1db602=_0xf9750e,_0x3a4f68=['ck',_0x1db602(0x145)];return _0xf98b14[_0x1db602(0x135)](_0x384bb1=>{const _0x882633=_0x1db602;let _0x1367bb='';switch(_0x384bb1[_0x882633(0x138)][_0x882633(0x13a)]){case _0x882633(0x14c):_0x1367bb=_0x882633(0x13d);break;case _0x882633(0x152):_0x1367bb=_0x882633(0x155);break;case _0x882633(0x141):_0x1367bb=_0x882633(0x140);}return{'tag':_0x384bb1[_0x882633(0x156)],'attributes':{'class':[..._0x3a4f68,_0x384bb1[_0x882633(0x138)][_0x882633(0x158)]?_0x384bb1[_0x882633(0x138)][_0x882633(0x158)]:''],'style':_0x882633(0x150)+_0x384bb1[_0x882633(0x138)][_0x882633(0x149)]+_0x882633(0x13f)+_0x384bb1[_0x882633(0x138)][_0x882633(0x14b)]+';'+_0x1367bb}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0xf9750e(0x157),'attributes':{'width':_0xf9750e(0x146),'height':_0xf9750e(0x15c),'align':_0xf9750e(0x14c)}},{'tag':_0xf9750e(0x157),'attributes':{'width':_0xf9750e(0x151),'height':_0xf9750e(0x136),'align':_0xf9750e(0x14c)}},{'tag':_0xf9750e(0x157),'attributes':{'width':_0xf9750e(0x146),'height':_0xf9750e(0x153),'align':_0xf9750e(0x14c)}},{'tag':_0xf9750e(0x157),'attributes':{'width':_0xf9750e(0x14e),'height':_0xf9750e(0x136),'align':_0xf9750e(0x14c)}},{'tag':_0xf9750e(0x157),'attributes':{'width':_0xf9750e(0x146),'height':_0xf9750e(0x137),'align':_0xf9750e(0x14c)}},{'tag':_0xf9750e(0x157),'attributes':{'width':_0xf9750e(0x151),'height':_0xf9750e(0x136),'align':_0xf9750e(0x14c)}},{'tag':_0xf9750e(0x157),'attributes':{'width':_0xf9750e(0x146),'height':_0xf9750e(0x153),'align':_0xf9750e(0x14c)}}],'aiHistory':ta(0x5,_0xf9750e(0x146),_0xf9750e(0x15b),_0xf9750e(0x14c)),'aiChatResources':ta(0x8,_0xf9750e(0x146),_0xf9750e(0x14d),_0xf9750e(0x14c)),'aiReviewChecks':[{'tag':_0xf9750e(0x157),'attributes':{'width':_0xf9750e(0x13e),'height':_0xf9750e(0x14d),'align':_0xf9750e(0x141)}},{'tag':_0xf9750e(0x157),'attributes':{'width':_0xf9750e(0x146),'height':_0xf9750e(0x14d),'align':_0xf9750e(0x141)}},{'tag':_0xf9750e(0x157),'attributes':{'width':_0xf9750e(0x13e),'height':_0xf9750e(0x14d),'align':_0xf9750e(0x141)}}]};function ta(_0x26556f,_0x1d2a1e,_0x4adf6e,_0x1fcbe3){const _0x4553f3=_0xf9750e;return new Array(_0x26556f)[_0x4553f3(0x139)](null)[_0x4553f3(0x135)](()=>({'tag':_0x4553f3(0x157),'attributes':{'width':_0x1d2a1e,'height':_0x4adf6e,'align':_0x1fcbe3}}));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x40b8(){const _0x56abdf=['1647416yQyRRF','ck-ai-spinner','38103TUZAdo','332328vljrHp','ck-ai-spinner_','2399772Zwxjzk','18yrlLxy','1975215QlySca','759772NBQPtR','10Tdsnct','7NLMwBe','extendTemplate','120668TvKAme','span','20uykmXZ'];_0x40b8=function(){return _0x56abdf;};return _0x40b8();}(function(_0xac4b49,_0x5e516a){const _0x42aa46=_0x278f,_0xe056a0=_0xac4b49();while(!![]){try{const _0x28afda=parseInt(_0x42aa46(0x72))/0x1+parseInt(_0x42aa46(0x78))/0x2+parseInt(_0x42aa46(0x73))/0x3+-parseInt(_0x42aa46(0x7c))/0x4*(parseInt(_0x42aa46(0x7e))/0x5)+parseInt(_0x42aa46(0x75))/0x6*(parseInt(_0x42aa46(0x7a))/0x7)+parseInt(_0x42aa46(0x7f))/0x8*(-parseInt(_0x42aa46(0x76))/0x9)+parseInt(_0x42aa46(0x79))/0xa*(-parseInt(_0x42aa46(0x77))/0xb);if(_0x28afda===_0x5e516a)break;else _0xe056a0['push'](_0xe056a0['shift']());}catch(_0x5bfea4){_0xe056a0['push'](_0xe056a0['shift']());}}}(_0x40b8,0x34e40));import{SpinnerView as _0x4a4a52}from'ckeditor5/src/ui.js';function _0x278f(_0x5bf699,_0x42f0ca){const _0x40b8d3=_0x40b8();return _0x278f=function(_0x278f26,_0x5645d1){_0x278f26=_0x278f26-0x72;let _0x5c4960=_0x40b8d3[_0x278f26];return _0x5c4960;},_0x278f(_0x5bf699,_0x42f0ca);}export class AISpinnerView extends _0x4a4a52{constructor(_0x456fd2=void 0x0){const _0x49a543=_0x278f;super();const _0x3718a9=_0x456fd2?_0x49a543(0x74)+_0x456fd2:'';this[_0x49a543(0x7b)]({'tag':_0x49a543(0x7d),'attributes':{'class':[_0x49a543(0x80),_0x3718a9]}});}}
23
+ (function(_0x961dcc,_0x4588ab){const _0x31402e=_0x5116,_0x4b85ba=_0x961dcc();while(!![]){try{const _0x5810c0=-parseInt(_0x31402e(0xc0))/0x1+-parseInt(_0x31402e(0xb8))/0x2*(parseInt(_0x31402e(0xb6))/0x3)+-parseInt(_0x31402e(0xb3))/0x4+-parseInt(_0x31402e(0xbe))/0x5*(parseInt(_0x31402e(0xbb))/0x6)+-parseInt(_0x31402e(0xbf))/0x7*(parseInt(_0x31402e(0xbc))/0x8)+-parseInt(_0x31402e(0xb7))/0x9*(parseInt(_0x31402e(0xb2))/0xa)+parseInt(_0x31402e(0xb4))/0xb*(parseInt(_0x31402e(0xb5))/0xc);if(_0x5810c0===_0x4588ab)break;else _0x4b85ba['push'](_0x4b85ba['shift']());}catch(_0x449a7f){_0x4b85ba['push'](_0x4b85ba['shift']());}}}(_0x3a8d,0x9f1f2));function _0x3a8d(){const _0x270cdb=['extendTemplate','20QQiONV','1181502AwjfeA','400865zKAGdF','ck-ai-spinner_','1780yWXZuP','1486460tuyoqL','70730AOlTSv','8184AAcxmq','44106OSXMRq','62433RHQjpU','94XLwOWt','ck-ai-spinner','span','1299678ioCRga','8MbZJBR'];_0x3a8d=function(){return _0x270cdb;};return _0x3a8d();}function _0x5116(_0x180b97,_0x5b0acf){const _0x3a8d23=_0x3a8d();return _0x5116=function(_0x511693,_0x42ec19){_0x511693=_0x511693-0xb2;let _0x2d7ef3=_0x3a8d23[_0x511693];return _0x2d7ef3;},_0x5116(_0x180b97,_0x5b0acf);}import{SpinnerView as _0x19455c}from'ckeditor5/src/ui.js';export class AISpinnerView extends _0x19455c{constructor(_0x50dbd0=void 0x0){const _0x1eb220=_0x5116;super();const _0x1c02a4=_0x50dbd0?_0x1eb220(0xc1)+_0x50dbd0:'';this[_0x1eb220(0xbd)]({'tag':_0x1eb220(0xba),'attributes':{'class':[_0x1eb220(0xb9),_0x1c02a4]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2e1923=_0x6809;(function(_0x2649ec,_0x26395d){const _0x4532bf=_0x6809,_0x26697b=_0x2649ec();while(!![]){try{const _0x23af27=parseInt(_0x4532bf(0x1e9))/0x1*(-parseInt(_0x4532bf(0x1ba))/0x2)+parseInt(_0x4532bf(0x1c2))/0x3+-parseInt(_0x4532bf(0x1d8))/0x4*(-parseInt(_0x4532bf(0x1cf))/0x5)+-parseInt(_0x4532bf(0x1e7))/0x6+-parseInt(_0x4532bf(0x1e2))/0x7+-parseInt(_0x4532bf(0x1c0))/0x8*(-parseInt(_0x4532bf(0x1c4))/0x9)+parseInt(_0x4532bf(0x1b9))/0xa;if(_0x23af27===_0x26395d)break;else _0x26697b['push'](_0x26697b['shift']());}catch(_0x3fe41d){_0x26697b['push'](_0x26697b['shift']());}}}(_0x3fa7,0xe661d));function _0x3fa7(){const _0x440162=['729012caLClU','bind','207yVvStl','copyButton','AI_MINI_TOOLBAR_LIKE','set','_setupShowChangesButton','toggleShowChanges','length','dislikeButton','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','isShowChangesOn','ck-ai-mini-toolbar-copy-button__check-mark','50GHBuVr','_config','addMany','toggleShowChangesEnabled','showDislike','showChangesButton','add','showLike','items','685780deBPby','like','_setupRatingButtons','ck-ai-mini-toolbar\x20ck-hidden','dislike','customView','fire','isOn','icon','showCopy','11618215DBbZnl','ck-ai-mini-toolbar-copy-button','likeButton','class','AI_MINI_TOOLBAR_COPY','10250160rhqcYt','_setupCopyButton','3COhrRB','showChanges','ck-ai-mini-toolbar','isEnabled','locale','23699350gfuyve','834194szDoxW','children','AI_SUGGESTION_BUTTON_SHOW_CHANGES','execute','full','extendTemplate','429792GfjBmo','AI_MINI_TOOLBAR_DISLIKE'];_0x3fa7=function(){return _0x440162;};return _0x3fa7();}import{ButtonView as _0x40506d,IconView as _0x567306,ToolbarView as _0x5c9aab}from'ckeditor5/src/ui.js';import{IconCheck as _0xde6d79,IconCopy as _0x537335,IconShowChangesOff as _0x2bc693,IconShowChangesOn as _0x494fde,IconThumbDown as _0x49bd6a,IconThumbUp as _0x53a3b7}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1cab3a}from'../../utils/common-translations.js';function _0x6809(_0xa2550,_0x55db84){const _0x3fa78d=_0x3fa7();return _0x6809=function(_0x680966,_0x26d0c8){_0x680966=_0x680966-0x1b5;let _0x14b98c=_0x3fa78d[_0x680966];return _0x14b98c;},_0x6809(_0xa2550,_0x55db84);}export class AIMiniToolbarView extends _0x5c9aab{[_0x2e1923(0x1c5)];[_0x2e1923(0x1e4)];[_0x2e1923(0x1cb)];[_0x2e1923(0x1d4)];[_0x2e1923(0x1d0)];constructor(_0x497c9d,_0xffe32d={}){const _0x1033e7=_0x2e1923;super(_0x497c9d),this[_0x1033e7(0x1c7)](_0x1033e7(0x1b7),!0x0),this[_0x1033e7(0x1c7)](_0x1033e7(0x1cd),!0x1),this[_0x1033e7(0x1d0)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0xffe32d};const _0x38cfc5=!(this[_0x1033e7(0x1d0)][_0x1033e7(0x1e1)]||this[_0x1033e7(0x1d0)][_0x1033e7(0x1b5)]||this[_0x1033e7(0x1d0)][_0x1033e7(0x1d6)]||this[_0x1033e7(0x1d0)][_0x1033e7(0x1d3)]||this[_0x1033e7(0x1d0)][_0x1033e7(0x1dd)]?.[_0x1033e7(0x1ca)]);this[_0x1033e7(0x1e5)]=_0x38cfc5?_0x1033e7(0x1db):_0x1033e7(0x1b6),this[_0x1033e7(0x1d0)][_0x1033e7(0x1e1)]&&(this[_0x1033e7(0x1e8)](),this[_0x1033e7(0x1d7)][_0x1033e7(0x1d5)](this[_0x1033e7(0x1c5)])),this[_0x1033e7(0x1d0)][_0x1033e7(0x1b5)]&&(this[_0x1033e7(0x1c8)](),this[_0x1033e7(0x1d7)][_0x1033e7(0x1d5)](this[_0x1033e7(0x1d4)])),this[_0x1033e7(0x1da)](),this[_0x1033e7(0x1d0)][_0x1033e7(0x1d6)]&&this[_0x1033e7(0x1d7)][_0x1033e7(0x1d5)](this[_0x1033e7(0x1e4)]),this[_0x1033e7(0x1d0)][_0x1033e7(0x1d3)]&&this[_0x1033e7(0x1d7)][_0x1033e7(0x1d5)](this[_0x1033e7(0x1cb)]),this[_0x1033e7(0x1d0)][_0x1033e7(0x1dd)]&&this[_0x1033e7(0x1d7)][_0x1033e7(0x1d1)](this[_0x1033e7(0x1d0)][_0x1033e7(0x1dd)]);}[_0x2e1923(0x1d2)](_0x544f53){const _0x5806a2=_0x2e1923;this[_0x5806a2(0x1d4)][_0x5806a2(0x1b7)]=_0x544f53;}[_0x2e1923(0x1da)](){const _0x2e8924=_0x2e1923;this[_0x2e8924(0x1e4)]=new _0x40506d(this[_0x2e8924(0x1b8)]),this[_0x2e8924(0x1e4)][_0x2e8924(0x1c7)]({'icon':_0x53a3b7,'label':_0x1cab3a(this[_0x2e8924(0x1b8)],_0x2e8924(0x1c6)),'tooltip':!0x0}),this[_0x2e8924(0x1e4)][_0x2e8924(0x1c3)](_0x2e8924(0x1b7))['to'](this),this[_0x2e8924(0x1e4)]['on'](_0x2e8924(0x1bd),()=>{const _0x5ac200=_0x2e8924;this[_0x5ac200(0x1de)](_0x5ac200(0x1d9));}),this[_0x2e8924(0x1cb)]=new _0x40506d(this[_0x2e8924(0x1b8)]),this[_0x2e8924(0x1cb)][_0x2e8924(0x1c7)]({'icon':_0x49bd6a,'label':_0x1cab3a(this[_0x2e8924(0x1b8)],_0x2e8924(0x1c1)),'tooltip':!0x0}),this[_0x2e8924(0x1cb)][_0x2e8924(0x1c3)](_0x2e8924(0x1b7))['to'](this),this[_0x2e8924(0x1cb)]['on'](_0x2e8924(0x1bd),()=>{const _0x141252=_0x2e8924;this[_0x141252(0x1de)](_0x141252(0x1dc));});}[_0x2e1923(0x1e8)](){const _0x3f0b1e=_0x2e1923;this[_0x3f0b1e(0x1c5)]=new _0x40506d(this[_0x3f0b1e(0x1b8)]),this[_0x3f0b1e(0x1c5)][_0x3f0b1e(0x1c7)]({'icon':_0x537335,'label':_0x1cab3a(this[_0x3f0b1e(0x1b8)],_0x3f0b1e(0x1e6)),'class':_0x3f0b1e(0x1e3),'tooltip':!0x0}),this[_0x3f0b1e(0x1c5)][_0x3f0b1e(0x1c3)](_0x3f0b1e(0x1b7))['to'](this);const _0x3ace61=new _0x567306();_0x3ace61[_0x3f0b1e(0x1c7)]({'content':_0xde6d79}),_0x3ace61[_0x3f0b1e(0x1bf)]({'attributes':{'class':[_0x3f0b1e(0x1ce)]}}),this[_0x3f0b1e(0x1c5)]['on'](_0x3f0b1e(0x1bd),()=>{const _0xca7b5c=_0x3f0b1e;this[_0xca7b5c(0x1c5)][_0xca7b5c(0x1e5)]=_0xca7b5c(0x1cc),setTimeout(()=>{const _0x14b3e8=_0xca7b5c;this[_0x14b3e8(0x1c5)][_0x14b3e8(0x1e5)]=_0x14b3e8(0x1e3);},0x7d0);}),this[_0x3f0b1e(0x1c5)][_0x3f0b1e(0x1bb)][_0x3f0b1e(0x1d5)](_0x3ace61);}[_0x2e1923(0x1c8)](){const _0x17bbb3=_0x2e1923;this[_0x17bbb3(0x1d4)]=new _0x40506d(this[_0x17bbb3(0x1b8)]),this[_0x17bbb3(0x1d4)][_0x17bbb3(0x1c7)]({'icon':_0x2bc693,'label':_0x1cab3a(this[_0x17bbb3(0x1b8)],_0x17bbb3(0x1bc)),'withText':_0x17bbb3(0x1be)==this[_0x17bbb3(0x1d0)][_0x17bbb3(0x1b5)],'tooltip':_0x17bbb3(0x1be)!=this[_0x17bbb3(0x1d0)][_0x17bbb3(0x1b5)]}),this[_0x17bbb3(0x1d4)][_0x17bbb3(0x1c3)](_0x17bbb3(0x1df))['to'](this,_0x17bbb3(0x1cd)),this[_0x17bbb3(0x1d4)][_0x17bbb3(0x1c3)](_0x17bbb3(0x1b7))['to'](this),this[_0x17bbb3(0x1d4)][_0x17bbb3(0x1c3)](_0x17bbb3(0x1e0))['to'](this,_0x17bbb3(0x1cd),_0x24e65a=>_0x24e65a?_0x494fde:_0x2bc693),this[_0x17bbb3(0x1d4)]['on'](_0x17bbb3(0x1bd),()=>{const _0x4d4971=_0x17bbb3;this[_0x4d4971(0x1de)](_0x4d4971(0x1c9));});}}
23
+ const _0x58f588=_0x309c;(function(_0x579218,_0x132fdd){const _0x1c74bb=_0x309c,_0x236455=_0x579218();while(!![]){try{const _0x59724d=parseInt(_0x1c74bb(0x13a))/0x1+-parseInt(_0x1c74bb(0x12e))/0x2*(-parseInt(_0x1c74bb(0x133))/0x3)+parseInt(_0x1c74bb(0x134))/0x4+-parseInt(_0x1c74bb(0x136))/0x5+parseInt(_0x1c74bb(0x146))/0x6+parseInt(_0x1c74bb(0x140))/0x7+parseInt(_0x1c74bb(0x125))/0x8*(-parseInt(_0x1c74bb(0x13d))/0x9);if(_0x59724d===_0x132fdd)break;else _0x236455['push'](_0x236455['shift']());}catch(_0x2859a9){_0x236455['push'](_0x236455['shift']());}}}(_0x464d,0xb27ff));import{ButtonView as _0x512cf0,IconView as _0xeb8c9f,ToolbarView as _0x3308b7}from'ckeditor5/src/ui.js';import{IconCheck as _0x3ecdab,IconCopy as _0x5353af,IconShowChangesOff as _0x38108f,IconShowChangesOn as _0x32e881,IconThumbDown as _0x2ad207,IconThumbUp as _0x39788f}from'@ckeditor/ckeditor5-icons';function _0x464d(){const _0x42b395=['copyButton','customView','extendTemplate','showChangesButton','_config','ck-ai-mini-toolbar\x20ck-hidden','22125864sMztpQ','bind','class','isEnabled','ck-ai-mini-toolbar-copy-button__check-mark','toggleShowChangesEnabled','children','isOn','ck-ai-mini-toolbar','91292HGxpti','execute','locale','full','showLike','30grOdDA','2067168nFUgAH','AI_MINI_TOOLBAR_DISLIKE','1803320aRzKtb','likeButton','items','like','616336XkdxId','AI_MINI_TOOLBAR_LIKE','showCopy','9nShkWw','_setupRatingButtons','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','6803531ohQAul','_setupShowChangesButton','dislikeButton','isShowChangesOn','addMany','fire','7776066BfvaqT','ck-ai-mini-toolbar-copy-button','showDislike','AI_MINI_TOOLBAR_COPY','dislike','icon','_setupCopyButton','AI_SUGGESTION_BUTTON_SHOW_CHANGES','add','length','toggleShowChanges','set','ck-ai-button-tertiary','showChanges'];_0x464d=function(){return _0x42b395;};return _0x464d();}function _0x309c(_0x417d6f,_0x30c54c){const _0x464d28=_0x464d();return _0x309c=function(_0x309cae,_0x396ae1){_0x309cae=_0x309cae-0x125;let _0x389815=_0x464d28[_0x309cae];return _0x389815;},_0x309c(_0x417d6f,_0x30c54c);}import{getTranslation as _0x39e67e}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x3308b7{[_0x58f588(0x154)];[_0x58f588(0x137)];[_0x58f588(0x142)];[_0x58f588(0x157)];[_0x58f588(0x158)];constructor(_0x22d285,_0x51978e={}){const _0xf9dae5=_0x58f588;super(_0x22d285),this[_0xf9dae5(0x151)](_0xf9dae5(0x128),!0x0),this[_0xf9dae5(0x151)](_0xf9dae5(0x143),!0x1),this[_0xf9dae5(0x158)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x51978e};const _0x2cad24=!(this[_0xf9dae5(0x158)][_0xf9dae5(0x13c)]||this[_0xf9dae5(0x158)][_0xf9dae5(0x153)]||this[_0xf9dae5(0x158)][_0xf9dae5(0x132)]||this[_0xf9dae5(0x158)][_0xf9dae5(0x148)]||this[_0xf9dae5(0x158)][_0xf9dae5(0x155)]?.[_0xf9dae5(0x14f)]);this[_0xf9dae5(0x127)]=_0x2cad24?_0xf9dae5(0x159):_0xf9dae5(0x12d),this[_0xf9dae5(0x158)][_0xf9dae5(0x13c)]&&(this[_0xf9dae5(0x14c)](),this[_0xf9dae5(0x138)][_0xf9dae5(0x14e)](this[_0xf9dae5(0x154)])),this[_0xf9dae5(0x158)][_0xf9dae5(0x153)]&&(this[_0xf9dae5(0x141)](),this[_0xf9dae5(0x138)][_0xf9dae5(0x14e)](this[_0xf9dae5(0x157)])),this[_0xf9dae5(0x13e)](),this[_0xf9dae5(0x158)][_0xf9dae5(0x132)]&&this[_0xf9dae5(0x138)][_0xf9dae5(0x14e)](this[_0xf9dae5(0x137)]),this[_0xf9dae5(0x158)][_0xf9dae5(0x148)]&&this[_0xf9dae5(0x138)][_0xf9dae5(0x14e)](this[_0xf9dae5(0x142)]),this[_0xf9dae5(0x158)][_0xf9dae5(0x155)]&&this[_0xf9dae5(0x138)][_0xf9dae5(0x144)](this[_0xf9dae5(0x158)][_0xf9dae5(0x155)]);}[_0x58f588(0x12a)](_0x47e045){const _0x363b7a=_0x58f588;this[_0x363b7a(0x157)][_0x363b7a(0x128)]=_0x47e045;}[_0x58f588(0x13e)](){const _0x52dfd2=_0x58f588;this[_0x52dfd2(0x137)]=new _0x512cf0(this[_0x52dfd2(0x130)]),this[_0x52dfd2(0x137)][_0x52dfd2(0x151)]({'icon':_0x39788f,'label':_0x39e67e(this[_0x52dfd2(0x130)],_0x52dfd2(0x13b)),'tooltip':!0x0}),this[_0x52dfd2(0x137)][_0x52dfd2(0x126)](_0x52dfd2(0x128))['to'](this),this[_0x52dfd2(0x137)]['on'](_0x52dfd2(0x12f),()=>{const _0x14b332=_0x52dfd2;this[_0x14b332(0x145)](_0x14b332(0x139));}),this[_0x52dfd2(0x142)]=new _0x512cf0(this[_0x52dfd2(0x130)]),this[_0x52dfd2(0x142)][_0x52dfd2(0x151)]({'icon':_0x2ad207,'label':_0x39e67e(this[_0x52dfd2(0x130)],_0x52dfd2(0x135)),'tooltip':!0x0}),this[_0x52dfd2(0x142)][_0x52dfd2(0x126)](_0x52dfd2(0x128))['to'](this),this[_0x52dfd2(0x142)]['on'](_0x52dfd2(0x12f),()=>{const _0x55d2ac=_0x52dfd2;this[_0x55d2ac(0x145)](_0x55d2ac(0x14a));});}[_0x58f588(0x14c)](){const _0x16281a=_0x58f588;this[_0x16281a(0x154)]=new _0x512cf0(this[_0x16281a(0x130)]),this[_0x16281a(0x154)][_0x16281a(0x151)]({'icon':_0x5353af,'label':_0x39e67e(this[_0x16281a(0x130)],_0x16281a(0x149)),'class':_0x16281a(0x147),'tooltip':!0x0}),this[_0x16281a(0x154)][_0x16281a(0x126)](_0x16281a(0x128))['to'](this);const _0x2f586f=new _0xeb8c9f();_0x2f586f[_0x16281a(0x151)]({'content':_0x3ecdab}),_0x2f586f[_0x16281a(0x156)]({'attributes':{'class':[_0x16281a(0x129)]}}),this[_0x16281a(0x154)]['on'](_0x16281a(0x12f),()=>{const _0x4876c6=_0x16281a;this[_0x4876c6(0x154)][_0x4876c6(0x127)]=_0x4876c6(0x13f),setTimeout(()=>{const _0x47de30=_0x4876c6;this[_0x47de30(0x154)][_0x47de30(0x127)]=_0x47de30(0x147);},0x7d0);}),this[_0x16281a(0x154)][_0x16281a(0x12b)][_0x16281a(0x14e)](_0x2f586f);}[_0x58f588(0x141)](){const _0x1858b7=_0x58f588;this[_0x1858b7(0x157)]=new _0x512cf0(this[_0x1858b7(0x130)]),this[_0x1858b7(0x157)][_0x1858b7(0x151)]({'icon':_0x38108f,'label':_0x39e67e(this[_0x1858b7(0x130)],_0x1858b7(0x14d)),'withText':_0x1858b7(0x131)==this[_0x1858b7(0x158)][_0x1858b7(0x153)],'tooltip':_0x1858b7(0x131)!=this[_0x1858b7(0x158)][_0x1858b7(0x153)],'class':_0x1858b7(0x152)}),this[_0x1858b7(0x157)][_0x1858b7(0x126)](_0x1858b7(0x12c))['to'](this,_0x1858b7(0x143)),this[_0x1858b7(0x157)][_0x1858b7(0x126)](_0x1858b7(0x128))['to'](this),this[_0x1858b7(0x157)][_0x1858b7(0x126)](_0x1858b7(0x14b))['to'](this,_0x1858b7(0x143),_0x427a55=>_0x427a55?_0x32e881:_0x38108f),this[_0x1858b7(0x157)]['on'](_0x1858b7(0x12f),()=>{const _0x5eda86=_0x1858b7;this[_0x5eda86(0x145)](_0x5eda86(0x150));});}}