@ckeditor/ckeditor5-ai 47.3.0-alpha.7 → 47.4.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 (701) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/ai.js +3 -3
  4. package/build/translations/af.js +1 -1
  5. package/build/translations/ar.js +1 -1
  6. package/build/translations/ast.js +1 -1
  7. package/build/translations/az.js +1 -1
  8. package/build/translations/be.js +1 -1
  9. package/build/translations/bg.js +1 -1
  10. package/build/translations/bn.js +1 -1
  11. package/build/translations/bs.js +1 -1
  12. package/build/translations/ca.js +1 -1
  13. package/build/translations/cs.js +1 -1
  14. package/build/translations/da.js +1 -1
  15. package/build/translations/de-ch.js +1 -1
  16. package/build/translations/de.js +1 -1
  17. package/build/translations/el.js +1 -1
  18. package/build/translations/en-au.js +1 -1
  19. package/build/translations/en-gb.js +1 -1
  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-content.css +1 -1
  77. package/dist/index-editor.css +67 -4
  78. package/dist/index.css +117 -54
  79. package/dist/index.js +6 -6
  80. package/dist/translations/af.d.ts +1 -1
  81. package/dist/translations/af.js +2 -2
  82. package/dist/translations/af.umd.js +2 -2
  83. package/dist/translations/ar.d.ts +1 -1
  84. package/dist/translations/ar.js +2 -2
  85. package/dist/translations/ar.umd.js +2 -2
  86. package/dist/translations/ast.d.ts +1 -1
  87. package/dist/translations/ast.js +2 -2
  88. package/dist/translations/ast.umd.js +2 -2
  89. package/dist/translations/az.d.ts +1 -1
  90. package/dist/translations/az.js +2 -2
  91. package/dist/translations/az.umd.js +2 -2
  92. package/dist/translations/be.d.ts +1 -1
  93. package/dist/translations/be.js +2 -2
  94. package/dist/translations/be.umd.js +2 -2
  95. package/dist/translations/bg.d.ts +1 -1
  96. package/dist/translations/bg.js +2 -2
  97. package/dist/translations/bg.umd.js +2 -2
  98. package/dist/translations/bn.d.ts +1 -1
  99. package/dist/translations/bn.js +2 -2
  100. package/dist/translations/bn.umd.js +2 -2
  101. package/dist/translations/bs.d.ts +1 -1
  102. package/dist/translations/bs.js +2 -2
  103. package/dist/translations/bs.umd.js +2 -2
  104. package/dist/translations/ca.d.ts +1 -1
  105. package/dist/translations/ca.js +2 -2
  106. package/dist/translations/ca.umd.js +2 -2
  107. package/dist/translations/cs.d.ts +1 -1
  108. package/dist/translations/cs.js +2 -2
  109. package/dist/translations/cs.umd.js +2 -2
  110. package/dist/translations/da.d.ts +1 -1
  111. package/dist/translations/da.js +2 -2
  112. package/dist/translations/da.umd.js +2 -2
  113. package/dist/translations/de-ch.d.ts +1 -1
  114. package/dist/translations/de-ch.js +2 -2
  115. package/dist/translations/de-ch.umd.js +2 -2
  116. package/dist/translations/de.d.ts +1 -1
  117. package/dist/translations/de.js +2 -2
  118. package/dist/translations/de.umd.js +2 -2
  119. package/dist/translations/el.d.ts +1 -1
  120. package/dist/translations/el.js +2 -2
  121. package/dist/translations/el.umd.js +2 -2
  122. package/dist/translations/en-au.d.ts +1 -1
  123. package/dist/translations/en-au.js +2 -2
  124. package/dist/translations/en-au.umd.js +2 -2
  125. package/dist/translations/en-gb.d.ts +1 -1
  126. package/dist/translations/en-gb.js +2 -2
  127. package/dist/translations/en-gb.umd.js +2 -2
  128. package/dist/translations/en.d.ts +1 -1
  129. package/dist/translations/en.js +2 -2
  130. package/dist/translations/en.umd.js +2 -2
  131. package/dist/translations/eo.d.ts +1 -1
  132. package/dist/translations/eo.js +2 -2
  133. package/dist/translations/eo.umd.js +2 -2
  134. package/dist/translations/es-co.d.ts +1 -1
  135. package/dist/translations/es-co.js +2 -2
  136. package/dist/translations/es-co.umd.js +2 -2
  137. package/dist/translations/es.d.ts +1 -1
  138. package/dist/translations/es.js +2 -2
  139. package/dist/translations/es.umd.js +2 -2
  140. package/dist/translations/et.d.ts +1 -1
  141. package/dist/translations/et.js +2 -2
  142. package/dist/translations/et.umd.js +2 -2
  143. package/dist/translations/eu.d.ts +1 -1
  144. package/dist/translations/eu.js +2 -2
  145. package/dist/translations/eu.umd.js +2 -2
  146. package/dist/translations/fa.d.ts +1 -1
  147. package/dist/translations/fa.js +2 -2
  148. package/dist/translations/fa.umd.js +2 -2
  149. package/dist/translations/fi.d.ts +1 -1
  150. package/dist/translations/fi.js +2 -2
  151. package/dist/translations/fi.umd.js +2 -2
  152. package/dist/translations/fr.d.ts +1 -1
  153. package/dist/translations/fr.js +2 -2
  154. package/dist/translations/fr.umd.js +2 -2
  155. package/dist/translations/gl.d.ts +1 -1
  156. package/dist/translations/gl.js +2 -2
  157. package/dist/translations/gl.umd.js +2 -2
  158. package/dist/translations/gu.d.ts +1 -1
  159. package/dist/translations/gu.js +2 -2
  160. package/dist/translations/gu.umd.js +2 -2
  161. package/dist/translations/he.d.ts +1 -1
  162. package/dist/translations/he.js +2 -2
  163. package/dist/translations/he.umd.js +2 -2
  164. package/dist/translations/hi.d.ts +1 -1
  165. package/dist/translations/hi.js +2 -2
  166. package/dist/translations/hi.umd.js +2 -2
  167. package/dist/translations/hr.d.ts +1 -1
  168. package/dist/translations/hr.js +2 -2
  169. package/dist/translations/hr.umd.js +2 -2
  170. package/dist/translations/hu.d.ts +1 -1
  171. package/dist/translations/hu.js +2 -2
  172. package/dist/translations/hu.umd.js +2 -2
  173. package/dist/translations/hy.d.ts +1 -1
  174. package/dist/translations/hy.js +2 -2
  175. package/dist/translations/hy.umd.js +2 -2
  176. package/dist/translations/id.d.ts +1 -1
  177. package/dist/translations/id.js +2 -2
  178. package/dist/translations/id.umd.js +2 -2
  179. package/dist/translations/it.d.ts +1 -1
  180. package/dist/translations/it.js +2 -2
  181. package/dist/translations/it.umd.js +2 -2
  182. package/dist/translations/ja.d.ts +1 -1
  183. package/dist/translations/ja.js +2 -2
  184. package/dist/translations/ja.umd.js +2 -2
  185. package/dist/translations/jv.d.ts +1 -1
  186. package/dist/translations/jv.js +2 -2
  187. package/dist/translations/jv.umd.js +2 -2
  188. package/dist/translations/kk.d.ts +1 -1
  189. package/dist/translations/kk.js +2 -2
  190. package/dist/translations/kk.umd.js +2 -2
  191. package/dist/translations/km.d.ts +1 -1
  192. package/dist/translations/km.js +2 -2
  193. package/dist/translations/km.umd.js +2 -2
  194. package/dist/translations/kn.d.ts +1 -1
  195. package/dist/translations/kn.js +2 -2
  196. package/dist/translations/kn.umd.js +2 -2
  197. package/dist/translations/ko.d.ts +1 -1
  198. package/dist/translations/ko.js +2 -2
  199. package/dist/translations/ko.umd.js +2 -2
  200. package/dist/translations/ku.d.ts +1 -1
  201. package/dist/translations/ku.js +2 -2
  202. package/dist/translations/ku.umd.js +2 -2
  203. package/dist/translations/lt.d.ts +1 -1
  204. package/dist/translations/lt.js +2 -2
  205. package/dist/translations/lt.umd.js +2 -2
  206. package/dist/translations/lv.d.ts +1 -1
  207. package/dist/translations/lv.js +2 -2
  208. package/dist/translations/lv.umd.js +2 -2
  209. package/dist/translations/ms.d.ts +1 -1
  210. package/dist/translations/ms.js +2 -2
  211. package/dist/translations/ms.umd.js +2 -2
  212. package/dist/translations/nb.d.ts +1 -1
  213. package/dist/translations/nb.js +2 -2
  214. package/dist/translations/nb.umd.js +2 -2
  215. package/dist/translations/ne.d.ts +1 -1
  216. package/dist/translations/ne.js +2 -2
  217. package/dist/translations/ne.umd.js +2 -2
  218. package/dist/translations/nl.d.ts +1 -1
  219. package/dist/translations/nl.js +2 -2
  220. package/dist/translations/nl.umd.js +2 -2
  221. package/dist/translations/no.d.ts +1 -1
  222. package/dist/translations/no.js +2 -2
  223. package/dist/translations/no.umd.js +2 -2
  224. package/dist/translations/oc.d.ts +1 -1
  225. package/dist/translations/oc.js +2 -2
  226. package/dist/translations/oc.umd.js +2 -2
  227. package/dist/translations/pl.d.ts +1 -1
  228. package/dist/translations/pl.js +2 -2
  229. package/dist/translations/pl.umd.js +2 -2
  230. package/dist/translations/pt-br.d.ts +1 -1
  231. package/dist/translations/pt-br.js +2 -2
  232. package/dist/translations/pt-br.umd.js +2 -2
  233. package/dist/translations/pt.d.ts +1 -1
  234. package/dist/translations/pt.js +2 -2
  235. package/dist/translations/pt.umd.js +2 -2
  236. package/dist/translations/ro.d.ts +1 -1
  237. package/dist/translations/ro.js +2 -2
  238. package/dist/translations/ro.umd.js +2 -2
  239. package/dist/translations/ru.d.ts +1 -1
  240. package/dist/translations/ru.js +2 -2
  241. package/dist/translations/ru.umd.js +2 -2
  242. package/dist/translations/si.d.ts +1 -1
  243. package/dist/translations/si.js +2 -2
  244. package/dist/translations/si.umd.js +2 -2
  245. package/dist/translations/sk.d.ts +1 -1
  246. package/dist/translations/sk.js +2 -2
  247. package/dist/translations/sk.umd.js +2 -2
  248. package/dist/translations/sl.d.ts +1 -1
  249. package/dist/translations/sl.js +2 -2
  250. package/dist/translations/sl.umd.js +2 -2
  251. package/dist/translations/sq.d.ts +1 -1
  252. package/dist/translations/sq.js +2 -2
  253. package/dist/translations/sq.umd.js +2 -2
  254. package/dist/translations/sr-latn.d.ts +1 -1
  255. package/dist/translations/sr-latn.js +2 -2
  256. package/dist/translations/sr-latn.umd.js +2 -2
  257. package/dist/translations/sr.d.ts +1 -1
  258. package/dist/translations/sr.js +2 -2
  259. package/dist/translations/sr.umd.js +2 -2
  260. package/dist/translations/sv.d.ts +1 -1
  261. package/dist/translations/sv.js +2 -2
  262. package/dist/translations/sv.umd.js +2 -2
  263. package/dist/translations/th.d.ts +1 -1
  264. package/dist/translations/th.js +2 -2
  265. package/dist/translations/th.umd.js +2 -2
  266. package/dist/translations/ti.d.ts +1 -1
  267. package/dist/translations/ti.js +2 -2
  268. package/dist/translations/ti.umd.js +2 -2
  269. package/dist/translations/tk.d.ts +1 -1
  270. package/dist/translations/tk.js +2 -2
  271. package/dist/translations/tk.umd.js +2 -2
  272. package/dist/translations/tr.d.ts +1 -1
  273. package/dist/translations/tr.js +2 -2
  274. package/dist/translations/tr.umd.js +2 -2
  275. package/dist/translations/tt.d.ts +1 -1
  276. package/dist/translations/tt.js +2 -2
  277. package/dist/translations/tt.umd.js +2 -2
  278. package/dist/translations/ug.d.ts +1 -1
  279. package/dist/translations/ug.js +2 -2
  280. package/dist/translations/ug.umd.js +2 -2
  281. package/dist/translations/uk.d.ts +1 -1
  282. package/dist/translations/uk.js +2 -2
  283. package/dist/translations/uk.umd.js +2 -2
  284. package/dist/translations/ur.d.ts +1 -1
  285. package/dist/translations/ur.js +2 -2
  286. package/dist/translations/ur.umd.js +2 -2
  287. package/dist/translations/uz.d.ts +1 -1
  288. package/dist/translations/uz.js +2 -2
  289. package/dist/translations/uz.umd.js +2 -2
  290. package/dist/translations/vi.d.ts +1 -1
  291. package/dist/translations/vi.js +2 -2
  292. package/dist/translations/vi.umd.js +2 -2
  293. package/dist/translations/zh-cn.d.ts +1 -1
  294. package/dist/translations/zh-cn.js +2 -2
  295. package/dist/translations/zh-cn.umd.js +2 -2
  296. package/dist/translations/zh.d.ts +1 -1
  297. package/dist/translations/zh.js +2 -2
  298. package/dist/translations/zh.umd.js +2 -2
  299. package/lang/contexts.json +0 -11
  300. package/lang/translations/af.po +1 -45
  301. package/lang/translations/ar.po +1 -45
  302. package/lang/translations/ast.po +1 -45
  303. package/lang/translations/az.po +1 -45
  304. package/lang/translations/be.po +1 -45
  305. package/lang/translations/bg.po +1 -45
  306. package/lang/translations/bn.po +1 -45
  307. package/lang/translations/bs.po +1 -45
  308. package/lang/translations/ca.po +1 -45
  309. package/lang/translations/cs.po +1 -45
  310. package/lang/translations/da.po +1 -45
  311. package/lang/translations/de-ch.po +1 -45
  312. package/lang/translations/de.po +1 -45
  313. package/lang/translations/el.po +1 -45
  314. package/lang/translations/en-au.po +1 -45
  315. package/lang/translations/en-gb.po +1 -45
  316. package/lang/translations/en.po +1 -45
  317. package/lang/translations/eo.po +1 -45
  318. package/lang/translations/es-co.po +1 -45
  319. package/lang/translations/es.po +1 -45
  320. package/lang/translations/et.po +1 -45
  321. package/lang/translations/eu.po +1 -45
  322. package/lang/translations/fa.po +1 -45
  323. package/lang/translations/fi.po +1 -45
  324. package/lang/translations/fr.po +1 -45
  325. package/lang/translations/gl.po +1 -45
  326. package/lang/translations/gu.po +1 -45
  327. package/lang/translations/he.po +1 -45
  328. package/lang/translations/hi.po +1 -45
  329. package/lang/translations/hr.po +1 -45
  330. package/lang/translations/hu.po +1 -45
  331. package/lang/translations/hy.po +1 -45
  332. package/lang/translations/id.po +1 -45
  333. package/lang/translations/it.po +1 -45
  334. package/lang/translations/ja.po +1 -45
  335. package/lang/translations/jv.po +1 -45
  336. package/lang/translations/kk.po +1 -45
  337. package/lang/translations/km.po +1 -45
  338. package/lang/translations/kn.po +1 -45
  339. package/lang/translations/ko.po +1 -45
  340. package/lang/translations/ku.po +1 -45
  341. package/lang/translations/lt.po +1 -45
  342. package/lang/translations/lv.po +1 -45
  343. package/lang/translations/ms.po +1 -45
  344. package/lang/translations/nb.po +1 -45
  345. package/lang/translations/ne.po +1 -45
  346. package/lang/translations/nl.po +1 -45
  347. package/lang/translations/no.po +1 -45
  348. package/lang/translations/oc.po +1 -45
  349. package/lang/translations/pl.po +1 -45
  350. package/lang/translations/pt-br.po +1 -45
  351. package/lang/translations/pt.po +1 -45
  352. package/lang/translations/ro.po +1 -45
  353. package/lang/translations/ru.po +1 -45
  354. package/lang/translations/si.po +1 -45
  355. package/lang/translations/sk.po +1 -45
  356. package/lang/translations/sl.po +1 -45
  357. package/lang/translations/sq.po +1 -45
  358. package/lang/translations/sr-latn.po +1 -45
  359. package/lang/translations/sr.po +1 -45
  360. package/lang/translations/sv.po +1 -45
  361. package/lang/translations/th.po +1 -45
  362. package/lang/translations/ti.po +1 -45
  363. package/lang/translations/tk.po +1 -45
  364. package/lang/translations/tr.po +1 -45
  365. package/lang/translations/tt.po +1 -45
  366. package/lang/translations/ug.po +1 -45
  367. package/lang/translations/uk.po +1 -45
  368. package/lang/translations/ur.po +1 -45
  369. package/lang/translations/uz.po +1 -45
  370. package/lang/translations/vi.po +1 -45
  371. package/lang/translations/zh-cn.po +1 -45
  372. package/lang/translations/zh.po +1 -45
  373. package/package.json +16 -16
  374. package/src/aiactions/aiactions.d.ts +5 -1
  375. package/src/aiactions/aiactions.js +2 -2
  376. package/src/aiactions/model/aiactionsinteraction.d.ts +1 -1
  377. package/src/aiactions/model/aiactionsinteraction.js +2 -2
  378. package/src/aiactions/model/aiactionsreply.d.ts +1 -1
  379. package/src/aiactions/model/aiactionsreply.js +2 -2
  380. package/src/aiassistant/adapters/aiadapter.d.ts +1 -1
  381. package/src/aiassistant/adapters/aiadapter.js +2 -2
  382. package/src/aiassistant/adapters/aitextadapter.d.ts +1 -1
  383. package/src/aiassistant/adapters/aitextadapter.js +2 -2
  384. package/src/aiassistant/adapters/awstextadapter.d.ts +1 -1
  385. package/src/aiassistant/adapters/awstextadapter.js +2 -2
  386. package/src/aiassistant/adapters/openaitextadapter.d.ts +1 -1
  387. package/src/aiassistant/adapters/openaitextadapter.js +2 -2
  388. package/src/aiassistant/aiassistant.d.ts +1 -1
  389. package/src/aiassistant/aiassistant.js +2 -2
  390. package/src/aiassistant/aiassistantediting.d.ts +1 -1
  391. package/src/aiassistant/aiassistantediting.js +2 -2
  392. package/src/aiassistant/aiassistantui.d.ts +1 -1
  393. package/src/aiassistant/aiassistantui.js +2 -2
  394. package/src/aiassistant/legacyerrors.d.ts +1 -1
  395. package/src/aiassistant/legacyerrors.js +2 -2
  396. package/src/aiassistant/ui/aiassistantcontroller.d.ts +1 -1
  397. package/src/aiassistant/ui/aiassistantcontroller.js +3 -3
  398. package/src/aiassistant/ui/form/aiformcontentarea.d.ts +1 -1
  399. package/src/aiassistant/ui/form/aiformcontentarea.js +2 -2
  400. package/src/aiassistant/ui/form/aiformerrorview.d.ts +1 -1
  401. package/src/aiassistant/ui/form/aiformerrorview.js +2 -2
  402. package/src/aiassistant/ui/form/aiformpromptview.d.ts +1 -1
  403. package/src/aiassistant/ui/form/aiformpromptview.js +2 -2
  404. package/src/aiassistant/ui/form/aiformtoolbarview.d.ts +1 -1
  405. package/src/aiassistant/ui/form/aiformtoolbarview.js +2 -2
  406. package/src/aiassistant/ui/form/aiformview.d.ts +1 -1
  407. package/src/aiassistant/ui/form/aiformview.js +2 -2
  408. package/src/aiassistant/ui/form/aihistorylistitemview.d.ts +1 -1
  409. package/src/aiassistant/ui/form/aihistorylistitemview.js +2 -2
  410. package/src/aiassistant/ui/form/aihistorylistview.d.ts +1 -1
  411. package/src/aiassistant/ui/form/aihistorylistview.js +2 -2
  412. package/src/aiassistant/ui/form/prompthistory.d.ts +1 -1
  413. package/src/aiassistant/ui/form/prompthistory.js +2 -2
  414. package/src/aiassistant/ui/showaiassistantcommand.d.ts +1 -1
  415. package/src/aiassistant/ui/showaiassistantcommand.js +2 -2
  416. package/src/aiassistant/utils/common-translations.d.ts +1 -1
  417. package/src/aiassistant/utils/common-translations.js +2 -2
  418. package/src/aiassistant/utils/normalizecommandsconfig.d.ts +1 -1
  419. package/src/aiassistant/utils/normalizecommandsconfig.js +2 -2
  420. package/src/aiballoon/aiballoon.d.ts +1 -1
  421. package/src/aiballoon/aiballoon.js +2 -2
  422. package/src/aiballoon/ui/aiballoondisclaimerview.d.ts +1 -1
  423. package/src/aiballoon/ui/aiballoondisclaimerview.js +2 -2
  424. package/src/aiballoon/ui/aiballoontoolbarview.d.ts +1 -1
  425. package/src/aiballoon/ui/aiballoontoolbarview.js +2 -2
  426. package/src/aiballoon/ui/aiballoonview.d.ts +1 -1
  427. package/src/aiballoon/ui/aiballoonview.js +2 -2
  428. package/src/aichat/aichat.d.ts +38 -4
  429. package/src/aichat/aichat.js +2 -2
  430. package/src/aichat/aichatcontroller.d.ts +5 -1
  431. package/src/aichat/aichatcontroller.js +2 -2
  432. package/src/aichat/aichatui.d.ts +3 -3
  433. package/src/aichat/aichatui.js +2 -2
  434. package/src/aichat/model/aichatcontext.d.ts +1 -1
  435. package/src/aichat/model/aichatcontext.js +2 -2
  436. package/src/aichat/model/aichatconversation.d.ts +10 -10
  437. package/src/aichat/model/aichatconversation.js +2 -2
  438. package/src/aichat/model/aichatinteraction.d.ts +1 -1
  439. package/src/aichat/model/aichatinteraction.js +2 -2
  440. package/src/aichat/ui/aichatcontrolsview.d.ts +4 -4
  441. package/src/aichat/ui/aichatcontrolsview.js +2 -2
  442. package/src/aichat/ui/aichatfeedview.d.ts +1 -1
  443. package/src/aichat/ui/aichatfeedview.js +2 -2
  444. package/src/aichat/ui/aichatheaderview.d.ts +1 -1
  445. package/src/aichat/ui/aichatheaderview.js +2 -2
  446. package/src/aichat/ui/aichatview.d.ts +1 -1
  447. package/src/aichat/ui/aichatview.js +2 -2
  448. package/src/aichat/ui/controls/aichatchipsoverflowmanager.d.ts +1 -1
  449. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +2 -2
  450. package/src/aichat/ui/controls/aichatcontextitembuttonview.d.ts +1 -1
  451. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +2 -2
  452. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.d.ts +1 -1
  453. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +2 -2
  454. package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +1 -1
  455. package/src/aichat/ui/controls/aichatcontextpanelview.js +2 -2
  456. package/src/aichat/ui/controls/aichatcontrolsloaderview.d.ts +1 -1
  457. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +2 -2
  458. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.d.ts +5 -5
  459. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +2 -2
  460. package/src/aichat/ui/controls/aichatpromptinputview.d.ts +1 -1
  461. package/src/aichat/ui/controls/aichatpromptinputview.js +2 -2
  462. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.d.ts +1 -1
  463. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +2 -2
  464. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.d.ts +1 -1
  465. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +2 -2
  466. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.d.ts +1 -1
  467. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +2 -2
  468. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.d.ts +1 -1
  469. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +2 -2
  470. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +1 -1
  471. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +2 -2
  472. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.d.ts +1 -1
  473. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +2 -2
  474. package/src/aichat/ui/feed/aichatfeedcontextchipsview.d.ts +1 -1
  475. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +2 -2
  476. package/src/aichat/ui/feed/aichatfeederroritemview.d.ts +1 -1
  477. package/src/aichat/ui/feed/aichatfeederroritemview.js +2 -2
  478. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +1 -1
  479. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +2 -2
  480. package/src/aichat/ui/feed/aichatfeeditemview.d.ts +1 -1
  481. package/src/aichat/ui/feed/aichatfeeditemview.js +2 -2
  482. package/src/aichat/ui/feed/aichatfeedreplyitemview.d.ts +3 -2
  483. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +2 -2
  484. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +1 -1
  485. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +2 -2
  486. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +3 -2
  487. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +2 -2
  488. package/src/aichat/ui/feed/aichatfeedusermessageitem.d.ts +1 -1
  489. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +2 -2
  490. package/src/aichat/utils/eventnames.d.ts +1 -1
  491. package/src/aichat/utils/eventnames.js +2 -2
  492. package/src/aichat/utils/promisequeue.d.ts +1 -1
  493. package/src/aichat/utils/promisequeue.js +2 -2
  494. package/src/aichathistory/aichathistory.d.ts +1 -1
  495. package/src/aichathistory/aichathistory.js +2 -2
  496. package/src/aichathistory/aichathistorycontroller.d.ts +1 -1
  497. package/src/aichathistory/aichathistorycontroller.js +2 -2
  498. package/src/aichathistory/aichathistoryui.d.ts +1 -1
  499. package/src/aichathistory/aichathistoryui.js +2 -2
  500. package/src/aichathistory/model/aichathistoryconversations.d.ts +1 -1
  501. package/src/aichathistory/model/aichathistoryconversations.js +2 -2
  502. package/src/aichathistory/model/aichathistoryitem.d.ts +1 -1
  503. package/src/aichathistory/model/aichathistoryitem.js +2 -2
  504. package/src/aichathistory/ui/aichathistorylistitemview.d.ts +1 -1
  505. package/src/aichathistory/ui/aichathistorylistitemview.js +3 -3
  506. package/src/aichathistory/ui/aichathistorylistview.d.ts +1 -1
  507. package/src/aichathistory/ui/aichathistorylistview.js +2 -2
  508. package/src/aichathistory/ui/aichathistorysectionlistview.d.ts +1 -1
  509. package/src/aichathistory/ui/aichathistorysectionlistview.js +2 -2
  510. package/src/aichathistory/ui/aichathistoryview.d.ts +1 -1
  511. package/src/aichathistory/ui/aichathistoryview.js +2 -2
  512. package/src/aiconfig.d.ts +1 -1
  513. package/src/aiconfig.js +1 -1
  514. package/src/aicore/aiconnector.d.ts +4 -2
  515. package/src/aicore/aiconnector.js +2 -2
  516. package/src/aicore/aiediting.d.ts +1 -1
  517. package/src/aicore/aiediting.js +2 -2
  518. package/src/aicore/model/aicapabilities.d.ts +1 -1
  519. package/src/aicore/model/aicapabilities.js +2 -2
  520. package/src/aicore/model/aicontext.d.ts +1 -1
  521. package/src/aicore/model/aicontext.js +2 -2
  522. package/src/aicore/model/aiinteraction.d.ts +1 -1
  523. package/src/aicore/model/aiinteraction.js +2 -2
  524. package/src/aicore/model/aimodels.d.ts +3 -12
  525. package/src/aicore/model/aimodels.js +2 -2
  526. package/src/aicore/model/aireply.d.ts +1 -1
  527. package/src/aicore/model/aireply.js +2 -2
  528. package/src/aicore/pipeline/airesponseapplier.d.ts +1 -1
  529. package/src/aicore/pipeline/airesponseapplier.js +3 -3
  530. package/src/aicore/pipeline/airesponseparser.d.ts +1 -1
  531. package/src/aicore/pipeline/airesponseparser.js +3 -3
  532. package/src/aicore/ui/aidisclaimerview.d.ts +1 -1
  533. package/src/aicore/ui/aidisclaimerview.js +2 -2
  534. package/src/aicore/ui/aiskeleton.d.ts +1 -1
  535. package/src/aicore/ui/aiskeleton.js +2 -2
  536. package/src/aicore/ui/aispinner.d.ts +1 -1
  537. package/src/aicore/ui/aispinner.js +2 -2
  538. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.d.ts +1 -1
  539. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +2 -2
  540. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +1 -1
  541. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +2 -2
  542. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +5 -5
  543. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +2 -2
  544. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +1 -1
  545. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +2 -2
  546. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.d.ts +1 -1
  547. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +2 -2
  548. package/src/aicore/utils/common-translations.d.ts +1 -1
  549. package/src/aicore/utils/common-translations.js +2 -2
  550. package/src/aicore/utils/createresizebutton.d.ts +1 -1
  551. package/src/aicore/utils/createresizebutton.js +2 -2
  552. package/src/aicore/utils/documentposition.d.ts +1 -1
  553. package/src/aicore/utils/documentposition.js +2 -2
  554. package/src/aicore/utils/documentrange.d.ts +1 -1
  555. package/src/aicore/utils/documentrange.js +2 -2
  556. package/src/aicore/utils/eventnames.d.ts +1 -1
  557. package/src/aicore/utils/eventnames.js +2 -2
  558. package/src/aicore/utils/geteditorfromcontext.d.ts +1 -1
  559. package/src/aicore/utils/geteditorfromcontext.js +2 -2
  560. package/src/aicore/utils/getoperationsfromreply.d.ts +1 -1
  561. package/src/aicore/utils/getoperationsfromreply.js +2 -2
  562. package/src/aicore/utils/getsuggestionpartsfromreply.d.ts +1 -1
  563. package/src/aicore/utils/getsuggestionpartsfromreply.js +2 -2
  564. package/src/aicore/utils/htmlparser.d.ts +1 -1
  565. package/src/aicore/utils/htmlparser.js +2 -2
  566. package/src/aicore/utils/htmlstreamer.d.ts +1 -1
  567. package/src/aicore/utils/htmlstreamer.js +2 -2
  568. package/src/aicore/utils/scrollmanager.d.ts +1 -1
  569. package/src/aicore/utils/scrollmanager.js +2 -2
  570. package/src/aieditorintegration/aieditorintegration.d.ts +1 -1
  571. package/src/aieditorintegration/aieditorintegration.js +2 -2
  572. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +1 -1
  573. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +2 -2
  574. package/src/aieditorintegration/aitogglebutton/toggleaicommand.d.ts +1 -1
  575. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +2 -2
  576. package/src/aiquickactions/aiquickactions.d.ts +1 -1
  577. package/src/aiquickactions/aiquickactions.js +2 -2
  578. package/src/aiquickactions/aiquickactionscommand.d.ts +1 -1
  579. package/src/aiquickactions/aiquickactionscommand.js +2 -2
  580. package/src/aiquickactions/aiquickactionsediting.d.ts +1 -1
  581. package/src/aiquickactions/aiquickactionsediting.js +2 -2
  582. package/src/aiquickactions/aiquickactionsui.d.ts +1 -1
  583. package/src/aiquickactions/aiquickactionsui.js +2 -2
  584. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +1 -1
  585. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +2 -2
  586. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +1 -1
  587. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +2 -2
  588. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +1 -1
  589. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +2 -2
  590. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.d.ts +1 -1
  591. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +2 -2
  592. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.d.ts +1 -1
  593. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +2 -2
  594. package/src/aireviewmode/aireviewcheckdefinitions.d.ts +1 -1
  595. package/src/aireviewmode/aireviewcheckdefinitions.js +2 -2
  596. package/src/aireviewmode/aireviewmode.d.ts +1 -1
  597. package/src/aireviewmode/aireviewmode.js +2 -2
  598. package/src/aireviewmode/aireviewmodecontroller.d.ts +1 -1
  599. package/src/aireviewmode/aireviewmodecontroller.js +2 -2
  600. package/src/aireviewmode/aireviewmodeediting.d.ts +1 -1
  601. package/src/aireviewmode/aireviewmodeediting.js +2 -2
  602. package/src/aireviewmode/aireviewmodeui.d.ts +1 -1
  603. package/src/aireviewmode/aireviewmodeui.js +2 -2
  604. package/src/aireviewmode/model/aireviewcheck.d.ts +1 -1
  605. package/src/aireviewmode/model/aireviewcheck.js +2 -2
  606. package/src/aireviewmode/model/aireviewcheckcustom.d.ts +1 -1
  607. package/src/aireviewmode/model/aireviewcheckcustom.js +2 -2
  608. package/src/aireviewmode/model/aireviewchecklist.d.ts +1 -1
  609. package/src/aireviewmode/model/aireviewchecklist.js +2 -2
  610. package/src/aireviewmode/model/aireviewcheckresult.d.ts +1 -1
  611. package/src/aireviewmode/model/aireviewcheckresult.js +2 -2
  612. package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +1 -1
  613. package/src/aireviewmode/model/aireviewcheckresultchange.js +2 -2
  614. package/src/aireviewmode/model/aireviewcheckrun.d.ts +1 -1
  615. package/src/aireviewmode/model/aireviewcheckrun.js +2 -2
  616. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +1 -1
  617. package/src/aireviewmode/model/aireviewcustomcheckrun.js +2 -2
  618. package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +1 -1
  619. package/src/aireviewmode/model/aireviewsystemcheckrun.js +2 -2
  620. package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +1 -1
  621. package/src/aireviewmode/ui/aireviemodepromptinputview.js +2 -2
  622. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +1 -1
  623. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +2 -2
  624. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +2 -2
  625. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +2 -2
  626. package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +1 -1
  627. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +2 -2
  628. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.d.ts +1 -1
  629. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +2 -2
  630. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.d.ts +1 -1
  631. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +2 -2
  632. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.d.ts +1 -1
  633. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +2 -2
  634. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +1 -1
  635. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +2 -2
  636. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.d.ts +1 -1
  637. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +2 -2
  638. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +1 -1
  639. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +2 -2
  640. package/src/aireviewmode/ui/aireviewmodeview.d.ts +1 -1
  641. package/src/aireviewmode/ui/aireviewmodeview.js +2 -2
  642. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +1 -1
  643. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +2 -2
  644. package/src/aireviewmode/ui/form/aireviewmodeformmanager.d.ts +1 -1
  645. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +2 -2
  646. package/src/aitabs/aitabs.d.ts +1 -1
  647. package/src/aitabs/aitabs.js +2 -2
  648. package/src/aitabs/aitabsmainview.d.ts +1 -1
  649. package/src/aitabs/aitabsmainview.js +2 -2
  650. package/src/aitabs/tabs/aitabsview.d.ts +1 -1
  651. package/src/aitabs/tabs/aitabsview.js +2 -2
  652. package/src/aitabs/tabs/tabbuttonview.d.ts +1 -1
  653. package/src/aitabs/tabs/tabbuttonview.js +2 -2
  654. package/src/aitabs/tabs/tabpanelview.d.ts +1 -1
  655. package/src/aitabs/tabs/tabpanelview.js +2 -2
  656. package/src/augmentation.d.ts +1 -1
  657. package/src/augmentation.js +1 -1
  658. package/src/errors.d.ts +1 -1
  659. package/src/errors.js +2 -2
  660. package/src/errorsmap.d.ts +1 -1
  661. package/src/errorsmap.js +2 -2
  662. package/src/index.d.ts +1 -2
  663. package/src/index.js +2 -2
  664. package/theme/aiassistant/ai-dropdown.css +1 -1
  665. package/theme/aiassistant/ai-form.css +1 -1
  666. package/theme/aiassistant/ai.css +1 -1
  667. package/theme/aiballoon/aiballoon.css +1 -1
  668. package/theme/aichat/aichat-controls/aichat-context-chip.css +1 -1
  669. package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +1 -1
  670. package/theme/aichat/aichat-controls/aichat-context-controls.css +1 -1
  671. package/theme/aichat/aichat-controls/aichat-controls-button.css +1 -1
  672. package/theme/aichat/aichat-controls/aichat-controls-loader.css +1 -1
  673. package/theme/aichat/aichat-controls/model-unavailable-message.css +1 -1
  674. package/theme/aichat/aichat-controls/prompt-capabilities.css +1 -1
  675. package/theme/aichat/aichat-controls/prompt-input.css +1 -1
  676. package/theme/aichat/aichat-controls.css +1 -1
  677. package/theme/aichat/aichat.css +1 -1
  678. package/theme/aichat/aichatfeed.css +55 -1
  679. package/theme/aichat/aichathistory.css +1 -1
  680. package/theme/aichat/aiminitoolbar.css +1 -1
  681. package/theme/aichat/aisuggestioncontainer.css +1 -1
  682. package/theme/aieditorintegration/aitogglebutton.css +1 -1
  683. package/theme/aiquickactions/aiquickactions.css +1 -1
  684. package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +1 -1
  685. package/theme/aireviewmode/aireviewmode-check-list.css +1 -1
  686. package/theme/aireviewmode/aireviewmode-check-run-result.css +1 -1
  687. package/theme/aireviewmode/aireviewmode-check-run.css +1 -1
  688. package/theme/aireviewmode/aireviewmode-review-completed.css +1 -1
  689. package/theme/aireviewmode/aireviewmode.css +9 -4
  690. package/theme/aitabs/aitabsview.css +1 -1
  691. package/theme/aitabs/tabs/tabbuttonview.css +1 -1
  692. package/theme/aitabs/tabs/tabsview.css +1 -1
  693. package/theme/common/aibutton.css +1 -1
  694. package/theme/common/aidisclaimer.css +1 -1
  695. package/theme/common/aiheader.css +1 -1
  696. package/theme/common/ainotification.css +1 -1
  697. package/theme/common/aiskeleton.css +1 -1
  698. package/theme/common/aispinner.css +1 -1
  699. package/theme/common/aitrackchanges.css +1 -1
  700. package/src/aichat/model/aichatmodels.d.ts +0 -63
  701. package/src/aichat/model/aichatmodels.js +0 -23
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29b850=_0x12ff;(function(_0x4a895e,_0x16c879){const _0x2b1e3b=_0x12ff,_0x56905a=_0x4a895e();while(!![]){try{const _0x5a1860=-parseInt(_0x2b1e3b(0x234))/0x1*(-parseInt(_0x2b1e3b(0x1d6))/0x2)+parseInt(_0x2b1e3b(0x1e7))/0x3*(parseInt(_0x2b1e3b(0x22a))/0x4)+parseInt(_0x2b1e3b(0x262))/0x5*(-parseInt(_0x2b1e3b(0x223))/0x6)+parseInt(_0x2b1e3b(0x1c4))/0x7*(parseInt(_0x2b1e3b(0x275))/0x8)+-parseInt(_0x2b1e3b(0x1e2))/0x9+parseInt(_0x2b1e3b(0x1b4))/0xa*(-parseInt(_0x2b1e3b(0x1f0))/0xb)+parseInt(_0x2b1e3b(0x27c))/0xc;if(_0x5a1860===_0x16c879)break;else _0x56905a['push'](_0x56905a['shift']());}catch(_0x45766f){_0x56905a['push'](_0x56905a['shift']());}}}(_0x36e3,0xb93ef));import{Plugin as _0x809aed}from'ckeditor5/src/core.js';import{AIConnector as _0x4b8941}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x3fcdb2}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x36e3(){const _0x613cd8=['hideLoader','message','ai.availableReplyActions','error','slice','replies','1/1','_navigateToPrevious','startsWith','howMany','removeNavigationItem','_currentInteractionIndex','insert','Error\x20updating\x20content\x20during\x20navigation:','path','length','forEach','_clearLoadingState','pending','set','upsertAIActionRating','showLoader','interactionFinished','AI_ACTIONS_NEXT_INTERACTION','model','documentFragment','static','_customViews','_interactions','_interaction','stopInteraction','_createInteraction','nextSibling','has','locale','root','Attribute','_displayInteractionAtIndex','AI_ACTIONS_PREVIOUS_INTERACTION','isPremiumPlugin','ck-ai-interaction-counter','showChangesButton','getSelectedContent','isOfficialPlugin','position','getRanges','_getExecuteDataInTable','addNavigationItem','19692MFDtJz','getOperations','hasError','aiBalloon','applyOperation','end','operationsA','47524gGQKdS','getRoot','TrackChanges','parent','executeAction','balloonView','listenTo','$graveyard','getLimitElement','stopAutoScroll','15659EEQcrQ','_disableCustomViews','clone','includes','_interactionParams','close','getFirstRange','_refreshInteraction','map','Error\x20refreshing\x20interaction:','first','isEnabled','_children','random','_clearInteractionHistory','createPositionAt','setLoading','isDocumentOperation','element','createPositionBefore','_aiConnector','processor','abort','textContent','setTemplate','hasPendingParts','isBusy','getDocumentContext','_isNavigationPreviousButtonInView','_navigationPreviousButton','isCollapsed','_anchorOperation','history','stopListening','reinsert','getAncestors','_execute','split','TableSelection','_getExecuteDataRegular','span','mainView','Error\x20updating\x20content\x20in\x20replyContentUpdated:','requires','move','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','1005GolYKG','streaming','replyChangeGroupStateUpdated','nodeAfter','Error\x20updating\x20content\x20in\x20replyCreated:','filter','accepted','add','AIConnector','replyContentUpdated','getCommonAncestor','baseVersion','_appendChild','replyCreated','clearErrorState','showError','ck-ai-navigation-button\x20ck-ai-next-button','_isAbortError','_stopInteraction','8nBqxSL','selectionRemoved','getSelectionAsFragment','updateContent','stop','ck-ai-custom-action-button','toolbar','16320312DFXbZR','enqueue','range','plugins','_setErrorState','_clone','_applyChanges','_navigationCounter','rename','AIBalloon','get','indexOf','setErrorState','remove','_applyOperationsAsSuggestions','_executeAction','actionName','execute','AI_ACTIONS_GENERIC_ERROR','_clearSuggestionContent','type','editor','TrackChangesEditing','setSelection','queueEmptyPromise','data','change','rootName','_promiseQueue','start','merge','AIActions','_balloonShowDiff','selection','4510WPnzyY','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','_isNavigationCounterInView','open','miniToolbarView','_navigationNextButton','config','setChangeGroupState','sourcePosition','hideError','clearLoading','createPositionAfter','areChangesVisible','createRange','ai-request-aborted','icon','1701021mpxiGV','stickiness','state','changeGroups','applySuggestion','batch','_clearErrorState','getSelectedTableCells','isLoading','modelToViewWithIds','insertSuggestion','toData','bind','getChild','getChildAtOffset','_setLoadingState','_filterOperationsOutsideRange','toggleSuggestionDisplayMode','58YYfMVp','_wrapWithCommonAncestors','signal','bodyView','focus','catch','AI_ACTIONS_TRY_AGAIN','startAutoScroll','_isNavigationNextButtonInView','documentContextContent','_updateNavigationUI','_setupCustomViews','3475809GskqEj','version','upsertCustomAIActionRating','dialogClosed','ai-no-track-changes','45YqBBGN','push','actionCallId','ck-ai-navigation-button\x20ck-ai-previous-button','schema','getSelectedBlocks','_navigateToNext','rejected','pluginName','10505tCuwHi','addOperation','document'];_0x36e3=function(){return _0x613cd8;};return _0x36e3();}import{Dialog as _0x407cb2,ButtonView as _0x197995,ViewCollection as _0x11ec9e,View as _0x36dd8f}from'ckeditor5/src/ui.js';import{AIEditing as _0x4b4090}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x5df450}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x25704a,first as _0x251ea3}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x4eb835,IconRefresh as _0x45f56f,IconNextArrow as _0x58f9c4,IconPreviousArrow as _0x5ddb6b,IconShowChangesOff as _0x4013b0}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x270f06}from'../aiballoon/aiballoon.js';function _0x12ff(_0xb56307,_0x2c788d){const _0x36e383=_0x36e3();return _0x12ff=function(_0x12ff4a,_0x2d12cc){_0x12ff4a=_0x12ff4a-0x1b3;let _0x23d7b9=_0x36e383[_0x12ff4a];return _0x23d7b9;},_0x12ff(_0xb56307,_0x2c788d);}import{PromiseQueue as _0x4f17b7}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x4f89fe}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x49ea10}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x3233b4}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0xf95b18,getOperationsFromReply as _0x3de8a7}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x5a7505,ModelRange as _0x19a245,ModelPosition as _0x41f1b2,_DetachOperation as _0x1e8805,transformOperationSets as _0x359e8b}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x83a4ce}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x809aed{static get[_0x29b850(0x25f)](){return[_0x4b8941,_0x407cb2,_0x4b4090,_0x270f06,_0x3233b4];}static get[_0x29b850(0x1ef)](){const _0x385e3e=_0x29b850;return _0x385e3e(0x29b);}static get[_0x29b850(0x21e)](){return!0x0;}static get[_0x29b850(0x21a)](){return!0x0;}[_0x29b850(0x248)];[_0x29b850(0x20f)]=[];[_0x29b850(0x1fe)]=0x0;[_0x29b850(0x238)];[_0x29b850(0x29c)]=!0x1;[_0x29b850(0x20e)]=new _0x11ec9e();[_0x29b850(0x251)];[_0x29b850(0x283)];[_0x29b850(0x1b6)]=!0x1;[_0x29b850(0x1b9)];[_0x29b850(0x250)]=!0x1;[_0x29b850(0x1de)]=!0x1;[_0x29b850(0x298)];get[_0x29b850(0x210)](){const _0x5775ad=_0x29b850;return this[_0x5775ad(0x20f)][this[_0x5775ad(0x20f)][_0x5775ad(0x202)]-0x1];}constructor(_0x37a3a1){const _0x530ece=_0x29b850;super(_0x37a3a1),this[_0x530ece(0x248)]=this[_0x530ece(0x291)][_0x530ece(0x27f)][_0x530ece(0x286)](_0x530ece(0x26a)),this[_0x530ece(0x206)](_0x530ece(0x24e),!0x1),this[_0x530ece(0x298)]=new _0x4f17b7(),this[_0x530ece(0x1e1)]();}[_0x29b850(0x211)](){const _0x19641f=_0x29b850;this[_0x19641f(0x274)]();}async[_0x29b850(0x22e)](_0xffb427,_0x538e4e,_0x2ea5ba){const _0x1fc1be=_0x29b850;if(this[_0x1fc1be(0x291)][_0x1fc1be(0x27f)][_0x1fc1be(0x214)](_0x1fc1be(0x25a))){if(this[_0x1fc1be(0x291)][_0x1fc1be(0x27f)][_0x1fc1be(0x286)](_0x1fc1be(0x25a))[_0x1fc1be(0x1cb)]()){const {modelFragment:_0x2ca8bc,anchorData:_0x3033bb}=this[_0x1fc1be(0x221)]();return this[_0x1fc1be(0x28b)](_0xffb427,_0x2ca8bc,_0x3033bb,_0x538e4e,_0x2ea5ba);}}const {modelFragment:_0x4e9ab3,anchorData:_0x14be92}=this[_0x1fc1be(0x25b)]();return this[_0x1fc1be(0x28b)](_0xffb427,_0x4e9ab3,_0x14be92,_0x538e4e,_0x2ea5ba);}[_0x29b850(0x25b)](){const _0x100ecd=_0x29b850,_0x180763=this[_0x100ecd(0x291)][_0x100ecd(0x20b)][_0x100ecd(0x1f2)][_0x100ecd(0x1b3)];if(_0x180763[_0x100ecd(0x252)]){const _0x54af8b=_0x251ea3(_0x180763[_0x100ecd(0x1ec)]())||this[_0x100ecd(0x291)][_0x100ecd(0x20b)][_0x100ecd(0x1eb)][_0x100ecd(0x232)](_0x180763);this[_0x100ecd(0x291)][_0x100ecd(0x20b)][_0x100ecd(0x296)](_0x490f38=>{const _0x20b71f=_0x100ecd;_0x490f38[_0x20b71f(0x293)](_0x54af8b,'in');});}const _0x5a2044=_0x180763[_0x100ecd(0x23a)](),_0x38e721=this[_0x100ecd(0x1d7)](this[_0x100ecd(0x291)][_0x100ecd(0x20b)][_0x100ecd(0x21d)](_0x180763),_0x5a2044[_0x100ecd(0x299)],_0x5a2044[_0x100ecd(0x228)]),_0x16bbd4=_0x180763[_0x100ecd(0x23a)]()[_0x100ecd(0x299)],_0x16ea93=new Map();let _0x3bc6d9=_0x38e721;for(let _0x2d9241=0x0;_0x2d9241<_0x16bbd4[_0x100ecd(0x201)][_0x100ecd(0x202)];_0x2d9241++)_0x16ea93[_0x100ecd(0x206)](_0x3bc6d9,_0x16bbd4[_0x100ecd(0x201)][_0x2d9241]),_0x3bc6d9=_0x3bc6d9[_0x100ecd(0x1d1)](0x0);return{'modelFragment':_0x38e721,'anchorData':_0x16ea93};}[_0x29b850(0x221)](){const _0x385ed5=_0x29b850,_0xd46029=this[_0x385ed5(0x291)][_0x385ed5(0x20b)][_0x385ed5(0x1f2)][_0x385ed5(0x1b3)],_0x321ab1=this[_0x385ed5(0x291)][_0x385ed5(0x27f)][_0x385ed5(0x286)](_0x385ed5(0x25a))[_0x385ed5(0x277)](),_0x593b99=_0xd46029[_0x385ed5(0x23a)]()[_0x385ed5(0x299)][_0x385ed5(0x22d)][_0x385ed5(0x22d)],_0x210b9d=this[_0x385ed5(0x1d7)](_0x321ab1,this[_0x385ed5(0x291)][_0x385ed5(0x20b)][_0x385ed5(0x247)](_0x593b99),this[_0x385ed5(0x291)][_0x385ed5(0x20b)][_0x385ed5(0x1bf)](_0x593b99)),_0x4a403f=_0xd46029[_0x385ed5(0x23a)]()[_0x385ed5(0x299)],_0x470843=new Map();let _0x1ccb02=_0x210b9d;for(let _0xc48f9a=0x0;_0xc48f9a<_0x4a403f[_0x385ed5(0x201)][_0x385ed5(0x202)];_0xc48f9a++)if(_0x470843[_0x385ed5(0x206)](_0x1ccb02,_0x4a403f[_0x385ed5(0x201)][_0xc48f9a]),_0xc48f9a<_0x4a403f[_0x385ed5(0x201)][_0x385ed5(0x202)]-0x1)_0x1ccb02=_0x1ccb02[_0x385ed5(0x1d1)](0x0);else{let _0x2ad6a5=_0x1ccb02[_0x385ed5(0x213)];for(;_0x2ad6a5;)_0x470843[_0x385ed5(0x206)](_0x2ad6a5,_0x4a403f[_0x385ed5(0x201)][_0xc48f9a]),_0x2ad6a5=_0x2ad6a5[_0x385ed5(0x213)];}return{'modelFragment':_0x210b9d,'anchorData':_0x470843};}[_0x29b850(0x28b)](_0x3807e0,_0x542872,_0x93869,_0x169e61,_0x4d71ac){const _0x50eac5=_0x29b850,_0x575a31=this[_0x50eac5(0x291)][_0x50eac5(0x27f)][_0x50eac5(0x286)](_0x4b4090),_0x5b7ed0=this[_0x50eac5(0x291)][_0x50eac5(0x27f)][_0x50eac5(0x286)](_0x270f06),_0x17847f=this[_0x50eac5(0x291)][_0x50eac5(0x20b)][_0x50eac5(0x1f2)][_0x50eac5(0x1b3)],_0x5a49e1=_0x575a31[_0x50eac5(0x1cd)](_0x542872),_0x3c9834=this[_0x50eac5(0x291)][_0x50eac5(0x295)][_0x50eac5(0x249)][_0x50eac5(0x1cf)](_0x5a49e1),_0x20b7c6=this[_0x50eac5(0x291)][_0x50eac5(0x20b)][_0x50eac5(0x1f2)][_0x50eac5(0x1e3)],_0x1daf56=[..._0x17847f[_0x50eac5(0x220)]()];let _0x54d2b3=this[_0x50eac5(0x291)][_0x50eac5(0x1ba)][_0x50eac5(0x286)](_0x50eac5(0x1f5))||[..._0x83a4ce];this[_0x50eac5(0x291)][_0x50eac5(0x27f)][_0x50eac5(0x214)](_0x50eac5(0x22c))||(_0x54d2b3=_0x54d2b3[_0x50eac5(0x267)](_0x55f159=>_0x50eac5(0x1ce)!=_0x55f159));const _0x51acda=new _0x3fcdb2(this[_0x50eac5(0x291)][_0x50eac5(0x215)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x50eac5(0x1c3),'customView':this[_0x50eac5(0x20e)]},'showUnchangedParts':!0x0,'availableActions':_0x54d2b3});return _0x5b7ed0[_0x50eac5(0x1b7)]({'index':0x3e8*Math[_0x50eac5(0x241)]()%0x3e8,'title':_0x169e61,'icon':_0x4d71ac||_0x4eb835,'mainView':_0x51acda,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x50eac5(0x291)][_0x50eac5(0x27f)][_0x50eac5(0x214)](_0x50eac5(0x22c)),'ranges':_0x1daf56}),this[_0x50eac5(0x1d3)](_0x51acda,_0x5b7ed0),this[_0x50eac5(0x230)](_0x5b7ed0,_0x50eac5(0x1c8),()=>{const _0x236a56=_0x50eac5;this[_0x236a56(0x282)](_0x542872,_0x93869,!0x1);}),this[_0x50eac5(0x230)](_0x5b7ed0,_0x50eac5(0x1ce),()=>{const _0x3608d2=_0x50eac5;this[_0x3608d2(0x282)](_0x542872,_0x93869,!0x0);}),this[_0x50eac5(0x230)](_0x5b7ed0,_0x50eac5(0x276),()=>{const _0x58e13e=_0x50eac5;this[_0x58e13e(0x274)](),this[_0x58e13e(0x235)]();}),this[_0x50eac5(0x230)](_0x5b7ed0,_0x50eac5(0x1e5),()=>{const _0xe41055=_0x50eac5;if(this[_0xe41055(0x210)]&&this[_0xe41055(0x210)][_0xe41055(0x1f8)][_0xe41055(0x202)]>0x0){const _0xd2ca37=this[_0xe41055(0x210)][_0xe41055(0x1f8)][this[_0xe41055(0x210)][_0xe41055(0x1f8)][_0xe41055(0x202)]-0x1],_0x3e7af1=_0xd2ca37[_0xe41055(0x1c7)][0x0];_0x3e7af1&&_0xe41055(0x205)===_0x3e7af1[_0xe41055(0x1c6)]&&_0xd2ca37[_0xe41055(0x1bb)](0x0,_0xe41055(0x1ee));}this[_0xe41055(0x274)](),this[_0xe41055(0x242)](),this[_0xe41055(0x255)](_0x5b7ed0);}),this[_0x50eac5(0x212)](_0x3c9834,_0x20b7c6,_0x51acda,_0x5b7ed0,_0x3807e0);}[_0x29b850(0x1d7)](_0x4d5560,_0x1cdb52,_0x4483d3){const _0x281304=_0x29b850,_0x2e701b=this[_0x281304(0x291)][_0x281304(0x20b)][_0x281304(0x1c1)](_0x1cdb52,_0x4483d3)[_0x281304(0x26c)](),_0x39bbdd=_0x2e701b['is'](_0x281304(0x20c))?[]:_0x2e701b[_0x281304(0x257)]({'includeSelf':!0x0})[_0x281304(0x1f7)](0x1);if(_0x39bbdd[_0x281304(0x202)]){const _0x1b9528=_0x39bbdd[_0x281304(0x23c)](_0x5e84d1=>_0x5e84d1[_0x281304(0x281)](!0x1));for(let _0x51553c=0x1;_0x51553c<_0x1b9528[_0x281304(0x202)];_0x51553c++)_0x1b9528[_0x51553c-0x1][_0x281304(0x26e)](_0x1b9528[_0x51553c]);return _0x1b9528[_0x1b9528[_0x281304(0x202)]-0x1][_0x281304(0x26e)](_0x4d5560),new _0x5a7505(_0x1b9528[0x0]);}return _0x4d5560;}async[_0x29b850(0x212)](_0x518538,_0x3a41a7,_0x32f9b5,_0x58b832,_0x1bcc90){const _0x4a29f6=_0x29b850,_0x436b70=this[_0x4a29f6(0x291)];this[_0x4a29f6(0x238)]={'action':_0x1bcc90,'content':_0x518538,'version':_0x3a41a7,'mainView':_0x32f9b5,'aiBalloon':_0x58b832};const _0x3c1617=new _0x5df450({'connector':this[_0x4a29f6(0x248)],'editor':_0x436b70,'content':_0x518538,'version':_0x3a41a7,..._0x1bcc90});this[_0x4a29f6(0x20f)][_0x4a29f6(0x1e8)](_0x3c1617),_0x32f9b5[_0x4a29f6(0x1bd)]();const _0x4e11b0=(_0xcd263b,_0x445a49,_0x16c90f=!0x1,_0x250569=_0x4a29f6(0x263))=>this[_0x4a29f6(0x298)][_0x4a29f6(0x27d)](async _0x2d153e=>{const _0x2735a3=_0x4a29f6;try{const _0x1dab75=_0x49ea10({'editor':_0x436b70,'changeGroups':_0xcd263b[_0x2735a3(0x1c7)],'documentContextContent':_0xcd263b[_0x2735a3(0x1df)],'showDiff':_0x16c90f,'trimUnchanged':!0x1});await _0x445a49[_0x2735a3(0x278)]({'parts':_0x1dab75,'renderingStrategy':_0x250569,'abortSignal':_0x2d153e});}catch(_0x59a2f8){if(this[_0x2735a3(0x273)](_0x59a2f8))return;throw _0x59a2f8;}});this[_0x4a29f6(0x210)]['on'](_0x4a29f6(0x26f),(_0x3cdf8c,_0x38ece3)=>{const _0x374719=_0x4a29f6;_0x32f9b5[_0x374719(0x1f3)](),_0x58b832[_0x374719(0x1dd)](),_0x4e11b0(_0x38ece3,_0x32f9b5)[_0x374719(0x1db)](_0x437d8c=>{const _0x25fb22=_0x374719;this[_0x25fb22(0x273)](_0x437d8c)||(console[_0x25fb22(0x1f6)](_0x25fb22(0x266),_0x437d8c),this[_0x25fb22(0x280)](_0x3c1617,_0x32f9b5));});}),this[_0x4a29f6(0x210)]['on'](_0x4a29f6(0x26b),(_0x58955b,_0x5e2b75)=>{const _0x48b0bd=_0x4a29f6;_0x4e11b0(_0x5e2b75,_0x32f9b5)[_0x48b0bd(0x1db)](_0x603999=>{const _0x47941e=_0x48b0bd;this[_0x47941e(0x273)](_0x603999)||(console[_0x47941e(0x1f6)](_0x47941e(0x25e),_0x603999),this[_0x47941e(0x280)](_0x3c1617,_0x32f9b5));});}),this[_0x4a29f6(0x210)]['on'](_0x4a29f6(0x209),async()=>{const _0x1d9eba=_0x4a29f6;try{await this[_0x1d9eba(0x204)](_0x32f9b5,_0x58b832),this[_0x1d9eba(0x1e0)](),await this[_0x1d9eba(0x298)][_0x1d9eba(0x294)];}catch(_0x416242){this[_0x1d9eba(0x273)](_0x416242)||(console[_0x1d9eba(0x1f6)](_0x1d9eba(0x1b5),_0x416242),this[_0x1d9eba(0x280)](_0x3c1617,_0x32f9b5));}finally{_0x58b832[_0x1d9eba(0x233)]();}}),this[_0x4a29f6(0x230)](_0x32f9b5,_0x4a29f6(0x1d5),async(_0x3ebbe9,{showDiff:_0xdb7ac3})=>{const _0x9898=_0x4a29f6;try{this[_0x9898(0x29c)]=_0xdb7ac3;const _0x422e50=this[_0x9898(0x210)][_0x9898(0x1f8)][this[_0x9898(0x210)][_0x9898(0x1f8)][_0x9898(0x202)]-0x1];_0x422e50&&await _0x4e11b0(_0x422e50,_0x32f9b5,_0xdb7ac3,_0x9898(0x20d));}catch(_0x5ebae){this[_0x9898(0x273)](_0x5ebae)||(console[_0x9898(0x1f6)](_0x9898(0x261),_0x5ebae),this[_0x9898(0x280)](_0x3c1617,_0x32f9b5));}}),this[_0x4a29f6(0x210)]['on'](_0x4a29f6(0x264),(_0x13e6de,{reply:_0x377275})=>{const _0x18b871=_0x4a29f6,_0x1d35e7={'positiveCount':_0x377275[_0x18b871(0x1c7)][_0x18b871(0x267)](_0xaeb5b4=>_0x18b871(0x268)===_0xaeb5b4[_0x18b871(0x1c6)])[_0x18b871(0x202)],'totalCount':_0x377275[_0x18b871(0x1c7)][_0x18b871(0x202)]},_0x669699=this[_0x18b871(0x210)][_0x18b871(0x1e9)],_0x5af7a8=this[_0x18b871(0x210)][_0x18b871(0x28c)];_0x5af7a8?this[_0x18b871(0x248)][_0x18b871(0x207)](_0x5af7a8,_0x669699,_0x1d35e7):this[_0x18b871(0x248)][_0x18b871(0x1e4)](_0x669699,_0x1d35e7);}),this[_0x4a29f6(0x1d3)](_0x32f9b5,_0x58b832);try{const _0x42ef6b=await this[_0x4a29f6(0x210)][_0x4a29f6(0x299)]();return this[_0x4a29f6(0x1e0)](),_0x42ef6b;}catch(_0x573ec4){if(this[_0x4a29f6(0x273)](_0x573ec4))return;_0x32f9b5[_0x4a29f6(0x1f3)](),this[_0x4a29f6(0x280)](_0x3c1617,_0x32f9b5);}}[_0x29b850(0x282)](_0x597d8e,_0x1b77ba,_0x4d60d9){const _0x559725=_0x29b850,_0x2fc8fe=this[_0x559725(0x291)];if(_0x4d60d9&&!_0x2fc8fe[_0x559725(0x27f)][_0x559725(0x214)](_0x559725(0x22c)))throw new _0x25704a(_0x559725(0x1e6),null);const _0xc7b72f=this[_0x559725(0x291)][_0x559725(0x27f)][_0x559725(0x286)](_0x3233b4),_0x38de5f=this[_0x559725(0x210)],_0x53eb20=this[_0x559725(0x210)][_0x559725(0x1f8)][this[_0x559725(0x210)][_0x559725(0x1f8)][_0x559725(0x202)]-0x1],_0x33e033=_0x53eb20[_0x559725(0x1c7)];_0x53eb20[_0x559725(0x1bb)](0x0,_0x559725(0x268));let _0x4f6242=_0x3de8a7({'editor':_0x2fc8fe,'reply':_0x53eb20,'interaction':_0x38de5f,'groups':_0x33e033,'transform':!0x1,'documentCompare':_0xc7b72f,'documentCompareOptions':{'anchor':_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x243)](_0x597d8e,0x0),'markDeletions':_0x4d60d9}});_0x4f6242=this[_0x559725(0x1d4)](_0x4f6242,_0x1b77ba);for(const _0x34bcad of _0x4f6242)this[_0x559725(0x253)](_0x1b77ba,_0x34bcad,_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x1f2)][_0x559725(0x22b)]());const _0x5ed7db=_0x38de5f[_0x559725(0x24f)]()[_0x559725(0x1e3)],_0x4a7b9a=_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x1f2)][_0x559725(0x254)][_0x559725(0x224)](_0x5ed7db),_0x2dceff={'document':_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x1f2)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x23a8b0=_0x359e8b(_0x4f6242,_0x4a7b9a,_0x2dceff)[_0x559725(0x229)];_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x296)](_0x5815ae=>{const _0xa8162f=_0x559725;if(_0x5815ae[_0xa8162f(0x293)](_0x2fc8fe[_0xa8162f(0x20b)][_0xa8162f(0x1f2)][_0xa8162f(0x1b3)][_0xa8162f(0x1da)]),_0x4d60d9)_0x2fc8fe[_0xa8162f(0x27f)][_0xa8162f(0x286)](_0xa8162f(0x292))[_0xa8162f(0x28a)](_0x23a8b0);else{for(const _0x32d40f of _0x23a8b0)_0x32d40f[_0xa8162f(0x26d)]=_0x2fc8fe[_0xa8162f(0x20b)][_0xa8162f(0x1f2)][_0xa8162f(0x1e3)],_0xf95b18(_0x2fc8fe,_0x32d40f),_0x5815ae[_0xa8162f(0x1c9)][_0xa8162f(0x1f1)](_0x32d40f),_0x2fc8fe[_0xa8162f(0x20b)][_0xa8162f(0x227)](_0x32d40f);}}),this[_0x559725(0x291)][_0x559725(0x27f)][_0x559725(0x286)](_0x559725(0x285))[_0x559725(0x239)]();}[_0x29b850(0x1d4)](_0x17c3be,_0x12df39){const _0x57433e=_0x29b850;return _0x17c3be[_0x57433e(0x267)](_0x27c4ae=>{const _0x11d4b3=_0x57433e;if(_0x11d4b3(0x284)==_0x27c4ae[_0x11d4b3(0x290)]){const _0x3db492=_0x27c4ae[_0x11d4b3(0x21f)][_0x11d4b3(0x265)];return!_0x12df39[_0x11d4b3(0x214)](_0x3db492);}if(_0x27c4ae[_0x11d4b3(0x290)][_0x11d4b3(0x287)](_0x11d4b3(0x217))>-0x1){const _0x4ac251=_0x27c4ae[_0x11d4b3(0x27e)][_0x11d4b3(0x299)][_0x11d4b3(0x265)];return!_0x12df39[_0x11d4b3(0x214)](_0x4ac251);}return!0x0;});}[_0x29b850(0x253)](_0x3923e0,_0xd3cc9b,_0x505928){const _0x3268c9=_0x29b850,_0xfab994=_0xd3cc9b[_0x3268c9(0x236)]();for(const _0x44c0c6 in _0xd3cc9b){const _0x1d968f=_0xd3cc9b[_0x44c0c6];_0x1d968f instanceof _0x19a245?_0xd3cc9b[_0x44c0c6]=new _0x19a245(_0xaa654d(_0x1d968f[_0x3268c9(0x299)]),_0xaa654d(_0x1d968f[_0x3268c9(0x228)])):_0x1d968f instanceof _0x41f1b2&&(_0xd3cc9b[_0x44c0c6]=_0xaa654d(_0x1d968f));}if([_0x3268c9(0x1ff),_0x3268c9(0x260),_0x3268c9(0x289),_0x3268c9(0x256),_0x3268c9(0x259),_0x3268c9(0x29a)][_0x3268c9(0x237)](_0xfab994[_0x3268c9(0x290)])){if(_0xfab994[_0x3268c9(0x245)]=!0x1,_0xfab994[_0x3268c9(0x26d)]=null,_0x3268c9(0x289)==_0xfab994[_0x3268c9(0x290)]){const _0x400fed=_0xfab994[_0x3268c9(0x1bc)],_0x56116e=_0xfab994[_0x3268c9(0x1fc)];new _0x1e8805(_0x400fed,_0x56116e)[_0x3268c9(0x258)]();}else _0xfab994[_0x3268c9(0x258)]();}function _0xaa654d(_0x245b2b){const _0xfa37b1=_0x3268c9;if(_0xfa37b1(0x231)==_0x245b2b[_0xfa37b1(0x216)][_0xfa37b1(0x297)])return _0x245b2b;const _0x30efd6=[];let _0x1a4850=_0x245b2b[_0xfa37b1(0x216)];for(let _0x2b1643=0x0;_0x2b1643<_0x245b2b[_0xfa37b1(0x201)][_0xfa37b1(0x202)];_0x2b1643++){const _0x26e53f=_0x3923e0[_0xfa37b1(0x286)](_0x1a4850)||0x0;_0x30efd6[_0x2b1643]=_0x245b2b[_0xfa37b1(0x201)][_0x2b1643]+_0x26e53f,_0x1a4850=_0x1a4850[_0xfa37b1(0x1d2)](_0x245b2b[_0xfa37b1(0x201)][_0x2b1643]);}return new _0x41f1b2(_0x505928,_0x30efd6,_0x245b2b[_0xfa37b1(0x1c5)]);}}[_0x29b850(0x23b)](){const _0x1b6cba=_0x29b850;if(!this[_0x1b6cba(0x238)])return;this[_0x1b6cba(0x20f)][_0x1b6cba(0x202)]>0x0&&this[_0x1b6cba(0x274)](),this[_0x1b6cba(0x1fe)]=0x0,this[_0x1b6cba(0x29c)]=!0x1;const {action:_0x449efd,content:_0x1580ef,version:_0x2c7820,mainView:_0x1f3229,aiBalloon:_0x22b3d5}=this[_0x1b6cba(0x238)];_0x1f3229[_0x1b6cba(0x1c0)]=!0x1,_0x1f3229[_0x1b6cba(0x1bd)](),this[_0x1b6cba(0x1ca)](_0x1f3229,_0x22b3d5);const _0x568b7d=_0x1f3229;_0x568b7d[_0x1b6cba(0x1b8)]&&_0x568b7d[_0x1b6cba(0x1b8)][_0x1b6cba(0x21c)]&&_0x568b7d[_0x1b6cba(0x1b8)][_0x1b6cba(0x21c)][_0x1b6cba(0x206)]({'isOn':!0x1,'icon':_0x4013b0}),this[_0x1b6cba(0x28f)](_0x1f3229),_0x1f3229[_0x1b6cba(0x208)](),this[_0x1b6cba(0x1e0)](),this[_0x1b6cba(0x255)](_0x1f3229),this[_0x1b6cba(0x212)](_0x1580ef,_0x2c7820,_0x1f3229,_0x22b3d5,_0x449efd)[_0x1b6cba(0x1db)](_0x49b423=>{const _0x1df3a1=_0x1b6cba;this[_0x1df3a1(0x273)](_0x49b423)||console[_0x1df3a1(0x1f6)](_0x1df3a1(0x23d),_0x49b423);});}[_0x29b850(0x28f)](_0x2a2180){const _0x21bbf0=_0x29b850,_0xd99c3d=_0x2a2180[_0x21bbf0(0x1d9)][_0x21bbf0(0x240)];for(;_0xd99c3d[_0x21bbf0(0x202)]>0x0;)_0xd99c3d[_0x21bbf0(0x289)](_0xd99c3d[_0x21bbf0(0x23e)]);_0x2a2180[_0x21bbf0(0x1d9)][_0x21bbf0(0x24d)]=!0x1;}[_0x29b850(0x273)](_0x5515a8){const _0x4b1afc=_0x29b850;return!!_0x5515a8[_0x4b1afc(0x1f4)]&&_0x5515a8[_0x4b1afc(0x1f4)][_0x4b1afc(0x1fb)](_0x4b1afc(0x1c2));}[_0x29b850(0x242)](){const _0x5439f0=_0x29b850;this[_0x5439f0(0x20f)]=[],this[_0x5439f0(0x238)]=void 0x0,this[_0x5439f0(0x1fe)]=0x0,this[_0x5439f0(0x1e0)]();}[_0x29b850(0x274)](){const _0x29bd98=_0x29b850;this[_0x29bd98(0x210)]&&this[_0x29bd98(0x210)][_0x29bd98(0x279)](),this[_0x29bd98(0x298)][_0x29bd98(0x24a)](),this[_0x29bd98(0x24e)]=!0x1,this[_0x29bd98(0x238)]&&this[_0x29bd98(0x238)][_0x29bd98(0x226)][_0x29bd98(0x233)]();}[_0x29b850(0x1e1)](){const _0x58e232=_0x29b850,_0x42336c=new _0x197995(this[_0x58e232(0x291)][_0x58e232(0x215)]),_0x299494=new _0x197995(this[_0x58e232(0x291)][_0x58e232(0x215)]),_0x21210c=new _0x36dd8f(this[_0x58e232(0x291)][_0x58e232(0x215)]),_0x27ad4a=new _0x197995(this[_0x58e232(0x291)][_0x58e232(0x215)]);_0x42336c[_0x58e232(0x206)]({'icon':_0x45f56f,'label':_0x4f89fe(this[_0x58e232(0x291)][_0x58e232(0x215)],_0x58e232(0x1dc)),'tooltip':!0x0,'class':_0x58e232(0x27a)}),_0x299494[_0x58e232(0x206)]({'icon':_0x5ddb6b,'tooltip':_0x4f89fe(this[_0x58e232(0x291)][_0x58e232(0x215)],_0x58e232(0x219)),'class':_0x58e232(0x1ea)}),_0x21210c[_0x58e232(0x24c)]({'tag':_0x58e232(0x25c),'attributes':{'class':[_0x58e232(0x21b)]},'children':[_0x58e232(0x1f9)]}),_0x27ad4a[_0x58e232(0x206)]({'icon':_0x58f9c4,'tooltip':_0x4f89fe(this[_0x58e232(0x291)][_0x58e232(0x215)],_0x58e232(0x20a)),'class':_0x58e232(0x272)}),_0x42336c[_0x58e232(0x1d0)](_0x58e232(0x23f))['to'](this,_0x58e232(0x24e),_0x267083=>!_0x267083),_0x42336c['on'](_0x58e232(0x28d),()=>{const _0x5c359b=_0x58e232;this[_0x5c359b(0x23b)]();}),_0x299494[_0x58e232(0x1d0)](_0x58e232(0x23f))['to'](this,_0x58e232(0x24e),_0x57fbd9=>!_0x57fbd9),_0x299494['on'](_0x58e232(0x28d),()=>{const _0x419881=_0x58e232;this[_0x419881(0x1fa)]();}),_0x27ad4a[_0x58e232(0x1d0)](_0x58e232(0x23f))['to'](this,_0x58e232(0x24e),_0x2dd2b2=>!_0x2dd2b2),_0x27ad4a['on'](_0x58e232(0x28d),()=>{const _0x37b698=_0x58e232;this[_0x37b698(0x1ed)]();}),this[_0x58e232(0x251)]=_0x299494,this[_0x58e232(0x283)]=_0x21210c,this[_0x58e232(0x1b9)]=_0x27ad4a,this[_0x58e232(0x20e)][_0x58e232(0x269)](_0x42336c);}[_0x29b850(0x1fa)](){const _0x185ca6=_0x29b850,_0x34a1e3=this[_0x185ca6(0x20f)][_0x185ca6(0x202)];this[_0x185ca6(0x1fe)]<_0x34a1e3-0x1&&this[_0x185ca6(0x218)](this[_0x185ca6(0x1fe)]+0x1);}[_0x29b850(0x1ed)](){const _0x6878f6=_0x29b850;this[_0x6878f6(0x1fe)]>0x0&&this[_0x6878f6(0x218)](this[_0x6878f6(0x1fe)]-0x1);}async[_0x29b850(0x218)](_0x1bc63e){const _0x202800=_0x29b850;if(!this[_0x202800(0x238)])return;this[_0x202800(0x1fe)]=_0x1bc63e;const {mainView:_0x39f57f}=this[_0x202800(0x238)],_0xfb1144=this[_0x202800(0x20f)][this[_0x202800(0x20f)][_0x202800(0x202)]-0x1-this[_0x202800(0x1fe)]];if(!_0xfb1144)return;if(_0xfb1144[_0x202800(0x225)])return this[_0x202800(0x280)](_0xfb1144,_0x39f57f),void this[_0x202800(0x1e0)]();if(!_0xfb1144[_0x202800(0x1f8)][_0x202800(0x202)])return;_0x39f57f[_0x202800(0x1bd)](),this[_0x202800(0x238)]&&this[_0x202800(0x1ca)](_0x39f57f,this[_0x202800(0x238)][_0x202800(0x226)]);const _0x328522=_0xfb1144[_0x202800(0x1f8)][_0xfb1144[_0x202800(0x1f8)][_0x202800(0x202)]-0x1];if(_0x328522){const _0x2b94ad=this[_0x202800(0x291)];this[_0x202800(0x28f)](_0x39f57f);try{const _0x27cc36=_0x49ea10({'editor':_0x2b94ad,'changeGroups':_0x328522[_0x202800(0x1c7)],'documentContextContent':_0x328522[_0x202800(0x1df)],'showDiff':this[_0x202800(0x29c)],'trimUnchanged':!0x1});this[_0x202800(0x28f)](_0x39f57f),await new Promise(_0x5b1994=>setTimeout(_0x5b1994,0x32)),await _0x39f57f[_0x202800(0x278)]({'parts':_0x27cc36,'renderingStrategy':_0x202800(0x20d),'abortSignal':new AbortController()[_0x202800(0x1d8)]});}catch(_0x3403c6){this[_0x202800(0x273)](_0x3403c6)||console[_0x202800(0x1f6)](_0x202800(0x200),_0x3403c6);}}this[_0x202800(0x1e0)]();}[_0x29b850(0x1e0)](){const _0x26d2e9=_0x29b850;if(!this[_0x26d2e9(0x251)]||!this[_0x26d2e9(0x283)]||!this[_0x26d2e9(0x1b9)])return;const _0x4b4037=this[_0x26d2e9(0x20f)][_0x26d2e9(0x202)],_0x387fc2=_0x4b4037>0x1,_0x3d701f=this[_0x26d2e9(0x238)]?.[_0x26d2e9(0x25d)];if(_0x387fc2){this[_0x26d2e9(0x250)]||this[_0x26d2e9(0x1b6)]||this[_0x26d2e9(0x1de)]||(this[_0x26d2e9(0x20e)][_0x26d2e9(0x269)](this[_0x26d2e9(0x251)]),_0x3d701f?.[_0x26d2e9(0x222)](this[_0x26d2e9(0x251)]),this[_0x26d2e9(0x250)]=!0x0,this[_0x26d2e9(0x20e)][_0x26d2e9(0x269)](this[_0x26d2e9(0x283)]),_0x3d701f?.[_0x26d2e9(0x222)](this[_0x26d2e9(0x283)]),this[_0x26d2e9(0x1b6)]=!0x0,this[_0x26d2e9(0x20e)][_0x26d2e9(0x269)](this[_0x26d2e9(0x1b9)]),_0x3d701f?.[_0x26d2e9(0x222)](this[_0x26d2e9(0x1b9)]),this[_0x26d2e9(0x1de)]=!0x0);const _0x3eab40=_0x4b4037-this[_0x26d2e9(0x1fe)];this[_0x26d2e9(0x283)][_0x26d2e9(0x246)]&&(this[_0x26d2e9(0x283)][_0x26d2e9(0x246)][_0x26d2e9(0x24b)]=_0x3eab40+'/'+_0x4b4037),this[_0x26d2e9(0x251)][_0x26d2e9(0x23f)]=this[_0x26d2e9(0x1fe)]<_0x4b4037-0x1,this[_0x26d2e9(0x1b9)][_0x26d2e9(0x23f)]=this[_0x26d2e9(0x1fe)]>0x0;}else(this[_0x26d2e9(0x250)]||this[_0x26d2e9(0x1b6)]||this[_0x26d2e9(0x1de)])&&(this[_0x26d2e9(0x20e)][_0x26d2e9(0x289)](this[_0x26d2e9(0x251)]),_0x3d701f?.[_0x26d2e9(0x1fd)](this[_0x26d2e9(0x251)]),this[_0x26d2e9(0x250)]=!0x1,this[_0x26d2e9(0x20e)][_0x26d2e9(0x289)](this[_0x26d2e9(0x283)]),_0x3d701f?.[_0x26d2e9(0x1fd)](this[_0x26d2e9(0x283)]),this[_0x26d2e9(0x1b6)]=!0x1,this[_0x26d2e9(0x20e)][_0x26d2e9(0x289)](this[_0x26d2e9(0x1b9)]),_0x3d701f?.[_0x26d2e9(0x1fd)](this[_0x26d2e9(0x1b9)]),this[_0x26d2e9(0x1de)]=!0x1);}[_0x29b850(0x1d3)](_0x2e899d,_0x1ddfe4){const _0x551779=_0x29b850;_0x2e899d[_0x551779(0x244)](),_0x1ddfe4[_0x551779(0x22f)][_0x551779(0x244)](),this[_0x551779(0x24e)]=!0x0;}async[_0x29b850(0x280)](_0x4dd27c,_0x4742e2){const _0x45d80d=_0x29b850,_0x5f2686=_0x4f89fe(this[_0x45d80d(0x291)][_0x45d80d(0x215)],_0x45d80d(0x28e));_0x4742e2[_0x45d80d(0x271)](_0x5f2686),_0x4dd27c[_0x45d80d(0x225)]=!0x0,await this[_0x45d80d(0x298)][_0x45d80d(0x294)],_0x4742e2[_0x45d80d(0x288)](),this[_0x45d80d(0x238)]?.[_0x45d80d(0x226)][_0x45d80d(0x22f)][_0x45d80d(0x27b)]&&(this[_0x45d80d(0x238)][_0x45d80d(0x226)][_0x45d80d(0x22f)][_0x45d80d(0x27b)][_0x45d80d(0x1cc)]=!0x0);}[_0x29b850(0x1ca)](_0x4639b7,_0x4d3262){const _0x2f538e=_0x29b850;_0x4639b7[_0x2f538e(0x270)](),_0x4d3262[_0x2f538e(0x22f)][_0x2f538e(0x27b)]&&(_0x4d3262[_0x2f538e(0x22f)][_0x2f538e(0x27b)][_0x2f538e(0x1cc)]=!0x1);}async[_0x29b850(0x204)](_0x5a11e6,_0x4e4900){const _0x25e240=_0x29b850;await this[_0x25e240(0x298)][_0x25e240(0x294)],this[_0x25e240(0x24e)]=!0x1,_0x5a11e6[_0x25e240(0x1be)](),_0x4e4900[_0x25e240(0x22f)][_0x25e240(0x1be)]();}[_0x29b850(0x235)](){const _0x122843=_0x29b850;this[_0x122843(0x20e)][_0x122843(0x203)](_0x5b06b3=>{const _0x2b794e=_0x122843;_0x2b794e(0x23f)in _0x5b06b3&&(_0x5b06b3[_0x2b794e(0x23f)]=!0x1);});}}
23
+ const _0x15699c=_0x3545;function _0x439d(){const _0x55faa5=['$graveyard','1783953hnJuKY','rejected','_getExecuteDataRegular','_isNavigationNextButtonInView','_children','dialogClosed','stopAutoScroll','span','listenTo','createPositionBefore','hasPendingParts','type','batch','getSelectionAsFragment','clearErrorState','getRanges','slice','selection','actionCallId','getDocumentContext','getSelectedTableCells','stopListening','1/1','setChangeGroupState','changeGroups','getSelectedBlocks','_isAbortError','setLoading','7776076qIrrec','catch','state','showLoader','execute','replyCreated','bodyView','updateContent','first','nextSibling','setErrorState','close','static','getSelectedContent','clone','icon','_clone','_currentInteractionIndex','AI_ACTIONS_TRY_AGAIN','remove','parent','toggleSuggestionDisplayMode','change','applyOperation','getChild','Attribute','requires','insertSuggestion','_displayInteractionAtIndex','_isNavigationPreviousButtonInView','ck-ai-interaction-counter','_navigationCounter','removeNavigationItem','_setupCustomViews','processor','_balloonShowDiff','AIBalloon','_interactions','ck-ai-custom-action-button','7FXSYJM','nodeAfter','_stopInteraction','addNavigationItem','toolbar','start','config','editor','AIConnector','rootName','indexOf','92XYqPwQ','_clearInteractionHistory','getChildAtOffset','mainView','range','stickiness','addOperation','streaming','random','error','signal','createRange','startsWith','detachFromDom','schema','upsertCustomAIActionRating','18954552Rlqblv','interactionFinished','filter','documentFragment','miniToolbarView','push','map','_refreshInteraction','getAncestors','sourcePosition','isOfficialPlugin','getCommonAncestor','path','attachToDom','reinsert','_navigateToNext','AI_ACTIONS_NEXT_INTERACTION','setSelection','version','replyChangeGroupStateUpdated','Error\x20updating\x20content\x20during\x20navigation:','has','setTemplate','_wrapWithCommonAncestors','createPositionAfter','length','AIActions','isCollapsed','pending','AI_ACTIONS_PREVIOUS_INTERACTION','createPositionAt','howMany','ai-no-track-changes','element','areChangesVisible','plugins','344190rcczbR','root','rename','_aiConnector','ai-request-aborted','stopInteraction','stop','toData','locale','TrackChanges','balloonView','merge','_setLoadingState','hideLoader','_navigationNextButton','_interactionParams','includes','documentContextContent','Error\x20updating\x20content\x20in\x20replyContentUpdated:','model','modelToViewWithIds','actionName','document','set','applySuggestion','_clearLoadingState','bind','1248141qRaCxV','hasError','_applyOperationsAsSuggestions','message','replyContentUpdated','split','move','_disableCustomViews','isEnabled','_clearErrorState','clearLoading','getRoot','pluginName','executeAction','data','focus','replies','abort','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','AI_ACTIONS_GENERIC_ERROR','isDocumentOperation','showError','end','forEach','TrackChangesEditing','ai.availableReplyActions','16LUcsVv','get','getLimitElement','_updateNavigationUI','10lZEdFH','hideError','Error\x20updating\x20content\x20in\x20replyCreated:','baseVersion','queueEmptyPromise','enqueue','_executeAction','showChangesButton','_setErrorState','history','getFirstRange','ck-ai-navigation-button\x20ck-ai-previous-button','_bodyCollection','selectionRemoved','add','_appendChild','_navigationPreviousButton','_promiseQueue','_anchorOperation','_applyChanges','accepted','6199476ZIfLxP','isLoading','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','_interaction','aiBalloon','TableSelection','upsertAIActionRating','_createInteraction','isPremiumPlugin','isBusy','_getExecuteDataInTable','operationsA','_execute','2aWyotB','destroy','243712dOKdKe','_isNavigationCounterInView','ck-ai-navigation-button\x20ck-ai-next-button','startAutoScroll','getOperations','position','open','insert','_customViews','Error\x20refreshing\x20interaction:','_filterOperationsOutsideRange','_navigateToPrevious','_clearSuggestionContent','textContent'];_0x439d=function(){return _0x55faa5;};return _0x439d();}(function(_0x14354b,_0x53ea67){const _0xed63a6=_0x3545,_0xef80ca=_0x14354b();while(!![]){try{const _0x220cd8=-parseInt(_0xed63a6(0x15a))/0x1+parseInt(_0xed63a6(0x158))/0x2*(parseInt(_0xed63a6(0x118))/0x3)+parseInt(_0xed63a6(0xc9))/0x4*(parseInt(_0xed63a6(0xfd))/0x5)+parseInt(_0xed63a6(0x14b))/0x6*(parseInt(_0xed63a6(0xbe))/0x7)+parseInt(_0xed63a6(0x132))/0x8*(parseInt(_0xed63a6(0x7b))/0x9)+parseInt(_0xed63a6(0x136))/0xa*(-parseInt(_0xed63a6(0x97))/0xb)+-parseInt(_0xed63a6(0xd9))/0xc;if(_0x220cd8===_0x53ea67)break;else _0xef80ca['push'](_0xef80ca['shift']());}catch(_0x4999cb){_0xef80ca['push'](_0xef80ca['shift']());}}}(_0x439d,0xdb70b));import{Plugin as _0x1faf9e}from'ckeditor5/src/core.js';import{AIConnector as _0x588ba4}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x2012c1}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x29e859,ButtonView as _0x59578d,ViewCollection as _0x182af7,View as _0x521294,BodyCollection as _0x46d756}from'ckeditor5/src/ui.js';import{AIEditing as _0x117ebb}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x24b997}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x4d887a,first as _0x33166d}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x497d99,IconRefresh as _0x373bb4,IconNextArrow as _0x4a4848,IconPreviousArrow as _0x4ee518,IconShowChangesOff as _0x176190}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x1eb6ca}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x65afea}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x5467a6}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x1a3a0a}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x435b1a}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x29862d,getOperationsFromReply as _0x26bc6f}from'../aicore/utils/getoperationsfromreply.js';function _0x3545(_0x4ca6af,_0x1a3a08){const _0x439d89=_0x439d();return _0x3545=function(_0x354556,_0x5b27e7){_0x354556=_0x354556-0x6f;let _0x1370ed=_0x439d89[_0x354556];return _0x1370ed;},_0x3545(_0x4ca6af,_0x1a3a08);}import{ModelDocumentFragment as _0xfff49a,ModelRange as _0x2c2dcc,ModelPosition as _0x5f0b22,_DetachOperation as _0x5e5347,transformOperationSets as _0x166bbc}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x4cd77e}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x1faf9e{static get[_0x15699c(0xb1)](){return[_0x588ba4,_0x29e859,_0x117ebb,_0x1eb6ca,_0x435b1a];}static get[_0x15699c(0x124)](){const _0x2bc24b=_0x15699c;return _0x2bc24b(0xf3);}static get[_0x15699c(0xe3)](){return!0x0;}static get[_0x15699c(0x153)](){return!0x0;}[_0x15699c(0x100)];[_0x15699c(0xbc)]=[];[_0x15699c(0xa8)]=0x0;[_0x15699c(0x10c)];[_0x15699c(0xba)]=!0x1;[_0x15699c(0x74)]=new _0x182af7();[_0x15699c(0x146)];[_0x15699c(0xb6)];[_0x15699c(0x15b)]=!0x1;[_0x15699c(0x10b)];[_0x15699c(0xb4)]=!0x1;[_0x15699c(0x7e)]=!0x1;[_0x15699c(0x147)];[_0x15699c(0x142)];get[_0x15699c(0x14e)](){const _0xcfb603=_0x15699c;return this[_0xcfb603(0xbc)][this[_0xcfb603(0xbc)][_0xcfb603(0xf2)]-0x1];}constructor(_0x544f26){const _0x4c6e57=_0x15699c;super(_0x544f26),this[_0x4c6e57(0x142)]=new _0x46d756(this[_0x4c6e57(0xc5)][_0x4c6e57(0x105)]),this[_0x4c6e57(0x142)][_0x4c6e57(0xe6)](),this[_0x4c6e57(0x100)]=this[_0x4c6e57(0xc5)][_0x4c6e57(0xfc)][_0x4c6e57(0x133)](_0x4c6e57(0xc6)),this[_0x4c6e57(0x114)](_0x4c6e57(0x154),!0x1),this[_0x4c6e57(0x147)]=new _0x65afea(),this[_0x4c6e57(0xb8)]();}[_0x15699c(0x102)](){const _0x38a9e6=_0x15699c;this[_0x38a9e6(0xc0)]();}async[_0x15699c(0x125)](_0x1ec962,_0x1723eb,_0x4fb295){const _0xac7e5b=_0x15699c;if(this[_0xac7e5b(0xc5)][_0xac7e5b(0xfc)][_0xac7e5b(0xee)](_0xac7e5b(0x150))){if(this[_0xac7e5b(0xc5)][_0xac7e5b(0xfc)][_0xac7e5b(0x133)](_0xac7e5b(0x150))[_0xac7e5b(0x8f)]()){const {modelFragment:_0x59511b,anchorData:_0x423373}=this[_0xac7e5b(0x155)]();return this[_0xac7e5b(0x13c)](_0x1ec962,_0x59511b,_0x423373,_0x1723eb,_0x4fb295);}}const {modelFragment:_0x2560c2,anchorData:_0x4d233e}=this[_0xac7e5b(0x7d)]();return this[_0xac7e5b(0x13c)](_0x1ec962,_0x2560c2,_0x4d233e,_0x1723eb,_0x4fb295);}[_0x15699c(0x159)](){const _0x23029b=_0x15699c;this[_0x23029b(0x142)][_0x23029b(0xd6)](),super[_0x23029b(0x159)]();}[_0x15699c(0x7d)](){const _0x1e1815=_0x15699c,_0xc7ca2b=this[_0x1e1815(0xc5)][_0x1e1815(0x110)][_0x1e1815(0x113)][_0x1e1815(0x8c)];if(_0xc7ca2b[_0x1e1815(0xf4)]){const _0x491c85=_0x33166d(_0xc7ca2b[_0x1e1815(0x94)]())||this[_0x1e1815(0xc5)][_0x1e1815(0x110)][_0x1e1815(0xd7)][_0x1e1815(0x134)](_0xc7ca2b);this[_0x1e1815(0xc5)][_0x1e1815(0x110)][_0x1e1815(0xad)](_0x5771e9=>{const _0x18a099=_0x1e1815;_0x5771e9[_0x18a099(0xea)](_0x491c85,'in');});}const _0xadff03=_0xc7ca2b[_0x1e1815(0x140)](),_0x1db9aa=this[_0x1e1815(0xf0)](this[_0x1e1815(0xc5)][_0x1e1815(0x110)][_0x1e1815(0xa4)](_0xc7ca2b),_0xadff03[_0x1e1815(0xc3)],_0xadff03[_0x1e1815(0x12e)]),_0x55a2e0=_0xc7ca2b[_0x1e1815(0x140)]()[_0x1e1815(0xc3)],_0x55d189=new Map();let _0x2ba8a0=_0x1db9aa;for(let _0x405f60=0x0;_0x405f60<_0x55a2e0[_0x1e1815(0xe5)][_0x1e1815(0xf2)];_0x405f60++)_0x55d189[_0x1e1815(0x114)](_0x2ba8a0,_0x55a2e0[_0x1e1815(0xe5)][_0x405f60]),_0x2ba8a0=_0x2ba8a0[_0x1e1815(0xaf)](0x0);return{'modelFragment':_0x1db9aa,'anchorData':_0x55d189};}[_0x15699c(0x155)](){const _0x32a091=_0x15699c,_0x5ebd48=this[_0x32a091(0xc5)][_0x32a091(0x110)][_0x32a091(0x113)][_0x32a091(0x8c)],_0x4885c0=this[_0x32a091(0xc5)][_0x32a091(0xfc)][_0x32a091(0x133)](_0x32a091(0x150))[_0x32a091(0x88)](),_0x184d1e=_0x5ebd48[_0x32a091(0x140)]()[_0x32a091(0xc3)][_0x32a091(0xab)][_0x32a091(0xab)],_0x5a513b=this[_0x32a091(0xf0)](_0x4885c0,this[_0x32a091(0xc5)][_0x32a091(0x110)][_0x32a091(0x84)](_0x184d1e),this[_0x32a091(0xc5)][_0x32a091(0x110)][_0x32a091(0xf1)](_0x184d1e)),_0x30c7de=_0x5ebd48[_0x32a091(0x140)]()[_0x32a091(0xc3)],_0x107ba9=new Map();let _0x4e3ef6=_0x5a513b;for(let _0x1ad85c=0x0;_0x1ad85c<_0x30c7de[_0x32a091(0xe5)][_0x32a091(0xf2)];_0x1ad85c++)if(_0x107ba9[_0x32a091(0x114)](_0x4e3ef6,_0x30c7de[_0x32a091(0xe5)][_0x1ad85c]),_0x1ad85c<_0x30c7de[_0x32a091(0xe5)][_0x32a091(0xf2)]-0x1)_0x4e3ef6=_0x4e3ef6[_0x32a091(0xaf)](0x0);else{let _0x45723e=_0x4e3ef6[_0x32a091(0xa0)];for(;_0x45723e;)_0x107ba9[_0x32a091(0x114)](_0x45723e,_0x30c7de[_0x32a091(0xe5)][_0x1ad85c]),_0x45723e=_0x45723e[_0x32a091(0xa0)];}return{'modelFragment':_0x5a513b,'anchorData':_0x107ba9};}[_0x15699c(0x13c)](_0xdf3361,_0x30b406,_0x1909cd,_0x43b9fa,_0x1c89b8){const _0x3c7dd2=_0x15699c,_0x5576a8=this[_0x3c7dd2(0xc5)][_0x3c7dd2(0xfc)][_0x3c7dd2(0x133)](_0x117ebb),_0x13a952=this[_0x3c7dd2(0xc5)][_0x3c7dd2(0xfc)][_0x3c7dd2(0x133)](_0x1eb6ca),_0x1480e8=this[_0x3c7dd2(0xc5)][_0x3c7dd2(0x110)][_0x3c7dd2(0x113)][_0x3c7dd2(0x8c)],_0x1d6048=_0x5576a8[_0x3c7dd2(0x111)](_0x30b406),_0x7290d0=this[_0x3c7dd2(0xc5)][_0x3c7dd2(0x126)][_0x3c7dd2(0xb9)][_0x3c7dd2(0x104)](_0x1d6048),_0x5d3177=this[_0x3c7dd2(0xc5)][_0x3c7dd2(0x110)][_0x3c7dd2(0x113)][_0x3c7dd2(0xeb)],_0x33d0fc=[..._0x1480e8[_0x3c7dd2(0x8a)]()];let _0x3fd234=this[_0x3c7dd2(0xc5)][_0x3c7dd2(0xc4)][_0x3c7dd2(0x133)](_0x3c7dd2(0x131))||[..._0x4cd77e];this[_0x3c7dd2(0xc5)][_0x3c7dd2(0xfc)][_0x3c7dd2(0xee)](_0x3c7dd2(0x106))||(_0x3fd234=_0x3fd234[_0x3c7dd2(0xdb)](_0x31ddb2=>_0x3c7dd2(0xb2)!=_0x31ddb2));const _0x29d55c=new _0x2012c1(this[_0x3c7dd2(0xc5)][_0x3c7dd2(0x105)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x3c7dd2(0xa6),'customView':this[_0x3c7dd2(0x74)]},'showUnchangedParts':!0x0,'availableActions':_0x3fd234},this[_0x3c7dd2(0x142)]);return _0x13a952[_0x3c7dd2(0x72)]({'index':0x3e8*Math[_0x3c7dd2(0xd1)]()%0x3e8,'title':_0x43b9fa,'icon':_0x1c89b8||_0x497d99,'mainView':_0x29d55c,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x3c7dd2(0xc5)][_0x3c7dd2(0xfc)][_0x3c7dd2(0xee)](_0x3c7dd2(0x106)),'ranges':_0x33d0fc}),this[_0x3c7dd2(0x109)](_0x29d55c,_0x13a952),this[_0x3c7dd2(0x83)](_0x13a952,_0x3c7dd2(0x115),()=>{const _0x2c8a03=_0x3c7dd2;this[_0x2c8a03(0x149)](_0x30b406,_0x1909cd,!0x1);}),this[_0x3c7dd2(0x83)](_0x13a952,_0x3c7dd2(0xb2),()=>{const _0x1ae6b7=_0x3c7dd2;this[_0x1ae6b7(0x149)](_0x30b406,_0x1909cd,!0x0);}),this[_0x3c7dd2(0x83)](_0x13a952,_0x3c7dd2(0x143),()=>{const _0x506747=_0x3c7dd2;this[_0x506747(0xc0)](),this[_0x506747(0x11f)]();}),this[_0x3c7dd2(0x83)](_0x13a952,_0x3c7dd2(0x80),()=>{const _0xcd6aa2=_0x3c7dd2;if(this[_0xcd6aa2(0x14e)]&&this[_0xcd6aa2(0x14e)][_0xcd6aa2(0x128)][_0xcd6aa2(0xf2)]>0x0){const _0x3eeb0f=this[_0xcd6aa2(0x14e)][_0xcd6aa2(0x128)][this[_0xcd6aa2(0x14e)][_0xcd6aa2(0x128)][_0xcd6aa2(0xf2)]-0x1],_0xc202e2=_0x3eeb0f[_0xcd6aa2(0x93)][0x0];_0xc202e2&&_0xcd6aa2(0xf5)===_0xc202e2[_0xcd6aa2(0x99)]&&_0x3eeb0f[_0xcd6aa2(0x92)](0x0,_0xcd6aa2(0x7c));}this[_0xcd6aa2(0xc0)](),this[_0xcd6aa2(0xca)](),this[_0xcd6aa2(0x90)](_0x13a952);}),this[_0x3c7dd2(0x152)](_0x7290d0,_0x5d3177,_0x29d55c,_0x13a952,_0xdf3361);}[_0x15699c(0xf0)](_0x25f737,_0x4b5e1b,_0xf6a2a3){const _0x113458=_0x15699c,_0x55ffb9=this[_0x113458(0xc5)][_0x113458(0x110)][_0x113458(0xd4)](_0x4b5e1b,_0xf6a2a3)[_0x113458(0xe4)](),_0x512889=_0x55ffb9['is'](_0x113458(0xdc))?[]:_0x55ffb9[_0x113458(0xe1)]({'includeSelf':!0x0})[_0x113458(0x8b)](0x1);if(_0x512889[_0x113458(0xf2)]){const _0x1e52a3=_0x512889[_0x113458(0xdf)](_0x4a7a83=>_0x4a7a83[_0x113458(0xa7)](!0x1));for(let _0x59d511=0x1;_0x59d511<_0x1e52a3[_0x113458(0xf2)];_0x59d511++)_0x1e52a3[_0x59d511-0x1][_0x113458(0x145)](_0x1e52a3[_0x59d511]);return _0x1e52a3[_0x1e52a3[_0x113458(0xf2)]-0x1][_0x113458(0x145)](_0x25f737),new _0xfff49a(_0x1e52a3[0x0]);}return _0x25f737;}async[_0x15699c(0x152)](_0x184c3e,_0x37226e,_0x3a4495,_0x13990b,_0x4a5cb6){const _0x14d08a=_0x15699c,_0xa7350f=this[_0x14d08a(0xc5)];this[_0x14d08a(0x10c)]={'action':_0x4a5cb6,'content':_0x184c3e,'version':_0x37226e,'mainView':_0x3a4495,'aiBalloon':_0x13990b};const _0x127853=new _0x24b997({'connector':this[_0x14d08a(0x100)],'editor':_0xa7350f,'content':_0x184c3e,'version':_0x37226e,..._0x4a5cb6});this[_0x14d08a(0xbc)][_0x14d08a(0xde)](_0x127853),_0x3a4495[_0x14d08a(0x137)]();const _0x1b7488=(_0x6a20f,_0x265e00,_0x30c0e1=!0x1,_0x219740=_0x14d08a(0xd0))=>this[_0x14d08a(0x147)][_0x14d08a(0x13b)](async _0x4733cd=>{const _0x56a7fa=_0x14d08a;try{const _0x33fbb2=_0x1a3a0a({'editor':_0xa7350f,'changeGroups':_0x6a20f[_0x56a7fa(0x93)],'documentContextContent':_0x6a20f[_0x56a7fa(0x10e)],'showDiff':_0x30c0e1,'trimUnchanged':!0x1});await _0x265e00[_0x56a7fa(0x9e)]({'parts':_0x33fbb2,'renderingStrategy':_0x219740,'abortSignal':_0x4733cd});}catch(_0x47f914){if(this[_0x56a7fa(0x95)](_0x47f914))return;throw _0x47f914;}});this[_0x14d08a(0x14e)]['on'](_0x14d08a(0x9c),(_0x23e842,_0x3279d0)=>{const _0x31a5b0=_0x14d08a;_0x3a4495[_0x31a5b0(0x10a)](),_0x13990b[_0x31a5b0(0x6f)](),_0x1b7488(_0x3279d0,_0x3a4495)[_0x31a5b0(0x98)](_0x5eeae8=>{const _0x2e360b=_0x31a5b0;this[_0x2e360b(0x95)](_0x5eeae8)||(console[_0x2e360b(0xd2)](_0x2e360b(0x138),_0x5eeae8),this[_0x2e360b(0x13e)](_0x127853,_0x3a4495));});}),this[_0x14d08a(0x14e)]['on'](_0x14d08a(0x11c),(_0x5beea3,_0x251136)=>{const _0x2f00c6=_0x14d08a;_0x1b7488(_0x251136,_0x3a4495)[_0x2f00c6(0x98)](_0x3c940e=>{const _0x528e99=_0x2f00c6;this[_0x528e99(0x95)](_0x3c940e)||(console[_0x528e99(0xd2)](_0x528e99(0x10f),_0x3c940e),this[_0x528e99(0x13e)](_0x127853,_0x3a4495));});}),this[_0x14d08a(0x14e)]['on'](_0x14d08a(0xda),async()=>{const _0x1a0eaf=_0x14d08a;try{await this[_0x1a0eaf(0x116)](_0x3a4495,_0x13990b),this[_0x1a0eaf(0x135)](),await this[_0x1a0eaf(0x147)][_0x1a0eaf(0x13a)];}catch(_0x1e5bd9){this[_0x1a0eaf(0x95)](_0x1e5bd9)||(console[_0x1a0eaf(0xd2)](_0x1a0eaf(0x12a),_0x1e5bd9),this[_0x1a0eaf(0x13e)](_0x127853,_0x3a4495));}finally{_0x13990b[_0x1a0eaf(0x81)]();}}),this[_0x14d08a(0x83)](_0x3a4495,_0x14d08a(0xac),async(_0x6ed8f1,{showDiff:_0x20e440})=>{const _0x472b8b=_0x14d08a;try{this[_0x472b8b(0xba)]=_0x20e440;const _0x9a7266=this[_0x472b8b(0x14e)][_0x472b8b(0x128)][this[_0x472b8b(0x14e)][_0x472b8b(0x128)][_0x472b8b(0xf2)]-0x1];_0x9a7266&&await _0x1b7488(_0x9a7266,_0x3a4495,_0x20e440,_0x472b8b(0xa3));}catch(_0x4e669c){this[_0x472b8b(0x95)](_0x4e669c)||(console[_0x472b8b(0xd2)](_0x472b8b(0x14d),_0x4e669c),this[_0x472b8b(0x13e)](_0x127853,_0x3a4495));}}),this[_0x14d08a(0x14e)]['on'](_0x14d08a(0xec),(_0xedfec1,{reply:_0x366569})=>{const _0x11cb93=_0x14d08a,_0x45de41={'positiveCount':_0x366569[_0x11cb93(0x93)][_0x11cb93(0xdb)](_0x449f02=>_0x11cb93(0x14a)===_0x449f02[_0x11cb93(0x99)])[_0x11cb93(0xf2)],'totalCount':_0x366569[_0x11cb93(0x93)][_0x11cb93(0xf2)]},_0x574168=this[_0x11cb93(0x14e)][_0x11cb93(0x8d)],_0x355eae=this[_0x11cb93(0x14e)][_0x11cb93(0x112)];_0x355eae?this[_0x11cb93(0x100)][_0x11cb93(0x151)](_0x355eae,_0x574168,_0x45de41):this[_0x11cb93(0x100)][_0x11cb93(0xd8)](_0x574168,_0x45de41);}),this[_0x14d08a(0x109)](_0x3a4495,_0x13990b);try{const _0x5bf241=await this[_0x14d08a(0x14e)][_0x14d08a(0xc3)]();return this[_0x14d08a(0x135)](),_0x5bf241;}catch(_0x1ddd2b){if(this[_0x14d08a(0x95)](_0x1ddd2b))return;_0x3a4495[_0x14d08a(0x10a)](),this[_0x14d08a(0x13e)](_0x127853,_0x3a4495);}}[_0x15699c(0x149)](_0x186082,_0x2871e7,_0xcb42f6){const _0x586651=_0x15699c,_0x11a01e=this[_0x586651(0xc5)];if(_0xcb42f6&&!_0x11a01e[_0x586651(0xfc)][_0x586651(0xee)](_0x586651(0x106)))throw new _0x4d887a(_0x586651(0xf9),null);const _0x25b038=this[_0x586651(0xc5)][_0x586651(0xfc)][_0x586651(0x133)](_0x435b1a),_0x4dd592=this[_0x586651(0x14e)],_0xa0cff4=this[_0x586651(0x14e)][_0x586651(0x128)][this[_0x586651(0x14e)][_0x586651(0x128)][_0x586651(0xf2)]-0x1],_0x2b29cd=_0xa0cff4[_0x586651(0x93)];_0xa0cff4[_0x586651(0x92)](0x0,_0x586651(0x14a));let _0x967939=_0x26bc6f({'editor':_0x11a01e,'reply':_0xa0cff4,'interaction':_0x4dd592,'groups':_0x2b29cd,'transform':!0x1,'documentCompare':_0x25b038,'documentCompareOptions':{'anchor':_0x11a01e[_0x586651(0x110)][_0x586651(0xf7)](_0x186082,0x0),'markDeletions':_0xcb42f6}});_0x967939=this[_0x586651(0x76)](_0x967939,_0x2871e7);for(const _0x56b406 of _0x967939)this[_0x586651(0x148)](_0x2871e7,_0x56b406,_0x11a01e[_0x586651(0x110)][_0x586651(0x113)][_0x586651(0x123)]());const _0x83803c=_0x4dd592[_0x586651(0x8e)]()[_0x586651(0xeb)],_0x5114ef=_0x11a01e[_0x586651(0x110)][_0x586651(0x113)][_0x586651(0x13f)][_0x586651(0x70)](_0x83803c),_0x1026be={'document':_0x11a01e[_0x586651(0x110)][_0x586651(0x113)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x5e3e2e=_0x166bbc(_0x967939,_0x5114ef,_0x1026be)[_0x586651(0x156)];_0x11a01e[_0x586651(0x110)][_0x586651(0xad)](_0x2bacc1=>{const _0x2f37c0=_0x586651;if(_0x2bacc1[_0x2f37c0(0xea)](_0x11a01e[_0x2f37c0(0x110)][_0x2f37c0(0x113)][_0x2f37c0(0x8c)][_0x2f37c0(0x127)]),_0xcb42f6)_0x11a01e[_0x2f37c0(0xfc)][_0x2f37c0(0x133)](_0x2f37c0(0x130))[_0x2f37c0(0x11a)](_0x5e3e2e);else{for(const _0x4b48a9 of _0x5e3e2e)_0x4b48a9[_0x2f37c0(0x139)]=_0x11a01e[_0x2f37c0(0x110)][_0x2f37c0(0x113)][_0x2f37c0(0xeb)],_0x29862d(_0x11a01e,_0x4b48a9),_0x2bacc1[_0x2f37c0(0x87)][_0x2f37c0(0xcf)](_0x4b48a9),_0x11a01e[_0x2f37c0(0x110)][_0x2f37c0(0xae)](_0x4b48a9);}}),this[_0x586651(0xc5)][_0x586651(0xfc)][_0x586651(0x133)](_0x586651(0xbb))[_0x586651(0xa2)]();}[_0x15699c(0x76)](_0x109e30,_0x57bea5){const _0x4ca8fd=_0x15699c;return _0x109e30[_0x4ca8fd(0xdb)](_0x1e100f=>{const _0x1a9c4=_0x4ca8fd;if(_0x1a9c4(0xff)==_0x1e100f[_0x1a9c4(0x86)]){const _0x149b68=_0x1e100f[_0x1a9c4(0x71)][_0x1a9c4(0xbf)];return!_0x57bea5[_0x1a9c4(0xee)](_0x149b68);}if(_0x1e100f[_0x1a9c4(0x86)][_0x1a9c4(0xc8)](_0x1a9c4(0xb0))>-0x1){const _0x245f5d=_0x1e100f[_0x1a9c4(0xcd)][_0x1a9c4(0xc3)][_0x1a9c4(0xbf)];return!_0x57bea5[_0x1a9c4(0xee)](_0x245f5d);}return!0x0;});}[_0x15699c(0x148)](_0x2e7d70,_0x20a9d3,_0x1a012a){const _0xe0b7e0=_0x15699c,_0x2532f6=_0x20a9d3[_0xe0b7e0(0xa5)]();for(const _0x4b5987 in _0x20a9d3){const _0x919b4c=_0x20a9d3[_0x4b5987];_0x919b4c instanceof _0x2c2dcc?_0x20a9d3[_0x4b5987]=new _0x2c2dcc(_0x408812(_0x919b4c[_0xe0b7e0(0xc3)]),_0x408812(_0x919b4c[_0xe0b7e0(0x12e)])):_0x919b4c instanceof _0x5f0b22&&(_0x20a9d3[_0x4b5987]=_0x408812(_0x919b4c));}if([_0xe0b7e0(0x73),_0xe0b7e0(0x11e),_0xe0b7e0(0xaa),_0xe0b7e0(0xe7),_0xe0b7e0(0x11d),_0xe0b7e0(0x108)][_0xe0b7e0(0x10d)](_0x2532f6[_0xe0b7e0(0x86)])){if(_0x2532f6[_0xe0b7e0(0x12c)]=!0x1,_0x2532f6[_0xe0b7e0(0x139)]=null,_0xe0b7e0(0xaa)==_0x2532f6[_0xe0b7e0(0x86)]){const _0x3ea1ff=_0x2532f6[_0xe0b7e0(0xe2)],_0x3cdb30=_0x2532f6[_0xe0b7e0(0xf8)];new _0x5e5347(_0x3ea1ff,_0x3cdb30)[_0xe0b7e0(0x157)]();}else _0x2532f6[_0xe0b7e0(0x157)]();}function _0x408812(_0xc0f936){const _0x1927ec=_0xe0b7e0;if(_0x1927ec(0x7a)==_0xc0f936[_0x1927ec(0xfe)][_0x1927ec(0xc7)])return _0xc0f936;const _0x2310c6=[];let _0x36e519=_0xc0f936[_0x1927ec(0xfe)];for(let _0x25f98b=0x0;_0x25f98b<_0xc0f936[_0x1927ec(0xe5)][_0x1927ec(0xf2)];_0x25f98b++){const _0x51ed44=_0x2e7d70[_0x1927ec(0x133)](_0x36e519)||0x0;_0x2310c6[_0x25f98b]=_0xc0f936[_0x1927ec(0xe5)][_0x25f98b]+_0x51ed44,_0x36e519=_0x36e519[_0x1927ec(0xcb)](_0xc0f936[_0x1927ec(0xe5)][_0x25f98b]);}return new _0x5f0b22(_0x1a012a,_0x2310c6,_0xc0f936[_0x1927ec(0xce)]);}}[_0x15699c(0xe0)](){const _0x584631=_0x15699c;if(!this[_0x584631(0x10c)])return;this[_0x584631(0xbc)][_0x584631(0xf2)]>0x0&&this[_0x584631(0xc0)](),this[_0x584631(0xa8)]=0x0,this[_0x584631(0xba)]=!0x1;const {action:_0x12b2a0,content:_0x472045,version:_0x2dc08e,mainView:_0x592290,aiBalloon:_0x2934e5}=this[_0x584631(0x10c)];_0x592290[_0x584631(0xfb)]=!0x1,_0x592290[_0x584631(0x137)](),this[_0x584631(0x121)](_0x592290,_0x2934e5);const _0x4a5ec2=_0x592290;_0x4a5ec2[_0x584631(0xdd)]&&_0x4a5ec2[_0x584631(0xdd)][_0x584631(0x13d)]&&_0x4a5ec2[_0x584631(0xdd)][_0x584631(0x13d)][_0x584631(0x114)]({'isOn':!0x1,'icon':_0x176190}),this[_0x584631(0x78)](_0x592290),_0x592290[_0x584631(0x9a)](),this[_0x584631(0x135)](),this[_0x584631(0x90)](_0x592290),this[_0x584631(0x152)](_0x472045,_0x2dc08e,_0x592290,_0x2934e5,_0x12b2a0)[_0x584631(0x98)](_0x4003e8=>{const _0x316baf=_0x584631;this[_0x316baf(0x95)](_0x4003e8)||console[_0x316baf(0xd2)](_0x316baf(0x75),_0x4003e8);});}[_0x15699c(0x78)](_0x2669f9){const _0xbd48c8=_0x15699c,_0x504a17=_0x2669f9[_0xbd48c8(0x9d)][_0xbd48c8(0x7f)];for(;_0x504a17[_0xbd48c8(0xf2)]>0x0;)_0x504a17[_0xbd48c8(0xaa)](_0x504a17[_0xbd48c8(0x9f)]);_0x2669f9[_0xbd48c8(0x9d)][_0xbd48c8(0x85)]=!0x1;}[_0x15699c(0x95)](_0x39df35){const _0x7dd49f=_0x15699c;return!!_0x39df35[_0x7dd49f(0x11b)]&&_0x39df35[_0x7dd49f(0x11b)][_0x7dd49f(0xd5)](_0x7dd49f(0x101));}[_0x15699c(0xca)](){const _0x2b3a3d=_0x15699c;this[_0x2b3a3d(0xbc)]=[],this[_0x2b3a3d(0x10c)]=void 0x0,this[_0x2b3a3d(0xa8)]=0x0,this[_0x2b3a3d(0x135)]();}[_0x15699c(0xc0)](){const _0x2beac4=_0x15699c;this[_0x2beac4(0x14e)]&&this[_0x2beac4(0x14e)][_0x2beac4(0x103)](),this[_0x2beac4(0x147)][_0x2beac4(0x129)](),this[_0x2beac4(0x154)]=!0x1,this[_0x2beac4(0x10c)]&&this[_0x2beac4(0x10c)][_0x2beac4(0x14f)][_0x2beac4(0x81)]();}[_0x15699c(0xb8)](){const _0xe9df56=_0x15699c,_0x19623e=new _0x59578d(this[_0xe9df56(0xc5)][_0xe9df56(0x105)]),_0x2a4def=new _0x59578d(this[_0xe9df56(0xc5)][_0xe9df56(0x105)]),_0x5ea1bf=new _0x521294(this[_0xe9df56(0xc5)][_0xe9df56(0x105)]),_0x4a2308=new _0x59578d(this[_0xe9df56(0xc5)][_0xe9df56(0x105)]);_0x19623e[_0xe9df56(0x114)]({'icon':_0x373bb4,'label':_0x5467a6(this[_0xe9df56(0xc5)][_0xe9df56(0x105)],_0xe9df56(0xa9)),'tooltip':!0x0,'class':_0xe9df56(0xbd)}),_0x2a4def[_0xe9df56(0x114)]({'icon':_0x4ee518,'tooltip':_0x5467a6(this[_0xe9df56(0xc5)][_0xe9df56(0x105)],_0xe9df56(0xf6)),'class':_0xe9df56(0x141)}),_0x5ea1bf[_0xe9df56(0xef)]({'tag':_0xe9df56(0x82),'attributes':{'class':[_0xe9df56(0xb5)]},'children':[_0xe9df56(0x91)]}),_0x4a2308[_0xe9df56(0x114)]({'icon':_0x4a4848,'tooltip':_0x5467a6(this[_0xe9df56(0xc5)][_0xe9df56(0x105)],_0xe9df56(0xe9)),'class':_0xe9df56(0x15c)}),_0x19623e[_0xe9df56(0x117)](_0xe9df56(0x120))['to'](this,_0xe9df56(0x154),_0x2bb25e=>!_0x2bb25e),_0x19623e['on'](_0xe9df56(0x9b),()=>{const _0x1e25f6=_0xe9df56;this[_0x1e25f6(0xe0)]();}),_0x2a4def[_0xe9df56(0x117)](_0xe9df56(0x120))['to'](this,_0xe9df56(0x154),_0x25c7d1=>!_0x25c7d1),_0x2a4def['on'](_0xe9df56(0x9b),()=>{const _0x49cefb=_0xe9df56;this[_0x49cefb(0x77)]();}),_0x4a2308[_0xe9df56(0x117)](_0xe9df56(0x120))['to'](this,_0xe9df56(0x154),_0x49af4e=>!_0x49af4e),_0x4a2308['on'](_0xe9df56(0x9b),()=>{const _0x192cfe=_0xe9df56;this[_0x192cfe(0xe8)]();}),this[_0xe9df56(0x146)]=_0x2a4def,this[_0xe9df56(0xb6)]=_0x5ea1bf,this[_0xe9df56(0x10b)]=_0x4a2308,this[_0xe9df56(0x74)][_0xe9df56(0x144)](_0x19623e);}[_0x15699c(0x77)](){const _0xd757d5=_0x15699c,_0x5d0bce=this[_0xd757d5(0xbc)][_0xd757d5(0xf2)];this[_0xd757d5(0xa8)]<_0x5d0bce-0x1&&this[_0xd757d5(0xb3)](this[_0xd757d5(0xa8)]+0x1);}[_0x15699c(0xe8)](){const _0x1cdb87=_0x15699c;this[_0x1cdb87(0xa8)]>0x0&&this[_0x1cdb87(0xb3)](this[_0x1cdb87(0xa8)]-0x1);}async[_0x15699c(0xb3)](_0x28938a){const _0x16817a=_0x15699c;if(!this[_0x16817a(0x10c)])return;this[_0x16817a(0xa8)]=_0x28938a;const {mainView:_0x5279b1}=this[_0x16817a(0x10c)],_0x28da9b=this[_0x16817a(0xbc)][this[_0x16817a(0xbc)][_0x16817a(0xf2)]-0x1-this[_0x16817a(0xa8)]];if(!_0x28da9b)return;if(_0x28da9b[_0x16817a(0x119)])return this[_0x16817a(0x13e)](_0x28da9b,_0x5279b1),void this[_0x16817a(0x135)]();if(!_0x28da9b[_0x16817a(0x128)][_0x16817a(0xf2)])return;_0x5279b1[_0x16817a(0x137)](),this[_0x16817a(0x10c)]&&this[_0x16817a(0x121)](_0x5279b1,this[_0x16817a(0x10c)][_0x16817a(0x14f)]);const _0x201152=_0x28da9b[_0x16817a(0x128)][_0x28da9b[_0x16817a(0x128)][_0x16817a(0xf2)]-0x1];if(_0x201152){const _0x568cf2=this[_0x16817a(0xc5)];this[_0x16817a(0x78)](_0x5279b1);try{const _0x776a21=_0x1a3a0a({'editor':_0x568cf2,'changeGroups':_0x201152[_0x16817a(0x93)],'documentContextContent':_0x201152[_0x16817a(0x10e)],'showDiff':this[_0x16817a(0xba)],'trimUnchanged':!0x1});this[_0x16817a(0x78)](_0x5279b1),await new Promise(_0x58bdcd=>setTimeout(_0x58bdcd,0x32)),await _0x5279b1[_0x16817a(0x9e)]({'parts':_0x776a21,'renderingStrategy':_0x16817a(0xa3),'abortSignal':new AbortController()[_0x16817a(0xd3)]});}catch(_0x146f62){this[_0x16817a(0x95)](_0x146f62)||console[_0x16817a(0xd2)](_0x16817a(0xed),_0x146f62);}}this[_0x16817a(0x135)]();}[_0x15699c(0x135)](){const _0x40a260=_0x15699c;if(!this[_0x40a260(0x146)]||!this[_0x40a260(0xb6)]||!this[_0x40a260(0x10b)])return;const _0x10098c=this[_0x40a260(0xbc)][_0x40a260(0xf2)],_0x47058b=_0x10098c>0x1,_0xbc8bc3=this[_0x40a260(0x10c)]?.[_0x40a260(0xcc)];if(_0x47058b){this[_0x40a260(0xb4)]||this[_0x40a260(0x15b)]||this[_0x40a260(0x7e)]||(this[_0x40a260(0x74)][_0x40a260(0x144)](this[_0x40a260(0x146)]),_0xbc8bc3?.[_0x40a260(0xc1)](this[_0x40a260(0x146)]),this[_0x40a260(0xb4)]=!0x0,this[_0x40a260(0x74)][_0x40a260(0x144)](this[_0x40a260(0xb6)]),_0xbc8bc3?.[_0x40a260(0xc1)](this[_0x40a260(0xb6)]),this[_0x40a260(0x15b)]=!0x0,this[_0x40a260(0x74)][_0x40a260(0x144)](this[_0x40a260(0x10b)]),_0xbc8bc3?.[_0x40a260(0xc1)](this[_0x40a260(0x10b)]),this[_0x40a260(0x7e)]=!0x0);const _0x4a48be=_0x10098c-this[_0x40a260(0xa8)];this[_0x40a260(0xb6)][_0x40a260(0xfa)]&&(this[_0x40a260(0xb6)][_0x40a260(0xfa)][_0x40a260(0x79)]=_0x4a48be+'/'+_0x10098c),this[_0x40a260(0x146)][_0x40a260(0x120)]=this[_0x40a260(0xa8)]<_0x10098c-0x1,this[_0x40a260(0x10b)][_0x40a260(0x120)]=this[_0x40a260(0xa8)]>0x0;}else(this[_0x40a260(0xb4)]||this[_0x40a260(0x15b)]||this[_0x40a260(0x7e)])&&(this[_0x40a260(0x74)][_0x40a260(0xaa)](this[_0x40a260(0x146)]),_0xbc8bc3?.[_0x40a260(0xb7)](this[_0x40a260(0x146)]),this[_0x40a260(0xb4)]=!0x1,this[_0x40a260(0x74)][_0x40a260(0xaa)](this[_0x40a260(0xb6)]),_0xbc8bc3?.[_0x40a260(0xb7)](this[_0x40a260(0xb6)]),this[_0x40a260(0x15b)]=!0x1,this[_0x40a260(0x74)][_0x40a260(0xaa)](this[_0x40a260(0x10b)]),_0xbc8bc3?.[_0x40a260(0xb7)](this[_0x40a260(0x10b)]),this[_0x40a260(0x7e)]=!0x1);}[_0x15699c(0x109)](_0x58e81d,_0x4764bd){const _0x438ad8=_0x15699c;_0x58e81d[_0x438ad8(0x96)](),_0x4764bd[_0x438ad8(0x107)][_0x438ad8(0x96)](),this[_0x438ad8(0x154)]=!0x0;}async[_0x15699c(0x13e)](_0x2d9eb8,_0xce8c1a){const _0x5b7cb8=_0x15699c,_0x3e36c2=_0x5467a6(this[_0x5b7cb8(0xc5)][_0x5b7cb8(0x105)],_0x5b7cb8(0x12b));_0xce8c1a[_0x5b7cb8(0x12d)](_0x3e36c2),_0x2d9eb8[_0x5b7cb8(0x119)]=!0x0,await this[_0x5b7cb8(0x147)][_0x5b7cb8(0x13a)],_0xce8c1a[_0x5b7cb8(0xa1)](),this[_0x5b7cb8(0x10c)]?.[_0x5b7cb8(0x14f)][_0x5b7cb8(0x107)][_0x5b7cb8(0xc2)]&&(this[_0x5b7cb8(0x10c)][_0x5b7cb8(0x14f)][_0x5b7cb8(0x107)][_0x5b7cb8(0xc2)][_0x5b7cb8(0x14c)]=!0x0);}[_0x15699c(0x121)](_0x2a89cb,_0x235161){const _0x3c4163=_0x15699c;_0x2a89cb[_0x3c4163(0x89)](),_0x235161[_0x3c4163(0x107)][_0x3c4163(0xc2)]&&(_0x235161[_0x3c4163(0x107)][_0x3c4163(0xc2)][_0x3c4163(0x14c)]=!0x1);}async[_0x15699c(0x116)](_0x243354,_0x28cc23){const _0x4ac9c6=_0x15699c;await this[_0x4ac9c6(0x147)][_0x4ac9c6(0x13a)],this[_0x4ac9c6(0x154)]=!0x1,_0x243354[_0x4ac9c6(0x122)](),_0x28cc23[_0x4ac9c6(0x107)][_0x4ac9c6(0x122)]();}[_0x15699c(0x11f)](){const _0x4d437f=_0x15699c;this[_0x4d437f(0x74)][_0x4d437f(0x12f)](_0xd4a0b6=>{const _0x536474=_0x4d437f;_0x536474(0x120)in _0xd4a0b6&&(_0xd4a0b6[_0x536474(0x120)]=!0x1);});}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import { AIInteraction, type AIInteractionOptions } from '../../aicore/model/aiinteraction.js';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb23c64=_0x50d4;function _0x50d4(_0x2c983a,_0x1afbca){const _0x4113a5=_0x4113();return _0x50d4=function(_0x50d48e,_0x6c22a){_0x50d48e=_0x50d48e-0xab;let _0x25ea13=_0x4113a5[_0x50d48e];return _0x25ea13;},_0x50d4(_0x2c983a,_0x1afbca);}(function(_0x2e14d9,_0x5c9bea){const _0x291a36=_0x50d4,_0x46c8d4=_0x2e14d9();while(!![]){try{const _0x581fe2=parseInt(_0x291a36(0xc3))/0x1*(-parseInt(_0x291a36(0xc4))/0x2)+-parseInt(_0x291a36(0xac))/0x3*(parseInt(_0x291a36(0xae))/0x4)+-parseInt(_0x291a36(0xca))/0x5*(parseInt(_0x291a36(0xbe))/0x6)+-parseInt(_0x291a36(0xb7))/0x7+parseInt(_0x291a36(0xb4))/0x8+-parseInt(_0x291a36(0xaf))/0x9*(parseInt(_0x291a36(0xbb))/0xa)+parseInt(_0x291a36(0xcc))/0xb;if(_0x581fe2===_0x5c9bea)break;else _0x46c8d4['push'](_0x46c8d4['shift']());}catch(_0x5d2150){_0x46c8d4['push'](_0x46c8d4['shift']());}}}(_0x4113,0x2f775));function _0x4113(){const _0x345647=['executeCustomAction','40xBOyKB','TEXT','content','12hxKeEB','Current\x20document','executeAction','createReply','delegate','3957KXJJrH','134eIzdSH','replyCreated','editor','replies','model','sendRequest','96095WJWova','args','6083341UOtRIY','current-document','5028PPEOHM','connector','284wMAKNS','317043zarznR','hasError','getDocumentContext','userMessage','html','2600656vvdRys','actionName','version','841617TmxzXN','fire','push'];_0x4113=function(){return _0x345647;};return _0x4113();}import{AIInteraction as _0x6a2d8b,AI_MODEL_EVENT_NAMES as _0xc89ae5}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x591768}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x17b693}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x6a2d8b{[_0xb23c64(0xbd)];[_0xb23c64(0xb6)];[_0xb23c64(0xb5)];[_0xb23c64(0xcb)];[_0xb23c64(0xb2)];[_0xb23c64(0xc8)];[_0xb23c64(0xb0)]=!0x1;constructor(_0x450d08){const _0x34495c=_0xb23c64;super(_0x450d08),this[_0x34495c(0xbd)]=_0x450d08[_0x34495c(0xbd)],this[_0x34495c(0xb6)]=_0x450d08[_0x34495c(0xb6)],this[_0x34495c(0xb5)]=_0x450d08[_0x34495c(0xb5)],this[_0x34495c(0xcb)]=_0x450d08[_0x34495c(0xcb)],this[_0x34495c(0xb2)]=_0x450d08[_0x34495c(0xb2)],this[_0x34495c(0xc8)]=_0x450d08[_0x34495c(0xc8)];}async[_0xb23c64(0xc9)](){const _0x185464=_0xb23c64;return this[_0x185464(0xb5)]?this[_0x185464(0xad)][_0x185464(0xc0)]({'content':this[_0x185464(0xbd)],'actionName':this[_0x185464(0xb5)],'args':this[_0x185464(0xcb)]}):this[_0x185464(0xad)][_0x185464(0xba)]({'content':this[_0x185464(0xbd)],'message':this[_0x185464(0xb2)],'model':this[_0x185464(0xc8)],'outputFormat':_0x185464(0xb3)});}[_0xb23c64(0xb1)](){const _0x10fa39=_0xb23c64;return{'type':_0x591768[_0x10fa39(0xbc)],'content':this[_0x10fa39(0xbd)],'version':this[_0x10fa39(0xb6)],'label':_0x10fa39(0xbf),'uiId':_0x10fa39(0xab)};}[_0xb23c64(0xc1)](_0x43b214){const _0x240e89=_0xb23c64,_0x422f4f=new _0x17b693({'editor':this[_0x240e89(0xc6)],'documentContextContent':this[_0x240e89(0xbd)],..._0x43b214});return this[_0x240e89(0xc7)][_0x240e89(0xb9)](_0x422f4f),_0x422f4f[_0x240e89(0xc2)](..._0xc89ae5)['to'](this),this[_0x240e89(0xb8)](_0x240e89(0xc5),_0x422f4f),_0x422f4f;}}
23
+ const _0x336a7f=_0x287b;function _0x2d87(){const _0xced1d1=['sendRequest','editor','2BdjDcL','html','replies','actionName','19530JqtPCh','connector','executeAction','1555wZlLYz','replyCreated','createReply','55ihSAyz','getDocumentContext','content','184dznmFR','model','3299604MmDEdV','1642814PFWtZj','executeCustomAction','4892592dMDcJo','TEXT','delegate','push','userMessage','2302840CqBlIu','version','8538vaVBfv','Current\x20document','hasError','current-document','fire','10734230JHdtay','args','45CbGgIs'];_0x2d87=function(){return _0xced1d1;};return _0x2d87();}(function(_0x53e7f1,_0x5bd185){const _0x265df3=_0x287b,_0x1e1403=_0x53e7f1();while(!![]){try{const _0x57847b=parseInt(_0x265df3(0x135))/0x1*(parseInt(_0x265df3(0x145))/0x2)+parseInt(_0x265df3(0x139))/0x3*(-parseInt(_0x265df3(0x142))/0x4)+parseInt(_0x265df3(0x13c))/0x5*(-parseInt(_0x265df3(0x14e))/0x6)+parseInt(_0x265df3(0x144))/0x7+parseInt(_0x265df3(0x14c))/0x8*(-parseInt(_0x265df3(0x132))/0x9)+-parseInt(_0x265df3(0x130))/0xa+-parseInt(_0x265df3(0x13f))/0xb*(-parseInt(_0x265df3(0x147))/0xc);if(_0x57847b===_0x5bd185)break;else _0x1e1403['push'](_0x1e1403['shift']());}catch(_0x57ffa1){_0x1e1403['push'](_0x1e1403['shift']());}}}(_0x2d87,0xdb407));function _0x287b(_0x2a6e9d,_0x5df0f3){const _0x2d871b=_0x2d87();return _0x287b=function(_0x287bb5,_0x2c0bfb){_0x287bb5=_0x287bb5-0x12e;let _0x51eee3=_0x2d871b[_0x287bb5];return _0x51eee3;},_0x287b(_0x2a6e9d,_0x5df0f3);}import{AIInteraction as _0x42f648,AI_MODEL_EVENT_NAMES as _0x23bfd9}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0xf774de}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x2f6a94}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x42f648{[_0x336a7f(0x141)];[_0x336a7f(0x14d)];[_0x336a7f(0x138)];[_0x336a7f(0x131)];[_0x336a7f(0x14b)];[_0x336a7f(0x143)];[_0x336a7f(0x150)]=!0x1;constructor(_0x5a1ad5){const _0x52b7fa=_0x336a7f;super(_0x5a1ad5),this[_0x52b7fa(0x141)]=_0x5a1ad5[_0x52b7fa(0x141)],this[_0x52b7fa(0x14d)]=_0x5a1ad5[_0x52b7fa(0x14d)],this[_0x52b7fa(0x138)]=_0x5a1ad5[_0x52b7fa(0x138)],this[_0x52b7fa(0x131)]=_0x5a1ad5[_0x52b7fa(0x131)],this[_0x52b7fa(0x14b)]=_0x5a1ad5[_0x52b7fa(0x14b)],this[_0x52b7fa(0x143)]=_0x5a1ad5[_0x52b7fa(0x143)];}async[_0x336a7f(0x133)](){const _0x843358=_0x336a7f;return this[_0x843358(0x138)]?this[_0x843358(0x13a)][_0x843358(0x13b)]({'content':this[_0x843358(0x141)],'actionName':this[_0x843358(0x138)],'args':this[_0x843358(0x131)]}):this[_0x843358(0x13a)][_0x843358(0x146)]({'content':this[_0x843358(0x141)],'message':this[_0x843358(0x14b)],'model':this[_0x843358(0x143)],'outputFormat':_0x843358(0x136)});}[_0x336a7f(0x140)](){const _0x26b521=_0x336a7f;return{'type':_0xf774de[_0x26b521(0x148)],'content':this[_0x26b521(0x141)],'version':this[_0x26b521(0x14d)],'label':_0x26b521(0x14f),'uiId':_0x26b521(0x12e)};}[_0x336a7f(0x13e)](_0x59809a){const _0x2a6521=_0x336a7f,_0x4272ee=new _0x2f6a94({'editor':this[_0x2a6521(0x134)],'documentContextContent':this[_0x2a6521(0x141)],..._0x59809a});return this[_0x2a6521(0x137)][_0x2a6521(0x14a)](_0x4272ee),_0x4272ee[_0x2a6521(0x149)](..._0x23bfd9)['to'](this),this[_0x2a6521(0x12f)](_0x2a6521(0x13d),_0x4272ee),_0x4272ee;}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ccd01=_0x113e;function _0x113e(_0x2786f2,_0x212605){const _0x85daa7=_0x85da();return _0x113e=function(_0x113e15,_0xec6257){_0x113e15=_0x113e15-0x15d;let _0x41216c=_0x85daa7[_0x113e15];return _0x41216c;},_0x113e(_0x2786f2,_0x212605);}(function(_0x32ea8a,_0x301250){const _0x136e35=_0x113e,_0x2af4e8=_0x32ea8a();while(!![]){try{const _0x1600a6=parseInt(_0x136e35(0x171))/0x1*(parseInt(_0x136e35(0x170))/0x2)+parseInt(_0x136e35(0x16d))/0x3*(parseInt(_0x136e35(0x168))/0x4)+parseInt(_0x136e35(0x15e))/0x5*(-parseInt(_0x136e35(0x160))/0x6)+parseInt(_0x136e35(0x17a))/0x7+parseInt(_0x136e35(0x178))/0x8*(parseInt(_0x136e35(0x166))/0x9)+parseInt(_0x136e35(0x174))/0xa+-parseInt(_0x136e35(0x172))/0xb*(parseInt(_0x136e35(0x164))/0xc);if(_0x1600a6===_0x301250)break;else _0x2af4e8['push'](_0x2af4e8['shift']());}catch(_0x27aad5){_0x2af4e8['push'](_0x2af4e8['shift']());}}}(_0x85da,0xc8d5b));import{AIReply as _0x113174}from'../../aicore/model/aireply.js';import{getAttribute as _0x5c91bf}from'../../aicore/utils/htmlparser.js';import{uid as _0x128a05}from'ckeditor5/src/utils.js';function _0x85da(){const _0x2e3f39=['updateChangeGroups','parsedContent','34792hKFByg','cloneNode','5379612nqDbSM','isDone','modified','data-id','parsedMergedContent','25yHcVhX','length','1920972AQtqfi','changeGroups','map','removed','12DrHjFu','node','3249ITXqIk','added','4766376YgHdxN','_getDifferentChangeGroups','childNodes','pop','value','3KOONXs','pending','new','501782OHXZgV','2ZHBbbn','25989062LGOfoh','children','7541900TnErAu','documentContextContent'];_0x85da=function(){return _0x2e3f39;};return _0x85da();}import{diffArrays as _0x171802}from'diff';export class AIActionsReply extends _0x113174{[_0x1ccd01(0x176)](){const _0x82cb81=_0x1ccd01;if(this[_0x82cb81(0x15d)]=this[_0x82cb81(0x177)][_0x82cb81(0x179)](!0x0),0x0==this[_0x82cb81(0x15d)][_0x82cb81(0x16a)][_0x82cb81(0x15f)])return void(this[_0x82cb81(0x161)]=[]);const _0x490744=this[_0x82cb81(0x175)][_0x82cb81(0x173)][_0x82cb81(0x162)](_0x4d589e=>({'node':_0x4d589e,'id':_0x5c91bf(_0x4d589e,_0x82cb81(0x17d))})),_0x3cc22f=this[_0x82cb81(0x15d)][_0x82cb81(0x173)][_0x82cb81(0x162)](_0x215160=>({'node':_0x215160,'id':_0x5c91bf(_0x215160,_0x82cb81(0x17d))||_0x128a05()})),_0x3abd10=_0x171802(_0x490744,_0x3cc22f,{'comparator':(_0x315201,_0x5bf377)=>_0x315201['id']==_0x5bf377['id'],'oneChangePerToken':!0x0});if(!this[_0x82cb81(0x17b)]){for(;_0x3abd10[_0x82cb81(0x15f)]&&_0x3abd10[_0x3abd10[_0x82cb81(0x15f)]-0x1][_0x82cb81(0x163)];)_0x3abd10[_0x82cb81(0x16b)]();}const _0x2ee217=_0x3abd10[_0x82cb81(0x162)](_0x4483b3=>{const _0x4b18d8=_0x82cb81,_0x4ba0a3=_0x4483b3[_0x4b18d8(0x167)]?_0x4b18d8(0x16f):_0x4483b3[_0x4b18d8(0x163)]?_0x4b18d8(0x163):_0x4b18d8(0x17c);return{'node':_0x4483b3[_0x4b18d8(0x16c)][0x0][_0x4b18d8(0x165)],'type':_0x4ba0a3,'id':_0x4483b3[_0x4b18d8(0x16c)][0x0]['id']};});this[_0x82cb81(0x161)]=[{'changes':_0x2ee217,'state':_0x82cb81(0x16e),'index':0x0}];}[_0x1ccd01(0x169)](_0x53b0e7,_0x6c3b0c){return _0x6c3b0c;}}
23
+ const _0x1f0389=_0xc2c2;(function(_0x113c52,_0x1958e6){const _0x595d80=_0xc2c2,_0x817fa0=_0x113c52();while(!![]){try{const _0x13b9ac=-parseInt(_0x595d80(0x12b))/0x1+parseInt(_0x595d80(0x121))/0x2+parseInt(_0x595d80(0x115))/0x3*(-parseInt(_0x595d80(0x11d))/0x4)+parseInt(_0x595d80(0x112))/0x5*(-parseInt(_0x595d80(0x12e))/0x6)+parseInt(_0x595d80(0x119))/0x7*(-parseInt(_0x595d80(0x128))/0x8)+parseInt(_0x595d80(0x113))/0x9+-parseInt(_0x595d80(0x130))/0xa*(-parseInt(_0x595d80(0x117))/0xb);if(_0x13b9ac===_0x1958e6)break;else _0x817fa0['push'](_0x817fa0['shift']());}catch(_0x9609){_0x817fa0['push'](_0x817fa0['shift']());}}}(_0x2854,0x52b53));function _0x2854(){const _0x38191a=['_getDifferentChangeGroups','140qrwQGy','children','documentContextContent','parsedContent','698804strnJB','map','new','value','removed','isDone','parsedMergedContent','4683272srQehA','childNodes','pending','615435ixguYD','updateChangeGroups','modified','64302ZGgGEJ','node','627540YvbmCo','data-id','130CyKhNs','3841749aUuNxR','changeGroups','50538suVvry','added','286KTSsPg','cloneNode','7YcDAnd','length','pop'];_0x2854=function(){return _0x38191a;};return _0x2854();}import{AIReply as _0x3a3cda}from'../../aicore/model/aireply.js';import{getAttribute as _0x5d2005}from'../../aicore/utils/htmlparser.js';import{uid as _0x1add32}from'ckeditor5/src/utils.js';function _0xc2c2(_0x165da5,_0x1b2ed8){const _0x2854e6=_0x2854();return _0xc2c2=function(_0xc2c282,_0x241447){_0xc2c282=_0xc2c282-0x112;let _0x363714=_0x2854e6[_0xc2c282];return _0x363714;},_0xc2c2(_0x165da5,_0x1b2ed8);}import{diffArrays as _0x31e26f}from'diff';export class AIActionsReply extends _0x3a3cda{[_0x1f0389(0x12c)](){const _0x20b618=_0x1f0389;if(this[_0x20b618(0x127)]=this[_0x20b618(0x120)][_0x20b618(0x118)](!0x0),0x0==this[_0x20b618(0x127)][_0x20b618(0x129)][_0x20b618(0x11a)])return void(this[_0x20b618(0x114)]=[]);const _0x41558d=this[_0x20b618(0x11f)][_0x20b618(0x11e)][_0x20b618(0x122)](_0xda951c=>({'node':_0xda951c,'id':_0x5d2005(_0xda951c,_0x20b618(0x131))})),_0x48d711=this[_0x20b618(0x127)][_0x20b618(0x11e)][_0x20b618(0x122)](_0x2cccec=>({'node':_0x2cccec,'id':_0x5d2005(_0x2cccec,_0x20b618(0x131))||_0x1add32()})),_0x883529=_0x31e26f(_0x41558d,_0x48d711,{'comparator':(_0x3bd8f2,_0x19b921)=>_0x3bd8f2['id']==_0x19b921['id'],'oneChangePerToken':!0x0});if(!this[_0x20b618(0x126)]){for(;_0x883529[_0x20b618(0x11a)]&&_0x883529[_0x883529[_0x20b618(0x11a)]-0x1][_0x20b618(0x125)];)_0x883529[_0x20b618(0x11b)]();}const _0x56ec6c=_0x883529[_0x20b618(0x122)](_0x358cb8=>{const _0x5cfcb7=_0x20b618,_0x43575f=_0x358cb8[_0x5cfcb7(0x116)]?_0x5cfcb7(0x123):_0x358cb8[_0x5cfcb7(0x125)]?_0x5cfcb7(0x125):_0x5cfcb7(0x12d);return{'node':_0x358cb8[_0x5cfcb7(0x124)][0x0][_0x5cfcb7(0x12f)],'type':_0x43575f,'id':_0x358cb8[_0x5cfcb7(0x124)][0x0]['id']};});this[_0x20b618(0x114)]=[{'changes':_0x56ec6c,'state':_0x20b618(0x12a),'index':0x0}];}[_0x1f0389(0x11c)](_0xed82c0,_0xee7885){return _0xee7885;}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3186(_0x1ce607,_0x1f216b){var _0x4777ec=_0x4777();return _0x3186=function(_0x318634,_0x303c53){_0x318634=_0x318634-0x183;var _0x56efad=_0x4777ec[_0x318634];return _0x56efad;},_0x3186(_0x1ce607,_0x1f216b);}var _0x4ef9bf=_0x3186;(function(_0x34d601,_0x537d52){var _0x521e1d=_0x3186,_0x13cf13=_0x34d601();while(!![]){try{var _0x2da665=-parseInt(_0x521e1d(0x186))/0x1*(parseInt(_0x521e1d(0x196))/0x2)+parseInt(_0x521e1d(0x193))/0x3*(-parseInt(_0x521e1d(0x189))/0x4)+parseInt(_0x521e1d(0x191))/0x5*(parseInt(_0x521e1d(0x190))/0x6)+parseInt(_0x521e1d(0x188))/0x7*(-parseInt(_0x521e1d(0x18b))/0x8)+-parseInt(_0x521e1d(0x18d))/0x9+-parseInt(_0x521e1d(0x18f))/0xa+parseInt(_0x521e1d(0x194))/0xb;if(_0x2da665===_0x537d52)break;else _0x13cf13['push'](_0x13cf13['shift']());}catch(_0xa5e6f1){_0x13cf13['push'](_0x13cf13['shift']());}}}(_0x4777,0x6eab9));import{Plugin as _0x363c6f}from'ckeditor5/src/core.js';import{CKEditorError as _0x57fe6e}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x363c6f{static get[_0x4ef9bf(0x18a)](){var _0x4bf52a=_0x4ef9bf;return _0x4bf52a(0x185);}static get[_0x4ef9bf(0x184)](){return!0x0;}static get[_0x4ef9bf(0x183)](){return!0x0;}[_0x4ef9bf(0x18e)](){var _0x30e4d8=_0x4ef9bf;if(!this[_0x30e4d8(0x187)])throw new _0x57fe6e(_0x30e4d8(0x192),null);}}export class AIRequestError extends Error{constructor(_0x36abf9){var _0x1c71b2=_0x4ef9bf;super(_0x36abf9),this[_0x1c71b2(0x18c)]=_0x1c71b2(0x195);}}function _0x4777(){var _0x2505c2=['391120NWcVEj','1298874CoTpSJ','10znPDPX','aiadapter-text-adapter-not-set','1512uRnqdN','14071673pMjLUv','AIRequestError','4wzPELN','isPremiumPlugin','isOfficialPlugin','AIAdapter','100627EKVoVN','textAdapter','724283qwhOdk','1428pvWYrU','pluginName','40NeXGAo','name','2891313xQWMGk','afterInit'];_0x4777=function(){return _0x2505c2;};return _0x4777();}
23
+ function _0x343c(){var _0x5d1191=['7oFpcqB','AIRequestError','20285HRiJZb','388nRvzHO','AIAdapter','134UpPVni','14086765zHKwiC','aiadapter-text-adapter-not-set','483719vBStbA','afterInit','pluginName','name','1278996LJaXqD','textAdapter','isOfficialPlugin','3452960ifdvJd','isPremiumPlugin','7840ZQYkjO','9243McEhBH','29721BRhoWk'];_0x343c=function(){return _0x5d1191;};return _0x343c();}var _0x497e1a=_0x38cd;(function(_0x57f135,_0x163376){var _0xb53f16=_0x38cd,_0x20e198=_0x57f135();while(!![]){try{var _0x5851a9=parseInt(_0xb53f16(0x1ff))/0x1+parseInt(_0xb53f16(0x1fc))/0x2*(-parseInt(_0xb53f16(0x1f6))/0x3)+parseInt(_0xb53f16(0x1fa))/0x4*(parseInt(_0xb53f16(0x1f9))/0x5)+-parseInt(_0xb53f16(0x203))/0x6*(-parseInt(_0xb53f16(0x1f7))/0x7)+-parseInt(_0xb53f16(0x206))/0x8+-parseInt(_0xb53f16(0x1f5))/0x9*(parseInt(_0xb53f16(0x1f4))/0xa)+parseInt(_0xb53f16(0x1fd))/0xb;if(_0x5851a9===_0x163376)break;else _0x20e198['push'](_0x20e198['shift']());}catch(_0x3ca567){_0x20e198['push'](_0x20e198['shift']());}}}(_0x343c,0x72dc8));function _0x38cd(_0x3cb328,_0x2583f8){var _0x343cad=_0x343c();return _0x38cd=function(_0x38cd15,_0x2efc68){_0x38cd15=_0x38cd15-0x1f4;var _0x8fd1e2=_0x343cad[_0x38cd15];return _0x8fd1e2;},_0x38cd(_0x3cb328,_0x2583f8);}import{Plugin as _0x42f27f}from'ckeditor5/src/core.js';import{CKEditorError as _0x2d5e97}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x42f27f{static get[_0x497e1a(0x201)](){var _0x2798e6=_0x497e1a;return _0x2798e6(0x1fb);}static get[_0x497e1a(0x205)](){return!0x0;}static get[_0x497e1a(0x207)](){return!0x0;}[_0x497e1a(0x200)](){var _0x16b726=_0x497e1a;if(!this[_0x16b726(0x204)])throw new _0x2d5e97(_0x16b726(0x1fe),null);}}export class AIRequestError extends Error{constructor(_0x383433){var _0x6b5d6a=_0x497e1a;super(_0x383433),this[_0x6b5d6a(0x202)]=_0x6b5d6a(0x1f8);}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29577e=_0xc087;(function(_0x919540,_0x8ba195){const _0xbea5f3=_0xc087,_0x2f766a=_0x919540();while(!![]){try{const _0x3f25fa=parseInt(_0xbea5f3(0x1ce))/0x1+-parseInt(_0xbea5f3(0x1d0))/0x2+parseInt(_0xbea5f3(0x1d8))/0x3+-parseInt(_0xbea5f3(0x1d6))/0x4*(-parseInt(_0xbea5f3(0x1cf))/0x5)+parseInt(_0xbea5f3(0x1da))/0x6+parseInt(_0xbea5f3(0x1d9))/0x7+parseInt(_0xbea5f3(0x1dd))/0x8*(-parseInt(_0xbea5f3(0x1e4))/0x9);if(_0x3f25fa===_0x8ba195)break;else _0x2f766a['push'](_0x2f766a['shift']());}catch(_0x290d67){_0x2f766a['push'](_0x2f766a['shift']());}}}(_0x30ef,0x73e8a));function _0x30ef(){const _0x55b25d=['_prepareRequestHeaders','locale','plugins','634372iyyxSM','17350SqyItR','1067194vlfRBE','resolve','abort','assign','abortController','get','376CKVxcs','catch','627339fWguJN','5080369NDPxGW','1427028bwAfya','error','init','243224NzxDgi','AI_ERROR_GET_PARAMETERS','requires','AbortError','object','editor','AI_ERROR_GET_HEADERS','333VKdrTQ','sendRequest','reject','_prepareRequestParameters','signal','application/json','aitextadapter-send-request-failed','textAdapter','name','aborted','makeRequest'];_0x30ef=function(){return _0x55b25d;};return _0x30ef();}import{Plugin as _0x41a1c6}from'ckeditor5/src/core.js';import{CKEditorError as _0x4cbf79}from'ckeditor5/src/utils.js';import{AIAdapter as _0x149510,AIRequestError as _0x587740}from'./aiadapter.js';function _0xc087(_0x2997c6,_0x11a3bc){const _0x30efb6=_0x30ef();return _0xc087=function(_0xc08717,_0xbfb1c){_0xc08717=_0xc08717-0x1c3;let _0x4c39c3=_0x30efb6[_0xc08717];return _0x4c39c3;},_0xc087(_0x2997c6,_0x11a3bc);}import{getTranslation as _0x1b7d7e}from'../utils/common-translations.js';export class AITextAdapter extends _0x41a1c6{[_0x29577e(0x1d4)];static get[_0x29577e(0x1df)](){return[_0x149510];}constructor(_0x162514){const _0x2435e6=_0x29577e;super(_0x162514),this[_0x2435e6(0x1d4)]=new AbortController();}[_0x29577e(0x1dc)](){const _0x44d9ff=_0x29577e;this[_0x44d9ff(0x1e2)][_0x44d9ff(0x1cd)][_0x44d9ff(0x1d5)](_0x149510)[_0x44d9ff(0x1c7)]=this;}[_0x29577e(0x1d2)](){const _0x2cf096=_0x29577e;this[_0x2cf096(0x1d4)][_0x2cf096(0x1c4)][_0x2cf096(0x1c9)]||(this[_0x2cf096(0x1d4)][_0x2cf096(0x1d2)](),this[_0x2cf096(0x1d4)]=new AbortController());}async[_0x29577e(0x1ca)](_0x17cc0d){const _0x30009b=_0x29577e;return this[_0x30009b(0x1e5)](_0x17cc0d)[_0x30009b(0x1d7)](_0x3b1738=>{const _0x45d847=_0x30009b;if(_0x3b1738 instanceof _0x587740)return Promise[_0x45d847(0x1e6)](_0x3b1738);if(_0x45d847(0x1e0)==_0x3b1738[_0x45d847(0x1c8)])return Promise[_0x45d847(0x1d1)]();throw console[_0x45d847(0x1db)](_0x3b1738),new _0x4cbf79(_0x45d847(0x1c6),null);});}async[_0x29577e(0x1cb)](_0x392db9,_0x3220d3){const _0x280b6a=_0x29577e,_0x1953bf=this[_0x280b6a(0x1e2)][_0x280b6a(0x1cc)],_0x4d10d9={'Content-Type':_0x280b6a(0x1c5)};if(_0x280b6a(0x1e1)==typeof _0x392db9)Object[_0x280b6a(0x1d3)](_0x4d10d9,_0x392db9);else{if(_0x392db9)try{const _0x4dd666=await _0x392db9(_0x3220d3);Object[_0x280b6a(0x1d3)](_0x4d10d9,_0x4dd666);}catch{return Promise[_0x280b6a(0x1e6)](new _0x587740(_0x1b7d7e(_0x1953bf,_0x280b6a(0x1e3))));}}return _0x4d10d9;}async[_0x29577e(0x1c3)](_0x3fe48c,_0xe24c52){const _0x203c65=_0x29577e,_0x32afaa=this[_0x203c65(0x1e2)][_0x203c65(0x1cc)];if(_0x203c65(0x1e1)==typeof _0x3fe48c)return _0x3fe48c;try{return await _0x3fe48c(_0xe24c52);}catch{return Promise[_0x203c65(0x1e6)](new _0x587740(_0x1b7d7e(_0x32afaa,_0x203c65(0x1de))));}}}
23
+ const _0x1a1aae=_0xbdff;function _0xbdff(_0x496920,_0x49dddf){const _0x5e92ca=_0x5e92();return _0xbdff=function(_0xbdff77,_0x575bf9){_0xbdff77=_0xbdff77-0x128;let _0x76aeca=_0x5e92ca[_0xbdff77];return _0x76aeca;},_0xbdff(_0x496920,_0x49dddf);}(function(_0x28378b,_0x3fb775){const _0x3793ac=_0xbdff,_0x1a0519=_0x28378b();while(!![]){try{const _0x4d70d0=-parseInt(_0x3793ac(0x12f))/0x1*(-parseInt(_0x3793ac(0x12a))/0x2)+-parseInt(_0x3793ac(0x141))/0x3+-parseInt(_0x3793ac(0x129))/0x4+-parseInt(_0x3793ac(0x130))/0x5*(parseInt(_0x3793ac(0x13d))/0x6)+parseInt(_0x3793ac(0x133))/0x7+parseInt(_0x3793ac(0x137))/0x8+parseInt(_0x3793ac(0x149))/0x9;if(_0x4d70d0===_0x3fb775)break;else _0x1a0519['push'](_0x1a0519['shift']());}catch(_0xff1ec1){_0x1a0519['push'](_0x1a0519['shift']());}}}(_0x5e92,0x92e98));import{Plugin as _0x585efc}from'ckeditor5/src/core.js';import{CKEditorError as _0x5c9f24}from'ckeditor5/src/utils.js';import{AIAdapter as _0x49d498,AIRequestError as _0x224476}from'./aiadapter.js';import{getTranslation as _0x27fb51}from'../utils/common-translations.js';function _0x5e92(){const _0x4bb78f=['5hDWcXE','aborted','makeRequest','6795327yrxsRx','object','reject','AI_ERROR_GET_PARAMETERS','1562144HkfLza','_prepareRequestParameters','plugins','name','abort','signal','1254630IgxTPq','resolve','locale','AbortError','2773677MEOZSe','catch','application/json','get','assign','editor','sendRequest','aitextadapter-send-request-failed','2314971iGaiEP','AI_ERROR_GET_HEADERS','error','_prepareRequestHeaders','2333108LSZefN','358178xkuGjJ','abortController','init','requires','textAdapter','5Bskswy'];_0x5e92=function(){return _0x4bb78f;};return _0x5e92();}export class AITextAdapter extends _0x585efc{[_0x1a1aae(0x12b)];static get[_0x1a1aae(0x12d)](){return[_0x49d498];}constructor(_0x18b3dd){const _0x505388=_0x1a1aae;super(_0x18b3dd),this[_0x505388(0x12b)]=new AbortController();}[_0x1a1aae(0x12c)](){const _0x1d7f70=_0x1a1aae;this[_0x1d7f70(0x146)][_0x1d7f70(0x139)][_0x1d7f70(0x144)](_0x49d498)[_0x1d7f70(0x12e)]=this;}[_0x1a1aae(0x13b)](){const _0x308b39=_0x1a1aae;this[_0x308b39(0x12b)][_0x308b39(0x13c)][_0x308b39(0x131)]||(this[_0x308b39(0x12b)][_0x308b39(0x13b)](),this[_0x308b39(0x12b)]=new AbortController());}async[_0x1a1aae(0x132)](_0x378502){const _0x554ec0=_0x1a1aae;return this[_0x554ec0(0x147)](_0x378502)[_0x554ec0(0x142)](_0x3b00c8=>{const _0x17b016=_0x554ec0;if(_0x3b00c8 instanceof _0x224476)return Promise[_0x17b016(0x135)](_0x3b00c8);if(_0x17b016(0x140)==_0x3b00c8[_0x17b016(0x13a)])return Promise[_0x17b016(0x13e)]();throw console[_0x17b016(0x14b)](_0x3b00c8),new _0x5c9f24(_0x17b016(0x148),null);});}async[_0x1a1aae(0x128)](_0x9ec12,_0x125d1a){const _0x24b152=_0x1a1aae,_0x2565d7=this[_0x24b152(0x146)][_0x24b152(0x13f)],_0x72433c={'Content-Type':_0x24b152(0x143)};if(_0x24b152(0x134)==typeof _0x9ec12)Object[_0x24b152(0x145)](_0x72433c,_0x9ec12);else{if(_0x9ec12)try{const _0x8b2bb6=await _0x9ec12(_0x125d1a);Object[_0x24b152(0x145)](_0x72433c,_0x8b2bb6);}catch{return Promise[_0x24b152(0x135)](new _0x224476(_0x27fb51(_0x2565d7,_0x24b152(0x14a))));}}return _0x72433c;}async[_0x1a1aae(0x138)](_0x16ca07,_0x458582){const _0x488025=_0x1a1aae,_0x300323=this[_0x488025(0x146)][_0x488025(0x13f)];if(_0x488025(0x134)==typeof _0x16ca07)return _0x16ca07;try{return await _0x16ca07(_0x458582);}catch{return Promise[_0x488025(0x135)](new _0x224476(_0x27fb51(_0x300323,_0x488025(0x136))));}}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7a809a=_0x200b;(function(_0x38a87b,_0x2c72cc){const _0x2aa817=_0x200b,_0x85f82a=_0x38a87b();while(!![]){try{const _0x231a50=-parseInt(_0x2aa817(0xab))/0x1+-parseInt(_0x2aa817(0x84))/0x2*(-parseInt(_0x2aa817(0x8a))/0x3)+parseInt(_0x2aa817(0xc6))/0x4+parseInt(_0x2aa817(0xc5))/0x5*(parseInt(_0x2aa817(0xbb))/0x6)+parseInt(_0x2aa817(0xb9))/0x7+parseInt(_0x2aa817(0xc3))/0x8+-parseInt(_0x2aa817(0x93))/0x9;if(_0x231a50===_0x2c72cc)break;else _0x85f82a['push'](_0x85f82a['shift']());}catch(_0x3e5f84){_0x85f82a['push'](_0x85f82a['shift']());}}}(_0x3102,0x51f34));import{AITextAdapter as _0x53f494}from'./aitextadapter.js';import{AIRequestError as _0xc73759}from'./aiadapter.js';import{BedrockRuntimeClient as _0x5105f5,InvokeModelCommand as _0x5b1565,InvokeModelWithResponseStreamCommand as _0x9a153}from'@aws-sdk/client-bedrock-runtime';function _0x200b(_0x570a6e,_0x9e49b5){const _0x310279=_0x3102();return _0x200b=function(_0x200b70,_0x5291a1){_0x200b70=_0x200b70-0x81;let _0x50ca78=_0x310279[_0x200b70];return _0x50ca78;},_0x200b(_0x570a6e,_0x9e49b5);}function _0x3102(){const _0x1aebc1=['_processAWSRequest','bedrock-2023-05-31','parse','Human:\x0a','_prepareRequestParameters','generations','get','7313337ctcrSx','generation','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','editor','abortController','POST','ai.assistant.adapter.aws.apiUrl','Instruction:\x0a','_getGeneratedText','text','config','application/json','_bedrockClientConfig','meta.llama','ai.assistant.adapter.aws.requestParameters','define','chunk','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','anthropic.claude','completions','_requestParameters','_prepareRequestHeaders','\x0a<</SYS>>\x0a[INST]\x0a','bytes','329371pVbwPy','signal','json','split','utf-8','sendRequest','_readStaticResponse','getReader','send','map','\x0a\x0aAssistant:','ai.assistant.adapter.aws.bedrockClientConfig','ai21.j2','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','3810478dIFpgq','completion','524670FvzXvQ','data','cohere.command','preparePrompt','join','\x0a[/INST]','_readAsyncIterableResponse','_processProxyRequest','2404232gIyPEv','test','35WBUzAY','71240DfawBP','body','_readStreamableResponse','_requestHeaders','AI_ERROR_UNSUPPORTED_MODEL','ai.assistant.adapter.aws.requestHeaders','decode','_apiUrl','anthropic.claude-v2','filter','AWSTextAdapter','stringify','<<SYS>>\x0a','5648lOkurr','resolve','pluginName','length','read','locale','3QXZmgu','getModelFamily'];_0x3102=function(){return _0x1aebc1;};return _0x3102();}import{getTranslation as _0x4230e9}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x53f494{[_0x7a809a(0xcd)];[_0x7a809a(0xc9)];[_0x7a809a(0x9f)];[_0x7a809a(0xa7)];static get[_0x7a809a(0x86)](){const _0x4adabf=_0x7a809a;return _0x4adabf(0x81);}constructor(_0x5c7f40){const _0x59591a=_0x7a809a;super(_0x5c7f40),_0x5c7f40[_0x59591a(0x9d)][_0x59591a(0x92)](_0x59591a(0xa1))||_0x5c7f40[_0x59591a(0x9d)][_0x59591a(0xa2)](_0x59591a(0xa1),{'model':_0x59591a(0xce),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x59591a(0x8d),'stream':!0x0}),this[_0x59591a(0xcd)]=_0x5c7f40[_0x59591a(0x9d)][_0x59591a(0x92)](_0x59591a(0x99)),this[_0x59591a(0x9f)]=_0x5c7f40[_0x59591a(0x9d)][_0x59591a(0x92)](_0x59591a(0xb6)),this[_0x59591a(0xc9)]=_0x5c7f40[_0x59591a(0x9d)][_0x59591a(0x92)](_0x59591a(0xcb)),this[_0x59591a(0xa7)]=_0x5c7f40[_0x59591a(0x9d)][_0x59591a(0x92)](_0x59591a(0xa1));}async[_0x7a809a(0xb0)]({query:_0x5c6a13,context:_0x2546b6,onData:_0x2aa22e,actionId:_0x957b97}){const _0x45a50e=_0x7a809a,{model:_0x1cb1c2,stream:_0x3be488,..._0x120346}=await this[_0x45a50e(0x90)](this[_0x45a50e(0xa7)],_0x957b97),_0x244e58={'prompt':await this[_0x45a50e(0xbe)](_0x5c6a13,_0x2546b6,_0x1cb1c2,_0x957b97),..._0x120346};this[_0x45a50e(0xcd)]?await this[_0x45a50e(0xc2)](_0x244e58,_0x1cb1c2,_0x3be488,_0x2aa22e,_0x957b97):await this[_0x45a50e(0x8c)](_0x244e58,_0x1cb1c2,_0x3be488,_0x2aa22e);}async[_0x7a809a(0xbe)](_0x55f60a,_0x5f1fdc,_0x45f58b,_0x4e2864){const _0x5d33f5=_0x7a809a;let _0xa581a4,_0x272f38;return _0x5f1fdc?(_0xa581a4=_0x5d33f5(0x95),_0x272f38=_0x5d33f5(0x9a)+_0x55f60a+_0x5d33f5(0xa4)+_0x5f1fdc):(_0xa581a4=_0x5d33f5(0xb8),_0x272f38=_0x55f60a),_0x5d33f5(0xa0)==this[_0x5d33f5(0x8b)](_0x45f58b)?_0x5d33f5(0x83)+_0xa581a4+_0x5d33f5(0xa9)+_0x272f38+_0x5d33f5(0xc0):_0x5d33f5(0x8f)+_0xa581a4+'\x0a'+_0x272f38+_0x5d33f5(0xb5);}[_0x7a809a(0x8b)](_0x5eb3ff){const _0x4e6eb5=_0x7a809a;if(/^anthropic\.claude/[_0x4e6eb5(0xc4)](_0x5eb3ff))return _0x4e6eb5(0xa5);if(/^ai21\.j2/[_0x4e6eb5(0xc4)](_0x5eb3ff))return _0x4e6eb5(0xb7);if(/^cohere\.command/[_0x4e6eb5(0xc4)](_0x5eb3ff))return _0x4e6eb5(0xbd);if(/^meta\.llama/[_0x4e6eb5(0xc4)](_0x5eb3ff))return _0x4e6eb5(0xa0);throw new _0xc73759(_0x4230e9(this[_0x4e6eb5(0x96)][_0x4e6eb5(0x89)],_0x4e6eb5(0xca),_0x5eb3ff));}async[_0x7a809a(0xc2)](_0x4e4826,_0x37f183,_0x460c20,_0x2589ef,_0x34ff59){const _0x1902d1=_0x7a809a,_0xbb0d2a={'method':_0x1902d1(0x98),'headers':await this[_0x1902d1(0xa8)](this[_0x1902d1(0xc9)],_0x34ff59),'body':JSON[_0x1902d1(0x82)]({..._0x4e4826,'model':_0x37f183,'stream':_0x460c20}),'signal':this[_0x1902d1(0x97)][_0x1902d1(0xac)]},_0xd83714=await fetch(this[_0x1902d1(0xcd)],_0xbb0d2a);_0x460c20?await this[_0x1902d1(0xc8)](_0xd83714,_0x37f183,_0x2589ef):await this[_0x1902d1(0xb1)](_0xd83714,_0x37f183,_0x2589ef);}async[_0x7a809a(0x8c)](_0x3adca7,_0x186fdd,_0x154bd0,_0x3beac9){const _0x1116d1=_0x7a809a,_0xfdd549=new _0x5105f5(this[_0x1116d1(0x9f)]),_0xa0243d={'body':JSON[_0x1116d1(0x82)](_0x3adca7),'contentType':_0x1116d1(0x9e),'accept':_0x1116d1(0x9e),'modelId':_0x186fdd};let _0xdbe903;if(_0x154bd0){const _0x576fde=new _0x9a153(_0xa0243d);_0xdbe903=await _0xfdd549[_0x1116d1(0xb3)](_0x576fde,{'abortSignal':this[_0x1116d1(0x97)][_0x1116d1(0xac)]}),await this[_0x1116d1(0xc1)](_0xdbe903,_0x186fdd,_0x3beac9);}else{const _0x5f3454=new _0x5b1565(_0xa0243d);_0xdbe903=await _0xfdd549[_0x1116d1(0xb3)](_0x5f3454,{'abortSignal':this[_0x1116d1(0x97)][_0x1116d1(0xac)]}),await this[_0x1116d1(0xb1)](_0xdbe903,_0x186fdd,_0x3beac9);}}async[_0x7a809a(0xc1)](_0x5e9ad6,_0x3b6df6,_0x27cc4d){const _0x2cc3e1=_0x7a809a,_0x4598b3=_0x5e9ad6[_0x2cc3e1(0xc7)],_0x3fbb12=new TextDecoder(_0x2cc3e1(0xaf));let _0x3c35d0='';for await(const _0x14b943 of _0x4598b3)if(_0x14b943[_0x2cc3e1(0xa3)]){const _0x564e1f=_0x3fbb12[_0x2cc3e1(0xcc)](_0x14b943[_0x2cc3e1(0xa3)][_0x2cc3e1(0xaa)]),_0x5aa700=JSON[_0x2cc3e1(0x8e)](_0x564e1f);_0x3c35d0+=this[_0x2cc3e1(0x9b)](_0x5aa700,_0x3b6df6),_0x27cc4d(_0x3c35d0);}return Promise[_0x2cc3e1(0x85)]();}async[_0x7a809a(0xc8)](_0x3da7a2,_0x1fc7a7,_0x1387bf){const _0x32f941=_0x7a809a,_0x351516=_0x3da7a2[_0x32f941(0xc7)],_0x358861=new TextDecoder(_0x32f941(0xaf)),_0x33c930=_0x351516[_0x32f941(0xb2)]();let _0x1d6027='',_0x68c2c8='',_0x5632de=!0x1;for(;!_0x5632de;){const {done:_0x40efcf,value:_0x17bc83}=await _0x33c930[_0x32f941(0x88)]();if(_0x5632de=_0x40efcf,_0x5632de)break;const _0x412092=(_0x1d6027+_0x358861[_0x32f941(0xcc)](_0x17bc83))[_0x32f941(0xae)]('\x0a')[_0x32f941(0xb4)](_0x8665b2=>{const _0x489041=_0x32f941;try{return _0x1d6027='',JSON[_0x489041(0x8e)](_0x8665b2);}catch{return _0x1d6027=_0x8665b2,null;}})[_0x32f941(0xcf)](_0x56f90d=>null!==_0x56f90d);_0x412092[_0x32f941(0x87)]&&(_0x68c2c8+=_0x412092[_0x32f941(0xb4)](_0x2057f4=>this[_0x32f941(0x9b)](_0x2057f4,_0x1fc7a7))[_0x32f941(0xbf)](''),_0x1387bf(_0x68c2c8));}return Promise[_0x32f941(0x85)]();}async[_0x7a809a(0xb1)](_0x4cb014,_0x28d7ac,_0x51293a){const _0x5cc4b9=_0x7a809a;let _0x4a3da4;return _0x4a3da4=_0x4cb014 instanceof Response?await _0x4cb014[_0x5cc4b9(0xad)]():JSON[_0x5cc4b9(0x8e)](new TextDecoder(_0x5cc4b9(0xaf))[_0x5cc4b9(0xcc)](_0x4cb014[_0x5cc4b9(0xc7)])),(_0x51293a(this[_0x5cc4b9(0x9b)](_0x4a3da4,_0x28d7ac)),Promise[_0x5cc4b9(0x85)]());}[_0x7a809a(0x9b)](_0x491fd1,_0x23f003){const _0x377ce5=_0x7a809a;switch(this[_0x377ce5(0x8b)](_0x23f003)){case _0x377ce5(0xa5):return _0x491fd1[_0x377ce5(0xba)];case _0x377ce5(0xb7):return _0x491fd1[_0x377ce5(0xa6)][0x0][_0x377ce5(0xbc)][_0x377ce5(0x9c)];case _0x377ce5(0xbd):return _0x491fd1[_0x377ce5(0x91)][0x0][_0x377ce5(0x9c)];case _0x377ce5(0xa0):return _0x491fd1[_0x377ce5(0x94)];}}}
23
+ const _0x5c461e=_0x56d3;function _0x56d3(_0x30ad95,_0x1f0ad5){const _0x2dc57d=_0x2dc5();return _0x56d3=function(_0x56d3bc,_0x3bd573){_0x56d3bc=_0x56d3bc-0xd0;let _0x566562=_0x2dc57d[_0x56d3bc];return _0x566562;},_0x56d3(_0x30ad95,_0x1f0ad5);}function _0x2dc5(){const _0x3fcbda=['3491514MaqPJj','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','AI_ERROR_UNSUPPORTED_MODEL','getReader','editor','2513792OLwzOQ','body','split','5tymrmT','_readAsyncIterableResponse','\x0a<</SYS>>\x0a[INST]\x0a','cohere.command','send','_bedrockClientConfig','<<SYS>>\x0a','_readStreamableResponse','112fmwbnD','application/json','json','ai.assistant.adapter.aws.requestHeaders','abortController','define','_readStaticResponse','ai.assistant.adapter.aws.apiUrl','meta.llama','config','_prepareRequestParameters','7260oUBcJr','_apiUrl','Instruction:\x0a','sendRequest','\x0a\x0aAssistant:','1396092paiRlH','_prepareRequestHeaders','utf-8','chunk','parse','_getGeneratedText','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','data','locale','test','_processAWSRequest','\x0a[/INST]','getModelFamily','ai21.j2','226237awFYaN','signal','_requestHeaders','Human:\x0a','resolve','filter','AWSTextAdapter','map','_processProxyRequest','preparePrompt','anthropic.claude','6290016zuzjIt','bedrock-2023-05-31','generations','stringify','generation','read','pluginName','POST','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','length','378602ddIKWH','get','bytes','anthropic.claude-v2','decode','18801PiXzZe','_requestParameters','completions','completion','ai.assistant.adapter.aws.bedrockClientConfig','join','text','ai.assistant.adapter.aws.requestParameters'];_0x2dc5=function(){return _0x3fcbda;};return _0x2dc5();}(function(_0x59d784,_0x41f3dc){const _0xef86a1=_0x56d3,_0x3b8c0e=_0x59d784();while(!![]){try{const _0x253450=parseInt(_0xef86a1(0xe8))/0x1+parseInt(_0xef86a1(0x10f))/0x2+-parseInt(_0xef86a1(0x10a))/0x3+parseInt(_0xef86a1(0xda))/0x4+-parseInt(_0xef86a1(0x112))/0x5*(-parseInt(_0xef86a1(0xf3))/0x6)+-parseInt(_0xef86a1(0xfd))/0x7*(-parseInt(_0xef86a1(0x11a))/0x8)+-parseInt(_0xef86a1(0x102))/0x9*(parseInt(_0xef86a1(0xd5))/0xa);if(_0x253450===_0x41f3dc)break;else _0x3b8c0e['push'](_0x3b8c0e['shift']());}catch(_0x37fb3e){_0x3b8c0e['push'](_0x3b8c0e['shift']());}}}(_0x2dc5,0xe9b3c));import{AITextAdapter as _0xe8a7b4}from'./aitextadapter.js';import{AIRequestError as _0x324b45}from'./aiadapter.js';import{BedrockRuntimeClient as _0x54ff25,InvokeModelCommand as _0x56587d,InvokeModelWithResponseStreamCommand as _0x2ce735}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x3387f0}from'../utils/common-translations.js';export class AWSTextAdapter extends _0xe8a7b4{[_0x5c461e(0xd6)];[_0x5c461e(0xea)];[_0x5c461e(0x117)];[_0x5c461e(0x103)];static get[_0x5c461e(0xf9)](){const _0x5f175c=_0x5c461e;return _0x5f175c(0xee);}constructor(_0x3572a9){const _0xb86271=_0x5c461e;super(_0x3572a9),_0x3572a9[_0xb86271(0xd3)][_0xb86271(0xfe)](_0xb86271(0x109))||_0x3572a9[_0xb86271(0xd3)][_0xb86271(0x11f)](_0xb86271(0x109),{'model':_0xb86271(0x100),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0xb86271(0xf4),'stream':!0x0}),this[_0xb86271(0xd6)]=_0x3572a9[_0xb86271(0xd3)][_0xb86271(0xfe)](_0xb86271(0xd1)),this[_0xb86271(0x117)]=_0x3572a9[_0xb86271(0xd3)][_0xb86271(0xfe)](_0xb86271(0x106)),this[_0xb86271(0xea)]=_0x3572a9[_0xb86271(0xd3)][_0xb86271(0xfe)](_0xb86271(0x11d)),this[_0xb86271(0x103)]=_0x3572a9[_0xb86271(0xd3)][_0xb86271(0xfe)](_0xb86271(0x109));}async[_0x5c461e(0xd8)]({query:_0x44fd53,context:_0x11a1e0,onData:_0x57c065,actionId:_0x204f1a}){const _0x28dbca=_0x5c461e,{model:_0x45877d,stream:_0x55066a,..._0x1be919}=await this[_0x28dbca(0xd4)](this[_0x28dbca(0x103)],_0x204f1a),_0x589b22={'prompt':await this[_0x28dbca(0xf1)](_0x44fd53,_0x11a1e0,_0x45877d,_0x204f1a),..._0x1be919};this[_0x28dbca(0xd6)]?await this[_0x28dbca(0xf0)](_0x589b22,_0x45877d,_0x55066a,_0x57c065,_0x204f1a):await this[_0x28dbca(0xe4)](_0x589b22,_0x45877d,_0x55066a,_0x57c065);}async[_0x5c461e(0xf1)](_0x306681,_0x111890,_0x34fc11,_0x432081){const _0x33cd43=_0x5c461e;let _0x34b797,_0x985d63;return _0x111890?(_0x34b797=_0x33cd43(0x10b),_0x985d63=_0x33cd43(0xd7)+_0x306681+_0x33cd43(0xe0)+_0x111890):(_0x34b797=_0x33cd43(0xfb),_0x985d63=_0x306681),_0x33cd43(0xd2)==this[_0x33cd43(0xe6)](_0x34fc11)?_0x33cd43(0x118)+_0x34b797+_0x33cd43(0x114)+_0x985d63+_0x33cd43(0xe5):_0x33cd43(0xeb)+_0x34b797+'\x0a'+_0x985d63+_0x33cd43(0xd9);}[_0x5c461e(0xe6)](_0x3b4ec2){const _0x4c8cec=_0x5c461e;if(/^anthropic\.claude/[_0x4c8cec(0xe3)](_0x3b4ec2))return _0x4c8cec(0xf2);if(/^ai21\.j2/[_0x4c8cec(0xe3)](_0x3b4ec2))return _0x4c8cec(0xe7);if(/^cohere\.command/[_0x4c8cec(0xe3)](_0x3b4ec2))return _0x4c8cec(0x115);if(/^meta\.llama/[_0x4c8cec(0xe3)](_0x3b4ec2))return _0x4c8cec(0xd2);throw new _0x324b45(_0x3387f0(this[_0x4c8cec(0x10e)][_0x4c8cec(0xe2)],_0x4c8cec(0x10c),_0x3b4ec2));}async[_0x5c461e(0xf0)](_0xf133a1,_0x3c469c,_0x1ad5af,_0x2879a5,_0x424819){const _0x26cfc9=_0x5c461e,_0x5ee83f={'method':_0x26cfc9(0xfa),'headers':await this[_0x26cfc9(0xdb)](this[_0x26cfc9(0xea)],_0x424819),'body':JSON[_0x26cfc9(0xf6)]({..._0xf133a1,'model':_0x3c469c,'stream':_0x1ad5af}),'signal':this[_0x26cfc9(0x11e)][_0x26cfc9(0xe9)]},_0x290d88=await fetch(this[_0x26cfc9(0xd6)],_0x5ee83f);_0x1ad5af?await this[_0x26cfc9(0x119)](_0x290d88,_0x3c469c,_0x2879a5):await this[_0x26cfc9(0xd0)](_0x290d88,_0x3c469c,_0x2879a5);}async[_0x5c461e(0xe4)](_0x1f9d02,_0x449050,_0x45e663,_0x558719){const _0x45c820=_0x5c461e,_0x35493f=new _0x54ff25(this[_0x45c820(0x117)]),_0x403208={'body':JSON[_0x45c820(0xf6)](_0x1f9d02),'contentType':_0x45c820(0x11b),'accept':_0x45c820(0x11b),'modelId':_0x449050};let _0x4a627c;if(_0x45e663){const _0x2346bb=new _0x2ce735(_0x403208);_0x4a627c=await _0x35493f[_0x45c820(0x116)](_0x2346bb,{'abortSignal':this[_0x45c820(0x11e)][_0x45c820(0xe9)]}),await this[_0x45c820(0x113)](_0x4a627c,_0x449050,_0x558719);}else{const _0x401d0a=new _0x56587d(_0x403208);_0x4a627c=await _0x35493f[_0x45c820(0x116)](_0x401d0a,{'abortSignal':this[_0x45c820(0x11e)][_0x45c820(0xe9)]}),await this[_0x45c820(0xd0)](_0x4a627c,_0x449050,_0x558719);}}async[_0x5c461e(0x113)](_0x58f6a8,_0x2d24fe,_0x41a09e){const _0x3dc0eb=_0x5c461e,_0xdd2cc9=_0x58f6a8[_0x3dc0eb(0x110)],_0x245e60=new TextDecoder(_0x3dc0eb(0xdc));let _0x2c7b1a='';for await(const _0x263b35 of _0xdd2cc9)if(_0x263b35[_0x3dc0eb(0xdd)]){const _0x16ff27=_0x245e60[_0x3dc0eb(0x101)](_0x263b35[_0x3dc0eb(0xdd)][_0x3dc0eb(0xff)]),_0x3f7028=JSON[_0x3dc0eb(0xde)](_0x16ff27);_0x2c7b1a+=this[_0x3dc0eb(0xdf)](_0x3f7028,_0x2d24fe),_0x41a09e(_0x2c7b1a);}return Promise[_0x3dc0eb(0xec)]();}async[_0x5c461e(0x119)](_0x463f2b,_0x1e7754,_0x1abb2a){const _0x1e3c1b=_0x5c461e,_0x7251d7=_0x463f2b[_0x1e3c1b(0x110)],_0x8c7d48=new TextDecoder(_0x1e3c1b(0xdc)),_0x18cae1=_0x7251d7[_0x1e3c1b(0x10d)]();let _0x236d5b='',_0x35857b='',_0x5ed86d=!0x1;for(;!_0x5ed86d;){const {done:_0x3b0449,value:_0x253798}=await _0x18cae1[_0x1e3c1b(0xf8)]();if(_0x5ed86d=_0x3b0449,_0x5ed86d)break;const _0x266696=(_0x236d5b+_0x8c7d48[_0x1e3c1b(0x101)](_0x253798))[_0x1e3c1b(0x111)]('\x0a')[_0x1e3c1b(0xef)](_0x5ce276=>{const _0x427f88=_0x1e3c1b;try{return _0x236d5b='',JSON[_0x427f88(0xde)](_0x5ce276);}catch{return _0x236d5b=_0x5ce276,null;}})[_0x1e3c1b(0xed)](_0x24aab4=>null!==_0x24aab4);_0x266696[_0x1e3c1b(0xfc)]&&(_0x35857b+=_0x266696[_0x1e3c1b(0xef)](_0x2dca9d=>this[_0x1e3c1b(0xdf)](_0x2dca9d,_0x1e7754))[_0x1e3c1b(0x107)](''),_0x1abb2a(_0x35857b));}return Promise[_0x1e3c1b(0xec)]();}async[_0x5c461e(0xd0)](_0x1f47ab,_0x4c271d,_0x3e7c2b){const _0x43c33a=_0x5c461e;let _0x1062bd;return _0x1062bd=_0x1f47ab instanceof Response?await _0x1f47ab[_0x43c33a(0x11c)]():JSON[_0x43c33a(0xde)](new TextDecoder(_0x43c33a(0xdc))[_0x43c33a(0x101)](_0x1f47ab[_0x43c33a(0x110)])),(_0x3e7c2b(this[_0x43c33a(0xdf)](_0x1062bd,_0x4c271d)),Promise[_0x43c33a(0xec)]());}[_0x5c461e(0xdf)](_0x574fc9,_0x21840e){const _0x4627ef=_0x5c461e;switch(this[_0x4627ef(0xe6)](_0x21840e)){case _0x4627ef(0xf2):return _0x574fc9[_0x4627ef(0x105)];case _0x4627ef(0xe7):return _0x574fc9[_0x4627ef(0x104)][0x0][_0x4627ef(0xe1)][_0x4627ef(0x108)];case _0x4627ef(0x115):return _0x574fc9[_0x4627ef(0xf5)][0x0][_0x4627ef(0x108)];case _0x4627ef(0xd2):return _0x574fc9[_0x4627ef(0xf7)];}}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e6735=_0x5b92;function _0x46b8(){const _0x340998=['config','153coPmOp','_readStreamableResponse','ai.assistant.adapter.openAI.apiUrl','stringify','pluginName','ai.assistant.adapter.openAI.requestParameters','abortController','choices','decode','581848DRfHgY','1482807iQwBAW','split','5RaaUUl','_requestParameters','system','context_length_exceeded','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','86170BqyzNT','signal','Instruction:\x0a','resolve','parse','[DONE]','message','ai.assistant.adapter.openAI.requestHeaders','reject','body','https://api.openai.com/v1/chat/completions','POST','data:\x20','read','_prepareRequestParameters','AI_ERROR_CONTEXT_LENGTH','prepareMessages','getReader','_isBufferIncomplete','stream','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','content','includes','AI_ERROR_MODERATION','replace','_requestHeaders','1069692fsJpvJ','Moderation','14wPbeMg','sendRequest','_prepareRequestHeaders','text','map','json','editor','get','filter','length','4002328JOXGgL','_readStaticResponse','OpenAITextAdapter','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','12gYLLfG','1675384gqRVZl','locale','_apiUrl','1YzDRUH','_cleanUpData','29018xYPhYW','delta','gpt-4o','join','define','user'];_0x46b8=function(){return _0x340998;};return _0x46b8();}(function(_0x5918e9,_0x20885f){const _0x366613=_0x5b92,_0x5e849a=_0x5918e9();while(!![]){try{const _0x41060e=-parseInt(_0x366613(0xb6))/0x1*(parseInt(_0x366613(0xc8))/0x2)+parseInt(_0x366613(0xc9))/0x3+-parseInt(_0x366613(0xb3))/0x4*(-parseInt(_0x366613(0xcb))/0x5)+-parseInt(_0x366613(0xa2))/0x6*(-parseInt(_0x366613(0xa4))/0x7)+-parseInt(_0x366613(0xae))/0x8+-parseInt(_0x366613(0xbf))/0x9*(parseInt(_0x366613(0xd0))/0xa)+-parseInt(_0x366613(0xb8))/0xb*(-parseInt(_0x366613(0xb2))/0xc);if(_0x41060e===_0x20885f)break;else _0x5e849a['push'](_0x5e849a['shift']());}catch(_0x3a51cc){_0x5e849a['push'](_0x5e849a['shift']());}}}(_0x46b8,0x51b15));function _0x5b92(_0x42cbe4,_0x5c81b3){const _0x46b806=_0x46b8();return _0x5b92=function(_0x5b9290,_0xb047d6){_0x5b9290=_0x5b9290-0x9f;let _0x3a98c5=_0x46b806[_0x5b9290];return _0x3a98c5;},_0x5b92(_0x42cbe4,_0x5c81b3);}import{AITextAdapter as _0x2ce9c5}from'./aitextadapter.js';import{AIRequestError as _0x518eb2}from'./aiadapter.js';import{getTranslation as _0xe4cf3d}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x2ce9c5{[_0x3e6735(0xb5)];[_0x3e6735(0xa1)];[_0x3e6735(0xcc)];static get[_0x3e6735(0xc3)](){const _0x305a25=_0x3e6735;return _0x305a25(0xb0);}constructor(_0x4fd9d0){const _0x4582f6=_0x3e6735;super(_0x4fd9d0),_0x4fd9d0[_0x4582f6(0xbe)][_0x4582f6(0xbc)](_0x4582f6(0xc1),_0x4582f6(0xda)),_0x4fd9d0[_0x4582f6(0xbe)][_0x4582f6(0xab)](_0x4582f6(0xc4))||_0x4fd9d0[_0x4582f6(0xbe)][_0x4582f6(0xbc)](_0x4582f6(0xc4),{'model':_0x4582f6(0xba),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x4582f6(0xb5)]=_0x4fd9d0[_0x4582f6(0xbe)][_0x4582f6(0xab)](_0x4582f6(0xc1)),this[_0x4582f6(0xa1)]=_0x4fd9d0[_0x4582f6(0xbe)][_0x4582f6(0xab)](_0x4582f6(0xd7))||{},this[_0x4582f6(0xcc)]=_0x4fd9d0[_0x4582f6(0xbe)][_0x4582f6(0xab)](_0x4582f6(0xc4));}async[_0x3e6735(0xa5)]({query:_0x876160,context:_0x36215d,onData:_0x18c3a3,actionId:_0x379d0d}){const _0x2667a3=_0x3e6735,_0x18a60a=this[_0x2667a3(0xaa)][_0x2667a3(0xb4)],_0x332708=await this[_0x2667a3(0xe0)](_0x876160,_0x36215d,_0x379d0d),_0x301f6a=await this[_0x2667a3(0xa6)](this[_0x2667a3(0xa1)],_0x379d0d),_0x434ddc=await this[_0x2667a3(0xde)](this[_0x2667a3(0xcc)],_0x379d0d),_0x4c062f={'messages':_0x332708,..._0x434ddc},_0x429a04={'method':_0x2667a3(0xdb),'headers':_0x301f6a,'body':JSON[_0x2667a3(0xc2)](_0x4c062f),'signal':this[_0x2667a3(0xc5)][_0x2667a3(0xd1)]},_0x15a92f=await fetch(this[_0x2667a3(0xb5)],_0x429a04);if(_0x15a92f['ok'])return _0x434ddc[_0x2667a3(0xe3)]?await this[_0x2667a3(0xc0)](_0x15a92f,_0x18c3a3):await this[_0x2667a3(0xaf)](_0x15a92f,_0x18c3a3),Promise[_0x2667a3(0xd3)]();{const _0x3dd1c0=await _0x15a92f[_0x2667a3(0xa7)]();return _0x3dd1c0[_0x2667a3(0xe6)](_0x2667a3(0xce))?Promise[_0x2667a3(0xd8)](new _0x518eb2(_0xe4cf3d(_0x18a60a,_0x2667a3(0xdf)))):_0x3dd1c0[_0x2667a3(0xe6)](_0x2667a3(0xa3))?Promise[_0x2667a3(0xd8)](new _0x518eb2(_0xe4cf3d(_0x18a60a,_0x2667a3(0x9f)))):Promise[_0x2667a3(0xd8)](new Error(_0x3dd1c0));}}async[_0x3e6735(0xe0)](_0xa5f114,_0x3f23a0,_0x4bd262){const _0x296237=_0x3e6735;let _0x2d7575,_0x28bc66;return _0x3f23a0?(_0x2d7575=_0x296237(0xe4),_0x28bc66=_0x296237(0xd2)+_0xa5f114+_0x296237(0xcf)+_0x3f23a0):(_0x2d7575=_0x296237(0xb1),_0x28bc66=_0xa5f114),[{'role':_0x296237(0xcd),'content':_0x2d7575},{'role':_0x296237(0xbd),'content':_0x28bc66}];}async[_0x3e6735(0xc0)](_0x9debce,_0x1377ae){const _0x2af0c9=_0x3e6735,_0x4796f4=_0x9debce[_0x2af0c9(0xd9)][_0x2af0c9(0xe1)](),_0x1d582c=new TextDecoder();let _0x3cd309='',_0x35e0d0='',_0x46aeb5='',_0x62c9b0=!0x1;for(;!_0x62c9b0;){const {done:_0x578999,value:_0xd407bc}=await _0x4796f4[_0x2af0c9(0xdd)](),_0x2709e8=_0x3cd309+_0x1d582c[_0x2af0c9(0xc7)](_0xd407bc);let _0x11f6d3='';_0x62c9b0=_0x578999;try{_0x11f6d3=this[_0x2af0c9(0xb7)](_0x2709e8),_0x3cd309='';}catch{_0x3cd309=_0x2709e8;continue;}_0x35e0d0+=_0x11f6d3,!_0x62c9b0&&this[_0x2af0c9(0xe2)](_0x35e0d0)||_0x35e0d0&&(_0x46aeb5+=_0x35e0d0,_0x35e0d0='',_0x1377ae(_0x46aeb5));}return Promise[_0x2af0c9(0xd3)]();}async[_0x3e6735(0xaf)](_0x46d403,_0x31aa5f){const _0x391b36=_0x3e6735;return _0x31aa5f((await _0x46d403[_0x391b36(0xa9)]())[_0x391b36(0xc6)][0x0][_0x391b36(0xd6)][_0x391b36(0xe5)]),Promise[_0x391b36(0xd3)]();}[_0x3e6735(0xe2)](_0x4e5633){const _0x3c0876=_0x3e6735,_0x12aa77=_0x4e5633[_0x3c0876(0xca)]('<')[_0x3c0876(0xad)]!==_0x4e5633[_0x3c0876(0xca)]('>')[_0x3c0876(0xad)],_0xaa2e10=_0x4e5633[_0x3c0876(0xad)]<0x1e;return _0x12aa77&&_0xaa2e10;}[_0x3e6735(0xb7)](_0x38513a){const _0x268038=_0x3e6735;return _0x38513a[_0x268038(0xca)](/\n(?![^{]*\})/g)[_0x268038(0xa8)](_0x48fdbd=>_0x48fdbd[_0x268038(0xa0)](_0x268038(0xdc),''))[_0x268038(0xac)](_0x30a539=>_0x30a539&&_0x30a539[_0x268038(0xad)]>0x0&&_0x268038(0xd5)!==_0x30a539)[_0x268038(0xa8)](_0x569671=>{const _0x5b24d2=_0x268038,{choices:_0x43cd6e}=JSON[_0x5b24d2(0xd4)](_0x569671);if(_0x43cd6e[0x0]?.[_0x5b24d2(0xb9)]?.[_0x5b24d2(0xe5)])return _0x43cd6e[0x0][_0x5b24d2(0xb9)][_0x5b24d2(0xe5)];})[_0x268038(0xac)](_0x12e089=>_0x12e089)[_0x268038(0xbb)]('');}}
23
+ const _0x142b7f=_0x2439;(function(_0x13829b,_0x46742e){const _0x17c55e=_0x2439,_0x2b0a69=_0x13829b();while(!![]){try{const _0x600a8a=parseInt(_0x17c55e(0x18d))/0x1*(parseInt(_0x17c55e(0x1a4))/0x2)+parseInt(_0x17c55e(0x1be))/0x3+-parseInt(_0x17c55e(0x1c3))/0x4*(parseInt(_0x17c55e(0x199))/0x5)+-parseInt(_0x17c55e(0x1cc))/0x6+-parseInt(_0x17c55e(0x1b3))/0x7*(-parseInt(_0x17c55e(0x1c9))/0x8)+parseInt(_0x17c55e(0x1bf))/0x9*(parseInt(_0x17c55e(0x18f))/0xa)+parseInt(_0x17c55e(0x1ac))/0xb*(parseInt(_0x17c55e(0x1ba))/0xc);if(_0x600a8a===_0x46742e)break;else _0x2b0a69['push'](_0x2b0a69['shift']());}catch(_0x3d0bfa){_0x2b0a69['push'](_0x2b0a69['shift']());}}}(_0x3eac,0x4f58b));import{AITextAdapter as _0x528158}from'./aitextadapter.js';import{AIRequestError as _0x6ad2cc}from'./aiadapter.js';function _0x3eac(){const _0x5d6283=['pluginName','abortController','800MBEASw','stream','prepareMessages','text','signal','body','_prepareRequestParameters','[DONE]','define','ai.assistant.adapter.openAI.requestHeaders','_apiUrl','4fwWbor','replace','filter','editor','_requestParameters','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','https://api.openai.com/v1/chat/completions','AI_ERROR_CONTEXT_LENGTH','1411718ZysVmp','gpt-4o','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','message','decode','user','data:\x20','7mnuAat','Moderation','Instruction:\x0a','split','includes','_readStaticResponse','content','48UKUqKZ','ai.assistant.adapter.openAI.apiUrl','read','context_length_exceeded','1020324laXHIu','9nbsdav','map','AI_ERROR_MODERATION','_prepareRequestHeaders','11212FIPYfZ','get','_requestHeaders','_cleanUpData','OpenAITextAdapter','reject','1199624ZkspcD','json','delta','2902290veSmfb','getReader','locale','ai.assistant.adapter.openAI.requestParameters','system','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','length','config','stringify','91007wlZYvn','_readStreamableResponse','717710rfSwMG','POST','_isBufferIncomplete','parse','join','resolve','sendRequest','choices'];_0x3eac=function(){return _0x5d6283;};return _0x3eac();}function _0x2439(_0x4d6d58,_0x165ad9){const _0x3eac13=_0x3eac();return _0x2439=function(_0x24397a,_0x1d6c46){_0x24397a=_0x24397a-0x18a;let _0x2cfbbb=_0x3eac13[_0x24397a];return _0x2cfbbb;},_0x2439(_0x4d6d58,_0x165ad9);}import{getTranslation as _0x13222d}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x528158{[_0x142b7f(0x1a3)];[_0x142b7f(0x1c5)];[_0x142b7f(0x1a8)];static get[_0x142b7f(0x197)](){const _0xb06701=_0x142b7f;return _0xb06701(0x1c7);}constructor(_0xbeb252){const _0x1dd827=_0x142b7f;super(_0xbeb252),_0xbeb252[_0x1dd827(0x18b)][_0x1dd827(0x1a1)](_0x1dd827(0x1bb),_0x1dd827(0x1aa)),_0xbeb252[_0x1dd827(0x18b)][_0x1dd827(0x1c4)](_0x1dd827(0x1cf))||_0xbeb252[_0x1dd827(0x18b)][_0x1dd827(0x1a1)](_0x1dd827(0x1cf),{'model':_0x1dd827(0x1ad),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x1dd827(0x1a3)]=_0xbeb252[_0x1dd827(0x18b)][_0x1dd827(0x1c4)](_0x1dd827(0x1bb)),this[_0x1dd827(0x1c5)]=_0xbeb252[_0x1dd827(0x18b)][_0x1dd827(0x1c4)](_0x1dd827(0x1a2))||{},this[_0x1dd827(0x1a8)]=_0xbeb252[_0x1dd827(0x18b)][_0x1dd827(0x1c4)](_0x1dd827(0x1cf));}async[_0x142b7f(0x195)]({query:_0x378965,context:_0x24ac8a,onData:_0x5bdf75,actionId:_0x55452e}){const _0x563263=_0x142b7f,_0x54fcf2=this[_0x563263(0x1a7)][_0x563263(0x1ce)],_0x2242ca=await this[_0x563263(0x19b)](_0x378965,_0x24ac8a,_0x55452e),_0x36f3b0=await this[_0x563263(0x1c2)](this[_0x563263(0x1c5)],_0x55452e),_0xeb59ef=await this[_0x563263(0x19f)](this[_0x563263(0x1a8)],_0x55452e),_0x1240f3={'messages':_0x2242ca,..._0xeb59ef},_0x105a53={'method':_0x563263(0x190),'headers':_0x36f3b0,'body':JSON[_0x563263(0x18c)](_0x1240f3),'signal':this[_0x563263(0x198)][_0x563263(0x19d)]},_0x8dfa3c=await fetch(this[_0x563263(0x1a3)],_0x105a53);if(_0x8dfa3c['ok'])return _0xeb59ef[_0x563263(0x19a)]?await this[_0x563263(0x18e)](_0x8dfa3c,_0x5bdf75):await this[_0x563263(0x1b8)](_0x8dfa3c,_0x5bdf75),Promise[_0x563263(0x194)]();{const _0x39f439=await _0x8dfa3c[_0x563263(0x19c)]();return _0x39f439[_0x563263(0x1b7)](_0x563263(0x1bd))?Promise[_0x563263(0x1c8)](new _0x6ad2cc(_0x13222d(_0x54fcf2,_0x563263(0x1ab)))):_0x39f439[_0x563263(0x1b7)](_0x563263(0x1b4))?Promise[_0x563263(0x1c8)](new _0x6ad2cc(_0x13222d(_0x54fcf2,_0x563263(0x1c1)))):Promise[_0x563263(0x1c8)](new Error(_0x39f439));}}async[_0x142b7f(0x19b)](_0x178a58,_0x3e8c6a,_0x2f0ac4){const _0x48a493=_0x142b7f;let _0x5c384b,_0x27594d;return _0x3e8c6a?(_0x5c384b=_0x48a493(0x1a9),_0x27594d=_0x48a493(0x1b5)+_0x178a58+_0x48a493(0x1ae)+_0x3e8c6a):(_0x5c384b=_0x48a493(0x1d1),_0x27594d=_0x178a58),[{'role':_0x48a493(0x1d0),'content':_0x5c384b},{'role':_0x48a493(0x1b1),'content':_0x27594d}];}async[_0x142b7f(0x18e)](_0x52cb3c,_0x26d25a){const _0x4e531d=_0x142b7f,_0x1ac8d7=_0x52cb3c[_0x4e531d(0x19e)][_0x4e531d(0x1cd)](),_0x77cc56=new TextDecoder();let _0xeb5eec='',_0xccb6f6='',_0x3a26fa='',_0x2073f4=!0x1;for(;!_0x2073f4;){const {done:_0x4e1246,value:_0x2fffa8}=await _0x1ac8d7[_0x4e531d(0x1bc)](),_0x4aebdb=_0xeb5eec+_0x77cc56[_0x4e531d(0x1b0)](_0x2fffa8);let _0x18c41a='';_0x2073f4=_0x4e1246;try{_0x18c41a=this[_0x4e531d(0x1c6)](_0x4aebdb),_0xeb5eec='';}catch{_0xeb5eec=_0x4aebdb;continue;}_0xccb6f6+=_0x18c41a,!_0x2073f4&&this[_0x4e531d(0x191)](_0xccb6f6)||_0xccb6f6&&(_0x3a26fa+=_0xccb6f6,_0xccb6f6='',_0x26d25a(_0x3a26fa));}return Promise[_0x4e531d(0x194)]();}async[_0x142b7f(0x1b8)](_0x4fa72c,_0xa7966b){const _0x19e10c=_0x142b7f;return _0xa7966b((await _0x4fa72c[_0x19e10c(0x1ca)]())[_0x19e10c(0x196)][0x0][_0x19e10c(0x1af)][_0x19e10c(0x1b9)]),Promise[_0x19e10c(0x194)]();}[_0x142b7f(0x191)](_0x379416){const _0x381e1c=_0x142b7f,_0x71746f=_0x379416[_0x381e1c(0x1b6)]('<')[_0x381e1c(0x18a)]!==_0x379416[_0x381e1c(0x1b6)]('>')[_0x381e1c(0x18a)],_0x13892e=_0x379416[_0x381e1c(0x18a)]<0x1e;return _0x71746f&&_0x13892e;}[_0x142b7f(0x1c6)](_0x48b908){const _0x50e048=_0x142b7f;return _0x48b908[_0x50e048(0x1b6)](/\n(?![^{]*\})/g)[_0x50e048(0x1c0)](_0x51e722=>_0x51e722[_0x50e048(0x1a5)](_0x50e048(0x1b2),''))[_0x50e048(0x1a6)](_0x3400b5=>_0x3400b5&&_0x3400b5[_0x50e048(0x18a)]>0x0&&_0x50e048(0x1a0)!==_0x3400b5)[_0x50e048(0x1c0)](_0x2a319a=>{const _0x4fa39a=_0x50e048,{choices:_0x4cac52}=JSON[_0x4fa39a(0x192)](_0x2a319a);if(_0x4cac52[0x0]?.[_0x4fa39a(0x1cb)]?.[_0x4fa39a(0x1b9)])return _0x4cac52[0x0][_0x4fa39a(0x1cb)][_0x4fa39a(0x1b9)];})[_0x50e048(0x1a6)](_0x52b407=>_0x52b407)[_0x50e048(0x193)]('');}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**