@ckeditor/ckeditor5-ai 47.0.0-alpha.1 → 47.0.0-alpha.3

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 (402) hide show
  1. package/build/ai.js +1 -1
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/bg.js +1 -1
  4. package/build/translations/bn.js +1 -1
  5. package/build/translations/ca.js +1 -1
  6. package/build/translations/cs.js +1 -1
  7. package/build/translations/da.js +1 -1
  8. package/build/translations/de.js +1 -1
  9. package/build/translations/el.js +1 -1
  10. package/build/translations/es.js +1 -1
  11. package/build/translations/et.js +1 -1
  12. package/build/translations/fi.js +1 -1
  13. package/build/translations/fr.js +1 -1
  14. package/build/translations/he.js +1 -1
  15. package/build/translations/hi.js +1 -1
  16. package/build/translations/hu.js +1 -1
  17. package/build/translations/id.js +1 -1
  18. package/build/translations/it.js +1 -1
  19. package/build/translations/ja.js +1 -1
  20. package/build/translations/ko.js +1 -1
  21. package/build/translations/lt.js +1 -1
  22. package/build/translations/lv.js +1 -1
  23. package/build/translations/ms.js +1 -1
  24. package/build/translations/nl.js +1 -1
  25. package/build/translations/no.js +1 -1
  26. package/build/translations/pl.js +1 -1
  27. package/build/translations/pt-br.js +1 -1
  28. package/build/translations/pt.js +1 -1
  29. package/build/translations/ro.js +1 -1
  30. package/build/translations/ru.js +1 -1
  31. package/build/translations/sk.js +1 -1
  32. package/build/translations/sr.js +1 -1
  33. package/build/translations/sv.js +1 -1
  34. package/build/translations/th.js +1 -1
  35. package/build/translations/tr.js +1 -1
  36. package/build/translations/uk.js +1 -1
  37. package/build/translations/vi.js +1 -1
  38. package/build/translations/zh-cn.js +1 -1
  39. package/build/translations/zh.js +1 -1
  40. package/dist/index-editor.css +59 -38
  41. package/dist/index.css +77 -39
  42. package/dist/index.js +4 -4
  43. package/dist/translations/af.js +1 -1
  44. package/dist/translations/af.umd.js +1 -1
  45. package/dist/translations/ar.js +1 -1
  46. package/dist/translations/ar.umd.js +1 -1
  47. package/dist/translations/ast.js +1 -1
  48. package/dist/translations/ast.umd.js +1 -1
  49. package/dist/translations/az.js +1 -1
  50. package/dist/translations/az.umd.js +1 -1
  51. package/dist/translations/be.js +1 -1
  52. package/dist/translations/be.umd.js +1 -1
  53. package/dist/translations/bg.js +1 -1
  54. package/dist/translations/bg.umd.js +1 -1
  55. package/dist/translations/bn.js +1 -1
  56. package/dist/translations/bn.umd.js +1 -1
  57. package/dist/translations/bs.js +1 -1
  58. package/dist/translations/bs.umd.js +1 -1
  59. package/dist/translations/ca.js +1 -1
  60. package/dist/translations/ca.umd.js +1 -1
  61. package/dist/translations/cs.js +1 -1
  62. package/dist/translations/cs.umd.js +1 -1
  63. package/dist/translations/da.js +1 -1
  64. package/dist/translations/da.umd.js +1 -1
  65. package/dist/translations/de-ch.js +1 -1
  66. package/dist/translations/de-ch.umd.js +1 -1
  67. package/dist/translations/de.js +1 -1
  68. package/dist/translations/de.umd.js +1 -1
  69. package/dist/translations/el.js +1 -1
  70. package/dist/translations/el.umd.js +1 -1
  71. package/dist/translations/en-au.js +1 -1
  72. package/dist/translations/en-au.umd.js +1 -1
  73. package/dist/translations/en-gb.js +1 -1
  74. package/dist/translations/en-gb.umd.js +1 -1
  75. package/dist/translations/en.js +1 -1
  76. package/dist/translations/en.umd.js +1 -1
  77. package/dist/translations/eo.js +1 -1
  78. package/dist/translations/eo.umd.js +1 -1
  79. package/dist/translations/es-co.js +1 -1
  80. package/dist/translations/es-co.umd.js +1 -1
  81. package/dist/translations/es.js +1 -1
  82. package/dist/translations/es.umd.js +1 -1
  83. package/dist/translations/et.js +1 -1
  84. package/dist/translations/et.umd.js +1 -1
  85. package/dist/translations/eu.js +1 -1
  86. package/dist/translations/eu.umd.js +1 -1
  87. package/dist/translations/fa.js +1 -1
  88. package/dist/translations/fa.umd.js +1 -1
  89. package/dist/translations/fi.js +1 -1
  90. package/dist/translations/fi.umd.js +1 -1
  91. package/dist/translations/fr.js +1 -1
  92. package/dist/translations/fr.umd.js +1 -1
  93. package/dist/translations/gl.js +1 -1
  94. package/dist/translations/gl.umd.js +1 -1
  95. package/dist/translations/gu.js +1 -1
  96. package/dist/translations/gu.umd.js +1 -1
  97. package/dist/translations/he.js +1 -1
  98. package/dist/translations/he.umd.js +1 -1
  99. package/dist/translations/hi.js +1 -1
  100. package/dist/translations/hi.umd.js +1 -1
  101. package/dist/translations/hr.js +1 -1
  102. package/dist/translations/hr.umd.js +1 -1
  103. package/dist/translations/hu.js +1 -1
  104. package/dist/translations/hu.umd.js +1 -1
  105. package/dist/translations/hy.js +1 -1
  106. package/dist/translations/hy.umd.js +1 -1
  107. package/dist/translations/id.js +1 -1
  108. package/dist/translations/id.umd.js +1 -1
  109. package/dist/translations/it.js +1 -1
  110. package/dist/translations/it.umd.js +1 -1
  111. package/dist/translations/ja.js +1 -1
  112. package/dist/translations/ja.umd.js +1 -1
  113. package/dist/translations/jv.js +1 -1
  114. package/dist/translations/jv.umd.js +1 -1
  115. package/dist/translations/kk.js +1 -1
  116. package/dist/translations/kk.umd.js +1 -1
  117. package/dist/translations/km.js +1 -1
  118. package/dist/translations/km.umd.js +1 -1
  119. package/dist/translations/kn.js +1 -1
  120. package/dist/translations/kn.umd.js +1 -1
  121. package/dist/translations/ko.js +1 -1
  122. package/dist/translations/ko.umd.js +1 -1
  123. package/dist/translations/ku.js +1 -1
  124. package/dist/translations/ku.umd.js +1 -1
  125. package/dist/translations/lt.js +1 -1
  126. package/dist/translations/lt.umd.js +1 -1
  127. package/dist/translations/lv.js +1 -1
  128. package/dist/translations/lv.umd.js +1 -1
  129. package/dist/translations/ms.js +1 -1
  130. package/dist/translations/ms.umd.js +1 -1
  131. package/dist/translations/nb.js +1 -1
  132. package/dist/translations/nb.umd.js +1 -1
  133. package/dist/translations/ne.js +1 -1
  134. package/dist/translations/ne.umd.js +1 -1
  135. package/dist/translations/nl.js +1 -1
  136. package/dist/translations/nl.umd.js +1 -1
  137. package/dist/translations/no.js +1 -1
  138. package/dist/translations/no.umd.js +1 -1
  139. package/dist/translations/oc.js +1 -1
  140. package/dist/translations/oc.umd.js +1 -1
  141. package/dist/translations/pl.js +1 -1
  142. package/dist/translations/pl.umd.js +1 -1
  143. package/dist/translations/pt-br.js +1 -1
  144. package/dist/translations/pt-br.umd.js +1 -1
  145. package/dist/translations/pt.js +1 -1
  146. package/dist/translations/pt.umd.js +1 -1
  147. package/dist/translations/ro.js +1 -1
  148. package/dist/translations/ro.umd.js +1 -1
  149. package/dist/translations/ru.js +1 -1
  150. package/dist/translations/ru.umd.js +1 -1
  151. package/dist/translations/si.js +1 -1
  152. package/dist/translations/si.umd.js +1 -1
  153. package/dist/translations/sk.js +1 -1
  154. package/dist/translations/sk.umd.js +1 -1
  155. package/dist/translations/sl.js +1 -1
  156. package/dist/translations/sl.umd.js +1 -1
  157. package/dist/translations/sq.js +1 -1
  158. package/dist/translations/sq.umd.js +1 -1
  159. package/dist/translations/sr-latn.js +1 -1
  160. package/dist/translations/sr-latn.umd.js +1 -1
  161. package/dist/translations/sr.js +1 -1
  162. package/dist/translations/sr.umd.js +1 -1
  163. package/dist/translations/sv.js +1 -1
  164. package/dist/translations/sv.umd.js +1 -1
  165. package/dist/translations/th.js +1 -1
  166. package/dist/translations/th.umd.js +1 -1
  167. package/dist/translations/ti.js +1 -1
  168. package/dist/translations/ti.umd.js +1 -1
  169. package/dist/translations/tk.js +1 -1
  170. package/dist/translations/tk.umd.js +1 -1
  171. package/dist/translations/tr.js +1 -1
  172. package/dist/translations/tr.umd.js +1 -1
  173. package/dist/translations/tt.js +1 -1
  174. package/dist/translations/tt.umd.js +1 -1
  175. package/dist/translations/ug.js +1 -1
  176. package/dist/translations/ug.umd.js +1 -1
  177. package/dist/translations/uk.js +1 -1
  178. package/dist/translations/uk.umd.js +1 -1
  179. package/dist/translations/ur.js +1 -1
  180. package/dist/translations/ur.umd.js +1 -1
  181. package/dist/translations/uz.js +1 -1
  182. package/dist/translations/uz.umd.js +1 -1
  183. package/dist/translations/vi.js +1 -1
  184. package/dist/translations/vi.umd.js +1 -1
  185. package/dist/translations/zh-cn.js +1 -1
  186. package/dist/translations/zh-cn.umd.js +1 -1
  187. package/dist/translations/zh.js +1 -1
  188. package/dist/translations/zh.umd.js +1 -1
  189. package/lang/contexts.json +40 -1
  190. package/lang/translations/ar.po +171 -171
  191. package/lang/translations/bg.po +155 -155
  192. package/lang/translations/bn.po +155 -155
  193. package/lang/translations/ca.po +155 -155
  194. package/lang/translations/cs.po +159 -159
  195. package/lang/translations/da.po +155 -155
  196. package/lang/translations/de.po +155 -155
  197. package/lang/translations/el.po +155 -155
  198. package/lang/translations/es.po +155 -155
  199. package/lang/translations/et.po +155 -155
  200. package/lang/translations/fi.po +155 -155
  201. package/lang/translations/fr.po +155 -155
  202. package/lang/translations/he.po +155 -155
  203. package/lang/translations/hi.po +155 -155
  204. package/lang/translations/hu.po +155 -155
  205. package/lang/translations/id.po +151 -151
  206. package/lang/translations/it.po +155 -155
  207. package/lang/translations/ja.po +151 -151
  208. package/lang/translations/ko.po +151 -151
  209. package/lang/translations/lt.po +159 -159
  210. package/lang/translations/lv.po +159 -159
  211. package/lang/translations/ms.po +151 -151
  212. package/lang/translations/nl.po +155 -155
  213. package/lang/translations/no.po +155 -155
  214. package/lang/translations/pl.po +159 -159
  215. package/lang/translations/pt-br.po +155 -155
  216. package/lang/translations/pt.po +155 -155
  217. package/lang/translations/ro.po +159 -159
  218. package/lang/translations/ru.po +159 -159
  219. package/lang/translations/sk.po +159 -159
  220. package/lang/translations/sr.po +159 -159
  221. package/lang/translations/sv.po +155 -155
  222. package/lang/translations/th.po +151 -151
  223. package/lang/translations/tr.po +155 -155
  224. package/lang/translations/uk.po +159 -159
  225. package/lang/translations/vi.po +151 -151
  226. package/lang/translations/zh-cn.po +151 -151
  227. package/lang/translations/zh.po +151 -151
  228. package/package.json +16 -15
  229. package/src/aiactions/aiactions.js +1 -1
  230. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  231. package/src/aiactions/model/aiactionsreply.d.ts +2 -1
  232. package/src/aiactions/model/aiactionsreply.js +1 -1
  233. package/src/aiassistant/adapters/aiadapter.js +1 -1
  234. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  235. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  236. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  237. package/src/aiassistant/aiassistant.js +1 -1
  238. package/src/aiassistant/aiassistantediting.js +1 -1
  239. package/src/aiassistant/aiassistantui.js +1 -1
  240. package/src/aiassistant/legacyerrors.js +1 -1
  241. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  242. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  243. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  244. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  245. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  246. package/src/aiassistant/ui/form/aiformview.js +1 -1
  247. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  248. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  249. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  250. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  251. package/src/aiassistant/utils/common-translations.js +1 -1
  252. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  253. package/src/aiballoon/aiballoon.js +1 -1
  254. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  255. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  256. package/src/aiballoon/ui/aiballoonview.js +1 -1
  257. package/src/aichat/aichat.js +1 -1
  258. package/src/aichat/aichatcontroller.js +1 -1
  259. package/src/aichat/aichatui.js +1 -1
  260. package/src/aichat/model/aichatcontext.js +1 -1
  261. package/src/aichat/model/aichatconversation.js +1 -1
  262. package/src/aichat/model/aichatinteraction.js +1 -1
  263. package/src/aichat/model/aichatmodels.js +1 -1
  264. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  265. package/src/aichat/ui/aichatfeedview.js +1 -1
  266. package/src/aichat/ui/aichatheaderview.js +1 -1
  267. package/src/aichat/ui/aichatview.js +1 -1
  268. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  269. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  270. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  271. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  272. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  273. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  274. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  275. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  276. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  277. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  278. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  279. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  280. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  281. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  282. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  283. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  284. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  285. package/src/aichat/ui/feed/aichatfeedreplyitemview.d.ts +2 -1
  286. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  287. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  288. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  289. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  290. package/src/aichat/utils/eventnames.js +1 -1
  291. package/src/aichat/utils/promisequeue.js +1 -1
  292. package/src/aichat/utils/scrollmanager.js +1 -1
  293. package/src/aichathistory/aichathistory.js +1 -1
  294. package/src/aichathistory/aichathistorycontroller.js +1 -1
  295. package/src/aichathistory/aichathistoryui.js +1 -1
  296. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  297. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  298. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  299. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  300. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  301. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  302. package/src/aiconfig.d.ts +5 -0
  303. package/src/aicore/aiconnector.js +1 -1
  304. package/src/aicore/aiediting.js +1 -1
  305. package/src/aicore/model/aicapabilities.js +1 -1
  306. package/src/aicore/model/aicontext.js +1 -1
  307. package/src/aicore/model/aiinteraction.js +1 -1
  308. package/src/aicore/model/aireply.js +1 -1
  309. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  310. package/src/aicore/pipeline/airesponseparser.js +2 -2
  311. package/src/aicore/ui/aidisclaimerview.js +1 -1
  312. package/src/aicore/ui/aiskeleton.js +1 -1
  313. package/src/aicore/ui/aispinner.js +1 -1
  314. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  315. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +2 -1
  316. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  317. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +2 -1
  318. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  319. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +2 -1
  320. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  321. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  322. package/src/aicore/utils/common-translations.js +1 -1
  323. package/src/aicore/utils/createresizebutton.js +1 -1
  324. package/src/aicore/utils/documentposition.js +1 -1
  325. package/src/aicore/utils/documentrange.js +1 -1
  326. package/src/aicore/utils/eventnames.js +1 -1
  327. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  328. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  329. package/src/aicore/utils/getsuggestionpartsfromreply.d.ts +2 -1
  330. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  331. package/src/aicore/utils/htmlparser.js +1 -1
  332. package/src/aicore/utils/htmlstreamer.js +1 -1
  333. package/src/aiquickactions/aiquickactions.js +1 -1
  334. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  335. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  336. package/src/aiquickactions/aiquickactionsui.js +1 -1
  337. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  338. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  339. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  340. package/src/aiquickactions/utils/common-translations.js +1 -1
  341. package/src/aireviewmode/aireviewcheckdefinitions.d.ts +31 -0
  342. package/src/aireviewmode/aireviewcheckdefinitions.js +23 -0
  343. package/src/aireviewmode/aireviewmode.d.ts +37 -0
  344. package/src/aireviewmode/aireviewmode.js +1 -1
  345. package/src/aireviewmode/aireviewmodecontroller.d.ts +1 -1
  346. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  347. package/src/aireviewmode/aireviewmodeediting.d.ts +24 -8
  348. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  349. package/src/aireviewmode/aireviewmodeui.d.ts +12 -1
  350. package/src/aireviewmode/aireviewmodeui.js +1 -1
  351. package/src/aireviewmode/model/aireviewcheck.d.ts +2 -19
  352. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  353. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  354. package/src/aireviewmode/model/aireviewchecklist.d.ts +2 -5
  355. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  356. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  357. package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +6 -0
  358. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  359. package/src/aireviewmode/model/aireviewcheckrun.d.ts +24 -2
  360. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  361. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +4 -0
  362. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  363. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  364. package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +4 -0
  365. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  366. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  367. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +30 -0
  368. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +23 -0
  369. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +12 -2
  370. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  371. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  372. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  373. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +1 -0
  374. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  375. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.d.ts +1 -0
  376. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  377. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +4 -0
  378. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  379. package/src/aireviewmode/ui/aireviewmodeview.d.ts +1 -0
  380. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  381. package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +1 -1
  382. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  383. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +1 -1
  384. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  385. package/src/aireviewmode/ui/form/aireviewmodeformmanager.d.ts +1 -1
  386. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  387. package/src/aitabs/aitabs.js +1 -1
  388. package/src/aitabs/aitabsmainview.js +1 -1
  389. package/src/aitabs/tabs/aitabsview.js +1 -1
  390. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  391. package/src/aitabs/tabs/tabpanelview.js +1 -1
  392. package/src/index.d.ts +3 -2
  393. package/src/index.js +1 -1
  394. package/theme/aichat/aichat-controls/aichat-controls-loader.css +1 -1
  395. package/theme/aichat/aichat-controls.css +4 -0
  396. package/theme/aichat/aichatfeed.css +10 -2
  397. package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +19 -0
  398. package/theme/aireviewmode/aireviewmode-check-run-result.css +45 -0
  399. package/theme/aireviewmode/aireviewmode-check-run.css +0 -35
  400. package/theme/aitabs/tabs/tabbuttonview.css +1 -0
  401. package/src/aireviewmode/utils/common-translations.d.ts +0 -9
  402. package/src/aireviewmode/utils/common-translations.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x199235=_0x2f14;(function(_0x50006d,_0x1b753f){const _0x499521=_0x2f14,_0x5d3f4e=_0x50006d();while(!![]){try{const _0x2041aa=parseInt(_0x499521(0x1c8))/0x1*(-parseInt(_0x499521(0x178))/0x2)+parseInt(_0x499521(0x1ca))/0x3*(parseInt(_0x499521(0x1a2))/0x4)+parseInt(_0x499521(0x184))/0x5+parseInt(_0x499521(0x1bd))/0x6*(parseInt(_0x499521(0x1a9))/0x7)+-parseInt(_0x499521(0x183))/0x8*(-parseInt(_0x499521(0x1cf))/0x9)+-parseInt(_0x499521(0x1c3))/0xa+-parseInt(_0x499521(0x18d))/0xb;if(_0x2041aa===_0x1b753f)break;else _0x5d3f4e['push'](_0x5d3f4e['shift']());}catch(_0x38431e){_0x5d3f4e['push'](_0x5d3f4e['shift']());}}}(_0x3761,0x2cb8d));import{View as _0x5c61a2,SearchTextView as _0x246e1e,FormHeaderView as _0xca204f,ButtonView as _0x1153fd}from'ckeditor5/src/ui.js';function _0x2f14(_0xb7c001,_0x505feb){const _0x3761f0=_0x3761();return _0x2f14=function(_0x2f140b,_0x291ac1){_0x2f140b=_0x2f140b-0x174;let _0x30e5c6=_0x3761f0[_0x2f140b];return _0x30e5c6;},_0x2f14(_0xb7c001,_0x505feb);}import{IconAIHistory as _0x1e0d0a,IconCancel as _0x46ad74}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x3bf3c7}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x2cc544}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x3fc6b7}from'./aichathistorylistitemview.js';function _0x3761(){const _0x2be7eb=['fieldView','_createErrorView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','locale','push','139237rCjCZC','delegate','add','isSearchViewVisible','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','removeItem','div','ck-ai-chat-error','updateItemTitle','fire','errorMessage','ltr','search','skeletonView','extendTemplate','clear','isMaximized','searchView','updateItemLoadingState','AI_CHAT_HISTORY_EMPTY_MESSAGE','48tBzBEc','_updateViewVisibility','splice','getItem','bindTemplate','itemsViews','38970FuOeRG','resizeButton','hasItems','isVisible','ck-hidden','212879PuPQoQ','remove','6eOifzh','updateHistoryItemsWithCategories','indexOf','isEmptyViewVisible','some','1334943FXBaoB','addMany','AI_CHAT_HISTORY_HEADING','render','updateLoadingState','2JDcyzv','execute','emptyView','_createSkeletonView','title','sections','_createListItemViews','change:errorMessage','_createSearchView','queryView','ck-ai-chat-history__open-chat-button','8rYoWTg','1397420cvnRYx','updateTitle','ck-ai-header\x20ck-ai-header_history','ck-ai-chat-history','items','_refreshSearch','change:hasItems','set','change:isLoading','3473844ObyIVr','bind','element','children','length','ck-reset_all','errorView','isLoading','ck-ai-chat-error__dismiss-button','ck-rounded-corners','_createEmptyStateView','AI_CHAT_HISTORY_SEARCH_LABEL','value','openChat','AI_CHAT_HISTORY_GO_TO_CHAT_BUTTON','ck-ai-chat-history__empty-message','removeHistoryItem','ck-ai-chat-history__empty','sectionsView','ck-ai-chat-history__content','aiHistory','257644gJQcqU','setTemplate'];_0x3761=function(){return _0x2be7eb;};return _0x3761();}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3003d2}from'../aichathistoryui.js';import{AISkeletonView as _0x129b4d,SKELETON_DEFINITIONS as _0x10e87d}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x59814b}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x24314c}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x5c61a2{[_0x199235(0x1ba)];[_0x199235(0x193)];[_0x199235(0x1b6)];[_0x199235(0x17a)];[_0x199235(0x19f)];[_0x199235(0x1c4)];constructor(_0x384a4d,_0x4abff4){const _0x588e67=_0x199235;super(_0x384a4d),this[_0x588e67(0x18b)](_0x588e67(0x1c5),!0x1),this[_0x588e67(0x18b)](_0x588e67(0x194),!0x0),this[_0x588e67(0x18b)](_0x588e67(0x1b3),''),this[_0x588e67(0x18b)](_0x588e67(0x1b9),!0x1),this[_0x588e67(0x18b)](_0x588e67(0x1ac),!0x1),this[_0x588e67(0x18b)](_0x588e67(0x1cd),!0x1);const _0x574466=new _0xca204f(_0x384a4d,{'label':_0x24314c(_0x384a4d,_0x588e67(0x175)),'icon':_0x1e0d0a,'class':_0x588e67(0x186)});_0x4abff4&&(this[_0x588e67(0x1c4)]=_0x59814b(_0x384a4d,this),_0x574466[_0x588e67(0x190)][_0x588e67(0x1ab)](this[_0x588e67(0x1c4)])),this[_0x588e67(0x19f)]=new _0x3bf3c7(_0x384a4d,[]),this[_0x588e67(0x19f)][_0x588e67(0x1aa)](..._0x3003d2)['to'](this),this[_0x588e67(0x193)]=this[_0x588e67(0x1a5)](),this[_0x588e67(0x1b6)]=this[_0x588e67(0x17b)](),this[_0x588e67(0x17a)]=this[_0x588e67(0x197)](),this[_0x588e67(0x1ba)]=this[_0x588e67(0x180)](),this['on'](_0x588e67(0x18c),()=>this[_0x588e67(0x1be)]()),this['on'](_0x588e67(0x18a),()=>this[_0x588e67(0x1be)]()),this['on'](_0x588e67(0x17f),()=>this[_0x588e67(0x1be)]()),this[_0x588e67(0x1a3)]({'tag':_0x588e67(0x1af),'attributes':{'class':['ck',_0x588e67(0x192),_0x588e67(0x187),_0x588e67(0x196)],'dir':_0x588e67(0x1b4)},'children':[_0x574466,{'tag':_0x588e67(0x1af),'attributes':{'class':[_0x588e67(0x1a0)]},'children':[this[_0x588e67(0x1b6)],this[_0x588e67(0x193)],this[_0x588e67(0x17a)],this[_0x588e67(0x1ba)]]}]});}[_0x199235(0x1be)](){const _0x54075a=_0x199235;this[_0x54075a(0x1ac)]=!this[_0x54075a(0x194)]&&this[_0x54075a(0x1c5)]&&!this[_0x54075a(0x1b3)],this[_0x54075a(0x1cd)]=!this[_0x54075a(0x194)]&&!this[_0x54075a(0x1c5)]&&!this[_0x54075a(0x1b3)];}[_0x199235(0x180)](){const _0x53479b=_0x199235,_0x312bca=new _0x246e1e(this[_0x53479b(0x1a7)],{'filteredView':this[_0x53479b(0x19f)],'queryView':{'label':_0x24314c(this[_0x53479b(0x1a7)],_0x53479b(0x198))},'infoView':{'text':{'notFound':{'primary':_0x5eaa7c=>_0x24314c(this[_0x53479b(0x1a7)],_0x53479b(0x1a6),_0x5eaa7c),'secondary':_0x24314c(this[_0x53479b(0x1a7)],_0x53479b(0x1ad))}}}});return _0x312bca['on'](_0x53479b(0x176),()=>{const _0x40b9ea=_0x53479b;this[_0x40b9ea(0x1ba)][_0x40b9ea(0x190)][_0x40b9ea(0x1ab)](this[_0x40b9ea(0x193)],0x1);}),_0x312bca[_0x53479b(0x1b7)]({'attributes':{'class':[this[_0x53479b(0x1c1)]['if'](_0x53479b(0x1ac),_0x53479b(0x1c7),_0x5472dd=>!_0x5472dd)]}}),_0x312bca;}[_0x199235(0x17b)](){const _0x40b411=_0x199235,_0x3f74f0=new _0x129b4d(this[_0x40b411(0x1a7)],_0x10e87d[_0x40b411(0x1a1)]);return _0x3f74f0[_0x40b411(0x1b7)]({'attributes':{'class':[this[_0x40b411(0x1c1)]['if'](_0x40b411(0x194),_0x40b411(0x1c7),_0x158fb4=>!_0x158fb4)]}}),_0x3f74f0;}[_0x199235(0x1a5)](){const _0x26ad84=_0x199235,_0xeb2202=new _0x5c61a2(this[_0x26ad84(0x1a7)]),_0x58a16f=new _0x1153fd(this[_0x26ad84(0x1a7)]);return _0x58a16f[_0x26ad84(0x18b)]({'withText':!0x1,'icon':_0x46ad74,'class':_0x26ad84(0x195)}),_0x58a16f[_0x26ad84(0x18e)](_0x26ad84(0x1c6))['to'](this,_0x26ad84(0x1c5),_0x149f57=>!!_0x149f57),_0x58a16f['on'](_0x26ad84(0x179),()=>{const _0x34e2db=_0x26ad84;this[_0x34e2db(0x1b3)]='';}),_0xeb2202[_0x26ad84(0x1a3)]({'tag':_0x26ad84(0x1af),'attributes':{'class':['ck',_0x26ad84(0x1b0),this[_0x26ad84(0x1c1)]['if'](_0x26ad84(0x1b3),_0x26ad84(0x1c7),_0x5e8bde=>!_0x5e8bde)]},'children':[{'tag':'p','children':[{'text':this[_0x26ad84(0x1c1)]['to'](_0x26ad84(0x1b3))}]},_0x58a16f]}),_0xeb2202;}[_0x199235(0x197)](){const _0x11e21a=_0x199235,_0x4f16e4=new _0x1153fd(this[_0x11e21a(0x1a7)]);_0x4f16e4[_0x11e21a(0x18b)]({'withText':!0x0,'label':_0x24314c(this[_0x11e21a(0x1a7)],_0x11e21a(0x19b)),'class':_0x11e21a(0x182)}),_0x4f16e4['on'](_0x11e21a(0x179),()=>{const _0x40371e=_0x11e21a;this[_0x40371e(0x1b2)](_0x40371e(0x19a));});const _0x33e5b7=new _0x5c61a2(this[_0x11e21a(0x1a7)]);return _0x33e5b7[_0x11e21a(0x1a3)]({'tag':_0x11e21a(0x1af),'attributes':{'class':[_0x11e21a(0x19e),this[_0x11e21a(0x1c1)]['if'](_0x11e21a(0x1cd),_0x11e21a(0x1c7),_0x4b9917=>!_0x4b9917)]},'children':[{'tag':'p','attributes':{'class':[_0x11e21a(0x19c)]},'children':[_0x24314c(this[_0x11e21a(0x1a7)],_0x11e21a(0x1bc))]},_0x4f16e4]}),_0x33e5b7;}[_0x199235(0x17e)](_0xc99133,_0x4eecf2){const _0x317175=_0x199235,_0x299ccf=[];for(const _0x337754 of _0xc99133){const _0x2fd2fd=new _0x3fc6b7(_0x4eecf2,_0x337754);_0x2fd2fd[_0x317175(0x1aa)](..._0x3003d2)['to'](this),_0x299ccf[_0x317175(0x1a8)](_0x2fd2fd);}return _0x299ccf;}[_0x199235(0x1cb)](_0x173d40){const _0x1a2509=_0x199235,_0x32f377=this[_0x1a2509(0x1a7)]||'en',_0x4dc0d8=[];for(const _0x127ddc of _0x173d40){const _0x280cd4=this[_0x1a2509(0x17e)](_0x127ddc[_0x1a2509(0x188)],_0x32f377);_0x4dc0d8[_0x1a2509(0x1a8)](new _0x2cc544(_0x32f377,{'title':_0x127ddc[_0x1a2509(0x17c)],'items':_0x280cd4}));}this[_0x1a2509(0x19f)][_0x1a2509(0x17d)]=_0x4dc0d8,this[_0x1a2509(0x19f)][_0x1a2509(0x188)][_0x1a2509(0x1b8)](),this[_0x1a2509(0x19f)][_0x1a2509(0x188)][_0x1a2509(0x174)](_0x4dc0d8),this[_0x1a2509(0x1c5)]=_0x173d40[_0x1a2509(0x1ce)](_0x224875=>_0x224875[_0x1a2509(0x188)][_0x1a2509(0x191)]>0x0),this[_0x1a2509(0x189)]();}[_0x199235(0x19d)](_0x49a2f1){const _0x4f71da=_0x199235;for(const _0x2c7a1e of this[_0x4f71da(0x19f)][_0x4f71da(0x17d)]){const _0x168b94=_0x2c7a1e[_0x4f71da(0x1c0)](_0x49a2f1);if(_0x168b94){if(_0x2c7a1e[_0x4f71da(0x1ae)](_0x168b94),0x0===_0x2c7a1e[_0x4f71da(0x1c2)][_0x4f71da(0x191)]){const _0x29b5e7=this[_0x4f71da(0x19f)][_0x4f71da(0x17d)][_0x4f71da(0x1cc)](_0x2c7a1e);-0x1!==_0x29b5e7&&(this[_0x4f71da(0x19f)][_0x4f71da(0x17d)][_0x4f71da(0x1bf)](_0x29b5e7,0x1),this[_0x4f71da(0x19f)][_0x4f71da(0x188)][_0x4f71da(0x1c9)](_0x2c7a1e));}this[_0x4f71da(0x1c5)]=this[_0x4f71da(0x19f)][_0x4f71da(0x17d)][_0x4f71da(0x191)]>0x0,this[_0x4f71da(0x189)]();break;}}}[_0x199235(0x1b1)](_0x59d9c1,_0x4a6b77){const _0x5c0216=_0x199235;for(const _0x503081 of this[_0x5c0216(0x19f)][_0x5c0216(0x17d)]){const _0x5082b2=_0x503081[_0x5c0216(0x1c0)](_0x59d9c1);if(_0x5082b2){_0x5082b2[_0x5c0216(0x185)](_0x4a6b77);break;}}}[_0x199235(0x1bb)](_0x5e2b8c,_0x21d9f3,_0x20a3e0){const _0xde5d53=_0x199235;for(const _0x41dfa0 of this[_0xde5d53(0x19f)][_0xde5d53(0x17d)]){const _0x387866=_0x41dfa0[_0xde5d53(0x1c0)](_0x5e2b8c);if(_0x387866){_0x387866[_0xde5d53(0x177)](_0x21d9f3,_0x20a3e0);break;}}}[_0x199235(0x189)](){const _0xd31e2b=_0x199235;if(this[_0xd31e2b(0x1c5)]){const _0x1ac984=this[_0xd31e2b(0x1ba)][_0xd31e2b(0x181)][_0xd31e2b(0x1a4)]?.[_0xd31e2b(0x18f)]?.[_0xd31e2b(0x199)]||'';this[_0xd31e2b(0x1ba)][_0xd31e2b(0x1b5)](_0x1ac984);}}}
