@ckeditor/ckeditor5-ai 47.6.0 → 47.6.1-alpha.1

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 (319) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.js +1 -1
  180. package/src/aichat/model/aichatconversation.d.ts +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/ui/aichatballoonview.js +1 -1
  184. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  185. package/src/aichat/ui/aichatfeedview.js +1 -1
  186. package/src/aichat/ui/aichatheaderview.js +1 -1
  187. package/src/aichat/ui/aichatview.js +1 -1
  188. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  210. package/src/aichat/utils/eventnames.js +1 -1
  211. package/src/aichat/utils/promisequeue.js +1 -1
  212. package/src/aichathistory/aichathistory.js +1 -1
  213. package/src/aichathistory/aichathistorycontroller.js +1 -1
  214. package/src/aichathistory/aichathistoryui.js +1 -1
  215. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  216. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  217. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  218. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  221. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  223. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  224. package/src/aicore/aiconnector.js +1 -1
  225. package/src/aicore/aiediting.js +1 -1
  226. package/src/aicore/model/aicapabilities.js +1 -1
  227. package/src/aicore/model/aicontext.js +1 -1
  228. package/src/aicore/model/aiinteraction.js +1 -1
  229. package/src/aicore/model/aimodels.js +1 -1
  230. package/src/aicore/model/aireply.js +1 -1
  231. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  232. package/src/aicore/pipeline/airesponseparser.js +2 -2
  233. package/src/aicore/ui/aidisclaimerview.js +1 -1
  234. package/src/aicore/ui/aiskeleton.js +1 -1
  235. package/src/aicore/ui/aispinner.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  246. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  247. package/src/aicore/utils/common-translations.js +1 -1
  248. package/src/aicore/utils/createresizebutton.js +1 -1
  249. package/src/aicore/utils/documentposition.js +1 -1
  250. package/src/aicore/utils/documentrange.js +1 -1
  251. package/src/aicore/utils/eventnames.js +1 -1
  252. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  253. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  254. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  255. package/src/aicore/utils/htmlparser.js +1 -1
  256. package/src/aicore/utils/htmlstreamer.js +1 -1
  257. package/src/aicore/utils/scrollmanager.js +1 -1
  258. package/src/aieditorintegration/aieditorintegration.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  260. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  261. package/src/aiquickactions/aiquickactions.js +1 -1
  262. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  263. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  264. package/src/aiquickactions/aiquickactionsui.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  268. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  271. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  272. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  273. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  274. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  275. package/src/aireviewcore/aireviewcoreui.js +1 -1
  276. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  277. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  280. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  281. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  292. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  294. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  295. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  296. package/src/aireviewmode/aireviewmode.js +1 -1
  297. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  298. package/src/aireviewmode/aireviewmodeui.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  300. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  301. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  303. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  304. package/src/aitabs/aitabs.js +1 -1
  305. package/src/aitabs/aitabsmainview.js +1 -1
  306. package/src/aitabs/tabs/aitabsview.js +1 -1
  307. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  308. package/src/aitabs/tabs/tabpanelview.js +1 -1
  309. package/src/aitranslate/aitranslate.js +1 -1
  310. package/src/aitranslate/aitranslatecontroller.js +1 -1
  311. package/src/aitranslate/aitranslateui.js +1 -1
  312. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  313. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  314. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  315. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  316. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  317. package/src/errors.js +1 -1
  318. package/src/errorsmap.js +1 -1
  319. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7d1d3e=_0xd212;(function(_0xbc3521,_0x434261){const _0x45dba3=_0xd212,_0x422262=_0xbc3521();while(!![]){try{const _0x3bc0d5=-parseInt(_0x45dba3(0x223))/0x1*(parseInt(_0x45dba3(0x1f7))/0x2)+parseInt(_0x45dba3(0x20b))/0x3*(parseInt(_0x45dba3(0x218))/0x4)+-parseInt(_0x45dba3(0x1e6))/0x5*(-parseInt(_0x45dba3(0x1b1))/0x6)+parseInt(_0x45dba3(0x1cc))/0x7*(parseInt(_0x45dba3(0x217))/0x8)+parseInt(_0x45dba3(0x1f6))/0x9*(parseInt(_0x45dba3(0x229))/0xa)+parseInt(_0x45dba3(0x19d))/0xb+-parseInt(_0x45dba3(0x226))/0xc;if(_0x3bc0d5===_0x434261)break;else _0x422262['push'](_0x422262['shift']());}catch(_0x2f5357){_0x422262['push'](_0x422262['shift']());}}}(_0x56e0,0x55c6c));function _0xd212(_0x218451,_0x39df49){const _0x56e0aa=_0x56e0();return _0xd212=function(_0xd21203,_0x1f5cd3){_0xd21203=_0xd21203-0x195;let _0x4a37b9=_0x56e0aa[_0xd21203];return _0x4a37b9;},_0xd212(_0x218451,_0x39df49);}function _0x56e0(){const _0x268157=['config','CONTINUE','_sendApiRequest','_getStreamReader','deleteWebResource','excludeEmpty','10onFOBo','/actions/custom/calls/','getModels','AbortError','/messages/','make-tone-formal','PATCH','text','upsertCustomAIActionRating','TRANSLATE','/calls','MAKE_SHORTER','fix-grammar','items','deleteFile','init','4530627rpdBmc','558BfDKsI','/web-resources/','queryAssistant','/web-resources','IMPROVE_WRITING','/actions/system/','POST','/conversations/','order','application/json','createdAt','Bearer\x20','ai.serviceUrl','requires','make-longer','positiveCount','/reviews/system/','/calls/','name','Content-Type','1759782sAvstK','context','uploadDocument','decode','message','DELETE','ai-request-failed','GET','/models/1?','group','continue','uploadFile','35848ydsMOp','4rIQxDw','/ratings','MAKE_LONGER','_apiUrl','length','callSystemReview','releaseLock','attributes','translate','callCustomReview','totalCount','721VGpRla','append','upsertAIChatRating','18666852uDRTBv','executeCustomAction','toString','10bgZPMm','traceId','value','then','MAKE_TONE_FORMAL','deleteDocument','plugins','reset','false','/files/','abortController','1828442xQbTit','data','isOfficialPlugin','limit','/actions/custom/calls','upsertCustomAIReviewRating','desc','fetchConversation','ai-missing-token','fetchConversations','_decoder','improve-writing','/conversations','upsertAIActionRating','make-shorter','request','PUT','catch','/documents','_handleError','552546XsUDgy','MAKE_TONE_CASUAL','statusText','AIConnector','/messages','status','define','parse','push','get','make-tone-casual','_token','sortBy','getReader','CloudServices','https://ai.cke-cs.com/v1','uploadUrl','executeAction','true','body','/reviews/custom/calls/','json','updateConversation','fetchDocument','file','upsertAIReviewRating','modificationId','1043szemUz','FIX_GRAMMAR','stringify','signal','/conversations?','ai-request-aborted','startConversation','token','read','/files','language','pluginName','isPremiumPlugin','/reviews/custom/calls','/documents/','100','fetchConversationMessages','code','feed','deleteConversation'];_0x56e0=function(){return _0x268157;};return _0x56e0();}import{createParser as _0x398c5a}from'eventsource-parser';import{ContextPlugin as _0x38bf00}from'ckeditor5/src/core.js';import{CKEditorError as _0x375d84}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x2fce6b){const _0x2a1502=_0xd212;_0x2fce6b[_0x2a1502(0x1e1)]=_0x2a1502(0x215),_0x2fce6b[_0x2a1502(0x1cd)]=_0x2a1502(0x1f2),_0x2fce6b[_0x2a1502(0x1fb)]=_0x2a1502(0x1a8),_0x2fce6b[_0x2a1502(0x21a)]=_0x2a1502(0x205),_0x2fce6b[_0x2a1502(0x1f1)]=_0x2a1502(0x1ab),_0x2fce6b[_0x2a1502(0x1b2)]=_0x2a1502(0x1bb),_0x2fce6b[_0x2a1502(0x196)]=_0x2a1502(0x1eb),_0x2fce6b[_0x2a1502(0x1ef)]=_0x2a1502(0x220);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x38bf00{[_0x7d1d3e(0x21b)];[_0x7d1d3e(0x1bc)];[_0x7d1d3e(0x1a7)];static get[_0x7d1d3e(0x204)](){const _0x3dcad3=_0x7d1d3e;return[_0x3dcad3(0x1bf)];}static get[_0x7d1d3e(0x1d7)](){const _0x4f7d02=_0x7d1d3e;return _0x4f7d02(0x1b4);}static get[_0x7d1d3e(0x19f)](){return!0x0;}static get[_0x7d1d3e(0x1d8)](){return!0x0;}constructor(_0x3054d9){const _0x376db6=_0x7d1d3e;super(_0x3054d9),this[_0x376db6(0x20c)][_0x376db6(0x1e0)][_0x376db6(0x1b7)](_0x376db6(0x203),_0x376db6(0x1c0)),this[_0x376db6(0x21b)]=this[_0x376db6(0x20c)][_0x376db6(0x1e0)][_0x376db6(0x1ba)](_0x376db6(0x203)),this[_0x376db6(0x1bc)]=null,this[_0x376db6(0x1a7)]=new TextDecoder();}[_0x7d1d3e(0x1f5)](){const _0x1eb800=_0x7d1d3e,_0x19588d=this[_0x1eb800(0x20c)][_0x1eb800(0x198)][_0x1eb800(0x1ba)](_0x1eb800(0x1bf));if(!_0x19588d[_0x1eb800(0x1d3)])throw new _0x375d84(_0x1eb800(0x1a5),this);this[_0x1eb800(0x1bc)]=_0x19588d[_0x1eb800(0x1d3)];}[_0x7d1d3e(0x1d2)](_0x44a855,_0x2f5cc7){const _0x55aa3a=_0x7d1d3e,_0x4db08e=this[_0x55aa3a(0x1e2)](_0x55aa3a(0x1a9),_0x55aa3a(0x1fd),{'id':_0x44a855,'group':_0x2f5cc7});return{'getConversation':async()=>(await _0x4db08e[_0x55aa3a(0x1ac)])[_0x55aa3a(0x1c6)](),'abortController':_0x4db08e[_0x55aa3a(0x19c)]};}[_0x7d1d3e(0x1f9)]({message:_0x42a8c9,conversationId:_0x515a9f,parts:_0x1279ce,capabilities:_0x131248,model:_0x29c2e0,attributes:_0xcc9f8b}){const _0x200149=_0x7d1d3e,_0x3000e1={'prompt':_0x42a8c9,'content':_0x1279ce,'model':_0x29c2e0,..._0x131248&&{'capabilities':_0x131248},..._0xcc9f8b&&{'attributes':_0xcc9f8b}},_0x4703ad=this[_0x200149(0x1e2)](_0x200149(0x1fe)+_0x515a9f+_0x200149(0x1b5),_0x200149(0x1fd),_0x3000e1);return{'getStream':async()=>{const _0x15c4a7=_0x200149,_0x2ae2c9=(await _0x4703ad[_0x15c4a7(0x1ac)])[_0x15c4a7(0x1c4)];return this[_0x15c4a7(0x1e3)](_0x2ae2c9);},'abortController':_0x4703ad[_0x200149(0x19c)]};}[_0x7d1d3e(0x227)]({content:_0x4943a7,message:_0x5d60f4,model:_0x12190b,outputFormat:_0x236435}){const _0x1b5d75=_0x7d1d3e,_0x416a24={'content':[{'type':_0x1b5d75(0x1ed),'content':_0x4943a7}],'prompt':_0x5d60f4,'model':_0x12190b,'outputFormat':_0x236435},_0x590d48=this[_0x1b5d75(0x1e2)](_0x1b5d75(0x1a1),_0x1b5d75(0x1fd),_0x416a24);return{'getStream':async()=>{const _0x2add87=_0x1b5d75,_0x51976b=(await _0x590d48[_0x2add87(0x1ac)])[_0x2add87(0x1c4)];return this[_0x2add87(0x1e3)](_0x51976b);},'abortController':_0x590d48[_0x1b5d75(0x19c)]};}[_0x7d1d3e(0x1c2)]({actionName:_0x2b0e8a,content:_0x4161ca,args:_0x34b106}){const _0x528a42=_0x7d1d3e,_0x43f611={'content':[{'type':_0x528a42(0x1ed),'content':_0x4161ca}],'args':_0x34b106},_0x4ac6ad=this[_0x528a42(0x1e2)](_0x528a42(0x1fc)+_0x2b0e8a+_0x528a42(0x1f0),_0x528a42(0x1fd),_0x43f611);return{'getStream':async()=>{const _0xb53de9=_0x528a42,_0x3e9400=(await _0x4ac6ad[_0xb53de9(0x1ac)])[_0xb53de9(0x1c4)];return this[_0xb53de9(0x1e3)](_0x3e9400);},'abortController':_0x4ac6ad[_0x528a42(0x19c)]};}[_0x7d1d3e(0x216)](_0x816618,_0x32e7de,_0x1e6d86){const _0x2bc8c9=_0x7d1d3e,_0x33b073=new FormData();_0x33b073[_0x2bc8c9(0x224)](_0x2bc8c9(0x1c9),_0x32e7de,_0x32e7de[_0x2bc8c9(0x209)]),_0x1e6d86&&_0x33b073[_0x2bc8c9(0x224)](_0x2bc8c9(0x21f),JSON[_0x2bc8c9(0x1ce)](_0x1e6d86));const _0x4e057b=this[_0x2bc8c9(0x1e2)](_0x2bc8c9(0x1fe)+_0x816618+_0x2bc8c9(0x1d5),_0x2bc8c9(0x1fd),_0x33b073);return{'getId':async()=>(await _0x4e057b[_0x2bc8c9(0x1ac)])[_0x2bc8c9(0x1c6)](),'abortController':_0x4e057b[_0x2bc8c9(0x19c)]};}[_0x7d1d3e(0x1c8)](_0x4081fc,_0x34d5fd){const _0xb544ad=_0x7d1d3e,_0x393ada=this[_0xb544ad(0x1e2)](_0xb544ad(0x1fe)+_0x4081fc+_0xb544ad(0x1da)+_0x34d5fd,_0xb544ad(0x212));return{'getDocument':async()=>(await _0x393ada[_0xb544ad(0x1ac)])[_0xb544ad(0x1c6)](),'abortController':_0x393ada[_0xb544ad(0x19c)]};}[_0x7d1d3e(0x20d)](_0x643740,_0x2ae27f,_0x53afb8){const _0x542723=_0x7d1d3e,_0x2cbea6={'content':_0x2ae27f};_0x53afb8&&(_0x2cbea6[_0x542723(0x21f)]=_0x53afb8);const _0x2659ac=this[_0x542723(0x1e2)](_0x542723(0x1fe)+_0x643740+_0x542723(0x1af),_0x542723(0x1fd),_0x2cbea6);return{'getId':async()=>(await _0x2659ac[_0x542723(0x1ac)])[_0x542723(0x1c6)](),'abortController':_0x2659ac[_0x542723(0x19c)]};}[_0x7d1d3e(0x1a6)](_0x5efaea,_0x74138a={}){const _0x3dc1b9=_0x7d1d3e,_0x5bcd83=new URLSearchParams();_0x5bcd83[_0x3dc1b9(0x224)](_0x3dc1b9(0x214),_0x5efaea),_0x5bcd83[_0x3dc1b9(0x224)](_0x3dc1b9(0x1e5),!0x1!==_0x74138a[_0x3dc1b9(0x1e5)]?_0x3dc1b9(0x1c3):_0x3dc1b9(0x19a)),_0x5bcd83[_0x3dc1b9(0x224)](_0x3dc1b9(0x1a0),_0x74138a[_0x3dc1b9(0x1a0)]?_0x74138a[_0x3dc1b9(0x1a0)][_0x3dc1b9(0x228)]():_0x3dc1b9(0x1db)),_0x5bcd83[_0x3dc1b9(0x224)](_0x3dc1b9(0x1bd),_0x74138a[_0x3dc1b9(0x1bd)]?_0x74138a[_0x3dc1b9(0x1bd)]:_0x3dc1b9(0x201)),_0x5bcd83[_0x3dc1b9(0x224)](_0x3dc1b9(0x1ff),_0x74138a[_0x3dc1b9(0x1ff)]?_0x74138a[_0x3dc1b9(0x1ff)]:_0x3dc1b9(0x1a3));const _0x2ba5a3=this[_0x3dc1b9(0x1e2)](_0x3dc1b9(0x1d0)+_0x5bcd83[_0x3dc1b9(0x228)](),_0x3dc1b9(0x212));return{'getConversations':async()=>{const _0xcebb31=_0x3dc1b9,_0x5d1031=await _0x2ba5a3[_0xcebb31(0x1ac)];return(await _0x5d1031[_0xcebb31(0x1c6)]())[_0xcebb31(0x1f3)];},'abortController':_0x2ba5a3[_0x3dc1b9(0x19c)]};}[_0x7d1d3e(0x1df)](_0x117a1f){const _0x54d054=_0x7d1d3e,_0x4713c2=this[_0x54d054(0x1e2)](_0x54d054(0x1fe)+_0x117a1f,_0x54d054(0x210));return{'execute':async()=>{const _0x54c62f=_0x54d054;await _0x4713c2[_0x54c62f(0x1ac)];},'abortController':_0x4713c2[_0x54d054(0x19c)]};}[_0x7d1d3e(0x1c7)](_0x1fd2ad,_0x3644b4){const _0x46d9e7=_0x7d1d3e,_0x5099b3=this[_0x46d9e7(0x1e2)](_0x46d9e7(0x1fe)+_0x1fd2ad,_0x46d9e7(0x1ec),_0x3644b4);return{'getResult':async()=>(await _0x5099b3[_0x46d9e7(0x1ac)],_0x3644b4),'abortController':_0x5099b3[_0x46d9e7(0x19c)]};}[_0x7d1d3e(0x1a4)](_0x2ca03a){const _0x3d8c99=_0x7d1d3e,_0x57d97d=this[_0x3d8c99(0x1e2)](_0x3d8c99(0x1fe)+_0x2ca03a,_0x3d8c99(0x212));return{'getConversation':async()=>(await _0x57d97d[_0x3d8c99(0x1ac)])[_0x3d8c99(0x1c6)](),'abortController':_0x57d97d[_0x3d8c99(0x19c)]};}[_0x7d1d3e(0x1dc)](_0x45f4b1){const _0xa7d2b5=_0x7d1d3e,_0x21ed13=this[_0xa7d2b5(0x1e2)](_0xa7d2b5(0x1fe)+_0x45f4b1+_0xa7d2b5(0x1b5),_0xa7d2b5(0x212));return{'getMessages':async()=>{const _0x10e561=_0xa7d2b5,_0x28cfae=await _0x21ed13[_0x10e561(0x1ac)];return(await _0x28cfae[_0x10e561(0x1c6)]())[_0x10e561(0x1f3)];},'abortController':_0x21ed13[_0xa7d2b5(0x19c)]};}[_0x7d1d3e(0x1c1)](_0x19e799,_0x5a9e74,_0x2898fb){const _0x32471a=_0x7d1d3e,_0x45c96f=this[_0x32471a(0x1e2)](_0x32471a(0x1fe)+_0x19e799+_0x32471a(0x1fa),_0x32471a(0x1fd),{'url':_0x5a9e74,'attributes':_0x2898fb});return{'getId':async()=>(await _0x45c96f[_0x32471a(0x1ac)])[_0x32471a(0x1c6)](),'abortController':_0x45c96f[_0x32471a(0x19c)]};}[_0x7d1d3e(0x1e8)](_0x14655d='en'){const _0x320bb9=_0x7d1d3e,_0x4d43fa=new URLSearchParams();_0x4d43fa[_0x320bb9(0x224)](_0x320bb9(0x1d6),_0x14655d);const _0x4ae57e=_0x320bb9(0x213)+_0x4d43fa[_0x320bb9(0x228)](),_0x25af41=this[_0x320bb9(0x1e2)](_0x4ae57e,_0x320bb9(0x212));return{'list':async()=>await(await _0x25af41[_0x320bb9(0x1ac)])[_0x320bb9(0x1c6)](),'abortController':_0x25af41[_0x320bb9(0x19c)]};}[_0x7d1d3e(0x1f4)](_0x12ed7a,_0x1cef13){const _0xe8566d=_0x7d1d3e,_0x2e1635=this[_0xe8566d(0x1e2)](_0xe8566d(0x1fe)+_0x12ed7a+_0xe8566d(0x19b)+_0x1cef13,_0xe8566d(0x210));return{'execute':async()=>{const _0x5cece0=_0xe8566d;await _0x2e1635[_0x5cece0(0x1ac)];},'abortController':_0x2e1635[_0xe8566d(0x19c)]};}[_0x7d1d3e(0x197)](_0x397f04,_0x7fb464){const _0x4bad78=_0x7d1d3e,_0xdd07d5=this[_0x4bad78(0x1e2)](_0x4bad78(0x1fe)+_0x397f04+_0x4bad78(0x1da)+_0x7fb464,_0x4bad78(0x210));return{'execute':async()=>{const _0x2bec86=_0x4bad78;await _0xdd07d5[_0x2bec86(0x1ac)];},'abortController':_0xdd07d5[_0x4bad78(0x19c)]};}[_0x7d1d3e(0x1e4)](_0x3add54,_0x2377f0){const _0x364706=_0x7d1d3e,_0x49b59a=this[_0x364706(0x1e2)](_0x364706(0x1fe)+_0x3add54+_0x364706(0x1f8)+_0x2377f0,_0x364706(0x210));return{'execute':async()=>{const _0x1dc730=_0x364706;await _0x49b59a[_0x1dc730(0x1ac)];},'abortController':_0x49b59a[_0x364706(0x19c)]};}[_0x7d1d3e(0x21d)]({reviewName:_0x39ab7d,content:_0x2a50fc,args:_0x40558a}){const _0x49159a=_0x7d1d3e,_0x18954e=this[_0x49159a(0x1e2)](_0x49159a(0x207)+_0x39ab7d+_0x49159a(0x1f0),_0x49159a(0x1fd),{'content':[{'type':_0x49159a(0x1ed),'content':_0x2a50fc}],'args':_0x40558a});return{'getStream':async()=>{const _0x3ad69c=_0x49159a,_0x4e2654=(await _0x18954e[_0x3ad69c(0x1ac)])[_0x3ad69c(0x1c4)];return this[_0x3ad69c(0x1e3)](_0x4e2654);},'abortController':_0x18954e[_0x49159a(0x19c)]};}[_0x7d1d3e(0x221)]({content:_0x54ecda,prompt:_0x50624c,model:_0x564bca}){const _0x25c2be=_0x7d1d3e,_0x3b3286=this[_0x25c2be(0x1e2)](_0x25c2be(0x1d9),_0x25c2be(0x1fd),{'content':[{'type':_0x25c2be(0x1ed),'content':_0x54ecda}],'prompt':_0x50624c,'model':_0x564bca});return{'getStream':async()=>{const _0x33a75d=_0x25c2be,_0x1da2ea=(await _0x3b3286[_0x33a75d(0x1ac)])[_0x33a75d(0x1c4)];return this[_0x33a75d(0x1e3)](_0x1da2ea);},'abortController':_0x3b3286[_0x25c2be(0x19c)]};}[_0x7d1d3e(0x225)](_0x43efd4,_0x50be49,_0x4183c0){const _0x29c820=_0x7d1d3e,_0x484724=this[_0x29c820(0x1e2)](_0x29c820(0x1fe)+_0x43efd4+_0x29c820(0x1ea)+_0x50be49+_0x29c820(0x219),_0x29c820(0x1ad),{'positiveCount':_0x4183c0[_0x29c820(0x206)],'totalCount':_0x4183c0[_0x29c820(0x222)],'modificationId':_0x4183c0[_0x29c820(0x1cb)]});return{'execute':async()=>{const _0xcc4b5e=_0x29c820;await _0x484724[_0xcc4b5e(0x1ac)];},'abortController':_0x484724[_0x29c820(0x19c)]};}[_0x7d1d3e(0x1aa)](_0x4243e0,_0x3aff7d,_0xeef2de){const _0x3f3c81=_0x7d1d3e,_0x54d059=this[_0x3f3c81(0x1e2)](_0x3f3c81(0x1fc)+_0x4243e0+_0x3f3c81(0x208)+_0x3aff7d+_0x3f3c81(0x219),_0x3f3c81(0x1ad),{'positiveCount':_0xeef2de[_0x3f3c81(0x206)],'totalCount':_0xeef2de[_0x3f3c81(0x222)]});return{'execute':async()=>{const _0x41b894=_0x3f3c81;await _0x54d059[_0x41b894(0x1ac)];},'abortController':_0x54d059[_0x3f3c81(0x19c)]};}[_0x7d1d3e(0x1ee)](_0xa7b13e,_0x1a072d){const _0x25a91e=_0x7d1d3e,_0x4d407e=this[_0x25a91e(0x1e2)](_0x25a91e(0x1e7)+_0xa7b13e+_0x25a91e(0x219),_0x25a91e(0x1ad),{'positiveCount':_0x1a072d[_0x25a91e(0x206)],'totalCount':_0x1a072d[_0x25a91e(0x222)]});return{'execute':async()=>{const _0x101dc4=_0x25a91e;await _0x4d407e[_0x101dc4(0x1ac)];},'abortController':_0x4d407e[_0x25a91e(0x19c)]};}[_0x7d1d3e(0x1ca)](_0x1fecdb,_0x235320,_0x509886,_0x643195){const _0x213f22=_0x7d1d3e,_0x28e54f=this[_0x213f22(0x1e2)](_0x213f22(0x207)+_0x1fecdb+_0x213f22(0x208)+_0x235320+_0x213f22(0x219),_0x213f22(0x1ad),{'positiveCount':_0x509886[_0x213f22(0x206)],'totalCount':_0x509886[_0x213f22(0x222)],'dataId':_0x643195});return{'execute':async()=>{const _0x53b149=_0x213f22;await _0x28e54f[_0x53b149(0x1ac)];},'abortController':_0x28e54f[_0x213f22(0x19c)]};}[_0x7d1d3e(0x1a2)](_0x1113e5,_0x3a5cfd,_0x32e6c2){const _0x359ac0=_0x7d1d3e,_0x45c822=this[_0x359ac0(0x1e2)](_0x359ac0(0x1c5)+_0x1113e5+_0x359ac0(0x219),_0x359ac0(0x1ad),{'positiveCount':_0x3a5cfd[_0x359ac0(0x206)],'totalCount':_0x3a5cfd[_0x359ac0(0x222)],'dataId':_0x32e6c2});return{'execute':async()=>{const _0x495a32=_0x359ac0;await _0x45c822[_0x495a32(0x1ac)];},'abortController':_0x45c822[_0x359ac0(0x19c)]};}[_0x7d1d3e(0x1e2)](_0x2c06f9,_0x51f7a6,_0x2869bb){const _0x1bd383=_0x7d1d3e,_0x39ccbb=new AbortController(),_0x1c948a=_0x2869bb instanceof FormData,_0x5b948d={'Authorization':_0x1bd383(0x202)+this[_0x1bd383(0x1bc)]?.[_0x1bd383(0x22b)]};_0x2869bb&&!_0x1c948a&&(_0x5b948d[_0x1bd383(0x20a)]=_0x1bd383(0x200));const _0x266904={'method':_0x51f7a6,'headers':_0x5b948d,'signal':_0x39ccbb[_0x1bd383(0x1cf)]};return _0x2869bb&&(_0x266904[_0x1bd383(0x1c4)]=_0x1c948a?_0x2869bb:JSON[_0x1bd383(0x1ce)](_0x2869bb)),{'request':fetch(''+this[_0x1bd383(0x21b)]+_0x2c06f9,_0x266904)[_0x1bd383(0x1ae)](_0x10b3ce=>{const _0x5107fc=_0x1bd383;this[_0x5107fc(0x1b0)](_0x10b3ce);})[_0x1bd383(0x195)](_0x292b7e=>_0x292b7e['ok']?_0x292b7e:_0x292b7e[_0x1bd383(0x1c6)]()[_0x1bd383(0x195)](_0x556bba=>{const _0x203f5e=_0x1bd383;throw{'url':this[_0x203f5e(0x21b)],'path':_0x2c06f9,'method':_0x51f7a6,'body':_0x2869bb,'status':(_0x292b7e||{})[_0x203f5e(0x1b6)],'statusText':(_0x292b7e||{})[_0x203f5e(0x1b3)],'code':_0x556bba[_0x203f5e(0x1dd)],'message':_0x556bba[_0x203f5e(0x20f)],'traceId':_0x556bba[_0x203f5e(0x22a)]};})),'abortController':_0x39ccbb};}async*[_0x7d1d3e(0x1e3)](_0x4fd533){const _0x1e8ad6=_0x7d1d3e,_0xd76461=[],_0x3fe273=_0x4fd533[_0x1e8ad6(0x1be)](),_0x3d2f3c=_0x398c5a({'onError':_0x21aa05=>{const _0x3b1d3e=_0x1e8ad6;this[_0x3b1d3e(0x1b0)](_0x21aa05);},'onEvent':_0x18c620=>{const _0x4b7a6e=_0x1e8ad6;_0x18c620[_0x4b7a6e(0x19e)]=JSON[_0x4b7a6e(0x1b8)](_0x18c620[_0x4b7a6e(0x19e)]),_0xd76461[_0x4b7a6e(0x1b9)](_0x18c620);}});try{let _0x2d21b7=!0x1;for(;!_0x2d21b7;){const {done:_0x33e4f7,value:_0xd82b2}=await _0x3fe273[_0x1e8ad6(0x1d4)]();_0x33e4f7&&(_0x2d21b7=!0x0),_0x3d2f3c[_0x1e8ad6(0x1de)](this[_0x1e8ad6(0x1a7)][_0x1e8ad6(0x20e)](_0xd82b2,{'stream':!0x0})),yield*_0xd76461,_0xd76461[_0x1e8ad6(0x21c)]=0x0;}}catch(_0x3b0330){this[_0x1e8ad6(0x1b0)](_0x3b0330);}finally{_0x3fe273[_0x1e8ad6(0x21e)](),_0x3d2f3c[_0x1e8ad6(0x199)]();}}[_0x7d1d3e(0x1b0)](_0x37bb76){const _0x4ab3ea=_0x7d1d3e;if(_0x37bb76 instanceof _0x375d84)throw _0x37bb76;if(_0x37bb76 instanceof Error&&_0x4ab3ea(0x1e9)===_0x37bb76[_0x4ab3ea(0x209)])throw new _0x375d84(_0x4ab3ea(0x1d1),this,{'originalError':_0x37bb76});throw new _0x375d84(_0x4ab3ea(0x211),this,{'originalError':_0x37bb76});}}
23
+ const _0x227e53=_0x89f6;function _0x4b72(){const _0x515c7a=['/reviews/system/','message','getReader','status','length','/actions/custom/calls/','8XxYKwU','GET','false','append','attributes','https://ai.cke-cs.com/v1','totalCount','CONTINUE','sortBy','POST','isPremiumPlugin','/web-resources','make-tone-formal','request','data','application/json','items','language','text','_getStreamReader','deleteFile','fetchConversations','319795HbUQQz','_token','requires','plugins','1822720Cjtpod','_apiUrl','ai.serviceUrl','deleteConversation','limit','/ratings','_sendApiRequest','fetchDocument','continue','/conversations?','json','modificationId','PATCH','/documents/','config','createdAt','push','uploadDocument','get','callCustomReview','deleteWebResource','positiveCount','DELETE','callSystemReview','26466ueNdGz','440jbgTCq','_decoder','traceId','parse','/web-resources/','group','68994dpyvDw','/messages/','order','/documents','init','upsertAIActionRating','read','1233740ruJVOY','decode','156485tIyopc','releaseLock','signal','MAKE_TONE_FORMAL','true','/reviews/custom/calls','fix-grammar','/calls/','make-tone-casual','/models/1?','Content-Type','then','/conversations/','/calls','/reviews/custom/calls/','executeCustomAction','/conversations','CloudServices','_handleError','100','AIConnector','FIX_GRAMMAR','AbortError','/messages','/files/','/actions/system/','fetchConversationMessages','upsertCustomAIReviewRating','queryAssistant','PUT','getModels','body','file','define','make-shorter','reset','excludeEmpty','value','TRANSLATE','desc','MAKE_TONE_CASUAL','uploadFile','IMPROVE_WRITING','catch','ai-request-failed','MAKE_SHORTER','context','MAKE_LONGER','statusText','42jZQZOz','upsertCustomAIActionRating','code','235251qqygds','/files','fetchConversation','make-longer','translate','updateConversation','stringify','ai-missing-token','abortController','uploadUrl','executeAction','upsertAIChatRating','pluginName','feed','ai-request-aborted','name','toString','/actions/custom/calls','token','Bearer\x20','deleteDocument','isOfficialPlugin','upsertAIReviewRating','startConversation','improve-writing'];_0x4b72=function(){return _0x515c7a;};return _0x4b72();}(function(_0x176ef1,_0x1f8fae){const _0x18d4ec=_0x89f6,_0x5dc5e1=_0x176ef1();while(!![]){try{const _0xe9c0a6=parseInt(_0x18d4ec(0xef))/0x1+parseInt(_0x18d4ec(0x10e))/0x2*(-parseInt(_0x18d4ec(0x140))/0x3)+-parseInt(_0x18d4ec(0x14e))/0x4+-parseInt(_0x18d4ec(0x124))/0x5+-parseInt(_0x18d4ec(0xec))/0x6*(-parseInt(_0x18d4ec(0x150))/0x7)+-parseInt(_0x18d4ec(0x141))/0x8*(-parseInt(_0x18d4ec(0x147))/0x9)+-parseInt(_0x18d4ec(0x128))/0xa;if(_0xe9c0a6===_0x1f8fae)break;else _0x5dc5e1['push'](_0x5dc5e1['shift']());}catch(_0x84ea04){_0x5dc5e1['push'](_0x5dc5e1['shift']());}}}(_0x4b72,0x368b4));import{createParser as _0x3f14ab}from'eventsource-parser';import{ContextPlugin as _0xe00701}from'ckeditor5/src/core.js';function _0x89f6(_0x336fc5,_0x50bb67){const _0x4b725a=_0x4b72();return _0x89f6=function(_0x89f633,_0x307625){_0x89f633=_0x89f633-0xcb;let _0x4304ec=_0x4b725a[_0x89f633];return _0x4304ec;},_0x89f6(_0x336fc5,_0x50bb67);}import{CKEditorError as _0x5c28f1}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x5e1db1){const _0x4bafd4=_0x89f6;_0x5e1db1[_0x4bafd4(0x115)]=_0x4bafd4(0x130),_0x5e1db1[_0x4bafd4(0xd0)]=_0x4bafd4(0x156),_0x5e1db1[_0x4bafd4(0xe5)]=_0x4bafd4(0x107),_0x5e1db1[_0x4bafd4(0xea)]=_0x4bafd4(0xf2),_0x5e1db1[_0x4bafd4(0xe8)]=_0x4bafd4(0xdd),_0x5e1db1[_0x4bafd4(0xe3)]=_0x4bafd4(0x158),_0x5e1db1[_0x4bafd4(0x153)]=_0x4bafd4(0x11a),_0x5e1db1[_0x4bafd4(0xe1)]=_0x4bafd4(0xf3);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0xe00701{[_0x227e53(0x129)];[_0x227e53(0x125)];[_0x227e53(0x142)];static get[_0x227e53(0x126)](){const _0x4802f2=_0x227e53;return[_0x4802f2(0xcc)];}static get[_0x227e53(0xfb)](){const _0x238046=_0x227e53;return _0x238046(0xcf);}static get[_0x227e53(0x104)](){return!0x0;}static get[_0x227e53(0x118)](){return!0x0;}constructor(_0xe6857b){const _0x4b5c1d=_0x227e53;super(_0xe6857b),this[_0x4b5c1d(0xe9)][_0x4b5c1d(0x136)][_0x4b5c1d(0xdc)](_0x4b5c1d(0x12a),_0x4b5c1d(0x113)),this[_0x4b5c1d(0x129)]=this[_0x4b5c1d(0xe9)][_0x4b5c1d(0x136)][_0x4b5c1d(0x13a)](_0x4b5c1d(0x12a)),this[_0x4b5c1d(0x125)]=null,this[_0x4b5c1d(0x142)]=new TextDecoder();}[_0x227e53(0x14b)](){const _0x4ced67=_0x227e53,_0x126a82=this[_0x4ced67(0xe9)][_0x4ced67(0x127)][_0x4ced67(0x13a)](_0x4ced67(0xcc));if(!_0x126a82[_0x4ced67(0x101)])throw new _0x5c28f1(_0x4ced67(0xf6),this);this[_0x4ced67(0x125)]=_0x126a82[_0x4ced67(0x101)];}[_0x227e53(0x106)](_0x43dc00,_0x21bd4f){const _0x511823=_0x227e53,_0x422b52=this[_0x511823(0x12e)](_0x511823(0xcb),_0x511823(0x117),{'id':_0x43dc00,'group':_0x21bd4f});return{'getConversation':async()=>(await _0x422b52[_0x511823(0x11b)])[_0x511823(0x132)](),'abortController':_0x422b52[_0x511823(0xf7)]};}[_0x227e53(0xd7)]({message:_0xd79fc4,conversationId:_0x54963f,parts:_0x22a833,capabilities:_0x5a1e7f,model:_0x220aec,attributes:_0x23d113}){const _0x292f0b=_0x227e53,_0x31db02={'prompt':_0xd79fc4,'content':_0x22a833,'model':_0x220aec,..._0x5a1e7f&&{'capabilities':_0x5a1e7f},..._0x23d113&&{'attributes':_0x23d113}},_0x13107d=this[_0x292f0b(0x12e)](_0x292f0b(0x15c)+_0x54963f+_0x292f0b(0xd2),_0x292f0b(0x117),_0x31db02);return{'getStream':async()=>{const _0x28541f=_0x292f0b,_0x34344a=(await _0x13107d[_0x28541f(0x11b)])[_0x28541f(0xda)];return this[_0x28541f(0x121)](_0x34344a);},'abortController':_0x13107d[_0x292f0b(0xf7)]};}[_0x227e53(0x15f)]({content:_0x5a20dd,message:_0x16cdc0,model:_0x225013,outputFormat:_0x2ca049}){const _0x478ed4=_0x227e53,_0x2519d5={'content':[{'type':_0x478ed4(0x120),'content':_0x5a20dd}],'prompt':_0x16cdc0,'model':_0x225013,'outputFormat':_0x2ca049},_0x295362=this[_0x478ed4(0x12e)](_0x478ed4(0x100),_0x478ed4(0x117),_0x2519d5);return{'getStream':async()=>{const _0xab8472=_0x478ed4,_0x30e6cb=(await _0x295362[_0xab8472(0x11b)])[_0xab8472(0xda)];return this[_0xab8472(0x121)](_0x30e6cb);},'abortController':_0x295362[_0x478ed4(0xf7)]};}[_0x227e53(0xf9)]({actionName:_0x2387d7,content:_0x15989d,args:_0x3c339c}){const _0x19c86d=_0x227e53,_0x2e969f={'content':[{'type':_0x19c86d(0x120),'content':_0x15989d}],'args':_0x3c339c},_0x25e17f=this[_0x19c86d(0x12e)](_0x19c86d(0xd4)+_0x2387d7+_0x19c86d(0x15d),_0x19c86d(0x117),_0x2e969f);return{'getStream':async()=>{const _0x2268db=_0x19c86d,_0x527a97=(await _0x25e17f[_0x2268db(0x11b)])[_0x2268db(0xda)];return this[_0x2268db(0x121)](_0x527a97);},'abortController':_0x25e17f[_0x19c86d(0xf7)]};}[_0x227e53(0xe4)](_0x4872ac,_0x476c70,_0xdca44e){const _0x5283d3=_0x227e53,_0xa1c5e1=new FormData();_0xa1c5e1[_0x5283d3(0x111)](_0x5283d3(0xdb),_0x476c70,_0x476c70[_0x5283d3(0xfe)]),_0xdca44e&&_0xa1c5e1[_0x5283d3(0x111)](_0x5283d3(0x112),JSON[_0x5283d3(0xf5)](_0xdca44e));const _0xf20167=this[_0x5283d3(0x12e)](_0x5283d3(0x15c)+_0x4872ac+_0x5283d3(0xf0),_0x5283d3(0x117),_0xa1c5e1);return{'getId':async()=>(await _0xf20167[_0x5283d3(0x11b)])[_0x5283d3(0x132)](),'abortController':_0xf20167[_0x5283d3(0xf7)]};}[_0x227e53(0x12f)](_0x1fd92b,_0x4b2fc2){const _0x32d7ee=_0x227e53,_0x4ab499=this[_0x32d7ee(0x12e)](_0x32d7ee(0x15c)+_0x1fd92b+_0x32d7ee(0x135)+_0x4b2fc2,_0x32d7ee(0x10f));return{'getDocument':async()=>(await _0x4ab499[_0x32d7ee(0x11b)])[_0x32d7ee(0x132)](),'abortController':_0x4ab499[_0x32d7ee(0xf7)]};}[_0x227e53(0x139)](_0x4bb388,_0x5ef53e,_0x229114){const _0x30c45d=_0x227e53,_0x30341a={'content':_0x5ef53e};_0x229114&&(_0x30341a[_0x30c45d(0x112)]=_0x229114);const _0x431974=this[_0x30c45d(0x12e)](_0x30c45d(0x15c)+_0x4bb388+_0x30c45d(0x14a),_0x30c45d(0x117),_0x30341a);return{'getId':async()=>(await _0x431974[_0x30c45d(0x11b)])[_0x30c45d(0x132)](),'abortController':_0x431974[_0x30c45d(0xf7)]};}[_0x227e53(0x123)](_0x1ce84a,_0x4438c7={}){const _0x96cc0b=_0x227e53,_0x5b6790=new URLSearchParams();_0x5b6790[_0x96cc0b(0x111)](_0x96cc0b(0x146),_0x1ce84a),_0x5b6790[_0x96cc0b(0x111)](_0x96cc0b(0xdf),!0x1!==_0x4438c7[_0x96cc0b(0xdf)]?_0x96cc0b(0x154):_0x96cc0b(0x110)),_0x5b6790[_0x96cc0b(0x111)](_0x96cc0b(0x12c),_0x4438c7[_0x96cc0b(0x12c)]?_0x4438c7[_0x96cc0b(0x12c)][_0x96cc0b(0xff)]():_0x96cc0b(0xce)),_0x5b6790[_0x96cc0b(0x111)](_0x96cc0b(0x116),_0x4438c7[_0x96cc0b(0x116)]?_0x4438c7[_0x96cc0b(0x116)]:_0x96cc0b(0x137)),_0x5b6790[_0x96cc0b(0x111)](_0x96cc0b(0x149),_0x4438c7[_0x96cc0b(0x149)]?_0x4438c7[_0x96cc0b(0x149)]:_0x96cc0b(0xe2));const _0x563929=this[_0x96cc0b(0x12e)](_0x96cc0b(0x131)+_0x5b6790[_0x96cc0b(0xff)](),_0x96cc0b(0x10f));return{'getConversations':async()=>{const _0x542189=_0x96cc0b,_0x32ed7e=await _0x563929[_0x542189(0x11b)];return(await _0x32ed7e[_0x542189(0x132)]())[_0x542189(0x11e)];},'abortController':_0x563929[_0x96cc0b(0xf7)]};}[_0x227e53(0x12b)](_0x1178d7){const _0x56fb25=_0x227e53,_0x998e02=this[_0x56fb25(0x12e)](_0x56fb25(0x15c)+_0x1178d7,_0x56fb25(0x13e));return{'execute':async()=>{const _0x288b6c=_0x56fb25;await _0x998e02[_0x288b6c(0x11b)];},'abortController':_0x998e02[_0x56fb25(0xf7)]};}[_0x227e53(0xf4)](_0x626bf4,_0x18b7c6){const _0x1c8f98=_0x227e53,_0x467764=this[_0x1c8f98(0x12e)](_0x1c8f98(0x15c)+_0x626bf4,_0x1c8f98(0x134),_0x18b7c6);return{'getResult':async()=>(await _0x467764[_0x1c8f98(0x11b)],_0x18b7c6),'abortController':_0x467764[_0x1c8f98(0xf7)]};}[_0x227e53(0xf1)](_0x5b99dd){const _0x5b9571=_0x227e53,_0x224e37=this[_0x5b9571(0x12e)](_0x5b9571(0x15c)+_0x5b99dd,_0x5b9571(0x10f));return{'getConversation':async()=>(await _0x224e37[_0x5b9571(0x11b)])[_0x5b9571(0x132)](),'abortController':_0x224e37[_0x5b9571(0xf7)]};}[_0x227e53(0xd5)](_0x4b832e){const _0x4d7fe2=_0x227e53,_0x4f6e51=this[_0x4d7fe2(0x12e)](_0x4d7fe2(0x15c)+_0x4b832e+_0x4d7fe2(0xd2),_0x4d7fe2(0x10f));return{'getMessages':async()=>{const _0x5981bd=_0x4d7fe2,_0xd8b65e=await _0x4f6e51[_0x5981bd(0x11b)];return(await _0xd8b65e[_0x5981bd(0x132)]())[_0x5981bd(0x11e)];},'abortController':_0x4f6e51[_0x4d7fe2(0xf7)]};}[_0x227e53(0xf8)](_0x53697d,_0x165152,_0x2d5b13){const _0x3c8678=_0x227e53,_0x257784=this[_0x3c8678(0x12e)](_0x3c8678(0x15c)+_0x53697d+_0x3c8678(0x119),_0x3c8678(0x117),{'url':_0x165152,'attributes':_0x2d5b13});return{'getId':async()=>(await _0x257784[_0x3c8678(0x11b)])[_0x3c8678(0x132)](),'abortController':_0x257784[_0x3c8678(0xf7)]};}[_0x227e53(0xd9)](_0x303dd8='en'){const _0x3d1c5b=_0x227e53,_0x2eac14=new URLSearchParams();_0x2eac14[_0x3d1c5b(0x111)](_0x3d1c5b(0x11f),_0x303dd8);const _0x3a3252=_0x3d1c5b(0x159)+_0x2eac14[_0x3d1c5b(0xff)](),_0x343bf8=this[_0x3d1c5b(0x12e)](_0x3a3252,_0x3d1c5b(0x10f));return{'list':async()=>await(await _0x343bf8[_0x3d1c5b(0x11b)])[_0x3d1c5b(0x132)](),'abortController':_0x343bf8[_0x3d1c5b(0xf7)]};}[_0x227e53(0x122)](_0x2b056a,_0x516e23){const _0x1411f6=_0x227e53,_0x4c5e2c=this[_0x1411f6(0x12e)](_0x1411f6(0x15c)+_0x2b056a+_0x1411f6(0xd3)+_0x516e23,_0x1411f6(0x13e));return{'execute':async()=>{const _0x24a4ed=_0x1411f6;await _0x4c5e2c[_0x24a4ed(0x11b)];},'abortController':_0x4c5e2c[_0x1411f6(0xf7)]};}[_0x227e53(0x103)](_0x330d29,_0x1deed9){const _0x2d2e14=_0x227e53,_0x24457d=this[_0x2d2e14(0x12e)](_0x2d2e14(0x15c)+_0x330d29+_0x2d2e14(0x135)+_0x1deed9,_0x2d2e14(0x13e));return{'execute':async()=>{const _0x53ad1a=_0x2d2e14;await _0x24457d[_0x53ad1a(0x11b)];},'abortController':_0x24457d[_0x2d2e14(0xf7)]};}[_0x227e53(0x13c)](_0x1e2eb3,_0x1ddf73){const _0x295c58=_0x227e53,_0x2d8509=this[_0x295c58(0x12e)](_0x295c58(0x15c)+_0x1e2eb3+_0x295c58(0x145)+_0x1ddf73,_0x295c58(0x13e));return{'execute':async()=>{const _0x5530ce=_0x295c58;await _0x2d8509[_0x5530ce(0x11b)];},'abortController':_0x2d8509[_0x295c58(0xf7)]};}[_0x227e53(0x13f)]({reviewName:_0x475faa,content:_0x5174ae,args:_0x2d014e}){const _0x582697=_0x227e53,_0x3ebe6e=this[_0x582697(0x12e)](_0x582697(0x108)+_0x475faa+_0x582697(0x15d),_0x582697(0x117),{'content':[{'type':_0x582697(0x120),'content':_0x5174ae}],'args':_0x2d014e});return{'getStream':async()=>{const _0x4ff725=_0x582697,_0x6217e5=(await _0x3ebe6e[_0x4ff725(0x11b)])[_0x4ff725(0xda)];return this[_0x4ff725(0x121)](_0x6217e5);},'abortController':_0x3ebe6e[_0x582697(0xf7)]};}[_0x227e53(0x13b)]({content:_0x24019b,prompt:_0x59f57a,model:_0xe9fe3}){const _0x2731f9=_0x227e53,_0x3d4a4d=this[_0x2731f9(0x12e)](_0x2731f9(0x155),_0x2731f9(0x117),{'content':[{'type':_0x2731f9(0x120),'content':_0x24019b}],'prompt':_0x59f57a,'model':_0xe9fe3});return{'getStream':async()=>{const _0x480960=_0x2731f9,_0x10e635=(await _0x3d4a4d[_0x480960(0x11b)])[_0x480960(0xda)];return this[_0x480960(0x121)](_0x10e635);},'abortController':_0x3d4a4d[_0x2731f9(0xf7)]};}[_0x227e53(0xfa)](_0x4fbe0b,_0x34bf2a,_0x2365ce){const _0x4821e2=_0x227e53,_0x1ff94f=this[_0x4821e2(0x12e)](_0x4821e2(0x15c)+_0x4fbe0b+_0x4821e2(0x148)+_0x34bf2a+_0x4821e2(0x12d),_0x4821e2(0xd8),{'positiveCount':_0x2365ce[_0x4821e2(0x13d)],'totalCount':_0x2365ce[_0x4821e2(0x114)],'modificationId':_0x2365ce[_0x4821e2(0x133)]});return{'execute':async()=>{const _0x3aa219=_0x4821e2;await _0x1ff94f[_0x3aa219(0x11b)];},'abortController':_0x1ff94f[_0x4821e2(0xf7)]};}[_0x227e53(0x14c)](_0xb952c0,_0x3c635f,_0x15f4cc){const _0x5080b9=_0x227e53,_0x32c1fc=this[_0x5080b9(0x12e)](_0x5080b9(0xd4)+_0xb952c0+_0x5080b9(0x157)+_0x3c635f+_0x5080b9(0x12d),_0x5080b9(0xd8),{'positiveCount':_0x15f4cc[_0x5080b9(0x13d)],'totalCount':_0x15f4cc[_0x5080b9(0x114)]});return{'execute':async()=>{const _0x4aa31b=_0x5080b9;await _0x32c1fc[_0x4aa31b(0x11b)];},'abortController':_0x32c1fc[_0x5080b9(0xf7)]};}[_0x227e53(0xed)](_0x5ba867,_0x594538){const _0x2ad985=_0x227e53,_0x4d972b=this[_0x2ad985(0x12e)](_0x2ad985(0x10d)+_0x5ba867+_0x2ad985(0x12d),_0x2ad985(0xd8),{'positiveCount':_0x594538[_0x2ad985(0x13d)],'totalCount':_0x594538[_0x2ad985(0x114)]});return{'execute':async()=>{const _0x310f1c=_0x2ad985;await _0x4d972b[_0x310f1c(0x11b)];},'abortController':_0x4d972b[_0x2ad985(0xf7)]};}[_0x227e53(0x105)](_0x4afb03,_0x5c6755,_0x5e0a84,_0x3fc77a){const _0x43222a=_0x227e53,_0x58c455=this[_0x43222a(0x12e)](_0x43222a(0x108)+_0x4afb03+_0x43222a(0x157)+_0x5c6755+_0x43222a(0x12d),_0x43222a(0xd8),{'positiveCount':_0x5e0a84[_0x43222a(0x13d)],'totalCount':_0x5e0a84[_0x43222a(0x114)],'dataId':_0x3fc77a});return{'execute':async()=>{const _0x41afbb=_0x43222a;await _0x58c455[_0x41afbb(0x11b)];},'abortController':_0x58c455[_0x43222a(0xf7)]};}[_0x227e53(0xd6)](_0x1f354c,_0x84a23a,_0x4650da){const _0x198021=_0x227e53,_0x4f1879=this[_0x198021(0x12e)](_0x198021(0x15e)+_0x1f354c+_0x198021(0x12d),_0x198021(0xd8),{'positiveCount':_0x84a23a[_0x198021(0x13d)],'totalCount':_0x84a23a[_0x198021(0x114)],'dataId':_0x4650da});return{'execute':async()=>{const _0x58c42f=_0x198021;await _0x4f1879[_0x58c42f(0x11b)];},'abortController':_0x4f1879[_0x198021(0xf7)]};}[_0x227e53(0x12e)](_0x1c81c4,_0x43c5bc,_0x44940c){const _0x7869c6=_0x227e53,_0x31231b=new AbortController(),_0x5bf620=_0x44940c instanceof FormData,_0x15e8d1={'Authorization':_0x7869c6(0x102)+this[_0x7869c6(0x125)]?.[_0x7869c6(0xe0)]};_0x44940c&&!_0x5bf620&&(_0x15e8d1[_0x7869c6(0x15a)]=_0x7869c6(0x11d));const _0x1117e3={'method':_0x43c5bc,'headers':_0x15e8d1,'signal':_0x31231b[_0x7869c6(0x152)]};return _0x44940c&&(_0x1117e3[_0x7869c6(0xda)]=_0x5bf620?_0x44940c:JSON[_0x7869c6(0xf5)](_0x44940c)),{'request':fetch(''+this[_0x7869c6(0x129)]+_0x1c81c4,_0x1117e3)[_0x7869c6(0xe6)](_0x56091b=>{const _0x1cacbb=_0x7869c6;this[_0x1cacbb(0xcd)](_0x56091b);})[_0x7869c6(0x15b)](_0x12dc54=>_0x12dc54['ok']?_0x12dc54:_0x12dc54[_0x7869c6(0x132)]()[_0x7869c6(0x15b)](_0x1207cb=>{const _0x252290=_0x7869c6;throw{'url':this[_0x252290(0x129)],'path':_0x1c81c4,'method':_0x43c5bc,'body':_0x44940c,'status':(_0x12dc54||{})[_0x252290(0x10b)],'statusText':(_0x12dc54||{})[_0x252290(0xeb)],'code':_0x1207cb[_0x252290(0xee)],'message':_0x1207cb[_0x252290(0x109)],'traceId':_0x1207cb[_0x252290(0x143)]};})),'abortController':_0x31231b};}async*[_0x227e53(0x121)](_0x28a39a){const _0x41c1d3=_0x227e53,_0x211b29=[],_0xb4604a=_0x28a39a[_0x41c1d3(0x10a)](),_0x584f21=_0x3f14ab({'onError':_0x17f5b2=>{const _0x3aae5f=_0x41c1d3;this[_0x3aae5f(0xcd)](_0x17f5b2);},'onEvent':_0x5128f5=>{const _0x143664=_0x41c1d3;_0x5128f5[_0x143664(0x11c)]=JSON[_0x143664(0x144)](_0x5128f5[_0x143664(0x11c)]),_0x211b29[_0x143664(0x138)](_0x5128f5);}});try{let _0x190120=!0x1;for(;!_0x190120;){const {done:_0x513ba9,value:_0x3724c4}=await _0xb4604a[_0x41c1d3(0x14d)]();_0x513ba9&&(_0x190120=!0x0),_0x584f21[_0x41c1d3(0xfc)](this[_0x41c1d3(0x142)][_0x41c1d3(0x14f)](_0x3724c4,{'stream':!0x0})),yield*_0x211b29,_0x211b29[_0x41c1d3(0x10c)]=0x0;}}catch(_0x5425bf){this[_0x41c1d3(0xcd)](_0x5425bf);}finally{_0xb4604a[_0x41c1d3(0x151)](),_0x584f21[_0x41c1d3(0xde)]();}}[_0x227e53(0xcd)](_0x4f6cc3){const _0x3c115a=_0x227e53;if(_0x4f6cc3 instanceof _0x5c28f1)throw _0x4f6cc3;if(_0x4f6cc3 instanceof Error&&_0x3c115a(0xd1)===_0x4f6cc3[_0x3c115a(0xfe)])throw new _0x5c28f1(_0x3c115a(0xfd),this,{'originalError':_0x4f6cc3});throw new _0x5c28f1(_0x3c115a(0xe7),this,{'originalError':_0x4f6cc3});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2fb984=_0x3fc8;(function(_0x3823aa,_0x4e22f5){const _0x15adc0=_0x3fc8,_0x37b412=_0x3823aa();while(!![]){try{const _0x388e31=parseInt(_0x15adc0(0x1ad))/0x1*(-parseInt(_0x15adc0(0x13c))/0x2)+-parseInt(_0x15adc0(0x195))/0x3+-parseInt(_0x15adc0(0x191))/0x4*(parseInt(_0x15adc0(0x198))/0x5)+parseInt(_0x15adc0(0x199))/0x6*(-parseInt(_0x15adc0(0x152))/0x7)+-parseInt(_0x15adc0(0x151))/0x8*(-parseInt(_0x15adc0(0x169))/0x9)+parseInt(_0x15adc0(0x186))/0xa*(parseInt(_0x15adc0(0x17e))/0xb)+parseInt(_0x15adc0(0x19d))/0xc;if(_0x388e31===_0x4e22f5)break;else _0x37b412['push'](_0x37b412['shift']());}catch(_0x18ed7f){_0x37b412['push'](_0x37b412['shift']());}}}(_0x24eb,0xa5a6a));import{ViewDowncastWriter as _0x101b34}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x244736,Editor as _0x547ac8}from'ckeditor5/src/core.js';function _0x24eb(){const _0x6564=['markerToElement','listenTo','ck-fake-ai-selection','ai-selection:','_outputDataProcessor','view','98296xYhfPT','259HZEHwo','viewToDom','define','editors','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','has','isAtEnd','end','add','random','context','_displayedFakeSelectionLocked','document','from',':start>','AIEditing','join','isAfter','getSelection','length','_integrateEditor','selection','pluginName','333CcsxhA','ck-ai-assistant-ui_theme','addMarker','getStart','hideFakeVisualSelection','change',':end></','containerElement','ready','indexOf','schema','isPremiumPlugin','getItems','model','convertAiChatSelectionMarker','getHtml','markerToHighlight','_setOutputDataProcessor','htmlWriter','_getMarkersInDocumentOrder','getRanges','99bfSOqe','for','config','createUIElement','version','data-id','dataDowncast','_displayedFakeSelectionId','577890tqKExa','markers','ai-selection','markerName','isOpening',':end>','editingDowncast','sessionId','editing','emptyElement','getRoot','176GZswLZ','ai.models.showModelSelector','data','getLastMatchingPosition','3931710cCTPxX','_sessionId','getSelectionText','46245CVazHB','167592nATecH','showFakeVisualSelection','_nextDataId','getMarkersGroup','37302348PiLxps','trim','substring','element','isBefore','$textProxy','_getDocumentDataStringFromView','getChildren','domConverter','conversion','isContent','toData','createRange','locale','sort',':start></','11469qKteCX','removeMarker','start','floor','get','114SWrufb','afterInit','processor','RealTimeCollaborationClient','removeAllRanges','push','isOfficialPlugin','fromCharCode','plugins','toView','_setDataIdsOnChildren','getDocumentData','setAttribute','name','modelToDataWithIds'];_0x24eb=function(){return _0x6564;};return _0x24eb();}import{uid as _0x5213cd}from'ckeditor5/src/utils.js';function _0x3fc8(_0x50197b,_0x12ea02){const _0x24eb5e=_0x24eb();return _0x3fc8=function(_0x3fc87a,_0x569e79){_0x3fc87a=_0x3fc87a-0x139;let _0x55a56a=_0x24eb5e[_0x3fc87a];return _0x55a56a;},_0x3fc8(_0x50197b,_0x12ea02);}import{getTranslation as _0x2308f3}from'./utils/common-translations.js';import{getEditorFromContext as _0x15dd3a}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x2fb984(0x188);export class AIEditing extends _0x244736{constructor(_0x4a2532){const _0x2afc38=_0x2fb984;super(_0x4a2532),this[_0x2afc38(0x15c)][_0x2afc38(0x180)][_0x2afc38(0x154)](_0x2afc38(0x192),!0x0);}[_0x2fb984(0x14f)];[_0x2fb984(0x185)]=null;[_0x2fb984(0x15d)]=!0x1;[_0x2fb984(0x196)];static get[_0x2fb984(0x168)](){const _0x3bbd4d=_0x2fb984;return _0x3bbd4d(0x161);}static get[_0x2fb984(0x142)](){return!0x0;}static get[_0x2fb984(0x174)](){return!0x0;}get[_0x2fb984(0x18d)](){const _0x54de22=_0x2fb984;if(!this[_0x54de22(0x196)]){const _0x36a087=_0x15dd3a(this[_0x54de22(0x15c)]),_0x384bba=_0x36a087[_0x54de22(0x144)][_0x54de22(0x157)](_0x54de22(0x13f))&&_0x36a087[_0x54de22(0x144)][_0x54de22(0x13b)](_0x54de22(0x13f))[_0x54de22(0x18d)];this[_0x54de22(0x196)]=_0x384bba||_0x5213cd();}return this[_0x54de22(0x196)];}async[_0x2fb984(0x147)](){const _0x5c2c12=_0x2fb984,_0xbf65ad=_0x15dd3a(this[_0x5c2c12(0x15c)]),_0x4bd40a=_0xbf65ad[_0x5c2c12(0x176)],_0x3d6959=_0xbf65ad[_0x5c2c12(0x193)][_0x5c2c12(0x145)](_0x4bd40a[_0x5c2c12(0x15e)][_0x5c2c12(0x190)](),{'convertAiChatSelectionMarker':!0x0}),_0x5e3a0c=new _0x101b34(_0xbf65ad[_0x5c2c12(0x18e)][_0x5c2c12(0x150)][_0x5c2c12(0x15e)]);this[_0x5c2c12(0x146)](_0x3d6959,_0x5e3a0c);let _0x3a15fa=await this[_0x5c2c12(0x1a3)](_0x3d6959);const _0x16499a=this[_0x5c2c12(0x17c)](),_0x3d9ca2=[];for(const _0x3e0324 of _0x16499a){const _0x57e7ac='<'+_0x3e0324[_0x5c2c12(0x149)]+_0x5c2c12(0x1ac)+_0x3e0324[_0x5c2c12(0x149)]+_0x5c2c12(0x160),_0x57d239=_0x3a15fa[_0x5c2c12(0x172)](_0x57e7ac);_0x3a15fa=_0x3a15fa[_0x5c2c12(0x19f)](0x0,_0x57d239)+_0x3a15fa[_0x5c2c12(0x19f)](_0x57d239+_0x57e7ac[_0x5c2c12(0x165)]);const _0x48e0cd='<'+_0x3e0324[_0x5c2c12(0x149)]+_0x5c2c12(0x16f)+_0x3e0324[_0x5c2c12(0x149)]+_0x5c2c12(0x18b),_0xc33083=_0x3a15fa[_0x5c2c12(0x172)](_0x48e0cd);_0x3a15fa=_0x3a15fa[_0x5c2c12(0x19f)](0x0,_0xc33083)+_0x3a15fa[_0x5c2c12(0x19f)](_0xc33083+_0x48e0cd[_0x5c2c12(0x165)]),_0x3d9ca2[_0x5c2c12(0x141)]({'markerName':_0x3e0324[_0x5c2c12(0x149)],'start':_0x57d239,'end':_0xc33083,'htmlFragment':_0x3a15fa[_0x5c2c12(0x19f)](_0x57d239,_0xc33083)});}return{'content':_0x3a15fa,'version':_0xbf65ad[_0x5c2c12(0x176)][_0x5c2c12(0x15e)][_0x5c2c12(0x182)],'sessionId':this[_0x5c2c12(0x18d)],'selections':_0x3d9ca2};}async[_0x2fb984(0x13d)](){const _0x30da80=_0x2fb984;this[_0x30da80(0x15c)]instanceof _0x547ac8?this[_0x30da80(0x166)](this[_0x30da80(0x15c)]):this[_0x30da80(0x14c)](this[_0x30da80(0x15c)][_0x30da80(0x155)],_0x30da80(0x15a),(_0x39ad89,_0x34d820)=>{const _0x3ac0ac=_0x30da80;_0x34d820['on'](_0x3ac0ac(0x171),()=>{const _0xd08f6d=_0x3ac0ac;this[_0xd08f6d(0x166)](_0x34d820);});});}[_0x2fb984(0x17a)](_0x1b2337){const _0x2dd3ba=_0x2fb984;this[_0x2dd3ba(0x14f)]=_0x1b2337;}async[_0x2fb984(0x1a3)](_0x5b4154){const _0x4f3d81=_0x2fb984;let _0x3b6c83;const _0x2a49b8=_0x15dd3a(this[_0x4f3d81(0x15c)]);if(this[_0x4f3d81(0x14f)]){const _0x5f2749=_0x2a49b8[_0x4f3d81(0x193)][_0x4f3d81(0x13e)][_0x4f3d81(0x1a5)][_0x4f3d81(0x153)](_0x5b4154),_0x4d67cf=await this[_0x4f3d81(0x14f)](_0x5f2749);_0x3b6c83=_0x2a49b8[_0x4f3d81(0x193)][_0x4f3d81(0x13e)][_0x4f3d81(0x17b)][_0x4f3d81(0x178)](_0x4d67cf);}else _0x3b6c83=_0x2a49b8[_0x4f3d81(0x193)][_0x4f3d81(0x13e)][_0x4f3d81(0x1a8)](_0x5b4154);return _0x3b6c83;}[_0x2fb984(0x166)](_0x23d6f9){const _0x3c8381=_0x2fb984;_0x23d6f9[_0x3c8381(0x1a6)][_0x3c8381(0x17f)](_0x3c8381(0x18c))[_0x3c8381(0x179)]({'model':_0x3c8381(0x188),'view':{'classes':[_0x3c8381(0x14d),_0x3c8381(0x16a)],'priority':0xc}}),_0x23d6f9[_0x3c8381(0x1a6)][_0x3c8381(0x17f)](_0x3c8381(0x184))[_0x3c8381(0x14b)]({'model':_0x3c8381(0x188),'view':(_0x1706d6,{writer:_0x50136f,options:_0x2376b7})=>_0x2376b7[_0x3c8381(0x177)]?_0x50136f[_0x3c8381(0x181)](_0x1706d6[_0x3c8381(0x189)]+':'+(_0x1706d6[_0x3c8381(0x18a)]?_0x3c8381(0x139):_0x3c8381(0x159))):null});}[_0x2fb984(0x19a)](_0x2270ec,_0x38253a,_0x273af2=!0x1,_0x27dbe8=!0x1){const _0x3efb43=_0x2fb984;if(this[_0x3efb43(0x15d)]&&!_0x27dbe8)return!0x1;const _0x2644ed=_0x15dd3a(this[_0x3efb43(0x15c)])[_0x3efb43(0x176)];return _0x2644ed[_0x3efb43(0x16e)](_0x228618=>{const _0x32555e=_0x3efb43;this[_0x32555e(0x185)]&&this[_0x32555e(0x16d)](this[_0x32555e(0x185)]),this[_0x32555e(0x185)]=_0x38253a,this[_0x32555e(0x15d)]=_0x273af2;let _0x13ebd4=0x0;for(let _0xee4e4a of _0x2270ec){const _0x1dfe19=_0x32555e(0x14e)+_0x13ebd4;if(_0xee4e4a[_0x32555e(0x139)][_0x32555e(0x158)]){const _0x5855cb=_0xee4e4a[_0x32555e(0x139)][_0x32555e(0x194)](({item:_0x14a65a})=>!_0x2644ed[_0x32555e(0x173)][_0x32555e(0x1a7)](_0x14a65a),{'boundaries':_0xee4e4a});_0xee4e4a=_0x228618[_0x32555e(0x1a9)](_0x5855cb,_0xee4e4a[_0x32555e(0x159)]);}_0x228618[_0x32555e(0x16b)](_0x1dfe19,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0xee4e4a}),_0x13ebd4++;}}),window[_0x3efb43(0x164)]()?.[_0x3efb43(0x140)](),!0x0;}[_0x2fb984(0x16d)](_0x305806){const _0x38eca1=_0x2fb984;if(this[_0x38eca1(0x185)]!=_0x305806)return!0x1;this[_0x38eca1(0x185)]=null,this[_0x38eca1(0x15d)]=!0x1;const _0x4a9bf2=_0x15dd3a(this[_0x38eca1(0x15c)]),_0x27aadf=_0x4a9bf2[_0x38eca1(0x176)][_0x38eca1(0x187)][_0x38eca1(0x19c)](_0x38eca1(0x188));return _0x4a9bf2[_0x38eca1(0x176)][_0x38eca1(0x16e)](_0xee9c98=>{const _0x2998a4=_0x38eca1;for(const _0x262919 of _0x27aadf)_0xee9c98[_0x2998a4(0x1ae)](_0x262919);}),!0x0;}async[_0x2fb984(0x14a)](_0x3e8dc7){const _0xb04cbe=_0x2fb984,_0x422c8e=_0x15dd3a(this[_0xb04cbe(0x15c)]),_0x664a14=_0x422c8e[_0xb04cbe(0x193)][_0xb04cbe(0x145)](_0x3e8dc7),_0x4cdde6=new _0x101b34(_0x422c8e[_0xb04cbe(0x18e)][_0xb04cbe(0x150)][_0xb04cbe(0x15e)]);return this[_0xb04cbe(0x146)](_0x664a14,_0x4cdde6),this[_0xb04cbe(0x1a3)](_0x664a14);}[_0x2fb984(0x146)](_0x3fe8d4,_0x271e4c){const _0x56f857=_0x2fb984;let _0x5152de=!0x1;const _0x2ccde9=new Set();for(const _0x3bdbd4 of _0x3fe8d4[_0x56f857(0x1a4)]()){const _0x6b1274=_0x3bdbd4['is'](_0x56f857(0x18f))||_0x3bdbd4['is'](_0x56f857(0x170));if(!_0x3bdbd4['is'](_0x56f857(0x1a0)))continue;(this[_0x56f857(0x146)](_0x3bdbd4,_0x271e4c)||_0x6b1274)&&(_0x271e4c[_0x56f857(0x148)](_0x56f857(0x183),this[_0x56f857(0x19b)](_0x2ccde9),_0x3bdbd4),_0x5152de=!0x0);}return _0x5152de;}[_0x2fb984(0x19b)](_0x55e597){const _0x3e1e1b=_0x2fb984;let _0x20e333;do{_0x20e333='';for(let _0x3ae4e6=0x0;_0x3ae4e6<0x4;_0x3ae4e6++)_0x20e333+=String[_0x3e1e1b(0x143)](0x61+Math[_0x3e1e1b(0x13a)](0x1a*Math[_0x3e1e1b(0x15b)]()));}while(_0x55e597[_0x3e1e1b(0x157)](_0x20e333));return _0x55e597[_0x3e1e1b(0x15a)](_0x20e333),_0x20e333;}[_0x2fb984(0x197)](){const _0x20821d=_0x2fb984,{model:_0x317dd4}=_0x15dd3a(this[_0x20821d(0x15c)]),_0x18e8a4=_0x317dd4[_0x20821d(0x15e)][_0x20821d(0x167)],_0x22fdbb=[];for(const _0x187ac2 of _0x18e8a4[_0x20821d(0x17d)]())for(const _0x28ad8d of _0x187ac2[_0x20821d(0x175)]())_0x28ad8d['is'](_0x20821d(0x1a2))?_0x22fdbb[_0x20821d(0x141)](_0x28ad8d[_0x20821d(0x193)]):_0x28ad8d['is'](_0x20821d(0x1a0))&&_0x22fdbb[_0x20821d(0x165)]>0x0&&'\x20'!==_0x22fdbb[_0x22fdbb[_0x20821d(0x165)]-0x1]&&_0x22fdbb[_0x20821d(0x141)]('\x20');return _0x22fdbb[_0x20821d(0x165)]?'\x22'+_0x22fdbb[_0x20821d(0x162)]('')[_0x20821d(0x19e)]()+'\x22':_0x2308f3(this[_0x20821d(0x15c)][_0x20821d(0x1aa)],_0x20821d(0x156));}[_0x2fb984(0x17c)](){const _0x7f5fe7=_0x2fb984,_0x7ef9cb=_0x15dd3a(this[_0x7f5fe7(0x15c)])[_0x7f5fe7(0x176)];return Array[_0x7f5fe7(0x15f)](_0x7ef9cb[_0x7f5fe7(0x187)][_0x7f5fe7(0x19c)](_0x7f5fe7(0x188)))[_0x7f5fe7(0x1ab)]((_0x253ecb,_0x3be55b)=>_0x253ecb[_0x7f5fe7(0x16c)]()[_0x7f5fe7(0x1a1)](_0x3be55b[_0x7f5fe7(0x16c)]())?-0x1:_0x253ecb[_0x7f5fe7(0x16c)]()[_0x7f5fe7(0x163)](_0x3be55b[_0x7f5fe7(0x16c)]())?0x1:0x0);}}
23
+ function _0x1732(){const _0x49792e=['markerToElement','1720216SHxqKc','domConverter','name','ck-fake-ai-selection','toData','setAttribute','2090200vQMbVJ','editingDowncast','emptyElement','removeAllRanges','hideFakeVisualSelection','getDocumentData','2941070dwkfSp','schema','isPremiumPlugin','ai-selection:','ai-selection','change',':start>','ready','join',':end></','editors','removeMarker','for','containerElement',':start></','length','2PmhXGp','getChildren','document','get','data','_outputDataProcessor','listenTo','start','view','from','afterInit','dataDowncast','addMarker','substring','config','markerToHighlight','modelToDataWithIds','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','createUIElement','context','_nextDataId','_displayedFakeSelectionId','model','conversion','editing','element','showFakeVisualSelection','AIEditing','isBefore','getRoot','35njtnDM','plugins','toView','processor',':end>','sessionId','random','getLastMatchingPosition','getSelection','3sbPYMx','data-id','RealTimeCollaborationClient','_setDataIdsOnChildren','_displayedFakeSelectionLocked','784588CgMlRU','$textProxy','isOpening','_getDocumentDataStringFromView','_getMarkersInDocumentOrder','add','fromCharCode','211014ArDrHj','viewToDom','getRanges','_sessionId','9agTgsl','isAfter','push','isOfficialPlugin','indexOf','_setOutputDataProcessor','createRange','getMarkersGroup','getStart','isAtEnd','define','isContent','trim','1815726njElYq','82333MuNXTL','getHtml','markers','selection','markerName','end','getItems','pluginName','_integrateEditor','floor','htmlWriter','sort','has','ck-ai-assistant-ui_theme','convertAiChatSelectionMarker','ai.models.showModelSelector','version','getSelectionText','locale'];_0x1732=function(){return _0x49792e;};return _0x1732();}const _0x53cdb6=_0x3f81;(function(_0x506e2f,_0x7228b3){const _0xf55da4=_0x3f81,_0x3e1f9e=_0x506e2f();while(!![]){try{const _0x1df96c=-parseInt(_0xf55da4(0x1ca))/0x1*(-parseInt(_0xf55da4(0x1fa))/0x2)+parseInt(_0xf55da4(0x1ac))/0x3*(-parseInt(_0xf55da4(0x1b1))/0x4)+parseInt(_0xf55da4(0x1a3))/0x5*(parseInt(_0xf55da4(0x1b8))/0x6)+parseInt(_0xf55da4(0x1e4))/0x7+-parseInt(_0xf55da4(0x1de))/0x8*(-parseInt(_0xf55da4(0x1bc))/0x9)+-parseInt(_0xf55da4(0x1ea))/0xa+-parseInt(_0xf55da4(0x1c9))/0xb;if(_0x1df96c===_0x7228b3)break;else _0x3e1f9e['push'](_0x3e1f9e['shift']());}catch(_0x464552){_0x3e1f9e['push'](_0x3e1f9e['shift']());}}}(_0x1732,0x2d9c7));import{ViewDowncastWriter as _0x5488a2}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x21be80,Editor as _0x14cf1c}from'ckeditor5/src/core.js';import{uid as _0x18e2e4}from'ckeditor5/src/utils.js';import{getTranslation as _0x262bcb}from'./utils/common-translations.js';import{getEditorFromContext as _0x492105}from'./utils/geteditorfromcontext.js';function _0x3f81(_0x43deaa,_0x1b69b5){const _0x173234=_0x1732();return _0x3f81=function(_0x3f8149,_0x3ee1b1){_0x3f8149=_0x3f8149-0x196;let _0x570715=_0x173234[_0x3f8149];return _0x570715;},_0x3f81(_0x43deaa,_0x1b69b5);}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x53cdb6(0x1ee);export class AIEditing extends _0x21be80{constructor(_0x24b0e2){const _0x585953=_0x53cdb6;super(_0x24b0e2),this[_0x585953(0x198)][_0x585953(0x208)][_0x585953(0x1c6)](_0x585953(0x1d9),!0x0);}[_0x53cdb6(0x1ff)];[_0x53cdb6(0x19a)]=null;[_0x53cdb6(0x1b0)]=!0x1;[_0x53cdb6(0x1bb)];static get[_0x53cdb6(0x1d1)](){const _0xfb9dd0=_0x53cdb6;return _0xfb9dd0(0x1a0);}static get[_0x53cdb6(0x1bf)](){return!0x0;}static get[_0x53cdb6(0x1ec)](){return!0x0;}get[_0x53cdb6(0x1a8)](){const _0xc11d93=_0x53cdb6;if(!this[_0xc11d93(0x1bb)]){const _0x5bf3ae=_0x492105(this[_0xc11d93(0x198)]),_0x470115=_0x5bf3ae[_0xc11d93(0x1a4)][_0xc11d93(0x1d6)](_0xc11d93(0x1ae))&&_0x5bf3ae[_0xc11d93(0x1a4)][_0xc11d93(0x1fd)](_0xc11d93(0x1ae))[_0xc11d93(0x1a8)];this[_0xc11d93(0x1bb)]=_0x470115||_0x18e2e4();}return this[_0xc11d93(0x1bb)];}async[_0x53cdb6(0x1e9)](){const _0x4a8fa8=_0x53cdb6,_0x18725f=_0x492105(this[_0x4a8fa8(0x198)]),_0x37776d=_0x18725f[_0x4a8fa8(0x19b)],_0x24e7c2=_0x18725f[_0x4a8fa8(0x1fe)][_0x4a8fa8(0x1a5)](_0x37776d[_0x4a8fa8(0x1fc)][_0x4a8fa8(0x1a2)](),{'convertAiChatSelectionMarker':!0x0}),_0x128d8d=new _0x5488a2(_0x18725f[_0x4a8fa8(0x19d)][_0x4a8fa8(0x202)][_0x4a8fa8(0x1fc)]);this[_0x4a8fa8(0x1af)](_0x24e7c2,_0x128d8d);let _0x575b98=await this[_0x4a8fa8(0x1b4)](_0x24e7c2);const _0xf965db=this[_0x4a8fa8(0x1b5)](),_0x45304a=[];for(const _0x24880 of _0xf965db){const _0xe6812d='<'+_0x24880[_0x4a8fa8(0x1e0)]+_0x4a8fa8(0x1f8)+_0x24880[_0x4a8fa8(0x1e0)]+_0x4a8fa8(0x1f0),_0x489d9c=_0x575b98[_0x4a8fa8(0x1c0)](_0xe6812d);_0x575b98=_0x575b98[_0x4a8fa8(0x207)](0x0,_0x489d9c)+_0x575b98[_0x4a8fa8(0x207)](_0x489d9c+_0xe6812d[_0x4a8fa8(0x1f9)]);const _0x234474='<'+_0x24880[_0x4a8fa8(0x1e0)]+_0x4a8fa8(0x1f3)+_0x24880[_0x4a8fa8(0x1e0)]+_0x4a8fa8(0x1a7),_0x30bde6=_0x575b98[_0x4a8fa8(0x1c0)](_0x234474);_0x575b98=_0x575b98[_0x4a8fa8(0x207)](0x0,_0x30bde6)+_0x575b98[_0x4a8fa8(0x207)](_0x30bde6+_0x234474[_0x4a8fa8(0x1f9)]),_0x45304a[_0x4a8fa8(0x1be)]({'markerName':_0x24880[_0x4a8fa8(0x1e0)],'start':_0x489d9c,'end':_0x30bde6,'htmlFragment':_0x575b98[_0x4a8fa8(0x207)](_0x489d9c,_0x30bde6)});}return{'content':_0x575b98,'version':_0x18725f[_0x4a8fa8(0x19b)][_0x4a8fa8(0x1fc)][_0x4a8fa8(0x1da)],'sessionId':this[_0x4a8fa8(0x1a8)],'selections':_0x45304a};}async[_0x53cdb6(0x204)](){const _0x409692=_0x53cdb6;this[_0x409692(0x198)]instanceof _0x14cf1c?this[_0x409692(0x1d2)](this[_0x409692(0x198)]):this[_0x409692(0x200)](this[_0x409692(0x198)][_0x409692(0x1f4)],_0x409692(0x1b6),(_0xab1cb2,_0x42b415)=>{const _0x599eb8=_0x409692;_0x42b415['on'](_0x599eb8(0x1f1),()=>{const _0x252fc9=_0x599eb8;this[_0x252fc9(0x1d2)](_0x42b415);});});}[_0x53cdb6(0x1c1)](_0x3edc16){const _0x225fd4=_0x53cdb6;this[_0x225fd4(0x1ff)]=_0x3edc16;}async[_0x53cdb6(0x1b4)](_0x23d161){const _0x2b383b=_0x53cdb6;let _0x170d39;const _0x3c6935=_0x492105(this[_0x2b383b(0x198)]);if(this[_0x2b383b(0x1ff)]){const _0x4e4fe2=_0x3c6935[_0x2b383b(0x1fe)][_0x2b383b(0x1a6)][_0x2b383b(0x1df)][_0x2b383b(0x1b9)](_0x23d161),_0xfdbc6d=await this[_0x2b383b(0x1ff)](_0x4e4fe2);_0x170d39=_0x3c6935[_0x2b383b(0x1fe)][_0x2b383b(0x1a6)][_0x2b383b(0x1d4)][_0x2b383b(0x1cb)](_0xfdbc6d);}else _0x170d39=_0x3c6935[_0x2b383b(0x1fe)][_0x2b383b(0x1a6)][_0x2b383b(0x1e2)](_0x23d161);return _0x170d39;}[_0x53cdb6(0x1d2)](_0x32739e){const _0x30c5a3=_0x53cdb6;_0x32739e[_0x30c5a3(0x19c)][_0x30c5a3(0x1f6)](_0x30c5a3(0x1e5))[_0x30c5a3(0x209)]({'model':_0x30c5a3(0x1ee),'view':{'classes':[_0x30c5a3(0x1e1),_0x30c5a3(0x1d7)],'priority':0xc}}),_0x32739e[_0x30c5a3(0x19c)][_0x30c5a3(0x1f6)](_0x30c5a3(0x205))[_0x30c5a3(0x1dd)]({'model':_0x30c5a3(0x1ee),'view':(_0xc4799b,{writer:_0x2232d6,options:_0x1cea82})=>_0x1cea82[_0x30c5a3(0x1d8)]?_0x2232d6[_0x30c5a3(0x197)](_0xc4799b[_0x30c5a3(0x1ce)]+':'+(_0xc4799b[_0x30c5a3(0x1b3)]?_0x30c5a3(0x201):_0x30c5a3(0x1cf))):null});}[_0x53cdb6(0x19f)](_0x38294d,_0x374f41,_0x8d9426=!0x1,_0x51984a=!0x1){const _0x3ce67b=_0x53cdb6;if(this[_0x3ce67b(0x1b0)]&&!_0x51984a)return!0x1;const _0x3551d3=_0x492105(this[_0x3ce67b(0x198)])[_0x3ce67b(0x19b)];return _0x3551d3[_0x3ce67b(0x1ef)](_0xfeceaf=>{const _0x2f66fd=_0x3ce67b;this[_0x2f66fd(0x19a)]&&this[_0x2f66fd(0x1e8)](this[_0x2f66fd(0x19a)]),this[_0x2f66fd(0x19a)]=_0x374f41,this[_0x2f66fd(0x1b0)]=_0x8d9426;let _0x4e2112=0x0;for(let _0x2a5de1 of _0x38294d){const _0x16aab9=_0x2f66fd(0x1ed)+_0x4e2112;if(_0x2a5de1[_0x2f66fd(0x201)][_0x2f66fd(0x1c5)]){const _0x11f917=_0x2a5de1[_0x2f66fd(0x201)][_0x2f66fd(0x1aa)](({item:_0xe46b2d})=>!_0x3551d3[_0x2f66fd(0x1eb)][_0x2f66fd(0x1c7)](_0xe46b2d),{'boundaries':_0x2a5de1});_0x2a5de1=_0xfeceaf[_0x2f66fd(0x1c2)](_0x11f917,_0x2a5de1[_0x2f66fd(0x1cf)]);}_0xfeceaf[_0x2f66fd(0x206)](_0x16aab9,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x2a5de1}),_0x4e2112++;}}),window[_0x3ce67b(0x1ab)]()?.[_0x3ce67b(0x1e7)](),!0x0;}[_0x53cdb6(0x1e8)](_0x4b552b){const _0x260f98=_0x53cdb6;if(this[_0x260f98(0x19a)]!=_0x4b552b)return!0x1;this[_0x260f98(0x19a)]=null,this[_0x260f98(0x1b0)]=!0x1;const _0x15e3be=_0x492105(this[_0x260f98(0x198)]),_0x34dda7=_0x15e3be[_0x260f98(0x19b)][_0x260f98(0x1cc)][_0x260f98(0x1c3)](_0x260f98(0x1ee));return _0x15e3be[_0x260f98(0x19b)][_0x260f98(0x1ef)](_0x3f3480=>{const _0x3fab0c=_0x260f98;for(const _0x15207a of _0x34dda7)_0x3f3480[_0x3fab0c(0x1f5)](_0x15207a);}),!0x0;}async[_0x53cdb6(0x20a)](_0x2da7f2){const _0x5b0d9d=_0x53cdb6,_0x268a7b=_0x492105(this[_0x5b0d9d(0x198)]),_0x135546=_0x268a7b[_0x5b0d9d(0x1fe)][_0x5b0d9d(0x1a5)](_0x2da7f2),_0x515f03=new _0x5488a2(_0x268a7b[_0x5b0d9d(0x19d)][_0x5b0d9d(0x202)][_0x5b0d9d(0x1fc)]);return this[_0x5b0d9d(0x1af)](_0x135546,_0x515f03),this[_0x5b0d9d(0x1b4)](_0x135546);}[_0x53cdb6(0x1af)](_0x1bfbbd,_0x1406c8){const _0x13df5f=_0x53cdb6;let _0xf45669=!0x1;const _0x4cb53f=new Set();for(const _0x1133ec of _0x1bfbbd[_0x13df5f(0x1fb)]()){const _0x5b9a9f=_0x1133ec['is'](_0x13df5f(0x1e6))||_0x1133ec['is'](_0x13df5f(0x1f7));if(!_0x1133ec['is'](_0x13df5f(0x19e)))continue;(this[_0x13df5f(0x1af)](_0x1133ec,_0x1406c8)||_0x5b9a9f)&&(_0x1406c8[_0x13df5f(0x1e3)](_0x13df5f(0x1ad),this[_0x13df5f(0x199)](_0x4cb53f),_0x1133ec),_0xf45669=!0x0);}return _0xf45669;}[_0x53cdb6(0x199)](_0x381b73){const _0x40f3f6=_0x53cdb6;let _0x4531df;do{_0x4531df='';for(let _0x16173a=0x0;_0x16173a<0x4;_0x16173a++)_0x4531df+=String[_0x40f3f6(0x1b7)](0x61+Math[_0x40f3f6(0x1d3)](0x1a*Math[_0x40f3f6(0x1a9)]()));}while(_0x381b73[_0x40f3f6(0x1d6)](_0x4531df));return _0x381b73[_0x40f3f6(0x1b6)](_0x4531df),_0x4531df;}[_0x53cdb6(0x1db)](){const _0x536874=_0x53cdb6,{model:_0x154733}=_0x492105(this[_0x536874(0x198)]),_0x29b758=_0x154733[_0x536874(0x1fc)][_0x536874(0x1cd)],_0x392add=[];for(const _0x2fb28b of _0x29b758[_0x536874(0x1ba)]())for(const _0x3e2b49 of _0x2fb28b[_0x536874(0x1d0)]())_0x3e2b49['is'](_0x536874(0x1b2))?_0x392add[_0x536874(0x1be)](_0x3e2b49[_0x536874(0x1fe)]):_0x3e2b49['is'](_0x536874(0x19e))&&_0x392add[_0x536874(0x1f9)]>0x0&&'\x20'!==_0x392add[_0x392add[_0x536874(0x1f9)]-0x1]&&_0x392add[_0x536874(0x1be)]('\x20');return _0x392add[_0x536874(0x1f9)]?'\x22'+_0x392add[_0x536874(0x1f2)]('')[_0x536874(0x1c8)]()+'\x22':_0x262bcb(this[_0x536874(0x198)][_0x536874(0x1dc)],_0x536874(0x196));}[_0x53cdb6(0x1b5)](){const _0x1dc3d8=_0x53cdb6,_0x1a4306=_0x492105(this[_0x1dc3d8(0x198)])[_0x1dc3d8(0x19b)];return Array[_0x1dc3d8(0x203)](_0x1a4306[_0x1dc3d8(0x1cc)][_0x1dc3d8(0x1c3)](_0x1dc3d8(0x1ee)))[_0x1dc3d8(0x1d5)]((_0x55f5cc,_0x2964b0)=>_0x55f5cc[_0x1dc3d8(0x1c4)]()[_0x1dc3d8(0x1a1)](_0x2964b0[_0x1dc3d8(0x1c4)]())?-0x1:_0x55f5cc[_0x1dc3d8(0x1c4)]()[_0x1dc3d8(0x1bd)](_0x2964b0[_0x1dc3d8(0x1c4)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d5bc8=_0x1203;function _0x426d(){const _0x3b3651=['isReasoningEnabled','isWebSearchEnabled','fire','init','toggleWebSearch','reasoning','16kMHOAi','reset','getCapabilitiesConfig','2528624MnZTqv','18468ltLRHE','598vTtuTj','_isWebSearchEnabled','toggleReasoning','getCapabilitiesRequestData','3356BajEiS','setReasoning','6605126GAAcxm','2490xLxcWL','_isReasoningEnabled','capabilitiesUpdated','1919728tdXtFa','117uDRIxe','webSearch','setWebSearch','980841hOwlUL','160260CNXWja'];_0x426d=function(){return _0x3b3651;};return _0x426d();}(function(_0x3446ce,_0x493d89){const _0x45af3c=_0x1203,_0x501762=_0x3446ce();while(!![]){try{const _0x100c5f=parseInt(_0x45af3c(0x16a))/0x1*(-parseInt(_0x45af3c(0x16e))/0x2)+parseInt(_0x45af3c(0x178))/0x3*(parseInt(_0x45af3c(0x165))/0x4)+parseInt(_0x45af3c(0x171))/0x5*(parseInt(_0x45af3c(0x169))/0x6)+-parseInt(_0x45af3c(0x168))/0x7+parseInt(_0x45af3c(0x174))/0x8+parseInt(_0x45af3c(0x175))/0x9*(-parseInt(_0x45af3c(0x15e))/0xa)+-parseInt(_0x45af3c(0x170))/0xb;if(_0x100c5f===_0x493d89)break;else _0x501762['push'](_0x501762['shift']());}catch(_0x1af647){_0x501762['push'](_0x501762['shift']());}}}(_0x426d,0xdd76e));import{EmitterMixin as _0x3df5b1}from'ckeditor5/src/utils.js';function _0x1203(_0x58fab2,_0x54ab18){const _0x426de1=_0x426d();return _0x1203=function(_0x1203a7,_0x475bb7){_0x1203a7=_0x1203a7-0x15e;let _0x26ae8d=_0x426de1[_0x1203a7];return _0x26ae8d;},_0x1203(_0x58fab2,_0x54ab18);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x4d5bc8(0x173)];export class AICapabilities extends _0x3df5b1(){[_0x4d5bc8(0x16b)];[_0x4d5bc8(0x172)];constructor(){const _0x40b306=_0x4d5bc8;super(),this[_0x40b306(0x16b)]=!0x1,this[_0x40b306(0x172)]=!0x1;}[_0x4d5bc8(0x162)](){const _0x2c7bea=_0x4d5bc8;this[_0x2c7bea(0x166)]();}[_0x4d5bc8(0x166)](){const _0x2f0c8b=_0x4d5bc8;this[_0x2f0c8b(0x177)](!0x1),this[_0x2f0c8b(0x16f)](!0x1);}[_0x4d5bc8(0x167)](){const _0x2ca375=_0x4d5bc8;return{'isWebSearchEnabled':this[_0x2ca375(0x16b)],'isReasoningEnabled':this[_0x2ca375(0x172)]};}static[_0x4d5bc8(0x16d)](_0x57598c){const _0x497fca=_0x4d5bc8,_0x202aeb={};return _0x57598c&&_0x57598c[_0x497fca(0x160)]&&(_0x202aeb[_0x497fca(0x176)]={}),_0x57598c&&_0x57598c[_0x497fca(0x15f)]&&(_0x202aeb[_0x497fca(0x164)]={}),_0x202aeb;}[_0x4d5bc8(0x163)](){const _0x48e94a=_0x4d5bc8;this[_0x48e94a(0x177)](!this[_0x48e94a(0x16b)]);}[_0x4d5bc8(0x16c)](){const _0x53831c=_0x4d5bc8;this[_0x53831c(0x16f)](!this[_0x53831c(0x172)]);}[_0x4d5bc8(0x177)](_0x3d36f9){const _0x33ea1a=_0x4d5bc8;_0x3d36f9!==this[_0x33ea1a(0x16b)]&&(this[_0x33ea1a(0x16b)]=_0x3d36f9,this[_0x33ea1a(0x161)](_0x33ea1a(0x173),this[_0x33ea1a(0x167)]()));}[_0x4d5bc8(0x16f)](_0x52669a){const _0x5adf27=_0x4d5bc8;_0x52669a!==this[_0x5adf27(0x172)]&&(this[_0x5adf27(0x172)]=_0x52669a,this[_0x5adf27(0x161)](_0x5adf27(0x173),this[_0x5adf27(0x167)]()));}}
23
+ const _0x4bdda1=_0x5167;function _0x2485(){const _0x4067ef=['isWebSearchEnabled','497042rczxML','40sRdsvJ','186809zozZYc','8998692ySKAae','getCapabilitiesRequestData','toggleReasoning','11oiFCYZ','webSearch','874998emOnkE','473322PHZSbb','_isReasoningEnabled','_isWebSearchEnabled','getCapabilitiesConfig','toggleWebSearch','isReasoningEnabled','fire','init','1YqTbqL','reasoning','88umtbVn','reset','502494zjKPwk','setWebSearch','37705muxffx','setReasoning','20mApvLX','capabilitiesUpdated'];_0x2485=function(){return _0x4067ef;};return _0x2485();}(function(_0x374d60,_0x370f29){const _0xc64b2=_0x5167,_0x34d2b0=_0x374d60();while(!![]){try{const _0x5764a6=parseInt(_0xc64b2(0x1a4))/0x1*(parseInt(_0xc64b2(0x193))/0x2)+-parseInt(_0xc64b2(0x19c))/0x3+-parseInt(_0xc64b2(0x194))/0x4*(parseInt(_0xc64b2(0x1aa))/0x5)+-parseInt(_0xc64b2(0x1a8))/0x6+-parseInt(_0xc64b2(0x195))/0x7*(parseInt(_0xc64b2(0x1a6))/0x8)+-parseInt(_0xc64b2(0x19b))/0x9*(parseInt(_0xc64b2(0x1ac))/0xa)+parseInt(_0xc64b2(0x199))/0xb*(parseInt(_0xc64b2(0x196))/0xc);if(_0x5764a6===_0x370f29)break;else _0x34d2b0['push'](_0x34d2b0['shift']());}catch(_0x5043a7){_0x34d2b0['push'](_0x34d2b0['shift']());}}}(_0x2485,0x2f3c6));function _0x5167(_0x21f76c,_0x34eb8b){const _0x24859a=_0x2485();return _0x5167=function(_0x516744,_0x594aeb){_0x516744=_0x516744-0x191;let _0x52ffa7=_0x24859a[_0x516744];return _0x52ffa7;},_0x5167(_0x21f76c,_0x34eb8b);}import{EmitterMixin as _0x54d3c8}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x4bdda1(0x191)];export class AICapabilities extends _0x54d3c8(){[_0x4bdda1(0x19e)];[_0x4bdda1(0x19d)];constructor(){const _0x9a3ae4=_0x4bdda1;super(),this[_0x9a3ae4(0x19e)]=!0x1,this[_0x9a3ae4(0x19d)]=!0x1;}[_0x4bdda1(0x1a3)](){const _0x11089f=_0x4bdda1;this[_0x11089f(0x1a7)]();}[_0x4bdda1(0x1a7)](){const _0x3f83fb=_0x4bdda1;this[_0x3f83fb(0x1a9)](!0x1),this[_0x3f83fb(0x1ab)](!0x1);}[_0x4bdda1(0x19f)](){const _0x1437b6=_0x4bdda1;return{'isWebSearchEnabled':this[_0x1437b6(0x19e)],'isReasoningEnabled':this[_0x1437b6(0x19d)]};}static[_0x4bdda1(0x197)](_0x2a789d){const _0x3db61e=_0x4bdda1,_0x149981={};return _0x2a789d&&_0x2a789d[_0x3db61e(0x192)]&&(_0x149981[_0x3db61e(0x19a)]={}),_0x2a789d&&_0x2a789d[_0x3db61e(0x1a1)]&&(_0x149981[_0x3db61e(0x1a5)]={}),_0x149981;}[_0x4bdda1(0x1a0)](){const _0x17df53=_0x4bdda1;this[_0x17df53(0x1a9)](!this[_0x17df53(0x19e)]);}[_0x4bdda1(0x198)](){const _0x33ad47=_0x4bdda1;this[_0x33ad47(0x1ab)](!this[_0x33ad47(0x19d)]);}[_0x4bdda1(0x1a9)](_0x240d1e){const _0x2e3025=_0x4bdda1;_0x240d1e!==this[_0x2e3025(0x19e)]&&(this[_0x2e3025(0x19e)]=_0x240d1e,this[_0x2e3025(0x1a2)](_0x2e3025(0x191),this[_0x2e3025(0x19f)]()));}[_0x4bdda1(0x1ab)](_0x1a8001){const _0x50bf19=_0x4bdda1;_0x1a8001!==this[_0x50bf19(0x19d)]&&(this[_0x50bf19(0x19d)]=_0x1a8001,this[_0x50bf19(0x1a2)](_0x50bf19(0x191),this[_0x50bf19(0x19f)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x697a(){var _0x3dc59a=['text','341340adTnnp','5232073iqAsAT','TOOL','1555767xveDLt','DOCUMENT','FILE','1554726tWrQKR','TEXT','mcp-tool-context','4749590hwffkj','document','MARKDOWN','html','22GLpJol','URL','18549oBItEX','4fKyeif','2454258CQhebm','HTML','web-resource','SELECTION','1440DyoMtK','file','markdown','55tUjyIg','selection'];_0x697a=function(){return _0x3dc59a;};return _0x697a();}function _0x197f(_0x22c11a,_0x21f5dd){var _0x697a94=_0x697a();return _0x197f=function(_0x197f64,_0x5b042e){_0x197f64=_0x197f64-0x184;var _0x163fb9=_0x697a94[_0x197f64];return _0x163fb9;},_0x197f(_0x22c11a,_0x21f5dd);}(function(_0x4013a6,_0x42865a){var _0x42bd4c=_0x197f,_0x5cd3f8=_0x4013a6();while(!![]){try{var _0x38a3c5=-parseInt(_0x42bd4c(0x18a))/0x1+-parseInt(_0x42bd4c(0x197))/0x2*(-parseInt(_0x42bd4c(0x18d))/0x3)+parseInt(_0x42bd4c(0x187))/0x4*(parseInt(_0x42bd4c(0x184))/0x5)+parseInt(_0x42bd4c(0x198))/0x6+parseInt(_0x42bd4c(0x188))/0x7+parseInt(_0x42bd4c(0x19c))/0x8*(parseInt(_0x42bd4c(0x196))/0x9)+parseInt(_0x42bd4c(0x190))/0xa*(-parseInt(_0x42bd4c(0x194))/0xb);if(_0x38a3c5===_0x42865a)break;else _0x5cd3f8['push'](_0x5cd3f8['shift']());}catch(_0x2761c2){_0x5cd3f8['push'](_0x5cd3f8['shift']());}}}(_0x697a,0xf3652));export var AIContextItemType;!function(_0x18a3b0){var _0x5cf2ea=_0x197f;_0x18a3b0[_0x5cf2ea(0x189)]=_0x5cf2ea(0x18f),_0x18a3b0[_0x5cf2ea(0x18c)]=_0x5cf2ea(0x19d),_0x18a3b0[_0x5cf2ea(0x18b)]=_0x5cf2ea(0x191),_0x18a3b0[_0x5cf2ea(0x195)]=_0x5cf2ea(0x19a),_0x18a3b0[_0x5cf2ea(0x18e)]=_0x5cf2ea(0x186),_0x18a3b0[_0x5cf2ea(0x19b)]=_0x5cf2ea(0x185);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x542312){var _0x474eec=_0x197f;_0x542312[_0x474eec(0x18e)]=_0x474eec(0x186),_0x542312[_0x474eec(0x192)]=_0x474eec(0x19e),_0x542312[_0x474eec(0x199)]=_0x474eec(0x193);}(AIContextTextResourceType||(AIContextTextResourceType={}));
23
+ (function(_0x124ba6,_0x2091ed){var _0x54c129=_0x4533,_0x2ad893=_0x124ba6();while(!![]){try{var _0x488be7=parseInt(_0x54c129(0xc4))/0x1*(-parseInt(_0x54c129(0xd1))/0x2)+-parseInt(_0x54c129(0xd7))/0x3+-parseInt(_0x54c129(0xc2))/0x4*(-parseInt(_0x54c129(0xc9))/0x5)+-parseInt(_0x54c129(0xcf))/0x6+-parseInt(_0x54c129(0xd2))/0x7+-parseInt(_0x54c129(0xcb))/0x8+parseInt(_0x54c129(0xca))/0x9;if(_0x488be7===_0x2091ed)break;else _0x2ad893['push'](_0x2ad893['shift']());}catch(_0x317ea8){_0x2ad893['push'](_0x2ad893['shift']());}}}(_0x4114,0xb14bf));export var AIContextItemType;!function(_0x4006af){var _0x9c494f=_0x4533;_0x4006af[_0x9c494f(0xd0)]=_0x9c494f(0xda),_0x4006af[_0x9c494f(0xc8)]=_0x9c494f(0xce),_0x4006af[_0x9c494f(0xc6)]=_0x9c494f(0xc5),_0x4006af[_0x9c494f(0xc3)]=_0x9c494f(0xd6),_0x4006af[_0x9c494f(0xd3)]=_0x9c494f(0xd4),_0x4006af[_0x9c494f(0xc7)]=_0x9c494f(0xcd);}(AIContextItemType||(AIContextItemType={}));function _0x4114(){var _0x5eb5ec=['html','MARKDOWN','mcp-tool-context','33484maGQAL','URL','6846HmQucV','document','DOCUMENT','SELECTION','FILE','165JXTHYn','45178740pLztkU','5035296rGEPGB','markdown','selection','file','7649814auoRDc','TOOL','202ssuZCw','9423834ZlRkdm','TEXT','text','HTML','web-resource','1883421GGRTju'];_0x4114=function(){return _0x5eb5ec;};return _0x4114();}function _0x4533(_0x42f267,_0x3a798d){var _0x4114b1=_0x4114();return _0x4533=function(_0x4533ee,_0x583c1f){_0x4533ee=_0x4533ee-0xc2;var _0x913994=_0x4114b1[_0x4533ee];return _0x913994;},_0x4533(_0x42f267,_0x3a798d);}export var AIContextTextResourceType;!function(_0x3d2d6f){var _0x99051d=_0x4533;_0x3d2d6f[_0x99051d(0xd3)]=_0x99051d(0xd4),_0x3d2d6f[_0x99051d(0xd9)]=_0x99051d(0xcc),_0x3d2d6f[_0x99051d(0xd5)]=_0x99051d(0xd8);}(AIContextTextResourceType||(AIContextTextResourceType={}));
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3b72c7=_0x2e91;(function(_0x31c433,_0x2456b5){const _0x3fa0ec=_0x2e91,_0x123dd2=_0x31c433();while(!![]){try{const _0x12157a=-parseInt(_0x3fa0ec(0x15a))/0x1*(-parseInt(_0x3fa0ec(0x18e))/0x2)+parseInt(_0x3fa0ec(0x154))/0x3+parseInt(_0x3fa0ec(0x155))/0x4*(parseInt(_0x3fa0ec(0x157))/0x5)+-parseInt(_0x3fa0ec(0x1a0))/0x6*(parseInt(_0x3fa0ec(0x162))/0x7)+parseInt(_0x3fa0ec(0x159))/0x8*(parseInt(_0x3fa0ec(0x198))/0x9)+parseInt(_0x3fa0ec(0x15b))/0xa+-parseInt(_0x3fa0ec(0x156))/0xb*(parseInt(_0x3fa0ec(0x199))/0xc);if(_0x12157a===_0x2456b5)break;else _0x123dd2['push'](_0x123dd2['shift']());}catch(_0x26ea13){_0x123dd2['push'](_0x123dd2['shift']());}}}(_0x16ae,0x2914b));function _0x2e91(_0x43bc02,_0x5674b3){const _0x16ae11=_0x16ae();return _0x2e91=function(_0x2e918e,_0x19fce2){_0x2e918e=_0x2e918e-0x149;let _0x307d25=_0x16ae11[_0x2e918e];return _0x307d25;},_0x2e91(_0x43bc02,_0x5674b3);}function _0x16ae(){const _0x211879=['textDelta','interactionDestroyed','reasoningStarted','sources','modification-delta','setConversationTitle','stopListening','messageId','callId','text-delta','find','currentReply','appendContent','mcp-tool-notification','replyChangeGroupStateUpdated','interactionCreated','resetReasoningState','toolDataReceived','getDocumentContext','mcp-tool-result','message-metadata','interactionStarted','fire','forEach','destroy','reasoningFinished','_handleToolNotificationData','abortController','sendRequest','reasoning','_finalizeInteraction','push','editor','ai-chat-interaction-error','_handleToolResultData','_isWebSearching','634QTROCd','attributes','replyCreated','isStopped','delegate','web-search','currentRequest','text','type','webSearchFinished','633618QIPFFh','2868HWjJUP','conversationTitle','getReply','event','webSearchStarted','stop','length','713028lNqtYk','abort','parse','replyContentUpdated','conversation-title','connector','interactionFinished','splice','interactionStopped','data','resetWebSearchState','isDestroyed','createReply','542136CEmucl','219988tVQJvH','6193ULJWDg','5RKTPtK','toolName','8MpbHxc','651ywSmGZ','280220bUlaAw','done','notification','replies','_isReasoning','content','getStream','14lfTPBS','action-metadata','result','modification','source','start','error','actionCallId'];_0x16ae=function(){return _0x211879;};return _0x16ae();}import{CKEditorError as _0xaa3b6c,EmitterMixin as _0x5d3842,uid as _0x2583b5}from'ckeditor5/src/utils.js';import{AIReply as _0xaeefaa}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x3b72c7(0x179),_0x3b72c7(0x17f),_0x3b72c7(0x14f),_0x3b72c7(0x14d),_0x3b72c7(0x16b),_0x3b72c7(0x190),_0x3b72c7(0x14a),_0x3b72c7(0x178),_0x3b72c7(0x16f),_0x3b72c7(0x19d),_0x3b72c7(0x197),_0x3b72c7(0x16c),_0x3b72c7(0x183),_0x3b72c7(0x17b),_0x3b72c7(0x168)];export class AIInteraction extends _0x5d3842(){['id'];[_0x3b72c7(0x15e)]=[];[_0x3b72c7(0x175)];[_0x3b72c7(0x171)];[_0x3b72c7(0x169)];[_0x3b72c7(0x194)];[_0x3b72c7(0x14c)];[_0x3b72c7(0x191)]=!0x1;[_0x3b72c7(0x152)]=!0x1;[_0x3b72c7(0x18a)];[_0x3b72c7(0x15f)]=!0x1;[_0x3b72c7(0x18d)]=!0x1;constructor({connector:_0x2c0338,editor:_0x1f103d}){const _0x4b414f=_0x3b72c7;super(),this['id']=_0x2583b5(),this[_0x4b414f(0x14c)]=_0x2c0338,this[_0x4b414f(0x191)]=!0x0,this[_0x4b414f(0x18a)]=_0x1f103d;}async[_0x3b72c7(0x167)](){const _0x233039=_0x3b72c7,_0x2e78a8=[];let _0x2e859c,_0x1c76a7,_0x14062b;this[_0x233039(0x191)]=!0x1;try{this[_0x233039(0x194)]=await this[_0x233039(0x186)](),this[_0x233039(0x180)](_0x233039(0x17f),this);const _0x3f6677=await this[_0x233039(0x194)][_0x233039(0x161)]();for await(const _0x13e479 of _0x3f6677){if(this[_0x233039(0x191)])return;if(_0x233039(0x168)==_0x13e479[_0x233039(0x19c)])return void this[_0x233039(0x180)](_0x233039(0x168),{'error':new _0xaa3b6c(_0x233039(0x18b),this)});switch(_0x13e479[_0x233039(0x19c)]){case _0x233039(0x17e):this[_0x233039(0x171)]=_0x13e479[_0x233039(0x150)][_0x233039(0x171)];break;case _0x233039(0x163):this[_0x233039(0x169)]=_0x13e479[_0x233039(0x150)][_0x233039(0x172)];break;case _0x233039(0x14b):this[_0x233039(0x16f)](_0x13e479[_0x233039(0x150)][_0x233039(0x19a)],!0x0);break;case _0x233039(0x166):_0x2e78a8[_0x233039(0x189)](_0x13e479[_0x233039(0x150)][_0x233039(0x166)]);break;case _0x233039(0x193):this[_0x233039(0x18d)]||(this[_0x233039(0x18d)]=!0x0,this[_0x233039(0x180)](_0x233039(0x19d),this));break;case _0x233039(0x187):this[_0x233039(0x15f)]||(this[_0x233039(0x15f)]=!0x0,this[_0x233039(0x180)](_0x233039(0x16c),this));break;case _0x233039(0x16e):case _0x233039(0x173):this[_0x233039(0x17a)](),this[_0x233039(0x151)](),_0x2e859c=_0x233039(0x16e)==_0x13e479[_0x233039(0x19c)]?_0x233039(0x165):_0x233039(0x195),_0x1c76a7=_0x233039(0x16e)==_0x13e479[_0x233039(0x19c)]?_0x13e479[_0x233039(0x150)]['id']:void 0x0,this[_0x233039(0x175)]&&this[_0x233039(0x175)][_0x233039(0x196)]!=_0x2e859c&&(this[_0x233039(0x175)][_0x233039(0x15c)](),this[_0x233039(0x175)]=void 0x0),this[_0x233039(0x175)]||(this[_0x233039(0x175)]=this[_0x233039(0x153)]({'type':_0x2e859c,'interactionId':this['id'],'id':_0x1c76a7}),_0x233039(0x165)==_0x2e859c&&(this[_0x233039(0x175)][_0x233039(0x16d)]=_0x2e78a8[_0x233039(0x14e)](0x0))),this[_0x233039(0x175)][_0x233039(0x176)](_0x13e479[_0x233039(0x150)][_0x233039(0x16a)]);break;case _0x233039(0x17d):_0x14062b=JSON[_0x233039(0x149)](_0x13e479[_0x233039(0x150)][_0x233039(0x164)]),this[_0x233039(0x18c)]({'toolName':_0x13e479[_0x233039(0x150)][_0x233039(0x158)],'data':_0x14062b[_0x233039(0x150)],'attributes':_0x14062b[_0x233039(0x18f)]});break;case _0x233039(0x177):this[_0x233039(0x184)]({'toolName':_0x13e479[_0x233039(0x150)][_0x233039(0x158)],'data':_0x13e479[_0x233039(0x150)][_0x233039(0x150)]});}}}finally{this[_0x233039(0x191)]||(this[_0x233039(0x175)]&&_0x2e78a8[_0x233039(0x19f)]>0x0&&(this[_0x233039(0x175)][_0x233039(0x16d)]=_0x2e78a8[_0x233039(0x14e)](0x0)),this[_0x233039(0x188)](),this[_0x233039(0x180)](_0x233039(0x14d),this));}}[_0x3b72c7(0x19e)](){const _0x505771=_0x3b72c7;this[_0x505771(0x191)]||(this[_0x505771(0x188)](),this[_0x505771(0x180)](_0x505771(0x14f),this));}[_0x3b72c7(0x19b)](_0x181060){const _0x38a434=_0x3b72c7;return this[_0x38a434(0x15e)][_0x38a434(0x174)](_0x2e6cfe=>_0x2e6cfe['id']===_0x181060);}[_0x3b72c7(0x182)](){const _0x101aae=_0x3b72c7;this[_0x101aae(0x152)]||(this[_0x101aae(0x19e)](),this[_0x101aae(0x15e)][_0x101aae(0x181)](_0x53abc5=>_0x53abc5[_0x101aae(0x182)]()),this[_0x101aae(0x15e)]=[],this[_0x101aae(0x152)]=!0x0,this[_0x101aae(0x180)](_0x101aae(0x16b),this),this[_0x101aae(0x170)]());}[_0x3b72c7(0x153)](_0x428367){const _0x149eb6=_0x3b72c7,_0x1178c6=new _0xaeefaa({'editor':this[_0x149eb6(0x18a)],'documentContextContent':this[_0x149eb6(0x17c)]()?.[_0x149eb6(0x160)],..._0x428367});return this[_0x149eb6(0x15e)][_0x149eb6(0x189)](_0x1178c6),_0x1178c6[_0x149eb6(0x192)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x149eb6(0x180)](_0x149eb6(0x190),_0x1178c6),_0x1178c6;}[_0x3b72c7(0x16f)](_0x13ac0f,_0xeca9d1=!0x1){const _0x1b273d=_0x3b72c7;this[_0x1b273d(0x180)](_0x1b273d(0x16f),_0x13ac0f,_0xeca9d1);}[_0x3b72c7(0x151)](){const _0x4aa3f2=_0x3b72c7;this[_0x4aa3f2(0x18d)]&&(this[_0x4aa3f2(0x18d)]=!0x1,this[_0x4aa3f2(0x180)](_0x4aa3f2(0x197),this));}[_0x3b72c7(0x17a)](){const _0x5bc232=_0x3b72c7;this[_0x5bc232(0x15f)]&&(this[_0x5bc232(0x15f)]=!0x1,this[_0x5bc232(0x180)](_0x5bc232(0x183),this));}[_0x3b72c7(0x18c)](_0x2ba494){const _0x215ff4=_0x3b72c7;this[_0x215ff4(0x180)](_0x215ff4(0x17b),{'type':_0x215ff4(0x164),'toolName':_0x2ba494[_0x215ff4(0x158)],'data':structuredClone(_0x2ba494[_0x215ff4(0x150)]||{}),'attributes':structuredClone(_0x2ba494[_0x215ff4(0x18f)]||{})},this);}[_0x3b72c7(0x184)](_0x518320){const _0x280315=_0x3b72c7;this[_0x280315(0x180)](_0x280315(0x17b),{'type':_0x280315(0x15d),'toolName':_0x518320[_0x280315(0x158)],'data':structuredClone(_0x518320[_0x280315(0x150)])},this);}[_0x3b72c7(0x188)](){const _0x5b85ca=_0x3b72c7;this[_0x5b85ca(0x191)]=!0x0,this[_0x5b85ca(0x194)]&&this[_0x5b85ca(0x194)][_0x5b85ca(0x185)][_0x5b85ca(0x1a1)](),this[_0x5b85ca(0x175)]&&this[_0x5b85ca(0x175)][_0x5b85ca(0x15c)](),this[_0x5b85ca(0x194)]=this[_0x5b85ca(0x175)]=void 0x0;}}
23
+ const _0x5e27c4=_0x188e;(function(_0x3c144f,_0x451bc4){const _0x285525=_0x188e,_0xd43caf=_0x3c144f();while(!![]){try{const _0x4c236a=parseInt(_0x285525(0x1b5))/0x1+parseInt(_0x285525(0x1f1))/0x2*(-parseInt(_0x285525(0x1f8))/0x3)+-parseInt(_0x285525(0x1e7))/0x4*(-parseInt(_0x285525(0x1e1))/0x5)+-parseInt(_0x285525(0x1e4))/0x6+parseInt(_0x285525(0x1cc))/0x7*(parseInt(_0x285525(0x1b7))/0x8)+parseInt(_0x285525(0x1fd))/0x9+-parseInt(_0x285525(0x1e8))/0xa*(parseInt(_0x285525(0x1d9))/0xb);if(_0x4c236a===_0x451bc4)break;else _0xd43caf['push'](_0xd43caf['shift']());}catch(_0x8d65ef){_0xd43caf['push'](_0xd43caf['shift']());}}}(_0x21a2,0x2b8d0));import{CKEditorError as _0x2c2eab,EmitterMixin as _0x4c236c,uid as _0x3d419e}from'ckeditor5/src/utils.js';import{AIReply as _0xc35efc}from'./aireply.js';function _0x188e(_0x4768b7,_0x3ad3b1){const _0x21a2eb=_0x21a2();return _0x188e=function(_0x188e52,_0x5c0031){_0x188e52=_0x188e52-0x1b3;let _0xba8ef7=_0x21a2eb[_0x188e52];return _0xba8ef7;},_0x188e(_0x4768b7,_0x3ad3b1);}export const AI_MODEL_EVENT_NAMES=[_0x5e27c4(0x1ba),_0x5e27c4(0x1d5),_0x5e27c4(0x1bf),_0x5e27c4(0x1ea),_0x5e27c4(0x1d1),_0x5e27c4(0x1cb),_0x5e27c4(0x1ca),_0x5e27c4(0x200),_0x5e27c4(0x1c8),_0x5e27c4(0x1ef),_0x5e27c4(0x1d3),_0x5e27c4(0x1fe),_0x5e27c4(0x201),_0x5e27c4(0x1b3),_0x5e27c4(0x1b4)];export class AIInteraction extends _0x4c236c(){['id'];[_0x5e27c4(0x1c5)]=[];[_0x5e27c4(0x1e9)];[_0x5e27c4(0x204)];[_0x5e27c4(0x203)];[_0x5e27c4(0x1df)];[_0x5e27c4(0x1cf)];[_0x5e27c4(0x202)]=!0x1;[_0x5e27c4(0x1d2)]=!0x1;[_0x5e27c4(0x1ee)];[_0x5e27c4(0x206)]=!0x1;[_0x5e27c4(0x1f5)]=!0x1;constructor({connector:_0x2c01cd,editor:_0x279071}){const _0x5ac3cf=_0x5e27c4;super(),this['id']=_0x3d419e(),this[_0x5ac3cf(0x1cf)]=_0x2c01cd,this[_0x5ac3cf(0x202)]=!0x0,this[_0x5ac3cf(0x1ee)]=_0x279071;}async[_0x5e27c4(0x1d0)](){const _0x5ee6f5=_0x5e27c4,_0x1b925b=[];let _0x4b3fdf,_0x4018ed,_0x16783d;this[_0x5ee6f5(0x202)]=!0x1;try{this[_0x5ee6f5(0x1df)]=await this[_0x5ee6f5(0x1db)](),this[_0x5ee6f5(0x1ec)](_0x5ee6f5(0x1d5),this);const _0x2ddb0d=await this[_0x5ee6f5(0x1df)][_0x5ee6f5(0x1ed)]();for await(const _0x57e1c9 of _0x2ddb0d){if(this[_0x5ee6f5(0x202)])return;if(_0x5ee6f5(0x1b4)==_0x57e1c9[_0x5ee6f5(0x1e2)])return void this[_0x5ee6f5(0x1ec)](_0x5ee6f5(0x1b4),{'error':new _0x2c2eab(_0x5ee6f5(0x20a),this)});switch(_0x57e1c9[_0x5ee6f5(0x1e2)]){case _0x5ee6f5(0x207):this[_0x5ee6f5(0x204)]=_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x204)];break;case _0x5ee6f5(0x1bb):this[_0x5ee6f5(0x203)]=_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x1cd)];break;case _0x5ee6f5(0x1bd):this[_0x5ee6f5(0x1c8)](_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x1c9)],!0x0);break;case _0x5ee6f5(0x1c4):_0x1b925b[_0x5ee6f5(0x1be)](_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x1c4)]);break;case _0x5ee6f5(0x1e0):this[_0x5ee6f5(0x1f5)]||(this[_0x5ee6f5(0x1f5)]=!0x0,this[_0x5ee6f5(0x1ec)](_0x5ee6f5(0x1ef),this));break;case _0x5ee6f5(0x1d8):this[_0x5ee6f5(0x206)]||(this[_0x5ee6f5(0x206)]=!0x0,this[_0x5ee6f5(0x1ec)](_0x5ee6f5(0x1fe),this));break;case _0x5ee6f5(0x1f0):case _0x5ee6f5(0x1c7):this[_0x5ee6f5(0x1d4)](),this[_0x5ee6f5(0x1de)](),_0x4b3fdf=_0x5ee6f5(0x1f0)==_0x57e1c9[_0x5ee6f5(0x1e2)]?_0x5ee6f5(0x1ce):_0x5ee6f5(0x1b6),_0x4018ed=_0x5ee6f5(0x1f0)==_0x57e1c9[_0x5ee6f5(0x1e2)]?_0x57e1c9[_0x5ee6f5(0x1e5)]['id']:void 0x0,this[_0x5ee6f5(0x1e9)]&&this[_0x5ee6f5(0x1e9)][_0x5ee6f5(0x1d6)]!=_0x4b3fdf&&(this[_0x5ee6f5(0x1e9)][_0x5ee6f5(0x1c3)](),this[_0x5ee6f5(0x1e9)]=void 0x0),this[_0x5ee6f5(0x1e9)]||(this[_0x5ee6f5(0x1e9)]=this[_0x5ee6f5(0x1bc)]({'type':_0x4b3fdf,'interactionId':this['id'],'id':_0x4018ed}),_0x5ee6f5(0x1ce)==_0x4b3fdf&&(this[_0x5ee6f5(0x1e9)][_0x5ee6f5(0x1b9)]=_0x1b925b[_0x5ee6f5(0x1b8)](0x0))),this[_0x5ee6f5(0x1e9)][_0x5ee6f5(0x1c2)](_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x1fa)]);break;case _0x5ee6f5(0x1dc):_0x16783d=JSON[_0x5ee6f5(0x1e3)](_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x208)]),this[_0x5ee6f5(0x1fb)]({'toolName':_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x1d7)],'data':_0x16783d[_0x5ee6f5(0x1e5)],'attributes':_0x16783d[_0x5ee6f5(0x1c0)]});break;case _0x5ee6f5(0x1f3):this[_0x5ee6f5(0x209)]({'toolName':_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x1d7)],'data':_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x1e5)]});}}}finally{this[_0x5ee6f5(0x202)]||(this[_0x5ee6f5(0x1e9)]&&_0x1b925b[_0x5ee6f5(0x1f9)]>0x0&&(this[_0x5ee6f5(0x1e9)][_0x5ee6f5(0x1b9)]=_0x1b925b[_0x5ee6f5(0x1b8)](0x0)),this[_0x5ee6f5(0x1c1)](),this[_0x5ee6f5(0x1ec)](_0x5ee6f5(0x1ea),this));}}[_0x5e27c4(0x1ff)](){const _0x28636d=_0x5e27c4;this[_0x28636d(0x202)]||(this[_0x28636d(0x1c1)](),this[_0x28636d(0x1ec)](_0x28636d(0x1bf),this));}[_0x5e27c4(0x1dd)](_0x287a23){const _0x55103d=_0x5e27c4;return this[_0x55103d(0x1c5)][_0x55103d(0x1c6)](_0x1a66ad=>_0x1a66ad['id']===_0x287a23);}[_0x5e27c4(0x1e6)](){const _0x26a98a=_0x5e27c4;this[_0x26a98a(0x1d2)]||(this[_0x26a98a(0x1ff)](),this[_0x26a98a(0x1c5)][_0x26a98a(0x1f6)](_0x4c765b=>_0x4c765b[_0x26a98a(0x1e6)]()),this[_0x26a98a(0x1c5)]=[],this[_0x26a98a(0x1d2)]=!0x0,this[_0x26a98a(0x1ec)](_0x26a98a(0x1d1),this),this[_0x26a98a(0x1eb)]());}[_0x5e27c4(0x1bc)](_0x19f395){const _0x2f206e=_0x5e27c4,_0x2fefe4=new _0xc35efc({'editor':this[_0x2f206e(0x1ee)],'documentContextContent':this[_0x2f206e(0x1fc)]()?.[_0x2f206e(0x205)],..._0x19f395});return this[_0x2f206e(0x1c5)][_0x2f206e(0x1be)](_0x2fefe4),_0x2fefe4[_0x2f206e(0x1f4)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x2f206e(0x1ec)](_0x2f206e(0x1cb),_0x2fefe4),_0x2fefe4;}[_0x5e27c4(0x1c8)](_0x176206,_0x44223d=!0x1){const _0xd4fb25=_0x5e27c4;this[_0xd4fb25(0x1ec)](_0xd4fb25(0x1c8),_0x176206,_0x44223d);}[_0x5e27c4(0x1de)](){const _0x120886=_0x5e27c4;this[_0x120886(0x1f5)]&&(this[_0x120886(0x1f5)]=!0x1,this[_0x120886(0x1ec)](_0x120886(0x1d3),this));}[_0x5e27c4(0x1d4)](){const _0x353e1b=_0x5e27c4;this[_0x353e1b(0x206)]&&(this[_0x353e1b(0x206)]=!0x1,this[_0x353e1b(0x1ec)](_0x353e1b(0x201),this));}[_0x5e27c4(0x1fb)](_0x32a06e){const _0x4cdcc5=_0x5e27c4;this[_0x4cdcc5(0x1ec)](_0x4cdcc5(0x1b3),{'type':_0x4cdcc5(0x208),'toolName':_0x32a06e[_0x4cdcc5(0x1d7)],'data':structuredClone(_0x32a06e[_0x4cdcc5(0x1e5)]||{}),'attributes':structuredClone(_0x32a06e[_0x4cdcc5(0x1c0)]||{})},this);}[_0x5e27c4(0x209)](_0x312f09){const _0x1dec14=_0x5e27c4;this[_0x1dec14(0x1ec)](_0x1dec14(0x1b3),{'type':_0x1dec14(0x1da),'toolName':_0x312f09[_0x1dec14(0x1d7)],'data':structuredClone(_0x312f09[_0x1dec14(0x1e5)])},this);}[_0x5e27c4(0x1c1)](){const _0x1502cd=_0x5e27c4;this[_0x1502cd(0x202)]=!0x0,this[_0x1502cd(0x1df)]&&this[_0x1502cd(0x1df)][_0x1502cd(0x1f7)][_0x1502cd(0x1f2)](),this[_0x1502cd(0x1e9)]&&this[_0x1502cd(0x1e9)][_0x1502cd(0x1c3)](),this[_0x1502cd(0x1df)]=this[_0x1502cd(0x1e9)]=void 0x0;}}function _0x21a2(){const _0x2b665a=['interactionDestroyed','isDestroyed','webSearchFinished','resetReasoningState','interactionStarted','type','toolName','reasoning','385xBJvsU','notification','sendRequest','mcp-tool-result','getReply','resetWebSearchState','currentRequest','web-search','813465UwlBEs','event','parse','1189092SpKHAj','data','destroy','4TpyZwl','39740qutpqf','currentReply','interactionFinished','stopListening','fire','getStream','editor','webSearchStarted','modification-delta','44ZrCbEO','abort','mcp-tool-notification','delegate','_isWebSearching','forEach','abortController','21393LlapZC','length','textDelta','_handleToolResultData','getDocumentContext','354978dewukS','reasoningStarted','stop','replyChangeGroupStateUpdated','reasoningFinished','isStopped','actionCallId','messageId','content','_isReasoning','message-metadata','result','_handleToolNotificationData','ai-chat-interaction-error','toolDataReceived','error','171251RxYubL','text','149576xLfbDL','splice','sources','interactionCreated','action-metadata','createReply','conversation-title','push','interactionStopped','attributes','_finalizeInteraction','appendContent','done','source','replies','find','text-delta','setConversationTitle','conversationTitle','replyContentUpdated','replyCreated','112kJhdpN','callId','modification','connector','start'];_0x21a2=function(){return _0x2b665a;};return _0x21a2();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf4b449=_0x37f6;function _0x2d35(){const _0x3c0836=['add','getModel','list','ai-chat-model-id-unrecognized','_locale','5288cawQbj','startsWith','map','ai-models-unable-to-retrieve','recommended','_modelsRequest','ai-chat-default-model-id-unrecognized','_config','name','2412DTAKKX','_isMatchingFilter','2175090wtaJGd','string','4447566bkPjeT','agent','getAvailableModels','_modelList','toLocaleLowerCase','uiLanguage','isAvailable','_getModelById','9071392MagSKG','provider','153FzRnjY','find','getDefault','_retrieveModels','some','_defaultModelId','items','1cDjBdC','displayedModels','getAll','length','_filterModels','has','auto','1052055tbekBT','filter','6817692VhzDTP','515462QrOBXH','push','defaultModelId','AI_MODEL_NAME_AUTO','getModels','_connector','_availableModels'];_0x2d35=function(){return _0x3c0836;};return _0x2d35();}function _0x37f6(_0xcbbb39,_0x3ecb39){const _0x2d3542=_0x2d35();return _0x37f6=function(_0x37f6f4,_0x39b62e){_0x37f6f4=_0x37f6f4-0x1ad;let _0xb48a97=_0x2d3542[_0x37f6f4];return _0xb48a97;},_0x37f6(_0xcbbb39,_0x3ecb39);}(function(_0x4ef285,_0x1c485d){const _0x13108d=_0x37f6,_0x3cb14f=_0x4ef285();while(!![]){try{const _0x734fb4=-parseInt(_0x13108d(0x1b5))/0x1*(-parseInt(_0x13108d(0x1bf))/0x2)+-parseInt(_0x13108d(0x1d4))/0x3*(-parseInt(_0x13108d(0x1cb))/0x4)+parseInt(_0x13108d(0x1bc))/0x5+parseInt(_0x13108d(0x1d8))/0x6+parseInt(_0x13108d(0x1be))/0x7+parseInt(_0x13108d(0x1e0))/0x8+-parseInt(_0x13108d(0x1ae))/0x9*(parseInt(_0x13108d(0x1d6))/0xa);if(_0x734fb4===_0x1c485d)break;else _0x3cb14f['push'](_0x3cb14f['shift']());}catch(_0x39896d){_0x3cb14f['push'](_0x3cb14f['shift']());}}}(_0x2d35,0xa6a16));import{EmitterMixin as _0x6a200c,logWarning as _0x1398ed,logError as _0x166e65}from'ckeditor5/src/utils.js';import{getTranslation as _0x4c3fa0}from'../utils/common-translations.js';export class AIModels extends _0x6a200c(){[_0xf4b449(0x1c4)];[_0xf4b449(0x1d2)];[_0xf4b449(0x1ca)];[_0xf4b449(0x1db)]=[];[_0xf4b449(0x1d0)]=null;constructor({connector:_0x319bfb,config:_0x3edbd1,locale:_0x5d7431}){const _0x5d676e=_0xf4b449;super(),this[_0x5d676e(0x1c4)]=_0x319bfb,this[_0x5d676e(0x1d2)]=_0x3edbd1,this[_0x5d676e(0x1ca)]=_0x5d7431;}get[_0xf4b449(0x1c5)](){const _0x4fb683=_0xf4b449;return this[_0x4fb683(0x1d2)]?.[_0x4fb683(0x1b6)];}get[_0xf4b449(0x1b3)](){const _0x3f0044=_0xf4b449;return this[_0x3f0044(0x1d2)]?.[_0x3f0044(0x1c1)];}async[_0xf4b449(0x1b7)](){const _0x3cf7c0=_0xf4b449;return this[_0x3cf7c0(0x1d0)]||(this[_0x3cf7c0(0x1d0)]=this[_0x3cf7c0(0x1b1)]()),this[_0x3cf7c0(0x1d0)];}async[_0xf4b449(0x1da)](){const _0x45a2d4=_0xf4b449,_0x1bf06b=await this[_0x45a2d4(0x1b7)]();let _0x10c478;return _0x10c478=this[_0x45a2d4(0x1c5)]?this[_0x45a2d4(0x1b9)](_0x1bf06b,this[_0x45a2d4(0x1c5)]):_0x1bf06b[_0x45a2d4(0x1bd)](_0x446cce=>_0x446cce[_0x45a2d4(0x1cf)]),_0x10c478;}async[_0xf4b449(0x1c7)](_0x192766){const _0xe3423=_0xf4b449,_0x591f0f=await this[_0xe3423(0x1b7)]();if(!_0x591f0f[_0xe3423(0x1b8)])return null;if(_0x192766){const _0x4b7049=this[_0xe3423(0x1df)](_0x591f0f,_0x192766);if(_0x4b7049)return _0x4b7049;_0x1398ed(_0xe3423(0x1c9),{'modelId':_0x192766,'fallBackModelId':this[_0xe3423(0x1b3)]});}return this[_0xe3423(0x1b0)]();}async[_0xf4b449(0x1b0)](){const _0x402904=_0xf4b449,_0x4b7e9a=await this[_0x402904(0x1da)]();if(!_0x4b7e9a[_0x402904(0x1b8)])return null;if(this[_0x402904(0x1b3)]){const _0x7e37b3=this[_0x402904(0x1df)](_0x4b7e9a,this[_0x402904(0x1b3)]);if(_0x7e37b3)return _0x7e37b3;_0x1398ed(_0x402904(0x1d1),{'defaultModelId':this[_0x402904(0x1b3)],'fallBackModelId':_0x4b7e9a[0x0]['id']});}return _0x4b7e9a[0x0];}async[_0xf4b449(0x1de)](_0x335c75){const _0x44d841=_0xf4b449;return(await this[_0x44d841(0x1da)]())[_0x44d841(0x1b2)](_0x22d418=>_0x22d418[_0x44d841(0x1d3)]===_0x335c75[_0x44d841(0x1d3)]&&_0x22d418[_0x44d841(0x1ad)]===_0x335c75[_0x44d841(0x1ad)]);}async[_0xf4b449(0x1b1)](){const _0x3c0542=_0xf4b449;if(!this[_0x3c0542(0x1db)][_0x3c0542(0x1b8)])try{const _0x4b5ea=this[_0x3c0542(0x1ca)][_0x3c0542(0x1dd)]||'en',_0x16ec47=this[_0x3c0542(0x1c4)][_0x3c0542(0x1c3)](_0x4b5ea),_0x3cd750=await _0x16ec47[_0x3c0542(0x1c8)]();this[_0x3c0542(0x1db)]=_0x3cd750[_0x3c0542(0x1b4)][_0x3c0542(0x1cd)](_0x3d61f1=>Bi(_0x3d61f1)?{..._0x3d61f1,'name':_0x4c3fa0(this[_0x3c0542(0x1ca)],_0x3c0542(0x1c2))}:_0x3d61f1);}catch(_0x50d519){throw _0x166e65(_0x3c0542(0x1ce),{'error':_0x50d519}),_0x50d519;}return[...this[_0x3c0542(0x1db)]];}[_0xf4b449(0x1b9)](_0x3e9c5e,_0x15da68){const _0x19ed09=_0xf4b449;let _0x4b8751;if(_0x15da68){_0x4b8751=[];const _0x11b5c8=new Set(),_0x11236a=_0x19ed09(0x1d7)==typeof _0x15da68?[_0x15da68[_0x19ed09(0x1dc)]()]:_0x15da68[_0x19ed09(0x1cd)](_0x1e6e2d=>_0x1e6e2d[_0x19ed09(0x1dc)]());for(const _0xb049a1 of _0x11236a)for(const _0xffa618 of _0x3e9c5e)!_0x11b5c8[_0x19ed09(0x1ba)](_0xffa618['id'])&&this[_0x19ed09(0x1d5)](_0xffa618,_0xb049a1)&&(_0x4b8751[_0x19ed09(0x1c0)](_0xffa618),_0x11b5c8[_0x19ed09(0x1c6)](_0xffa618['id']));}else _0x4b8751=_0x3e9c5e;return _0x4b8751;}[_0xf4b449(0x1d5)](_0x5a3c7f,_0x1d0de7){const _0x20c2e0=_0xf4b449,_0x184b6d=_0x5a3c7f['id'][_0x20c2e0(0x1dc)](),_0x12c9ad=_0x5a3c7f[_0x20c2e0(0x1d3)][_0x20c2e0(0x1dc)](),_0x38ac5=_0x5a3c7f[_0x20c2e0(0x1ad)][_0x20c2e0(0x1dc)]();return _0x184b6d===_0x1d0de7||_0x12c9ad===_0x1d0de7||Bi(_0x5a3c7f)&&_0x20c2e0(0x1bb)===_0x1d0de7||_0x38ac5===_0x1d0de7||_0x184b6d[_0x20c2e0(0x1cc)](_0x1d0de7);}[_0xf4b449(0x1df)](_0x42986d,_0x2b9e4c){const _0x43bf3c=_0xf4b449;return _0x42986d[_0x43bf3c(0x1af)](_0x26f73a=>Bi(_0x26f73a)&&_0x43bf3c(0x1bb)===_0x2b9e4c?_0x26f73a:_0x26f73a['id']===_0x2b9e4c)||null;}}function Bi(_0x27f840){const _0x78ca53=_0xf4b449;return _0x27f840['id'][_0x78ca53(0x1cc)](_0x78ca53(0x1d9));}
23
+ const _0x3e1474=_0x4eb1;(function(_0x49c212,_0x12aecb){const _0x1970ed=_0x4eb1,_0x2c4d5f=_0x49c212();while(!![]){try{const _0x5159e8=parseInt(_0x1970ed(0xb1))/0x1+-parseInt(_0x1970ed(0x84))/0x2+parseInt(_0x1970ed(0xad))/0x3*(parseInt(_0x1970ed(0xae))/0x4)+parseInt(_0x1970ed(0xac))/0x5*(parseInt(_0x1970ed(0xaf))/0x6)+-parseInt(_0x1970ed(0x87))/0x7+-parseInt(_0x1970ed(0x8e))/0x8*(parseInt(_0x1970ed(0x92))/0x9)+parseInt(_0x1970ed(0xa4))/0xa;if(_0x5159e8===_0x12aecb)break;else _0x2c4d5f['push'](_0x2c4d5f['shift']());}catch(_0x1f2e1c){_0x2c4d5f['push'](_0x2c4d5f['shift']());}}}(_0x4244,0xcbf7b));import{EmitterMixin as _0x8ae52b,logWarning as _0x2b3481,logError as _0x32010}from'ckeditor5/src/utils.js';function _0x4eb1(_0x63e96d,_0x5c3526){const _0x424434=_0x4244();return _0x4eb1=function(_0x4eb181,_0x3cb6f0){_0x4eb181=_0x4eb181-0x83;let _0x1b44f6=_0x424434[_0x4eb181];return _0x1b44f6;},_0x4eb1(_0x63e96d,_0x5c3526);}function _0x4244(){const _0x5c525d=['_defaultModelId','441CEguxA','uiLanguage','ai-chat-model-id-unrecognized','_locale','push','some','isAvailable','ai-chat-default-model-id-unrecognized','displayedModels','getAvailableModels','getAll','name','_getModelById','auto','AI_MODEL_NAME_AUTO','toLocaleLowerCase','_connector','filter','1986250FSFbJw','provider','has','startsWith','defaultModelId','recommended','map','_filterModels','4535MXQftL','3PnkZSb','2920784pHdomn','3708MQaKLY','string','652997jcQtLT','ai-models-unable-to-retrieve','_availableModels','_modelsRequest','_config','agent','items','1510488zqGBZa','list','length','428799YQYNzg','getModel','getDefault','_isMatchingFilter','_retrieveModels','getModels','_modelList','80064woyvBw','find','add'];_0x4244=function(){return _0x5c525d;};return _0x4244();}import{getTranslation as _0x5034eb}from'../utils/common-translations.js';export class AIModels extends _0x8ae52b(){[_0x3e1474(0xa2)];[_0x3e1474(0xb5)];[_0x3e1474(0x95)];[_0x3e1474(0x8d)]=[];[_0x3e1474(0xb4)]=null;constructor({connector:_0x525576,config:_0x1f8352,locale:_0x118504}){const _0x457ff7=_0x3e1474;super(),this[_0x457ff7(0xa2)]=_0x525576,this[_0x457ff7(0xb5)]=_0x1f8352,this[_0x457ff7(0x95)]=_0x118504;}get[_0x3e1474(0xb3)](){const _0x180c0f=_0x3e1474;return this[_0x180c0f(0xb5)]?.[_0x180c0f(0x9a)];}get[_0x3e1474(0x91)](){const _0x2dbd4c=_0x3e1474;return this[_0x2dbd4c(0xb5)]?.[_0x2dbd4c(0xa8)];}async[_0x3e1474(0x9c)](){const _0x3903fe=_0x3e1474;return this[_0x3903fe(0xb4)]||(this[_0x3903fe(0xb4)]=this[_0x3903fe(0x8b)]()),this[_0x3903fe(0xb4)];}async[_0x3e1474(0x9b)](){const _0x14e093=_0x3e1474,_0x336e45=await this[_0x14e093(0x9c)]();let _0x32f407;return _0x32f407=this[_0x14e093(0xb3)]?this[_0x14e093(0xab)](_0x336e45,this[_0x14e093(0xb3)]):_0x336e45[_0x14e093(0xa3)](_0x47b7ba=>_0x47b7ba[_0x14e093(0xa9)]),_0x32f407;}async[_0x3e1474(0x88)](_0xb206af){const _0x2da6f6=_0x3e1474,_0x5ec812=await this[_0x2da6f6(0x9c)]();if(!_0x5ec812[_0x2da6f6(0x86)])return null;if(_0xb206af){const _0x2eff47=this[_0x2da6f6(0x9e)](_0x5ec812,_0xb206af);if(_0x2eff47)return _0x2eff47;_0x2b3481(_0x2da6f6(0x94),{'modelId':_0xb206af,'fallBackModelId':this[_0x2da6f6(0x91)]});}return this[_0x2da6f6(0x89)]();}async[_0x3e1474(0x89)](){const _0x39cd9d=_0x3e1474,_0x52f166=await this[_0x39cd9d(0x9b)]();if(!_0x52f166[_0x39cd9d(0x86)])return null;if(this[_0x39cd9d(0x91)]){const _0x498df2=this[_0x39cd9d(0x9e)](_0x52f166,this[_0x39cd9d(0x91)]);if(_0x498df2)return _0x498df2;_0x2b3481(_0x39cd9d(0x99),{'defaultModelId':this[_0x39cd9d(0x91)],'fallBackModelId':_0x52f166[0x0]['id']});}return _0x52f166[0x0];}async[_0x3e1474(0x98)](_0x2f2ac3){const _0xe1bb04=_0x3e1474;return(await this[_0xe1bb04(0x9b)]())[_0xe1bb04(0x97)](_0x53671a=>_0x53671a[_0xe1bb04(0x9d)]===_0x2f2ac3[_0xe1bb04(0x9d)]&&_0x53671a[_0xe1bb04(0xa5)]===_0x2f2ac3[_0xe1bb04(0xa5)]);}async[_0x3e1474(0x8b)](){const _0x40ace5=_0x3e1474;if(!this[_0x40ace5(0x8d)][_0x40ace5(0x86)])try{const _0x47a0e7=this[_0x40ace5(0x95)][_0x40ace5(0x93)]||'en',_0x2f0c2c=this[_0x40ace5(0xa2)][_0x40ace5(0x8c)](_0x47a0e7),_0x286e53=await _0x2f0c2c[_0x40ace5(0x85)]();this[_0x40ace5(0x8d)]=_0x286e53[_0x40ace5(0x83)][_0x40ace5(0xaa)](_0x31f1ac=>Bi(_0x31f1ac)?{..._0x31f1ac,'name':_0x5034eb(this[_0x40ace5(0x95)],_0x40ace5(0xa0))}:_0x31f1ac);}catch(_0x49982f){throw _0x32010(_0x40ace5(0xb2),{'error':_0x49982f}),_0x49982f;}return[...this[_0x40ace5(0x8d)]];}[_0x3e1474(0xab)](_0x2d5bd7,_0x3b1c5f){const _0x2337d6=_0x3e1474;let _0xadb57;if(_0x3b1c5f){_0xadb57=[];const _0x203e94=new Set(),_0x1af89c=_0x2337d6(0xb0)==typeof _0x3b1c5f?[_0x3b1c5f[_0x2337d6(0xa1)]()]:_0x3b1c5f[_0x2337d6(0xaa)](_0x493621=>_0x493621[_0x2337d6(0xa1)]());for(const _0x1ae9a3 of _0x1af89c)for(const _0x215bb1 of _0x2d5bd7)!_0x203e94[_0x2337d6(0xa6)](_0x215bb1['id'])&&this[_0x2337d6(0x8a)](_0x215bb1,_0x1ae9a3)&&(_0xadb57[_0x2337d6(0x96)](_0x215bb1),_0x203e94[_0x2337d6(0x90)](_0x215bb1['id']));}else _0xadb57=_0x2d5bd7;return _0xadb57;}[_0x3e1474(0x8a)](_0x3ee309,_0x59257e){const _0x2cbbe5=_0x3e1474,_0x3f861d=_0x3ee309['id'][_0x2cbbe5(0xa1)](),_0x33ec4a=_0x3ee309[_0x2cbbe5(0x9d)][_0x2cbbe5(0xa1)](),_0x35cfbc=_0x3ee309[_0x2cbbe5(0xa5)][_0x2cbbe5(0xa1)]();return _0x3f861d===_0x59257e||_0x33ec4a===_0x59257e||Bi(_0x3ee309)&&_0x2cbbe5(0x9f)===_0x59257e||_0x35cfbc===_0x59257e||_0x3f861d[_0x2cbbe5(0xa7)](_0x59257e);}[_0x3e1474(0x9e)](_0x1c78a7,_0x2877e7){const _0x5385d8=_0x3e1474;return _0x1c78a7[_0x5385d8(0x8f)](_0x466322=>Bi(_0x466322)&&_0x5385d8(0x9f)===_0x2877e7?_0x466322:_0x466322['id']===_0x2877e7)||null;}}function Bi(_0x55dbb5){const _0x178513=_0x3e1474;return _0x55dbb5['id'][_0x178513(0xa7)](_0x178513(0xb6));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x15de43=_0x4f16;(function(_0x35ec66,_0x26edc0){const _0x4ddadb=_0x4f16,_0x8c06c2=_0x35ec66();while(!![]){try{const _0x49ef6=parseInt(_0x4ddadb(0x1ec))/0x1+parseInt(_0x4ddadb(0x1d5))/0x2+parseInt(_0x4ddadb(0x1c8))/0x3*(parseInt(_0x4ddadb(0x210))/0x4)+-parseInt(_0x4ddadb(0x209))/0x5*(parseInt(_0x4ddadb(0x1cb))/0x6)+parseInt(_0x4ddadb(0x1e1))/0x7*(-parseInt(_0x4ddadb(0x206))/0x8)+-parseInt(_0x4ddadb(0x1fd))/0x9*(parseInt(_0x4ddadb(0x1d8))/0xa)+parseInt(_0x4ddadb(0x211))/0xb;if(_0x49ef6===_0x26edc0)break;else _0x8c06c2['push'](_0x8c06c2['shift']());}catch(_0x4cf62c){_0x8c06c2['push'](_0x8c06c2['shift']());}}}(_0x2e35,0xd364e));import{CKEditorError as _0x43efa2,ObservableMixin as _0x10a928,uid as _0x326ffb}from'ckeditor5/src/utils.js';import{Element as _0x511730,findAll as _0x3a1342,getAttribute as _0x5901b9,getParents as _0x4670c0,Document as _0x14ab84,parse as _0x21a7f6,Text as _0x117376}from'../utils/htmlparser.js';function _0x4f16(_0x47a720,_0x4119c3){const _0x2e353e=_0x2e35();return _0x4f16=function(_0x4f164d,_0x3d9d83){_0x4f164d=_0x4f164d-0x1c6;let _0x2580d3=_0x2e353e[_0x4f164d];return _0x2580d3;},_0x4f16(_0x47a720,_0x4119c3);}import{AIResponseParser as _0x12f101}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x1a9a07}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x5c0aec}from'../utils/getsuggestionpartsfromreply.js';function _0x2e35(){const _0x13d2a2=['fire','documentContextContent','merge','AI_SUGGESTION_CONTENT_PART_REMOVED','updateChangeGroups','new','isDone','locale','every','623126TvxMTw','splice','span','1433960KzPXHo','appendContent','nextSibling','previousSibling','interactionId','_getDifferentChangeGroups','removedNodeIds','areActionsDisabled','aiResponseApplier','551082jbhLEG','_getCachedContentParts','node','cloneNode','push','index','aiResponseParser','modification','length','editor','ai-get-editor-from-context-no-editor','238184kBsdPr','stopListening','indexOf','replyContentUpdated','cachedSuggestionContentParts','done','map','content','color:\x20#808080;\x20font-style:\x20italic','removed','data-id','changeGroups','find','withoutDiff','setChangeGroupState','parsedContent','withDiff','18LXzdTq','unshift','set','replyChangeGroupStateUpdated','modified','destroy','change:content','ai-reply-get-content-parts-group-not-found','includes','80PSDvsD','convertMarkdownToHTML','sources','4010lpAIEC','getContentParts','type','forEach','data-unstable','onContentChange','parsedMergedContent','3186084TPMNFI','22947936EyhCHN','context','changes','state','pending','_setCachedContentParts','modifiedNodeIds','filter','3dXNMPj','parseAndNormalizeHTML','newNodeIds','11166mOXQMK'];_0x2e35=function(){return _0x13d2a2;};return _0x2e35();}import{getTranslation as _0x341846}from'../utils/common-translations.js';import{cloneDeep as _0x1861d2}from'es-toolkit';export class AIReply extends _0x10a928(){['id'];[_0x15de43(0x1dc)];[_0x15de43(0x20b)];[_0x15de43(0x208)]=[];[_0x15de43(0x1fb)]=new _0x14ab84([]);[_0x15de43(0x20f)]=new _0x14ab84([]);[_0x15de43(0x1f7)]=[];[_0x15de43(0x1df)]=!0x1;[_0x15de43(0x1cd)];[_0x15de43(0x1e7)];[_0x15de43(0x1e0)];[_0x15de43(0x1ea)];[_0x15de43(0x1f0)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x300683,content:_0xc7959='',isDone:_0x8b7a4c=!0x1,interactionId:_0x5b654e,areActionsDisabled:_0x1fe329,documentContextContent:_0x33508f,editor:_0x4bd240,id:_0x3247a1}){const _0x59d8a5=_0x15de43;super(),this['id']=_0x3247a1||_0x326ffb(),this[_0x59d8a5(0x1dc)]=_0x5b654e,this[_0x59d8a5(0x20b)]=_0x300683,this[_0x59d8a5(0x1df)]=!!_0x1fe329,this[_0x59d8a5(0x1ea)]=_0x4bd240,this[_0x59d8a5(0x1e7)]=new _0x12f101(),this[_0x59d8a5(0x1e0)]=new _0x1a9a07(),this[_0x59d8a5(0x1cd)]=_0x21a7f6(_0x33508f||''),this[_0x59d8a5(0x1ff)](_0x59d8a5(0x1d2),_0x8b7a4c),this['on'](_0x59d8a5(0x203),()=>{const _0x31aeb6=_0x59d8a5;this[_0x31aeb6(0x20e)]();}),this[_0x59d8a5(0x1ff)](_0x59d8a5(0x1f3),_0xc7959);}[_0x15de43(0x1d9)](_0x430e8f){const _0x5d9f71=_0x15de43;this[_0x5d9f71(0x1ff)](_0x5d9f71(0x1f3),this[_0x5d9f71(0x1f3)]+_0x430e8f);}[_0x15de43(0x1f1)](){const _0x4d136a=_0x15de43;this[_0x4d136a(0x1d2)]||(this[_0x4d136a(0x1ff)](_0x4d136a(0x1d2),!0x0),this[_0x4d136a(0x20e)]());}[_0x15de43(0x202)](){const _0x52e967=_0x15de43;this[_0x52e967(0x1ed)]();}[_0x15de43(0x1fa)](_0x13e807,_0x25d1b2){const _0xe9ee18=_0x15de43;this[_0xe9ee18(0x1f7)][_0x13e807][_0xe9ee18(0x214)]=_0x25d1b2,this[_0xe9ee18(0x1cc)](_0xe9ee18(0x200),{'reply':this,'index':_0x13e807,'state':_0x25d1b2});}[_0x15de43(0x20a)]({showDiff:_0x59edca,groupIndex:_0x139dc7}){const _0x5ebb00=_0x15de43;if(!this[_0x5ebb00(0x1ea)])throw new _0x43efa2(_0x5ebb00(0x1eb),null,{'aiReply':this});const _0x5cfea4=this[_0x5ebb00(0x1e2)](_0x59edca,_0x139dc7);if(_0x5cfea4)return _0x5cfea4;let _0x38f45c=[];if(void 0x0===_0x139dc7)_0x38f45c=this[_0x5ebb00(0x1f7)];else{const _0x3e7dd6=this[_0x5ebb00(0x1f7)][_0x5ebb00(0x1f8)](({index:_0x31c7c9})=>_0x31c7c9===_0x139dc7);if(!_0x3e7dd6)throw new _0x43efa2(_0x5ebb00(0x204),null,{'aiReply':this,'groupIndex':_0x139dc7});_0x38f45c=[_0x3e7dd6];}const _0x2bfeb4=_0x5c0aec({'editor':this[_0x5ebb00(0x1ea)],'showDiff':_0x59edca,'changeGroups':_0x38f45c,'documentContextContent':this[_0x5ebb00(0x1cd)]});return this[_0x5ebb00(0x216)](_0x59edca,_0x2bfeb4),_0x2bfeb4;}[_0x15de43(0x1e2)](_0x1b403c,_0x6f2db7){const _0x575dbe=_0x15de43,_0x152834=_0x1b403c?_0x575dbe(0x1fc):_0x575dbe(0x1f9);if(!this[_0x575dbe(0x1f0)][_0x152834][_0x575dbe(0x1e9)])return null;const _0x536aa1=this[_0x575dbe(0x1f0)][_0x152834];if(void 0x0===_0x6f2db7)return _0x536aa1[_0x575dbe(0x1e9)]>0x0&&_0x536aa1[_0x575dbe(0x1e9)]!==this[_0x575dbe(0x1f7)][_0x575dbe(0x1e9)]?(this[_0x575dbe(0x216)](_0x1b403c,null),null):_0x1861d2(_0x536aa1);{const _0x1863d6=_0x536aa1[_0x575dbe(0x1f8)](({index:_0x27a10c})=>_0x27a10c===_0x6f2db7);if(_0x1863d6)return[_0x1861d2(_0x1863d6)];}return null;}[_0x15de43(0x216)](_0x2625bb,_0x200d17){const _0x1d4024=_0x15de43,_0x2cacfd=_0x2625bb?_0x1d4024(0x1fc):_0x1d4024(0x1f9);_0x200d17?_0x200d17[_0x1d4024(0x20c)](_0x56af8f=>{const _0x587c95=_0x1d4024,_0x92c447=this[_0x587c95(0x1f0)][_0x2cacfd],_0x18d52f=_0x92c447[_0x587c95(0x1f8)](({index:_0x45ad33})=>_0x45ad33===_0x56af8f[_0x587c95(0x1e6)]);if(_0x18d52f){const _0x45ed70=_0x92c447[_0x587c95(0x1ee)](_0x18d52f);_0x92c447[_0x587c95(0x1d6)](_0x45ed70,0x1,_0x56af8f);}else _0x92c447[_0x587c95(0x1e5)](_0x56af8f);}):this[_0x1d4024(0x1f0)][_0x2cacfd][_0x1d4024(0x1e9)]=0x0;}[_0x15de43(0x20e)](){const _0x112ffb=_0x15de43;if(_0x112ffb(0x1e8)===this[_0x112ffb(0x20b)]){this[_0x112ffb(0x1fb)]=this[_0x112ffb(0x1e7)][_0x112ffb(0x1c9)](this[_0x112ffb(0x1f3)]);const _0x2f85db=this[_0x112ffb(0x1f7)];this[_0x112ffb(0x1d0)]();const _0x1dc8f6=this[_0x112ffb(0x1dd)](_0x2f85db,this[_0x112ffb(0x1f7)]);(_0x1dc8f6[_0x112ffb(0x1e9)]||this[_0x112ffb(0x1d2)])&&(this[_0x112ffb(0x1cc)](_0x112ffb(0x1ef),this,_0x1dc8f6),this[_0x112ffb(0x1f0)][_0x112ffb(0x1fc)][_0x112ffb(0x1e9)]=this[_0x112ffb(0x1f0)][_0x112ffb(0x1f9)][_0x112ffb(0x1e9)]=0x0);}else this[_0x112ffb(0x1fb)]=this[_0x112ffb(0x1e7)][_0x112ffb(0x207)](this[_0x112ffb(0x1f3)]),this[_0x112ffb(0x1cc)](_0x112ffb(0x1ef),this);}[_0x15de43(0x1dd)](_0x1d4797,_0x40a69e){const _0xefa48e=_0x15de43,_0x121cdf=[];for(const _0x19d4c1 of _0x40a69e){const _0x25c77d=_0x1d4797[_0x19d4c1[_0xefa48e(0x1e6)]];_0x25c77d?_0x25c77d[_0xefa48e(0x213)][_0xefa48e(0x1e9)]!==_0x19d4c1[_0xefa48e(0x213)][_0xefa48e(0x1e9)]?_0x121cdf[_0xefa48e(0x1e5)](_0x19d4c1):_0x25c77d[_0xefa48e(0x213)][_0xefa48e(0x20c)]((_0x4527cd,_0x47c730)=>{const _0x1db793=_0xefa48e,_0x3ed570=_0x19d4c1[_0x1db793(0x213)][_0x47c730];_0x4527cd['id']!==_0x3ed570['id']&&_0x121cdf[_0x1db793(0x1e5)](_0x19d4c1);}):_0x121cdf[_0xefa48e(0x1e5)](_0x19d4c1);}return _0x121cdf;}[_0x15de43(0x1d0)](){const _0x315631=_0x15de43,_0xe34ea6=new _0x511730('p',{},[new _0x511730(_0x315631(0x1d7),{'style':_0x315631(0x1f4)},[new _0x117376(_0x341846(this[_0x315631(0x1ea)][_0x315631(0x1d3)],_0x315631(0x1cf)))])]),_0x5fa843=this[_0x315631(0x1e0)][_0x315631(0x1ce)](this[_0x315631(0x1fb)],this[_0x315631(0x1cd)][_0x315631(0x1e4)](!0x0),{'markUnstableElements':!this[_0x315631(0x1d2)],'replaceRemovedWith':_0xe34ea6,'cutAfterLastChange':!this[_0x315631(0x1d2)]});if(!_0x5fa843[_0x315631(0x1c6)][_0x315631(0x1e9)]&&!this[_0x315631(0x1d2)])return;this[_0x315631(0x20f)]=_0x5fa843[_0x315631(0x1fb)];let _0x43c62a=[];if(_0x3a1342(_0x37f252=>{const _0x5d85c1=_0x315631,_0x1717ae=_0x5901b9(_0x37f252,_0x5d85c1(0x1f6));if(!_0x1717ae||!_0x53230c(_0x1717ae))return!0x1;const _0x5beb9a=[_0x37f252,..._0x4670c0(_0x37f252)]['at'](-0x2);if(_0x37f252!=_0x5beb9a){const _0xdc4f92=_0x5901b9(_0x5beb9a,_0x5d85c1(0x1f6));_0x53230c(_0xdc4f92)||(_0x43c62a[_0x5d85c1(0x1e5)]({'node':_0x5beb9a,'id':_0xdc4f92,'type':_0x5d85c1(0x201)}),_0x5fa843[_0x5d85c1(0x1c6)][_0x5d85c1(0x1e5)](_0xdc4f92));}else _0x5fa843[_0x5d85c1(0x1c6)][_0x5d85c1(0x205)](_0x1717ae)?_0x43c62a[_0x5d85c1(0x1e5)]({'node':_0x37f252,'type':_0x5d85c1(0x201),'id':_0x1717ae}):_0x5fa843[_0x5d85c1(0x1ca)][_0x5d85c1(0x205)](_0x1717ae)?_0x43c62a[_0x5d85c1(0x1e5)]({'node':_0x37f252,'type':_0x5d85c1(0x1d1),'id':_0x1717ae,'anchorId':_0x5901b9(_0x37f252[_0x5d85c1(0x1db)],_0x5d85c1(0x1f6))}):_0x43c62a[_0x5d85c1(0x1e5)]({'node':_0x37f252,'type':_0x5d85c1(0x1f5),'id':_0x1717ae});return!0x0;},this[_0x315631(0x20f)]),_0x43c62a=_0x43c62a[_0x315631(0x1c7)](({node:_0x504bc9})=>[..._0x4670c0(_0x504bc9),_0x504bc9][_0x315631(0x1d4)](_0x249219=>!_0x5901b9(_0x249219,_0x315631(0x20d)))),0x0==_0x43c62a[_0x315631(0x1e9)])return;const _0x296401=[[_0x43c62a[0x0]]];for(let _0x32f786=0x1;_0x32f786<_0x43c62a[_0x315631(0x1e9)];_0x32f786++){const _0x380668=_0x296401[_0x296401[_0x315631(0x1e9)]-0x1],_0x341f08=_0x380668[_0x380668[_0x315631(0x1e9)]-0x1];_0x43c62a[_0x32f786][_0x315631(0x1e3)][_0x315631(0x1db)]==_0x341f08[_0x315631(0x1e3)]&&_0x315631(0x201)!=_0x43c62a[_0x32f786][_0x315631(0x20b)]&&_0x315631(0x201)!=_0x341f08[_0x315631(0x20b)]?_0x380668[_0x315631(0x1e5)](_0x43c62a[_0x32f786]):_0x296401[_0x315631(0x1e5)]([_0x43c62a[_0x32f786]]);}for(const _0x53eca5 of _0x296401){const _0x3b4d1a=_0x53eca5[0x0],_0xa1e02f=_0x53eca5[_0x53eca5[_0x315631(0x1e9)]-0x1],_0x4ecb72=_0x216406(_0x3b4d1a[_0x315631(0x1e3)][_0x315631(0x1db)]);_0x4ecb72&&_0x53eca5[_0x315631(0x1fe)](_0x4ecb72);const _0x218d2=_0x216406(_0xa1e02f[_0x315631(0x1e3)][_0x315631(0x1da)]);_0x218d2&&_0x53eca5[_0x315631(0x1e5)](_0x218d2);}function _0x53230c(_0x21f93a){const _0x5db247=_0x315631;return _0x5fa843[_0x5db247(0x1c6)][_0x5db247(0x205)](_0x21f93a)||_0x5fa843[_0x5db247(0x1ca)][_0x5db247(0x205)](_0x21f93a)||_0x5fa843[_0x5db247(0x1de)][_0x5db247(0x205)](_0x21f93a);}function _0x216406(_0x50ec0e){const _0x33f6ad=_0x315631;if(_0x50ec0e&&_0x5901b9(_0x50ec0e,_0x33f6ad(0x1f6))&&!_0x5901b9(_0x50ec0e,_0x33f6ad(0x20d))){const _0x182385=_0x5901b9(_0x50ec0e,_0x33f6ad(0x1f6));if(!_0x53230c(_0x182385))return{'node':_0x50ec0e,'type':_0x33f6ad(0x212),'id':_0x182385};}return null;}this[_0x315631(0x1f7)]=_0x296401[_0x315631(0x1f2)]((_0x20a0e9,_0x8689a8)=>({'changes':_0x20a0e9,'state':_0x315631(0x215),'index':_0x8689a8}));}}
23
+ const _0x3f3c5e=_0x246c;function _0x3cfa(){const _0x4d6509=['isDone','parsedMergedContent','data-unstable','unshift','onContentChange','new','node','withoutDiff','sources','removedNodeIds','AI_SUGGESTION_CONTENT_PART_REMOVED','21qgdyRY','aiResponseParser','removed','replyContentUpdated','nextSibling','modified','_setCachedContentParts','583561HTZLps','convertMarkdownToHTML','destroy','172151ULiVOY','push','1166952eMjHNW','replyChangeGroupStateUpdated','1xsDCXM','pending','228hkaPRs','27BhwWUl','stopListening','includes','ai-get-editor-from-context-no-editor','newNodeIds','type','previousSibling','_getCachedContentParts','186RdTyRT','appendContent','splice','set','modifiedNodeIds','_getDifferentChangeGroups','updateChangeGroups','state','5420680DJXtrR','setChangeGroupState','span','done','233296ixECSl','getContentParts','filter','editor','withDiff','areActionsDisabled','modification','cachedSuggestionContentParts','find','merge','changeGroups','color:\x20#808080;\x20font-style:\x20italic','1068618VHmJId','parseAndNormalizeHTML','fire','map','every','parsedContent','change:content','3511210KMgGgX','cloneNode','interactionId','context','index','forEach','length','data-id','documentContextContent','indexOf','ai-reply-get-content-parts-group-not-found','content','changes','locale','aiResponseApplier'];_0x3cfa=function(){return _0x4d6509;};return _0x3cfa();}(function(_0x110d4a,_0x3cb37d){const _0x26c7dc=_0x246c,_0x147297=_0x110d4a();while(!![]){try{const _0x42077b=parseInt(_0x26c7dc(0x15c))/0x1*(-parseInt(_0x26c7dc(0x17f))/0x2)+-parseInt(_0x26c7dc(0x14e))/0x3*(parseInt(_0x26c7dc(0x173))/0x4)+parseInt(_0x26c7dc(0x134))/0x5+parseInt(_0x26c7dc(0x167))/0x6*(parseInt(_0x26c7dc(0x158))/0x7)+-parseInt(_0x26c7dc(0x15a))/0x8*(-parseInt(_0x26c7dc(0x15f))/0x9)+parseInt(_0x26c7dc(0x16f))/0xa+parseInt(_0x26c7dc(0x155))/0xb*(-parseInt(_0x26c7dc(0x15e))/0xc);if(_0x42077b===_0x3cb37d)break;else _0x147297['push'](_0x147297['shift']());}catch(_0x2a15c7){_0x147297['push'](_0x147297['shift']());}}}(_0x3cfa,0x788ba));import{CKEditorError as _0x4b9070,ObservableMixin as _0x1042f,uid as _0x3dafb0}from'ckeditor5/src/utils.js';import{Element as _0x4a26ec,findAll as _0x186b09,getAttribute as _0x483d82,getParents as _0x5e6e0d,Document as _0x55b9cd,parse as _0x53569b,Text as _0x1caeaa}from'../utils/htmlparser.js';import{AIResponseParser as _0x3b60a9}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x48ccda}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x28883a}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0xc21a9e}from'../utils/common-translations.js';function _0x246c(_0x3dfa37,_0x5de6f8){const _0x3cfab7=_0x3cfa();return _0x246c=function(_0x246cf3,_0x4ba954){_0x246cf3=_0x246cf3-0x133;let _0x4f9ba1=_0x3cfab7[_0x246cf3];return _0x4f9ba1;},_0x246c(_0x3dfa37,_0x5de6f8);}import{cloneDeep as _0x3b335f}from'es-toolkit';export class AIReply extends _0x1042f(){['id'];[_0x3f3c5e(0x136)];[_0x3f3c5e(0x164)];[_0x3f3c5e(0x14b)]=[];[_0x3f3c5e(0x184)]=new _0x55b9cd([]);[_0x3f3c5e(0x144)]=new _0x55b9cd([]);[_0x3f3c5e(0x17d)]=[];[_0x3f3c5e(0x178)]=!0x1;[_0x3f3c5e(0x13c)];[_0x3f3c5e(0x14f)];[_0x3f3c5e(0x142)];[_0x3f3c5e(0x176)];[_0x3f3c5e(0x17a)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x1b1d28,content:_0x40ff8c='',isDone:_0x490daa=!0x1,interactionId:_0x43c8de,areActionsDisabled:_0x3a5e1b,documentContextContent:_0x4dc144,editor:_0x1f8f8e,id:_0x2c56b4}){const _0x3ddc67=_0x3f3c5e;super(),this['id']=_0x2c56b4||_0x3dafb0(),this[_0x3ddc67(0x136)]=_0x43c8de,this[_0x3ddc67(0x164)]=_0x1b1d28,this[_0x3ddc67(0x178)]=!!_0x3a5e1b,this[_0x3ddc67(0x176)]=_0x1f8f8e,this[_0x3ddc67(0x14f)]=new _0x3b60a9(),this[_0x3ddc67(0x142)]=new _0x48ccda(),this[_0x3ddc67(0x13c)]=_0x53569b(_0x4dc144||''),this[_0x3ddc67(0x16a)](_0x3ddc67(0x143),_0x490daa),this['on'](_0x3ddc67(0x133),()=>{const _0x2f79be=_0x3ddc67;this[_0x2f79be(0x147)]();}),this[_0x3ddc67(0x16a)](_0x3ddc67(0x13f),_0x40ff8c);}[_0x3f3c5e(0x168)](_0x45943b){const _0x5c6c62=_0x3f3c5e;this[_0x5c6c62(0x16a)](_0x5c6c62(0x13f),this[_0x5c6c62(0x13f)]+_0x45943b);}[_0x3f3c5e(0x172)](){const _0x3e8cf6=_0x3f3c5e;this[_0x3e8cf6(0x143)]||(this[_0x3e8cf6(0x16a)](_0x3e8cf6(0x143),!0x0),this[_0x3e8cf6(0x147)]());}[_0x3f3c5e(0x157)](){const _0x4d6d19=_0x3f3c5e;this[_0x4d6d19(0x160)]();}[_0x3f3c5e(0x170)](_0x2420fa,_0x247869){const _0x31bd53=_0x3f3c5e;this[_0x31bd53(0x17d)][_0x2420fa][_0x31bd53(0x16e)]=_0x247869,this[_0x31bd53(0x181)](_0x31bd53(0x15b),{'reply':this,'index':_0x2420fa,'state':_0x247869});}[_0x3f3c5e(0x174)]({showDiff:_0x4810d2,groupIndex:_0x1cf941}){const _0x33b15a=_0x3f3c5e;if(!this[_0x33b15a(0x176)])throw new _0x4b9070(_0x33b15a(0x162),null,{'aiReply':this});const _0x412f0e=this[_0x33b15a(0x166)](_0x4810d2,_0x1cf941);if(_0x412f0e)return _0x412f0e;let _0x2b2659=[];if(void 0x0===_0x1cf941)_0x2b2659=this[_0x33b15a(0x17d)];else{const _0x5763c2=this[_0x33b15a(0x17d)][_0x33b15a(0x17b)](({index:_0x45df68})=>_0x45df68===_0x1cf941);if(!_0x5763c2)throw new _0x4b9070(_0x33b15a(0x13e),null,{'aiReply':this,'groupIndex':_0x1cf941});_0x2b2659=[_0x5763c2];}const _0x458b78=_0x28883a({'editor':this[_0x33b15a(0x176)],'showDiff':_0x4810d2,'changeGroups':_0x2b2659,'documentContextContent':this[_0x33b15a(0x13c)]});return this[_0x33b15a(0x154)](_0x4810d2,_0x458b78),_0x458b78;}[_0x3f3c5e(0x166)](_0x7fe51c,_0x46e518){const _0x3df08d=_0x3f3c5e,_0x28b65=_0x7fe51c?_0x3df08d(0x177):_0x3df08d(0x14a);if(!this[_0x3df08d(0x17a)][_0x28b65][_0x3df08d(0x13a)])return null;const _0x28e6fa=this[_0x3df08d(0x17a)][_0x28b65];if(void 0x0===_0x46e518)return _0x28e6fa[_0x3df08d(0x13a)]>0x0&&_0x28e6fa[_0x3df08d(0x13a)]!==this[_0x3df08d(0x17d)][_0x3df08d(0x13a)]?(this[_0x3df08d(0x154)](_0x7fe51c,null),null):_0x3b335f(_0x28e6fa);{const _0x2dae3f=_0x28e6fa[_0x3df08d(0x17b)](({index:_0x1dc2cc})=>_0x1dc2cc===_0x46e518);if(_0x2dae3f)return[_0x3b335f(_0x2dae3f)];}return null;}[_0x3f3c5e(0x154)](_0x2e1b7d,_0x4de874){const _0x26cd5d=_0x3f3c5e,_0x5da61d=_0x2e1b7d?_0x26cd5d(0x177):_0x26cd5d(0x14a);_0x4de874?_0x4de874[_0x26cd5d(0x139)](_0xfe1e9d=>{const _0x19a953=_0x26cd5d,_0xfac68d=this[_0x19a953(0x17a)][_0x5da61d],_0x333b3e=_0xfac68d[_0x19a953(0x17b)](({index:_0x139aa6})=>_0x139aa6===_0xfe1e9d[_0x19a953(0x138)]);if(_0x333b3e){const _0x2feca0=_0xfac68d[_0x19a953(0x13d)](_0x333b3e);_0xfac68d[_0x19a953(0x169)](_0x2feca0,0x1,_0xfe1e9d);}else _0xfac68d[_0x19a953(0x159)](_0xfe1e9d);}):this[_0x26cd5d(0x17a)][_0x5da61d][_0x26cd5d(0x13a)]=0x0;}[_0x3f3c5e(0x147)](){const _0x160c85=_0x3f3c5e;if(_0x160c85(0x179)===this[_0x160c85(0x164)]){this[_0x160c85(0x184)]=this[_0x160c85(0x14f)][_0x160c85(0x180)](this[_0x160c85(0x13f)]);const _0x3e4b2d=this[_0x160c85(0x17d)];this[_0x160c85(0x16d)]();const _0x2c6630=this[_0x160c85(0x16c)](_0x3e4b2d,this[_0x160c85(0x17d)]);(_0x2c6630[_0x160c85(0x13a)]||this[_0x160c85(0x143)])&&(this[_0x160c85(0x181)](_0x160c85(0x151),this,_0x2c6630),this[_0x160c85(0x17a)][_0x160c85(0x177)][_0x160c85(0x13a)]=this[_0x160c85(0x17a)][_0x160c85(0x14a)][_0x160c85(0x13a)]=0x0);}else this[_0x160c85(0x184)]=this[_0x160c85(0x14f)][_0x160c85(0x156)](this[_0x160c85(0x13f)]),this[_0x160c85(0x181)](_0x160c85(0x151),this);}[_0x3f3c5e(0x16c)](_0x4db447,_0x353a7b){const _0x453998=_0x3f3c5e,_0x273b96=[];for(const _0x227401 of _0x353a7b){const _0x46f63d=_0x4db447[_0x227401[_0x453998(0x138)]];_0x46f63d?_0x46f63d[_0x453998(0x140)][_0x453998(0x13a)]!==_0x227401[_0x453998(0x140)][_0x453998(0x13a)]?_0x273b96[_0x453998(0x159)](_0x227401):_0x46f63d[_0x453998(0x140)][_0x453998(0x139)]((_0x7b5275,_0x4b1cbb)=>{const _0x40de04=_0x453998,_0x39144f=_0x227401[_0x40de04(0x140)][_0x4b1cbb];_0x7b5275['id']!==_0x39144f['id']&&_0x273b96[_0x40de04(0x159)](_0x227401);}):_0x273b96[_0x453998(0x159)](_0x227401);}return _0x273b96;}[_0x3f3c5e(0x16d)](){const _0x3dec09=_0x3f3c5e,_0x1b053e=new _0x4a26ec('p',{},[new _0x4a26ec(_0x3dec09(0x171),{'style':_0x3dec09(0x17e)},[new _0x1caeaa(_0xc21a9e(this[_0x3dec09(0x176)][_0x3dec09(0x141)],_0x3dec09(0x14d)))])]),_0x210aff=this[_0x3dec09(0x142)][_0x3dec09(0x17c)](this[_0x3dec09(0x184)],this[_0x3dec09(0x13c)][_0x3dec09(0x135)](!0x0),{'markUnstableElements':!this[_0x3dec09(0x143)],'replaceRemovedWith':_0x1b053e,'cutAfterLastChange':!this[_0x3dec09(0x143)]});if(!_0x210aff[_0x3dec09(0x16b)][_0x3dec09(0x13a)]&&!this[_0x3dec09(0x143)])return;this[_0x3dec09(0x144)]=_0x210aff[_0x3dec09(0x184)];let _0x1684e2=[];if(_0x186b09(_0x4136fe=>{const _0x3a024f=_0x3dec09,_0x48e098=_0x483d82(_0x4136fe,_0x3a024f(0x13b));if(!_0x48e098||!_0xc1c46(_0x48e098))return!0x1;const _0x4b67db=[_0x4136fe,..._0x5e6e0d(_0x4136fe)]['at'](-0x2);if(_0x4136fe!=_0x4b67db){const _0x412c39=_0x483d82(_0x4b67db,_0x3a024f(0x13b));_0xc1c46(_0x412c39)||(_0x1684e2[_0x3a024f(0x159)]({'node':_0x4b67db,'id':_0x412c39,'type':_0x3a024f(0x153)}),_0x210aff[_0x3a024f(0x16b)][_0x3a024f(0x159)](_0x412c39));}else _0x210aff[_0x3a024f(0x16b)][_0x3a024f(0x161)](_0x48e098)?_0x1684e2[_0x3a024f(0x159)]({'node':_0x4136fe,'type':_0x3a024f(0x153),'id':_0x48e098}):_0x210aff[_0x3a024f(0x163)][_0x3a024f(0x161)](_0x48e098)?_0x1684e2[_0x3a024f(0x159)]({'node':_0x4136fe,'type':_0x3a024f(0x148),'id':_0x48e098,'anchorId':_0x483d82(_0x4136fe[_0x3a024f(0x165)],_0x3a024f(0x13b))}):_0x1684e2[_0x3a024f(0x159)]({'node':_0x4136fe,'type':_0x3a024f(0x150),'id':_0x48e098});return!0x0;},this[_0x3dec09(0x144)]),_0x1684e2=_0x1684e2[_0x3dec09(0x175)](({node:_0x24e7ab})=>[..._0x5e6e0d(_0x24e7ab),_0x24e7ab][_0x3dec09(0x183)](_0x37aa4d=>!_0x483d82(_0x37aa4d,_0x3dec09(0x145)))),0x0==_0x1684e2[_0x3dec09(0x13a)])return;const _0x8fe940=[[_0x1684e2[0x0]]];for(let _0x6a8059=0x1;_0x6a8059<_0x1684e2[_0x3dec09(0x13a)];_0x6a8059++){const _0x5d83fb=_0x8fe940[_0x8fe940[_0x3dec09(0x13a)]-0x1],_0x285eba=_0x5d83fb[_0x5d83fb[_0x3dec09(0x13a)]-0x1];_0x1684e2[_0x6a8059][_0x3dec09(0x149)][_0x3dec09(0x165)]==_0x285eba[_0x3dec09(0x149)]&&_0x3dec09(0x153)!=_0x1684e2[_0x6a8059][_0x3dec09(0x164)]&&_0x3dec09(0x153)!=_0x285eba[_0x3dec09(0x164)]?_0x5d83fb[_0x3dec09(0x159)](_0x1684e2[_0x6a8059]):_0x8fe940[_0x3dec09(0x159)]([_0x1684e2[_0x6a8059]]);}for(const _0xe89dac of _0x8fe940){const _0x3e079e=_0xe89dac[0x0],_0x5ad157=_0xe89dac[_0xe89dac[_0x3dec09(0x13a)]-0x1],_0x5d1947=_0x2cf2b9(_0x3e079e[_0x3dec09(0x149)][_0x3dec09(0x165)]);_0x5d1947&&_0xe89dac[_0x3dec09(0x146)](_0x5d1947);const _0x25e5e1=_0x2cf2b9(_0x5ad157[_0x3dec09(0x149)][_0x3dec09(0x152)]);_0x25e5e1&&_0xe89dac[_0x3dec09(0x159)](_0x25e5e1);}function _0xc1c46(_0x444052){const _0x24a0a4=_0x3dec09;return _0x210aff[_0x24a0a4(0x16b)][_0x24a0a4(0x161)](_0x444052)||_0x210aff[_0x24a0a4(0x163)][_0x24a0a4(0x161)](_0x444052)||_0x210aff[_0x24a0a4(0x14c)][_0x24a0a4(0x161)](_0x444052);}function _0x2cf2b9(_0x459abf){const _0x4d5bd6=_0x3dec09;if(_0x459abf&&_0x483d82(_0x459abf,_0x4d5bd6(0x13b))&&!_0x483d82(_0x459abf,_0x4d5bd6(0x145))){const _0x38e06d=_0x483d82(_0x459abf,_0x4d5bd6(0x13b));if(!_0xc1c46(_0x38e06d))return{'node':_0x459abf,'type':_0x4d5bd6(0x137),'id':_0x38e06d};}return null;}this[_0x3dec09(0x17d)]=_0x8fe940[_0x3dec09(0x182)]((_0x290f95,_0x4ee8c5)=>({'changes':_0x290f95,'state':_0x3dec09(0x15d),'index':_0x4ee8c5}));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x459b34=_0x1765;(function(_0x1b799b,_0x44032e){const _0x2b5261=_0x1765,_0x1d7c51=_0x1b799b();while(!![]){try{const _0x28f332=parseInt(_0x2b5261(0x211))/0x1*(-parseInt(_0x2b5261(0x22a))/0x2)+parseInt(_0x2b5261(0x202))/0x3*(parseInt(_0x2b5261(0x217))/0x4)+parseInt(_0x2b5261(0x1fa))/0x5*(parseInt(_0x2b5261(0x216))/0x6)+parseInt(_0x2b5261(0x22c))/0x7+-parseInt(_0x2b5261(0x232))/0x8+parseInt(_0x2b5261(0x20c))/0x9*(parseInt(_0x2b5261(0x1f0))/0xa)+parseInt(_0x2b5261(0x1f4))/0xb;if(_0x28f332===_0x44032e)break;else _0x1d7c51['push'](_0x1d7c51['shift']());}catch(_0x27265c){_0x1d7c51['push'](_0x1d7c51['shift']());}}}(_0x465f,0x2a378));function _0x465f(){const _0x21ad3a=['trim','has','_touchedNodesState','_findPrevElementWithDataId','lastTouchedId','600434MzRRYj','_replaceNode','261779DOfLSX','_storeDeletedElementIds','cloneNode','parentNode','_isExistingContentComment','_removeSpecialComments','2373512AnXCzo','childNodes','data-removed','markUnstableElements','modifiedIds','_findNextElementWithDataId','748190JJwZIQ','splice','newIds','length','4210525kByiJq','indexOf','merge','_isExistingNode','afterbegin','reverse','798355EoLEmC','forEach','map','_getUid','cutAfterLastChange','_isDelNode','push','filter','63VsekOt','markUnstableElementsDepth','_hasWrappedParent','removedIds','true','afterend','slice','data-id','_existingDataIds','_markUnstableElements','9PdJlEl','data-wrapped-id','nodeType','includes','new-element','1MOHKBy','_findFallbackReferenceNode','_isNewNode','_insertNodes','match','6qxMAVH','21936DcRsZN','_markLastTagElementUnstable','lastChild','_markWrappedElements','nextSibling','_generateUid','replaceRemovedWith','beforebegin','previousSibling','_getNodeDataId','invalidIds','from','_findReferenceNode','data-unstable'];_0x465f=function(){return _0x21ad3a;};return _0x465f();}function _0x1765(_0x522dc7,_0x45d007){const _0x465f92=_0x465f();return _0x1765=function(_0x17654e,_0x2d7d80){_0x17654e=_0x17654e-0x1eb;let _0x54b19a=_0x465f92[_0x17654e];return _0x54b19a;},_0x1765(_0x522dc7,_0x45d007);}import{ObservableMixin as _0x5e3215,uid as _0x13bbab}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0xd1ffa5,findByAttribute as _0x2982a8,getAttribute as _0x2842f8,isComment as _0x5b6b06,isTag as _0x4b38ed,insertElement as _0x58e231,moveElement as _0x4a9924,removeElement as _0xce1575,replaceElement as _0x40d39d,serialize as _0x3865c0,setAttribute as _0x478682,clone as _0x42ab44,findAllComments as _0x54795b,getParents as _0x4fcc3b,getNodeNestingLevel as _0x49384e,areNodesSame as _0x18b4d9,removeElementsAfter as _0x8b970a}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x5e3215(){[_0x459b34(0x21c)];[_0x459b34(0x227)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x459b34(0x20a)]=new Set();constructor(_0x565f74){const _0x4e0c25=_0x459b34;super(),this[_0x4e0c25(0x21c)]=_0x565f74||_0x13bbab;}[_0x459b34(0x1f6)](_0x322810,_0x1d0a61,_0x4a023b){const _0x5bd519=_0x459b34,_0x4323f5=_0x42ab44(_0x322810);if(0x0===_0x1d0a61[_0x5bd519(0x1eb)][_0x5bd519(0x1f3)]){const _0x9f5bfc=[];return _0xd1ffa5(_0x5bd519(0x209),_0x5bd519(0x210),_0x4323f5)[_0x5bd519(0x1fb)](_0x2cbafe=>{const _0x5281d5=_0x5bd519,_0x180909=this[_0x5281d5(0x21c)]();_0x478682(_0x2cbafe,_0x5281d5(0x209),_0x180909),_0x9f5bfc[_0x5281d5(0x200)](_0x180909);}),this[_0x5bd519(0x231)](_0x4323f5),{'parsedContent':_0x4323f5,'newNodeIds':_0x9f5bfc,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x4a023b&&_0x4a023b[_0x5bd519(0x1ed)]&&this[_0x5bd519(0x218)](_0x4323f5),this[_0x5bd519(0x227)][_0x5bd519(0x1f2)]=[],this[_0x5bd519(0x227)][_0x5bd519(0x1ee)]=[],this[_0x5bd519(0x227)][_0x5bd519(0x205)]=[],this[_0x5bd519(0x227)][_0x5bd519(0x221)]=[],this[_0x5bd519(0x227)][_0x5bd519(0x229)]=null,this[_0x5bd519(0x20a)]=new Set(_0xd1ffa5(_0x5bd519(0x209),null,_0x1d0a61)[_0x5bd519(0x1fc)](_0x5cf38b=>_0x2842f8(_0x5cf38b,_0x5bd519(0x209)))[_0x5bd519(0x201)](_0x441575=>!!_0x441575));let _0x230f06=-0x1,_0x50aa31=!0x1;const _0x30785c=_0x4323f5[_0x5bd519(0x1eb)],_0x52b4ce=Array[_0x5bd519(0x222)](_0x30785c)[_0x5bd519(0x201)](_0x575225=>!(0x3===_0x575225[_0x5bd519(0x20e)]&&''===_0x3865c0(_0x575225)[_0x5bd519(0x225)]())),_0xed79a3=_0x52b4ce[_0x5bd519(0x1f3)];for(let _0x11fe1d=0x0;_0x11fe1d<_0xed79a3;_0x11fe1d++){const _0x4c6a48=_0x52b4ce[_0x11fe1d],_0x40bb09=_0x52b4ce[_0x11fe1d+0x1];if(this[_0x5bd519(0x213)](_0x4c6a48)){if(-0x1===_0x230f06&&(_0x230f06=_0x11fe1d),this[_0x5bd519(0x21a)](_0x4c6a48),!this[_0x5bd519(0x213)](_0x40bb09)){const [_0x3b8f3f,_0x2a1942]=this[_0x5bd519(0x223)](_0x4c6a48,_0x50aa31,_0x1d0a61);if(_0x3b8f3f){const _0x3969da=Array[_0x5bd519(0x222)](_0x52b4ce)[_0x5bd519(0x208)](_0x230f06,_0x11fe1d+0x1);this[_0x5bd519(0x214)](_0x3b8f3f,_0x3969da,_0x2a1942),_0x230f06=-0x1;}}}else{if(this[_0x5bd519(0x230)](_0x4c6a48))_0x50aa31=!0x0;else{if(this[_0x5bd519(0x1f7)](_0x4c6a48)){const _0x1ab468=_0x2842f8(_0x4c6a48,_0x5bd519(0x209));if(_0x1ab468&&this[_0x5bd519(0x20a)][_0x5bd519(0x226)](_0x1ab468)){const _0x45861f=_0x2982a8(_0x5bd519(0x209),_0x1ab468,_0x1d0a61);this[_0x5bd519(0x22b)](_0x45861f,_0x4c6a48);}if(this[_0x5bd519(0x227)][_0x5bd519(0x205)][_0x5bd519(0x20f)](_0x1ab468)){const _0x3123e1=this[_0x5bd519(0x227)][_0x5bd519(0x205)][_0x5bd519(0x1f5)](_0x1ab468);this[_0x5bd519(0x227)][_0x5bd519(0x205)][_0x5bd519(0x1f1)](_0x3123e1,0x1);}}else{if(this[_0x5bd519(0x1ff)](_0x4c6a48)){const _0x3a438a=_0x2842f8(_0x4c6a48,_0x5bd519(0x209));this[_0x5bd519(0x227)][_0x5bd519(0x1ee)][_0x5bd519(0x20f)](_0x3a438a)||this[_0x5bd519(0x22d)](_0x4c6a48);}}}}}for(const _0x3a44bd of this[_0x5bd519(0x227)][_0x5bd519(0x205)]){const _0x250188=_0x2982a8(_0x5bd519(0x209),_0x3a44bd,_0x1d0a61);if(_0x250188){if(_0x4a023b&&_0x4a023b[_0x5bd519(0x21d)]){this[_0x5bd519(0x227)][_0x5bd519(0x229)]=_0x3a44bd;const _0xe54429=_0x4a023b[_0x5bd519(0x21d)][_0x5bd519(0x22e)](!0x0);_0x478682(_0xe54429,_0x5bd519(0x209),_0x3a44bd),_0x478682(_0xe54429,_0x5bd519(0x1ec),_0x5bd519(0x206)),_0x40d39d(_0x250188,_0xe54429);}else _0xce1575(_0x250188);}}if(_0xd1ffa5(_0x5bd519(0x20d),null,_0x1d0a61)[_0x5bd519(0x1fb)](_0x4cff95=>{const _0x5855de=_0x5bd519,_0x1d2e35=_0x2842f8(_0x4cff95,_0x5855de(0x20d)),_0xa5470e=_0x2982a8(_0x5855de(0x209),_0x1d2e35,_0x1d0a61);_0xa5470e&&_0x4a9924(_0xa5470e,_0x4cff95);}),_0xd1ffa5(_0x5bd519(0x209),_0x5bd519(0x210),_0x1d0a61)[_0x5bd519(0x1fb)](_0xc0aa5f=>{const _0x10fb69=_0x5bd519,_0x41c72e=this[_0x10fb69(0x1fd)](_0xc0aa5f);_0x478682(_0xc0aa5f,_0x10fb69(0x209),_0x41c72e),this[_0x10fb69(0x227)][_0x10fb69(0x1f2)][_0x10fb69(0x200)](_0x41c72e);}),this[_0x5bd519(0x231)](_0x1d0a61),_0x4a023b&&_0x4a023b[_0x5bd519(0x1ed)]&&this[_0x5bd519(0x20b)](_0x1d0a61,_0x4a023b[_0x5bd519(0x203)]||0x0),_0x4a023b&&_0x4a023b[_0x5bd519(0x1fe)]&&this[_0x5bd519(0x227)][_0x5bd519(0x229)]){let _0x11e90f=_0x2982a8(_0x5bd519(0x209),this[_0x5bd519(0x227)][_0x5bd519(0x229)],_0x1d0a61);for(;_0x11e90f;)_0x8b970a(_0x11e90f),_0x11e90f=_0x11e90f[_0x5bd519(0x22f)];}return{'parsedContent':_0x1d0a61,'newNodeIds':this[_0x5bd519(0x227)][_0x5bd519(0x1f2)],'modifiedNodeIds':this[_0x5bd519(0x227)][_0x5bd519(0x1ee)],'removedNodeIds':this[_0x5bd519(0x227)][_0x5bd519(0x205)]};}[_0x459b34(0x214)](_0x3c85c4,_0x50812d,_0x25e82a){const _0x4742c6=_0x459b34;for(const _0x43493b of _0x50812d){const _0x4aae2d=this[_0x4742c6(0x1fd)](_0x43493b);_0x478682(_0x43493b,_0x4742c6(0x209),_0x4aae2d),this[_0x4742c6(0x227)][_0x4742c6(0x1f2)][_0x4742c6(0x200)](_0x4aae2d),this[_0x4742c6(0x227)][_0x4742c6(0x229)]=_0x4aae2d;}const _0x2e2370=_0x4742c6(0x1f8)===_0x25e82a||_0x4742c6(0x207)===_0x25e82a?_0x50812d[_0x4742c6(0x1f9)]():_0x50812d;for(const _0x3bcde6 of _0x2e2370)_0x58e231(_0x3c85c4,_0x3bcde6,_0x25e82a);}[_0x459b34(0x22b)](_0xd15c5c,_0x50fc86){const _0x393369=_0x459b34;if(!_0xd15c5c)return;if(_0x18b4d9(_0xd15c5c,_0x50fc86))return;const _0x42eb0c=this[_0x393369(0x1fd)](_0xd15c5c);_0x478682(_0x50fc86,_0x393369(0x209),_0x42eb0c),this[_0x393369(0x227)][_0x393369(0x1ee)][_0x393369(0x200)](_0x42eb0c),this[_0x393369(0x227)][_0x393369(0x229)]=_0x42eb0c,_0x40d39d(_0xd15c5c,_0x50fc86[_0x393369(0x22e)](!0x0));}[_0x459b34(0x223)](_0x43c090,_0x3396f2,_0x53d286){const _0x5b2653=_0x459b34,_0x5caaf9=this[_0x5b2653(0x228)](_0x43c090,!0x1);if(_0x5caaf9){const _0x3276a5=this[_0x5b2653(0x220)](_0x5caaf9),_0x3c4044=_0x2982a8(_0x5b2653(0x209),_0x3276a5,_0x53d286);if(_0x3c4044)return[_0x3c4044,_0x5b2653(0x207)];this[_0x5b2653(0x227)][_0x5b2653(0x221)][_0x5b2653(0x200)](_0x3276a5);}const _0x23c310=this[_0x5b2653(0x1ef)](_0x43c090,!0x1);if(_0x23c310){const _0x24447e=this[_0x5b2653(0x220)](_0x23c310),_0x4ee8d4=_0x2982a8(_0x5b2653(0x209),_0x24447e,_0x53d286);if(_0x4ee8d4)return[_0x4ee8d4,_0x5b2653(0x21e)];this[_0x5b2653(0x227)][_0x5b2653(0x221)][_0x5b2653(0x200)](_0x24447e);}return _0x3396f2?_0x43c090[_0x5b2653(0x21b)]?this[_0x5b2653(0x212)](_0x43c090,_0x53d286):[_0x53d286[_0x5b2653(0x1eb)][_0x53d286[_0x5b2653(0x1eb)][_0x5b2653(0x1f3)]-0x1],_0x5b2653(0x207)]:[_0x53d286[_0x5b2653(0x1eb)][0x0],_0x5b2653(0x21e)];}[_0x459b34(0x212)](_0x3a6641,_0x4b07b7){const _0x3421b5=_0x459b34,_0x3e858c=[],_0x8aa60e=this[_0x3421b5(0x228)](_0x3a6641,!0x0);if(_0x8aa60e){const _0x806a15=this[_0x3421b5(0x220)](_0x8aa60e),_0x228513=_0x2982a8(_0x3421b5(0x209),_0x806a15,_0x4b07b7);_0x228513&&_0x3e858c[_0x3421b5(0x200)]([_0x228513,_0x3421b5(0x207)]);}const _0x28349f=this[_0x3421b5(0x1ef)](_0x3a6641,!0x0);if(_0x28349f){const _0x19bbaf=this[_0x3421b5(0x220)](_0x28349f),_0x115428=_0x2982a8(_0x3421b5(0x209),_0x19bbaf,_0x4b07b7);_0x115428&&_0x3e858c[_0x3421b5(0x200)]([_0x115428,_0x3421b5(0x21e)]);}if(_0x3e858c[_0x3421b5(0x1f3)]>0x1)return _0x49384e(_0x3e858c[0x0][0x0])<=_0x49384e(_0x3e858c[0x1][0x0])?_0x3e858c[0x0]:_0x3e858c[0x1];return 0x1===_0x3e858c[_0x3421b5(0x1f3)]?_0x3e858c[0x0]:[_0x4b07b7[_0x3421b5(0x219)],_0x3421b5(0x207)];}[_0x459b34(0x1ef)](_0x2e20a4,_0xb47357){const _0xa323e4=_0x459b34;let _0x3e318a=_0x2e20a4[_0xa323e4(0x21b)],_0x894b47=null,_0x445eac=!0x1;for(;_0x3e318a;){if(_0x5b6b06(_0x3e318a)){if(this[_0xa323e4(0x1ff)](_0x3e318a)&&(_0x894b47=_0x3e318a),this[_0xa323e4(0x230)](_0x3e318a)&&_0xb47357&&!_0x445eac){_0x445eac=!0x0,_0x3e318a=_0x3e318a[_0xa323e4(0x21b)];continue;}break;}const _0x2068da=_0x2842f8(_0x3e318a,_0xa323e4(0x209));if(_0x2068da&&_0xa323e4(0x210)!==_0x2068da&&this[_0xa323e4(0x20a)][_0xa323e4(0x226)](_0x2068da)){_0x894b47=_0x3e318a;break;}_0x3e318a=_0x3e318a[_0xa323e4(0x21b)];}return _0x894b47;}[_0x459b34(0x228)](_0x179aab,_0x2aff62){const _0x4decbd=_0x459b34;let _0x4e6b6a=_0x179aab[_0x4decbd(0x21f)],_0x5c3e1c=null,_0xb90ef4=!0x1;for(;_0x4e6b6a;){if(_0x5b6b06(_0x4e6b6a)){if(this[_0x4decbd(0x1ff)](_0x4e6b6a)&&(_0x5c3e1c=_0x4e6b6a),this[_0x4decbd(0x230)](_0x4e6b6a)&&_0x2aff62&&!_0xb90ef4){_0xb90ef4=!0x0,_0x4e6b6a=_0x4e6b6a[_0x4decbd(0x21f)];continue;}break;}const _0x1cb4d8=_0x2842f8(_0x4e6b6a,_0x4decbd(0x209));if(_0x1cb4d8&&_0x4decbd(0x210)!==_0x1cb4d8&&this[_0x4decbd(0x20a)][_0x4decbd(0x226)](_0x1cb4d8)){_0x5c3e1c=_0x4e6b6a;break;}_0x4e6b6a=_0x4e6b6a[_0x4decbd(0x21f)];}return _0x5c3e1c;}[_0x459b34(0x21a)](_0xba8f08){const _0x1ef0df=_0x459b34;_0x4b38ed(_0xba8f08)&&_0xd1ffa5(_0x1ef0df(0x209),null,_0xba8f08)[_0x1ef0df(0x1fb)](_0x52ab4b=>{const _0x411e5f=_0x1ef0df;if(this[_0x411e5f(0x1f7)](_0x52ab4b)&&!this[_0x411e5f(0x204)](_0x52ab4b)){const _0x4de87c=_0x2842f8(_0x52ab4b,_0x411e5f(0x209));_0x478682(_0x52ab4b,_0x411e5f(0x20d),_0x4de87c),_0x478682(_0x52ab4b,_0x411e5f(0x209),null);}});}[_0x459b34(0x220)](_0xe45341){const _0x2af184=_0x459b34;if(!_0xe45341)return null;if(_0x4b38ed(_0xe45341))return _0x2842f8(_0xe45341,_0x2af184(0x209));if(_0x5b6b06(_0xe45341)){const _0x51bc53=_0x3865c0(_0xe45341)[_0x2af184(0x215)](/removed[\s*-]data-id="([^"]+)"/);if(_0x51bc53&&_0x51bc53[0x1])return _0x51bc53[0x1];}return null;}[_0x459b34(0x22d)](_0x4a1c04){const _0x2a9637=_0x459b34;if(_0x5b6b06(_0x4a1c04)){const _0x3c6ae8=_0x3865c0(_0x4a1c04)[_0x2a9637(0x215)](/removed[\s*-]data-id="([^"]+)"/);_0x3c6ae8&&_0x3c6ae8[0x1]&&this[_0x2a9637(0x227)][_0x2a9637(0x205)][_0x2a9637(0x200)](_0x3c6ae8[0x1]);}}[_0x459b34(0x1fd)](_0x2d5b0e){const _0x309f85=_0x459b34;return this[_0x309f85(0x1f7)](_0x2d5b0e)?_0x2842f8(_0x2d5b0e,_0x309f85(0x209)):this[_0x309f85(0x21c)]();}[_0x459b34(0x231)](_0x1ed617){const _0x52e4bf=_0x459b34;_0x54795b(_0x1ed617)[_0x52e4bf(0x201)](_0x65a356=>this[_0x52e4bf(0x1ff)](_0x65a356)||this[_0x52e4bf(0x230)](_0x65a356))[_0x52e4bf(0x1fb)](_0x20afa3=>{_0xce1575(_0x20afa3);});}[_0x459b34(0x218)](_0x44465d){const _0x392fb0=_0x459b34,_0x2f9804=_0x44465d[_0x392fb0(0x1eb)],_0xcefc99=_0x2f9804[_0x2f9804[_0x392fb0(0x1f3)]-0x1];_0xcefc99&&_0x4b38ed(_0xcefc99)&&_0x478682(_0xcefc99,_0x392fb0(0x224),_0x392fb0(0x206));}[_0x459b34(0x20b)](_0x594caf,_0x2b117a){const _0x41595b=_0x459b34,_0x3fc83c=_0x2982a8(_0x41595b(0x224),_0x41595b(0x206),_0x594caf);if(!_0x3fc83c)return;const _0x451a5d=_0x4fcc3b(_0x3fc83c)[_0x41595b(0x208)](0x0,-0x1),_0x55f72b=_0x451a5d[_0x41595b(0x1f3)];let _0x137d8b=_0x3fc83c;if(_0x55f72b>_0x2b117a){let _0x36bf41=_0x55f72b,_0x5e2c61=null;for(;_0x36bf41>_0x2b117a&&_0x36bf41>=0x0;)_0x36bf41--,_0x5e2c61=_0x451a5d[_0x36bf41];_0x5e2c61&&(_0x137d8b=_0x5e2c61,_0x478682(_0x3fc83c,_0x41595b(0x224),null),_0x478682(_0x5e2c61,_0x41595b(0x224),_0x41595b(0x206)));}else{if(_0x55f72b<_0x2b117a){let _0x3a8172=_0x55f72b,_0x128b64=_0x3fc83c;for(;_0x3a8172<_0x2b117a;){const _0x2e0957=_0x128b64[_0x41595b(0x1eb)][_0x41595b(0x201)](_0x3bc915=>_0x4b38ed(_0x3bc915));if(0x0===_0x2e0957[_0x41595b(0x1f3)])break;_0x3a8172++,_0x128b64=_0x2e0957[_0x2e0957[_0x41595b(0x1f3)]-0x1];}_0x128b64&&(_0x137d8b=_0x128b64,_0x478682(_0x3fc83c,_0x41595b(0x224),null),_0x478682(_0x128b64,_0x41595b(0x224),_0x41595b(0x206)));}}let _0x46737a=_0x137d8b;for(;_0x46737a;){for(;_0x46737a[_0x41595b(0x21b)];)_0x46737a=_0x46737a[_0x41595b(0x21b)],_0x4b38ed(_0x46737a)&&_0x478682(_0x46737a,_0x41595b(0x224),_0x41595b(0x206));_0x46737a=_0x46737a[_0x41595b(0x22f)];}}[_0x459b34(0x213)](_0x23ed36){const _0x43954f=_0x459b34;return Boolean(_0x43954f(0x210)===_0x2842f8(_0x23ed36,_0x43954f(0x209)));}[_0x459b34(0x1f7)](_0x29015a){const _0x49dc73=_0x459b34;return Boolean((_0x2842f8(_0x29015a,_0x49dc73(0x209))||'')[_0x49dc73(0x1f3)]>0x0&&_0x49dc73(0x210)!==_0x2842f8(_0x29015a,_0x49dc73(0x209)));}[_0x459b34(0x1ff)](_0x5a47b7){const _0xc173c8=_0x459b34;return!!_0x5a47b7&&Boolean(_0x5b6b06(_0x5a47b7)&&_0x3865c0(_0x5a47b7)[_0xc173c8(0x215)](/removed[\s*-]data-id="[^"]+"/));}[_0x459b34(0x204)](_0x138d94){const _0x5ca146=_0x459b34;let _0x1ab101=_0x138d94[_0x5ca146(0x22f)];for(;_0x1ab101;){if(_0x2842f8(_0x1ab101,_0x5ca146(0x20d)))return!0x0;_0x1ab101=_0x1ab101[_0x5ca146(0x22f)];}return!0x1;}[_0x459b34(0x230)](_0x5adf50){const _0x4a7f12=_0x459b34;return Boolean(_0x5b6b06(_0x5adf50)&&_0x3865c0(_0x5adf50)[_0x4a7f12(0x215)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ function _0x4e90(){const _0x3ea4a8=['580305BGDEWI','from','indexOf','70910REtZKX','has','afterbegin','removedIds','_existingDataIds','_findReferenceNode','nodeType','_removeSpecialComments','lastTouchedId','reverse','map','newIds','_storeDeletedElementIds','lastChild','afterend','88EYatbT','_isExistingContentComment','_insertNodes','2341768bABczZ','_isDelNode','290VgINMP','length','filter','trim','replaceRemovedWith','data-wrapped-id','data-id','data-removed','forEach','beforebegin','modifiedIds','invalidIds','previousSibling','merge','push','cloneNode','true','new-element','_markUnstableElements','_generateUid','slice','_markWrappedElements','2701965NyCjjK','markUnstableElementsDepth','_isNewNode','markUnstableElements','_isExistingNode','cutAfterLastChange','_findFallbackReferenceNode','_findNextElementWithDataId','_replaceNode','nextSibling','_getUid','205590yjORYl','6TAzNJo','childNodes','_getNodeDataId','parentNode','_touchedNodesState','_markLastTagElementUnstable','match','splice','_hasWrappedParent','includes','135xFVeTO','2772RJUJxb','583212QMxiPi','_findPrevElementWithDataId','data-unstable'];_0x4e90=function(){return _0x3ea4a8;};return _0x4e90();}const _0x16daf5=_0x3ac4;(function(_0xf7c5e2,_0x37fd3f){const _0x2c1b75=_0x3ac4,_0x458320=_0xf7c5e2();while(!![]){try{const _0x1924f7=-parseInt(_0x2c1b75(0x1a4))/0x1+parseInt(_0x2c1b75(0x176))/0x2*(parseInt(_0x2c1b75(0x1a3))/0x3)+parseInt(_0x2c1b75(0x174))/0x4+-parseInt(_0x2c1b75(0x18c))/0x5*(-parseInt(_0x2c1b75(0x198))/0x6)+-parseInt(_0x2c1b75(0x162))/0x7*(parseInt(_0x2c1b75(0x171))/0x8)+parseInt(_0x2c1b75(0x1a2))/0x9*(-parseInt(_0x2c1b75(0x197))/0xa)+parseInt(_0x2c1b75(0x1a7))/0xb;if(_0x1924f7===_0x37fd3f)break;else _0x458320['push'](_0x458320['shift']());}catch(_0x453571){_0x458320['push'](_0x458320['shift']());}}}(_0x4e90,0x4b927));function _0x3ac4(_0x1f68be,_0x5380c8){const _0x4e9064=_0x4e90();return _0x3ac4=function(_0x3ac411,_0xaba6ac){_0x3ac411=_0x3ac411-0x162;let _0x8bbb5d=_0x4e9064[_0x3ac411];return _0x8bbb5d;},_0x3ac4(_0x1f68be,_0x5380c8);}import{ObservableMixin as _0x271b49,uid as _0x5ba894}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x468233,findByAttribute as _0x2fc38a,getAttribute as _0x566cf2,isComment as _0x45031a,isTag as _0x9f611,insertElement as _0x4b8d1e,moveElement as _0x1753bb,removeElement as _0x22bddd,replaceElement as _0x1e64bd,serialize as _0x100daa,setAttribute as _0x56d77e,clone as _0x272f6e,findAllComments as _0x4fede5,getParents as _0x36ec9f,getNodeNestingLevel as _0x4fdf7d,areNodesSame as _0x462f9d,removeElementsAfter as _0x2902ae}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x271b49(){[_0x16daf5(0x189)];[_0x16daf5(0x19c)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x16daf5(0x166)]=new Set();constructor(_0x26dba6){const _0x43ae56=_0x16daf5;super(),this[_0x43ae56(0x189)]=_0x26dba6||_0x5ba894;}[_0x16daf5(0x183)](_0x1fbdc9,_0xe80f5f,_0xbb8f55){const _0x226510=_0x16daf5,_0xeea8ef=_0x272f6e(_0x1fbdc9);if(0x0===_0xe80f5f[_0x226510(0x199)][_0x226510(0x177)]){const _0x5468b8=[];return _0x468233(_0x226510(0x17c),_0x226510(0x187),_0xeea8ef)[_0x226510(0x17e)](_0x31cdc9=>{const _0x1acb5f=_0x226510,_0x407c6e=this[_0x1acb5f(0x189)]();_0x56d77e(_0x31cdc9,_0x1acb5f(0x17c),_0x407c6e),_0x5468b8[_0x1acb5f(0x184)](_0x407c6e);}),this[_0x226510(0x169)](_0xeea8ef),{'parsedContent':_0xeea8ef,'newNodeIds':_0x5468b8,'modifiedNodeIds':[],'removedNodeIds':[]};}_0xbb8f55&&_0xbb8f55[_0x226510(0x18f)]&&this[_0x226510(0x19d)](_0xeea8ef),this[_0x226510(0x19c)][_0x226510(0x16d)]=[],this[_0x226510(0x19c)][_0x226510(0x180)]=[],this[_0x226510(0x19c)][_0x226510(0x165)]=[],this[_0x226510(0x19c)][_0x226510(0x181)]=[],this[_0x226510(0x19c)][_0x226510(0x16a)]=null,this[_0x226510(0x166)]=new Set(_0x468233(_0x226510(0x17c),null,_0xe80f5f)[_0x226510(0x16c)](_0x5c047f=>_0x566cf2(_0x5c047f,_0x226510(0x17c)))[_0x226510(0x178)](_0x1559a9=>!!_0x1559a9));let _0x2193b8=-0x1,_0x2ec707=!0x1;const _0x398733=_0xeea8ef[_0x226510(0x199)],_0x3a6289=Array[_0x226510(0x1a8)](_0x398733)[_0x226510(0x178)](_0x2a918c=>!(0x3===_0x2a918c[_0x226510(0x168)]&&''===_0x100daa(_0x2a918c)[_0x226510(0x179)]())),_0x4e2f79=_0x3a6289[_0x226510(0x177)];for(let _0x100a38=0x0;_0x100a38<_0x4e2f79;_0x100a38++){const _0x45d0a3=_0x3a6289[_0x100a38],_0x5ae024=_0x3a6289[_0x100a38+0x1];if(this[_0x226510(0x18e)](_0x45d0a3)){if(-0x1===_0x2193b8&&(_0x2193b8=_0x100a38),this[_0x226510(0x18b)](_0x45d0a3),!this[_0x226510(0x18e)](_0x5ae024)){const [_0xe764f4,_0x2a9caa]=this[_0x226510(0x167)](_0x45d0a3,_0x2ec707,_0xe80f5f);if(_0xe764f4){const _0x2d38ed=Array[_0x226510(0x1a8)](_0x3a6289)[_0x226510(0x18a)](_0x2193b8,_0x100a38+0x1);this[_0x226510(0x173)](_0xe764f4,_0x2d38ed,_0x2a9caa),_0x2193b8=-0x1;}}}else{if(this[_0x226510(0x172)](_0x45d0a3))_0x2ec707=!0x0;else{if(this[_0x226510(0x190)](_0x45d0a3)){const _0x41cfcf=_0x566cf2(_0x45d0a3,_0x226510(0x17c));if(_0x41cfcf&&this[_0x226510(0x166)][_0x226510(0x163)](_0x41cfcf)){const _0x36398d=_0x2fc38a(_0x226510(0x17c),_0x41cfcf,_0xe80f5f);this[_0x226510(0x194)](_0x36398d,_0x45d0a3);}if(this[_0x226510(0x19c)][_0x226510(0x165)][_0x226510(0x1a1)](_0x41cfcf)){const _0x2e2eec=this[_0x226510(0x19c)][_0x226510(0x165)][_0x226510(0x1a9)](_0x41cfcf);this[_0x226510(0x19c)][_0x226510(0x165)][_0x226510(0x19f)](_0x2e2eec,0x1);}}else{if(this[_0x226510(0x175)](_0x45d0a3)){const _0x22cac1=_0x566cf2(_0x45d0a3,_0x226510(0x17c));this[_0x226510(0x19c)][_0x226510(0x180)][_0x226510(0x1a1)](_0x22cac1)||this[_0x226510(0x16e)](_0x45d0a3);}}}}}for(const _0x2127fd of this[_0x226510(0x19c)][_0x226510(0x165)]){const _0x51728c=_0x2fc38a(_0x226510(0x17c),_0x2127fd,_0xe80f5f);if(_0x51728c){if(_0xbb8f55&&_0xbb8f55[_0x226510(0x17a)]){this[_0x226510(0x19c)][_0x226510(0x16a)]=_0x2127fd;const _0xf1182b=_0xbb8f55[_0x226510(0x17a)][_0x226510(0x185)](!0x0);_0x56d77e(_0xf1182b,_0x226510(0x17c),_0x2127fd),_0x56d77e(_0xf1182b,_0x226510(0x17d),_0x226510(0x186)),_0x1e64bd(_0x51728c,_0xf1182b);}else _0x22bddd(_0x51728c);}}if(_0x468233(_0x226510(0x17b),null,_0xe80f5f)[_0x226510(0x17e)](_0x3e9969=>{const _0xb454c7=_0x226510,_0x48e3be=_0x566cf2(_0x3e9969,_0xb454c7(0x17b)),_0x29a315=_0x2fc38a(_0xb454c7(0x17c),_0x48e3be,_0xe80f5f);_0x29a315&&_0x1753bb(_0x29a315,_0x3e9969);}),_0x468233(_0x226510(0x17c),_0x226510(0x187),_0xe80f5f)[_0x226510(0x17e)](_0xd203fc=>{const _0x3c003d=_0x226510,_0x1b40ee=this[_0x3c003d(0x196)](_0xd203fc);_0x56d77e(_0xd203fc,_0x3c003d(0x17c),_0x1b40ee),this[_0x3c003d(0x19c)][_0x3c003d(0x16d)][_0x3c003d(0x184)](_0x1b40ee);}),this[_0x226510(0x169)](_0xe80f5f),_0xbb8f55&&_0xbb8f55[_0x226510(0x18f)]&&this[_0x226510(0x188)](_0xe80f5f,_0xbb8f55[_0x226510(0x18d)]||0x0),_0xbb8f55&&_0xbb8f55[_0x226510(0x191)]&&this[_0x226510(0x19c)][_0x226510(0x16a)]){let _0x9fc0b8=_0x2fc38a(_0x226510(0x17c),this[_0x226510(0x19c)][_0x226510(0x16a)],_0xe80f5f);for(;_0x9fc0b8;)_0x2902ae(_0x9fc0b8),_0x9fc0b8=_0x9fc0b8[_0x226510(0x19b)];}return{'parsedContent':_0xe80f5f,'newNodeIds':this[_0x226510(0x19c)][_0x226510(0x16d)],'modifiedNodeIds':this[_0x226510(0x19c)][_0x226510(0x180)],'removedNodeIds':this[_0x226510(0x19c)][_0x226510(0x165)]};}[_0x16daf5(0x173)](_0xfabf32,_0x346f26,_0x1023a1){const _0x36c53a=_0x16daf5;for(const _0x55a712 of _0x346f26){const _0x56d324=this[_0x36c53a(0x196)](_0x55a712);_0x56d77e(_0x55a712,_0x36c53a(0x17c),_0x56d324),this[_0x36c53a(0x19c)][_0x36c53a(0x16d)][_0x36c53a(0x184)](_0x56d324),this[_0x36c53a(0x19c)][_0x36c53a(0x16a)]=_0x56d324;}const _0x35d7ec=_0x36c53a(0x164)===_0x1023a1||_0x36c53a(0x170)===_0x1023a1?_0x346f26[_0x36c53a(0x16b)]():_0x346f26;for(const _0x2a19c6 of _0x35d7ec)_0x4b8d1e(_0xfabf32,_0x2a19c6,_0x1023a1);}[_0x16daf5(0x194)](_0x4f59c5,_0x4d1860){const _0x3e9e92=_0x16daf5;if(!_0x4f59c5)return;if(_0x462f9d(_0x4f59c5,_0x4d1860))return;const _0x43d52d=this[_0x3e9e92(0x196)](_0x4f59c5);_0x56d77e(_0x4d1860,_0x3e9e92(0x17c),_0x43d52d),this[_0x3e9e92(0x19c)][_0x3e9e92(0x180)][_0x3e9e92(0x184)](_0x43d52d),this[_0x3e9e92(0x19c)][_0x3e9e92(0x16a)]=_0x43d52d,_0x1e64bd(_0x4f59c5,_0x4d1860[_0x3e9e92(0x185)](!0x0));}[_0x16daf5(0x167)](_0x20541d,_0x34cf1f,_0x57a2df){const _0x37a233=_0x16daf5,_0x44f9f9=this[_0x37a233(0x1a5)](_0x20541d,!0x1);if(_0x44f9f9){const _0x372b1d=this[_0x37a233(0x19a)](_0x44f9f9),_0x1d658a=_0x2fc38a(_0x37a233(0x17c),_0x372b1d,_0x57a2df);if(_0x1d658a)return[_0x1d658a,_0x37a233(0x170)];this[_0x37a233(0x19c)][_0x37a233(0x181)][_0x37a233(0x184)](_0x372b1d);}const _0x38bb16=this[_0x37a233(0x193)](_0x20541d,!0x1);if(_0x38bb16){const _0x4bcefc=this[_0x37a233(0x19a)](_0x38bb16),_0x221995=_0x2fc38a(_0x37a233(0x17c),_0x4bcefc,_0x57a2df);if(_0x221995)return[_0x221995,_0x37a233(0x17f)];this[_0x37a233(0x19c)][_0x37a233(0x181)][_0x37a233(0x184)](_0x4bcefc);}return _0x34cf1f?_0x20541d[_0x37a233(0x195)]?this[_0x37a233(0x192)](_0x20541d,_0x57a2df):[_0x57a2df[_0x37a233(0x199)][_0x57a2df[_0x37a233(0x199)][_0x37a233(0x177)]-0x1],_0x37a233(0x170)]:[_0x57a2df[_0x37a233(0x199)][0x0],_0x37a233(0x17f)];}[_0x16daf5(0x192)](_0x2efec1,_0xfaa64b){const _0x5b377b=_0x16daf5,_0xdedb7b=[],_0x17b70d=this[_0x5b377b(0x1a5)](_0x2efec1,!0x0);if(_0x17b70d){const _0x4934d6=this[_0x5b377b(0x19a)](_0x17b70d),_0x212740=_0x2fc38a(_0x5b377b(0x17c),_0x4934d6,_0xfaa64b);_0x212740&&_0xdedb7b[_0x5b377b(0x184)]([_0x212740,_0x5b377b(0x170)]);}const _0x4460c7=this[_0x5b377b(0x193)](_0x2efec1,!0x0);if(_0x4460c7){const _0x5b79f6=this[_0x5b377b(0x19a)](_0x4460c7),_0x4dc418=_0x2fc38a(_0x5b377b(0x17c),_0x5b79f6,_0xfaa64b);_0x4dc418&&_0xdedb7b[_0x5b377b(0x184)]([_0x4dc418,_0x5b377b(0x17f)]);}if(_0xdedb7b[_0x5b377b(0x177)]>0x1)return _0x4fdf7d(_0xdedb7b[0x0][0x0])<=_0x4fdf7d(_0xdedb7b[0x1][0x0])?_0xdedb7b[0x0]:_0xdedb7b[0x1];return 0x1===_0xdedb7b[_0x5b377b(0x177)]?_0xdedb7b[0x0]:[_0xfaa64b[_0x5b377b(0x16f)],_0x5b377b(0x170)];}[_0x16daf5(0x193)](_0x3a1285,_0x543414){const _0x2a1c31=_0x16daf5;let _0x1e130b=_0x3a1285[_0x2a1c31(0x195)],_0x3fec03=null,_0x386242=!0x1;for(;_0x1e130b;){if(_0x45031a(_0x1e130b)){if(this[_0x2a1c31(0x175)](_0x1e130b)&&(_0x3fec03=_0x1e130b),this[_0x2a1c31(0x172)](_0x1e130b)&&_0x543414&&!_0x386242){_0x386242=!0x0,_0x1e130b=_0x1e130b[_0x2a1c31(0x195)];continue;}break;}const _0x3937ca=_0x566cf2(_0x1e130b,_0x2a1c31(0x17c));if(_0x3937ca&&_0x2a1c31(0x187)!==_0x3937ca&&this[_0x2a1c31(0x166)][_0x2a1c31(0x163)](_0x3937ca)){_0x3fec03=_0x1e130b;break;}_0x1e130b=_0x1e130b[_0x2a1c31(0x195)];}return _0x3fec03;}[_0x16daf5(0x1a5)](_0x1b01a0,_0x18de76){const _0x294fa1=_0x16daf5;let _0xb15b02=_0x1b01a0[_0x294fa1(0x182)],_0x89a5d1=null,_0x1939cb=!0x1;for(;_0xb15b02;){if(_0x45031a(_0xb15b02)){if(this[_0x294fa1(0x175)](_0xb15b02)&&(_0x89a5d1=_0xb15b02),this[_0x294fa1(0x172)](_0xb15b02)&&_0x18de76&&!_0x1939cb){_0x1939cb=!0x0,_0xb15b02=_0xb15b02[_0x294fa1(0x182)];continue;}break;}const _0x51f547=_0x566cf2(_0xb15b02,_0x294fa1(0x17c));if(_0x51f547&&_0x294fa1(0x187)!==_0x51f547&&this[_0x294fa1(0x166)][_0x294fa1(0x163)](_0x51f547)){_0x89a5d1=_0xb15b02;break;}_0xb15b02=_0xb15b02[_0x294fa1(0x182)];}return _0x89a5d1;}[_0x16daf5(0x18b)](_0x487658){const _0x37676e=_0x16daf5;_0x9f611(_0x487658)&&_0x468233(_0x37676e(0x17c),null,_0x487658)[_0x37676e(0x17e)](_0x175adb=>{const _0x3fde66=_0x37676e;if(this[_0x3fde66(0x190)](_0x175adb)&&!this[_0x3fde66(0x1a0)](_0x175adb)){const _0x12abd3=_0x566cf2(_0x175adb,_0x3fde66(0x17c));_0x56d77e(_0x175adb,_0x3fde66(0x17b),_0x12abd3),_0x56d77e(_0x175adb,_0x3fde66(0x17c),null);}});}[_0x16daf5(0x19a)](_0x59b37d){const _0x2ebdde=_0x16daf5;if(!_0x59b37d)return null;if(_0x9f611(_0x59b37d))return _0x566cf2(_0x59b37d,_0x2ebdde(0x17c));if(_0x45031a(_0x59b37d)){const _0x509875=_0x100daa(_0x59b37d)[_0x2ebdde(0x19e)](/removed[\s*-]data-id="([^"]+)"/);if(_0x509875&&_0x509875[0x1])return _0x509875[0x1];}return null;}[_0x16daf5(0x16e)](_0x96f80d){const _0x38bd12=_0x16daf5;if(_0x45031a(_0x96f80d)){const _0x204a4d=_0x100daa(_0x96f80d)[_0x38bd12(0x19e)](/removed[\s*-]data-id="([^"]+)"/);_0x204a4d&&_0x204a4d[0x1]&&this[_0x38bd12(0x19c)][_0x38bd12(0x165)][_0x38bd12(0x184)](_0x204a4d[0x1]);}}[_0x16daf5(0x196)](_0x36843d){const _0x1b07b8=_0x16daf5;return this[_0x1b07b8(0x190)](_0x36843d)?_0x566cf2(_0x36843d,_0x1b07b8(0x17c)):this[_0x1b07b8(0x189)]();}[_0x16daf5(0x169)](_0x3aaf1c){const _0x16049d=_0x16daf5;_0x4fede5(_0x3aaf1c)[_0x16049d(0x178)](_0x5a20f9=>this[_0x16049d(0x175)](_0x5a20f9)||this[_0x16049d(0x172)](_0x5a20f9))[_0x16049d(0x17e)](_0x587e29=>{_0x22bddd(_0x587e29);});}[_0x16daf5(0x19d)](_0x2142b9){const _0x446e2d=_0x16daf5,_0x3ea291=_0x2142b9[_0x446e2d(0x199)],_0x100952=_0x3ea291[_0x3ea291[_0x446e2d(0x177)]-0x1];_0x100952&&_0x9f611(_0x100952)&&_0x56d77e(_0x100952,_0x446e2d(0x1a6),_0x446e2d(0x186));}[_0x16daf5(0x188)](_0x43bd76,_0x550840){const _0x53d8ea=_0x16daf5,_0x1e94c7=_0x2fc38a(_0x53d8ea(0x1a6),_0x53d8ea(0x186),_0x43bd76);if(!_0x1e94c7)return;const _0x39d4e9=_0x36ec9f(_0x1e94c7)[_0x53d8ea(0x18a)](0x0,-0x1),_0x2ac50d=_0x39d4e9[_0x53d8ea(0x177)];let _0x130c73=_0x1e94c7;if(_0x2ac50d>_0x550840){let _0x598373=_0x2ac50d,_0x1f3c71=null;for(;_0x598373>_0x550840&&_0x598373>=0x0;)_0x598373--,_0x1f3c71=_0x39d4e9[_0x598373];_0x1f3c71&&(_0x130c73=_0x1f3c71,_0x56d77e(_0x1e94c7,_0x53d8ea(0x1a6),null),_0x56d77e(_0x1f3c71,_0x53d8ea(0x1a6),_0x53d8ea(0x186)));}else{if(_0x2ac50d<_0x550840){let _0x2a995b=_0x2ac50d,_0x2c876d=_0x1e94c7;for(;_0x2a995b<_0x550840;){const _0x5a3eac=_0x2c876d[_0x53d8ea(0x199)][_0x53d8ea(0x178)](_0x26ae79=>_0x9f611(_0x26ae79));if(0x0===_0x5a3eac[_0x53d8ea(0x177)])break;_0x2a995b++,_0x2c876d=_0x5a3eac[_0x5a3eac[_0x53d8ea(0x177)]-0x1];}_0x2c876d&&(_0x130c73=_0x2c876d,_0x56d77e(_0x1e94c7,_0x53d8ea(0x1a6),null),_0x56d77e(_0x2c876d,_0x53d8ea(0x1a6),_0x53d8ea(0x186)));}}let _0x3a0bb9=_0x130c73;for(;_0x3a0bb9;){for(;_0x3a0bb9[_0x53d8ea(0x195)];)_0x3a0bb9=_0x3a0bb9[_0x53d8ea(0x195)],_0x9f611(_0x3a0bb9)&&_0x56d77e(_0x3a0bb9,_0x53d8ea(0x1a6),_0x53d8ea(0x186));_0x3a0bb9=_0x3a0bb9[_0x53d8ea(0x19b)];}}[_0x16daf5(0x18e)](_0x42817a){const _0xd97ec2=_0x16daf5;return Boolean(_0xd97ec2(0x187)===_0x566cf2(_0x42817a,_0xd97ec2(0x17c)));}[_0x16daf5(0x190)](_0x2a570b){const _0x5c2a66=_0x16daf5;return Boolean((_0x566cf2(_0x2a570b,_0x5c2a66(0x17c))||'')[_0x5c2a66(0x177)]>0x0&&_0x5c2a66(0x187)!==_0x566cf2(_0x2a570b,_0x5c2a66(0x17c)));}[_0x16daf5(0x175)](_0x126b55){const _0x44234e=_0x16daf5;return!!_0x126b55&&Boolean(_0x45031a(_0x126b55)&&_0x100daa(_0x126b55)[_0x44234e(0x19e)](/removed[\s*-]data-id="[^"]+"/));}[_0x16daf5(0x1a0)](_0x5e6659){const _0x5cf905=_0x16daf5;let _0x364637=_0x5e6659[_0x5cf905(0x19b)];for(;_0x364637;){if(_0x566cf2(_0x364637,_0x5cf905(0x17b)))return!0x0;_0x364637=_0x364637[_0x5cf905(0x19b)];}return!0x1;}[_0x16daf5(0x172)](_0x212c81){const _0x5c536=_0x16daf5;return Boolean(_0x45031a(_0x212c81)&&_0x100daa(_0x212c81)[_0x5c536(0x19e)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f9451=_0x5eb5;function _0x5eb5(_0x4beb70,_0x599c11){const _0x314beb=_0x314b();return _0x5eb5=function(_0x5eb5b9,_0x2eac23){_0x5eb5b9=_0x5eb5b9-0x1d5;let _0xb058e1=_0x314beb[_0x5eb5b9];return _0xb058e1;},_0x5eb5(_0x4beb70,_0x599c11);}function _0x314b(){const _0x115411=['266483EohLSf','1084105dYYBXs','_parseHTML','parse','60KWAZmy','16fjvwPA','<dummy>','convertMarkdownToHTML','replace','317817YpPIyi','</dummy>','704014ZSkCMT','204167rIGoNt','parseAndNormalizeHTML','1690792yAJRnX','children','_m2html','532390WOXUeF','135CVHsyA'];_0x314b=function(){return _0x115411;};return _0x314b();}(function(_0x48796f,_0x413a60){const _0x28f4b8=_0x5eb5,_0x3de190=_0x48796f();while(!![]){try{const _0x5390a9=-parseInt(_0x28f4b8(0x1d8))/0x1+-parseInt(_0x28f4b8(0x1d7))/0x2+parseInt(_0x28f4b8(0x1d5))/0x3*(parseInt(_0x28f4b8(0x1e4))/0x4)+parseInt(_0x28f4b8(0x1e0))/0x5+-parseInt(_0x28f4b8(0x1e3))/0x6*(parseInt(_0x28f4b8(0x1df))/0x7)+-parseInt(_0x28f4b8(0x1da))/0x8+parseInt(_0x28f4b8(0x1de))/0x9*(parseInt(_0x28f4b8(0x1dd))/0xa);if(_0x5390a9===_0x413a60)break;else _0x3de190['push'](_0x3de190['shift']());}catch(_0x3c74d9){_0x3de190['push'](_0x3de190['shift']());}}}(_0x314b,0x47085));import{ObservableMixin as _0x4a1b4a}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x39a012}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x2b773d}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x4a1b4a(){[_0x1f9451(0x1dc)];constructor(){const _0x3daa77=_0x1f9451;super(),this[_0x3daa77(0x1dc)]=new _0x39a012();}[_0x1f9451(0x1e6)](_0x45c961){const _0x508bdb=_0x1f9451,_0x43f797=this[_0x508bdb(0x1dc)][_0x508bdb(0x1e2)](_0x45c961);return this[_0x508bdb(0x1d9)](_0x43f797);}[_0x1f9451(0x1d9)](_0x24a60e){const _0x11b5e8=_0x1f9451;return this[_0x11b5e8(0x1e1)](_0x24a60e);}[_0x1f9451(0x1e1)](_0x556375){const _0xaa0a6d=_0x1f9451,_0x1ae5c0=_0x556375[_0xaa0a6d(0x1e7)](/^\t+/gm,'\x20')[_0xaa0a6d(0x1e7)](/\n*/g,'')[_0xaa0a6d(0x1e7)](/\s+/g,'\x20')[_0xaa0a6d(0x1e7)](/<[^>]*?$/g,''),_0x12c4ab=_0x2b773d(_0xaa0a6d(0x1e5)+_0x1ae5c0+_0xaa0a6d(0x1d6));return _0x12c4ab[_0xaa0a6d(0x1db)]=_0x12c4ab[_0xaa0a6d(0x1db)][0x0][_0xaa0a6d(0x1db)],_0x12c4ab;}}
23
+ const _0x1e8044=_0x1df4;(function(_0x2335d3,_0x195d19){const _0x2d6b3c=_0x1df4,_0x5be61d=_0x2335d3();while(!![]){try{const _0x4a91c5=parseInt(_0x2d6b3c(0x7d))/0x1+parseInt(_0x2d6b3c(0x71))/0x2*(parseInt(_0x2d6b3c(0x78))/0x3)+parseInt(_0x2d6b3c(0x74))/0x4+-parseInt(_0x2d6b3c(0x7e))/0x5+-parseInt(_0x2d6b3c(0x7a))/0x6+-parseInt(_0x2d6b3c(0x70))/0x7+parseInt(_0x2d6b3c(0x75))/0x8;if(_0x4a91c5===_0x195d19)break;else _0x5be61d['push'](_0x5be61d['shift']());}catch(_0x25310b){_0x5be61d['push'](_0x5be61d['shift']());}}}(_0x4fde,0x97da9));import{ObservableMixin as _0xf53dee}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x1fb8ce}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0xe27b66}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0xf53dee(){[_0x1e8044(0x76)];constructor(){const _0x36473a=_0x1e8044;super(),this[_0x36473a(0x76)]=new _0x1fb8ce();}[_0x1e8044(0x72)](_0x21c6f4){const _0xd7d2e1=_0x1e8044,_0x55cbcc=this[_0xd7d2e1(0x76)][_0xd7d2e1(0x7c)](_0x21c6f4);return this[_0xd7d2e1(0x6f)](_0x55cbcc);}[_0x1e8044(0x6f)](_0x5eff52){const _0xf29a72=_0x1e8044;return this[_0xf29a72(0x79)](_0x5eff52);}[_0x1e8044(0x79)](_0x62f004){const _0x431bcf=_0x1e8044,_0x5abab3=_0x62f004[_0x431bcf(0x77)](/^\t+/gm,'\x20')[_0x431bcf(0x77)](/\n*/g,'')[_0x431bcf(0x77)](/\s+/g,'\x20')[_0x431bcf(0x77)](/<[^>]*?$/g,''),_0x2bcfff=_0xe27b66(_0x431bcf(0x7b)+_0x5abab3+_0x431bcf(0x73));return _0x2bcfff[_0x431bcf(0x6e)]=_0x2bcfff[_0x431bcf(0x6e)][0x0][_0x431bcf(0x6e)],_0x2bcfff;}}function _0x1df4(_0x1c0752,_0x3985c5){const _0x4fdeb3=_0x4fde();return _0x1df4=function(_0x1df4bb,_0x155533){_0x1df4bb=_0x1df4bb-0x6e;let _0x5a8811=_0x4fdeb3[_0x1df4bb];return _0x5a8811;},_0x1df4(_0x1c0752,_0x3985c5);}function _0x4fde(){const _0x5175d0=['convertMarkdownToHTML','</dummy>','3215544xFccBz','12109808tnHzGC','_m2html','replace','411918GpOBwi','_parseHTML','3793512ntgOzi','<dummy>','parse','1174025JQBFPO','6133565wawbXw','children','parseAndNormalizeHTML','8035895yqsZdz','2ezFsvR'];_0x4fde=function(){return _0x5175d0;};return _0x4fde();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2106(){var _0x1b88a8=['ck-ai-disclaimer__content','4259596XBCdTF','AI_DISCLAIMER_TEXT','2962500fZFaed','99160XfmAqF','div','setTemplate','333770Qzkewb','553EbcLbH','ck-ai-disclaimer','20tZnUpz','617868oDybMl','100JvHhgo','24483TFQnKz','6662rNAmRv','261fSpdze'];_0x2106=function(){return _0x1b88a8;};return _0x2106();}function _0x47e2(_0x397d47,_0x28ddcf){var _0x210658=_0x2106();return _0x47e2=function(_0x47e2d4,_0x48c45d){_0x47e2d4=_0x47e2d4-0x1a6;var _0x3309b5=_0x210658[_0x47e2d4];return _0x3309b5;},_0x47e2(_0x397d47,_0x28ddcf);}(function(_0x5c4c02,_0x2bde5e){var _0x4f8f2b=_0x47e2,_0x21edaa=_0x5c4c02();while(!![]){try{var _0x3669b1=-parseInt(_0x4f8f2b(0x1b1))/0x1*(-parseInt(_0x4f8f2b(0x1af))/0x2)+parseInt(_0x4f8f2b(0x1b0))/0x3*(-parseInt(_0x4f8f2b(0x1ad))/0x4)+parseInt(_0x4f8f2b(0x1a6))/0x5+parseInt(_0x4f8f2b(0x1ae))/0x6+parseInt(_0x4f8f2b(0x1ab))/0x7*(parseInt(_0x4f8f2b(0x1a7))/0x8)+-parseInt(_0x4f8f2b(0x1b2))/0x9*(parseInt(_0x4f8f2b(0x1aa))/0xa)+-parseInt(_0x4f8f2b(0x1b4))/0xb;if(_0x3669b1===_0x2bde5e)break;else _0x21edaa['push'](_0x21edaa['shift']());}catch(_0x37848a){_0x21edaa['push'](_0x21edaa['shift']());}}}(_0x2106,0x955e1));import{View as _0x23dbdd}from'ckeditor5/src/ui.js';import{getTranslation as _0x49fa6a}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x23dbdd{constructor(_0x2f4e32){var _0x37b58e=_0x47e2;super(_0x2f4e32),this[_0x37b58e(0x1a9)]({'tag':_0x37b58e(0x1a8),'attributes':{'class':['ck',_0x37b58e(0x1ac)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x37b58e(0x1b3)]},'children':[{'text':_0x49fa6a(_0x2f4e32,_0x37b58e(0x1b5))}]}]});}}
23
+ function _0x44ca(_0x47f071,_0x4ca3d4){var _0x45d48c=_0x45d4();return _0x44ca=function(_0x44ca37,_0x37ba5a){_0x44ca37=_0x44ca37-0x173;var _0x13a51a=_0x45d48c[_0x44ca37];return _0x13a51a;},_0x44ca(_0x47f071,_0x4ca3d4);}(function(_0x4be96a,_0x142a68){var _0x52c40d=_0x44ca,_0x4a1f6e=_0x4be96a();while(!![]){try{var _0x5df8a9=-parseInt(_0x52c40d(0x175))/0x1*(parseInt(_0x52c40d(0x178))/0x2)+parseInt(_0x52c40d(0x17c))/0x3*(parseInt(_0x52c40d(0x177))/0x4)+-parseInt(_0x52c40d(0x174))/0x5+parseInt(_0x52c40d(0x17e))/0x6*(parseInt(_0x52c40d(0x181))/0x7)+-parseInt(_0x52c40d(0x173))/0x8+parseInt(_0x52c40d(0x17f))/0x9+parseInt(_0x52c40d(0x180))/0xa;if(_0x5df8a9===_0x142a68)break;else _0x4a1f6e['push'](_0x4a1f6e['shift']());}catch(_0x14439c){_0x4a1f6e['push'](_0x4a1f6e['shift']());}}}(_0x45d4,0x66a0b));import{View as _0x41f6df}from'ckeditor5/src/ui.js';import{getTranslation as _0x41eebe}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x41f6df{constructor(_0x4a6db3){var _0x31cf88=_0x44ca;super(_0x4a6db3),this[_0x31cf88(0x17b)]({'tag':_0x31cf88(0x17a),'attributes':{'class':['ck',_0x31cf88(0x179)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x31cf88(0x176)]},'children':[{'text':_0x41eebe(_0x4a6db3,_0x31cf88(0x17d))}]}]});}}function _0x45d4(){var _0x1767ac=['1767EXoRej','AI_DISCLAIMER_TEXT','5502WOBGbQ','4073661EwhsgP','2435490TodxiZ','2149UMCYHe','3668296gSSCcU','1984065wNWKDj','11hUdXvz','ck-ai-disclaimer__content','2980FHyhTc','25598JVTKXA','ck-ai-disclaimer','div','setTemplate'];_0x45d4=function(){return _0x1767ac;};return _0x45d4();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f9b13=_0x58e1;function _0x58e1(_0x3ea848,_0x4e4a8f){const _0x3959a0=_0x3959();return _0x58e1=function(_0x58e139,_0x28eed5){_0x58e139=_0x58e139-0x8a;let _0x9b6254=_0x3959a0[_0x58e139];return _0x9b6254;},_0x58e1(_0x3ea848,_0x4e4a8f);}(function(_0x5b0e1c,_0x4d1633){const _0x47a126=_0x58e1,_0x46460d=_0x5b0e1c();while(!![]){try{const _0x13a0df=-parseInt(_0x47a126(0xa4))/0x1*(-parseInt(_0x47a126(0xb1))/0x2)+-parseInt(_0x47a126(0xb2))/0x3+parseInt(_0x47a126(0xa1))/0x4*(-parseInt(_0x47a126(0xad))/0x5)+-parseInt(_0x47a126(0x92))/0x6*(parseInt(_0x47a126(0x9b))/0x7)+parseInt(_0x47a126(0xb3))/0x8*(parseInt(_0x47a126(0xab))/0x9)+parseInt(_0x47a126(0xb0))/0xa+-parseInt(_0x47a126(0xa9))/0xb*(-parseInt(_0x47a126(0x95))/0xc);if(_0x13a0df===_0x4d1633)break;else _0x46460d['push'](_0x46460d['shift']());}catch(_0x5029c9){_0x46460d['push'](_0x46460d['shift']());}}}(_0x3959,0x92c1d));import{View as _0x312700}from'ckeditor5/src/ui.js';import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x312700{constructor(_0x3c65be,_0x10c198){const _0x1de728=_0x58e1;super(_0x3c65be),this[_0x1de728(0x9e)]({'tag':_0x1de728(0xa2),'attributes':{'class':['ck',_0x1de728(0xa8)]},'children':this[_0x1de728(0x99)](_0x10c198)});}[_0x3f9b13(0x99)](_0x14479c){const _0x3a75bb=_0x3f9b13,_0x2760d9=['ck',_0x3a75bb(0x8e)];return _0x14479c[_0x3a75bb(0xa3)](_0x5640e1=>{const _0x5e47c=_0x3a75bb;let _0x545170='';switch(_0x5640e1[_0x5e47c(0xa0)][_0x5e47c(0x90)]){case _0x5e47c(0xaa):_0x545170=_0x5e47c(0x9d);break;case _0x5e47c(0xa6):_0x545170=_0x5e47c(0x8a);break;case _0x5e47c(0x8d):_0x545170=_0x5e47c(0x9a);}return{'tag':_0x5640e1[_0x5e47c(0xaf)],'attributes':{'class':[..._0x2760d9,_0x5640e1[_0x5e47c(0xa0)][_0x5e47c(0x97)]?_0x5640e1[_0x5e47c(0xa0)][_0x5e47c(0x97)]:''],'style':_0x5e47c(0xac)+_0x5640e1[_0x5e47c(0xa0)][_0x5e47c(0x8f)]+_0x5e47c(0xae)+_0x5640e1[_0x5e47c(0xa0)][_0x5e47c(0x93)]+';'+_0x545170}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x3f9b13(0xa2),'attributes':{'width':_0x3f9b13(0x9c),'height':_0x3f9b13(0x8c),'align':_0x3f9b13(0xaa)}},{'tag':_0x3f9b13(0xa2),'attributes':{'width':_0x3f9b13(0x9f),'height':_0x3f9b13(0x98),'align':_0x3f9b13(0xaa)}},{'tag':_0x3f9b13(0xa2),'attributes':{'width':_0x3f9b13(0x9c),'height':_0x3f9b13(0x91),'align':_0x3f9b13(0xaa)}},{'tag':_0x3f9b13(0xa2),'attributes':{'width':_0x3f9b13(0xa7),'height':_0x3f9b13(0x98),'align':_0x3f9b13(0xaa)}},{'tag':_0x3f9b13(0xa2),'attributes':{'width':_0x3f9b13(0x9c),'height':_0x3f9b13(0x94),'align':_0x3f9b13(0xaa)}},{'tag':_0x3f9b13(0xa2),'attributes':{'width':_0x3f9b13(0x9f),'height':_0x3f9b13(0x98),'align':_0x3f9b13(0xaa)}},{'tag':_0x3f9b13(0xa2),'attributes':{'width':_0x3f9b13(0x9c),'height':_0x3f9b13(0x91),'align':_0x3f9b13(0xaa)}}],'aiHistory':ta(0x5,_0x3f9b13(0x9c),_0x3f9b13(0xb4),_0x3f9b13(0xaa)),'aiChatResources':ta(0x8,_0x3f9b13(0x9c),_0x3f9b13(0x8b),_0x3f9b13(0xaa)),'aiReviewChecks':[{'tag':_0x3f9b13(0xa2),'attributes':{'width':_0x3f9b13(0x96),'height':_0x3f9b13(0x8b),'align':_0x3f9b13(0x8d)}},{'tag':_0x3f9b13(0xa2),'attributes':{'width':_0x3f9b13(0x9c),'height':_0x3f9b13(0x8b),'align':_0x3f9b13(0x8d)}},{'tag':_0x3f9b13(0xa2),'attributes':{'width':_0x3f9b13(0x96),'height':_0x3f9b13(0x8b),'align':_0x3f9b13(0x8d)}}]};function _0x3959(){const _0x47486c=['144728gsXodK','44px','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','24px','72px','left','ck-ai-skeleton__item','width','align','88px','14352YDjcak','height','140px','12KtixqB','128px','class','40px','_createSkeletonItems','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','2709xGQsdm','100%','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','setTemplate','250px','attributes','255388rcYGZC','div','map','106cZnNwx','fill','center','150px','ck-ai-skeleton','11460889ObHodv','right','189XnJogV','width:\x20','15mqYXZi',';\x20height:\x20','tag','3162400HQHRvg','15014vTnbsk','2446290TChFCe'];_0x3959=function(){return _0x47486c;};return _0x3959();}function ta(_0x1907dc,_0x27b1c6,_0x3a0d84,_0x57156c){const _0x58445f=_0x3f9b13;return new Array(_0x1907dc)[_0x58445f(0xa5)](null)[_0x58445f(0xa3)](()=>({'tag':_0x58445f(0xa2),'attributes':{'width':_0x27b1c6,'height':_0x3a0d84,'align':_0x57156c}}));}
23
+ function _0x1013(){const _0x4f65c8=['attributes','align','ck-ai-skeleton__item','right','tag','setTemplate','height','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','140px','width:\x20','fill','1178520VAGKGQ','100%',';\x20height:\x20','24px','594313eAxmsH','div','13923cvBomg','_createSkeletonItems','1713387jIlQcF','left','944zKurqg','128px','72px','ck-ai-skeleton','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','center','width','map','class','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','250px','150px','1555440avcgrt','95TSlOYn','117788ZkZRDM','44px','88px','40px','2878281zcoZhO'];_0x1013=function(){return _0x4f65c8;};return _0x1013();}const _0x4beae0=_0x3efc;(function(_0x4c2088,_0x59feca){const _0x303de5=_0x3efc,_0x45f9d4=_0x4c2088();while(!![]){try{const _0x8a4185=-parseInt(_0x303de5(0x1d9))/0x1+parseInt(_0x303de5(0x1eb))/0x2+-parseInt(_0x303de5(0x1dd))/0x3+parseInt(_0x303de5(0x1ed))/0x4*(parseInt(_0x303de5(0x1ec))/0x5)+-parseInt(_0x303de5(0x1d5))/0x6+parseInt(_0x303de5(0x1f1))/0x7+parseInt(_0x303de5(0x1df))/0x8*(parseInt(_0x303de5(0x1db))/0x9);if(_0x8a4185===_0x59feca)break;else _0x45f9d4['push'](_0x45f9d4['shift']());}catch(_0x45454e){_0x45f9d4['push'](_0x45f9d4['shift']());}}}(_0x1013,0x8aef8));function _0x3efc(_0x334a51,_0x3df900){const _0x101360=_0x1013();return _0x3efc=function(_0x3efcfe,_0x2b716d){_0x3efcfe=_0x3efcfe-0x1ce;let _0x1cc1fa=_0x101360[_0x3efcfe];return _0x1cc1fa;},_0x3efc(_0x334a51,_0x3df900);}import{View as _0x246ae3}from'ckeditor5/src/ui.js';import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x246ae3{constructor(_0x50b543,_0x4e7172){const _0x3df0e5=_0x3efc;super(_0x50b543),this[_0x3df0e5(0x1cf)]({'tag':_0x3df0e5(0x1da),'attributes':{'class':['ck',_0x3df0e5(0x1e2)]},'children':this[_0x3df0e5(0x1dc)](_0x4e7172)});}[_0x4beae0(0x1dc)](_0x116681){const _0x439fdb=_0x4beae0,_0x112dc6=['ck',_0x439fdb(0x1f4)];return _0x116681[_0x439fdb(0x1e6)](_0x395919=>{const _0x4810e6=_0x439fdb;let _0x545576='';switch(_0x395919[_0x4810e6(0x1f2)][_0x4810e6(0x1f3)]){case _0x4810e6(0x1f5):_0x545576=_0x4810e6(0x1e3);break;case _0x4810e6(0x1e4):_0x545576=_0x4810e6(0x1e8);break;case _0x4810e6(0x1de):_0x545576=_0x4810e6(0x1d1);}return{'tag':_0x395919[_0x4810e6(0x1ce)],'attributes':{'class':[..._0x112dc6,_0x395919[_0x4810e6(0x1f2)][_0x4810e6(0x1e7)]?_0x395919[_0x4810e6(0x1f2)][_0x4810e6(0x1e7)]:''],'style':_0x4810e6(0x1d3)+_0x395919[_0x4810e6(0x1f2)][_0x4810e6(0x1e5)]+_0x4810e6(0x1d7)+_0x395919[_0x4810e6(0x1f2)][_0x4810e6(0x1d0)]+';'+_0x545576}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1d6),'height':_0x4beae0(0x1e1),'align':_0x4beae0(0x1f5)}},{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1e9),'height':_0x4beae0(0x1f0),'align':_0x4beae0(0x1f5)}},{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1d6),'height':_0x4beae0(0x1ef),'align':_0x4beae0(0x1f5)}},{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1ea),'height':_0x4beae0(0x1f0),'align':_0x4beae0(0x1f5)}},{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1d6),'height':_0x4beae0(0x1d2),'align':_0x4beae0(0x1f5)}},{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1e9),'height':_0x4beae0(0x1f0),'align':_0x4beae0(0x1f5)}},{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1d6),'height':_0x4beae0(0x1ef),'align':_0x4beae0(0x1f5)}}],'aiHistory':ta(0x5,_0x4beae0(0x1d6),_0x4beae0(0x1ee),_0x4beae0(0x1f5)),'aiChatResources':ta(0x8,_0x4beae0(0x1d6),_0x4beae0(0x1d8),_0x4beae0(0x1f5)),'aiReviewChecks':[{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1e0),'height':_0x4beae0(0x1d8),'align':_0x4beae0(0x1de)}},{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1d6),'height':_0x4beae0(0x1d8),'align':_0x4beae0(0x1de)}},{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1e0),'height':_0x4beae0(0x1d8),'align':_0x4beae0(0x1de)}}]};function ta(_0x332e08,_0x245b03,_0x43224b,_0x28fb0c){const _0x3c4d3e=_0x4beae0;return new Array(_0x332e08)[_0x3c4d3e(0x1d4)](null)[_0x3c4d3e(0x1e6)](()=>({'tag':_0x3c4d3e(0x1da),'attributes':{'width':_0x245b03,'height':_0x43224b,'align':_0x28fb0c}}));}