23
+ const _0x1ed285=_0x53b2;(function(_0x1313c1,_0xc971c9){const _0x567b30=_0x53b2,_0x29c1c7=_0x1313c1();while(!![]){try{const _0x42bf0b=parseInt(_0x567b30(0x1d1))/0x1+parseInt(_0x567b30(0x1ee))/0x2*(-parseInt(_0x567b30(0x1cb))/0x3)+parseInt(_0x567b30(0x200))/0x4+-parseInt(_0x567b30(0x1fd))/0x5*(-parseInt(_0x567b30(0x1f7))/0x6)+parseInt(_0x567b30(0x20e))/0x7*(parseInt(_0x567b30(0x1c5))/0x8)+parseInt(_0x567b30(0x213))/0x9+-parseInt(_0x567b30(0x1dc))/0xa*(parseInt(_0x567b30(0x204))/0xb);if(_0x42bf0b===_0xc971c9)break;else _0x29c1c7['push'](_0x29c1c7['shift']());}catch(_0x292a20){_0x29c1c7['push'](_0x29c1c7['shift']());}}}(_0x4ccc,0x910c6));import{View as _0x20eafb,SearchTextView as _0x1d3199,FormHeaderView as _0x5e53e0,ButtonView as _0x2f8773}from'ckeditor5/src/ui.js';function _0x53b2(_0x4659cd,_0x2d4d9b){const _0x4ccc83=_0x4ccc();return _0x53b2=function(_0x53b264,_0x367196){_0x53b264=_0x53b264-0x1ba;let _0x1019d9=_0x4ccc83[_0x53b264];return _0x1019d9;},_0x53b2(_0x4659cd,_0x2d4d9b);}import{IconAIHistory as _0x2b0047,IconCancel as _0x1ffb7d}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x16500b}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x1f727b}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x57f9fb}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x66e647}from'../aichathistoryui.js';import{AISkeletonView as _0x5e5ada,SKELETON_DEFINITIONS as _0x4ce906}from'../../aicore/ui/aiskeleton.js';function _0x4ccc(){const _0x553592=['ck-ai-chat-error','_createEmptyStateView','isEmptyViewVisible','change:isLoading','AI_CHAT_HISTORY_EMPTY_MESSAGE','AI_CHAT_HISTORY_GO_TO_CHAT_BUTTON','1350BHPGrC','resizeButton','ck-reset_all','updateTitle','isMaximized','locale','itemsViews','isSearchViewVisible','clear','updateLoadingState','_createErrorView','isLoading','push','queryView','openChat','updateItemLoadingState','remove','ck-ai-chat-history__empty','878cYBXQO','sections','errorMessage','_createSkeletonView','bindTemplate','items','indexOf','skeletonView','change:hasItems','11778UBvnMh','removeItem','emptyView','splice','removeHistoryItem','div','1325eGuYbf','children','isVisible','2461088BYkouW','AI_CHAT_HISTORY_SEARCH_LABEL','ck-ai-chat-history__content','change:errorMessage','71159ChSnFM','bind','value','length','searchView','AI_CHAT_HISTORY_HEADING','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','_updateViewVisibility','execute','hasItems','1409163fXAppz','sectionsView','add','ck-ai-chat-history__empty-message','set','2430225xqhXns','element','some','render','addMany','ck-hidden','ck-ai-chat-history__open-chat-button','delegate','ck-ai-header\x20ck-ai-header_history','ltr','ck-rounded-corners','updateHistoryItemsWithCategories','title','_refreshSearch','40PcfNMa','extendTemplate','ck-ai-chat-error__dismiss-button','_createListItemViews','ck-ai-chat-history','updateItemTitle','7818OWydcz','fieldView','getItem','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_createSearchView','fire','199430slyEJJ','search','setTemplate','aiHistory','errorView'];_0x4ccc=function(){return _0x553592;};return _0x4ccc();}import{createResizeButton as _0x43ad7a}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0xb4f977}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x20eafb{[_0x1ed285(0x208)];[_0x1ed285(0x1d5)];[_0x1ed285(0x1f5)];[_0x1ed285(0x1f9)];[_0x1ed285(0x20f)];[_0x1ed285(0x1dd)];constructor(_0x526b8f,_0x14fc67){const _0x4ac229=_0x1ed285;super(_0x526b8f),this[_0x4ac229(0x212)](_0x4ac229(0x20d),!0x1),this[_0x4ac229(0x212)](_0x4ac229(0x1e7),!0x0),this[_0x4ac229(0x212)](_0x4ac229(0x1f0),''),this[_0x4ac229(0x212)](_0x4ac229(0x1e0),!0x1),this[_0x4ac229(0x212)](_0x4ac229(0x1e3),!0x1),this[_0x4ac229(0x212)](_0x4ac229(0x1d8),!0x1);const _0x5c2c2b=new _0x5e53e0(_0x526b8f,{'label':_0xb4f977(_0x526b8f,_0x4ac229(0x209)),'icon':_0x2b0047,'class':_0x4ac229(0x1bf)});_0x14fc67&&(this[_0x4ac229(0x1dd)]=_0x43ad7a(_0x526b8f,this),_0x5c2c2b[_0x4ac229(0x1fe)][_0x4ac229(0x210)](this[_0x4ac229(0x1dd)])),this[_0x4ac229(0x20f)]=new _0x16500b(_0x526b8f,[]),this[_0x4ac229(0x20f)][_0x4ac229(0x1be)](..._0x66e647)['to'](this),this[_0x4ac229(0x1d5)]=this[_0x4ac229(0x1e6)](),this[_0x4ac229(0x1f5)]=this[_0x4ac229(0x1f1)](),this[_0x4ac229(0x1f9)]=this[_0x4ac229(0x1d7)](),this[_0x4ac229(0x208)]=this[_0x4ac229(0x1cf)](),this['on'](_0x4ac229(0x1d9),()=>this[_0x4ac229(0x20b)]()),this['on'](_0x4ac229(0x1f6),()=>this[_0x4ac229(0x20b)]()),this['on'](_0x4ac229(0x203),()=>this[_0x4ac229(0x20b)]()),this[_0x4ac229(0x1d3)]({'tag':_0x4ac229(0x1fc),'attributes':{'class':['ck',_0x4ac229(0x1de),_0x4ac229(0x1c9),_0x4ac229(0x1c1)],'dir':_0x4ac229(0x1c0)},'children':[_0x5c2c2b,{'tag':_0x4ac229(0x1fc),'attributes':{'class':[_0x4ac229(0x202)]},'children':[this[_0x4ac229(0x1f5)],this[_0x4ac229(0x1d5)],this[_0x4ac229(0x1f9)],this[_0x4ac229(0x208)]]}]});}[_0x1ed285(0x20b)](){const _0x2ed710=_0x1ed285;this[_0x2ed710(0x1e3)]=!this[_0x2ed710(0x1e7)]&&this[_0x2ed710(0x20d)]&&!this[_0x2ed710(0x1f0)],this[_0x2ed710(0x1d8)]=!this[_0x2ed710(0x1e7)]&&!this[_0x2ed710(0x20d)]&&!this[_0x2ed710(0x1f0)];}[_0x1ed285(0x1cf)](){const _0x1448f6=_0x1ed285,_0x36f1cc=new _0x1d3199(this[_0x1448f6(0x1e1)],{'filteredView':this[_0x1448f6(0x20f)],'queryView':{'label':_0xb4f977(this[_0x1448f6(0x1e1)],_0x1448f6(0x201))},'infoView':{'text':{'notFound':{'primary':_0x5434c0=>_0xb4f977(this[_0x1448f6(0x1e1)],_0x1448f6(0x1ce),_0x5434c0),'secondary':_0xb4f977(this[_0x1448f6(0x1e1)],_0x1448f6(0x20a))}}}});return _0x36f1cc['on'](_0x1448f6(0x1ba),()=>{const _0x5632bf=_0x1448f6;this[_0x5632bf(0x208)][_0x5632bf(0x1fe)][_0x5632bf(0x210)](this[_0x5632bf(0x1d5)],0x1);}),_0x36f1cc[_0x1448f6(0x1c6)]({'attributes':{'class':[this[_0x1448f6(0x1f2)]['if'](_0x1448f6(0x1e3),_0x1448f6(0x1bc),_0x2aefb1=>!_0x2aefb1)]}}),_0x36f1cc;}[_0x1ed285(0x1f1)](){const _0x48a66a=_0x1ed285,_0x58197f=new _0x5e5ada(this[_0x48a66a(0x1e1)],_0x4ce906[_0x48a66a(0x1d4)]);return _0x58197f[_0x48a66a(0x1c6)]({'attributes':{'class':[this[_0x48a66a(0x1f2)]['if'](_0x48a66a(0x1e7),_0x48a66a(0x1bc),_0x5c00b0=>!_0x5c00b0)]}}),_0x58197f;}[_0x1ed285(0x1e6)](){const _0x3fa615=_0x1ed285,_0x36ea5c=new _0x20eafb(this[_0x3fa615(0x1e1)]),_0x1826f8=new _0x2f8773(this[_0x3fa615(0x1e1)]);return _0x1826f8[_0x3fa615(0x212)]({'withText':!0x1,'icon':_0x1ffb7d,'class':_0x3fa615(0x1c7)}),_0x1826f8[_0x3fa615(0x205)](_0x3fa615(0x1ff))['to'](this,_0x3fa615(0x20d),_0x2a448f=>!!_0x2a448f),_0x1826f8['on'](_0x3fa615(0x20c),()=>{const _0x768ceb=_0x3fa615;this[_0x768ceb(0x1f0)]='';}),_0x36ea5c[_0x3fa615(0x1d3)]({'tag':_0x3fa615(0x1fc),'attributes':{'class':['ck',_0x3fa615(0x1d6),this[_0x3fa615(0x1f2)]['if'](_0x3fa615(0x1f0),_0x3fa615(0x1bc),_0xcf084b=>!_0xcf084b)]},'children':[{'tag':'p','children':[{'text':this[_0x3fa615(0x1f2)]['to'](_0x3fa615(0x1f0))}]},_0x1826f8]}),_0x36ea5c;}[_0x1ed285(0x1d7)](){const _0x22e6eb=_0x1ed285,_0x39fa1b=new _0x2f8773(this[_0x22e6eb(0x1e1)]);_0x39fa1b[_0x22e6eb(0x212)]({'withText':!0x0,'label':_0xb4f977(this[_0x22e6eb(0x1e1)],_0x22e6eb(0x1db)),'class':_0x22e6eb(0x1bd)}),_0x39fa1b['on'](_0x22e6eb(0x20c),()=>{const _0xd56ee7=_0x22e6eb;this[_0xd56ee7(0x1d0)](_0xd56ee7(0x1ea));});const _0x555982=new _0x20eafb(this[_0x22e6eb(0x1e1)]);return _0x555982[_0x22e6eb(0x1d3)]({'tag':_0x22e6eb(0x1fc),'attributes':{'class':[_0x22e6eb(0x1ed),this[_0x22e6eb(0x1f2)]['if'](_0x22e6eb(0x1d8),_0x22e6eb(0x1bc),_0x473332=>!_0x473332)]},'children':[{'tag':'p','attributes':{'class':[_0x22e6eb(0x211)]},'children':[_0xb4f977(this[_0x22e6eb(0x1e1)],_0x22e6eb(0x1da))]},_0x39fa1b]}),_0x555982;}[_0x1ed285(0x1c8)](_0x5df3f2,_0x579b4e){const _0x1a81ad=_0x1ed285,_0x5aae75=[];for(const _0x2be392 of _0x5df3f2){const _0x4d80e8=new _0x57f9fb(_0x579b4e,_0x2be392);_0x4d80e8[_0x1a81ad(0x1be)](..._0x66e647)['to'](this),_0x5aae75[_0x1a81ad(0x1e8)](_0x4d80e8);}return _0x5aae75;}[_0x1ed285(0x1c2)](_0x131fa8){const _0x3c1f40=_0x1ed285,_0x513ea9=this[_0x3c1f40(0x1e1)]||'en',_0x46c074=[];for(const _0x4fe63d of _0x131fa8){const _0x37b688=this[_0x3c1f40(0x1c8)](_0x4fe63d[_0x3c1f40(0x1f3)],_0x513ea9);_0x46c074[_0x3c1f40(0x1e8)](new _0x1f727b(_0x513ea9,{'title':_0x4fe63d[_0x3c1f40(0x1c3)],'items':_0x37b688}));}this[_0x3c1f40(0x20f)][_0x3c1f40(0x1ef)]=_0x46c074,this[_0x3c1f40(0x20f)][_0x3c1f40(0x1f3)][_0x3c1f40(0x1e4)](),this[_0x3c1f40(0x20f)][_0x3c1f40(0x1f3)][_0x3c1f40(0x1bb)](_0x46c074),this[_0x3c1f40(0x20d)]=_0x131fa8[_0x3c1f40(0x215)](_0x4e893e=>_0x4e893e[_0x3c1f40(0x1f3)][_0x3c1f40(0x207)]>0x0),this[_0x3c1f40(0x1c4)]();}[_0x1ed285(0x1fb)](_0x4ee6cb){const _0x46c646=_0x1ed285;for(const _0x13ac34 of this[_0x46c646(0x20f)][_0x46c646(0x1ef)]){const _0x3eceb9=_0x13ac34[_0x46c646(0x1cd)](_0x4ee6cb);if(_0x3eceb9){if(_0x13ac34[_0x46c646(0x1f8)](_0x3eceb9),0x0===_0x13ac34[_0x46c646(0x1e2)][_0x46c646(0x207)]){const _0x4a855b=this[_0x46c646(0x20f)][_0x46c646(0x1ef)][_0x46c646(0x1f4)](_0x13ac34);-0x1!==_0x4a855b&&(this[_0x46c646(0x20f)][_0x46c646(0x1ef)][_0x46c646(0x1fa)](_0x4a855b,0x1),this[_0x46c646(0x20f)][_0x46c646(0x1f3)][_0x46c646(0x1ec)](_0x13ac34));}this[_0x46c646(0x20d)]=this[_0x46c646(0x20f)][_0x46c646(0x1ef)][_0x46c646(0x207)]>0x0,this[_0x46c646(0x1c4)]();break;}}}[_0x1ed285(0x1ca)](_0x427703,_0x17a5e3){const _0x1bebfe=_0x1ed285;for(const _0x7fcb4d of this[_0x1bebfe(0x20f)][_0x1bebfe(0x1ef)]){const _0x4b5ad3=_0x7fcb4d[_0x1bebfe(0x1cd)](_0x427703);if(_0x4b5ad3){_0x4b5ad3[_0x1bebfe(0x1df)](_0x17a5e3);break;}}}[_0x1ed285(0x1eb)](_0x209cff,_0x9be3cb,_0x3e6cb7){const _0x533a12=_0x1ed285;for(const _0x58e023 of this[_0x533a12(0x20f)][_0x533a12(0x1ef)]){const _0x251473=_0x58e023[_0x533a12(0x1cd)](_0x209cff);if(_0x251473){_0x251473[_0x533a12(0x1e5)](_0x9be3cb,_0x3e6cb7);break;}}}[_0x1ed285(0x1c4)](){const _0x42a44b=_0x1ed285;if(this[_0x42a44b(0x20d)]){const _0x397bb5=this[_0x42a44b(0x208)][_0x42a44b(0x1e9)][_0x42a44b(0x1cc)]?.[_0x42a44b(0x214)]?.[_0x42a44b(0x206)]||'';this[_0x42a44b(0x208)][_0x42a44b(0x1d2)](_0x397bb5);}}}
package/src/aiconfig.d.ts CHANGED
@@ -9,6 +9,7 @@
9
9
  import type { AIAssistantConfig } from './aiassistant/aiassistant.js';
10
10
  import { type AIChatConfig } from './aichat/aichat.js';
11
11
  import { type AIQuickActionsConfig } from './aiquickactions/aiquickactions.js';
12
+ import { type AIReviewModeConfig } from './aireviewmode/aireviewmode.js';
12
13
  /**
13
14
  * The configuration for all AI-related functionalities.
14
15
  *
@@ -59,6 +60,10 @@ export interface AIConfig {
59
60
  * The configuration of the AI quick actions.
60
61
  */
61
62
  quickActions?: AIQuickActionsConfig;
63
+ /**
64
+ * The configuration of the {@link module:ai/aireviewmode/aireviewmode~AIReviewMode AI Review Mode feature}.
65
+ */
66
+ reviewMode?: AIReviewModeConfig;
62
67
  }
63
68
  export type AIContainerType = 'sidebar' | 'overlay' | 'custom';
64
69
  export type AIContainerSide = 'left' | 'right';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b6368=_0x31e0;(function(_0x1b5aa0,_0x5d0168){const _0x4ec54f=_0x31e0,_0x5ca25d=_0x1b5aa0();while(!![]){try{const _0x1e4cb8=-parseInt(_0x4ec54f(0x154))/0x1*(parseInt(_0x4ec54f(0x197))/0x2)+-parseInt(_0x4ec54f(0x19b))/0x3+parseInt(_0x4ec54f(0x1c5))/0x4+parseInt(_0x4ec54f(0x174))/0x5*(-parseInt(_0x4ec54f(0x16a))/0x6)+-parseInt(_0x4ec54f(0x1b9))/0x7+-parseInt(_0x4ec54f(0x14f))/0x8*(-parseInt(_0x4ec54f(0x1a3))/0x9)+parseInt(_0x4ec54f(0x1a1))/0xa;if(_0x1e4cb8===_0x5d0168)break;else _0x5ca25d['push'](_0x5ca25d['shift']());}catch(_0x2a6ef4){_0x5ca25d['push'](_0x5ca25d['shift']());}}}(_0x5bc3,0x401aa));import{createParser as _0x438406}from'eventsource-parser';import{ContextPlugin as _0xc68553}from'ckeditor5/src/core.js';import{CKEditorError as _0x5673cc}from'ckeditor5/src/utils.js';import{getTranslation as _0x23048a}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x44f60a){const _0x3c2e58=_0x31e0;_0x44f60a[_0x3c2e58(0x183)]=_0x3c2e58(0x198),_0x44f60a[_0x3c2e58(0x177)]=_0x3c2e58(0x16f),_0x44f60a[_0x3c2e58(0x1b2)]=_0x3c2e58(0x182),_0x44f60a[_0x3c2e58(0x1a4)]=_0x3c2e58(0x169),_0x44f60a[_0x3c2e58(0x180)]=_0x3c2e58(0x14c),_0x44f60a[_0x3c2e58(0x196)]=_0x3c2e58(0x188),_0x44f60a[_0x3c2e58(0x19a)]=_0x3c2e58(0x1c2),_0x44f60a[_0x3c2e58(0x191)]=_0x3c2e58(0x16e);}(AIActionsNames||(AIActionsNames={}));function _0x31e0(_0x373c26,_0x580f06){const _0x5bc367=_0x5bc3();return _0x31e0=function(_0x31e071,_0xbac888){_0x31e071=_0x31e071-0x144;let _0x416186=_0x5bc367[_0x31e071];return _0x416186;},_0x31e0(_0x373c26,_0x580f06);}export class AIConnector extends _0xc68553{[_0x2b6368(0x156)];[_0x2b6368(0x187)];[_0x2b6368(0x1a7)];static get[_0x2b6368(0x195)](){const _0x4f648d=_0x2b6368;return[_0x4f648d(0x146)];}static get[_0x2b6368(0x1a5)](){const _0x5b4032=_0x2b6368;return _0x5b4032(0x158);}static get[_0x2b6368(0x150)](){return!0x0;}static get[_0x2b6368(0x14d)](){return!0x0;}constructor(_0x106389){const _0x378f11=_0x2b6368;super(_0x106389),this[_0x378f11(0x16b)][_0x378f11(0x14a)][_0x378f11(0x152)](_0x378f11(0x1a0),_0x378f11(0x175)),this[_0x378f11(0x156)]=this[_0x378f11(0x16b)][_0x378f11(0x14a)][_0x378f11(0x166)](_0x378f11(0x1a0)),this[_0x378f11(0x187)]=null,this[_0x378f11(0x1a7)]=new TextDecoder();}[_0x2b6368(0x1bd)](){const _0x3ed28c=_0x2b6368,_0x3dc682=this[_0x3ed28c(0x16b)][_0x3ed28c(0x1be)][_0x3ed28c(0x166)](_0x3ed28c(0x146));if(!_0x3dc682[_0x3ed28c(0x15f)])throw new _0x5673cc(_0x3ed28c(0x1ba),this);this[_0x3ed28c(0x187)]=_0x3dc682[_0x3ed28c(0x15f)];}[_0x2b6368(0x164)](_0x18cacd,_0x4f3ae2){const _0x39ab16=_0x2b6368,_0x1afaa4=this[_0x39ab16(0x19e)](_0x39ab16(0x144),_0x39ab16(0x18c),{'id':_0x18cacd,'group':_0x4f3ae2});return{'getConversation':async()=>(await _0x1afaa4[_0x39ab16(0x15d)])[_0x39ab16(0x1c0)](),'abortController':_0x1afaa4[_0x39ab16(0x192)]};}[_0x2b6368(0x157)]({message:_0x21d529,conversationId:_0x2feb53,parts:_0x1feca5,capabilities:_0x3dd566,model:_0x471eb8,quickActionData:_0x5b26ee}){const _0x1cd8da=_0x2b6368,_0x594762={..._0x5b26ee&&{'quickActionData':_0x5b26ee}},_0x3fedce={'prompt':_0x21d529,'content':_0x1feca5,'model':_0x471eb8,..._0x3dd566&&{'capabilities':_0x3dd566},...Object[_0x1cd8da(0x149)](_0x594762)[_0x1cd8da(0x155)]>0x0&&{'attributes':_0x594762}},_0x5457e0=this[_0x1cd8da(0x19e)](_0x1cd8da(0x17d)+_0x2feb53+_0x1cd8da(0x16c),_0x1cd8da(0x18c),_0x3fedce);return{'getStream':async()=>{const _0x4201b9=_0x1cd8da,_0x35e26e=(await _0x5457e0[_0x4201b9(0x15d)])[_0x4201b9(0x14b)];return this[_0x4201b9(0x15b)](_0x35e26e);},'abortController':_0x5457e0[_0x1cd8da(0x192)]};}[_0x2b6368(0x171)]({content:_0x5afb2a,message:_0x26ada9,model:_0x810592,outputFormat:_0x200162}){const _0x1a5669=_0x2b6368,_0x3e057f={'content':[{'type':_0x1a5669(0x1bf),'content':_0x5afb2a}],'prompt':_0x26ada9,'model':_0x810592,'outputFormat':_0x200162},_0x50667a=this[_0x1a5669(0x19e)](_0x1a5669(0x162),_0x1a5669(0x18c),_0x3e057f);return{'getStream':async()=>{const _0x44bb23=_0x1a5669,_0xfe3e25=(await _0x50667a[_0x44bb23(0x15d)])[_0x44bb23(0x14b)];return this[_0x44bb23(0x15b)](_0xfe3e25);},'abortController':_0x50667a[_0x1a5669(0x192)]};}[_0x2b6368(0x1b8)]({actionName:_0x50788a,content:_0x3e3745,args:_0xb2c49a}){const _0x366c57=_0x2b6368,_0x3a83ac={'content':[{'type':_0x366c57(0x1bf),'content':_0x3e3745}],'args':_0xb2c49a},_0x242013=this[_0x366c57(0x19e)](_0x366c57(0x1ad)+_0x50788a+_0x366c57(0x18a),_0x366c57(0x18c),_0x3a83ac);return{'getStream':async()=>{const _0x398a06=_0x366c57,_0x3d5445=(await _0x242013[_0x398a06(0x15d)])[_0x398a06(0x14b)];return this[_0x398a06(0x15b)](_0x3d5445);},'abortController':_0x242013[_0x366c57(0x192)]};}[_0x2b6368(0x172)](_0x571193,_0x35a975,_0x3dbc3a){const _0x414773=_0x2b6368,_0x4fcba5=new FormData();_0x4fcba5[_0x414773(0x1c3)](_0x414773(0x1ae),_0x35a975,_0x35a975[_0x414773(0x153)]),_0x3dbc3a&&_0x4fcba5[_0x414773(0x1c3)](_0x414773(0x148),JSON[_0x414773(0x1b3)](_0x3dbc3a));const _0x36ec5a=this[_0x414773(0x19e)](_0x414773(0x17d)+_0x571193+_0x414773(0x1b0),_0x414773(0x18c),_0x4fcba5);return{'getId':async()=>(await _0x36ec5a[_0x414773(0x15d)])[_0x414773(0x1c0)](),'abortController':_0x36ec5a[_0x414773(0x192)]};}[_0x2b6368(0x1b1)](_0x156dee,_0x59a347){const _0x197adc=_0x2b6368,_0x3499b5=this[_0x197adc(0x19e)](_0x197adc(0x17d)+_0x156dee+_0x197adc(0x1bb)+_0x59a347,_0x197adc(0x173));return{'getDocument':async()=>(await _0x3499b5[_0x197adc(0x15d)])[_0x197adc(0x1c0)](),'abortController':_0x3499b5[_0x197adc(0x192)]};}[_0x2b6368(0x176)](_0x1b6ce4,_0x15825c,_0x19db33){const _0x243591=_0x2b6368,_0xf0d6bb={'content':_0x15825c};_0x19db33&&(_0xf0d6bb[_0x243591(0x148)]=_0x19db33);const _0x3a7969=this[_0x243591(0x19e)](_0x243591(0x17d)+_0x1b6ce4+_0x243591(0x1ac),_0x243591(0x18c),_0xf0d6bb);return{'getId':async()=>(await _0x3a7969[_0x243591(0x15d)])[_0x243591(0x1c0)](),'abortController':_0x3a7969[_0x243591(0x192)]};}[_0x2b6368(0x18f)](_0xd7bdac,_0x5c3c61){const _0x110579=_0x2b6368,_0x1e7329=new URLSearchParams();_0x1e7329[_0x110579(0x1c3)](_0x110579(0x1af),_0x110579(0x17c)),_0x1e7329[_0x110579(0x1c3)](_0x110579(0x199),_0x110579(0x147)),_0x1e7329[_0x110579(0x1c3)](_0x110579(0x17b),_0xd7bdac),_0x5c3c61&&_0x1e7329[_0x110579(0x1c3)](_0x110579(0x15c),_0x5c3c61);const _0x43b7a3=this[_0x110579(0x19e)](_0x110579(0x1ab)+_0x1e7329[_0x110579(0x1b7)](),_0x110579(0x173));return{'getConversations':async()=>{const _0x43ec3e=_0x110579,_0x22bfa1=await _0x43b7a3[_0x43ec3e(0x15d)];return(await _0x22bfa1[_0x43ec3e(0x1c0)]())[_0x43ec3e(0x178)];},'abortController':_0x43b7a3[_0x110579(0x192)]};}[_0x2b6368(0x1a9)](_0xd1cc29){const _0x4467c8=_0x2b6368,_0x3456df=this[_0x4467c8(0x19e)](_0x4467c8(0x17d)+_0xd1cc29,_0x4467c8(0x19c));return{'execute':async()=>{const _0x1c03cc=_0x4467c8;await _0x3456df[_0x1c03cc(0x15d)];},'abortController':_0x3456df[_0x4467c8(0x192)]};}[_0x2b6368(0x194)](_0x35aafa,_0x374b64){const _0x3eb76d=_0x2b6368,_0x4ee2e5=this[_0x3eb76d(0x19e)](_0x3eb76d(0x17d)+_0x35aafa,_0x3eb76d(0x1a6),_0x374b64);return{'getResult':async()=>(await _0x4ee2e5[_0x3eb76d(0x15d)],_0x374b64),'abortController':_0x4ee2e5[_0x3eb76d(0x192)]};}[_0x2b6368(0x168)](_0x597269){const _0x39c34f=_0x2b6368,_0x10143b=this[_0x39c34f(0x19e)](_0x39c34f(0x17d)+_0x597269,_0x39c34f(0x173));return{'getConversation':async()=>(await _0x10143b[_0x39c34f(0x15d)])[_0x39c34f(0x1c0)](),'abortController':_0x10143b[_0x39c34f(0x192)]};}[_0x2b6368(0x161)](_0x16dfbd){const _0x501feb=_0x2b6368,_0x40987c=this[_0x501feb(0x19e)](_0x501feb(0x17d)+_0x16dfbd+_0x501feb(0x16c),_0x501feb(0x173));return{'getMessages':async()=>{const _0x1aaca7=_0x501feb,_0x29c4ef=await _0x40987c[_0x1aaca7(0x15d)];return(await _0x29c4ef[_0x1aaca7(0x1c0)]())[_0x1aaca7(0x178)];},'abortController':_0x40987c[_0x501feb(0x192)]};}[_0x2b6368(0x18b)](_0x5c03b1,_0x2e9438,_0x4ff46a){const _0x4a7a47=_0x2b6368,_0x9ca0b7=this[_0x4a7a47(0x19e)](_0x4a7a47(0x17d)+_0x5c03b1+_0x4a7a47(0x190),_0x4a7a47(0x18c),{'url':_0x2e9438,'attributes':_0x4ff46a});return{'getId':async()=>(await _0x9ca0b7[_0x4a7a47(0x15d)])[_0x4a7a47(0x1c0)](),'abortController':_0x9ca0b7[_0x4a7a47(0x192)]};}[_0x2b6368(0x17f)](){const _0xb6893e=_0x2b6368,_0x546826=this[_0xb6893e(0x19e)](_0xb6893e(0x160),_0xb6893e(0x173));return{'list':async()=>{const _0x3d7933=_0xb6893e,_0x30f69f=await(await _0x546826[_0x3d7933(0x15d)])[_0x3d7933(0x1c0)](),_0x4f8932=_0x30f69f[_0x3d7933(0x178)][_0x3d7933(0x18e)](_0x3d4049=>({..._0x3d4049,'description':_0x23048a(this[_0x3d7933(0x16b)][_0x3d7933(0x18d)],_0x3d7933(0x179)+_0x3d4049['id'][_0x3d7933(0x1b5)]())}));return{..._0x30f69f,'items':_0x4f8932};},'abortController':_0x546826[_0xb6893e(0x192)]};}[_0x2b6368(0x170)](_0x56585d,_0x492b1b){const _0x384f47=_0x2b6368,_0x378f62=this[_0x384f47(0x19e)](_0x384f47(0x17d)+_0x56585d+_0x384f47(0x165)+_0x492b1b,_0x384f47(0x19c));return{'execute':async()=>{const _0x49ee6=_0x384f47;await _0x378f62[_0x49ee6(0x15d)];},'abortController':_0x378f62[_0x384f47(0x192)]};}[_0x2b6368(0x163)](_0xe6aadc,_0x24dcf9){const _0x41f7e6=_0x2b6368,_0x1a5c5d=this[_0x41f7e6(0x19e)](_0x41f7e6(0x17d)+_0xe6aadc+_0x41f7e6(0x1bb)+_0x24dcf9,_0x41f7e6(0x19c));return{'execute':async()=>{const _0x127cc5=_0x41f7e6;await _0x1a5c5d[_0x127cc5(0x15d)];},'abortController':_0x1a5c5d[_0x41f7e6(0x192)]};}[_0x2b6368(0x19f)](_0x2bf8fe,_0x29523a){const _0x232d2c=_0x2b6368,_0x439c23=this[_0x232d2c(0x19e)](_0x232d2c(0x17d)+_0x2bf8fe+_0x232d2c(0x185)+_0x29523a,_0x232d2c(0x19c));return{'execute':async()=>{const _0x46928c=_0x232d2c;await _0x439c23[_0x46928c(0x15d)];},'abortController':_0x439c23[_0x232d2c(0x192)]};}[_0x2b6368(0x1b4)]({reviewName:_0x452d72,content:_0x31256a,args:_0x4d4fbf}){const _0x171936=_0x2b6368,_0x518eeb=this[_0x171936(0x19e)](_0x171936(0x1b6)+_0x452d72+_0x171936(0x18a),_0x171936(0x18c),{'content':[{'type':_0x171936(0x1bf),'content':_0x31256a}],'args':_0x4d4fbf});return{'getStream':async()=>{const _0x480ed5=_0x171936,_0x64cf17=(await _0x518eeb[_0x480ed5(0x15d)])[_0x480ed5(0x14b)];return this[_0x480ed5(0x15b)](_0x64cf17);},'abortController':_0x518eeb[_0x171936(0x192)]};}[_0x2b6368(0x17e)]({content:_0x37a130,prompt:_0x4176c4,model:_0x15b3d9}){const _0x59e347=_0x2b6368,_0x18e2dc=this[_0x59e347(0x19e)](_0x59e347(0x159),_0x59e347(0x18c),{'content':[{'type':_0x59e347(0x1bf),'content':_0x37a130}],'prompt':_0x4176c4,'model':_0x15b3d9});return{'getStream':async()=>{const _0x29c761=_0x59e347,_0x4071b2=(await _0x18e2dc[_0x29c761(0x15d)])[_0x29c761(0x14b)];return this[_0x29c761(0x15b)](_0x4071b2);},'abortController':_0x18e2dc[_0x59e347(0x192)]};}[_0x2b6368(0x19e)](_0x528109,_0x46be8c,_0x1552f4){const _0x25d0c6=_0x2b6368,_0x5b6b39=new AbortController(),_0x2ac2ba=_0x1552f4 instanceof FormData,_0x3e4ed8={'Authorization':_0x25d0c6(0x1c4)+this[_0x25d0c6(0x187)]?.[_0x25d0c6(0x15a)]};_0x1552f4&&!_0x2ac2ba&&(_0x3e4ed8[_0x25d0c6(0x15e)]=_0x25d0c6(0x1a8));const _0x4328a4={'method':_0x46be8c,'headers':_0x3e4ed8,'signal':_0x5b6b39[_0x25d0c6(0x189)]};return _0x1552f4&&(_0x4328a4[_0x25d0c6(0x14b)]=_0x2ac2ba?_0x1552f4:JSON[_0x25d0c6(0x1b3)](_0x1552f4)),{'request':fetch(''+this[_0x25d0c6(0x156)]+_0x528109,_0x4328a4)[_0x25d0c6(0x193)](_0x494e8a=>{const _0x57437a=_0x25d0c6;this[_0x57437a(0x151)](_0x494e8a);})[_0x25d0c6(0x184)](_0x5f5d72=>{const _0x46b254=_0x25d0c6;if(!_0x5f5d72['ok'])throw new _0x5673cc(_0x46b254(0x167),this);return _0x5f5d72;}),'abortController':_0x5b6b39};}async*[_0x2b6368(0x15b)](_0x4b17cb){const _0x2ea2fe=_0x2b6368,_0x338124=[],_0x51e9e2=_0x4b17cb[_0x2ea2fe(0x1c1)](),_0xc71c65=_0x438406({'onError':_0x3714dc=>{const _0x311ec1=_0x2ea2fe;this[_0x311ec1(0x151)](_0x3714dc);},'onEvent':_0x26e63a=>{const _0x58ef41=_0x2ea2fe;_0x26e63a[_0x58ef41(0x19d)]=JSON[_0x58ef41(0x181)](_0x26e63a[_0x58ef41(0x19d)]),_0x338124[_0x58ef41(0x14e)](_0x26e63a);}});try{let _0x1318ed=!0x1;for(;!_0x1318ed;){const {done:_0x12837d,value:_0xac9cb8}=await _0x51e9e2[_0x2ea2fe(0x1bc)]();_0x12837d&&(_0x1318ed=!0x0),_0xc71c65[_0x2ea2fe(0x1a2)](this[_0x2ea2fe(0x1a7)][_0x2ea2fe(0x17a)](_0xac9cb8,{'stream':!0x0})),yield*_0x338124,_0x338124[_0x2ea2fe(0x155)]=0x0;}}catch(_0x5e69f1){this[_0x2ea2fe(0x151)](_0x5e69f1);}finally{_0x51e9e2[_0x2ea2fe(0x186)](),_0xc71c65[_0x2ea2fe(0x145)]();}}[_0x2b6368(0x151)](_0x571c5a){const _0x514d38=_0x2b6368;if(_0x571c5a instanceof _0x5673cc)throw _0x571c5a;if(_0x571c5a instanceof Error&&_0x514d38(0x1aa)===_0x571c5a[_0x514d38(0x153)])throw new _0x5673cc(_0x514d38(0x16d),this,{'originalError':_0x571c5a});throw new _0x5673cc(_0x514d38(0x167),this,{'originalError':_0x571c5a});}}function _0x5bc3(){const _0x10f17b=['limit','MAKE_TONE_FORMAL','1485783yHRSOy','DELETE','data','_sendApiRequest','deleteWebResource','ai.serviceUrl','5317670pOzXok','feed','189hoWZXY','MAKE_LONGER','pluginName','PATCH','_decoder','application/json','deleteConversation','AbortError','/conversations?','/documents','/actions/system/','file','excludeEmpty','/files','fetchDocument','IMPROVE_WRITING','stringify','callSystemReview','toUpperCase','/reviews/system/','toString','executeAction','1274413RDNtbD','ai-missing-token','/documents/','read','init','plugins','text','json','getReader','make-tone-formal','append','Bearer\x20','2051564PWYwuY','/conversations','reset','CloudServices','100','attributes','keys','config','body','make-shorter','isPremiumPlugin','push','178088LTOkyJ','isOfficialPlugin','_handleError','define','name','199603DnQdkk','length','_apiUrl','queryAssistant','AIConnector','/reviews/custom/calls','value','_getStreamReader','search','request','Content-Type','token','/models/1','fetchConversationMessages','/actions/custom/calls','deleteDocument','startConversation','/files/','get','ai-request-failed','fetchConversation','make-longer','79866xEEJbO','context','/messages','ai-request-aborted','translate','fix-grammar','deleteFile','executeCustomAction','uploadFile','GET','65MMyaKR','https://ai.cke-cs.com/v1','uploadDocument','FIX_GRAMMAR','items','AI_MODEL_DESCRIPTION_','decode','group','true','/conversations/','callCustomReview','getModels','MAKE_SHORTER','parse','improve-writing','CONTINUE','then','/web-resources/','releaseLock','_token','make-tone-casual','signal','/calls','uploadUrl','POST','locale','map','fetchConversations','/web-resources','TRANSLATE','abortController','catch','updateConversation','requires','MAKE_TONE_CASUAL','4VJVsnD','continue'];_0x5bc3=function(){return _0x10f17b;};return _0x5bc3();}
23
+ const _0x22ae9b=_0x52ae;function _0x52ae(_0x3053a0,_0x14319e){const _0x490a8c=_0x490a();return _0x52ae=function(_0x52aeb6,_0x1f0222){_0x52aeb6=_0x52aeb6-0x19c;let _0x17297f=_0x490a8c[_0x52aeb6];return _0x17297f;},_0x52ae(_0x3053a0,_0x14319e);}(function(_0xef0fb0,_0x56cc97){const _0x47be18=_0x52ae,_0x3e7afc=_0xef0fb0();while(!![]){try{const _0x1745fc=-parseInt(_0x47be18(0x1c5))/0x1*(-parseInt(_0x47be18(0x1ef))/0x2)+parseInt(_0x47be18(0x1a1))/0x3+parseInt(_0x47be18(0x205))/0x4*(parseInt(_0x47be18(0x207))/0x5)+parseInt(_0x47be18(0x1ac))/0x6*(parseInt(_0x47be18(0x1bb))/0x7)+-parseInt(_0x47be18(0x1b2))/0x8+-parseInt(_0x47be18(0x1cc))/0x9+-parseInt(_0x47be18(0x202))/0xa;if(_0x1745fc===_0x56cc97)break;else _0x3e7afc['push'](_0x3e7afc['shift']());}catch(_0x360d3d){_0x3e7afc['push'](_0x3e7afc['shift']());}}}(_0x490a,0xa9710));import{createParser as _0x3a74f0}from'eventsource-parser';import{ContextPlugin as _0x1c84b9}from'ckeditor5/src/core.js';import{CKEditorError as _0x521f21}from'ckeditor5/src/utils.js';import{getTranslation as _0x2f4190}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x2156f8){const _0x10bfbf=_0x52ae;_0x2156f8[_0x10bfbf(0x1f1)]=_0x10bfbf(0x20c),_0x2156f8[_0x10bfbf(0x219)]=_0x10bfbf(0x1ec),_0x2156f8[_0x10bfbf(0x1d9)]=_0x10bfbf(0x215),_0x2156f8[_0x10bfbf(0x1e7)]=_0x10bfbf(0x212),_0x2156f8[_0x10bfbf(0x1c4)]=_0x10bfbf(0x1a4),_0x2156f8[_0x10bfbf(0x1f6)]=_0x10bfbf(0x206),_0x2156f8[_0x10bfbf(0x203)]=_0x10bfbf(0x1f7),_0x2156f8[_0x10bfbf(0x1e8)]=_0x10bfbf(0x210);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x1c84b9{[_0x22ae9b(0x1bf)];[_0x22ae9b(0x1bd)];[_0x22ae9b(0x1fa)];static get[_0x22ae9b(0x1cb)](){const _0x343741=_0x22ae9b;return[_0x343741(0x1a3)];}static get[_0x22ae9b(0x216)](){const _0x36ff28=_0x22ae9b;return _0x36ff28(0x217);}static get[_0x22ae9b(0x1a2)](){return!0x0;}static get[_0x22ae9b(0x1ea)](){return!0x0;}constructor(_0x51ae25){const _0x5e6c7e=_0x22ae9b;super(_0x51ae25),this[_0x5e6c7e(0x1f2)][_0x5e6c7e(0x20b)][_0x5e6c7e(0x1e9)](_0x5e6c7e(0x1c1),_0x5e6c7e(0x1f5)),this[_0x5e6c7e(0x1bf)]=this[_0x5e6c7e(0x1f2)][_0x5e6c7e(0x20b)][_0x5e6c7e(0x1ae)](_0x5e6c7e(0x1c1)),this[_0x5e6c7e(0x1bd)]=null,this[_0x5e6c7e(0x1fa)]=new TextDecoder();}[_0x22ae9b(0x201)](){const _0x1133f4=_0x22ae9b,_0x64220=this[_0x1133f4(0x1f2)][_0x1133f4(0x1c8)][_0x1133f4(0x1ae)](_0x1133f4(0x1a3));if(!_0x64220[_0x1133f4(0x1e3)])throw new _0x521f21(_0x1133f4(0x1bc),this);this[_0x1133f4(0x1bd)]=_0x64220[_0x1133f4(0x1e3)];}[_0x22ae9b(0x1f4)](_0x36d92c,_0x59f440){const _0x44929c=_0x22ae9b,_0x180238=this[_0x44929c(0x211)](_0x44929c(0x1a0),_0x44929c(0x1a8),{'id':_0x36d92c,'group':_0x59f440});return{'getConversation':async()=>(await _0x180238[_0x44929c(0x1ce)])[_0x44929c(0x1aa)](),'abortController':_0x180238[_0x44929c(0x1dd)]};}[_0x22ae9b(0x1e5)]({message:_0x56b8ba,conversationId:_0x367a49,parts:_0x202965,capabilities:_0x3df53a,model:_0x4c2e77,quickActionData:_0x3e9ad9}){const _0x1c6b97=_0x22ae9b,_0x2a5c44={..._0x3e9ad9&&{'quickActionData':_0x3e9ad9}},_0xec432f={'prompt':_0x56b8ba,'content':_0x202965,'model':_0x4c2e77,..._0x3df53a&&{'capabilities':_0x3df53a},...Object[_0x1c6b97(0x1ed)](_0x2a5c44)[_0x1c6b97(0x1cd)]>0x0&&{'attributes':_0x2a5c44}},_0x255524=this[_0x1c6b97(0x211)](_0x1c6b97(0x1fd)+_0x367a49+_0x1c6b97(0x20e),_0x1c6b97(0x1a8),_0xec432f);return{'getStream':async()=>{const _0x56d1ae=_0x1c6b97,_0x2399fd=(await _0x255524[_0x56d1ae(0x1ce)])[_0x56d1ae(0x1ba)];return this[_0x56d1ae(0x1d7)](_0x2399fd);},'abortController':_0x255524[_0x1c6b97(0x1dd)]};}[_0x22ae9b(0x204)]({content:_0x23fb4e,message:_0x5dab09,model:_0x2f81bc,outputFormat:_0x313279}){const _0x1ba10b=_0x22ae9b,_0x3c99ac={'content':[{'type':_0x1ba10b(0x1f8),'content':_0x23fb4e}],'prompt':_0x5dab09,'model':_0x2f81bc,'outputFormat':_0x313279},_0x18731d=this[_0x1ba10b(0x211)](_0x1ba10b(0x209),_0x1ba10b(0x1a8),_0x3c99ac);return{'getStream':async()=>{const _0x30aa67=_0x1ba10b,_0x126a71=(await _0x18731d[_0x30aa67(0x1ce)])[_0x30aa67(0x1ba)];return this[_0x30aa67(0x1d7)](_0x126a71);},'abortController':_0x18731d[_0x1ba10b(0x1dd)]};}[_0x22ae9b(0x1b0)]({actionName:_0x54f891,content:_0x3209d6,args:_0xdf409f}){const _0x42dcd8=_0x22ae9b,_0x4d6bf9={'content':[{'type':_0x42dcd8(0x1f8),'content':_0x3209d6}],'args':_0xdf409f},_0x4dfa93=this[_0x42dcd8(0x211)](_0x42dcd8(0x19f)+_0x54f891+_0x42dcd8(0x20f),_0x42dcd8(0x1a8),_0x4d6bf9);return{'getStream':async()=>{const _0x2f30ed=_0x42dcd8,_0x29b52f=(await _0x4dfa93[_0x2f30ed(0x1ce)])[_0x2f30ed(0x1ba)];return this[_0x2f30ed(0x1d7)](_0x29b52f);},'abortController':_0x4dfa93[_0x42dcd8(0x1dd)]};}[_0x22ae9b(0x1a5)](_0x2af670,_0x4f9ceb,_0x40bcb2){const _0x1e6f75=_0x22ae9b,_0x85a144=new FormData();_0x85a144[_0x1e6f75(0x1a9)](_0x1e6f75(0x1fb),_0x4f9ceb,_0x4f9ceb[_0x1e6f75(0x19e)]),_0x40bcb2&&_0x85a144[_0x1e6f75(0x1a9)](_0x1e6f75(0x1eb),JSON[_0x1e6f75(0x1ad)](_0x40bcb2));const _0x2d98c5=this[_0x1e6f75(0x211)](_0x1e6f75(0x1fd)+_0x2af670+_0x1e6f75(0x1c0),_0x1e6f75(0x1a8),_0x85a144);return{'getId':async()=>(await _0x2d98c5[_0x1e6f75(0x1ce)])[_0x1e6f75(0x1aa)](),'abortController':_0x2d98c5[_0x1e6f75(0x1dd)]};}[_0x22ae9b(0x1f0)](_0x51da2c,_0xc2bf2d){const _0x16ee51=_0x22ae9b,_0x41e481=this[_0x16ee51(0x211)](_0x16ee51(0x1fd)+_0x51da2c+_0x16ee51(0x1dc)+_0xc2bf2d,_0x16ee51(0x1b1));return{'getDocument':async()=>(await _0x41e481[_0x16ee51(0x1ce)])[_0x16ee51(0x1aa)](),'abortController':_0x41e481[_0x16ee51(0x1dd)]};}[_0x22ae9b(0x1e0)](_0x55edf1,_0x2dd231,_0x121dda){const _0x424f07=_0x22ae9b,_0x6d5f46={'content':_0x2dd231};_0x121dda&&(_0x6d5f46[_0x424f07(0x1eb)]=_0x121dda);const _0x3cc257=this[_0x424f07(0x211)](_0x424f07(0x1fd)+_0x55edf1+_0x424f07(0x1b3),_0x424f07(0x1a8),_0x6d5f46);return{'getId':async()=>(await _0x3cc257[_0x424f07(0x1ce)])[_0x424f07(0x1aa)](),'abortController':_0x3cc257[_0x424f07(0x1dd)]};}[_0x22ae9b(0x1c7)](_0x18c184,_0x536a21){const _0x340d60=_0x22ae9b,_0x29f1fd=new URLSearchParams();_0x29f1fd[_0x340d60(0x1a9)](_0x340d60(0x1e4),_0x340d60(0x1e6)),_0x29f1fd[_0x340d60(0x1a9)](_0x340d60(0x21c),_0x340d60(0x1d1)),_0x29f1fd[_0x340d60(0x1a9)](_0x340d60(0x1e1),_0x18c184),_0x536a21&&_0x29f1fd[_0x340d60(0x1a9)](_0x340d60(0x1c3),_0x536a21);const _0x8ed961=this[_0x340d60(0x211)](_0x340d60(0x20d)+_0x29f1fd[_0x340d60(0x1fc)](),_0x340d60(0x1b1));return{'getConversations':async()=>{const _0x385669=_0x340d60,_0x575fd9=await _0x8ed961[_0x385669(0x1ce)];return(await _0x575fd9[_0x385669(0x1aa)]())[_0x385669(0x1e2)];},'abortController':_0x8ed961[_0x340d60(0x1dd)]};}[_0x22ae9b(0x1c2)](_0x228768){const _0x336d45=_0x22ae9b,_0x3d6eaa=this[_0x336d45(0x211)](_0x336d45(0x1fd)+_0x228768,_0x336d45(0x1de));return{'execute':async()=>{const _0xef370b=_0x336d45;await _0x3d6eaa[_0xef370b(0x1ce)];},'abortController':_0x3d6eaa[_0x336d45(0x1dd)]};}[_0x22ae9b(0x19c)](_0x4d755e,_0x36fa03){const _0x106225=_0x22ae9b,_0x56d201=this[_0x106225(0x211)](_0x106225(0x1fd)+_0x4d755e,_0x106225(0x1d4),_0x36fa03);return{'getResult':async()=>(await _0x56d201[_0x106225(0x1ce)],_0x36fa03),'abortController':_0x56d201[_0x106225(0x1dd)]};}[_0x22ae9b(0x1b5)](_0xcb40c){const _0x23ebcc=_0x22ae9b,_0x229aad=this[_0x23ebcc(0x211)](_0x23ebcc(0x1fd)+_0xcb40c,_0x23ebcc(0x1b1));return{'getConversation':async()=>(await _0x229aad[_0x23ebcc(0x1ce)])[_0x23ebcc(0x1aa)](),'abortController':_0x229aad[_0x23ebcc(0x1dd)]};}[_0x22ae9b(0x1d3)](_0x103d93){const _0x576a58=_0x22ae9b,_0x544aff=this[_0x576a58(0x211)](_0x576a58(0x1fd)+_0x103d93+_0x576a58(0x20e),_0x576a58(0x1b1));return{'getMessages':async()=>{const _0x279046=_0x576a58,_0x297330=await _0x544aff[_0x279046(0x1ce)];return(await _0x297330[_0x279046(0x1aa)]())[_0x279046(0x1e2)];},'abortController':_0x544aff[_0x576a58(0x1dd)]};}[_0x22ae9b(0x1f9)](_0x52d958,_0x308cf5,_0x30b49f){const _0x2aaa64=_0x22ae9b,_0x1a8633=this[_0x2aaa64(0x211)](_0x2aaa64(0x1fd)+_0x52d958+_0x2aaa64(0x1d5),_0x2aaa64(0x1a8),{'url':_0x308cf5,'attributes':_0x30b49f});return{'getId':async()=>(await _0x1a8633[_0x2aaa64(0x1ce)])[_0x2aaa64(0x1aa)](),'abortController':_0x1a8633[_0x2aaa64(0x1dd)]};}[_0x22ae9b(0x1fe)](){const _0xabf68d=_0x22ae9b,_0x4c61c3=this[_0xabf68d(0x211)](_0xabf68d(0x1b4),_0xabf68d(0x1b1));return{'list':async()=>{const _0x31faa7=_0xabf68d,_0x181c0e=await(await _0x4c61c3[_0x31faa7(0x1ce)])[_0x31faa7(0x1aa)](),_0x64cbe3=_0x181c0e[_0x31faa7(0x1e2)][_0x31faa7(0x19d)](_0xce8cff=>({..._0xce8cff,'description':_0x2f4190(this[_0x31faa7(0x1f2)][_0x31faa7(0x1b8)],_0x31faa7(0x1db)+_0xce8cff['id'][_0x31faa7(0x1a7)]())}));return{..._0x181c0e,'items':_0x64cbe3};},'abortController':_0x4c61c3[_0xabf68d(0x1dd)]};}[_0x22ae9b(0x200)](_0x105a2f,_0x34dccb){const _0x14b0e7=_0x22ae9b,_0x12cf53=this[_0x14b0e7(0x211)](_0x14b0e7(0x1fd)+_0x105a2f+_0x14b0e7(0x1cf)+_0x34dccb,_0x14b0e7(0x1de));return{'execute':async()=>{const _0x29671f=_0x14b0e7;await _0x12cf53[_0x29671f(0x1ce)];},'abortController':_0x12cf53[_0x14b0e7(0x1dd)]};}[_0x22ae9b(0x1a6)](_0x57d3bf,_0x5edc1f){const _0x5893e5=_0x22ae9b,_0x1e90ee=this[_0x5893e5(0x211)](_0x5893e5(0x1fd)+_0x57d3bf+_0x5893e5(0x1dc)+_0x5edc1f,_0x5893e5(0x1de));return{'execute':async()=>{const _0x1ea134=_0x5893e5;await _0x1e90ee[_0x1ea134(0x1ce)];},'abortController':_0x1e90ee[_0x5893e5(0x1dd)]};}[_0x22ae9b(0x1c6)](_0x44c605,_0x17e10c){const _0x4412c0=_0x22ae9b,_0x4e21ce=this[_0x4412c0(0x211)](_0x4412c0(0x1fd)+_0x44c605+_0x4412c0(0x208)+_0x17e10c,_0x4412c0(0x1de));return{'execute':async()=>{const _0x55220f=_0x4412c0;await _0x4e21ce[_0x55220f(0x1ce)];},'abortController':_0x4e21ce[_0x4412c0(0x1dd)]};}[_0x22ae9b(0x214)]({reviewName:_0x45d875,content:_0x5bcb08,args:_0x156ed7}){const _0x80dddd=_0x22ae9b,_0x453584=this[_0x80dddd(0x211)](_0x80dddd(0x21d)+_0x45d875+_0x80dddd(0x20f),_0x80dddd(0x1a8),{'content':[{'type':_0x80dddd(0x1f8),'content':_0x5bcb08}],'args':_0x156ed7});return{'getStream':async()=>{const _0x28c8c3=_0x80dddd,_0x355905=(await _0x453584[_0x28c8c3(0x1ce)])[_0x28c8c3(0x1ba)];return this[_0x28c8c3(0x1d7)](_0x355905);},'abortController':_0x453584[_0x80dddd(0x1dd)]};}[_0x22ae9b(0x1da)]({content:_0x51455b,prompt:_0x180709,model:_0x19a16d}){const _0x114b29=_0x22ae9b,_0x22a1cf=this[_0x114b29(0x211)](_0x114b29(0x1df),_0x114b29(0x1a8),{'content':[{'type':_0x114b29(0x1f8),'content':_0x51455b}],'prompt':_0x180709,'model':_0x19a16d});return{'getStream':async()=>{const _0x11cc71=_0x114b29,_0x549eec=(await _0x22a1cf[_0x11cc71(0x1ce)])[_0x11cc71(0x1ba)];return this[_0x11cc71(0x1d7)](_0x549eec);},'abortController':_0x22a1cf[_0x114b29(0x1dd)]};}[_0x22ae9b(0x211)](_0x468e2a,_0x54d148,_0x141d56){const _0x463b0e=_0x22ae9b,_0x517ec2=new AbortController(),_0x352b50=_0x141d56 instanceof FormData,_0x39bea4={'Authorization':_0x463b0e(0x1c9)+this[_0x463b0e(0x1bd)]?.[_0x463b0e(0x20a)]};_0x141d56&&!_0x352b50&&(_0x39bea4[_0x463b0e(0x1b6)]=_0x463b0e(0x1ab));const _0xba0c60={'method':_0x54d148,'headers':_0x39bea4,'signal':_0x517ec2[_0x463b0e(0x21a)]};return _0x141d56&&(_0xba0c60[_0x463b0e(0x1ba)]=_0x352b50?_0x141d56:JSON[_0x463b0e(0x1ad)](_0x141d56)),{'request':fetch(''+this[_0x463b0e(0x1bf)]+_0x468e2a,_0xba0c60)[_0x463b0e(0x1d0)](_0x4b574f=>{const _0x4cd870=_0x463b0e;this[_0x4cd870(0x1f3)](_0x4b574f);})[_0x463b0e(0x1be)](_0x133f96=>{const _0x1b98b1=_0x463b0e;if(!_0x133f96['ok'])throw new _0x521f21(_0x1b98b1(0x1ca),this);return _0x133f96;}),'abortController':_0x517ec2};}async*[_0x22ae9b(0x1d7)](_0x5187cc){const _0x161d4c=_0x22ae9b,_0xf3dab8=[],_0x20b85a=_0x5187cc[_0x161d4c(0x213)](),_0x43cdbc=_0x3a74f0({'onError':_0x3dac2c=>{const _0x485c11=_0x161d4c;this[_0x485c11(0x1f3)](_0x3dac2c);},'onEvent':_0x4b2d9b=>{const _0xb199ce=_0x161d4c;_0x4b2d9b[_0xb199ce(0x1af)]=JSON[_0xb199ce(0x1b9)](_0x4b2d9b[_0xb199ce(0x1af)]),_0xf3dab8[_0xb199ce(0x21b)](_0x4b2d9b);}});try{let _0x10ba75=!0x1;for(;!_0x10ba75;){const {done:_0x8d785f,value:_0x46769a}=await _0x20b85a[_0x161d4c(0x1d6)]();_0x8d785f&&(_0x10ba75=!0x0),_0x43cdbc[_0x161d4c(0x1d8)](this[_0x161d4c(0x1fa)][_0x161d4c(0x1ee)](_0x46769a,{'stream':!0x0})),yield*_0xf3dab8,_0xf3dab8[_0x161d4c(0x1cd)]=0x0;}}catch(_0x37e59a){this[_0x161d4c(0x1f3)](_0x37e59a);}finally{_0x20b85a[_0x161d4c(0x1ff)](),_0x43cdbc[_0x161d4c(0x1d2)]();}}[_0x22ae9b(0x1f3)](_0x9ecf83){const _0x22577a=_0x22ae9b;if(_0x9ecf83 instanceof _0x521f21)throw _0x9ecf83;if(_0x9ecf83 instanceof Error&&_0x22577a(0x218)===_0x9ecf83[_0x22577a(0x19e)])throw new _0x521f21(_0x22577a(0x1b7),this,{'originalError':_0x9ecf83});throw new _0x521f21(_0x22577a(0x1ca),this,{'originalError':_0x9ecf83});}}function _0x490a(){const _0xfdb87c=['https://ai.cke-cs.com/v1','MAKE_TONE_CASUAL','make-tone-formal','text','uploadUrl','_decoder','file','toString','/conversations/','getModels','releaseLock','deleteFile','init','16491770vIuMxK','MAKE_TONE_FORMAL','executeCustomAction','1461068CZqYBM','make-tone-casual','10bniLxN','/web-resources/','/actions/custom/calls','value','config','continue','/conversations?','/messages','/calls','translate','_sendApiRequest','make-longer','getReader','callSystemReview','improve-writing','pluginName','AIConnector','AbortError','FIX_GRAMMAR','signal','push','limit','/reviews/system/','updateConversation','map','name','/actions/system/','/conversations','1766232OkFTBh','isOfficialPlugin','CloudServices','make-shorter','uploadFile','deleteDocument','toUpperCase','POST','append','json','application/json','315990Oisivp','stringify','get','data','executeAction','GET','7958560DGUzZP','/documents','/models/1','fetchConversation','Content-Type','ai-request-aborted','locale','parse','body','112zGHItT','ai-missing-token','_token','then','_apiUrl','/files','ai.serviceUrl','deleteConversation','search','MAKE_SHORTER','1tVLYZT','deleteWebResource','fetchConversations','plugins','Bearer\x20','ai-request-failed','requires','1689057CxhJVK','length','request','/files/','catch','100','reset','fetchConversationMessages','PATCH','/web-resources','read','_getStreamReader','feed','IMPROVE_WRITING','callCustomReview','AI_MODEL_DESCRIPTION_','/documents/','abortController','DELETE','/reviews/custom/calls','uploadDocument','group','items','token','excludeEmpty','queryAssistant','true','MAKE_LONGER','TRANSLATE','define','isPremiumPlugin','attributes','fix-grammar','keys','decode','2727568iBxXIs','fetchDocument','CONTINUE','context','_handleError','startConversation'];_0x490a=function(){return _0xfdb87c;};return _0x490a();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1172e5=_0x3983;(function(_0x47b02b,_0x2c6441){const _0xc93d1c=_0x3983,_0x30a30d=_0x47b02b();while(!![]){try{const _0x2ed04f=parseInt(_0xc93d1c(0x150))/0x1*(-parseInt(_0xc93d1c(0x10a))/0x2)+parseInt(_0xc93d1c(0xf4))/0x3+-parseInt(_0xc93d1c(0x146))/0x4+parseInt(_0xc93d1c(0x11a))/0x5*(-parseInt(_0xc93d1c(0x102))/0x6)+-parseInt(_0xc93d1c(0xe7))/0x7*(-parseInt(_0xc93d1c(0x13b))/0x8)+parseInt(_0xc93d1c(0xea))/0x9*(-parseInt(_0xc93d1c(0x12c))/0xa)+parseInt(_0xc93d1c(0xf7))/0xb;if(_0x2ed04f===_0x2c6441)break;else _0x30a30d['push'](_0x30a30d['shift']());}catch(_0x1044d0){_0x30a30d['push'](_0x30a30d['shift']());}}}(_0x2916,0x459f6));import{ViewDowncastWriter as _0x39e183}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x10beb9,Editor as _0x46c0e7}from'ckeditor5/src/core.js';function _0x2916(){const _0x3265dd=['2000384edgBop','markerName','isOfficialPlugin','schema','sort','createRange','markerToElement','convertAiChatSelectionMarker','has','from','1438XIKNFX','14rQmAsb','trim',':start>','11862hEvPZw','ck-fake-ai-selection','getDocumentData','selection','indexOf','_displayedFakeSelectionLocked','removeMarker','sessionId','_setDataIdsOnChildren','createUIElement','171300TWytWk','toData','isBefore','16095453NhtMOp','_getMarkersInDocumentOrder','setAttribute','substring','showFakeVisualSelection','modelToViewWithIds','_nextDataId','getSelection','$textProxy','ai-selection:','removeAllRanges','786ucFFRZ','document','ai-selection','add','plugins','isPremiumPlugin','editors','floor','604QpSPTh','listenTo','markerToHighlight','RealTimeCollaborationClient','isOpening','version','isContent','fromCharCode','createRangeIn','getSelectionText',':end>',':start></','addMarker','toView','length','join','12435hZPCyo','getRoot','pluginName','get','_sessionId','isAfter','containerElement','ready','afterInit','editing','getLastMatchingPosition','getChildren','element','markers','getStart','AIEditing',':end></','for','20GNOxAV','context','start','isAtEnd','data','view','random','model','processor','conversion','push','editingDowncast','data-id','dataDowncast','end','110624agoAfx','_displayedFakeSelectionId','hideFakeVisualSelection','ck-ai-assistant-ui_theme','getWalker','emptyElement','change','name','getMarkersGroup','_integrateEditor','getSelectedContent'];_0x2916=function(){return _0x3265dd;};return _0x2916();}import{uid as _0x29e5c6}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x26d4bd}from'./utils/geteditorfromcontext.js';function _0x3983(_0x138c0b,_0x16683f){const _0x2916c5=_0x2916();return _0x3983=function(_0x3983cd,_0x167cfe){_0x3983cd=_0x3983cd-0xe7;let _0x42c7af=_0x2916c5[_0x3983cd];return _0x42c7af;},_0x3983(_0x138c0b,_0x16683f);}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x1172e5(0x104);export class AIEditing extends _0x10beb9{[_0x1172e5(0x13c)]=null;[_0x1172e5(0xef)]=!0x1;[_0x1172e5(0x11e)];static get[_0x1172e5(0x11c)](){const _0x14e814=_0x1172e5;return _0x14e814(0x129);}static get[_0x1172e5(0x148)](){return!0x0;}static get[_0x1172e5(0x107)](){return!0x0;}get[_0x1172e5(0xf1)](){const _0x281366=_0x1172e5;if(!this[_0x281366(0x11e)]){const _0x9c7ee5=_0x26d4bd(this[_0x281366(0x12d)]),_0x5dbbba=_0x9c7ee5[_0x281366(0x106)][_0x281366(0x14e)](_0x281366(0x10d))&&_0x9c7ee5[_0x281366(0x106)][_0x281366(0x11d)](_0x281366(0x10d))[_0x281366(0xf1)];this[_0x281366(0x11e)]=_0x5dbbba||_0x29e5c6();}return this[_0x281366(0x11e)];}[_0x1172e5(0xec)](){const _0x333e5c=_0x1172e5,_0x3fba5e=_0x26d4bd(this[_0x333e5c(0x12d)]),_0x4f6ac6=_0x3fba5e[_0x333e5c(0x133)],_0x15df52=_0x3fba5e[_0x333e5c(0x130)][_0x333e5c(0x117)](_0x4f6ac6[_0x333e5c(0x103)][_0x333e5c(0x11b)](),{'convertAiChatSelectionMarker':!0x0}),_0x3e9a35=new _0x39e183(_0x3fba5e[_0x333e5c(0x123)][_0x333e5c(0x131)][_0x333e5c(0x103)]);this[_0x333e5c(0xf2)](_0x15df52,_0x3e9a35);let _0x2a52ab=_0x3fba5e[_0x333e5c(0x130)][_0x333e5c(0x134)][_0x333e5c(0xf5)](_0x15df52);const _0x288b7b=this[_0x333e5c(0xf8)](),_0x207860=[];for(const _0x46c9e8 of _0x288b7b){const _0x25c3ea='<'+_0x46c9e8[_0x333e5c(0x142)]+_0x333e5c(0x115)+_0x46c9e8[_0x333e5c(0x142)]+_0x333e5c(0xe9),_0x1b4b6b=_0x2a52ab[_0x333e5c(0xee)](_0x25c3ea);_0x2a52ab=_0x2a52ab[_0x333e5c(0xfa)](0x0,_0x1b4b6b)+_0x2a52ab[_0x333e5c(0xfa)](_0x1b4b6b+_0x25c3ea[_0x333e5c(0x118)]);const _0xd7c3c4='<'+_0x46c9e8[_0x333e5c(0x142)]+_0x333e5c(0x12a)+_0x46c9e8[_0x333e5c(0x142)]+_0x333e5c(0x114),_0xf741d3=_0x2a52ab[_0x333e5c(0xee)](_0xd7c3c4);_0x2a52ab=_0x2a52ab[_0x333e5c(0xfa)](0x0,_0xf741d3)+_0x2a52ab[_0x333e5c(0xfa)](_0xf741d3+_0xd7c3c4[_0x333e5c(0x118)]),_0x207860[_0x333e5c(0x136)]({'markerName':_0x46c9e8[_0x333e5c(0x142)],'start':_0x1b4b6b,'end':_0xf741d3,'htmlFragment':_0x2a52ab[_0x333e5c(0xfa)](_0x1b4b6b,_0xf741d3)});}return{'content':_0x2a52ab,'version':_0x3fba5e[_0x333e5c(0x133)][_0x333e5c(0x103)][_0x333e5c(0x10f)],'sessionId':this[_0x333e5c(0xf1)],'selections':_0x207860};}async[_0x1172e5(0x122)](){const _0x30d8f3=_0x1172e5;this[_0x30d8f3(0x12d)]instanceof _0x46c0e7?this[_0x30d8f3(0x144)](this[_0x30d8f3(0x12d)]):this[_0x30d8f3(0x10b)](this[_0x30d8f3(0x12d)][_0x30d8f3(0x108)],_0x30d8f3(0x105),(_0xde9691,_0x55b701)=>{const _0x54561f=_0x30d8f3;_0x55b701['on'](_0x54561f(0x121),()=>{const _0x20cd60=_0x54561f;this[_0x20cd60(0x144)](_0x55b701);});});}[_0x1172e5(0x144)](_0x2a5c46){const _0x6e71c=_0x1172e5;_0x2a5c46[_0x6e71c(0x135)][_0x6e71c(0x12b)](_0x6e71c(0x137))[_0x6e71c(0x10c)]({'model':_0x6e71c(0x104),'view':{'classes':[_0x6e71c(0xeb),_0x6e71c(0x13e)],'priority':0xc}}),_0x2a5c46[_0x6e71c(0x135)][_0x6e71c(0x12b)](_0x6e71c(0x139))[_0x6e71c(0x14c)]({'model':_0x6e71c(0x104),'view':(_0xd97837,{writer:_0x42e1dc,options:_0x3d6f5b})=>_0x3d6f5b[_0x6e71c(0x14d)]?_0x42e1dc[_0x6e71c(0xf3)](_0xd97837[_0x6e71c(0x147)]+':'+(_0xd97837[_0x6e71c(0x10e)]?_0x6e71c(0x12e):_0x6e71c(0x13a))):null});}[_0x1172e5(0xfb)](_0x3992da,_0x9bbf55,_0x9b4da2=!0x1,_0x4f1150=!0x1){const _0x2dc727=_0x1172e5;if(this[_0x2dc727(0xef)]&&!_0x4f1150)return!0x1;this[_0x2dc727(0x13c)]&&this[_0x2dc727(0x13d)](this[_0x2dc727(0x13c)]),this[_0x2dc727(0x13c)]=_0x9bbf55,this[_0x2dc727(0xef)]=_0x9b4da2;const _0x36963f=_0x26d4bd(this[_0x2dc727(0x12d)])[_0x2dc727(0x133)];return _0x36963f[_0x2dc727(0x141)](_0x3f452a=>{const _0x791914=_0x2dc727;let _0xc7d2fc=0x0;for(let _0x2b23f5 of _0x3992da){const _0x1f1f50=_0x791914(0x100)+_0xc7d2fc;if(_0x2b23f5[_0x791914(0x12e)][_0x791914(0x12f)]){const _0x21d34d=_0x2b23f5[_0x791914(0x12e)][_0x791914(0x124)](({item:_0x17b293})=>!_0x36963f[_0x791914(0x149)][_0x791914(0x110)](_0x17b293),{'boundaries':_0x2b23f5});_0x2b23f5=_0x3f452a[_0x791914(0x14b)](_0x21d34d,_0x2b23f5[_0x791914(0x13a)]);}_0x3f452a[_0x791914(0x116)](_0x1f1f50,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x2b23f5}),_0xc7d2fc++;}}),window[_0x2dc727(0xfe)]()?.[_0x2dc727(0x101)](),!0x0;}[_0x1172e5(0x13d)](_0xcf058e){const _0x3c33e0=_0x1172e5;if(this[_0x3c33e0(0x13c)]!=_0xcf058e)return!0x1;this[_0x3c33e0(0x13c)]=null,this[_0x3c33e0(0xef)]=!0x1;const _0x55b1b1=_0x26d4bd(this[_0x3c33e0(0x12d)]),_0x1c4f2f=_0x55b1b1[_0x3c33e0(0x133)][_0x3c33e0(0x127)][_0x3c33e0(0x143)](_0x3c33e0(0x104));return _0x55b1b1[_0x3c33e0(0x133)][_0x3c33e0(0x141)](_0x435de1=>{const _0x2fead1=_0x3c33e0;for(const _0x30567a of _0x1c4f2f)_0x435de1[_0x2fead1(0xf0)](_0x30567a);}),!0x0;}[_0x1172e5(0xfc)](_0x13e149){const _0x4ba8a3=_0x1172e5,_0x589462=_0x26d4bd(this[_0x4ba8a3(0x12d)]),_0x4ac45c=_0x589462[_0x4ba8a3(0x130)][_0x4ba8a3(0x117)](_0x13e149),_0x2127bf=new _0x39e183(_0x589462[_0x4ba8a3(0x123)][_0x4ba8a3(0x131)][_0x4ba8a3(0x103)]);return this[_0x4ba8a3(0xf2)](_0x4ac45c,_0x2127bf),_0x4ac45c;}[_0x1172e5(0xf2)](_0x495238,_0x4b33df){const _0x23a4cd=_0x1172e5;let _0x51a7c2=!0x1;const _0x106db1=new Set();for(const _0x5da77a of _0x495238[_0x23a4cd(0x125)]()){const _0x4b958f=_0x5da77a['is'](_0x23a4cd(0x140))||_0x5da77a['is'](_0x23a4cd(0x120));if(!_0x5da77a['is'](_0x23a4cd(0x126)))continue;(this[_0x23a4cd(0xf2)](_0x5da77a,_0x4b33df)||_0x4b958f)&&(_0x4b33df[_0x23a4cd(0xf9)](_0x23a4cd(0x138),this[_0x23a4cd(0xfd)](_0x106db1),_0x5da77a),_0x51a7c2=!0x0);}return _0x51a7c2;}[_0x1172e5(0xfd)](_0x1f005e){const _0x4aae0f=_0x1172e5;let _0x5033a0;do{_0x5033a0='';for(let _0x41ad6b=0x0;_0x41ad6b<0x4;_0x41ad6b++)_0x5033a0+=String[_0x4aae0f(0x111)](0x61+Math[_0x4aae0f(0x109)](0x1a*Math[_0x4aae0f(0x132)]()));}while(_0x1f005e[_0x4aae0f(0x14e)](_0x5033a0));return _0x1f005e[_0x4aae0f(0x105)](_0x5033a0),_0x5033a0;}[_0x1172e5(0x113)](){const _0x5c9690=_0x1172e5,{model:_0x165b83}=_0x26d4bd(this[_0x5c9690(0x12d)]),_0x20f211=_0x165b83[_0x5c9690(0x103)][_0x5c9690(0xed)],_0x4474f3=_0x165b83[_0x5c9690(0x145)](_0x20f211),_0x5dc108=[],_0x214668=_0x165b83[_0x5c9690(0x112)](_0x4474f3)[_0x5c9690(0x13f)]();for(const {item:_0x285c43}of _0x214668)_0x285c43['is'](_0x5c9690(0xff))?_0x5dc108[_0x5c9690(0x136)](_0x285c43[_0x5c9690(0x130)]):_0x285c43['is'](_0x5c9690(0x126))&&_0x5dc108[_0x5c9690(0x118)]>0x0&&'\x20'!==_0x5dc108[_0x5dc108[_0x5c9690(0x118)]-0x1]&&_0x5dc108[_0x5c9690(0x136)]('\x20');return'\x22'+_0x5dc108[_0x5c9690(0x119)]('')[_0x5c9690(0xe8)]()+'\x22';}[_0x1172e5(0xf8)](){const _0x3a2a60=_0x1172e5,_0x5a5b67=_0x26d4bd(this[_0x3a2a60(0x12d)])[_0x3a2a60(0x133)];return Array[_0x3a2a60(0x14f)](_0x5a5b67[_0x3a2a60(0x127)][_0x3a2a60(0x143)](_0x3a2a60(0x104)))[_0x3a2a60(0x14a)]((_0x5a4f79,_0x6dcc4d)=>_0x5a4f79[_0x3a2a60(0x128)]()[_0x3a2a60(0xf6)](_0x6dcc4d[_0x3a2a60(0x128)]())?-0x1:_0x5a4f79[_0x3a2a60(0x128)]()[_0x3a2a60(0x11f)](_0x6dcc4d[_0x3a2a60(0x128)]())?0x1:0x0);}}
23
+ const _0x4d9047=_0x72ab;(function(_0x135360,_0x580904){const _0x590038=_0x72ab,_0x1aa896=_0x135360();while(!![]){try{const _0xec0777=-parseInt(_0x590038(0x148))/0x1*(parseInt(_0x590038(0x1ad))/0x2)+parseInt(_0x590038(0x19f))/0x3*(parseInt(_0x590038(0x1a8))/0x4)+parseInt(_0x590038(0x159))/0x5*(parseInt(_0x590038(0x142))/0x6)+parseInt(_0x590038(0x145))/0x7*(parseInt(_0x590038(0x179))/0x8)+parseInt(_0x590038(0x1a7))/0x9*(-parseInt(_0x590038(0x1a9))/0xa)+-parseInt(_0x590038(0x154))/0xb*(parseInt(_0x590038(0x186))/0xc)+-parseInt(_0x590038(0x17c))/0xd*(-parseInt(_0x590038(0x199))/0xe);if(_0xec0777===_0x580904)break;else _0x1aa896['push'](_0x1aa896['shift']());}catch(_0x224abb){_0x1aa896['push'](_0x1aa896['shift']());}}}(_0x43d6,0x8bd76));import{ViewDowncastWriter as _0x1701a2}from'ckeditor5/src/engine.js';function _0x43d6(){const _0x939787=['editors','isPremiumPlugin','data-id','RealTimeCollaborationClient','64BptuVP',':start>','hideFakeVisualSelection','26pwrgQz','$textProxy','view','convertAiChatSelectionMarker','random','sort','isOfficialPlugin','isAtEnd','_setDataIdsOnChildren','markerToElement','1368540PptYtw','schema',':start></','isAfter','ai-selection','getSelectionText','getSelectedContent','_displayedFakeSelectionLocked','_sessionId','element',':end>','addMarker','removeMarker','getWalker','indexOf','get','_displayedFakeSelectionId','markers','selection','2310770Utsexl','end','from','processor','AIEditing','name','3gVTaUF','change','getSelection','floor','markerName','createUIElement','getChildren','sessionId','9312993zHmkwS','2903268BokPLK','10IyOybb','fromCharCode','_nextDataId','add','2XmoOdL','conversion','6uTYnwc','context','version','847448VNzhMM',':end></','removeAllRanges','432694DApUEI','trim','setAttribute','isContent','listenTo','containerElement','markerToHighlight','length','ready','document','for','toView','33cFWduq','getLastMatchingPosition','getMarkersGroup','_getMarkersInDocumentOrder','createRangeIn','1789785SsGBTK','editing','afterInit','getStart','push','isBefore','createRange','data','has','_integrateEditor','substring','editingDowncast','showFakeVisualSelection','ck-fake-ai-selection','getDocumentData','ck-ai-assistant-ui_theme','dataDowncast','plugins','join','isOpening','emptyElement','pluginName','toData','getRoot','model','modelToViewWithIds','start','ai-selection:'];_0x43d6=function(){return _0x939787;};return _0x43d6();}import{ContextPlugin as _0x38272e,Editor as _0xe1f6d8}from'ckeditor5/src/core.js';import{uid as _0x5e9d9a}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x3e03ca}from'./utils/geteditorfromcontext.js';function _0x72ab(_0x58485a,_0x3bb911){const _0x43d641=_0x43d6();return _0x72ab=function(_0x72abb8,_0x3f6706){_0x72abb8=_0x72abb8-0x142;let _0x196c5c=_0x43d641[_0x72abb8];return _0x196c5c;},_0x72ab(_0x58485a,_0x3bb911);}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x4d9047(0x18a);export class AIEditing extends _0x38272e{[_0x4d9047(0x196)]=null;[_0x4d9047(0x18d)]=!0x1;[_0x4d9047(0x18e)];static get[_0x4d9047(0x16e)](){const _0x220a92=_0x4d9047;return _0x220a92(0x19d);}static get[_0x4d9047(0x182)](){return!0x0;}static get[_0x4d9047(0x176)](){return!0x0;}get[_0x4d9047(0x1a6)](){const _0x5457d6=_0x4d9047;if(!this[_0x5457d6(0x18e)]){const _0x3b5bbe=_0x3e03ca(this[_0x5457d6(0x143)]),_0x3a54cd=_0x3b5bbe[_0x5457d6(0x16a)][_0x5457d6(0x161)](_0x5457d6(0x178))&&_0x3b5bbe[_0x5457d6(0x16a)][_0x5457d6(0x195)](_0x5457d6(0x178))[_0x5457d6(0x1a6)];this[_0x5457d6(0x18e)]=_0x3a54cd||_0x5e9d9a();}return this[_0x5457d6(0x18e)];}[_0x4d9047(0x167)](){const _0x1a94e5=_0x4d9047,_0x1beef1=_0x3e03ca(this[_0x1a94e5(0x143)]),_0x455e42=_0x1beef1[_0x1a94e5(0x171)],_0x2731ac=_0x1beef1[_0x1a94e5(0x160)][_0x1a94e5(0x153)](_0x455e42[_0x1a94e5(0x151)][_0x1a94e5(0x170)](),{'convertAiChatSelectionMarker':!0x0}),_0x535325=new _0x1701a2(_0x1beef1[_0x1a94e5(0x15a)][_0x1a94e5(0x17e)][_0x1a94e5(0x151)]);this[_0x1a94e5(0x184)](_0x2731ac,_0x535325);let _0x446665=_0x1beef1[_0x1a94e5(0x160)][_0x1a94e5(0x19c)][_0x1a94e5(0x16f)](_0x2731ac);const _0x2b90a8=this[_0x1a94e5(0x157)](),_0x4d7d6a=[];for(const _0x1668db of _0x2b90a8){const _0x3d2d05='<'+_0x1668db[_0x1a94e5(0x19e)]+_0x1a94e5(0x188)+_0x1668db[_0x1a94e5(0x19e)]+_0x1a94e5(0x17a),_0x5ac764=_0x446665[_0x1a94e5(0x194)](_0x3d2d05);_0x446665=_0x446665[_0x1a94e5(0x163)](0x0,_0x5ac764)+_0x446665[_0x1a94e5(0x163)](_0x5ac764+_0x3d2d05[_0x1a94e5(0x14f)]);const _0xdac6b7='<'+_0x1668db[_0x1a94e5(0x19e)]+_0x1a94e5(0x146)+_0x1668db[_0x1a94e5(0x19e)]+_0x1a94e5(0x190),_0x1f7e41=_0x446665[_0x1a94e5(0x194)](_0xdac6b7);_0x446665=_0x446665[_0x1a94e5(0x163)](0x0,_0x1f7e41)+_0x446665[_0x1a94e5(0x163)](_0x1f7e41+_0xdac6b7[_0x1a94e5(0x14f)]),_0x4d7d6a[_0x1a94e5(0x15d)]({'markerName':_0x1668db[_0x1a94e5(0x19e)],'start':_0x5ac764,'end':_0x1f7e41,'htmlFragment':_0x446665[_0x1a94e5(0x163)](_0x5ac764,_0x1f7e41)});}return{'content':_0x446665,'version':_0x1beef1[_0x1a94e5(0x171)][_0x1a94e5(0x151)][_0x1a94e5(0x144)],'sessionId':this[_0x1a94e5(0x1a6)],'selections':_0x4d7d6a};}async[_0x4d9047(0x15b)](){const _0x1f9060=_0x4d9047;this[_0x1f9060(0x143)]instanceof _0xe1f6d8?this[_0x1f9060(0x162)](this[_0x1f9060(0x143)]):this[_0x1f9060(0x14c)](this[_0x1f9060(0x143)][_0x1f9060(0x175)],_0x1f9060(0x1ac),(_0x47a611,_0x1cd072)=>{const _0x3cb8f4=_0x1f9060;_0x1cd072['on'](_0x3cb8f4(0x150),()=>{const _0x2a8f36=_0x3cb8f4;this[_0x2a8f36(0x162)](_0x1cd072);});});}[_0x4d9047(0x162)](_0x30170){const _0x3e24b7=_0x4d9047;_0x30170[_0x3e24b7(0x1ae)][_0x3e24b7(0x152)](_0x3e24b7(0x164))[_0x3e24b7(0x14e)]({'model':_0x3e24b7(0x18a),'view':{'classes':[_0x3e24b7(0x166),_0x3e24b7(0x168)],'priority':0xc}}),_0x30170[_0x3e24b7(0x1ae)][_0x3e24b7(0x152)](_0x3e24b7(0x169))[_0x3e24b7(0x185)]({'model':_0x3e24b7(0x18a),'view':(_0x181190,{writer:_0x51f1a8,options:_0x298fe4})=>_0x298fe4[_0x3e24b7(0x17f)]?_0x51f1a8[_0x3e24b7(0x1a4)](_0x181190[_0x3e24b7(0x1a3)]+':'+(_0x181190[_0x3e24b7(0x16c)]?_0x3e24b7(0x173):_0x3e24b7(0x19a))):null});}[_0x4d9047(0x165)](_0x5426af,_0xcc1d23,_0xf970f9=!0x1,_0x55771f=!0x1){const _0x7f2b98=_0x4d9047;if(this[_0x7f2b98(0x18d)]&&!_0x55771f)return!0x1;this[_0x7f2b98(0x196)]&&this[_0x7f2b98(0x17b)](this[_0x7f2b98(0x196)]),this[_0x7f2b98(0x196)]=_0xcc1d23,this[_0x7f2b98(0x18d)]=_0xf970f9;const _0x1a02ae=_0x3e03ca(this[_0x7f2b98(0x143)])[_0x7f2b98(0x171)];return _0x1a02ae[_0x7f2b98(0x1a0)](_0x1a3d1f=>{const _0xe391a7=_0x7f2b98;let _0x2903d5=0x0;for(let _0x4121c7 of _0x5426af){const _0x5390e0=_0xe391a7(0x174)+_0x2903d5;if(_0x4121c7[_0xe391a7(0x173)][_0xe391a7(0x183)]){const _0x1b72ce=_0x4121c7[_0xe391a7(0x173)][_0xe391a7(0x155)](({item:_0x2ee65f})=>!_0x1a02ae[_0xe391a7(0x187)][_0xe391a7(0x14b)](_0x2ee65f),{'boundaries':_0x4121c7});_0x4121c7=_0x1a3d1f[_0xe391a7(0x15f)](_0x1b72ce,_0x4121c7[_0xe391a7(0x19a)]);}_0x1a3d1f[_0xe391a7(0x191)](_0x5390e0,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x4121c7}),_0x2903d5++;}}),window[_0x7f2b98(0x1a1)]()?.[_0x7f2b98(0x147)](),!0x0;}[_0x4d9047(0x17b)](_0x45c06c){const _0x27e0ae=_0x4d9047;if(this[_0x27e0ae(0x196)]!=_0x45c06c)return!0x1;this[_0x27e0ae(0x196)]=null,this[_0x27e0ae(0x18d)]=!0x1;const _0x3cd8f1=_0x3e03ca(this[_0x27e0ae(0x143)]),_0x3963df=_0x3cd8f1[_0x27e0ae(0x171)][_0x27e0ae(0x197)][_0x27e0ae(0x156)](_0x27e0ae(0x18a));return _0x3cd8f1[_0x27e0ae(0x171)][_0x27e0ae(0x1a0)](_0xffdc76=>{const _0x4ba555=_0x27e0ae;for(const _0x1908fa of _0x3963df)_0xffdc76[_0x4ba555(0x192)](_0x1908fa);}),!0x0;}[_0x4d9047(0x172)](_0x3d2e2e){const _0x32648b=_0x4d9047,_0x39de08=_0x3e03ca(this[_0x32648b(0x143)]),_0x566c99=_0x39de08[_0x32648b(0x160)][_0x32648b(0x153)](_0x3d2e2e),_0x3eef32=new _0x1701a2(_0x39de08[_0x32648b(0x15a)][_0x32648b(0x17e)][_0x32648b(0x151)]);return this[_0x32648b(0x184)](_0x566c99,_0x3eef32),_0x566c99;}[_0x4d9047(0x184)](_0x1ce25a,_0xb0a4e7){const _0x350c7c=_0x4d9047;let _0x2bd057=!0x1;const _0x3bfb92=new Set();for(const _0x2baf3e of _0x1ce25a[_0x350c7c(0x1a5)]()){const _0x51a7be=_0x2baf3e['is'](_0x350c7c(0x16d))||_0x2baf3e['is'](_0x350c7c(0x14d));if(!_0x2baf3e['is'](_0x350c7c(0x18f)))continue;(this[_0x350c7c(0x184)](_0x2baf3e,_0xb0a4e7)||_0x51a7be)&&(_0xb0a4e7[_0x350c7c(0x14a)](_0x350c7c(0x177),this[_0x350c7c(0x1ab)](_0x3bfb92),_0x2baf3e),_0x2bd057=!0x0);}return _0x2bd057;}[_0x4d9047(0x1ab)](_0x34171e){const _0x1bb103=_0x4d9047;let _0x380071;do{_0x380071='';for(let _0x2ccf56=0x0;_0x2ccf56<0x4;_0x2ccf56++)_0x380071+=String[_0x1bb103(0x1aa)](0x61+Math[_0x1bb103(0x1a2)](0x1a*Math[_0x1bb103(0x180)]()));}while(_0x34171e[_0x1bb103(0x161)](_0x380071));return _0x34171e[_0x1bb103(0x1ac)](_0x380071),_0x380071;}[_0x4d9047(0x18b)](){const _0x438fc4=_0x4d9047,{model:_0x8bb9a7}=_0x3e03ca(this[_0x438fc4(0x143)]),_0xfb775=_0x8bb9a7[_0x438fc4(0x151)][_0x438fc4(0x198)],_0x133b89=_0x8bb9a7[_0x438fc4(0x18c)](_0xfb775),_0x2a2fd0=[],_0x215097=_0x8bb9a7[_0x438fc4(0x158)](_0x133b89)[_0x438fc4(0x193)]();for(const {item:_0x4be801}of _0x215097)_0x4be801['is'](_0x438fc4(0x17d))?_0x2a2fd0[_0x438fc4(0x15d)](_0x4be801[_0x438fc4(0x160)]):_0x4be801['is'](_0x438fc4(0x18f))&&_0x2a2fd0[_0x438fc4(0x14f)]>0x0&&'\x20'!==_0x2a2fd0[_0x2a2fd0[_0x438fc4(0x14f)]-0x1]&&_0x2a2fd0[_0x438fc4(0x15d)]('\x20');return'\x22'+_0x2a2fd0[_0x438fc4(0x16b)]('')[_0x438fc4(0x149)]()+'\x22';}[_0x4d9047(0x157)](){const _0x1f3bcf=_0x4d9047,_0x1610c7=_0x3e03ca(this[_0x1f3bcf(0x143)])[_0x1f3bcf(0x171)];return Array[_0x1f3bcf(0x19b)](_0x1610c7[_0x1f3bcf(0x197)][_0x1f3bcf(0x156)](_0x1f3bcf(0x18a)))[_0x1f3bcf(0x181)]((_0x337992,_0x42616c)=>_0x337992[_0x1f3bcf(0x15c)]()[_0x1f3bcf(0x15e)](_0x42616c[_0x1f3bcf(0x15c)]())?-0x1:_0x337992[_0x1f3bcf(0x15c)]()[_0x1f3bcf(0x189)](_0x42616c[_0x1f3bcf(0x15c)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xbdf3fe=_0x2c56;(function(_0x28917b,_0x1bb795){const _0x589d1b=_0x2c56,_0x588788=_0x28917b();while(!![]){try{const _0x4f06c4=parseInt(_0x589d1b(0x1f5))/0x1*(-parseInt(_0x589d1b(0x1ff))/0x2)+-parseInt(_0x589d1b(0x1f9))/0x3+-parseInt(_0x589d1b(0x1fb))/0x4*(-parseInt(_0x589d1b(0x1f8))/0x5)+-parseInt(_0x589d1b(0x1ef))/0x6+-parseInt(_0x589d1b(0x1fa))/0x7*(-parseInt(_0x589d1b(0x1fd))/0x8)+-parseInt(_0x589d1b(0x1f1))/0x9+parseInt(_0x589d1b(0x1f4))/0xa;if(_0x4f06c4===_0x1bb795)break;else _0x588788['push'](_0x588788['shift']());}catch(_0xad8de2){_0x588788['push'](_0x588788['shift']());}}}(_0x3420,0x85e63));import{EmitterMixin as _0x56426a}from'ckeditor5/src/utils.js';function _0x3420(){const _0x4d3be8=['19040360WRzpUe','188VgzOTw','reasoning','toggleReasoning','1692800ZghZnV','710490aniMRM','493157ShXguQ','8UzLAOt','fire','16nHDsXe','setReasoning','10902rTKBQh','capabilitiesUpdated','reset','getCapabilitiesConfig','isWebSearchEnabled','_isReasoningEnabled','toggleWebSearch','setWebSearch','getCapabilitiesRequestData','init','3989316PBTEBa','isReasoningEnabled','2223927BWQhTZ','webSearch','_isWebSearchEnabled'];_0x3420=function(){return _0x4d3be8;};return _0x3420();}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0xbdf3fe(0x200)];function _0x2c56(_0x2c708f,_0xe854a4){const _0x3420ca=_0x3420();return _0x2c56=function(_0x2c56e6,_0x479377){_0x2c56e6=_0x2c56e6-0x1ee;let _0x27c1df=_0x3420ca[_0x2c56e6];return _0x27c1df;},_0x2c56(_0x2c708f,_0xe854a4);}export class AICapabilities extends _0x56426a(){[_0xbdf3fe(0x1f3)];[_0xbdf3fe(0x204)];constructor(){const _0x47616e=_0xbdf3fe;super(),this[_0x47616e(0x1f3)]=!0x1,this[_0x47616e(0x204)]=!0x1;}[_0xbdf3fe(0x1ee)](){const _0x3a9fa0=_0xbdf3fe;this[_0x3a9fa0(0x201)]();}[_0xbdf3fe(0x201)](){const _0x4e4ff4=_0xbdf3fe;this[_0x4e4ff4(0x206)](!0x1),this[_0x4e4ff4(0x1fe)](!0x1);}[_0xbdf3fe(0x202)](){const _0x3c5168=_0xbdf3fe;return{'isWebSearchEnabled':this[_0x3c5168(0x1f3)],'isReasoningEnabled':this[_0x3c5168(0x204)]};}static[_0xbdf3fe(0x207)](_0x1b64e5){const _0x327d4e=_0xbdf3fe,_0x7eada0={};return _0x1b64e5&&_0x1b64e5[_0x327d4e(0x203)]&&(_0x7eada0[_0x327d4e(0x1f2)]={}),_0x1b64e5&&_0x1b64e5[_0x327d4e(0x1f0)]&&(_0x7eada0[_0x327d4e(0x1f6)]={}),_0x7eada0;}[_0xbdf3fe(0x205)](){const _0x2e7eee=_0xbdf3fe;this[_0x2e7eee(0x206)](!this[_0x2e7eee(0x1f3)]);}[_0xbdf3fe(0x1f7)](){const _0x3a4d36=_0xbdf3fe;this[_0x3a4d36(0x1fe)](!this[_0x3a4d36(0x204)]);}[_0xbdf3fe(0x206)](_0x42f23e){const _0x2780fa=_0xbdf3fe;_0x42f23e!==this[_0x2780fa(0x1f3)]&&(this[_0x2780fa(0x1f3)]=_0x42f23e,this[_0x2780fa(0x1fc)](_0x2780fa(0x200),this[_0x2780fa(0x202)]()));}[_0xbdf3fe(0x1fe)](_0x41094e){const _0x1e35dc=_0xbdf3fe;_0x41094e!==this[_0x1e35dc(0x204)]&&(this[_0x1e35dc(0x204)]=_0x41094e,this[_0x1e35dc(0x1fc)](_0x1e35dc(0x200),this[_0x1e35dc(0x202)]()));}}
23
+ function _0x45a6(){const _0x148515=['setReasoning','toggleWebSearch','capabilitiesUpdated','isWebSearchEnabled','32255620QYgIlm','reset','267688VZVmEJ','getCapabilitiesRequestData','fire','532050lCyXrS','8490753wtJabd','140ycKoaF','toggleReasoning','reasoning','webSearch','40FQOudF','_isReasoningEnabled','8gIPowd','4520572aiSGIi','isReasoningEnabled','68344pkUpgR','_isWebSearchEnabled','2265696zGUlMe','getCapabilitiesConfig','init','setWebSearch'];_0x45a6=function(){return _0x148515;};return _0x45a6();}function _0x1607(_0x3ebc52,_0x712216){const _0x45a69a=_0x45a6();return _0x1607=function(_0x1607c7,_0x58072a){_0x1607c7=_0x1607c7-0x1e1;let _0x25cb71=_0x45a69a[_0x1607c7];return _0x25cb71;},_0x1607(_0x3ebc52,_0x712216);}const _0x573078=_0x1607;(function(_0x4251d8,_0xa4c6a0){const _0x5b059d=_0x1607,_0x195a74=_0x4251d8();while(!![]){try{const _0x2648f9=-parseInt(_0x5b059d(0x1f2))/0x1*(parseInt(_0x5b059d(0x1f5))/0x2)+-parseInt(_0x5b059d(0x1f7))/0x3+-parseInt(_0x5b059d(0x1f3))/0x4+-parseInt(_0x5b059d(0x1f0))/0x5*(parseInt(_0x5b059d(0x1ea))/0x6)+parseInt(_0x5b059d(0x1ec))/0x7*(-parseInt(_0x5b059d(0x1e7))/0x8)+parseInt(_0x5b059d(0x1eb))/0x9+parseInt(_0x5b059d(0x1e5))/0xa;if(_0x2648f9===_0xa4c6a0)break;else _0x195a74['push'](_0x195a74['shift']());}catch(_0x2c4d17){_0x195a74['push'](_0x195a74['shift']());}}}(_0x45a6,0x9a338));import{EmitterMixin as _0x454d5c}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x573078(0x1e3)];export class AICapabilities extends _0x454d5c(){[_0x573078(0x1f6)];[_0x573078(0x1f1)];constructor(){const _0x15bf94=_0x573078;super(),this[_0x15bf94(0x1f6)]=!0x1,this[_0x15bf94(0x1f1)]=!0x1;}[_0x573078(0x1f9)](){const _0xbcf695=_0x573078;this[_0xbcf695(0x1e6)]();}[_0x573078(0x1e6)](){const _0x5d4314=_0x573078;this[_0x5d4314(0x1fa)](!0x1),this[_0x5d4314(0x1e1)](!0x1);}[_0x573078(0x1f8)](){const _0x28a3be=_0x573078;return{'isWebSearchEnabled':this[_0x28a3be(0x1f6)],'isReasoningEnabled':this[_0x28a3be(0x1f1)]};}static[_0x573078(0x1e8)](_0x23b365){const _0x196e1b=_0x573078,_0x2015cb={};return _0x23b365&&_0x23b365[_0x196e1b(0x1e4)]&&(_0x2015cb[_0x196e1b(0x1ef)]={}),_0x23b365&&_0x23b365[_0x196e1b(0x1f4)]&&(_0x2015cb[_0x196e1b(0x1ee)]={}),_0x2015cb;}[_0x573078(0x1e2)](){const _0xcfc3a0=_0x573078;this[_0xcfc3a0(0x1fa)](!this[_0xcfc3a0(0x1f6)]);}[_0x573078(0x1ed)](){const _0x2ade7d=_0x573078;this[_0x2ade7d(0x1e1)](!this[_0x2ade7d(0x1f1)]);}[_0x573078(0x1fa)](_0x340482){const _0x1bdfcc=_0x573078;_0x340482!==this[_0x1bdfcc(0x1f6)]&&(this[_0x1bdfcc(0x1f6)]=_0x340482,this[_0x1bdfcc(0x1e9)](_0x1bdfcc(0x1e3),this[_0x1bdfcc(0x1f8)]()));}[_0x573078(0x1e1)](_0x758987){const _0x319824=_0x573078;_0x758987!==this[_0x319824(0x1f1)]&&(this[_0x319824(0x1f1)]=_0x758987,this[_0x319824(0x1e9)](_0x319824(0x1e3),this[_0x319824(0x1f8)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x58381a,_0x1fe998){var _0x37516d=_0x514b,_0x48eb24=_0x58381a();while(!![]){try{var _0x2fb058=-parseInt(_0x37516d(0x8b))/0x1+-parseInt(_0x37516d(0x98))/0x2+-parseInt(_0x37516d(0x90))/0x3+parseInt(_0x37516d(0x91))/0x4*(parseInt(_0x37516d(0x8a))/0x5)+parseInt(_0x37516d(0x96))/0x6+-parseInt(_0x37516d(0x87))/0x7*(-parseInt(_0x37516d(0x85))/0x8)+-parseInt(_0x37516d(0x8f))/0x9*(-parseInt(_0x37516d(0x88))/0xa);if(_0x2fb058===_0x1fe998)break;else _0x48eb24['push'](_0x48eb24['shift']());}catch(_0x568342){_0x48eb24['push'](_0x48eb24['shift']());}}}(_0x2738,0x81e25));function _0x514b(_0x3c42b2,_0xb70d5){var _0x2738fc=_0x2738();return _0x514b=function(_0x514b3c,_0x39820b){_0x514b3c=_0x514b3c-0x81;var _0x21ef98=_0x2738fc[_0x514b3c];return _0x21ef98;},_0x514b(_0x3c42b2,_0xb70d5);}export var AIContextItemType;function _0x2738(){var _0x432260=['MARKDOWN','1711054fouvrU','text','selection','file','FILE','1607712shoeFv','SELECTION','28zGtmoU','4557460VwyBxt','markdown','95XKYCuy','921054BmSYaF','HTML','TEXT','html','9Mzgxvt','142356IbJXnX','92360eHxFfs','web-resource','document','URL','DOCUMENT','3946356MiFWcL'];_0x2738=function(){return _0x432260;};return _0x2738();}!function(_0x3aca6c){var _0x31632c=_0x514b;_0x3aca6c[_0x31632c(0x84)]=_0x31632c(0x83),_0x3aca6c[_0x31632c(0x95)]=_0x31632c(0x93),_0x3aca6c[_0x31632c(0x94)]=_0x31632c(0x92),_0x3aca6c[_0x31632c(0x8d)]=_0x31632c(0x81),_0x3aca6c[_0x31632c(0x86)]=_0x31632c(0x82);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x1b646e){var _0x3d41dd=_0x514b;_0x1b646e[_0x3d41dd(0x8d)]=_0x3d41dd(0x81),_0x1b646e[_0x3d41dd(0x97)]=_0x3d41dd(0x89),_0x1b646e[_0x3d41dd(0x8c)]=_0x3d41dd(0x8e);}(AIContextTextResourceType||(AIContextTextResourceType={}));
23
+ (function(_0x442fa2,_0x56f405){var _0x459893=_0x3e74,_0x27cde8=_0x442fa2();while(!![]){try{var _0x1a30ca=-parseInt(_0x459893(0xbb))/0x1*(-parseInt(_0x459893(0xc2))/0x2)+parseInt(_0x459893(0xc3))/0x3*(-parseInt(_0x459893(0xca))/0x4)+-parseInt(_0x459893(0xc1))/0x5+-parseInt(_0x459893(0xc6))/0x6+parseInt(_0x459893(0xc7))/0x7*(parseInt(_0x459893(0xc5))/0x8)+parseInt(_0x459893(0xcd))/0x9+parseInt(_0x459893(0xbc))/0xa;if(_0x1a30ca===_0x56f405)break;else _0x27cde8['push'](_0x27cde8['shift']());}catch(_0x4a375b){_0x27cde8['push'](_0x27cde8['shift']());}}}(_0x35ed,0xc0207));export var AIContextItemType;function _0x3e74(_0x5391d5,_0x40b612){var _0x35ed68=_0x35ed();return _0x3e74=function(_0x3e7416,_0x1e1e06){_0x3e7416=_0x3e7416-0xbb;var _0x5e4ad0=_0x35ed68[_0x3e7416];return _0x5e4ad0;},_0x3e74(_0x5391d5,_0x40b612);}!function(_0x571e41){var _0xd00b97=_0x3e74;_0x571e41[_0xd00b97(0xcb)]=_0xd00b97(0xc0),_0x571e41[_0xd00b97(0xbe)]=_0xd00b97(0xcc),_0x571e41[_0xd00b97(0xd1)]=_0xd00b97(0xd2),_0x571e41[_0xd00b97(0xcf)]=_0xd00b97(0xce),_0x571e41[_0xd00b97(0xc9)]=_0xd00b97(0xbd);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x24a03e){var _0x38542a=_0x3e74;_0x24a03e[_0x38542a(0xcf)]=_0x38542a(0xce),_0x24a03e[_0x38542a(0xc4)]=_0x38542a(0xc8),_0x24a03e[_0x38542a(0xbf)]=_0x38542a(0xd0);}(AIContextTextResourceType||(AIContextTextResourceType={}));function _0x35ed(){var _0xc6a80e=['10339490YCGUVi','markdown','SELECTION','4690124GiIXpK','FILE','document','8452836KvKTRm','text','TEXT','html','URL','web-resource','2dircIo','6436610YCLaFW','selection','DOCUMENT','HTML','file','2261925VCUMia','3422cTTIbX','3ftCpkb','MARKDOWN','8RWQjdM','3908940pxZrAK'];_0x35ed=function(){return _0xc6a80e;};return _0x35ed();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x48bbd9=_0x5ba1;(function(_0x32088d,_0xcbdc4b){const _0x27dc2d=_0x5ba1,_0xc4695c=_0x32088d();while(!![]){try{const _0x1ebb1f=parseInt(_0x27dc2d(0xe0))/0x1+-parseInt(_0x27dc2d(0xe1))/0x2+-parseInt(_0x27dc2d(0xdd))/0x3+parseInt(_0x27dc2d(0xf9))/0x4+-parseInt(_0x27dc2d(0xeb))/0x5+parseInt(_0x27dc2d(0xf0))/0x6*(-parseInt(_0x27dc2d(0x10c))/0x7)+-parseInt(_0x27dc2d(0xf1))/0x8*(-parseInt(_0x27dc2d(0xe8))/0x9);if(_0x1ebb1f===_0xcbdc4b)break;else _0xc4695c['push'](_0xc4695c['shift']());}catch(_0x534a8c){_0xc4695c['push'](_0xc4695c['shift']());}}}(_0x2ab2,0xe941a));function _0x2ab2(){const _0x4ad3ab=['sendRequest','getStream','done','interactionDestroyed','textDelta','event','delegate','31472BmYbSU','stopListening','replies','find','length','appendContent','isDestroyed','getReply','isStopped','setConversationTitle','replyChangeGroupStateUpdated','interactionStarted','splice','start','replyCreated','abort','ai-chat-interaction-error','currentReply','interactionStopped','7VQtFJL','replyContentUpdated','destroy','content','createReply','sources','ai-interaction-invalid-event-type','currentRequest','connector','571899VgDkqF','_finalizeInteraction','abortController','31817ZTgLKU','305284Sujsgc','fire','interactionCreated','data','interactionFinished','conversationTitle','editor','18YETsTM','stop','forEach','6745475ZFlPpO','error','source','push','getDocumentContext','540174MxlrIa','10792528KJnFtT'];_0x2ab2=function(){return _0x4ad3ab;};return _0x2ab2();}function _0x5ba1(_0x51d507,_0x33717c){const _0x2ab209=_0x2ab2();return _0x5ba1=function(_0x5ba183,_0x3d80c2){_0x5ba183=_0x5ba183-0xd7;let _0x14ee0e=_0x2ab209[_0x5ba183];return _0x14ee0e;},_0x5ba1(_0x51d507,_0x33717c);}import{CKEditorError as _0x5e266b,EmitterMixin as _0x185575,logWarning as _0x31790a,uid as _0x1f5a44}from'ckeditor5/src/utils.js';import{AIReply as _0x18fb2b,isIgnoredReplyType as _0x42966f,isValidReplyType as _0x18ac0b,isReplyTitleType as _0x4899b9,isSourceType as _0x21f394}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x48bbd9(0xe3),_0x48bbd9(0x104),_0x48bbd9(0x10b),_0x48bbd9(0xe5),_0x48bbd9(0xf5),_0x48bbd9(0x107),_0x48bbd9(0x10d),_0x48bbd9(0x103),_0x48bbd9(0x102),_0x48bbd9(0xec)];export class AIInteraction extends _0x185575(){['id'];[_0x48bbd9(0xfb)]=[];[_0x48bbd9(0x10a)];[_0x48bbd9(0xdb)];[_0x48bbd9(0xdc)];[_0x48bbd9(0x101)]=!0x1;[_0x48bbd9(0xff)]=!0x1;[_0x48bbd9(0xe7)];constructor({connector:_0x564797,editor:_0x117d0f}){const _0x454a5e=_0x48bbd9;super(),this['id']=_0x1f5a44(),this[_0x454a5e(0xdc)]=_0x564797,this[_0x454a5e(0x101)]=!0x0,this[_0x454a5e(0xe7)]=_0x117d0f;}async[_0x48bbd9(0x106)](){const _0x1a0230=_0x48bbd9;let _0x388fe4;this[_0x1a0230(0x101)]=!0x1;try{this[_0x1a0230(0xdb)]=await this[_0x1a0230(0xf2)](),this[_0x1a0230(0xe2)](_0x1a0230(0x104),this);const _0x5645f4=await this[_0x1a0230(0xdb)][_0x1a0230(0xf3)](),_0x89baf8=[];for await(const _0xa3c2fe of _0x5645f4){if(this[_0x1a0230(0x101)])return;if(_0x1a0230(0xec)===_0xa3c2fe[_0x1a0230(0xf7)])return void this[_0x1a0230(0xe2)](_0x1a0230(0xec),{'error':new _0x5e266b(_0x1a0230(0x109),this)});_0x4899b9(_0xa3c2fe[_0x1a0230(0xf7)])&&this[_0x1a0230(0x102)](_0xa3c2fe[_0x1a0230(0xe4)][_0x1a0230(0xe6)],!0x0),_0x21f394(_0xa3c2fe[_0x1a0230(0xf7)])?_0x89baf8[_0x1a0230(0xee)](_0xa3c2fe[_0x1a0230(0xe4)][_0x1a0230(0xed)]):_0x18ac0b(_0xa3c2fe[_0x1a0230(0xf7)])?(_0xa3c2fe[_0x1a0230(0xf7)]!==_0x388fe4&&(this[_0x1a0230(0x10a)]&&this[_0x1a0230(0x10a)][_0x1a0230(0xf4)](),this[_0x1a0230(0x10a)]=this[_0x1a0230(0xd8)]({'type':_0xa3c2fe[_0x1a0230(0xf7)],'interactionId':this['id']}),_0x89baf8[_0x1a0230(0xfd)]>0x0&&(this[_0x1a0230(0x10a)][_0x1a0230(0xd9)]=_0x89baf8[_0x1a0230(0x105)](0x0)),_0x388fe4=_0xa3c2fe[_0x1a0230(0xf7)]),this[_0x1a0230(0x10a)][_0x1a0230(0xfe)](_0xa3c2fe[_0x1a0230(0xe4)][_0x1a0230(0xf6)])):_0x42966f(_0xa3c2fe[_0x1a0230(0xf7)])||_0x31790a(_0x1a0230(0xda),{'chunk':_0xa3c2fe});}}finally{this[_0x1a0230(0x101)]||(this[_0x1a0230(0xde)](),this[_0x1a0230(0xe2)](_0x1a0230(0xe5),this));}}[_0x48bbd9(0xe9)](){const _0x5de3ce=_0x48bbd9;this[_0x5de3ce(0x101)]||(this[_0x5de3ce(0xde)](),this[_0x5de3ce(0xe2)](_0x5de3ce(0x10b),this));}[_0x48bbd9(0x100)](_0x1ac830){const _0x174ad0=_0x48bbd9;return this[_0x174ad0(0xfb)][_0x174ad0(0xfc)](_0xd62ae4=>_0xd62ae4['id']===_0x1ac830);}[_0x48bbd9(0x10e)](){const _0x202613=_0x48bbd9;this[_0x202613(0xff)]||(this[_0x202613(0xe9)](),this[_0x202613(0xfb)][_0x202613(0xea)](_0x4e41e3=>_0x4e41e3[_0x202613(0x10e)]()),this[_0x202613(0xfb)]=[],this[_0x202613(0xff)]=!0x0,this[_0x202613(0xe2)](_0x202613(0xf5),this),this[_0x202613(0xfa)]());}[_0x48bbd9(0xd8)](_0x5a100e){const _0x22febe=_0x48bbd9,_0x42b2f0=new _0x18fb2b({'editor':this[_0x22febe(0xe7)],'documentContextContent':this[_0x22febe(0xef)]()?.[_0x22febe(0xd7)],..._0x5a100e});return this[_0x22febe(0xfb)][_0x22febe(0xee)](_0x42b2f0),_0x42b2f0[_0x22febe(0xf8)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x22febe(0xe2)](_0x22febe(0x107),_0x42b2f0),_0x42b2f0;}[_0x48bbd9(0x102)](_0x5d59f4,_0x25e21e=!0x1){const _0x26f96b=_0x48bbd9;this[_0x26f96b(0xe2)](_0x26f96b(0x102),_0x5d59f4,_0x25e21e);}[_0x48bbd9(0xde)](){const _0x377b9f=_0x48bbd9;this[_0x377b9f(0x101)]=!0x0,this[_0x377b9f(0xdb)]&&this[_0x377b9f(0xdb)][_0x377b9f(0xdf)][_0x377b9f(0x108)](),this[_0x377b9f(0x10a)]&&this[_0x377b9f(0x10a)][_0x377b9f(0xf4)](),this[_0x377b9f(0xdb)]=this[_0x377b9f(0x10a)]=void 0x0;}}
23
+ const _0x1623c9=_0x1c41;(function(_0x5ba70e,_0xf0e1fd){const _0x5663d3=_0x1c41,_0xa838c5=_0x5ba70e();while(!![]){try{const _0xe2c86e=parseInt(_0x5663d3(0x137))/0x1+-parseInt(_0x5663d3(0x15e))/0x2+-parseInt(_0x5663d3(0x156))/0x3+-parseInt(_0x5663d3(0x142))/0x4*(parseInt(_0x5663d3(0x163))/0x5)+parseInt(_0x5663d3(0x130))/0x6*(-parseInt(_0x5663d3(0x14b))/0x7)+-parseInt(_0x5663d3(0x141))/0x8+parseInt(_0x5663d3(0x132))/0x9*(parseInt(_0x5663d3(0x134))/0xa);if(_0xe2c86e===_0xf0e1fd)break;else _0xa838c5['push'](_0xa838c5['shift']());}catch(_0x11e88f){_0xa838c5['push'](_0xa838c5['shift']());}}}(_0x324b,0xd90a7));import{CKEditorError as _0x1b0166,EmitterMixin as _0xe2250f,logWarning as _0x12de8e,uid as _0x18d34c}from'ckeditor5/src/utils.js';function _0x1c41(_0x38dfba,_0x5849e4){const _0x324b80=_0x324b();return _0x1c41=function(_0x1c41b4,_0x3a9cd4){_0x1c41b4=_0x1c41b4-0x12e;let _0x288bce=_0x324b80[_0x1c41b4];return _0x288bce;},_0x1c41(_0x38dfba,_0x5849e4);}import{AIReply as _0x133524,isIgnoredReplyType as _0xcdb2bb,isValidReplyType as _0x2ffd2c,isReplyTitleType as _0x199ec2,isSourceType as _0x131d80}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x1623c9(0x133),_0x1623c9(0x151),_0x1623c9(0x131),_0x1623c9(0x149),_0x1623c9(0x143),_0x1623c9(0x139),_0x1623c9(0x140),_0x1623c9(0x166),_0x1623c9(0x152),_0x1623c9(0x135)];export class AIInteraction extends _0xe2250f(){['id'];[_0x1623c9(0x14f)]=[];[_0x1623c9(0x159)];[_0x1623c9(0x14a)];[_0x1623c9(0x164)];[_0x1623c9(0x154)]=!0x1;[_0x1623c9(0x136)]=!0x1;[_0x1623c9(0x15c)];constructor({connector:_0x18916f,editor:_0x144fac}){const _0x1c5190=_0x1623c9;super(),this['id']=_0x18d34c(),this[_0x1c5190(0x164)]=_0x18916f,this[_0x1c5190(0x154)]=!0x0,this[_0x1c5190(0x15c)]=_0x144fac;}async[_0x1623c9(0x13c)](){const _0x25f3c2=_0x1623c9;let _0x1f1a02;this[_0x25f3c2(0x154)]=!0x1;try{this[_0x25f3c2(0x14a)]=await this[_0x25f3c2(0x14d)](),this[_0x25f3c2(0x13b)](_0x25f3c2(0x151),this);const _0x6800ce=await this[_0x25f3c2(0x14a)][_0x25f3c2(0x13e)](),_0x2d0e74=[];for await(const _0x2ca775 of _0x6800ce){if(this[_0x25f3c2(0x154)])return;if(_0x25f3c2(0x135)===_0x2ca775[_0x25f3c2(0x15b)])return void this[_0x25f3c2(0x13b)](_0x25f3c2(0x135),{'error':new _0x1b0166(_0x25f3c2(0x150),this)});_0x199ec2(_0x2ca775[_0x25f3c2(0x15b)])&&this[_0x25f3c2(0x152)](_0x2ca775[_0x25f3c2(0x161)][_0x25f3c2(0x12e)],!0x0),_0x131d80(_0x2ca775[_0x25f3c2(0x15b)])?_0x2d0e74[_0x25f3c2(0x144)](_0x2ca775[_0x25f3c2(0x161)][_0x25f3c2(0x145)]):_0x2ffd2c(_0x2ca775[_0x25f3c2(0x15b)])?(_0x2ca775[_0x25f3c2(0x15b)]!==_0x1f1a02&&(this[_0x25f3c2(0x159)]&&this[_0x25f3c2(0x159)][_0x25f3c2(0x147)](),this[_0x25f3c2(0x159)]=this[_0x25f3c2(0x146)]({'type':_0x2ca775[_0x25f3c2(0x15b)],'interactionId':this['id']}),_0x2d0e74[_0x25f3c2(0x14e)]>0x0&&(this[_0x25f3c2(0x159)][_0x25f3c2(0x15a)]=_0x2d0e74[_0x25f3c2(0x158)](0x0)),_0x1f1a02=_0x2ca775[_0x25f3c2(0x15b)]),this[_0x25f3c2(0x159)][_0x25f3c2(0x15d)](_0x2ca775[_0x25f3c2(0x161)][_0x25f3c2(0x148)])):_0xcdb2bb(_0x2ca775[_0x25f3c2(0x15b)])||_0x12de8e(_0x25f3c2(0x12f),{'chunk':_0x2ca775});}}finally{this[_0x25f3c2(0x154)]||(this[_0x25f3c2(0x15f)](),this[_0x25f3c2(0x13b)](_0x25f3c2(0x149),this));}}[_0x1623c9(0x13a)](){const _0x3560d6=_0x1623c9;this[_0x3560d6(0x154)]||(this[_0x3560d6(0x15f)](),this[_0x3560d6(0x13b)](_0x3560d6(0x131),this));}[_0x1623c9(0x13f)](_0x4bf2c4){const _0x38fbc3=_0x1623c9;return this[_0x38fbc3(0x14f)][_0x38fbc3(0x165)](_0x6abdbb=>_0x6abdbb['id']===_0x4bf2c4);}[_0x1623c9(0x14c)](){const _0x4a8b69=_0x1623c9;this[_0x4a8b69(0x136)]||(this[_0x4a8b69(0x13a)](),this[_0x4a8b69(0x14f)][_0x4a8b69(0x13d)](_0x2598c7=>_0x2598c7[_0x4a8b69(0x14c)]()),this[_0x4a8b69(0x14f)]=[],this[_0x4a8b69(0x136)]=!0x0,this[_0x4a8b69(0x13b)](_0x4a8b69(0x143),this),this[_0x4a8b69(0x157)]());}[_0x1623c9(0x146)](_0x39b36a){const _0x26765f=_0x1623c9,_0x58f135=new _0x133524({'editor':this[_0x26765f(0x15c)],'documentContextContent':this[_0x26765f(0x162)]()?.[_0x26765f(0x160)],..._0x39b36a});return this[_0x26765f(0x14f)][_0x26765f(0x144)](_0x58f135),_0x58f135[_0x26765f(0x155)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x26765f(0x13b)](_0x26765f(0x139),_0x58f135),_0x58f135;}[_0x1623c9(0x152)](_0x25e0a1,_0x5c69be=!0x1){const _0x2551b9=_0x1623c9;this[_0x2551b9(0x13b)](_0x2551b9(0x152),_0x25e0a1,_0x5c69be);}[_0x1623c9(0x15f)](){const _0x5916cc=_0x1623c9;this[_0x5916cc(0x154)]=!0x0,this[_0x5916cc(0x14a)]&&this[_0x5916cc(0x14a)][_0x5916cc(0x138)][_0x5916cc(0x153)](),this[_0x5916cc(0x159)]&&this[_0x5916cc(0x159)][_0x5916cc(0x147)](),this[_0x5916cc(0x14a)]=this[_0x5916cc(0x159)]=void 0x0;}}function _0x324b(){const _0x12e662=['4OqjBxb','interactionDestroyed','push','source','createReply','done','textDelta','interactionFinished','currentRequest','21UhoBTg','destroy','sendRequest','length','replies','ai-chat-interaction-error','interactionStarted','setConversationTitle','abort','isStopped','delegate','4946409lbSupX','stopListening','splice','currentReply','sources','event','editor','appendContent','1236662Fxrrtc','_finalizeInteraction','content','data','getDocumentContext','3286235Dducuz','connector','find','replyChangeGroupStateUpdated','conversationTitle','ai-interaction-invalid-event-type','610734lfiNsc','interactionStopped','94581pQYySr','interactionCreated','3660BXNOJW','error','isDestroyed','835566FzLkFh','abortController','replyCreated','stop','fire','start','forEach','getStream','getReply','replyContentUpdated','4504904ZPToir'];_0x324b=function(){return _0x12e662;};return _0x324b();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ca999=_0x3613;(function(_0x4ae133,_0x2b3987){const _0x20e0a5=_0x3613,_0x51860=_0x4ae133();while(!![]){try{const _0x5371d7=-parseInt(_0x20e0a5(0x117))/0x1+-parseInt(_0x20e0a5(0x129))/0x2+-parseInt(_0x20e0a5(0xf2))/0x3+parseInt(_0x20e0a5(0xee))/0x4*(-parseInt(_0x20e0a5(0xed))/0x5)+parseInt(_0x20e0a5(0xeb))/0x6*(-parseInt(_0x20e0a5(0x12a))/0x7)+-parseInt(_0x20e0a5(0x112))/0x8*(-parseInt(_0x20e0a5(0xf9))/0x9)+parseInt(_0x20e0a5(0x10e))/0xa*(parseInt(_0x20e0a5(0x100))/0xb);if(_0x5371d7===_0x2b3987)break;else _0x51860['push'](_0x51860['shift']());}catch(_0x54a756){_0x51860['push'](_0x51860['shift']());}}}(_0x3a3f,0xcc6c3));import{ObservableMixin as _0x45b996,uid as _0x1702cf}from'ckeditor5/src/utils.js';import{Element as _0x4394a9,findAll as _0x242c54,getAttribute as _0x4f0e57,getParents as _0x3e7a1f,Document as _0x1e6d80,parse as _0xceeb73,Text as _0x37f61f}from'../utils/htmlparser.js';function _0x3613(_0x283a40,_0x41dd25){const _0x3a3f88=_0x3a3f();return _0x3613=function(_0x3613d1,_0x3c8cc0){_0x3613d1=_0x3613d1-0xeb;let _0xe3a54=_0x3a3f88[_0x3613d1];return _0xe3a54;},_0x3613(_0x283a40,_0x41dd25);}import{AIResponseParser as _0x4ada36}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x1c6aeb}from'../pipeline/airesponseapplier.js';export const AI_REPLY_TYPES=[_0x4ca999(0xef),_0x4ca999(0x102)];function _0x3a3f(){const _0x1a1acd=['color:\x20#808080;\x20font-style:\x20italic','updateChangeGroups','cloneNode','change:content','state','content','isDone','data-id','context','every','removedNodeIds','onContentChange','previousSibling','aiResponseParser','pending','merge','set','2373190FYQfOK','76503TFReoE','span','modified','conversation-title','node','removed','interactionId','newNodeIds','data-unstable','parseAndNormalizeHTML','252pJrckc','changeGroups','468070eMIIBp','16WMhDOJ','modification-delta','forEach','setChangeGroupState','1523619CAomlS','type','source','modifiedNodeIds','replyChangeGroupStateUpdated','replyContentUpdated','destroy','27SKDrdw','stopListening','map','changes','parsedContent','editor','done','55sPawoo','areActionsDisabled','text-delta','Removed\x20content.\x20Use\x20\x22Show\x20changes\x22\x20to\x20learn\x20more.','convertMarkdownToHTML','push','documentContextContent','nextSibling','length','appendContent','fire','index','values','reasoning','7654470rBXEcA','new','filter','sources','3191336WEXSGt','parsedMergedContent','aiResponseApplier','includes','unshift','1658729iFfFqp'];_0x3a3f=function(){return _0x1a1acd;};return _0x3a3f();}export const AI_REPLY_TYPES_IGNORED=[_0x4ca999(0x10d)];export const AI_REPLY_TITLE_TYPE=_0x4ca999(0x12d);export class AIReply extends _0x45b996(){['id'];[_0x4ca999(0x130)];[_0x4ca999(0xf3)];[_0x4ca999(0x111)]=[];[_0x4ca999(0xfd)]=new _0x1e6d80([]);[_0x4ca999(0x113)]=new _0x1e6d80([]);[_0x4ca999(0xec)]=[];[_0x4ca999(0x101)]=!0x1;[_0x4ca999(0x106)];[_0x4ca999(0x125)];[_0x4ca999(0x114)];[_0x4ca999(0xfe)];constructor({type:_0x247a3d,content:_0x3d4e94='',isDone:_0x4dcfe1=!0x1,interactionId:_0x3649cb,areActionsDisabled:_0xbc64d0,documentContextContent:_0x5c7cf8,editor:_0x537642}){const _0x2eb07b=_0x4ca999;super(),this['id']=_0x1702cf(),this[_0x2eb07b(0x130)]=_0x3649cb,this[_0x2eb07b(0xf3)]=_0x247a3d,this[_0x2eb07b(0x101)]=!!_0xbc64d0,this[_0x2eb07b(0xfe)]=_0x537642,this[_0x2eb07b(0x125)]=new _0x4ada36(),this[_0x2eb07b(0x114)]=new _0x1c6aeb(),this[_0x2eb07b(0x106)]=_0xceeb73(_0x5c7cf8||''),this[_0x2eb07b(0x128)](_0x2eb07b(0x11e),_0x4dcfe1),this['on'](_0x2eb07b(0x11b),()=>{const _0x4054dc=_0x2eb07b;this[_0x4054dc(0x123)]();}),this[_0x2eb07b(0x128)](_0x2eb07b(0x11d),_0x3d4e94);}[_0x4ca999(0x109)](_0x42f040){const _0x551648=_0x4ca999;this[_0x551648(0x128)](_0x551648(0x11d),this[_0x551648(0x11d)]+_0x42f040);}[_0x4ca999(0xff)](){const _0x43e29b=_0x4ca999;this[_0x43e29b(0x11e)]||(this[_0x43e29b(0x128)](_0x43e29b(0x11e),!0x0),this[_0x43e29b(0x123)]());}[_0x4ca999(0xf8)](){const _0x32aa40=_0x4ca999;this[_0x32aa40(0xfa)]();}[_0x4ca999(0xf1)](_0x38a9f3,_0x2a8940){const _0x44e15d=_0x4ca999;this[_0x44e15d(0xec)][_0x38a9f3][_0x44e15d(0x11c)]=_0x2a8940,this[_0x44e15d(0x10a)](_0x44e15d(0xf6),{'reply':this,'index':_0x38a9f3,'state':_0x2a8940});}[_0x4ca999(0x123)](){const _0x4b0019=_0x4ca999;if(_0x4b0019(0xef)===this[_0x4b0019(0xf3)]){this[_0x4b0019(0xfd)]=this[_0x4b0019(0x125)][_0x4b0019(0x133)](this[_0x4b0019(0x11d)]);const _0x3e1bdb=this[_0x4b0019(0xec)];this[_0x4b0019(0x119)]();const _0x536659=function(_0x18be56,_0x5aaf9d){const _0xd1e680=_0x4b0019,_0x44ac2b=[];for(const _0x170cec of _0x5aaf9d){const _0x8a79dd=_0x18be56[_0x170cec[_0xd1e680(0x10b)]];_0x8a79dd?_0x8a79dd[_0xd1e680(0xfc)][_0xd1e680(0x108)]!==_0x170cec[_0xd1e680(0xfc)][_0xd1e680(0x108)]?_0x44ac2b[_0xd1e680(0x105)](_0x170cec):_0x8a79dd[_0xd1e680(0xfc)][_0xd1e680(0xf0)]((_0x13835b,_0x58969d)=>{const _0x5a63ee=_0xd1e680,_0x402bf2=_0x170cec[_0x5a63ee(0xfc)][_0x58969d];_0x13835b['id']!==_0x402bf2['id']&&_0x44ac2b[_0x5a63ee(0x105)](_0x170cec);}):_0x44ac2b[_0xd1e680(0x105)](_0x170cec);}return _0x44ac2b;}(_0x3e1bdb,this[_0x4b0019(0xec)]);(_0x536659[_0x4b0019(0x108)]||this[_0x4b0019(0x11e)])&&this[_0x4b0019(0x10a)](_0x4b0019(0xf7),this,_0x536659);}else this[_0x4b0019(0xfd)]=this[_0x4b0019(0x125)][_0x4b0019(0x104)](this[_0x4b0019(0x11d)]),this[_0x4b0019(0x10a)](_0x4b0019(0xf7),this);}[_0x4ca999(0x119)](){const _0x224fa8=_0x4ca999,_0xbcab7d=new _0x4394a9('p',{},[new _0x4394a9(_0x224fa8(0x12b),{'style':_0x224fa8(0x118)},[new _0x37f61f(_0x224fa8(0x103))])]),_0x332e23=this[_0x224fa8(0x114)][_0x224fa8(0x127)](this[_0x224fa8(0xfd)],this[_0x224fa8(0x106)][_0x224fa8(0x11a)](!0x0),{'markUnstableElements':!this[_0x224fa8(0x11e)],'replaceRemovedWith':_0xbcab7d,'cutAfterLastChange':!this[_0x224fa8(0x11e)]});if(!_0x332e23[_0x224fa8(0xf5)][_0x224fa8(0x108)]&&!this[_0x224fa8(0x11e)])return;this[_0x224fa8(0x113)]=_0x332e23[_0x224fa8(0xfd)];let _0x344a0b=[];if(_0x242c54(_0x4d0f33=>{const _0x29f85e=_0x224fa8,_0x39c63f=_0x4f0e57(_0x4d0f33,_0x29f85e(0x11f));if(!_0x39c63f||!_0x4ad5cb(_0x39c63f))return!0x1;const _0x32927b=[_0x4d0f33,..._0x3e7a1f(_0x4d0f33)]['at'](-0x2);if(_0x4d0f33!=_0x32927b){const _0x31735a=_0x4f0e57(_0x32927b,_0x29f85e(0x11f));_0x4ad5cb(_0x31735a)||(_0x344a0b[_0x29f85e(0x105)]({'node':_0x32927b,'id':_0x31735a,'type':_0x29f85e(0x12c)}),_0x332e23[_0x29f85e(0xf5)][_0x29f85e(0x105)](_0x31735a));}else _0x332e23[_0x29f85e(0xf5)][_0x29f85e(0x115)](_0x39c63f)?_0x344a0b[_0x29f85e(0x105)]({'node':_0x4d0f33,'type':_0x29f85e(0x12c),'id':_0x39c63f}):_0x332e23[_0x29f85e(0x131)][_0x29f85e(0x115)](_0x39c63f)?_0x344a0b[_0x29f85e(0x105)]({'node':_0x4d0f33,'type':_0x29f85e(0x10f),'id':_0x39c63f,'anchorId':_0x4f0e57(_0x4d0f33[_0x29f85e(0x124)],_0x29f85e(0x11f))}):_0x344a0b[_0x29f85e(0x105)]({'node':_0x4d0f33,'type':_0x29f85e(0x12f),'id':_0x39c63f});return!0x0;},this[_0x224fa8(0x113)]),_0x344a0b=_0x344a0b[_0x224fa8(0x110)](({node:_0x490f15})=>[..._0x3e7a1f(_0x490f15),_0x490f15][_0x224fa8(0x121)](_0x76f123=>!_0x4f0e57(_0x76f123,_0x224fa8(0x132)))),0x0==_0x344a0b[_0x224fa8(0x108)])return;const _0x11367e=[[_0x344a0b[0x0]]];for(let _0x4e4df1=0x1;_0x4e4df1<_0x344a0b[_0x224fa8(0x108)];_0x4e4df1++){const _0x37d937=_0x11367e[_0x11367e[_0x224fa8(0x108)]-0x1],_0x2d7e9d=_0x37d937[_0x37d937[_0x224fa8(0x108)]-0x1];_0x344a0b[_0x4e4df1][_0x224fa8(0x12e)][_0x224fa8(0x124)]==_0x2d7e9d[_0x224fa8(0x12e)]&&_0x224fa8(0x12c)!=_0x344a0b[_0x4e4df1][_0x224fa8(0xf3)]&&_0x224fa8(0x12c)!=_0x2d7e9d[_0x224fa8(0xf3)]?_0x37d937[_0x224fa8(0x105)](_0x344a0b[_0x4e4df1]):_0x11367e[_0x224fa8(0x105)]([_0x344a0b[_0x4e4df1]]);}for(const _0x1f5010 of _0x11367e){const _0x52e6f8=_0x1f5010[0x0],_0x597201=_0x1f5010[_0x1f5010[_0x224fa8(0x108)]-0x1],_0x2fb644=_0x1ff294(_0x52e6f8[_0x224fa8(0x12e)][_0x224fa8(0x124)]);_0x2fb644&&_0x1f5010[_0x224fa8(0x116)](_0x2fb644);const _0x17be41=_0x1ff294(_0x597201[_0x224fa8(0x12e)][_0x224fa8(0x107)]);_0x17be41&&_0x1f5010[_0x224fa8(0x105)](_0x17be41);}function _0x4ad5cb(_0x566e34){const _0x26e265=_0x224fa8;return _0x332e23[_0x26e265(0xf5)][_0x26e265(0x115)](_0x566e34)||_0x332e23[_0x26e265(0x131)][_0x26e265(0x115)](_0x566e34)||_0x332e23[_0x26e265(0x122)][_0x26e265(0x115)](_0x566e34);}function _0x1ff294(_0x3bf1b6){const _0x45b0fe=_0x224fa8;if(_0x3bf1b6&&_0x4f0e57(_0x3bf1b6,_0x45b0fe(0x11f))&&!_0x4f0e57(_0x3bf1b6,_0x45b0fe(0x132))){const _0x550a2f=_0x4f0e57(_0x3bf1b6,_0x45b0fe(0x11f));if(!_0x4ad5cb(_0x550a2f))return{'node':_0x3bf1b6,'type':_0x45b0fe(0x120),'id':_0x550a2f};}return null;}this[_0x224fa8(0xec)]=_0x11367e[_0x224fa8(0xfb)]((_0x2edaae,_0x1eb2f0)=>({'changes':_0x2edaae,'state':_0x224fa8(0x126),'index':_0x1eb2f0}));}}export function isValidReplyType(_0x3a740b){const _0x3fd7ed=_0x4ca999;return Object[_0x3fd7ed(0x10c)](AI_REPLY_TYPES)[_0x3fd7ed(0x115)](_0x3a740b);}export function isIgnoredReplyType(_0x9e40c){const _0x30edaf=_0x4ca999;return AI_REPLY_TYPES_IGNORED[_0x30edaf(0x115)](_0x9e40c);}export function isReplyTitleType(_0x4b59f9){return _0x4b59f9===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x47035b){const _0x4cde3e=_0x4ca999;return _0x4cde3e(0xf4)===_0x47035b;}
23
+ const _0x37e642=_0x128f;(function(_0x348f53,_0x3b67d2){const _0x64796f=_0x128f,_0x103c69=_0x348f53();while(!![]){try{const _0x1e14c5=parseInt(_0x64796f(0xbe))/0x1*(parseInt(_0x64796f(0x9e))/0x2)+-parseInt(_0x64796f(0x94))/0x3+parseInt(_0x64796f(0x79))/0x4*(parseInt(_0x64796f(0xaa))/0x5)+parseInt(_0x64796f(0xc2))/0x6+-parseInt(_0x64796f(0x8e))/0x7*(parseInt(_0x64796f(0x82))/0x8)+parseInt(_0x64796f(0xad))/0x9+parseInt(_0x64796f(0x9c))/0xa*(-parseInt(_0x64796f(0x8f))/0xb);if(_0x1e14c5===_0x3b67d2)break;else _0x103c69['push'](_0x103c69['shift']());}catch(_0xb583aa){_0x103c69['push'](_0x103c69['shift']());}}}(_0x5e91,0x445ad));import{ObservableMixin as _0x3d8bc7,uid as _0xd75864}from'ckeditor5/src/utils.js';import{Element as _0x8776e1,findAll as _0x3ebff6,getAttribute as _0x4bcbf,getParents as _0x4eb038,Document as _0xd43503,parse as _0x2135d1,Text as _0x567df1}from'../utils/htmlparser.js';import{AIResponseParser as _0x3065e7}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x5516cd}from'../pipeline/airesponseapplier.js';export const AI_REPLY_TYPES=[_0x37e642(0x91),_0x37e642(0xb5)];export const AI_REPLY_TYPES_IGNORED=[_0x37e642(0x9d)];export const AI_REPLY_TITLE_TYPE=_0x37e642(0x7e);function _0x5e91(){const _0x2da67b=['new','modification-delta','pending','span','1661724bjEQja','removed','changeGroups','cloneNode','newNodeIds','length','aiResponseParser','convertMarkdownToHTML','1230870hINcvA','reasoning','10cRjyIW','map','forEach','isDone','data-id','_getDifferentChangeGroups','parseAndNormalizeHTML','every','parsedMergedContent','modifiedNodeIds','data-unstable','replyChangeGroupStateUpdated','5lglbZT','index','modified','2404098jxZBDW','content','parsedContent','unshift','state','stopListening','node','replyContentUpdated','text-delta','nextSibling','areActionsDisabled','onContentChange','destroy','done','interactionId','values','context','1807ZIGAyk','filter','color:\x20#808080;\x20font-style:\x20italic','previousSibling','2816106UGfsHy','2109292EKrAMq','includes','setChangeGroupState','source','change:content','conversation-title','documentContextContent','push','fire','280760RIyHsN','sources','editor','aiResponseApplier','merge','type','set','removedNodeIds','changes','Removed\x20content.\x20Use\x20\x22Show\x20changes\x22\x20to\x20learn\x20more.','updateChangeGroups','appendContent','63WxcSFF','11UekzMX'];_0x5e91=function(){return _0x2da67b;};return _0x5e91();}export class AIReply extends _0x3d8bc7(){['id'];[_0x37e642(0xbb)];[_0x37e642(0x87)];[_0x37e642(0x83)]=[];[_0x37e642(0xaf)]=new _0xd43503([]);[_0x37e642(0xa6)]=new _0xd43503([]);[_0x37e642(0x96)]=[];[_0x37e642(0xb7)]=!0x1;[_0x37e642(0x7f)];[_0x37e642(0x9a)];[_0x37e642(0x85)];[_0x37e642(0x84)];constructor({type:_0x1d59d0,content:_0x2a5f69='',isDone:_0x54b93c=!0x1,interactionId:_0xf1c51b,areActionsDisabled:_0x48c11f,documentContextContent:_0x3f3db2,editor:_0x294e2d}){const _0x42a34e=_0x37e642;super(),this['id']=_0xd75864(),this[_0x42a34e(0xbb)]=_0xf1c51b,this[_0x42a34e(0x87)]=_0x1d59d0,this[_0x42a34e(0xb7)]=!!_0x48c11f,this[_0x42a34e(0x84)]=_0x294e2d,this[_0x42a34e(0x9a)]=new _0x3065e7(),this[_0x42a34e(0x85)]=new _0x5516cd(),this[_0x42a34e(0x7f)]=_0x2135d1(_0x3f3db2||''),this[_0x42a34e(0x88)](_0x42a34e(0xa1),_0x54b93c),this['on'](_0x42a34e(0x7d),()=>{const _0x4abd42=_0x42a34e;this[_0x4abd42(0xb8)]();}),this[_0x42a34e(0x88)](_0x42a34e(0xae),_0x2a5f69);}[_0x37e642(0x8d)](_0x43dc88){const _0x3c098f=_0x37e642;this[_0x3c098f(0x88)](_0x3c098f(0xae),this[_0x3c098f(0xae)]+_0x43dc88);}[_0x37e642(0xba)](){const _0xe3a81c=_0x37e642;this[_0xe3a81c(0xa1)]||(this[_0xe3a81c(0x88)](_0xe3a81c(0xa1),!0x0),this[_0xe3a81c(0xb8)]());}[_0x37e642(0xb9)](){const _0x37070f=_0x37e642;this[_0x37070f(0xb2)]();}[_0x37e642(0x7b)](_0x14bb45,_0x4b5609){const _0x1c67f3=_0x37e642;this[_0x1c67f3(0x96)][_0x14bb45][_0x1c67f3(0xb1)]=_0x4b5609,this[_0x1c67f3(0x81)](_0x1c67f3(0xa9),{'reply':this,'index':_0x14bb45,'state':_0x4b5609});}[_0x37e642(0xb8)](){const _0x86168b=_0x37e642;if(_0x86168b(0x91)===this[_0x86168b(0x87)]){this[_0x86168b(0xaf)]=this[_0x86168b(0x9a)][_0x86168b(0xa4)](this[_0x86168b(0xae)]);const _0x25886b=this[_0x86168b(0x96)];this[_0x86168b(0x8c)]();const _0x11afa9=this[_0x86168b(0xa3)](_0x25886b,this[_0x86168b(0x96)]);(_0x11afa9[_0x86168b(0x99)]||this[_0x86168b(0xa1)])&&this[_0x86168b(0x81)](_0x86168b(0xb4),this,_0x11afa9);}else this[_0x86168b(0xaf)]=this[_0x86168b(0x9a)][_0x86168b(0x9b)](this[_0x86168b(0xae)]),this[_0x86168b(0x81)](_0x86168b(0xb4),this);}[_0x37e642(0xa3)](_0x54e873,_0x26a14c){const _0x140a22=_0x37e642,_0x24a573=[];for(const _0x2dbe7d of _0x26a14c){const _0x4a4094=_0x54e873[_0x2dbe7d[_0x140a22(0xab)]];_0x4a4094?_0x4a4094[_0x140a22(0x8a)][_0x140a22(0x99)]!==_0x2dbe7d[_0x140a22(0x8a)][_0x140a22(0x99)]?_0x24a573[_0x140a22(0x80)](_0x2dbe7d):_0x4a4094[_0x140a22(0x8a)][_0x140a22(0xa0)]((_0x44b0cd,_0x3f318c)=>{const _0x4da7fb=_0x140a22,_0xfe7389=_0x2dbe7d[_0x4da7fb(0x8a)][_0x3f318c];_0x44b0cd['id']!==_0xfe7389['id']&&_0x24a573[_0x4da7fb(0x80)](_0x2dbe7d);}):_0x24a573[_0x140a22(0x80)](_0x2dbe7d);}return _0x24a573;}[_0x37e642(0x8c)](){const _0x5177c6=_0x37e642,_0x19fca1=new _0x8776e1('p',{},[new _0x8776e1(_0x5177c6(0x93),{'style':_0x5177c6(0xc0)},[new _0x567df1(_0x5177c6(0x8b))])]),_0x1b7c41=this[_0x5177c6(0x85)][_0x5177c6(0x86)](this[_0x5177c6(0xaf)],this[_0x5177c6(0x7f)][_0x5177c6(0x97)](!0x0),{'markUnstableElements':!this[_0x5177c6(0xa1)],'replaceRemovedWith':_0x19fca1,'cutAfterLastChange':!this[_0x5177c6(0xa1)]});if(!_0x1b7c41[_0x5177c6(0xa7)][_0x5177c6(0x99)]&&!this[_0x5177c6(0xa1)])return;this[_0x5177c6(0xa6)]=_0x1b7c41[_0x5177c6(0xaf)];let _0x26375e=[];if(_0x3ebff6(_0x1ab83c=>{const _0x55e641=_0x5177c6,_0x12bb51=_0x4bcbf(_0x1ab83c,_0x55e641(0xa2));if(!_0x12bb51||!_0x5309e2(_0x12bb51))return!0x1;const _0x2fcfee=[_0x1ab83c,..._0x4eb038(_0x1ab83c)]['at'](-0x2);if(_0x1ab83c!=_0x2fcfee){const _0x53c3a0=_0x4bcbf(_0x2fcfee,_0x55e641(0xa2));_0x5309e2(_0x53c3a0)||(_0x26375e[_0x55e641(0x80)]({'node':_0x2fcfee,'id':_0x53c3a0,'type':_0x55e641(0xac)}),_0x1b7c41[_0x55e641(0xa7)][_0x55e641(0x80)](_0x53c3a0));}else _0x1b7c41[_0x55e641(0xa7)][_0x55e641(0x7a)](_0x12bb51)?_0x26375e[_0x55e641(0x80)]({'node':_0x1ab83c,'type':_0x55e641(0xac),'id':_0x12bb51}):_0x1b7c41[_0x55e641(0x98)][_0x55e641(0x7a)](_0x12bb51)?_0x26375e[_0x55e641(0x80)]({'node':_0x1ab83c,'type':_0x55e641(0x90),'id':_0x12bb51,'anchorId':_0x4bcbf(_0x1ab83c[_0x55e641(0xc1)],_0x55e641(0xa2))}):_0x26375e[_0x55e641(0x80)]({'node':_0x1ab83c,'type':_0x55e641(0x95),'id':_0x12bb51});return!0x0;},this[_0x5177c6(0xa6)]),_0x26375e=_0x26375e[_0x5177c6(0xbf)](({node:_0x3d820a})=>[..._0x4eb038(_0x3d820a),_0x3d820a][_0x5177c6(0xa5)](_0x1de238=>!_0x4bcbf(_0x1de238,_0x5177c6(0xa8)))),0x0==_0x26375e[_0x5177c6(0x99)])return;const _0x31b480=[[_0x26375e[0x0]]];for(let _0x55705b=0x1;_0x55705b<_0x26375e[_0x5177c6(0x99)];_0x55705b++){const _0x9f5372=_0x31b480[_0x31b480[_0x5177c6(0x99)]-0x1],_0x40f060=_0x9f5372[_0x9f5372[_0x5177c6(0x99)]-0x1];_0x26375e[_0x55705b][_0x5177c6(0xb3)][_0x5177c6(0xc1)]==_0x40f060[_0x5177c6(0xb3)]&&_0x5177c6(0xac)!=_0x26375e[_0x55705b][_0x5177c6(0x87)]&&_0x5177c6(0xac)!=_0x40f060[_0x5177c6(0x87)]?_0x9f5372[_0x5177c6(0x80)](_0x26375e[_0x55705b]):_0x31b480[_0x5177c6(0x80)]([_0x26375e[_0x55705b]]);}for(const _0x2d4f7e of _0x31b480){const _0x420541=_0x2d4f7e[0x0],_0x4ad95e=_0x2d4f7e[_0x2d4f7e[_0x5177c6(0x99)]-0x1],_0x25c4b4=_0x396269(_0x420541[_0x5177c6(0xb3)][_0x5177c6(0xc1)]);_0x25c4b4&&_0x2d4f7e[_0x5177c6(0xb0)](_0x25c4b4);const _0x579ec=_0x396269(_0x4ad95e[_0x5177c6(0xb3)][_0x5177c6(0xb6)]);_0x579ec&&_0x2d4f7e[_0x5177c6(0x80)](_0x579ec);}function _0x5309e2(_0x1a1242){const _0x292cb8=_0x5177c6;return _0x1b7c41[_0x292cb8(0xa7)][_0x292cb8(0x7a)](_0x1a1242)||_0x1b7c41[_0x292cb8(0x98)][_0x292cb8(0x7a)](_0x1a1242)||_0x1b7c41[_0x292cb8(0x89)][_0x292cb8(0x7a)](_0x1a1242);}function _0x396269(_0x5ed172){const _0x43f010=_0x5177c6;if(_0x5ed172&&_0x4bcbf(_0x5ed172,_0x43f010(0xa2))&&!_0x4bcbf(_0x5ed172,_0x43f010(0xa8))){const _0x2259e2=_0x4bcbf(_0x5ed172,_0x43f010(0xa2));if(!_0x5309e2(_0x2259e2))return{'node':_0x5ed172,'type':_0x43f010(0xbd),'id':_0x2259e2};}return null;}this[_0x5177c6(0x96)]=_0x31b480[_0x5177c6(0x9f)]((_0x29c7f9,_0x28188d)=>({'changes':_0x29c7f9,'state':_0x5177c6(0x92),'index':_0x28188d}));}}function _0x128f(_0x59b433,_0x10841e){const _0x5e9170=_0x5e91();return _0x128f=function(_0x128f66,_0x542be0){_0x128f66=_0x128f66-0x79;let _0x134357=_0x5e9170[_0x128f66];return _0x134357;},_0x128f(_0x59b433,_0x10841e);}export function isValidReplyType(_0x1c58f3){const _0x3bc236=_0x37e642;return Object[_0x3bc236(0xbc)](AI_REPLY_TYPES)[_0x3bc236(0x7a)](_0x1c58f3);}export function isIgnoredReplyType(_0x577e4f){const _0x4475e2=_0x37e642;return AI_REPLY_TYPES_IGNORED[_0x4475e2(0x7a)](_0x577e4f);}export function isReplyTitleType(_0x387ad1){return _0x387ad1===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x190d53){const _0x3de195=_0x37e642;return _0x3de195(0x7c)===_0x190d53;}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2086(_0x5d5e94,_0x965e89){const _0x51e34f=_0x51e3();return _0x2086=function(_0x208606,_0x1ebbe5){_0x208606=_0x208606-0x1b0;let _0x46b855=_0x51e34f[_0x208606];return _0x46b855;},_0x2086(_0x5d5e94,_0x965e89);}const _0x345c57=_0x2086;(function(_0xa5955,_0x4cff6f){const _0x52937d=_0x2086,_0x32a6f4=_0xa5955();while(!![]){try{const _0x36edd2=-parseInt(_0x52937d(0x1cd))/0x1*(parseInt(_0x52937d(0x1b0))/0x2)+-parseInt(_0x52937d(0x1e2))/0x3+-parseInt(_0x52937d(0x1e1))/0x4*(-parseInt(_0x52937d(0x1b6))/0x5)+-parseInt(_0x52937d(0x1d9))/0x6*(-parseInt(_0x52937d(0x1c7))/0x7)+-parseInt(_0x52937d(0x1e6))/0x8+parseInt(_0x52937d(0x1c1))/0x9*(-parseInt(_0x52937d(0x1b1))/0xa)+-parseInt(_0x52937d(0x1e3))/0xb*(-parseInt(_0x52937d(0x1f8))/0xc);if(_0x36edd2===_0x4cff6f)break;else _0x32a6f4['push'](_0x32a6f4['shift']());}catch(_0x3e9569){_0x32a6f4['push'](_0x32a6f4['shift']());}}}(_0x51e3,0x626ae));import{ObservableMixin as _0x17ed04,uid as _0x46ab75}from'ckeditor5/src/utils.js';function _0x51e3(){const _0x26be4f=['from','_isExistingContentComment','_markUnstableElements','13645vhVxEH','afterbegin','trim','nodeType','_existingDataIds','_markLastTagElementUnstable','_getNodeDataId','data-removed','_storeDeletedElementIds','markUnstableElements','true','_isNewNode','6zviGHK','includes','_replaceNode','_generateUid','lastTouchedId','reverse','_insertNodes','_markWrappedElements','357316qXeZjY','2068926Kafrdz','11HAkEag','filter','previousSibling','5224328wRCGdO','_isExistingNode','_touchedNodesState','_findFallbackReferenceNode','_findPrevElementWithDataId','forEach','_isDelNode','afterend','splice','replaceRemovedWith','parentNode','beforebegin','data-id','newIds','nextSibling','merge','data-unstable','childNodes','22856436jCUsZK','74JiHMbL','4200PNZNSV','_hasWrappedParent','match','modifiedIds','invalidIds','10wqvYhD','push','has','lastChild','map','length','data-wrapped-id','markUnstableElementsDepth','slice','indexOf','_findReferenceNode','9297FZLEBX','_findNextElementWithDataId','cutAfterLastChange','_getUid','new-element','_removeSpecialComments','4208155FDfuzo','removedIds','cloneNode'];_0x51e3=function(){return _0x26be4f;};return _0x51e3();}import{findAllByAttribute as _0x491319,findByAttribute as _0x271163,getAttribute as _0x46d82b,isComment as _0x3c3d12,isTag as _0x5ac264,insertElement as _0x1c64b1,moveElement as _0x533b44,removeElement as _0x5bc74b,replaceElement as _0x8d10c0,serialize as _0x389e77,setAttribute as _0x35720a,clone as _0x33d140,findAllComments as _0x57bfd6,getParents as _0x4f0223,getNodeNestingLevel as _0x1be19c,areNodesSame as _0x12569f,removeElementsAfter as _0x1f450b}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x17ed04(){[_0x345c57(0x1dc)];[_0x345c57(0x1e8)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x345c57(0x1d1)]=new Set();constructor(_0x44ef36){const _0x23df39=_0x345c57;super(),this[_0x23df39(0x1dc)]=_0x44ef36||_0x46ab75;}[_0x345c57(0x1f5)](_0x259c92,_0x27f714,_0x5c1e38){const _0x53a3a9=_0x345c57,_0x435327=_0x33d140(_0x259c92);if(0x0===_0x27f714[_0x53a3a9(0x1f7)][_0x53a3a9(0x1bb)]){const _0x5d0550=[];return _0x491319(_0x53a3a9(0x1f2),_0x53a3a9(0x1c5),_0x435327)[_0x53a3a9(0x1eb)](_0x39ce9d=>{const _0x302c1b=_0x53a3a9,_0x4fe25e=this[_0x302c1b(0x1dc)]();_0x35720a(_0x39ce9d,_0x302c1b(0x1f2),_0x4fe25e),_0x5d0550[_0x302c1b(0x1b7)](_0x4fe25e);}),this[_0x53a3a9(0x1c6)](_0x435327),{'parsedContent':_0x435327,'newNodeIds':_0x5d0550,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x5c1e38&&_0x5c1e38[_0x53a3a9(0x1d6)]&&this[_0x53a3a9(0x1d2)](_0x435327),this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1f3)]=[],this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1b4)]=[],this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1c8)]=[],this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1b5)]=[],this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1dd)]=null,this[_0x53a3a9(0x1d1)]=new Set(_0x491319(_0x53a3a9(0x1f2),null,_0x27f714)[_0x53a3a9(0x1ba)](_0x5a68e5=>_0x46d82b(_0x5a68e5,_0x53a3a9(0x1f2)))[_0x53a3a9(0x1e4)](_0x20f585=>!!_0x20f585));let _0x8f5c6c=-0x1,_0x2dc4da=!0x1;const _0x13df19=_0x435327[_0x53a3a9(0x1f7)],_0x355c77=Array[_0x53a3a9(0x1ca)](_0x13df19)[_0x53a3a9(0x1e4)](_0x484c63=>!(0x3===_0x484c63[_0x53a3a9(0x1d0)]&&''===_0x389e77(_0x484c63)[_0x53a3a9(0x1cf)]())),_0x53301d=_0x355c77[_0x53a3a9(0x1bb)];for(let _0x29f38d=0x0;_0x29f38d<_0x53301d;_0x29f38d++){const _0x323e0c=_0x355c77[_0x29f38d],_0x301fad=_0x355c77[_0x29f38d+0x1];if(this[_0x53a3a9(0x1d8)](_0x323e0c)){if(-0x1===_0x8f5c6c&&(_0x8f5c6c=_0x29f38d),this[_0x53a3a9(0x1e0)](_0x323e0c),!this[_0x53a3a9(0x1d8)](_0x301fad)){const [_0x40269a,_0x5a7a8f]=this[_0x53a3a9(0x1c0)](_0x323e0c,_0x2dc4da,_0x27f714);if(_0x40269a){const _0x298f1a=Array[_0x53a3a9(0x1ca)](_0x355c77)[_0x53a3a9(0x1be)](_0x8f5c6c,_0x29f38d+0x1);this[_0x53a3a9(0x1df)](_0x40269a,_0x298f1a,_0x5a7a8f),_0x8f5c6c=-0x1;}}}else{if(this[_0x53a3a9(0x1cb)](_0x323e0c))_0x2dc4da=!0x0;else{if(this[_0x53a3a9(0x1e7)](_0x323e0c)){const _0x1e82b3=_0x46d82b(_0x323e0c,_0x53a3a9(0x1f2));if(_0x1e82b3&&this[_0x53a3a9(0x1d1)][_0x53a3a9(0x1b8)](_0x1e82b3)){const _0x1cc450=_0x271163(_0x53a3a9(0x1f2),_0x1e82b3,_0x27f714);this[_0x53a3a9(0x1db)](_0x1cc450,_0x323e0c);}if(this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1c8)][_0x53a3a9(0x1da)](_0x1e82b3)){const _0x2bd341=this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1c8)][_0x53a3a9(0x1bf)](_0x1e82b3);this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1c8)][_0x53a3a9(0x1ee)](_0x2bd341,0x1);}}else{if(this[_0x53a3a9(0x1ec)](_0x323e0c)){const _0x4b651f=_0x46d82b(_0x323e0c,_0x53a3a9(0x1f2));this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1b4)][_0x53a3a9(0x1da)](_0x4b651f)||this[_0x53a3a9(0x1d5)](_0x323e0c);}}}}}for(const _0x2c39ca of this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1c8)]){const _0x2a9093=_0x271163(_0x53a3a9(0x1f2),_0x2c39ca,_0x27f714);if(_0x2a9093){if(_0x5c1e38&&_0x5c1e38[_0x53a3a9(0x1ef)]){this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1dd)]=_0x2c39ca;const _0x2b3d07=_0x5c1e38[_0x53a3a9(0x1ef)][_0x53a3a9(0x1c9)](!0x0);_0x35720a(_0x2b3d07,_0x53a3a9(0x1f2),_0x2c39ca),_0x35720a(_0x2b3d07,_0x53a3a9(0x1d4),_0x53a3a9(0x1d7)),_0x8d10c0(_0x2a9093,_0x2b3d07);}else _0x5bc74b(_0x2a9093);}}if(_0x491319(_0x53a3a9(0x1bc),null,_0x27f714)[_0x53a3a9(0x1eb)](_0x50478a=>{const _0x18d4c0=_0x53a3a9,_0x3f6291=_0x46d82b(_0x50478a,_0x18d4c0(0x1bc)),_0x2b4bf=_0x271163(_0x18d4c0(0x1f2),_0x3f6291,_0x27f714);_0x2b4bf&&_0x533b44(_0x2b4bf,_0x50478a);}),_0x491319(_0x53a3a9(0x1f2),_0x53a3a9(0x1c5),_0x27f714)[_0x53a3a9(0x1eb)](_0x1d0115=>{const _0x3b15ed=_0x53a3a9,_0x431d7d=this[_0x3b15ed(0x1c4)](_0x1d0115);_0x35720a(_0x1d0115,_0x3b15ed(0x1f2),_0x431d7d),this[_0x3b15ed(0x1e8)][_0x3b15ed(0x1f3)][_0x3b15ed(0x1b7)](_0x431d7d);}),this[_0x53a3a9(0x1c6)](_0x27f714),_0x5c1e38&&_0x5c1e38[_0x53a3a9(0x1d6)]&&this[_0x53a3a9(0x1cc)](_0x27f714,_0x5c1e38[_0x53a3a9(0x1bd)]||0x0),_0x5c1e38&&_0x5c1e38[_0x53a3a9(0x1c3)]&&this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1dd)]){let _0x3764e5=_0x271163(_0x53a3a9(0x1f2),this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1dd)],_0x27f714);for(;_0x3764e5;)_0x1f450b(_0x3764e5),_0x3764e5=_0x3764e5[_0x53a3a9(0x1f0)];}return{'parsedContent':_0x27f714,'newNodeIds':this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1f3)],'modifiedNodeIds':this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1b4)],'removedNodeIds':this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1c8)]};}[_0x345c57(0x1df)](_0x37c5b4,_0x2ae52a,_0x45c10e){const _0x480042=_0x345c57;for(const _0x7e3184 of _0x2ae52a){const _0x3f4f3a=this[_0x480042(0x1c4)](_0x7e3184);_0x35720a(_0x7e3184,_0x480042(0x1f2),_0x3f4f3a),this[_0x480042(0x1e8)][_0x480042(0x1f3)][_0x480042(0x1b7)](_0x3f4f3a),this[_0x480042(0x1e8)][_0x480042(0x1dd)]=_0x3f4f3a;}const _0x590331=_0x480042(0x1ce)===_0x45c10e||_0x480042(0x1ed)===_0x45c10e?_0x2ae52a[_0x480042(0x1de)]():_0x2ae52a;for(const _0x964888 of _0x590331)_0x1c64b1(_0x37c5b4,_0x964888,_0x45c10e);}[_0x345c57(0x1db)](_0xaaffe0,_0x16ed42){const _0x1c3505=_0x345c57;if(!_0xaaffe0)return;if(_0x12569f(_0xaaffe0,_0x16ed42))return;const _0x9e7d86=this[_0x1c3505(0x1c4)](_0xaaffe0);_0x35720a(_0x16ed42,_0x1c3505(0x1f2),_0x9e7d86),this[_0x1c3505(0x1e8)][_0x1c3505(0x1b4)][_0x1c3505(0x1b7)](_0x9e7d86),this[_0x1c3505(0x1e8)][_0x1c3505(0x1dd)]=_0x9e7d86,_0x8d10c0(_0xaaffe0,_0x16ed42[_0x1c3505(0x1c9)](!0x0));}[_0x345c57(0x1c0)](_0x46a1d3,_0x39ed9a,_0x391d78){const _0x234af4=_0x345c57,_0x53650e=this[_0x234af4(0x1ea)](_0x46a1d3,!0x1);if(_0x53650e){const _0x19da99=this[_0x234af4(0x1d3)](_0x53650e),_0x2ec141=_0x271163(_0x234af4(0x1f2),_0x19da99,_0x391d78);if(_0x2ec141)return[_0x2ec141,_0x234af4(0x1ed)];this[_0x234af4(0x1e8)][_0x234af4(0x1b5)][_0x234af4(0x1b7)](_0x19da99);}const _0x4938b8=this[_0x234af4(0x1c2)](_0x46a1d3,!0x1);if(_0x4938b8){const _0x34a508=this[_0x234af4(0x1d3)](_0x4938b8),_0x373390=_0x271163(_0x234af4(0x1f2),_0x34a508,_0x391d78);if(_0x373390)return[_0x373390,_0x234af4(0x1f1)];this[_0x234af4(0x1e8)][_0x234af4(0x1b5)][_0x234af4(0x1b7)](_0x34a508);}return _0x39ed9a?_0x46a1d3[_0x234af4(0x1f4)]?this[_0x234af4(0x1e9)](_0x46a1d3,_0x391d78):[_0x391d78[_0x234af4(0x1f7)][_0x391d78[_0x234af4(0x1f7)][_0x234af4(0x1bb)]-0x1],_0x234af4(0x1ed)]:[_0x391d78[_0x234af4(0x1f7)][0x0],_0x234af4(0x1f1)];}[_0x345c57(0x1e9)](_0x219aa2,_0x57b9fe){const _0x3ac9a6=_0x345c57,_0x2fe98a=[],_0x1f20e4=this[_0x3ac9a6(0x1ea)](_0x219aa2,!0x0);if(_0x1f20e4){const _0x5cbbf4=this[_0x3ac9a6(0x1d3)](_0x1f20e4),_0x3f46a2=_0x271163(_0x3ac9a6(0x1f2),_0x5cbbf4,_0x57b9fe);_0x3f46a2&&_0x2fe98a[_0x3ac9a6(0x1b7)]([_0x3f46a2,_0x3ac9a6(0x1ed)]);}const _0x207a8a=this[_0x3ac9a6(0x1c2)](_0x219aa2,!0x0);if(_0x207a8a){const _0x3e2072=this[_0x3ac9a6(0x1d3)](_0x207a8a),_0x48d233=_0x271163(_0x3ac9a6(0x1f2),_0x3e2072,_0x57b9fe);_0x48d233&&_0x2fe98a[_0x3ac9a6(0x1b7)]([_0x48d233,_0x3ac9a6(0x1f1)]);}if(_0x2fe98a[_0x3ac9a6(0x1bb)]>0x1)return _0x1be19c(_0x2fe98a[0x0][0x0])<=_0x1be19c(_0x2fe98a[0x1][0x0])?_0x2fe98a[0x0]:_0x2fe98a[0x1];return 0x1===_0x2fe98a[_0x3ac9a6(0x1bb)]?_0x2fe98a[0x0]:[_0x57b9fe[_0x3ac9a6(0x1b9)],_0x3ac9a6(0x1ed)];}[_0x345c57(0x1c2)](_0x33eebd,_0x17441e){const _0x6ab41e=_0x345c57;let _0x2f3049=_0x33eebd[_0x6ab41e(0x1f4)],_0x83203b=null,_0x317d96=!0x1;for(;_0x2f3049;){if(_0x3c3d12(_0x2f3049)){if(this[_0x6ab41e(0x1ec)](_0x2f3049)&&(_0x83203b=_0x2f3049),this[_0x6ab41e(0x1cb)](_0x2f3049)&&_0x17441e&&!_0x317d96){_0x317d96=!0x0,_0x2f3049=_0x2f3049[_0x6ab41e(0x1f4)];continue;}break;}const _0x3b8288=_0x46d82b(_0x2f3049,_0x6ab41e(0x1f2));if(_0x3b8288&&_0x6ab41e(0x1c5)!==_0x3b8288&&this[_0x6ab41e(0x1d1)][_0x6ab41e(0x1b8)](_0x3b8288)){_0x83203b=_0x2f3049;break;}_0x2f3049=_0x2f3049[_0x6ab41e(0x1f4)];}return _0x83203b;}[_0x345c57(0x1ea)](_0x5740c7,_0x4e0014){const _0x2448c1=_0x345c57;let _0x562518=_0x5740c7[_0x2448c1(0x1e5)],_0x9cfb9f=null,_0x37fef8=!0x1;for(;_0x562518;){if(_0x3c3d12(_0x562518)){if(this[_0x2448c1(0x1ec)](_0x562518)&&(_0x9cfb9f=_0x562518),this[_0x2448c1(0x1cb)](_0x562518)&&_0x4e0014&&!_0x37fef8){_0x37fef8=!0x0,_0x562518=_0x562518[_0x2448c1(0x1e5)];continue;}break;}const _0x1fc6ac=_0x46d82b(_0x562518,_0x2448c1(0x1f2));if(_0x1fc6ac&&_0x2448c1(0x1c5)!==_0x1fc6ac&&this[_0x2448c1(0x1d1)][_0x2448c1(0x1b8)](_0x1fc6ac)){_0x9cfb9f=_0x562518;break;}_0x562518=_0x562518[_0x2448c1(0x1e5)];}return _0x9cfb9f;}[_0x345c57(0x1e0)](_0x202724){const _0x19fa07=_0x345c57;_0x5ac264(_0x202724)&&_0x491319(_0x19fa07(0x1f2),null,_0x202724)[_0x19fa07(0x1eb)](_0x25c6f6=>{const _0x224c87=_0x19fa07;if(this[_0x224c87(0x1e7)](_0x25c6f6)&&!this[_0x224c87(0x1b2)](_0x25c6f6)){const _0x586354=_0x46d82b(_0x25c6f6,_0x224c87(0x1f2));_0x35720a(_0x25c6f6,_0x224c87(0x1bc),_0x586354),_0x35720a(_0x25c6f6,_0x224c87(0x1f2),null);}});}[_0x345c57(0x1d3)](_0x1161b8){const _0x415cb3=_0x345c57;if(!_0x1161b8)return null;if(_0x5ac264(_0x1161b8))return _0x46d82b(_0x1161b8,_0x415cb3(0x1f2));if(_0x3c3d12(_0x1161b8)){const _0x1db7ff=_0x389e77(_0x1161b8)[_0x415cb3(0x1b3)](/removed[\s*-]data-id="([^"]+)"/);if(_0x1db7ff&&_0x1db7ff[0x1])return _0x1db7ff[0x1];}return null;}[_0x345c57(0x1d5)](_0x572ec6){const _0x7d2d02=_0x345c57;if(_0x3c3d12(_0x572ec6)){const _0x33f286=_0x389e77(_0x572ec6)[_0x7d2d02(0x1b3)](/removed[\s*-]data-id="([^"]+)"/);_0x33f286&&_0x33f286[0x1]&&this[_0x7d2d02(0x1e8)][_0x7d2d02(0x1c8)][_0x7d2d02(0x1b7)](_0x33f286[0x1]);}}[_0x345c57(0x1c4)](_0x4b570a){const _0x5d376f=_0x345c57;return this[_0x5d376f(0x1e7)](_0x4b570a)?_0x46d82b(_0x4b570a,_0x5d376f(0x1f2)):this[_0x5d376f(0x1dc)]();}[_0x345c57(0x1c6)](_0x435d31){const _0x30465b=_0x345c57;_0x57bfd6(_0x435d31)[_0x30465b(0x1e4)](_0x2be5fc=>this[_0x30465b(0x1ec)](_0x2be5fc)||this[_0x30465b(0x1cb)](_0x2be5fc))[_0x30465b(0x1eb)](_0x52cf02=>{_0x5bc74b(_0x52cf02);});}[_0x345c57(0x1d2)](_0x501d84){const _0x508940=_0x345c57,_0x3ce59a=_0x501d84[_0x508940(0x1f7)],_0x48ea22=_0x3ce59a[_0x3ce59a[_0x508940(0x1bb)]-0x1];_0x48ea22&&_0x5ac264(_0x48ea22)&&_0x35720a(_0x48ea22,_0x508940(0x1f6),_0x508940(0x1d7));}[_0x345c57(0x1cc)](_0x361285,_0x3bf038){const _0x39375a=_0x345c57,_0x43470c=_0x271163(_0x39375a(0x1f6),_0x39375a(0x1d7),_0x361285);if(!_0x43470c)return;const _0x3f2691=_0x4f0223(_0x43470c)[_0x39375a(0x1be)](0x0,-0x1),_0x51c5bc=_0x3f2691[_0x39375a(0x1bb)];let _0x2c8eee=_0x43470c;if(_0x51c5bc>_0x3bf038){let _0x15608e=_0x51c5bc,_0x18b00d=null;for(;_0x15608e>_0x3bf038&&_0x15608e>=0x0;)_0x15608e--,_0x18b00d=_0x3f2691[_0x15608e];_0x18b00d&&(_0x2c8eee=_0x18b00d,_0x35720a(_0x43470c,_0x39375a(0x1f6),null),_0x35720a(_0x18b00d,_0x39375a(0x1f6),_0x39375a(0x1d7)));}else{if(_0x51c5bc<_0x3bf038){let _0x6e74ab=_0x51c5bc,_0x4f07ea=_0x43470c;for(;_0x6e74ab<_0x3bf038;){const _0x5e3bc8=_0x4f07ea[_0x39375a(0x1f7)][_0x39375a(0x1e4)](_0x1be6be=>_0x5ac264(_0x1be6be));if(0x0===_0x5e3bc8[_0x39375a(0x1bb)])break;_0x6e74ab++,_0x4f07ea=_0x5e3bc8[_0x5e3bc8[_0x39375a(0x1bb)]-0x1];}_0x4f07ea&&(_0x2c8eee=_0x4f07ea,_0x35720a(_0x43470c,_0x39375a(0x1f6),null),_0x35720a(_0x4f07ea,_0x39375a(0x1f6),_0x39375a(0x1d7)));}}let _0x3445f6=_0x2c8eee;for(;_0x3445f6;){for(;_0x3445f6[_0x39375a(0x1f4)];)_0x3445f6=_0x3445f6[_0x39375a(0x1f4)],_0x5ac264(_0x3445f6)&&_0x35720a(_0x3445f6,_0x39375a(0x1f6),_0x39375a(0x1d7));_0x3445f6=_0x3445f6[_0x39375a(0x1f0)];}}[_0x345c57(0x1d8)](_0x3ebd97){const _0xa87798=_0x345c57;return Boolean(_0xa87798(0x1c5)===_0x46d82b(_0x3ebd97,_0xa87798(0x1f2)));}[_0x345c57(0x1e7)](_0x214960){const _0x27e44c=_0x345c57;return Boolean((_0x46d82b(_0x214960,_0x27e44c(0x1f2))||'')[_0x27e44c(0x1bb)]>0x0&&_0x27e44c(0x1c5)!==_0x46d82b(_0x214960,_0x27e44c(0x1f2)));}[_0x345c57(0x1ec)](_0x4dbd4f){const _0x1216dc=_0x345c57;return!!_0x4dbd4f&&Boolean(_0x3c3d12(_0x4dbd4f)&&_0x389e77(_0x4dbd4f)[_0x1216dc(0x1b3)](/removed[\s*-]data-id="[^"]+"/));}[_0x345c57(0x1b2)](_0x33de80){const _0x5754d0=_0x345c57;let _0x46dfad=_0x33de80[_0x5754d0(0x1f0)];for(;_0x46dfad;){if(_0x46d82b(_0x46dfad,_0x5754d0(0x1bc)))return!0x0;_0x46dfad=_0x46dfad[_0x5754d0(0x1f0)];}return!0x1;}[_0x345c57(0x1cb)](_0x20c57c){const _0x54eca8=_0x345c57;return Boolean(_0x3c3d12(_0x20c57c)&&_0x389e77(_0x20c57c)[_0x54eca8(0x1b3)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ const _0x28588a=_0x6846;function _0x6846(_0x40dd25,_0x28587e){const _0x2e8566=_0x2e85();return _0x6846=function(_0x68460d,_0x2ac005){_0x68460d=_0x68460d-0x8f;let _0x6a698d=_0x2e8566[_0x68460d];return _0x6a698d;},_0x6846(_0x40dd25,_0x28587e);}function _0x2e85(){const _0x1780ad=['merge','_removeSpecialComments','new-element','length','childNodes','modifiedIds','from','nodeType','_markUnstableElements','parentNode','_isNewNode','data-id','_findReferenceNode','_isExistingContentComment','1571072TRrpoy','_getNodeDataId','includes','_touchedNodesState','_isExistingNode','markUnstableElementsDepth','filter','map','slice','newIds','_insertNodes','_findFallbackReferenceNode','splice','_existingDataIds','lastTouchedId','beforebegin','_markWrappedElements','nextSibling','1349790ZqJfhu','push','lastChild','36762wROufu','true','_findPrevElementWithDataId','data-unstable','invalidIds','afterbegin','has','2379546tXyTYg','22ibXqaU','_replaceNode','forEach','_getUid','cloneNode','trim','replaceRemovedWith','afterend','3jzkMUz','cutAfterLastChange','_storeDeletedElementIds','_isDelNode','533404uCSDEY','_findNextElementWithDataId','612381iATYKS','_generateUid','markUnstableElements','_hasWrappedParent','reverse','removedIds','_markLastTagElementUnstable','indexOf','data-wrapped-id','previousSibling','data-removed','match','738990LoRcHo'];_0x2e85=function(){return _0x1780ad;};return _0x2e85();}(function(_0x1bd69a,_0x2c03a8){const _0x497dee=_0x6846,_0x27e519=_0x1bd69a();while(!![]){try{const _0x2b3deb=-parseInt(_0x497dee(0xa2))/0x1*(-parseInt(_0x497dee(0x9a))/0x2)+-parseInt(_0x497dee(0xaa))/0x3*(-parseInt(_0x497dee(0xae))/0x4)+-parseInt(_0x497dee(0x97))/0x5+-parseInt(_0x497dee(0xa1))/0x6+parseInt(_0x497dee(0xb0))/0x7+parseInt(_0x497dee(0xcb))/0x8+parseInt(_0x497dee(0xbc))/0x9;if(_0x2b3deb===_0x2c03a8)break;else _0x27e519['push'](_0x27e519['shift']());}catch(_0xd5c8c7){_0x27e519['push'](_0x27e519['shift']());}}}(_0x2e85,0x39e69));import{ObservableMixin as _0x1d76dd,uid as _0x7ee83e}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x29ac94,findByAttribute as _0x3e7470,getAttribute as _0x9e3671,isComment as _0x3ccb14,isTag as _0x4f36e4,insertElement as _0x143ef,moveElement as _0x3ae512,removeElement as _0x5e6b8f,replaceElement as _0x6fa3e7,serialize as _0x1724e5,setAttribute as _0x4dac25,clone as _0x57165f,findAllComments as _0x5253fc,getParents as _0x4116c6,getNodeNestingLevel as _0x18aade,areNodesSame as _0x55327c,removeElementsAfter as _0x4acbe6}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x1d76dd(){[_0x28588a(0xb1)];[_0x28588a(0xce)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x28588a(0x92)]=new Set();constructor(_0x46e724){const _0x236e00=_0x28588a;super(),this[_0x236e00(0xb1)]=_0x46e724||_0x7ee83e;}[_0x28588a(0xbd)](_0x2d2281,_0x53f9b9,_0x2121c9){const _0x3f97a7=_0x28588a,_0x4aec8a=_0x57165f(_0x2d2281);if(0x0===_0x53f9b9[_0x3f97a7(0xc1)][_0x3f97a7(0xc0)]){const _0x104bf4=[];return _0x29ac94(_0x3f97a7(0xc8),_0x3f97a7(0xbf),_0x4aec8a)[_0x3f97a7(0xa4)](_0x2e8c0b=>{const _0x5c762b=_0x3f97a7,_0x3df82d=this[_0x5c762b(0xb1)]();_0x4dac25(_0x2e8c0b,_0x5c762b(0xc8),_0x3df82d),_0x104bf4[_0x5c762b(0x98)](_0x3df82d);}),this[_0x3f97a7(0xbe)](_0x4aec8a),{'parsedContent':_0x4aec8a,'newNodeIds':_0x104bf4,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x2121c9&&_0x2121c9[_0x3f97a7(0xb2)]&&this[_0x3f97a7(0xb6)](_0x4aec8a),this[_0x3f97a7(0xce)][_0x3f97a7(0xd4)]=[],this[_0x3f97a7(0xce)][_0x3f97a7(0xc2)]=[],this[_0x3f97a7(0xce)][_0x3f97a7(0xb5)]=[],this[_0x3f97a7(0xce)][_0x3f97a7(0x9e)]=[],this[_0x3f97a7(0xce)][_0x3f97a7(0x93)]=null,this[_0x3f97a7(0x92)]=new Set(_0x29ac94(_0x3f97a7(0xc8),null,_0x53f9b9)[_0x3f97a7(0xd2)](_0x24c884=>_0x9e3671(_0x24c884,_0x3f97a7(0xc8)))[_0x3f97a7(0xd1)](_0x5072d7=>!!_0x5072d7));let _0xd6de27=-0x1,_0x28df9e=!0x1;const _0xf91dc=_0x4aec8a[_0x3f97a7(0xc1)],_0x77be56=Array[_0x3f97a7(0xc3)](_0xf91dc)[_0x3f97a7(0xd1)](_0x22c3d3=>!(0x3===_0x22c3d3[_0x3f97a7(0xc4)]&&''===_0x1724e5(_0x22c3d3)[_0x3f97a7(0xa7)]())),_0x334e9f=_0x77be56[_0x3f97a7(0xc0)];for(let _0x272fb5=0x0;_0x272fb5<_0x334e9f;_0x272fb5++){const _0x165c4e=_0x77be56[_0x272fb5],_0x27745d=_0x77be56[_0x272fb5+0x1];if(this[_0x3f97a7(0xc7)](_0x165c4e)){if(-0x1===_0xd6de27&&(_0xd6de27=_0x272fb5),this[_0x3f97a7(0x95)](_0x165c4e),!this[_0x3f97a7(0xc7)](_0x27745d)){const [_0x3181fe,_0x37b91b]=this[_0x3f97a7(0xc9)](_0x165c4e,_0x28df9e,_0x53f9b9);if(_0x3181fe){const _0x26ef76=Array[_0x3f97a7(0xc3)](_0x77be56)[_0x3f97a7(0xd3)](_0xd6de27,_0x272fb5+0x1);this[_0x3f97a7(0x8f)](_0x3181fe,_0x26ef76,_0x37b91b),_0xd6de27=-0x1;}}}else{if(this[_0x3f97a7(0xca)](_0x165c4e))_0x28df9e=!0x0;else{if(this[_0x3f97a7(0xcf)](_0x165c4e)){const _0x3c3751=_0x9e3671(_0x165c4e,_0x3f97a7(0xc8));if(_0x3c3751&&this[_0x3f97a7(0x92)][_0x3f97a7(0xa0)](_0x3c3751)){const _0x2df81e=_0x3e7470(_0x3f97a7(0xc8),_0x3c3751,_0x53f9b9);this[_0x3f97a7(0xa3)](_0x2df81e,_0x165c4e);}if(this[_0x3f97a7(0xce)][_0x3f97a7(0xb5)][_0x3f97a7(0xcd)](_0x3c3751)){const _0x1a9768=this[_0x3f97a7(0xce)][_0x3f97a7(0xb5)][_0x3f97a7(0xb7)](_0x3c3751);this[_0x3f97a7(0xce)][_0x3f97a7(0xb5)][_0x3f97a7(0x91)](_0x1a9768,0x1);}}else{if(this[_0x3f97a7(0xad)](_0x165c4e)){const _0x4aa6e0=_0x9e3671(_0x165c4e,_0x3f97a7(0xc8));this[_0x3f97a7(0xce)][_0x3f97a7(0xc2)][_0x3f97a7(0xcd)](_0x4aa6e0)||this[_0x3f97a7(0xac)](_0x165c4e);}}}}}for(const _0x4a7dce of this[_0x3f97a7(0xce)][_0x3f97a7(0xb5)]){const _0x4c10d4=_0x3e7470(_0x3f97a7(0xc8),_0x4a7dce,_0x53f9b9);if(_0x4c10d4){if(_0x2121c9&&_0x2121c9[_0x3f97a7(0xa8)]){this[_0x3f97a7(0xce)][_0x3f97a7(0x93)]=_0x4a7dce;const _0x4b3071=_0x2121c9[_0x3f97a7(0xa8)][_0x3f97a7(0xa6)](!0x0);_0x4dac25(_0x4b3071,_0x3f97a7(0xc8),_0x4a7dce),_0x4dac25(_0x4b3071,_0x3f97a7(0xba),_0x3f97a7(0x9b)),_0x6fa3e7(_0x4c10d4,_0x4b3071);}else _0x5e6b8f(_0x4c10d4);}}if(_0x29ac94(_0x3f97a7(0xb8),null,_0x53f9b9)[_0x3f97a7(0xa4)](_0x1d39bd=>{const _0x25edf1=_0x3f97a7,_0xe7bdd5=_0x9e3671(_0x1d39bd,_0x25edf1(0xb8)),_0xa34693=_0x3e7470(_0x25edf1(0xc8),_0xe7bdd5,_0x53f9b9);_0xa34693&&_0x3ae512(_0xa34693,_0x1d39bd);}),_0x29ac94(_0x3f97a7(0xc8),_0x3f97a7(0xbf),_0x53f9b9)[_0x3f97a7(0xa4)](_0x5a29b2=>{const _0x5b9a97=_0x3f97a7,_0x1ef2e2=this[_0x5b9a97(0xa5)](_0x5a29b2);_0x4dac25(_0x5a29b2,_0x5b9a97(0xc8),_0x1ef2e2),this[_0x5b9a97(0xce)][_0x5b9a97(0xd4)][_0x5b9a97(0x98)](_0x1ef2e2);}),this[_0x3f97a7(0xbe)](_0x53f9b9),_0x2121c9&&_0x2121c9[_0x3f97a7(0xb2)]&&this[_0x3f97a7(0xc5)](_0x53f9b9,_0x2121c9[_0x3f97a7(0xd0)]||0x0),_0x2121c9&&_0x2121c9[_0x3f97a7(0xab)]&&this[_0x3f97a7(0xce)][_0x3f97a7(0x93)]){let _0x27f9d0=_0x3e7470(_0x3f97a7(0xc8),this[_0x3f97a7(0xce)][_0x3f97a7(0x93)],_0x53f9b9);for(;_0x27f9d0;)_0x4acbe6(_0x27f9d0),_0x27f9d0=_0x27f9d0[_0x3f97a7(0xc6)];}return{'parsedContent':_0x53f9b9,'newNodeIds':this[_0x3f97a7(0xce)][_0x3f97a7(0xd4)],'modifiedNodeIds':this[_0x3f97a7(0xce)][_0x3f97a7(0xc2)],'removedNodeIds':this[_0x3f97a7(0xce)][_0x3f97a7(0xb5)]};}[_0x28588a(0x8f)](_0x48acbf,_0x1c2878,_0x11cf01){const _0x159aef=_0x28588a;for(const _0xeec9b4 of _0x1c2878){const _0x48a185=this[_0x159aef(0xa5)](_0xeec9b4);_0x4dac25(_0xeec9b4,_0x159aef(0xc8),_0x48a185),this[_0x159aef(0xce)][_0x159aef(0xd4)][_0x159aef(0x98)](_0x48a185),this[_0x159aef(0xce)][_0x159aef(0x93)]=_0x48a185;}const _0x3905f5=_0x159aef(0x9f)===_0x11cf01||_0x159aef(0xa9)===_0x11cf01?_0x1c2878[_0x159aef(0xb4)]():_0x1c2878;for(const _0x528b5b of _0x3905f5)_0x143ef(_0x48acbf,_0x528b5b,_0x11cf01);}[_0x28588a(0xa3)](_0x4649d8,_0x598c8d){const _0x4a0636=_0x28588a;if(!_0x4649d8)return;if(_0x55327c(_0x4649d8,_0x598c8d))return;const _0x3a1dae=this[_0x4a0636(0xa5)](_0x4649d8);_0x4dac25(_0x598c8d,_0x4a0636(0xc8),_0x3a1dae),this[_0x4a0636(0xce)][_0x4a0636(0xc2)][_0x4a0636(0x98)](_0x3a1dae),this[_0x4a0636(0xce)][_0x4a0636(0x93)]=_0x3a1dae,_0x6fa3e7(_0x4649d8,_0x598c8d[_0x4a0636(0xa6)](!0x0));}[_0x28588a(0xc9)](_0x164dd2,_0x3a522b,_0x52f91e){const _0x5491f9=_0x28588a,_0x2e3605=this[_0x5491f9(0x9c)](_0x164dd2,!0x1);if(_0x2e3605){const _0x4adca4=this[_0x5491f9(0xcc)](_0x2e3605),_0x20df14=_0x3e7470(_0x5491f9(0xc8),_0x4adca4,_0x52f91e);if(_0x20df14)return[_0x20df14,_0x5491f9(0xa9)];this[_0x5491f9(0xce)][_0x5491f9(0x9e)][_0x5491f9(0x98)](_0x4adca4);}const _0x4465f9=this[_0x5491f9(0xaf)](_0x164dd2,!0x1);if(_0x4465f9){const _0x35332c=this[_0x5491f9(0xcc)](_0x4465f9),_0xf18741=_0x3e7470(_0x5491f9(0xc8),_0x35332c,_0x52f91e);if(_0xf18741)return[_0xf18741,_0x5491f9(0x94)];this[_0x5491f9(0xce)][_0x5491f9(0x9e)][_0x5491f9(0x98)](_0x35332c);}return _0x3a522b?_0x164dd2[_0x5491f9(0x96)]?this[_0x5491f9(0x90)](_0x164dd2,_0x52f91e):[_0x52f91e[_0x5491f9(0xc1)][_0x52f91e[_0x5491f9(0xc1)][_0x5491f9(0xc0)]-0x1],_0x5491f9(0xa9)]:[_0x52f91e[_0x5491f9(0xc1)][0x0],_0x5491f9(0x94)];}[_0x28588a(0x90)](_0x1b113c,_0x8672ce){const _0x40d479=_0x28588a,_0x21010b=[],_0x3715f0=this[_0x40d479(0x9c)](_0x1b113c,!0x0);if(_0x3715f0){const _0x4e4885=this[_0x40d479(0xcc)](_0x3715f0),_0x233319=_0x3e7470(_0x40d479(0xc8),_0x4e4885,_0x8672ce);_0x233319&&_0x21010b[_0x40d479(0x98)]([_0x233319,_0x40d479(0xa9)]);}const _0x21e47a=this[_0x40d479(0xaf)](_0x1b113c,!0x0);if(_0x21e47a){const _0x88e861=this[_0x40d479(0xcc)](_0x21e47a),_0x33f746=_0x3e7470(_0x40d479(0xc8),_0x88e861,_0x8672ce);_0x33f746&&_0x21010b[_0x40d479(0x98)]([_0x33f746,_0x40d479(0x94)]);}if(_0x21010b[_0x40d479(0xc0)]>0x1)return _0x18aade(_0x21010b[0x0][0x0])<=_0x18aade(_0x21010b[0x1][0x0])?_0x21010b[0x0]:_0x21010b[0x1];return 0x1===_0x21010b[_0x40d479(0xc0)]?_0x21010b[0x0]:[_0x8672ce[_0x40d479(0x99)],_0x40d479(0xa9)];}[_0x28588a(0xaf)](_0x3324f4,_0x26ae31){const _0x95a80=_0x28588a;let _0x17f2c1=_0x3324f4[_0x95a80(0x96)],_0x2b43da=null,_0x17c620=!0x1;for(;_0x17f2c1;){if(_0x3ccb14(_0x17f2c1)){if(this[_0x95a80(0xad)](_0x17f2c1)&&(_0x2b43da=_0x17f2c1),this[_0x95a80(0xca)](_0x17f2c1)&&_0x26ae31&&!_0x17c620){_0x17c620=!0x0,_0x17f2c1=_0x17f2c1[_0x95a80(0x96)];continue;}break;}const _0x1f6eb8=_0x9e3671(_0x17f2c1,_0x95a80(0xc8));if(_0x1f6eb8&&_0x95a80(0xbf)!==_0x1f6eb8&&this[_0x95a80(0x92)][_0x95a80(0xa0)](_0x1f6eb8)){_0x2b43da=_0x17f2c1;break;}_0x17f2c1=_0x17f2c1[_0x95a80(0x96)];}return _0x2b43da;}[_0x28588a(0x9c)](_0xad522d,_0xa29a81){const _0x5bd88a=_0x28588a;let _0x2a9710=_0xad522d[_0x5bd88a(0xb9)],_0x3b6c53=null,_0x51f0cb=!0x1;for(;_0x2a9710;){if(_0x3ccb14(_0x2a9710)){if(this[_0x5bd88a(0xad)](_0x2a9710)&&(_0x3b6c53=_0x2a9710),this[_0x5bd88a(0xca)](_0x2a9710)&&_0xa29a81&&!_0x51f0cb){_0x51f0cb=!0x0,_0x2a9710=_0x2a9710[_0x5bd88a(0xb9)];continue;}break;}const _0x13a264=_0x9e3671(_0x2a9710,_0x5bd88a(0xc8));if(_0x13a264&&_0x5bd88a(0xbf)!==_0x13a264&&this[_0x5bd88a(0x92)][_0x5bd88a(0xa0)](_0x13a264)){_0x3b6c53=_0x2a9710;break;}_0x2a9710=_0x2a9710[_0x5bd88a(0xb9)];}return _0x3b6c53;}[_0x28588a(0x95)](_0x42fc1e){const _0xe9e481=_0x28588a;_0x4f36e4(_0x42fc1e)&&_0x29ac94(_0xe9e481(0xc8),null,_0x42fc1e)[_0xe9e481(0xa4)](_0x3e3199=>{const _0x51129d=_0xe9e481;if(this[_0x51129d(0xcf)](_0x3e3199)&&!this[_0x51129d(0xb3)](_0x3e3199)){const _0x1f5c72=_0x9e3671(_0x3e3199,_0x51129d(0xc8));_0x4dac25(_0x3e3199,_0x51129d(0xb8),_0x1f5c72),_0x4dac25(_0x3e3199,_0x51129d(0xc8),null);}});}[_0x28588a(0xcc)](_0x298adc){const _0x594ab8=_0x28588a;if(!_0x298adc)return null;if(_0x4f36e4(_0x298adc))return _0x9e3671(_0x298adc,_0x594ab8(0xc8));if(_0x3ccb14(_0x298adc)){const _0x4585e0=_0x1724e5(_0x298adc)[_0x594ab8(0xbb)](/removed[\s*-]data-id="([^"]+)"/);if(_0x4585e0&&_0x4585e0[0x1])return _0x4585e0[0x1];}return null;}[_0x28588a(0xac)](_0x249fce){const _0x5ad325=_0x28588a;if(_0x3ccb14(_0x249fce)){const _0x237937=_0x1724e5(_0x249fce)[_0x5ad325(0xbb)](/removed[\s*-]data-id="([^"]+)"/);_0x237937&&_0x237937[0x1]&&this[_0x5ad325(0xce)][_0x5ad325(0xb5)][_0x5ad325(0x98)](_0x237937[0x1]);}}[_0x28588a(0xa5)](_0x63a4a2){const _0x2f2262=_0x28588a;return this[_0x2f2262(0xcf)](_0x63a4a2)?_0x9e3671(_0x63a4a2,_0x2f2262(0xc8)):this[_0x2f2262(0xb1)]();}[_0x28588a(0xbe)](_0x4c685f){const _0x28827d=_0x28588a;_0x5253fc(_0x4c685f)[_0x28827d(0xd1)](_0x152ba6=>this[_0x28827d(0xad)](_0x152ba6)||this[_0x28827d(0xca)](_0x152ba6))[_0x28827d(0xa4)](_0x4a3aaf=>{_0x5e6b8f(_0x4a3aaf);});}[_0x28588a(0xb6)](_0x2b338b){const _0x507e4e=_0x28588a,_0x4d601b=_0x2b338b[_0x507e4e(0xc1)],_0x4d1e7c=_0x4d601b[_0x4d601b[_0x507e4e(0xc0)]-0x1];_0x4d1e7c&&_0x4f36e4(_0x4d1e7c)&&_0x4dac25(_0x4d1e7c,_0x507e4e(0x9d),_0x507e4e(0x9b));}[_0x28588a(0xc5)](_0x313731,_0x8fa24f){const _0x4b0398=_0x28588a,_0x332f9e=_0x3e7470(_0x4b0398(0x9d),_0x4b0398(0x9b),_0x313731);if(!_0x332f9e)return;const _0x5e06dd=_0x4116c6(_0x332f9e)[_0x4b0398(0xd3)](0x0,-0x1),_0x5c1213=_0x5e06dd[_0x4b0398(0xc0)];let _0x19fa44=_0x332f9e;if(_0x5c1213>_0x8fa24f){let _0x64e635=_0x5c1213,_0x4625d0=null;for(;_0x64e635>_0x8fa24f&&_0x64e635>=0x0;)_0x64e635--,_0x4625d0=_0x5e06dd[_0x64e635];_0x4625d0&&(_0x19fa44=_0x4625d0,_0x4dac25(_0x332f9e,_0x4b0398(0x9d),null),_0x4dac25(_0x4625d0,_0x4b0398(0x9d),_0x4b0398(0x9b)));}else{if(_0x5c1213<_0x8fa24f){let _0x2f52fa=_0x5c1213,_0x486398=_0x332f9e;for(;_0x2f52fa<_0x8fa24f;){const _0x3c422a=_0x486398[_0x4b0398(0xc1)][_0x4b0398(0xd1)](_0x155e4a=>_0x4f36e4(_0x155e4a));if(0x0===_0x3c422a[_0x4b0398(0xc0)])break;_0x2f52fa++,_0x486398=_0x3c422a[_0x3c422a[_0x4b0398(0xc0)]-0x1];}_0x486398&&(_0x19fa44=_0x486398,_0x4dac25(_0x332f9e,_0x4b0398(0x9d),null),_0x4dac25(_0x486398,_0x4b0398(0x9d),_0x4b0398(0x9b)));}}let _0xec5c66=_0x19fa44;for(;_0xec5c66;){for(;_0xec5c66[_0x4b0398(0x96)];)_0xec5c66=_0xec5c66[_0x4b0398(0x96)],_0x4f36e4(_0xec5c66)&&_0x4dac25(_0xec5c66,_0x4b0398(0x9d),_0x4b0398(0x9b));_0xec5c66=_0xec5c66[_0x4b0398(0xc6)];}}[_0x28588a(0xc7)](_0x18bff6){const _0x430998=_0x28588a;return Boolean(_0x430998(0xbf)===_0x9e3671(_0x18bff6,_0x430998(0xc8)));}[_0x28588a(0xcf)](_0x59e7f6){const _0x387694=_0x28588a;return Boolean((_0x9e3671(_0x59e7f6,_0x387694(0xc8))||'')[_0x387694(0xc0)]>0x0&&_0x387694(0xbf)!==_0x9e3671(_0x59e7f6,_0x387694(0xc8)));}[_0x28588a(0xad)](_0x1c22b7){const _0x51bded=_0x28588a;return!!_0x1c22b7&&Boolean(_0x3ccb14(_0x1c22b7)&&_0x1724e5(_0x1c22b7)[_0x51bded(0xbb)](/removed[\s*-]data-id="[^"]+"/));}[_0x28588a(0xb3)](_0x4ba989){const _0xb00f16=_0x28588a;let _0xef49be=_0x4ba989[_0xb00f16(0xc6)];for(;_0xef49be;){if(_0x9e3671(_0xef49be,_0xb00f16(0xb8)))return!0x0;_0xef49be=_0xef49be[_0xb00f16(0xc6)];}return!0x1;}[_0x28588a(0xca)](_0x427a8b){const _0x283be2=_0x28588a;return Boolean(_0x3ccb14(_0x427a8b)&&_0x1724e5(_0x427a8b)[_0x283be2(0xbb)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x53dbf4=_0x1c38;function _0x1c38(_0x465001,_0x1372e6){const _0x2a194b=_0x2a19();return _0x1c38=function(_0x1c3800,_0x3a7aed){_0x1c3800=_0x1c3800-0x77;let _0x45f7c1=_0x2a194b[_0x1c3800];return _0x45f7c1;},_0x1c38(_0x465001,_0x1372e6);}(function(_0x30ac93,_0xad8ae0){const _0x4bf10=_0x1c38,_0x5c3226=_0x30ac93();while(!![]){try{const _0xabe6e6=-parseInt(_0x4bf10(0x84))/0x1*(-parseInt(_0x4bf10(0x81))/0x2)+parseInt(_0x4bf10(0x7b))/0x3+-parseInt(_0x4bf10(0x77))/0x4+-parseInt(_0x4bf10(0x7a))/0x5+parseInt(_0x4bf10(0x7d))/0x6+parseInt(_0x4bf10(0x7f))/0x7*(parseInt(_0x4bf10(0x79))/0x8)+-parseInt(_0x4bf10(0x80))/0x9;if(_0xabe6e6===_0xad8ae0)break;else _0x5c3226['push'](_0x5c3226['shift']());}catch(_0x4dca3e){_0x5c3226['push'](_0x5c3226['shift']());}}}(_0x2a19,0x923d4));import{ObservableMixin as _0x3229cc}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x4d0a53}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x5b236a}from'../utils/htmlparser.js';function _0x2a19(){const _0x37e726=['2440194nEyhUE','_parseHTML','4858WBOVzu','7775748azIVRw','1972014EqPQga','parseAndNormalizeHTML','convertMarkdownToHTML','1sMJqJj','<dummy>','parse','</dummy>','children','1789252dizQmK','_m2html','1688sIjRGV','3851725wZkdQA','3424458JTwbHr','replace'];_0x2a19=function(){return _0x37e726;};return _0x2a19();}export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x3229cc(){[_0x53dbf4(0x78)];constructor(){const _0x7eb21=_0x53dbf4;super(),this[_0x7eb21(0x78)]=new _0x4d0a53();}[_0x53dbf4(0x83)](_0x5d1e66){const _0x40543e=_0x53dbf4,_0x5648df=this[_0x40543e(0x78)][_0x40543e(0x86)](_0x5d1e66);return this[_0x40543e(0x82)](_0x5648df);}[_0x53dbf4(0x82)](_0x4172a4){const _0x282113=_0x53dbf4;return this[_0x282113(0x7e)](_0x4172a4);}[_0x53dbf4(0x7e)](_0x4b4654){const _0x2d839e=_0x53dbf4,_0x26cc46=_0x4b4654[_0x2d839e(0x7c)](/^\t+/gm,'\x20')[_0x2d839e(0x7c)](/\n*/g,'')[_0x2d839e(0x7c)](/\s+/g,'\x20')[_0x2d839e(0x7c)](/<[^>]*?$/g,''),_0x589813=_0x5b236a(_0x2d839e(0x85)+_0x26cc46+_0x2d839e(0x87));return _0x589813[_0x2d839e(0x88)]=_0x589813[_0x2d839e(0x88)][0x0][_0x2d839e(0x88)],_0x589813;}}
23
+ const _0x209872=_0x5e1f;(function(_0x56762d,_0x106b7f){const _0x125734=_0x5e1f,_0x186753=_0x56762d();while(!![]){try{const _0x177d56=-parseInt(_0x125734(0x163))/0x1+parseInt(_0x125734(0x16c))/0x2+parseInt(_0x125734(0x16d))/0x3*(-parseInt(_0x125734(0x167))/0x4)+-parseInt(_0x125734(0x16b))/0x5+-parseInt(_0x125734(0x16a))/0x6*(parseInt(_0x125734(0x160))/0x7)+-parseInt(_0x125734(0x16e))/0x8*(parseInt(_0x125734(0x15e))/0x9)+parseInt(_0x125734(0x15d))/0xa;if(_0x177d56===_0x106b7f)break;else _0x186753['push'](_0x186753['shift']());}catch(_0x3ec1d9){_0x186753['push'](_0x186753['shift']());}}}(_0x15f9,0x1a2a4));import{ObservableMixin as _0x21c2cc}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x559ce5}from'@ckeditor/ckeditor5-markdown-gfm';function _0x5e1f(_0x336520,_0x47172b){const _0x15f928=_0x15f9();return _0x5e1f=function(_0x5e1fa5,_0x4fdce6){_0x5e1fa5=_0x5e1fa5-0x15d;let _0x527ca5=_0x15f928[_0x5e1fa5];return _0x527ca5;},_0x5e1f(_0x336520,_0x47172b);}function _0x15f9(){const _0x42437b=['12rdmQYo','799030UYPUGb','123366pMiyHF','114393EDMLWv','30288lbJBme','_parseHTML','4682720FGToee','72DjwUca','convertMarkdownToHTML','11228UwapLq','replace','<dummy>','191350rRwprF','_m2html','children','parseAndNormalizeHTML','4eyOWLv','</dummy>','parse'];_0x15f9=function(){return _0x42437b;};return _0x15f9();}import{parse as _0x47d16b}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x21c2cc(){[_0x209872(0x164)];constructor(){const _0x126cde=_0x209872;super(),this[_0x126cde(0x164)]=new _0x559ce5();}[_0x209872(0x15f)](_0xe47b0b){const _0x740454=_0x209872,_0x5e13f9=this[_0x740454(0x164)][_0x740454(0x169)](_0xe47b0b);return this[_0x740454(0x166)](_0x5e13f9);}[_0x209872(0x166)](_0x148706){const _0x53bb86=_0x209872;return this[_0x53bb86(0x16f)](_0x148706);}[_0x209872(0x16f)](_0x51c295){const _0x409d4b=_0x209872,_0x39cef0=_0x51c295[_0x409d4b(0x161)](/^\t+/gm,'\x20')[_0x409d4b(0x161)](/\n*/g,'')[_0x409d4b(0x161)](/\s+/g,'\x20')[_0x409d4b(0x161)](/<[^>]*?$/g,''),_0x4e5a6d=_0x47d16b(_0x409d4b(0x162)+_0x39cef0+_0x409d4b(0x168));return _0x4e5a6d[_0x409d4b(0x165)]=_0x4e5a6d[_0x409d4b(0x165)][0x0][_0x409d4b(0x165)],_0x4e5a6d;}}